function GenArrayLists() {
// The JavaScript code below defines lists (called arrays) of possible
// selection values shown on the main web page.  This approach is used
// to avoid having to make changes to HTML code and instead the HTML code
// is dynamically generated from these lists.
//
// Declare array constants identify form Manufacturer drop-down list
arrManufacturer = new Array(
	new Array('Select a Manufacturer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;','#'),
	new Array('*All Manufacturers*',''),
	new Array('Access','Access'),
	new Array('Corbett','Corbett'),
	new Array('Crystorama','Crystorama'),
	new Array('Elk','Elk'),
	new Array('Fine Art','Fine Art'),
	new Array('Frederick Ramond','Frederick Ramond'),
	new Array('Illuminating Experiences','Illuminating Experiences'),
	new Array('Kalco','Kalco'),
	new Array('Kichler','Kichler'),
	new Array('Murray Feiss','Murray Feiss'),
	new Array('Nulco','Nulco'),
	new Array('Quoizel','Quoizel'),
	new Array('Schonbek','Schonbek'),
	new Array('Wilshire','Wilshire'),
	new Array('World Import','World Import')
	);

// Declare array constants identify form Style drop-down list
arrStyle = new Array(
	new Array('Select a Style&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;','#'),
	new Array('*All Styles*',''),
	new Array('Alabaster','Alabaster'),
	new Array('Contemporary','Contemporary'),
	new Array('Country','Country'),
	new Array('Crystal','Crystal'),
	new Array('Neo Classic','Neo Classic'),
	new Array('Tiffany','Tiffany')
	);

// Declare array constants identify form Finish drop-down list
arrFinish = new Array(
	new Array('Select a Finish&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;','#'),
	new Array('*All Finishes*',''),
	new Array('Antique','Antique'),
	new Array('Brass','Brass'),
	new Array('Bronze','Bronze'),
	new Array('Chrome','Chrome'),
	new Array('Crackle','Crackle'),
	new Array('Crystal','Crystal'),
	new Array('Gold','Gold'),
	new Array('Graphite','Graphite'),
	new Array('Iron','Iron'),
	new Array('Ivy Green','Ivy'),
	new Array('Nickel','Nickel'),
	new Array('Old Brick','Old Brick'),
	new Array('Painted','Painted'),
	new Array('Pewter','Pewter'),
	new Array('Precious Metal','Precious Metal'),
	new Array('Rust','Rust'),
	new Array('Sage','Sage'),
	new Array('Sand','Sand'),
	new Array('Sandstone','Sandstone'),
	new Array('Silver','Silver'),
	new Array('Verde','Verde'),
	new Array('White','White')
	);

// Declare array constants identify form Room drop-down list
arrRoom = new Array(
	new Array('Select a Room&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;','#'),
	new Array('*All Rooms*',''),
	new Array('Dining Room','Dining Room'),
	new Array('Entry','Entry'),
	new Array('Kitchen','Kitchen')
	);

// Declare array constants identify form Price Range drop-down list
arrprice = new Array(
	new Array('Select a Price Range&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;','#'),
	new Array('*Any Price (US$)*',''),
	new Array('Less than $500','500'),
	new Array('Less than $1,000','1000'),
	new Array('$500 to $1,000','500-1000'),
	new Array('Greater than $1,000','1000-9999999')
	);

//  End of array definitions for drop-down menu lists
}

function imageInit() {

// Preload masthead images
	img01 = new Image;
	img01.src = './images/gold_coast_light_logo.gif';
	img02 = new Image;
	img02.src = './images/button_left.gif';
	img03 = new Image;
	img03.src = './images/home_down.gif';
	img04 = new Image;
	img04.src = './images/contact_up.gif';
	img05 = new Image;
	img05.src = './images/basket_up.gif';
	img06 = new Image;
	img06.src = './images/terms_up.gif';
	img07 = new Image;
	img07.src = './images/about_up.gif';
	img08 = new Image;
	img08.src = './images/button_right.gif';
//	img09 = new Image;
//	img09.src = './images/left_light.gif';
	img10 = new Image;
	img10.src = './images/slash_copy.gif';
//	img11 = new Image;
//	img11.src = './images/right_light.gif';
	img12 = new Image;
	img12.src = './images/selection_up.gif';
	img13 = new Image;
	img13.src = './images/catalog_up.gif';
	img14 = new Image;
	img14.src = './images/selection_down.gif';
	img15 = new Image;
	img15.src = './images/catalog_down.gif';

// Images with up/down state used in this application.
	home_up = new Image;
	home_up.src = './images/home_up.gif';
	home_down = new Image;
	home_down.src = './images/home_down.gif';

	home_b_up = new Image;
	home_b_up.src = './images/home_b_up.gif';
	home_b_down = new Image;
	home_b_down.src = './images/home_b_down.gif';

	contact_up = new Image;
	contact_up.src = './images/contact_up.gif';
	contact_down = new Image;
	contact_down.src = './images/contact_down.gif';

	basket_up = new Image;
	basket_up.src = './images/basket_up.gif';
	basket_down = new Image;
	basket_down.src = './images/basket_down.gif';

	terms_up = new Image;
	terms_up.src = './images/terms_up.gif';
	terms_down = new Image;
	terms_down.src = './images/terms_down.gif';

	about_up = new Image;
	about_up.src = './images/about_up.gif';
	about_down = new Image;
	about_down.src = './images/about_down.gif';

	about_b_up = new Image;
	about_b_up.src = './images/about_b_up.gif';
	about_b_down = new Image;
	about_b_down.src = './images/about_b_down.gif';

	selection_up = new Image;
	selection_up.src = './images/selection_up.gif';
	selection_down = new Image;
	selection_down.src = './images/selection_down.gif';

	catalog_up = new Image;
	catalog_up.src = './images/catalog_up.gif';
	catalog_down = new Image;
	catalog_down.src = './images/catalog_down.gif';

arrLinks = new Array(
	'home,./index.html',
	'contact us,./contact.html',
	'your basket,http://goldcoastlight.com/cgi-bin/cart.pl',
	'terms of sale,./terms.html',
	'about us,./about.html');

}

function mouse_over(id, name) {
	if (document.images) {document.images[id].src=eval(name + '.src'); }
}

function genLinks(arrLnks) {
	var strLink = '<CENTER>';
	for (var i = 0; i < arrLnks.length; i++) {
		var arrLinkParts = arrLnks[i].split(',');
		var strRefFile = arrLinkParts[1].substring(2);
		var strSourceFile = self.location.href.substring(self.location.href.length-arrLinkParts[1].length+2);
		strSourceFile = "xxxxxx.html";
//		alert(strRefFile + " & " + strSourceFile); 
		strLink += (i ? "&nbsp;&nbsp;-&nbsp;&nbsp;" : "") + (strRefFile == strSourceFile ? arrLinkParts[0] : '<A HREF="' + arrLinkParts[1] + '">' + arrLinkParts[0] + '</A>');
		}
	strLink += '</CENTER>';
	return strLink;
}

// Generate HTML for text links and address info;
function writeFooterInfo() {
	document.writeln(genLinks(arrLinks));
	document.writeln('<HR SIZE="1" WIDTH="60%" ALIGN="center" NOSHADE>');
	document.writeln('<p class="black">Tel: (877) 315-4448&nbsp;&nbsp; • &nbsp;&nbsp;<a href="mailto:jimmyjwin@msn.com">jimmyjwin@msn.com</a>&nbsp;&nbsp; • &nbsp;&nbsp;Fax: (631) 757-7126</p><br><br><br></center>');
	document.writeln('<p class="small"><center><a href="http://www.knotink.com/">Site Design and Hosting by Knot Ink digital<!/font></a><br>');
	document.writeln('513 Fleming Street, Suite One&nbsp;&nbsp; • &nbsp;&nbsp;Key West, Florida 33040<br>Tel: (305) 295-9533&nbsp;&nbsp; • &nbsp;&nbsp;<a class="small" href="mailto:info@knotink.com">info@knotink.com</a>&nbsp;&nbsp; • &nbsp;&nbsp;Fax: (305) 295-7747<br>');
	document.writeln('</font></center></p>');
}

// Generate SUBMIT for Dansie database search 
function genFormSubmit() {
	var strSearch = ""; 
	manufacturer = document.viewSelect.Manufacturer.options[document.viewSelect.Manufacturer.selectedIndex].value;
	style = document.viewSelect.Style.options[document.viewSelect.Style.selectedIndex].value;
	finish = document.viewSelect.Finish.options[document.viewSelect.Finish.selectedIndex].value;
	room = document.viewSelect.Room.options[document.viewSelect.Room.selectedIndex].value;
	price = document.viewSelect.price.options[document.viewSelect.price.selectedIndex].value;
	if (manufacturer == '#') {document.viewSelect.Manufacturer.selectedIndex = 1}
	if (style == '#') {document.viewSelect.Style.selectedIndex = 1}
	if (finish == '#') {document.viewSelect.Finish.selectedIndex = 1}
	if (room == '#') {document.viewSelect.Room.selectedIndex = 1}
	if (price == '#') {document.viewSelect.price.selectedIndex = 1}
	if (manufacturer != '' && manufacturer != '#') {strSearch += manufacturer + ' '}
	if (style != '' && style != '#') {strSearch += style + ' '}
	if (finish != '' && finish != '#') {strSearch += finish + ' '}
	if (room != '' && room != "#") {strSearch += room}
	document.viewSelect.search.value = strSearch;
	if (strSearch == "") {document.viewSelect.method.value = ""}
}

function genSelect(name, select, size) {
	var optStr = "";
	var arrObj = eval('arr' + name);
	size = (size == '' ? "" : ' SIZE="' + size + '"');
	for (var i = 0; i < arrObj.length; i++) {
	  optStr += '<OPTION VALUE="' + arrObj[i][1] + (i == select ? '" SELECTED' : '"') + '>' + arrObj[i][0] + '</OPTION>';
	  }
	return '<SELECT NAME="' + name + '"' + size + '>' + optStr + '</SELECT>';
}
// Validate CONTACT.HTML form submission - requires Name and Telephone or EMAIL
function checkForm() {
	var errMsg = "";
	objForm = document.forms['contact'];
	name = objForm.Name.value;
	email = objForm.Email.value;
	telephone = objForm.Telephone.value;
	if (name == "") {
		errMsg += "Please supply a name for a response." + "\n\r";
		}
	if (email == "" && telephone == "") {
		errMsg += "A Telephone Number or EMAIL Address is required for a response.";
		}
	if (errMsg == "") { objForm.submit();return false; } 
	else {window.alert(errMsg);}
}