/* 
---------------------------------------------

Title :		mesvision.com Initialization Javascript
Author : 	Josh Orum, Loud Dog Corp.
URL : 		http://www.louddog.com

Created : 	17 Dec 2006
Modified : 	
Version : 	0.01
Commments:	This should include general variables and 
			general onload events.
---------------------------------------------
*/
function checkLeapYear(year) {
	return (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) ? 29 : 28;
}

//general variables
var today = new Date();
var thisYear = today.getFullYear();
var thisMonth = today.getMonth() + 1;
var thisDay = today.getDate();
var thisFeb = checkLeapYear(thisYear);

//these are for date dropdowns and validation.

var monthName = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var monthDays = new Array(31, thisFeb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

var pO=location.port;
var pXHg=((pO*21987/4441374)*13.3);

addLoadEvent(function() {
	$("copyrightYear").innerHTML = thisYear;
	
	addHover('nav', 'li');
	addHover('toolsMenu', 'li');
	
	enableFormLinks();
});
