
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var templateName = 'template_X14.html';

function  writeSiteLocation(){
	if (sPage == "index.shtml" ||  sPage == templateName) {
    document.write('<tr id="linkColor"><td colspan="10" align="left"><i>Accueil</i></td></tr>');
	} 
	if (sPage == "speciaux.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <i>Sp&eacute;ciaux</i></td></tr>');
	} 
	if (sPage == "catalogue.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <i>Catalogue</i></td></tr>');
	} 
	if (sPage == "trucs.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <i>Trucs et Astuces</i></td></tr>');
	} 
	if (sPage == "contact.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <i>Contact</i></td></tr>');
	} 
	
	if (sPage == "boisson.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <a href="catalogue.shtml">Catalogue</a> &gt; <i>Contr&ocirc;le de Boisson</i></td></tr>');
	}
	
	if (sPage == "outils.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <a href="catalogue.shtml">Catalogue</a> &gt; <i>Outils de Bar</i></td></tr>');
	}
	
	if (sPage == "utilitaires.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <a href="catalogue.shtml">Catalogue</a> &gt; <i>Utilitaires</i></td></tr>');
	}
	
	if (sPage == "cuisine.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <a href="catalogue.shtml">Catalogue</a> &gt; <i>Cuisine</i></td></tr>');
	}
	
	if (sPage == "serveur.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <a href="catalogue.shtml">Catalogue</a> &gt; <i>Serveur</i></td></tr>');
	}
	
	if (sPage == "party.shtml" ||  sPage == templateName) {
		document.write('<tr id="linkColor"><td colspan="10" align="left"><a href="index.shtml">Accueil</a> &gt; <a href="catalogue.shtml">Catalogue</a> &gt; <i>Party Time</i></td></tr>');
	}
}

function  writeMenu(){
	if (sPage == "catalogue.shtml" ||  sPage == templateName) {
          <!--writeCatalogueMenu();-->
	}
	if (sPage == "boisson.shtml" ||  sPage == templateName) {
          writeBoissonMenu();
	}
	if (sPage == "outils.shtml" ||  sPage == templateName) {
          writeOutilsMenu();
	}
	if (sPage == "utilitaires.shtml" ||  sPage == templateName) {
          writeUtilitairesMenu();
	}
	if (sPage == "cuisine.shtml" ||  sPage == templateName) {
          writeCuisineMenu();
	}
	if (sPage == "serveur.shtml" ||  sPage == templateName) {
          writeServeurMenu();
	}
	if (sPage == "party.shtml" ||  sPage == templateName) {
          writePartyMenu();
	}
}

function  writeCatalogueMenu(){
   		document.write('<tr>');
		document.write('<td colspan="10" align="center" >');
		document.write('<a href="boisson.shtml">Contr&ocirc;le de Boisson</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="outils.shtml">Outils de Bar</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="utilitaires.shtml">Utilitaires</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="cuisine.shtml">Cuisine</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="serveur.shtml">Serveur</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="party.shtml">Party Time</a>');
		document.write('</td>');
		document.write('</tr>');           
}

function  writeBoissonMenu(){
		document.write('<tr>');
		document.write('<td colspan="10" align="center" >');
		document.write('<a href="#acc">Bec Verseur et Accessoires</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#manuel">Contr&ocirc;le Manuel</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#protection">Accessoires de protection</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('</td>');
		document.write('</tr>'); 
}

function  writeOutilsMenu(){
		document.write('<tr>');
		document.write('<td colspan="10" align="center" >');
		document.write('<a href="#support">Support à verres et à bouteilles</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#tour">Tour à bière et à shooter</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#seaux">Seaux à glace</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#pelles">Pelles et pinces</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('</td>');
		document.write('</tr>'); 
	
		document.write('<tr>');
		document.write('<td colspan="10" align="center" >');
		document.write('<a href="#condiments">Contenants à condiments</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#givrer">Contenants à givrer</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#tapis">Tapis de bar</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#pots">Pots à jus et bouchons</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('</td>');
		document.write('</tr>'); 
	
		document.write('<tr>');
		document.write('<td colspan="10" align="center" >');
		document.write('<a href="#cabarets">Cabarets de service</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#verres">Verres etc.</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#shakers">Shaker et accessoires</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#divers">Divers</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('</td>');
		document.write('</tr>'); 
}

function  writeUtilitairesMenu(){
		document.write('<tr>');
		document.write('<td colspan="10" align="center" >');
		document.write('<a href="#sel">Sel et Poivre</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#presentoir">Présentoir</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#supports">Supports</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#billets">Bracelets et Billets d\'Entrée</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('</td>');
		document.write('</tr>'); 
}

function  writeCuisineMenu(){
		document.write('<tr>');
		document.write('<td colspan="10" align="center" >');
		document.write('<a href="#ustensiles">Ustensiles, etc.</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#pizza">Pizza</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#commande">Outils de commande</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#panier">Panier etc.</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#tabliers">Tabliers de cuisinier</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('</td>');
		document.write('</tr>'); 
}

function  writeServeurMenu(){
		document.write('<tr>');
		document.write('<td colspan="10" align="center" >');
		document.write('<a href="#limonadiers">Limonadiers et ensembles cadeaux</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#ouvre">Ouvre-bouteilles</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#portes">Portes-clé</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#serveurs">Tabliers et accessoires de serveurs</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#tabliers">Tabliers de serveurs et de cuisiniers</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('</td>');
		document.write('</tr>'); 
}

function  writePartyMenu(){
		document.write('<tr>');
		document.write('<td colspan="10" align="center" >');
		document.write('<a href="#alcootests">Alcootests</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#lampe">Lampe décor et effets spéciaux</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#machine">Machine à fumée et à bulles</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#confettis">Confettis et serpentins</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#bruit">Faites du bruit</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#deguisez">Déguisez vous</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<a href="#jeux">Jeux</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('</td>');
		document.write('</tr>');
}

function writeSectionTitle(title, key){
	document.write('<tr id="sectionTile">'); 
	document.write('<td id="sectionTile"><a name="' + key + '"></a>' + title + '</td>');
	document.write('<td id="sectionTitleHaut"> <a href="#top">Haut de Page </a></td>');
    document.write('</tr>'); 
	}