function oninit1(){
  setScrollHorizontalOnDiv('div_encartsContent','ul_encarts',{nextButton:"a_btEncartDroite",prevButton:"a_btEncartGauche",scrollRetourAuto:true});
  initMoteurAcc();
}

/* IE6 hover sur les li */
metabarre_sfHover = function() {
 if ($("ul_colonneOffes1") != null) {
 var sfEls = $("ul_colonneOffes1").getElementsByTagName("LI");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onmouseover=function() {
  this.className+=" Offrehover";
 }
   sfEls[i].onmouseout=function() {
   this.className=this.className.replace(new RegExp(" Offrehover\\b"), "");
 }
 }
 }
 if ($("ul_colonneOffes2") != null) {
 var sfEls = $("ul_colonneOffes2").getElementsByTagName("LI");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onmouseover=function() {
  this.className+=" Offrehover";
 }
   sfEls[i].onmouseout=function() {
   this.className=this.className.replace(new RegExp(" Offrehover\\b"), "");
 }
 }
 }
}
if (window.attachEvent) window.attachEvent("onload", metabarre_sfHover);



function initMoteurAcc(){
  $$(".a_ongletMoteur").each(function(obj){
    obj.onclick=function(evt){
      var div=obj.getAttribute("div");
      $$(".div_moteurContenu").each(function(obj2){
        obj2.style.display="none";                
      });
      $(div).style.display="block";
      $$(".a_ongletMoteur").each(function(obj3){
        obj3.removeClassName("on");      
      });
      obj.addClassName("on");            
    };
  });
  if($("img_calendAcc")){
    $("img_calendAcc").onclick=function(evt){
      afficheEffaceCalendJsAcc("div_calendrier");     
    };
  }
  $$(".inpt_typeHeb").each(function(obj){
    obj.onclick=function(evrt){
      refreshCalDateArrAcc();
    };
  });
  $("frm_moteurHeb").onsubmit=function(evt){
    if($("inptHotel").checked==true) $("frm_moteurHeb").setAttribute("action","/liste-hotel.html"); 
  };
  $("frm_moteurRef").onsubmit=function(evt){
    if($("inpt_refHOTEL").checked==true || $("inpt_refPACK").checked==true || $("inpt_refBILL").checked==true) $("frm_moteurRef").setAttribute("action","/lst_prod.php");    
  }
}

function refreshCalDateArrAcc(){
	if ($("div_calendrier")){
		if($("inptGite").checked == true){
			setCalendrierGeneral("gites68","1","","G","div_calendrier",clicCalendJsAcc,"inpt_debAcc","","","inpt_duree","1","");
		}
		else{
			setCalendrierGeneral("gites68","1","","H","div_calendrier",clicCalendJsAcc,"inpt_debAcc","","","inpt_duree","1","");
		}
	}
}  
function clicCalendJsAcc(evt,jour,mois,annee,etat){
  $("inpt_debAcc").value=jour+mois+annee;
  afficheEffaceCalendJsAcc("div_calendrier");
}
function afficheEffaceCalendJsAcc(nomDiv){
	if($(nomDiv).style.display=='none'){
		$(nomDiv).style.display='block';
		refreshCalDateArrAcc();
	}else{
		$(nomDiv).style.display='none';
	}
}
