function init_listaArtisti()
{
	document.getElementById('autori-lista').style.display	= 'none';
	document.getElementById('autori-lista').style.position	= 'absolute';
	document.getElementById('autori-lista').style.top		= '37px';
	document.getElementById('autore-corrente').style.cursor	= 'pointer';
	document.getElementById('autore-corrente').onmouseover	= function() { cambiaBordo('#747474'); };
	document.getElementById('autore-corrente').onmouseout	= function() { cambiaBordo('#cacaca'); };
	document.getElementById('autore-corrente').onclick		= function() { switchLista(); };
}

function pubblicita()
{
	document.write(
		'<div class="cen">'
		+'<s'+'cript language="javascript" src="http://ad.altervista.org/alternet.ad?c=21&f=1&'+new Date().getTime()+'"><\/s'+'cript><br/><br/>'
		+'</div>'
	);
}

function cambiaBordo(colore)
{
	var colore;

	document.getElementById('select-freccia').style.borderColor = colore;
	document.getElementById('select-autore').style.borderColor = colore;
}

function switchLista()
{
	var lista = document.getElementById('autori-lista');

	if(lista.style.display == 'none')
		lista.style.display = '';
	else
		lista.style.display = 'none';
}

function gestoreNuovoArtista()
{
	var lista = document.getElementById('artista');
	var span = document.getElementById('nuovoArtista');
	var txt = document.getElementsByName('nuovoArtista');

	if(lista.options[lista.selectedIndex].value == 'nuovo')
	{
		span.style.display = '';
		txt[0].focus();
	}
	else
		span.style.display = 'none';
}
