
window.onload=initMenu;function ajouteTableaux(t1,t2){for(var i=0;i<t2.length;i++){t1.push(t2[i]);}
return t1;}
function initMenu(){var mnu=document.getElementById("main_menu")
var scndMenu=document.getElementById("second_menu")
var listLi=mnu.getElementsByTagName("li");var listLiSecondMenu=scndMenu.getElementsByTagName("li");for(var i=0;i<listLi.length;i++){if(listLi[i].className=="rub cacheUl"){listLi[i].onmouseover=function(){rollOver_rubrique(this);}
listLi[i].onmouseout=function(){rollOut_rubrique(this);}}}
for(var i=0;i<listLiSecondMenu.length;i++){if(listLiSecondMenu[i].className=="rub cacheUl"){listLiSecondMenu[i].onmouseover=function(){rollOver_rubrique(this);}
listLiSecondMenu[i].onmouseout=function(){rollOut_rubrique(this);}}}}
function rollOver_rubrique(o){o.className="montreUl";var oIFR=document.getElementById(o.id+"I");if(oIFR!=null)
{var oUl=o.getElementsByTagName("ul")
if(oUl.length>0)
{oIFR.style.height=oUl[0].clientHeight+"px";oIFR.style.width=oUl[0].clientWidth+"px";oUl[0].style.zindex=900;}
oIFR.style.top=o.style.top;oIFR.style.left=0;oIFR.style.visibility='visible';oIFR.style.position='absolute';oIFR.style.zindex=40;}
o.getElementsByTagName("a")[0].style.backgroundPosition="0px -26px";}
function rollOut_rubrique(o){o.className="cacheUl";o.getElementsByTagName("a")[0].style.backgroundPosition="0px 0px";var oIFR=document.getElementById(o.id+"I");if(oIFR!=null)
{oIFR.style.visibility='hidden';}}
function switchlanguage(lg)
{mylocation=window.location.href.replace("/language/fr-FR","");mylocation=mylocation.replace("/language/de-DE","");window.location.href=mylocation.replace("/Default.aspx","/language/"+lg+"/Default.aspx");}
function masqueSelect(cache)
{var browser=navigator.appName;var b_version=navigator.appVersion;if(browser!="Microsoft Internet Explorer"||b_version<=4)
{return;}
var ctrls=document.getElementsByTagName("select");for(var i=0;i<ctrls.length;i++)
{if(ctrls[i].className.indexOf("selectCache")>=0)
{if(cache)
{ctrls[i].style.display="none";}
else
{ctrls[i].style.display="";}}}}
function ChangerQuantite(blnAugmenter,intQuantiteCommandable,intMultipleDeVente,tagID)
{var inputText=document.getElementById(tagID);var intQte=parseInt(inputText.value,10);if(blnAugmenter){if(intQte<intQuantiteCommandable){var quantite;if(intMultipleDeVente==1)
quantite=intQte+intMultipleDeVente;else
quantite=(intQte==1)?intMultipleDeVente:intQte+intMultipleDeVente;if(quantite>intQuantiteCommandable)quantite=intQuantiteCommandable;var strQuantite=String(quantite);inputText.value=strQuantite;}}
else{if(intQte>intQuantiteCommandable){var quantite2=intQte-intMultipleDeVente;if(quantite2<=0)quantite2=1;var strQuantite2=String(quantite2);inputText.value=strQuantite2;}}}
function simulateClick(cb){var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);cb.dispatchEvent(evt);}
function AfficherBulle(tag,visible){var strId=new String();var strTagId=new String();var strPrefix=new String();strTagId=tag.id;intPos=strTagId.lastIndexOf('_');strPrefix=strTagId.substr(0,intPos+1);strDivId=strPrefix+"div"+strTagId.substr(intPos+1,strTagId.length-(intPos+1));var divTag=document.getElementById(strDivId);divTag.style.width='150px';if(visible){divTag.style.visibility='visible';}
else divTag.style.visibility='hidden';}
function OuvrirPopup(page,largeur,hauteur)
{var maFenetre=window.open(page,'zoom','toolbar=no,directories=no,menubar=no,scrollbars=no,width='+largeur+',height='+hauteur);}
function JouerFlash()
{var fond=document.getElementById("Header1_imgFond");fond.style.visibility='hidden';fond.style.position='absolute';var movie=window.document.mast;movie.style.visibility='visible';movie.style.position='relative';movie.LoadMovie(0,"/images/flash/mast.swf");}
function clickOnEnter(event,clickHandler)
{NS4=(document.layers)?true:false;var code=0;if(NS4)
code=event.which;else
code=event.keyCode;if(code==13)
{clickObj=document.getElementById(clickHandler);if(clickObj)
{clickObj.focus();clickObj.click();}
return(false);}}
function clickOnEnterAutoComplete(event,clickHandler)
{NS4=(document.layers)?true:false;var code=0;if(NS4)
code=event.which;else
code=event.keyCode;if(code==13)
{clickObj=document.getElementById(clickHandler);if(clickObj)
{clickObj.focus();var browser=navigator.appName;var b_version=navigator.appVersion;if(browser=="Microsoft Internet Explorer")
{clickObj.click();}
else
{simulateClick(clickObj);event.stopPropagation();event.preventDefault();}}
return(false);}}
function focusOnEnter(event,clickHandler)
{clickObj=document.getElementById(clickHandler);if(clickObj){clickObj.focus();}
return(false);}
function clearText(obj)
{obj.value="";}
function clearDefautText(obj,texteParDefaut)
{if(obj.value==texteParDefaut)
{obj.value="";}}