function Sezione(pNome, pHref, pTgt, pSubSez){	this.nome = pNome;	this.href = pHref;	this.target = pTgt;	this.subSez = pSubSez;}//Lista delle sottosezionivar vecSubSez1 = new Array(						   new Sezione("Informazioni", "genmain.shtml", null, null), 						   new Sezione("Materiale vario", "genvario.shtml", null, null), 						   new Sezione("Compiti d'esame A,B,C,D,E", "gencompitiABCDE.shtml", null, null),						   new Sezione("Vecchi compiti A,B,C", "gencompitiABC.shtml", null, null),						   new Sezione("Vecchi compiti D,E", "gencompitiDE.shtml", null, null)						   );//Lista delle sezioni di tutte le areevar vecSezioniA1 = new Array(				  		     new Sezione("", "", null, null), 				  		     new Sezione("Home Page <i>Math On Line</i>", "index.shtml", null, null), 				  		     new Sezione("", "", null, null), 				  		     new Sezione("Corso di Algebra Lineare", "linalg.shtml", null, null), 				  		     new Sezione("", "", null, null), 						     new Sezione("Matematica Generale", "genmain.shtml", null, vecSubSez1),						     new Sezione("Teoria delle Decisioni", "decisioni.shtml", null, null),						     new Sezione("Metodi Computazionali", "computazionali.shtml", null, null),						     new Sezione("Calcolo Simbolico", "simbolico.shtml", null, null)							 );//Lista delle areevar Aree = new Array(					 new Sezione("Math On Line", "#", null, vecSezioniA1)					 );					 					 					 					 function stampaPath(){	if (numArea > 0 && Aree[numArea - 1] != null && Aree[numArea - 1].subSez != null)	{		strPath = Aree[numArea - 1].nome;		if (numSez > 0)		{			var link1 = '';			var link2 = '';			if (numSubSez > 0)			{				var tgt = '';				if (Aree[numArea - 1].subSez[numSez - 1].target != null)					tgt = ' target="' + Aree[numArea - 1].subSez[numSez - 1].target + '"';									link1 = '<a href="' + Aree[numArea - 1].subSez[numSez - 1].href + '" ' + tgt + ' class="pathStyle">';				link2 = '</a>';			}						strPath += " > " + link1 + Aree[numArea - 1].subSez[numSez - 1].nome + link2;			if (numSubSez > 0)							strPath += " > " + Aree[numArea - 1].subSez[numSez - 1].subSez[numSubSez - 1].nome;		}				document.writeln(strPath);	}}function makeMenu(){  //ricerco la lista delle sezioni associate all'area  if (numArea > 0)  {	  document.writeln('<table width="150" border="0" cellspacing="0" cellpadding="0" class="menuStyle">');	  document.writeln('<tr> ');	  document.writeln('  <td><img src="images/sfondo_bianco.gif" width="10" height="1"></td>');	  document.writeln('  <td><img src="images/sfondo_bianco.gif" width="140" height="1"></td>');	  document.writeln('</tr>');    	  var vecSezioni = eval("vecSezioniA" + numArea);	  for (var i = 0; i < vecSezioni.length; i++)	  {  		document.writeln('<tr>');		if (i == 0)			document.writeln('  <td rowspan="123"><img src="images/spacer.gif" width="10" height="10"></td>');			var strLink1 = '<font color="#333333">';		var strLink2 = '</font>';			if (i != numSez - 1 || numSubSez != 0)		{			var tgt = '';			if (vecSezioni[i].target != null)				tgt = ' target="' + vecSezioni[i].target + '"';			strLink1 = '<a href="' + vecSezioni[i].href + '" ' + tgt + ' class="menuStyle">';			strLink2 = '</a>';			}			document.writeln('  <td background="images/fondogrigio2.gif" bgcolor="#939393" class="menuStyle">&nbsp;' + strLink1 + '<b>' + vecSezioni[i].nome + '</b>' + strLink2 + '</td></tr><tr><td><img src="images/sfondo_grigio.gif" width="140" height="1"></td>');		document.writeln('</tr>');			//controllo se ci sono eventuali sotto sezioni		if (i == numSez - 1 && vecSezioni[i].subSez != null)		{			for (var j = 0; j < vecSezioni[i].subSez.length; j++)			{						if (j != 0)				{					document.writeln('<tr>');					document.writeln('	<td><img src="images/sfondo_grigio.gif" width="140" height="1"></td>');					document.writeln('</tr>');				}				strLink1 = '<font color="#333333">';				strLink2 = '</font>';				if (j != numSubSez - 1)				{					var tgt = '';					if (vecSezioni[i].subSez[j].target != null)						tgt = ' target="' + vecSezioni[i].subSez[j].target + '"';									strLink1 = '<a href="' + vecSezioni[i].subSez[j].href + '" ' + tgt + ' class="menuStyle">';					strLink2 = '</a>';						}							document.writeln('<tr>');				document.writeln('    <td background="images/fondogrigio.gif" bgcolor="#AEAEAE" class="menuStyle"><img src="images/quadratino_bianco.gif" width="13" height="7">' + strLink1 + vecSezioni[i].subSez[j].nome + strLink2 + '</td>');				document.writeln('</tr>');			}		}	  }      	document.writeln('</table>');  }}
