function showLoginBoxLink(){var A=getElementFromCookie();if(A.length>0&&A!="null"){$("login_logged").style.display="inline";$("liLogout").style.display="inline";$("liConnect").style.display="none";$("separ_unlogged").style.display="none";$("login_logged").innerHTML=$("login_logged").innerHTML+' <a class="wat_link" href="/'+A+'">'+A+"</a> "}else{$("login_logged").style.display="none";$("liLogout").style.display="none";$("separ_logged").style.display="none"}}function showSubscriptionLink(){logElement=getElementFromCookie();if(logElement.length>0&&logElement!="null"){$("SubscriptionLink").style.display="none"}}function openConnect(){$("openConnect").href="/login?urlback="+encodeURIComponent(window.location.pathname);$("btnConnect").style.display="none";$("form_login").style.display="inline";$("login_date").style.display="none"};function openThemeLink(E){var F=document.getElementById(E);var C=E.split("_");var D=C[2];var B=document.getElementById("picto_"+D);var A=document.getElementById("link_"+D);A.className+=(A.className?" ":"")+"linkOpened";F.style.display="block"}function closeThemeLink(E){var F=document.getElementById(E);var C=E.split("_");var D=C[2];var B=document.getElementById("picto_"+D);var A=document.getElementById("link_"+D);A.className=A.className.replace(new RegExp("(^|\\s+)linkOpened(\\s+|$)")," ").strip();F.style.display="none"}function chooseMenuLink(){var F=location.href;var B=F.split("?");var C=B[0].replace("http://","");var G=C.split("/");var D=G[1];try{var A=G[2]}catch(E){var A}if(D==""||D=="home"){hoverLink("menu_home")}else{if(D=="buzz"||(A=="buzz"&&D!="widget")||D=="top"||D=="tophebdo"){hoverLink("menu_buzz")}else{if(D=="videos"||A=="videos"){hoverLink("menu_videos")}else{if(D=="users"||A=="users"){hoverLink("menu_users")}else{if(D=="upload"){hoverLink("menu_upload")}}}}}}function hoverLink(B){var A=document.getElementById(B);A.className+=(A.className?" ":"")+"select_link"}function submitSearch(D,C){if(!C){C=$("SearchString")}var A="";var B=new RegExp("/","g");C.value=C.value.replace(B," ");if(!C.value||C.value=="Vidéos, Playlists, Membres..."){A="/buzz"}else{A="/relevance/search/"+encodeURIComponent(C.value)}if(GetCookieWAT("searchmode")=="list"){A="/searchlist"+A}if(window.parent==null){window.location=A}else{window.parent.location=A}}function inFocus(A){if(A.value!=""&&A.value=="Vidéos, Playlists, Membres..."){A.value=""}}function lostFocus(A){if(A.value==""){A.value="Vidéos, Playlists, Membres..."}};if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return}this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C.push(B+"="+A[B])}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var D=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){D=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(C){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");D=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(C){if(D.major==6){return D}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(C){}}if(B!=null){D=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}return D};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(A){var D=document.location.search||document.location.hash;if(D){var C=D.substring(1).split("&");for(var B=0;B<C.length;B++){if(C[B].substring(0,C[B].indexOf("="))==A){return C[B].substring((C[B].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var C=document.getElementsByTagName("OBJECT");for(var B=C.length;B>0;B--){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload)}if(Array.prototype.push==null){Array.prototype.push=function(A){this[this.length]=A;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;Rubrique=function(B,A){$$("."+A+" .buttonContinu").each(function(C){C.onmouseover=function(G){var D=$(B);var E=this.getDimensions().width;var F=D.getDimensions();var H=this.cumulativeOffset();H.left=H.left-F.width+E-5;H.top=H.top+F.height;document.body.appendChild($(B));D.setStyle({top:H.top+2+"px",left:H.left+"px"});D.show()};C.onmouseout=function(D){$(B).hide()}})};var tooltip=function(){var L="";var B="tt";var J=-15;var C=2;var I=300;var F,M,G,H,D,K,E;var A=document.all?true:false;return{show:function(O,N){if(typeof(window[O])=="undefined"){return}if(O!=L){if($(O)){$(O).alt="";$(O).title=""}O=window[O];K=O[0];E=O[1];if(E.replace(/\s/g,"")==""){return}L=O;if(!F||!$("tt")){F=document.createElement("div");F.setAttribute("id",B);F.className="info_bulle";M=document.createElement("div");M.setAttribute("id",B+"top");G=document.createElement("div");G.setAttribute("id",B+"cont");H=document.createElement("div");H.setAttribute("id",B+"bot");F.appendChild(M);F.appendChild(G);F.appendChild(H);document.body.appendChild(F)}}F=$("tt");Event.observe($(document),"mousemove",this.pos);F.show();M.innerHTML=K;G.innerHTML=E;F.style.width=N?N+"px":"auto";if(!N&&A){M.style.display="none";H.style.display="none";F.style.width=F.offsetWidth;M.style.display="block";H.style.display="block"}if(F.offsetWidth>I){F.style.width=I+"px"}D=parseInt(F.offsetHeight)+J-$("tt").getHeight()},pos:function(P){xyAxis=$("tt").cumulativeScrollOffset();var O=A?event.clientY+xyAxis.top:P.pageY;var N=A?event.clientX+xyAxis.left:P.pageX;F.style.top=(O-D)+"px";F.style.left=(N+C)+"px"},hide:function(){if(F){F.hide();Event.stopObserving($(document),"mousemove",this.pos)}}}}();function afficheInfoBulle(A){if(/Microsoft/.test(navigator.appName)){if(/loaded|complete/.test(document.readyState)){tooltip.show("desc_"+A)}}else{tooltip.show("desc_"+A)}}function showToolTip(B,C){if($("ToolTipBox")){$("ToolTipBox").remove()}toolTip=document.createElement("div");toolTip.setAttribute("id","ToolTipBox");toolTip.setAttribute("class","ToolTipBoxError");toolTip.innerHTML=C;var A=toolTip.getDimensions();var D=B.getDimensions();var E=B.cumulativeOffset();E.left=E.left-A.width;E.top=E.top+A.height+D.height;toolTip.setStyle({top:E.top+"px",left:E.left+"px"});document.body.appendChild(toolTip);toolTip.show();B.observe("focus",hideToolTip)}function hideToolTip(){if($("ToolTipBox")){$("ToolTipBox").remove()}};function callDynamicTile(B,A){new Ajax.Updater({success:"dynamicTeaser"},"/ajax/bloc?controller=Tile_Dynamic&action=see",{method:"get",parameters:{thm:B,className:A},onComplete:function(){var C=$$("#dynamicTeaser img.lazy");C.each(function(D){newSrc=D.readAttribute("data-src");if(newSrc){D.src=newSrc;D.removeClassName("lazy");D.removeAttribute("data-src");C=C.remove(D);newSrc=""}})}})}function callTilePub(B,A){document.write('<script type="text/javascript">callDynamicTile(\''+B+"', '"+A+"');<\/script>")};function toggleBloc(C){var A=$(C);var B=A.getStyle("display");if(B=="none"){A.style.display="block";$("toggle_"+C).addClassName("open_toggle");connectLazyLoad()}else{A.style.display="none";$("toggle_"+C).removeClassName("open_toggle")}}function overBloc(C){var A=$(C);var B=A.getStyle("display");if(B=="none"){$("toggle_"+C).addClassName("open_toggle")}}function outBloc(C){var A=$(C);var B=A.getStyle("display");if(B=="none"){$("toggle_"+C).removeClassName("open_toggle")}else{$("toggle_"+C).addClassName("open_toggle")}}function afficheBloc(){var C=document.referrer;if(C!=""){var B=C.replace("http://","");var A=B.split("/");if(A[1]=="guide"){toggleBloc("fileTop")}else{if(A[1]=="theme"){toggleBloc("fileTop")}}}}function colorTheme(B){var A=B;$$(".topTheme").each(function(D){var C=D.getAttribute("id").split("_");var E=C[1];if(A==C[1]){D.addClassName("bgOther")}});if(($("fileTop")&&$("fileTop").getStyle("display")=="none")&&$("fileUser").getStyle("display")=="none"&&!$("fileSearch")&&!$("fileSimilar")){$("fileUser").style.display="block"}}function searchTerm(B){try{var E=document.referrer}catch(F){return}if(E!=""){var A=E.replace("http://","");var J=A.split("/");var L=new RegExp("google","i");var H=new RegExp("wat","i");var I=false;var C=0;var D;if(J[0].match(L)){var K=new Array();J[1]=J[1].replace("videosearch?","");J[1]=J[1].replace("search?","");var G=J[1].split("&");I=true;for(i=0;i<G.length;i++){inter=G[i].indexOf("=");if(inter>=0){K[G[i].substr(0,inter)]=G[i].substr(inter+1)}else{K[G[i]]=""}}if(K.q){D=Trim(K.q.replace(/\+/g," "));D=decodeURIComponent(D)}else{I=false}}else{if(J[0].match(H)){if(J[1]=="recherche"){I=true;D=decodeURIComponent(J[2])}else{if(J[2]=="search"){I=true;D=decodeURIComponent(J[3])}else{if(J[2]=="searchall"){I=true;D=decodeURIComponent(J[3]);C=1}else{if(J[3]=="search"){I=true;D=decodeURIComponent(J[4])}else{if(J[4]=="search"){I=true;D=decodeURIComponent(J[5])}else{if(J[5]=="search"){I=true;D=decodeURIComponent(J[6])}}}}}}}}if(I&&D){var J=D.split("?");D=J[0];D=encodeURIComponent(D);new Ajax.Updater({success:"searchBox"},"/ajax/bloc/search/"+D+"/"+B,{method:"get",parameters:{action:"update",controller:"Recherche",searchAll:C},onComplete:function(){if($("fileTop").getStyle("display")=="block"){toggleBloc("fileTop")}}})}}}function connectLazyLoad(){$$("div.ascenseur").each(function(A){if(A.up().getStyle("display")=="none"){return}topShit=A.viewportOffset().top+A.getHeight();A.observe("scroll",function(){$$("div#"+A.up().id+" div.ascenseur img.lazy").each(function(B){if(topShit-B.viewportOffset().top>0){if(B.readAttribute("data-src")!=""){B.src=B.readAttribute("data-src");B.removeAttribute("data-src");B.removeClassName("lazy")}}})}.bind(A));$$("div#"+A.up().id+" div.ascenseur img.lazy").each(function(B){if(topShit-B.viewportOffset().top>0){if(B.readAttribute("data-src")!=""){B.src=B.readAttribute("data-src");B.removeAttribute("data-src");B.removeClassName("lazy")}}})})};
