// JavaScript Document

function menu(etat, no){ 
	if(navigator.appVersion.indexOf('MSIE 8.0') != -1){
		//
	} else {
		var obj2 = document.getElementById("im_" + no);
		if(etat == 1) {
			obj2.style.visibility="visible";
		} else {
			obj2.style.visibility="hidden";
		}
	}
}

function zoom(path){
	var url="view_photo.php?path=" + path;
	window.open(url, 'pop', 'toolbar=0, location=0,  directories=0, status=0, scrollbars=0, resizable=1, copyhistory=0, menuBar=0, width=600, height=450');
}


function addToFavorites(anchor) 
{ 
if (window.external) 
{ 
window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title')); 
} 
} 


function addNewsletter(){
	//alert('Vous avez été inscrit ŕ la newsletter de la Compagnie Corsaire');
	email = document.getElementById("emailNewsletter").value;
	document.location.href='inscription-newsletter.php?email='+email;
}
