//Les tooltips sont gérer simplement en css (voir /css/style.css)
//Les entrées sont entrée sous la forme de commentaire dans le contenu ex: <!-- Tooltip:mot_a_definir -->
//Le script ne fait que trouver les occurences dans le contenu de la page et les remplacer par la str.
//la str ajoute l'image et la description de façon dynamique à partir du array des définitions.
/*function hide(t){
	for (i=1;i<40;i++){
		if (document.getElementById(t + i) != "") {
			document.getElementById(t + i).style.display = 'none';
		}
		else {}
	}
}*/

var agt=navigator.userAgent.toLowerCase();

var TooltipDefinition = new Array()
	TooltipDefinition["<!-- Tooltip_fr:***** -->"] = "<strong>Classification des hôtels</strong><br>Vous trouverez ci-dessous une courte description des quatre catégories d\'hôtels mentionnées sur ce site, incluant les commodités et les services auxquels vous aurez accès.<br><br><strong>De Luxe</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Les hôtels luxe se caractérisent par des décors somptueux, un confort supérieur, un pourcentage élevé d\'employés par client, une cuisine gastronomique et un service aux chambres jour et nuit. Ces établissements raffinés peuvent également offrir des installations récréatives additionnelles, tels des services de spa sur place et une salle de conditionnement physique haut de gamme.<br><br><strong>Supérieur</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Ces établissements haut de gamme mettent l\'accent sur le style, le confort et un service personnalisé. Ils disposent habituellement d\'un restaurant gastronomique, d\'une piscine et d\'une salle de conditionnement physique, et ils offrent des services complets pour voyageurs d\'affaires.<br><br><strong>Standard</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Les établissements standard offrent un hébergement propre et de base à services limités (par exemple, ils sont généralement dépourvus d\'une salle de conditionnement physique). Les chambres sont généralement équipées d\'une salle de bains privée, d\'un téléphone et d\'un téléviseur. Toutefois, la restauration sur place est généralement limitée au café ou au petit déjeuner continental.<br><br><strong>Économique</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Un hôtel économique offre un hébergement propre, sans luxe, avec des commodités minimales sur place. Les chambres sont habituellement décorées de façon fonctionnelle et pourraient être dépourvues d\'une salle de bains privée, d\'un téléphone ou d\'autres commodités. Il n\'y a généralement pas de restauration sur place.";
	TooltipDefinition["<!-- Tooltip_en:***** -->"] = "<strong>Hotel classes</strong><br>The following is a useful guide describing the four hotel classifications used on this site, including the amenities and facilities you can expect from each one.<br><br><strong>Deluxe</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Deluxe hotels are characterized by luxury appointments and superlative comfort, as well as a high staff-to-guest ratio, gourmet dining, and 24-hour room service. These upscale establishments may also have additional facilities such as an on-site spa and a top-notch fitness centre.<br><br><strong>Superior</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Superior establishments place great emphasis on style, comfort, and personalized service. They are likely to feature on-site dining services, a pool and/or fitness centre, and extended services for business travellers.<br><br><strong>Standard</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Standard establishments offer clean, basic accommodations with no additional facilities (such as a fitness centre). Guestrooms generally have a private bathroom, telephone, and TV, but on-site dining is usually limited to just coffee or a Continental breakfast. <br><br><strong>Budget</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Budget hotels offer clean, no-frills accommodation with minimal on-site facilities. Guestrooms are generally functionally decorated, and may not have a private bathroom, telephone or TV. On-site dining is usually not available.";
	TooltipDefinition["<!-- Tooltip_fr:De luxe -->"] = "<strong>De luxe</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Les hôtels luxe se caractérisent par des décors somptueux, un confort supérieur, un pourcentage élevé d\'employés par client, une cuisine gastronomique et un service aux chambres jour et nuit. Ces établissements raffinés peuvent également offrir des installations récréatives additionnelles, tels des services de spa sur place et une salle de conditionnement physique haut de gamme.";
	TooltipDefinition["<!-- Tooltip_fr:Superieur -->"] = "<strong>Supérieur</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Ces établissements haut de gamme mettent l\'accent sur le style, le confort et un service personnalisé. Ils disposent habituellement d\'un restaurant gastronomique, d\'une piscine et d\'une salle de conditionnement physique, et ils offrent des services complets pour voyageurs d\'affaires.";
	TooltipDefinition["<!-- Tooltip_fr:Standard -->"] = "<strong>Standard</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Les établissements standard offrent un hébergement propre et de base à services limités (par exemple, ils sont généralement dépourvus d\'une salle de conditionnement physique). Les chambres sont généralement équipées d\'une salle de bains privée, d\'un téléphone et d\'un téléviseur. Toutefois, la restauration sur place est généralement limitée au café ou au petit déjeuner continental.";
	TooltipDefinition["<!-- Tooltip_fr:Economique -->"] = "<strong>Économique</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Un hôtel économique offre un hébergement propre, sans luxe, avec des commodités minimales sur place. Les chambres sont habituellement décorées de façon fonctionnelle et pourraient être dépourvues d\'une salle de bains privée, d\'un téléphone ou d\'autres commodités. Il n\'y a généralement pas de restauration sur place.";
	TooltipDefinition["<!-- Tooltip_en:Deluxe -->"] = "<strong>Deluxe</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Deluxe hotels are characterized by luxury appointments and superlative comfort, as well as a high staff-to-guest ratio, gourmet dining, and 24-hour room service. These upscale establishments may also have additional facilities such as an on-site spa and a top-notch fitness centre.";
	TooltipDefinition["<!-- Tooltip_en:Superior -->"] = "<strong>Superior</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Superior establishments place great emphasis on style, comfort, and personalized service. They are likely to feature on-site dining services, a pool and/or fitness centre, and extended services for business travellers.";
	TooltipDefinition["<!-- Tooltip_en:Standard -->"] = "<strong>Standard</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Standard establishments offer clean, basic accommodations with no additional facilities (such as a fitness centre). Guestrooms generally have a private bathroom, telephone, and TV, but on-site dining is usually limited to just coffee or a Continental breakfast. ";
	TooltipDefinition["<!-- Tooltip_en:Budget -->"] = "<strong>Budget</strong><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><img src=\'/images/star_search.gif\' width=\'10\' height=\'10\' alt=\'\' border=\'0\' /><br>Budget hotels offer clean, no-frills accommodation with minimal on-site facilities. Guestrooms are generally functionally decorated, and may not have a private bathroom, telephone or TV. On-site dining is usually not available.";

var descriptionContenu = document.getElementById('contenu');
var str = descriptionContenu.innerHTML;

for (i in TooltipDefinition){

	if (agt.indexOf("msie 6.")!=-1){str = str.replace(i,'&nbsp;<a class="tooltip" HREF="javascript:VoirTooltip(\''+ i + '\')" /><img src="/images/tooltip.gif" border="0" /></a>');}
	else {str = str.replace(i,'&nbsp;<a class="tooltip" href="javascript:void(0)"><img src="/images/tooltip.gif" border="0" /><span>' + TooltipDefinition[i] + '</span></a>');}


}

descriptionContenu.innerHTML = str;


function VoirTooltip(i){
	var params = "toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable=yes ,width=400,height=500";
	var newWin = window.open('','impression',params) ;
	var contenu = TooltipDefinition[i] ;
	newWin.document.open("text/html") ;
	newWin.document.write("<HTML>\n<HEAD>\n\t<TITLE></TITLE>\n</HEAD>\n<BODY BGCOLOR='#FFFFFF' BOTTOMMARGIN='0' TOPMARGIN='0' RIGHTMARGIN='0' LEFTMARGIN='0' MARGINHEIGHT='0' MARGINWIDTH='0' STYLE='font-family : verdana,arial ; font-size:10pt'>\n\n") ;
	newWin.document.write("<link rel=\"stylesheet\" href=\"/css/popup.css\" type=\"text/css\" />") ;
	newWin.document.write("<div class=\"tooltip\"><br>" + contenu + "</div>") ;
	newWin.document.write("\n</BODY>\n</HTML>\n\n") ;
	newWin.document.close() ;
	newWin.focus() ;
}
