// JavaScript Document

//<!--
	function center(imagemax, titre)
	{
		i1 = new Image;
		i1.src = imagemax;
		html = '<HTML><HEAD><TITLE>'+titre+'</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+imagemax+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+10,document.imageTest.height+25);largeurecran=screen.width;hauteurecran=screen.height;posX=(largeurecran-document.imageTest.width)/2;posY=(hauteurecran-document.imageTest.height)/2;window.moveTo(posX,posY);" /></CENTER><BR /></BODY></HTML>';
		popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width=1,height=1');
		popupImage.document.open();
		popupImage.document.write(html);
		popupImage.document.close()
	}
	
	
	function sur_fond(uri, titre)
	{
		var sur_fond	= document.getElementById("sur_fond");
		var div				=	document.getElementById("sur_fond_affichage");
		
		sur_fond.style.visibility = 'visible';
		
		sur_fond.style.height	= window.document.body.scrollHeight + "px"; 
		sur_fond.style.width	= window.document.body.scrollWidth + "px"; 
		
		
		div.innerHTML = '<div class="gal_view_menu"><a href="javascript:cacher_sur_fond();">Fermer le popup</a></div>';
		
		div.innerHTML+= '<img src="' + uri + '" alt="Image introuvable" />';
		
	}
	
	function cacher_sur_fond()
	{
		var sur_fond	= document.getElementById("sur_fond");
		var div				=	document.getElementById("sur_fond_affichage");
		
		sur_fond.style.visibility = 'hidden';
		div.innerHTML = '';
		
	}
	
	//-->
	