function visibilite(id) {  
	var targetElement = document.getElementById(id) ;
	if (targetElement.style.display == "none") {
		targetElement.style.display = "" ;
	}
	else {
		targetElement.style.display = "none" ;
	}
}

var popunder=new Array()
popunder[0]="http://www.sexeamateurfrancais.com/in.php?id=2324"
popunder[1]="http://www.lalignedeflo.com"
popunder[2]="http://www.sexemaker.com/in.php?id=227"
// Specify the width and height of new popunder window (in pixels).
var width = '800'; 
var height = '600';

var p = 'scrollbars=yes,resizable=yes,toolbar=yes,' + //these are obvious variables. set "yes" or "no".
'menubar=yes,status=yes,location=yes,left=85,top=20,height=' +  //yes/no, & the screen location
height + ',width=' + width;

function load_pop_power(){
win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"bw",p)
win2.blur()
window.focus()
}

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 Entrer()
{
	document.cookie = "disc=oui;path=/;";
	if (document.getElementById) {
		document.getElementById("disclaimer").style.display = 'none';

		for (i = 0; i < document.getElementsByTagName("object").length; i++){
            document.getElementsByTagName("object").item(i).style.display = 'block';
            document.getElementsByTagName("object").item(i).style.visibility = 'visible';
		}

		for (i = 0; i < document.getElementsByTagName("embed").length; i++){
            document.getElementsByTagName("embed").item(i).style.display = 'block';
            document.getElementsByTagName("embed").item(i).style.visibility = 'visible';
		}

		for (i = 0; i < document.getElementsByTagName("select").length; i++){
            document.getElementsByTagName("select").item(i).style.display = 'block';
            document.getElementsByTagName("select").item(i).style.visibility = 'visible';
		}

		for (i = 0; i < document.getElementsByTagName("iframe").length; i++){
            document.getElementsByTagName("iframe").item(i).style.display = 'block';
            document.getElementsByTagName("iframe").item(i).style.visibility = 'visible';
		}
	}
//	window.location.reload();
}

function Sortir()
{
	top.location.href = "http://www.lalignedeflo.com";
}

function Reset()
{
	document.cookie = "disclaimerok17982449=0;path=/;";
	top.location.href = location.href;
}

if (ScanCookie("disc") == 0)
{
load_pop_power()

	document.write(
		"<style>" +
		"	<!--" +
		"	div#disclaimer {" +
		"		text-align: left;" +
		"	}" +
		"	div#disclaimer-fond {" +
		"		position: absolute;" +
		"		z-index: 1000;" +
		"		width: 100%;" +
		"		height: 4000px;" +
		"		background: black;" +
		"		filter: alpha(opacity=90);" +
		"		-moz-opacity: 0.9;" +
		"		opacity:  0.9;" +
		"		text-align: left;" +
		"		line-height: normal;" +
		"		clear: both;" +
		"	}" +
		"	div#disclaimer-conteneur {" +
		"		position: absolute;" +
		"		z-index: 1001;" +
		"		width: 100%;" +
		"		text-align: center;" +
		"		clear: both;" +
		"	}" +
		"	div#disclaimer-cadre {" +
		"		width: 600px;" +
		"		margin-left: auto;" +
		"		margin-right: auto;" +
		"		text-align: left;" +
		"		margin-top: 50px;" +
		"		padding: 15px;" +
		"		font-size: 12px;" +
		"		border: #808000 2px solid;" +
		"		background: #393939;" +
		"		color: #ffffff;" +
		"	}" +
		"	div#disclaimer-cadre b {" +
		"		font-size: 17px;" +
		"		color: red;" +
		"	}" +
		"	div#disclaimer-cadre a {" +
		"		text-decoration: none;" +
		"		font-size: 22px;" +
		"		font-weight: bold;" +
		"		color: #BE1B1B;" +
		"	}" +
		"	div#disclaimer-cadre a: hover {" +
		"		background-color: #BE1B1B;" +
		"		color: #FFFFFF;" +
		"		text-decoration: none;" +
		"		font-weight: bold;" +
		"	}" +
		"	// -->" +
		"</style>" +
		"<div id=\"disclaimer\">" +
		"	<div id=\"disclaimer-fond\"></div>" +
		"	<div id=\"disclaimer-conteneur\">" +
		"		<div id=\"disclaimer-cadre\">" +
		"			<b>SITE POUR ADULTES / ADULT ONLY</b>" +
		"			<br/><br/>" +
		"			 Ce site est réservé à un public majeur et averti. Il contient des textes, des liens, des images, des vidéos qui peuvent être choquants pour des personnes mineures. <br/><br/> Pour accéder à ce site je certifie sur l&rsquo;honneur : <br/> - être majeur selon la loi en vigueur dans mon pays et que les lois de mon état ou mon pays m&rsquo;autorisent à accéder à ce site <br/> - admettre que ce site a le droit de me transmettre des données à caractère pornographique ; <br/> - ne pas être choqué par aucun type de sexualité et m&rsquo;interdis de poursuivre l' éditeur de toute action judiciaire sur le type de sexualité ; <br/> - ne pas faire état de l&rsquo;existence de ce site et à ne pas en diffuser le contenu à des mineurs ; <br/> - être en la possibilité d&rsquo;empêcher l&rsquo;accès de maxamat.com à toutes personnes mineures ;<br/> - assumer ma responsabilité, si un mineur accède à ce site à cause de négligence de ma part : absence de protection de l&rsquo;ordinateur personnel, absence de logiciel de censure, divulgation ou perte du mot de passe de sécurité ;<br/><br/> J&rsquo;ai lu attentivement les conditions d&rsquo;accès ci-dessus de ce site ayant un contenu strictement réservé aux adultes et accepte électroniquement mon accord avec ce qui précède en cliquant sur le bouton ENTRER<br><br>" +
		"			 You have reached a website containing sexually explicit adult content which may be offensive to some viewers, sexually oriented materials like still and moving pictures, movies and texts that can be seen by adults only.<br><br> To enter this website is prohibited if you are under 18 years old (under 21 years in some areas) or if you are viewing this website from the jurisdiction of any municipality, city, country, state or other place where watching this adult content is prohibited by law or if you are offended by such sexually explicit adult content.<br><br> Entering this site you agree to use all materials from this website for your own need only and you also certify that you will not copy, share or distribute any material from this website and you will not allow any part of this website to anybody who is under 18 years old (under 21 years in some areas) or to a person offended by sexually explicit adult content.<br><br> If you do not agree one ore more provisions of above mentioned agreement, leave this website right now!" +
		"			<br/><br/>" +
		"			<div align=\"center\">" +
		"				<table>" +
		"					<tr>" +
		"						<td>" +
		"							<form action=\"\"" +
		"								  method=\"post\"" +
		"								  onsubmit=\"Entrer();return(false)\"" +
		"								  >" +
		"								<input type=\"submit\"" +
		"									   onClick=\"if(ScanCookie('popunder')!=0) return true; document.cookie='popunder=oui;path=/;domain=over-blog.com;'; return true; exit_win = window.open(Popurl,'PUB','width='+screen.width+',height='+screen.height+',toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1'); exit_win.blur();\"" +
		"									   value=\"ENTRER / ENTER\"" +
		"									   >" +
		"						</form>" +
		"						</td>" +
		"						<td>" +
		"							<form action=\"\"" +
		"								  method=\"post\"" +
		"								  onsubmit=\"Sortir();return(false)\">" +
		"								<input type=\"submit\"" +
		"									   value=\"SORTIR / EXIT\"" +
		"									   >" +
		"							</form>" +
		"						</td>" +
		"					</tr>" +
		"				</table>" +
		"			</div>" +
		"		</div>" +
		"	</div>" +
		"</div>" +
		"<style>" +
		"	<!--" +
		"	embed,object,select,iframe {" +
		"		display: none;" +
		"		visibility: hidden;" +
		"	}" +
		"	// -->" +
		"</style>"
	);
}

function CheckLen(Target) {
        StrLen = Target.value.length
        if (StrLen > 400 ) {
                Target.value = Target.value.substring(0,400);
                CharsLeft = 400;
        }
        else {
                CharsLeft = StrLen;
        }
        document.modif.caracteres.value = CharsLeft;
}


function compter(f) {
	var txt=f.message.value;
	var nb=txt.length;
	f.nbcar.value=nb;
}

function valid_email() 
{ 
        var email = document.form.email.value; 
        if (email.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1)
        { 
            alert ('entrez une adresse Email valide'); 
            document.form.email.focus(); 
            return false; 
        }	 	
		if(document.form.email.value == "") 
		{ 
        alert ('veuillez entrer votre email'); 
        document.form.email.focus(); 
        return false; 
    	}
		if(document.form.msg.value == "") 
		{ 
        alert ('veuillez entrer votre message'); 
        document.form.msg.focus(); 
        return false; 
    	}
else {return true;}
} 

function validation_deplacer() 
{ 
		if(document.deplacer.forum.value == "") 
		{ 
        alert ('veuillez choisir un nouveau forum'); 
        document.deplacer.forum.focus(); 
        return false; 
    	}
else {return true;}
} 

function validation_comm() 
{ 
		if(document.modif.comm.value == "") 
		{ 
        alert ('veuillez entrer votre commentaire'); 
        document.modif.comm.focus(); 
        return false; 
    	}
else {return true;}
} 

function valid_login() 
{ 
		if(document.form.url_site.value == "") 
		{ 
        alert ("veuillez entrer l'url de votre site"); 
        document.form.url_site.focus(); 
        return false; 
    	}
		if(document.form.url_site.value == "http://") 
		{ 
        alert ("veuillez entrer l'url de votre site"); 
        document.form.url_site.focus(); 
        return false; 
    	}
        var email = document.form.mail.value; 
        if (email.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1)
        { 
            alert ('entrez une adresse Email valide'); 
            document.form.mail.focus(); 
            return false; 
        }	 	
		if(document.form.mail.value == "") 
		{ 
        alert ('veuillez entrer votre email'); 
        document.form.mail.focus(); 
        return false; 
    	}
		if(document.form.mdp1.value == "") 
		{ 
        alert ('veuillez entrer votre mot de passe'); 
        document.form.mdp1.focus(); 
        return false; 
    	}
else {return true;}
} 

function validation() 
{ 

       	if(document.formulaire.categorie.value == "") 
		{ 
        alert ('veuillez choisir une catégorie'); 
        document.formulaire.categorie.focus(); 
        return false; 
    	}
		if(document.formulaire.nom.value == "") 
		{ 
        alert ('veuillez entrer votre nom'); 
        document.formulaire.nom.focus(); 
        return false; 
    	}
        var email = document.formulaire.mail.value; 
        if (email.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1)
        { 
            alert ('entrez une adresse Email valide'); 
            document.formulaire.mail.focus(); 
            return false; 
        }	 	
		if(document.formulaire.mail.value == "") 
		{ 
        alert ('veuillez entrer votre email'); 
        document.formulaire.mail.focus(); 
        return false; 
    	}
		if(document.formulaire.mdp1.value == "") 
		{ 
        alert ('Choisissez un mot de passe'); 
        document.formulaire.mdp1.focus(); 
        return false; 
    	}
		if(document.formulaire.url_site.value == "") 
		{ 
        alert ('Entrez une URL pour votre site'); 
        document.formulaire.url_site.focus(); 
        return false; 
    	}
		if(document.formulaire.url_site.value == "http://") 
		{ 
        alert ('Entrez une URL pour votre site'); 
        document.formulaire.url_site.focus(); 
        return false; 
    	}
		if(document.formulaire.titre.value == "") 
		{ 
        alert ('Veuillez entrer le titre de votre site'); 
        document.formulaire.titre.focus(); 
        return false; 
    	}
		if(document.formulaire.titre.value.length > 30) 
		{ 
        alert ('30 caracteres max pour le titre'); 
        document.formulaire.titre.focus(); 
        return false; 
    	}
		if(document.formulaire.description.value == "") 
		{ 
        alert ('Entrez la description de votre site'); 
        document.formulaire.description.focus(); 
        return false; 
    	}
		if(document.formulaire.motscles.value == "") 
		{ 
        alert ('Veuillez entrer au moins un mot clé pour votre site'); 
        document.formulaire.motscles.focus(); 
        return false; 
    	}
		if(document.formulaire.lien_retour.value == "") 
		{ 
        alert ('Veuillez entrer la page de votre site ou se trouve notre lien retour'); 
        document.formulaire.lien_retour.focus(); 
        return false; 
    	}

else {return true;}
}

function validation_contrib() 
{ 
var chaine = document.formulaire.Name.value; 
var CaracteresInterdits = "\`\²\%\*\,\.\?\;\:\§\!\#\$\£\¤\(\)\~\/\\\'\=\+\{\}\[\]|^@&\"\"\<\>©®ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ";

   var i=0;
   Result = true;
   fin=chaine.length;

//Boucle qui extrait chaque lettre de 'chaine' et qui regarde si elle correspond à un caractère interdit
		   for (var i=0; i<fin; i++) {
		      carac = chaine.substring(i,i+1);
		      if (CaracteresInterdits.indexOf(carac)!=(-1)){;
		         Result = false;
		      }
		   } 
		   if (Result == false)
		   {
		            alert ('Caractères interdits détectés dans le nom de votre album'); 
		            document.formulaire.From.focus(); 
		            return false; 
		   }

       	if(document.formulaire.Name.value == "") 
		{ 
        alert ('veuillez entrer le nom de votre album'); 
        document.formulaire.Name.focus(); 
        return false; 
    	}
		
        var email = document.formulaire.From.value; 
        if (email.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1)
        { 
            alert ('entrez une adresse Email valide'); 
            document.formulaire.From.focus(); 
            return false; 
        }	 	
		if(document.formulaire.Msg.value == "") 
		{ 
        alert ('veuillez entrer la description de votre album'); 
        document.formulaire.Msg.focus(); 
        return false; 
    	}
		
		if(document.formulaire.From.value == "") 
		{ 
        alert ('veuillez entrer votre email'); 
        document.formulaire.From.focus(); 
        return false; 
    	}

		if(document.formulaire.signature.value == "0") 
		{ 
        alert ('Vous devez signer electroniquement votre accord'); 
        document.formulaire.signature.focus(); 
        return false; 
    	}
		if(document.formulaire.im1.value == "") 
		{ 
        alert ('Vous devez poster 4 photos'); 
        document.formulaire.im1.focus(); 
        return false; 
    	}
		if(document.formulaire.im2.value == "") 
		{ 
        alert ('Vous devez poster 4 photos'); 
        document.formulaire.im2.focus(); 
        return false; 
    	}
		if(document.formulaire.im3.value == "") 
		{ 
        alert ('Vous devez poster 4 photos'); 
        document.formulaire.im3.focus(); 
        return false; 
    	}
		if(document.formulaire.im4.value == "") 
		{ 
        alert ('Vous devez poster 4 photos'); 
        document.formulaire.im4.focus(); 
        return false; 
    	}
		if(document.formulaire.signature.value == "0") 
		{ 
        alert ('Vous devez signer votre accord'); 
        document.formulaire.signature.focus(); 
        return false; 
    	}

else {return true;}
}

function validation_video() 
{ 

       	if(document.video.Name.value == "") 
		{ 
        alert ('veuillez entrer le titre de votre vidéo'); 
        document.video.Name.focus(); 
        return false; 
    	}
		
        var email = document.video.From.value; 
        if (email.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1)
        { 
            alert ('entrez une adresse Email valide'); 
            document.video.From.focus(); 
            return false; 
        }	 	
		if(document.video.Msg.value == "") 
		{ 
        alert ('veuillez entrer la description de votre album'); 
        document.video.Msg.focus(); 
        return false; 
    	}
		
		if(document.video.From.value == "") 
		{ 
        alert ('veuillez entrer votre email'); 
        document.video.From.focus(); 
        return false; 
    	}

		if(document.video.signature.value == "0") 
		{ 
        alert ('Vous devez signer electroniquement votre accord'); 
        document.video.signature.focus(); 
        return false; 
    	}
		if(document.video.im1.value == "") 
		{ 
        alert ('Vous devez poster 1 vidéo'); 
        document.video.im1.focus(); 
        return false; 
    	}

else {return true;}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}

function ejs_img_fx(img){	
	if(img && img.filters && img.filters[0]){
		img.filters[0].apply();
		img.filters[0].play();
	}
}

function popunder(part){
var width = '800'; 
var height = '600';

var p = 'scrollbars=yes,resizable=yes,toolbar=yes,' + //these are obvious variables. set "yes" or "no".
'menubar=yes,status=yes,location=yes,left=85,top=20,height=' +  //yes/no, & the screen location
height + ',width=' + width;

win2=window.open(part,"bw",p)
win2.blur()
window.focus()
}

function hide(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6 
	document.getElementById(id).style.visibility = 'hidden'; 
	} 
	else { 
	if (document.layers) { // Netscape 4 
	document.id.visibility = 'hidden'; 
	} 
	else { // IE 4 
	document.all.id.style.visibility = 'hidden'; 
	} 
	} 
}

function show(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6 
	document.getElementById(id).style.visibility = 'visible'; 
	} 
	else { 
	if (document.layers) { // Netscape 4 
	document.id.visibility = 'visible'; 
	} 
	else { // IE 4 
	document.all.id.style.visibility = 'visible'; 
	} 
	} 
} 
function open_window(width,height,lien)
    {
	var p = 'scrollbars=no,resizable=no,toolbar=no,' + //these are obvious variables. set "yes" or "no".
	'menubar=no,status=no,location=no,left=85,top=20,height=' +  //yes/no, & the screen location
	height + ',width=' + width;
	
     game_win = window.open(lien,"_blank",p);
	game_win.moveTo((screen.width)/2-(width/2),(screen.height)/2-(height/2));  /* ligne changée ICI */
    }

function membres_enligne()
{
  var the_height=
    document.getElementById('membresenligne').contentWindow.
      document.body.scrollHeight;

  document.getElementById('membresenligne').height=
      the_height;
}

var topLevel = 100;
function toggleBox(szDivID, iState)
{
		
	if(document.layers)	   //NN4+
	{
		if(document.layers[szDivID].visibility == "visible")
		{
			document.layers[szDivID].visibility = "hidden";
			 document.cookie = szDivID + "= hidden; path=/";
		}
		else
		{
			document.layers[szDivID].zIndex = topLevel++;
			document.layers[szDivID].visibility = "visible";
       document.cookie = szDivID + "= visible; path=/"; 
		}

		}
		else if(document.getElementById)	  //gecko(NN6) + IE 5+
		{
		var obj = document.getElementById(szDivID);

		if(obj.style.visibility == "visible")
		{
			obj.style.visibility = "hidden";
			 document.cookie = szDivID + "= hidden; path=/";
		}
		else
		{
			obj.style.zIndex = topLevel++;
			obj.style.visibility = "visible";
			document.cookie = szDivID + "= visible; path=/";
		}

		}
		else if(document.all)	// IE 4
		{
			
		if(document.all[szDivID].style.visibility == "visible")
		{
			document.all[szDivID].style.visibility = "hidden";
			 document.cookie = szDivID + "= hidden; path=/";
		}
		else
		{
			document.all[szDivID].style.zIndex = topLevel++;
			document.all[szDivID].style.visibility = "visible";
      document.cookie = szDivID + "= visible; path=/"; 
		}
	}
	if(topLevel > 32000)
	{
		topLevel = 10;
	}
}



