/* External links JavaScript - Copyleft 2004 Rent-A-Monkey.com */
/* Released under a "Share-and-Share Alike" loose public license. */
/* This code was inspired by several examples, and may be reproduced and reused freely as long as the same rights are passed on in full. */
/* Examples that inspired this code: */
/* http://www.sitepoint.com/article/standards-compliant-world */
/* http://development.incutio.com/simon/targetBlankExperiment.html */

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";
			anchor.title += " - Opens in new window";
		}
	}
}
