/*****************************************************************************
** Copyright (C) 2002, Stephen Gould 
**
** FILENAME:	ctc&d.js
** AUTHOR:	Stephen Gould
** COMMENCED:	07 Jun 2002
** MODIFIED:	21 Jan 2003
** DESCRIPTION:	javascript for dymanic menus in web pages for CWC
**
*****************************************************************************/

var sideHeading = "Cooling Tower Control & Dosing Systems";

var sideMenuArray = new Array(
	"Bleed, Inhibitor", "", "ct_bl.html",
	"Bleed, Inhibitor", "& Timed Biocides", "ct_bl_i_2bio.html",
	"Bleed, Inhibitor,", "Timed Biocide & ORP Control (DIGICHEM-ORP-XP2 Controllers)", "ct_bl_i_orp_cl.html",
	"Bleed, Inhibitor,", "Timed Biocide, ORP Control with pH Control/Monitoring (DIGICHEM Plus+ Controllers)", "ct_bl_i_orp_cl_ph.html",
	"ORP and/or pH Control", "", "ct_orp_ph_cl.html",
	"Timed Biocide", "Dosing", "ct_7day_bio.html",
	"----------------------", "Mounting Skids/Stands", "ct_stands.html",
	"Cabinets for Manuals", "& Service Reports","ct_cabs.html"
);

var sideSubMenu = new Array();

sideSubMenu[0] = new Array(
	"Bleed Control","","ct_bl.html",
	"Bleed Control","with Inhibitor","ct_bl_i.html"
);
sideSubMenu[1] = new Array(
	"Single Biocide","(7-Day Timer)","ct_bl_i_bio.html",
	"Dual Biocide","(2 x 7-Day Timers)","ct_bl_i_2bio.html",
	"Optional 4-20mA /","BMS Output Cards","ct_bl_i_bio_420.html"
	);
sideSubMenu[2] = new Array(
	"ORP via","Chlorine Pump","ct_bl_i_orp_cl.html",
	"ORP via","Brominator","ct_bl_i_orp_brom.html",
	"Optional 4-20mA /","BMS Output Cards","ct_bl_i_orp_420.html"
	);

sideSubMenu[3] = new Array(
	"ORP via","Chlorine Pump","ct_bl_i_orp_cl_ph.html",
	"ORP via","Brominator","ct_bl_i_orp_brom_ph.html",
	"ORP via","Chlorine & Bromine Pumps","ct_bl_i_orp_cl_br_ph.html",
	"Optional Cards:","BMS/4-20mA, Internet","dp_cards.html",
	"DIGICHEM Plus+","Web Interface & Brochure","dp_internet.html",
	"Tips for Remote Setup"," & Troubleshooting","dp_tips.html"	
	);
sideSubMenu[4] = new Array(
	"pH & ORP","(via Chlorine Pump)","ct_orp_ph_cl.html",
	"pH & ORP","(via Brominator)","ct_orp_ph_br.html",
	"ORP only","(via Chlorine Pump)","ct_orp_cl.html",
	"ORP only","(via Brominator)","ct_orp_br.html",
	"pH only","","ct_pH.html",
	"Optional 4-20mA /","BMS Output Cards","ct_orp_ph_420.html"
	);
sideSubMenu[5] = new Array(
	"Single Biocide","","ct_7day_bio.html",
	"Dual Biocide","","ct_7day_2bio.html"
);

sideSubMenu[6] = new Array();
sideSubMenu[7] = new Array();





/* Functions *****************************************************************/

function OpenImageWindow(filename) {
	var handle = window.open("", "ImageWindow", "height=650px,width=700px");
	handle.document.open("text/html", "replace");
	handle.document.write("<html><head><title>ImageWindow</title>");
	handle.document.write("<script language=\"javascript\" type=\"text/javascript\">");
	handle.document.write("</script>");
	handle.document.write("</head><body>");
	handle.document.write("<table cellpadding=0 cellspacing=0 border=0>");
	handle.document.write("<tr height=\"480px\"><td width=\"642px\" align=\"center\">");
	handle.document.write("<img src='../images/" + filename + "'></td></tr>");
	handle.document.write("<tr><td align=\"right\" style=\"font: 12px arial, san serif;\">");
	handle.document.write("<span style=\"cursor:hand;\" onClick=\"window.print();\">Print</span>");
	handle.document.write("<font color=red> | </font>");
	handle.document.write("<span style=\"cursor:hand;\" onClick=\"javascript:window.close();\">Close</span>");
	handle.document.write("</td></tr>");
	handle.document.write("</table>");
	handle.document.write("</body></html>");
	handle.document.close();
	handle.focus();
	return false;
}

/*****************************************************************************
** END OF FILE:	electronics.js
*****************************************************************************/
