<!--
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; 
} 
}



function hideall() {
 hidediv('r1');
 hidediv('r2');
 hidediv('r3');
 hidediv('r4');
 hidediv('r5');
 hidediv('r6');
 hidediv('r7');
 hidediv('r8');
 hidediv('r9');
 hidediv('r10');
 hidediv('r11');
 hidediv('r12');
 hidediv('r13');
 hidediv('r14');
 hidediv('r15');
 hidediv('r16');
 hidediv('r17');
 hidediv('r18');
 hidediv('r19');
 hidediv('r20');
 hidediv('r21');
 hidediv('r22');
}

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>');
}
//-->

