// JavaScript Document
// $Id: lib.js,v 1.5 2005/10/12 20:40:08 Sylvain Exp $
function nouvelle_fenetre(img,titre) {
w=open("",'image','width=640,height=480,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();
}

function nouvelle_fenetre2(image) {
window.open(image,'','toolbar=no,status=no,scrollbars=yes,width=430,height=180');
//agrandie.focus()
}

function caract(image) {
window.open(image,'','toolbar=no,status=no,scrollbars=yes,width=835,height=435');
//agrandie.focus()
}

function grande_fenetre(image) {
window.open(image,'','toolbar=no,status=no,scrollbars=yes,width=840,height=690');
//agrandie.focus()
}

function grande_roll(image) {
window.open(image,'','toolbar=no,status=no,scrollbars=yes,width=840,height=610');
//agrandie.focus()
}
