ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false
	ns6 = (document.getElementById)? true:false
function mostra(nome){
		if (ie4){
			document.all[nome].style.visibility = "visible";
			}
		else if (ns4){
			document.layers[nome].visibility = "visible";
			}
		}
function nascondi(nome){
	if (ie4){
		document.all[nome].style.visibility ="hidden";
		}
	else if (ns4){
		document.layers[nome].visibility = "hidden";
		}
	}
function nuovafinestracartina(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=580,height=700,status=no,location=no,toolbar=no');
		}
function nuovafinestra(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=450,height=350,status=no,location=no,toolbar=no');
		}
function nuovafinestranew(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=520,height=460,status=no,location=no,toolbar=no');
}
function nuovafinestranew8(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=650,height=500,status=no,location=no,toolbar=no');
		}
function nuovafinestraor(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=590,height=250,status=no,location=no,toolbar=no');
		}
function nuovafinestranew1(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=580,height=380,status=no,location=no,toolbar=no');
		}
function nuovafinestraver1(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=420,height=500,status=no,location=no,toolbar=no');
		}
function nuovafinestraver(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=380,height=520,status=no,location=no,toolbar=no');
		}
function nuovafinestraver2(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=380,height=560,status=no,location=no,toolbar=no');
		}
function nuovafinestratrullo(str,name) {
	searchWin = window.open(str,name,'scrollbars=no,resizable=no,width=730,height=680,status=no,location=no,toolbar=no');
		}
var Step = 2;

var Tempo = 80;

var nn = document.layers?true:false;
var N6 = navigator.userAgent.toLowerCase().indexOf("gecko")!=-1?true:false;
var LayText=null;
var AltezzaLivello=0;
var LarghezzaLivello=0;
var Limite =0;
var texTop=0;
var DeltaTop = 0;
var timsc=null;

function Start()
	{
	LayText=nn?document.layers.textLayer:N6?document.getElementById("textLayer").style:document.all.textLayer.style;
	DeltaTop=nn?LayText.top:N6?document.getElementById("textLayer").offsetTop:document.all.textLayer.offsetTop;
	AltezzaLivello=parseInt(nn?LayText.clip.height:N6?LayText.height:LayText.height);
	LarghezzaLivello=parseInt(nn?LayText.clip.width:N6?LayText.width:LayText.width);
	Limite=-AltezzaLivello+(nn?LayText.document.height:N6?document.getElementById("divN6").offsetHeight:document.all.textLayer.clientHeight);
	}

function Move(where)
	{
	where?texTop>=Limite?null:texTop+=Step:texTop==0?null:texTop-=Step;
	LayText.top=-texTop+DeltaTop;
	if (nn)
		{
		LayText.clip.top=texTop;
		LayText.clip.bottom=eval(texTop+AltezzaLivello);
		}
		else
		LayText.clip = "rect(" + texTop + ", " + LarghezzaLivello + ", " +eval(texTop+AltezzaLivello) + ", 0)";
	}

function StartScroll(updown){timsc=setInterval(updown?"Move(true)":"Move(false)",Tempo);}
	
function StopScroll(){clearInterval(timsc);}

 
	
