/* 
For creating a 'web-standards' version of the _target tag.
We're using the appropriate 'rel' attribute with the name 'external'.
Any 'rel=external' attribute applied to the href will launch a new window with that link.
*/

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 is a small KLUDGE to make the drop-down work with IE6. Firefox, IE7 and Safari work without it.
It's from the 'son of suckerfish dropdown' url at: http://htmldog.com/articles/suckerfish/dropdowns/
*/

window.onload = externalLinks;


