function Show(which)
{

Popup=eval('Popup'+which);

/* get the mouse left position */
x = event.clientX + document.body.scrollLeft;
/* get the mouse top position */
y = event.clientY + document.body.scrollTop + 35;
/* display the pop-up */
Popup.style.display="block";
/* set the pop-up's left */
Popup.style.left = x;
/* set the pop-up's top */
Popup.style.top = y;
}
/* this function hides the pop-up when
user moves the mouse out of the link */
function Hide(which)
{
Popup=eval('Popup'+which);
/* hide the pop-up */
Popup.style.display="none";
}

function imgOn(imgName)
{
	if (document.images) {	
	 document.images[imgName].src = "img/"+imgName+"_on.gif";	
	}
}

function imgOff(imgName)
{
	if (document.images) {
	
	 document.images[imgName].src = "img/"+imgName+"_off.gif";
	}
}

function imgOver(imgName)
{
	if (document.images) {
	
	 document.images[imgName].src = "img/"+imgName+"_over.gif";
	}
}
function imgOn2(imgName,folder,ext)
{
	if (document.images) {
	 document.images[imgName].src = folder+imgName+"_on."+ext;
	}
}

function imgOff2(imgName,folder,ext)
{
	if (document.images) {
	 document.images[imgName].src = folder+imgName+"_off."+ext;
	}
}
function imgOver2(imgName,folder,ext)
{
	if (document.images) {
	 document.images[imgName].src = folder+imgName+"_over."+ext;
	}
}
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}


function preloadImages() {
	if (document.images) {	
		singe = newImage("images/evenements/singe.jpg");
		emu = newImage("images/evenements/emu.jpg");
	}
}

function openphoto(limage, width, height)
{
//alert(limage);
var evenement = window.open("","my_new_window","width="+width+",height="+(height+0)+" top=10,left=10");

 //evenement.document.bgColor="black";


evenement.document.write("<HTML>");
evenement.document.write("<HEAD>");
evenement.document.write("<TITLE>Les photos</TITLE>");
evenement.document.write("<script language=\"JavaScript\" type=\"text/javascript\">");
evenement.document.write("function ok(){");
evenement.document.write("opener.focus();");
evenement.document.write("opener.location.href = opener.location;");
//evenement.document.write("alert(\"dddddddddddd\");");
evenement.document.write("}");
evenement.document.write("</script>");
evenement.document.write("</HEAD>");
evenement.document.write("<BODY BGCOLOR='000000' onUnload=ok();>");
evenement.document.write("<CENTER>");
evenement.document.write("<P><img src="+limage+" border=\"0\"><P>");

//evenement.document.write("<a href='' onClick='self.close()'><img border=\"0\" src=\"../midlifecrisis/images/exit-over.gif\"></a><p>");

evenement.document.write("</CENTER>");
evenement.document.write("</BODY>");
evenement.document.write("</HTML>");
}
 function openGppWindow() {
 popupWin = window.open('http://www.generalpk.com/ourcompany.htm',
 'open_window',
 'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, width=900, height=500, left=0, top=0')
 }
 
 
  function openAntislipWindow() {
	  
 popupWin = window.open('anti-slip/index.html',
 'open_window',
 'menubar=false, toolbar=falsee, location=false, directories=false, status=false, scrollbars, resizable, dependent, width=820, height=675, left=0, top=0');
 popupWin.focus();
 }

function closewindowinfo() 
{
mywindow.close()
}
function openwindow(temp)
{
var nouvelle;
var hautfenetre =(screen.height / 2) - 125;
var gauchefenetre =(screen.width / 2) - 125;
var largeur = (screen.height - temp.height) / 2;
var hauteur = (screen.width - temp.width) / 2;
nouvelle = window.open(temp.src,"my_new_window","width="+(temp.width+20)+",height="+(temp.height+30)+",top=" + hauteur + ",left=" + largeur + "", "location=no", "menubar=no", "resizable=no","scrollbars=no","status=no");

//  nouvelle = window.open(temp.src,"my_new_window","width="+(temp.width+20)+",height="+(temp.height+30)+",top=60,left=60", "location=no", "menubar=no", "resizable=no","scrollbars=no","status=no");
 
 nouvelle.document.bgColor="black";
}

function closewindow() 
{
nouvelle.close()
}

function remote(url){
win2=window.open(url,"","width=600,height=400,status=no,directories=no,toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,top=25,left=25");
win2.creator=self;
win2.document.bgColor="black";
}


function vide()
{
	document.contact.mon_champ2.value="";
}

function videChamps()
{
	document.contact.nom.value="";
	document.contact.email.value="";
	document.contact.texte.value=("\(Entrez le montant içi\)");
	document.contact.nom.focus();
}
function remplirChamps()
{

	document.contact.mon_champ2.value="Ecrire le message içi\n\nCocher 1 ou plusieurs cases, à gauche\n\nCliquer sur ENVOYER\n\n.";
	
}
function blanc(input)
{

	document.contact.nom.style.backgroundColor='#ffffff';
	document.contact.email.style.backgroundColor='#ffffff';

}

