$(document).ready(function()
{
	$("#essay").counter({
	count: 'up',
	type: 'word'
	});
     
     
$('#scholarForm')
	   .jqTransform()
	   .validate({
         submitHandler: function(form) {
           $(form).ajaxSubmit({
                success: function() {
                    $('#scholarForm').hide();
                    $('#scholar').append("<p class='thanks'>Thanks! Your application has been sent.</p>")
                }
           });
         }
        }); 

$('#content a').each(function () {
    $('<div class="fader" />').css('opacity', 0).prependTo(this);
  }).hover(function () {
    $('a', this).stop().animate({
      marginLeft : 5
    }, 250);
    
    $('.fader', this).stop().animate({
      opacity : 0.15
    });
    
  }, function () {
    $('a', this).stop().animate({
      marginLeft : 10
    }, 250);
    
    $('.fader', this).stop().animate({
      opacity : 0
    });
  }).find('a').css('marginLeft', 10);
  
  
    
    $links.click(function () {
      var link = this, 
        $link = $(this);
      
      // ignore if already visible
      if ($link.is('.selected')) {
        return false;
      }
      
      $links.removeClass('selected');
      $link.addClass('selected');
      
      
      });
    
  });   
    
	

