/* mailto en javascript */ 
function nospam( n , d , tld ) {
	window.location = 'mail' + 'to' + ':' + n + '%40' + d + '%2e' + tld;
}

/* popup au premier plan */
var winName='popup';
function popup( url , width , height ) {
	features='scrollbars=yes,resizable=yes,top=0,left=0,width=' + width + ',height=' + height;
	var w=window.open(url,winName,features);
	w.document.close();
	w.focus();
	return false;
}

function openimage( img , width , height , titre , auteur) { 
  // Compatible IE5+ / NN6+ / Mozilla
  oFenetre = window.open('','Image','width='+width+',height='+height+',toolbar=no,scrollbars=no,resizable=yes');
  oFenetre.document.write("<html><head><title>"+titre+"</title><style type=\"text/css\"><!-- body { background-color:#000; } //--></style></head>"); 
  oFenetre.document.write("<script type=\"text/javascript\">function twAjustePopUp() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+60); window.focus();} else { setTimeout('twAjustePopUp()',1000) } }</"+"script>");
  oFenetre.document.write("<body onload='twAjustePopUp()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>"); 
  oFenetre.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><tr><td valign='middle' align='center'>"); 
  oFenetre.document.write("<img src='"+img+"' border='0' alt='"+auteur+"' title='"+auteur+"'>");
  oFenetre.document.write("</td></tr></table></body></html>"); 
  oFenetre.document.close(); 
}
