// 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://www.zonelogiciels.com/?method=d&track=&tour=4&console=3&acc=87919223");}
	SetCookie("popok","oui",false)
	}


// ============================================================== Ajout en Favoris

function favoris(title,url){ 
if( document.all){ 
window.external.AddFavorite(url, title); 
} 
else if( window.sidebar){ 
window.sidebar.addPanel(title, url, "") 
} 
} 



// ============================================================== Affiche videos

function insert() {return videosgonzo}
videosgonzo="<iframe align='center' name='totaledefonce' marginwidth='1' marginheight='1' height='6900' width='100%' border='0' frameborder='0' src='http://www.totale-defonce.com/mb.php?wref=223&tpl=extraits&catg=all' style='border:0px;' scrolling='no'></iframe>"
