

   var tab=new Array(6)

   function afficher(x){ 
        startIndex=1;    
        color_select="#C6BEB3";              
        color_no_select="#dfdfdf";    

        if (navigator.userAgent.indexOf("Opera")!=-1  && document.getElementById) type="OP";
	if (document.all) type="IE"
	if (document.layers) type="NN";
	if (!document.all && document.getElementById) type="MO";

       if (type=="MO" || type=="OP") {
          for (k=startIndex; k<6; k++){
                 for (i=0;i<=2; i++) document.getElementById("menu"+(k+1)+i).style.backgroundColor=color_no_select;
                 }
          for (i=0;i<=2; i++) document.getElementById("menu"+(x+1)+i).style.backgroundColor=color_select;
       }
       if (type=="IE") {
                // document.all[name].innerHTML=msg;
	  for (k=startIndex; k<6; k++){
                 for (i=0;i<=2; i++)  document.all["menu"+(k+1)+i].style.backgroundColor= color_no_select;
                 }
          for (i=0;i<=2; i++)  document.all["menu"+(x+1)+i].style.backgroundColor=color_select;
       }
       if (type=="NN") {
             for (k=startIndex; k<6; k++){
                 for (i=0;i<=2; i++) document.getElement("menu"+(k+1)+i).bgColor= color_no_select;
                 }
          for (i=0;i<=2; i++) document.getElement("menu"+(x+1)+i).bgColor=color_select;
	}


         //----------------------------------------------
         document.images["carte"].src= tab[x].src


         }
     
   function makeImage(name){
    img=new Image()
    img.src="/img/map/"+name
    return img
   }
  
 
  function preload(){     
      tab[0]=makeImage("1.gif")
      tab[1]=makeImage("2.gif")
      tab[2]=makeImage("3.gif")
      tab[3]=makeImage("4.gif")
      tab[4]=makeImage("5.gif")
      tab[5]=makeImage("6.gif")

      afficher(1);   
      //document.images["carte"].src= tab[1].src
  }




