var mapLoaded = false;var JumpedOutNotMousedOut = false;// ------------------------------------------------------------------------------------------// Initialize DHTML set			// ------------------------------------------------------------------------------------------function init() {	setBrowser();	mapLoaded = true;	document.output.address.value = "";	// document.images["HighlightMap"].src = mapFinished.src;}// ------------------------------------------------------------------------------------------// Highlight / Unhighlight the Manequin as requested// ------------------------------------------------------------------------------------------var target, type;function HighlightMan(target, type){	document[target].src = "img/" + target + "_over.gif";	document["model"].src = "img/Manequin" + type + ".jpg";}function NormalMan(target){	document[target].src = "img/" + target + "_up.gif";	document["model"].src = "img/Manequin0.jpg";}// ------------------------------------------------------------------------------------------// Flags for each map hint, set initial value to "off"// ------------------------------------------------------------------------------------------function hintFlag(flag) {  this.value = false;}// ------------------------------------------------------------------------------------------// Change the Map Hint// ------------------------------------------------------------------------------------------var AddressList = new Array(45);var AddressText = new Array(45);AddressList[1] = "601";AddressText[1] = "Chilliwack General Hospital +NL+ 45600 Menholm Rd +NL+ CHILLIWACK, BC +NL+ V2P 1P7";AddressList[2] = "603";AddressText[2] = "Matsqui-Sumas-Abbotsford General Hospital +NL+ 2179 McCallum Rd +NL+ ABBOTSFORD, BC +NL+ V2S 3P1";AddressList[3] = "109";AddressText[3] = "Royal Columbian Hospital +NL+ 330 E. Columbia St +NL+ NEW WESTMINSTER, BC +NL+ V3L 3W7";AddressList[4] = "110";AddressText[4] = "Saint Mary's Hospital +NL+ 220 Royal Ave +NL+ NEW WESTMINSTER, BC +NL+ V3L 1H6";AddressList[5] = "130";AddressText[5] = "Burnaby Hospital +NL+ 3935 Kincaid St +NL+ BURNABY, BC +NL+ V5G 2X6";AddressList[6] = "136";AddressText[6] = "Eagle Ridge Hospital & Health Care Centre +NL+ 475 Guildford Way +NL+ PORT MOODY, BC +NL+ V3H 3W9";AddressList[7] = "604";AddressText[7] = "Ridge Meadows Hospital  +NL+ 11666 Laity St +NL+ MAPLE RIDGE, BC +NL+ V2X 7G5";AddressList[8] = "116";AddressText[8] = "Surrey Memorial Hospital +NL+ 13750 - 96th Ave +NL+ SURREY, BC +NL+ V3R 0Z7";AddressList[9] = "134";AddressText[9] = "Delta Hospital +NL+ 5800 Mountain View Blvd +NL+ DELTA, BC +NL+ V4K 3V6";AddressList[10] = "756";AddressText[10] = "East Kootenay Regional Hospital +NL+ 13 - 24th Ave N +NL+ CRANBROOK, BC +NL+ V1C 3H9";AddressList[11] = "801";AddressText[11] = "Kootenay Boundary Regional Hospital +NL+ 1200 Hospital Bench +NL+ TRAIL, BC +NL+ V1R 4M1";AddressList[12] = "301";AddressText[12] = "Vernon Jubilee Hospital +NL+ 2101 32nd St +NL+ VERNON, BC +NL+ V1T 5L2";AddressList[13] = "302";AddressText[13] = "Kelowna General Hospital +NL+ 2268 Pandosy St +NL+ KELOWNA, BC +NL+ V1Y 1T2";AddressList[14] = "307";AddressText[14] = "Pleasant Valley Health Centre +NL+ 2745 Wright Ave. +NL+ ARMSTRONG, BC +NL+ V0E 1B0";AddressList[15] = "303";AddressText[15] = "Penticton Regional Hospital +NL+ 550 Carmi Ave +NL+ PENTICTON, BC +NL+ V2A 3G6";AddressList[16] = "401";AddressText[16] = "Royal Inland Hospital +NL+ 311 Columbia St +NL+ KAMLOOPS, BC +NL+ V2C 2T1";AddressList[17] = "402";AddressText[17] = "Queen Victoria Hospital +NL+ 1200 Newlands Rd +NL+ REVELSTOKE, BC +NL+ V0E 2S1";AddressList[18] = "404";AddressText[18] = "Shuswap Lake General Hospital +NL+ Box 520, 601-10th St. NE +NL+ SALMON ARM, BC +NL+ V1E 4N6";AddressList[19] = "406";AddressText[19] = "Cariboo Memorial Hospital +NL+ 517 N Sixth Ave +NL+ WILLIAMS LAKE, BC +NL+ V2G 2G8";AddressList[20] = "912";AddressText[20] = "Mills Memorial Hospital +NL+ 4720 Haugland Ave +NL+ TERRACE, BC +NL+ V8G 2W7";AddressList[21] = "917";AddressText[21] = "Kitimat General Hospital +NL+ 920 Lahakas Blvd +NL+ KITIMAT, BC +NL+ V8C 2S3";AddressList[22] = "902";AddressText[22] = "Prince Rupert Regional Hospital +NL+ 1305 Summit Ave. +NL+ PRINCE RUPERT, BC +NL+ V8J 2A6";AddressList[23] = "703";AddressText[23] = "Prince George Regional Hospital +NL+ 1475 Edmonton St. +NL+ PRINCE GEORGE, BC +NL+ V2M 1S2";AddressList[24] = "705";AddressText[24] = "G.R. Baker Memorial Hospital +NL+ 543 Front St +NL+ QUESNEL, BC +NL+ V2J 2K7";AddressList[25] = "701";AddressText[25] = "Fort St John General Hospital +NL+ 9636 - 100th Ave +NL+ FORT ST JOHN, BC +NL+ V1J 1Y3";AddressList[26] = "704";AddressText[26] = "Dawson Creek and District Hospital +NL+ 11100 - 13th St +NL+ DAWSON CREEK, BC +NL+ V1G 3W8";AddressList[27] = "0";AddressText[27] = "British Columbia Cancer Agency +NL+ 600 West 10th Ave +NL+ VANCOUVER, BC +NL+ V5Z 4E6";AddressList[28] = "105";AddressText[28] = "British Columbia's Children's Hospital +NL+ 4480 Oak St +NL+ VANCOUVER, BC +NL+ V6H 3V4";AddressList[29] = "111";AddressText[29] = "Powell River General Hospital +NL+ 5000 Joyce Ave +NL+ POWELL RIVER, BC +NL+ V8A 5R3";AddressList[30] = "121";AddressText[30] = "The Richmond Hospital +NL+ 7000 Westminster Hwy +NL+ RICHMOND, BC +NL+ V6X 1A2";AddressList[31] = "101";AddressText[31] = "Vancouver General Hospital +NL+ 855 W 12TH AVE +NL+ VANCOUVER, BC +NL+ V5Z 1M9";AddressList[32] = "102";AddressText[32] = "St. Paul's Hospital +NL+ 1081 Burrard St +NL+ VANCOUVER, BC +NL+ V6Z 1Y6";AddressList[33] = "103";AddressText[33] = "St. Vincent's Hospital +NL+ 749 West 33rd Ave +NL+ VANCOUVER, BC +NL+ V5Z 2K4";AddressList[34] = "106";AddressText[34] = "Mount Saint Joseph Hospital +NL+ 3080 Prince Edward St +NL+ VANCOUVER, BC +NL+ V5T 3N4";AddressList[35] = "112";AddressText[35] = "Lions Gate Hospital +NL+ 231 E 15th St +NL+ NORTH VANCOUVER, BC +NL+ V7L 2L7";AddressList[36] = "123";AddressText[36] = "U.B.C. Health Sciences Centre Hospital +NL+ 2211 Wesbrook Mall +NL+ VANCOUVER, BC +NL+ V6T 2B5";AddressList[37] = "203";AddressText[37] = "Cowichan District Hospital +NL+ 3045 Gibbins Rd +NL+ DUNCAN, BC +NL+ V9L 1E5";AddressList[38] = "501";AddressText[38] = "Nanaimo Regional General Hospital +NL+ 1200 Dufferin Cres +NL+ NANAIMO, BC +NL+ V9S 2B7";AddressList[39] = "851";AddressText[39] = "West Coast General Hospital +NL+ 3949 Port Alberni Hwy +NL+ PORT ALBERNI, BC +NL+ V9Y 4S1";AddressList[40] = "502";AddressText[40] = "St. Joseph's General Hospital +NL+ 2137 Comox Ave +NL+ COMOX, BC +NL+ V9M 1P2";AddressList[41] = "508";AddressText[41] = "Campbell River & District General Hospital +NL+ 375 - 2nd Ave +NL+ CAMPBELL RIVER, BC +NL+ V9W 3V1";AddressList[42] = "115";AddressText[42] = "Langley Memorial Hospital +NL+ 22051 Fraser Hwy +NL+ LANGLEY, BC +NL+ V3A 4H4";AddressList[43] = "131";AddressText[43] = "Peace Arch District Hospital +NL+ 15521 Russell Ave +NL+ WHITE ROCK, BC +NL+ V4B 2R4";AddressList[44] = "202";AddressText[44] = "Victoria General Hospital +NL+ 1 Hospital Way +NL+ VICTORIA, BC +NL+ V8Z 6R5";AddressList[45] = "217";AddressText[45] = "Saanich Peninsula Hospital +NL+ 2166 Mt Newton X-Rd +NL+ SAANICHTON, BC +NL+ V8M 2B2";function changeHint(handle) {		document["HighlightLayer"].src = "../img/hint." + handle + ".gif";	document["icon" + handle].src = "../img/HospitalIcon.gif";	var AddressStr = AddressText[getIndex(handle)]	AddressStr = AddressStr.replace(" +NL+ ", "\n");	AddressStr = AddressStr.replace(" +NL+ ", "\n");	AddressStr = AddressStr.replace(" +NL+ ", "\n");	AddressStr = AddressStr.replace(" +NL+ ", "\n");	document.output.address.value = AddressStr;}function hideHint(handle) {	document["HighlightLayer"].src = "../img/spi.gif";	document.output.address.value = "";				if (!JumpedOutNotMousedOut) {				document["icon" + handle].src = "../img/BlankIcon.gif";		}		JumpedOutNotMousedOut = false;}function LinkAndHint(handle) {	JumpedOutNotMousedOut = true;	var newLocation = document.location + "";	newLocation = newLocation.replace(document.location.hash + "", "");		newLocation = newLocation + "#" + handle;		document["icon" + handle].src = "../img/HospitalIcon.gif";	document.location = newLocation;			}function getIndex(handle) {	var i = 0;	while (i <= AddressList.length) {			if (AddressList[i] == handle) return i ; 		i++;			}		return -1;}