if (typeof(afvid_included)=="undefined") {
document.write('');
var afvid_playingObj=null, afvid_playerIFrame=null;
var afvid_playerBg=null,afvid_playerFg=null;
afvid_getEltById=function(id) {
if(document.getElementById)
return document.getElementById(id);
else if (document.all)
return document.all[id];
else if (document.layers)
return document.layers[id];
else return null;
}
afvid_fullscreenShow=function(src,titre,s) {
afvid_stopVideo();
afvid_initBgFg('100%','100%',titre);
afvid_showIn(afvid_getEltById("afvid_playerDiv"),src,'100%','100%',s);
}
afvid_fullscreen=function() {
}
afvid_popupShow=function(src,w,h,titre,s) {
afvid_stopVideo();
var obj;
if (typeof(afmod_popupWindow)!="undefined") {
var popupContent='
';
afmod_popupWindow(titre,popupContent,w,h);
obj=afvid_getEltById("afmodvid_playerDiv");
} else {
afvid_initBgFg(w,h,titre);
obj=afvid_getEltById("afvid_playerDiv");
}
afvid_showIn(obj,src,w,h,s);
}
afvid_initBgFg=function(w,h,titre) {
if (!afvid_playerBg) {
afvid_playerBg=document.createElement('div');
afvid_playerBg.className="afvid_playerBg";
afvid_playerBg.onclick=afvid_stopVideo;
document.body.insertBefore(afvid_playerBg,document.body.firstChild);
}
if (!afvid_playerFg) {
afvid_playerFg=document.createElement('div');
afvid_playerFg.className="afvid_playerFg"; afvid_playerFg.align="left";
var inner='';
inner+='
';
inner+=' | '
inner+='';
inner+='  ';
inner+=' |
';
inner+='';
afvid_playerFg.innerHTML=inner;
document.body.insertBefore(afvid_playerFg,document.body.firstChild);
}
afvid_getEltById("afvid_playerTitre").innerHTML=titre;
afvid_playerBg.style.height=document.body.scrollHeight+"px";
winwidth = document.body.clientWidth ? document.body.clientWidth : window.innerWidth ;
winheight = document.body.clientHeight ? document.body.clientHeight : window.innerHeight;
if (w=='100%') {
afvid_playerFg.style.top="0px";
afvid_playerFg.style.left="0px";
afvid_playerFg.style.width="100%";
afvid_playerFg.style.height="100%";
window.scrollTo(0,0);
} else {
afvid_playerFg.style.left=((winwidth - w)/2 + document.body.scrollLeft) + "px";
afvid_playerFg.style.top=((winheight - h)/2 + document.body.scrollTop) + "px";
afvid_playerFg.style.width=w;
afvid_playerFg.style.height=h;
}
afvid_playerBg.style.display="block";
afvid_playerFg.style.display="block";
}
afvid_stopVideo=function() {
if (afvid_playerIFrame!=null) {
afvid_playerIFrame.src="/vide.html"
if (afvid_playerBg) afvid_playerBg.style.display="none";
if (afvid_playerFg) afvid_playerFg.style.display="none";
afvid_playerIFrame=null;
afvid_playingObj.innerHTML=afvid_playingObj.afvid_prevInner;
afvid_playingObj=null;
}
}
afvid_showIn=function(obj,src,w,h,s) {
if (!obj.afvid_prevInner)
obj.afvid_prevInner=obj.innerHTML;
obj.innerHTML="";
if (h!='100%') h+=20;
afvid_setIframe(obj,src,w,h,s);
afvid_playingObj=obj;
}
afvid_setIframe=function(obj,src,w,h,s,ctc) {
try {
if (!afvid_playerIFrame) {
afvid_playerIFrame=document.createElement('iframe');
afvid_playerIFrame.name="afvid_playerIFrame";
afvid_playerIFrame.frameBorder=0;
afvid_playerIFrame.scrolling='no';
}
obj.appendChild(afvid_playerIFrame);
afvid_playerIFrame.width=w;
afvid_playerIFrame.height=h;
if (!s && document.afmod_skinID) s=document.afmod_skinID;
afvid_playerIFrame.src='/world/communaute/video/player.asp?v='+escape(src)+'&s='+s+'&a=1'+(ctc>0?'&ctc=1':'');
} catch(e) { afvid_realPopupShow(src,w,h,s); }
}
afvid_realPopupShow=function(src,w,h,s) {
var top=Math.round((screen.height-h)/2), left=Math.round((screen.width-w)/2);
window.open('/world/communaute/video/player.asp?v='+escape(src)+'&s='+s+'&a=1','af_videoPlayer','resizable=yes,status=yes,location=no,menubar=no,scrollbars=no,width='+w+',height='+h+',top='+top+',left='+left);
}
afvid_included=true;
}
if (typeof(video_getImageFrameJs)=="undefined") {
video_getImageFrameJs = function(URLVideo,w,h,wImg,hImg,wHD,hHD,hasHD,titre,varVideoID,IsEdito) {
if (IsEdito==1) {
TagClass='class=af_video_edito'
}
var texteHTMLvideo, URLImage='http://imvideo.aufeminin.com/video'+URLVideo+'.jpg', tdID='afvid_'+ varVideoID, titre2=titre.replace(/\"/gi,'"').replace(/\'/gi,'’');
if (top.varSkinPlayerAdd == 1) { ajoutSkin = ', '+top.varSkinPlayerID } else { ajoutSkin = '';}
var onclick='onclick="afvid_stopVideo();afvid_showIn(afvid_getEltById(\'' + tdID + '\'),\'' + URLVideo + '\',' + wImg + ',' + hImg + ajoutSkin +');"';
texteHTMLvideo='\
';
document.write ('\
');
return true;
}
}