/************************************************************
	START target="_blank" replacement script
************************************************************/

//	this function works around the dropping of
//	target="_blank" from XHTML strict

//	the function takes all instances of rel="external" from
//	anchor tags, and causes them to pop a new window

//	in short, use rel="external" instead of target="_blank"
//	to pop a new window :)

function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	var areas = document.getElementsByTagName("area");

for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		var area = areas[i];

		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";

	}

}
window.onload = externalLinks;

/************************************************************
	END target="_blank" replacement script
************************************************************/

