/*
version 1.1 
modif par TSEF Yannick Gaillabaud
webmaster intraterre et webmaster DCTEI
mail : yannick.gaillabaud@dctei.terre.def
-----------------------------------------
le 22/11/01 -> fonction lien + fonction efface effacepas
-----------------------------------------
a réaliser la position dans la page + gérer le redimentionnement
*/

var tempo=0;

function lien(active,nom,lien,espaces){
	if(active){result ='<a href='+lien+' CLASS=ejsmenu>'+nom;}else{result ='<font class=ejsmenu>'+nom;}
	for (;espaces>0;espaces--,result+='&nbsp');
	if(active){result+='</a>';}else{result +='</font>';}
	return result;
}

function efface(){
	tempo = setTimeout("kill()",200);
}

function effacepas(){
		if (tempo>0){clearTimeout(tempo);}	
}

/* posYmenu = 98; */
posYmenu = 114;
posXmenu = 111;
bgcolor='#cccc99';
bgcolor2='#cc9966';
needcenter = true;
/*if(!needcenter){
	  posXmenu = 228;
}else{	if (document.all){
			// internet explorer 5.5//
			// calcul approximatif ...//
			if ((document.body.clientWidth)<770){
				  posXmenu=111;
			}else{
				  posXmenu = (document.body.clientWidth/2)-(600/2)+28;
			}
		}else{
			// netscape 6//
			if ((window.innerWidth)<780){
				posXmenu=111;
			}else{
				posXmenu = (window.innerWidth/2)-(600/2)+13;
			}
		}	
}*/

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('A:hover.ejsmenu {color:#FFFFFF; text-decoration:none;}')
document.write('A.ejsmenu {color:#000000; text-decoration:none;}')
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[9] = new Array;
zlien[10] = new Array;
zlien[11] = new Array;
zlien[12] = new Array;
//zlien[0][0] = lien(1,"","www.emat.terre.def",19);
//zlien[0][1] = lien(1,"","www.stat.terre.def",20);
zlien[0][0] = lien(1,"Les origines","Introduction.html",5);
zlien[0][1] = lien(1,"Le Drapeau","Drapeau.html",5);
zlien[0][2] = lien(1,"L'insigne","HInsigne.html",5);
zlien[0][3] = lien(1,"Attributs","Htradi.html",5);
zlien[0][4] = lien(1,"Le calot","Hcalot.html",5);
zlien[0][5] = lien(1,"Uniformes","H_uniform_menu.html",5);
zlien[0][6] = lien(1,"Les chants","Hchants.html",5);

zlien[1][0] = lien(1,"Chef de Corps","HCDC.html",7);
zlien[1][1] = lien(1,"Les missions","OMissions.html",7);
zlien[1][2] = lien(1,"La DSOUT","dsout.html",7);
zlien[1][3] = lien(1,"La DAF","DAF.html",7);
zlien[1][4] = lien(1,"La DRFI","DFI-RH.html",7);
zlien[1][5] = lien(1,"La DRH","drh.html",7);
zlien[1][6] = lien(1,"Les unités","unites.html",7);
zlien[1][7] = lien(1,"Les Présidents","President_menu.html",2);
zlien[1][8] = lien(1,"Amicale","Divers_Amicales_menu.html",7);
zlien[1][9] = lien(1,"L'annuaire","Annuaire1.html",7);
zlien[1][10] = lien(1,"Plan d'accès","Plan_acces.html",7);
zlien[1][11] = lien(1,"Réserver Cies SMA","Page_liens.html",5);
zlien[1][12] = lien(1,"Liens SMA","D_liens.html",5);

zlien[2][0] = lien(1,"Journal ","infos.html",2);


zlien[3][0] = lien(1,"journée découverte","actualite2.html",2);
zlien[3][1] = lien(1,"Passation commandement","actualitepasscom.html",2);

zlien[4][0] = lien(1,"Agent de prévention et de securité","APS.html",7);
zlien[4][1] = lien(1,"Agent de restauration","APR.html",7);
zlien[4][2] = lien(1,"Mécanique","MEC.html",7);
zlien[4][3] = lien(1,"Travaux public","TP.html",7);
zlien[4][4] = lien(1,"Transport","trans.html",7);
zlien[4][5] = lien(1,"Agent d'entretien du bâtiment","bat.html",7);
zlien[4][6] = lien(1,"Agriculture","agri.html",7);
zlien[4][7] = lien(1,"Espaces verts","Espacesverts.html",7);
zlien[4][8] = lien(1,"Aide à la personne","aidePersonne.html",7);
zlien[4][9] = lien(1,"Magasinier","magasinier.html",7);
zlien[4][10] = lien(1,"Secrétaire","secretaire.html",7);
zlien[4][11] = lien(1,"Tourisme","Ftourisme.html",7);
zlien[4][12] = lien(1,"Chaud et froid","NRJRenouvelables.html",7);
zlien[4][13] = lien(1,"Demande d'emploi","emploi.html",7);
zlien[4][14] = lien(1,"Planning d'incorporation 2012-2013","incorporation.html",7);
zlien[4][15] = lien(1,"Dossier de candidature (télécharger)","recrutinsert.html",7);

zlien[5][0] = lien(1,"Documentations","docpam.html",7);
zlien[5][1] = lien(1,"Guide d'accueil 2011","Guideaccueil.html",7);
zlien[5][2] = lien(1,"Plaquette 2011","Plaquette.html",7);
zlien[5][3] = lien(1,"Points pratiques","administration.html",7);
zlien[5][4] = lien(1,"Club Piriau / Club des épouses","famille.html",5);
zlien[5][5] = lien(1,"Tahiti","Gtahiti.html",5);
zlien[5][6] = lien(1,"Histoire","Ghistoire.html",5);
zlien[5][7] = lien(1,"La Polynésie","Gregion.html",5);
zlien[5][8] = lien(1,"Politique","politique.html",5);
zlien[5][9] = lien(1,"Plan de TAHITI","plan.html",5);
zlien[5][10] = lien(1,"Transport","transport.html",5);
zlien[5][11] = lien(1,"Enfants","enfants.html",5);
zlien[5][12] = lien(1,"Santé","secours.html",5);
zlien[5][13] = lien(1,"Enseignement","enseignement.html",5);
zlien[5][14] = lien(1,"Tourisme","tourisme.html",5);
zlien[5][15] = lien(1,"Loisirs et sites culturels","artisanat.html",5);
zlien[5][16] = lien(1,"Photos de la Polynésie","photos.html",5);
zlien[5][17] = lien(1,"Contactez nous","contacts.html",7);

zlien[6][0] = lien(1,"Présentation","presentation1cfp.html",7);
zlien[6][1] = lien(1,"Historique","Historique1cfp.html",7);
zlien[6][2] = lien(1,"Mot du CDU","MotCDU1cfp.html",2);
zlien[6][3] = lien(1,"Les filières à la 1CFP","Filieres1cfp.html",2);

zlien[7][0] = lien(1,"Présentation","presentation2cfp.html",7);
zlien[7][1] = lien(1,"Historique","Historique2cfp.html",7);
zlien[7][2] = lien(1,"Mot du CDU","MotCDU2cfp.html",2);
zlien[7][3] = lien(1,"Les filières à la 2CFP","Filieres2cfp.html",2);

zlien[8][0] = lien(1,"Présentation","presentation3cfp.html",7);
zlien[8][1] = lien(1,"Historique","Historique3cfp.html",7);
zlien[8][2] = lien(1,"Mot du CDU","MotCDU3cfp.html",2);
zlien[8][3] = lien(1,"Les filières à la 3CFP","Filieres3cfp.html",2);

zlien[9][0] = lien(1,"Présentation","presentationccfpl.html",7);
zlien[9][1] = lien(1,"Historique","Historiqueccfpl.html",7);
zlien[9][2] = lien(1,"Mot du CDU","MotCDUccfpl.html",2);
<!--zlien[9][3] = lien(1,"Les filières à la CCFPL","Filieresccfpl.html",2);-->

<!--zlien[7][0] = lien(1,"Médiathèque","annonces.html",7);-->
zlien[10][0] = lien(1,"Presse","Alaune_Presse.html",7);
zlien[10][1] = lien(1,"Présentation au drapeau Février 2011","actualite.html",2);
zlien[10][2] = lien(1,"Présentation au drapeau Mai 2011","photos_prise_arme.html",2);
zlien[10][3] = lien(1,"Quelques photos du groupement","photos_menu.html",7);

<!--zlien[8][0] = lien(1,"A faire / à voir","annonces.html",7);-->


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; */
skn.top = posYmenu+22;

function pop(msg,pos)
{
	skn.visibility = "hidden";
	a=true
	pos=pos+1;
	skn.left = posXmenu+pos-1;
	var content ="<div id=skn1><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=230 onmouseover=\"effacepas();\" onmouseout=\"efface();\">";
	pass = 0
	while (pass < msg.length)
	{
		content += "<TR ><TD BGCOLOR="+bgcolor+" onMouseOver=\"effacepas();this.style.background='"+bgcolor2+"'\" onMouseOut=\"this.style.background='"+bgcolor+"'\" HEIGHT=20><FONT SIZE=1 FACE=\"Verdana\"><B>&nbsp;&nbsp;"+msg[pass]+"</B></FONT></TD></TR>";
		pass++;
	}
	content += "</TABLE></div>";
	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";
}

document.onclick = kill;
document.write('<DIV ID=topgauche onmouseout=\"efface();\" onmouseover=\"effacepas();\"><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=1000 HEIGHT=23><TR>')
document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[0],0)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A  onClick="return(false)" onMouseOver="pop(zlien[0],0)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>TRADITIONS</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>');
document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[1],140)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[1],100)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>LE GROUPEMENT</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>');
document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[2],250)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="pop(zlien[2],170)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>ENCRE DU GSMA-Pf</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>');
document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[3],350)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[3],280)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>EVENEMENTS</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>');
document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[4],450)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[4],340)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>FILIERES</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>');
document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[5],530)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[5],410)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>PAM</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>');
document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[6],620)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[6],540)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>1 CFP</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>');

document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[7],700)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[7],540)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>2 CFP</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>');
document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[8],740)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[8],620)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>3 CFP</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>'); 

document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[9],800)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[9],620)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>CCFPL</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>'); 

document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[10],820)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[10],620)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>MEDIATHEQUE</B></FONT></a></TD>');
document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>'); 
<!--document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[8],900)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[7],620)" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana"><B>A FAIRE/A VOIR</B></FONT></a></TD>');-->
<!--document.write('<TD WIDTH=1 ALIGN=center BGCOLOR='+bgcolor+'></TD>'); -->




document.write('</TR></TABLE></DIV>');
