function today() {
	var time = new Date();
	var month = time.getMonth();
	switch(month) {
		case 0:		month = "January";		break;
		case 1:		month = "February";		break;
		case 2:		month = "March";		break;
		case 3:		month = "April";		break;
		case 4:		month = "May";			break;
		case 5:		month = "June";			break;
		case 6:		month = "July";			break;
		case 7:		month = "August";		break;
		case 8:		month = "September";	break;
		case 9:		month = "October";		break;
		case 10:	month = "November";		break;
		case 11:	month = "December";		break;
		default:	month = "No Week!";		break;
	}
	var week = time.getDay();
	switch(week) {
		case 1:		week = "Monday";		break;
		case 2:		week = "Tuesday";		break;
		case 3:		week = "Wednesday";		break;
		case 4:		week = "Thursday";		break;
		case 5:		week = "Friday";		break;
		case 6:		week = "Saturday";		break;
		case 7:		week = "Sunday";		break;
		default:	week = "No Week!";		break;
	}
	var day = time.getDate();	
	var year = time.getYear();
	document.write(week + ", " + month + " " + day + ", " + year);
}

// Revised, $ reserved for jQuery
function _() {
	var element = document.getElementById(arguments[0]);
	return element;
}

// Show an element 
function Show() {
	for (var i = 0; i < arguments.length; i++) {
		_(arguments[i]).style.display='';
	}
}

// Hide an element
function Hide() {
	for (var i = 0; i < arguments.length; i++) {
		_(arguments[i]).style.display='none';
	}
}

// Used for cycling through Tabbed Div Bodies
// Used in:  hn.htm
var currTab;
var currBody;

function Toggle(tab, body, align) {
	_(tab).style.position = "relative";
	if(currTab == undefined) {
		if(align == "horizontal") {
			_(tab).style.top = "2px";
		}
		else if (align == 'vertical') {
			_(tab).style.left = "2px";
		}
		Show(body);
		_(tab).style.background = '#cccccc';
		_(tab).style.zIndex = '1';
		currTab = tab;
		currBody = body;
	}
	else{
		if(align == "horizontal") {
			_(currTab).style.top = "0px";
			_(tab).style.top = "2px";
		}
		else if (align == 'vertical') {
			_(currTab).style.left = "0px";
			_(tab).style.left = "2px";
		}
		Hide(currBody);
		Show(body);
		_(currTab).style.background = '#666666';
		_(currTab).style.zIndex = '0';
		_(tab).style.background = '#cccccc';
		_(tab).style.zIndex = '1';
		currTab = tab;
		currBody = body;
	}
}

//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

var menuids=["ulmenu"] //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			//ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)

// END MENU //