
function wrTop() {
	var strTop = '';	
	
	strTop += '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="../img/bk_top.gif">';
    strTop += '<table width="767" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td><a name="top"><img src="../img/top_01.gif" width=767 height=92 alt="" border="0"></a></td></tr></table>';
    strTop += '<table width="767" border="0" cellspacing="0" cellpadding="0" bgcolor="#CC9900" align="center"><tr><td align="center" background="">';
  
   if (sez!="0") {
		 	 if (sez=="home")  	 strTop += '<a href="../index.asp"><img src="../img/but_nav01_off.gif" width="71" height="28" alt="" border="0" name="m1"></a>';
								else strTop += '<a href="../index.asp" onmouseover="show(\'m1\',\'but_nav01_on.gif\');" onmouseout="show(\'m1\',\'but_nav01_off.gif\');"><img src="../img/but_nav01_off.gif" width="71" height="28" alt="" border="0" name="m1"></a>';
		
		     if (sez=="idea")  	 strTop += '<a href="../idea/1.htm"><img src="../img/but_nav02_on.gif" width="71" height="28" alt="" border="0" name="m2"></a>';
								else strTop += '<a href="../idea/1.htm" onmouseover="show(\'m2\',\'but_nav02_on.gif\');" onmouseout="show(\'m2\',\'but_nav02_off.gif\');"><img src="../img/but_nav02_off.gif" alt="" name="m2" id="m2" width="71" height="28" border="0"></a>';
		       
			 if (sez=="viaggio")  	 strTop += '<a href="../viaggio/1.htm"><img src="../img/but_nav03_on.gif" width="91" height="28" alt="" border="0" name="m3"></a>';
								else strTop += '<a href="../viaggio/1.htm" onmouseover="show(\'m3\',\'but_nav03_on.gif\');" onmouseout="show(\'m3\',\'but_nav03_off.gif\');"><img src="../img/but_nav03_off.gif" alt="" name="m3" id="m3" width="91" height="28" border="0"></a>';
								
			if (sez=="profilo")  	 strTop += '<a href="../profilo/1.htm"><img src="../img/but_nav04_on.gif" width="97" height="28" alt="" border="0" name="m4"></a>';
								else strTop += '<a href="../profilo/1.htm" onmouseover="show(\'m4\',\'but_nav04_on.gif\');" onmouseout="show(\'m4\',\'but_nav04_off.gif\');"><img src="../img/but_nav04_off.gif" alt="" name="m4" id="m4" width="97" height="28" border="0"></a>';
								
	}			
	else strTop += '<img src="../img/pix.gif" width="360" height="28" alt="" border="0">';
						
								
	strTop += '<a href="mailto:milano-melbourne@libero.it"><img src="../img/but_nav_mail.gif" alt="" width="111" height="28" hspace="5" border="0"></a>';				
	strTop += '</td></tr></table></td></tr></table>';
        
  document.write(strTop);    
}	


 
  // ------------------------------------------------
 
 
 function wrMenu(){	
	var strMenu = '';
	
	
		strMenu += '<table width="767" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCC99" align="center" background="../img/bk_tab.gif">';
		strMenu += '<tr>';
		strMenu += '	<td><img src="../img/pix.gif" width=15 height=10 alt="" border="0"></td>';
		
		
		strMenu += '	<td class="menu" align="center" valign="top"><img src="../img/pix.gif" width=114 height=30 alt="" border="0"><br>';
				
			if (subSez!='0'){	
					
					 for(var i=1;i<=numEle;i++){
					 	
						if (i==subSez) {
							strMenu += '<img src="img/menu0'+i+'_on.gif" alt="" border="0" name="menu0'+i+'"><br>';
						}
						
						else
						{
							strMenu += '<a href="'+i+'.htm" onmouseover="showHp(\'menu0'+i+'\',\'menu0'+i+'_on.gif\');" onmouseout="showHp(\'menu0'+i+'\',\'menu0'+i+'_off.gif\');">';
							strMenu += '<img src="img/menu0'+i+'_off.gif" alt="" border="0" name="menu0'+i+'"><br>';
							strMenu += '</a>';
						}
					}
			}
			
			else 
			{
			strMenu += '<img src="../img/pix.gif" width=114 height=30 alt="" border="0">';
			
			}
		
		strMenu += '		</td>';
		strMenu += '	<td><img src="../img/pix.gif" width=25 height=10 alt="" border="0"></td>';
		strMenu += '	<td class="content" valign="top"><img src="../img/pix.gif" width=437 height=1 alt="" border="0"><br><br>';
	
	
				
	document.write(strMenu);
}


//-------------------------------------

function wrIpse() {
	var strIpse = '';	
	
	strIpse += '		</td>';
	
	if (ipse=='y'){	
	
	
	strIpse += '	<td><img src="../img/pix.gif" width=25 height=10 alt="" border="0"></td>';
	strIpse += '	<td class="menu" align="center" valign="top"><img src="../img/pix.gif" width=136 height=30 alt="" border="0"><br>';
	strIpse += '			<table width="136" height="170" border="0" cellspacing="0" cellpadding="10">';
	strIpse += '			<tr>';
	strIpse += '				<td background="../img/box_ipse.gif" align="center" class="content"><br>';
	
	}
    
   if (ipse=='n') strIpse += '	<td><img src="../img/pix.gif" width=25 height=10 alt="" border="0"></td>';
				
  document.write(strIpse);    
}	




function wrBot(){	
	var strBot = '';
		
		if (subSez!='0'){	
		
		strBot += '		</td>';
		strBot += '			</tr>';
		strBot += '			</table>';
		strBot += '	</td>';
		strBot += '	<td><img src="../img/pix.gif" width=15 height=10 alt="" border="0"></td>';
		}
		strBot += '</tr>';
		strBot += '</table>';
		
		
		
		strBot += '<table width="514" border="0" cellspacing="0" cellpadding="0" align="center">';
		strBot += '<tr>';
		strBot += '	<td><br><br><br>';
		strBot += '		<a href="#top"><img src="../img/but_top.gif" alt="" width="51" height="10" border="0" align="right"></a><br><br>';
		strBot += '		<img src="../img/lin_h.gif" alt="" width="514" height="1" vspace="10" border="0"><br>';
		strBot += '		<a href="../index.asp" class="bot">home</a> - <a href="'+path+'idea/1.htm" class="bot">l\'idea</a> - <a href="'+path+'viaggio/1.htm" class="bot">il viaggio</a> - <a href="'+path+'profilo/1.htm" class="bot">il profilo</a> - <a href="'+path+'comm/credits.htm" class="bot">credits</a> ';
		strBot += '	</td>';
		strBot += '</tr>';
		strBot += '</table><br><br>&nbsp;';

	document.write(strBot);
 }
