ie4=(document.all)?true:false;
ns6=(document.getElementById)?true:false;

function Misure(){
	if (ns6 && !ie4) {
		window.pageYOffset=0;
		//divMenu.top=0;
		document.getElementById("menu1").height = 875;
		document.getElementById("dati").height = 875;
		moveRightEdge();
	}
	else {
		document.body.scrollTop=0;
		//divMenu.style.top=0;
		var hd=document.getElementById("dati").contentWindow.document.body.scrollHeight+10;
		if (hd<875) hd=875;
		document.getElementById("dati").style.height = hd;
		document.getElementById("menu1").height = hd;
		//parent.document.InizioPagina.Vai.focus();
	}
}

//---------------------------------------------------------------------------------

var dir = "grafica/"
var space = dir + "space.gif"

function Orologio() {
	var Data = new Date()
	var Ore = Data.getHours();
	Ore = (Ore == "0") ? "0" : Ore
	Ore = (Ore < 10) ? "0" + Ore : Ore + ""
	var Minuti = Data.getMinutes();
	Minuti = (Minuti < 10) ? "0" + Minuti : Minuti + ""
if (ie4) {
		document.all["primo"].src = (Ore.charAt(0)=="0") ? space : LedOn(Ore.charAt(0))
                document.all["secondo"].src = LedOn(Ore.charAt(1))
                document.all["terzo"].src = (Data.getSeconds() % 2) ? LedOn("-on") : LedOn("-off")
                document.all["quarto"].src = LedOn(Minuti.charAt(0))
                document.all["quinto"].src = LedOn(Minuti.charAt(1))
}
else if (ns6 && !ie4) {
		document.getElementById("primo").src = (Ore.charAt(0)=="0") ? space : LedOn(Ore.charAt(0))
                document.getElementById("secondo").src = LedOn(Ore.charAt(1))
                document.getElementById("terzo").src = (Data.getSeconds() % 2) ? LedOn("-on") : LedOn("-off")
                document.getElementById("quarto").src = LedOn(Minuti.charAt(0))
                document.getElementById("quinto").src = LedOn(Minuti.charAt(1))
}
	setTimeout("Orologio()",1000)
}

function LedOn(x) {
        return dir + "num" + x + ".gif"
}

//---------------------------------------------------------------------------------

function apri(pag1,pag2) {
	parent.menu2.location.href=pag1;
	parent.dati.location.href=pag2;
}

//---------------------------------------------------------------------------------

