// (c) ITI Communication - http://www.iticommunication.com

function afficheImage(chemin)
	{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>:: Les Roulottes des Châteaux de la Loire</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 onLoad="msg.style.visibility = \'hidden\'"><div id="msg" style="position:absolute; left:220px; top:205px; width:400px; height: 100px"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td height="100" bgcolor="#FFFFFF"><div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000"><b>Patientez quelques secondes...</b></font></div></td></tr></table><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000"></font></div><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
	};
	
function ouvrir_credits(URL)
{
	window.open(URL, "","resizable=yes, scrollbars=auto, toolbar=no, status=no, directories=no, menubar=no, screenX = 600, screenY = 400, width=400, height=200");
}


function OuvrirCentre(page,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}


function ouvrir_demande(URL)
{
	window.open(URL, "","resizable=yes, scrollbars=yes, toolbar=no, status=no, directories=no, menubar=no, screenX = 600, screenY = 400, width=510, height=310");
}

function Surlignement(id, booleen)
{
	if (booleen)
	{
		id.style.background = "37951B";
		id.style.borderColor = "000000";
	}
	else
	{
		id.style.background = "F8F7F5";
		id.style.borderColor = "BFBFBF";
	}
}

function ejs_img_fx(img){
  if(img && img.filters && img.filters[0]){
    img.filters[0].apply();
    img.filters[0].play();
  }
}

window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
