//Menu gauche (Home, Contact, About US, ... ect)
function js_ShowMenuGauche(){
	var l_path = '';
	var l_path_img = '../../images/';
	var l_path_page = '../';
	// gestion des chemin passés en paramètre	
	if (js_ShowMenuGauche.arguments.length > 1)
	{
		l_path_img = js_ShowMenuGauche.arguments[1];
		if (js_ShowMenuGauche.arguments.length > 2)
		{
			l_path = js_ShowMenuGauche.arguments[2];
			if (js_ShowMenuGauche.arguments.length > 3)
			{
				l_path_page = js_ShowMenuGauche.arguments[3];
			}
		}
	}
	document.writeln('<table width="88" height="135" border="0" cellpadding="0" cellspacing="0">');
	/* Liens de rtour vers le site HD  */
 	document.writeln('<tr><td height="20" align="right" class="cellRetour"><img src="../../comresweb/images/flechHDback.gif">&nbsp;&nbsp;<a href="http://www.happydoo.com/pages/'+l_langue+'/home.html" class="lienRetour">'+l_menu_gauche_libelle['happydoo']+'</a></td></tr>');
	document.writeln('<tr><td height="20" align="right">&nbsp;</td></tr>'); 
	document.writeln('<tr><td height="20" align="right"><a href="'+l_path+'home.html" class="Lien2">'+l_menu_gauche_libelle['accueil']+'</a></td></tr>');
	document.writeln('<tr><td height="20" align="right">&nbsp;</td></tr>');
	document.writeln('<tr><td height="20" align="right"><a href="'+l_path_page+'contact.php?Language='+l_langue+'" class="Lien2">'+l_menu_gauche_libelle['contact']+'</a></td></tr>');
	document.writeln('<tr><td height="10" align="right"><img src="'+l_path_img+'transpa.gif" width="1" height="10"></td></tr>');
	document.writeln('<tr><td height="20" align="right"><a href="'+l_path+'aboutus.html" class="Lien2">'+l_menu_gauche_libelle['aboutus']+'</a></td></tr>');
	document.writeln('<tr><td height="10" align="right"><img src="'+l_path_img+'transpa.gif" width="1" height="10"></td></tr>');
	document.writeln('<tr><td height="20" align="right"><a href="'+l_path+'jobs.html" class="Lien2">'+l_menu_gauche_libelle['job']+'</a></td></tr>');
	document.writeln('</table>');
}
//Menu haut (Merchant) 
function js_ShowMenuHaut(SousMenu){
	var color = 'Rouge';
	var l_path = '';
	var l_path_img = '../../images/';
	var l_path_page = '../';
	// gestion des chemin passés en paramètre
	if (js_ShowMenuHaut.arguments.length > 1)
	{
		l_path_img = js_ShowMenuHaut.arguments[1];
		if (js_ShowMenuHaut.arguments.length > 2)
		{
			l_path = js_ShowMenuHaut.arguments[2];
			if (js_ShowMenuHaut.arguments.length > 3)
			{
				l_path_page = js_ShowMenuHaut.arguments[3];
			}
		}
	}
	//Menu Onglets
	document.writeln('<table width="747" height="20" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<tr><td width="1" height="20"><img src="'+l_path_img+'transpa.gif" width="1" height="20"></td>');
	// onglet H2Etraffic
	document.writeln('<td width="114" height="20" align="center" class="MenuOrange">');
	document.writeln('<a href="http://www.h2etraffic.com/pages/'+l_langue+'/home.html" class="LienOrange">'+l_menu_haut_libelle['traffic']+'</a></td>');
	document.writeln('<td width="2" height="20"><img src="'+l_path_img+'transpa.gif" width="2" height="10"></td>');
	// onglet H2Epayment
	document.writeln('<td width="113" height="20" align="center" class="MenuRouge">');
	document.writeln('<a href="http://www.h2epayment.com/pages/'+l_langue+'/home.html" class="LienRouge">'+l_menu_haut_libelle['payment']+'</a></td>');
	document.writeln('<td width="2" height="20"><img src="'+l_path_img+'transpa.gif" width="2" height="10"></td>');
	// onglet H2Eaccount
	document.writeln('<td width="113" height="20" align="center" class="MenuBleu">');
	document.writeln('<a href="http://www.h2eaccount.com/pages/'+l_langue+'/home.html" class="LienBleu">'+l_menu_haut_libelle['account']+'</a></td>');
	document.writeln('<td width="2" height="20"><img src="'+l_path_img+'transpa.gif" width="2" height="10"></td>');
	// onglet H2Emerchant
	document.writeln('<td width="113" height="20" align="center" class="MenuJaune">');
	document.writeln('<a href="http://www.h2emerchant.com/pages/'+l_langue+'/home.html" class="LienJaune">'+l_menu_haut_libelle['merchant']+'</a></td>');
	document.writeln('<td width="2" height="20"><img src="'+l_path_img+'transpa.gif" width="2" height="10"></td>');
	// onglet H2Eservices
	document.writeln('<td width="113" height="20" align="center" class="MenuVert">');
	document.writeln('<a href="http://www.h2eservices.com/pages/'+l_langue+'/home.html" class="LienVert">'+l_menu_haut_libelle['hservices']+'</a></td>');
	document.writeln('<td width="2" height="20"><img src="'+l_path_img+'transpa.gif" width="2" height="10"></td>');
	// fin de tableau
	document.writeln('<td height="20" class="Trait">&nbsp;</td>');
	document.writeln('</tr>');
	document.writeln('</table>');

/*	
	//ecriture du code du debut du tableau html
	document.writeln('<table width="747" height="20" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('<tr>');
	document.writeln('<td width="1" height="19"><img src="'+l_path_img+'transpa.gif" width="1" height="19"></td>');
	document.writeln('<td height="19" valign="middle" class="Fond'+color+'"><img src="'+l_path_img+'Separ'+color+'.gif" width="25" height="8">');
	
	//boucle 'for' . lit les lignes du Array - 'if' . si sousmenu contient un type, la classeCSS(nomclasse) du menu passe à SMenuSelect 
	for (i=0;i<tabsmenu.length;i++){
		if(SousMenu==tabsmenu[i]['type']){
			//nomclasse="SMenuSelect";
			ID="ID=SMenuChoice";
							
		}
		else{
			//nomclasse="SMenu"+color;
			ID="";	
		}
		
		//Remplissage et ecriture de la case du menu correspondant 
		//document.writeln('<a href="'+tabsmenu[i]['page']+'" class="'+nomclasse+'" '+tabsmenu[i]['target']+'>'+tabsmenu[i]['lib']+'</a>');		
		document.writeln('<a href="'+tabsmenu[i]['page']+'" class="SMenu'+color+'" '+ID+' '+tabsmenu[i]['target']+'>'+tabsmenu[i]['lib']+'</a>');		

		
		//Si le dernier choix du menu n'est pas atteint on affiche l'inage de séparation
		if(i<tabsmenu.length-1){
			document.writeln('<img src="'+l_path_img+'Separ'+color+'.gif" width="25" height="8">');
		}
		
		
	}
	
	//ecriture du code de fin du tableau html
	document.writeln('</td>');
	document.writeln('</tr>');
	document.writeln('</table>');
*/
}