function preloadImages() {
  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 fini(nome,w,h,stringa) {
wn=80+parseInt(w);
hn=120+parseInt(h);
	
if (hn>550) {
    hn=550;
}	
if (wn>750) {
    wn=750;
}
w=String(wn);
h=String(hn);

mywin=window.open("", "Image", "resizable=yes,toolbar=no,directories=no,menubar=no,scrollbars=yes,width="+w+",height="+h);
mywin.document.writeln("<HTML><HEAD><TITLE>"+stringa+"</TITLE>");
mywin.document.writeln("</HEAD><BODY>");

mywin.document.writeln("<style>");
mywin.document.writeln("<!--");
mywin.document.writeln("BODY,P,SPAN,DIV,A {font-family:arial,verdana,helvetica,sans-serif}");
mywin.document.writeln("span.titolo {font-size:35px;font-weight:bold;font-style:italic;color='#ffffff'}");
mywin.document.writeln("span.ombra {font-size:35px;font-weight:bold;font-style:italic;color='#000000'}");
mywin.document.writeln("//--> ");
mywin.document.writeln("</style>");

mywin.document.writeln("<body bgcolor='#003066'>");
mywin.document.writeln("<div id='titolo' style='position:absolute; width:314px; height:54px; z-index:2; left: 74px; top: 38px'><span class='titolo'>"+stringa+"</span></div>");
mywin.document.writeln("<div id='ombra' style='position:absolute; width:314px; height:54px; z-index:1; left: 77px; top: 41px'><span class='ombra'>"+stringa+"</span></div>");

mywin.document.writeln("<table><tr><td align='center'>");
mywin.document.writeln("<table cellspacing='0' cellpadding='15'><tr><td align='center' bgcolor='#FFFFFF'>");
mywin.document.writeln("<table cellspacing='0' cellpadding='3'><tr><td align='center' bgcolor='#000000'>");
mywin.document.writeln("<img src='"+nome+"' border='0' alt=''>");
mywin.document.writeln("</td></tr></table>");
mywin.document.writeln("</td></tr></table>");
mywin.document.writeln("<input type='button' onClick='self.close()' value='Chiudi finestra'>");
mywin.document.writeln("</td></tr>");
mywin.document.writeln("</table>");

mywin.document.writeln("</BODY></HTML>");
mywin.document.close();
mywin.focus();
}

function fin(nome,w,h,stringa) {
wn=80+parseInt(w);
hn=120+parseInt(h);
	
if (hn>550) {
    hn=550;
}	
if (wn>750) {
    wn=750;
}
w=String(wn);
h=String(hn);

mywin=window.open("", "Image", "resizable=yes,toolbar=no,directories=no,menubar=no,scrollbars=yes,width="+w+",height="+h);
mywin.document.writeln("<HTML><HEAD><TITLE>"+stringa+"</TITLE>");
mywin.document.writeln("</HEAD><BODY>");

mywin.document.writeln("<style>");
mywin.document.writeln("<!--");
mywin.document.writeln("BODY,P,SPAN,DIV,A {font-family:arial,verdana,helvetica,sans-serif}");
mywin.document.writeln("span.titolo {font-size:35px;font-weight:bold;font-style:italic;color='#ffffff'}");
mywin.document.writeln("span.ombra {font-size:35px;font-weight:bold;font-style:italic;color='#000000'}");
mywin.document.writeln("//--> ");
mywin.document.writeln("</style>");

mywin.document.writeln("<body bgcolor='#003066'>");
mywin.document.writeln("<div id='titolo' style='position:absolute; width:314px; height:54px; z-index:2; left: 74px; top: 38px'><span class='titolo'>"+stringa+"</span></div>");
mywin.document.writeln("<div id='ombra' style='position:absolute; width:314px; height:54px; z-index:1; left: 77px; top: 41px'><span class='ombra'>"+stringa+"</span></div>");

mywin.document.writeln("<table><tr><td align='center'>");
mywin.document.writeln("<table cellspacing='0' cellpadding='15'><tr><td align='center' bgcolor='#FFFFFF'>");
mywin.document.writeln("<table cellspacing='0' cellpadding='3'><tr><td align='center' bgcolor='#000000'>");
mywin.document.writeln("<img src='"+nome+"' border='0' alt=''>");
mywin.document.writeln("</td></tr></table>");
mywin.document.writeln("</td></tr></table>");
mywin.document.writeln("<input type='button' onClick='self.close()' value='Close window'>");
mywin.document.writeln("</td></tr>");
mywin.document.writeln("</table>");

mywin.document.writeln("</BODY></HTML>");
mywin.document.close();
mywin.focus();
}
