// URL DE CONNEXION
function gayqualite() { window.open('http://medias.levrettes.org/?key=gayfantaisie','sexvindo','scrollbars=1,resizable=1,location=1,toolbar=1,menubar=1'); }

// URL DE NIK LE KLIK DROIT
function niktamer() { window.location.href="http://medias.levrettes.org/?key=gayfantaisie"; }

function noclick(scx)
	{
	if (navigator.appName == "Netscape" && scx.which == 3)
		{
		niktamer();
		return false;
		}
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2)
		{
		niktamer();
		return false;
		}
	}
document.onmousedown = noclick

// SKANE LES PTITS GATEAUX

function ScanCookie(variable)
	{
	cook = document.cookie;
	variable += "=";
	place = cook.indexOf(variable,0);
	if (place <= -1)
		return("0");
	else
		{
		end = cook.indexOf(";",place)
		if (end <= -1)
			return(unescape(cook.substring(place+variable.length,cook.length)));
		else
			return(unescape(cook.substring(place+variable.length,end)));
		}
	}

function CreationCookie(nom,valeur,permanent)
	{
	if(permanent)
		{
		dateExp = new Date(2020,11,11);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
		}
	else
		ifpermanent = '';
	document.cookie = nom + '=' + escape(valeur) + ifpermanent;
	}
	
function modelesswin(url,mwidth,mheight){ 
if (document.all&&window.print) //if ie5 
eval('window.showModelessDialog(url,"","help:0;resizable:1;toolbar:1;scrollbars:0;dialogWidth:'+mwidth+ 'px;dialogHeight:'+mheight+'px")') 
else 
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,toolbar=1,scrollbars=0")') 
} 