//altezza area testo link
hauteurcadre = 20;
xmenu = new Array;
xlien = new Array;
xmenuAddr = new Array;
//array menu
xmenu[0] = 'Società';
xmenu[1] = 'Home Page'
xmenu[2] = 'Prodotti';
xmenu[3] = 'Servizi';
xmenu[4] = 'Supporto Tecnico';

//link del menu "root"
xmenuAddr[0]='#';
xmenuAddr[1]='sotto.htm';
xmenuAddr[2]='#';
xmenuAddr[3]='#';
xmenuAddr[4]='sol/supptech.html';


xlien[0] = '' // inizializza sottomenu
xlien[1] = ''
xlien[2] = ''
xlien[3] = ''
xlien[4] = ''

xlien[0] += '<A HREF="sol/societa.html" CLASS=menudyn3>La Storia</A>';
xlien[0] += ' | ';
xlien[0] += '<A HREF="sol/soci.html" CLASS=menudyn3>I Soci</A>';

xlien[2] += '<A HREF="sol/listino.php" CLASS=menudyn3>Hardware & Software</A>';
xlien[2] += ' | '
xlien[2] += '<A HREF="sol/costruzione.html" CLASS=menudyn3>Dispositivi per disabili</A>';
xlien[2] += ' | '
xlien[2] += '<A HREF="sol/costruzione.html" CLASS=menudyn3>Occasioni</A>';

xlien[3] += '<A HREF="http://servizi.tor.it" CLASS=menudyn3 >Connettivit&agrave e Web</A>';
xlien[3] += ' | ';
xlien[3] += '<A HREF="sol/formazione.html" CLASS=menudyn3>Formazione</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="sol/hosthous.html" CLASS=menudyn3>Hosting &amp Housing</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="sol/gestionali.html" CLASS=menudyn3>Supporto gestionali</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="sol/assistenza.html" CLASS=menudyn3>Assistenza</A>';


document.write('<STYLE TYPE="text/css">\nA.menudyn3 {color:#f0f0f0; text-decoration:none;}\nA:hover.menudyn3 {color:#000000;text-decoration:none;}\n</STYLE>');
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+(xlien.length*150)+' BGCOLOR=#ffffff>  <TR><TD><TABLE CELLPADDING=2 CELLSPACING=1 BORDER=0 WIDTH=100%>  <TR>');

for(i=0;i<xmenu.length;i++) {
	if ((i==3) || (i==2) || (i==0)) {
		document.write('<TD BGCOLOR=#ff6600 onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><FONT SIZE=2 FACE="Verdana"><A HREF="javascript:return(false)" onMouseOver="MajMenu('+i+')" CLASS="menudyn3">'+xmenu[i]+'</A></FONT></TD>');
	} else {
		document.write('<TD BGCOLOR=#ff6600 onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><FONT SIZE=2 FACE="Verdana"><A HREF="'+xmenuAddr[i]+'" onMouseOver="MajMenu('+i+')" CLASS="menudyn3">'+xmenu[i]+'</A></FONT></TD>');
	}
}
document.write('</TR><TR><TD COLSPAN='+(xlien.length)+' BGCOLOR=#ff6600 HEIGHT='+hauteurcadre+' VALIGN=top><ilayer id="dynamenu31" width=100% height='+hauteurcadre+'><layer id="dynamenu32" width=100% height='+hauteurcadre+'><div id="dynamenu33">&nbsp;</div></layer></ilayer></TD></TR></TABLE></TD></TR></TABLE>');

function colorIt(tditem) {
	if(document.all) {
		document.all.td0.style.background='#000066';
		document.all.td1.style.background='#000066';
		document.all.td2.style.background='#000066';
		document.all.td3.style.background='#000066';
		document.all.td4.style.background='#000066';
		tditem.style.background='#ff6600';
	} else if(document.getElementById) {
		document.getElementById("td0").style.background='#ff6600';
		document.getElementById("td1").style.background='#ff6600';
		document.getElementById("td2").style.background='#ff6600';
		document.getElementById("td3").style.background='#ff6600';
		document.getElementById("td4").style.background='#ff6600';
		tditem.style.background='#ff6600';
	}
}
function MajMenu(menu)
	{
	which = xlien[menu];
	if (document.layers){
		document.dynamenu31.document.dynamenu32.document.write('<div align="center"><FONT SIZE=2 FACE="Verdana">'+which+'</FONT></div>')
		document.dynamenu31.document.dynamenu32.document.close()
	}
	else if (document.getElementById) {
		document.getElementById("dynamenu33").innerHTML = '<CENTER><FONT SIZE=2 FACE="Verdana"><b>'+which+'</b></FONT></CENTER>';
	} else 	if (document.all) {
		dynamenu33.innerHTML='&nbsp;'
		dynamenu33.innerHTML='<div align="center"><FONT SIZE=2 FACE="Verdana"><b>'+which+'</b></FONT></div>';
	}	
}
if (document.getElementById)
	colorIt(document.getElementById("td0"));
else if (document.all){
	colorIt(document.all.td0);
}
MajMenu(0);

