//Magic Menu V2.1.1 - http://www.ToutJavaScript.com/magicmenu
var main=""; function CREERMAGIC() {
main=new CreerMain(100,30,17);
m1=new CreerMenu("m1",0,"");main.Add("Accueil",100,"m1","http://www.gouy-st-andre.com/");m1.add("S'abonner à la new letter","http://gouy.freeheberg.com/abonnement.php","","");m1.add("Se désabonner","http://gouy.freeheberg.com/desabonnement.php","","");m2=new CreerMenu("m2",0,"");main.Add("Espace citoyen",100,"m2","");m2.add("Service Publique Particulier","http://www.gouy-st-andre.com/service-public-particulier.htm","","");m2.add("Service Publique Associations","http://www.gouy-st-andre.com/service-public-association.htm","","");m2.add("Service Publique Professionnels","http://www.gouy-st-andre.com/service-public-professionnels.htm","","");m2.add("-","","","");m2.add("Le mot du Maire","http://www.gouy-st-andre.com/motdumaire.htm","","");m2.add("Composition","http://www.gouy-st-andre.com/mairie.htm","","");m2.add("Délégations","http://www.gouy-st-andre.com/commissions.htm","","");m2.add("Les conseillers","http://www.gouy-st-andre.com/conseiller.htm","","");m2.add("Démarches administratives","http://www.gouy-st-andre.com/demarches-administratives.htm","","");m2.add("Tri sélectif calendrier","http://www.gouy-st-andre.com/collecte.htm","","");m2.add("Cadastre en ligne","http://www.cadastre.gouv.fr/","","");m2.add("A D P S P","http://www.gouy-st-andre.com/2010-adpsp.htm","","");m2.add("-","","","");m2.add("Comptes rendus","http://www.gouy-st-andre.com/reunion-2007.htm","","");m3=new CreerMenu("m3",1,"");m2.add("Elections","",m3,"");m3.add("Législatives 2007 1er tour","http://www.gouy-st-andre.com/2007-legisltives-1tour.htm","","");m3.add("Législatives 2007 2eme tour","http://www.gouy-st-andre.com/2007-legislatives-2tour.htm","","");m3.add("-","","","");m3.add("Présidentielle 2007 1er tour","http://www.gouy-st-andre.com/2007-presidentielles-1tour.htm","","");m3.add("Présidentielle 2007 2eme tour","http://www.gouy-st-andre.com/2007-presidentielles-2tour.htm","","");m3.add("-","","","");m3.add("Municipale 2008","http://www.gouy-st-andre.com/election-2008.htm","","");m3.add("-","","","");m3.add("Européenne 2009","http://www.gouy-st-andre.com/2009-europeenne.htm","","");m3.add("-","","","");m3.add("Régionale 2010 : 1er tour","http://www.gouy-st-andre.com/2010-regionale1.htm","","");m3.add("Régionale 2010 : 2e tour","http://www.gouy-st-andre.com/2010-regionale2.htm","","");m4=new CreerMenu("m4",1,"");m2.add("Téléchargements","",m4,"");m4.add("Brochure Bienvenue à Gouy...","http://www.gouy-st-andre.com/telechargements/Brochure_Gouy-st-Andre_Web.pdf","","");m4.add("Règlement Chant des Oiseaux","http://www.gouy-st-andre.com/telechargements/Reglement_chant_des_oiseaux.pdf","","");m4.add("Fiche inscription centre de Loisirs","http://www.gouy-st-andre.com/telechargements/fiche_inscription_centre_loisir.pdf","","");m4.add("Fiche inscription Brocante MontJoie2000","http://www.gouy-st-andre.com/telechargements/brocante-montjoie2000.pdf","","");m4.add("Recensement 2004","http://www.gouy-st-andre.com/telechargements/n3_62382.pdf","","");m5=new CreerMenu("m5",0,"");main.Add("L'Histoire",100,"m5","");m5.add("Eglise","http://www.gouy-st-andre.com/eglise.htm","","");m5.add("Le Village","http://www.gouy-st-andre.com/historiqueGOUY.htm","","");m5.add("Le Département","http://www.gouy-st-andre.com/departement.htm","","");m5.add("L'Etat Civil","http://www.gouy-st-andre.com/etatcivil.htm","","");m5.add("Le monument aux morts","http://www.gouy-st-andre.com/monument.htm","","");m6=new CreerMenu("m6",0,"");main.Add("Equipements",125,"m6","");m6.add("Salle Chant des Oiseaux","http://www.gouy-st-andre.com/chant-des-oiseaux.htm","","");m6.add("Bibliothèque","http://www.gouy-st-andre.com/bibliotheque-Marcel-Duhamel.htm","","");m6.add("Cinéma","http://www.gouy-st-andre.com/film.htm","","");m6.add("Vente de terrains constructibles","http://www.gouy-st-andre.com/terrains.htm","","");m6.add("-","","","");m6.add("Jachère fleurie","http://www.gouy-st-andre.com/jachere-2007.htm","","");m7=new CreerMenu("m7",1,"");m6.add("Cartes Postales","http://www.gouy-st-andre.com/postales.htm",m7,"");m7.add("Afficher toutes les cartes","http://www.gouy-st-andre.com/postales.htm","","");m7.add("-","","","");m7.add("- L'ancienne place 1","http://www.gouy-st-andre.com/carte1.htm","","");m7.add("- L'ancienne place 2","http://www.gouy-st-andre.com/carte7.htm","","");m7.add("- La ferme de St André","http://www.gouy-st-andre.com/carte2.htm","","");m7.add("- Une Maison","http://www.gouy-st-andre.com/carte3.htm","","");m7.add("- La rue de Campagne","http://www.gouy-st-andre.com/carte4.htm","","");m7.add("- Gouy Aérien","http://www.gouy-st-andre.com/carte5.htm","","");m7.add("- L'église saint Martin","http://www.gouy-st-andre.com/carte6.htm","","");m7.add("-","","","");m7.add("Fond d'écran","http://www.gouy-st-andre.com/fond.htm","","");m8=new CreerMenu("m8",0,"");main.Add("La vie du Village",125,"m8","");m8.add("Les associations","http://www.gouy-st-andre.com/associations.htm","","");m8.add("Commerces & entreprises","http://www.gouy-st-andre.com/commerces.htm","","");m8.add("Où sommes nous ? + Plan","http://www.gouy-st-andre.com/situation.htm","","");m8.add("Se loger","http://www.gouy-st-andre.com/gite.htm","","");m8.add("-","","","");m8.add("Le calendrier des fêtes 2003","http://www.gouy-st-andre.com/calendrier2003.htm","","");m8.add("Le calendrier des fêtes 2004","http://www.gouy-st-andre.com/calendrier2004.htm","","");m8.add("Le calendrier des fêtes 2005","http://www.gouy-st-andre.com/calendrier2005.htm","","");m8.add("Le calendrier des fêtes 2006","http://www.gouy-st-andre.com/calendrier2006.htm","","");m8.add("Le calendrier des fêtes 2007","http://www.gouy-st-andre.com/calendrier2007.htm","","");m8.add("Le calendrier des fêtes 2008","http://www.gouy-st-andre.com/calendrier2008.htm","","");m8.add("Le calendrier des fêtes 2009","http://www.gouy-st-andre.com/calendrier2009.htm","","");m8.add("Le calendrier des fêtes 2010","http://www.gouy-st-andre.com/calendrier2010.htm","","");m9=new CreerMenu("m9",0,"");main.Add("Reportages",125,"m9","");m9.add("Reportage 2001","http://www.gouy-st-andre.com/reportage2001.htm","","");m9.add("Reportage 2002","http://www.gouy-st-andre.com/reportage2002.htm","","");m9.add("Reportage 2003","http://www.gouy-st-andre.com/reportage2003.htm","","");m9.add("Reportage 2004","http://www.gouy-st-andre.com/reportage2004.htm","","");m9.add("Reportage 2005","http://www.gouy-st-andre.com/reportage2005.htm","","");m9.add("Reportage 2006","http://www.gouy-st-andre.com/reportage2006.htm","","");m9.add("Reportage 2007","http://www.gouy-st-andre.com/reportage2007.htm","","");m9.add("Reportage 2008","http://www.gouy-st-andre.com/reportage2008.htm","","");m9.add("-","","","");m9.add("Portrait de Fabrice Delcuse","http://www.gouy-st-andre.com/fabrice-delcuse.htm","","");m9.add("Beuvain S. Champion de France","http://www.gouy-st-andre.com/beuvain_stephane.htm","","");m9.add("Marcelle Boudinel","http://www.gouy-st-andre.com/boudinel_marcelle.htm","","");m9.add("Un bol de riz pour la bonne cause","http://www.gouy-st-andre.com/2004-bolderiz.htm","","");m9.add("Aménagement réseau EDF","http://www.gouy-st-andre.com/reseau.htm","","");m9.add("La bibliothèque Marcel Duhamel","http://www.gouy-st-andre.com/2004-Marcel.htm","","");m9.add("Voyage pédagogique école 2005","http://www.gouy-st-andre.com/2005-confitures.htm","","");m9.add("Médailles de la jeunesse et des sports","http://www.gouy-st-andre.com/2006-medailles.htm","","");m9.add("Remise de maillots JP Duval","http://www.gouy-st-andre.com/2007-foot-maillot.htm","","");m9.add("La médaille la famille Française","http://www.gouy-st-andre.com/2007-medaille-lenne.htm","","");m9.add("Remise de maillots M. Princes","http://www.gouy-st-andre.com/2007-foot-maillot2.htm","","");m9.add("Saint André des Arts","http://www.gouy-st-andre.com/Saint-andre-des-arts.htm","","");m9.add("Richard Leroy Enduropale","http://www.gouy-st-andre.com/richard-leroy.htm","","");m9.add("Galerie des compagnons d'arts","2009-compagnonsdarts.htm","","");m9.add("Installation panneaux solaires","http://www.gouy-st-andre.com/2010-panneaux-solaires.htm","","");m10=new CreerMenu("m10",0,"");main.Add("contacts",100,"m10","");m10.add("Fabrice Webmaster","mailto:fabrice@gouy-st-andre.com","","");m10.add("MSN Fabrice","msnim:add?contact=fa-brice62@hotmail.fr ","","");m10.add("Mairie","mailto:mairie.gouystandre@wanadoo.fr","","");m10.add("Mes sites préférés","http://www.gouy-st-andre.com/sites.htm","","");} CREERMAGIC();var font="tahoma";var colBarre="#412A22";var colFond="gray";var colContour="";var colOver="#412A22";var colTextOff="#FFFFCC"; var colTextOn="#E5CE74";var cssTexte=";font-weight:bold;color:#FFFFCC;font-family:tahoma;font-size:12px";var hauteur=17;var nivmax=4;var delai=500;var isout=0;
function CreerMain(X,Y,haut,colFOn,colFOff,colTOn,colTOff) {this.nb=0;this.X=X;this.Y=Y;this.haut=haut;this.Add=AddMain;this.Print=PrintMain;}
function AddMain(txt,larg,mnu,url,target) {var m=new Object; m.txt=txt;m.larg=larg,m.mnu=mnu,m.url=url;m.target=target;this.nb++;this[this.nb]=m;if(mnu!=''){eval(mnu+'.parent="'+txt+'"')};}
function PrintMain() {
var larg=0;	for (i=1;i<=main.nb;i++) {larg+=main[i].larg+1;}
this.X=Math.round((mmgetlarg()-larg)/2);
	X=this.X; Y=this.Y; A="";
	for (var i=1;i<=this.nb;i++) {
 if (this[i].mnu==""){this[i].mnu='0';}
		if ((document.all)||(window.sidebar)) {
         var clic=""; var style=""; if(this[i].url!="") {style="cursor:hand;"; clic=" onclick='window.location=\""+this[i].url+"\"'";}
			A+="<DIV id='main"+i+"' style='position:absolute;left:"+X+";top:"+Y+";"+style+"width:"+this[i].larg+";height:"+this.haut+";background-color:"+colBarre+";"+cssTexte+";text-align:center' onmouseover='start("+i+","+this[i].mnu+","+X+","+(Y+this.haut+1)+")'"+clic+">"+this[i].txt+"</DIV>";
		}
		if (document.layers) {
	var txt=this[i].txt;if(this[i].url!="") {txt="<A href='"+this[i].url+"'>"+txt+"</A>";}
       A+="<LAYER name='main"+i+"' left="+X+" top="+Y+" width="+this[i].larg+" height="+this.haut+" bgcolor="+colBarre+"  onmouseover='start("+i+","+this[i].mnu+","+X+","+(Y+this.haut+1)+")'><CENTER><SPAN style='background-color:"+colBarre+cssTexte+"'>"+txt+"</SPAN></CENTER></LAYER>";
		}
		X+=this[i].larg+1;
	}
	document.write(A);
}
function CreerMenu(nom,niv,target) {this.nb=0; this.X=0;this.Y=0; this.width=1; this.niv=niv; this.parent=""; this.ON=-1;this.nom=nom;this.target=""; if ((target!="")&&(target!=null)) this.target=target;this.add=Add;this.aff=Aff;}
function Add(lib,lnk,mnu,target) {var rub = new Object;	rub.lib=lib; rub.target=target;	rub.lnk=""; if ((lnk!="")&&(lnk!=null)) rub.lnk=lnk; rub.mnu=""; if ((mnu!="")&&(mnu!=null)) {rub.mnu=mnu; mnu.parent=this}	this[this.nb]=rub;	this.nb++;}
function start(i,mnu,x,y) {
	isout=1;hideall(i);isout=0
x=parseInt(GetLeft("main"+i));
	if (mnu!=0){mnu.aff(x,y)};
	BGCalque("main"+i,colOver); FontCalque("main"+i,colTextOn); SizeCalque("fond",mmgetlarg()-x+20);
	MoveCalque("fond",x-50,y+1);
	ShowCalque("fond");
	return false;
}
function onfond() {
	isout=1;
	setTimeout("hideall()",delai);
}
function hideall(i) {
	if (isout==1) {
		for (var i=0;i<nivmax;i++) {HideCalque("niv"+i); HideCalque("fond");}
		for (var i=1;i<=main.nb;i++) {BGCalque("main"+i,colBarre); FontCalque("main"+i,colTextOff);}
	}
}
function hide(mnu) {
	if (mnu.ON>-1) {
		if (mnu[mnu.ON].mnu!="") {
			var nom="niv"+mnu[mnu.ON].mnu.niv;
			HideCalque(nom);
			hide(mnu[mnu.ON].mnu);
		}
	}
	mnu.ON=-1;
}
function over(mnu,i) {
	var nom="niv"+mnu.niv+"n"+i;
	var nomtd=nom+"td";
	isout=0;
	BGCalque(nom,colOver);
	FontCalque(nomtd,colTextOn);
}
function out(mnu,i) {
	var nom="niv"+mnu.niv+"n"+i; 	var nomtd=nom+"td";
	if (mnu[i].lib!="-") {
		BGCalque(nom,colFond);
		FontCalque(nomtd,colTextOff)
	}
}
function clear(mnu) {
	  for (var j=0;j<mnu.nb;j++) {
	   out(mnu,j);
	   hide(mnu);
	}
}
function mmover(mnu,i) {
	clear(mnu);
	over(mnu,i);
	mnu.ON=i;
	if (mnu[i].mnu!="") {
		mnu[i].mnu.aff();
	}
}
function mmclick(mnu) {
	lnk=mnu[mnu.ON].lnk;
	if (lnk!="") {
			if (mnu[mnu.ON].target=="_blank") {window.open(lnk)}
			else {
				if   (mnu[mnu.ON].target=="")	{window.location=lnk;}
				else {parent.frames[mnu[mnu.ON].target].location.href=lnk;}
			}
	}
}
function mmgetlarg() {if (document.layers){return parseInt(document.width)} else {return parseInt(document.body.offsetWidth)}}
var mmlarg=0;
function mmrepos() {
if (mmgetlarg()!=mmlarg){var larg=0;for (i=1;i<=main.nb;i++) {larg+=main[i].larg+1;}
var X=Math.round((mmgetlarg()-larg)/2);	main.X=X;MoveCalque("fond",X-1,main.Y)
for (i=1;i<=main.nb;i++) {MoveCalque("main"+i,X,main.Y);X+=main[i].larg+1;}}
mmlarg=mmgetlarg();	setTimeout("mmrepos()",1000);}
function AFF() {
var n=new Image; n.src="http://www.gouy-st-andre.com/images/Menu/fleche.gif";var m=new Image; m.src="http://www.gouy-st-andre.com/images/Menu/vide.gif";	if ((document.all)||(window.sidebar)) {
var A="<DIV id='fond' style='position:absolute;top:10;left:100;width:500;height:400;visibility:hidden;font-family:"+font+"' onmouseover='onfond()'></DIV>";A+="<DIV id='niv0' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";A+="<DIV id='niv1' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";A+="<DIV id='niv2' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";A+="<DIV id='niv3' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";} else {var A="<LAYER name='fond' width=500 height=600 visibility=hide top=100 left=100 onmouseover='onfond()'>&nbsp;</LAYER>";A+="<LAYER name='niv0' top=200 left=200 visibility=show></LAYER>";A+="<LAYER name='niv1' top=200 left=200 visibility=show></LAYER>";A+="<LAYER name='niv2' top=200 left=200 visibility=show></LAYER>";A+="<LAYER name='niv3' top=200 left=200 visibility=show></LAYER>";}	document.write(A);main.Print();
setTimeout("mmrepos()",100);
}
function Aff(x,y) {
var nom=this.nom;	var niv="niv"+this.niv;
if (this.niv==0) {X=x;Y=y;}
else {X=this.parent.X+this.parent.width-2;Y=this.parent.Y+(hauteur+4)*this.parent.ON}if ((document.all)||(window.sidebar)) {
var A=""
A+="<TABLE border=0 cellpadding=0 cellspacing=0 style='border-color:"+colContour+";border-style:solid;border-width:1px'>";
for (var i=0;i<this.nb;i++) {
if (this[i].lib=="-") {
A+="<TR><TD style='background-color:"+colFond+";font-size:10px;border-style:none;margin:0px;height:"+(hauteur-2)+"px' colspan=2><DIV  style='background-color:"+colFond+";height:"+(hauteur+2)+"px'><HR noshade style='color:"+colContour+";height:1px'></DIV></TD></TR>"; 
} else {
var img="http://www.gouy-st-andre.com/images/Menu/vide.gif";if (this[i].mnu!="") { img="http://www.gouy-st-andre.com/images/Menu/fleche.gif"}
A+="<TR><TD style='cssTexte;border-style:none;margin:0px'><DIV id='"+niv+"n"+i+"' style='cursor:hand;background-color:"+colFond+cssTexte+"'  onmouseover='mmover("+this.nom+","+i+")' onClick='mmclick("+this.nom+")'><TABLE border=0 width=100% cellspacing=0><TR><TD style='font-size:12px;padding-top:3px;padding-bottom:3px;padding-left:3px;'><DIV id='"+niv+"n"+i+"td' style='"+cssTexte+"'>"+this[i].lib+"</DIV></TD><TD width=10 align=right><IMG src='"+img+"' height='"+hauteur+"' width='"+hauteur+"'></TD></TR></TABLE></DIV></TD></TR>";
}
}
A+="</TABLE>"
}else{
var A="<table border=0 cellspacing=0 cellpadding=1><tr><td bgcolor="+colContour+">";
A+="<TABLE border=0 cellpadding=0 cellspacing=0 bgcolor="+colFond+" width=100%>";
for (var i=0;i<this.nb;i++) {
if (this[i].lib=="-") {
A+="<TR><TD><HR width=99% height=1%></TD></TR>";
} else {
var img="http://www.gouy-st-andre.com/images/Menu/vide.gif";if (this[i].mnu!="") { img="http://www.gouy-st-andre.com/images/Menu/fleche.gif"}
A+="<TR><TD><TABLE border=0 width=100% cellspacing=0><TR><TD><A href='javascript:mmclick("+this.nom+")' onmouseover='mmover("+this.nom+","+i+")'><SPAN style='background-color:"+colFond+cssTexte+"'>"+this[i].lib+"</SPAN></A></TD><TD width=10 align=right><IMG src='"+img+"' height="+hauteur+" width="+hauteur+"></TD></TR></TABLE></TD></TR>";
}
}
A+="</TABLE></TD</TR></TABLE>"
}
if (document.all) {document.all[niv].innerHTML=A+"&nbsp;";document.all[niv].style.top=Y;document.all[niv].style.left=X;document.all[niv].style.visibility="visible";this.X=X;this.Y=Y;this.width=document.all[niv].clientWidth;}
if (window.sidebar) {document.getElementById(niv).innerHTML=A;document.getElementById(niv).style.top=Y;document.getElementById(niv).style.left=X;document.getElementById(niv).style.visibility="visible";this.X=X;this.Y=Y;this.width=document.getElementById(niv).offsetWidth;}
if (document.layers) {document.layers[niv].left=X;document.layers[niv].top=Y;document.layers[niv].document.write(A);document.layers[niv].document.close();document.layers[niv].visibility="show";this.X=X;this.Y=Y;this.width=document.layers[niv].clip.width;}}
function HideCalque(nom) {
if (document.all) {document.all[nom].style.visibility="hidden";}
if (window.sidebar) {document.getElementById(nom).style.visibility="hidden";}
if (document.layers) {document.layers[nom].visibility="hide";}
}
function ShowCalque(nom) {
if (document.all) {document.all[nom].style.visibility="visible";}
if (window.sidebar) {document.getElementById(nom).style.visibility="visible";}
if (document.layers) {document.layers[nom].visibility="show";}
}
function BGCalque(nom,BG) {
if (document.all) {document.all[nom].style.backgroundColor=BG;}
if (window.sidebar) {document.getElementById(nom).style.backgroundColor=BG;}
}
function FontCalque(nom,Font) {
if (document.all) {document.all[nom].style.color=Font;}
if (window.sidebar) {document.getElementById(nom).style.color=Font;}
}
function MoveCalque(nom,X,Y) {
if (document.all) {document.all[nom].style.top=Y;document.all[nom].style.left=X;}
if (window.sidebar) {document.getElementById(nom).style.top=Y;document.getElementById(nom).style.left=X;}
if (document.layers) {document.layers[nom].top=Y;document.layers[nom].left=X;}
}
function GetLeft(nom) {
if (document.all) {return document.all[nom].style.left;}
if (window.sidebar) {return document.getElementById(nom).style.left}
if (document.layers) {return document.layers[nom].left;}
}
function SizeCalque(nom,larg) {
if (document.all) {document.all[nom].style.width=larg;}
if (window.sidebar) {document.getElementById(nom).style.width=larg;}
if (document.layers) {document.layers[nom].width=larg;}
}
// VERSION
