
function chgTDBg(oObj, sColor)
{	if (IE4 || DOM) 
	{	//IE4	
		oObj.style.backgroundColor = sColor;
	}
  	else if (NS4) 
	{	//NS 4	
		oObj.bgColor = sColor;
	}
}

function chgTextColor(oObj, sColor)
{	if (IE4 || DOM) 
	{	//IE4	
		oObj.style.color = sColor;
	}
  	else if (NS4) 
	{	//NS 4	
		document.oObj.color = sColor;
	}
}

function openWindow(sUrl)
{	var sName = "winLink";
	var sFeatures = "width=750,height=500,top=50,left=50,scrollbars=yes,menubar=yes,toolbar=yes" 
	
	window.open(sUrl, sName, sFeatures);
}

function writeHeader()
{	document.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr>");
	document.write("<td rowspan=\"4\"><img src=\"images/spacer.gif\" alt=\"\" width=\"30\" height=\"69\" border=\"0\"></td>");
	document.write("<td><img src=\"images/spacer.gif\" alt=\"\" width=\"555\" height=\"1\" border=\"0\"></td>");
	document.write("<td><img src=\"images/spacer.gif\" alt=\"\" width=\"170\" height=\"1\" border=\"0\"></td>");
	document.write("<td rowspan=\"4\" width=\"100%\" rowspan=\"4\"><img src=\"images/spacer.gif\" alt=\"\" width=\"30\" height=\"69\" border=\"0\"></td>");
	document.write("</tr>");
	
	document.write("<tr>");
	document.write("<td colspan=\"2\" class=\"header\" valign=\"middle\"><img src=\"images/spacer.gif\" width=\"1\" alt=\"\" height=\"20\" border=\"0\"></td>");
	document.write("</tr>");
	
	document.write("<tr>");
	document.write("<td class=\"header\" valign=\"middle\"><a href=\"index.html\"><img src=\"images/logo.gif\" alt=\"Northeast Cabinet Doors\" width=\"320\" height=\"75\" border=\"0\"></a></td>");
	document.write("<td class=\"text\" align=\"left\" valign=\"middle\"><strong>Northeast Cabinet Doors</strong><br>33 Morrell Street<br>West Roxbury, MA&nbsp;&nbsp;02132<br>Local:&nbsp;617-469-5445<br>Toll Free:&nbsp;800-366-7751<br>Fax:&nbsp;617-469-0770</td>");
	document.write("</tr>");
	
	document.write("<tr>");
	document.write("<td colspan=\"2\" class=\"header\" valign=\"middle\"><img src=\"images/spacer.gif\" width=\"1\" alt=\"\" height=\"20\" border=\"0\"></td>");
	document.write("</tr>");
	document.write("</table>");
}

function writeNavigation(sSection)
{	document.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr>");
	document.write("<td class=\"primary\" nowrap><img src=\"images/spacer.gif\" alt=\"\" width=\"30\" height=\"1\" border=\"0\"></td>");
	document.write("<td class=\"primary\">");
	
	document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
	document.write("<tr align=\"center\">");
	//menu1
	document.write("<td width=\"1\" class=\"menuoutline\"><img src=\"images/spacer.gif\" alt=\"\" width=\"1\" height=\"1\" border=\"0\"></td>");
	document.write("<td class=\"primary\">");
	document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr align=\"center\">");
	document.write("<td id=\"nav1\"><div onclick=\"window.FW_showMenu(window.fw_menu_0,31,155);MM_swapImage('menu1','','images/menu1_over.gif',1);\" onMouseOut=\"MM_swapImgRestore();FW_startTimeout();\" onMouseOver=\"window.FW_showMenu(window.fw_menu_0,31,155);MM_swapImage('menu1','','images/menu1_over.gif',1);\"><img name=\"menu1\" src=\"images/menu1_up.gif\" width=\"196\" height=\"29\" border=\"0\"></div></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</td>");
	//menu2
	document.write("<td class=\"menuoutline\"><img src=\"images/spacer.gif\" alt=\"\" width=\"1\" height=\"1\" border=\"0\"></td>");
	document.write("<td class=\"primary\">");
	document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr align=\"center\">");
	document.write("<td id=\"nav2\"><div onclick=\"window.FW_showMenu(window.fw_menu_1,228,155);MM_swapImage('menu2','','images/menu2_over.gif',1);\" onmouseover=\"window.FW_showMenu(window.fw_menu_1,228,155);MM_swapImage('menu2','','images/menu2_over.gif',1);\" onmouseout=\"MM_swapImgRestore();FW_startTimeout();\"><img name=\"menu2\" src=\"images/menu2_up.gif\" width=\"196\" height=\"29\" border=\"0\"></div></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</td>");
	//menu3
	document.write("<td class=\"menuoutline\"><img src=\"images/spacer.gif\" alt=\"\" width=\"1\" height=\"1\" border=\"0\"></td>");
	document.write("<td class=\"primary\">");
	document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr align=\"center\">");
	document.write("<td id=\"nav3\"><a href=\"order_form.html\" onmouseover=\"MM_swapImage('menu3','','images/menu3_over.gif',1);\" onmouseout=\"MM_swapImgRestore();\"><img name=\"menu3\" src=\"images/menu3_up.gif\" width=\"196\" height=\"29\" border=\"0\"></a></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</td>");
	document.write("<td class=\"menuoutline\"><img src=\"images/spacer.gif\" alt=\"\" width=\"1\" height=\"1\" border=\"0\"></td>");
	
	document.write("</tr>");
	document.write("</table>");
	
	document.write("</td>");
	document.write("<td width=\"100%\" class=\"primary\"><img src=\"images/spacer.gif\" alt=\"\" width=\"60\" height=\"1\" border=\"0\"></td>");
	document.write("</tr>");
	document.write("</table>");
}

function writeBreadcrumb()
{	document.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr>");
	document.write("<td width=\"100%\"><img src=\"images/spacer.gif\" alt=\"\" width=\"1\" height=\"37\" border=\"0\"></td>");
	document.write("</tr>");
	document.write("</table>");
}

function writeFooter()
{	document.write("<table align=\"center\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	
	document.write("<tr>");
	document.write("<td width=\"100%\" colspan=\"2\" valign=\"top\" bgcolor=\"#FFFFFF\"><img src=\"images/spacer.gif\" alt=\"\" width=\"1\" height=\"30\" border=\"0\"></td>");
	document.write("</tr>");
	
	document.write("<tr>");
	document.write("<td rowspan=\"4\" valign=\"top\"><img src=\"images/spacer.gif\" alt=\"\" width=\"49\" height=\"40\" border=\"0\"></td>");
	document.write("<td width=\"100%\" valign=\"top\"><img src=\"images/spacer.gif\" alt=\"\" width=\"1\" height=\"40\" border=\"0\"></td>");
	document.write("</tr>");
	
	document.write("<tr>");
	
	var sLinks = "<a href=\"index.html\" class=\"footerlink\">Home</a>&nbsp;|&nbsp;";
	sLinks += "<a href=\"about.html\" class=\"footerlink\">Our Story</a>&nbsp;|&nbsp;";
	sLinks += "<a href=\"contact.html\" class=\"footerlink\">Contact Us</a>&nbsp;|&nbsp;";
	sLinks += "<a href=\"doors.html\" class=\"footerlink\">Custom Cabinet Doors</a><br>";
	sLinks += "<a href=\"profiles.html\" class=\"footerlink\">Panel Profiles</a>&nbsp;|&nbsp;";
	sLinks += "<a href=\"lip.html\" class=\"footerlink\">Lip Styles</a>&nbsp;|&nbsp;";
	sLinks += "<a href=\"stiles.html\" class=\"footerlink\">Stile Profiles</a>&nbsp;|&nbsp;";
	sLinks += "<a href=\"drawers.html\" class=\"footerlink\">Drawer Profiles</a>&nbsp;|&nbsp;";
	sLinks += "<a href=\"mouldings.html\" class=\"footerlink\">Mouldings</a>&nbsp;|&nbsp;";
	sLinks += "<a href=\"order_form.html\" class=\"footerlink\">Order Form</a>";
	
	document.write("<td align=\"center\" valign=\"top\" valign=\"top\" class=\"footer\">" + sLinks + "</td>");
	document.write("</tr>");
	
	document.write("<tr>");
	document.write("<td valign=\"top\"><img src=\"images/spacer.gif\" alt=\"\" width=\"1\" height=\"40\" border=\"0\"></td>");
	document.write("</tr>");
	document.write("</table>");
}
