//quotations changing functions
//based on dynlite dhtml api
var cit = new Array();
cit[0] = new Array('Nel mondo nulla di grande è stato fatto senza passione.<br>','George W. Friedrich Hegel');
cit[1] = new Array('Esercitare liberamente  il proprio ingegno, ecco la felicità.','Aristotele');
cit[2] = new Array('Ciò che fa l\'originalità di un uomo è che egli vede una cosa che tutti gli altri non vedono.','Friedrich Nietzsche');
cit[3] = new Array('Una cosa stimabile non può essere apprezzata degnamente se non da quelli che ne conoscono il valore.','Giacomo Leopardi');

var numActive = -1;
//content changing function
function cont(text)
{	if(ns4)
	{	 citObj.document.open()
		 citObj.document.write(text);
		 citObj.document.close()
	}
	else citObj.innerHTML = text;
}	

function changeCitate()
{	if(numActive==cit.length-1) numActive = 0;
	else numActive++;
	var citStr = cit[numActive][0]+'<span class="supsmall">['+cit[numActive][1]+']</span>';
	cont(citStr);
	setTimeout('changeCitate()',10000);
}
function initCitate()
{	citObj = (ns4)? document.content.document.citate : document.getElementById('citate');
	changeCitate();
}
