/*
 * jQuery remove self link plugin
 *
 * Copyright(C) 2007-2008 LEARNING RESOURCE LAB
 * http://developmentor.lrlab.to/blog/
 *
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($) {

  // removeSelfLink
  $.fn.removeSelfLink = function() {
    var self = this;
    var href = location.href.split('#');
    return self
      .find('a')
      .each(function() {
          if (href[0] == this.href)
            $(this).before(this.childNodes).remove();
        })
      .end();
  };

})(jQuery); // function($)

