/* <![CDATA[ */
/*
	script by Kevin Yank
	http://www.sitepoint.com/article/standards-compliant-world
*/
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 = "This link opens in a new window.";
		}
		else if ( ( anchor.getAttribute("href") ) && ( anchor.getAttribute("rel") ) ) {
			anchor.target = anchor.getAttribute("rel");
			//anchor.title = "This link opens in the frame "+ anchor.getAttribute("rel") +".";
		}
		/*else if ( anchor.getAttribute("href") && anchor.getAttribute("rel") ) {
			anchor.target = anchor.getAttribute("rel");
			anchor.title = "This link opens in a new window.";
		}*/
		else if ( !anchor.getAttribute("rel") ) {
			//anchor.title = "This link opens in this window.";
		}
		/* else if ( anchor.getAttribute("href") == "aim" ) {
			anchor.title = "This link opens another application.";
		} */
	}
}
window.onload = externalLinks;
/* ]]> */

