function ecrirePromos()
{
	var promos = new Array();
	// src de l'image, titre, sous-titre, texte, lien, section ou sous-section dans laquelle la promo doit s'afficher, si la promo doit s'afficher dans une nouvelle fenêtre
	/* toutes les sections : plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits;reservations*/
	promos[0] = new Array('', 'SMOKE FREE', 'Hôtel Chéribourg is a smoke free environment', '', '', 'plan;accueil;activites;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;centreSante;tarifsForfaits;reservations;reunions', false);
	promos[1] = new Array('../images/promos/trolley.jpg', 'SHUTTLE SERVICE', '', '', 'pdfs-fr/trolley.pdf', 'plan;accueil;activites;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;centreSante;tarifsForfaits;reservations;reunions', false);
	promos[1] = new Array('../images/promos/animaux.jpg', 'HOTEL CHERIBOURG IS HONORED TO WELCOME YOUR PET', '', '', 'pages-eg/animaux.htm', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits', false);
	promos[2] = new Array('../images/promos/cheri-club.jpg', 'THE CH&Eacute;RI-CLUB', 'Playroom for your kids', 'Animation, inflatable<br>jumpers, pop-corn movie,<br>and more.', 'pages-eg/act_intro.htm', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits', false);
	promos[3] = new Array('../images/promos/savonnerie.jpg', 'SAVONNERIE DES DILIGENCES', '', '', 'http://www.savonneriediligences.ca/', 'activites', true);
	promos[4] = new Array('../images-fr/promos/reservert.jpg', 'RÉSER VERT', '', '', 'http://www.reservert.com/fr/fiche-hotel.php?id=194', 'plan;accueil;activites;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;centreSante;tarifsForfaits;reservations;reunions', true);
	promos[5] = new Array('../images/promos/tourisme-ce.gif', 'C\'EST ICI QUE JE<br />VEUX ÊTRE', '', '', '', 'plan;accueil;activites;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;centreSante;tarifsForfaits;reservations;reunions', true);
	promos[6] = new Array('../images/promos/corpoaventure.jpg', 'LIVEN UP YOUR<br>MEETINGS', 'with Hôtels Villegia', '', 'pages-eg/reu_corpoaventure.htm', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;spa;tarifsForfaits;reservations;reunions', false);

	//promos[x] = new Array('../images/promos/trolley.jpg', 'SHUTTLE SERVICE', '', '', 'http://www.trolleymagogorford.com/', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', true);
	//promos[x] = new Array('../images-eg/promos/airdulac.jpg', 'LES EXCURSIONS L\'AIR DU LAC', '', '', 'http://lairdulac.com/', 'plan;accueil;activites;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;centreSante;tarifsForfaits;reservations;reunions', true);
	//promos[x] = new Array('../images/promos/train.jpg', 'ALL ABOARD!', '', '', 'http://207.96.240.148/intranet/main.asp?Langue=FR&Var1=AUBE&Var2=OrfordExpress&Title=Train%20Touristique%20Orford%20Express%2C%20Estrie%2C%20Sherbrooke%2C%20Magog%2C%20vacance%2C%20forfait%2C%20souper%2C%20brunch&URefer=http%3A//www.google.ca/search%3Fsource%3Dig%26hl%3Dfr%26rlz%3D1G1GGLQ_FRCA313%26q%3Dtrain+magog+orford%26meta%3Dlr%253D%26aq%3D0%26oq%3Dtrain+magog', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', true);
	//promos[x] = new Array('../../images/promos/20-dollars.gif', 'VILLEGIA REBATE IS BACK', 'Download the coupon now to get your $20 rebate', '', '../../pdfs-eg/promorabais20.pdf', 'plan;accueil;activites;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;centreSante;tarifsForfaits;reservations;reunions', false);
	//promos[x] = new Array('../images-eg/promos/salonfemme.jpg', 'NATIONAL WOMEN\'S SHOW', '', '', 'http://www.nationalwomenshow.com/montreal_eng/coupon.html', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', true);
	//promos[x] = new Array('../images/promos/trolley.jpg', 'SHUTTLE', 'Available to Mont Orford<br>and downtown Magog from<br>December 20th to March 29th, from 8 a.m. to 5 p.m.', '', 'http://www.trolleymagogorford.com/', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', true);
	//promos[x] = new Array('', '<strong style="color:#560000;">** NEW YEAR ! **</strong>', 'Beautiful rooms<br>still available for<br>New Year\'s day&hellip;', '', '../../promovillegia/mailing_20081008/cheribourg-eg.htm', 'plan;accueil;activites;certificatCadeau;condos;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits', true);
	//promos[x] = new Array('../images-eg/promos/cheque_cadeau.gif', 'PLEASE MENTION<br>THIS OFFER UPON<br>YOUR PURCHASE', 'The rebate will be apply only on the room portion. Valid until November 30th 2008.', '', '', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits;reservations', false);
	//promos[x] = new Array('../images/promos/plein_air-ete.jpg', 'THE OUTDOOR AT<br>HÔTEL CHÉRIBOURG', 'Free activities with<br>all lodging packages', 'Bike, pedal boat, canoe,<br>kayak and much more!', '', 'accueil', false);
	//promos[x] = new Array('../images/promos/trolley.jpg', 'SHUTTLE', 'Available to Mont Orford<br>and downtown Magog from<br>June 21st to October 13th', '', 'http://www.trolleymagogorford.com/', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits', true);
	//promos[x] = new Array('../images-eg/promos/special_stvalentin.jpg', 'VALENTINE\'S DAY<br>SPECIAL', 'For lovers! Enjoy<br>The Wealthy Getaway<br>on February 15th and 16th', '', 'pages-eg/tarifs_forfaits.htm#forfaitsSpa', 'accueil', false);
	//promos[x] = new Array('../images/promos/certificat_cadeau.jpg', 'GREAT GIFTS IDEA', 'Offer to the love one<br>a gift certicate', '', 'pages-eg/tarifs_forfaits.htm', 'accueil', false);
	//promos[x] = new Array('../images/promos/golf_gratuit.jpg', '$1 GOLF OFFER', '', '', 'pages-eg/offres_speciales.htm', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;reunions;spa;tarifsForfaits;reservations', false);
	//promos[x] = new Array('../images/promos/special_amoureux-noel.jpg', 'INDULGE YOURSELF<br>AND REDISCOVER', 'your well-being', 'Winter Lovers Special', 'pages-eg/offres_speciales.htm', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;reunions;spa;tarifsForfaits', false);
	//promos[x] = new Array('../images-eg/promos/coupon_20.gif', '$20 REBATE PER NIGHT', '', '', 'pages-eg/offres_speciales.htm', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;reunions;spa;tarifsForfaits;reservations', false);
	//promos[x] = new Array('../images-eg/promos/temps_fetes.gif', 'H&Ocirc;TEL CH&Eacute;RIBOURG', 'offers special packages<br>for your greater pleasure', '', '../../promovillegia/mailing_112806/index-eg.htm', 'plan;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits', true);
	//promos[x] = new Array('../images/promos/gastronomie.jpg', 'DISCOVER NEW<br>GASTRONOMIC<br>SUGGESTIONS', 'from our chef Martin<br>Pelletier has prepared', 'Fine country cuisine,<br>and a warm atmosphere<br>for delightful moments.', 'pages-eg/gas_intro.htm', 'plan;accueil;activites;certificatCadeau;chalets;contact;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits', false);
	//promos[x] = new Array('../images/promos/hebergement.jpg', 'ROOMS<br>ENTIRELY REVAMPED', 'Cosy design, total comfort,<br>and a wonderful view', 'Everything for<br>productive purposes...', 'pages-eg/heb_intro.htm', 'gastronomie;golf;reunions;spa', false);
	//promos[x] = new Array('../images/promos/cheri-club.jpg', 'THE CH&Eacute;RI-CLUB IS BACK', 'On 23-24-25 December,<br>and during school breaks', 'Animation, inflatable<br>jumpers, pop-corn movie,<br>and more.', 'pages-eg/act_intro.htm', 'activitesPlaceRegion', false);
	//promos[x] = new Array('../images/promos/forfaits_periode-fetes.jpg', 'COME CELEBRATE<br>WITH US THE<br>CHRISTMAS HOLIDAYS', 'at H&ocirc;tel Ch&eacute;ribourg', 'Many activities await you...', 'pages-eg/tarifs_forfaits.htm#forfaitsPeriodeFetes', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits', false);
	//promos[x] = new Array('../images-eg/promos/coupon_50.jpg', '$50 REBATE ON TWO<br>NIGHTS STAY OR MORE', '', '', 'pages-eg/offres_speciales.htm', 'plan;accueil;activites;certificatCadeau;chalets;contact;gastronomie;hebergement;localisation;mariagesReceptions;reunions;spa;tarifsForfaits', false);
	//promos[x] = new Array('../images/promos/ski.jpg', 'THE SKI SEASON', 'is open at Mont Orford.<br>Watch the ski conditions!', '', 'http://www.orford.com/conditions_meteo.php', 'activites', true);
	//promos[x] = new Array('', 'MONT ORFORD\'S<br>NEW RELEASE', 'Tube Sliding', 'Packages starting at $225<br>for 2 adults &amp; 2 children.', 'pages-eg/tarifs_forfaits.htm', 'accueil;activitesIntroduction;activitesFestivalsAttractions', false);
	//promos[x] = new Array('../images-eg/promos/forfait_relache.gif', 'SPRINGBREAK PACKAGE', '', 'Starting at 192$ per family<br>(2 adults and 1 child from<br>6 to 12)', 'pages-eg/offres_speciales.htm', 'accueil', false);
	//promos[x] = new Array('../images/promos/special_amoureux-automne.jpg', '&Eacute;VADEZ-VOUS<br>ET REFAITE LE<br>PLEIN D\'&Eacute;NERGIE', 'pour le corps et l\'esprit', 'LE SP&Eacute;CIAL<br>Amoureux de l\'Automne', '../pdfs-eg/special_amoureux-automne.pdf', 'accueil', true);
	//promos[x] = new Array('../images/promos/ski.jpg', 'SKI &amp; LODGING<br>FOR $59*', 'H&ocirc;tel Ch&eacute;ribourg<br>and Mont Orford join<br>together to provide you<br>an unforgettable stay.', '', 'pages-eg/offres_speciales.htm', 'activitesIntroduction;activitesFestivalsAttractions', false);


	var separateur = false;

	for (i=0 ; i < promos.length ; i++)
	{
		var tabTemp = promos[i];
		var tabTemp2 = tabTemp[5].split(';');

		for (j=0 ; j < tabTemp2.length ; j++)
		{
			if (tabTemp2[j] == section || tabTemp2[j] == sousSection)
			{				
				// Il s'agit de la première promo dans la bande beige
				if (separateur == false)
				{
					// On ouvre la table
					document.write ('<table width="198" border="0" cellpadding="5" cellspacing="0">');					
				
					// Si la première promo n'a pas de photo
					if (tabTemp[0] == '')
					{
						document.write ('<tr>');					
						document.write ('<td><img src="../../images/communs/spacer.gif" height="5" width"1"></td>');					
						document.write ('</tr>');						
					}
				}
				// Sinon on écrit un séparateur entre les promos
				else
				{
					document.write ('<tr>');					
					document.write ('<td><img src="../../images/communs/separateur_promos.gif"></td>');					
					document.write ('</tr>');					
				}

				// Si la promo a une photo
				if (tabTemp[0] != '')
				{
					document.write ('<tr>');					
					// Si la promo a un lien
					if (tabTemp[4] != '')
					{
						if (tabTemp[6]) document.write ('<td><a href="' + tabTemp[4] + '" target="_blank"><img src="' + tabTemp[0] + '" border="0"></a></td>');					
						else document.write ('<td><a href="' + serverPath + tabTemp[4] + '"><img src="' + tabTemp[0] + '" border="0"></a></td>');
					}
					else
					{
						document.write ('<td><img src="' + tabTemp[0] + '"></td>');	
					}
					document.write ('</tr>');						
				}

				document.write ('<tr>');					
				document.write ('<td>');					

				// Titre et sous-titre de la promo
				// Si la promo a une photo
				if (tabTemp[0] != '') document.write ('<p class="titrePromo" style="margin-top:10px; margin-left:10px; margin-right:10px; margin-bottom:0px;">' + tabTemp[1] + '<br><b class="sousTitrePromo">' + tabTemp[2] + '</b></p>');
				// Sinon
				else document.write ('<p class="titrePromo" style="margin-left:10px; margin-right:10px; margin-bottom:0px;">' + tabTemp[1] + '<br><b class="sousTitrePromo">' + tabTemp[2] + '</b></p>');

				// Texte de la promo
				document.write ('<p style="margin-top:15px; margin-left:10px; margin-right:10px; margin-bottom:0px;">' + tabTemp[3] + '</p>');

				// Si la promo a un lien
				if (tabTemp[4] != '')
				{
					if (tabTemp[6]) document.write ('<p style="margin-top:15px; margin-left:10px; margin-right:10px; margin-bottom:0px;"><a class="lienPromo" href="' + tabTemp[4] + '" target="_blank">For more information (+)</a></p>');
					else document.write ('<p style="margin-top:15px; margin-left:10px; margin-right:10px; margin-bottom:0px;"><a class="lienPromo" href="' + serverPath + tabTemp[4] + '">For more information (+)</a></p>');
				}

				document.write ('</td>');						
				document.write ('</tr>');						

				separateur = true;
				break;
			}		
		}
	}

	// S'il y a eu au moins une promo, on ferme la table
	if (separateur == true) document.write ('</table>');
	else
	{
		document.write ('<table width="198" border="0" cellpadding="5" cellspacing="0">');					
		document.write ('<tr>');					
		document.write ('<td><img src="../../images/communs/spacer.gif" height="5" width"1"></td>');					
		document.write ('</tr>');						
		document.write ('</table>');		
	}
}