function PageTop()
{
	menu = 0;

	for (i = 0; i < PageTop.arguments.length; i++)
	{
	 if (PageTop.arguments[i] == 'homepage')
	 { menu = 0xff; break; }

	 if (PageTop.arguments[i] == 'home')
	 { menu |= 0x01; }
	 else
	 if (PageTop.arguments[i] == 'back')
	 { menu |= 0x02; }
	}

document.write("<table order width='100%' cellpadding=0 cellspacing=0>");
document.write("<tr>");
document.write("	<td height=140 background='images/head_fill.jpg'>");
document.write("	&nbsp;</td>");

document.write("	<td width=780>");
document.write("	<table order width='100%' cellpadding=0 cellspacing=0>");
document.write("	<tr>");
document.write("		<td width=260 height=140>");
document.write("		<img src='images/head1.jpg'></td>");

document.write("		<td>");
document.write("		<table order cellspacing=0 cellpadding=0>");
document.write("		<tr>");
document.write("			<td width=520 height=80>");
document.write("			<img src='images/head2.jpg'></td>");
document.write("		</tr>");
		
document.write("		<tr>");
document.write("			<td width=520 height=20 class=sottomenu>");
if (menu == 0xff)
{
 document.write("			<img src='images/redbox.jpg'>&nbsp;<a href='societa.htm'>la società</a>");
 //document.write("			<img src='images/redbox.jpg'>&nbsp;<a href='assistenza.htm'>assistenza</a>");
}
else
{
 if (menu & 0x01)
 { document.write("			<img src='images/redbox.jpg'>&nbsp;<a href='default.htm'>homepage</a>"); }
 
 if (menu & 0x02) 
 { document.write("			<img src='images/redbox.jpg'>&nbsp;<a href='javascript:history.back(1)'>indietro</a>"); }
}
document.write("			</td>");
document.write("		</tr>");
		
document.write("		<tr>");
document.write("			<td width=520 height=40>");
document.write("			<img src='images/head3.jpg'></td>");
document.write("		</tr>");
document.write("		</table>");
document.write("		</td>");
document.write("	</tr>");
document.write("	</table>");
document.write("	</td>");
	
document.write("	<td height=140 background='images/head_fill.jpg'>");
document.write("	&nbsp;</td>");
document.write("</tr>");
document.write("</table>");

document.write("<table order width='100%' cellpadding=0 cellspacing=0>");
document.write("<tr>");
document.write("	<td>&nbsp;</td>");

document.write("	<td width=780>");
document.write("	<table order width='100%' cellpadding=0 cellspacing=0>");
document.write("	<tr>");
document.write("		<td>");

						PanelTop("width=100%", "align=middle");
}

function PageBottom()
{
//document.write("		&nbsp;");

						PanelClose();

document.write("		</td>");
document.write("	</tr>");
document.write("	</table>");
document.write("	</td>");
	
document.write("	<td>&nbsp;</td>");
document.write("</tr>");
document.write("</table>");

document.write("&nbsp;");
}

function PageTitle(strTitle)
{
    if (PageTitle.arguments.length == 0)
    {}
    else
    {
document.write("<table order width=700 cellpadding=0 cellspacing=0>");
document.write("<tr>");
document.write("    <td>");
document.write("    <div class=pageTitle>");
document.write(strTitle);
document.write("    </div>");
document.write("    <hr width=660 size=1 color=#d0d0d0 />");
document.write("	</td>");
document.write("</tr>");
document.write("</table>");

//document.write("&nbsp;");
    }
}


function PageContentTop()
{
document.write("<table order width=700 cellpadding=0 cellspacing=0>");
document.write("<tr>");
document.write("    <td class=pageContent>");
}

function PageContentBottom()
{
document.write("	</td>");
document.write("</tr>");
document.write("</table>");
}
