var newwindow = '';
function popupWin(url) {
    if (!newwindow.closed && newwindow.location) {
        newwindow.location.href = url;
    }
    else {
        newwindow = window.open(url, 'name', 'height=540,width=760,left=50,top=50,directories=no,location=No,menubar=No,resizable=yes,scrollbars=yes,status=No,toolbar=No');
        if (!newwindow.opener) newwindow.opener = self;
    }
    if (window.focus)
        newwindow.focus();

    return false;
}

function informClientOfLocationRestriction(href) {

	var answer = confirm("This link points to a site that is only accessible from the UNCG intranet. If you are off campus, you probably will not be able to access the site at this URL. Would you like to continue?")

	if (answer) {
		window.location = href;
		return true;
	}
	else {
		return false;
	}



}

//Bug fix in IE Mac
startList = function() {
    if (document.all && document.getElementById) {
        navRoot = document.getElementById("uncgBlueNavDrop");
        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", "");
                }
            }
        }
    }
}
window.onload = startList;