English: (i >= results.length); i++) { var r=results[i]; var iMadeIt=false; var p=new GLatLng(Number(r.getElementsByTagName("latitude")[0][prop]),Number(r.getElementsByTagName("longtitude")[0][prop])); var distance=(Math.round(p.distanceFrom(_MAP.Home)/100)/10); dbresults.push(createSearchResult( searcher, r.getElementsByTagName("id")[0][prop], r.getElementsByTagName("longtitude")[0][prop], r.getElementsByTagName("latitude")[0][prop], r.getElementsByTagName("name")[0][prop], r.getElementsByTagName("locationtype")[0][prop], r.getElementsByTagName("locationtypeid")[0][prop], r.getElementsByTagName("address")[0][prop], (r.getElementsByTagName("fav")[0][prop]+"")!="0", r.getElementsByTagName("hours")[0][prop], r.getElementsByTagName("descr")[0][prop], distance, iMadeIt)); //,hours,descr,IMadeThis } } insertSearchResults(dbresults,searcher.results); } }; var map = new GMap2(document.getElementById("map"), {googleBarOptions: searchoptions}); _MAP=map; var favIcon = new GIcon(G_DEFAULT_ICON); favIcon.image = FAV_ICON; var favOptions = { icon:favIcon }; _FAVOPTIONS=favOptions; var home=new GLatLng(45.5, -73.7); map.setCenter(home, 10); map.enableScrollWheelZoom(); map.setMapType(G_NORMAL_MAP); map.Home=home; map.Locations=[]; GEvent.addListener(map, "singlerightclick", function(point,src,overlay) { var p=_MAP.fromContainerPixelToLatLng(point); editForm(p.x,p.y); }); GEvent.addListener(map, "moveend", function() { updateLocations() }); var point=null; var marker=null; var cur_win=null; create_map_point(241,45.5064672064406, -73.7078762054443,"Parc Marcel-Laurin","Un-fenced off-leash dog park","1","2345 Boulevard Thimens","","Off-leash park",true,0==1, true); create_map_point(229,45.5204810207787, -73.6918258666992,"Parc Cousineau","Un-fenced off-leash dog park","1","Rue Poirier et Avenue O’Brien","","Off-leash park",true,0==1, true); create_map_point(745,45.5036700403817, -73.659725189209,"Baker Animal Hospital","Veterinarian clinics","3","8310 Mayrand St.","Mon - Fri 8am-7pm, Sat 10am-2pm, Sun Closed","Small animal hospital",true,0==1, true); create_map_point(242,45.5366557196803, -73.6848735809326,"Parc Marcelin-Wilson","On-leash dog park","4","Boulevard de l’Acadie et Boulevard Henri-Bourassa","","On-leash park",true,0==1, true); create_map_point(935,45.5360545129975, -73.683500289917,"asdf","Veterinarian clinics","3","fasdfafa","fdadf","sdfadf",true,0==1, true); create_map_point(247,45.5143165752721, -73.7421226501465,"Parc-nature du Bois-de-Saraguay","On-leash dog park","4","Boulevard Gouin Ouest et Avenue Joseph-Saucier","","On-leash park",true,0==1, true); create_map_point(222,45.5267349874682, -73.7336254119873,"Parc Beauséjour","On-leash dog park","4","Boulevard Gouin Ouest et Chemin du Golf","","On-leash park",true,0==1, true); create_map_point(375,45.4590921419713, -73.723304271698,"Centre Vétérinaire DMV","Veterinarian clinics","3","2300, 54ième Avenue","24/24, 7/7, 365 jours par année","Hôpital vétérinaire urgence et services spécialisé",true,0==1, true); create_map_point(237,45.5030384030041, -73.6331176757813,"Parc Kent","On-leash dog park","4","Avenue Van Horne et Avenue Decelles","","On-leash park",true,0==1, true); create_map_point(263,45.4358489109977, -73.7058699131012,"Parc Stoney Point","Un-fenced off-leash dog park","1","Lachine Boulevard St-Joseph et 45e Avenue","","Off-leash park",true,0==1, true); create_map_point(246,45.5082116052269, -73.7656831741333,"Parc-nature du Bois-de-Liesse","On-leash dog park","4","9432 Boulevard Gouin Ouest","","On-leash park",true,0==1, true); create_map_point(228,45.4715678784409, -73.6418724060059,"Parc de la Confédération","Un-fenced off-leash dog park","1","Avenue Fielding et Avenue West Hill","","Off-leash park",true,0==1, true); create_map_point(912,45.4386946136811, -73.7292909622192,"St Charles","Fenced off-leash dog park","5","Avenue St Charles, Dorval, Qc","7am to 10pm","About 1.5 acres, grassy with ramp to water ",true,0==1, true); create_map_point(257,45.4279133100879, -73.6814832687378,"Parc René-Lévesque","On-leash dog park","4","1 Chemin du Musée","","On-leash park",true,0==1, true); create_map_point(270,45.4575870414297, -73.6491358280182,"Parc William-Bowie","On-leash dog park","4","4951 Avenue Trenholme","","On-leash park",true,0==1, true); create_map_point(593,45.4713722609389, -73.6266589164734,"Le Doggie Bag Cafe","Restaurant/cafe","6","5976 Monkland, NDG","","At the corner of Hampton",true,0==1, true); create_map_point(265,45.4918858285028, -73.6054158210754,"Parc Summit","On-leash dog park","4","Summit Circle","","On-leash park",true,0==1, true); create_map_point(234,45.5331686314461, -73.6295127868652,"Parc Jarry","On-leash dog park","4","Rue Faillon et Rue Jarry","","On-leash park",true,0==1, true); create_map_point(268,45.4887193882945, -73.7936425209045,"Parc Westwood","Un-fenced off-leash dog park","1","Fin de la Blvd de Salaberry est de la Blvd Sources","","Off-leash park",true,0==1, true); create_map_point(728,45.4634266070652, -73.6308646202087,"Trenholme Park","Fenced off-leash dog park","5","6800 Sherbrooke West","","",true,0==1, true); create_map_point(729,45.4612594161718, -73.6318945884705,"Trenholme Park","Fenced off-leash dog park","5","6800 Sherbrooke West, Montreal, Quebec","","",true,0==1, true); create_map_point(243,45.5009930523927, -73.59290599823,"Parc du Mont-Royal","On-leash dog park","4","1260 Chemin Remembrance","","On-leash park",true,0==1, true); create_map_point(238,45.4838452797276, -73.6049652099609,"Parc King George","Un-fenced off-leash dog park","1","Chemin Cote St-Antoine et Avenue Murray","","Off-leash park",true,0==1, true); create_map_point(250,45.4721697741884, -73.6150074005127,"Parc Notre-Dame-de-Grace","Un-fenced off-leash dog park","1","Avenue Girouard et Rue Sherbrooke Ouest","","Off-leash park",true,0==1, true); create_map_point(906,45.4728318520864, -73.6140632629395,"NDG park","Fenced off-leash dog park","5","Giroud/Sherbrooke","","big dog run",true,0==1, true); create_map_point(251,45.4990980288972, -73.5846662521362,"Parc Percy Walters","Un-fenced off-leash dog park","1","Avenue Docteur-Penfield et Rue Redpath","","Off-leash park",true,0==1, true); create_map_point(543,45.5705383512351, -73.6537599563599,"parc a chien ahuntsic ","Fenced off-leash dog park","5","angle st-firmin et fleury est","toujours ouvert","grand parc pour chien sans laisse ",true,0==1, true); create_map_point(262,45.5705158196889, -73.6535131931305,"Parc du Sault-au-Recollet","Un-fenced off-leash dog park","1","Rue de St-Firmin et Rue Fleury Est","","Off-leash park",true,0==1, true); create_map_point(911,45.4541101055869, -73.7726783752441,"Surrey park","Un-fenced off-leash dog park","1","1945 Parkfield Ave, Dorval, QC H9P 1A1","7am to 10pm","About 2 acres, lots of trees and walking track",true,0==1, true); create_map_point(261,45.5056250635409, -73.5799992084503,"Parc Rutherford","Un-fenced off-leash dog park","1","Avenue Docteur-Penfield et Avenue des Pins Ouest","","Off-leash park",true,0==1, true); create_map_point(369,45.4983760984079, -73.5756540298462,"Loews Hotel Vogue","Pet friendly accommodations","2","1425 Rue de la Montagne","","Nice Montreal Hotel-Pets stay free & get treats!
French: (i >= results.length); i++) { var r=results[i]; var iMadeIt=false; var p=new GLatLng(Number(r.getElementsByTagName("latitude")[0][prop]),Number(r.getElementsByTagName("longtitude")[0][prop])); var distance=(Math.round(p.distanceFrom(_MAP.Home)/100)/10); dbresults.push(createSearchResult( searcher, r.getElementsByTagName("id")[0][prop], r.getElementsByTagName("longtitude")[0][prop], r.getElementsByTagName("latitude")[0][prop], r.getElementsByTagName("name")[0][prop], r.getElementsByTagName("locationtype")[0][prop], r.getElementsByTagName("locationtypeid")[0][prop], r.getElementsByTagName("address")[0][prop], (r.getElementsByTagName("fav")[0][prop]+"")!="0", r.getElementsByTagName("hours")[0][prop], r.getElementsByTagName("descr")[0][prop], distance, iMadeIt)); //,hours,descr,IMadeThis } } insertSearchResults(dbresults,searcher.results); } }; var map = new GMap2(document.getElementById("map"), {googleBarOptions: searchoptions}); _MAP=map; var favIcon = new GIcon(G_DEFAULT_ICON); favIcon.image = FAV_ICON; var favOptions = { icon:favIcon }; _FAVOPTIONS=favOptions; var home=new GLatLng(45.5, -73.7); map.setCenter(home, 10); map.enableScrollWheelZoom(); map.setMapType(G_NORMAL_MAP); map.Home=home; map.Locations=[]; GEvent.addListener(map, "singlerightclick", function(point,src,overlay) { var p=_MAP.fromContainerPixelToLatLng(point); editForm(p.x,p.y); }); GEvent.addListener(map, "moveend", function() { updateLocations() }); var point=null; var marker=null; var cur_win=null; create_map_point(241,45.5064672064406, -73.7078762054443,"Parc Marcel-Laurin","Un-fenced off-leash dog park","1","2345 Boulevard Thimens","","Off-leash park",true,0==1, true); create_map_point(229,45.5204810207787, -73.6918258666992,"Parc Cousineau","Un-fenced off-leash dog park","1","Rue Poirier et Avenue O’Brien","","Off-leash park",true,0==1, true); create_map_point(745,45.5036700403817, -73.659725189209,"Baker Animal Hospital","Veterinarian clinics","3","8310 Mayrand St. ","Mon - Fri 8am-7pm, Sat 10am-2pm, Sun Closed","Small animal hospital",true,0==1, true); create_map_point(242,45.5366557196803, -73.6848735809326,"Parc Marcelin-Wilson","On-leash dog park","4","Boulevard de l’Acadie et Boulevard Henri-Bourassa","","On-leash park",true,0==1, true); create_map_point(935,45.5360545129975, -73.683500289917,"asdf","Veterinarian clinics","3","fasdfafa","fdadf","sdfadf",true,0==1, true); create_map_point(247,45.5143165752721, -73.7421226501465,"Parc-nature du Bois-de-Saraguay","On-leash dog park","4","Boulevard Gouin Ouest et Avenue Joseph-Saucier","","On-leash park",true,0==1, true); create_map_point(222,45.5267349874682, -73.7336254119873,"Parc Beauséjour","On-leash dog park","4","Boulevard Gouin Ouest et Chemin du Golf","","On-leash park",true,0==1, true); create_map_point(375,45.4590921419713, -73.723304271698,"Centre Vétérinaire DMV","Veterinarian clinics","3","2300, 54ième Avenue","24/24, 7/7, 365 jours par année","Hôpital vétérinaire urgence et services spécialisé",true,0==1, true); create_map_point(237,45.5030384030041, -73.6331176757813,"Parc Kent","On-leash dog park","4","Avenue Van Horne et Avenue Decelles","","On-leash park",true,0==1, true); create_map_point(263,45.4358489109977, -73.7058699131012,"Parc Stoney Point","Un-fenced off-leash dog park","1","Lachine Boulevard St-Joseph et 45e Avenue","","Off-leash park",true,0==1, true); create_map_point(246,45.5082116052269, -73.7656831741333,"Parc-nature du Bois-de-Liesse","On-leash dog park","4","9432 Boulevard Gouin Ouest","","On-leash park",true,0==1, true); create_map_point(228,45.4715678784409, -73.6418724060059,"Parc de la Confédération","Un-fenced off-leash dog park","1","Avenue Fielding et Avenue West Hill","","Off-leash park",true,0==1, true); create_map_point(912,45.4386946136811, -73.7292909622192,"St Charles","Fenced off-leash dog park","5","Avenue St Charles, Dorval, Qc","7am to 10pm","About 1.5 acres, grassy with ramp to water ",true,0==1, true); create_map_point(257,45.4279133100879, -73.6814832687378,"Parc René-Lévesque","On-leash dog park","4","1 Chemin du Musée","","On-leash park",true,0==1, true); create_map_point(270,45.4575870414297, -73.6491358280182,"Parc William-Bowie","On-leash dog park","4","4951 Avenue Trenholme","","On-leash park",true,0==1, true); create_map_point(593,45.4713722609389, -73.6266589164734,"Le Doggie Bag Cafe","Restaurant/cafe","6","5976 Monkland, NDG","","At the corner of Hampton",true,0==1, true); create_map_point(265,45.4918858285028, -73.6054158210754,"Parc Summit","On-leash dog park","4","Summit Circle","","On-leash park",true,0==1, true); create_map_point(234,45.5331686314461, -73.6295127868652,"Parc Jarry","On-leash dog park","4","Rue Faillon et Rue Jarry","","On-leash park",true,0==1, true); create_map_point(268,45.4887193882945, -73.7936425209045,"Parc Westwood","Un-fenced off-leash dog park","1","Fin de la Blvd de Salaberry est de la Blvd Sources","","Off-leash park",true,0==1, true); create_map_point(728,45.4634266070652, -73.6308646202087,"Trenholme Park","Fenced off-leash dog park","5","6800 Sherbrooke West","","",true,0==1, true); create_map_point(729,45.4612594161718, -73.6318945884705,"Trenholme Park","Fenced off-leash dog park","5","6800 Sherbrooke West, Montreal, Quebec","","",true,0==1, true); create_map_point(243,45.5009930523927, -73.59290599823,"Parc du Mont-Royal","On-leash dog park","4","1260 Chemin Remembrance","","On-leash park",true,0==1, true); create_map_point(238,45.4838452797276, -73.6049652099609,"Parc King George","Un-fenced off-leash dog park","1","Chemin Cote St-Antoine et Avenue Murray","","Off-leash park",true,0==1, true); create_map_point(250,45.4721697741884, -73.6150074005127,"Parc Notre-Dame-de-Grace","Un-fenced off-leash dog park","1","Avenue Girouard et Rue Sherbrooke Ouest","","Off-leash park",true,0==1, true); create_map_point(906,45.4728318520864, -73.6140632629395,"NDG park","Fenced off-leash dog park","5","Giroud/Sherbrooke","","big dog run",true,0==1, true); create_map_point(251,45.4990980288972, -73.5846662521362,"Parc Percy Walters","Un-fenced off-leash dog park","1","Avenue Docteur-Penfield et Rue Redpath","","Off-leash park",true,0==1, true); create_map_point(543,45.5705383512351, -73.6537599563599,"parc a chien ahuntsic ","Fenced off-leash dog park","5","angle st-firmin et fleury est","toujours ouvert","grand parc pour chien sans laisse ",true,0==1, true); create_map_point(262,45.5705158196889, -73.6535131931305,"Parc du Sault-au-Recollet","Un-fenced off-leash dog park","1","Rue de St-Firmin et Rue Fleury Est","","Off-leash park",true,0==1, true); create_map_point(911,45.4541101055869, -73.7726783752441,"Surrey park","Un-fenced off-leash dog park","1","1945 Parkfield Ave, Dorval, QC H9P 1A1","7am to 10pm","About 2 acres, lots of trees and walking track",true,0==1, true); create_map_point(261,45.5056250635409, -73.5799992084503,"Parc Rutherford","Un-fenced off-leash dog park","1","Avenue Docteur-Penfield et Avenue des Pins Ouest","","Off-leash park",true,0==1, true); create_map_point(369,45.4983760984079, -73.5756540298462,"Loews Hotel Vogue","Pet friendly accommodations","2","1425 Rue de la Montagne","","Nice Montreal Hotel-Pets stay free & get treats!