function Header()
{
document.write("<center>");
document.write("<table order cellPadding=0 cellSpacing=0 width=100%>");
document.write("<tr>");
document.write("<td align=center>");
document.write("<table order cellPadding=0 cellSpacing=0 width=700>");
document.write("<tr>");
document.write("<td><img order=0 src=headtop.jpg height=90></td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td align=center background=graybar.jpg>");
document.write("<table order cellPadding=0 cellSpacing=0 width=700>");
document.write("<tr>");
document.write("<td width=160><img order=0 src=headleft.jpg width=160 height=25></td>");
document.write("<td align=middle class=menuText>");
document.write("<a href=default.htm class=tdn><b>Home</a></td>");
document.write("<td align=middle class=menuText>");
document.write("<a href=informazioni.htm class=tdn><b>Informazioni</a></td>");
document.write("<td align=middle class=menuText>");
document.write("<a href=magistrati.htm class=tdn><b>Magistrati</a></td>");
document.write("<td align=middle class=menuText>");
document.write("<a href=polizia.htm class=tdn><b>Polizia Giudiziaria</a></td>");
document.write("<td align=middle class=menuText>");
document.write("<a href=carriere.htm class=tdn><b>Carriere</a></td>");
document.write("<td align=middle class=menuText>");
document.write("<a href=linkutili.htm class=tdn><b>Link utili</a></td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td align=center>");
document.write("<table order cellPadding=0 cellSpacing=0 width=700>");
document.write("<tr>");
document.write("<td><img order=0 src=headbottom.jpg width=160></td>");
document.write("<tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
}

function PostIt(nType, szHtml)
{
	switch (nType)
	{
	 case 1:
	 szClass = "notes";

	 szLImg = "notes_l.gif";
	 szTImg = "notes_t.gif";
	 szRImg = "notes_r.gif";
	 szBImg = "notes_b.gif";

	 nTWidth = nBWidth = 180;
	 nTHeight = nBHeight = 32;

	 nLWidth = nRWidth = 10;
	 nLHeight = nRHeight = 15;

	 szBgColor = "#a0c0d0";		// 160, 192, 208
	 break;

	 case 2:
	 szClass = "post-it";

	 szLImg = "postit_l.gif";
	 szTImg = "postit_t.gif";
	 szRImg = "postit_r.gif";
	 szBImg = "postit_b.gif";

	 nTWidth = nBWidth = 180;
	 nTHeight = nBHeight = 32;

	 nLWidth = nRWidth = 10;
	 nLHeight = nRHeight = 15;

	 szBgColor = "#ffff99";
	 break;
	} // switch

document.write("<table order cellPadding=0 cellSpacing=0 height=57 width=" + nTWidth + ">");
document.write("<tr align=left vAlign=top>");
document.write("<td colSpan=3 height=" + nTHeight + ">");
document.write("<img border=0 height=" + nTHeight + " src=images/"+ szTImg +" width=" + nTWidth + ">");
document.write("</td>");
document.write("</tr>");

document.write("<tr align=left vAlign=top>");
document.write("<td background=images/"+ szLImg + " width=" + nLWidth + ">");
document.write("</td>");

	nClientArea = nTWidth - (nLWidth + nRWidth);

document.write("<td bgcolor=" + szBgColor + " class=" + szClass + " width=" + nClientArea + ">");
document.write(szHtml);
document.write("</td>");

document.write("<td background=images/"+ szRImg +" width=" + nRWidth + ">");
document.write("</td>");
document.write("</tr>");

document.write("<tr align=left vAlign=top>");
document.write("<td colSpan=3 height=" + nBHeight + ">");
document.write("<img border=0 height=" + nBHeight + " src=images/"+ szBImg +" width=" + nBWidth + ">");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
}

function BeginPaneTable()
{
document.write("<table order cellspacing=0 cellpadding=0 width=95%>");
document.write("<tr>");
document.write("<td width=15 height=15><img src=images/ulc.jpg></td>");
document.write("<td height=15 background=images/ub.jpg></td>");
document.write("<td width=15 height=15><img src=images/urc.jpg></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=15 background=images/lb.jpg></td>");
document.write("<td>");
document.write("<table class=info width=100% cellspacing=0 cellpadding=0>");
document.write("<tr><td align=middle>");
};

function EndPaneTable(fNoBack)
{
document.write("</td></tr></table>");
document.write("</td>");
document.write("<td height=15 background=images/rb.jpg></td>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=15 height=15><img src=images/dlc.jpg></td>");
document.write("<td height=15 background=images/db.jpg></td>");
document.write("<td width=15 height=15><img src=images/drc.jpg></td>");
document.write("</tr>");
if (!fNoBack)
{
document.write("<tr><td colSpan=3>");
document.write("<div align=right>");
document.write("<a href=\"javascript:history.back(1)\">");
document.write("<font face=verdana size=2 color=white>");
document.write("<b>&laquo; indietro</b>");
document.write("</font></a></div>");
document.write("</td></tr>");
}
document.write("</table>");
}

function BeginGrayPaneTable()
{
document.write("<table order cellspacing=0 cellpadding=0>");
document.write("<tr>");
document.write("<td width=15 height=15><img src=images/g_ulc.jpg></td>");
document.write("<td height=15 background=images/g_ub.jpg></td>");
document.write("<td width=15 height=15><img src=images/g_urc.jpg></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=15 background=images/g_lb.jpg></td>");
document.write("<td>");
document.write("<table width=100% cellspacing=0 cellpadding=0>");
document.write("<tr><td align=middle>");
};

function EndGrayPaneTable()
{
document.write("</td></tr></table>");
document.write("</td>");
document.write("<td height=15 background=images/g_rb.jpg></td>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=15 height=15><img src=images/g_dlc.jpg></td>");
document.write("<td height=15 background=images/g_db.jpg></td>");
document.write("<td width=15 height=15><img src=images/g_drc.jpg></td>");
document.write("</tr>");
document.write("</table>");
}

function BeginMediumPaneTable()
{
document.write("<table order cellspacing=0 cellpadding=0>");
document.write("<tr>");
document.write("<td width=15 height=15><img src=images/m_ulc.jpg></td>");
document.write("<td height=15 background=images/m_ub.jpg></td>");
document.write("<td width=15 height=15><img src=images/m_urc.jpg></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=15 background=images/m_lb.jpg></td>");
document.write("<td>");
document.write("<table width=100% cellspacing=0 cellpadding=0>");
document.write("<tr><td align=middle bgColor=#7d9ecc>");
};

function EndMediumPaneTable()
{
document.write("</td></tr></table>");
document.write("</td>");
document.write("<td height=15 background=images/m_rb.jpg></td>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=15 height=15><img src=images/m_dlc.jpg></td>");
document.write("<td height=15 background=images/m_db.jpg></td>");
document.write("<td width=15 height=15><img src=images/m_drc.jpg></td>");
document.write("</tr>");
document.write("</table>");
}

function BeginLightPaneTable()
{
document.write("<table order cellspacing=0 cellpadding=0>");
document.write("<tr>");
document.write("<td width=15 height=15><img src=images/l_ulc.jpg></td>");
document.write("<td height=15 background=images/l_ub.jpg></td>");
document.write("<td width=15 height=15><img src=images/l_urc.jpg></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=15 background=images/l_lb.jpg></td>");
document.write("<td>");
document.write("<table width=100% cellspacing=0 cellpadding=0>");
document.write("<tr><td align=middle bgColor=#aac4e0>");
};

function EndLightPaneTable()
{
document.write("</td></tr></table>");
document.write("</td>");
document.write("<td height=15 background=images/l_rb.jpg></td>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=15 height=15><img src=images/l_dlc.jpg></td>");
document.write("<td height=15 background=images/l_db.jpg></td>");
document.write("<td width=15 height=15><img src=images/l_drc.jpg></td>");
document.write("</tr>");
document.write("</table>");
}
