function wrTop(){	
	var strTop = '';
		

	
		strTop += '<table cellpadding="0" cellspacing="0" border="0" width="759">';
		if(ns4){
			strTop += '<tr><td colspan="4" valign="top"><img src="'+path+'img/barra_top.gif" alt="" width="759" height="26" border="0" name="holdspace" id="holdspace"></td></tr>';
		}else{
			strTop += '<tr><td colspan="4" valign="top"><img src="'+path+'img/barra_top.gif" alt="" width="759" height="26" border="0" name="holdspace" id="holdspace" style="position:relative;left:0px;"></td></tr>';
		}
		strTop += '<tr><td><a href="'+path+'home.htm"><img src="'+path+'img/logo.gif" alt="HOME" width="165" height="95" border="0"></a></td>';
	
	if(curPage=="learning"){
	
		strTop += '<td><a href="'+path+'elearning/index.htm"><img src="'+path+'img/foto_learning_on.jpg" width="197" height="95" alt="" border="0" name="learning"></a></td>';
		strTop += '<td><a href="'+path+'training/index.jsp" onmouseover="show(\'training\',\'foto_training_on.jpg\');show(\'txttraining\',\'training_on.gif\'); show(\'mess\',\'mess_training.gif\');" onmouseout="show(\'training\',\'foto_training_off.jpg\');show(\'txttraining\',\'training_off.gif\'); show(\'mess\',\'mess_learning.gif\');"><img src="'+path+'img/foto_training_off.jpg" width="197" height="95" alt="" border="0" name="training"></a></td>';
		strTop += '<td><a href="'+path+'consulenza/index.htm" onmouseover="show(\'consulenza\',\'foto_consulenza_on.jpg\');show(\'txtconsulenza\',\'consulenza_on.gif\'); show(\'mess\',\'mess_consulenza.gif\');" onmouseout="show(\'consulenza\',\'foto_consulenza_off.jpg\');show(\'txtconsulenza\',\'consulenza_off.gif\'); show(\'mess\',\'mess_learning.gif\');"><img src="'+path+'img/foto_consulenza_off.jpg" width="200" height="95" alt="" border="0" name="consulenza"></a></td>';
		strTop += '</tr>';
		strTop += '<tr>';
		strTop += '	<td><img src="'+path+'img/logo_bot.gif" width="165" height="20" alt="" border="0"></td>';
		strTop += '	<td><img src="'+path+'img/learning_on.gif" alt="" width="197" height="20" border="0" name="txtlearning"></td>';
		strTop += '	<td><img src="'+path+'img/training_off.gif" width="197" height="20" alt="" border="0" name="txttraining"></td>';
		strTop += '	<td><img src="'+path+'img/consulenza_off.gif" width="200" height="20" alt="" border="0" name="txtconsulenza"></td>';
	
	}
	
	else if(curPage=="training"){
		strTop += '<td><a href="'+path+'elearning/index.htm" onmouseover="show(\'learning\',\'foto_learning_on.jpg\');show(\'txtlearning\',\'learning_on.gif\'); show(\'mess\',\'mess_learning.gif\');" onmouseout="show(\'learning\',\'foto_learning_off.jpg\');show(\'txtlearning\',\'learning_off.gif\'); show(\'mess\',\'mess_training.gif\');"><img src="'+path+'img/foto_learning_off.jpg" width="197" height="95" alt="" border="0" name="learning"></a></td>';
		strTop += '<td><a href="'+path+'training/index.jsp"><img src="'+path+'img/foto_training_on.jpg" width="197" height="95" alt="" border="0" name="training"></a></td>';
		strTop += '<td><a href="'+path+'consulenza/index.htm" onmouseover="show(\'consulenza\',\'foto_consulenza_on.jpg\');show(\'txtconsulenza\',\'consulenza_on.gif\'); show(\'mess\',\'mess_consulenza.gif\');" onmouseout="show(\'consulenza\',\'foto_consulenza_off.jpg\');show(\'txtconsulenza\',\'consulenza_off.gif\'); show(\'mess\',\'mess_training.gif\');"><img src="'+path+'img/foto_consulenza_off.jpg" width="200" height="95" alt="" border="0" name="consulenza"></a></td>';
		strTop += '</tr>';
		strTop += '<tr>';
		strTop += '	<td><img src="'+path+'img/logo_bot.gif" width="165" height="20" alt="" border="0"></td>';
		strTop += '	<td><img src="'+path+'img/learning_off.gif" alt="" width="197" height="20" border="0" name="txtlearning"></td>';
		strTop += '	<td><img src="'+path+'img/training_on.gif" width="197" height="20" alt="" border="0" name="txttraining"></td>';
		strTop += '	<td><img src="'+path+'img/consulenza_off.gif" width="200" height="20" alt="" border="0" name="txtconsulenza"></td>';
		
	
	}
	
	else if(curPage=="consulenza"){
		strTop += '<td><a href="'+path+'elearning/index.htm" onmouseover="show(\'learning\',\'foto_learning_on.jpg\');show(\'txtlearning\',\'learning_on.gif\'); show(\'mess\',\'mess_learning.gif\');" onmouseout="show(\'learning\',\'foto_learning_off.jpg\');show(\'txtlearning\',\'learning_off.gif\'); show(\'mess\',\'mess_consulenza.gif\');"><img src="'+path+'img/foto_learning_off.jpg" width="197" height="95" alt="" border="0" name="learning"></a></td>';
		strTop += '<td><a href="'+path+'training/index.jsp" onmouseover="show(\'training\',\'foto_training_on.jpg\');show(\'txttraining\',\'training_on.gif\'); show(\'mess\',\'mess_training.gif\');" onmouseout="show(\'training\',\'foto_training_off.jpg\');show(\'txttraining\',\'training_off.gif\'); show(\'mess\',\'mess_consulenza.gif\');"><img src="'+path+'img/foto_training_off.jpg" width="197" height="95" alt="" border="0" name="training"></a></td>';
		strTop += '<td><a href="'+path+'consulenza/index.htm"><img src="'+path+'img/foto_consulenza_on.jpg" width="200" height="95" alt="" border="0" name="consulenza"></a></td>';
		strTop += '</tr>';
		strTop += '<tr>';
		strTop += '	<td><img src="'+path+'img/logo_bot.gif" width="165" height="20" alt="" border="0"></td>';
		strTop += '	<td><img src="'+path+'img/learning_off.gif" alt="" width="197" height="20" border="0" name="txtlearning"></td>';
		strTop += '	<td><img src="'+path+'img/training_off.gif" width="197" height="20" alt="" border="0" name="txttraining"></td>';
		strTop += '	<td><img src="'+path+'img/consulenza_on.gif" width="200" height="20" alt="" border="0" name="txtconsulenza"></td>';
	}
	else{
	
		strTop += '	<td><a href="'+path+'elearning/index.htm" onmouseover="show(\'txtlearning\',\'learning_on.gif\'); show(\'mess\',\'mess_learning.gif\');" onmouseout="show(\'txtlearning\',\'learning_off.gif\');  show(\'mess\',\'mess.gif\');"><img src="'+path+'img/foto_learning_on.jpg" width="197" height="95" alt="" border="0" name="learning"></a></td>';
		strTop += '	<td><a href="'+path+'training/index.jsp" onmouseover="show(\'txttraining\',\'training_on.gif\'); show(\'mess\',\'mess_training.gif\');" onmouseout="show(\'txttraining\',\'training_off.gif\'); show(\'mess\',\'mess.gif\');"><img src="'+path+'img/foto_training_on.jpg" width="197" height="95" alt="" border="0" name="training"></a></td>';
		strTop += '	<td><a href="'+path+'consulenza/index.htm" onmouseover="show(\'txtconsulenza\',\'consulenza_on.gif\'); show(\'mess\',\'mess_consulenza.gif\');" onmouseout="show(\'txtconsulenza\',\'consulenza_off.gif\'); show(\'mess\',\'mess.gif\');"><img src="'+path+'img/foto_consulenza_on.jpg" width="200" height="95" alt="" border="0" name="consulenza"></a></td>';
	
		strTop += '</tr>';
		strTop += '<tr>';
		strTop += '	<td><img src="'+path+'img/logo_bot.gif" width="165" height="20" alt="" border="0"></td>';
		strTop += '	<td><img src="'+path+'img/learning_off.gif" alt="" width="197" height="20" border="0" name="txtlearning"></td>';
		strTop += '	<td><img src="'+path+'img/training_off.gif" width="197" height="20" alt="" border="0" name="txttraining"></td>';
		strTop += '	<td><img src="'+path+'img/consulenza_off.gif" width="200" height="20" alt="" border="0" name="txtconsulenza"></td>';
	}
		strTop += '</tr></table>';

	document.write(strTop);
 }
 
 
 var curEl = ""; 

 function wrMenu(){

	 var strMenu =' ';
	// inizio tabella menu
	 strMenu +=' <table cellpadding="0" cellspacing="0" border="0" width="759">';
	 strMenu +='     <tr> ';
	 strMenu +='       <td background="'+path+'img/bk_sx.gif" width="6"><img src="'+path+'img/pix.gif" width="6" height="1" border="0"></td>';
	 strMenu +='       <td width="160" background="'+path+'img/bk_login.gif" valign="top"> ';
	  
	 strMenu +=' <table cellpadding="0" cellspacing="0" width="158" border="0" background="'+path+'img/bk_blu.gif">';
 
 for(i=0;i<aryMenu.length;i++){
 curEl = aryMenu[i].split("|");

 
 	/*if(curPage == ""){
		strMenu +='<tr><td valign="top"><a href="'+path+'com/'+curEl[1]+'" onMouseOver="javascript:show(\'menu_'+curEl[0]+'\',\'menu_left_'+curEl[0]+'_over.gif\')" onMouseOut="javascript:show(\'menu_'+curEl[0]+'\',\'menu_left_'+curEl[0]+'.gif\')"><img src="'+path+'img/menu_left_'+curEl[0]+'.gif" width="158" height="18" alt="" border="0" name="menu_'+curEl[0]+'"></a><br></td></tr>';
	}else {*/
		if(curPage != curEl[0]){
			strMenu +='<tr><td valign="top"><a href="'+path+'com/'+curEl[1]+'" onMouseOver="javascript:show(\'menu_'+curEl[0]+'\',\'menu_left_'+curEl[0]+'_over.gif\')" onMouseOut="javascript:show(\'menu_'+curEl[0]+'\',\'menu_left_'+curEl[0]+'.gif\')"><img src="'+path+'img/menu_left_'+curEl[0]+'.gif" width="158" height="18" alt="" border="0" name="menu_'+curEl[0]+'"></a><br></td></tr>';
		}else {
 			strMenu +='<tr><td valign="top"><img src="'+path+'img/menu_left_'+curEl[0]+'_over.gif" width="158" height="18" alt="" border="0" name="menu_'+curEl[0]+'"><br></td></tr>';
 		}
			
	//}
 }
 	 strMenu +='<tr><td bgcolor="#A6B2CA">';
//	 strMenu +='<img src="'+path+'img/menu_left_login.gif" width="158" height="18" alt="" border="0"><br><form action="" name="form_dati" id="form_dati"><table cellpadding="0" cellspacing="0" width="145" border="0" bgcolor="#A6B2CA"><tr><td rowspan="6"><img src="'+path+'img/pix.gif" width="5" height="10" border="0"></td><td colspan="2"><img src="'+path+'img/pix.gif" width="1" height="5" border="0"></td></tr><tr><td colspan="2" class="testo">Entra nell\'area protetta per accedere alla documentazione PTS</td></tr><tr><td><input type="text" name="users" value="USER" size="10" maxlength="40" style="font-size: 11px; font-family: Arial, Helvetica, sans-serif; width: 100px; background-color : #FFFFFF;"></td><td><img src="'+path+'img/pix.gif" alt="" width="1" height="1" hspace="5" border="0" align="middle"></td></tr><tr><td colspan="2"><img src="'+path+'img/pix.gif" width="1" height="5" border="0"></td></tr><tr> <td><input type="text" name="psw" value="PASSWORD" size="10" maxlength="40" style="font-size: 11px; font-family: Arial, Helvetica, sans-serif; width: 100px; background-color : #FFFFFF;"></td><td><a href="'+path+'ris/download.htm"><img src="'+path+'img/go_blu.gif" alt="" width="20" height="9" hspace="5" border="0" align="middle"></a></td></tr><tr><td colspan="2"><img src="'+path+'img/pix.gif" width="1" height="5" border="0"></td></tr></table></form>';
	 strMenu +=' <table cellpadding="0" cellspacing="0" width="158" border="0" bgcolor="#B7B7B7" background="'+path+'img/bk_grigio.gif"><tr> <td align="center" valign="top"> <img src="img/pix.gif" width="1" height="4" border="0"><br><table cellpadding="0" cellspacing="0" width="145" border="0" bgcolor="#B7B7B7"><tr><td class="testoblu" width="120"><b><a href="'+path+'contattaci.htm">CONTATTACI</a></b></td><td width="25"><a href="contattaci.htm"><img src="'+path+'img/frecce_contattaci.gif" alt="" width="11" height="9" hspace="3" border="0" align="middle"></a></td></tr><tr><td colspan="2"><img src="img/pix.gif" width="1" height="5" border="0"></td></tr></table></td></tr></table>';
	 strMenu +='</td></tr>';
	 strMenu +='</table>';
 
 
  strMenu +='</td>';
  //immagine colorata intestazione
  if(curPage=="learning"){
	 strMenu +='<td width="588" valign="top"><img src="'+path+'img/mess_learning.gif" width="590" height="18" alt="" border="0" name="mess"><br> ';
  }
  else if(curPage=="training"){
	 strMenu +='<td width="588" valign="top"><img src="'+path+'img/mess_training.gif" width="590" height="18" alt="" border="0" name="mess"><br> ';
  }
  else if(curPage=="consulenza"){
	 strMenu +='<td width="588" valign="top"><img src="'+path+'img/mess_consulenza.gif" width="590" height="18" alt="" border="0" name="mess"><br> ';
  }
  else{
 	strMenu +='<td width="588" valign="top"><img src="'+path+'img/mess.gif" width="590" height="18" alt="" border="0" name="mess"><br> ';
  }
 
 document.write(strMenu) ;
 }
 
 

function wrBot(){	
	var strBot = '';

	strBot += '	     </td>';
	strBot += '      <td width="5" background="'+path+'img/pix_b.gif"><img src="'+path+'img/pix.gif" width="5" height="1" border="0"></td>';
	strBot += '    </tr>';
	strBot += '  </table>';
	strBot += '<table cellpadding="0" cellspacing="0" border="0" width="759" background="'+path+'img/bot.gif">';
	strBot += '<tr>';
		if(curPage==""){
						
			strBot += '  <td align="center" class="testogiallo"><a href="'+path+'com/chi.htm" class="testogiallo">Chi siamo</a>&nbsp;-&nbsp;<a href="'+path+'businesspartner.htm" class="testogiallo">Business Partners</a>&nbsp;-&nbsp;<a href="'+path+'metodo/index.htm" class="testogiallo">Metodologie</a>&nbsp;-&nbsp;<a href="'+path+'com/eventi.jsp" class="testogiallo">Eventi</a>&nbsp;-&nbsp;<a href="'+path+'com/clienti.htm" class="testogiallo">Esperienze lavorative</a>&nbsp;-&nbsp;<a href="'+path+'com/dicono.htm" class="testogiallo">Dicono di noi</a>&nbsp;-&nbsp;<a href="'+path+'com/lavora.htm" class="testogiallo">Lavora con noi</a>&nbsp;-&nbsp;<a href="'+path+'com/approfondimenti.htm" class="testogiallo">Approfondimenti</a>&nbsp;-&nbsp;<a href="'+path+'com/forum.jsp" class="testogiallo">Forum</a>&nbsp;-&nbsp;<a href="'+path+'notelegali.htm" class="testogiallo">Note legali</a></td>';
		}else{
			
			strBot += '  <td align="center" class="testogiallo"><a href="'+path+'com/chi.htm" class="testogiallo">Chi siamo</a>&nbsp;-&nbsp;<a href="'+path+'businesspartner.htm" class="testogiallo">Business Partners</a>&nbsp;-&nbsp;<a href="'+path+'metodo/index.htm" class="testogiallo">Metodologie</a>&nbsp;-&nbsp;<a href="'+path+'com/eventi.jsp" class="testogiallo">Eventi</a>&nbsp;-&nbsp;<a href="'+path+'com/clienti.htm" class="testogiallo">Esperienze lavorative</a>&nbsp;-&nbsp;<a href="'+path+'com/dicono.htm" class="testogiallo">Dicono di noi</a>&nbsp;-&nbsp;<a href="'+path+'com/lavora.htm" class="testogiallo">Lavora con noi</a>&nbsp;-&nbsp;<a href="'+path+'com/approfondimenti.htm" class="testogiallo">Approfondimenti</a>&nbsp;-&nbsp;<a href="'+path+'com/forum.jsp" class="testogiallo">Forum</a>&nbsp;-&nbsp;<a href="'+path+'notelegali.htm" class="testogiallo">Note legali</a></td>';
		
		}
	strBot += '	 <td valign="top"><img src="'+path+'img/pix.gif" width="10" height="21" alt="" border="0"></td>';
	strBot += '</tr>';
	strBot += '</table>';
	
	document.write(strBot);
 }















