// JavaScript Document

var mouseX, mouseY;
var altezzaPagina;
var stopEvidenziatore;

function aggiungiOnLoad(nuovaFunzione)
{    
    if (!document.getElementById || !document.createTextNode){return;}
    var oldonload = window.onload;
    if (typeof window.onload != 'function'){
        window.onload = nuovaFunzione;
    } else {
        window.onload = function(){
        oldonload();
        nuovaFunzione();
        }
    }
}


function prendiOggetto(id) {
	var object = null;
	if( document.layers ) {   
    	object = document.layers[id];
	} else if( document.all ) {
    	object = document.all[id];
	} else if( document.getElementById ) {
    	object = document.getElementById(id);
   	}
   	return object;
}


function modificaStile(valore, qualeDiv, qualeStile){
    var ilDiv = document.getElementById(qualeDiv);
    var nuovoValore = parseInt(valore);
	ilDiv.style[qualeStile]= nuovoValore +"px";
}

function trovaHPagina() {
	var y;
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight;
	if (test1 > test2) {						
		y = document.body.scrollHeight;
	} else {
		y = document.body.offsetHeight;
	}
	return y+60;
}


