(function() {
  var cs;

  cs = window.CS || (window.CS = {});

  cs.Data || (cs.Data = {});

  cs.Views || (cs.Views = {});

  cs.Views.CafeLocatorInfoView = Backbone.View.extend({
    events: {
      'click a.close': 'close'
    },
    initialize: function(options) {
      this.options = options;
      _.bindAll(this);
      this.$el = $(this.el);
      this.render();
    },
    render: function() {
      this.$el.html(this.template(this.model.toJSON()));
    },
    close: function(e) {
      e.preventDefault();
      this.$el.trigger('close-info');
      this.remove();
    },
    template: _.template("<a href=\"#\" class=\"close\">&times;</a>\n<div class=\"info\">\n	<h2><%= name %></h2>\n	<div class=\"left\">\n		<%= description %>\n	</div>\n	<div class=\"right\">\n		<%= address %>\n	</div>\n</div>\n<div class=\"brewing-methods\">\n	<% _.each(brewMethods, function(method){ %>\n		<div class=\"method <%= method %>\"></div>\n	<% }); %>\n</div>\n\n<% if(supremeCafe){ %>\n	<div class=\"promo\">\n		<img src=\"<%= CS.Data.templateDir %>/locations/customs.small.jpg\" />\n	</div>\n<% } %>\n<div class=\"tip\"></div>")
  });

}).call(this);

