<!--
var racine_html = "/voyastore/"

function roll() {
  if (document.images) {
    for (var i=0; i<roll.arguments.length; i+=2) {
      document[roll.arguments[i]].src = eval(roll.arguments[i+1] + ".src");
    }
  }
}

function init_barre_centrale(vartype)
{ 
 // Pour l'instant pas de gestion du search
  //if (G_barre_centrale == "s") {
  //  document.write ("<table width=\"100%\">");
  //  document.write ("<tr>");
  //  document.write ("  <td width=\"33%\" valign=\"middle\" align=\"right\"><font face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><b>Recherche :</b></font></td>");
  //  document.write ("  <td width=\"33%\"><input type=\"text\" size=20 name=\"txt_find\"></td>");
  //  document.write ("  <td width=\"34%\" valign=\"middle\" align=\"left\"><a href=\"#\" onclick=\"lance_search();return false;\"><img border=\"0\" src=\"images/bt_ok.gif\" width=\"27\" height=\"27\"></a></td>");
  //  document.write ("  </tr>");
  //  document.write ("</table>");
  //}
  //else {
    document.write ("<table width=\"100%\">");
    document.write ("<tr>");
    document.write ("  <td width=\"33%\" valign=\"middle\" align=\"right\">&nbsp;</td>");
    document.write ("  <td width=\"33%\" valign=\"middle\" align=\"right\">&nbsp;</td>");
    document.write ("  <td width=\"34%\" valign=\"middle\" align=\"right\">&nbsp;</td>");
    document.write ("</tr>");
    document.write ("</table>");
 // }

}



function calculWinWidth(vartype){
// On calcul la taille de la largeur de la fenętre
var winW = 800;

if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
 }
}
return(winW);	
}

function calculWinHeight(vartype){
// On calcul la taille de la hauteur de la fenętre
var winH = 600;

if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winH = window.innerHeight;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winH = document.body.offsetHeight;
 }
}
return(winH);	
}



function init_onglet(vartype)
{
  if (vartype != "") {
   var ma_chaine = "<td width=\"437\" bgcolor=\"#333399\" valign=\"bottom\" height=\"38\">";
   	ma_chaine = ma_chaine + "<div align=\"center\">";
	ma_chaine = ma_chaine + "<table border=\"0\" width=\"437\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\">";
	ma_chaine = ma_chaine + "<tr><td width=\"100%\" bgcolor=\"#333399\" valign=\"bottom\" height=\"38\">";
	
   var trouve=0;
   //Onglet Accueil
   if (vartype == "acl")
     { ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletbleudeb.gif\" width=\"9\" height=\"22\">";
       ma_chaine = ma_chaine + "<a href=\""  + racine_html + "../default.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletaccueilbleu.gif\" width=\"70\" height=\"22\"></a>";
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletbleugris.gif\" width=\"11\" height=\"22\">";
       trouve=1;
     }
   else
     { ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisdeb.gif\" width=\"9\" height=\"22\">";
       ma_chaine = ma_chaine + "<a href=\""  + racine_html + "../default.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletaccueilgris.gif\" width=\"70\" height=\"22\"></a>";
     }  
   //Onglet Destination 
   if (vartype == "dst")  
     {
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisbleu.gif\" width=\"11\" height=\"22\">";
       ma_chaine = ma_chaine + "<a href=\""  + racine_html + "destinations.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletdestinationsbleu.gif\" width=\"85\" height=\"22\"></a>";
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletbleugris.gif\" width=\"11\" height=\"22\">";
       trouve=1;
     }
   else
     {  
      if (trouve != 1)
        ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisgris.gif\" width=\"11\" height=\"22\">";
      ma_chaine = ma_chaine + "<a href=\""  + racine_html + "destinations.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletdestinationsgris.gif\" width=\"85\" height=\"22\"></a>";
      trouve = 0;
     }    
   //Onglet Promotion
   if (vartype == "prm")  
     {
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisbleu.gif\" width=\"11\" height=\"22\">";
       ma_chaine = ma_chaine + "<a href=\""  + racine_html + "promos.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletpromosbleu.gif\" width=\"65\" height=\"22\"></a>";
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletbleugris.gif\" width=\"11\" height=\"22\">";
       trouve=1;
     }
   else
     {  
      if (trouve != 1)
        ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisgris.gif\" width=\"11\" height=\"22\">";
      ma_chaine = ma_chaine + "<a href=\""  + racine_html + "promos.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletpromosgris.gif\" width=\"65\" height=\"22\"></a>";
      trouve = 0;
     }    
   //Onglet Conditions de vente 
/*
   if (vartype == "cdv")  
     {
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisbleu.gif\" width=\"11\" height=\"22\">";
       ma_chaine = ma_chaine + "<a href=\""  + racine_html + "conditions.html\"><img border=\"0\" src=\"" + racine_html + "images/ongletconditionsbleu.gif\" width=\"75\" height=\"22\"></a>";
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletbleugris.gif\" width=\"11\" height=\"22\">";
       trouve=1;
     }
   else
     {  
      if (trouve != 1)
        ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisgris.gif\" width=\"11\" height=\"22\">";
      ma_chaine = ma_chaine + "<a href=\""  + racine_html + "conditions.html\"><img border=\"0\" src=\"" + racine_html + "images/ongletconditionsgris.gif\" width=\"75\" height=\"22\"></a>";
      trouve = 0;
     } 
*/ 
    //Onglet Demande infos
   if (vartype == "dmd")  
     {
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisbleu.gif\" width=\"11\" height=\"22\">";
       ma_chaine = ma_chaine + "<a href=\""  + racine_html + "demande-infos.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletdmdinfosbleu.gif\" width=\"70\" height=\"22\"></a>";
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletbleugris.gif\" width=\"11\" height=\"22\">";
       trouve=1;
     }
   else
     {  
      if (trouve != 1)
        ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisgris.gif\" width=\"11\" height=\"22\">";
      ma_chaine = ma_chaine + "<a href=\""  + racine_html + "demande-infos.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletdmdinfosgris.gif\" width=\"70\" height=\"22\"></a>";
      trouve = 0;
     }  
      
   //Onglet Contactez nous dernier onglet
   if (vartype == "ctn")
     {
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisbleu.gif\" width=\"11\" height=\"22\">";
       ma_chaine = ma_chaine + "<a href=\""  + racine_html + "contact.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletcontactezbleu.gif\" width=\"70\" height=\"22\"></a>";
       ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletbleufin.gif\" width=\"9\" height=\"22\">";
	   ma_chaine = ma_chaine + "</td></tr></table></div>	  </td>";
     }
   else
     {  
      if (trouve != 1)
        ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisgris.gif\" width=\"11\" height=\"22\">";
      ma_chaine = ma_chaine + "<a href=\""  + racine_html + "contact.asp\"><img border=\"0\" src=\"" + racine_html + "images/ongletcontactezgris.gif\" width=\"70\" height=\"22\"></a>";
      ma_chaine = ma_chaine + "<img border=\"0\" src=\"" + racine_html + "images/ongletgrisfin.gif\" width=\"9\" height=\"22\">";
	  ma_chaine = ma_chaine + "</td></tr></table></div>	  </td>";
     }  
      
    document.write (ma_chaine); 
  }
  else
 
   document.write ("<td width=\"33%\" bgcolor=\"#333399\" valign=\"bottom\" height=\"38\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");
}


function ouvrir_popup(no_pop,url_html) {
	eval("pop" + no_pop + "= window.open( '" + url_html + "', 'prm" + no_pop + "', 'width=460,height=550,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1,left=300,top=10');");
	eval("pop" + no_pop + ".focus();");
}

function ouvrir_pop(no_pop,url_html,lg,ht) {
	eval("pop" + no_pop + "= window.open( '" + url_html + "', 'prm" + no_pop + "', 'width=" + lg + ",height=" + ht + ",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=1,left=300,top=10');");
	eval("pop" + no_pop + ".focus();");
}

function ouvrir_pop_circuit(no_pop,url_html,lg,ht) {
	eval("pop" + no_pop + "= window.open( '" + url_html + "', 'prm" + no_pop + "', 'width=" + lg + ",height=" + ht + ",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1,left=10,top=10');");
	eval("pop" + no_pop + ".focus();");
}

function ouvrir_fenetre(no_pop,url_html,lg,ht) {
	eval("pop" + no_pop + "= window.open( '" + url_html + "', 'prm" + no_pop + "', 'width=" + lg + ",height=" + ht + ",toolbar=1,location=1,directories=1,status=1,menuBar=1,scrollBars=1,resizable=1,left=10,top=10');");
	eval("pop" + no_pop + ".focus();");
}


function init_coup_coeur(vartype)
{ /* Permet d'afficher les coups de coeur */
  document.write ("<tr>");
  document.write (" <td width=\"100%\" bgcolor=\"#333399\" valign=\"middle\" align=\"center\"><span class=\"Font14Bwhite\">Coups de Coeur</span></td>");
  document.write ("</tr>");
  document.write ("<tr>");
  document.write ("  <td width=\"100%\" bgcolor=\"#9999FF\">");
  document.write ("    <p align=\"center\"><font color=\"#FFFFFF\" face=\"Verdana\" size=\"1\"><b>");
  document.write ("<br>");
  document.write ("<a href=\"/voyastore/hotels.asp?id=35\">");
  
  document.write ("<img src=\"/voyastore/images/coup-de-coeur/caraibe/canouan-the-raffles.gif\" alt=\"Coup de Coeur CARAIBES - ILE DE CANOUAN - Hotel The RAFFLES\" width=\"150\" height=\"70\" border=\"0\"></a>");
  
//  document.write ("<font color=\"#FFFFFF\" face=\"Verdana\" size=\"1\"><b>");
//  document.write ("Seychelles - Praslin<br>7Jours/5Nuits<br>1.200€/Pers.<br></font></b></a>");

  document.write ("    <img border=\"0\" src=\"/voyastore/images/coup-de-coeur/coeur.gif\"><br>");

  document.write ("<a href=\"/voyastore/hotels.asp?id=51\">");  
  
  document.write ("<img src=\"/voyastore/images/coup-de-coeur/caraibe/cobblers-cove.jpg\" alt=\"Coup de Coeur CARAIBES - LA BARBADE - Hotel COBBLERS COVE\" width=\"150\" height=\"70\" border=\"0\"></a>");
    
 // document.write ("<font color=\"#FFFFFF\" face=\"Verdana\" size=\"1\"><b>");
 // document.write ("Ile Maurice<br>7Nuits<br>1.290€/Pers.<br></b></font></a>");

  document.write ("    <img border=\"0\" src=\"/voyastore/images/coup-de-coeur/coeur.gif\"><br>");

  document.write ("<a href=\"/voyastore/hotels.asp?id=84\">");  
  document.write ("<img src=\"/voyastore/images/coup-de-coeur/caraibe/jamaica-inn.gif\" alt=\"Coup de Coeur CARAIBES - LA JAMAIQUE - Hotel JAMAICA INN\" width=\"150\" height=\"70\" border=\"0\"></a>");
  
//  document.write ("<font color=\"#FFFFFF\" face=\"Verdana\" size=\"1\"><b>");
//  document.write ("Sri Lanka - Maldives<br>Combiné<br>15Jours/12Nuits<br>1.950€/Pers.<br>");
  document.write ("<br><br></b></font></p></a>");
  document.write ("  </td>");
  document.write ("</tr>");    
  
  
  /* Permet d'afficher les PROMOs */
  document.write ("<tr>");
  document.write (" <td width=\"100%\" bgcolor=\"#333399\" valign=\"middle\" align=\"center\"><span class=\"Font14Bwhite\">Promo Web</span></td>");
  document.write ("</tr>");
  document.write ("<tr>");
  document.write ("  <td width=\"100%\" bgcolor=\"#9999FF\">");
  document.write ("    <p align=\"center\"><font color=\"#FFFFFF\" face=\"Verdana\" size=\"1\"><b>");
  document.write ("<br>");
    
  document.write ("<a href=\"promos/promo-sri-lanka.html\" onClick=\"ouvrir_popup(\'5\',\'" + racine_html + "promos/promo-sri-lanka.html\'); return (false);\">");  
  document.write ("<img src=\"/voyastore/images/promo-sri-lanka.gif\" alt=\"Promo Sri-Lanka\" width=\"150\" height=\"50\" border=\"0\"></a><br><br>");
  
  document.write ("<a href=\"promos/fichepromos97.html\" onClick=\"ouvrir_popup(\'5\',\'" + racine_html + "promos/fichepromos97.html\'); return (false);\">");  
  document.write ("<img src=\"/voyastore/images/promo-seychelles.gif\" alt=\"Promo Seychelles\" width=\"150\" height=\"50\" border=\"0\"></a><br><br>");

  document.write ("<a href=\"promos/fichepromos100.html\" onClick=\"ouvrir_popup(\'5\',\'" + racine_html + "promos/fichepromos100.html\'); return (false);\">");
  
  //document.write ("<font color=\"#FFFFFF\" face=\"Verdana\" size=\"1\"><b>");
  //document.write ("Ile Maurice<br>7Nuits<br>1.290€/Pers.<br></b></font></a>");  
  
  document.write ("<a href=\"promos/fichepromos100.html\" onClick=\"ouvrir_popup(\'5\',\'" + racine_html + "promos/fichepromos100.html\'); return (false);\">");  
  document.write ("<img src=\"/voyastore/images/promo-ile-maurice.gif\" alt=\"Promo Ile Maurice\" width=\"150\" height=\"50\" border=\"0\"></a><br><br>");

  
  document.write ("<a href=\"promos/fichepromos9.html\" onClick=\"ouvrir_popup(\'5\',\'" + racine_html + "promos/fichepromos9.html\'); return (false);\">");  
  document.write ("<img src=\"/voyastore/images/promo-sri-lanka-maldives.gif\" alt=\"Promo Maldives Sri Lanka\" width=\"150\" height=\"50\" border=\"0\"></a><br>");
  
  
  document.write ("<br><br></b></font></p></a>");
  document.write ("  </td>");
  document.write ("</tr>");  
  
}

function GotoUrl(name_select) {
  var url_htl = eval('document.frm.' + name_select + '[document.frm.' + name_select + '.selectedIndex].value');
  eval ('document.frm.' + name_select + '.selectedIndex = 0');
  if (url_htl.length > 0) {
    window.location.href = url_htl;
     }
}

function fermerWindow(nomWind,lienDef) {	
	if (window.name.substring(0,nomWind.length) == nomWind) 
		document.write ('<a href="javascript:window.close();">Fermer</a>');			
	else 
		if (lienDef == 0) // Accueil
			document.write ('<a href="http://www.collectionsdumonde.com">>> Accueil</a>');
		else 
			if (lienDef == 1) // Promos
				document.write ('<a href="http://www.collectionsdumonde.com/voyastore/promotions.asp">>> Toutes nos PROMOS</a>');
			else
				document.write ('<a href="http://www.collectionsdumonde.com">>> Accueil</a>');		
}
//-->
