
/* la variabile a serve per modificare la distanza dal margine superiore della pagina */



function stopError() { return true;}
window.onerror= stopError;
n  = (document.layers) ? 1:0
ie = (document.all) ? 1:0

var now = new Date()
var iniz=0
var a=142
var xd=0

function Calcleft() {xp=(n)?innerWidth:document.body.offsetWidth; if (xp>780) {xd=(xp-750)/2;}}

function Iniz() {if (ie) {Vaie()} if (n) {Vain()}}
function Ze() {if (ie) {De()} if (n) {Dn()}}


/* queste due stringhe sono da modificare per aggiungere o togliere categorie */

function Dn() {ri=-200;document.cat1.top=ri;document.cat2.top=ri;document.cat3.top=ri;document.cat4.top=ri;document.cat5.top=ri;document.cat6.top=ri;document.cat7.top=ri;document.cat8.top=ri;document.cat9.top=ri;document.cat10.top=ri;}
function De() {ri=-200;cat1.style.top=ri;cat2.style.top=ri;cat3.style.top=ri;cat4.style.top=ri;cat5.style.top=ri;cat6.style.top=ri;cat7.style.top=ri;cat8.style.top=ri;cat9.style.top=ri;cat10.style.top=ri;}

/* fine delle stringhe da modificare */



/* impostazione del tempo di visualizzazione */

function Vain() {now=new Date();if (now-iniz>4000) {Dn()}; setTimeout("Vain()",1);}
function Vaie() {now=new Date();if (now-iniz>4000) {De()} setTimeout("Vaie()",1);}

/* fine impostazione del tempo */



/* CHIAMATA DELLE FUNZIONI PER FAR APPARIRE LE TABELLE */

function Cat1()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=15+a;
	if (n)
		{Dn();document.cat1.left=xd;document.cat1.top=a;}
	if (ie)
		{De();cat1.style.left=xd;cat1.style.top=a;}

	a=142;
	xd=0;
}

function Cat2()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=39+a;
	if (n)
		{Dn();document.cat2.left=xd;document.cat2.top=a;}
	if (ie)
		{De();cat2.style.left=xd;cat2.style.top=a;}

	a=142;
	xd=0;
}

function Cat3()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=63+a;
	if (n)
		{Dn();document.cat3.left=xd;document.cat3.top=a;}
	if (ie)
		{De();cat3.style.left=xd;cat3.style.top=a;}

	a=142;
	xd=0;
}

function Cat4()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=87+a;
	if (n)
		{Dn();document.cat4.left=xd;document.cat4.top=a;}
	if (ie)
		{De();cat4.style.left=xd;cat4.style.top=a;}

	a=142;
	xd=0;
}

function Cat5()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=111+a;
	if (n)
		{Dn();document.cat5.left=xd;document.cat5.top=a;}
	if (ie)
		{De();cat5.style.left=xd;cat5.style.top=a;}

	a=142;
	xd=0;
}

function Cat6()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=135+a;
	if (n)
		{Dn();document.cat6.left=xd;document.cat6.top=a;}
	if (ie)
		{De();cat6.style.left=xd;cat6.style.top=a;}

	a=142;
	xd=0;
}

function Cat7()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=159+a;
	if (n)
		{Dn();document.cat7.left=xd;document.cat7.top=a;}
	if (ie)
		{De();cat7.style.left=xd;cat7.style.top=a;}

	a=142;
	xd=0;
}

function Cat8()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=183+a;
	if (n)
		{Dn();document.cat8.left=xd;document.cat8.top=a;}
	if (ie)
		{De();cat8.style.left=xd;cat8.style.top=a;}

	a=142;
	xd=0;
}

function Cat9()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=207+a;
	if (n)
		{Dn();document.cat9.left=xd;document.cat9.top=a;}
	if (ie)
		{De();cat9.style.left=xd;cat9.style.top=a;}

	a=142;
	xd=0;
}

function Cat10()
{iniz=now.getTime(); Calcleft(); xd=125+xd; a=231+a;
	if (n)
		{Dn();document.cat10.left=xd;document.cat10.top=a;}
	if (ie)
		{De();cat10.style.left=xd;cat10.style.top=a;}

	a=142;
	xd=0;
}

/* FINE CHIAMATA DELLE FUNZIONI */

function Alza() {if (n) {Dn();} if (ie) {De();}}
function Tim() {iniz=now.getTime();}




