﻿$(document).ready(function(){

    //$("area").attr("href","#");
    $("area").removeAttr("href");
    $("#clear_all").removeAttr("href");
    $("#select_all").removeAttr("href");

 });

var chosen_fields = new Object();
var raised = "position: absolute; z-index: 200;";
var lowered = "position: absolute; display: none;z-index: 1;";
var clear_raised = "position: absolute; z-index: 1000;";
var current = "wpg";
var base_raised = "position:absolute; z-index:10;";
var neighbours = new Object();
var neighbours_display = new Object();


var neighbour_list = get_neighbours();


 
 function display_neighbours() {
	var list = Array();
	var j=0;
	for (i in neighbours) {
		list[j] = i;
		j++;
	}
	var display = list.join(", ");   
	$("#neighbourhoods").html(display);
    //var display = neighbours.join(",");
    //console.log(display);
    //return display;
}

function add_neighbourhood(img, click) {

    var areas = img.split(",");
    for (i in areas) {
        if (neighbour_list[areas[i].toUpperCase()]) {
              neighbours[neighbour_list[areas[i].toUpperCase()]] = neighbour_list[areas[i].toUpperCase()];
        }
    }
    display_neighbours();
 }

function remove_neighbourhood(img, click) {
    var areas = img.split(",");
    for (i in areas) {
        delete(neighbours[neighbour_list[areas[i].toUpperCase()]]);
    }
    display_neighbours();
}

function clear_all() {

  for (var chosen in chosen_fields) {
    var element = document.getElementById(chosen);
    $(element).attr("style",lowered);
    delete(chosen_fields[chosen]);
  }
  neighbours = new Object();
  display_neighbours();
  $("#search_query").val("");
  return false;
}

function select_all() {

    clear_all();
    $("#" + current + "_clickable div").each(function(i) {
        toggle(this.id);
    });

}

function make_active(map) {
    $("#" + current + "_search").removeClass(current + "_visible");
    $("#" + current + "_search").addClass(current + "_hidden");
    $("#" + map + "_search").removeClass(map + "_hidden");
    $("#" + map + "_search").addClass(map + "_visible");
    $("#" + current + "_clear").attr("style", lowered);  
    var element = document.getElementById(map + "_radio");
    $(element).attr("checked","checked");
         
        
    $("#" + current + "_base").attr("style",base_raised);    
    $("#" + map + "_clear").attr("style", clear_raised);
    for (i in chosen_fields) {
        delete(chosen_fields[i]);
		hover_lower(i);
	}
    $("#search_query").val("");
    
    current = map;

    //$("#" + current).attr
    //wpg, rural, province
  if(map == "wpg")
  {
   document.getElementById("wpgDD_search").style.display = "block"
   document.getElementById("ruralDD_search").style.display = "none"
   document.getElementById("provinceDD_search").style.display = "none"
  }
  else if (map =="rural")
  {
   document.getElementById("wpgDD_search").style.display = "none"
   document.getElementById("ruralDD_search").style.display = "block"
   document.getElementById("provinceDD_search").style.display = "none"
  }
  else
  {
   document.getElementById("wpgDD_search").style.display = "none"
   document.getElementById("ruralDD_search").style.display = "none"
   document.getElementById("provinceDD_search").style.display = "block"
  }
}

function hover_raise(img) {
	var element;
	element = document.getElementById(img);
	$(element).attr("style", raised);
	add_neighbourhood(img);
}

function hover_lower(img) {
	if (chosen_fields[img] != img) {
		var element;
		element = document.getElementById(img);
		$(element).attr("style", lowered);
		remove_neighbourhood(img);
	}
}

function toggle(img) {
	var element;
	element = document.getElementById(img);
	if (chosen_fields[img] != img) {
		chosen_fields[img] = img;
		$(element).attr("style", raised);
		add_neighbourhood(img);
	} else {
		delete(chosen_fields[img]);
		$(element).attr("style", lowered);
		remove_neighbourhood(img);
	}
	var j = 0;
	var search_list = Array();
	for (i in chosen_fields) {
		search_list[j] = i;
		j++;
	}
	$("#search_query").val(search_list.join(","));
	return false;
}    

function unCheck_all()
{
   document.getElementById(res_id).checked = false; 
   document.getElementById(farm_id).checked = false; 
   document.getElementById(condo_id).checked = false; 
   document.getElementById(com_id).checked = false; 
   document.getElementById(radio_no).checked = false; 
   document.getElementById(radio_yes).checked = false; 
}

function dropdown(selectedVal)
{
  clear_all();
  unCheck_all();
    
    switch(selectedVal)
    {
        case "ResNW":
        { 
          document.getElementById(res_id).checked = true;
          toggle('4h,4j,4k,4l')
          toggle('4a,4b,4c')
          toggle('4d,4e,4f,4g')
          toggle('3p')
          break;
        }
        case "ResEW":  
        {
          document.getElementById(res_id).checked = true;
          toggle('3a,3b,3c,3d,3e')
          toggle('3f,3g,3h,3j')
          toggle('3k,3l,3m,3n')
          toggle('2g,2h,2j')
          break;
        }
        case "ResSW":  
        {
          document.getElementById(res_id).checked = true;
          toggle('1j,1jw,1k,1l,1p,1q,1r,1s')
          toggle('2c,2d,2e,2f')
          toggle('2m')
         break;
        }
        case "ResWW":  
        {
          document.getElementById(res_id).checked = true;
          toggle('5w')
          toggle('1w')
          toggle('5j')
          toggle('5d')
          toggle('5g,5h')
          toggle('1f,1g,1h,1n')
          toggle('5e,5f')
          toggle('1c,1d,1e,1m')
          break;
        }
        case "ResDW":  
        {
          document.getElementById(res_id).checked = true;
          toggle('9a')
          toggle('2a,2b')
          toggle('1a,1aw,1b,1bw')
          toggle('5a,5b,5c')
          break;
        }
        case "ComW":  
        {
          document.getElementById(com_id).checked = true;
          /*toggle('5w')
          toggle('1w')
          toggle('5j')
          toggle('5d')
          toggle('5g,5h')
          toggle('1f,1g,1h,1n')
          toggle('5e,5f')
          toggle('1c,1d,1e,1m')
          */
          select_all();
          break;
        }
        case "ConW":  
        {
          document.getElementById(condo_id).checked = true;
          select_all()
          break;
        }
        case "ResNR":  
        {
          document.getElementById(res_id).checked = true;
          toggle('R12')
          toggle('R13')
          toggle('R02')
          toggle('R03')
          toggle('R14')
          toggle('R15')
          break;
        }
        case "ResSR":  
        {
          document.getElementById(res_id).checked = true;
          toggle('R08')
          toggle('R07')
          toggle('R05')
          toggle('R06')
          break;
        }
        case "ResWR":  
        {
          document.getElementById(res_id).checked = true;
          toggle('R11')
          toggle('R10')
          break;
        }
        case "ResER":  
        {
          document.getElementById(res_id).checked = true;
          toggle('R04')
          break;
        }
        case "ComR":  
        {
          document.getElementById(com_id).checked = true;
          select_all()
          break;
        }
         case "ConR":  
        {
          document.getElementById(condo_id).checked = true;
          select_all()
          break;
        }
         case "FarR":  
        {
          document.getElementById(farm_id).checked = true;
          select_all()
          break;
        }
        
        case "ResNP":  
        {
          document.getElementById(res_id).checked = true;
          toggle('R31')
          toggle('R19')
          toggle('R21')
          toggle('R41')
          toggle('R42')
          toggle('R30')
          break;
        }
        case "ResSP":  
        {
          document.getElementById(res_id).checked = true;
          toggle('R17')
          toggle('R16')
          toggle('R35')
          toggle('R34')
          toggle('R33')
          break;
        }
        case "ResWP":  
        {
          document.getElementById(res_id).checked = true;
          toggle('R32')
          toggle('R36')
          toggle('R37')
          break;
        }
        case "ResEP":  
        {
          document.getElementById(res_id).checked = true;
          toggle('R18')
          toggle('R29')
          break;
        }
        case "ComP":  
        {
          document.getElementById(com_id).checked = true;
          select_all()
          break;
        }
         case "ConP":  
        {
          document.getElementById(condo_id).checked = true;
          select_all()
          break;
        }
         case "FarP":  
        {
          document.getElementById(farm_id).checked = true;
          select_all()
          break;
        }
        default:
        {
          clear_all();
          unCheck_all();
        } 
    }
    //document.forms.aspnetForm.submit();
}

function setRadio(map)
{  
    document.getElementById(map+"_radio").checked = true;
    make_active(map);
}

function get_neighbours() {

    var neighbourList = new Array()
    neighbourList['R03'] = "Cloverleaf / Golden Bay / Green Oak / Green Bay / Greenwald / Ladywood / Mars Sand Hills / St. Ouen / Tyndall Acres";
    neighbourList['R02'] = "Bridgeview Estates / Birdshill Mobile Home Park / Cooks Creek / East Selkirk / Gonor / Goodman Subdivision / Highland Glen / Kirkness / Narol / South St Clements";
    neighbourList['R10'] = "Elie / Beaudry Park / Dacotah / Lido Plage";
    neighbourList['R05'] = "Serenity Trails";
    neighbourList['R04'] = "Aspen Lakes / Anola / Birds Hill Park / Cooks Creek / Dugald / Garven Heights / Glass / Garven Road / Hazelridge / Nourse / Oakbank / Pine Ridge / Springfield / Sage Place / Vivan";
    neighbourList['R08'] = "Sanford / La Salle";
    neighbourList['R13'] = "Breezy Point / Cloverdale / Dunhartwood / Dunara / Fort Garry Estates / Houghton Bay / Highway Gardens / Larters / Little Britain / Liss Crossing / Mapleton / Medicine Creek / Muckle Creek / Netley Creek / Parkdale / Petersfield Park / Rivers Edge / Rossdale / St Andrews on the Red / Shindler Subdivision / Wavey Creek";
    neighbourList['R11'] = "Grosse Isle / Gordon / Lilyfield / Meadows / Pigeon Lake / Rosser / St. Francois Xavier";
    neighbourList['R07'] = "Crow Wing / Fifth Avenue Estates / La Coulee";
    neighbourList['R06'] = "Paradise Village";
    neighbourList['R12'] = "Argyle / Balmoral / Grosse Isle / Gunton / Lake Francis / Marquette / RM of Rockwood / RM of Woodlands / Stony Mountain / Stonewall / Warren / Woodlands / Woodroyd";
    neighbourList['R14'] = "Town of Selkirk / Creekside Estates / Daerwood Village / Woodlands";
    neighbourList['R15'] = "Lister Rapids / Middle Church / River Crest / Riverdale / West. St. Paul";
    neighbourList['9A'] = "Central / Chinatown / Downtown / East Exchange / Exchange / The Forks / West Exchange / Waterfront";
    neighbourList['3P'] = "Birds Hill / East St Paul / Glengarry Park / North Hill Park / Pritchard Farm / Pine Ridge / River East Estate / Silver Fox Estates";
    neighbourList['3A'] = "East Kildonan / Elmwood / Bronx Park / Elmwood Park / Fraser's Grove / Valhalla / North Kildonan / Valley Gardens";
    neighbourList['3B'] = "East Kildonan / Elmwood / Bronx Park / Elmwood Park / Fraser's Grove / Valhalla / North Kildonan / Valley Gardens";
    neighbourList['3C'] = "East Kildonan / Elmwood / Bronx Park / Elmwood Park / Fraser's Grove / Valhalla / North Kildonan / Valley Gardens";
    neighbourList['3D'] = "East Kildonan / Elmwood / Bronx Park / Elmwood Park / Fraser's Grove / Valhalla / North Kildonan / Valley Gardens";
    neighbourList['3E'] = "East Kildonan / Elmwood / Bronx Park / Elmwood Park / Fraser's Grove / Valhalla / North Kildonan / Valley Gardens";
    neighbourList['3F'] = "North Kildonan / River East / Algonquin Park / Algonquin Estates / All Season Estates / Eaglemere / Oakwood Estates / Sun Valley / Harbour View South";
    neighbourList['3G'] = "North Kildonan / River East / Algonquin Park / Algonquin Estates / All Season Estates / Eaglemere / Oakwood Estates / Sun Valley / Harbour View South";
    neighbourList['3H'] = "North Kildonan / River East / Algonquin Park / Algonquin Estates / All Season Estates / Eaglemere / Oakwood Estates / Sun Valley / Harbour View South";
    neighbourList['3J'] = "North Kildonan / River East / Algonquin Park / Algonquin Estates / All Season Estates / Eaglemere / Oakwood Estates / Sun Valley / Harbour View South";
    neighbourList['3K'] = "Kildonan Meadows / Lakeside Meadows / Misson Gardens / Canterbury Park / South Transcona / Transcona";
    neighbourList['3L'] = "Kildonan Meadows / Lakeside Meadows / Misson Gardens / Canterbury Park / South Transcona / Transcona";
    neighbourList['3M'] = "Kildonan Meadows / Lakeside Meadows / Misson Gardens / Canterbury Park / South Transcona / Transcona";
    neighbourList['3N'] = "Kildonan Meadows / Lakeside Meadows / Misson Gardens / Canterbury Park / South Transcona / Transcona";
    neighbourList['4H'] = "Foxwarren Estates / Maples / Maple Glen / Mandalay North / Mandalay West / North Meadows / Seven Oaks Crossing / Tyndall Park / Garden Grove / Mandalay North / Mandalay West / Inkster Gardens / Meadows West / Meadowview / North Meadows / Tyndall Narrows";
    neighbourList['4J'] = "Foxwarren Estates / Maples / Maple Glen / Mandalay North / Mandalay West / North Meadows / Seven Oaks Crossing / Tyndall Park / Garden Grove / Mandalay North / Mandalay West / Inkster Gardens / Meadows West / Meadowview / North Meadows / Tyndall Narrows";
    neighbourList['4K'] = "Foxwarren Estates / Maples / Maple Glen / Mandalay North / Mandalay West / North Meadows / Seven Oaks Crossing / Tyndall Park / Garden Grove / Mandalay North / Mandalay West / Inkster Gardens / Meadows West / Meadowview / North Meadows / Tyndall Narrows";
    neighbourList['4L'] = "Foxwarren Estates / Maples / Maple Glen / Mandalay North / Mandalay West / North Meadows / Seven Oaks Crossing / Tyndall Park / Garden Grove / Mandalay North / Mandalay West / Inkster Gardens / Meadows West / Meadowview / North Meadows / Tyndall Narrows";
    neighbourList['4A'] = "North End / Point Douglas / Shaughnessy Heights";
    neighbourList['4B'] = "North End / Point Douglas / Shaughnessy Heights";
    neighbourList['4C'] = "North End / Point Douglas / Shaughnessy Heights";
    neighbourList['4D'] = "Margaret Park / West Kildonan / Riverbend / Riverdale / River Grove / Amber Trails / Garden City / Old Kildonan / Parkway Village / Garden City";
    neighbourList['4E'] = "Margaret Park / West Kildonan / Riverbend / Riverdale / River Grove / Amber Trails / Garden City / Old Kildonan / Parkway Village / Garden City";
    neighbourList['4F'] = "Margaret Park / West Kildonan / Riverbend / Riverdale / River Grove / Amber Trails / Garden City / Old Kildonan / Parkway Village / Garden City";
    neighbourList['4G'] = "Margaret Park / West Kildonan / Riverbend / Riverdale / River Grove / Amber Trails / Garden City / Old Kildonan / Parkway Village / Garden City";
    neighbourList['2M'] = "Ramblewood / St Vital / South St Vital";
    neighbourList['2A'] = "St Boniface / Norwood / Norwood Flats";
    neighbourList['2B'] = "St Boniface / Norwood / Norwood Flats";
    neighbourList['2C'] = "Brights Oaks / Elm Park / Norberry / Normand Park / Pulberry / River Pointe / St Vital / Van Hull Estates / Meadowood / River Park South / Dakota Crossing / River Park South / South Glen";
    neighbourList['2D'] = "Brights Oaks / Elm Park / Norberry / Normand Park / Pulberry / River Pointe / St Vital / Van Hull Estates / Meadowood / River Park South / Dakota Crossing / River Park South / South Glen";
    neighbourList['2E'] = "Brights Oaks / Elm Park / Norberry / Normand Park / Pulberry / River Pointe / St Vital / Van Hull Estates / Meadowood / River Park South / Dakota Crossing / River Park South / South Glen";
    neighbourList['2F'] = "Brights Oaks / Elm Park / Norberry / Normand Park / Pulberry / River Pointe / St Vital / Van Hull Estates / Meadowood / River Park South / Dakota Crossing / River Park South / South Glen";
    neighbourList['2G'] = "Niakwa Park / Windsor Park / Niakwa Place / Southdale / Island Lakes / Royalwood / Sage Creek / Southland Park";
    neighbourList['2H'] = "Niakwa Park / Windsor Park / Niakwa Place / Southdale / Island Lakes / Royalwood / Sage Creek / Southland Park";
    neighbourList['2J'] = "Niakwa Park / Windsor Park / Niakwa Place / Southdale / Island Lakes / Royalwood / Sage Creek / Southland Park";
    neighbourList['1F'] = "Assinboine Wood / Charleswood / South Charleswood / River West Park / Westdale";
    neighbourList['1G'] = "Assinboine Wood / Charleswood / South Charleswood / River West Park / Westdale";
    neighbourList['1H'] = "Assinboine Wood / Charleswood / South Charleswood / River West Park / Westdale";
    neighbourList['1N'] = "Assinboine Wood / Charleswood / South Charleswood / River West Park / Westdale";
    neighbourList['1J'] = "Fort Garry / East Fort Garry / West Fort Garry / Wildwood / Fort Richmond / University Heights / Fort Whyte / Waverly Heights / Whyte Ridge / Grandmont Park / Richmond Lakes / St Norbert / Fairfield Park / Waverly West / Richmond West";
    neighbourList['1JW'] = "Fort Garry / East Fort Garry / West Fort Garry / Wildwood / Fort Richmond / University Heights / Fort Whyte / Waverly Heights / Whyte Ridge / Grandmont Park / Richmond Lakes / St Norbert / Fairfield Park / Waverly West / Richmond West";
    neighbourList['1K'] = "Fort Garry / East Fort Garry / West Fort Garry / Wildwood / Fort Richmond / University Heights / Fort Whyte / Waverly Heights / Whyte Ridge / Grandmont Park / Richmond Lakes / St Norbert / Fairfield Park / Waverly West / Richmond West";
    neighbourList['1L'] = "Fort Garry / East Fort Garry / West Fort Garry / Wildwood / Fort Richmond / University Heights / Fort Whyte / Waverly Heights / Whyte Ridge / Grandmont Park / Richmond Lakes / St Norbert / Fairfield Park / Waverly West / Richmond West";
    neighbourList['1P'] = "Fort Garry / East Fort Garry / West Fort Garry / Wildwood / Fort Richmond / University Heights / Fort Whyte / Waverly Heights / Whyte Ridge / Grandmont Park / Richmond Lakes / St Norbert / Fairfield Park / Waverly West / Richmond West";
    neighbourList['1Q'] = "Fort Garry / East Fort Garry / West Fort Garry / Wildwood / Fort Richmond / University Heights / Fort Whyte / Waverly Heights / Whyte Ridge / Grandmont Park / Richmond Lakes / St Norbert / Fairfield Park / Waverly West / Richmond West";
    neighbourList['1S'] = "Fort Garry / East Fort Garry / West Fort Garry / Wildwood / Fort Richmond / University Heights / Fort Whyte / Waverly Heights / Whyte Ridge / Grandmont Park / Richmond Lakes / St Norbert / Fairfield Park / Waverly West / Richmond West";
    neighbourList['1A'] = "Fort Rouge / Riverview / Lord Roberts / Crescentwood / Osborne Village";
    neighbourList['1AW'] = "Fort Rouge / Riverview / Lord Roberts / Crescentwood / Osborne Village";
    neighbourList['1B'] = "Fort Rouge / Riverview / Lord Roberts / Crescentwood / Osborne Village";
    neighbourList['1BW'] = "Fort Rouge / Riverview / Lord Roberts / Crescentwood / Osborne Village";
    neighbourList['1W'] = "Assiniboine Landing / Breezy Bend / Headingley South / Marston Meadows";
    neighbourList['1C'] = "Armstrong Point / River Heights / River Heights North / Tuxedo / Linden Ridge / Linden Woods";
    neighbourList['1D'] = "Armstrong Point / River Heights / River Heights North / Tuxedo / Linden Ridge / Linden Woods";
    neighbourList['1E'] = "Armstrong Point / River Heights / River Heights North / Tuxedo / Linden Ridge / Linden Woods";
    neighbourList['1M'] = "Armstrong Point / River Heights / River Heights North / Tuxedo / Linden Ridge / Linden Woods";
    neighbourList['5D'] = "Brooklands / Weston";
    neighbourList['5W'] = "Headingley North / Monterey Park";
    neighbourList['5J'] = "Optimist Park";
    neighbourList['5E'] = "Bruce Park / Deer Lodge / St James / Assiniboia / Silver Heights / St James / Woodhaven";
    neighbourList['5F'] = "Bruce Park / Deer Lodge / St James / Assiniboia / Silver Heights / St James / Woodhaven";
    neighbourList['5A'] = "West End / Wolseley / Polo Park / Sargent Park";
    neighbourList['5C'] = "West End / Wolseley / Polo Park / Sargent Park";
    neighbourList['5B'] = "West End / Wolseley / Polo Park / Sargent Park";
    neighbourList['5G'] = "The Oaks / Westwood / Crestview / Heritage Park";
    neighbourList['5H'] = "The Oaks / Westwood / Crestview / Heritage Park";
    neighbourList['R16'] = "Steinbach and Area / Deerfield / Elmdale / Georgetown / Kokomo / Meadows / Stone Bridge on the Park / Southland Estates / Southwood / Woodlawn";
    neighbourList['R17'] = "South Eastern";
    neighbourList['R18'] = "Eastern";
    neighbourList['R19'] = "Interlake / Fisherton / Fisher River / Hecla / Hudson / Johnson's Beach / Laurentia Beach / Little Deer / Lake Manitoba Estates / Lake Manitoba Narrows / Morweena / Mulvihill / Norris Lake / Peguis / Pioneer Resort / Silver / Sandpiper Estates / Sugar Point / Twin Lake Beach / Vidir";
    neighbourList['R20'] = "Central Plains";
    neighbourList['R21'] = "Atikaki";
    neighbourList['R26'] = "Aspen Park / Brewster Bay / Boundary Creek / Bayshore Heights / Camp Morton / Camp Neustadt / Gilwell Estates / King's Park Estates / Lake Forest Estates / Leaside Beach / Loch Wood Estates / Miklavik / Ness Country Estates / Odin Green / Pebble Beach / Pelican Beach / South Beach / Silver Harbour / Sandy Hook Golf Course / Siglavik / Shorepointe Village / Vestureland / Willow Island";
    neighbourList['R27'] = "Almdal Cove / Billy Goat Estates / Balsam Harbour / Boulder Bay / Bearpaw / Belair Properties / Clearwater Cove / Grand Beach Provincial Park / Grand Pines Golf Course / Halcyon Cove / Hillside Estates / Island Beach / Ironwood Point / Johnny's Drive / Jackfish Lake / Kroken Place / Lakeshore Heights / Pine Cove / Pine Glen / Pebble Springs / Pinewood Cove / Sandy Bay / Sand Cliff Estates / Shoreline Drive / Sunrise Estates / Sunset Beach / Thomas Cove / Traverse Woods / Victoria Bay Estates / Victoria  Beach Restricted Area / Wanasing / White Sands";
    neighbourList['R28'] = "Arnolds Co-op / Anderson Drive / Amys Cove / Auglen Park / Awanipark / Black Bear / Blomquist Farms / Brookfield / Bird Lake / Biluk Road / Bernic Lake / Bonnet Oaks South / Bird River / Broadlands Road / Bird River Ridge / Cattail Drive / Cape Coppermine / Camp Hide-away / Country Meadows / Erickson Point / Fishers Grove / Granite Hills / Grey Owl Park / Grausdin Point / Hazelwood Cove / Keystone Heights / Lee Country Village / Lee Dale Estates / Lorell Holdings / Lee Meadows / Lee River Blocks / Lee River Co-op / Lee River Estates / Lee River Falls / Lee River Place / Lee Side Co-op / Leeshurland / Manigottagen / Mascanow / Mascano Drive / McArthur Falls / Milner Ridge / Osprey / Pinawa Bay / Pinawa Channel / Pihulak Drive / Poplar Bay / Pine Ridge / Riverland Road South / Riverside Co-op / Riverside / Sunset Bay / Still Cove / Silver Falls / Sun Lee / Sun Lee Road / Spruce Lane Road / Southwood Bay / Tagesom / Tower Estates / Tall Timber / Tuokko / Washow Drive / Wendigo / Wanipigow Lake / White Mud Flats / Woodduck/Widgen / Wild Wings";
    neighbourList['R30'] = "Ashville / Bayduza / Bloomfield / Crescent Cove / Dauphin Beach / Eclipse / Laguna Beach / Lockville / Northeast / Northwest / Oako Beach / Ochre Beach / RM of Dauphin / RM of Gilbert Plains / RM of Grandview / RM of Ochre River / Southeast / Sifton / Stoney Point / Southwest / Town of Gilbert Plains / Town of Grandview / Village of Ochre River / West";
    neighbourList['R31'] = "Benito / Birch River / Bowsman / Cowan / Durban / Kenville / Lake Manitoba Narrows / Mafeking / Minitonas / Renwer / Swan River";
    neighbourList['R35'] = "Blumenfeld / Chortitz / Friedensruh / Gnadenfeld / Gnadenthal / Haskett / Hochfeld / Horndean / Kane / Mather / Myrtle / Neunenberg / Osterwick / Reinfeld / Rosengart / Reinland / Schanzenfeld / Snowflake / Schoenwiesse / Tinker Creek / Thornhill / Windygates";
    neighbourList['R39'] = "Culross / Cardinal / Deerwood / Rosebank";
    neighbourList['M04'] = "Turtle Mountain";
    neighbourList['M06'] = "Beautiful Plains";
    neighbourList['M02'] = "Yellowhead";
    neighbourList['M03'] = "South West";
    neighbourList['M10'] = "Dauphin and Area";
    neighbourList['M11'] = "Parkland";
    neighbourList['M20'] = "Thompson and Area";
    neighbourList['M21'] = "Northern Manitoba";
    neighbourList['R42'] = "Burntwood / Burntwood Trailer Court / Deerwood / Eastwood / Juniper / Liz Lake / Manasan Trailer Park / Paint Lake / Riverside / Setting Lake / Southwood / Thompson / Westwood";
    neighbourList['R43'] = "The Pas and Area";
    neighbourList['R44'] = "Flin Flon and Area";
    

    return neighbourList;

}
