// 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 visiter le site (+18 ans)\nCliquez sur ANNULER pour quitter (-18 ans)\n\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, "") 
} 
} 

// ============================================================== Affiche photos
function photo(id){
url = 'photos/' + id + '.html';
window.open(url, '_blank', 'scrollbars=no, width=730, height=550, top=0, left=0, resizable');
}


// ============================================================== Affiche template vidéos

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


// ============================================================== Affiche

function archive() {return listevideos}
listevideos="<iframe name='carnage-anal-videos' src='http://www.totale-defonce.com/catg_mb.php?catg=gonzo&wref=223&tpl=canal&link=&list=1#haut' marginwidth='0' marginheight='0' frameborder='0' scrolling='no' width='770' height='6800'></iframe>"