var NumMenu=0, displaySousMenu=false;
var menuLength=11;
var  Tabcode = new Array();
function effaceMenu(){
	 for(i=0 ; i <Tabcode.length;i++)
		 Tabcode[i].style.visibility='hidden';
		
		
		} // fin fonction

function afficheMenu(obj,numMenu, hauteur, largeur, posV, posH){
var code=document.getElementById(numMenu);
//identifie le menu 
effaceMenu();
// positionnement et largeur du menu à afficher
code.style.visibility='visible';
code.style.width=largeur*2;
code.style.top=parseInt(hauteur+posV+5);code.style.left=parseInt(posH-(largeur/2));
code.style.position="absolute";
switch(numMenu){

case 1 :
code.innerHTML="<table align=center  border=1 cellpading=0 cellspacing=0 >"+
"<TR><TD onmouseover=this.style.background='red' onmouseout=this.style.background='' >"+
"<center><a target=_blank class='fonte'" + 
" href='http://gratuitannonces-online.com/identite-profil.html'> <font color=navy size=4>inscription</font></A><BR>" + 
" Vous devrez accepter de recevoir de la pub de nos partenaires par" + 
" email et sur portable</center></TD></TR></table> ";
break;

case 2 :

code.innerHTML=" <table align=center  border=1 cellpading=0 cellspacing=0 >"+
"<TR><TD onmouseover=this.style.background='red' onmouseout=this.style.background='' >"+
 "<a target=_blank class='fonte' href='http://gratuitannonces-online.com/programme_protection_contractant.html'>"+
"Programme de protections des achats</a>";
code.innerHTML+=" Gratuit et obligatoire, il est la raison d'être tactique de ce site</TD></TR></table> ";
break;

case 3:
code.innerHTML=" <table align=center  border=1 cellpading=0 cellspacing=0 >"+
"<TR><TD onmouseover=this.style.background='red' onmouseout=this.style.background='' >"+
"<a  target=_blank class='fonte'"+
" href='http://gratuitannonces-online.com/CondUtil_Gratuit_Annnonces_ol.html'>Les annonces sont vérifiées regulierement"+
" pour assurer la p&eacute;r&eacute;nit&eacute; de la qualit&eacute; du site. Ainsi, vos N° de Tel n\'apparaitront pas "+
" dans l'annonce elle même mais dans la fiche de contact</A></TD></TR></table> ";
break;

case 4:
code.innerHTML=" <table align=center  border=1 cellpading=0 cellspacing=0 >"+
"<TR><TD onmouseover=this.style.background='red' onmouseout=this.style.background='' >"+
" <a  target=_blank class='fonte'"+ 
" href='http://gratuitannonces-online.com/faq.html'>Questions féquemment pos&eacute;es</A></TD></TR></table> ";
 break;

case 5:
code.innerHTML=" <table align=center  border=1 cellpading=0 cellspacing=0 >"+
"<TR><TD onmouseover=this.style.background='red' onmouseout=this.style.background='' >"+
" <a  target=_blank  class='fonte'"+
 " href='http://www.gratuitannonces-online.com/image-auto-moto-immeuble.html'>T&eacute;l&eacute;chargez image(s)de votre"+
 " annonce gratuite</a></TD></TR></table> ";
 break;

case 6:
code.innerHTML=" <table align=center  border=1 cellpading=0 cellspacing=0 >"+
"<TR><TD onmouseover=this.style.background='red' onmouseout=this.style.background='' >"+
" <a HREF='javascript:void(0)' onClick='rechPseudoCode()' class='fonte'> "+
"<B>Votre</B> mot de passe et les codes de vos  annonces gratuites</A></TD></TR></table> ";
 break;

case 7:
code.innerHTML=" <table align=center  border=1 cellpading=0 cellspacing=0 >"+
"<TR><TD onmouseover=this.style.background='red' onmouseout=this.style.background='' >"+
" <div align=center><a HREF='Javascript:void(0)' onClick='openCredits()'> <img src='./images/genie.jpg' width="+largeur*2+"></A></div></TD></TR></table> ";
break;


case 8:
code.innerHTML=" <table align=center  cols=1 border=1 cellpading=0 cellspacing=0><TR><TD onmouseover=this.style.background='red' >"+
"<a class='fonte' href='http://gratuitannonces-online.com/somerech.html'> Voir annonces gratuites Méta-moteur</A></TD></TR></table> ";
break;

case 9:
code.innerHTML=" <table align=center  border=1 cellpading=0 cellspacing=0 >"+
"<TR><TD onmouseover=this.style.background='red' onmouseout=this.style.background='' >"+
"<a target=_blank class='fonte'"+
" href='http://gratuitannonces-online.com/annonce_gratuite_achat_vente_location_auto_moto_immo.html'>"+
"==> enregistrez une annonce Auto-moto OBJETS immobilier transaction commerciales</A></TD></TR></table> ";
 break;

case 10 :
code.innerHTML=" <table align=center  cols=1 border=1 cellpading=0 cellspacing=0><TR>"+
"<TD onmouseover=this.style.background='red' onmouseout=this.style.background=''>"+ 
"<img SRC='Bullet.gif' height=10 width=10>"+
"<a class='fonte' target=_blank href='http://gratuitannonces-online.com/connection.html'> connectez vous a votre"+
" interface perso</A></TD></TR></table> ";
 break;


case 11 : 
code.innerHTML=" <table align=center  cols=1 border=1 cellpading=0 cellspacing=0><TR>"+
"<TD onmouseover=this.style.background='red' onmouseout=this.style.background=''>"+ 
"<img SRC='Bullet.gif' height=10 width=10>"+
"<BR><a class='fonte' target=_blank href='http://gratuitannonces-online.com/circuits/index.html'>La Google-map géolocalise votre correspondant par son adresse<br> trouvez l adresse de votre correspondant</A></TD></TR></table> ";
 break;

}

code.style.visibility='visible';
//alert(code.style.top);
//alert(code.style.left);
}


function Menu(){
var titre1=" <div class='fonte'>S'inscrire au site</div>";
var titre2="<div class='fonte'>Programme de protection des contractants</div>";
var titre3="<div class='fonte'>Conditions d'utilisations du site</div>";
var titre4="<div class='fonte'>Questions Droit du Commerce</div>";
var titre5="<div class='fonte'>Télécharger Image</div>";
var titre6="<div class='fonte'>Votre mot de passe</div>";
var titre7="<div class='fonte'>qui est 7 éditeur</div>";
var titre8="<div class='fonte'>Rechercher annonces</div>";
var titre9="<div class='fonte'>Enregistrez une annonce</div>";
var titre10="<div class='fonte'>Acces Membres</div>";
var titre11="<div class='fonte'>Google-map</div>";

document.write("<table style='position:relative;left:0;' border=0 cellspacing=3 cellpading=0 ><tr>");

for (j=0;j < menuLength;j++)	{
i=j+1;
titre=eval("titre"+i);
document.write("<TD   style='borderStyle:outset;' align=center valign=top");
document.write("  onmouseover='insetTD(this.style),afficheMenu(this,"+i+",this.offsetHeight,this.offsetWidth,this.offsetTop,this.offsetLeft)'");
/* document.write("  onClick='alert(\"offsetHeight:\"+this.offsetHeight+\" offsetWidth:\"+this.offsetWidth+\" offsetTop:\"+this.offsetTop+\" offsetLeft:\"+this.offsetLeft)'"); */
document.write(" onmouseout='ousetTD(this.style)' ");
document.write(titre+"</TD>");

			}
document.write("</TR></table>");
for (j=0;j < menuLength;j++)
	{
i=j+1;
document.write("<DIV class=menu id="+i+"></DIV>");
	}

 for(i=0 ; i < menuLength;i++)
 Tabcode[i]=document.getElementById(i+1);

}


function insetTD(obj){ //il y a inversion involontaire du nom de fonction choisi et de son contenu

obj.borderStyle='outset';

}

function onclickTD(obj){

obj.borderStyle='inset';
}


function ousetTD(obj){

obj.borderStyle='none';

}







