startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("quick-connect");
		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", "");
				}
			}
		}
	}
}

startList1 = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("dropdown");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
					this.style.zIndex=90;
				}
				node.onmouseout=function() {
					this.style.zIndex=80;
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}


startList2 = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("dropdown2");
		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", "");
				}
			}
		}
	}
}

startLists = function() {
	if (document.getElementById("quick-connect")) startList();
	if (document.getElementById("dropdown")) startList1();
	if (document.getElementById("dropdown2"))startList2();
}

window.onload=startLists;

function toggleSub(submenu) {
    if (document.getElementById(submenu).style.display == '') {
        document.getElementById(submenu).style.display = 'block'
    }  else {
        document.getElementById(submenu).style.display = ''
    }

}

function toggleLeft(myStyle) {
    if (document.getElementById(myStyle).style.marginLeft == '25px') {
        document.getElementById(myStyle).style.marginLeft = '247px';
        document.getElementById('leftnav').style.display = 'block';
    } else {
        document.getElementById(myStyle).style.marginLeft = '25px';
        document.getElementById('leftnav').style.display = 'none';
    }
}

// open popup window

function popupPage(passedurl) {
	var thepage = passedurl;
	windowprops = "scrollbars=yes,toolbar=no,height=500,width=560";
	thewindow=window.open(thepage,"",windowprops);
}