<!-- HIDE THIS SCRIPT FROM NON-JAVASCRIPT BROWSERS
// newts.js, copyright (C) 2002 by Steve Litt.
// All rights reserved. This is proprietary software.
// You may not use this software without the advanced
// written permission of Steve Litt.
//
// This file contains the control routines for the menus
// on the Troubleshooters.Com main page. The routines
// actually defining the menus are contained in the
// newts_loadmenus.js file.

var selectHeading="init";
var dashes="------------------------------------";


Linkset.prototype.aText="";
Linkset.prototype.aLink="";
Linkset.prototype.opts="";
Linkset.prototype.sel="";
Linkset.prototype.test="Linkset";
//Linkset.prototype.qlHeading = "--------------------------Quick Contents----------------------";
Linkset.prototype.qlHeading = "-quack city--";
Linkset.prototype.testt = function()
	{
	alert("testt");
	}
Linkset.prototype.setSelAndOpts = function()
	{
	this.sel = window.document.myform.myselect;
	this.opts = window.document.myform.myselect.options;
	}
Linkset.prototype.setHeading = function(hd)
	{
	this.qlHeading=this.opts[0].text;
	}
Linkset.prototype.zapArray = function()
	{
	var i=0;
	for (i=this.aText.length; i >= 0; i--) { this.aText[i]=null; }
	for (i=this.aLink.length; i >= 0; i--) { this.aLink[i]=null; }
	}
Linkset.prototype.zapOptions = function()
	{
	var i=0;
	for (i=this.opts.length; i >= 0; i--) { this.opts[i]=null; }
	}
Linkset.prototype.fillSelect = function()
	{
	this.zapOptions();
	var len= this.aText.length;
	var i = 0;
	for (i=0; i < len; i++)
		{
		this.opts[i] = new Option(this.aText[i], this.aLink[i]);
		}
	}
Linkset.prototype.add = function(txt, url)
	{
	var len = this.aText.length;
	this.aText[len] = txt;
	this.aLink[len] = url;
	}
Linkset.prototype.getText = function(ss)
	{
	return this.aText[ss];
	}
Linkset.prototype.getUrl = function(ss)
	{
	return this.aLink[ss];
	}

Linkset.prototype.redirect = function(ss)
	{
	if(window.navigator.appName=='zzzKonqueror')
		{
		var msg="Troubleshooters.Com\'s quick contents control\n";
		msg += "does not work with the Konqueror browser.\n";
		msg += "\n";
		msg += "Please click the side links to navigate\n";
		msg += "Troubleshooters.Com when using Konqueror.\n";
		msg += "\n";
		msg += "The quick contents control is known to work\n";
		msg += "with Netscape 4+, Internet Explorer 4+,\n";
		msg += "Mozilla 0.98+, and Galeon 1+.\n";
		msg="Troubleshooters.Com\'s quick contents control\n";
		msg += "does not work properly with the Konqueror browser.\n";
		msg += "Clicking a Quick Contents link from Konqueror causes\n";
		msg += "some Konqueror versions to lose track of their history,\n";
		msg += "such that you cannot get back to the T.C main page\n";
		msg += "with the browser\'s \"back\" button.\n";
		msg += "\n";
		msg += "The quick contents control is known to work\n";
		msg += "with Netscape 4+, Internet Explorer 4+,\n";
		msg += "Mozilla 0.98+, and Galeon 1+.\n";
		msg += "\n";
		msg += "We give you the choice of using the quick content\n";
		msg += "link (by clicking the OK button on this prompt), or\n";
		msg += "returning to the main page and using the side\n";
		msg += "links (by clicking the Cancel button on this prompt).\n";
		msg += "We strongly suggest that when in Konqueror, you\n";
		msg += "navigate Troubleshooters.Com only with the side links,\n";
		msg += "and not with the Quick Content Links.\n";
		msg += "\n";
		msg += "Proceed with Quick Content link?\n";
		if (confirm(msg))
			{
			window.document.location = this.aLink[ss];
			}
		}
	else
		{
		window.document.location = this.aLink[ss];
		}
	}

function Linkset()
	{
	var len = this.aText.length;
	this.aText = new Array;
	this.aLink = new Array;
	this.aText[0] = window.document.myform.myselect.options[0].text;
	this.aLink[0] = "#";
	}


function afterBodyLoad()
	{
	constructArrays();
	loadArrays();
	qlInitial.fillSelect();
	changeql(qlInitial);
	}

function changeql(ql)
	{
	ql_current = ql;
	ql_current.fillSelect();
	}

var ql_current;
var globalHeading;

// END HIDING FROM NON-JAVASCRIPT BROWSERS -->

