(function(b){function a(b,a){this.id=b;this.marker=a}a.prototype.config={center:[ContextManager.getLatitude(),ContextManager.getLongitude()].join(),mapHeaderText:"Map and Directions",getDirectionsText:"Get Directions",getDirectionsLink:"HoursAndDirections?cs:a:i=map_widget",mapURL:"http://maps.googleapis.com/maps/api/staticmap",mapOptions:{sensor:"false",zoom:"14"}};a.prototype.createMarker=function(){this.config.mapOptions.markers="prod"!=ContextManager.envName?this.config.center:"icon:"+this.marker+ "|"+this.config.center};a.prototype.init=function(){this.createMarker();var a=b("#"+this.id),d=b("div.map-widget",a),e=b("<img />",a),c=b("div.widget-map",a);this.config.mapOptions.size=c.width()+"x"+c.height();var f=this.config.mapURL+"?"+b.param(this.config.mapOptions);e.attr("src",f).attr("alt","Directions to Our Dealership");c.empty().append(e);b("h3",a).text(this.config.mapHeaderText);b("a",a).attr("href",this.config.getDirectionsLink).text(this.config.getDirectionsText);d.data("widget",this); d.unbind().bind("widgetSizeChanged",function(){b(this).data("widget").init()});this.setup()};a.prototype.setup=function(){};window.MapTileWidget=a;b(function(){b(window).trigger("MapTileWidget.loaded")})})(jQuery);(function(b){function a(e,a){this.id=e;this.marker=a}a.prototype.config={center:[ContextManager.getLatitude(),ContextManager.getLongitude()].join(),mapHeaderText:"Map and Directions",getDirectionsText:"Get Directions",getDirectionsLink:"HoursAndDirections?cs:a:i=map_widget",mapURL:"http://maps.googleapis.com/maps/api/staticmap",mapOptions:{sensor:"false",zoom:"14"}};a.prototype.createMarker=function(){this.config.mapOptions.markers="prod"!=ContextManager.envName?this.config.center:"icon:"+this.marker+ "|"+this.config.center};a.prototype.init=function(){this.createMarker();var a=jQuery("#"+this.id),b=jQuery("div.map-widget",a),d=jQuery("<img />",a),c=jQuery("div.widget-map",a);this.config.mapOptions.size=c.width()+"x"+c.height();var f=this.config.mapURL+"?"+jQuery.param(this.config.mapOptions);d.attr("src",f).attr("alt","Directions to Our Dealership");c.empty().append(d);jQuery("h3",a).text(this.config.mapHeaderText);jQuery("a",a).attr("href",this.config.getDirectionsLink).text(this.config.getDirectionsText); b.data("widget",this);b.unbind().bind("widgetSizeChanged",function(){jQuery(this).data("widget").init()});this.setup()};a.prototype.setup=function(){};window.MapTileWidget=a;b(function(){b(window).trigger("MapTileWidget.loaded")})})(jQuery);

