function blank(objet) {
	window.open(objet.href,'_blank');
	return false;
}
if(!document.getElementById && document.all)
	document.getElementById = function(id) {
	return document.all[id];
}
else if(!document.getElementById && !document.all)
	document.getElementById = function(id) {
	return { style: {} };
}

var trucmuche="non";
function getElementStyle(id) {
	return document.getElementById(id).style;
}
function byebyeTheDiv(id) {
	getElementStyle(id).display=trucmuche+"e";
}

function overInfo(div) { 
	var mailing = new Array();
	mailing['dis_fr']="inscrivez-vous";
	mailing['dis_es']="inscribese";
	mailing['dis_it']="iscrivetevi";
	mailing['dis_en']="sign up";
	document.getElementById('dis_fr').style.visibility='hidden';
	document.getElementById('dis_fr').style.display='none';
	document.getElementById('dis_en').style.visibility='hidden';
	document.getElementById('dis_en').style.display='none';
	document.getElementById('dis_es').style.visibility='hidden';
	document.getElementById('dis_es').style.display='none';
	document.getElementById('dis_it').style.visibility='hidden';
	document.getElementById('dis_it').style.display='none';
	document.getElementById(div).style.visibility='visible';
	document.getElementById(div).style.display='inline';
	document.getElementById("formulaire").email.value=mailing[div];
}
function drap(lg) {
	var mailing = new Array();
	mailing['fr']="inscrivez-vous";
	mailing['es']="inscribese";
	mailing['it']="iscrivetevi";
	mailing['en']="sign up";
	document.getElementById("formulaire").email.value=mailing[lg];
}
function display_video(url_video, w, h)
{
	// apres on affiche la video
	var txt;

	if(!w) { w = 320; }
	if(!h) { h = 240; }

	var WMP7;

	txt = "";

	if ( navigator.appName != "Netscape" )
	{   
		try  {  WMP7 = new ActiveXObject('WMPlayer.OCX'); }
		catch(e) {}
	}

	// Windows Media Player 7 Code
	if ( WMP7 )
	{
		txt += '<OBJECT ID=MediaPlayer ';
		txt += ' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6';
		txt += ' standby="Loading Microsoft Windows Media Player components..."';
		txt += ' TYPE="application/x-oleobject" width="'+ w +'" height="'+ h +'">';
		txt += '<PARAM NAME="url" VALUE="'+ url_video +'">';
		txt += '<PARAM NAME="AutoStart" VALUE="true">';
		txt += '<PARAM NAME="ShowControls" VALUE="1">';
		txt += '<PARAM NAME="uiMode" VALUE="mini">';
		txt += '</OBJECT>';
	}

	// Windows Media Player 6.4 Code
	else
	{
		//IE Code
		txt += '<OBJECT ID=MediaPlayer ';
		txt += 'CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 ';
		txt += 'CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 ';
		txt += 'standby="Loading Microsoft Windows Media Player components..." ';
		txt += 'TYPE="application/x-oleobject" width="'+ w +'" height="'+ h +'">';
		txt += '<PARAM NAME="FileName" VALUE="'+ url_video +'">';
		txt += '<PARAM NAME="AutoStart" VALUE="true">';
		txt += '<PARAM NAME="ShowControls" VALUE="1">';

		//Netscape code
		txt += '    <Embed type="application/x-mplayer2"';
		txt += '        pluginspage="http://www.microsoft.com/windows/windowsmedia/"';
		txt += '        filename="'+ url_video +'"';
		txt += '        src="'+ url_video +'"';
		txt += '        Name=MediaPlayer';
		txt += '        ShowControls=1';
		txt += '        ShowDisplay=0';
		txt += '        ShowStatusBar=0';
		txt += '        width='+ w;
		txt += '        height='+ h +'>';
		txt += '    </embed>';

		txt += '</OBJECT>';
	}

	document.write(txt);
}
function zoom(url)
{
	var image = url.src;
	var image = image.replace("/176x136/", "/640x480/");
	bigimg = window.open("about:blank","bigimg","width=650,height=490,resizable=0,left=10,top=10");
	var html = "<html><head><title>Cliquez sur l'image pour fermer la fenetre</title>\n</head>\n<body style=\"margin:0;padding:0;\">\n<a href=\"javascript:window.close()\"><img src=\"" + image + "\" width=\"640\" height=\"480\" border=0></a>\n</body>\n</html>";
	bigimg.document.open();
	bigimg.document.write(html);
	if (bigimg && bigimg.focus) { 
		bigimg.focus();
	}
	bigimg.document.close();
}
function zoom2(url,lg,g,c,n,m) 
{ 
	// si mise en cache
	var image = url.src;
	var image = image.replace("http://dvdmanager.sv2.biz/wwwdvds/", "");
	var image = image.replace("/img/cache", "");
	var image = image.replace("?crc="+crc, "");
	var truc  = image.indexOf("http://",0);
	if (truc >= 0) { 
		var image = image.replace("http://","");
		var tab = image.split('/'); var domain = tab[0]+"/";
		var image = image.replace(domain, "");
	}
	var image = image.replace("_", "/");
	var image = image.replace("_176x136_", "/176x136/");
	var image = image.replace("_SHOOTS", "/SHOOTS");
	var image = image.replace("/176x136/", "/640x480/");
	var image = image+"?crc="+crc;
	var image = "http://dvdmanager5.sv2.biz/wwwdvds/"+image;
	bigimg = window.open("about:blank","bigimg","width=650,height=490,resizable=0,left=10,top=10");
	var html = "<html><head><title>Cliquez sur l'image pour fermer la fenetre</title>\n<script type=\"text/javascript\" src=\"/popup.js\"></script>\n<script type=\"text/javascript\">lang=\""+lg+"\"; g="+g+"; c="+c+"; n="+n+"; m="+m+";</script>\n</head>\n<body style=\"margin:0;padding:0;\" onLoad=\"timer();\"; onclick=\"next();\">\n<a href=\"javascript:next();\"><img src=\"" + image + "\" width=\"640\" height=\"480\" border=0></a>\n</body>\n</html>";
	bigimg.document.open();
	bigimg.document.write(html);
	if (bigimg && bigimg.focus) { 
		bigimg.focus();
	}
	bigimg.document.close();
}
function view_video(url)
{
	apercu = window.open(url, 'apercu', 'width=800,height=650,location=0,menu=0,status=1,resizable=1,scrollbars=1');
	if (apercu && apercu.focus) { 
		apercu.focus();
		apercu.moveTo(0,0);
	}
	apercu.document.close();
}
function faq(lg)
{
	faq = window.open('http://www.pornattitude.com/index.php?module=client_pornofolies_faq&id=26937&cs=orange&t=A&langue='+lg+'&hd=1', 'faq', 'width=750,height=550,resizable=1,scrollbars=1');
	if (faq && faq.focus) { 
		faq.focus();
	}
	faq.document.close();
}
function initMail(champ) { 
	if (champ.value=="inscrivez-vous") { champ.value=""; }
	if (champ.value=="sign up") { champ.value=""; }
	if (champ.value=="inscribese") { champ.value=""; }
	if (champ.value=="iscrivetevi") { champ.value=""; }
}
function no_back() {
	if (self.name == "apercu") {
		document.getElementById('r1').innerHTML='';
		document.getElementById('r2').innerHTML='';
	}
}
function Bookmark(title,url) {
	if( window.external ) {
		window.external.AddFavorite( url, title );
	} else if( window.sidebar ) { window.sidebar.addPanel( title, url, "");  }
}
function verif_form() {
	if (document.getElementById("formulaire").email.value=="")	{ 
  		alert("L\'adresse E-mail est obligatoire.");
  		document.getElementById("formulaire").email.focus();
	return false;
 	}
	 if (document.getElementById("formulaire").email.value!="") {
		if (document.getElementById("formulaire").email.value.indexOf('@')==-1 || document.getElementById("formulaire").email.value.indexOf('.')==-1 || document.getElementById("formulaire").email.value.indexOf(' ')!=-1) {
			alert("L\'adresse E-mail saisie est invalide.");
	  		document.getElementById("formulaire").email.select();
	  	return false;
		}
	}
document.getElementById("formulaire").submit();
}
/* Popup centrée pour le micro-paiement */
function pop(url) {
	var left = (screen.width/2)-190; // On retire la moitié de 'width'
	var top = (screen.height/2)-130; // On retire la moitié de 'height'
	mp = window.open(url,'mp','statutbar=no, width=380, height=260, left='+left+', top='+top+', menubar=no, resize=no');
	if (mp && mp.focus) { 
		mp.focus();
	}
	mp.document.close();
}
if (parent.frames.length < 1) { dansUneFrame = "non"; } else { dansUneFrame = "oui"; }
dansUneFrame = 'oui';
function spam(string) { document.write(string.replace(/@/,"<")); }
var browser = 1;
if (dansUneFrame=="non") {
	if (browser) {
		spam("@frameset cols=\"*,0\" scrolling=no border=0 frameborder=no framespacing=0>");
		spam("@frame src=\""+Hashref+"?\" name=frame1>");
		spam("@frame src=\"/console.html?g="+g+"&lg="+lg+"&c="+c+"\" name=frame2 noresize>");
		spam("@/frameset>");
	}
}
popURL="/redirect.php?lg="+lg+"&g="+g+"&c="+c;
function sendToGSM(image) {
	var syn = (g==1) ? "gay" : "hetero";
	change_flash('http://www.shellperso.org'+image,39048,lg,tracker,syn);
	return false;
}
function popmp(syn,lg,id_video,tracker) {
	var url = '/mp.php?syn='+syn+'&lg='+lg+'&id='+id_video+'&tracker='+tracker;
	var left = (screen.width/2)-220; // On retire la moitié de 'width'
	var top = (screen.height/2)-145; // On retire la moitié de 'height'
	mp = window.open(url,'mp','statutbar=no, width=440, height=340, left='+left+', top='+top+', menubar=no, resize=no');
	if (mp && mp.focus) mp.focus();
	mp.document.close();	
}