var myZoom;

function init(o) {
	var stretchers = document.getElementsByClassName('stretcher');
	var toggles = document.getElementsByClassName('menutitre');
	var myAccordion = new fx.Accordion(
		toggles, stretchers, {opacity: false, duration: 500, defaultStretcher: o}
	);
	
	if(document.getElementById("select")) {
		zoom = document.getElementsByClassName('zoom');
		for(i=0; i<zoom.length; i++) {
			zoom[i].onmouseover = function() { document.getElementById("galerie").style.backgroundImage = "url('"+this.href+"')"; }
			zoom[i].onclick = function() { return false; }
		}
	}
	
	document.getElementById('mail').onclick = function() { document.getElementById('mail').value = ""; }
}

function zoom() {
	myZoom.toggle();
}

function addToFavorites() {
	if (document.all) { window.external.AddFavorite(location.href, document.title); }
	else { alert('Vous pouvez faire CTRL + D pour ajouter cette page dans vos signets, ou favoris.') }
}

function retour() {
	history.go(-1);	
}

function imprime() {
	window.print();	
}