// JavaScript Document
bgcolor='#000000';
bgcolor2='#7B7B7B';
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:3; }')
document.write('#topgauche { position:absolute;  z-index:10; }')
document.write('A:hover.ejsmenu {color:#FFFFFF; font-size:11px; text-decoration:none;}')
document.write('A.ejsmenu {color:#FFFFFF; font-size:11px; text-decoration:none;}')
document.write('</style>')

if(navigator.appName=="Netscape"){
	largeur_menu=385;	
}else{
	largeur_menu=382;	
}
document.write('<div style="position:relative;height:25;margin-left: '+largeur_menu+'px;"><DIV class=popper id=topdeck></DIV>');
/*
SCRIPT EDITE SUR L'EDITEUR JAVACSRIPT
http://www.editeurjavascript.com
*/

/*
LIENS
*/
zlien = new Array;
zlien[0] = new Array;
zlien[1] = new Array;
zlien[1][0] = '<A HREF="avelbio-procede.php" CLASS=\'LienSSMenu Taille11\'>Avelbio&reg;</A>';
zlien[1][1] = '<A HREF="orgawatt.php" CLASS=\'LienSSMenu Taille11\'>Orgawatt&reg;</A>';
zlien[2] = new Array;
var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);
if (nava) { skn = document.topdeck }
else if (dom) { skn = document.getElementById("topdeck").style }
else if (iex) { skn = topdeck.style }

skn.top = 24;
function pop(msg,pos)
{
	skn.visibility = "hidden";
	a=true
	skn.left = pos;
	/*if(navigator.appName=="Netscape"){
		document.getElementById("topdeck").style.left = 200;
	}*/
	var content="";
if(pos==0){
}else{
	content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#FFFFFF WIDTH=93><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
}
	pass = 0
	while (pass < msg.length)
		{
		content += "<TR><TD background='img/gabarit/ssmenu_off.gif' onMouseOver='this.style.backgroundImage=\"url(img/gabarit/ssmenu_on.gif)\"' onmouseout='this.style.backgroundImage=\"url(img/gabarit/ssmenu_off.gif)\"' HEIGHT=24  align='center'><FONT SIZE=1 FACE=\"Verdana\">&nbsp;&nbsp;"+msg[pass]+"</FONT></TD></TR>";
		pass++;
		}
	content += "</TABLE></TD></TR></TABLE>";
	if (nava)
	  {
		skn.document.write(content);
		  skn.document.close();
		  skn.visibility = "visible";
	  }
		else if (dom)
	  {
		  document.getElementById("topdeck").innerHTML = content;
		  skn.visibility = "visible";
	  }
		else if (iex)
	  {
		  document.all("topdeck").innerHTML = content;
		  skn.visibility = "visible";
	  }
}
function kill()
{
	skn.visibility = "hidden";
}
document.onclick = kill;



/*Si on est dans la page*/
var variables=new Array()
var choix1="menu_off.gif";
var choix2="menu_on.gif";
var choix3="menu_off.gif";

function clear(text)
{
	while (text.search(/%20/) != -1)
		text = text.replace(/%20/," ");
	return text;
}
function cutUrl()
{
	var str1 = document.location.search;
	var str2 = str1;
	var pos1 = 1;
	var pos2 = pos1;
	var pos3 = pos1;
	var count = 0;

	while ( (pos2 = str1.indexOf("&", pos1)) != -1 )
	{
		str2 = str1.substring(pos1,pos2);
		pos3 = str2.indexOf("=");
		variables[count] = new Array();
		variables[count]["name"] = str2.substring(0,pos3);
		variables[count]["value"] = clear(str2.substring(pos3+1,str2.length));
		pos1 = pos2+1;
		count++;
	}

	pos2 = str1.length;
	str2 = str1.substring(pos1,pos2);
	pos3 = str2.indexOf("=");
	variables[count] = new Array();
	variables[count]["name"] = str2.substring(0,pos3);
	variables[count]["value"] = clear(str2.substring(pos3+1,str2.length));
}
function getHiddens()
{
	cutUrl();
	var hiddens = new Array();
	for (var i=0; i < variables.length; i++)
		if(variables[i]["name"]=="id"){
			if(variables[i]["value"]==1){
				choix1="menu_on.gif";
				choix2="menu_off.gif";
				choix3="menu_off.gif";
			}else{
				if(variables[i]["value"]==3){
					choix1="menu_off.gif";
					choix2="menu_off.gif";
					choix3="menu_on.gif";
				}else{
					choix1="menu_off.gif";
					choix2="menu_on.gif";
					choix3="menu_off.gif";
				}
			}
		}
//		hiddens[i] = "<input type=\"hidden\" name=\"" + variables[i]["name"] + "\" value=\"" + variables[i]["value"] + "\">";

//	return hiddens;
}

function checkNum(entree)
{
	var int_format = /^\d+$/;
	if (!int_format.test(entree.value))
	{
		alert('Ce champ doit etre numerique');
		entree.focus();
		return false
	}
	return true
}



var hiddens = getHiddens();
/*for (var i=0; i < hiddens.length; i++)
	{
	alert(hiddens[i]);
	document.write(hiddens[i]);
	}*/
	


document.write('<DIV ID=topgauche><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=273><TR><TD><TABLE CELLPADING=0 CELLSPACING=0 BORDER=0 WIDTH=100% HEIGHT=23><TR>')
document.write('<TD WIDTH=91 ALIGN=center background="img/gabarit/'+choix1+'" onMouseOver="pop(zlien[0],0);this.style.backgroundImage=\'url(img/gabarit/menu_on.gif)\'" onmouseout="this.style.backgroundImage=\'url(img/gabarit/'+choix1+')\'"><A onClick="return(true)" onMouseOver="pop(zlien[0],0)" href="societe.php?id=1" CLASS="ejsmenu">Soci&eacute;t&eacute;</a></TD>')
document.write('<TD WIDTH=91 ALIGN=center background="img/gabarit/'+choix2+'" onMouseOver="pop(zlien[1],91);this.style.backgroundImage=\'url(img/gabarit/menu_on.gif)\'" onmouseout="this.style.backgroundImage=\'url(img/gabarit/'+choix2+')\'"><A onClick="return(false)" onMouseOver="pop(zlien[1],91)" href=avelbio-procede.php CLASS=ejsmenu>Nos produits</a></TD>')
document.write('<TD WIDTH=91 ALIGN=center background="img/gabarit/'+choix3+'" onMouseOver="pop(zlien[2],0);this.style.backgroundImage=\'url(img/gabarit/menu_on.gif)\'" onmouseout="this.style.backgroundImage=\'url(img/gabarit/'+choix3+')\'"><A onClick="return(true)" onMouseOver="pop(zlien[2],0)" href=contact.php?id=3 CLASS=ejsmenu>Contact</a></TD>')
document.write('</TR></TABLE></TD></TR></TABLE></DIV></div>')


























