var vnoel = 0;
var vMaxtext=11;
var hauteur;
var largeur;
var coef;
var milieux;
var milieuy;
var vimnom;
var xp,yp,xphoto,pente,ordonne,indexphoto=1;
var offsetx=0;
var width = 1;
var status = true;
var lien;

function checkadulte(lien){
	if(confirm("Vous entrez dans une zone strictement réservée aux adultes, en cliquant sur OK vous confirmez que vous avez plus de 18 ans, sinon cliquez sur CANCEL")){
		if(lien!="")
			document.location=lien;
		
	}
}
function add(vtype){
	top.header.location="../hit.php3?id="+vtype;
}

function changesize(objet,mode,original){
	if(mode==0){
		objet.width=original;
	}
	else{
		objet.width=110;
	}
}
function ouvreFen(url,vh,vl,vsc) 
{
	temp="menubar=no,toolbar=no,locationbar=no,status=yes,scrollbars="+vsc+",resizable=yes,width="+vl+",height="+vh;
 	window.open(url,"",temp);
}
function blink() 
{
	if(status==true){
		status = false;
		ici.innerHTML=lien;
	}
	else{
		status = true;
		ici.innerHTML="<span class='backg'>"+lien+"</span>";
	}
	timer01 = setTimeout("blink()", 1000);
}

function expandingWindow(lien) {
var windowprops='width=1,height=1,scrollbars=1,status=yes,resizable=1,location=yes,toolbar=yes,menubar=yes';
var heightspeed = 8; 
var widthspeed = 8; 
var leftdist = 20;   
var topdist = 20; 
var lunghezza = 0;
var altezza = 0;


if(lunghezza == 0){
lunghezza = window.screen.availWidth ;
lunghezza = lunghezza - leftdist;
		}
if(altezza == 0){
altezza = window.screen.availHeight;
altezza = altezza- topdist;
}

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = lunghezza;
var winheight = altezza;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.document.location=lien;
}

}
