// Mapping Software (map constants)
//
// Copyright 2012 Gary Little
//
// January 15, 2012
//

var kBoundaryFusionID = 990476; // Property boundaries
var kMunicipalFusionID = 618888; // Municipal boundaries

var kAssessmentYear = 2011; // Year for assessment data

var kProvinceCountry = "BC, Canada";

var kCopyrightNoticeBoard = "&copy; 2012 Real Estate Board of Greater Vancouver, Fraser Valley Real Estate Board and Chilliwack &amp; District Real Estate Board. All Rights Reserved.";

var kDisclaimerBoard = "NOTE: This representation is based in whole or in part on data generated by the Chilliwack &amp; District Real Estate Board, Fraser Valley Real Estate Board or Real Estate Board of Greater Vancouver which assume no responsibility for its accuracy.";

var kMLSRiconURL = kMapServerURL + "map/artwork/mlsrlogo.gif";
var kMLSRiconSmallURL = kMapServerURL + "map/artwork/mlsrlogo-small.gif";

// Base URL for MLS pictures on realtor.ca
//
var kPictureBase  = "http://images.realtor.ca/listing/reb89/highres/"; // REBGV
var kPictureBase2 = "http://images.realtor.ca/listing/reb6/highres/";  // FVREB
var kPictureBase3 = "http://images.realtor.ca/listing/reb4/highres/";  // CADREB
var kPictureBase4 = "http://images.realtor.ca/listing/reb12/highres/"; // KREB
var kPictureBase5 = "http://images.realtor.ca/listing/reb2/highres/"; // BCNREB
var kPictureBaseSold = kMapServerURL + kMapName + "/data/photos/";

// The area to be shown when the map first starts up.
// [Name, latitude, longitude, zoom level]
//
var kDefaultArea = ["Sunshine Coast", 49.57730, -123.75838, 10];

// These values are used to build the kTownFilter popup.
//
var kAreaValues = ["Gibsons", "Roberts Creek", "Sechelt", "Halfmoon Bay", "Pender", "Gambier Island", "Keats Island"];
var kAreaNames = ["", "", "", "", "Pender Harbour", "", ""];

// These values are used to build the kLowPriceFilter and kHighPriceFilter popups.
//
var kPriceBands = [100, 150, 200, 250, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 600, 650, 700, 800, 900, 1000, 1250, 1500, 1750, 2000, 3000];

// These values are used to build the kRegionSelect popup.
//
var kViewingAreas = [
	["Gibsons", 49.41220, -123.53937, 13],
	["&rarr; Langdale", 49.44279, -123.49199, 13],
	["&rarr; Upper Gibsons", 49.41689, -123.50298, 14],
	["&rarr; Lower Gibsons", 49.39790, -123.51963, 14],
	["&rarr; Gower Point", 49.39450, -123.53929, 14],
	["&rarr; Elphinstone", 49.4042, -123.5459, 14],

	["Roberts Creek", 49.42594, -123.63859, 13],
	["&rarr; Roberts Creek (East)", 49.4157, -123.6046, 13],
	["&rarr; Roberts Creek (West)", 49.4329, -123.6607, 13],

	["Sechelt", 49.49336, -123.77276, 12],
	["&rarr; Davis Bay / Wilson Creek", 49.4479, -123.7253, 14],
	["&rarr; Selma Park", 49.4615, -123.7389, 14],
	["&rarr; Sechelt Village", 49.4756, -123.7631, 14],
	["&rarr; Porpoise Bay", 49.5033, -123.7732, 13],
	["&rarr; Sandy Hook / Tuwanek", 49.5304, -123.7725, 13],
	["&rarr; West Sechelt", 49.4745, -123.8048, 14],

	["Halfmoon Bay", 49.51072, -123.91891, 12],
	["&rarr; Welcome Woods", 49.4789, -123.8778, 14],
	["&rarr; Redrooffs", 49.5075, -123.9260, 14],
	["&rarr; Secret Cove", 49.5296, -123.9488, 14],

	["Pender Harbour", 49.62517, -124.02534, 13],
	["&rarr; Middlepoint", 49.5774, -124.0144, 13],
	["&rarr; Madeira Park", 49.6148, -124.0393, 14],
	["&rarr; Garden Bay", 49.6440, -124.0334, 13],
	["&rarr; Sakinaw Lake", 49.6965, -124.0508, 12],
	["&rarr; Egmont", 49.7445, -123.9733, 13],

	["Gambier Island", 49.48396, -123.40324, 12],
	["Keats Island", 49.39673, -123.45766, 14],
	["Nelson Island", 49.7094, -124.1290, 11]
];

var kMapFamily = [
	["mapsc", "Sunshine Coast (Homes)", new google.maps.LatLng(49.48648, -123.63424)],
	["mapland", "Sunshine Coast (Land)", new google.maps.LatLng(49.48648, -123.54086)],
	["mapsq", "Squamish - Whistler", new google.maps.LatLng(50.11596, -122.95932)],
	["mapsq", "Squamish - Whistler", new google.maps.LatLng(49.71138, -123.14791)],
	["mapvns", "Bowen Island", new google.maps.LatLng(49.37323, -123.36979)],
	["mapvns", "West Vancouver (Houses)", new google.maps.LatLng(49.36008, -123.20137)],
	["mapvnsa", "West Vancouver (Condos)", new google.maps.LatLng(49.36008, -123.22231)],
	["mapvns", "North Vancouver (Houses)", new google.maps.LatLng(49.35092, -123.01494)],
	["mapvnsa", "North Vancouver (Condos)", new google.maps.LatLng(49.35092, -123.00653)],
	["mapdt", "Vancouver Downtown", new google.maps.LatLng(49.28249, -123.11811)],
	["mapvw", "Vancouver Westside (Houses)", new google.maps.LatLng(49.26079, -123.13866)],
	["mapvwa", "Vancouver Westside (Condos)", new google.maps.LatLng(49.26382, -123.15291)],
	["mapve", "Vancouver Eastside (Houses)", new google.maps.LatLng(49.24190, -123.05816)],
	["mapvea", "Vancouver Eastside (Condos)", new google.maps.LatLng(49.25234, -123.08577)],
	["mapby", "Burnaby (Houses)", new google.maps.LatLng(49.24357, -122.96731)],
	["mapbya", "Burnaby (Condos)", new google.maps.LatLng(49.23849, -122.95006)],
	["mapnw", "New Westminster", new google.maps.LatLng(49.20571, -122.91096)],
	["mappm", "Port Moody - Anmore - Belcarra", new google.maps.LatLng(49.28077, -122.82758)],
	["mapcq", "Coquitlam - Port Coquitlam (Houses)", new google.maps.LatLng(49.27628, -122.79720)],
	["mapcqa", "Coquitlam - Port Coquitlam (Condos)", new google.maps.LatLng(49.26744, -122.77647)],
	["mapmr", "Pitt Meadows - Maple Ridge (Houses)", new google.maps.LatLng(49.22126, -122.66412)],
	["mapmra", "Pitt Meadows - Maple Ridge (Condos)", new google.maps.LatLng(49.21666, -122.62257)],
	["mapri", "Richmond (Houses)", new google.maps.LatLng(49.17725, -123.09695)],
	["mapria", "Richmond (Condos)", new google.maps.LatLng(49.17027, -123.08696)],
	["mapld", "Delta - Ladner - Tsawwassen", new google.maps.LatLng(49.01803, -123.06866)],
	["mapld", "Delta - Ladner - Tsawwassen", new google.maps.LatLng(49.09024, -123.05703)],
	["mapld", "Delta - Ladner - Tsawwassen", new google.maps.LatLng(49.14845, -122.91254)],
	["mapfv-northsurrey", "North Surrey (Houses)", new google.maps.LatLng(49.19882, -122.83408)],
	["mapfva-northsurrey", "North Surrey (Condos)", new google.maps.LatLng(49.19883, -122.82296)],
	["mapfv-surrey", "Central Surrey (Houses)", new google.maps.LatLng(49.14096, -122.82340)],
	["mapfva-surrey", "Central Surrey (Condos)", new google.maps.LatLng(49.14082, -122.84571)],
	["mapfv-cloverdale", "Cloverdale", new google.maps.LatLng(49.12560, -122.70615)],
	["mapfv-southsurrey", "South Surrey (Houses)", new google.maps.LatLng(49.04601, -122.81790)],
	["mapfva-southsurrey", "South Surrey (Condos)", new google.maps.LatLng(49.04570, -122.84854)],
	["mapfv-langley", "Langley (Houses)", new google.maps.LatLng(49.08718, -122.59478)],
	["mapfva-langley", "Langley (Condos)", new google.maps.LatLng(49.09597, -122.62456)],
	["mapfv-mission", "Mission", new google.maps.LatLng(49.13308, -122.31598)],
	["mapfv-abbotsford", "Abbotsford (Houses)", new google.maps.LatLng(49.05109, -122.31517)],
	["mapfva-abbotsford", "Abbotsford (Condos)", new google.maps.LatLng(49.04897, -122.29281)]
];

// Flags for controlling whether various features are to be activated.
//
var kShowCoordinates = true;
var kShowExtraNames = true;
var kShowTraffic = false;
var kLogClicks = true;
var kDontSearchDesc = false;
var kShowMapFamily = false;

