﻿var HstartDate = new Date (2010,07,13)		//THIS DATE IS THE DAY THE CHANGE NOTICE WAS LAST UPDATED - YYYY,MM,DD

//--------Should be no need to edit below this line unless What's New button is changed------------------------------------


var Htoday = new Date()		//Today's date to compare
var HendDate = HstartDate		//THIS DATE WILL BE ADJUSTED BELOW TO BE THE LAST DAY THE CHANGE NOTICE WILL APPEAR - YYYY,MM,DD
HendDate.setMonth(HendDate.getMonth()+1)	//adjust month for storage (0-11) and add a month - so end date will be 2 months from start
var HcurrentDate = new Date (Htoday.getFullYear(),Htoday.getMonth(),Htoday.getDate())      //GET CURRENT DATE - YYYY,MM,DD

function ShowPopup(hoveritem) {
	hoverp = document.getElementById("hoverpopup");

	// Set position of hover-over popup
	hoverp.style.top = (hoveritem.offsetTop + 30)+"px";
	hoverp.style.left = (hoveritem.offsetLeft - 220)+"px";
	// Set popup to visible
	hoverp.style.visibility = "Visible";
}

function HidePopup() {
	hoverp = document.getElementById("hoverpopup");
	hoverp.style.visibility = "Hidden";
}

function Hcomparedate(){
	if (HcurrentDate < HendDate) {
		hoverp = document.getElementById("hoverover");
		hoverp.style.visibility = "Visible";
	return}
}