/* generic javascript used throughout site */

/* Table of Contents:		
	GENERIC FUNCTIONS/SCRIPTS
	CMS SPECIFIC FUNCTIONS/SCRIPTS
	NON USD FUNCTIONS/SCRIPTS
	SECTION/PAGE SPECIFIC FUNCTIONS/SCRIPTS	
	ONLOAD FUNCTIONS/SCRIPTS
*/


/* =GENERIC FUNCTIONS/SCRIPTS
----------------------------------------------------*/


/* =CMS SPECIFIC FUNCTIONS/SCRIPTS
----------------------------------------------------*/
// display pending actions if auto-login
if (window.location.href.search(/displayPendingActions=true/i) != -1) {
	newWindow('actionneeded','/loader.cfm?csModule=approve/action-needed');
}


/* =NON USD FUNCTIONS/SCRIPTS
----------------------------------------------------*/


/* =SECTION/PAGE SPECIFIC FUNCTIONS/SCRIPTS
----------------------------------------------------*/


/* =ONLOAD FUNCTIONS/SCRIPTS 
----------------------------------------------------*/
/* note: other scripts may also include onload functions */
$(document).ready( function() {
							
	// ensure external and file links open in new window						
	$('a.external, a.pdf, a.word, a.powerpoint, a.excel, a.file, a.print').click( function() { 
		window.open(this.href);
		return false;
	});
	
});











