<!--
/*
	script by Kevin Yank
	http://www.sitepoint.com/article/standards-compliant-world
*/
function externalLinks() {
	if (!document.getElementsByTagName) { return; }
	var anchors = document.getElementsByTagName("a");
	var all = anchors.length;
	/*	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.";
		}
	}*/
	for ( var i=0; i<all; i++ ) {
		var anchor = anchors[i];
		if ( ( anchor.getAttribute("href") ) && ( anchor.getAttribute("rel") == "external" ) ) {
			anchor.title = "This link opens in a frameset.";
			var siteid = location.search.replace(/(\?id=|\&.*)/gi, "");
			anchor.href = "ext.php?v=" + encodeURIComponent(anchor.href) + "&b=" + encodeURIComponent(location.pathname) + encodeURIComponent(location.search);
		}
		if ( ( anchor.getAttribute("href") ) && ( anchor.getAttribute("rel") == "new" ) ) {
			anchor.title = "This link opens in a new window.";
			anchor.target = "_blank";
		}
	}
}
window.onload = externalLinks;
-->
