if (top.frames.length!=0) top.location=self.document.location;

if ( screen.availWidth <= '1050' )
{
  self.moveTo(0,0);
  self.resizeTo(screen.availWidth,screen.availHeight);
}

i1 = new Image;
i1.src = "images/silouette1.gif";
i2 = new Image;
i2.src = "images/silouette2.gif";
i3 = new Image;
i3.src = "images/rond.png";
i4 = new Image;
i4.src = "images/bouton.png";

document.write('<style type="text/css">');
document.write('.window{ z-index:+10; background-color: transparent; position: absolute; visibility : hidden; padding: 0px; font-family: Courrier; font-size: 8pt; border : 0; width: 800; height: 450; top:50%; left:50%; margin-top:-225px; margin-left:-400px; }');
document.write('.contemp_window{ z-index:+10; background-color: transparent; width: 100%; height : 100%; border : 0; }');
document.write('.calque{ z-index:+5; color: #FFFFFF; position: absolute; visibility : hidden; padding: 0px; font-family: Courrier; align: center; font-size: 8pt; background-color: #000000; opacity : .85; filter : alpha(opacity=85); width: 100%; height : 100%; top : 0; left : 0 ; }');
document.write('</style>');

document.write('<div id="overlay" class="calque"><table class = "image_calque" valign = "center" border = "0" align = "center" ><tr><td></td></tr></table></div>');
document.write('<div id="window" class="window"><table><tr><td>');
document.write('<a href = "javascript:cachetout();"><img src="http://www.live--show.com/images/silouette1.gif" height="300" border="0"></a><br><br></td><td width="500"><center>');
document.write('<a href = "javascript:cachetout();"><img src="http://www.live--show.com/images/rond.png" width="81" height="112" border="0"></a>');
document.write(' <span style="background-color: #000000"><font size="4" color="#FFFFF"><b><u>Attention :</u><br><br>');
document.write('Ce site est strictement réservé aux adultes !<br><br>');
document.write('Il contient un contenu pornographique explicite pouvant heurter la sensibilité des plus jeunes.<br><br>');
document.write('En entrant sur ce site vous déclarez être majeur conformément aux lois en vigueur dans votre pays de résidence.</b></font></span><br><br></font></td><td>');
document.write('<a href = "javascript:cachetout();"><img src="http://www.live--show.com/images/silouette2.gif" height="300" border="0"></a><br><br></td></tr></table>');
document.write('<table width="700"><tr><td background="http://www.live--show.com/images/bouton.png" width="250" height="80"><font size="6"><b><i><center><a style="color:FFFFFF; text-decoration:none;" href = "javascript:cachetout();">ENTRER</a></i></b></center></td><td width="200"></td>');
document.write('<td background="http://www.live--show.com/images/bouton.png" width="250" height="80"><font size="6"><b><i><center><a style="color:AAAAFF; text-decoration:none;" href="http://www.keskeces.com">SORTIR</a></center></i></b></td></tr></table></center></div>');

function redim()
{

var larg = (document.body.clientWidth);
var haut = (document.body.clientHeight);

if ( screen.availWidth > '1150' && larg <= '1112')
{

if ( haut < '950' ) { haut = '950'; }
if ( haut > screen.availHeight ) { haut = screen.availHeight; }

var x = (screen.availWidth - 1150 )/2;
var y = (screen.availHeight - haut )/2;

  self.moveTo(x,y);
  self.resizeTo('1150',haut);
}
if ( screen.availHeight > '950' && haut <= '772')
{
if ( larg < '1112' ) { larg = '1150'; }
if ( larg > screen.availWidth ) { larg = screen.availWidth; }

var x = (screen.availWidth - larg )/2;
var y = (screen.availHeight - 950 )/2;

  self.moveTo(x,y);
  self.resizeTo(larg,'950');
}

a=document.getElementById('overlay'); 
a.style.height= document.body.scrollHeight; 

}



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,domaine)
	{
	if(permanent)
		{
		dateExp = new Date(2020,11,11);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
		}
	else
		ifpermanent = '';
	document.cookie = nom + '=' + escape(valeur) + '; domain = ' + domaine;
	}


var w3c=document.getElementById && !document.all;
var ie=document.all;


 // déclaration des variables uniquement pour IE vive microsoft ?!!
var overlay;
var my_window;


function affiche_overlay_window(image_fond_overlay,adresse_page){
	// creation de l'overlay et affichage de l'image
	montreoverlay("<table class = 'image_calque ' valign = 'center' border = '0' align = 'center' ><tr><td></td></tr></table>");
	// creation de la fenêtre
	montrefenetre(adresse_page);


}

function montreoverlay(text) {
  if (w3c||ie){
    overlay =  document.all ? document.all["overlay"] : document.getElementById ? document.getElementById("overlay") : ""
	//overlay.innerHTML = text; // fixe le code HTML dans l'overlay balise (div)
    overlay.style.visibility = "visible"; // modification du style

  }
}

function montrefenetre(html) {
  if (w3c||ie){
    //affichage de la fenetre
	my_window = document.all ? document.all['window'] : document.getElementById ? document.getElementById('window') : ""
    my_window.style.visibility = "visible";

  }
}

function cachetout() {
	if (w3c||ie){

	// masque la fenetre (balise div [window] )
	//my_window = document.all ? document.all['window'] : document.getElementById ? document.getElementById('window') : ""
	my_window.style.visibility = "hidden";

	// masque l'overlay (balise div [overlay])
	my_window = document.all ? parent.document.all['overlay'] : parent.document.getElementById ? parent.document.getElementById('overlay') : ""
	my_window.style.visibility = "hidden";

	}


}



if(ScanCookie("dejapopup10")==0)
	{
affiche_overlay_window('http://www.live--show.com/images/noir.png','http://www.live--show.com/avertissement.php');
  	CreationCookie("dejapopup10","oui",false,".natacharmes.com");
window.onload = redim;
}



