ns4 = (document.layers);

bgcolor='#616161';
bgcolor_over='#333333';
largeur_cellule=150;
marge_cellule=3;
espacement_cellule=1;
/***** ROLLOVERS *****/
function swapImgRestore()
{
	var i,x,a=document.sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
		x.src=x.oSrc;
}

function preloadImages()
{
	var d=document;
	if(d.images)
	{
		if(!d.p)
			d.p=new Array();
		var i,j=d.p.length,a=preloadImages.arguments;
		for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0)
			{
				d.p[j]=new Image;
				d.p[j++].src=a[i];
			}
	}
}

function findObj(n, d)
{
	var p,i,x;
	if(!d)
		d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length)
	{
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all)
		x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++)
		x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++)
		x=findObj(n,d.layers[i].document);
	if(!x && document.getElementById)
		x=document.getElementById(n);
	return x;
}

function swapImage() {
	var i,j=0,x,a=swapImage.arguments;
	document.sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
		if ((x=findObj(a[i]))!=null)
		{
			document.sr[j++]=x;
			if(!x.oSrc)
				x.oSrc=x.src;
			x.src=a[i+2];
		}
}

/***** CLASSES *****/
document.write('<style type="text/css">');
document.write('.popper { position:absolute; visibility:hidden; z-index:2; }')
document.write('#topgauche { position:absolute; top:0px; left:303px; z-index:1; }')
document.write('A:hover.menu {font-family: Arial, Helvetica, sans-serif; font-size: 9px;color:#FFFF66; text-decoration:none;}')
document.write('A.menu {font-family: Arial, Helvetica, sans-serif; font-size: 9px;color:#F7F6E2; text-decoration:none;}')
document.write('</style>')
document.write('<DIV class=popper id=topdeck></DIV>');

/***** LIENS *****/
zlien = new Array;
zlien[0] = new Array;
zlien[1] = new Array;
zlien[0][0] = '<A HREF="http://www.comotec.com/fr/entreprise/index.htm" CLASS=menu>COMOTEC &reg;  - Groupe Forsym &reg; </A>';
zlien[0][1] = '<A HREF="http://www.comotec.com/fr/entreprise/index2.htm" CLASS=menu>Innovations</A>';
zlien[0][2] = '<A HREF="http://www.comotec.com/fr/entreprise/index3.htm" CLASS=menu>Implantations</A>';
zlien[0][3] = '<A HREF="http://www.comotec.com/fr/entreprise/index6.htm" CLASS=menu>Communication</A>';
zlien[1][0] = '<A HREF="http://www.comotec.com/fr/produits/index3.htm" CLASS=menu>Une offre globale : B.A.S</A>';
zlien[1][1] = '<A HREF="http://www.comotec.com/fr/produits/index.htm" CLASS=menu>Des produits complémentaires</A>';
zlien[1][2] = '<A HREF="http://www.comotec.com/fr/produits/index2.htm" CLASS=menu>Une offre adaptée à vos besoins</A>';
zlien[1][3] = '<A HREF="http://www.comotec.com/fr/produits/index4.htm" CLASS=menu>Nouveaux produits</A>';
zlien[0][4] = '<A HREF="http://www.comotec.com/fr/emploi/index.htm" CLASS=menu>Ressources Humaines</A>';
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 }

/***** FONCTION POP SOUS-MENUS *****/
function pop(msg,pos,y)
{
	clearTimeout(tempo1);
	skn.visibility = "hidden";
	skn.left = pos;
	skn.top = y;
	var content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#F7F6E2><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING="+marge_cellule+" CELLSPACING="+espacement_cellule+">";
	pass = 0
	while (pass < msg.length)
	{
		content += "<TR><TD WIDTH="+(largeur_cellule-2*marge_cellule-2*espacement_cellule)+" BGCOLOR="+bgcolor+" onMouseOver=\"clearTimeout(tempo1);this.style.background='"+bgcolor_over+"'\" onMouseOut=\"hide();this.style.background='"+bgcolor+"'\">"+msg[pass]+"</TD></TR>";
		pass++;
	}
	content += "</TABLE></TD></TR></TABLE>";
	if (nava)
	{
		skn.document.write(content);
		skn.document.close();
	}
	else if (dom)
	{
		document.getElementById("topdeck").innerHTML = content;
	}
	else if (iex)
	{
		document.all("topdeck").innerHTML = content;
	}
	skn.visibility = "visible";
}

////////// EFFACEMENT SOUS MENU //////////

tempo1 = setTimeout('test=true', 1);

function hide()
{
	tempo1=setTimeout('skn.visibility="hidden";test=true', 1000);
}

function hide_now()
{
	skn.visibility = "hidden";
}

/***** EFFACER LES SOUS-MENUS QUAND CLICK *****/
document.onclick = hide_now;

/***** AFFICHER LES MENUS *****/
document.write('<DIV ID=topgauche><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000><TR>')
document.write('<TD><A onMouseOver="swapImage(\'Image_menu1\',\'\',\'http://www.comotec.com/fr/images/bout01-on.gif\',1);pop(zlien[0],303,24);test=false" onMouseOut="swapImgRestore();hide()" onClick="return(false)" href=# CLASS=menu><IMG name="Image_menu1" SRC="http://www.comotec.com/fr/images/bout01.gif" border="0"></a></TD>')
document.write('<TD><A onMouseOver="swapImage(\'Image_menu2\',\'\',\'http://www.comotec.com/fr/images/bout02-on.gif\',1);pop(zlien[1],394,48);test=false" onMouseOut="swapImgRestore();hide()" onClick="return(false)" href=# CLASS=menu><IMG name="Image_menu2" SRC="http://www.comotec.com/fr/images/bout02.gif\" border="0"></a></TD>')
document.write('</TR></TABLE></DIV>')