function devenir_membre() {
	winwidth = 530;
	winheight = 400;
	url = '/devenir-membre.html';
	window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top='+ (screen.availHeight - winheight) / 2 +', left='+ (screen.availWidth - winwidth) / 2 +', resizable');
}

function bookmark(title,url) {
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,""); 
	} else if(document.all) {
		window.external.AddFavorite(url, title);
	} else if(window.opera && window.print) {
		return true;
	}
}

function PopCommentaire(id) {
	winwidth = 600;
	winheight = 300;
	window.open('/commentaire-'+id+'.html', '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top='+ (screen.availHeight - winheight) / 3 +', left='+ (screen.availWidth - winwidth) / 2 +', resizable');
}

function global_resize() {
	var minwidth, totalwidth;
	minwidth = document.getElementById("divglobal").offsetWidth + document.getElementById("divvban").offsetWidth + 10;
	totalwidth = document.getElementById("divglobal").offsetWidth + (document.getElementById("divvban").offsetWidth + 10) * 2;
	if (screen.width <= minwidth) document.getElementById("divglobal").style.margin='0px';
	else if (screen.width <= totalwidth) document.getElementById("divglobal").style.margin='0px auto 0px '+ Math.round((screen.width - minwidth ) * 0.5) +'px';
}
