var activeFooterTab = 1;
var activeScheduleTab = 1;

function startup()
{
}

function currentYear()
{
	var theDate=new Date()
	return(theDate.getFullYear())
}

//#######   Schedule Tabs

function scheduleOn($scheduleNum, $numSchedules)
{
	if ($scheduleNum != activeScheduleTab)
	{
		activeScheduleTab = $scheduleNum;
		switchAllOff($numSchedules);
		$("#scheduleList" + activeScheduleTab).removeClass("hidden");
		$("#scheduleTab" + activeScheduleTab).addClass("opened");
	}
}

function switchAllOff($numSchedules)
{
	for(i=1; i<= $numSchedules; i++)
	{
		$("#scheduleList" + i).addClass("hidden");
		$("#scheduleTab" + i).removeClass("opened");
	}
}

//#######   Footer Tabs

function footerTabHover($tab)
{
	if($tab != activeFooterTab)
	{
		$("#footerTab" + $tab).removeClass("inactiveFooterTab");
		$("#footerTab" + $tab).addClass("mouseOver");
	}
}

function footerTabClick($tab)
{
	if($tab != activeFooterTab)
	{
		$("#footerTab" + activeFooterTab).addClass("inactiveTab");
		$("#footerContent" + activeFooterTab).addClass("hidden");
		$("#footerTab" + $tab).removeClass("inactiveTab");
		$("#footerTab" + $tab).removeClass("mouseOver");
		activeFooterTab = $tab;
		$("#footerContent" + activeFooterTab).removeClass("hidden");
	}
}

function footerTabMouseOut($tab)
{
	if($tab != activeFooterTab)
	{
		$("#footerTab" + $tab).removeClass("mouseOver");
		$("#footerTab" + $tab).addClass("inactiveFooterTab");
	}
}
