//opens a window in the middle of the screen, 1/4 of the way down

function openWindow(url, width, height)
{
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/4) - (height/4));

    var windowFeatures = "width=" + width + ",height=" + height +
    ",resizable=no,titlebar=no,status=no,menubar=no, scrollbars=yes, left=" + left +
    ",top=" + top + ",screenX=" + left + ",screenY=" + top;

    var myWindow = window.open(url, "subWind", windowFeatures);
}


//makes the dropdowns work in IE
function startList() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navlist");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

//open links in new window without tons of crap
function externalLinks() {
    startList();
 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";
 }
}
window.onload = externalLinks;



