// JavaScript Document

// ============================================================== Window en top location

if (window!= top)
top.location.href=location.href


// ============================================================== Test Flag Disclaimer

function TestFlag(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 SetCookie(nom,valeur,permanent)
	{
	if(permanent)
		{
		dateExp = new Date(2012,12,12);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
		}
	else
		ifpermanent = '';
	document.cookie = nom + '=' + escape(valeur) + ifpermanent;
	}

if(TestFlag("popok")==0)
	{
	var msg="ATTENTION : SITE PORNOGRAPHIQUE RESERVE AUX ADULTES DE PLUS DE 18 ANS\n\nCe site Internet est réservé à un public majeur et averti et est conforme\nà toutes les règlementations françaises en vigueur. Il contient des textes,\ndes photos et des vidéos classées X qui peuvent être choquantes pour\ncertaines sensibilités. \n\nCLIQUEZ SUR OK POUR CONTINUER, ANNULER POUR QUITTER.\n\n";
   if(!confirm(msg)){window.top.popup=0;window.top.location.replace("http://ad1.banners.phoneaccess.com/bannerclick.php?account=fusion&b=65915&tour=2");}
	SetCookie("popok","oui",false)
	}


// ============================================================== Ajout en Favoris

function favoris(title,url){ 
if( window.external){ 
window.external.AddFavorite(url, title); 
} 
else if( window.sidebar){ 
window.sidebar.addPanel(title, url, "") 
} 
} 

// ============================================================== Affiche

function show(whichLayer)
{
if (document.getElementById)
{
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}