/* ####################### start of double menu code ####################### */

// new Option("text", "value")
// This code changes menus
function nullOptions(aMenu)
{
	var tot = aMenu.options.length;
	for (i = 0; i < tot; i++)
	{
		aMenu.options[i] = null;
	}
	aMenu.options.length = 0;
}

/* ####################### start of files for main option 1 computer stuff
####################### */

function MySubject1(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2501 8 In/4 Out Module", "cti/analoginputs/2501.htm");
		options[2] = new Option("2550-A 8-Chan Isolated Input", "cti/analoginputs/2550a.htm");
		options[3] = new Option("2555-A 16-Chan Input Module", "cti/analoginputs/2555a.htm");
		options[4] = new Option("2558 8-Chan Input Module", "cti/analoginputs/2558.htm");
		options[0].selected = true;
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject2(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2501 8 In/4 Out Module", "cti/analogoutputs/2501.htm");
		options[2] = new Option("2560-A 8-Chan Isolated Output", "cti/analogoutputs/2560a.htm");
		options[3] = new Option("2562 8-Chan Output Module", "cti/analogoutputs/2562.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject3(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2500-R4/R8/R16-A Mounting Racks", "cti/bases/bases.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

/* ####################### ####################### */

function MySubject4(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2541 Redundant Processor Manager", "cti/comms/2541.htm");
		options[2] = new Option("2572 Ethernet TCP/IP Adapter", "cti/comms/2572.htm");
		options[3] = new Option("2572-A Ethernet 10/100 Adapter", "cti/comms/2572a.htm");
		options[4] = new Option("2572-AF Ethernet Fiber Adapter", "cti/comms/2572af.htm");
		options[5] = new Option("2573-MOD Serial with MODBUS", "cti/comms/2573mod.htm");
		options[6] = new Option("2576 DeviceNet(TM) Scanner", "cti/comms/2576.htm");
		options[7] = new Option("2577 Profibus DP Slave Adapter", "cti/comms/2577.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject5(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2502 Hi-Speed Counter Encoder", "cti/counters/2502.htm");
		options[2] = new Option("2553-A 2-Chan Mag Meter Input", "cti/counters/2553a.htm");
		options[3] = new Option("2554-A 4-Chan Isolated Hi-Speed", "cti/counters/2554a.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject6(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2500-C100 CPU 128k User Memory", "cti/cpus/2500-c100.htm");
		options[2] = new Option("2500-C200 CPU 256k User Memory", "cti/cpus/2500-c200.htm");
		options[3] = new Option("2500-C300 CPU 512k User Memory", "cti/cpus/2500-c300.htm");
		options[4] = new Option("2500-C400 CPU 3072k User Memory", "cti/cpus/2500-c400.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject7(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2580 16-Pt Isolated 95-132 VAC", "cti/digitalinputs/2580.htm");
		options[2] = new Option("2581 16-Pt Isolated 12-56 VDC", "cti/digitalinputs/2581.htm");
		options[3] = new Option("2582 16-Pt Isolated 125 VDC", "cti/digitalinputs/2582.htm");
		options[4] = new Option("2585 16-Pt TTL/Word Input", "cti/digitalinputs/2585.htm");
		options[5] = new Option("2588-8/2589-A Universal Modules", "cti/digitalinputs/2589a.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject8(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2590-A 16-Pt Isolated 20-132 VAC", "cti/digitaloutputs/2590a.htm");
		options[2] = new Option("2590-EF 16-Pt 20-132 VAC Front Fuses", "cti/digitaloutputs/2590ef.htm");
		options[3] = new Option("2591-A 16-Pt Isolated 11-146 VDC", "cti/digitaloutputs/2591a.htm");
		options[4] = new Option("2591-EF 16-Pt 11-146 VDC Front Fuses", "cti/digitaloutputs/2591ef.htm");
		options[5] = new Option("2595 16-Pt TTL/Word Output", "cti/digitaloutputs/2595.htm");
		options[6] = new Option("2596-8/2596/2597 DC Output", "cti/digitaloutputs/2597.htm");
		options[7] = new Option("2598-8/2598/2599 AC Output", "cti/digitaloutputs/2599.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject9(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("3570A Ethernet Switch", "cti/ethernet/ethernet.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject10(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2510 125 VDC/110 VAC Power Supply", "cti/powersupply/2510.htm");
		options[2] = new Option("2512 75-Watt AC Power Supply", "cti/powersupply/2512.htm");
		options[3] = new Option("2513 24 VDC Power Supply", "cti/powersupply/2513.htm");
		options[4] = new Option("2515 120 VAC Power Supply", "cti/powersupply/2515.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject11(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2500-RBC Profibus RBC", "cti/rbcs/2500rbc.htm");
		options[2] = new Option("2500-RIO RS-485 RBC", "cti/rbcs/2500rio.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject12(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2530 8-Pt Form-C Relay Output", "cti/relayoutputs/2530.htm");
		options[2] = new Option("2531 32-Pt Form-A Relay Output", "cti/relayoutputs/2531.htm");
		options[3] = new Option("2532 16-Pt Form-A Relay Output", "cti/relayoutputs/2532.htm");
		options[4] = new Option("2534 8-Pt Form-C Relay Output", "cti/relayoutputs/2534.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject13(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("CTI Replacements for Siemens® Products", "cti/replacement/replacement.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject14(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("Reworked Units", "cti/reworked/reworked.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject15(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2551-A 8-Chan Iso Thermocouple", "cti/tempinputs/2551a.htm");
		options[2] = new Option("2552-A 8-Chan Iso RTD Input", "cti/tempinputs/2552a.htm");
		options[3] = new Option("2556 16-Chan Iso Thermocouple", "cti/tempinputs/2556.htm");
		options[4] = new Option("2557 16-Chan RTD Input", "cti/tempinputs/2557.htm");
		options[5] = new Option("2559-RTD 8-Chan RTD Input", "cti/tempinputs/2559rtd.htm");
		options[6] = new Option("2559-TC 8-Chan Thermocouple", "cti/tempinputs/2559tc.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject16(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2505 Vib. Sensor Interface", "cti/vibration/2505.htm");
		options[2] = new Option("2507 Vib. Monitoring Module", "cti/vibration/2507.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject17(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2572-DDS2 Ethernet DDE Server", "cti/software/2572dds2.htm");
		options[2] = new Option("2572-OPC Ethernet OPC Server", "cti/software/2572opc.htm");
		options[3] = new Option("3102-APTnet", "cti/software/3102aptnet.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject18(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2500-IADP I/O Adapter Series 500", "cti/series500/2500-IADP.htm");
		options[2] = new Option("2500-RADP Power Supply Adapter Series 500", "series500/2500-PADP.htm");
		options[3] = new Option("2500-RADP RBC Adapter Series 500", "series500/2500-RADP.htm");		
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject19(aMenu)
{
	aMenu.options.length = 0;
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("2500-40F Standard Screw Terminal Connector", "cti/i-oconnectors/2500-40F.htm");
		options[2] = new Option("2500-FPC Thermocouple Terminal Connector", "cti/i-oconnectors/2500-FPC.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

/* ####################### end of files for option 1 computer stuff
####################### */

/* ####################### start of list of files for option 2 self development
####################### */

function MySubject1a(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("PA PowerStation Family", "ctc/embeddedhmi/pafamily.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject2a(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("HPC PowerStation Family", "ctc/industrialpcs/hpcfamily.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject3a(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("All Industrial Monitors", "");
		options[2] = new Option("12\" Industrial Monitor", "ctc/industrialmons/12inch.htm");
		options[3] = new Option("15\" Industrial Monitor", "ctc/industrialmons/15inch.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject4a(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("MachineLogic™", "ctc/pcbasedlc/machinelogic.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject5a(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("HPX PowerStation Family", "ctc/windowshmi/hpxfamily.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject6a(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("All Software", "");
		options[2] = new Option("Interact", "ctc/software/interact.htm");
		options[3] = new Option("InteractX™", "ctc/software/interactx.htm");
		options[4] = new Option("MachineShop Development Suite", "ctc/software/machineshop.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}


/* ####################### end of files for option 2 computer stuff
####################### */

/* ####################### lists of files for option 3 computer software
####################### */

function MySubject1b(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("Worshop for 505", "fastrak/w505.htm");
		options[2] = new Option("Workshop for Modicon - 32 Bit", "fastrak/wsmod.htm");
		options[3] = new Option("Workshop for Siemens S5", "fastrak/ws5.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject2b(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("Simulator 505", "fastrak/505sim.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject3b(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("Workshop for Modicon 884", "fastrak/wsmod884.htm");
		options[2] = new Option("Workshop for SYMAX Square D", "fastrak/wssd.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject4b(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("FTMaintenance", "fastrak/ftm.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

/* ####################### lists of files for option 4 Pilz Safety####################### */

function MySubject1c(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("PSS-4000", "fastrak/w505.htm");
		options[2] = new Option("Remoted I/O", "fastrak/wsmod.htm");
		options[3] = new Option("Extra", "fastrak/ws5.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject2c(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("Multi", "fastrak/505sim.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject3c(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("PSS-4000 Burner", "fastrak/wsmod884.htm");
		options[2] = new Option("PNOZ Multi Burner", "fastrak/wssd.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MySubject4c(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("Safety Relays", "fastrak/ftm.htm");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}


/* ####################### myTopics ####################### */

function MyTopics1(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("Analog Inputs", "");
		options[2] = new Option("Analog Outputs", "");
		options[3] = new Option("Bases", "");
		options[4] = new Option("Communications", "");
		options[5] = new Option("Counters", "");
		options[6] = new Option("CPUs", "");
		options[7] = new Option("Digital Inputs", "");
		options[8] = new Option("Digital Outputs", "");
		options[9] = new Option("Ethernet", "");
		options[10] = new Option("Power Supplies", "");
		options[11] = new Option("Remote Base Controllers", "");
		options[12] = new Option("Relay Outputs", "");
		options[13] = new Option("Replacements Table", "");
		options[14] = new Option("Reworked Units", "");
		options[15] = new Option("Temperature Inputs", "");
		options[16] = new Option("Vibration Inputs", "");
		options[17] = new Option("Software", "");
		options[18] = new Option("Series 500 Adapters", "");
		options[19] = new Option("I/O Connectors", "");		
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MyTopics2(aMenu)
{
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("Embedded HMI", "");
		options[2] = new Option("Industrial PCs", "");
		options[3] = new Option("Industrial Monitors", "");
		options[4] = new Option("PC-based Logic Controller", "");
		options[5] = new Option("Windows HMI", "");
		options[6] = new Option("Software", "");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MyTopics3(aMenu)
{
	// Software
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("PLC Workshop for Windows", "");
		options[2] = new Option("Simulator Programs", "");
		options[3] = new Option("PLC Workshop for DOS", "");
		options[4] = new Option("CMMS Software", "");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

function MyTopics4(aMenu)
{
	// Software
	nullOptions(aMenu);
	with (aMenu)
	{
		// Rewrites the text and values
		options[0] = new Option("Select a page", "");
		options[1] = new Option("PSS-4000", "");
		options[2] = new Option("PNOZ Multi", "");
		options[3] = new Option("Burner Management", "");
		options[4] = new Option("Safety Relay, Switehes & Sensors", "");
		options[0].selected = true
	}
	// Netscape likes a refresh, but Microsoft doesn't
	/* if (navigator.appName.indexOf("Netscape") > -1)
	history.go(0) */
}

/* ####################### go() ####################### */
 
function go(aMenu)
{
	if (aMenu.options.value != "")
	{
		location = aMenu.options[aMenu.selectedIndex].value;
	} else
	{
		aMenu.options[0].selected = true;
	}
}

/* ####################### setUp ####################### */

function setUp()
{
	if (navigator.appName.indexOf("Microsoft") > -1)
	{
		document.formDoubleMenu.menuTopics.options[0].selected = true;
		document.formDoubleMenu.menuSubjects.options[0].selected = true;
		document.formDoubleMenu.menuFiles.options[0].selected = true;
	}
}

/* ####################### end of setup ####################### */

/* ####################### change Subjects ####################### */

function changeSubjects()
{
	aMenu = document.formDoubleMenu.menuSubjects
	aMenu2 = document.formDoubleMenu.menuFiles
	aMenu3 = document.formDoubleMenu.menuTopics
	with (aMenu3)
	{
		switch (selectedIndex)
		{
			case 0:
				nullOptions(aMenu);
				nullOptions(aMenu2)
				aMenu.options[0] = new Option("Pages appear here", "")
				aMenu.options[0].selected = true;
				history.go(0)
				break
			case 1:
				// computer stuff
				nullOptions(aMenu);
				nullOptions(aMenu2)
				aMenu2.options[0] = new Option("Pages appear here", "")
				aMenu2.options[0].selected = true;
				MyTopics1(aMenu)
				break
			case 2:
				// self development
				nullOptions(aMenu);
				nullOptions(aMenu2)
				aMenu2.options[0] = new Option("Pages appear here", "")
				aMenu2.options[0].selected = true;
				MyTopics2(aMenu)
				break
			case 3:
				// computer software
				nullOptions(aMenu);
				nullOptions(aMenu2)
				aMenu2.options[0] = new Option("Pages appear here", "")
				aMenu2.options[0].selected = true;
				MyTopics3(aMenu)
				break;
			case 4:
				// computer software
				nullOptions(aMenu);
				nullOptions(aMenu2)
				aMenu2.options[0] = new Option("Pages appear here", "")
				aMenu2.options[0].selected = true;
				MyTopics4(aMenu)
				break;
		}
	}
}

/* ####################### end of change Subjects ####################### */

/* ####################### changeFiles ####################### */

function changeFiles()
{
	aMenu = document.formDoubleMenu.menuSubjects
	aMenu2 = document.formDoubleMenu.menuFiles
	aMenu3 = document.formDoubleMenu.menuTopics;
	/* ####################### set of files for option 1 (JavaScript) ####################### */
	if (aMenu3.selectedIndex == 1)
	{
		with (aMenu)
		{
			switch (selectedIndex)
			{
				case 0:
					aMenu2.options.length = 0;
					aMenu2.options[0] = new Option("Pages appear here", "")
					aMenu2.options[0].selected = true;
					history.go(0)
					break
				// Description
				case 1:
					MySubject1(aMenu2)
					// JavaScript
					break
				case 2:
					MySubject2(aMenu2)
					// HTML
					break
				case 3:
					MySubject3(aMenu2)
					// CSS
					break;
				case 4:
					MySubject4(aMenu2)
					// Search engine positioning
					break
				case 5:
					MySubject5(aMenu2)
					// JavaScript
					break
				case 6:
					MySubject6(aMenu2)
					// HTML
					break
				case 7:
					MySubject7(aMenu2)
					// CSS
					break;
				case 8:
					MySubject8(aMenu2)
					// Search engine positioning
					break
				case 9:
					MySubject9(aMenu2)
					// JavaScript
					break
				case 10:
					MySubject10(aMenu2)
					// HTML
					break
				case 11:
					MySubject11(aMenu2)
					// CSS
					break;
				case 12:
					MySubject12(aMenu2)
					// Search engine positioning
					break
				case 13:
					MySubject13(aMenu2)
					// JavaScript
					break
				case 14:
					MySubject14(aMenu2)
					// HTML
					break
				case 15:
					MySubject15(aMenu2)
					// CSS
					break;
				case 16:
					MySubject16(aMenu2)
					// Search engine positioning
					break
				case 17:
					MySubject17(aMenu2)
					// Search engine positioning
					break
				case 18:
					MySubject18(aMenu2)
					// Search engine positioning
					break
				case 19:
					MySubject19(aMenu2)
					// Search engine positioning
					break					
			}
		}
	}
 	/* ####################### set of files for option 2 Self Development ####################### */
	if (aMenu3.selectedIndex == 2)
	{
		with (aMenu)
		{
			switch (selectedIndex)
			{
				case 0:
					aMenu2.options.length = 0;
					aMenu2.options[0] = new Option("Pages appear here", "")
					aMenu2.options[0].selected = true;
					history.go(0)
					break
				case 1:
					MySubject1a(aMenu2)
					break
				case 2:
					MySubject2a(aMenu2)
					break
				case 3:
					MySubject3a(aMenu2)
					break;
				case 4:
					MySubject4a(aMenu2)
					break;
				case 5:
					MySubject5a(aMenu2)
					break;
				case 6:
					MySubject6a(aMenu2)
					break;
			}
		}
	}
	/* ####################### third set of files for option 3 ####################### */
	if (aMenu3.selectedIndex == 3)
	{
		with (aMenu)
		{
			switch (selectedIndex)
			{
				case 0:
					aMenu2.options.length = 0;
					aMenu2.options[0] = new Option("Pages appear here", "")
					aMenu2.options[0].selected = true;
					history.go(0)
					break
				case 1:
					MySubject1b(aMenu2)
					break
				case 2:
					MySubject2b(aMenu2)
					break
				case 3:
					MySubject3b(aMenu2)
					break;
				case 4:
					MySubject4b(aMenu2)
					break
				case 5:
					MySubject5b(aMenu2)
					break
				case 6:
					MySubject6b(aMenu2)
					break
			}
		}
	}
	
	/* ####################### forth set of files for option 4 ####################### */
	if (aMenu3.selectedIndex == 4)
	{
		with (aMenu)
		{
			switch (selectedIndex)
			{
				case 0:
					aMenu2.options.length = 0;
					aMenu2.options[0] = new Option("Pages appear here", "")
					aMenu2.options[0].selected = true;
					history.go(0)
					break
				case 1:
					MySubject1c(aMenu2)
					break
				case 2:
					MySubject2c(aMenu2)
					break
				case 3:
					MySubject3c(aMenu2)
					break;
				case 4:
					MySubject4c(aMenu2)
					break
				case 5:
					MySubject5c(aMenu2)
					break
				case 6:
					MySubject6c(aMenu2)
					break
			}
		}
	}	
}

/* ####################### end of doublemenu code ####################### */