// JavaScript Document
<!--
function PopupImage(img, nom_image) { 
titre=nom_image; 
w=open("",'image','width=740,height=480,toolbar=no,scrollbars=no,resizable=no'); 
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+30); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 
w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='"+nom_image+"'>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
} 

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 showDiv(nom) {
		el = MM_findObj(nom);
		el.style.display = '';
	}
	
	function hideDiv(nom) {
		el = MM_findObj(nom);
		el.style.display = 'none';
	}
	
	function changeImages() {
		if (document.images) {
			for (var i=0; i<changeImages.arguments.length; i+=2) {
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}
	function F_open (url,w,h){
		window.open(url, "winTools", "width="+w+", height="+h+", top=200, left=200, scrollbars=yes,toolbar=no,location=no,directories=no,status=nos,menubar=no,resizable=yes");
	}
/* affichage menu divers */
	//sens : left, top, right, bottom
	function showDivMenu(nom, width, heightmax, sens) { 
		var height;
		var time;
		var left=0;
		var z=0;
		if (sens=='top') {
			height=heightmax;
			while (height>=0) {
				time=6*z;
				window.setTimeout('deroule("'+nom+'", '+width+', '+height+', '+heightmax+', '+left+');',time);
				height=height-2;
				z++;
			}
		}
		else if (sens=='bottom') {
			height=0;
			while (height<=heightmax) {
				time=6*z;
				window.setTimeout('deroule("'+nom+'", '+width+', 0, '+height+', '+left+');',time);
				height=height+2;
				z++;
			}
		}
		else if (sens=='right') {
			var widthmin=0;
			
			while (widthmin<=width) {
				time=6*z;
				window.setTimeout('deroule("'+nom+'", '+widthmin+', 0, '+heightmax+', '+left+');',time);
				widthmin=widthmin+2;
				z++;
			}
		}
		else if (sens=='left') {
			widthmax=width;
			while (width>=0) {
				time=6*z;
				window.setTimeout('deroule("'+nom+'", '+widthmax+', 0, '+heightmax+', '+width+');',time);
				width=width-2;
				z++;
			}
		}
	}
	
	function hideDivMenu(nom, width, heightmax, sens) { 
		var height;
		var time;
		var left=0;
		var z=0;
		 if (sens=='bottom') {
			height=0;
			while (height<=heightmax) {
				time=6*z;
				window.setTimeout('deroule("'+nom+'", '+width+', '+height+', '+heightmax+', '+left+');',time);
				height=height+2;
				z++;
			}
		}
		else if (sens=='top') {
			height=heightmax;
			while (height>=0) {
				time=6*z;
				window.setTimeout('deroule("'+nom+'", '+width+', 0, '+height+', '+left+');',time);
				height=height-2;
				if (height<=0) window.setTimeout('deroule("'+nom+'", '+width+', 0, '+height+', '+left+');',time);
				z++;
			}
		}
		else if (sens=='left') {
			var widthmax=width;
			while (widthmax>=0) {
				time=6*z;
				window.setTimeout('deroule("'+nom+'", '+widthmax+', 0, '+heightmax+', '+left+');',time);
				widthmax=widthmax-2;
				z++;
			}
		}
		else if (sens=='right') {
			var widthmax=0;
			while (widthmax<=width) {
				time=6*z;
				window.setTimeout('deroule("'+nom+'", '+width+', 0, '+heightmax+', '+widthmax+');',time);
				widthmax=widthmax+2;
				z++;
			}
		}
	}
	
	function deroule(nom, right, top, bottom, left) {
		el = MM_findObj(nom);
		el.style.clip='rect('+top+'px '+right+'px '+bottom+'px '+left+'px)';
	}
//-->

