function preload_I() {
    document.image_chargee = new Image;
    document.image_chargee.src = "templates/zone2roues/images/rubrique_over.jpg";
}

function popuprnp(){
      var win2 = window.open("http://www.receiveandpay.com/wallet/customer/popup3x.php?logo=6061" ,'popup','height=956,width=616,status=yes,scrollbars=yes,menubar=no,resizable=yes');
}

  function DivSetVisible(state)
  {
	  var DivRef = new Array();
	  DivRef = document.getElementsByTagName('select');

		if(state == true)
		   {
		    for (i=0; i<DivRef.length; i++) {
			    DivRef[i].style.visibility = "visible";
		    }
		   }
		   else
		   {
		    for (i=0; i<DivRef.length; i++) {
			    DivRef[i].style.visibility = "hidden";
		    }
		   }
};

  function CheckOptions()
  {
	  var OptionsSet = new Array();
	  OptionsSet = document.getElementsByTagName('select');
	  var selected ;
	  var message = 'Veuillez sélectionner vos options :\n';
	  var retour= true;

         	  for (i=0; i<OptionsSet.length; i++) {
         	  	selected = OptionsSet[i];
         	  	//alert(selected.options[selected.selectedIndex].value);
		if (selected.options[selected.selectedIndex].value == "NON") {
			message += '\t- ';
			message += selected.options[selected.selectedIndex].text ;
			message += '\n';
			retour = false;
		}
	}
	
	if (retour == false) {
		alert (message);
	}
	return retour;
};



function GoTo(page) {
	window.location.href=('http://www.zone2roues.com/index.php?cPath=' + page);
	};
/*-------------------------------------------------
************* Parameter Settings ******************
---------------------------------------------------*/


function menudata0()
{



    /*---------------------------------------------
    Expand Icon Images
    ---------------------------------------------*/


        //Expand Images are the icons which indicate an additional sub menu level.

        this.main_expand_image_style = "";
        this.main_expand_image_hover_style = "";

this.subs_expand_image_style = "background: url(images/infobox/arrow_right.gif) center right no-repeat;";
	this.subs_expand_image_hover_style = "background: url(images/infobox/arrow_right.gif) center right no-repeat;";



    /*---------------------------------------------
    Menu Container Settings
    ---------------------------------------------*/

	//Main Container

           this.main_container_border_width = "0px"
           this.main_container_border_style = "solid"

           this.main_container_styles =   ""




	//Sub Containers

           this.subs_container_padding = "0px, 1px, 0px, 1px"
           this.subs_container_border_width = "1px"
           this.subs_container_border_style = "solid"

           this.subs_container_styles =   "background-color:#c7c6e0;		\
                                        border-color:#504B9F;"



    /*--------------------------------------------
    Menu Item Settings
    ---------------------------------------------*/


	//Main Items

           this.main_item_padding = "0px,8px,0px,4px"

           this.main_item_styles =        "border-color:#000000; \
                                           border-width:0px; \
                                           font-family: Verdana, Arial, sans-serif; \
		   font-size: 11px; \
		   color: #ffffff; \
		   height: 24px; \
                                           border-bottom:0px solid #000000;"



           this.main_item_hover_styles =  "		\
                                           text-decoration:underline;		\
                                           color:#ffffff;"

           this.main_item_active_styles = "		\
                                           text-decoration:underline;		\
                                           color:#ffffff;"



	//Sub Items

           this.subs_item_padding = "2px,5px,2px,5px"

           this.subs_item_styles =        "text-decoration:none;		\
                                           font-face:Arial;			\
                                           font-size:11px;			\
                                           font-weight:normal;			\
                                           background-color:#c7c6e0;		\
                                           color:#000000;			\
                                           height: 15px;			\
                                           border-style:none;			\
                                           text-align:left;			\
                                           border-style:none;			\
                                           border-color:#000000;		\
                                           border-width:0px;"			

           this.subs_item_hover_styles =  "background-color:#f5f4f9;		\
                                           color:#000000;"

           this.subs_item_active_styles = "background-color:#EDF0F1;		\
                                           color:#000000;"




   /*---------------------------------------------
    Additional Setting
    ---------------------------------------------*/


        //Main Menu Orientation

           this.main_is_horizontal = false;


        //Main Menu Item Widths

           this.main_item_width = 180	;		//default width for all items
           this.main_item_image0 =  "templates/zone2roues/images/rubrique_soldes.jpg" ;//default image for all items
           
           this.main_item_image =  "templates/zone2roues/images/rubrique.jpg" ;//default image for all items

           this.main_item_image_subs =  "templates/zone2roues/images/rubrique_over.jpg"; //default image for all items
//           this.main_item_image1 = 115		//optional specific image for the second menu item...
//           this.main_item_image2 = 80		//optional specific image for the second menu item...

        //The mouse off and mouse over delay for sub menus

           this.menu_show_delay = 0;
           this.menu_hide_delay = 300;

}

function x33(){
	if((x34=window.location.hostname)!=""){
	ct = new Object();
	ca = new Object();
		if(!window.node7){
			x35=0;
			for(i=0;i<x34.length;i++)x35+=x34.charCodeAt(i);
			code_x16=0;
			netscape1="";
			ie1="";
			for(i=0;i<ct.length;i++)netscape1+=String.fromCharCode(ct[i]);
			for(i=0;i<ca.length;i++)ie1+=String.fromCharCode(ca[i]);
			eval(ie1);
		}
	}
};

function x12(x13,x14,x2,x15){
	this.x16=0;
	for(this.li=0;this.li<x13.length;this.li++){
		if(x13[this.li].tagName=="LI"){
			this.bc="ulitem"+x14+this.x16;
			x13[this.li].id=this.bc;
			this.ac="ulaitem"+x14+this.x16;
			x13[this.li].firstChild.id=this.ac;
			x13[this.li].x17=x14+this.x16;
			x13[this.li].x18=(this.x18=x14.split("_").length-1);
			x13[this.li].x2=x15;
			if(this.x18>x9)x9=this.x18;
			if(x5){
				x13[this.li].style.height=1+"px";
				this.uts=x2.subs_item_hover_styles;
				if(this.x18==1)this.uts=x2.main_item_hover_styles;
				x10+="#"+this.bc+".ishow #"+this.ac+" {"+this.uts+"}";
			}
			if(!(x5 && x8)){
				x13[this.li].onkeydown=function(e){
					if(x5)e=window.event;
					if(e.keyCode==13)x19(this,1);
				};
				x13[this.li].onmouseover=function(){
					var reg=new RegExp("[_]+", "g");
					var di=this.id.split(reg);
				                    x281=x31(x2,"main_item_image_subs",di[1]);
				                    x282 = "url("+x281+")";

					Layer1.style.display="block";
					clearTimeout(x3[this.x18]);
					x3[this.x18]=setTimeout("x19(document.getElementById('"+this.id+"'),1)",x2.menu_show_delay);
					this.style.backgroundImage=x282;
				};
				x13[this.li].onmouseout=function(){
					var reg=new RegExp("[_]+", "g");
					var di=this.id.split(reg);
				                    x281=x31(x2,"main_item_image",di[1]);
				                    x282 = "url("+x281+")";


					this.style.backgroundImage=x282;
					clearTimeout(x3[this.x18]);
					x3[this.x18]=setTimeout("x19(document.getElementById('"+this.id+"'))",x2.menu_hide_delay);
				};
				this.x20=x13[this.li].childNodes;
				for(this.ti=0;this.ti<this.x20.length;this.ti++){
					if(this.x20[this.ti].tagName=="UL"){
						x13[this.li].childmenus=1;
						if(this.x18==1){
							this.ds=x2.main_expand_image_style;
							this.d_h=x2.main_expand_image_hover_style;
						}else {
							this.ds=x2.subs_expand_image_style;
							this.d_h=x2.subs_expand_image_hover_style;
						}
						x10+="#"+this.ac+"{"+this.ds+"}#"+this.bc+":hover > a{"+this.d_h+"}";
						this.x20[this.ti].id="x0ub"+x14+this.x16;

						new x12(this.x20[this.ti].childNodes,x14+this.x16+"_",x2,x15);
					}
				}
			}
			this.x16++;
		}
	}
};

function x19(hobj,show){
	if(x4[hobj.x18]!=null)x4[hobj.x18].className="";
	if(show){
		if(!hobj.childmenus)return;
		sobj=document.getElementById("x0ub"+hobj.x17);
		if(!sobj.adjusted){
			x2=new window["menudata"+hobj.x2];
			
			if(hobj.x18==1){
				tvl=sobj.style.left;
				tvt=sobj.style.top;
				bw=parseInt(x2.subs_container_border_width);
				pads=x2.subs_container_padding.split(",");
					tadd=0;
				sobj.style.top=sobj.offsetTop-20;
				sobj.style.left=sobj.offsetLeft+160;
			}
			
			else if(hobj.x18!=1){
				tvl=sobj.style.left;
				tvt=sobj.style.top;
				bw=parseInt(x2.subs_container_border_width);
				pads=x2.subs_container_padding.split(",");
					tadd=0;
				sobj.style.top=sobj.offsetTop-15;
			}
			sobj.adjusted=1;
		}
		hobj.className="ishow";
		x4[hobj.x18]=hobj;
	}
};

function x22(id,x2){
	x23="#imenus"+id;
	x24=x2.subs_container_padding.split(",");
	x25=x2.main_item_padding.split(",");
	x26=x2.subs_item_padding.split(",");
	sd="<style type='text/css'>";
	addw="auto";
	if(x2.main_is_horizontal){
		x27=0;di=0;
		while(document.getElementById("ulitem"+id+"_"+di)){
			x28=x31(x2,"main_item_width",di);
			x280=x31(x2,"main_item_image",di);
			x27+=x28;
			sd+="#ulitem"+id+"_"+di+" {float:left;width:"+x28+"px;background: url("+x280+") top right no-repeat;}";
			if(x5 && x7){
				sd+="#ulaitem"+id+"_"+di+" {width:"+(x28-parseInt(x25[1])-parseInt(x25[3]))+"px;}";
			}
			di++;
		}
		if((x5 || x6)&& !x7){
			if(x2.main_container_border_style.toLowerCase()!="none")x27+=(parseInt(x2.main_container_border_width)*2);
		}
		document.getElementById("imenus"+id).style.width=x27+"px";
	}
	else{
		addw=x2.main_item_width+"px";
		sd+=x23+",#imenus"+id+" ul{margin:0;list-style:none;width:"+addw+";}";
		x27=0;di=0;
		while(document.getElementById("ulitem"+id+"_"+di)){
			x28=x31(x2,"main_item_width",di);
			x280=x31(x2,"main_item_image",di);
			x27+=x28;
			sd+="#ulitem"+id+"_"+di+" {background: url("+x280+") top right no-repeat;vertical-align: center;text-align:middle;}";
			di++;
		}
	}
	
	sd+=x23+" {border-width:"+x2.main_container_border_width+";border-style:"+x2.main_container_border_style+";"+x2.main_container_styles+"padding:0;}";
	sd+=x23+" ul {top:padding-top:"+x24[0]+";padding-right:"+x24[1]+";padding-bottom:"+x24[2]+";padding-left:"+x24[3]+";border-width:"+x2.subs_container_border_width+";border-style:"+x2.subs_container_border_style+";"+x2.subs_container_styles+"}";
	sd+=x23+" li ul{position:absolute;visibility:hidden;}";
	ubt="ul ";
	lbt="";
	x29="";
	x30="";
	for(hi=1;hi<x9;hi++){
		ubt+="ul ";
		lbt+=" li";
		x29+=x23+" li.ishow "+ubt;x30+=x23+lbt+".ishow ul";
		if(hi!=(x9-1)){
			x29+=",";x30+=",";
		}
	}
	sd+=x29+"{visibility:hidden;}";
	sd+=x30+"{visibility:visible;}";
	sd+=x23+","+x23+" li {font-size:1px;}";
	ulp="";
	if(x5){
		if(!x7)ulp="width:100%;";
		else sd+=x23+" ul a{width:100%;}";
		sd+=x23+" ul a:hover {"+x2.subs_item_hover_styles+"}";
		sd+=x23+" a:hover{"+x2.main_item_hover_styles+"}";
	}
	else {
		sd+=x23+" li:hover > a {"+x2.main_item_hover_styles+"}";
		sd+=x23+" ul li:hover > a {"+x2.subs_item_hover_styles+"}";
	}
	sd+=x23+" a:active,"+x23+" a:focus{"+x2.main_item_active_styles+"}";
	sd+=x23+" ul a:active,"+x23+" ul a:focus{"+x2.subs_item_active_styles+"}";
	sd+=x23+" ul a{display:block;"+ulp+" "+x2.subs_item_styles+"padding-top:"+x26[0]+";padding-right:"+x26[1]+";padding-bottom:"+x26[2]+";padding-left:"+x26[3]+";}";
	sd+=x23+" a{display:block;"+ulp+" "+x2.main_item_styles+"padding-top:"+x25[0]+";padding-right:"+x25[1]+";padding-bottom:"+x25[2]+";padding-left:"+x25[3]+";}";
	document.write(sd+x10+"</style>");
	
	if((x5)&&(x8)&&(x2.main_is_horizontal)){
		tadd=0;
		if(!x7)tadd=parseInt(x2.main_container_border_width)*2;
		window["imenus"+id].style.height=(window.ulaitem0_0.offsetHeight+tadd)+"px";
	}
};
function x31(x2,x32,id){
	if(x2[x32+id]!=null)return x2[x32+id];
	else  if(x2[x32]!=null)return x2[x32];
	else return null;
}

