<!--

function enlargeImage(imsrc, titre, wwidth, wheight) 
{
	woptions = 'width=' + wwidth + ',height=' + wheight +',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,dependent=yes,innerHeight='+wheight+',innerWidth=' +wwidth;
	w1=window.open('',titre, woptions);
   w1.document.open();
	w1.document.write("<html><head><\/head>");
	w1.document.write("<body style=\"margin: 0px 0px 0px 0px;padding: 0px 0px 0px 0px;\">");
	w1.document.write("<a href=\"javascript:window.close()\" style=\"margin: 0px 0px 0px 0px;border: none;padding: 0px 0px 0px 0px;\"><img name=theimg style=\"margin: 0px 0px 0px 0px;border: none;padding: 0px 0px 0px 0px;\" src=\"" + imsrc + "\" /></a>");
	w1.document.write("<\/body><\/html>");
	w1.document.focus(); 
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function borderit(which,color){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
which.style.borderColor=color
}
}


var activeSub=0;
var SubNum=0;

function reDo(){ window.location.reload() }
    window.onresize = reDo;


//Define global variables

var timerID = null;
var timerOn = false;
var timecount = 1000;
var what = null;
var newbrowser = true;
var check = false;

function init(){
            //  alert ("Running Init");
          if (document.layers) {
                      //  alert ("Running Netscape 4");
                        layerRef="document.layers";
                        styleSwitch="";
                        visibleVar="show";
                        screenSize = window.innerWidth;
                        what ="ns4";


          }else if(document.all){
                      //  alert ("Running IE");
                        layerRef="document.all";
                        styleSwitch=".style";
                        visibleVar="visible";
                        screenSize = document.body.clientWidth + 18;
                        what ="ie";

                  }else if(document.getElementById){
                      //  alert ("Running Netscape 6");
                        layerRef="document.getElementByID";
                        styleSwitch=".style";
                        visibleVar="visible";
                        what="moz";
                  
                  }else{
                          //alert("Older than 4.0 browser.");
                        what="none";
                        newbrowser = false;
                  }
                  
 
                window.status='neleos';
                check = true;
                   }

// Turns the layers on and off
function showLayer(layerName){
		if(check){
				if (what =="none"){
						return;
						}
				else if (what == "moz"){
					//
					//	document.getElementById(layerName).style.visibility="visible";
					document.getElementById(layerName).style.display="block";
						}
				else{
		  // eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
		  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="block"');
		  }
		 }
		else {// alert ("Attendez que la page se charge.");
				return;}
		}

function hideLayer(layerName){
		if(check){
				if (what =="none"){
						return;
						}
				else if (what == "moz"){
						document.getElementById(layerName).style.display="none";
						}
				else{
		  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="none"');
						}

		}
		else {// alert ("Attendez que la page se charge.");
				return;}
}

function hideAll(){
				hideLayer('layer1')
				hideLayer('layer2')
				hideLayer('layer3')
				hideLayer('layer4')
				hideLayer('layer5')
				hideLayer('layer6')
				hideLayer('layer7')
				hideLayer('layer8')
				hideLayer('layer9')	
					}

function startTime() {
		if (timerOn == false) {
		timerID=setTimeout( "hideAll()" , timecount);
		timerOn = true;
								}
						}

function stopTime() {
		if (timerOn) {
		clearTimeout(timerID);
		timerID = null;
		timerOn = false;
						}
		}

		function onLoad(){
				init();
				}
// essai positionnement relatif/absolu



//-->