<!--
/* SVN FILE: $Id: external.js 89 2010-01-22 12:35:57Z Chris $ */
/**
 * Support opening links in a new window with valid XHTML
 *
 * XHTML STRICT does not permit the target attribute in markup.
 * To allow markup to be valid yet open remote links in a new window
 * or tab, links with a different hostname have their target attribute
 * set to "_blank".
 * Works for http, https, and ftp protocols.
 *
 * @copyright    Copyright 2008 PBM Web Development - All Rights Reserved
 * @package      js
 * @since        V1.0.0
 * @version      $Revision: 89 $
 * @modifiedby   $LastChangedBy: Chris $
 * @lastmodified $Date: 2010-01-22 12:35:57 +0000 (Fri, 22 Jan 2010) $
 */
jQuery(document).ready(function(){
	externals = jQuery('a[href^="http"],a[href^="ftp"]');
	externals.attr('target', "_blank");
	externals.attr('title', function(){return (this.title?this.title + ": ":"") + "Opens in a new tab or window";});
	jQuery('.print').click(function(){window.print(); return false;});
	jQuery('html').addClass('js'); // used to stop FOUC
});
// -->
