(function($){
  

	/** hookAnchors
	  * parameters: none
	  *
	  * looks for anchors with [rel='externals'] and forces them to load in a new window.
	  * also hooks all valid anchors for Baynote exit events
	*/
	
	$.fn.hookAnchors = function() {
		// hook externals
		$(this).find("a[rel='externals']").attr("target", "_blank");
		return $(this);
	};

	// once the DOM is loaded hook our anchors and execute all chained JS
	$.tps.init = $.tps.makeChain(true);
	$(function() {
		$.tps.init();
		$.tps.init = $;
		$(document).hookAnchors();
	});
})(jQuery);
