var newWin=null;function popUp(F,B,E,D,A){var C="";if(E=="console"){C="resizable,scrollbars=yes,height="+A+",width="+D}if(E=="fixed"){C="status,height="+A+",width="+D}if(E=="elastic"){C="toolbar,menubar,scrollbars,resizable,location,height="+A+",width="+D}if(E=="aide"){C="resizable,scrollbars=yes,height=360,width=420"}if(E=="cheval"){C="resizable,scrollbars=yes,height=650,width=780";B=Math.floor(Math.random()*256)}if(E=="entraineur"){C="resizable,scrollbars=yes,height=650,width=780";B=Math.floor(Math.random()*256)}if(E=="jockey"){C="resizable,scrollbars=yes,height=650,width=780";B=Math.floor(Math.random()*256)}if(E=="perf-cheval"){C="resizable,scrollbars=yes,height=650,width=780";B=Math.floor(Math.random()*256)}newWin=window.open(F,B,C);newWin.focus()}function initOverLabels(){if(!document.getElementById){return }var F,E,D,A,C;F=document.getElementsByTagName("label");for(var B=0;B<F.length;B++){if(F[B].className=="overlabel"){E=F[B].htmlFor||F[B].getAttribute("for");if(!E||!(D=document.getElementById(E))){continue}F[B].className="overlabel-apply";if(D.value!==""){hideLabel(D.getAttribute("id"),true)}D.onfocus=function(){hideLabel(this.getAttribute("id"),true)};D.onblur=function(){if(this.value===""){hideLabel(this.getAttribute("id"),false)}};F[B].onclick=function(){var H,G;H=this.getAttribute("for");if(H&&(G=document.getElementById(H))){G.focus()}}}}}function hideLabel(C,B){var D;var E=document.getElementsByTagName("label");for(var A=0;A<E.length;A++){D=E[A].htmlFor||E[A].getAttribute("for");if(D==C){E[A].style.textIndent=(B)?"-1000px":"0px";return true}}}window.onload=function(){setTimeout(initOverLabels,50)};function setActiveStyleSheet(D){var C,B,A;for(C=0;(B=document.getElementsByTagName("link")[C]);C++){if(B.getAttribute("rel").indexOf("style")!=-1&&B.getAttribute("title")){B.disabled=true;if(B.getAttribute("title")==D){B.disabled=false}}}}function getActiveStyleSheet(){var B,A;for(B=0;(A=document.getElementsByTagName("link")[B]);B++){if(A.getAttribute("rel").indexOf("style")!=-1&&A.getAttribute("title")&&!A.disabled){return A.getAttribute("title")}}return null}function getPreferredStyleSheet(){var B,A;for(B=0;(A=document.getElementsByTagName("link")[B]);B++){if(A.getAttribute("rel").indexOf("style")!=-1&&A.getAttribute("rel").indexOf("alt")==-1&&A.getAttribute("title")){return A.getAttribute("title")}}return null}function changeStylePolice(){var A=getActiveStyleSheet();YAHOO.util.Cookie.set("style",A,{path:"/",expires:"January 12, 2025",domain:document.domain.substr(document.domain.lastIndexOf("geny"))})}YAHOO.util.Event.onDOMReady(function(){var A=YAHOO.util.Cookie.get("style");var B=A?A:getPreferredStyleSheet();setActiveStyleSheet(B)});YAHOO.util.Event.addListener("dStyle","click",changeStylePolice);YAHOO.util.Event.addListener("lStyle","click",changeStylePolice);function sLang(){var A=new YAHOO.widget.Overlay("sLangOl",{context:["sLang","tl","bl"],visible:false});A.render();YAHOO.util.Event.addListener("sLang","mouseover",A.show,A,true);YAHOO.util.Event.addListener("sLang","mouseout",A.hide,A,true)}YAHOO.util.Event.onAvailable("sLang",sLang);function initOverLabels(){if(!document.getElementById){return }var D,C,B;D=YAHOO.util.Dom.getElementsByClassName("overlabel","label",document.getElementById("login"));for(var A=0;A<D.length;A++){C=D[A].htmlFor||D[A].getAttribute("for");if(!C||!(B=document.getElementById(C))){continue}D[A].className="overlabel-apply";if(B.value!==""){hideLabel(B.getAttribute("id"),true)}B.onfocus=function(){hideLabel(this.getAttribute("id"),true)};B.onblur=function(){if(this.value===""){hideLabel(this.getAttribute("id"),false)}};D[A].onclick=function(){var F,E;F=this.getAttribute("for");if(F&&(E=document.getElementById(F))){E.focus()}}}}function hideLabel(C,B){var D;var E=document.getElementsByTagName("label");for(var A=0;A<E.length;A++){D=E[A].htmlFor||E[A].getAttribute("for");if(D==C){E[A].style.textIndent=(B)?"-1000px":"0px";return true}}}function initConnexion(){setTimeout(initOverLabels,50)};
