var parentImgPath=null;
var parentLabel=null;
var parentActiveLabel=null;
var pageTabs=["homeArticles","accueil","essentielBook","jurisprudence","savoirfaire","outilsBook","carrieresBook","magazine"];
var openPagesTab=new Object();
var menuTimeout=3000;
function toggleOut(imgPath,label,activeLabel){openPagesTab[label]=0;
setTimeout("executeToggleOut('"+imgPath+"','"+label+"','"+activeLabel+"')",menuTimeout)
}function executeToggleOut(imgPath,label,activeLabel){if(openPagesTab[label]==0){doBackground(imgPath,label,"grau");
doMenu(label,activeLabel,"out")
}}function toggleOver(imgPath,label,activeLabel){for(var pageTab in pageTabs){openPagesTab[pageTabs[pageTab]]=0;
executeToggleOut(imgPath,pageTabs[pageTab],activeLabel)
}openPagesTab[label]=1;
parentImgPath=imgPath;
parentLabel=label;
parentActiveLabel=activeLabel;
doBackground(imgPath,label,"rot");
doMenu(label,activeLabel,"over")
}function resetMenu(){parentLabel=parentActiveLabel
}function toggleChildOut(){openPagesTab[parentLabel]=0;
toggleOut(parentImgPath,parentLabel,parentActiveLabel)
}function toggleChildOver(){openPagesTab[parentLabel]=1;
doBackground(parentImgPath,parentLabel,"rot");
doMenu(parentLabel,parentActiveLabel,"over")
}function doBackground(imgPath,label,colour){var links=document.getElementById(label+"-links-inaktiv");
var innen=document.getElementById(label+"-innen-inaktiv");
var rechts=document.getElementById(label+"-rechts-inaktiv");
if((typeof links!="undefined")&&(links!=null)){linksImg=links.style.backgroundImage="url('"+imgPath+"/framework/skins/ha/images/elemente/button_links_"+colour+"_01.png')";
innen.style.backgroundImage="url('"+imgPath+"/framework/skins/ha/images/elemente/button_innen_"+colour+"_01.png')";
rechts.style.backgroundImage="url('"+imgPath+"/framework/skins/ha/images/elemente/button_rechts_"+colour+"_01.png')"
}}function doMenu(label,activeLabel,type){var active=document.getElementById(activeLabel+"-menu");
var over=document.getElementById(label+"-menu");
if(active!=over){if((typeof active!="undefined")&&(active!=null)){if(type=="over"){active.style.display="none"
}else{if(type=="out"){active.style.display="block"
}}}if((typeof over!="undefined")&&(over!=null)){if(type=="over"){over.style.display="block"
}else{if(type=="out"){over.style.display="none"
}}}}else{if((typeof active!="undefined")&&(active!=null)){active.style.display="block"
}}}function clearDefaultandCSS(el){if(el.defaultValue==el.value){el.value=""
}if(el.style){el.style.cssText=""
}};