// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function affiche(quoi) {
	document.getElementById('left_'+quoi).style.display = 'block';
	document.getElementById('right_'+quoi).style.display = 'block';
}

function adjust_popup() {
	var fixedW, fixedH, diffW, diffH;
	if (document.all) {
		//fixedW = document.body.clientWidth;
		//fixedH = document.body.clientHeight;
		window.resizeTo(fixedW, fixedH);
		diffW = fixedW - document.body.clientWidth;
		diffH = fixedH - document.body.clientHeight;
	} else {
		//fixedW = window.innerWidth;
		//fixedH = window.innerHeight;
		window.resizeTo(fixedW, fixedH);
		diffW = fixedW - window.innerWidth;
		diffH = fixedH - window.innerHeight;
	}
	//w = fixedW + diffW;
	//h = fixedH + diffH;
	if (h >= screen.availHeight) w += 16;
	if (w >= screen.availWidth)  h += 16;
	//w = Math.min(w,screen.availWidth);
	//h = Math.min(h,screen.availHeight);
	window.resizeTo(w,h);
	window.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);
}

function setBookmark(url,pagetitle)	//function performs the bookmark action
{	//code for IE4+ on win32
	if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion >= "4.0" && navigator.platform == "Win32") {
		window.external.AddFavorite(url, 'Poêles-cheminée Hase');
	} else {
		message = 'Tapez simultanement Ctrl-Shift-D (Command-D sur Mac, Ctrl-T dans Opera) pour ajouter cette page a vos favoris.\nCopiez et collez l\'adresse suivante dans la fenetre qui apparaitra a l\'ecran :';
		window.prompt(message , url);
	}
}