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 initopen(stretcher){
	var stretchers = document.getElementsByClassName('stretcher');
	var toggles = document.getElementsByClassName('menutitre');
	var myAccordion = new fx.Accordion(
		toggles, stretchers, {opacity: true, duration: 500,  defaultStretcher: stretcher}
	);
}

function init(){
	var stretchers = document.getElementsByClassName('stretcher');
	var toggles = document.getElementsByClassName('menutitre');
	var myAccordion = new fx.Accordion(
		toggles, stretchers, {opacity: true, duration: 500}
	);
}

function page(rub) {
	new Ajax.Updater('page', 'index.php', {parameters:'rubrique=' + encodeURIComponent(rub), asynchronous:true, evalScripts:true});
}

function opacity(id,opc) {
	document.getElementById(id).style.filter = "alpha(Opacity="+opc+")";
	document.getElementById(id).style.opacity = opc/100;
}

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

function OpenWin(URL,width,height,nom) {
	window.open(URL,nom,"toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=" + width + ",height=" + height + ",resizable=no");
}

function OpenWin2(URL,width,height,nom) {
	window.open(URL,nom,"toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=" + width + ",height=" + height + ",resizable=yes");
}

var AntiRobotUpdate = function() { $('AntiRobotImage').src = 'captcha.jpeg?v='+((new Date).getTime()); } 