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;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits;reservations*/
	promos[0] = new Array('', 'SMOKE FREE', 'Manoir des Sables 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/plein_air-hiver.jpg', 'THE OUTDOOR AT<br>MANOIR DES SABLES', 'Free activities with<br>all lodging packages', 'skate, tubing, snowshoeing,<br>crosscontryski and much more!', 'pages-eg/act_place-region.htm', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;tarifsForfaits;reservations;reunions', false);
	promos[2] = new Array('../images-eg/promos/trolley-gratuit.jpg', 'SHUTTLE SERVICE', '', '', 'http://www.trolleymagogorford.com/', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', true);
	promos[3] = new Array('../images-fr/promos/reservert.jpg', 'RÉSER VERT', '', '', 'http://www.reservert.com', 'plan;accueil;activites;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;centreSante;tarifsForfaits;reservations;reunions', true);
	promos[3] = new Array('../images/promos/savonnerie.jpg', 'SAVONNERIE DES DILIGENCES', '', '', 'http://www.savonneriediligences.ca/', 'activites', true);
	promos[4] = 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[5] = new Array('../images-eg/promos/spa.gif', '', '', '', 'http://www.spavillegia.com/', 'plan;accueil;activites;certificatCadeau;condos;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;spa;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;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;tarifsForfaits;reservations;reunions', false);

	//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('', '<strong>THE OUTDOOR AT<br>MANOIR DES SABLES</strong>', 'Free activities with<br>all lodging packages', 'skate, tubing, snowshoeing,<br>crosscontryski and much more!', '', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;tarifsForfaits;reservations;reunions', false);
	//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('../images/promos/plein_air-hiver.jpg', 'THE OUTDOOR AT<br>MANOIR DES SABLES', 'Free activities with<br>all lodging packages', 'skate, tubing, snowshoeing,<br>crosscontryski and much more!', '', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;tarifsForfaits;reservations;reunions', false);
	//promos[x] = new Array('../images-eg/promos/offre_derniere-minute.jpg', '', '', '', '', 'plan;accueil;activites;certificatCadeau;condos;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;spa;tarifsForfaits', true);
	//promos[x] = new Array('../images-eg/promos/st-sylvestre.jpg', '', '', '', '../../promovillegia/mailing_20081008/sables-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;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits;reservations', 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;algotherapie;certificatCadeau;contact;gastronomie;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', true);
	//promos[x] = new Array('../images/promos/plein_air-hiver.jpg', 'THE OUTDOOR AT<br>MANOIR DES SABLES', 'Free activities with<br>all lodging packages', 'Bike, pedal boat, canoe,<br>kayak and much more!', '', 'accueil', false);
	//promos[x] = new Array('../images/promos/plein_air-hiver.jpg', 'THE OUTDOOR AT<br>MANOIR DES SABLES', 'Free activities with<br>all lodging packages', 'skate, tubing, snowshoeing,<br>crosscontryski and much more!', '', 'accueil', false);
	//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#forfaitsSante', 'accueil', false);
	//promos[x] = new Array('../images/promos/certificat_cadeau.jpg', 'GREAT GIFTS IDEA', 'Offer to the love one<br>a Spa Villegia gift certicate', '', 'pages-eg/tarifs_forfaits.htm#forfaitsSante', 'accueil;algotherapie', false);
	//promos[x] = new Array('../images/promos/championnat_golf.jpg', 'SENIOR PROFESSIONAL GOLF CHAMPIONSHIP', 'On June 11th 2007 at the Manoir des Sables was held the Senior Professional Golf Championship.', 'Mr. Claude Tremblay was crowned the winner with a score&nbsp;of 70 (-1). Mr. Bigras, 69&nbsp;years old, hit a score of&nbsp;71.', '', 'accueil;golf', false);
	//promos[x] = new Array('../images/promos/golf_gratuit.jpg', '$1 GOLF OFFER', '', '', 'pages-eg/offres_speciales.htm', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;reunions;tarifsForfaits;reservations', false);
	//promos[x] = new Array('../images/promos/refuge.gif', 'COME AND ENJOY<br>A NEW RELAY', '', '', '', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', false);
	//promos[x] = new Array('../images-eg/promos/coupon_20.gif', '$20 REBATE PER NIGHT', '', '', 'pages-eg/offres_speciales.htm', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;reunions;tarifsForfaits;reservations', false);
	//promos[x] = new Array('../images-eg/promos/samedis_romantiques.gif', 'COME CELEBRATE<br>VALENTINE\'S DAY', '', '', 'pages-eg/offres_speciales.htm#valentin', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;reunions;tarifsForfaits;reservations', false);
	//promos[x] = new Array('../images-eg/promos/temps_fetes.gif', 'MANOIR DES SABLES', 'offers special packages<br>for your greater pleasure', '', '../../promovillegia/mailing_112806/index-eg.htm', 'plan;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', true);
	//promos[x] = new Array('', 'GIFT CERTIFICATE', 'The special gift for<br>the someone special!', 'Purchase on line.', 'pages-eg/certificat_cadeau.php?lang=eg', 'plan;accueil;activites;algotherapie;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', false);
	//promos[x] = new Array('../images/promos/algotherapie.jpg', 'RELAXATION PACKAGE', '', '', 'pages-eg/offres_speciales.htm', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;reunions;tarifsForfaits', false);
	//promos[x] = new Array('../images/promos/gastronomie.jpg', 'GASTRONOMY', 'Wether you choose the great taste of high gastronomy or friendly Bistro table d\'hote three-course menu, our chef surely knows how to satisfy your taste buds!', '', 'pages-eg/gas_intro.htm', 'hebergement;mariagesReceptions', false);
	//promos[x] = new Array('', 'YOUS LOOK<br>FOR TEAM-BUILDING?', 'There are several<br>possibilities with the<br><a href="http://www.corporate-adventure.com/" class="lienInv" target="_blank">Corpo-Aventures</a> company,<br>the <a href="http://www.orford.com/activites.php?id=181&sec=2" class="lienInv" target="_blank">Mont Orford</a> or <a href="http://www.safariloowak.qc.ca/" class="lienInv" target="_blank">Safari<br>Loowak,</a> you are spoilt<br>for choice.', '', '', 'activites;reunions', false);
	//promos[x] = new Array('../images/promos/bar_grill.jpg', 'BAR&amp;GRILL ALBATROS', 'is the &laquo;rendez-vous&raquo;<br>for those who like grilled<br>and light foods.', 'It\'s also the place to watch<br>all the golfers finish their<br>18th hole.', 'pages-eg/gas_bar-grill.htm', 'golf', false);
	//promos[x] = new Array('../images/promos/activites_sur-place.jpg', 'ON-SITE ACTIVITIES', 'Whether it is summer or<br>winter, the hotel offers<br>various on site activities.', 'Outdoor/indoor pools, tennis,<br>golf, nautical activities, cross-<br>country skiing, snowshoeing,<br>skating, tube sliding...', 'pages-eg/act_place-region.htm', 'tarifsForfaits', false);
	//promos[x] = new Array('../images/promos/algotherapie.jpg', 'CLINIQUE ALGOTH&Eacute;RAPIE', 'Experience... rejuvenating body care.  Indulge yourself in tender moments of wellness by taking advantage of the health an beauty services of the Clinique Algoth&eacute;rapie.', '', 'pages-eg/algotherapie.htm', 'activites;certificatCadeau;golf;tarifsForfaits', false);
	//promos[x] = new Array('../images/promos/bar_grill.jpg', 'BAR&amp;GRILL ALBATROS', 'Warm atmosphere, pool<br>tables, and a wonderful<br>view: all the ingredients of<br>conviviality after a working<br>day and outdoor activities.', '', 'pages-eg/gas_bar-grill.htm', '', false);
	//promos[x] = new Array('../images/promos/temps_fetes.jpg', 'FOR A MAGIC HOLIDAY', 'at Manoir des Sables', 'Christmas & New Year\'s<br>Package starting at $130<br>per person', '../pdfs-fr/forfaits_noel.pdf', 'plan;accueil;activites;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;offresSpeciales;reunions;tarifsForfaits', true);
	//promos[x] = new Array('', 'ROOM STARTING<br>AT $68 PER PERSON', '', '', 'pages-eg/heb_intro.htm', 'accueil', 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;algotherapie;certificatCadeau;contact;gastronomie;golf;hebergement;localisation;mariagesReceptions;reunions;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('../images-eg/promos/forfait_relache.gif', 'SCHOOLBREAK SPECIAL', '(February 17th thru<br>March 18th 2006)', 'The more you stay,<br>the more you save.<br>Ask about our packages.', 'pages-eg/tarifs_forfaits.htm', 'accueil', 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>');		
	}
}