// javascript lib for www.camaranghi.it //

function zoom(a,w,h,t){ // link obj. or image url, width, height, title
if (a.blur) a.blur();
var u = (a.href) ? a.href : a;
t = (t) ? t : (a.title) ? a.title : u.substring(u.lastIndexOf('/')+1,u.length);
if (a._zoom && !a._zoom.closed && a._zoom.location) {if (self.focus) a._zoom.focus()} else {
var p = window.open('','','width='+w+',height='+h), u=a.href, h=new Array(
'<html><head><title>'+t+'</title><style type="text/css">body {margin:0}',
'#l {position:absolute; visibility:hidden; margin:4px; padding:3px;',
'background-color:#000000; font-size:11px; font-family:verdana,arial,helvetica,sans-serif;}',
'#l a {display:block; text-decoration:none; color:#eeeeee}</style>',
'<script type="text/javascript">var d = document; function m(b){',
'var s = (d.getElementById) ? d.getElementById("l").style : (d.all) ? d.all["l"].style : (d.layers) ? d.layers["l"] : null',
'if (s) s.visibility = b ? "visible" : "hidden"}</'+'script></head>',
'<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><div id="l">',
'<a onClick="self.close(); return false" onMouseOver="m(true)" href="#">Click per chiudere<br>questa finestra</span></a></div>',
'<a onClick="self.close(); return false" onMouseOver="m(true)" onMouseOut="m(false)" href="'+u+'" style="display:block"',
'title="'+t+'"><img alt="'+t+'" src="'+u+'" width='+w+' height='+h+' border=0></a></body></html>');
with (p.document) {open(); for (var i=0; i<h.length; i++) writeln(h[i]); close()}
p.focus(); if (a.href) a._zoom = p
} return false;
}
