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(42.733883,25.48583), 7); 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,'

Gebauer & Griller




',"/thermalloys/site/en/thermalloys-worldwide/europe/austria/gebaur-a-griller.html",""],[24,marker40,"Thermalloys AB",55.665193,8.986816,'

Thermalloys AB




',"/thermalloys/site/en/thermalloys-worldwide/europe/denmark/thermalloys-ab.html",""],[25,marker40,"Sandvik Magyarország Kft.",47.47152428131156,19.141005277633667,'

Sandvik Magyarország Kft.




',"/thermalloys/site/en/thermalloys-worldwide/europe/hungary/sandvik-magyarorszag-kft.html",""],[26,marker40,"Alsima d.o.o.",42.003812,21.452246,'

Alsima d.o.o.




',"/thermalloys/site/en/thermalloys-worldwide/europe/macedonia/alsima-doo.html",""],[27,marker40,"ПредÑ?тавительÑ?тво Kanthal AB в РоÑ?Ñ?ии и СÐ?Г",55.79607044162981,37.6032829284668,'

ПредÑ?тавительÑ?тво Kanthal AB в РоÑ?Ñ?ии и СÐ?Г




',"/thermalloys/site/en/thermalloys-worldwide/europe/russian-federation/-kanthal-ab----.html",""],[28,marker40,"R. Wick AG",47.14116119721895,8.46221923828125,'

R. Wick AG




',"/thermalloys/site/en/thermalloys-worldwide/europe/switzerland/r-wick-ag.html",""],[29,marker40,"Restrade AG",47.408332,7.538283,'

Restrade AG




',"/thermalloys/site/en/thermalloys-worldwide/europe/switzerland/restrade-ag.html",""],[30,marker40,"Walter d.o.o.",44.77939810733011,17.192230224609375,'

Walter d.o.o.




',"/thermalloys/site/en/thermalloys-worldwide/europe/bosnia-and-herzegovina/walter-doo.html",""],[31,marker40,"Thermalloys AB",61.92411,25.748151,'

Thermalloys AB




Finland

',"/thermalloys/site/en/thermalloys-worldwide/europe/finland/thermalloys-ab.html",""],[32,marker40,"Thermalloys AB",64.963051,-19.020835,'

Thermalloys AB




Iceland

',"/thermalloys/site/en/thermalloys-worldwide/europe/iceland/thermalloys-ab.html",""],[33,marker40,"Sandvik Wire & Heating Technology",52.132633,5.291266,'

Sandvik Wire & Heating Technology




Netherlands

',"/thermalloys/site/en/thermalloys-worldwide/europe/netherlands/sandvik-wire-a-heating-technology.html",""],[34,marker40,"Alsima d.o.o.",44.718781,20.416784,'

Alsima d.o.o.




Serbia

',"/thermalloys/site/en/thermalloys-worldwide/europe/serbia/alsima-doo.html",""],[35,marker40,"Sandvik Endüstriyel Mamüller",40.179807788173505,29.10404920578003,'

Sandvik Endüstriyel Mamüller




Turkey

',"/thermalloys/site/en/thermalloys-worldwide/europe/turkey/sandvik-enduestriyel-mamueller.html",""],[36,marker40,"Kanthal Repr. Office",42.703632059618045,23.325347900390625,'

Kanthal Repr. Office




Bulgaria

',"/thermalloys/site/en/thermalloys-worldwide/europe/bulgaria/kanthal-repr-office.html",""],[37,marker40,"Sandvik Wire and Heating Technology France",48.9011,2.3174,'

Sandvik Wire and Heating Technology France




France

',"/thermalloys/site/en/thermalloys-worldwide/europe/france/sandvik-wire-and-heating-technology-france.html",""],[38,marker40,"Thermalloys AB",53.41291,-8.24389,'

Thermalloys AB




Ireland

',"/thermalloys/site/en/thermalloys-worldwide/europe/ireland/thermalloys-ab.html",""],[39,marker40,"Thermalloys AB",60.472024,8.468946,'

Thermalloys AB




Norway

',"/thermalloys/site/en/thermalloys-worldwide/europe/norway/thermalloys-ab.html",""],[40,marker40,"Prochrom-Comp d.o.o.",46.36114529775184,14.1009521484375,'

Prochrom-Comp d.o.o.




Slovenia

',"/thermalloys/site/en/thermalloys-worldwide/europe/slovenia/prochrom-comp-doo.html",""],[41,marker40,"ПредÑ?тавительÑ?тво Kanthal AB в Украине",50.48044899113845,30.405006408691406,'

ПредÑ?тавительÑ?тво Kanthal AB в Украине




Ukraine

',"/thermalloys/site/en/thermalloys-worldwide/europe/ukraine/-kanthal-ab--.html",""],[42,marker40,"Dumicic d.o.o.",45.810221,15.989684,'

Dumicic d.o.o.




Croatia

',"/thermalloys/site/en/thermalloys-worldwide/europe/croatia/dumicic-doo.html",""],[43,marker40,"Sandvik Wire & Heating Technology",50.01546107724932,8.58306884765625,'

Sandvik Wire & Heating Technology




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,'

Sandvik Italia S.p.A.




Italia

',"/thermalloys/site/en/thermalloys-worldwide/europe/italy/sandvik-italia-spa.html",""],[45,marker40,"Sandvik Polska Sp. z. o.o",52.44261787120725,21.005859375,'

Sandvik Polska Sp. z. o.o




Poland

',"/thermalloys/site/en/thermalloys-worldwide/europe/poland/sandvik-polska-sp-z-oo.html",""],[46,marker40,"Sandvik Española",41.5094570537506,2.23391264677048,'

Sandvik Española




Spain

',"/thermalloys/site/en/thermalloys-worldwide/europe/spain/sandvik-espanola.html",""],[47,marker40,"Thermalloys AB",55.378051,-3.435973,'

Thermalloys AB




United kingdom

',"/thermalloys/site/en/thermalloys-worldwide/europe/united-kingdom/thermalloys-ab.html",""],[48,marker40,"Praha, KNTL a.s.",50.110299692017755,14.599156379699707,'

Praha, KNTL a.s.




Czech Republic

',"/thermalloys/site/en/thermalloys-worldwide/europe/czech-republic/praha-kntl-as.html",""],[49,marker40,"Sandvik Wire & Heating Technology",39.074208,21.824312,'

Sandvik Wire & Heating Technology




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,'

Sandvik Polska Sp. z. o.o




Lithuania

',"/thermalloys/site/en/thermalloys-worldwide/europe/lithuania/sandvik-polska-sp-z-oo.html",""],[51,marker40,"Keramserviss",57.070304,24.346417,'

Keramserviss




Latvia

',"/thermalloys/site/en/thermalloys-worldwide/europe/latvia/keramserviss.html",""],[52,marker40,"Keramserviss",55.161612,23.626099,'

Keramserviss




Lithuania

',"/thermalloys/site/en/thermalloys-worldwide/europe/lithuania/keramserviss.html",""],[53,marker40,"Holsag A.G",44.433205,26.094804,'

Holsag A.G




Romania

',"/thermalloys/site/en/thermalloys-worldwide/europe/romania/holsag-ag.html",""],[54,marker40,"Thermalloys AB",60.898044,15.135255,'

Thermalloys AB




Sweden

',"/thermalloys/site/en/thermalloys-worldwide/europe/sweden/thermalloys-ab.html",""],[90,marker40,"Sandvik Española",39.399872,-8.224454,'

Sandvik Española




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 = '
Get directions : From here - To here
'; var info = business[5]; info = '
'+info+'
'; marker.bindInfoWindowHtml(info); map1.addOverlay(marker); } function showFormFrom() { document.getElementById('formFrom').style.display = 'block'; document.getElementById('formTo').style.display = 'none'; return false; } function showFormTo() { document.getElementById('formTo').style.display = 'block'; document.getElementById('formFrom').style.display = 'none'; return false; } function findDirections1(from, to) { if (directions1 == null) { directionsPanel1 = document.getElementById('svmap_directions_panel1'); directions1 = new GDirections(map1, directionsPanel1); GEvent.addListener(directions1, "error", directionsError); } else { directions1.clear(); } directions1.load("from: "+from+" to: "+to); } function directionsError(response) { status = response.getStatus(); switch (status.code) { case 602: message = "No corresponding geographic location could be found for the specified address. This may be due to the fact that the address is relatively new, or it may be incorrect."; break; case 603: message = "The route for the given directions query cannot be returned due to legal or contractual reasons."; break; case 604: message = "The directions between the points mentioned in the query could not be computed. This is usually because there is no route available between the two points, or because there is no data for routing in that region."; break; default: message = "The directions between the points mentioned in the query could not be computed."; break; } alert(message); }