function getvideo(id){
	url = '/video-de-sexe-' + id + '.html';
	window.open(url, '_blank', 'scrollbars=yes, resizable');
}

function getabo() {
	url = 'http://www.films-porno.net/devenir-membre.html';
	window.open(url, '_blank', 'scrollbars=yes, top=0, left=0, resizable');
}

function get_abo(lg) {
	if(lg == 'en') 	url = 'http://en.films-porno.net/membership.html';
	else if(lg == 'de') url = 'http://de.films-porno.net/mitgliedschaft.html';
	else url = 'http://www.films-porno.net/devenir-membre.html';
	window.open(url, '_blank', 'scrollbars=yes, top=0, left=0, resizable');
}

function sectionmembre(){
	url = 'http://www.sectionmembre.com/?pid=jeanou';
	window.open(url, '_blank', 'scrollbars=yes, top=0, left=0, resizable');
}

function blank(objet) {
	/**	Function utile pour faire un target='_blank' en XHTML strict : <a href="truc.html" onclick="return blank(this);">texte</a> */
	window.open(objet.href,'_blank');
	return false;
}

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 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 - 32 <= minwidth) document.getElementById("divglobal").style.margin='0px';
	else if (screen.width - 32 <= totalwidth) document.getElementById("divglobal").style.margin='0px auto 0px '+ Math.round((screen.width - minwidth ) * 0.5) +'px';
//	document.write(screen.width +'-32 <= '+ totalwidth +' = '+ document.getElementById("divglobal").offsetWidth +'+'+' ('+ document.getElementById("divvban").offsetWidth+' + 10) * 2');
//	document.write(document.body.offsetHeight);
	if(document.getElementById("divglobal").offsetHeight < document.getElementById("divvban").offsetHeight) document.getElementById("divglobal").style.height= (document.getElementById("divvban").offsetHeight + 50) + 'px';
}