<!--
var state = 'none';

function showhide(layer_ref) { 

if (state == 'block') { 
state = 'none'; 
} 
else { 
state = 'block'; 
} 
if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) { //IS NETSCAPE 4 or below 
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
}


//Page L'Equipe
function hideall() {
 hidediv('profil_0');
 hidediv('profil_1');
 hidediv('profil_2');
 hidediv('profil_3');
 hidediv('profil_4');
 hidediv('profil_5');
 hidediv('profil_6');
}

//Page Nos Métiers
function hideall1() {
 hidediv('met_1');
 hidediv('met_2');
 hidediv('met_3');
 hidediv('met_4');
}

//Page Missions récentes
function hideall2() {
 hidediv('ref_0');
 hidediv('ref_0_1');
 hidediv('ref_1');
 hidediv('ref_2');
 hidediv('ref_3');
 hidediv('ref_4');
 hidediv('ref_5');
 hidediv('ref_6');
 hidediv('ref_7');
 hidediv('ref_8');
 hidediv('ref_9');
 hidediv('ref_10');
}

//Page Nos Références
function hideall3() {
 hidediv('ref_0');
 hidediv('ref_1');
 hidediv('ref_2');
 hidediv('ref_3');
 hidediv('ref_4');
 hidediv('ref_5');
 hidediv('ref_6');
}


function hidediv(layer_ref) { 
state = 'none'; 
if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) { //IS NETSCAPE 4 or below 
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
} 


function showdiv(layer_ref) { 
state = 'block'; 
if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) { //IS NETSCAPE 4 or below 
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
}


function AjustHGT()
{
 var winH = 600;

if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winH = window.innerHeight;
 }
 else {
  winH = document.body.offsetHeight;
 }
}

 if (document.getElementById('container'))
 {
   if (screen.height >= 768) {navbar=100};
   if (screen.height >= 1024) {navbar=150};
   pageheader=45;
   pagefooter=30;
   blocfinpage=25;
   a=document.getElementById('container').offsetHeight + navbar + pageheader + pagefooter + blocfinpage;
   //alert(a);
   //alert(screen.height);
   if (a < screen.height) { document.getElementById('bloc_fin_page').style.height=screen.height - a+'px'; }
 }
}
//onresize=AjustHGT;


function PageQuery(q)
{
 if(q.length > 1) this.q = q.substring(1, q.length);
 else this.q = null;
 this.keyValuePairs = new Array();
 if(q)
 {
  for(var i=0; i < this.q.split("&").length; i++)
  {
   this.keyValuePairs[i] = this.q.split("&")[i];
  }
 }
 this.getKeyValuePairs = function() { return this.keyValuePairs; }
 this.getValue = function(s)
 {
  for(var j=0; j < this.keyValuePairs.length; j++)
  {
   if(this.keyValuePairs[j].split("=")[0] == s)
   return this.keyValuePairs[j].split("=")[1];
  }
  return false;
 }
 this.getParameters = function()
 {
  var a = new Array(this.getLength());
  for(var j=0; j < this.keyValuePairs.length; j++)
  {
   a[j] = this.keyValuePairs[j].split("=")[0];
  }
  return a;
 }
 this.getLength = function() { return this.keyValuePairs.length; } 
}

function queryString(key)
{
 var page = new PageQuery(window.location.search); 
 return unescape(page.getValue(key)); 
}


function returnTop()
{
 document.write('<tr><td colspan="3"><div style="text-align:right;"><a href="#top">Haut de page</a></div></td></tr>');
}
//-->
