
/*
funzione apertura popup,
copyrights: Erik Henchoz - info@webnetstudio.it
vietato l'uso non autorizzato dello script
*/


function PrevFotov(imgv){
foto1v= new Image();
foto1v.src=(imgv);
Controllafotov(imgv);
}

function Controllafotov(imgv){
if((foto1v.width!=0)&&(foto1v.height!=0)){
vediFotov(imgv);
}
else{
funzionev="Controllafotov('"+imgv+"')";
intervallov=setTimeout(funzionev,20);
}
}

function vediFotov(imgv){
larghv=foto1v.width;
altezv=foto1v.height;
LeftPositionv = (screen.width) ? (screen.width-larghv)/2 : 0; 
TopPositionv = (screen.height) ? (screen.height-altezv)/2 : 0; 


	newWindow = window.open("","newWindow","width="+larghv+",height="+altezv+",left="+LeftPositionv+",top="+TopPositionv);
	newWindow.document.open();
	newWindow.document.write('<html><head><meta http-equiv="content-type" content="text/html;charset=iso-8859-1"><title>UIGPF.ORG</title>'); 
	
	newWindow.document.write('<style type="text/css" media="screen"><!--.opacity25{ filter:alpha(opacity=75); -moz-opacity:.75; opacity:.25;}}--></style></head>'); 
	newWindow.document.write('<style type="text/css" media="screen"><!--#livello { position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; visibility: visible; display: block }--></style></head>'); 
	newWindow.document.write('<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF"  onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<div id="livellov"><table width='+larghv+' border="0" cellspacing="0" cellpadding="0" align="center" height='+altezv+' ><tr><td valign="bottom" background='+imgv+'>');
	
	newWindow.document.write('</td></tr></table></div></body></html>');
	newWindow.document.close();
	newWindow.focus();




}

