/*
   Menu dynamique retouché par David Deneux (position relative)
   04/02/2004
*/


/* PARAMETRAGE DU MENU DYNAMIQUE */

activeBgColor = '#888888';
unactiveBgColor = '#3366CC';
ParentMenuWidth=100;

document.write('<style type="text/css">');
document.write('.hjsmenu { POSITION: absolute; VISIBILITY: hidden; z-index:3; }');
document.write('A:hover.ljsmenu {color:#000000; text-decoration:none;}');
document.write('A.ljsmenu {color:#FFFFFF; text-decoration:none;}');
document.write('</style>');
document.write('<DIV class=hjsmenu id=GAmenu></DIV>');

/* SETTING DES LIENS DYNAMIQUES */
zlien = new Array;
zlien[0] = new Array;
zlien[1] = new Array;
zlien[2] = new Array;
zlien[3] = new Array;
zlien[4] = new Array;
zlien[0][0] = '<A HREF="Accueil.htm" CLASS=ljsmenu>page Accueil</A>';
zlien[1][0] = '<A HREF="presentationGA.htm" CLASS=ljsmenu>Présentation de la Scop</A>';
zlien[1][1] = '<A HREF="activiteGA.htm" CLASS=ljsmenu>Ce que nous proposons?</A>';
zlien[2][0] = '<A HREF="Nospartenaires.htm" CLASS=ljsmenu>Nos Partenaires</A>';
zlien[3][0] = '<A HREF="listeporteurs.htm" CLASS=ljsmenu>les porteurs de projets</A>';
zlien[4][0] = '<A HREF="nouscontacter.htm" CLASS=ljsmenu>Nos coordonnées</A>';
zlien[4][1] = '<A HREF="mailto:contact@germesdactivites.com" CLASS=ljsmenu>Envoyer un mail</A>';

myclick = new Array;
myclick[0] = new Array("accueil.htm");
myclick[1] = new Array("presentationGA.htm", "activiteGA.htm");
myclick[2] = new Array("nospartenaires.htm");
myclick[3] = new Array("Anais.htm");
myclick[4] = new Array("nouscontacter.htm");


/* Setting de l'objet menu (selon navigateur) */
var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);

if (nava) {
	mymenu = document.GAmenu
}else if (dom) {
	mymenu = document.getElementById("GAmenu").style
}else if (iex) {
	mymenu = GAmenu.style
}



function printMenu(msg) {
	killCurrentMenu();
	mymenu.zIndex++;
	mymenu.top = document.body.scrollTop + 405  /* + event.clientY - event.offsetY; */
	mymenu.left = document.body.scrollLeft + 110 + ParentMenuWidth; /* + event.clientX - event.offsetX + ParentMenuWidth; */
	var content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=250><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=1>";
	pass = 0
	while (pass < msg.length)
		{
		content += "<TR><TD BGCOLOR="+unactiveBgColor+" onMouseOver=\"this.style.background='"+activeBgColor+"'\" onMouseOut=\"this.style.background='"+unactiveBgColor+"'\" HEIGHT=30><FONT SIZE=1 FACE=\"Verdana\"><B>&nbsp;&nbsp;"+msg[pass]+"</B></FONT></TD></TR>";
		pass++;
		}
	content += "</TABLE></TD></TR></TABLE>";
	if (nava)
	  {
	    	mymenu.document.write(content);
		mymenu.document.close();
		mymenu.visibility = "visible";
	  }
    	else if (dom)
	  {
		document.getElementById("GAmenu").innerHTML = content;
		mymenu.visibility = "visible";
  	  }
	else if (iex)
	  {
		document.all("GAmenu").innerHTML = content;
	  	mymenu.visibility = "visible";
	  }
}

function killCurrentMenu(){
	mymenu.visibility = "hidden";
}

document.onclick = killCurrentMenu;

document.write('<DIV ID=ZAPPY_MENU><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=150><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 BORDER=0 WIDTH=100% HEIGHT=50>')
document.write('<TR><TD WIDTH=150 ALIGN=center BGCOLOR='+unactiveBgColor+' onMouseOver="this.style.background=\''+activeBgColor+'\';printMenu(zlien[0],1,1)" onMouseOut="this.style.background=\''+unactiveBgColor+'\'" HEIGHT=30><A onClick="return(false)" onMouseOver="printMenu(zlien[0])" href=# CLASS=ljsmenu><FONT SIZE=1 FACE="Verdana"><B>Accueil</B></FONT></a></TD></TR>')
document.write('<TR><TD WIDTH=150 ALIGN=center BGCOLOR='+unactiveBgColor+' onMouseOver="this.style.background=\''+activeBgColor+'\';printMenu(zlien[1],40,1)" onMouseOut="this.style.background=\''+unactiveBgColor+'\'" HEIGHT=30><A onClick="return(false)" onMouseOver="printMenu(zlien[1])" href=# CLASS=ljsmenu><FONT SIZE=1 FACE="Verdana"><B>Notre Activité</B></FONT></a></TD></TR>')
document.write('<TR><TD WIDTH=150 ALIGN=center BGCOLOR='+unactiveBgColor+' onMouseOver="this.style.background=\''+activeBgColor+'\';printMenu(zlien[2],60,1)" onMouseOut="this.style.background=\''+unactiveBgColor+'\'" HEIGHT=30><A onClick="return(false)" onMouseOver="printMenu(zlien[2])" href=# CLASS=ljsmenu><FONT SIZE=1 FACE="Verdana"><B>Nos partenaires</B></FONT></a></TD></TR>')
document.write('<TR><TD WIDTH=150 ALIGN=center BGCOLOR='+unactiveBgColor+' onMouseOver="this.style.background=\''+activeBgColor+'\';printMenu(zlien[3],92,1)" onMouseOut="this.style.background=\''+unactiveBgColor+'\'" HEIGHT=30><A onClick="return(false)" onMouseOver="printMenu(zlien[3])" href=# CLASS=ljsmenu><FONT SIZE=1 FACE="Verdana"><B>Nos porteurs de projets</B></FONT></a></TD></TR>')
document.write('<TR><TD WIDTH=150 ALIGN=center BGCOLOR='+unactiveBgColor+' onMouseOver="this.style.background=\''+activeBgColor+'\';printMenu(zlien[4],125,1)" onMouseOut="this.style.background=\''+unactiveBgColor+'\'" HEIGHT=30><A onClick="return(false)" onMouseOver="printMenu(zlien[4])" href=# CLASS=ljsmenu><FONT SIZE=1 FACE="Verdana"><B>Nous Contacter</B></FONT></a></TD></TR>')
document.write('</TABLE></TD></TR></TABLE></DIV>')
//alert('Script execute');