//-- Begin graphic rollover functions --------------------------------------------------
	// Function to 'activate' images.
	function imgOn(imgName) {
	   if (document.images) {
	      document[imgName].src = eval(imgName + "on.src");
	   }
	}

	// Function to 'deactivate' images.
	function imgOff(imgName) {
	   if (document.images) {
	      document[imgName].src = eval(imgName + "off.src");
	   }
	}
//-- End graphic rollover functions ----------------------------------------------------



//-- Begin Line List display functions -------------------------------------------------
	function loadLineList(officeMode) { // officeMode=user selected display mode on Line List page
	// Create document object from XML file
		// code for IE
		if (window.ActiveXObject) {
			lineList=new ActiveXObject("Microsoft.XMLDOM");
		}
		// code for Mozilla, Firefox, Opera, etc.
		else if (document.implementation && document.implementation.createDocument) {
			lineList=document.implementation.createDocument("","",null);
		}		
		lineList.async=false;
		lineList.load("../line_list.xml");

	// Get number of manufacturer entries
		var mfgs = lineList.getElementsByTagName("manufacturer");
		var howMany = mfgs.length;
		//document.write(howMany);
	
	// Load arrays with line list data
		var mfgName = new Array(); // Manufacturer name
		var mfgInfo = new Array(); // Manufacturer info
		var mfgURL = new Array(); // Manufacturer Website
		var mfgIES = new Array(); // Manufacturer IES file link
		var mfgOffice = new Array(); // Which office reps the manufacturer
		var j=0;
		for (var i=0;i<howMany;i++) { // i=loop variable, j=count variable of "Active" manufacturers
			var attlist=mfgs.item(i).attributes; // attlist=list of attributes for this manufacturer
			office = attlist.getNamedItem("office").value; // office=value of "office" attribute for this manufacturer
			if (office.match(officeMode)) { // If the user selected display mode matches the office attribute of this manufacturer
				mfgName[j] = lineList.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				mfgInfo[j] = lineList.getElementsByTagName("info")[i].childNodes[0].nodeValue;
				mfgURL[j] = lineList.getElementsByTagName("url")[i].childNodes[0].nodeValue;
				mfgIES[j] = lineList.getElementsByTagName("ies")[i].childNodes[0].nodeValue;
				mfgOffice[j] = office
				if (mfgURL[j] == "null") mfgURL[j]="" // Reset "null" values to ""
				if (mfgIES[j] == "null") mfgIES[j]="" // Reset "null" values to ""
				j++ // Increment "Active" manufacturer counts that match user selected display mode
			}
		}

	// Display Line List
		document.write("<table border='0' width='550px' cellspacing='0' cellpadding='0' style='margin-left: 20px'>");
			for (i=0;i<mfgName.length;i++) { // Loop through all manufacturers in the display set
				// Set stripe color
				var cellBG="#D7D7D7";
				if (i%2 == 0) { cellBG="#AFAFAF"; shade="Dark" }
				else { cellBG="#D7D7D7"; shade="Light" }
				// Write list item	
				document.write("<tr valign='middle' style='background-color: "+cellBG+"'>");
					document.write("<td style='width: 420px; padding-left: 20px'>");
						document.write("<p class='name'>"+mfgName[i]+"<\/p>");
						document.write("<p class='info'>"+mfgInfo[i]+"<\/p>");
					document.write("<\/td>");
					document.write("<td style='width: 45px; padding-left: 10px'>");
						if (mfgURL[i] != "") {
							document.write("<a href='http:\/\/"+mfgURL[i]+"' target='_blank'><img border='0' src='..\/images\/earthIcon"+shade+".gif' width='30' height='38' alt='"+mfgURL[i]+"'><\/a><\/td>");
						}
						else {
							document.write("&nbsp;<\/td>");
						}
					document.write("<td style='width: 55px'>");
						if (mfgIES[i] != "") {
							document.write("<a href='http:\/\/"+mfgIES[i]+"' target='_blank'><img border='0' src='..\/images\/IES_icon"+shade+".gif' width='35' height='30' valign='middle' style='position: relative; top: 1px'><\/a><\/td>");
						}
						else {
							document.write("&nbsp;<\/td>");
						}
				document.write("<\/tr>");
			}
		document.write("<\/table>");
	}
	
//-- Begin Line List selection function -------------------------------------------------
	function chooseLineList() {
		document.write("<p><b>Blankenship & Associates</b> maintains separate line lists for our offices in Spokane, Washington and Boise, Idaho. Please choose which line list you would like to view.</p>");
		document.write("<a href='line_list.asp?Spokane'>");
			document.write("<img border='0' src='images/WA_button.jpg' width='260' height='120' style='position: relative; left: -20px' \/>");
		document.write("<\/a>");
		document.write("<a href='line_list.asp?Boise'>");
		document.write("<img border='0' src='images/ID_button.jpg' width='260' height='120' \/>");
		document.write("<\/a>");
	}		
