// ************************************************************************
// At WebData - Version 1.3.3.0 - POPUP_IMAGE.JS
// ************************************************************************
// Conception & Programmation : At ss2i - http://www.at-ssii.com
// Copyright © 1998-2004 : At services - http://www.at-services.ch
// ************************************************************************
// Dernières modifications : 25-09-2004 16:46
// ************************************************************************
// POPUP IMAGE AVEC REDIMENSION AUTOMATIQUE
// ************************************************************************
// <a href="javascript:popupimage('***fu13***');">
// ************************************************************************
// http://www.commentcamarche.net/javascript/jswindow.php3
// directories = yes/no Affiche ou non les boutons de navigation 
// location = yes/no Affiche ou non la barre d'adresse 
// menubar = yes/no Affiche ou non la barre de menu (fichier, edition, ...) 
// resizable = yes/no Définit si la taille de la fenêtre est modifiable ou non 
// scrollbars = yes/no Affiche ou non les ascenceurs (barres de défilement) 
// status = yes/no Affiche ou non la barre d'état 
// toolbar = yes/no Affiche ou non la barre d'outils 
// width = largeur (en pixels) Définit la largeur 
// height = hauteur (en pixels) Définit la hauteur 

function popupimage(chemin)
{	
	var html;
	html = '<HTML>\n'
	+ '<HEAD>\n'
	+ '<TITLE>D&eacute;tail de la photo</TITLE>\n'
	+ '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n'
	+ '<link rel="stylesheet" href="/charte/style.css" type="text/css">\n'
	//+ '<script language="JavaScript">\n'
	//+ 'function clique() { if (event.button==2) { alert(\'Tous droits réservés.\\n\\nRenseignements :\\nn.fontanel@tuningcenter.com\'); } }\n'
	//+ 'document.onmousedown=clique\n'
	//+ '</script>\n'
	+ '</HEAD>\n'
	+ '<BODY onLoad="window.focus();window.resizeTo(document.imageTest.width+35,document.imageTest.height+58);" bgcolor="#FFFFFF" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">\n'
	+ '<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">\n'
	+ '<tr><td align="center" valign="middle">'
	//+ '<img class="popup" src="'+chemin+'" border="0" name="imageTest">'
	+ '<img src="'+chemin+'" border="0" name="imageTest"></td></tr>\n'
	+ '</table>\n'
	+ '</BODY>\n'
	+ '</HTML>'
	
	var popup;
	popup = window.open('','popupgo','left=100,top=200,width=10,height=10,directories=no,location=no,menuBar=no,resizable=no,scrollbars=no,status=no,toolbar=no');
	//popup.document.open();
	popup.document.write(html);
	popup.document.close();
}

/*<script language="JavaScript">
<!--
function PopupImage(img) {
	titre="D&eacute;tail de la photo";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');	
	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+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}
//-->
</script>*/