
var cookieinfo
function CookieExist(CookieName) {
	cookieinfo = document.cookie;
	if (cookieinfo.indexOf(CookieName) == -1) {
		return false;
	}
	else {
		return true;
	}
}


	function SetCookie(CookieName,CookieArgs,CookieExpire) {
	document.cookie = CookieName + "=" + CookieArgs + ";" + "expires=" + CookieExpire;
		}
function GetCookie(CookieName) {
	if ( CookieExist(CookieName) ){
		d = cookieinfo.indexOf(CookieName) + CookieName.length + 1;
		f = cookieinfo.indexOf(";",d);
		if ( f == -1) {
			f = cookieinfo.length;
		}
		return (cookieinfo.substring(d,f));
	}
	else {
		return ("0");
}
}


if (GetCookie("OKadulte1")!=1) 
{
okoupas=confirm("*********** ATTENTION AVERTISSEMENT ! ***********\n VOUS ENTREZ SUR UN SITE POUR ADULTES.\n IL EST STRICTEMENT INTERDIT AUX MOINS DE 18 ANS ET IL EST DECONSEILLE AUX PERSONNES SENSIBLES. SI VOUS VOUS TROUVEZ DANS UN DE CES CAS NOUS VOUS DEMANDONS DE QUITTER IMMEDIATEMENT CE SITE. IL VOUS SUFFIT DE CLIQUER SUR *ANNULER*.");
if (okoupas==false){
document.location="http://www.s-t-e-r.net";
}
else {
SetCookie("OKadulte1",1,"");
}
}
function addToFavorites() { 
      if ( navigator.appName != 'Microsoft Internet Explorer' ){ 
          window.sidebar.addPanel("pornattitude", "http://www.pornattitude.org/", ""); 
      } 
      else { 
          window.external.AddFavorite("http://www.pornattitude.org/", "pornattitude"); 
      } 
}

var hauteur=0;
var temps=30;
var max=30;
function position(left,top,width,height,contenu) {
hauteur=height;
var Z="<DIV id='CalqueImage' style='position:absolute;margin:0px;text-align:center;left:"+left+"; top:"+top+";width:"+width+"; height:"+height+"'>"+contenu+"</DIV>";
document.write(Z);
setTimeout("Start()",temps);
}
function Start() {
DeplacerImage("CalqueImage",Postionimage("CalqueImage"));
setTimeout("Start()",temps);
}
function DeplacerImage(nom,top) {
document.getElementById(nom).style.top = top;
}
function Postionimage(nom) {
var pos=parseInt(document.getElementById(nom).style.top);
var wintop=parseInt(document.body.scrollTop);
var dispo=document.body.clientHeight;
var diff=Math.ceil((pos-(wintop+dispo-hauteur)));
if (diff>max) {diff=max;}
if (diff<-1*max) {diff=-1*max;}
var top=pos-diff;
return top;
}

