YAHOO.namespace("elneruda");var loadingPanel="<table border='0' cellspacing='0' cellpadding='0' width='100%' heigh='100%'><tr><td align='center' valign='100%'><b>Chargement<b><br /><img border='0' src='./includes/js/yui/build/tabview/assets/loading.gif'</td></tr></table>";
function alertBox(a,c,d){function b(){this.hide()}if(YAHOO.elneruda.alertBox)YAHOO.elneruda.alertBox=null;YAHOO.elneruda.alertBox=new YAHOO.widget.SimpleDialog("simpledialog1",{width:"350px",fixedcenter:true,visible:false,draggable:false,close:true,text:c,icon:d,constraintoviewport:true,modal:true,zIndex:999,buttons:[{text:"OK",handler:b,isDefault:true}]});YAHOO.elneruda.alertBox.setHeader(a);YAHOO.elneruda.alertBox.render(document.body);a=new YAHOO.util.KeyListener(document,{keys:27},{fn:b,scope:YAHOO.elneruda.alertBox,
correctScope:true},"keyup");c=new YAHOO.util.KeyListener(document,{keys:13},{fn:b,scope:YAHOO.elneruda.alertBox,correctScope:true},"keyup");a.enable();c.enable();YAHOO.elneruda.alertBox.show()}
function confirmBox(a,c,d,b,e){function f(){this.hide();typeof b=="function"&&b()}function g(){this.hide();typeof e=="function"&&e()}YAHOO.elneruda.confirmBox&&YAHOO.elneruda.confirmBox.destroy();YAHOO.elneruda.confirmBox=new YAHOO.widget.SimpleDialog("simpledialog1",{width:"300px",fixedcenter:true,visible:false,draggable:true,close:true,text:c,icon:d,constraintoviewport:true,buttons:[{text:"Ok",handler:f,isDefault:true},{text:"No",handler:g}]});YAHOO.elneruda.confirmBox.setHeader(a);YAHOO.elneruda.confirmBox.render(document.body);
YAHOO.elneruda.confirmBox.show()}function elNerudaInit(){if(!YAHOO.elneruda.wait){YAHOO.elneruda.wait=new YAHOO.widget.Panel("wait",{width:"240px",fixedcenter:true,close:false,draggable:false,modal:true,visible:false});YAHOO.elneruda.wait.setHeader("Chargement, patientez...");YAHOO.elneruda.wait.setBody('<img src="./includes/js/yui/build/tabview/assets/interstitial_loading.gif"/>');YAHOO.elneruda.wait.render(document.body)}}
function homeInit(){elNerudaInit();YAHOO.util.Event.onDOMReady(function(){YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName("linkOff"),"click",function(){setTimeout(function(){YAHOO.elneruda.wait.hide();alertBox("Erreur","Une erreur est survenue","warnicon")},1E4);YAHOO.elneruda.wait.show()})})}
function alertError(a){switch(a){case "fr":alertBox("Location","Une erreur est survenue","warnicon");break;case "en":alertBox("Location","An error has occurred","warnicon");break;default:alertBox("Location","Une erreur est survenue","warnicon");break}}function none(){};