posYmenu = 68;
bgcolor='#d7edff';
bgcolor2='#FFFFFF';
bgcolor3='#ADD7FF';
needcenter =true;
//posXmenu = 0;
if(!needcenter)
	posXmenu = 0;
else
	{	if (document.all)
		posXmenu = (document.body.clientWidth/2)-((760/2)+2);
	else
		posXmenu = (window.innerWidth/2)-((760/2)+2); 
	}
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:3; }')
document.write('#topgauche { position:absolute; top:'+posYmenu+'px; left:'+posXmenu+'px; z-index:10; }')

document.write('</style>')
document.write('<DIV class=popper id=topdeck></DIV>'); 
/* ********* LIENS */ 
zlien = new Array; 
zlien[0] = new Array; 
zlien[1] = new Array; 
zlien[2] = new Array; 
zlien[3] = new Array; 
zlien[4] = new Array; 
zlien[5] = new Array; 

zlien[6] = new Array; 
zlien[7] = new Array; 
zlien[8] = new Array; 
zlien[1][0] = '<A HREF="../Mairie/actualites.asp" CLASS="lien2" ><font color="#1f52ad">Actualités</font></A>'; 
zlien[1][1] = '<A HREF="../Mairie/Municipalite.asp" CLASS="lien2"><font color="#1f52ad">La municipalité</font></A>';
zlien[1][2] = '<A HREF="../Mairie/Services.asp" CLASS="lien2"><font color="#1f52ad">Les services municipaux</font></A>'; 
//zlien[1][3] = '<A HREF="../Mairie/Demarches.asp" CLASS="lien2"><font color="#1f52ad">Vos démarches administratives</font></A>';  
zlien[2][0] = '<A HREF="../Vivre/actualites.asp" CLASS="lien2"><font color="#1f52ad">Actualités</font></A>'; 
zlien[2][1] = '<A HREF="...Vivre/Presentation.asp" CLASS="lien2"><font color="#1f52ad">Présentation</font></A>'; 
//zlien[2][2] = '<A HREF="Vivre/Projets.asp" CLASS="lien2"><font color="#1f52ad">Projets</font></A>'; 
 
zlien[3][0] = '<A HREF="../Sortir/Actualites.asp" CLASS="lien2"><font color="#1f52ad">Actualités</font></A>'; 
zlien[3][1] = '<A HREF="../Sortir/Culture.asp" CLASS="lien2"><font color="#1f52ad">Culture</font></A>'; 
zlien[3][2] = '<A HREF="../Sortir/Sports.asp" CLASS="lien2"><font color="#1f52ad">Sports et loisirs</font></A>';
zlien[3][3] = '<A HREF="http://www.ot-pornic.fr" CLASS="lien2" target="_blank"><font color="#1f52ad">Office de tourisme</font></A>'; 

zlien[4][0] = '<A HREF="supportfaq_m.htm#suivi" CLASS=ejsmenu TARGET="mainFrame">Support et suivi de projet</A>'; 
zlien[4][1] = '<A HREF="supportfaq_m.htm#docs" CLASS=ejsmenu TARGET="mainFrame">Documentations en ligne</A>'; 
zlien[4][2] = '<A HREF="supportfaq_m.htm#versionsSygid" CLASS=ejsmenu TARGET="mainFrame">Les versions SyGID</A>';
zlien[4][3] = '<A HREF="supportfaq_m.htm#faq" CLASS=ejsmenu TARGET="mainFrame">FAQ</A>';
zlien[4][4] = '<A HREF="supportfaq_m.htm#forum" CLASS=ejsmenu TARGET="mainFrame">FORUM</A>'; 
zlien[5][0] = '<A HREF="liens_m.htm#liens" CLASS=ejsmenu TARGET="mainFrame">Les liens Web et Email</A>'; 
zlien[5][1] = '<A HREF="liens_m.htm#contacteznous" CLASS=ejsmenu TARGET="mainFrame">Contactez-nous</A>'; 

var ft = "";
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+19; 

function pop(msg,pos,ind) 
{ 

	switch (ind)
	{
		case 1 : 
			ft = "151";
			break;
		case 2 : 
			ft = "155";
			break;
		case 3 : 
			ft = "155";
			break;
		case 4 : 
			ft = "154";
			break;
	}
	skn.visibility = "hidden"; 
	a = true 
	skn.left = posXmenu+pos; 
	var content =" <TABLE class=tablemenu BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#FFFFFF WIDTH="+ft+" BGCOLOR=#000000 ><TR><TD onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage(\'Image2"+ind+"\',\'\',\'../Images/Bandeau/bouton1-"+ind+"_a.gif\',1);\"><TABLE BGCOLOR=#FFFFFF WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=1>";
	pass = 0
	while (pass < msg.length)
	{
		content += "<TR><TD BGCOLOR="+bgcolor+" onMouseOver=\"this.style.background='"+bgcolor2+"'\" onMouseOut=\"this.style.background='"+bgcolor+"'\" HEIGHT=13 align=center>"+msg[pass]+"</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";
}

function addToFavorite(favTitle){
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
    window.external.AddFavorite(location.href, unescape('toto'));
  }
}

Today = new Date;
Jour = Today.getDate();
Mois = (Today.getMonth())+1;
Annee = Today.getFullYear();
Message = + Jour + "/" + Mois + "/" + Annee;


document.onclick = kill;
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=100%><TR>')
document.write('<TD WIDTH=80 ALIGN=center ><A href="../default.asp" CLASS=ejsmenu><img name="Image21" border="0" src="../Images/Bandeau/bouton1-1_house_a.gif" width="150" height="27"></a></TD>')
document.write('<TD WIDTH=80 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[1],150,2)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A href="../mairie/actualites.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="pop(zlien[1],100);MM_swapImage(\'Image22\',\'\',\'../Images/Bandeau/bouton1-2_a.gif\',1);" CLASS=ejsmenu><img name="Image22" border="0" src="../Images/Bandeau/bouton1-2_ina.gif" width="154" height="27"></a></TD>')
document.write('<TD WIDTH=80 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[2],304,3)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A href="../vivre/actualites.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="pop(zlien[2],200);MM_swapImage(\'Image23\',\'\',\'../Images/Bandeau/bouton1-3_a.gif\',1);" CLASS=ejsmenu><img name="Image23" border="0" src="../Images/Bandeau/bouton1-3_ina.gif" width="154" height="27"></a></TD>')
document.write('<TD WIDTH=80 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[3],458,4)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A href="../sortir/actualites.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="pop(zlien[3],300);MM_swapImage(\'Image24\',\'\',\'../Images/Bandeau/bouton1-4_a.gif\',1);" CLASS=ejsmenu><img name="Image24" border="0" src="../Images/Bandeau/bouton1-4_ina.gif" width="153" height="27"></a></TD>')
document.write('<TD WIDTH=80 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';" onMouseOut="this.style.background=\''+bgcolor+'\'"><A href="mailto:contact@pornic.fr" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image25\',\'\',\'../Images/Bandeau/bouton1-5_arob_a.gif\',1);" CLASS=ejsmenu><img name="Image25" border="0" src="../Images/Bandeau/bouton1-5_arob_a.gif" width="150" height="27"></a></TD>')
document.write('</TR></TABLE>')
