<!-- HIDE FROM INCOMPATIBLE BROWSERS

/*
*	Fast Forward JavaScript Code Snippets
*
*	By: Tammy C. Wilson, Agile Web Development
*	6/19/07
*/

/* This function is courtsey of: http://www.sitepoint.com/article/standards-compliant-world
It opens links marked external in a new Window. Use with PDF's and external websites */

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";
		}
}

/* This function is courtsey of: http://www.sitepoint.com/blogs/2004/05/26/closures-and-executing-javascript-on-page-load/ */
/* It adds functions to the onload event, without screwing up any previous onload events */

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

addLoadEvent(externalLinks);

// STOP HIDING FROM INCOMPATIBLE BROWSERS -->