// 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_0004.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0014.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\">Grand confort ex&eacute;cutif </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_0013.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\">Suite Espace Double</div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0003.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\">Suite prestige </div></td><td valign=\"top\"><div align=\"center\">Suite pr&eacute;sidentielle </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>Salles de réunion</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\">Tribeca</div></td><td valign=\"top\"><div align=\"center\">Lincoln Square</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\">Centre Clinton</div></td><td valign=\"top\"><div align=\"center\">Centre Roosevelt</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\">Upper West Side Lounge </div></td><td valign=\"top\"><div align=\"center\">Rockerfeller </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>À 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_0004.jpg\" width=\"120\" height=\"90\" /></div></td><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0014.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\">Grand Comfort Executive </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_0013.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\">Double Space Suite</div></td></tr><tr><td valign=\"top\"><div align=\"center\"><img src=\"../img/mini_0003.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\">Prestige Suite</div></td><td valign=\"top\"><div align=\"center\">Presidential Suite</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>Salles de réunion</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\">Tribeca</div></td><td valign=\"top\"><div align=\"center\">Lincoln Square</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\">Centre Clinton</div></td><td valign=\"top\"><div align=\"center\">Centre Roosevelt</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\">Upper West Side Lounge </div></td><td valign=\"top\"><div align=\"center\">Rockerfeller </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 ("<tr><td><div align=\"right\"><a href=\"../fr/promo1.htm\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('bt_menu16','','../img/menu/menu_fr_h_09.gif',1)\"><img src=\"../img/menu/menu_fr_r_09.gif\" name=\"bt_menu16\" width=\"179\" height=\"20\" border=\"0\" id=\"bt_menu16\" /></a></div></td></tr>"	);
  }
}

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 ("<tr><td><div align=\"right\"><a href=\"../en/promo1.htm\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('bt_menu16','','../img/menu/menu_en_h_09.gif',1)\"><img src=\"../img/menu/menu_en_r_09.gif\" name=\"bt_menu16\" width=\"179\" height=\"20\" border=\"0\" id=\"bt_menu16\" /></a></div></td></tr>"	);
  }
}

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=CAQC0441&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=CAQC0441&category0=Cities&containerWidth=150&btnNo=&backgroundColor=blue&multipleCity=&citySearch=0&celsiusF=C\" align=\"top\" frameborder=\"0\" width=\"150\" scrolling=\"no\"></iframe></div>");
}
