/* topbar() builds the top menu. Currently static, could be made dynamic and easier to add to. */
function topbar() {
	var menubar = "\<div align='right' style='padding:12px;' class='smallwhitetext'\>" +
					"\<a href='index.html'\>Accueil\<\/a\> | " +
					"\<a href='#'\>Contactez-Nous\<\/a\>" +
					"\<\/div\>";
					
	return (menubar);
}

/* Builds the left menu. Currently rather static, but still somewhat easy to add to. Takes the "pos" argument to ID the activated top menu */
function buildmenu(pos) {
	var menu;
	var mainmenu = new Array();
	var submenu = new Array();
	var menuitem = new Array();
	var submenuitem = new Array();
	
	/* Configuration Block */
	
	/* Define Main Menu */
	mainmenu[0] = "Accueil|index.html|0";
	mainmenu[1] = "Dépliant|/files/broch-versantcache-final-2008.pdf|0";
	mainmenu[2] = "Contactez Nous|#|0";
	/*End Menu */
	
	menu = '<div align="right" style="width:189px; height:8px;"><img src="/images/mnu_topshadow.gif" width="189" height="8" alt="mnutopshadow" /></div>';
	
	for (i=0;i<mainmenu.length;i++) {
		menuitem = mainmenu[i].split("|");
		
		menu += '<div class="linksmenu" align="center"><a href="' + menuitem[1] + '" title="' +
				menuitem[0] + '">' + menuitem[0] + '</a></div>';
				
		if (pos.toUpperCase()==menuitem[0].toUpperCase()) {
			for (j=0;j<submenu.length;j++) {
				submenuitem = submenu[j].split("|");
				
				if (submenuitem[2].toUpperCase()==pos.toUpperCase()) {
					menu += '<div class="linkssubmenu" align="center"><a href="' + submenuitem[1] + '" title="' +
							submenuitem[0] + '">' + submenuitem[0] + '</a></div>';
					
				}
			}
		}
		
		//alert(menu);
	}
	
	menu += '<div align="right" style="width:189px; height:8px;"><img src="/images/mnu_bottomshadow.gif" width="189" height="8" alt="mnubottomshadow" /></div>';
	//alert(menu);
	
	return(menu);
}

function footer() {
/*
<a href="#">Accueil</a> | <a href="#">Contactez-Nous</a> | <a href="#">English</a><br />
Design par <a href="http://www.winkhosting.com" title="Hosting Colombia">Hosting Colombia</a> - TerrainChalet.com &copy; 2008
*/
	var content = "\<a href=\"index.html\"\>Accueil\<\/a\> | " +
					"\<a href=\"#\"\>Contactez-Nous\<\/a\>" +
					"\<br \/\> Design par \<a href=\"http:\/\/www.winkhosting.com\" title=\"Hosting Colombia\"\>" +
					"Hosting Colombia\<\/a\> | \<a href=\"http:\/\/www.VersantCache.com\"\>" +
					"VersantCache.com\<\/a\> &copy; 2008";
					
	return (content);
}
