
<!--
var type = "IE";	//Variable used to hold the browser name

BrowserSniffer();

//detects the capabilities of the browser
function BrowserSniffer() {
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";		//Opera
	else if (document.all) type="IE";														//Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="NN";													//Netscape Communicator 4
	else if (!document.all && document.getElementById) type="MO";							//Mozila e.g. Netscape 6 upwards
	else type = "IE";		//I assume it will not get here
}

//Displays the generic browser type
function whatBrows() {
	window.alert("Browser is : " + type);
}

//Puts the contents of str into the layer id
//id is the name of the layer
//str is the required content
//Works with all browsers except Opera
function ChangeContent(id, str) {
	if (type=="IE") {
		document.all[id].innerHTML = str;
	}
	if (type=="NN") {
		document.layers[id].document.open();
		document.layers[id].document.write(str);
		document.layers[id].document.close();
	}
	if (type=="MO" || type=="OP") {
		document.getElementById(id).innerHTML = str;
	}
}

//Change the color of the layer background
//id is the name of the layer
//color is the required color
//Works with all browsers except NN4
function ChangeLayerBgColor(id, color){
	if (type=="IE") document.all[id].style.backgroundColor=color;
	if (type=="NN") document.layer['id'].bgColor=color;
	if (type=="MO" || type=="OP") document.getElementById(id).style.backgroundColor=color;
}
//Show and hide a layer
//id is the name of the layer
//action is either hidden or visible
//Seems to work with all versions NN4 plus other browsers
function ShowLayer(id, action){
	if (type=="IE") eval("document.all." + id + ".style.visibility='" + action + "'");
	if (type=="NN") eval("document." + id + ".visibility='" + action + "'");
	if (type=="MO" || type=="OP") eval("document.getElementById('" + id + "').style.visibility='" + action + "'");
}


//-->


<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

<!-- #BeginEditable "head" -->

<!--
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; }
}
//-->

<!-- #EndEditable -->

piaNorm = new Image; piaNorm.src = "../../../immagini/clipart/pianta.gif";
piaEvide = new Image; piaEvide.src = "../../../immagini/clipart/pianta1.gif";
fogNorm = new Image; fogNorm.src = "../../../immagini/clipart/foglia1.gif";
fogEvide = new Image; fogEvide.src = "../../../immagini/clipart/foglia2.gif";
fruNorm = new Image; fruNorm.src = "../../../immagini/clipart/frutto1.gif";
fruEvide = new Image; fruEvide.src = "../../../immagini/clipart/frutto2.gif";
corNorm = new Image; corNorm.src = "../../../immagini/clipart/tronco1.gif";
corEvide = new Image; corEvide.src = "../../../immagini/clipart/tronco2.gif";
gemNorm = new Image; gemNorm.src = "../../../immagini/clipart/gemma1.gif";
gemEvide = new Image; gemEvide.src = "../../../immagini/clipart/gemma2.gif";
fioNorm = new Image; fioNorm.src = "../../../immagini/clipart/fiore1.gif";
fioEvide = new Image; fioEvide.src = "../../../immagini/clipart/fiore2.gif";
semNorm = new Image; semNorm.src = "../../../immagini/clipart/seme.gif";
semEvide = new Image; semEvide.src = "../../../immagini/clipart/seme1.gif";
insettiNorm = new Image; insettiNorm.src = "../../../immagini/clipart/insetto.jpg";
insettiEvide = new Image; insettiEvide.src = "../../../immagini/clipart/insetto1.jpg";
epifiteNorm = new Image; epifiteNorm.src = "../../../immagini/clipart/epifite.jpg";
epifiteEvide = new Image; epifiteEvide.src = "../../../immagini/clipart/epifite1.jpg";

function MyMouseOverRoutine(icona)
{
if (icona=="pianta")
{document.pianta.src = piaEvide.src;}
if (icona=="foglia")
{document.foglia.src = fogEvide.src;}
if (icona=="frutto")
{document.frutto.src = fruEvide.src;}
if (icona=="tronco")
{document.tronco.src = corEvide.src;}
if (icona=="gemma")
{document.gemma.src = gemEvide.src;}
if (icona=="fiore")
{document.fiore.src = fioEvide.src;}
if (icona=="seme")
{document.seme.src = semEvide.src;}
if (icona=="insetti")
{document.insetti.src = insettiEvide.src;}
if (icona=="epifite")
{document.epifite.src = epifiteEvide.src;}
}

function MyMouseOutRoutine(icona)
{
if (icona=="pianta")
{document.pianta.src = piaNorm.src;}
if (icona=="foglia")
{document.foglia.src = fogNorm.src;}
if (icona=="frutto")
{document.frutto.src = fruNorm.src;}
if (icona=="tronco")
{document.tronco.src = corNorm.src;}
if (icona=="gemma")
{document.gemma.src = gemNorm.src;}
if (icona=="fiore")
{document.fiore.src = fioNorm.src;}
if (icona=="seme")
{document.seme.src = semNorm.src;}
if (icona=="insetti")
{document.insetti.src = insettiNorm.src;}
if (icona=="epifite")
{document.epifite.src = epifiteNorm.src;}
}

<!-- torna indietro di 1 passo //-->
function NextPage() {
  history.back(1);
}

<!-- x evidenziare le celle di una tabella ("td") al passaggio del mouse //-->

var celle = document.getElementsByTagName('TD');
for (var i = 0; i < celle.length; i++) {
	celle[i].onmouseover = function() {
		this.className += ' hilite';
	}
	celle[i].onmouseout = function() {
		this.className = this.className.replace('hilite', '');
	}
}


function AreaProtetta(form) { 
location = LoginForm.password.value + ".htm";
}

