(function() {
  var cs;

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

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

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

  cs.Views.MachineryView = Backbone.View.extend({
    initialize: function(options) {
      this.options = options;
      _.bindAll(this);
      this.showCurrent();
    },
    showCurrent: function() {
      var path;
      var _this = this;
      path = window.location.pathname;
      if (path === '/machinery') return;
      _.each(this.$('.machine'), function(el) {
        var $el, earl;
        $el = $(el);
        earl = $el.find('a.link').attr('href');
        if (earl === path) $el.addClass('selected');
      });
    }
  });

}).call(this);

