

    (function ($, window, document, undefined) {
    $(function () {
    var gme = new Object();

    gme.zoomTypes = new Array(0,1,2);
    gme.defaultMapTypes = new Array("roadmap", "satellite", "hybrid", "terrain", "Simon Hegele");

    gme.mapSettings = {
    id: 'gme-' + 1,
    title: 'Standorte',
    width: '100%',
    height: '850px',
    zoom: 0,
    minZoom: 3,
    maxZoom: 20,
    lat: 0,
    lng: 0,
    geolocation: 0,
    kmlUrl: '',
    kmlPreserveViewport: false,
    kmlLocal: 0,
    scrollZoom: 0,
    draggable: 1,
    doubleClickZoom: 0,
    markerCluster: 1,
    markerClusterZoom: null,
    markerClusterSize: 6,
    
            markerClusterStyle: '',
        
    markerSearch: 0,
    defaultType: 4,
    scaleControl: 0,
    streetviewControl: 0,
    fullscreenControl: 0,
    zoomControl: 1,
    mapTypeControl: 0,
    showRoute: 0,
    calcRoute: 0,
    travelMode: 0,
    unitSystem: 2,
    showForm: 0,
    showCategories: 1,
    logicalAnd: 0,
    styledMapName: 'Simon Hegele',
    
            styledMapCode: [
    {
        "featureType": "administrative",
        "elementType": "labels.text.fill",
        "stylers": [
            {
                "color": "#444444"
            }
        ]
    },
    {
        "featureType": "landscape",
        "elementType": "all",
        "stylers": [
            {
                "color": "#f2f2f2"
            }
        ]
    },
    {
        "featureType": "poi",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "poi.business",
        "elementType": "geometry.fill",
        "stylers": [
            {
                "visibility": "on"
            }
        ]
    },
    {
        "featureType": "road",
        "elementType": "all",
        "stylers": [
            {
                "saturation": -100
            },
            {
                "lightness": 45
            }
        ]
    },
    {
        "featureType": "road.highway",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "simplified"
            }
        ]
    },
    {
        "featureType": "road.arterial",
        "elementType": "labels.icon",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "transit",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "water",
        "elementType": "all",
        "stylers": [
            {
                "color": "#b4d4e1"
            },
            {
                "visibility": "on"
            }
        ]
    }
],
        
    defaultZoom: 11
    }

    gme.mapSettings.mapTypes = new Array();
    
        gme.mapSettings.mapTypes[0] = gme.defaultMapTypes[4];
    

    gme.request = new Array();

    

    gme.addresses = new Array();
    
        gme.addresses[0]  = {
        uid: 31,
        title: 'Chicago',
        latitude: 41.980286,
        longitude: -87.977273,
        address: '855 N Wood Dale Rd Suite A, Wood Dale, IL 60191, USA',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Chicago</h3></div><p><strong>Simon Hegele Healthcare Solutions, LLC</strong><br> 855 N. Wood Dale Rd, Suite A<br> Wood Dale, IL 60191<br> USA<br> <a href="http://www.simonhegele.com" target="_blank" rel="noreferrer" class="color font-weight-bold">www.simonhegele.com</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[1]  = {
        uid: 33,
        title: 'Brisbane',
        latitude: -27.379144,
        longitude: 153.092892,
        address: 'Unit 7/14 Ashtan Pl, Banyo QLD 4014, Australia',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Brisbane</h3></div><p><strong>Simon Hegele Healthcare Solutions, Pty. Ltd.</strong><br> 7/14 Ashtan Place<br> Banyo, QLD 4014<br> Australien<br> <a href="http://www.simonhegele.com" target="_blank" rel="noreferrer" class="color font-weight-bold">www.simonhegele.com</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[2]  = {
        uid: 37,
        title: 'Marignane',
        latitude: 43.400920,
        longitude: 5.204698,
        address: '2 Rue Jacqueline Auriol, 13700 Marignane, France',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Marignane</h3></div><p><strong>Matrium France S.A.S.</strong><br> 2-4 Ave. Jacqueline Auriol<br> ZAC des Florides<br> 13700 Marignane<br> France</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[3]  = {
        uid: 21,
        title: 'DL Nürnberg - Winter-Günther-Straße 11',
        latitude: 49.423413,
        longitude: 11.077396,
        address: 'Winter-Günther-Straße 11, 90441 Nürnberg, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/8/csm_DL_daf9a6c26f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Nürnberg</h3></div><p><strong>DL Dieter Ludwig Logistik und Service GmbH&nbsp;</strong><br> Winter-Günther-Straße&nbsp;11<br> 90441 Nürnberg</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[4]  = {
        uid: 3,
        title: 'IT Chain Berlin - Danckelmannstraße 9d',
        latitude: 52.516105,
        longitude: 13.290377,
        address: 'Danckelmannstraße 9d, 14059 Berlin, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/4/0/csm_ITC_1f17ea3b3f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Berlin</h3></div><p><strong>IT Chain GmbH</strong><br> Danckelmannstraße 9d<br> 14059 Berlin</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[5]  = {
        uid: 1,
        title: 'SH Duisburg - Bliersheimer Straße 22',
        latitude: 51.384990,
        longitude: 6.720108,
        address: 'Bliersheimer Str. 22, 47229 Duisburg, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/6/f/csm_duisburg_9178899d6f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Duisburg</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Bliersheimer Straße 22<br> 47229 Duisburg</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[6]  = {
        uid: 20,
        title: 'SH Kemnath - Hammergrabenstraße 28',
        latitude: 49.862047,
        longitude: 11.879523,
        address: 'Hammergrabenstraße 28, 95478 Kemnath, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Kemnath</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Hammergrabenstraße 28<br> 95478 Kemnath</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[7]  = {
        uid: 13,
        title: 'SH Karlsruhe - Haid-und-Neu-Straße 13-15',
        latitude: 49.013410,
        longitude: 8.427360,
        address: 'Haid-und-Neu-Straße 13-15, 76131 Karlsruhe, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsruhe</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Haid-und-Neu-Straße 13-15<br> 76131 Karlsruhe</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[8]  = {
        uid: 12,
        title: 'IT Chain Karlsruhe - Fettweisstraße 22',
        latitude: 49.011350,
        longitude: 8.320960,
        address: 'Fettweisstraße 22, 76189 Karlsruhe, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/4/0/csm_ITC_1f17ea3b3f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsruhe</h3></div><p><strong>IT Chain GmbH</strong><br> Fettweisstraße 22<br> 76189 Karlsruhe</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[9]  = {
        uid: 11,
        title: 'SH Karlsdorf - Simon-Hegele-Straße 3',
        latitude: 49.146431,
        longitude: 8.556210,
        address: 'Simon-Hegele-Straße 3, 76689 Karlsdorf-Neuthard, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsdorf</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Simon-Hegele-Straße 3<br> 76689 Karlsdorf-Neuthard</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[10]  = {
        uid: 27,
        title: 'Logistik Zentrum Allgäu Immenstadt - Robert-Bosch-Straße 2',
        latitude: 47.588258,
        longitude: 10.249714,
        address: 'Robert-Bosch-Straße 2, 87509 Immenstadt im Allgäu, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/b/c/csm_LZA_5e487f4bf0.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Immenstadt</h3></div><p><strong>Logistik Zentrum Allgäu GmbH &amp; Co.KG</strong><br> Robert-Bosch-Straße 2<br> 87509 Immenstadt</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[11]  = {
        uid: 17,
        title: 'Matrium Friedrichshafen - Graf-von-Soden-Straße',
        latitude: 47.674735,
        longitude: 9.383197,
        address: 'Graf-von-Soden-Straße, 88090 Immenstaad am Bodensee, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/6/3/csm_immenstaad_c229157b24.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Friedrichshafen</h3></div><p><strong>Matrium GmbH</strong><br> Graf-von-Soden-Straße<br> 88090 Immenstaad am Bodensee<br> <a href="http://www.matrium.net/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.matrium.net</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[12]  = {
        uid: 19,
        title: 'SH Forchheim - Rittigfeld 1',
        latitude: 49.686600,
        longitude: 11.059450,
        address: 'Rittigfeld 1, 91301 Forchheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/1/9/csm_forchheim_17bb7e5e8d.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Forchheim</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Rittigfeld 1<br> 91301 Forchheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[13]  = {
        uid: 16,
        title: 'Matrium Ulm - Sedanstraße 18',
        latitude: 48.391020,
        longitude: 9.972060,
        address: 'Sedanstraße 18, 89077 Ulm, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/6/3/csm_immenstaad_c229157b24.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Ulm</h3></div><p><strong>Matrium GmbH</strong><br> Sedanstraße 18<br> 89077 Ulm<br> <a href="http://www.matrium.net/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.matrium.net</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[14]  = {
        uid: 18,
        title: 'Distriparts Uffenheim - Landwehrstraße 8',
        latitude: 49.515426,
        longitude: 10.191942,
        address: 'Landwehrstraße 8, 97215 Uffenheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/2/9/csm_distriparts_2f8a378682.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Uffenheim</h3></div><p><strong>Distriparts Deutschland GmbH</strong><br> Landwehrstraße 8<br> 97215 Uffenheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[15]  = {
        uid: 36,
        title: 'Mexiko',
        latitude: 19.731777,
        longitude: -99.212821,
        address: 'Libramiento Norte. 30 Nave B15-A Rancho La Teja (la Teja 2), TEPOZPARK IV Tepotzotlán, 54607 Ciudad de México, Méx., Mexiko',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Mexiko</h3></div><p><strong>Simon Hegele Healthcare Solutions , S.A. de C.V</strong>.<br> Libramiento Norte No. 30 Nave 15-A<br> Rancho La Teja (la Teja 2)<br> TEPOZPARK IV<br> Tepotzotlán<br> Estado de México 54605<br> Mexico</p><p><a href="http://www.simonhegele.com" target="_blank" rel="noreferrer" class="color font-weight-bold">http://www.simonhegele-healthcare.com/</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[16]  = {
        uid: 34,
        title: 'Istanbul',
        latitude: 40.980780,
        longitude: 29.088629,
        address: '19 Mayis Mah. Atatürk Cad. No 68/3, Ulya Engin İş Merkezi Kat: 3 34736 Kadiköy - Istanbul',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Istanbul</h3></div><p><strong>Simon Hegele Lojistik ve Servis Tic. Ltd. Sti.</strong></p><p>19 Mayis Mah. Atatürk Cad. No 68/3<br> Ulya Engin İş Merkezi Kat: 3<br> 34736 Kadiköy - Istanbul<br> Turkey</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[17]  = {
        uid: 32,
        title: 'Abingdon',
        latitude: 51.623232,
        longitude: -1.279335,
        address: '120 Sutton Courtenay Road, Abingdon, OX14 4TE, UK',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Abingdon</h3></div><p><strong>Simon Hegele Logistics and Service ltd.</strong><br> DQ120 Didcot Quarter<br> Sutton Courtenay Road<br> Sutton Courtenay<br> Abingdon<br> OX14 4TE<br> United Kingdom<br> <a href="http://www.hegele.co.uk" target="_blank" rel="noreferrer" class="color font-weight-bold">www.hegele.co.uk</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[18]  = {
        uid: 38,
        title: 'Matrium Olching - Gewerbering 14c',
        latitude: 48.229763,
        longitude: 11.337682,
        address: 'Gewerbering 14c, 82140 Olching, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/c/b/csm_olching_dc270b6292.png)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Olching</h3></div><p><strong>Matrium GmbH</strong><br> Gewerbering 14c<br> 82140 Olching<br> <a href="http://www.matrium.net/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.matrium.net</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[19]  = {
        uid: 41,
        title: 'eds-R Sietzsch - Delitzscher Straße 1',
        latitude: 51.478887,
        longitude: 11.985337,
        address: 'Delitzscher Str. 1, 06112 Halle (Saale), Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/b/c/csm_edsr_ff9c24c945.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Sietzsch</h3></div><p><strong>eds-r Healthcare Logistics GmbH</strong><br> Delitzscher Straße 1<br> 06112 Sietzsch</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[20]  = {
        uid: 43,
        title: 'SH Karlsruhe - An der Tagweide 23',
        latitude: 49.024211,
        longitude: 8.458860,
        address: 'An der Tagweide 23, 76139 Karlsruhe, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/8/4/csm_hagsfeld_03f93b9c59.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsruhe</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> An der Tagweide 23<br> 76139 Karlsruhe</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[21]  = {
        uid: 45,
        title: 'SH Forchheim - Daimlerstraße 7',
        latitude: 49.702850,
        longitude: 11.063594,
        address: 'Daimlerstraße 7, 91301 Forchheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Forchheim</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Daimlerstraße 7<br> 91301 Forchheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[22]  = {
        uid: 40,
        title: 'eds-R Forchheim - Rittigfeld 1',
        latitude: 49.686605,
        longitude: 11.059240,
        address: 'Rittigfeld 1, 91301 Forchheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/b/c/csm_edsr_ff9c24c945.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Forchheim</h3></div><p><strong>eds-r Healthcare Logistics GmbH</strong><br> Rittigfeld 1<br> 91301 Forchheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[23]  = {
        uid: 44,
        title: 'SH Baiersdorf - Industriestraße 41a',
        latitude: 49.667100,
        longitude: 11.044850,
        address: 'Industriestraße 41, 91083 Baiersdorf, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/1/7/csm_kilian_906a05efa7.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Baiersdorf</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Industriestraße&nbsp;41a<br> 91083 Baiersdorf</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[24]  = {
        uid: 39,
        title: 'Kilian Baiersdorf - Industriestraße 41-43',
        latitude: 49.667370,
        longitude: 11.045010,
        address: 'Industriestraße 41-43, 91083 Baiersdorf, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/1/7/csm_kilian_906a05efa7.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Baiersdorf</h3></div><p><strong>Kilian Metallverarbeitung GmbH</strong><br> Industriestraße 41-43<br> 91083 Baiersdorf</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[25]  = {
        uid: 46,
        title: 'SH Forchheim - Simon-Hegele-Straße 1&3',
        latitude: 49.700620,
        longitude: 11.056750,
        address: 'Simon-Hegele-Straße 1, 91301 Forchheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/e/4/csm_sh1_sh3_54c4a5b61f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Forchheim</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Simon-Hegele-Straße 1<br> 91301 Forchheim</p><hr><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Simon-Hegele-Straße 3<br> 91301 Forchheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[26]  = {
        uid: 48,
        title: 'GMED Duisburg - Rittigfeld 1',
        latitude: 49.689762,
        longitude: 11.061483,
        address: 'Rittigfeld 1, 91301 Forchheim, Deutschland',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/a/0/csm_gmed_c23de1f4e4.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Duisburg</h3></div><p><strong>GMED Healthcare Solutions GmbH</strong><br> Rittigfeld 1<br> 91301 Forchheim<br> Tel. +49 (0) 9191 72050<br> Fax. +49 (0) 9191 7205 5563<br> <a href="mailto:info@gmed-solutions.com" class="color font-weight-bold">info@gmed-solutions.com</a><br> <a href="http://www.gmed-solutions.com/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.gmed-solutions.com</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[27]  = {
        uid: 47,
        title: 'SH Raunheim - Tejostraße 1-9',
        latitude: 50.030585,
        longitude: 8.474637,
        address: 'Tejostraße 1-9, 65479 Raunheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/c/c/csm_raunheim_aa7f47f80b.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Raunheim</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Tejostraße 1-9<br> 65479 Raunheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[28]  = {
        uid: 54,
        title: 'Interflex Medizintechnik GmbH',
        latitude: 48.452040,
        longitude: 9.968910,
        address: 'Im Lehrer Feld 9, 89081 Ulm, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/2/csm_website_interflex_neu_b81fdc12cb.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Ulm</h3></div><p><strong>Interflex Medizintechnik GmbH</strong><br> Im Lehrer Feld 9<br> 89081 Ulm, Deutschland</p><p><a href="https://www.interflex-ulm.de/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.interflex-ulm.de</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[29]  = {
        uid: 56,
        title: 'Sao Paulo Simon Hegele Healthcare Solutions Brasil LTDA',
        latitude: -23.542222,
        longitude: -46.732100,
        address: 'Queiroz Filho 1560 Torre Sabia Andar 2 Sala 220, São Paulo SP, 05319-000, Brasilien',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/user_upload/megamenu_images/healthcare.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Sao Paulo</h3></div><p><strong>Simon Hegele Healthcare Solutions Brasil LTDA</strong></p><p>Queiroz Filho 1560 Torre Sabia Andar 2 Sala 220<br> Vila Hamburguesa<br> São Paulo SP<br> 05319-000</p><p><a href="https://www.simonhegele-healthcare.com/us-en/" target="_blank" class="color font-weight-bold">www.simonhegele-healthcare.com</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[30]  = {
        uid: 93,
        title: 'GMED Duisburg - Rittigfeld 1',
        latitude: 49.689762,
        longitude: 11.061483,
        address: 'Rittigfeld 1, 91301 Forchheim, Deutschland',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/a/0/csm_gmed_c23de1f4e4.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Duisburg</h3></div><p><strong>GMED Healthcare Solutions GmbH</strong><br> Rittigfeld 1<br> 91301 Forchheim<br> Tel. +49 (0) 9191 72050<br> Fax. +49 (0) 9191 7205 5563<br> <a href="mailto:info@gmed-solutions.com" class="color font-weight-bold">info@gmed-solutions.com</a><br> <a href="http://www.gmed-solutions.com/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.gmed-solutions.com</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '82'
        }
    
        gme.addresses[31]  = {
        uid: 96,
        title: 'SH Muggensturm - Draisstraße 30',
        latitude: 48.885068,
        longitude: 8.286618,
        address: 'Draisstraße 30, 76461 Muggensturm, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Muggensturm</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Draisstraße 30<br> 76461 Muggensturm</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[32]  = {
        uid: 101,
        title: 'Georg Schrepfer - Erwin-Moritz-Reiniger-Straße 7',
        latitude: 49.658121,
        longitude: 11.039654,
        address: 'Erwin-Moritz-Reiniger-Straße 7, 91083 Baiersdorf, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/3/e/csm_schrepfer_baiersdorf_3ce62324f5.png)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Baiersdorf</h3></div><p><strong>Georg Schrepfer GmbH</strong><br> Erwin-Moritz-Reiniger-Straße 7<br> 91083 Baiersdorf</p><p><a href="https://www.georgschrepfer.de/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.georgschrepfer.de</a></p>    ',
        infoWindowLink: '2',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[33]  = {
        uid: 102,
        title: 'Gonesse SH Healthcare Solutions France SARL',
        latitude: 48.980460,
        longitude: 2.459760,
        address: '29 rue Gay Lussac, 95500 Gonesse, Frankreich',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Gonesse</h3></div><p><strong>Simon Hegele Healthcare Solutions France SARL</strong><br> 29 Rue Gay Lussac<br> 95500 Gonesse<br> France</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: ''
        }
    
        gme.addresses[34]  = {
        uid: 104,
        title: 'Teneso - Hardeckstraße 5',
        latitude: 48.999540,
        longitude: 8.362630,
        address: 'Hardeckstraße 5, 76185 Karlsruhe, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/b/c/csm_teneso_e76cbbe41a.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsruhe</h3></div><p><strong>TENESO EUROPE SE</strong><br> Hardeckstraße 5<br> 76185 Karlsruhe</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[35]  = {
        uid: 106,
        title: 'Singapur',
        latitude: 1.276200,
        longitude: 103.845890,
        address: '10 Anson Road #12-14 International Plaza, Singapur',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Singapur</h3></div><p><strong>Simon Hegele Healthcare Solutions Singapore Pte. Ltd.</strong><br> 10 Anson Road #12-14&nbsp;<br> International Plaza<br> \'079903 Singapur</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[36]  = {
        uid: 107,
        title: 'Texas Region',
        latitude: 32.920740,
        longitude: -97.070220,
        address: '749 Port America Pl Suite 400, TX 76051, Grapevine, USA',
        
                
                    
                        
                                marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                                imageSize: 0,
                            
                    
                
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Texas Region</h3></div><p><strong>Simon Hegele Healthcare Solutions, LLC</strong><br> 749 Port America Pl Suite 400<br> Grapevine, TX 76051<br> USA</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[37]  = {
        uid: 113,
        title: 'CST Transports - Gonesse',
        latitude: 48.980460,
        longitude: 2.459760,
        address: '29 rue Gay Lussac, 95500 Gonesse, Frankreich',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                <div class="heading"><h3 class="headline headline-h3">Gonesse</h3></div><p><strong>CST Transports</strong><br> 29 Rue Gay Lussac<br> 95500 Gonesse<br> France</p>    ',
        infoWindowLink: '0',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[38]  = {
        uid: 114,
        title: 'Fenton USA',
        latitude: 38.539510,
        longitude: -90.468690,
        address: '1732 C, Westpark Center Drive, Fenton, MO 63206, USA',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Fenton</h3></div><p><strong>Simon Hegele Healthcare Solutions, LLC</strong><br> 1732 C, Westpark Center Drive<br> Fenton, MO 63206<br> USA</p><p><a href="https://www.simonhegele-healthcare.com" target="_blank" class="color font-weight-bold">www.simonhegele-healthcare.com</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[39]  = {
        uid: 115,
        title: 'Itasca USA',
        latitude: 41.970320,
        longitude: -87.995270,
        address: '1380 Industrial Drive, Itasca, IL 60143, USA',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Itasca</h3></div><p><strong>Simon Hegele Healthcare Solutions, LLC</strong><br> 1380 Industrial Drive<br> Itasca, IL 60143<br> USA<br> &nbsp;</p><p><a href="http://www.simonhegele-healthcare.com" target="_blank" class="color font-weight-bold">www.simonhegele-healthcare.com</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: ''
        }
    
        gme.addresses[40]  = {
        uid: 112,
        title: 'Lennox Transport GmbH',
        latitude: 47.891980,
        longitude: 11.930620,
        address: 'Noderwiechs 53, 83052 Bruckmühl, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Bruckmühl</h3></div><p><strong>Lennox Transport GmbH</strong><br> Noderwiechs 53<br> 83052 Bruckmühl, Deutschland</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[41]  = {
        uid: 116,
        title: 'Oehler Verpackung GmbH',
        latitude: 51.378350,
        longitude: 12.319260,
        address: 'Polyphonstraße 2, 04159 Leipzig, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Leipzig</h3></div><p><strong>Oehler Verpackung GmbH</strong><br> Polyphonstraße 2<br> 04159 Leipzig</p><p><a href="https://www.oehler-verpackung.de" target="_blank" rel="noreferrer" class="color font-weight-bold">www.oehler-verpackung.de</a></p>    ',
        infoWindowLink: '2',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    

    gme.ll = {};
    gme.ll.alert = "Bitte geben Sie eine gültige Adresse ein.";
    gme.ll.submit = "Route berechnen";
    gme.ll.noSearchResults = "Die Suche liefert keine Ergebnisse.";
    gme.ll.infoWindowLinkText = "Route berechnen";
    var $element = $("#" + gme.mapSettings.id);
    $element.gomapsext(gme);
    if(gme.mapSettings.width.indexOf('%') != -1) {
        $(window).resize(function() {
            $element.trigger('mapresize');
        });
    }

    }); // end of closure
    })(jQuery || $, window, document);


    (function ($, window, document, undefined) {
    $(function () {
    var gme = new Object();

    gme.zoomTypes = new Array(0,1,2);
    gme.defaultMapTypes = new Array("roadmap", "satellite", "hybrid", "terrain", "Simon Hegele");

    gme.mapSettings = {
    id: 'gme-' + 3,
    title: 'Standorte DE',
    width: '100%',
    height: '850px',
    zoom: 0,
    minZoom: 3,
    maxZoom: 20,
    lat: 0,
    lng: 0,
    geolocation: 0,
    kmlUrl: '',
    kmlPreserveViewport: false,
    kmlLocal: 0,
    scrollZoom: 0,
    draggable: 1,
    doubleClickZoom: 0,
    markerCluster: 1,
    markerClusterZoom: null,
    markerClusterSize: 6,
    
            markerClusterStyle: '',
        
    markerSearch: 0,
    defaultType: 4,
    scaleControl: 0,
    streetviewControl: 0,
    fullscreenControl: 0,
    zoomControl: 1,
    mapTypeControl: 1,
    showRoute: 0,
    calcRoute: 0,
    travelMode: 0,
    unitSystem: 2,
    showForm: 0,
    showCategories: 0,
    logicalAnd: 0,
    styledMapName: 'Simon Hegele',
    
            styledMapCode: [
    {
        "featureType": "administrative",
        "elementType": "labels.text.fill",
        "stylers": [
            {
                "color": "#444444"
            }
        ]
    },
    {
        "featureType": "landscape",
        "elementType": "all",
        "stylers": [
            {
                "color": "#f2f2f2"
            }
        ]
    },
    {
        "featureType": "poi",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "poi.business",
        "elementType": "geometry.fill",
        "stylers": [
            {
                "visibility": "on"
            }
        ]
    },
    {
        "featureType": "road",
        "elementType": "all",
        "stylers": [
            {
                "saturation": -100
            },
            {
                "lightness": 45
            }
        ]
    },
    {
        "featureType": "road.highway",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "simplified"
            }
        ]
    },
    {
        "featureType": "road.arterial",
        "elementType": "labels.icon",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "transit",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "water",
        "elementType": "all",
        "stylers": [
            {
                "color": "#b4d4e1"
            },
            {
                "visibility": "on"
            }
        ]
    }
],
        
    defaultZoom: 11
    }

    gme.mapSettings.mapTypes = new Array();
    
        gme.mapSettings.mapTypes[0] = gme.defaultMapTypes[4];
    

    gme.request = new Array();

    

    gme.addresses = new Array();
    
        gme.addresses[0]  = {
        uid: 18,
        title: 'Distriparts Uffenheim - Landwehrstraße 8',
        latitude: 49.515426,
        longitude: 10.191942,
        address: 'Landwehrstraße 8, 97215 Uffenheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/2/9/csm_distriparts_2f8a378682.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Uffenheim</h3></div><p><strong>Distriparts Deutschland GmbH</strong><br> Landwehrstraße 8<br> 97215 Uffenheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[1]  = {
        uid: 21,
        title: 'DL Nürnberg - Winter-Günther-Straße 11',
        latitude: 49.423413,
        longitude: 11.077396,
        address: 'Winter-Günther-Straße 11, 90441 Nürnberg, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/8/csm_DL_daf9a6c26f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Nürnberg</h3></div><p><strong>DL Dieter Ludwig Logistik und Service GmbH&nbsp;</strong><br> Winter-Günther-Straße&nbsp;11<br> 90441 Nürnberg</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[2]  = {
        uid: 40,
        title: 'eds-R Forchheim - Rittigfeld 1',
        latitude: 49.686605,
        longitude: 11.059240,
        address: 'Rittigfeld 1, 91301 Forchheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/b/c/csm_edsr_ff9c24c945.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Forchheim</h3></div><p><strong>eds-r Healthcare Logistics GmbH</strong><br> Rittigfeld 1<br> 91301 Forchheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[3]  = {
        uid: 41,
        title: 'eds-R Sietzsch - Delitzscher Straße 1',
        latitude: 51.478887,
        longitude: 11.985337,
        address: 'Delitzscher Str. 1, 06112 Halle (Saale), Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/b/c/csm_edsr_ff9c24c945.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Sietzsch</h3></div><p><strong>eds-r Healthcare Logistics GmbH</strong><br> Delitzscher Straße 1<br> 06112 Sietzsch</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[4]  = {
        uid: 48,
        title: 'GMED Duisburg - Rittigfeld 1',
        latitude: 49.689762,
        longitude: 11.061483,
        address: 'Rittigfeld 1, 91301 Forchheim, Deutschland',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/a/0/csm_gmed_c23de1f4e4.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Duisburg</h3></div><p><strong>GMED Healthcare Solutions GmbH</strong><br> Rittigfeld 1<br> 91301 Forchheim<br> Tel. +49 (0) 9191 72050<br> Fax. +49 (0) 9191 7205 5563<br> <a href="mailto:info@gmed-solutions.com" class="color font-weight-bold">info@gmed-solutions.com</a><br> <a href="http://www.gmed-solutions.com/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.gmed-solutions.com</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[5]  = {
        uid: 54,
        title: 'Interflex Medizintechnik GmbH',
        latitude: 48.452040,
        longitude: 9.968910,
        address: 'Im Lehrer Feld 9, 89081 Ulm, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/2/csm_website_interflex_neu_b81fdc12cb.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Ulm</h3></div><p><strong>Interflex Medizintechnik GmbH</strong><br> Im Lehrer Feld 9<br> 89081 Ulm, Deutschland</p><p><a href="https://www.interflex-ulm.de/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.interflex-ulm.de</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[6]  = {
        uid: 3,
        title: 'IT Chain Berlin - Danckelmannstraße 9d',
        latitude: 52.516105,
        longitude: 13.290377,
        address: 'Danckelmannstraße 9d, 14059 Berlin, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/4/0/csm_ITC_1f17ea3b3f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Berlin</h3></div><p><strong>IT Chain GmbH</strong><br> Danckelmannstraße 9d<br> 14059 Berlin</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[7]  = {
        uid: 12,
        title: 'IT Chain Karlsruhe - Fettweisstraße 22',
        latitude: 49.011350,
        longitude: 8.320960,
        address: 'Fettweisstraße 22, 76189 Karlsruhe, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/4/0/csm_ITC_1f17ea3b3f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsruhe</h3></div><p><strong>IT Chain GmbH</strong><br> Fettweisstraße 22<br> 76189 Karlsruhe</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[8]  = {
        uid: 39,
        title: 'Kilian Baiersdorf - Industriestraße 41-43',
        latitude: 49.667370,
        longitude: 11.045010,
        address: 'Industriestraße 41-43, 91083 Baiersdorf, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/1/7/csm_kilian_906a05efa7.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Baiersdorf</h3></div><p><strong>Kilian Metallverarbeitung GmbH</strong><br> Industriestraße 41-43<br> 91083 Baiersdorf</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[9]  = {
        uid: 27,
        title: 'Logistik Zentrum Allgäu Immenstadt - Robert-Bosch-Straße 2',
        latitude: 47.588258,
        longitude: 10.249714,
        address: 'Robert-Bosch-Straße 2, 87509 Immenstadt im Allgäu, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/b/c/csm_LZA_5e487f4bf0.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Immenstadt</h3></div><p><strong>Logistik Zentrum Allgäu GmbH &amp; Co.KG</strong><br> Robert-Bosch-Straße 2<br> 87509 Immenstadt</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[10]  = {
        uid: 17,
        title: 'Matrium Friedrichshafen - Graf-von-Soden-Straße',
        latitude: 47.674735,
        longitude: 9.383197,
        address: 'Graf-von-Soden-Straße, 88090 Immenstaad am Bodensee, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/6/3/csm_immenstaad_c229157b24.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Friedrichshafen</h3></div><p><strong>Matrium GmbH</strong><br> Graf-von-Soden-Straße<br> 88090 Immenstaad am Bodensee<br> <a href="http://www.matrium.net/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.matrium.net</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[11]  = {
        uid: 38,
        title: 'Matrium Olching - Gewerbering 14c',
        latitude: 48.229763,
        longitude: 11.337682,
        address: 'Gewerbering 14c, 82140 Olching, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/c/b/csm_olching_dc270b6292.png)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Olching</h3></div><p><strong>Matrium GmbH</strong><br> Gewerbering 14c<br> 82140 Olching<br> <a href="http://www.matrium.net/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.matrium.net</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[12]  = {
        uid: 16,
        title: 'Matrium Ulm - Sedanstraße 18',
        latitude: 48.391020,
        longitude: 9.972060,
        address: 'Sedanstraße 18, 89077 Ulm, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/6/3/csm_immenstaad_c229157b24.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Ulm</h3></div><p><strong>Matrium GmbH</strong><br> Sedanstraße 18<br> 89077 Ulm<br> <a href="http://www.matrium.net/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.matrium.net</a></p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[13]  = {
        uid: 44,
        title: 'SH Baiersdorf - Industriestraße 41a',
        latitude: 49.667100,
        longitude: 11.044850,
        address: 'Industriestraße 41, 91083 Baiersdorf, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/1/7/csm_kilian_906a05efa7.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Baiersdorf</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Industriestraße&nbsp;41a<br> 91083 Baiersdorf</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[14]  = {
        uid: 1,
        title: 'SH Duisburg - Bliersheimer Straße 22',
        latitude: 51.384990,
        longitude: 6.720108,
        address: 'Bliersheimer Str. 22, 47229 Duisburg, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/6/f/csm_duisburg_9178899d6f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Duisburg</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Bliersheimer Straße 22<br> 47229 Duisburg</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[15]  = {
        uid: 45,
        title: 'SH Forchheim - Daimlerstraße 7',
        latitude: 49.702850,
        longitude: 11.063594,
        address: 'Daimlerstraße 7, 91301 Forchheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Forchheim</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Daimlerstraße 7<br> 91301 Forchheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[16]  = {
        uid: 19,
        title: 'SH Forchheim - Rittigfeld 1',
        latitude: 49.686600,
        longitude: 11.059450,
        address: 'Rittigfeld 1, 91301 Forchheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/1/9/csm_forchheim_17bb7e5e8d.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Forchheim</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Rittigfeld 1<br> 91301 Forchheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[17]  = {
        uid: 46,
        title: 'SH Forchheim - Simon-Hegele-Straße 1&3',
        latitude: 49.700620,
        longitude: 11.056750,
        address: 'Simon-Hegele-Straße 1, 91301 Forchheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/e/4/csm_sh1_sh3_54c4a5b61f.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Forchheim</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Simon-Hegele-Straße 1<br> 91301 Forchheim</p><hr><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Simon-Hegele-Straße 3<br> 91301 Forchheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[18]  = {
        uid: 11,
        title: 'SH Karlsdorf - Simon-Hegele-Straße 3',
        latitude: 49.146431,
        longitude: 8.556210,
        address: 'Simon-Hegele-Straße 3, 76689 Karlsdorf-Neuthard, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsdorf</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Simon-Hegele-Straße 3<br> 76689 Karlsdorf-Neuthard</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[19]  = {
        uid: 43,
        title: 'SH Karlsruhe - An der Tagweide 23',
        latitude: 49.024211,
        longitude: 8.458860,
        address: 'An der Tagweide 23, 76139 Karlsruhe, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/8/4/csm_hagsfeld_03f93b9c59.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsruhe</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> An der Tagweide 23<br> 76139 Karlsruhe</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[20]  = {
        uid: 13,
        title: 'SH Karlsruhe - Haid-und-Neu-Straße 13-15',
        latitude: 49.013410,
        longitude: 8.427360,
        address: 'Haid-und-Neu-Straße 13-15, 76131 Karlsruhe, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsruhe</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Haid-und-Neu-Straße 13-15<br> 76131 Karlsruhe</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[21]  = {
        uid: 20,
        title: 'SH Kemnath - Hammergrabenstraße 28',
        latitude: 49.862047,
        longitude: 11.879523,
        address: 'Hammergrabenstraße 28, 95478 Kemnath, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Kemnath</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Hammergrabenstraße 28<br> 95478 Kemnath</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[22]  = {
        uid: 47,
        title: 'SH Raunheim - Tejostraße 1-9',
        latitude: 50.030585,
        longitude: 8.474637,
        address: 'Tejostraße 1-9, 65479 Raunheim, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/c/c/csm_raunheim_aa7f47f80b.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Raunheim</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Tejostraße 1-9<br> 65479 Raunheim</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[23]  = {
        uid: 112,
        title: 'Lennox Transport GmbH',
        latitude: 47.891980,
        longitude: 11.930620,
        address: 'Noderwiechs 53, 83052 Bruckmühl, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Bruckmühl</h3></div><p><strong>Lennox Transport GmbH</strong><br> Noderwiechs 53<br> 83052 Bruckmühl, Deutschland</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[24]  = {
        uid: 116,
        title: 'Oehler Verpackung GmbH',
        latitude: 51.378350,
        longitude: 12.319260,
        address: 'Polyphonstraße 2, 04159 Leipzig, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Leipzig</h3></div><p><strong>Oehler Verpackung GmbH</strong><br> Polyphonstraße 2<br> 04159 Leipzig</p><p><a href="https://www.oehler-verpackung.de" target="_blank" rel="noreferrer" class="color font-weight-bold">www.oehler-verpackung.de</a></p>    ',
        infoWindowLink: '2',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[25]  = {
        uid: 101,
        title: 'Georg Schrepfer - Erwin-Moritz-Reiniger-Straße 7',
        latitude: 49.658121,
        longitude: 11.039654,
        address: 'Erwin-Moritz-Reiniger-Straße 7, 91083 Baiersdorf, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/3/e/csm_schrepfer_baiersdorf_3ce62324f5.png)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Baiersdorf</h3></div><p><strong>Georg Schrepfer GmbH</strong><br> Erwin-Moritz-Reiniger-Straße 7<br> 91083 Baiersdorf</p><p><a href="https://www.georgschrepfer.de/" target="_blank" rel="noreferrer" class="color font-weight-bold">www.georgschrepfer.de</a></p>    ',
        infoWindowLink: '2',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    
        gme.addresses[26]  = {
        uid: 96,
        title: 'SH Muggensturm - Draisstraße 30',
        latitude: 48.885068,
        longitude: 8.286618,
        address: 'Draisstraße 30, 76461 Muggensturm, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-red.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/9/d/csm_logo_712bb2b003.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Muggensturm</h3></div><p><strong>Simon Hegele<br> Gesellschaft für Logistik und Service mbH</strong><br> Draisstraße 30<br> 76461 Muggensturm</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '6'
        }
    
        gme.addresses[27]  = {
        uid: 104,
        title: 'Teneso - Hardeckstraße 5',
        latitude: 48.999540,
        longitude: 8.362630,
        address: 'Hardeckstraße 5, 76185 Karlsruhe, Germany',
        
                
                        marker: 'https://www.simonhegele-healthcare.com/fileadmin/user_upload/map/marker-yellow.png',
                        imageSize: 0,
                    
            

        imageWidth: '0',
        imageHeight: '0',
        infoWindowContent: '                                        <figure style="background-image: url(/fileadmin/_processed_/b/c/csm_teneso_e76cbbe41a.jpg)"></figure>                                    <div class="heading"><h3 class="headline headline-h3">Karlsruhe</h3></div><p><strong>TENESO EUROPE SE</strong><br> Hardeckstraße 5<br> 76185 Karlsruhe</p>    ',
        infoWindowLink: '1',
        
                openByClick: 1,
            
        
                closeByClick: 1,
            
        opened: 0,
        categories: '7'
        }
    

    gme.ll = {};
    gme.ll.alert = "Bitte geben Sie eine gültige Adresse ein.";
    gme.ll.submit = "Route berechnen";
    gme.ll.noSearchResults = "Die Suche liefert keine Ergebnisse.";
    gme.ll.infoWindowLinkText = "Route berechnen";
    var $element = $("#" + gme.mapSettings.id);
    $element.gomapsext(gme);
    if(gme.mapSettings.width.indexOf('%') != -1) {
        $(window).resize(function() {
            $element.trigger('mapresize');
        });
    }

    }); // end of closure
    })(jQuery || $, window, document);

/**
 * Required JavaScript for challenge/response spam protection
 */
document.addEventListener('DOMContentLoaded', () =>
{
  [...document.querySelectorAll('[id$="-cr-field"]')].forEach(element =>
  {
    let [expiration,challenge,delay] = atob(element.value).split('|');

    if (delay === undefined) {
      // The CR field has already been submitted by the client, but server side validation may have failed
      return;
    }

    setTimeout(() =>
    {
      element.value = btoa(expiration + '|' + challenge.replace(/[a-z]/gi, char =>
      {
        return String.fromCharCode( char.charCodeAt(0) + ( char.toUpperCase() <= 'M' ? 13 : -13 ) )/* https://stackoverflow.com/a/14553231 */
      }))
    }, 1e3 * delay)
  })
});
(function(){var d=null;function e(a){return function(b){this[a]=b}}function h(a){return function(){return this[a]}}var j;
    function k(a,b,c){this.extend(k,google.maps.OverlayView);this.c=a;this.a=[];this.f=[];this.ca=[53,56,66,78,90];this.j=[];this.A=!1;c=c||{};this.g=c.gridSize||60;this.l=c.minimumClusterSize||2;this.J=c.maxZoom||d;this.j=c.styles||[];this.X=c.imagePath||this.Q;this.W=c.imageExtension||this.P;this.O=!0;if(c.zoomOnClick!=void 0)this.O=c.zoomOnClick;this.r=!1;if(c.averageCenter!=void 0)this.r=c.averageCenter;l(this);this.setMap(a);this.K=this.c.getZoom();var f=this;google.maps.event.addListener(this.c,
        "zoom_changed",function(){var a=f.c.getZoom();if(f.K!=a)f.K=a,f.m()});google.maps.event.addListener(this.c,"idle",function(){f.i()});b&&b.length&&this.C(b,!1)}j=k.prototype;j.Q="https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m";j.P="png";j.extend=function(a,b){return function(a){for(var b in a.prototype)this.prototype[b]=a.prototype[b];return this}.apply(a,[b])};j.onAdd=function(){if(!this.A)this.A=!0,n(this)};j.draw=function(){};
    function l(a){if(!a.j.length)for(var b=0,c;c=a.ca[b];b++)a.j.push({url:a.X+(b+1)+"."+a.W,height:c,width:c})}j.S=function(){for(var a=this.o(),b=new google.maps.LatLngBounds,c=0,f;f=a[c];c++)b.extend(f.getPosition());this.c.fitBounds(b)};j.z=h("j");j.o=h("a");j.V=function(){return this.a.length};j.ba=e("J");j.I=h("J");j.G=function(a,b){for(var c=0,f=a.length,g=f;g!==0;)g=parseInt(g/10,10),c++;c=Math.min(c,b);return{text:f,index:c}};j.$=e("G");j.H=h("G");
    j.C=function(a,b){for(var c=0,f;f=a[c];c++)q(this,f);b||this.i()};function q(a,b){b.s=!1;b.draggable&&google.maps.event.addListener(b,"dragend",function(){b.s=!1;a.L()});a.a.push(b)}j.q=function(a,b){q(this,a);b||this.i()};function r(a,b){var c=-1;if(a.a.indexOf)c=a.a.indexOf(b);else for(var f=0,g;g=a.a[f];f++)if(g==b){c=f;break}if(c==-1)return!1;b.setMap(d);a.a.splice(c,1);return!0}j.Y=function(a,b){var c=r(this,a);return!b&&c?(this.m(),this.i(),!0):!1};
    j.Z=function(a,b){for(var c=!1,f=0,g;g=a[f];f++)g=r(this,g),c=c||g;if(!b&&c)return this.m(),this.i(),!0};j.U=function(){return this.f.length};j.getMap=h("c");j.setMap=e("c");j.w=h("g");j.aa=e("g");
    j.v=function(a){var b=this.getProjection(),c=new google.maps.LatLng(a.getNorthEast().lat(),a.getNorthEast().lng()),f=new google.maps.LatLng(a.getSouthWest().lat(),a.getSouthWest().lng()),c=b.fromLatLngToDivPixel(c);c.x+=this.g;c.y-=this.g;f=b.fromLatLngToDivPixel(f);f.x-=this.g;f.y+=this.g;c=b.fromDivPixelToLatLng(c);b=b.fromDivPixelToLatLng(f);a.extend(c);a.extend(b);return a};j.R=function(){this.m(!0);this.a=[]};
    j.m=function(a){for(var b=0,c;c=this.f[b];b++)c.remove();for(b=0;c=this.a[b];b++)c.s=!1,a&&c.setMap(d);this.f=[]};j.L=function(){var a=this.f.slice();this.f.length=0;this.m();this.i();window.setTimeout(function(){for(var b=0,c;c=a[b];b++)c.remove()},0)};j.i=function(){n(this)};
    function n(a){if(a.A)for(var b=a.v(new google.maps.LatLngBounds(a.c.getBounds().getSouthWest(),a.c.getBounds().getNorthEast())),c=0,f;f=a.a[c];c++)if(!f.s&&b.contains(f.getPosition())){for(var g=a,u=4E4,o=d,v=0,m=void 0;m=g.f[v];v++){var i=m.getCenter();if(i){var p=f.getPosition();if(!i||!p)i=0;else var w=(p.lat()-i.lat())*Math.PI/180,x=(p.lng()-i.lng())*Math.PI/180,i=Math.sin(w/2)*Math.sin(w/2)+Math.cos(i.lat()*Math.PI/180)*Math.cos(p.lat()*Math.PI/180)*Math.sin(x/2)*Math.sin(x/2),i=6371*2*Math.atan2(Math.sqrt(i),
            Math.sqrt(1-i));i<u&&(u=i,o=m)}}o&&o.F.contains(f.getPosition())?o.q(f):(m=new s(g),m.q(f),g.f.push(m))}}function s(a){this.k=a;this.c=a.getMap();this.g=a.w();this.l=a.l;this.r=a.r;this.d=d;this.a=[];this.F=d;this.n=new t(this,a.z(),a.w())}j=s.prototype;
    j.q=function(a){var b;a:if(this.a.indexOf)b=this.a.indexOf(a)!=-1;else{b=0;for(var c;c=this.a[b];b++)if(c==a){b=!0;break a}b=!1}if(b)return!1;if(this.d){if(this.r)c=this.a.length+1,b=(this.d.lat()*(c-1)+a.getPosition().lat())/c,c=(this.d.lng()*(c-1)+a.getPosition().lng())/c,this.d=new google.maps.LatLng(b,c),y(this)}else this.d=a.getPosition(),y(this);a.s=!0;this.a.push(a);b=this.a.length;b<this.l&&a.getMap()!=this.c&&a.setMap(this.c);if(b==this.l)for(c=0;c<b;c++)this.a[c].setMap(d);b>=this.l&&a.setMap(d);
        a=this.c.getZoom();if((b=this.k.I())&&a>b)for(a=0;b=this.a[a];a++)b.setMap(this.c);else if(this.a.length<this.l)z(this.n);else{b=this.k.H()(this.a,this.k.z().length);this.n.setCenter(this.d);a=this.n;a.B=b;a.ga=b.text;a.ea=b.index;if(a.b)a.b.innerHTML=b.text;b=Math.max(0,a.B.index-1);b=Math.min(a.j.length-1,b);b=a.j[b];a.da=b.url;a.h=b.height;a.p=b.width;a.M=b.textColor;a.e=b.anchor;a.N=b.textSize;a.D=b.backgroundPosition;this.n.show()}return!0};
    j.getBounds=function(){for(var a=new google.maps.LatLngBounds(this.d,this.d),b=this.o(),c=0,f;f=b[c];c++)a.extend(f.getPosition());return a};j.remove=function(){this.n.remove();this.a.length=0;delete this.a};j.T=function(){return this.a.length};j.o=h("a");j.getCenter=h("d");function y(a){a.F=a.k.v(new google.maps.LatLngBounds(a.d,a.d))}j.getMap=h("c");
    function t(a,b,c){a.k.extend(t,google.maps.OverlayView);this.j=b;this.fa=c||0;this.u=a;this.d=d;this.c=a.getMap();this.B=this.b=d;this.t=!1;this.setMap(this.c)}j=t.prototype;
    j.onAdd=function(){this.b=document.createElement("DIV");if(this.t)this.b.style.cssText=A(this,B(this,this.d)),this.b.innerHTML=this.B.text;this.getPanes().overlayMouseTarget.appendChild(this.b);var a=this;google.maps.event.addDomListener(this.b,"click",function(){var b=a.u.k;google.maps.event.trigger(b,"clusterclick",a.u);b.O&&a.c.fitBounds(a.u.getBounds())})};function B(a,b){var c=a.getProjection().fromLatLngToDivPixel(b);c.x-=parseInt(a.p/2,10);c.y-=parseInt(a.h/2,10);return c}
    j.draw=function(){if(this.t){var a=B(this,this.d);this.b.style.top=a.y+"px";this.b.style.left=a.x+"px"}};function z(a){if(a.b)a.b.style.display="none";a.t=!1}j.show=function(){if(this.b)this.b.style.cssText=A(this,B(this,this.d)),this.b.style.display="";this.t=!0};j.remove=function(){this.setMap(d)};j.onRemove=function(){if(this.b&&this.b.parentNode)z(this),this.b.parentNode.removeChild(this.b),this.b=d};j.setCenter=e("d");
    function A(a,b){var c=[];c.push("background-image:url("+a.da+");");c.push("background-position:"+(a.D?a.D:"0 0")+";");typeof a.e==="object"?(typeof a.e[0]==="number"&&a.e[0]>0&&a.e[0]<a.h?c.push("height:"+(a.h-a.e[0])+"px; padding-top:"+a.e[0]+"px;"):c.push("height:"+a.h+"px; line-height:"+a.h+"px;"),typeof a.e[1]==="number"&&a.e[1]>0&&a.e[1]<a.p?c.push("width:"+(a.p-a.e[1])+"px; padding-left:"+a.e[1]+"px;"):c.push("width:"+a.p+"px; text-align:center;")):c.push("height:"+a.h+"px; line-height:"+a.h+
        "px; width:"+a.p+"px; text-align:center;");c.push("cursor:pointer; top:"+b.y+"px; left:"+b.x+"px; color:"+(a.M?a.M:"black")+"; position:absolute; font-size:"+(a.N?a.N:11)+"px; font-family:Arial,sans-serif; font-weight:bold");return c.join("")}window.MarkerClusterer=k;k.prototype.addMarker=k.prototype.q;k.prototype.addMarkers=k.prototype.C;k.prototype.clearMarkers=k.prototype.R;k.prototype.fitMapToMarkers=k.prototype.S;k.prototype.getCalculator=k.prototype.H;k.prototype.getGridSize=k.prototype.w;
    k.prototype.getExtendedBounds=k.prototype.v;k.prototype.getMap=k.prototype.getMap;k.prototype.getMarkers=k.prototype.o;k.prototype.getMaxZoom=k.prototype.I;k.prototype.getStyles=k.prototype.z;k.prototype.getTotalClusters=k.prototype.U;k.prototype.getTotalMarkers=k.prototype.V;k.prototype.redraw=k.prototype.i;k.prototype.removeMarker=k.prototype.Y;k.prototype.removeMarkers=k.prototype.Z;k.prototype.resetViewport=k.prototype.m;k.prototype.repaint=k.prototype.L;k.prototype.setCalculator=k.prototype.$;
    k.prototype.setGridSize=k.prototype.aa;k.prototype.setMaxZoom=k.prototype.ba;k.prototype.onAdd=k.prototype.onAdd;k.prototype.draw=k.prototype.draw;s.prototype.getCenter=s.prototype.getCenter;s.prototype.getSize=s.prototype.T;s.prototype.getMarkers=s.prototype.o;t.prototype.onAdd=t.prototype.onAdd;t.prototype.draw=t.prototype.draw;t.prototype.onRemove=t.prototype.onRemove;
})();
/**
 * Created by mhirdes on 27.11.13.
 */
(function ($) {
    var GoMapsExt = window.GoMapsExt = window.GoMapsExt || {};

    GoMapsExt.Data = {
        mapSettings: {
            markerSearch: null,
            defaultZoom: null,
            doubleClickZoom: null,
            scrollZoom: null,
            scaleControl: null,
            streetviewControl: null,
            fullscreenControl: null,
            zoomControl: null,
            defaultType: null,
            mapTypeControl: null,
            mapTypes: null,
            showRoute: null,
            calcRoute: null,
            styledMapName: null,
            styledMapCode: null,
            tooltipTitle: null,
            kmlUrl: null,
            kmlLocal: null,
            showForm: null,
            lat: null,
            lng: null,
            geolocation: null
        },
        zoomTypes: [],
        defaultMapTypes: [],
        addresses: []
    };

    /**
     * Controller for Map functionality
     *
     * @param {HTMLElement} element
     * @param {GoMapsExt.Data} gme
     * @constructor
     */
    GoMapsExt.Controller = function (element, gme) {
        this.element = $(element);
        this.gme = gme;
        this.data = gme;

        if(typeof google !== "undefined" && typeof google.maps !== "undefined") {
            this.initialize();
        }
    };

    GoMapsExt.Controller.prototype = {

        initialize: function() {
            var $element = this.element;
	        this.route = [];
	        this.infoWindow = new google.maps.InfoWindow();
	        this.bounds = new google.maps.LatLngBounds();
	        this.markers = [];

	        this.map = new google.maps.Map(document.getElementById(this.gme.mapSettings.id), this._createMapOptions());

	        this._initializeCss();
	        this._initializeData();
	        this._initializeKmlImport();
            this._initializeGeolocation();

	        this._initializeSearch();
	        this._initializeBackendAddresses();
	        this._initializeRoute();
	        this._initializeResizeListener();
	        this._initializeCheckboxListener();
	        this._initializeAddressListener();

	        // open info window
	        window.setTimeout(function () {
		        $element.trigger("openinfo");
	        }, 2000);

	        this.setCategoriesFromRequest();
	        this.focusAddressFromRequest();

	        // trigger mapcreated on map
	        $element.trigger("mapcreated");

	        this.refreshMap($element, this.gme);
        },

        // categories checkboxes
        setCategories: function (selectedCats) {
            var gme = this.data,
                $element = this.element;

            $.each(this.markers, function (key, marker) {
                if (selectedCats.length > 0) {
                    marker.setVisible(false);
                    var matches = 0;
                    $.each(marker.categories, function (keyM, category) {
                        if ($.inArray(category, selectedCats) != -1) {
                            matches += 1;
                        }
                    });
                    var showMarker = (matches > 0);
                    if (gme.mapSettings.logicalAnd) {
                        showMarker = (matches == selectedCats.length);
                    }
                } else {
                    showMarker = true;
                }
                if (showMarker) {
                    marker.setVisible(true);
                    if ($('#gme-address'+marker.uid).parent().is('del')) {
                        $('#gme-address'+marker.uid).unwrap();
                    }
                    return true;
                } else {
                    if (! $('#gme-address'+marker.uid).parent().is('del')) {
                        $('#gme-address'+marker.uid).wrap('<del></del>');
                    }
                }
            });
            if ($element.markerCluster) {
                $element.markerCluster.repaint();
            }
        },

        setCategoriesFromRequest: function () {
            // set categories
            var getCats = this.getURLParameter('tx_gomapsext_show\\[cat\\]');
            if (getCats) {
                getCats = getCats.split(",");
                this.setCategories(getCats);
                $('.js-gme-cat').each(function (key, checkbox) {
                    if ($.inArray($(checkbox).val(), getCats) != -1) {
                        $(checkbox).attr('checked', true);
                        return true;
                    }
                });
            }
        },

        focusAddressFromRequest: function () {
            var getAddress = this.getURLParameter('tx_gomapsext_show\\[address\\]'),
                $element = this.element,
                gme = this.data;
            if (getAddress) {
                this.focusAddress(getAddress, $element, gme);
            }
        },

        // add a point
        addMapPoint: function (pointDescription, Route, $element, infoWindow, gme) {
            var _this = this,
                latitude = pointDescription.latitude,
                longitude = pointDescription.longitude;

            Route.push(pointDescription.address);

            if (Math.round(latitude) == 0 && Math.round(longitude) == 0) {
                $element.data("geocoder").geocode({"address": pointDescription.address}, function (point, status) {
                    latitude = point[0].geometry.location.lat();
                    longitude = point[0].geometry.location.lng();
                    var position = new google.maps.LatLng(latitude, longitude);
                    _this.setMapPoint(pointDescription, Route, $element, infoWindow, position, gme);
                });
                return;
            }

            var position = new google.maps.LatLng(latitude, longitude);

            this.setMapPoint(pointDescription, Route, $element, infoWindow, position, gme);
        },

        focusAddress: function (addressUid, $element, gme) {
            var _this = this;
            $.each(this.markers, function (key, marker) {
                if (marker.uid == addressUid) {
                    $element.data("center", marker.position);
                    if (marker.infoWindow) {
                        marker.infoWindow.setContent(marker.infoWindowContent);
                        marker.infoWindow.open(_this.map, marker);
                    }
                    _this.refreshMap($element, gme);
                    return true;
                }
            });
            if ($element.markerCluster) {
                $element.markerCluster.repaint();
            }
        },

        /**
         * decode URL Parameter go_maps_ext[cat]
         *
         * @param name
         * @returns {string|null}
         */
        getURLParameter: function (name) {
            var uri = decodeURI(location.search);
            return (new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(uri) || ["", ""])[1].replace(/\+/g, '%20') || null;
        },

        /**
         * get the travel mode
         *
         * @param $travelMode
         * @returns {string}
         */
        getTravelMode: function ($travelMode) {
            var travelMode = google.maps.TravelMode.DRIVING;
            switch ($travelMode) {
                case 2:
                    travelMode = google.maps.TravelMode.BICYCLING;
                    break;
                case 3:
                    travelMode = google.maps.TravelMode.TRANSIT;
                    break;
                case 4:
                    travelMode = google.maps.TravelMode.WALKING;
                    break;
            }
            return travelMode;
        },

        /**
         * get the unit system
         *
         *  @param $unitSystem
         * @returns {number}
         */
        getUnitSystem: function ($unitSystem) {
            var unitSystem = 0;
            switch ($unitSystem) {
                case 2:
                    unitSystem = google.maps.UnitSystem.METRIC;
                    break;
                case 3:
                    unitSystem = google.maps.UnitSystem.IMPERIAL;
                    break;
            }
            return unitSystem;
        },

        /**
         * insert the point on the map
         *
         * @param pointDescription
         * @param Route
         * @param $element
         * @param infoWindow
         * @param position
         * @param gme
         */
        setMapPoint: function (pointDescription, Route, $element, infoWindow, position, gme) {
            var _map = this.map,
                markerOptions = {
                    position: position,
                    map: _map,
                    title: pointDescription.title
                };
            if (pointDescription.marker != "") {
                if (pointDescription.imageSize == 1) {
                    var Icon = {
                        url: pointDescription.marker,
                        size: new google.maps.Size(pointDescription.imageWidth * 2, pointDescription.imageHeight * 2),
                        scaledSize: new google.maps.Size(pointDescription.imageWidth, pointDescription.imageHeight),
                        origin: new google.maps.Point(0, 0),
                        anchor: new google.maps.Point(pointDescription.imageWidth / 2, pointDescription.imageHeight)
                    };

	                var Shape = {
		                type: 'rect',
		                coord: [0, 0, pointDescription.imageWidth, pointDescription.imageHeight]
	                };

                    var anchorPoint = new google.maps.Point(0, -pointDescription.imageHeight);

	                $.extend(markerOptions, {icon: Icon, shape: Shape, anchorPoint: anchorPoint});
                } else {
	                $.extend(markerOptions, {icon: pointDescription.marker});
                }

            }
            var marker = new google.maps.Marker(markerOptions);

            if (gme.mapSettings.markerCluster == 1) {
                google.maps.event.addListener(marker, 'visible_changed', function () {
                    if (marker.getVisible()) {
                        $element.markerCluster.addMarker(marker, true);
                    } else {
                        $element.markerCluster.removeMarker(marker, true);
                    }
                });
            }

            if (pointDescription.infoWindowContent != "" || pointDescription.infoWindowLink > 0) {
                var infoWindowContent = pointDescription.infoWindowContent;
                if (pointDescription.infoWindowLink > 0) {
                    var daddr = (pointDescription.infoWindowLink == 2) ? pointDescription.latitude + ", " + pointDescription.longitude : pointDescription.address;
                    infoWindowContent += '<p class="routeLink"><a href="//www.google.com/maps/dir/?api=1&destination=' + encodeURI(daddr) + '" target="_blank">' + gme.ll.infoWindowLinkText + '<\/a><\/p>';
                }
                infoWindowContent = '<div class="gme-info-window">' + infoWindowContent + '</div>';

                if (pointDescription.openByClick) {
                    google.maps.event.addListener(marker, "click", function () {
                        if (!infoWindow.getMap() || gme.infoWindow != this.getPosition()) {
                            infoWindow.setContent(infoWindowContent);
                            infoWindow.open(_map, this);
                            gme.infoWindow = this.getPosition();
                        }
                    });
                } else {
                    google.maps.event.addListener(marker, "mouseover", function () {
                        if (!infoWindow.getMap() || gme.infoWindow != this.getPosition()) {
                            infoWindow.setContent(infoWindowContent);
                            infoWindow.open(_map, this);
                            gme.infoWindow = this.getPosition();
                        }
                    });
                }
                if (!pointDescription.closeByClick) {
                    google.maps.event.addListener(marker, "mouseout", function () {
                        infoWindow.close();
                    });
                }
                if (pointDescription.opened) {

                    $element.off("openinfo").on("openinfo", function () {
                        infoWindow.setContent(infoWindowContent);
                        infoWindow.open(_map, marker);
                    });
                    gme.infoWindow = marker.getPosition();
                }

                infoWindow.setContent(infoWindowContent);
                marker.infoWindowContent = infoWindowContent;
                marker.infoWindow = infoWindow;
            }
            marker.categories = pointDescription.categories.split(",");
            marker.uid = pointDescription.uid;
            this.markers.push(marker);
            this.bounds.extend(position);
        },

        resize: function() {
            var _map = this.map,
                gme = this.data;

            google.maps.event.trigger(_map, 'resize');
            _map.fitBounds(this.bounds);
            if (gme.mapSettings.zoom > 0) {
                _map.setZoom(gme.mapSettings.zoom);
            }
            this.refreshMap(this.element, gme);
            google.maps.event.trigger(this.infoWindow, 'content_changed');
        },

        /**
         * Set zoom, center and cluster
         *
         * @param $element
         * @param gme
         */
        refreshMap: function ($element, gme) {
            var _map = this.map;
            if (gme.mapSettings.zoom > 0 || gme.addresses.length == 1) {
                google.maps.event.addListener(_map, "zoom_changed", function () {
                    var zoomChangeBoundsListener = google.maps.event.addListener(_map, "bounds_changed", function () {
                        if (this.initZoom == 1) {
                            this.setZoom((gme.mapSettings.zoom > 0) ? gme.mapSettings.zoom : gme.mapSettings.defaultZoom);
                            this.initZoom = 0;
                        }
                        google.maps.event.removeListener(zoomChangeBoundsListener);
                    });
                });
                _map.initZoom = 1;
            }

            if ($element.data("center")) {
                _map.setCenter($element.data("center"));
            } else if(gme.mapSettings.lat && gme.mapSettings.lng) {
                _map.setCenter(new google.maps.LatLng(gme.mapSettings.lat, gme.mapSettings.lng));
                _map.setZoom(gme.mapSettings.zoom);
            } else {
                _map.fitBounds(this.bounds);
            }

            this.refreshCluster($element, gme);
        },

        /**
         * refresh the cluster
         *
         * @param $element
         * @param gme
         */
        refreshCluster: function ($element, gme) {
            if (gme.mapSettings.markerCluster == 1) {
                if ($element.markerCluster != null) {
                    $element.markerCluster.clearMarkers();
                }
                $element.markerCluster = new MarkerClusterer(this.map, this.markers, {
                    imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m',
                    styles: gme.mapSettings.markerClusterStyle,
                    maxZoom: gme.mapSettings.markerClusterZoom,
                    gridSize: gme.mapSettings.markerClusterSize
                });
            }
        },

        _initializeCss: function () {
            this.element
                .css("width", this.gme.mapSettings.width)
                .css("height", this.gme.mapSettings.height);
        },
        _initializeData: function () {
            var $element = this.element,
                gme = this.data,
                _map = this.map;

            $element.data("map", _map);

            // styled map
            if (gme.mapSettings.styledMapName) {
                var myStyle = gme.mapSettings.styledMapCode,
                    styledMapOptions = {
                        name: gme.mapSettings.styledMapName,
                        alt: gme.mapSettings.tooltipTitle
                    },
                    myMapType = new google.maps.StyledMapType(
                        myStyle,
                        styledMapOptions
                    );
                _map.mapTypes.set(gme.mapSettings.styledMapName, myMapType);
            }

            if (gme.mapSettings.defaultType == 3 && gme.mapSettings.styledMapName) {
                _map.setMapTypeId(gme.mapSettings.styledMapName);
            }

        },

        _createMapOptions: function () {
            var gme = this.gme;
            return {
                zoom: gme.mapSettings.defaultZoom,
                minZoom: gme.mapSettings.minZoom,
                maxZoom: gme.mapSettings.maxZoom,
                center: new google.maps.LatLng(0, 0),
                geolocation: gme.mapSettings.geolocation,
                draggable: gme.mapSettings.draggable,
                disableDoubleClickZoom: gme.mapSettings.doubleClickZoom,
                scrollwheel: gme.mapSettings.scrollZoom,
                scaleControl: gme.mapSettings.scaleControl,
                streetViewControl: gme.mapSettings.streetviewControl,
                fullscreenControl: gme.mapSettings.fullscreenControl,
                zoomControl: gme.mapSettings.zoomControl,
                mapTypeId: gme.defaultMapTypes[gme.mapSettings.defaultType],
                mapTypeControl: gme.mapSettings.mapTypeControl,
                mapTypeControlOptions: {mapTypeIds: gme.mapSettings.mapTypes}
            };
        },

        _initializeKmlImport: function () {
            var _this = this,
                _map = this.map,
                gme = this.data,
                Route = this.route,
                $element = this.element;

            // KML import
            if (gme.mapSettings.kmlUrl != '' && gme.mapSettings.kmlLocal == 0) {
                var kmlLayer = new google.maps.KmlLayer(gme.mapSettings.kmlUrl, {preserveViewport: gme.mapSettings.kmlPreserveViewport});
                kmlLayer.setMap(_map);
            }

            // KML import local
            if (gme.mapSettings.kmlUrl != '' && gme.mapSettings.kmlLocal == 1) {
                $.get(gme.mapSettings.kmlUrl, function (data) {

                    //loop through placemarks tags
                    $(data).find("Placemark").each(function () {
                        //get coordinates and place name
                        var coords = $(this).find("coordinates").text(),
                            place = $(this).find("name").text(),
                            description = $(this).find("description").text(),
                            c = coords.split(","),
                            address = {
                                title: place,
                                latitude: c[1],
                                longitude: c[0],
                                address: place,
                                marker: '',
                                imageSize: 0,
                                imageWidth: 0,
                                imageHeight: 0,
                                infoWindowContent: description,
                                infoWindowLink: 0,
                                openByClick: 1,
                                closeByClick: 1,
                                opened: 0,
                                categories: ''
                            };
                        _this.addMapPoint(address, Route, $element, _this.infoWindow, gme);
                        gme.addresses.push(address);
                    });
                });
            }
        },

        _initializeGeolocation: function () {
            var _this = this,
                _map = this.map,
                gme = this.data;

            // geolocation
            if (gme.mapSettings.geolocation == 1) {
                var myloc = new google.maps.Marker({
                    clickable: false,
                    icon: {
                      path: google.maps.SymbolPath.CIRCLE,
                      scale: 9,
                      fillColor: '#408fff',
                      fillOpacity: 1,
                      strokeColor: 'white',
                      strokeWeight: 3
                    },
                    zIndex: 999,
                    map: _map
                });

                if (navigator.geolocation) navigator.geolocation.getCurrentPosition(function(pos) {
                    var me = new google.maps.LatLng(pos.coords.latitude, pos.coords.longitude);
                    myloc.setPosition(me);
                    var mycenter = {
                        lat: pos.coords.latitude, 
                        lng: pos.coords.longitude
                    };
                    _map.setCenter(mycenter);
                }, function(error) {
                    console.log('could not get position');
                });
            }
        },

        _initializeSearch: function () {
            var _this = this,
                gme = this.data,
                $element = this.element;

            // Search
            if (gme.mapSettings.markerSearch == 1) {
                var $myForm = $('#' + gme.mapSettings.id + '-search'),
                    searchIn = $myForm.find('.js-gme-sword');

                $myForm.find('.js-gme-error').hide();

                $myForm.submit(function () {
                    var submitValue = $(searchIn).val().toLowerCase();
                    var notFound = true;
                    $.each(gme.addresses, function (i, address) {
                        $.each(address, function (index, val) {
                            if (typeof val == "string" && (index == "title" || index == "infoWindowContent") && submitValue != "") {
                                if (val.toLowerCase().indexOf(submitValue) != -1) {
                                    _this.focusAddress(_this.markers[i].uid, $element, gme);
                                    notFound = false;
                                }
                            }
                        });
                    });
                    $myForm.find('.js-gme-error').toggle(notFound);
                    return false;
                });
            }
        },

        _initializeBackendAddresses: function () {
            var _this = this,
                gme = this.data,
                $element = this.element,
                Route = this.route,
                infoWindow = this.infoWindow;

            // Add backend addresses
            if (gme.mapSettings.showRoute == 0) {
                $element.data("geocoder", new google.maps.Geocoder());
                if ($element.data("geocoder")) {
                    $.each(gme.addresses, function (index, address) {
                        _this.addMapPoint(address, Route, $element, infoWindow, gme);
                    });

                }
            }
        },

        _initializeRoute: function () {
            var _this = this,
                _map = this.map,
                gme = this.data,
                $element = this.element;

            // init Route function
            if (gme.mapSettings.showRoute == 1 || gme.mapSettings.calcRoute == 1) {
                var panelHtml = $('<div id="dPanel-' + gme.mapSettings.id + '"><\/div>'),
                    directionsService = new google.maps.DirectionsService(),
                    directionsDisplay = new google.maps.DirectionsRenderer();

                panelHtml.insertAfter($element);

                var renderRoute = function ($start, $end, $travelMode, $unitSystem) {
                    var unitSystem = _this.getUnitSystem($unitSystem),
                        request = {
                            origin: $start,
                            destination: $end,
                            travelMode: _this.getTravelMode($travelMode)
                        };

                    directionsDisplay.setMap(_map);
                    directionsDisplay.setPanel(document.getElementById("dPanel-" + gme.mapSettings.id));

                    if (unitSystem != 0) {
                        request.unitSystem = unitSystem;
                    }

                    directionsService.route(request, function (response, status) {
                        if (status == google.maps.DirectionsStatus.OK) {
                            directionsDisplay.setDirections(response);
                        } else {
                            alert(gme.ll.alert);
                        }
                    });
                };
            }

            // show route from backend
            if (gme.mapSettings.showRoute == 1) {
                renderRoute(gme.addresses[0].address, gme.addresses[1].address, gme.mapSettings.travelMode, gme.mapSettings.unitSystem);
            }

            // show route from frontend
            if (gme.mapSettings.showForm == 1) {
                var $mapForm = $('#' + gme.mapSettings.id + '-form');

                $mapForm.submit(function () {
                    var formStartAddress = $mapForm.find('.js-gme-saddress').val(),
                        endAddressIndex = $mapForm.find('.js-gme-eaddress option:selected').val(),
                        formEndAddress = endAddressIndex ?
                            gme.addresses[parseInt(endAddressIndex)].address :
                            gme.addresses[0].address,
                        formTravelMode = $mapForm.find('.js-gme-travelmode').val(),
                        formUnitSystem = $mapForm.find('.js-gme-unitsystem').val();

                    if (formStartAddress == null) {
                        formStartAddress = gme.addresses[0].address;
                        formEndAddress = gme.addresses[1].address;
                    }

                    if (formTravelMode == null) {
                        formTravelMode = gme.mapSettings.travelMode;
                    } else {
                        formTravelMode = parseInt(formTravelMode);
                    }
                    if (formUnitSystem == null) {
                        formUnitSystem = gme.mapSettings.unitSystem;
                    } else {
                        formUnitSystem = parseInt(formUnitSystem);
                    }

                    renderRoute(formStartAddress, formEndAddress, formTravelMode, formUnitSystem);
                    return false;
                });
            }
        },

        _initializeResizeListener: function () {
            var _this = this,
                width = $(this.element).width();

            // eventHandler resize can be used
            this.element.bind('mapresize', function () {
                // resize only when the window width changes, not while hiding a browser bar
                if($(this).width() != width) {
                    width = $(this).width();
                    _this.resize();
                }
            });
        },

        _initializeCheckboxListener: function () {
            var _this = this;

            // categories checkboxes
            $('.js-gme-cat').change(function () {
                var selectedCats = $('.js-gme-cat:checked').map(function () {
                    return this.value;
                });
                _this.setCategories(selectedCats);
            });
        },

        _initializeAddressListener: function () {
            var _this = this,
                $element = this.element,
                gme = this.gme;

            $('.js-gme-address').click(function () {
                var selectedAddress = [$(this).attr('data-address')];
                _this.focusAddress(selectedAddress, $element, gme);
                return false;
            });
        }
    };

    // create a new Google Map
    $.fn.gomapsext = function (gme) {
        var $element = $(this);
        if (!$element.data('gomapsextcontroller')) {
            $element.data('gomapsextcontroller', new GoMapsExt.Controller($element, gme));
        }
    };
}(jQuery || $));
