inMenu=false;
posYmenu = 78;
bgcolor='#FAE5D7';
bgcolor2='#F3F4F4';
needcenter =false;
if(!needcenter)
	posXmenu = 0;
else
	{	if (document.all)
		posXmenu = (document.body.clientWidth/2)-(300/2);
	else
		posXmenu = (window.innerWidth/2)-(300/2); 
	}
	
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; left:'+posXmenu+'px; z-index:3; }')
document.write('#topgauche { position:absolute; top:'+posYmenu+'px; left:'+posXmenu+'px; z-index:10; }')
document.write('A:hover.ejsmenu {color:#FF6600; text-decoration:none;}')
document.write('A.ejsmenu {color:#717171; text-decoration:none;}')
document.write('</style>')
document.write('<DIV class=popper id=topdeck></DIV>');
/*
SCRIPT EDITE SUR L'EDITEUR JAVACSRIPT
http://www.editeurjavascript.com
*/


zlien = new Array;
zlien[0] = new Array;
zlien[1] = new Array;
zlien[2] = new Array;
zlien[0][0] = '<A HREF="http://cantondessablesdolonne.fr/SM/fonctionnement/description.htm" onMouseOver="let_visible(true)" CLASS=ejsmenu>> Description</A>';
zlien[0][1] = '<A HREF="http://cantondessablesdolonne.fr/SM/fonctionnement/fonctionnement.htm" CLASS=ejsmenu>> Fonctionnement</A>';
zlien[0][2] = '<A HREF="http://cantondessablesdolonne.fr/SM/fonctionnement/presentationElus.htm" CLASS=ejsmenu>> Présentation des élus</A>';
zlien[0][3] = '<A HREF="http://cantondessablesdolonne.fr/SM/fonctionnement/competences.htm" CLASS=ejsmenu>> Compétences</A>';
zlien[1][0] = '<A HREF="http://cantondessablesdolonne.fr/SM/scot/scot.htm" CLASS=ejsmenu>> SCOT</A>';
zlien[1][1] = '<A HREF="http://cantondessablesdolonne.fr/SM/scot/scot_calendar.asp" CLASS=ejsmenu>> Calendrier du SCOT</A>';
zlien[1][2] = '<A HREF="http://cantondessablesdolonne.fr/SM/scot/scot_actus.asp" CLASS=ejsmenu>> Actualité du SCOT</A>';
zlien[1][3] = '<A HREF="http://cantondessablesdolonne.fr/SM/scot/scot_infos.asp" CLASS=ejsmenu>> Infos et docs</A>';
zlien[1][4] = '<A HREF="http://cantondessablesdolonne.fr/SM/scot/scot_acceselus.asp" CLASS=ejsmenu>> Accès acteurs SCOT</A>';
zlien[2][0] = '<A HREF="http://cantondessablesdolonne.fr/SM/actualites/actualites.asp" onMouseOver="let_visible(true)" CLASS=ejsmenu>> Les actualités</A>';
zlien[2][1] = '<A HREF="http://cantondessablesdolonne.fr/SM/actualites/deliberations.asp" CLASS=ejsmenu>> Délibérations SM</A>';
zlien[2][2] = '<A HREF="http://cantondessablesdolonne.fr/SM/actualites/acces_elus.asp" CLASS=ejsmenu>> Accès élus SM</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 }
skn.top = posYmenu+24;

function pop(msg,pos)
{
skn.visibility = "hidden";
a=true
skn.left = posXmenu+pos;
var content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=150><TR><TD><TABLE WIDTH=100% BORDER=1 BORDERCOLOR=#999999 CELLPADDING=0 CELLSPACING=0>";
pass = 0
while (pass < msg.length)
	{
	content += "<TR><TD BGCOLOR="+bgcolor+" onMouseOver=\"this.style.background='"+bgcolor2+"'\" onMouseOut=\"this.style.background='"+bgcolor+"'\" HEIGHT=18><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)
  {
	  window.parent.document.getElementById("topdeck").innerHTML = content;
	  skn.visibility = "visible";
  }
    else if (iex)
  {  		
	  document.all("topdeck").innerHTML = content;
	  skn.visibility = "visible";
  }
}
function kill()
{
	//alert(inMenu);
	if(!inMenu){
		inMenu=false;
		skn.visibility = "hidden";
	}
}
function kill_temp()
{
	window.setTimeout("kill()", 2000);	
}
function let_visible(state)
{
	inMenu=state;
}
document.onclick = kill;
