<!-- 

function toggleCategory(id) {
	var departments = document.getElementById("sidenavLinks");
	
	// collapse all departments
	for (var i = 0; i < departments.childNodes.length; ++i) {
//		alert("child.tagName: " + departments.childNodes[i].tagName);
		if (departments.childNodes[i].tagName == "LI") {
			collapseDepartment(departments.childNodes[i]);
		}
	}
	
	document.getElementById(id).className = "categoriesExpanded";
}

function collapseDepartment(department) {
	for (var i = 0; i < department.childNodes.length; ++i) {
		if (department.childNodes[i].tagName == "UL") {
			department.childNodes[i].className = "categoriesCollapsed";
		}
	}
}

function popWindow(url,winname,toolbar,location,directories,status,border,menubar,scrollbars,resizable,ns6width,ns6height,iewidth,ieheight,ns4width,ns4height,width,height,top,left) {
        agent = navigator.userAgent;
        self.name = "parentwindow"; // names current window as "parentwindow"
        windowName = "PopUpWindow";

        // set blank attributes
        if (toolbar=='') {toolbar=0};
        if (location=='') {location=0};
        if (directories=='') {directories=0};
        if (status=='') {status=0};
        if (border=='') {border=0};
        if (menubar=='') {menubar=0};
        if (scrollbars=='') {scrollbars=0};
        if (resizable=='') {resizable=0};
        if (ns6width=='') {ns6width=0};
        if (ns6height=='') {ns6height=0};
        if (iewidth=='') {iewidth=0};
        if (ieheight=='') {ieheight=0};
        if (ns4width=='') {ns4width=0};
        if (ns4height=='') {ns4height=0};
        if (width=='') {width=0};
        if (height=='') {height=0};
        if (top=='') {top=0};
        if (left=='') {left=0};

        params = "";
        params += "toolbar="+toolbar+",";
        params += "location="+location+",";
        params += "directories="+directories+",";
        params += "status="+status+",";
        params += "border="+border+",";
        params += "menubar="+menubar+",";
        params += "scrollbars="+scrollbars+",";
        params += "resizable="+resizable+",";
        if (agent.indexOf("Netscape6")!= -1) {
            params += "screenX="+left+",";
            params += "screenY="+top+",";
            params += "width="+ns6width+",";
            params += "height="+ns6height;
        } else if (agent.indexOf("MSIE")!= -1) {
            params += "left="+left+",";
            params += "top="+top+",";
            params += "width="+iewidth+",";
            params += "height="+ieheight;
        } else if (agent.indexOf("Mozilla/4")!= -1) {
            params += "screenX="+left+",";
            params += "screenY="+top+",";
            params += "width="+ns4width+",";
            params += "height="+ns4height;
        } else {
            params += "left="+left+",";
            params += "top="+top+",";
            params += "width="+width+",";
            params += "height="+height;
        }

        LNwin = window.open(url, winname , params);
        if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
            LNwin = window.open(url, winname , params);
        }
        if (!LNwin.opener) {
            LNwin.opener = window;
        } else {
            LNwin.focus();
        }
    }


/*
 *  popNav() - Handles navigation between two windows.  If the current window
 *             is a popup with the name specified by 'currentWindowName' then 
 *             focus is directed to the opener, otherwise a new window is opened
 *             with the name specified by 'newWindowName'
 *  param:  currentWindowName - The name of the current popup window
 *  param:  newWindowName - The name of the new popup window
 *  param:  url - The location that the new window should open
 */    
function popNav(currentWindowName, newWindowName, url) {
    if ((currentWindowName == null) || (newWindowName == null) || (url == null)) {
    	return false;
    }
    
	if ((window.opener != null) && (! window.opener.closed) && (window.name == currentWindowName)) {
	    // if the current window was opened by another window and that other window has not
	    // been closed, then send focus to that window
    	window.opener.focus();
	} else {
	    // open a new popup window with the specified URL
        popWindow(url, newWindowName,'1','1','1','1','1','1','1','1','850','700','850','700','850','700','850','700','25','25');
	}
	
	return true;  
}

-->