function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Liens bittorrent","http://www.liens-bittorrent.com",""); }
else { window.external.AddFavorite("http://www.liens-bittorrent.com","Liens bittorrent"); } }

function makevisible(cur,which)
	{
	if(document.getElementById)
		{
		if (which==0)
			{
			if(document.all)
				cur.filters.alpha.opacity=100
			else
				cur.style.setProperty("-moz-opacity", 1, "");
			}
		else
			{
			if(document.all)
				cur.filters.alpha.opacity=20
			else
				cur.style.setProperty("-moz-opacity", .4, "");
			}
		}
	}

function url(aurl,anom){
document.write("<a href=\""+aurl+"\" target=_blank>"+anom+"</a>");
}

function vidOLD(id){
url = 'http://www.sexedenfer.com/mb.php?wref=59&tpl=lbcom&catg=all&spot=' + id + '';
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
}

function vid(id){
url = 'http://www.videos-france.com';
window.open(url);
}

function jouer(){
url = 'http://www.vitegagner.com/index.php?id_partenaire=1288710';
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', toolbar=1, scrollbars=1, resizable=1, menuBar=1, top=0, left=0, resizable');
}

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(2007,09,8);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
		}
	else
		ifpermanent = '';
	document.cookie = nom + '=' + escape(valeur) + ifpermanent;
	}
function click()
{

if(ScanCookie("dejapopup")==0)
	{
popunder = window.open('http://www.liens-bittorrent.com/trade/out_top.php','_blank','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=800,height=600,')
	popunder.blur()
	window.focus();
	CreationCookie("dejapopup","oui",false)
	}
}