  function positionFooter() {
	var docHeight = $(document.body).height() - $("#sticky-footer-push").height();
	if(docHeight < $(window).height()){
	  var diff = $(window).height() - docHeight;
	  if (!$("#sticky-footer-push").length > 0) {
		$("footer").before('<div id="sticky-footer-push"></div>');
	  }
	  $("#sticky-footer-push").height(diff);
	}
  }
  
  (function ($) {
	  $.extend($.fn, {
		newWindow: function (options) {
		  var defaults = {open: function () {}};
		  options = $.extend(defaults, options || {});
	
		  return this.each(function () {
			$(this).click(function (e) {
			  e.preventDefault();
			  var newWindow = open(this.href);
			  options.open.call(newWindow, e);
			});
		  });
		}
	  });
	})(jQuery);
		
	$('a[rel~=external]').newWindow();
  
