var map1; var bounds1; var businesses1; var geocodes1; var cntGeocoded1 = 0; var directionsPanel1; var directions1; var focusedBusiness1; function generateMap1() { if (GBrowserIsCompatible() && document.getElementById("svmap_canvas1") != null) { geocoder1 = new GClientGeocoder(); geocoder1.setCache(null); var mapOptions = { mapTypes:[G_NORMAL_MAP] }; map1 = new GMap2(document.getElementById("svmap_canvas1"), mapOptions); var mapControl = new GMapTypeControl(); map1.addControl(mapControl); map1.addControl(new GSmallZoomControl3D()); map1.disableDoubleClickZoom(); map1.disableScrollWheelZoom(); bounds1 = new GLatLngBounds; map1.setCenter(new GLatLng(55.178868,50.625), 3); var marker40 = new GIcon(); marker40.image = "http://thermalloys.com/components/com_svmap/markers/apartment-3.png"; marker40.iconSize = new GSize(32,37); marker40.iconAnchor = new GPoint(16,37); marker40.infoWindowAnchor = new GPoint(16,18.5); businesses1 = [[23,marker40,"Gebauer & Griller",48.249276171086095,16.369199752807617,'
',"/thermalloys/site/en/thermalloys-worldwide/europe/austria/gebaur-a-griller.html",""], [24,marker40,"Sandvik Heating Technology UK",53.025625,-2.197581,'
',"/thermalloys/site/en/thermalloys-worldwide/europe/united-kingdom/sandvik.html",""], [24,marker40,"Thermalloys AB",55.665193,8.986816,'
',"/thermalloys/site/en/thermalloys-worldwide/europe/denmark/thermalloys-ab.html",""],[25,marker40,"Sandvik Magyarország Kft.",47.47152428131156,19.141005277633667,'
',"/thermalloys/site/en/thermalloys-worldwide/europe/hungary/sandvik-magyarorszag-kft.html",""],[26,marker40,"Alsima d.o.o.",42.003812,21.452246,'
',"/thermalloys/site/en/thermalloys-worldwide/europe/macedonia/alsima-doo.html",""],[27,marker40,"Пред�?тавитель�?тво Kanthal AB в Ро�?�?ии и С�?Г",55.79607044162981,37.6032829284668,'
',"/thermalloys/site/en/thermalloys-worldwide/europe/russian-federation/-kanthal-ab----.html",""],[28,marker40,"R. Wick AG",47.14116119721895,8.46221923828125,'
',"/thermalloys/site/en/thermalloys-worldwide/europe/switzerland/r-wick-ag.html",""],[29,marker40,"Restrade AG",47.408332,7.538283,'
',"/thermalloys/site/en/thermalloys-worldwide/europe/switzerland/restrade-ag.html",""],[30,marker40,"Walter d.o.o.",44.77939810733011,17.192230224609375,'
',"/thermalloys/site/en/thermalloys-worldwide/europe/bosnia-and-herzegovina/walter-doo.html",""],[31,marker40,"Thermalloys AB",61.92411,25.748151,'
Finland
',"/thermalloys/site/en/thermalloys-worldwide/europe/finland/thermalloys-ab.html",""],[32,marker40,"Thermalloys AB",64.963051,-19.020835,'
Iceland
',"/thermalloys/site/en/thermalloys-worldwide/europe/iceland/thermalloys-ab.html",""],[33,marker40,"Sandvik Wire & Heating Technology",52.132633,5.291266,'
Netherlands
',"/thermalloys/site/en/thermalloys-worldwide/europe/netherlands/sandvik-wire-a-heating-technology.html",""],[34,marker40,"Alsima d.o.o.",44.718781,20.416784,'
Serbia
',"/thermalloys/site/en/thermalloys-worldwide/europe/serbia/alsima-doo.html",""],[35,marker40,"Sandvik Endüstriyel Mamüller",40.179807788173505,29.10404920578003,'
Turkey
',"/thermalloys/site/en/thermalloys-worldwide/europe/turkey/sandvik-enduestriyel-mamueller.html",""],[36,marker40,"Kanthal Repr. Office",42.703632059618045,23.325347900390625,'
Bulgaria
',"/thermalloys/site/en/thermalloys-worldwide/europe/bulgaria/kanthal-repr-office.html",""],[37,marker40,"Sandvik Wire and Heating Technology France",48.9011,2.3174,'
France
',"/thermalloys/site/en/thermalloys-worldwide/europe/france/sandvik-wire-and-heating-technology-france.html",""],[38,marker40,"Thermalloys AB",53.41291,-8.24389,'
Ireland
',"/thermalloys/site/en/thermalloys-worldwide/europe/ireland/thermalloys-ab.html",""],[39,marker40,"Thermalloys AB",60.472024,8.468946,'
Norway
',"/thermalloys/site/en/thermalloys-worldwide/europe/norway/thermalloys-ab.html",""],[40,marker40,"Prochrom-Comp d.o.o.",46.36114529775184,14.1009521484375,'
Slovenia
',"/thermalloys/site/en/thermalloys-worldwide/europe/slovenia/prochrom-comp-doo.html",""],[41,marker40,"Пред�?тавитель�?тво Kanthal AB в Украине",50.48044899113845,30.405006408691406,'
Ukraine
',"/thermalloys/site/en/thermalloys-worldwide/europe/ukraine/-kanthal-ab--.html",""],[42,marker40,"Dumicic d.o.o.",45.810221,15.989684,'
Croatia
',"/thermalloys/site/en/thermalloys-worldwide/europe/croatia/dumicic-doo.html",""],[43,marker40,"Sandvik Wire & Heating Technology",50.01546107724932,8.58306884765625,'
Germany
',"/thermalloys/site/en/thermalloys-worldwide/europe/germany/sandvik-wire-a-heating-technology.html",""],[44,marker40,"Sandvik Italia S.p.A.",45.50451973186561,9.137535095214844,'
Italia
',"/thermalloys/site/en/thermalloys-worldwide/europe/italy/sandvik-italia-spa.html",""],[45,marker40,"Sandvik Polska Sp. z. o.o",52.44261787120725,21.005859375,'
Poland
',"/thermalloys/site/en/thermalloys-worldwide/europe/poland/sandvik-polska-sp-z-oo.html",""],[46,marker40,"Sandvik Española",41.5094570537506,2.23391264677048,'
Spain
',"/thermalloys/site/en/thermalloys-worldwide/europe/spain/sandvik-espanola.html",""],[47,marker40,"Thermalloys AB",55.378051,-3.435973,'
United kingdom
',"/thermalloys/site/en/thermalloys-worldwide/europe/united-kingdom/thermalloys-ab.html",""],[48,marker40,"Praha, KNTL a.s.",50.110299692017755,14.599156379699707,'
Czech Republic
',"/thermalloys/site/en/thermalloys-worldwide/europe/czech-republic/praha-kntl-as.html",""],[49,marker40,"Sandvik Wire & Heating Technology",39.074208,21.824312,'
Greece
',"/thermalloys/site/en/thermalloys-worldwide/europe/greece/sandvik-wire-a-heating-technology.html",""],[50,marker40,"Sandvik Polska Sp. z. o.o",55.169438,23.881275,'
Lithuania
',"/thermalloys/site/en/thermalloys-worldwide/europe/lithuania/sandvik-polska-sp-z-oo.html",""],[51,marker40,"Keramserviss",57.070304,24.346417,'
Latvia
',"/thermalloys/site/en/thermalloys-worldwide/europe/latvia/keramserviss.html",""],[52,marker40,"Keramserviss",55.161612,23.626099,'
Lithuania
',"/thermalloys/site/en/thermalloys-worldwide/europe/lithuania/keramserviss.html",""],[53,marker40,"Holsag A.G",44.433205,26.094804,'
Romania
',"/thermalloys/site/en/thermalloys-worldwide/europe/romania/holsag-ag.html",""],[54,marker40,"Thermalloys AB",60.898044,15.135255,'
Sweden
',"/thermalloys/site/en/thermalloys-worldwide/europe/sweden/thermalloys-ab.html",""],[90,marker40,"Sandvik Española",39.399872,-8.224454,'
Portugal
',"/thermalloys/site/en/thermalloys-worldwide/europe/portugal/sandvik-espanola.html",""]]; addBusinesses1(); } } function setBounds1(bounds) { map1.setZoom(map1.getBoundsZoomLevel(bounds)); map1.setCenter(bounds.getCenter()); } function geocodeBusinesses1() { if (cntGeocoded1 < geocodes1.length) { geocoder1.getLocations(geocodes1[cntGeocoded1][7], addressResolved1); } } function addressResolved1(response) { var delay = 0; if (response.Status.code == 620) { delay = 500; } else { if (response.Status.code == 200) { var address = response.Placemark[0]; geocodes1[cntGeocoded1][3] = address.Point.coordinates[1]; geocodes1[cntGeocoded1][4] = address.Point.coordinates[0]; addBusiness1(geocodes1[cntGeocoded1]); } // Move onto the next address; this skips bad addresses, too. cntGeocoded1 += 1; } window.setTimeout(geocodeBusinesses1, delay); } function addBusinesses1() { for (var i=0; i < businesses1.length; i++) { addBusiness1(businesses1[i]); } } function addBusiness1(business) { var point = new GLatLng(business[3], business[4]); var markerOptions = { icon:business[1], draggable: false, "title":business[2] }; var marker = new GMarker(point, markerOptions); var form = ''; var info = business[5]; info = '