// 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\n\nCE SITE INTERNET EST RESERVE A UN PUBLIC MAJEUR ET AVERTI ET EST CONFORME\nA TOUTES LES REGLEMENTATIONS FRANCAISES EN VIGUEUR. IL CONTIENT DES PHOTOS\nET DES VIDEOS CLASSEES X QUI PEUVENT ETRE CHOQUANTES POUR CERTAINES SENSIBILITES. \n\nCLIQUEZ SUR **OK** POUR VISITER LE SITE (+18 ANS)\nCLIQUEZ SUR **ANNULER** POUR QUITTER (-18 ANS)\n\n";
   if(!confirm(msg)){window.top.popup=0;window.top.location.replace("http://www.buzzado.com");}
	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, "") 
} 
} 

// <a href="javascript:void(addBookmark('BlogFilleSexy.com',window.location.href));">
function addBookmark(title,url) {
		//alert('adding ' + title + ', ' + url);
		if (window.sidebar) {
			window.sidebar.addPanel(title, url,"");
		} else if( document.all ) {

			window.external.AddFavorite( url, title);
		} else if( window.opera && window.print ) {
			return true;
		}
	}

// ============================================================== Affiche vidéo totale-defonce.com - template : bfillesexy

function video(id){
url = 'http://www.totale-defonce.com/infos.php?id=' + id + '&wref=223&tpl=bfillesexy&catg=all&link=#haut';
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
}