//
function apri(theURL,winName,Bwidth,Bheight,Btitle) {
 
 	if (theURL.indexOf('.')<0) theURL="images/"+theURL+".jpg";
	else theURL=theURL="images/"+theURL;
 	xpos=(screen.availWidth - parseFloat(Bwidth))/2;
 	ypos=(screen.availHeight - parseFloat(Bheight))/2; 
 	features="width="+Bwidth+",height="+Bheight+",top="+ypos+",left="+xpos+";"
  
	w=window.open("", winName,features);
	w.resizeTo(Bwidth+90,Bheight+109);
	w.focus();
	
   	var bio=w.document;
   	bio.write("<html><head><base href=\"http://www.mustrumu.it/\" /><title> www.mustrumu.it - Dettaglio Foto</title>");//Attenzione alla base!
	//bio.write("<style type='text/css'>");
   	//bio.write("img {border: 1px solid #666666;}");
	//bio.write("</style></head>");
   	bio.write("<body bgcolor='#ffffff'><table width='100%' height='100%'><tr><td>");

   	bio.write("<div align='center'>");
	bio.write("<img src='http://www.mustrumu.it/"+theURL+"' width='"+Bwidth+"' height='"+Bheight+"'>"); 	
   	bio.write("</div></td></tr></table></body></html>");
  	bio.close()

}


//Powered by Softery.com
//Ver: 3//
function FlashSolver()
	{
	n=navigator;
	nav=n.appVersion.toLowerCase();
	if ((nav.indexOf('win')!=-1) || (nav.indexOf('nt')!=-1)) 
		{
		if (navigator.appName == "Microsoft Internet Explorer")
			{
			var tmpObject = document.getElementsByTagName('object');
			if (tmpObject && tmpObject.length) 
				{
				for (var i = 0; i < tmpObject.length; i++) 
					{
					if (tmpObject[i].getAttribute('classid').toLowerCase() == 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000') 
						{
						var ps = tmpObject[i].getElementsByTagName('param');
						if (ps && ps != null)
							{
							for (var j = 0; j < ps.length; j++) 
								{
								if (ps[j].getAttribute('name').toLowerCase() == 'flashvars') 
									{
									var variables = ps[j].getAttribute('value');
									break;
									}
								}
							}
						var obj = tmpObject[i].outerHTML + "\n";
						obj = obj.replace(/FLASHVARS" VALUE=""/i,'FLASHVARS" value="'+variables+'"');
						tmpObject[i].outerHTML = obj;
						}
					}
				tmpObject = null;
				}
			}
		}
	}
window.onunload = function()
	{
	n=navigator;
	nav=n.appVersion.toLowerCase();
	if ((nav.indexOf('win')!=-1) || (nav.indexOf('nt')!=-1)) 
		{
		if (navigator.appName == "Microsoft Internet Explorer")
			{
			if (document.getElementsByTagName) 
				{
				var tmpObject = document.getElementsByTagName("object"); 
				for (i=0; i<tmpObject.length; i++)
					{
					tmpObject[i].outerHTML = ""; 
					}
				}
			}
		}
	}
