
(function($) {  
	$.fn.lockDown = function(options) {  		
		return this.each(function() {  
			$("p:empty", this).remove();
			$("div:empty", this).remove();
			$("span:empty", this).remove();
		}); // End each loop.
	}
})(jQuery);// JavaScript Document



(function($) {  
 $.fn.externalLink = function(options) {  
  var defaults = {  
   'externalClass'  : 'external'
  }, options = $.extend(defaults, options);  
  
  return this.each(function() {  
   var root = window.location.protocol+'//'+window.location.hostname+'/';
   
   $("a[href^='http://']:not([href='#']):not([href^='mailto:']):not([href^='"+root+"'])", this).addClass(options.externalClass).attr("target", "_blank").attr("title", "Opens in a new window");
  }); // End each loop.
 }
})(jQuery);