// declaration variable globale
var etat_over1=0;
var etat_over2=0;

var presentation;
var territoire;
var chasse;
var vision;
var activite;
var hebergement;
var actualite;
var agenda;
var infos;
var contact;

// Récuperation de la taille de la fenetre
largeur=document.body.scrollWidth;
hauteur=document.body.scrollHeight;

// Récupération du type de navigateur, de l'os et 
// Calcul du décalage pour le positionnement du menu
NavName = navigator.appName;

if(NavName=="Microsoft Internet Explorer")
{
  ver = navigator.appVersion.substring(22,25);
  if(ver == "6.0") ajust=15;
  else ajust=15;
}
else if(NavName=="Netscape") ajust=27;
else ajust=27;

offset=36-ajust;

// Décalage du menu si la largeur de la fenetre est superieur a la taille du site
if(largeur<769)
{
  posXmenu = offset
} 
else 
{
  if(document.all)
  {
     posXmenu=(document.body.clientWidth/2)-(769/2) + offset;
  }
  else
  {
    posXmenu=(window.innerWidth/2)-(769/2) + offset;
	alert('netscape' + window.innerWidth);
  }
}

 

posYmenu = 186;
bgcolor='#993300';
bgcolor2='#339999';
document.write('<style type="text/css">');
document.write('.poppervert { 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.navistyle {color:#000000; text-decoration:none;}')
document.write('A.navistyle {color:#7D382B; text-decoration:none;}')
document.write('</style>')
document.write('<DIV class=poppervert id=topdeckvert></DIV>');

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[0][0] = '<A HREF="equipe.php" CLASS="navistyle">The CVS Team</A>';
zlien[0][1] = '<A HREF="logistique.php" CLASS="navistyle">Logistic</A>';
zlien[0][2] = '<A HREF="guide.php" CLASS="navistyle">The Guides</A>';
zlien[0][3] = '<A HREF="livreor.php" CLASS="navistyle">The Golden book</A>';
zlien[1][0] = '<A HREF="cartographie.php" CLASS="navistyle">Maps</A>';
zlien[1][1] = '<A HREF="culture.php" CLASS="navistyle">Local culture</A>';
zlien[1][2] = '<A HREF="faune_galerie.php" CLASS="navistyle">The animals</A>';
zlien[2][0] = '<A HREF="chasse.php" CLASS="navistyle">Hunting in Africa</A>';
zlien[2][1] = '<A HREF="chasse_en_france.php" CLASS="navistyle">Hunting in France</A>';
zlien[2][2] = '<A HREF="chasse_arc.php" CLASS="navistyle">Archery Hunting</A>';
zlien[2][3] = '<A HREF="reportage.php" CLASS="navistyle">Reporting</A>';
zlien[2][4] = '<A HREF="taxidermie.php" CLASS="navistyle">Taxidermy</A>';
zlien[3][0] = '<A HREF="safari_photo.php" CLASS="navistyle">Photo-safari</A>';
zlien[3][1] = '<A HREF="safari_photo_galerie.php" CLASS="navistyle">Photo-gallery</A>';
zlien[4][0] = '<A HREF="activite.php" CLASS="navistyle">Presentation</A>';
zlien[4][1] = '<A HREF="trekking.php" CLASS="navistyle">Trekking</A>';
zlien[4][2] = '<A HREF="vtt.php" CLASS="navistyle">Mountain bike</A>';
zlien[4][3] = '<A HREF="ulm.php" CLASS="navistyle">ULM, Mikro Light Airplane</A>';
zlien[4][4] = '<A HREF="rando4x4.php" CLASS="navistyle">Safari four wheel drive (4X4)</A>';
zlien[5][0] = '<A HREF="hebergement.php" CLASS="navistyle">Visiting the lodge</A>';
zlien[5][1] = '<A HREF="bungalows.php" CLASS="navistyle">Bungalows</A>';
zlien[5][2] = '<A HREF="restauration.php" CLASS="navistyle">Restaurants</A>';
zlien[5][3] = '<A HREF="detente.php" CLASS="navistyle">Entertainments</A>';
zlien[6][0] = '<A HREF="venir.php" CLASS="navistyle">How to come to Africa</A>';
zlien[6][1] = '<A HREF="liens_utiles.php" CLASS="navistyle">Useful links</A>';

var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);
if (nava) { sknvert = document.topdeckvert }
else if (dom) { sknvert = document.getElementById("topdeckvert").style }
else if (iex) { sknvert = topdeckvert.style }
sknvert.left = posXmenu+112;

function pop(msg,pos,style)
{
  sknvert.visibility = "hidden";
  sknvert.top = posYmenu+pos;
  a=true
  var content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#BE9F7A WIDTH=150><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=1>";
  pass = 0
  while (pass < msg.length)
  {
    // On recupere le lien de la page pour que la cellule soit cliquable
    lien_page = msg[pass].split('"') 
	
    content += "<TR><TD BGCOLOR="+style+" onClick=\"location.href='"+ lien_page[1] +"'\" onMouseOver=\"this.style.background='#ffffff';etat_over1=1; this.style.cursor='hand'\" onMouseOut=\"this.style.background='"+style+"';etat_over1=0;delay(); this.style.cursor='auto'\" HEIGHT=20><FONT SIZE=1 FACE=\"Verdana\">&nbsp;&nbsp;"+msg[pass]+"</FONT></TD></TR>";
    pass++;
  }
  
  content += "</TABLE></TD></TR></TABLE>";
  if (nava)
  {
    sknvert.document.write(content);
    sknvert.document.close();
    sknvert.visibility = "visible";
  }
  else if (dom)
  {
    document.getElementById("topdeckvert").innerHTML = content;
    sknvert.visibility = "visible";
  }
  else if (iex)
  {
    document.all("topdeckvert").innerHTML = content;
    sknvert.visibility = "visible";
  }
}

function kill()
{
  sknvert.visibility = "hidden";
}

function delay()
{
  setTimeout("delay2()",1500);	
}

function delay2()
{
  if(etat_over1==0 & etat_over2==0) kill();
}

//document.getElementById('flash').style.visibility='hidden'


document.onclick = kill;
document.write('<DIV ID="topgauche"><TABLE CELLPADDING="0" CELLSPACING="1" BORDER="0" WIDTH="112" BGCOLOR="#BE9F7A">')
document.write('<TR><TD BGCOLOR="#EEEDE3" WIDTH="110" HEIGHT="12" COLSPAN="2"><img src="images/navigation/nav01.gif" border="0" width="110" height="12"></TD></TR>')
document.write('<TR><TD BGCOLOR="#5F7F7F" WIDTH="110" HEIGHT="6" COLSPAN="2"></TD></TR>')

if(presentation==1) {document.write('<TR><TD BGCOLOR="#8D7153" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav02.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3" onMouseOver="etat_over1=1;pop(zlien[0],20,\'BAAE94\')"   onMouseOut="etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[0],20)"   onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Presentation</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#8D7153" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav02.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\';etat_over1=1;pop(zlien[0],20,\'BAAE94\')"   onMouseOut="this.style.background=\'\';etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[0],20)"   onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Presentation</FONT></a></TD></TR></TABLE></TD></TR>')};

if(territoire==1) {document.write('<TR><TD BGCOLOR="#A3906E" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav03.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3" onMouseOver="etat_over1=1;pop(zlien[1],40,\'A3916C\')"  onMouseOut="etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[1],40)"  onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Territory</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#A3906E" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav03.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\';etat_over1=1;pop(zlien[1],40,\'A3916C\')"  onMouseOut="this.style.background=\'\';etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[1],40)"  onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Territory</FONT></a></TD></TR></TABLE></TD></TR>');}

if(chasse==1) {document.write('<TR><TD BGCOLOR="#BAAE94" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav04.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3" onMouseOver="etat_over1=1;pop(zlien[2],60,\'BAAD91\')"  onMouseOut="etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[2],60)"  onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Hunting stays</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#BAAE94" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav04.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\';etat_over1=1;pop(zlien[2],60,\'BAAD91\')"  onMouseOut="this.style.background=\'\';etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[2],60)"  onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Hunting stays</FONT></a></TD></TR></TABLE></TD></TR>');}

if(vision==1) {document.write('<TR><TD BGCOLOR="#D7CCB1" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav05.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3" onMouseOver="etat_over1=1;pop(zlien[3],80,\'D6CCAF\')"  onMouseOut="etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[3],80)"  onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Vision stays</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#D7CCB1" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav05.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\';etat_over1=1;pop(zlien[3],80,\'D6CCAF\')"  onMouseOut="this.style.background=\'\';etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[3],80)"  onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Vision stays</FONT></a></TD></TR></TABLE></TD></TR>');}

if(activite==1) {document.write('<TR><TD BGCOLOR="#E2DAC1" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav06.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3" onMouseOver="etat_over1=1;pop(zlien[4],100,\'E1DABF\')" onMouseOut="etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[4],100)" onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Outdoor activities</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#E2DAC1" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav06.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\';etat_over1=1;pop(zlien[4],100,\'E1DABF\')" onMouseOut="this.style.background=\'\';etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[4],100)" onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Outdoor activities</FONT></a></TD></TR></TABLE></TD></TR>');}

if(hebergement==1) {document.write('<TR><TD BGCOLOR="#ECE7D9" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav07.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3" onMouseOver="etat_over1=1;pop(zlien[5],120,\'ECE7D9\')" onMouseOut="etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[5],120)" onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Facilities</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#ECE7D9" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" background="images/navigation/nav07.gif" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\' ;etat_over1=1;pop(zlien[5],120,\'ECE7D9\')" onMouseOut="this.style.background=\'\';etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[5],120)" onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Facilities</FONT></a></TD></TR></TABLE></TD></TR>');}

document.write('</TABLE><br>')
document.write('<TABLE CELLPADDING="0" CELLSPACING="1" BORDER="0" WIDTH="112" BGCOLOR="#BE9F7A">')
document.write('<TR><TD BGCOLOR="#956553" WIDTH="110" HEIGHT="6" COLSPAN="2"></TD></TR>')

if(actualite==1) {document.write('<TR><TD BGCOLOR="#BAAE94" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" bgcolor="#EEEBDB" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3"><A href="actualite.php" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">The latest news of CVS</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#BAAE94" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" bgcolor="#EEEBDB" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\'" onMouseOut="this.style.background=\'\'"><A href="actualite.php" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">The latest news of CVS</FONT></a></TD></TR></TABLE></TD></TR>');}

if(agenda==1) {document.write('<TR><TD BGCOLOR="#D7CCB1" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" bgcolor="#EEEBDB" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3"><A href="agenda.php" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Agenda</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#D7CCB1" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" bgcolor="#EEEBDB" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\'" onMouseOut="this.style.background=\'\'"><A href="agenda.php" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Agenda</FONT></a></TD></TR></TABLE></TD></TR>');}

if(infos==1) {document.write('<TR><TD BGCOLOR="#E2DAC1" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" bgcolor="#EEEBDB" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3" onMouseOver="etat_over1=1;pop(zlien[6],207,\'BAAD91\')" onMouseOut="etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[6],207)" onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Practical information</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#E2DAC1" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" bgcolor="#EEEBDB" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\';etat_over1=1;pop(zlien[6],207,\'BAAD91\')" onMouseOut="this.style.background=\'\';etat_over1=0;delay()"><A onClick="return(false)" onMouseOver="etat_over1=1;pop(zlien[6],207)" onMouseOut="etat_over1=0;delay()" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Practical information</FONT></a></TD></TR></TABLE></TD></TR>');}

if(contact==1) {document.write('<TR><TD BGCOLOR="#ECE7D9" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" bgcolor="#EEEBDB" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD bgcolor="#D9CFB3"><A onClick="window.open(\'contact.php\',\'popcontact\',\'toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=371, height=225\');return(false);" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Contact</FONT></a></TD></TR></TABLE></TD></TR>');}
else{document.write('<TR><TD BGCOLOR="#ECE7D9" WIDTH="13">&nbsp;</TD><TD WIDTH="97" ALIGN="center" bgcolor="#EEEBDB" HEIGHT="19"><TABLE CELLPADING="0" CELLSPACING="0" BORDER="0" WIDTH="97" HEIGHT="19"><TR><TD onMouseOver="this.style.background=\'#D9CFB3\'" onMouseOut="this.style.background=\'\'"><a onClick="window.open(\'contact.php\',\'popcontact\',\'toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=371, height=225\');return(false);" href="#" CLASS="navistyle"><FONT FACE="Verdana" style="font-size:11px">Contact</FONT></a></TD></TR></TABLE></TD></TR>');}

document.write('</TABLE></DIV>')
