/* ===
The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/menu/pro_drop_1.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
== */


stuHover = function() {
	var cssRule;
	var newSelector;
	for (var i = 0; i < document.styleSheets.length; i++)
		for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
			{
			cssRule = document.styleSheets[i].rules[x];
			if (cssRule.selectorText.indexOf("LI:hover") != -1)
			{
				 newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
				document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
			}
		}
	var getElm = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<getElm.length; i++) {
		getElm[i].onmouseover=function() {
			this.className+=" iehover";
		}
		getElm[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", stuHover);



function todaysdate() {
		today = new Date();
		var year = today.getFullYear();
		var monthnum = today.getMonth();
		var date = today.getDate();
		var day = today.getDay();		
		var week = new Array();
		week[0] = "Sunday";
		week[1] = "Monday";
		week[2] = "Tuesday";
		week[3] = "Wednesday";
		week[4] = "Thursday";
		week[5] = "Friday";
		week[6] = "Saturday";		
		var month = new Array();
		month[0] = "January";
		month[1] = "February";
		month[2] = "March";
		month[3] = "April";
		month[4] = "May";
		month[5] = "June";
		month[6] = "July";
		month[7] = "August";
		month[8] = "September";
		month[9] = "October";
		month[10] = "November";
		month[11] = "December";
		document.write((week[day]) +", " + (month[monthnum]) +" "+ (date) + ", "+ (year));
		}


function popupwindow(url) {
var winopen=open(url,"newWindow","height=275,screenX=160,screenY=250,top=250,left=250,width=300,toolbar=0,directories=0,status=0, menubar=0,scrollbars=0,resizable=0"); } 

function popupwindow5(url) {
var winopen5=open(url,"newWindow","height=350,screenX=50,screenY=50,top=220,left=680,width=375,toolbar=0,directories=0,status=0, menubar=0,scrollbars=0,resizable=0"); } 



