<!--

	function rollon()
	{
		var e = window.event;

		if (e.srcElement.id == "dc") e.srcElement.id = "hc";
		
		if (e.srcElement.id == "redf") e.srcElement.id = "redb";
		if (e.srcElement.id == "artf") e.srcElement.id = "artb";
		if (e.srcElement.id == "graf") e.srcElement.id = "grab";
		if (e.srcElement.id == "pedf") e.srcElement.id = "pedb";
		if (e.srcElement.id == "pinf") e.srcElement.id = "pinb";
		if (e.srcElement.id == "perf") e.srcElement.id = "perb";
		if (e.srcElement.id == "dowf") e.srcElement.id = "dowb";
		if (e.srcElement.id == "wrif") e.srcElement.id = "wrib";

		if (e.srcElement.id == "t_homf") e.srcElement.id = "t_homb";
		if (e.srcElement.id == "t_redf") e.srcElement.id = "t_redb";
		if (e.srcElement.id == "t_artf") e.srcElement.id = "t_artb";
		if (e.srcElement.id == "t_graf") e.srcElement.id = "t_grab";
		if (e.srcElement.id == "t_pedf") e.srcElement.id = "t_pedb";
		if (e.srcElement.id == "t_pinf") e.srcElement.id = "t_pinb";
		if (e.srcElement.id == "t_perf") e.srcElement.id = "t_perb";
		if (e.srcElement.id == "t_dowf") e.srcElement.id = "t_dowb";					
	}

	document.onmouseover = rollon;

	function rolloff()
	{
		var e = window.event;

		if (e.srcElement.id == "hc") e.srcElement.id = "dc";
			
		if (e.srcElement.id == "redb") e.srcElement.id = "redf";
		if (e.srcElement.id == "artb") e.srcElement.id = "artf";
		if (e.srcElement.id == "grab") e.srcElement.id = "graf";
		if (e.srcElement.id == "pedb") e.srcElement.id = "pedf";
		if (e.srcElement.id == "pinb") e.srcElement.id = "pinf";
		if (e.srcElement.id == "perb") e.srcElement.id = "perf";
		if (e.srcElement.id == "dowb") e.srcElement.id = "dowf";
		if (e.srcElement.id == "wrib") e.srcElement.id = "wrif";

		if (e.srcElement.id == "t_homb") e.srcElement.id = "t_homf";
		if (e.srcElement.id == "t_redb") e.srcElement.id = "t_redf";
		if (e.srcElement.id == "t_artb") e.srcElement.id = "t_artf";
		if (e.srcElement.id == "t_grab") e.srcElement.id = "t_graf";
		if (e.srcElement.id == "t_pedb") e.srcElement.id = "t_pedf";
		if (e.srcElement.id == "t_pinb") e.srcElement.id = "t_pinf";
		if (e.srcElement.id == "t_perb") e.srcElement.id = "t_perf";
		if (e.srcElement.id == "t_dowb") e.srcElement.id = "t_dowf";					
	}

	document.onmouseout = rolloff;

	function linkto(i)
	{
		var links = new Array(
			"home.html",					//0
			"redazione.html",				//1
			"articoli.html",				//2
			"grammatica.html",				//3
			"edite.html",					//4
			"inedite.html",					//5
			"perche.html",					//6
			"downloads.html",				//7
			"mailto:linguaviva@simul.net",			//8
			"http://www.gem.it/p/cantilli/",		//9
			"http://www.accademiadellacrusca.it/",		//10
			"http://www.gem.it/p/deap/",			//11
			"http://www.achyra.org/cruscate");		//12

		window.location.href = links[i];
	}

	var t_buttons = new Array(
		"images/t_homepage.gif",			//0
		"images/t_redazione.gif",			//1
		"images/t_articoli.gif",			//2
		"images/t_grammatica.gif",			//3
		"images/t_edite.gif",				//4
		"images/t_inedite.gif",				//5
		"images/t_perche.gif",				//6
		"images/t_download.gif");			//7

	var classNames = new Array(
		"t_hom",					//0
		"t_red",					//1
		"t_art",					//2
		"t_gra",					//3
		"t_ped",					//4
		"t_pin",					//5
		"t_per",					//6
		"t_dow");					//7

	var names = new Array(
		"t_homepage",					//0
		"t_redazione",					//1
		"t_articoli",					//2
		"t_grammatica",					//3
		"t_edite",					//4
		"t_inedite",					//5
		"t_perche",					//6
		"t_download");					//7

	function build_toolbar(n)
	{
		document.write("<table border='0' cellspacing='0' cellpadding='0' width='100%'>");
		document.write("<tr>");
		for (i = 0; i < t_buttons.length; i++)
		if (i != n)
		{
			document.write("<td height='30' align='center'>");
			document.write("<img id='dc' class='" + classNames[i] + "' name='" +
				names[i] + "' src='" + t_buttons[i] + "' width='100' height='20' ");
			document.write("onclick='linkto(" + i + ");' />");
			document.write("</td>");
		}
		document.write("</tr>");
		document.write("</table>");
	}

	function title(text)
	{
		var title_div = "<div nowrap id='h_art'>" + text + "</div><br />";
		return title_div;
	}

	function sign(text)
	{
		var str = "<div id='sign'>";
		str += "<span id='spn'>" + "&nbsp;" + text + "&nbsp;" + "</span>";
		str += "</div>";
		return str;
	}

	function odep_title(text)
	{
		var title_div = "<div id='odep_title'>" + text + "</div><br />";
		return title_div;
	}

	function odep_sign(text)
	{
		var str = "<div id='odep_sign'>";
		str += "<span id='odep_spn'>" + "&nbsp;" + text + "&nbsp;" + "</span>";
		str += "</div>";
		return str;
	}		

	/*function init()
	{
		var elemDiv = document.getElementById("fixing");
		var clientWidth = document.body.clientWidth;
		var elemDivWidth = elemDiv.offsetWidth;

		elemDiv.style.height = document.body.clientHeight;
		 
		if (clientWidth > 780)
		{
			elemDiv.style.left = (clientWidth - elemDivWidth)/2; 			
			elemDiv.style.borderLeft = "#9a8585 1px solid";
			elemDiv.style.borderRight = "#9a8585 1px solid";
		}
	}

	window.onload = init;*/	

//-->
