/*
Copyright (c) 2009, Devel-Tech Inc., dti@develtech.ca
All rights reserved.
Redistribution and/or use in source and binary forms, with or without modification, 
are NOT permitted without the express written consent of Devel-Tech Inc. 
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
if (city == "Calgary")
{
area_list = new Array();
area_list.push("Airdrie");
area_list.push("Banff"); 
area_list.push("Black Diamond");
area_list.push("Bragg Creek");
area_list.push("Canmore"); 
area_list.push("Carseland"); 
area_list.push("Chestermere");
area_list.push("Claresholm"); 
area_list.push("Cochrane");
area_list.push("Dewinton"); 
area_list.push("High River"); 
area_list.push("Langdon");
area_list.push("Okotoks"); 
area_list.push("Strathmore"); 
area_list.push("Turner Valley"); 
city_sections = new Array();
city_sections.push("NW"); 
city_sections.push("NE");
city_sections.push("SE"); 
city_sections.push("SW");
city_sections.push("Inner-City"); 
city_sections.push("Airdrie");
city_sections.push("Banff"); 
city_sections.push("Black Diamond");
city_sections.push("Bragg Creek");
city_sections.push("Canmore"); 
city_sections.push("Carseland");
city_sections.push("Chestermere");
city_sections.push("Claresholm"); 
city_sections.push("Cochrane");
city_sections.push("Dewinton");
city_sections.push("High River"); 
city_sections.push("Langdon");
city_sections.push("Okotoks"); 
city_sections.push("Out-of-Town");
city_sections.push("Strathmore"); 
city_sections.push("Turner Valley"); 
city_locations = new Array();
city_locations.push("Ambrose University College");
city_locations.push("Calgary Airport");
city_locations.push("Chinook Centre Mall");
city_locations.push("Devry Institute of Tech");
city_locations.push("Downtown Calgary");
city_locations.push("Foothills Hospital");
city_locations.push("Market Mall");
city_locations.push("Mount Royal College");
city_locations.push("Peter Lougheed Hospital");
city_locations.push("Rockyview Hospital");
city_locations.push("SAIT");
city_locations.push("Southcentre Mall");
city_locations.push("Sunridge Mall");
city_locations.push("University of Calgary");
community_list = new Array();
community_list.push("Abbeydale");
community_list.push("Acadia");
community_list.push("Airdrie");
community_list.push("Albert Park");
community_list.push("Altadore");
community_list.push("Applewood");
community_list.push("Arbour Lake");
community_list.push("Aspen Woods");
community_list.push("Auburn Bay");
community_list.push("Balmoral");
community_list.push("Banff"); 
community_list.push("Banff Trail");
community_list.push("Bankview");
community_list.push("Bayview");
community_list.push("Bearspaw");
community_list.push("Beddington");
community_list.push("Belaire");
community_list.push("Beltline");
community_list.push("Black Diamond");
community_list.push("Bonavista");
community_list.push("Bonnybrook");
community_list.push("Bowness");
community_list.push("Braeside");
community_list.push("Bragg Creek");
community_list.push("Brentwood");
community_list.push("Briar Hill");
community_list.push("Bridgeland");
community_list.push("Bridlewood");
community_list.push("Britannia");
community_list.push("Cambrian Heights");
community_list.push("Canmore"); 
community_list.push("Canyon Meadows");
community_list.push("Capitol Hill");
community_list.push("Carseland");
community_list.push("Castleridge");
community_list.push("Cedarbrae");
community_list.push("Chaparral");
community_list.push("Charleswood");
community_list.push("Chestermere");
community_list.push("Chinook Park");
community_list.push("Christie Estates");
community_list.push("Christie Park");
community_list.push("Citadel");
community_list.push("Claresholm"); 
community_list.push("Cliff Bungalow");
community_list.push("Coach Hill");
community_list.push("Cochrane");
community_list.push("Collingwood");
community_list.push("Confederation Park");
community_list.push("Connaught");
community_list.push("Copperfield");
community_list.push("Coral Springs");
community_list.push("Cougar Ridge");
community_list.push("Country Hills");
community_list.push("Country Hills Village");
community_list.push("Coventry Hills");
community_list.push("Cranston");
community_list.push("Crescent Heights");
community_list.push("Crestmont");
community_list.push("Dalhousie");
community_list.push("Deer Ridge");
community_list.push("Deer Run");
community_list.push("Dewinton");
community_list.push("Diamond Cove");
community_list.push("Discovery Ridge");
community_list.push("Douglas Glen");
community_list.push("Douglasdale");
community_list.push("Dover");
community_list.push("Dover Glen");
community_list.push("Downtown");
community_list.push("Eagle Ridge");
community_list.push("East Village");
community_list.push("Eau Claire");
community_list.push("Edgemont");
community_list.push("Elbow Park");
community_list.push("Elbow Valley");
community_list.push("Elboya");
community_list.push("Erin Woods");
community_list.push("Erlton");
community_list.push("Evanston");
community_list.push("Evergreen");
community_list.push("Evergreen Estates");
community_list.push("Fairview");
community_list.push("Falconridge");
community_list.push("Fonda");
community_list.push("Forest Heights");
community_list.push("Forest Lawn");
community_list.push("Garrison Green");
community_list.push("Garrison Woods");
community_list.push("Glamorgan");
community_list.push("Glenbrook");
community_list.push("Glendale");
community_list.push("Glengarry");
community_list.push("Greenbriar");
community_list.push("Greenview");
community_list.push("Hamptons");
community_list.push("Hanson Ranch");
community_list.push("Harvest Hills");
community_list.push("Hawkwood");
community_list.push("Haysboro");
community_list.push("Hidden Valley");
community_list.push("High River");
community_list.push("Highland Park");
community_list.push("Highwood");
community_list.push("Hillhurst");
community_list.push("Huntington");
community_list.push("Huntington Hills");
community_list.push("Inglewood");
community_list.push("Kelvin Grove");
community_list.push("Kensington");
community_list.push("Killarney");
community_list.push("Kincora");
community_list.push("Kingsland");
community_list.push("Knob Hill");
community_list.push("Lake Bonavista");
community_list.push("Lake Chaparral");
community_list.push("Lake Sundance");
community_list.push("Lakeview");
community_list.push("Langdon");
community_list.push("Lincoln Park");
community_list.push("Lower Mount Royal");
community_list.push("Lynnwood");
community_list.push("MacEwan");
community_list.push("Manchester");
community_list.push("Maple Ridge");
community_list.push("Marda Loop");
community_list.push("Marlborough");
community_list.push("Marlborough Park");
community_list.push("Martindale");
community_list.push("Mayfair");
community_list.push("Mayland Heights");
community_list.push("McKenzie Lake");
community_list.push("McKenzie Towne");
community_list.push("Meadowlark Park");
community_list.push("Midnapore");
community_list.push("Millrise");
community_list.push("Mission");
community_list.push("Monterey Park");
community_list.push("Montgomery");
community_list.push("Montreux");
community_list.push("Mount Pleasant");
community_list.push("Mount Royal");
community_list.push("Mountview Parc");
community_list.push("New Brighton");
community_list.push("Nolan Hill");
community_list.push("North Glenmore Park");
community_list.push("North Haven");
community_list.push("Nose Hill Park");
community_list.push("Oakridge");
community_list.push("Ogden");
community_list.push("Okotoks");
community_list.push("Out-of-Town");
community_list.push("Palliser");
community_list.push("Panorama Hills");
community_list.push("Parkdale");
community_list.push("Parkhill-Stanley Park");
community_list.push("Parkland");
community_list.push("Patterson");
community_list.push("Patterson Heights");
community_list.push("Penbrooke");
community_list.push("Penbrooke Meadows");
community_list.push("Pineridge");
community_list.push("Point McKay");
community_list.push("Prominence Point");
community_list.push("Pumphill");
community_list.push("Queensland");
community_list.push("Radisson Heights");
community_list.push("Ramsay");
community_list.push("Ranchlands");
community_list.push("Regal Terrace");
community_list.push("Renfrew");
community_list.push("Richmond");
community_list.push("Richmond Hill");
community_list.push("Richmond Park");
community_list.push("Rideau Park");
community_list.push("Riverbend");
community_list.push("Riverside");
community_list.push("Rocky Ridge");
community_list.push("Rosedale");
community_list.push("Rosemont");
community_list.push("Rosscarrock");
community_list.push("Roxboro");
community_list.push("Royal Oak");
community_list.push("Rundle");
community_list.push("Rutland Park");
community_list.push("Saddlebrook");
community_list.push("Saddleridge");
community_list.push("Sage Hill");
community_list.push("Sandstone");
community_list.push("Scarboro");
community_list.push("Scenic Acres");
community_list.push("Shaganappi");
community_list.push("Shawnee Slopes");
community_list.push("Shawnessy");
community_list.push("Sherwood");
community_list.push("Signal Hill");
community_list.push("Silver Springs");
community_list.push("Silverado");
community_list.push("Somerset");
community_list.push("South Calgary");
community_list.push("Southview");
community_list.push("Southwood");
community_list.push("Springbank");
community_list.push("Springbank Hill");
community_list.push("Springside");
community_list.push("Spruce Cliff");
community_list.push("St Andrews Heights");
community_list.push("Stanley Park");
community_list.push("Strathcona Park");
community_list.push("Strathmore"); 
community_list.push("Strathmore Park");
community_list.push("Sunalta");
community_list.push("Sundance");
community_list.push("Sunnyside");
community_list.push("Taradale");
community_list.push("Taravista");
community_list.push("Temple");
community_list.push("Thorncliffe");
community_list.push("Turner Valley"); 
community_list.push("Tuscany");
community_list.push("Tuxedo");
community_list.push("University Heights");
community_list.push("Valleyridge");
community_list.push("Valleyview");
community_list.push("Varsity");
community_list.push("Varsity Estates");
community_list.push("Victoria Park");
community_list.push("Vista Heights");
community_list.push("Wentworth");
community_list.push("West Dover");
community_list.push("West Hillhurst");
community_list.push("West Springs");
community_list.push("Westbrook");
community_list.push("Westgate");
community_list.push("Whitehorn");
community_list.push("Wildwood");
community_list.push("Willow Park");
community_list.push("Windsor Park");
community_list.push("Winston Heights");
community_list.push("Woodbine");
community_list.push("Woodlands");
communitiesname = "http://rentfaster.ca/maps/xmls/calgary-communities2.kml";
instructions_txt = "<div id='instruct' class='f8font instructions'>";
instructions_txt = instructions_txt + "<span class='instructions'>INSTRUCTIONS</span><br>";
instructions_txt = instructions_txt + "<br>Keyword Search";
instructions_txt = instructions_txt + "<table>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Enter a street, community or Id number and press the magnify glass.</td></tr>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Refine the search with tools on the left, press Refresh map.</td></tr>";
instructions_txt = instructions_txt + "</table>";
instructions_txt = instructions_txt + "Zoom Search";
instructions_txt = instructions_txt + "<table>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Use the navigation tools to zoom into the area of interest (or left-click).</td></tr>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Refine the search with selections on the left, press Refresh map.</td></tr>";
instructions_txt = instructions_txt + "</table>";
instructions_txt = instructions_txt + "Drag Zoom Tool<br>";
instructions_txt = instructions_txt + "<table>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Click the Drag Zoom Tool box.<br>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Draw a box around the area of interest by holding the left mouse button down and dragging.</td></tr>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Refine the search with selections on the left, press Refresh map.</td></tr>";
instructions_txt = instructions_txt + "</table>";
instructions_txt = instructions_txt + "<br><a href='Javascript:CommSearch()'>Community Search</a> - also available<br>";
instructions_txt = instructions_txt + "<a href='Javascript:ShowProximitySearch()'>Proximity Search</a> - also available<br>";
instructions_txt = instructions_txt + "<br>Click on the Icons to View:<br>";
instructions_txt = instructions_txt + "<img src='"+red_iconfile + "'>&nbsp;&nbsp;Not-Rented&nbsp;&nbsp;&nbsp;&nbsp;<img src='" + grey_iconfile + "'>&nbsp;&nbsp;Rented<br>";
instructions_txt = instructions_txt + "<br>Bus Routes / Bike Paths / Community Boundaries<br>";
instructions_txt = instructions_txt + "<table>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>When zoomed in close enough, bus routes, bike paths and community boundaries can be turned on.</td></tr>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Click on a bus route for route number and information link.</td></tr>";
instructions_txt = instructions_txt + "</table>";
instructions_txt = instructions_txt + "</div>";
tabletopdivcontent = "<br><br><br><br><a href='http://www.rentfaster.ca/calgary.php' class='bars3'>Home</a> | <a href='http://www.rentfaster.ca/faq.php' class='bars3'>FAQ</a> | <a href='http://www.rentfaster.ca/site_map.php' class='bars3'>Site Map</a> | <a href='http://www.rentfaster.ca/about_us.php' class='bars3'>About Us</a> | <a href='http://www.rentfaster.ca/contact.php' class='bars3'>Contact Us</a>";
footercontent = "<center><a href='http://www.rentfaster.ca/calgary.php' title='RentFaster.ca Search'>Search</a> | <a href='http://www.rentfaster.ca/renters.php' title='Information for Renters'>Renters</a> | <a href='http://www.rentfaster.ca/property_managers.php' title='Information for Property Managers'>Property Managers</a> | <a href='http://www.rentfaster.ca/faq.php' title='RentFaster.ca FAQ'>FAQ</a> | <a href='http://www.rentfaster.ca/site_map.php' title='RentFaster.ca Site Map'>Site Map</a> | <a href='http://www.rentfaster.ca/about_us.php' title='About Rentfaster.ca'>About Us</a> | <a href='http://www.rentfaster.ca/contact.php' title='Contact RentFaster.ca'>Contact Us</a><br><a href='http://www.rentfaster.ca/admin/create_user.php' title='Login to Your Account'>Login</a> | <a href='http://www.rentfaster.ca/favorites.php' title='View Your Saved Listings'>My Favorites</a> | <a href='/' title='RentFaster.ca Links'>RentFaster Edmonton</a><br><br>&copy 2002 - 2007 <b>RentFaster.ca</b></center>";
footercontent2 = "<center><a href='http://www.rentfaster.ca/calgary.php' title='RentFaster.ca Search'>Search</a> | <a href='http://www.rentfaster.ca/renters.php' title='Information for Renters'>Renters</a> | <a href='http://www.rentfaster.ca/property_managers.php' title='Information for Property Managers'>Property Managers</a> | <a href='http://www.rentfaster.ca/faq.php' title='RentFaster.ca FAQ'>FAQ</a> | <a href='http://www.rentfaster.ca/site_map.php' title='RentFaster.ca Site Map'>Site Map</a> | <a href='http://www.rentfaster.ca/about_us.php' title='About Rentfaster.ca'>About Us</a> | <a href='http://www.rentfaster.ca/contact.php' title='Contact RentFaster.ca'>Contact Us</a> | <a href='http://www.rentfaster.ca/admin/create_user.php' title='Login to Your Account'>Login</a> | <a href='http://www.rentfaster.ca/favorites.php' title='View Your Saved Listings'>My Favorites</a> | <a href='/' title='RentFaster.ca Links'>RentFaster Edmonton</a><br><br>&copy 2002 - 2007 <b>RentFaster.ca</b></center>";
}
else
{
city_sections = new Array();
city_sections.push("NE");
city_sections.push("NW");
city_sections.push("SE");
city_sections.push("SW");
city_sections.push("West");
city_sections.push("Central");
city_sections.push("Beaumont");
city_sections.push("Camrose");
city_sections.push("Devon");
city_sections.push("Ft. Sask.");
city_sections.push("Leduc");
city_sections.push("Millwoods");
city_sections.push("Out-of-Town");
city_sections.push("Sherwood Pk.");
city_sections.push("Spruce Grove");
city_sections.push("St. Albert");
city_sections.push("Stony Plain");
city_locations = new Array();
city_locations.push("Bonnie Doon Shopping Centre");
city_locations.push("Downtown Edmonton");
city_locations.push("Edmonton Centre Mall");
city_locations.push("Edmonton General Hospital");
city_locations.push("Edmonton International Airport");
city_locations.push("Grant MacEwan College");
city_locations.push("Grey Nuns Community Hospital");
city_locations.push("Kingsway Garden Mall");
city_locations.push("Londonderry Mall");
city_locations.push("Manulife Place");
city_locations.push("Misericordia Community Hospital");
city_locations.push("NAIT");
city_locations.push("Northgate Centre");
city_locations.push("NorQuest College");
city_locations.push("Royal Alexandra Hospital");
city_locations.push("Southgate Centre");
city_locations.push("St. Joseph's Auxiliary Hospital");
city_locations.push("University of Alberta");
city_locations.push("University of Alberta Hospital");
city_locations.push("University of Lethbridge");
city_locations.push("West Edmonton Mall");
city_locations.push("Westmount Shopping Centre");
community_list = new Array();
community_list.push("Abbottsfield");
community_list.push("Alberta Avenue");
community_list.push("Aldergrove");
community_list.push("Allendale");
community_list.push("Argyll");
community_list.push("Aspen Gardens");
community_list.push("Athlone");
community_list.push("Avonmore");
community_list.push("Balwin");
community_list.push("Bannerman");
community_list.push("Baranow");
community_list.push("Baturyn");
community_list.push("Beacon Heights");
community_list.push("Bearspaw");
community_list.push("Beaumaris");
community_list.push("Beaumaris Lake");
community_list.push("Beaumont");
community_list.push("Belgravia");
community_list.push("Belle Rive");
community_list.push("Bellevue");
community_list.push("Belmead");
community_list.push("Belmont");
community_list.push("Belvedere");
community_list.push("Bergman");
community_list.push("Beverly Heights");
community_list.push("Big Lake Estates");
community_list.push("Bisset");
community_list.push("Blackburne");
community_list.push("Blue Quill");
community_list.push("Bon Accord");
community_list.push("Bonnie Doon");
community_list.push("Boyle Street");
community_list.push("Brander Gardens");
community_list.push("Breckenridge Greens");
community_list.push("Brintnell");
community_list.push("Britannia");
community_list.push("Brookside");
community_list.push("Bulyea Heights");
community_list.push("Caernarvon");
community_list.push("Calder");
community_list.push("Callingwood");
community_list.push("Camrose");
community_list.push("Canon Ridge");
community_list.push("Canora");
community_list.push("Canossa");
community_list.push("Capilano");
community_list.push("Carlisle");
community_list.push("Carlton");
community_list.push("Carter Crest");
community_list.push("Casselman");
community_list.push("Castle Down");
community_list.push("Chambery");
community_list.push("Clareview");
community_list.push("Cloverdale");
community_list.push("Crawford");
community_list.push("Crestwood");
community_list.push("Cromdale");
community_list.push("Crystallina Nera");
community_list.push("Cumberland");
community_list.push("Daly Grove");
community_list.push("Dechene");
community_list.push("Delton");
community_list.push("Delwood");
community_list.push("Devon");
community_list.push("Dickensfield");
community_list.push("Donsdale");
community_list.push("Dovercourt");
community_list.push("Downtown");
community_list.push("Duggan");
community_list.push("Dunluce");
community_list.push("Eastwood");
community_list.push("Eaux Claires");
community_list.push("Ekota");
community_list.push("Ellerslie");
community_list.push("Elmwood");
community_list.push("Elmwood Park");
community_list.push("Elsinore");
community_list.push("Empire Park");
community_list.push("Ermineskin");
community_list.push("Evansdale");
community_list.push("Falconer Heights");
community_list.push("Forest Heights");
community_list.push("Fort Saskatchewan");
community_list.push("Fraser");
community_list.push("Fulton Place");
community_list.push("Gariepy");
community_list.push("Garneau");
community_list.push("Gibbons");
community_list.push("Glastonbury");
community_list.push("Glengarry");
community_list.push("Glenora");
community_list.push("Glenwood");
community_list.push("Gold Bar");
community_list.push("Grandview Heights");
community_list.push("Greenfield");
community_list.push("Greenview");
community_list.push("Griesbach");
community_list.push("Grovenor");
community_list.push("Haddow");
community_list.push("Hairsine");
community_list.push("Hamptons");
community_list.push("Hazeldean");
community_list.push("Henderson Estates");
community_list.push("High Park");
community_list.push("Highlands");
community_list.push("Hillview");
community_list.push("Hodgson");
community_list.push("Hollick Kenyon");
community_list.push("Holyrood");
community_list.push("Homesteader");
community_list.push("Hudson");
community_list.push("Idylwylde");
community_list.push("Inglewood");
community_list.push("Jackson Heights");
community_list.push("Jamieson Place");
community_list.push("Jasper Park");
community_list.push("Jasper Place");
community_list.push("Kameyosek");
community_list.push("Keheewin");
community_list.push("Kenilworth");
community_list.push("Kensington");
community_list.push("Kernohan");
community_list.push("Kildare");
community_list.push("Kilkenny");
community_list.push("Killarney");
community_list.push("King Edward Park");
community_list.push("Kingsway");
community_list.push("Kiniksi Gardens");
community_list.push("Kirkness");
community_list.push("Klarvatten");
community_list.push("La Perle");
community_list.push("Lago Lindo");
community_list.push("Lansdowne");
community_list.push("Larkspur");
community_list.push("Lauderdale");
community_list.push("Laurier Heights");
community_list.push("Leduc");
community_list.push("Lee Ridge");
community_list.push("Legal");
community_list.push("Leger");
community_list.push("Lendrum Place");
community_list.push("Lessard Park");
community_list.push("Lewis Estate");
community_list.push("Londonderry");
community_list.push("Lorelei");
community_list.push("Lymburn");
community_list.push("Lynnwood");
community_list.push("MacEwan");
community_list.push("Magrath");
community_list.push("Malmo Plains");
community_list.push("Matt Berry");
community_list.push("Mayfield");
community_list.push("Mayliewan");
community_list.push("McCauley");
community_list.push("McDougall");
community_list.push("McKernan");
community_list.push("McLeod");
community_list.push("McQueen");
community_list.push("Meadowlark Park");
community_list.push("Meadows");
community_list.push("Menisa");
community_list.push("Meyokumin");
community_list.push("Meyonohk");
community_list.push("Michaels Park");
community_list.push("Mill Woods");
community_list.push("Millcreek Meadows");
community_list.push("Miller");
community_list.push("Minchau");
community_list.push("Montrose");
community_list.push("Morinville");
community_list.push("Newton");
community_list.push("North Glenora");
community_list.push("Northmount");
community_list.push("Ogilvie Ridge");
community_list.push("Old Strathcona");
community_list.push("Oleskiw");
community_list.push("Oliver");
community_list.push("Ormsby Place");
community_list.push("Ottewell");
community_list.push("Overlanders");
community_list.push("Oxford");
community_list.push("Ozerna");
community_list.push("Parkallen");
community_list.push("Parkdale");
community_list.push("Parkview");
community_list.push("Patricia Heights");
community_list.push("Pleasantview");
community_list.push("Pollard Meadows");
community_list.push("Potters Green");
community_list.push("Prince Charles");
community_list.push("Prince Rupert");
community_list.push("Queen Alexandra");
community_list.push("Queen Mary");
community_list.push("Queen Mary Park");
community_list.push("Quesnell Heights");
community_list.push("Ramsay Heights");
community_list.push("Rhatigan Ridge");
community_list.push("Richfield");
community_list.push("Rideau Park");
community_list.push("Rio Terrace");
community_list.push("Ritchie");
community_list.push("Riverbend");
community_list.push("Riverdale");
community_list.push("Rosslyn");
community_list.push("Royal Gardens");
community_list.push("Rundle");
community_list.push("Rutherford");
community_list.push("Sakaw");
community_list.push("Satoo");
community_list.push("Schonsee");
community_list.push("Sherbrooke");
community_list.push("Sherwood");
community_list.push("Sherwood Park");
community_list.push("Sifton Park");
community_list.push("Silver Berry");
community_list.push("Skyrattler");
community_list.push("Skyview");
community_list.push("Southbrook");
community_list.push("Southgate");
community_list.push("Spruce Avenue");
community_list.push("Spruce Grove");
community_list.push("St. Albert");
community_list.push("Steele Heights");
community_list.push("Steinhauer");
community_list.push("Stony Plain");
community_list.push("Strathcona");
community_list.push("Strathearn");
community_list.push("Summerlea");
community_list.push("Summerside");
community_list.push("Sweetgrass");
community_list.push("Terra Losa");
community_list.push("Terrace Heights");
community_list.push("Terwillegar");
community_list.push("Thorncliffe");
community_list.push("Tipaskan");
community_list.push("Tweddle Place");
community_list.push("Twin Brooks");
community_list.push("Virginia Park");
community_list.push("Walterdale");
community_list.push("Wedgewood Heights");
community_list.push("Weinlos");
community_list.push("Wellington");
community_list.push("West Jasper Place");
community_list.push("West Meadowlark Park");
community_list.push("Westbrook Estate");
community_list.push("Westmount");
community_list.push("Westridge");
community_list.push("Westwood");
community_list.push("Wild Rose");
community_list.push("Windsor Park");
community_list.push("Woodcraft");
community_list.push("York");
community_list.push("Youngstown");
instructions_txt = "<div id='instruct' class='f8font instructions'>";
instructions_txt = instructions_txt + "<span class='instructions'>INSTRUCTIONS</span><br>";
instructions_txt = instructions_txt + "<br>Keyword Search";
instructions_txt = instructions_txt + "<table>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Enter a street, community or Id number and press the magnify glass.</td></tr>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Refine the search with tools on the left, press Refresh map.</td></tr>";
instructions_txt = instructions_txt + "</table>";
instructions_txt = instructions_txt + "Zoom Search";
instructions_txt = instructions_txt + "<table>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Use the navigation tools to zoom into the area of interest (or left-click).</td></tr>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Refine the search with selections on the left, press Refresh map.</td></tr>";
instructions_txt = instructions_txt + "</table>";
instructions_txt = instructions_txt + "Drag Zoom Tool<br>";
instructions_txt = instructions_txt + "<table>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Click the Drag Zoom Tool box.<br>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Draw a box around the area of interest by holding the left mouse button down and dragging.</td></tr>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Refine the search with selections on the left, press Refresh map.</td></tr>";
instructions_txt = instructions_txt + "</table>";
instructions_txt = instructions_txt + "<br><a href='Javascript:CommSearch()'>Community Search</a> - also available<br>";
instructions_txt = instructions_txt + "<a href='Javascript:ShowProximitySearch()'>Proximity Search</a> - also available<br>";
instructions_txt = instructions_txt + "<br>Click on the Icons to View:<br>";
instructions_txt = instructions_txt + "<img src='"+red_iconfile + "'>&nbsp;&nbsp;Not-Rented&nbsp;&nbsp;&nbsp;&nbsp;<img src='" + grey_iconfile + "'>&nbsp;&nbsp;Rented<br>";
instructions_txt = instructions_txt + "<br>Bus Routes / Bike Paths / Community Boundaries<br>";
instructions_txt = instructions_txt + "<table>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>When zoomed in close enough, bus routes, bike paths and community boundaries can be turned on.</td></tr>";
instructions_txt = instructions_txt + "<tr><td width='5px' valign='top'>-</td><td>Click on a bus route for route number and information link.</td></tr>";
instructions_txt = instructions_txt + "</table>";
instructions_txt = instructions_txt + "</div>";
tabletopdivcontent = "<br><br><br><br><a href='http://edmonton.rentfaster.ca' class='bars3'>Home</a> | <a href='/faq.php' class='bars3'>FAQ</a> | <a href='/site_map.php' class='bars3'>Site Map</a> | <a href='/about_us.php' class='bars3'>About Us</a> | <a href='/contact.php' class='bars3'>Contact Us</a>";
footercontent = "<center><a href='/index.php' title='RentFaster.ca Search'>Search</a> | <a href='/renters.php' title='Information for Renters'>Renters</a> | <a href='/property_managers.php' title='Information for Property Managers'>Property Managers</a> | <a href='/faq.php' title='RentFaster.ca FAQ'>FAQ</a> | <a href='/site_map.php' title='RentFaster.ca Site Map'>Site Map</a> | <a href='/about_us.php' title='About Rentfaster.ca'>About Us</a> | <a href='/contact.php' title='Contact RentFaster.ca'>Contact Us</a><br><a href='/admin/create_user.php' title='Login to Your Account'>Login</a> | <a href='/favorites.php' title='View Your Saved Listings'>my Faves</a> | <a href='http://www.rentfaster.ca/calgary.php' title='RentFaster.ca Links'>RentFaster</a><br><br>&copy;2002 - 2007 <b>RentFaster.ca</b></center>";
footercontent2 = "<center><a href='/index.php' title='RentFaster.ca Search'>Search</a> | <a href='/renters.php' title='Information for Renters'>Renters</a> | <a href='/property_managers.php' title='Information for Property Managers'>Property Managers</a> | <a href='/faq.php' title='RentFaster.ca FAQ'>FAQ</a> | <a href='/site_map.php' title='RentFaster.ca Site Map'>Site Map</a> | <a href='/about_us.php' title='About Rentfaster.ca'>About Us</a> | <a href='/contact.php' title='Contact RentFaster.ca'>Contact Us</a> | <a href='/admin/create_user.php' title='Login to Your Account'>Login</a> | <a href='/favorites.php' title='View Your Saved Listings'>my Faves</a> | <a href='http://www.rentfaster.ca/calgary.php' title='RentFaster.ca Links'>RentFaster</a><br><br>&copy;2002 - 2007 <b>RentFaster.ca</b></center>";
}
function loadCommunities()
{
geoxml = new GGeoXml(communitiesname); 
communitiesxml = geoxml;
community_markers = new Array(); 
/*function createLabel(pointl, title) 
{
var label = new ELabel(pointl,title,"style1"); 
community_markers.push(label);
return label;
}
GDownloadUrl("./xmls/communities.xml", function(data){
var xmlL = GXml.parse(data); 
var markersC = xmlL.documentElement.getElementsByTagName("marker");
for (var i = 0; i < markersC.length; i++) 
{
var pointC = new GLatLng(parseFloat(markersC[i].getAttribute("ycoord")),parseFloat(markersC[i].getAttribute("xcoord")));
map.addOverlay(createLabel(pointC,markersC[i].getAttribute("name")));
community_markers[community_markers.length -1].hide();
}
});
for (var n=0; n < community_markers.length; n++){community_markers[n].hide();}
*/
}
function showCommunities()
{
if (document.getElementById("Communityckb").checked == true)
{ 
geoxml = new GGeoXml(communitiesname); 
communitiesxml = geoxml;
map.addOverlay(communitiesxml);
communitiesflag = 1;
}
else
{
map.removeOverlay(communitiesxml);
communitiesflag = 0;
}
}
function showCommunities2()
{
if (document.getElementById("Communityckb").checked == true)
{ 
jQuery("#LoadingDiv").show(function(){
geoxml = new GGeoXml(communitiesname); 
communitiesxml = geoxml;
map.addOverlay(communitiesxml);
communitiesflag = 1;
jQuery("#LoadingDiv").hide();
});
}
else
{
map.removeOverlay(communitiesxml);
communitiesflag = 0;
}
}
function removeCommBusBike()
{
map.removeOverlay(communitiesxml); comloaded = 0;
for (var n=0; n < current_routes.length; n++){map.removeOverlay(current_routes[n]);}
current_routes = new Array(); numcurrentroutes = 0; busroutesflag = 0;
for (var n=0; n < current_routes_bike.length; n++){map.removeOverlay(current_routes_bike[n]);}
current_routes_bike = new Array(); numcurrentroutes_bike = 0; bikepathsflag = 0; schoolsflag = 0;
for (var n=0; n < school_markers.length; n++){map.removeOverlay(school_markers[n]);} school_markers = new Array(); 
}
function addCommunities()
{
for (var n=0; n < community_markers.length; n++){community_markers[n].show();}
if (comloaded == 0)
{
geoxml = new GGeoXml(communitiesname); 
communitiesxml = geoxml;
map.addOverlay(communitiesxml);
comloaded = 1;
}
}
function loadCommunitiesEdmonton()
{
community_markers = new Array(); 
function createLabel(pointl, title) 
{
var label = new ELabel(pointl,title,"style1"); 
community_markers.push(label);
return label;
}
GDownloadUrl("./xmls/communities.xml", function(data){
var xmlL = GXml.parse(data); 
var markersC = xmlL.documentElement.getElementsByTagName("marker");
for (var i = 0; i < markersC.length; i++) 
{
var pointC = new GLatLng(parseFloat(markersC[i].getAttribute("ycoord")),parseFloat(markersC[i].getAttribute("xcoord")));
map.addOverlay(createLabel(pointC,markersC[i].getAttribute("name")));
community_markers[community_markers.length -1].hide();
}
});
for (var n=0; n < community_markers.length; n++){community_markers[n].hide();}
}
function showCommunitiesEdmonton()
{
if (document.getElementById("Communityckb").checked == true)
{ 
for (var n=0; n < community_markers.length; n++){community_markers[n].show();}
}
else{for (var n=0; n < community_markers.length; n++){community_markers[n].hide();}}
}

