function random_imglink(){
var myimages=new Array();
var myimagesp=new Array();
myimagesp[1]="immagini/homepage/p_007michelle.jpg";


myimages[1]="immagini/homepage/007michelle.jpg";


var ry=Math.floor(Math.random()*myimages.length);
if (ry==0) { ry=1; }
document.write('<a href="javascript:foto(\''+myimages[ry]+'\',\'\');" title="Clicca sulla foto per ingrandirla"><img src="'+myimagesp[ry]+'" border=0 /></a>');
}

	timeout =20;
	function foto(URL,dida) {
	windowprops = "scrollbars=no,resizable=no,top=5,width=50,height=50";
	text = "<html><head><script src='/ext/tastodestro.js' type='text/javascript'></script>";
	text+='<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">';
	text+="function ridim(){";
	text+="var lar = document.images['immfoto'].width;";
	text+="var alt = document.images['immfoto'].height;";
	text+="self.resizeTo(lar+13,alt+36);";
	text+="}";
	text+="</SCRIPT>"

	text += "<title>FOTO</title></head><body leftmargin='1' topmargin='2' bgcolor='D4D4D4'";
	
	if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
	text += "><center><img name='immfoto' onLoad='ridim()' src='" + URL + "'><br />";
	
	text += dida+"</center> </body></html>";

	preview = window.open("", "preview", windowprops);
	preview.resizeTo((80),(80));
	preview.focus();
	preview.document.open();
	preview.document.write(text);
	preview.document.close();
	}
	
