
function writeYear() {
	var now = new Date();
	document.write(now.getFullYear());
}

startList = function() {

	if (document.all&&document.getElementById) {

		headerLis = document.getElementById("site_wrapper").getElementsByTagName("li");

		for (i=0; i < headerLis.length; i++) {

			node = headerLis[i];

			if (node.nodeName=="LI") {

				node.onmouseover=function() {
					this.className+=" over";
				}

				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}

			}

		}

	}
}

window.onload=startList;

function openMenu(id) 
{
    elem = document.getElementById(id);
    elem.style.visibility = 'visible';
}
function hideMenu(id) 
{
    elem = document.getElementById(id);
    elem.style.visibility = 'hidden';
}

//Hide drop down list to prevent IE bug
function hideDDL()
{
	if (document.getElementById("TDDDL")) 
	{
		DDL = document.getElementById("TDDDL").getElementsByTagName("select");
		DDL[0].style.visibility = 'hidden';	
	}
}

function showDDL()
{
	if (document.getElementById("TDDDL")) 
	{
		DDL = document.getElementById("TDDDL").getElementsByTagName("select");
		DDL[0].style.visibility = 'visible';	
	}
}