function evtPos(e) { var left = 0; var top = 0; if (!e) var e = window.event; if (e.pageX || e.pageY) { left = e.pageX; top = e.pageY; } else if (e.clientX || e.clientY) { left = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; top = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } return [left,top]; } function objHide(obj) { if(obj) { s = o.style; s.display = 'none'; } } function objPos(obj) { var left = 0; var top = 0; if (obj.offsetParent) { do { left += obj.offsetLeft; top += obj.offsetTop; } while (obj = obj.offsetParent); } return [left,top]; } var locator = { create: function(obj, skin, level, country) { eval( obj + " = new locator.object('" + obj + "','" + skin + "','" + level + "','" + country + "')" ); }, object: function(obj, skin, level, country) { this.obj = obj; this.skin = skin; // kleur: b=blauw, p=paars this.level = level; // 0=wereldkaart, 1=landkaart, 2=gebiedskaart this.country = country; // gekozen land voor level 1 this.area = ''; // gekozen gebied voor level 2 this.debug = true; // als je nog iets wilt zien van wat er gebeurt this.img_base = 'http://www.elacin.com/locator/img/'; this.address = new Array(); // retrieve data this.address[0] = new Array('an','','Oraid Hearing Instruments & CO','Velpstraat 3','Curaçao','','005999 461 6362','005999 461 7735','oraid@curlink.com',''); this.address[1] = new Array('at','','Altbauer Optik','Postalgasse 6a','Braunau am Inn','','0043 (0) 7722 63017','0043 (0) 7722 63827','altbauer.optiker@utanet.at','http://www.altbauer.optiker.at'); this.address[2] = new Array('at','','GN Resound','Wimbergergasse 14-16','Wien','','0043 01 524 54 00','0043 01 524 5444','info@gnresound.at','http://www.gnresound.at'); this.address[3] = new Array('at','','Haberkorn Ulmer GmbH','Hohe Brücke','Wolfurt','','0043 5574 6950 ','0043 5574 695 99 ','info.wolfurt@haberkorn.com','http://www.haberkorn.com'); this.address[4] = new Array('at','','KIND Hörgeräte GmbH','Herrengasse 6-8','Vienna','1010','0043 (0)1 533 98 21','0043 (0)1 533 31 00','info.at@kind.com','http:///www.kind.com'); this.address[5] = new Array('at','','Neuroth AG','Stmk. Schwarzau 51','Wolfsberg STMK','','0043 (0)31 1620 0128','0043 (0)31 16 20 00 500','office@neuroth.at','http://www.neuroth.at'); this.address[6] = new Array('au','','HearingTech Pty. Ltd. ','15 Hoban Avenue Montmorecy','Victoria','','00613 9444 9636','000613 9432 2616','info@hearingtech.com.au ','http://www.hearingtech.com.au'); this.address[7] = new Array('be','','Auxiliaire Acoustique de Charleroi','Rue Charles Dupret 18','Charleroi','','0032 (0)71 326 123','0032 (0)71 701 673','info@verannemancharleroi.be','http://www.veranneman-audio.be'); this.address[8] = new Array('be','','Fagnoul.be PGmbH/SPRL','Hauptstraße 31','Sankt Vith','','0032 (0)80 227 026','0032 (0)80 226 911','info@fagnoul.be','http://www.fagnoul.be'); this.address[9] = new Array('be','','Intersafe Groeneveld Belgium N.V.','Generaal De Wittelaan 17 bus 5','Mechelen','','0032 (0)15 42 33 20','0032 (0)15 42 14 86','info@intersafe-groeneveld.be','http://www.intersafe.eu'); this.address[10] = new Array('be','','Partner BvbA','Herentalsebaan 151','Borsbeek Antwerpen','','0032 (0)33 66 27 27','0032 (0)33 66 27 37','info@partnersafety.be','http://www.partnersafety.be'); this.address[11] = new Array('ch','','Audiolab Hörtechnik AG (Otoplastik AG)','Merkurstrasse 4','St. Gallen','','0041 (0)71 22 24 022','0041 (0)71 22 27 124','chwaldburger@bluewin.ch',''); this.address[12] = new Array('ch','','Copol Chemie AG','Amriswiler Straße 2a','Bischofszell','','0041 (0)71 422 65 31','0041 (0)71 422 65 32','copol@bluewin.ch',''); this.address[13] = new Array('ch','','Elea High-Tech AG','Kantonsstrasse 6','Visp','','0041 (0)27 946 64 88','0041 (0)27 946 68 46','',''); this.address[14] = new Array('ch','','Hörservice AG','Brandstrasse 62','Schlieren','','0041 (0)44 755 44 60','0041 (0)44 755 44 67','rolf.egli@hoerservice.ch','http://www.hoerservice.ch'); this.address[15] = new Array('ch','','KIND Hörzentralen AG','Hertensteinstrasse 8','Luzern','6004','0041 (0)41 418 70 70','0041 (0)41 418 70 71','info.ch@kind.com','http://www.kind.com'); this.address[16] = new Array('ch','','OC Otoplastisches Centrum GmbH','Mellingerstrasse 44','Baden','','0041 (0)56 210 33 30','0041 (0)56 210 33 32','info@ocgmbh.ch','http://www.ocgmbh.ch'); this.address[17] = new Array('de','','Dreve ProdiMed','Max-Planck-Str. 31 ','Unna','','0049 (0)2303 880 70','0049 (0)2303 - 829 09','info@dreve.de','http://www.dreve.de'); this.address[18] = new Array('de','','egger Otoplastik+Labortechnik GmbH','Aybühlweg 59','KEMPTEN','','0049 (0)831 58113-60','0049 (0)831 58113-3813','sales@egger-labor.de','http://www.egger-labor.com'); this.address[19] = new Array('de','','Hearsafe Technologies GmbH & Co. KG','Kölner straße 195','Köln','','0049 (0)22 03 91 000 ','0049 (0)22 03 91 002','info@hearsafe.de','http://www.hearsafe.de'); this.address[20] = new Array('de','','Intersafe Deutschland','Im Taubental 15','Neuss','41468','0049 (0)2131 718 640','0049 (0)2131 718 6464','info@intersafe-deutschland.com','http://www.intersafe-deutschland.com'); this.address[21] = new Array('de','','Köttgen Hörakustik GmbH & Co KG','Hohenzollernring 2-10','Köln ','','0049 (0)2 21 20 23 20','0049 (0)221 20 23 299','info@koettgen-hoerakustik.de','http://www.koettgen-hoerakustik.de'); this.address[22] = new Array('dk','','Siemens Høreapparater','Borupvang 3','Ballerup','','0045 63 15 40 00','0045 38 26 20 49','','http://www.siemens.dk/hearing'); this.address[23] = new Array('es','','GAES, S.A.','Pere IV, 160','Barcelona','','0034 933 005 800','0034 933 092 339','info@gaes.es','http://www.gaes.es'); this.address[24] = new Array('es','','Phonak Iberica S.A.','Urbanización el Palmeral Bloque 9 n. 17-27','Alicante','','0034 902 33 11 22','0034 965 11 16 72','info@phonak.es','http://www.phonak.es'); this.address[25] = new Array('fi','','Örum Oy Ab','Läntinen teollisuuskatu 2','Espoo','','00358 (0)10 569 45 75','00358 (0)10 569 45 46','info@orum.fi','http://www.turvanasi.fi'); this.address[26] = new Array('fr','','Acoufun sarl','87 rue Villiers de l\'isle-Adam','Paris','','0030 (0)6 1212 5114','','contact@acoufun.com','http://www.acoufun.com'); this.address[27] = new Array('fr','','Elcea France S.A.','18 bis, rue des Louveries','Coignieres','','0033 (0)1 34 613 782','0033 (0)1 34 611 086','contact@elceafrance.com','http://www.elceafrance.com'); this.address[28] = new Array('fr','','Intersafe Abrium','ZI Paris Nord II, 13, Rue de la Perdrix','95943 Roissy CDG Cedex','','0033 (0)148 17 92 00','0033 (0)148 17 92 02','info@abrium.com','http://www.intersafe-abrium.com'); this.address[29] = new Array('fr','','Interson Protac','4 avenue du Midi B.P. 11','Congenies ','','0033 (0)466 80 22 89','0033 (0)466 80 22 81','info@interson-protac.com','http://www.interson-protac.com'); this.address[30] = new Array('hk','','European Custom Earplugs Ltd.','1A55 Cresmont Villa','Lantau island','','00852 9209 5740','00852 2430 9360 ','info@europeancustomearplugs.com.hk','http://www.europeancustomearplugs.com.hk'); this.address[31] = new Array('ie','','Davies Safety World','535 North Circular Road','Dublin 1','','00353 018 363 027','00353 018 555 003','ppe@safetyworld.ie','http://www.safetyworld.ie'); this.address[32] = new Array('ie','','Hearing Healtcare Ireland','60 Capel Street','Dublin 1','','00353 (0)1 872 6893 ','00353 (0)1 873 0943','info@hearing.ie','http://www.hearing.ie/'); this.address[33] = new Array('ie','','Innovection Ltd.','33, Pearse Street','Dublin 2','','00353 1890 987 967','00353 1890 987 957','info@innovection.net','http://www.innovection.net'); this.address[34] = new Array('il','','I. Adut Ltd. Hearing Center & Speech Therapy','16 Marmorek St.','Tel-Aviv','','00972 (0)368 52662','00972 (0)368 52661','info@adut.co.il. ','http://www.adut.co.il'); this.address[35] = new Array('it','','Esse Vi di Travella Olimpio','Via Pizzo Redorta 7','Bergamo','','0039 (0)35 30 22 25','0039 (0)35 30 22 25','essevi2@essevi-oto.it','http://www.essevi-oto.it/'); this.address[36] = new Array('it','','Starkey Italy Srl','Via Torino, 51','Cernusco sul naviglio mi','','0039 (0)29 27 21 81','0039 (0)29 21 09 680','info@starkey.it','http://www.starkey.it'); this.address[37] = new Array('lt','','UAB Biomedika Technical Center','Antakalnio 36','Vilnius LT-10305','','00370 5 270 90 55','00370 5 270 90 56','info@biomedika.lt','http://www.biomedika.lt'); this.address[38] = new Array('lu','','KIND Centre Auditif S. àr. l.','12, rue Duchscher','Luxembourg','1424','00352 (0)29 57 05','00352 (0)29 57 06','info@kind.com','http://www.kind.com'); this.address[39] = new Array('nl','','Intersafe Groeneveld B.V.','P.O. Box 86','Dordrecht','','0031 (0)78 618 14 00','0031 (0)78 652 46 05','info@intersafe-groeneveld.nl','http://www.intersafe.eu'); this.address[40] = new Array('no','','Starkey Vest Audio Service','Sjohagen 3','Stavanger','','0047 51 58 06 01','0047 51 58 41 01','info@starkey.no','http://www.starkey.no'); this.address[41] = new Array('nz','','Elacin New Zealand Ltd.','1 Gibson Place','Papamoa','','0064 75423659','0064 21 1147556','info@elacin.co.nz','http://www.elacin.co.nz'); this.address[42] = new Array('pl','','HS Profile Sp. Z o.o. Oddzial w Polsce','ul. Kosynierów 5/3','Rzeszow','35-036','0048 (0)17 7850 660','0048 (0)17 7850 665','marcin@hsprofile.pl','http://www.hsprofile.pl'); this.address[43] = new Array('pl','','KIND Aparaty Sluchowe','Ulicka Wlodowica 26a','Poznan','60-334','0048 (0)61 865 40 20','','centrala@kind.pl','http://www.kind.com'); this.address[44] = new Array('pl','','Starkey Laboratories Poland sp. z o.o.','ul. Slowicza 41','Warszawa','','0048 (0)22 84 60 235','0048 (0)22 87 80 037','starkey@starkey.com.pl','http://www.starkey.com.pl'); this.address[45] = new Array('pt','','Centro Auditivo','Rua da Prata 227 - 1.º E','Lisbon','','00351 21 34 62 105','00351 21 34 25 282','info@centroauditivo.com.pt','http://www.centroauditivo.com.pt'); this.address[46] = new Array('se','','Bellman & Symfon AB','Sodra Langebergsgatan 30','Vastra Frolunda','','0046 (0)31 68 28 20','0046 (0)31 68 28 90','info@bellman.se','http://www.bellman.se'); this.address[47] = new Array('si','','Komfort','Vegova ulica 15, Njiverce','Kidričevo ','','00386 (0)27 96 95 71','00386 (0)27 96 95 72','info@komfort.si','http://www.komfort.si'); this.address[48] = new Array('tr','','Kadikoy Isitme Merkezi Ltd. Sti.','Bahariye Cad. Emek Apt. No: 14/4 Kat.2/ Kadiköy','Istanbul ','','0090 (0)216 336 36 27','0090 (0)216 418 23 64','info@kadikoyisitme.com','http://www.kadikoyisitme.com/'); this.address[49] = new Array('tr','','Turkuaz isitme merkezi, Altiparmak cad. ','Selim sok. No. 4 osmangazi bursa','Bursa','16050 ','0090 224 224 6460','0090 224 224 8460','c.suleyman.cifci@turkuazisitme.com','http://www.turkuazisitme.com'); this.address[50] = new Array('uk','','Intersafe UK','P.O. Box 6484','New Milton','','0044 (0)78 136 487 68','','info@intersafeuk.co.uk','http://www.intersafeuk.co.uk'); this.address[51] = new Array('uk','','KIND Hearing Aids','Suite 2, Barker Chambers, Barker Road','Maidstone, Kent','ME16 8S','0044 (0)1622 690 111','044 (0)1622 690 1188','info@kindhearing.co.uk','http://www.kind.com'); this.address[52] = new Array('uk','','Puretone','9-10 Henley Business Park, Trident Close, Medway City Estate','Rochester, Kent','ME2 4FR','0044 (0)1634 719427','0044 (0)1634 719450','info@puretone.net','http://www.puretonemusic.net'); // PROTECTED this._popup = function(left, top, width, height, title, countries) { o = document.getElementById('locator_map_popup'); s = "
" + title + "
"; s += "
"; for(i = 0; i < countries.length ; i++) { landenpic=countries[i][1].replace(' ','-'); landenpic=landenpic.replace(' ','-'); landenpic=landenpic.replace('ë','e'); landenpic=landenpic.toLowerCase(); url = "http://www.elacin.com/outlets/"+landenpic+"/"; if(countries[i][1] == 'Netherlands'){ countries[i][1]='The Netherlands'; } s += "
" + " "+countries[i][1] +""+ "
"; // naam } s += "
"; o.innerHTML = s; s = o.style; s.width = width + 'px'; s.height = height + 'px'; s.left = left + 'px'; s.top = top + 'px'; s.display = "block"; }; /*"onclick='" + this.obj + ".country=\"" + countries[i][0] + "\"; " + this.obj + "._select(\"" + countries[i][0] + "\");" + this.obj + ".level=\"1\"; " + this.obj + "._update();' " +*/ this._popup_hide = function(e) { o = document.getElementById('locator_map_popup'); ePos = evtPos(e); oPos = objPos(o); minX = oPos[0]; maxX = oPos[0] + parseInt(o.style.width); minY = oPos[1]; maxY = oPos[1] + parseInt(o.style.height); if( (ePos[0] <= minX || ePos[0] >= maxX) || (ePos[1] <= minY || ePos[1] >= maxY) ) { objHide(o); } }; this._select = function(tag) { //alert('level=' + this.level + ', tag=' + tag); switch(this.level) { case '0': this.country = tag; o = document.getElementById("locator_top"); s = ""; for(i = 0; i < this.address.length ; i++) { if( this.address[i][0] == this.country && this.address[i][1] == '' ) { s += "plaats: " + this.address[i][4] + "
" + "naam: " + this.address[i][2] + "
" + "
" + "\n"; } } o.innerHTML = s; break; case '1': this.area = tag; o = document.getElementById("locator_top"); s = 'landelijk'; o.innerHTML = s; o = document.getElementById("locator_bottom"); s = ""; for(i = 0; i < this.address.length ; i++) { if( this.address[i][0] == this.country && this.address[i][1] == this.area ) { s += "plaats: " + this.address[i][4] + "
" + "naam: " + this.address[i][2] + "
" + "
" + "\n"; } } o.innerHTML = s; break; } }; this._show = function(tag) { switch(this.level) { case '0': o = document.getElementById('locator_map'); switch(tag) { case 'afr': // this._popup(200, 10 - parseInt(o.style.height), 150, 150, "Africa", null); break; case 'asi': this._popup(330, 60 - parseInt(o.style.height), 150, 82, "Asia;", Array( Array('hk', 'Hong-Kong'), Array('il', 'Israel'), Array('tr', 'Turkey') ) ); break; case 'eur': this._popup(200, 10 - parseInt(o.style.height), 150, 439, "Europe", Array( Array('at', 'Austria'), Array('be', 'Belgium'), Array('dk', 'Denmark'), Array('fi', 'Finland'), Array('fr', 'France'), Array('de', 'Germany'), Array('ie', 'Ireland'), Array('it', 'Italy'), Array('lt', 'Lithuania'), Array('lu', 'Luxembourg'), Array('nl', 'Netherlands'), Array('no', 'Norway'), Array('pl', 'Poland'), Array('pt', 'Portugal'), Array('sb', 'Serbia'), Array('sb', 'Slovenia'), Array('es', 'Spain'), Array('se', 'Sweden'), Array('ch', 'Switzerland'), Array('uk', 'United Kingdom') ) /* this._popup(200, 10 - parseInt(o.style.height), 150, 418, "Europa", Array( Array('be', 'België'), Array('dk', 'Denemarken'), Array('de', 'Duitsland'), Array('fi', 'Finland'), Array('fr', 'Frankrijk'), Array('uk', 'Groot Brittanië'), Array('ie', 'Ierland'), Array('it', 'Italië'), Array('lt', 'Litouwen'), Array('nl', 'Nederland'), Array('no', 'Noorwegen'), Array('at', 'Oostenrijk'), Array('pl', 'Polen'), Array('pt', 'Portugal'), Array('sb', 'Servië'), Array('sb', 'Slovenië'), Array('es', 'Spanje'), Array('se', 'Zweden'), Array('ch', 'Zwitserland') )*/ ); break; case 'nam': // this._popup(200, 10 - parseInt(o.style.height), 150, 100, "North America", null); break; case 'oce': this._popup(390, 200 - parseInt(o.style.height), 150, 61, "Oceania", Array( Array('au', 'Australia'), Array('nz', 'New Zealand') ) ); break; case 'sam': this._popup(100, 220 - parseInt(o.style.height), 150, 40, "South America", Array( Array('an','Netherlands Antilles') ) ); break; } break; case '1': /* o = document.getElementById('locator_map_img'); o.src = this.country + '_' + this.skin + '.png'; alert(o.src); // het land kom binnen via this.country // de landkaarten heten country_skin.png, voor elcea is dat de b van blauw */ break; } }; this._set_areas = function(img, areas) { var map = document.getElementById('locator_map_map'); while (map.childNodes.length > 0) { map.removeChild(map.childNodes[0]); } for(i = 0; i < areas.length ; i++) { area = document.createElement("AREA"); area.id = 'locator_map_area_' + i; area.shape = "poly"; area.coords = areas[i][1]; area.href = '#' + areas[i][0]; area._onmouseover = this.obj + "._show('"+areas[i][0]+"');"; // prepare function content for later area.onmouseover = function() { eval(this._onmouseover); } area._onclick = this.obj + "._select('" + areas[i][0] + "');"; // prepare function content for later area.onclick = function() { eval(this._onclick); }; map.appendChild(area); } o = document.getElementById('locator_map_img'); o.src = img; o.usemap = '#locator_map_map'; }; this._update = function() { img = ''; map = ''; o = document.getElementById('locator_map_popup'); objHide(o); switch(this.level) { case '0': // wereldkaart var areas = Array( Array('nam', '164,228,176,218,218,220,240,139,262,116,142,109,7,137,8,176'), Array('sam', '165,231,176,220,227,224,230,333,152,329'), Array('eur', '265,186,331,187,344,183,321,132,244,140'), Array('afr', '326,192,267,188,253,201,252,226,284,236,297,291,354,291,352,226'), Array('asi', '329,191,380,252,546,253,548,118,319,119,350,178'), Array('oce', '446,258,547,257,546,328,445,325,445,323,428,287') ); this._set_areas(this.img_base + 'wereld_' + this.skin + '.png', areas); break; case '1': // landenkaart switch(this.country) { case 'nl': var areas = Array( Array('dr', '162,61,178,79,186,75,207,77,213,60,179,31,173,37,174,54'), Array('fl', '108,101,120,112,143,91,147,71,136,61'), Array('fr', '147,63,123,60,94,21,114,1,168,2,166,30,172,50'), Array('ge', '100,152,109,159,116,158,122,151,130,151,138,158,152,155,'+ '159,148,177,151,194,133,181,121,165,117,156,108,160,100,'+ '146,94,124,115,132,131,131,140,107,140'), Array('gr', '170,28,171,2,199,2,218,30,215,56,179,30,171,35'), Array('li', '130,205,146,190,146,161,150,158,163,179,153,245,133,243'), Array('nb', '56,198,52,170,83,155,97,154,104,162,117,162,124,153,128,'+ '154,136,161,145,162,142,190,128,204'), Array('nh', '84,115,89,109,98,109,106,114,110,110,100,98,100,50,85,24,'+ '70,105'), Array('ov', '147,91,164,98,160,107,194,129,211,102,186,77,177,83,161,'+ '64,148,67'), Array('ut', '90,112,88,136,92,139,97,136,127,137,121,114,109,115,109,'+ '119,97,113'), Array('ze', '29,152,1,175,1,201,52,203,49,168'), Array('zh', '67,109,86,119,86,140,94,142,97,139,104,141,95,151,82,152,'+ '51,165,33,149') ); this._set_areas(this.img_base + '/' + this.country + '_' + this.skin + '.png', areas); break; default: o = document.getElementById('locator_map_img'); o.src = this.img_base + '/' + this.country + '_' + this.skin + '.png'; o = document.getElementById('locator_bottom'); s = ""; for(i = 0; i < this.address.length ; i++) { if( this.address[i][0] == this.country && this.address[i][1] == this.area ) { //### mooie opmaak?! s += "plaats: " + this.address[i][4] + "
" + "naam: " + this.address[i][2] + "
" + "
" + "\n"; } } o.innerHTML = s; break; } case '2': // gebiedskaart break; } } // GLOBAL this.show = function() { document.write( "
" + "
" + "" + "" + "" + "
" + "
" + "
" + "
" + "
" + "
" ); this._update(); }; } }