function flashit(idlink){
if (!document.all)
return
if (document.getElementById(idlink).style.color=="red")
document.getElementById(idlink).style.color="#EDEDED"
else
document.getElementById(idlink).style.color="red"
}

var nbr_menus = 5;
var height_entry = 15;
var nbr_entry = new Array();
	nbr_entry[1] = 4;
	nbr_entry[2] = 3;
	nbr_entry[3] = 1;
	nbr_entry[4] = 3;
	nbr_entry[5] = 1;

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function createMenu () {
	var ctnmenu = new Array();
	ctnmenu[1] = "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"1a_entreprise_presentation.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Pr&eacute;sentation</td>"
  			+ "</tr>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"1b_entreprise_certificat.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Certification</td>"
  			+ "</tr>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"1c_entreprise_parc.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Parc machines </td>"
  			+ "</tr>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"1d_entreprise_localisation.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Localisation</td>"
  			+ "</tr>"
		+ "</table>";

	ctnmenu[2] = "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"2a_savoirfaire_affutage.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Affûtage</td>"
  			+ "</tr>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"2b_savoirfaire_fabrication-1.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Fabrication</td>"
  			+ "</tr>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"2c_savoirfaire_controlequal.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Contrôle qualité</td>"
  			+ "</tr>"
		+ "</table>";

	ctnmenu[3] = "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"3a_services_revetement.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Services</td>"
  			+ "</tr>"
		+ "</table>";

	ctnmenu[4] = "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"4a_atouts_pointsforts.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Points forts</td>"
  			+ "</tr>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"4b_atouts_secteurs.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Secteurs d'activités</td>"
  			+ "</tr>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"4c_atouts_ambitions.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Ambitions</td>"
  			+ "</tr>"
		+ "</table>";			

	ctnmenu[5] = "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
  			+ "<tr>"
    				+ "<td nowrap class='entry_ssmenu' onMouseDown='document.location.href=\"5a_contact.htm\"' onMouseOver='this.style.background=\"#FFD260\"' onMouseOut='this.style.background=\"#CCE4FF\"'>Renseignements</td>"
  			+ "</tr>"
		+ "</table>";
		
	for (i=1;i<=nbr_menus;i++) {
		
		document.write ("<div id='menu"+i+"' style='position:absolute; left:10px; top:10px; width:100px; height:30px; z-index:"+(10+i)+"; visibility: hidden;'>"
  			+ "<table border='0' height='"+(nbr_entry[i]*height_entry+1)+"' cellpadding='0' cellspacing='0'>"
    				+ "<tr>"
      					+ "<td width='4'><img src='../img/menu/ssmenu_HG.png' width='5' height='5' class='png'></td>"
      					+ "<td><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
          					+ "<tr>"
            						+ "<td width='5'><img src='../img/menu/ssmenu_H1.png' width='5' height='5' class='png'></td>"
            						+ "<td><img src='../img/menu/ssmenu_H2.png' width='100%' height='5' class='png'></td>"
            						+ "<td width='5'><img src='../img/menu/ssmenu_H3.png' width='5'height='5' class='png'></td>"
          					+ "</tr>"
      					+ "</table></td>"
      					+ "<td width='5'><img src='../img/menu/ssmenu_HD.png' width='5' height='5' class='png'></td>"
    				+ "</tr>"
    				+ "<tr>"
      					+ "<td><table width='5' height='100%' border='0' cellspacing='0' cellpadding='0'>"
          					+ "<tr>"
            						+ "<td height='5'><img src='../img/menu/ssmenu_G1.png' width='5' height='5' class='png'></td>"
          					+ "</tr>"
          					+ "<tr>"
            						+ "<td><img src='../img/menu/ssmenu_G2.png' width='5' height='100%' class='png'></td>"
          					+ "</tr>"
          					+ "<tr>"
            						+ "<td height='5'><img src='../img/menu/ssmenu_G3.png' width='5' height='5' class='png'></td>"
          					+ "</tr>"
      					+ "</table></td>"
      					+ "<td>"+ ctnmenu[i]+"</td>"
      					+ "<td><table width='5' height='100%' border='0' cellspacing='0' cellpadding='0'>"
          					+ "<tr>"
            						+ "<td height='5'><img src='../img/menu/ssmenu_D1.png' width='5' height='5' class='png'></td>"
          					+ "</tr>"
          					+ "<tr>"
            						+ "<td><img src='../img/menu/ssmenu_D2.png' width='5' height='100%' class='png'></td>"
          					+ "</tr>"
          					+ "<tr>"
            						+ "<td height='5'><img src='../img/menu/ssmenu_D3.png' width='5' height='5' class='png'></td>"
          					+ "</tr>"
      					+ "</table></td>"
    				+ "</tr>"
    			+ "<tr>"
      				+ "<td><img src='../img/menu/ssmenu_BG.png' width='5' height='5' class='png'></td>"
      				+ "<td><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
          				+ "<tr>"
            					+ "<td width='5'><img src='../img/menu/ssmenu_B1.png' width='5' height='5' class='png'></td>"
            					+ "<td><img src='../img/menu/ssmenu_B2.png' width='100%' height='5' class='png'></td>"
            					+ "<td width='5'><img src='../img/menu/ssmenu_B3.png' width='5' height='5' class='png'></td>"
          				+ "</tr>"
      				+ "</table></td>"
      				+ "<td><img src='../img/menu/ssmenu_BD.png' width='5' height='5' class='png'></td>"
    			+ "</tr>"
  		+ "</table></div>");
	}
}

function affMenu (id) {
	MM_swapImgRestore();
	for (i=1;i<=nbr_menus;i++) {	
		MM_showHideLayers('menu'+i,'','hide');
	}
	if (id != 0) {
		MM_showHideLayers('menu'+id,'','show');	
		document.getElementById("blank").style.visibility = "visible";
	} else {
		document.getElementById("blank").style.visibility = "hidden";
	}
}
