// apertura immagini
<!--

PositionX = 100;
PositionY = 100;
defaultWidth = 660;
defaultHeight = 740;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about :blank','',optNN);}
if (isIE){imgWin=window.open('about :blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');
writeln('if (isIE){');
writeln('window.moveTo(10,10);');
writeln('window.resizeTo(100,100);');
writeln('window.scrollTo(10000,10000);');
writeln('window.resizeBy(document.body.scrollLeft,document.body.scrollTop);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onClick="self.close()">');
writeln('<a href="#"><img name="George" src='+imageURL+' border="0" style="display:block" alt=".:: close ::."></a></body></html>');
close();
}}// validazione per modulo
function checkrequired(which) { 

var pass=true

requiredmail=roccagelli.requiredmail.value; 
 

   if (requiredmail.indexOf("@")==-1) { 
     alert ("Inserisci un'email valida"); 
     return false; 
   } 


if (document.images){

for (i=0;i<which.length;i++){

var tempobj=which.elements[i]

if (tempobj.name.substring(0,8)=="required"){

if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){

pass=false

break

}

}

}

}

if (!pass){

alert("Non hai compilato correttamente il form. Alcune informazioni non sono state inserite. Clicca su OK e verifica l'errore")

return false

}

else

return true
}
function obw(theURL,winName,features)
{window.open(theURL,winName,features);}
//-->

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

// JavaScript Document
<!--//--><![CDATA[//><!--
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;
//--><!]]>










<!-- 
	
function setupDescriptions() {
	var x = navigator.appVersion;
	y = x.substring(0,4);
	if (y>=4) setVariables();
}
var x,y,a,b;
function setVariables(){
	if (navigator.appName == "Netscape") {
		h=".left=";
		v=".top=";
		dS="document.";
		sD="";
	}
	else 
	{
		h=".pixelLeft=";
		v=".pixelTop=";
		dS="";
		sD=".style";
	}
}
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function popLayer(a){
	var texte=a
	//desc = "<table cellpadding=3 border=0 bgcolor=#FECF5B bordercolor=blue><td><font face=verdana color=blue size=1>";
	desc = "<table cellspacing=0 cellpadding=3 border=1 bordercolor=#FFC75E bgcolor=#FFFFFF><td><font face=verdana color=#333 size=1>";
	desc += a;
	desc += "</font></td></table>";

	if(isNav) {
		
		document.object1.document.write(desc);
		document.object1.document.close();
		document.object1.left=x+25;
		document.object1.top=y;
	}
	else {
		object1.innerHTML=desc;
		//object1.style.pixelLeft=x+25;
		//object1.style.pixelTop=y;
		object1.style.pixelLeft=x+25;
		s=document.body.scrollTop;
		object1.style.pixelTop=y+s;		
	}
}
function hideLayer(a){
	
	if(isNav) {
		
		eval(document.object1.top=a);
	}
	else 
	{
	//form1.style.cursor="auto";
	object1.innerHTML="";
	}
}
function handlerMM(e){
	x = (isNav) ? e.pageX : event.clientX;
	y = (isNav) ? e.pageY : event.clientY;
	
	//window.status ='X=' + x + ' Y=' +y;
}
	if (isNav){
		document.captureEvents(Event.MOUSEMOVE);
	
	}
	document.onmousemove = handlerMM;
//-->



function RunFoo() 
{ 
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="400" title="Villa Fibbino" rel="nofollow">\n'); 
    document.write('<param name="movie" value="intro.swf">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<embed src="intro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400">\n');
    document.write('</embed>\n'); 
	document.write('</object>\n'); 
}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
