/*****************************************************************************
** Copyright (C) 2002, Stephen Gould 
**
** FILENAME:	c&t.js
** AUTHOR:	Stephen Gould
** COMMENCED:	07 Jun 2002
** MODIFIED:	21 Jan 2003
** DESCRIPTION:	javascript for dymanic menus in web pages for CWC
**
*****************************************************************************/

var sideHeading = "Controllers / Instruments";

var sideMenuArray = new Array(
	"Multi-Parameter", "(eg. pH & ORP combined)", "con_multi.html",
	"Conductivity", "", "con_cond.html",
	"pH", "", "con_ph.html",
	"ORP", "", "con_orp.html",
	"Chlorine/", "Chlorine Dioxide", "con_cl_sys.html",
	"Dissolved Oxygen", "", "con_do.html",
	"Turbidity", "", "con_turb_9999.html",
	"Temperature", "", "con_temp.html",
	"One-shot Timer", "Dosing", "con_oneshot.html",
	"Proportional Dosing", "- batch, water meter", "con_proportional.html",
	"Cyclical Dosing", "- ON/OFF Cycle", "con_cyclical.html"
);

var sideSubMenu = new Array();

sideSubMenu[0] = new Array();
sideSubMenu[1] = new Array();
sideSubMenu[2] = new Array(
	"Systems","","con_ph_sys.html",
	"Controllers","","con_ph.html"
	);
sideSubMenu[3] = new Array(
	"Systems","","con_orp_sys.html",
	"Controllers","","con_orp.html"
);
sideSubMenu[4] = new Array(
	"Systems","","con_cl_sys.html",
	"Components","","con_cl.html"
	);
sideSubMenu[5] = new Array();
sideSubMenu[6] = new Array(
	"0-40 NTU","","con_turb_40.html",
	"0-100/400/1000 NTU","","con_turb.html",
	"0.01-9999 NTU","","con_turb_9999.html"
);
sideSubMenu[7] = new Array();
sideSubMenu[8] = new Array();
sideSubMenu[9] = new Array();
sideSubMenu[10] = 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
*****************************************************************************/
