/*
--------------------------------------------------------------------------

	Global JS

--------------------------------------------------------------------------*/

/*	
-------------------------------------------------------------------------

	External Link script compliments of seth: 
	http://sethkinast.com/blog/archive/2004/05/21/relexternal/
	
	Because XHTML 1.0 Strict doesn't like
	the target="_blank" attribute, this bit of script allows
	us to open links in a new window without losing validation.
	
-------------------------------------------------------------------------*/

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName('a');
 for (var i=0; i < anchors.length; i++) {
   var anchor = anchors[i];
   if ( anchor.getAttribute('href') &&
       anchor.getAttribute('rel') == 'external' )
     anchor.target = '_blank';
 }
}
window.onload = externalLinks;


/* End External Link Script */