var divisione = (document.location.href.indexOf("divisione")!=-1);

function site_header(site_area) {
	var header_string = new String();
	header_string = "";
	header_string += "<div align=\"center\"> \n";
	header_string += "  <table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	header_string += "		<tr>  \n";
	header_string += "			<td width=\"700\" valign=\"top\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" alt=\"afterbit\" width=\"700\" height=\"1\"></td> \n";
	header_string += "		</tr> \n";
	header_string += "		<tr>  \n";
	header_string += "			<td width=\"700\" valign=\"top\"> <table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	header_string += "					<tr>  \n";
	header_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	header_string += "						<td width=\"698\"><table width=\"698\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	header_string += "								<tr>  \n";
	header_string += "									<td width=\"257\" valign=\"top\"><a href=\"" + site_root + "index.aspx\"><img src=\"" + site_root + "images/main_img.jpg\" alt=\"ellepi\" width=\"257\" height=\"137\" border=\"0\"></a></td> \n";
	header_string += "									<td width=\"1\" bgcolor=\"#5F5E5D\"><img src=\"" + site_root + "images/g_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	header_string += "									<td width=\"440\" valign=\"top\"> <table width=\"440\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	header_string += "											<tr>  \n";
	if (divisione) { header_string += "												<td width=\"440\" valign=\"top\"><img src=\"" + site_root + "images/header_divisione.gif\" alt=\"ellepi divisione arredamento\" width=\"440\" height=\"93\"></td> \n"; }
	else           { header_string += "												<td width=\"440\" valign=\"top\"><img src=\"" + site_root + "images/header_ellepi.gif\" alt=\"ellepi divani e poltrone\" width=\"440\" height=\"93\"></td> \n"; };
	header_string += "											</tr> \n";
	header_string += "											<tr>  \n";
	header_string += "												<td width=\"440\" valign=\"top\" background=\"" + site_root + "images/header_bg_bar.gif\"><img src=\"" + site_root + "images/header_bg_bar.gif\" width=\"440\" height=\"5\"></td> \n";
	header_string += "											</tr> \n";
	header_string += "											<tr>  \n";
	header_string += "												<td width=\"440\" valign=\"top\"> \n";
	// menu di navigazione
	header_string += "													<table width=\"440\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	header_string += "														<tr class=\"ver8B\">  \n";
	header_string += "															<td align=\"center\"><a class=\"amainmenu\" href=\"" + site_root + "index.aspx\">::  \n";
	header_string += "																Home</a></td> \n";
	header_string += "															<td width=\"1\" bgcolor=\"#5F5E5D\" valign=\"top\"><img src=\"" + site_root + "images/g_pixel.gif\" width=\"1\" height=\"15\"></td> \n";
	header_string += "															<td align=\"center\"><a class=\"amainmenu\" href=\"" + site_root + "contatti.aspx\">::  \n";
	header_string += "																Contatti</a></td> \n";
	header_string += "															<td width=\"1\" bgcolor=\"#5F5E5D\" valign=\"top\"><img src=\"" + site_root + "images/g_pixel.gif\" width=\"1\" height=\"15\"></td> \n";
	header_string += "															<td align=\"center\"><a class=\"amainmenu\" href=\"" + site_root + "news.aspx\">::  \n";
	header_string += "																News</a></td> \n";
	header_string += "															<td width=\"1\" bgcolor=\"#5F5E5D\" valign=\"top\"><img src=\"" + site_root + "images/g_pixel.gif\" width=\"1\" height=\"15\"></td> \n";
	header_string += "															<td align=\"center\"><a class=\"amainmenu\" href=\"" + site_root + "articoli.aspx\">::  \n";
	header_string += "																Area Prodotti</a></td> \n";
	header_string += "															<td width=\"1\" bgcolor=\"#5F5E5D\" valign=\"top\"><img src=\"" + site_root + "images/g_pixel.gif\" width=\"1\" height=\"15\"></td> \n";
	header_string += "															<td align=\"center\"><a class=\"amainmenu\" href=\"" + site_root + "divisione.aspx\">::  \n";
	header_string += "																Divisione Arredamenti</a></td> \n";
	header_string += "														</tr> \n";
	header_string += "													</table></td>  \n";
	// fine menu
	header_string += "											</tr> \n";
	header_string += "											<tr>  \n";
	header_string += "												<td width=\"440\" valign=\"top\" class=\"ver5B\"><img src=\"" + site_root + "images/w_pixel.gif\" width=\"440\" height=\"7\"></td> \n";
	header_string += "											</tr> \n";
	header_string += "											<tr>  \n";
	header_string += "												<td width=\"440\" valign=\"top\"><img src=\"" + site_root + "images/header_dotted_bar.gif\" width=\"440\" height=\"17\"></td> \n";
	header_string += "											</tr> \n";
	header_string += "										</table></td> \n";
	header_string += "								</tr> \n";
	header_string += "							</table></td> \n";
	header_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	header_string += "					</tr> \n";
	header_string += "				</table></td> \n";
	header_string += "		</tr> \n";
	header_string += "		<tr>  \n";
	header_string += "			<td width=\"700\" valign=\"top\">  \n";
	header_string += "				<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	header_string += "					<tr>  \n";
	header_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	header_string += "						<td width=\"698\" class=\"ver8B\" bgcolor=\"#ffffff\">&nbsp;</td> \n";
	header_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	header_string += "					</tr> \n";
	header_string += "				</table></td> \n";
	header_string += "		</tr> \n";
	header_string += "		<tr>  \n";
	header_string += "			<td width=\"700\" valign=\"top\">  \n";
	header_string += "				<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	header_string += "					<tr>  \n";
	header_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td>  \n";
	header_string += "						<td width=\"698\" class=\"ver8B\" bgcolor=\"#ffffff\"> \n";
	document.writeln(header_string);
};

function site_footer() {
	var footer_string = new String();
	footer_string = "";
	footer_string += "						</td> \n";
	footer_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	footer_string += "					</tr> \n";
	footer_string += "				</table></td>  \n";
	footer_string += "		</tr> \n";
	footer_string += "		<tr>  \n";
	footer_string += "			<td width=\"700\" valign=\"top\"> <table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	footer_string += "					<tr>  \n";
	footer_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	footer_string += "						<td width=\"698\" class=\"ver8B\" bgcolor=\"#ffffff\">&nbsp;</td> \n";
	footer_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	footer_string += "					</tr> \n";
	footer_string += "				</table></td> \n";
	footer_string += "		</tr> \n";
	footer_string += "			<tr>  \n";
	footer_string += "			<td width=\"700\" valign=\"top\"> <table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	footer_string += "					<tr>  \n";
	footer_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	footer_string += "						<td width=\"698\" class=\"ver8B\" bgcolor=\"#ffffff\"><table width=\"698\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	footer_string += "								<tr> \n";
	footer_string += "									<td width=\"698\" valign=\"top\"><img src=\"" + site_root + "images/header_bg_bar.gif\" width=\"698\" height=\"5\"></td> \n";
	footer_string += "								</tr> \n";
	footer_string += "								<tr> \n";
	footer_string += "									<td width=\"698\" valign=\"top\"><table width=\"698\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> \n";
	footer_string += "											<tr align=\"center\" valign=\"top\" class=\"ver7B\">  \n";
	footer_string += "												<td width=\"232\" align=\"left\" valign=\"middle\" class=\"ver8B\"> \n";
	footer_string += "													<div style=\"color:red\">&nbsp;&nbsp;(c) copyright 2003 by Ellepi s.r.l.</div></td> \n";
	footer_string += "												<td width=\"1\" rowspan=\"2\" bgcolor=\"#5F5E5D\"><img src=\"" + site_root + "images/g_pixel.gif\" width=\"1\" height=\"25\"></td> \n";
	footer_string += "												<td width=\"232\" class=\"ver8B\" valign=\"middle\"><span>contatti  \n";
	footer_string += "													: </span><span style=\"color:red\"><em><a href=\"mailto:info@ellepidivani.it\">info@ellepidivani.it</a></em></span></td> \n";
	footer_string += "												<td width=\"1\" rowspan=\"2\" bgcolor=\"#5F5E5D\"><img src=\"" + site_root + "images/g_pixel.gif\" width=\"1\" height=\"25\"></td> \n";
	footer_string += "												<td width=\"232\" class=\"ver8B\" align=\"right\" valign=\"middle\"><div style=\"color:red\"><a href=\"http://www.afterbit.com\" target=\"_blank\">credits  \n";
	footer_string += "														by AfterBit&nbsp;</a>&nbsp;</div></td> \n";
	footer_string += "											</tr> \n";
	footer_string += "											<tr align=\"center\" valign=\"bottom\">  \n";
	footer_string += "												<td width=\"232\" class=\"ver8B\"><img src=\"" + site_root + "images/footer_bg_bar.gif\" width=\"232\" height=\"5\"></td> \n";
	footer_string += "												<td width=\"232\" class=\"ver8B\"><img src=\"" + site_root + "images/footer_bg_bar.gif\" width=\"232\" height=\"5\"></td> \n";
	footer_string += "												<td width=\"232\" class=\"ver8B\"><img src=\"" + site_root + "images/footer_bg_bar.gif\" width=\"232\" height=\"5\"></td> \n";
	footer_string += "											</tr> \n";
	footer_string += "										</table></td> \n";
	footer_string += "								</tr> \n";
	footer_string += "							</table></td> \n";
	footer_string += "						<td width=\"1\" bgcolor=\"#000000\"><img src=\"" + site_root + "images/b_pixel.gif\" width=\"1\" height=\"1\"></td> \n";
	footer_string += "					</tr> \n";
	footer_string += "				</table></td> \n";
	footer_string += "		</tr> \n";
	footer_string += "	</table> \n";
	footer_string += "</div> \n";
document.writeln(footer_string);
};