/* 
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;

sfHover = function() {
	var sfEls = document.getElementById("navigation").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
