/* 
   This handy plugin goes through all anchors in the collection
   and appends the href attribute in parentheses.

   From: http://learn.jquery.com/plugins/basic-plugin-creation/ */


/* pass the function jQuery, and name the parameter $
   to work well with other plugins, and still use the jQuery $ alias
   (Immediately Invoked Function Expression) */
   
(function( $ ) {

/* create jQuery method with $.fn */
  $.fn.showLinkLocation = function() {
  
      this.filter( "a" ).each(function() {
        var link = $( this );
        link.append( " (" + link.attr( "href" ) + ")" );
  });
  return this;
  };
}( jQuery ));