ver = navigator.appVersion.substring(0,1)
var strHtml = '';
var navi;
var HIDDEN;
var VISIBLE;
var cache;
var strHtml;
//
//   visualizza ingranaggio di attesa
//
function loading(sito){
	strHtml = "";
	//if (ver >= 4){
		strHtml = strHtml + '<DIV align="center" ID="cacheH">';
		strHtml = strHtml + '<BR><B>Elaborazione remota in corso ...</B><BR><BR>';
		strHtml = strHtml + '</DIV>';
		document.write(strHtml);
		navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);
		HIDDEN = (navi) ? 'hide' : 'hidden';
		VISIBLE = (navi) ? 'show' : 'visible';
		cache =  document.getElementById("cacheH").style;
		if (screen.availWidth<=800){
			cache.width= "620px";
			cache.height= "440px";
		}
		else if(cache){
			cache.width= "817px";
			cache.height= "626px";
		}
		cache.top="0px";
		cache.left="0px";
	//}
}

function cacheOff(){
	//if (ver >= 4){
	if(cache){
		cache.top="-10000px";
		cache.left="-10000px";
		cache.display = "none";
	}
}

function cacheOn(){
	//if (ver >= 4){
		cache.top="0px";
		cache.left="0px";
		cache.display = "";
	//}
}
//
//   visualizzo ingranaggio
//
loading("H");
//When the page will be fully loaded, the message will be hidden

