// config options
var bCollapseSelectorOnClick = false;
var bCollapseSelectorOnStart = false;

var nPINHEIGHT_OFFSET = 50;
var nPINWIDTH_OFFSET = 10;
var nMAPWIDTH = 931;
var nMAPHEIGHT = 430; // 375;
var nLOCATIONDATA_WIDTH = 269;
var nLOCATIONDATA_MED_WIDTH = 494;

var nNUMPOINTS = 49;
var locPt = [nNUMPOINTS];

// [ Title, x, y, sector description, client, description (optional), dispaly width (0 = default, 1 = medium width), sector type, URL (optional) ]
// START: Data comes from spreadsheet Column Q
locPt[0] = ['Darwin', 431, 82, 'BIS Office', 'N/A', 'Central maintenance resource for Bis Industries fleet', 1, 'bisoffice', '#'];
locPt[1] = ['Frances Creek', 456, 86, 'Iron Ore', 'Territory Resources', 'Load & haul, Road maintenance', 0, 'ironore', '#'];
locPt[2] = ['Groote Eylandt', 514, 89, 'Metals and Minerals', 'GEMCO', 'On road load and haul', 0, 'metalsminerals', '#'];
locPt[3] = ['Union Reef', 447, 95, 'Gold', 'Crocodile Gold', 'Load & haul ', 0, 'gold', '#'];
locPt[4] = ['Bootu Creek', 495, 113, 'Metals and Minerals', 'OM Manganese', 'Load & haul, Train loading operation', 0, 'metalsminerals', '#'];
locPt[5] = ['Mackay', 677, 133, 'BIS Office', 'N/A', 'Head Office', 0, 'bisoffice', '#'];
locPt[6] = ['Burton', 684, 136, 'Coal', 'Thiess/Peabody', 'Load & haul of product and raw coal', 0, 'coal', '#'];
locPt[7] = ['Port Hedland', 257, 137, 'Metals and Minerals', 'Newcrest', 'Two way load & haul of copper concentrate and supplies', 0, 'metalsminerals', '#'];
locPt[8] = ['Lady Annie', 572, 138, 'Metals and Minerals', 'China Sci-tech', 'Load & Haul', 0, 'metalsminerals', '#'];
locPt[9] = ['Newlands', 688, 138, 'Coal', 'Xstrata', 'Range of load & haul services ', 0, 'coal', '#'];
locPt[10] = ['Granites', 431, 139, 'Gold', 'Newmont', 'Load & haul ', 0, 'gold', '#'];
locPt[11] = ['Moranbah North', 694, 142, 'Coal', 'Anglo', 'Site services and maintenance', 0, 'coal', '#'];
locPt[12] = ['Telfer', 285, 147, 'Metals and Minerals', 'Newcrest', 'Two way load & haul of copper concentrate and supplies', 0, 'metalsminerals', '#'];
locPt[13] = ['Cloud Break', 258, 153, 'Iron Ore', 'FMG', 'Load & haul', 0, 'ironore', '#'];
locPt[14] = ['Western Turner Syncline', 233, 154, 'Iron Ore', 'NRW/Rio Tinto', 'Load & haul of raw iron ore', 0, 'ironore', '#'];
locPt[15] = ['Christmas Creek', 263, 156, 'Iron Ore', 'FMG', 'Load & haul utilsing 300 tonne dual powered road trains and 140t Pit Haulers', 0, 'ironore', '#'];
locPt[16] = ['Bowen Basin Underground Coalfields', 673, 162, 'Underground Region', 'N/A', 'Underground equipment and longwall hire', 0, 'undergroundregion', '#'];
locPt[17] = ['Leinster', 303, 177, 'Metals and Minerals', 'BHP', 'Haulage of wet & dry Nickel concentrate, acid distribution, rail load out facility', 0, 'metalsminerals', '#'];
locPt[18] = ['Murrin Murrin', 316, 185, 'Metals and Minerals', 'Glencore', 'Range of site services, load & haul, crushing, acid handling, export services', 0, 'metalsminerals', '#'];
locPt[19] = ['Brisbane', 761, 187, 'BIS Office', 'N/A', 'Head Office', 0, 'bisoffice', '#'];
locPt[20] = ['Leonora', 309, 187, 'Metals and Minerals', 'BHP', 'Haulage of wet & dry Nickel concentrate, acid distribution, rail load out facility', 0, 'metalsminerals', '#'];
locPt[21] = ['Granny Smith', 322, 188, 'Gold', 'Barrick Gold', 'Load & haul', 0, 'gold', '#'];
locPt[22] = ['Muswellbrook', 761, 204, 'Logistics', 'Macquarie Generation', 'Fleet Services operation', 0, 'logistics', '#'];
locPt[23] = ['Kalgoorlie', 297, 204, 'Metals and Minerals', 'BHP', 'Site services at KNS, materials handling', 0, 'metalsminerals', '#'];
locPt[24] = ['Carina', 297, 204, 'Iron Ore', 'Polaris', 'Load & haul ', 0, 'ironore', '#'];
locPt[25] = ['St Ives', 305, 204, 'Gold', 'Gold Fields Australia', 'Load & haul', 0, 'gold', '#'];
locPt[26] = ['Thornton', 769, 211, 'BIS Office', 'N/A', 'Head Office', 0, 'bisoffice', '#'];
locPt[27] = ['Hunter Valley Underground Coalfields', 733, 211, 'Underground Region', 'N/A', 'Underground equipment and longwall hire', 0, 'undergroundregion', '#'];
locPt[28] = ['Muchea', 215, 216, 'Metals and Minerals', 'Tiwest', 'On road haulage of mineral sands', 0, 'metalsminerals', '#'];
locPt[29] = ['Balcatta', 207, 227, 'Logistics', 'Peters & Brownes', 'On road FMCG haulage', 0, 'logistics', '#'];
locPt[30] = ['Whyalla', 535, 229, 'Steel', 'OneSteel', 'Scrap Handling services; Bulk Materials Handling; Shipping services; Mining and Crushing services', 0, 'steel', '#'];
locPt[31] = ['Perth', 208, 231, 'BIS Office', 'N/A', 'Head Office', 0, 'bisoffice', '#'];
locPt[32] = ['Welshpool', 212, 231, 'BIS Office', 'N/A', 'Head Office', 0, 'bisoffice', '#'];
locPt[33] = ['Sydney', 762, 233, 'BIS Office', 'N/A', 'Head Office', 1, 'bisoffice', '#'];
locPt[34] = ['Iron Knight', 529, 233, 'Iron Ore', 'OneSteel', 'Crushing, screening, stockpile management and train loading', 0, 'ironore', '#'];
locPt[35] = ['Port Pirie', 546, 237, 'Metals and Minerals', 'Nyrstar', 'Site services including load & haul, crushing, screening, import and export services', 0, 'metalsminerals', '#'];
locPt[36] = ['Kwinana', 206, 239, 'Metals and Minerals', 'Glencore', 'Train loading and export facility', 0, 'metalsminerals', '#'];
locPt[37] = ['Illawarra Underground Coalfields', 722, 241, 'Underground Region', 'N/A', 'Underground equipment and longwall hire', 0, 'undergroundregion', '#'];
locPt[38] = ['Brunswick', 205, 245, 'Logistics', 'Peters & Brownes', 'On road FMCG haulage', 0, 'logistics', '#'];
locPt[39] = ['Port Kembla', 737, 247, 'Steel', 'BlueScope', 'Pulverised Coal Injection Plant', 0, 'steel', '#'];
locPt[40] = ['Port Kembla', 747, 249, 'Coal', 'N/A', 'Specialised Equipment Services', 0, 'coal', '#'];
locPt[41] = ['Boddington', 210, 250, 'Metals and Minerals', 'Newmont', 'On road haulage of copper concentrate', 0, 'metalsminerals', '#'];
locPt[42] = ['Devonport', 690, 325, 'Logistics', 'N/A', 'Quarrying', 0, 'logistics', '#'];
locPt[43] = ['Burnie', 669, 326, 'Logistics', 'Toll', 'Forklift hire and maintenance services', 0, 'logistics', '#'];
locPt[44] = ['Bell Bay', 700, 327, 'Logistics', 'BHP Billiton', 'Site services', 0, 'logistics', '#'];
locPt[45] = ['St Helens', 721, 328, 'Logistics', 'N/A', 'Quarrying', 0, 'logistics', '#'];
locPt[46] = ['East Ridgley', 673, 333, 'Logistics', 'N/A', 'Quarrying', 0, 'logistics', '#'];
locPt[47] = ['Launceston', 709, 334, 'Logistics', 'N/A', 'Quarrying', 0, 'logistics', '#'];
locPt[48] = ['Boyer', 715, 345, 'Logistics', 'Norske Skog', 'Wood chipping facility', 0, 'logistics', '#'];




// END: Data comes from spreadsheet Column Q



var nNUMZOOMREGIONS = 5;
var nZM_NAME = 0;
var nZM_ID = 1;
var nZM_X = 2;
var nZM_Y = 3;
var nZM_WIDTH = 4;
var nZM_HEIGHT = 5;
var nZM_NUMPOINTS = 6;
var nZM_POINTSLIST = 7;
var nZM_SECTORLIST = 8;
var nZM_EXTHEIGHT = 9;

// each zoomRegion element is made up of: descr, ID, lft, top, width, height, number of location points to zoom, array of point ID's, array of sectors that will use the zoom region (NOT USED), final height of the zoomed in (active) region
var zoomRegion = 	[	["Perth Metro Region", 	0, 201, 194,  55, 105,  7, [28,29,31,36,32,38,41], 	[], 140], 
						["Tasmanian Region", 	1, 660, 315, 100,  80, 	7, [42,43,44,45,46,47,48], 		[], 120],
						["Goldfields", 			2, 301, 180,  55,  70, 	7, [17,20,18,21,23,24,25],	 		[],	120], 
						["Port Hedland", 		3, 233, 130,  85,  70, 	5, [14,7,13,15,12],	 		[],	120],
						["North Queensland", 	4, 660, 116,  85,  95, 	5, [6,8,9,11,16],	 		[],	130]
					];


// Title, Description, sector type, delay duration, drop speed duration, sector img (optional), sector URL (optional)
// The initial speed and duration values can be 200, 300 if there's issues with slow machines. Otherwise 20, 350 is ideal if machines can handle it 
var sector = [	["", "", "", 30, 300, "", "" ],
	["Bis Industries", "Bis Industries provides logistical support solutions to the resource sector (coal, iron ore, nickel and copper miners/processors) and to steel makers. Customers deem these service solutions non-core, but generally critical to their extraction and downstream processing activities.", "bisoffice", 40, 350, "", "" ],
	["Metals and Minerals", "Bis Industries' critical services include sulphuric acid and heavy mineral concentrate distribution, nickel ore support services and materials handling." , "metalsminerals", 20, 350, "../locationmap/images/locationmap/sample-content/mining-thumb.jpg", "http://www.bisindustries.com/Forms/aboutmetals.aspx" ],
	["Logistics", "Bis Industries provides various vital industrial logistic services including cement distribution, milk collection, and the distribution of fast moving consumer goods.", "logistics", 20, 350, "", ""  ],
	["Oil & Gas", "These essential services include project and materials management, transport and logistics services.", "oilgas", 20, 350, "", ""  ],
	["Steel", "Bis Industries' critical services include slag, scrap and bulk materials handling, shipping services and ore haulage. We also operate our own pulverised coal injection plant.", "steel", 20, 350, "../locationmap/images/locationmap/sample-content/steel-thumb.jpg", "http://www.bisindustries.com/Forms/aboutsteel.aspx"  ],
	["Gold", "Bis Industries' critical services include gold handling services and ore dump haulage. We also operate our own alluvial separation plant.", "gold", 20, 350, "", ""  ],
	["Iron Ore", "Bis Industries focuses on downstream processing and on-site haulage. By outsourcing these critical operations to BIS, customers can generate more value from their core activity.", "ironore", 20, 350, , "", "http://www.bisindustries.com/Forms/aboutironore.aspx"  ],
	["Coal", "Bis Industries' provides services and equipment that are crucial to coal mines, such as coal handling, haulage, and underground support logistics.", "coal", 20, 350, "../locationmap/images/locationmap/sample-content/coal-thumb.jpg", "http://www.bisindustries.com/Forms/aboutcoal.aspx" ],
	["Underground Region", "Bis Industries' focuses on underground processing and mine site tunnel haulage. By outsourcing these critical operations to BIS, customers can generate more value from their core activity.", "undergroundregion", 20, 350, "", "" ]
]
