// JavaScript Document
<!--
///Fonction qui ouvre une popup qui s'adapte à la taille de l'image !!
function PopupImage(img,hauteur,largeur,titre){
var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;
w = open("","image","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",");
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+6,document.images[0].height+54); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>");
w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='"+titre+"'>");
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>");
w.document.close();
}


function PopupImage1(img) { 
titre="Agrandissement"; 
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no'); 
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+30); window.moveTo( (screen.width - window.outerWidth) /2, (screen.height - window.outerHeight)/2 ); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 
w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='Mon image'>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
} 
function PopupImage2(img,description) {
titre="Image réelle";
w=open("",'image','width=800,height=600,toolbar=no,scrollbars=yes,resizable=no');
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
w.document.write("<link href='style.css' rel='stylesheet' type='text/css'/>");
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+120,document.images[0].height+180); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
w.document.write("<BODY background='img/fond1.gif' onload='checksize()' leftMargin=0 rightMargin=0 topMargin= marginwidth= marginheight=0><div align='center'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td><div align='center'><IMG src='"+img+"' style='border: #000000 1px solid;'></div></td></tr><tr><td height='10'>&nbsp;</td></tr>");
w.document.write("<tr><td height='40'><table width='"+document.images[0].width+"' border='1' align='center' cellpadding='0' cellspacing='0' bordercolor='#FF6600' bgcolor='#FFFFFF'><tr><td height='38'><table width='"+document.images[0].width+"' border='0' cellspacing='0' cellpadding='0'><tr><td align='center'><font size='2' face='Arial, Helvetica, sans-serif'>"+description+"");
w.document.write("</font></td></tr></table></td></tr></table></td></tr><tr><td><div align='center'><br><font size='2' face='Arial, Helvetica, sans-serif'><a href='javascript:self.close()'>Fermer</a></font></div></td>");
w.document.write("</tr></table></div>");
w.document.write("</BODY></HTML>");
w.document.close();
} 

function image_onmouseover(nomimg) {
	if (nomimg=="annonces"){
		document.annonces_titre.src="images/" + nomimg + "_2.jpg"
	}
	if (nomimg=="annuaire"){
		document.annuaire_titre.src="images/" + nomimg + "_2.jpg"
	}
	if (nomimg=="astuces"){
		document.astuces_titre.src="images/" + nomimg + "_2.jpg"
	}
	if (nomimg=="forum"){
		document.forum_titre.src="images/" + nomimg + "_2.jpg"
	}
	if (nomimg=="news"){
		document.news_titre.src="images/" + nomimg + "_2.jpg"
	}
}
function image_onmouseout(nomimg2) {
	if (nomimg2=="annonces"){
		document.annonces_titre.src="images/" + nomimg2 + "_1.jpg"
	}
	if (nomimg2=="annuaire"){
		document.annuaire_titre.src="images/" + nomimg2 + "_1.jpg"
	}
	if (nomimg2=="astuces"){
		document.astuces_titre.src="images/" + nomimg2 + "_1.jpg"
	}
	if (nomimg2=="forum"){
		document.forum_titre.src="images/" + nomimg2 + "_1.jpg"
	}
	if (nomimg2=="news"){
		document.news_titre.src="images/" + nomimg2 + "_1.jpg"
	}
//document.annonces_titre.src="images/annonces_1.jpg"
///document.annuaire_titre.src="images/annuaire_1.jpg"
//document.astuces_titre.src="images/astuces_1.jpg"
//document.forum_titre.src="images/forum_1.jpg"
//document.news_titre.src="images/news_1.jpg"
}
//-->
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
