$(document).ready(function() { $('.mm > li:has( > ul)').addClass('menu-dropdown-icon'); $('.mm > li > ul:not(:has(ul))').addClass('normal-sub'); $(".mm").before("Navigation"); $(".mm > li").hover(function (e) { if ($(window).width() > 768) { $(this).children("ul").stop(true, false).toggle(); e.preventDefault(); } }); $(".mm > li").click(function () { if ($(window).width() <= 768) { $(this).children("ul").toggle(); e.preventDefault(); } }); $(".mms-mobile").click(function (e) { $(".mm").toggleClass('show-on-mobile'); e.preventDefault(); }); $("#show-hide-menu").click(function(e) {e.preventDefault(); $("#top-menu").toggleClass("resp");}); }); var map; function initializeMapID(ID, lat, lng, zom) { var latlng = new google.maps.LatLng(lat, lng); var settings = { zoom: zom, center: latlng, mapTypeControl: true, fullscreenControl: true, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}, navigationControl: true, navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL}, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById(ID), settings); var companyPos = new google.maps.LatLng(lat, lng); var companyMarker = new google.maps.Marker({ position: companyPos, map: map }); }