function popup(a, param){
	var url = a.href;
	pop(url, param);
	return false;
}

function pop(url, param){
	popnew = window.open(url, "popnew", param);
  	setTimeout('popnew.focus();', 250);
}

var zepic = new Image();

function pimage(img){
	var url = img.src;
	zepic.alt = "Cliquer pour fermer la fenêtre";
	if(img.alt){
		zepic.alt = img.alt;
	}
	url = url.replace('0.gif', '1.gif');
	url = url.replace('0.jpg', '1.jpg');
	zepic.src = url;
	setTimeout("openimage()", 200);
}

function openimage(){
	var params = 'width=800,height=600,scrollbars=yes';
	
	if(navigator.platform.indexOf('Mac')>-1){
		params = 'width=520,height=500,scrolling=yes,resizable=yes'; 
	}
	pop("", params);

	popnew.document.open();
	popnew.document.write('<html><head><title>Réserve naturelle </title><link rel="stylesheet" href="../libs/style.css"/></head>');
	popnew.document.write('<body class="body" rightmargin="0" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0">');
	popnew.document.write('<a href="javascript:self.close();"><img src="'+zepic.src+'" border="0" alt="'+zepic.alt+'"/></a>');
	popnew.document.write('</body></html>');
	popnew.document.close();
}