function toggleNotice( id ) {
	if( (target = document.getElementById(id)) ) {
		if( target.innerHTML != "" ) {
			target.style.display = "block";
			
			var curHeight = target.style.height;
			if( curHeight != "24px" ) {
				target.style.height = "24px";
				document.getElementById('notice-heading').innerHTML = "Notice";
			} else {
				target.style.height = "auto";
				document.getElementById('notice-heading').innerHTML = "Click here to see notice...";
			}
		}
	}
}


// this function is intended to dynamically adjust font-size according to client window size.
// still under construction.
function adaptiveFontSize() {
//	if( (target = document.getElementsByName("content")) ){
//		if( document.body.clientWidth < 1020 ) {
//			target.namedItem("content").innerHTML = "80%";
//		} else {
//			target.namedItem("content").innerHTML = "100%";
//		}
//	} else alert("no such element");
}

function IEHoverPseudo() {
	var navItems = document.getElementById("top-nav").getElementsByTagName("li");
	for (var i=0; i<navItems.length; i++) {
		if(navItems[i].className == "menuparent") {
			navItems[i].onmouseover=function() { this.className += " ie-active"; }
			navItems[i].onmouseout=function() { this.className = "menuparent"; }
		}
	}
	adaptiveFontSize();
}

window.onload = IEHoverPseudo;
