jQuery(document).ready(function($) {

  // Set fading effect on footer icons
  $(".region-footer img").hover(function() {
    $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
  }, function() {
    $(this).fadeTo("slow", 0.6); // This should set the opacity back to 50% on mouseout
  });
  
  /* Add "open link in new window" functionality trough rel="external" because of xhtml 1.0 strict */
  $("a[rel~='external']").addClass("external");
  $("a[rel~='external']").attr('target', '_blank');
  $("a[rel~='nofollow']").mouseover(function(){
    window.status = this.title;
    return true;
  });
  $("a[rel~='nofollow']").mouseout(function(){
    window.status = '';
    return true;
  });
  
});;

