function oninit1(){ 
   //setScrollHorizontalOnLstGenerePage("div_contentPromoAcc","ul_promoArticleAcc",{idDivPastePage:"div_PromoAcc",position:"top"});
	setScrollHorizontalOnLstGenerePage("div_PromoAcc","ul_promoArticleAcc",{idDivPastePage:"div_PromoAcc",position:"top"});
}

function lanceRecherche(){
  document.location.href='/liste?'+getQueryStringByForm($('frm_accGite'));
}
function lanceRechercheChambre(){
  document.location.href='/liste?'+getQueryStringByForm($('frm_accChambre'));
}

function chargeMoteur(){
  if ($("calendrierMoteurGite")) setCalendrierGeneral("gites71","1","","G","calendrierMoteurGite",clicCalendJsGite,"inpt_dateGite","","","lst_nbjGite","1","");
  if ($("calendrierMoteurChambre")) setCalendrierGeneral("gites71","1","","H","calendrierMoteurChambre",clicCalendJsChambre,"inpt_dateChambre","","","lst_nbjChambre","1","");
  defActionOngletsMoteur();
}

function defActionOngletsMoteur(){
  $("li_moteurGite").onclick=function(evt){
    $("frm_accGite").style.display="block";
    $("frm_accChambre").style.display="none";
    $$(".li_ongletMoteur").each(function(obj){obj.removeClassName("li_ongletMoteurOn");});
    $("li_moteurGite").addClassName("li_ongletMoteurOn");
  };
  $("li_moteurChambre").onclick=function(evt){
    $("frm_accGite").style.display="none";
    $("frm_accChambre").style.display="block";
    $$(".li_ongletMoteur").each(function(obj){obj.removeClassName("li_ongletMoteurOn");});
    $("li_moteurChambre").addClassName("li_ongletMoteurOn");
  };
}

function clicCalendJsGite(evt,jour,mois,annee,etat){
  $("inpt_dateGite").value=jour+"/"+mois+"/"+annee;
  afficheEffaceCalendJs("calendrierMoteurGite");
}
function clicCalendJsChambre(evt,jour,mois,annee,etat){
  $("inpt_dateChambre").value=jour+"/"+mois+"/"+annee;
  afficheEffaceCalendJs("calendrierMoteurChambre");
}

function afficheEffaceCalendJs(nomDiv){
  if($(nomDiv).showing==true){
    Effect.BlindUp(nomDiv);       
    $(nomDiv).showing=false;
  }
  else{
    Effect.BlindDown(nomDiv);       
    $(nomDiv).showing=true;
  }
}
