(function() {
  var __bind = function(func, context) {
    return function(){ return func.apply(context, arguments); };
  };
  jQuery(document).ready(__bind(function($) {
    var $navigation, switch_header;
    $navigation = $('#navigation');
    $navigation.addClass('not-help');
    switch_header = function() {
      $navigation.toggleClass('help');
      return $navigation.toggleClass('not-help');
    };
    if (!$.cookie('user_has_visited_indigo_before')) {
      switch_header();
      $.cookie('user_has_visited_indigo_before', 'true', {
        expires: 999
      });
    }
    $('#navigation .help').click(__bind(function(e) {
      switch_header();
      return false;
    }, this));
    return $('.scroll_to_top, .sitemap').click(__bind(function(e) {
      $('html, body').animate({
        scrollTop: 0
      }, 'fast');
      return false;
    }, this));
  }, this));
})();

