if (typeof(afvid_playingObj)=="undefined") { var afvid_playingObj=null, afvid_playerIFrame=null; var afvid_playerBg=null,afvid_playerFg=null; } if (typeof(afvid_getEltById)=="undefined") { afvid_getEltById=function afvid_getEltById(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; } } if (typeof(afvid_fullscreenShow)=="undefined") { afvid_fullscreenShow=function afvid_fullscreenShow(src,titre,s) { afvid_stopVideo(); afvid_initBgFg('100%','100%',titre); afvid_showIn(afvid_getEltById("afvid_playerDiv"),src,'100%','100%',s); } } if (typeof(afvid_fullscreen)=="undefined") { afvid_fullscreen=function afvid_fullscreen() { } } if (typeof(afvid_popupShow)=="undefined") { afvid_popupShow=function afvid_popupShow(src,w,h,titre,s) { afvid_stopVideo(); var obj; if (typeof(afmod_popupWindow)!="undefined") { popupContent='

'; 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); } } if (typeof(afvid_initBgFg)=="undefined") { afvid_initBgFg=function afvid_initBgFg(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"; 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.width=h; } afvid_playerBg.style.display="block"; afvid_playerFg.style.display="block"; } } if (typeof(afvid_stopVideo)=="undefined") { afvid_stopVideo=function afvid_stopVideo() { 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; } } } if (typeof(afvid_showIn)=="undefined") { afvid_showIn=function afvid_showIn(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; } } if (typeof(afvid_setIframe)=="undefined") { afvid_setIframe=function afvid_setIframe(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); } } } if (typeof(afvid_realPopupShow)=="undefined") { afvid_realPopupShow=function afvid_realPopupShow(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); } } if (typeof(video_getImageFrameJs)=="undefined") { video_getImageFrameJs = function video_getImageFrameJs(URLVideo,w,h,wImg,hImg,wHD,hHD,hasHD,titre,varVideoID,IsEdito) { if (IsEdito==1) { TagClass='class=af_video_edito' } var URLImage; var texteHTMLvideo; var tdID; var titre2=titre.replace(/\"/gi,'"'); titre2=titre2.replace(/\'/gi,'’'); tdID='afvid_'+ varVideoID; URLImage='http://imvideo.aufeminin.com/video'+URLVideo+'.jpg'; if (top.varSkinPlayerAdd == 1) { ajoutSkin = ', '+top.varSkinPlayerID } else { ajoutSkin = '';} var onclick='onclick="afvid_stopVideo();afvid_showIn(afvid_getEltById(\'' + tdID + '\'),\'' + URLVideo + '\',' + wImg + ',' + hImg + ajoutSkin +');"'; texteHTMLvideo='
\ \ \
\ '; if ((hasHD == 1)&&(IsEdito == 0)) { texteHTMLvideo += '\ ' URLVideo=URLVideo + '_HD'; } texteHTMLvideo = texteHTMLvideo + '\ \ \
\ '; document.write ('
\
\ ' + texteHTMLvideo +'\
'); return true; } }