$(document).ready(init);
      
function init() {
  if ($('body').hasClass('login')) {
    $.getScript('scripts/views.js', function(){
      LoginPage.whyGmailView.show();
    });
  }
}

(function($){
  $.fn.ajaxField = function(options) {
    var defaults = {
      change:null
    };
    
    var options = $.extend(defaults, options);
    
    if (options.change) {
      $(this).bind('blur', options.change);
    }
    
    $container = $(this).parent();
    
    var field_pos_y  = $(this).position().top;
    var field_height = $(this).height();
  
    $indicator = $('<span class="indicator"></span>');
  
    $indicator.css('position', 'absolute');
    //$indicator.css('top', field_pos_y + (field_height - $indicator.height() / 2));
    //$indicator.css('left', $(this).width() - ($(this).outerWidth() - $(this).width()) );
    
    $indicator.css('top', 0);
    $indicator.css('right', 5);
  
    $container.append($indicator);
  };
})(jQuery);
