$(document).ready(function () {
    $(".currentYear").text((new Date).getFullYear());

  $('.rightNavigation li').each(function() {
    if (this.className != 'selected') {
      $(this).stop().animate( {backgroundPosition:"(280 0)"}, {duration:100}) 
    }

  });

  $('.rightNavigation li')
    .mouseover(
      function(){
      if (this.className == 'selected') {
      } else {
        $(this).stop().animate(
          {backgroundPosition:"(0 0)"}, 
          {duration:100})
        jQuery("a", this).css("color", "#ffffff");
        }
      })

    .mouseout(
      function(){
      if (this.className == 'selected') {
      } else {
      $(this).stop().animate(
        {backgroundPosition:"(280 0)"}, 
        {duration:100})
      jQuery("a", this).css("color", "#737370");
        }
      })

  $("#navigation img").hover(
     function() {
      this.src = this.src.replace("_off","_on");
     },
     function() {
        this.src = this.src.replace("_on","_off");
     }  
  );
  
  $("#printButton img").hover(
     function() {
      this.src = this.src.replace("_off","_on");
     },
     function() {
        this.src = this.src.replace("_on","_off");
     }  
  );
  
  $('#share').Sharing({ text: '',
links: 'facebook,twitter,delicious,googlebookmarks,email',
image_dir: '/images/sharing/'
});
});

