function pub1()
{
google_ad_client = "pub-4818041889471559";
google_ad_slot = "8998673485";
google_ad_width = 160;
google_ad_height = 600;
document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js" ></script>');
}

function pub2()
{
var uri = 'http://impfr.tradedoubler.com/imp?type(js)g(16239088)a(1081670)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function pub3()
{
var uri = 'http://impfr.tradedoubler.com/imp?type(js)g(17262630)a(1081670)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function pub4()
{
var uri = 'http://impfr.tradedoubler.com/imp?type(js)g(17163898)a(1081670)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function pub5()
{
var uri = 'http://impfr.tradedoubler.com/imp?type(js)g(17262788)a(1081670)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function pub6()
{
google_ad_client = "pub-4818041889471559";
google_ad_slot = "1649274197";
google_ad_width = 200;
google_ad_height = 200;
document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js" ></script>');
}

function pub71()
{
google_ad_client = "pub-4818041889471559";
google_ad_slot = "2764840098";
google_ad_width = 468;
google_ad_height = 60;
document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js" ></script>');
}

function pub7()
{
var uri = 'http://impfr.tradedoubler.com/imp?type(js)g(17562568)a(1081670)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function moteur_sejours()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'moteur-multi/voyages-voyage-sejours.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function moteur_vol()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'script_vol/moteur_vol.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function moteur_vol01()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'script_vol/moteur_vol_01.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function moteur_vol_bis()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'script_vol_bis/moteur-vol-bis.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function moteur_hotel()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'script_hotel/moteur_hotel.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function moteur_week_end()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'script_week_end/moteur_week_end.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function moteur_vol_hotel()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'script_vol_hotel/moteur_vol_hotel.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function moteur_voiture()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'script_voiture/moteur_voiture.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function changeliste()
{
choix=document.getElementById("listeA").value;
t='<select name="listeB" id="listeB" style="width:230px;">';
for(i=0;i<liste[choix].length;i++)
{
t+="<option value=\""+[i]+"\">"+liste[choix][i]+"</option>";
}
document.getElementById("listeB_div").innerHTML=t+'</select>';
}
function set_URL()
{
niveauA = document.getElementById('listeA').options[document.getElementById('listeA').selectedIndex].value;
niveauB = document.getElementById('listeB').options[document.getElementById('listeB').selectedIndex].value;
urldepart = idDepart[niveauA][document.getElementById('listeB').options[document.getElementById('listeB').selectedIndex].value];
urlproduit = idProduit[0][0];
window.location.replace('http://www.voyages-voyage.com/formulaire/bdc.php?prod='+urlproduit+'&dep='+urldepart);
}

function showhide (id, id2, id3, id4)
	{
		if (id) {
			document.getElementById(id).style.display='none';
		}
		if (id2) {
			document.getElementById(id2).style.display='block';
		}
		if (id3) {
			document.getElementById(id3).style.display='none';
		}
		if (id4) {
			document.getElementById(id4).style.display='block';
		}
	}

function PopupCentrer(page,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

function BasPage()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'bas-page.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function Thematique()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'thematique.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function VilleDepart()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'villedepart.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function DescriptifProduit()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'descriptifproduit.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function Destinations()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'destinations.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function TopDestinations()
{
var uri = 'htt'+'p://www.voy'+'ages-vo'+'yage.com/' + 'top-destinations.js';
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}

function changementOngletMenu(IdOnglet,IdClick)
	{
	document.getElementById(IdClick).style.display = "block";
	document.getElementById(IdOnglet).style.display = "none";
	if(IdClick=='vol_hotel'){
	document.getElementById('onglet_droit').style.backgroundColor = "#e9f0c0";
	document.getElementById('onglet_gauche').style.backgroundColor = "#bcccd8";
	}
	else{
	document.getElementById('onglet_gauche').style.backgroundColor = "#e9f0c0";
	document.getElementById('onglet_droit').style.backgroundColor = "#bcccd8";
	}
	}
function multiClass(eltId) {
    arrLinkId = new Array('_0','_1','_2'	);
    intNbLinkElt = new Number(arrLinkId.length);
    arrClassLink = new Array('current','ghost');
    strContent = new String()
        for (i=0; i<intNbLinkElt; i++) {
            strContent = "menu"+arrLinkId[i];
            if ( arrLinkId[i] == eltId ) {
                document.getElementById(arrLinkId[i]).className = arrClassLink[0];
                document.getElementById(strContent).className = 'on content';
            }
            else {
            document.getElementById(arrLinkId[i]).className = arrClassLink[1];
            document.getElementById(strContent).className = 'off content';
            }
        }
}

function changeOnglet(_this){
	var getOnglets 	= document.getElementById('mes_onglets_moteur').getElementsByTagName('li');
	for(var i = 0; i < getOnglets.length; i++){
		if(getOnglets[i].id){
			if(getOnglets[i].id == _this.id){
				getOnglets[i].className = 'mon_onglet_moteur_selected';
				document.getElementById('c' + _this.id).style.display 			= 'block';
			}
			else{
				getOnglets[i].className = 'mon_onglet_moteur';
				document.getElementById('c' + getOnglets[i].id).style.display 	= 'none';
			}
		}
	}			
}


function changePage(page, nb) {
	
	var nbpages=nb;
	var pagecur=page;
	var lpdr="";
	
	if (pagecur>1) {
	   lpdr=lpdr+'<a href="#retour_haut" onclick="changePage('+(pagecur-1)+', '+(nbpages)+')" class="fleche"><b>&laquo;</b></a> '; 
	}
	if (nbpages < 10) {
		for (ipage=1;ipage<=nbpages;ipage++) {
			if (ipage==pagecur) {
				lpdr=lpdr+'<a href="#retour_haut" onclick="changePage('+ipage+', '+nbpages+')" class="PageOn"><b>'+ipage+'</b></a> ';
			}else{  
				lpdr=lpdr+'<a href="#retour_haut" onclick="changePage('+ipage+', '+nbpages+')"><b>'+ipage+'</b></a> ';
			}
		}
	} else {
		var debPage = pagecur - 5;
		var maxPage = pagecur + 4;
		if(pagecur<4){ maxPage=maxPage+(4-pagecur); }
		if(pagecur>(nbpages-4)){ debPage=debPage-(4-(nbpages-pagecur)); }
		if (debPage < 1) { debPage=1; }
		if (maxPage > nbpages) { maxPage = nbpages; }
		if (debPage > 1) {
			lpdr=lpdr+'<a href="#retour_haut" onclick="changePage(1, '+nbpages+')"><b>1</b></a> ... ';
		}
		for (ipage=debPage;ipage<=maxPage;ipage++) {
			if (ipage==pagecur) {
				lpdr=lpdr+'<a href="#retour_haut" onclick="changePage('+ipage+', '+nbpages+')" class="PageOn"><b>'+ipage+'</b></a> ';
			}else{
				lpdr=lpdr+'<a href="#retour_haut" onclick="changePage('+ipage+', '+nbpages+')"><b>'+ipage+'</b></a> ';
			}
		}
		if ((pagecur + 4) < nbpages) {
			lpdr=lpdr+'... <a href="#retour_haut" onclick="changePage('+nbpages+', '+nbpages+')" ><b>'+nbpages+'</b></a> ';
		}
	}
	if (pagecur<nbpages) {
		lpdr=lpdr+'<a href="#retour_haut" onclick="changePage('+(pagecur+1)+', '+nbpages+')" class="fleche"><b>&raquo;</b></a>';
	}
	document.getElementById('p_pages').innerHTML=lpdr;
	for(i=1;i<=nb;i++){
		document.getElementById('p_'+i).style.display="none";
	}
	document.getElementById('p_'+page).style.display="";
	location.href='#retour_haut'; 
}

function changePageG(page, nb) {
	
	var nbpages=nb;
	var pagecur=page;
	var lpdr="";
	
	if (pagecur>1) {
	   lpdr=lpdr+'<a onclick="changePageG('+(pagecur-1)+', '+(nbpages)+')" class="flecheG"><b>&laquo;</b></a> '; 
	}
	if (nbpages < 10) {
		for (ipage=1;ipage<=nbpages;ipage++) {
			if (ipage==pagecur) {
				lpdr=lpdr+'<a onclick="changePageG('+ipage+', '+nbpages+')" class="PageOnG"><b>'+ipage+'</b></a> ';
			}else{  
				lpdr=lpdr+'<a onclick="changePageG('+ipage+', '+nbpages+')"><b>'+ipage+'</b></a> ';
			}
		}
	} else {
		var debPage = pagecur - 5;
		var maxPage = pagecur + 4;
		if(pagecur<4){ maxPage=maxPage+(4-pagecur); }
		if(pagecur>(nbpages-4)){ debPage=debPage-(4-(nbpages-pagecur)); }
		if (debPage < 1) { debPage=1; }
		if (maxPage > nbpages) { maxPage = nbpages; }
		if (debPage > 1) {
			lpdr=lpdr+'<a onclick="changePageG(1, '+nbpages+')"><b>1</b></a> ... ';
		}
		for (ipage=debPage;ipage<=maxPage;ipage++) {
			if (ipage==pagecur) {
				lpdr=lpdr+'<a onclick="changePageG('+ipage+', '+nbpages+')" class="PageOnG"><b>'+ipage+'</b></a> ';
			}else{
				lpdr=lpdr+'<a onclick="changePageG('+ipage+', '+nbpages+')"><b>'+ipage+'</b></a> ';
			}
		}
		if ((pagecur + 4) < nbpages) {
			lpdr=lpdr+'... <a onclick="changePageG('+nbpages+', '+nbpages+')" ><b>'+nbpages+'</b></a> ';
		}
	}
	if (pagecur<nbpages) {
		lpdr=lpdr+'<a onclick="changePageG('+(pagecur+1)+', '+nbpages+')" class="flecheG"><b>&raquo;</b></a>';
	}
	document.getElementById('p_pagesG').innerHTML=lpdr;
	for(i=1;i<=nb;i++){
		document.getElementById('pp_'+i).style.display="none";
	}
	document.getElementById('pp_'+page).style.display="";
	//location.href='#retour_haut'; 
}
function AddToFavoris(anchor){if(navigator.appName!='Microsoft Internet Explorer'){window.sidebar.addPanel(anchor.getAttribute('title'),anchor.getAttribute('href'),'');}else{window.external.AddFavorite(anchor.getAttribute('href'),anchor.getAttribute('title'));}}