temp = '<script language="vbscript"\> \n'
temp += '<!--\n'
temp += 'Sub pulsanti_FSCommand(ByVal cmd, ByVal arg) \n'
temp += 'call pulsanti_DoFSCommand(cmd, arg) \n'
temp += 'end sub \n'
temp += '-->\n'
temp += '</script\> \n'
document.write(temp);
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var ZoomCounter = 0;
var zoomLevel = 0;
var InternetExplorer = navigator.appName.indexOf( "Microsoft" ) != -1; 
function pulsanti_DoFSCommand( cmd, arg ) {
	var obj = InternetExplorer ? window.mappa : window.document.mappa;
	if (cmd == "ZoomIn") {
		if (zoomLevel < 2) {
			zoomLevel ++;
			obj.Zoom(60);
		}
	} else if (cmd == "ZoomOut") {
		if (zoomLevel > 0) {
			zoomLevel--;
			obj.Zoom(200);
		}
	}	
}
function Is () { 
    var agt = navigator.userAgent.toLowerCase()
    this.major = stringToNumber(navigator.appVersion)
    this.minor = parseFloat(navigator.appVersion)
    this.nav = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1)))
    this.nav2 = (this.nav && (this.major == 2))
    this.nav3 = (this.nav && (this.major == 3))
    this.nav4 = (this.nav && (this.major == 4))
	this.nav5 =	(this.nav && (this.major == 5))
	this.nav6 = (this.nav && (this.major == 5))
	this.gecko = (this.nav && (this.major >= 5))
    this.ie   = (agt.indexOf("msie") != -1)
    this.ie3  = (this.ie && (this.major == 2))
    this.ie4  = (this.ie && (this.major == 3))
    this.ie5  = (this.ie && (this.major == 4))
    this.opera = (agt.indexOf("opera") != -1)
    this.nav4up = this.nav && (this.major >= 4)
    this.ie4up  = this.ie  && (this.major >= 4)
}
function stringToNumber(s) {
   return parseInt(('0' + s), 10)
}
var is = new Is();
function getElt() {
	if ( is.nav4 ) {
		var currentLayer = document.layers[getElt.arguments[0]];
		for ( var i=1; i<getElt.arguments.length && currentLayer; i++ ) {
			currentLayer = currentLayer.document.layers[getElt.arguments[i]];
		}
		return currentLayer;
	} else if ( document.getElementById && document.getElementsByName ) { 
		var name = getElt.arguments[getElt.arguments.length-1];
		if ( document.getElementById( name ) ) {
			return document.getElementById( name );
		} else if ( document.getElementsByName( name ) ) {
			return document.getElementsByName(name)[0];
		}
	} else if ( is.ie4up ) {
		var elt = eval( 'document.all.' + getElt.arguments[getElt.arguments.length - 1] );
		return(elt);
	}
}
function setEltLeft( elt, x ) {
	if ( is.nav4 ) {
		elt.left=x;
	} else if ( is.ie4up ) {
		elt.style.pixelLeft = x;
	} else if ( is.gecko ) {
		elt.style.left = (x + "px");
	}
}
function setEltTop( elt, y ) {
	if ( is.nav4 ) {
		elt.top = y;
	} else if ( is.ie4up ) {
		elt.style.pixelTop = y;
	} else if ( is.gecko ) {
		elt.style.top = (y + "px");
	}
}
function getEltHeight( elt ) {
	if ( is.nav4 ) {
		if (elt.document.height) {
			return elt.document.height;
		} else {
			return elt.clip.bottom - elt.clip.top;
		}
	}
	if ( is.ie4up ) {
		if (elt.style.pixelHeight) {
			return elt.style.pixelHeight;
		} else {
			return elt.clientHeight;
		}
	}
	if ( is.gecko ) {
		if ( elt.style.height ) {
			return stringToNumber( elt.style.height );
		} else {
			return stringToNumber( elt.offsetHeight );
		}
	}
	return - 1;
}
function getWindowXOffset() {
	if ( is.nav4 ) {
		return window.pageXOffset;
	} else if ( is.ie4up ) {
		return document.body.scrollLeft;
	} else if ( is.gecko ) {
		return window.pageXOffset;
	}
}
function getWindowYOffset() {
	if ( is.nav4 ) {
		return window.pageYOffset;
	} else if ( is.ie4up ) {
		return document.body.scrollTop;
	} else if ( is.gecko ) {
		return window.pageYOffset;
	}
}
function pageOffset( eltName, left, top ) {
	if ( pageOffset.arguments.length < 2 ) {
		left = false;
	}
	if ( pageOffset.arguments.length < 3 ) {
		top = false;
	}
	var elt = getElt( eltName );
	if ( elt ) {
		if ( left !== false ) {
			setEltLeft( elt, getWindowXOffset() + left );
		}
		if ( top !== false ) {
			setEltTop( elt, getWindowYOffset() + top );
		}
	    setTimeout( 'pageOffset( "' + eltName + '",' + left + ',' + top + ' )', 10 );
	}
}
function getCurrentWinWidth() {
	if ( is.ie4up ) {
		return document.body.clientWidth;
	}
	if ( is.gecko || is.nav4 ) {
		if ( self.scrollbars.visible ) {
			return window.innerWidth - 18;
		} else {
			return window.innerWidth;
		}
	}
}
function getCurrentWinHeight() {
	if ( is.nav4 ) {
		return window.innerHeight;
	} else if ( is.ie4up ) {
		return document.body.clientHeight;
	} else if ( is.gecko ) {
		return window.innerHeight;
	}
}
function scegliSentiero( selectObject ) {
	if ( selectObject.value != 0 ) {
		location = selectObject.value + ".html";
	}
}
function scegliPercorso( selectObject ) {
	if ( selectObject.value != 0 ) {
		location = selectObject.value + ".html";
	}
}
function piedeOffset() {
	var piede = getElt( "piede" );
	setEltTop( piede, getWindowYOffset() + getCurrentWinHeight() - getEltHeight( piede ) );
	setTimeout( "piedeOffset()", 10 );
}
function modulo() {
	window.open( "modulo.html", "modulo", "width=510,height=570,scrollbars=1" );
}
function checkRegistrati() {
	extra3 = '';
	document.registrati.extra3[0].value = 1;
	document.registrati.extra3[1].value = 0;
	for ( i = 0; i < document.registrati.extra3.length; i++ ) {
		if ( document.registrati.extra3[i].checked ) {
			extra3 = document.registrati.extra3[i].value;
			break;
		}
	}
	if (	document.registrati.extra2.checked == true
			&& extra3 != 1 ) {
		alert( "Per ricevere materiale informativo via e-mail è necessario \n acconsentire al trattamento dei dati personali" );
		return false;
	} else {
		for ( i = 0; i < document.registrati.extra3.length; i++ ) {
			if ( ! document.registrati.extra3[i].checked ) {
				document.registrati.extra3[i].disabled = false;
			}
		}
	}
	if ( document.registrati.shortDescription.value == '' ) {
		alert( "Inserire nome e cognome" );
		return false;
	}
	if ( document.registrati.address.value == '' ) {
		alert( "Inserire l'indirizzo" );
		return false;
	}
}

function spedisci( email ) {
	location = "mailto:" + email.replace( "[presso]", "@" );
}