var map;
function nfMap(div, zoom,lat,lon,url) {
      var style = [{
            featureType: "all",
            elementType: "all",
            stylers: [{
              hue: "#282828"
            },{
              lightness: -20
            },{
              saturation: -100
            }]
          },
          {
            // Water
            featureType: "water",
            elementType: "all",
            stylers: [{
              hue: "#FFFFFF"
            },{
              lightness: 60
            },{
              saturation: -100
            }]
          },
          {
            // Landscape Labels
            featureType: "landscape",
            elementType: "labels",
            stylers: [{
              visibility: "off"
            }]
          },{
            // Landscape Global
            featureType: "landscape",
            elementType: "all",
            stylers: [{
              hue: "#cccccc"
            },{
              lightness: 100
            },{
              saturation: 0
            }]
          }],
          latlng = new google.maps.LatLng(lat,lon),
          opts = {
            zoom: zoom,
            center: latlng,
            mapTypeId: google.maps.MapTypeId.TERRAIN,
            scaleControl: false,
            scrollwheel: false,
			mapTypeControl: false
          },
          styledMapOptions = {
              map: map
          },
       imswMap =  new google.maps.StyledMapType(style, styledMapOptions);
     	map =  new google.maps.Map(document.getElementById(div), opts);
     	map.mapTypes.set(div, imswMap);
     	map.setMapTypeId(div);

     
	        var latlng = new google.maps.LatLng(lat,lon);
	        var icon = new google.maps.MarkerImage("assets/map-bsf.png");
	       
	        marker = new google.maps.Marker({
	        	position: latlng,
	            map: map,
	            icon: icon,
	            title: "Burgers Shakes & Fries",
	            zIndex: 150,
	            navigationControl: false,
				animation: google.maps.Animation.DROP,
	
	        })
		
			google.maps.event.addListener(marker, 'click', function() {
			  window.location = url;
			});
		
		
	
	

}


