// JavaScript Document
//GENERER TOOLTIPS FR
function genererMenuFR()
{

	//tooltip_forfait
	document.write ("<div id=\"tooltip_forfait\" style=\"width:0px\" class=\"xstooltip\"></div>");

//	document.write ("<div id=\"tooltip_forfait\" style=\"width:450px\" class=\"xstooltip\"><p><strong>Nos forfaits</strong></p><p><img src=\"../img/forfait2007fr.jpg\" width=\"450\" height=\"250\" /><br/></p></div>");

//tooltip_chambre	
	document.write ("<div id=\"tooltip_chambre\" style=\"width:300px\" class=\"xstooltip\"><strong>Nos chambres</strong><br/><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0049.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0003.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\">Grand Confort</div></td><td valign=\"top\"><div align=\"center\">Loft Urbain </div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0002.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0048.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\">Loft ex&eacute;cutif</div></td><td valign=\"top\"><div align=\"center\">Penthouse</div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0047.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0003.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\">La Cube</div></td><td valign=\"top\"><div align=\"center\">Suite Prestige</div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0046.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0001.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\">Grande Suite Soho</div></td><td valign=\"top\"><div align=\"center\">Apartment sur le lac</div></td></tr></table></div>" );

//tooltip_reunion
//document.write ("<div id=\"tooltip_reunion\" style=\"width:0px\" class=\"xstooltip\"></div>");
	
	document.write ("<div id=\"tooltip_reunion\" style=\"width:300px\" class=\"xstooltip\"><strong>Centre des congr&egrave;s</strong><br/><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0041.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0042.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\"></div></td><td valign=\"top\"><div align=\"center\"></div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0044.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0045.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\"></div></td><td valign=\"top\"><div align=\"center\"></div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0040.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0043.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\"> </div></td><td valign=\"top\"><div align=\"center\"> </div></td></tr></table></div>" );

//tooltip_sante

//document.write ("<div id=\"tooltip_sante\" style=\"width:0px\" class=\"xstooltip\"></div>");
document.write ("<div id=\"tooltip_sante\" style=\"width:450px\" class=\"xstooltip\"><strong>&Agrave; votre sant&eacute;</strong><br/><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">  <tr>    <td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0010.jpg\" width=\"120\" height=\"90\" /></div></td> <td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0011.jpg\" width=\"120\" height=\"90\" /></div></td>	<td><img  hspace=\"10\" src=\"../img/mini_0008b.jpg\" width=\"80\" height=\"120\" /></td>  </tr>  <tr>    <td valign=\"top\"><div align=\"center\">Petit d&eacute;jeuner continental sant&eacute; style buffet </div></td>    <td><div align=\"center\">Massoth&eacute;rapie</div></td>	<td><div align=\"center\">Piscine int&eacute;rieure </div></td>  </tr>  <tr>    <td valign=\"bottom\"><div align=\"center\"><img src=\"../img/mini_0012.jpg\" width=\"90\" height=\"120\" /></div></td>    <td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0009.jpg\" width=\"90\" height=\"120\" /></div></td>	<td></td>  </tr>  <tr>    <td valign=\"top\"><div align=\"center\">Service de bar disponible au comptoir </div></td> <td valign=\"top\"><div align=\"center\">Salle de conditionnement physique </div></td>	<td></td>  </tr></table></div>");

//tooltip_news
document.write ("<div id=\"tooltip_news\" style=\"width:0px\" class=\"xstooltip\"></div>");

//document.write ("<div id=\"tooltip_news\" style=\"width:300px\" class=\"xstooltip\"><h5>Pour l&rsquo;ouverture du Grand H&ocirc;tel TIMES:</h5><br/><div id=\"news\">Inscrivez-vous d�s maintenant au Grand Concours **Une nuit de r�ve** afin d'�tre parmi les chanceux qui s�journeront gratuitement au Grand H�tel Times (voisin des Galeries de la Capitale) � l'ouverture officielle. Vous n'avez qu�� cliquer sur  (Participez au concours) et restez branch� pour plus de d�tails concernant la grande ouverture.</div></div>");

  dateNow = new Date();	
  dateDebut = new Date(dateNow.getFullYear(),0,15,0,0,1);
  dateFin = new Date(dateNow.getFullYear(),2,15,0,0,1);
  if ( ( dateNow>dateDebut ) && (dateNow<dateFin) ) 
  {
    document.write("<style type=\"text/css\"> .relache { display:block; } </style>");
  }
}





// GENERER TOOLTIPS EN
function genererMenuEN()
{
//tooltip_forfait	
	document.write ("<div id=\"tooltip_forfait\" style=\"width:0px\" class=\"xstooltip\"></div>");

//	document.write ("<div id=\"tooltip_forfait\" style=\"width:470px\" class=\"xstooltip\"><p><strong>Our packages</strong></p><p><img src=\"../img/forfait2007en.jpg\" width=\"450\" height=\"250\" /><br/></p></div>");

//tooltip_chambre	
	document.write ("<div id=\"tooltip_chambre\" style=\"width:300px\" class=\"xstooltip\"><strong>Our rooms</strong><br/><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0049.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0003.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\">Grand Comfort</div></td><td valign=\"top\"><div align=\"center\">Urban Loft </div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0002.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0048.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\">Executive Loft</div></td><td valign=\"top\"><div align=\"center\">Penthouse</div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0047.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0003.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\">Square Room</div></td><td valign=\"top\"><div align=\"center\">Prestige Suite</div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0046.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0001.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\">Grand Soho Suite</div></td><td valign=\"top\"><div align=\"center\">Apartment on the Lake</div></td></tr></table></div>" );

//tooltip_reunion	
//	document.write ("<div id=\"tooltip_reunion\" style=\"width:0px\" class=\"xstooltip\"></div>");

	document.write ("<div id=\"tooltip_reunion\" style=\"width:300px\" class=\"xstooltip\"><strong>Meeting rooms</strong><br/><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0041.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0042.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\"></div></td><td valign=\"top\"><div align=\"center\"></div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0044.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0045.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\"></div></td><td valign=\"top\"><div align=\"center\"></div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0040.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0043.jpg\" width=\"120\" height=\"90\" /></div></td></tr><tr><td valign=\"top\"><div align=\"center\"> </div></td><td valign=\"top\"><div align=\"center\"> </div></td></tr></table></div>" );

//tooltip_sante	
//	document.write ("<div id=\"tooltip_sante\" style=\"width:0px\" class=\"xstooltip\"></div>");

	document.write ("<div id=\"tooltip_sante\" style=\"width:450px\" class=\"xstooltip\"><strong>Health and Wellness</strong><br/><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">  <tr>    <td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0010.jpg\" width=\"120\" height=\"90\" /></div></td>  <td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0011.jpg\" width=\"120\" height=\"90\" /></div></td>	<td><img hspace=\"10\"  src=\"../img/mini_0008b.jpg\" width=\"80\" height=\"120\" /></td>  </tr>  <tr>    <td valign=\"top\"><div align=\"center\">Buffet style healthy breakfast</div></td>    <td><div align=\"center\">Masssage therapist</div></td>	<td><div align=\"center\">Indoor Pool</div></td>  </tr>  <tr>    <td valign=\"bottom\"><div align=\"center\"><img src=\"../img/mini_0012.jpg\" width=\"90\" height=\"120\" /></div></td>    <td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0009.jpg\" width=\"90\" height=\"120\" /></div></td>	<td></td>  </tr>  <tr>  <td valign=\"top\"><div align=\"center\">Bar service</div></td>    <td valign=\"top\"><div align=\"center\">Health Gym</div></td>	<td></td>  </tr></table></div>");

//tooltip_news	
	document.write ("<div id=\"tooltip_news\" style=\"width:0px\" class=\"xstooltip\"></div>");

//document.write ("<div id=\"tooltip_news\" style=\"width:300px\" class=\"xstooltip\"><h5>For the opening of the Grand TIMES Hotel</h5><br/><div id=\"news\">  <p>It is now TIME for you to enter our **Grand Sweet Dreams** contest and be among the lucky ones to win a free night stay at the Grand Times Hotel (neighbours of Galeries de la Capitale) on the official opening night.  Simply click on (Enter our contest) and stay tuned for more details regarding our grand opening.</p></div></div>");

//15 janvier en vigueur jusqu�au 15 mars
//afficher le forfait relache (classe .relache)
  dateNow = new Date();	
  dateDebut = new Date(dateNow.getFullYear(),0,15,0,0,1);
  dateFin = new Date(dateNow.getFullYear(),2,15,0,0,1);
  if ( ( dateNow>dateDebut ) && (dateNow<dateFin) ) 
  {
    document.write("<style type=\"text/css\"> .relache { display:block; } </style>");
  }

}



// JavaScript Document
// COMPTEUR � REBOURS
function afficherSousMenuFR() 
{
  return;
	//tot = ''+days; //nb jours en texte
	//for (i = 0; i < tot.length; i++)
	//{
    	//img = '<img alt="'+tot.substring(i,i+1)+'" src="../img/num'+tot.substring(i,i+1)+'.gif" >';
	   // document.write(days);
	document.write("<div id=\"compteur\"><br><a href=\"concours.htm\">Participez au concours<br><span id=\"chiffre\">GRAND TIMES H&Ocirc;TEL</span><br>UNE NUIT DE RÈVE!</a></div>");
	//}
}

function afficherSousMenuEN() 
{
 return;
 //tot = ''+days; //nb jours en texte
	//for (i = 0; i < tot.length; i++)
	//{
    	//img = '<img alt="'+tot.substring(i,i+1)+'" src="../img/num'+tot.substring(i,i+1)+'.gif" >';
	   // document.write(days);
	   document.write( "<div id=\"compteur\"><br><a href=\"concours.htm\">Enter to<br><span id=\"chiffre\">GRAND TIMES H&Ocirc;TEL</span><br>SWEET DREAMS CONTEST!</a></div>");
	//}
}

function afficherNoelFR() 
{	
  dateNow = new Date();	
  dateDebut = new Date(dateNow.getFullYear(),10,01,0,0,1);
  dateFin = new Date(dateNow.getFullYear(),0,15,0,0,1);
  if ( ( dateNow>dateDebut ) || (dateNow<dateFin) ) 
  {
  document.write ("<li><a class=\"red\" href=\"../fr/promo1.htm\">No&euml;l au times</li>");
  }
}

function afficherNoelEN() 
{	
  dateNow = new Date();	
  dateDebut = new Date(dateNow.getFullYear(),10,01,0,0,1);
  dateFin = new Date(dateNow.getFullYear(),0,15,0,0,1);
  if ( ( dateNow>dateDebut ) || (dateNow<dateFin) ) 
  {
  	document.write ("<li><a class=\"red\" href=\"../en/promo1.htm\">Christmas times</li>");
  }
}

function afficherMeteoEN() 
{	
//  document.write ("<div id=\"meteobt\" ><div id=\"meteotop\">&nbsp;</div><iframe marginheight=\"0\" marginwidth=\"0\" name=\"wxButtonFrame\" id=\"wxButtonFrame\" height=\"66\" src=\"http://btn.meteomedia.ca/weatherbuttons/template2.php?placeCode=CAQC0441&category0=Cities&containerWidth=100&	btnNo=7721&backgroundColor=grey&multipleCity=0&citySearch=0&celsiusF=C\" align=\"top\" frameborder=\"0\" width=\"100\" scrolling=\"no\"></iframe></div>"	);

document.write ("<div id=\"meteobt\" ><iframe marginheight=\"0\" marginwidth=\"0\" name=\"wxButtonFrame\" id=\"wxButtonFrame\" height=\"50\" src=\"http://btn.meteomedia.ca/weatherbuttons/template8.php?placeCode=CAQC0489&category0=Cities&containerWidth=150&btnNo=&backgroundColor=blue&multipleCity=&citySearch=0&celsiusF=C\" align=\"top\" frameborder=\"0\" width=\"150\" scrolling=\"no\"></iframe></div>");


}

function afficherMeteoFR() 
{	
 // document.write ("<div id=\"meteobt\" ><div id=\"meteotop\">&nbsp;</div><iframe marginheight=\"0\" marginwidth=\"0\" name=\"wxButtonFrame\" id=\"wxButtonFrame\" height=\"66\" src=\"http://btn.meteomedia.ca/weatherbuttons/template2.php?placeCode=CAQC0441&category0=Cities&containerWidth=100&	btnNo=7721&backgroundColor=grey&multipleCity=0&citySearch=0&celsiusF=C\" align=\"top\" frameborder=\"0\" width=\"100\" scrolling=\"no\"></iframe></div>"	);
document.write ("<div id=\"meteobt\" ><iframe marginheight=\"0\" marginwidth=\"0\" name=\"wxButtonFrame\" id=\"wxButtonFrame\" height=\"50\" src=\"http://btn.meteomedia.ca/weatherbuttons/template8.php?placeCode=CAQC0489&category0=Cities&containerWidth=150&btnNo=&backgroundColor=blue&multipleCity=&citySearch=0&celsiusF=C\" align=\"top\" frameborder=\"0\" width=\"150\" scrolling=\"no\"></iframe></div>");
}

function openRes(hotelID,lang)
{
	window.open('https://www.luxuryres.com/BookingEngines/V12/be.asp?hotelid='+hotelID+'&adults=2&children=0&lang='+lang,'reservation', 'dependent, height=470, width=815, location=yes,menubar=no, resizable=yes, scrollbars=no, status=yes, toolbar=no');
}
