//Agrandissement de la fenêtre
window.moveTo(0,0);    
	if (document.all) 
	{         
		window.resizeTo(screen.availWidth,screen.availHeight);    
	} 
	else 
	{         
		window.outerHeight = screen.availHeight;         
		window.outerWidth = screen.availWidth;     
	}
	

chemin_page = window.location.pathname;

niveau=0;

	for (i=0;i<chemin_page.length;i++)
	{
		if(chemin_page.charAt(i)=="/") 
		
		{
			niveau ++;
		}
	}
j=0;
remonte="";
	while (j<niveau)
	{
	remonte += "../";
	j++;
	}


//--------------------------------------------------------------------------------
//Tant que le site ne remplace pas l'ancien, on ajoute "new_creis/" à la variable 'remonte'
//remonte += "new_creis/";	//A supprimer lors de la mise en ligne définitive

//--------------------------------------------------------------------------------------


posYmenu = 140;
bgcolor='#EDEEE6';
bgcolor2='#FFFFFF';
needcenter =true;
if(!needcenter)
	posXmenu = 0;
else
	{	
	
	if (document.all)
		posXmenu = ((document.body.clientWidth-760)/2);
	else
		posXmenu = ((window.innerWidth-760-20)/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('A:hover.ejsmenu { color:#000000; 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;
// MENU 
zlien[0][0] = '<A HREF="presentation.htm" CLASS=ejsmenu>Présentation</A>';
zlien[0][1] = '<A HREF="nos activites.htm" CLASS=ejsmenu>Nos activités </A>';
zlien[0][2] = '<A HREF="organigramme.htm" CLASS=ejsmenu>Organigramme général </A>';

/*Sous titre Présentation*/
//zlien[0][0][1] = '<A HREF="'+remonte+'accueil/present.htm" CLASS=ejsmenu>Localisation</A>';
//zlien[0][0][1] = '<A HREF="'+remonte+'accueil/present.htm" CLASS=ejsmenu>Localisation</A>';
//zlien[0][0][2] = '<A HREF="'+remonte+'accueil/present.htm" CLASS=ejsmenu>Localisation</A>';
//zlien[0][0][3] = '<A HREF="'+remonte+'accueil/present.htm" CLASS=ejsmenu>Localisation</A>';

/*Titre Manifestations*/
zlien[1][0] = '<A HREF="nos departements.htm" CLASS=ejsmenu>Présentation des départements </A>';
zlien[1][1] = '<A HREF="departement imformatique.htm" CLASS=ejsmenu>Département Informatique</A>';
zlien[1][2] = '<A HREF="departement immobilier.htm" CLASS=ejsmenu>Département Immobilier </A>';
zlien[1][3] = '<A HREF="departement genie electrique.htm" CLASS=ejsmenu>Département Génie électrique</A>';
zlien[1][4] = '<A HREF="departement genie civil.htm" CLASS=ejsmenu>Département Génie civil </A>';
/*Titre Documentation*/
zlien[3][0] = '<A HREF="cromwell-hebergement.htm" CLASS=ejsmenu>Hébergement</A>';
zlien[3][1] = '<A HREF="creation-de-site.htm" CLASS=ejsmenu>Création de sites</A>';
zlien[3][2] = '<A HREF="cromwell-referencement.htm" CLASS=ejsmenu>Référencement</A>';
zlien[3][3] = '<A HREF="nos-tarifs.htm" CLASS=ejsmenu>Nos tarifs</A>';

/*Titre Enseignement*/
zlien[2][0] = '<A HREF="produit et services informatique.htm" CLASS=ejsmenu>Informatique</A>';
zlien[2][1] = '<A HREF="produit et service immobilier.htm" CLASS=ejsmenu>Immobilier</A>';
zlien[2][2] = '<A HREF="produit et services genie electrique.htm" CLASS=ejsmenu>Génie électrique</A>';
zlien[2][3] = '<A HREF="produit et service genie civil.htm" CLASS=ejsmenu>Génie civil</A>';
//zlien[2][4] = '<A HREF=# CLASS=ejsmenu>Océanie</A>';

/*Titre bibliographie
zlien[4][0] = '<A HREF="'+remonte+'biblio/base.htm" CLASS=ejsmenu>Bibliographie de  base</A>';
zlien[4][1] = '<A HREF="'+remonte+'biblio/recente.htm" CLASS=ejsmenu>Parutions récentes</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=0 ><TR><TD><TABLE WIDTH=191 BORDER=0 CELLPADDING=0 CELLSPACING=1 >";
pass = 0
while (pass < msg.length)
	{
	content += "<TR><TD BGCOLOR="+bgcolor+" onMouseOver=\"this.style.background='"+bgcolor2+"'\" onMouseOut=\"this.style.background='"+bgcolor+"'\" HEIGHT=20><FONT SIZE=1 FACE=\"Verdana\"><B>  "+msg[pass]+"</B></FONT></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";
}
document.onclick = kill;


document.write('<DIV ID=topgauche><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=760><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 BORDER=0 WIDTH=760 HEIGHT=25><TR>')
document.write('<TD WIDTH=152 ALIGN=center BGCOLOR='+bgcolor+' onmouseover="this.style.background=\''+bgcolor2+'\';pop(zlien[0],0)" onmouseout="this.style.background=\''+bgcolor+'\'"><A onclick="return(true)" onmouseover="pop(zlien[0],0)" href="index2.htm"  CLASS=ejsmenu><FONT FACE="Times"><B>Cromwell</B></FONT></a></TD>')
document.write('<TD WIDTH=152 ALIGN=center BGCOLOR='+bgcolor+' onmouseover="this.style.background=\''+bgcolor2+'\';pop(zlien[1],189)" onmouseout="this.style.background=\''+bgcolor+'\'"><A onclick="return(true)" onmouseover="pop(zlien[1],152)" href=# CLASS=ejsmenu><FONT FACE="Times"><B>Nos Départements</B></FONT></a></TD>')
document.write('<TD WIDTH=152 ALIGN=center BGCOLOR='+bgcolor+' onmouseover="this.style.background=\''+bgcolor2+'\';pop(zlien[2],379)" onmouseout="this.style.background=\''+bgcolor+'\'"><A onclick="return(false)" onmouseover="pop(zlien[2],304)" href=# CLASS=ejsmenu><FONT FACE="Times"><B>Produits et Services</B></FONT></a></TD>')
document.write('<TD WIDTH=152 ALIGN=center BGCOLOR='+bgcolor+' onmouseover="this.style.background=\''+bgcolor2+'\';pop(zlien[3],569)" onmouseout="this.style.background=\''+bgcolor+'\'"><A onclick="return(false)" onmouseover="pop(zlien[3],456)" href=# CLASS=ejsmenu><FONT FACE="Times"><B>Service Internet</B></FONT></a></TD>')


/*document.write('<TD WIDTH=152 ALIGN=center BGCOLOR='+bgcolor+' onmouseover="this.style.background=\''+bgcolor2+'\';pop(zlien[4],608)" onmouseout="this.style.background=\''+bgcolor+'\'"><A onclick="return(false)" onmouseover="pop(zlien[4],608)" href=# CLASS=ejsmenu><FONT FACE="Times"><B>Bibliographie</B></FONT></a></TD>') */
document.write('</TR></TABLE></TD></TR></TABLE></DIV>')
