if(typeof(console)=="undefined"){
	console = {
		debug:function(){},
		warn:function(){}
	};
}




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  
  var i,j=0,x,a=MM_swapImage.arguments; 
  if(a[0] != onglet){
    document.MM_sr=new Array; 
    for(i=0;i<(a.length-2);i+=3)
      if ((x=MM_findObj(a[i]))!=null){
	    document.MM_sr[j++]=x;
	    if(!x.oSrc) x.oSrc=x.src;
	    x.src=a[i+2];
	  }
  }
}



function selectOnglet() {
  if (onglet != "") {
    switch (onglet) {
      case "accueil" :
        imgOnglet = "/images/accueil-on.gif";
        break;
      
      case "autotours" :
        imgOnglet = "/images/autotours-on.gif";
        break;  

      case "motoneige" :
        imgOnglet = "/images/motoneige-on.gif";
        break; 
            
      case "vols" :
        imgOnglet = "/images/vols-on.gif";
        break; 

      case "hebergement" :
        imgOnglet = "/images/hebergement-on.gif";
        break; 

      case "voitures" :
        imgOnglet = "/images/voitures-on.gif";
        break; 
		      
      case "campingcars" :
        imgOnglet = "/images/campingcars-on.gif";
        break; 
    }
  document[onglet].src = imgOnglet;
  }
}

function chargement(){
  MM_preloadImages('images/accueil-over.gif','images/accueil-on.gif','images/autotours-over.gif','images/autotours-on.gif','images/motoneige-over.gif','images/motoneige-on.gif','images/vols-over.gif','images/vols-on.gif','images/hebergement-over.gif','images/hebergement-on.gif','images/voitures-over.gif','images/voitures-on.gif','images/campingcars-over.gif','images/campingcars-on.gif','ab_b-devis-2.jpg','ab_b-envoyer-2.jpg','ab_b-favoris-2.jpg','ab_b-itineraire-2.jpg','ab_b-print-2.jpg','ab_b-prix-2.jpg');
  selectOnglet();	

}

function addbookmark() {
  if (document.all)
  
    window.external.AddFavorite(location.href,document.title)
}

function pop_win(url,w,h,win_name,scroll)
		{
		if(scroll)
			scroll = 'yes';
		else
			scroll = 'auto';
  		var left = (screen.width-w)/2;
  		var top= (screen.height-h)/2;
  		window.open(url,win_name,'resizable=yes,scrollbars='+scroll+',menubar=no,status=no,width='+w+',height='+h+',left='+left+',top='+top);
		}
		
	<!--
//PLF-http://www.jejavascript.net/
function heure() { 
var Maintenant = new Date(); 
var fuseau = Maintenant.getTimezoneOffset();
var heures = Maintenant.getHours(); 
var minutes = Maintenant.getMinutes(); 
var secondes = Maintenant.getSeconds();
heures = heures + (fuseau/60)+1;
//heure été
var annee = Maintenant.getFullYear();
for (i=31; i >24; i--) {
dimanche = new Date(annee, 2, i);
if (dimanche.getDay()==0) break;
}
for (i=31; i >24; i--) {
dimanche2 = new Date(annee, 9, i);
if (dimanche2.getDay()==0) break;
}
if (Maintenant >= dimanche && Maintenant < dimanche2) heures = heures + 1;
if ( heures < 0 ) {
heures = 24 + heures;
}
if (heures > 23) {
heures = heures - 24;
}
//heure été
heures = ((heures < 10) ? " 0" : " ") + heures;
minutes = ((minutes < 10) ? ":0" : ":") + minutes; 
secondes = ((secondes < 10) ? ":0" : ":") + secondes; 
document.formhorloge.horloge.value = heures + minutes + secondes;
setTimeout("heure()",1000); 
}

function heure2() { 
var Maintenant = new Date(); 
var fuseau = Maintenant.getTimezoneOffset();
var heures = Maintenant.getHours(); 
var minutes = Maintenant.getMinutes(); 
var secondes = Maintenant.getSeconds();
heures = heures + (fuseau/60)-5;
//heure été
var annee = Maintenant.getFullYear();
for (i=31; i >24; i--) {
dimanche = new Date(annee, 2, i);
if (dimanche.getDay()==0) break;
}
for (i=31; i >24; i--) {
dimanche2 = new Date(annee, 9, i);
if (dimanche2.getDay()==0) break;
}
if (Maintenant >= dimanche && Maintenant < dimanche2) heures = heures + 1;
//heure été
heures = ((heures < 10) ? " 0" : " ") + heures;
minutes = ((minutes < 10) ? ":0" : ":") + minutes; 
secondes = ((secondes < 10) ? ":0" : ":") + secondes; 
document.formhorloge.horloge2.value = heures + minutes + secondes;
setTimeout("heure2()",1000); 
}
//-->