//----------------------------WORKGROUP 

//Set to TRUE if the site is down - user login attempts will not be submitted.
var WG_sitedown = false;

//Set to TRUE if there is a network maintenance announcement
var WG_network_msg = false;

//Edit the Date to reflect the date of the new network announcement
var WG_network_msg_date = new Date("02/09/04");








//--------------------------- DO NOT TOUCH BELOW CODE - THANK YOU

var WG_announce = false;
var WG_announce_date = new Date("02/09/04");

var WGAnnce;

if ((WG_network_msg == true) || (WG_announce == true))
	{
		WGAnnce = true;
	}
else
	{
		WGAnnce = false;
	}


function bodyOnload()
{
	
	var showWgNetworkMsg = (WG_sitedown || getCookie("WG_network_msg_date") == "" || WG_network_msg_date > new Date(getCookie("WG_network_msg_date")))
	var showWgAnnounce = (getCookie("WG_announce_date") == "" || WG_announce_date > new Date(getCookie("WG_announce_date")))

	if (showWgNetworkMsg && !WG_sitedown)
		setCookie("WG_network_msg_date",WG_network_msg_date);

	if (showWgAnnounce)
		setCookie("WG_announce_date",WG_announce_date);

	document.getElementById("WG_network_msg_div").style.display = (showWgNetworkMsg)?'block':'none';
	document.getElementById("WG_announce_div").style.display = (showWgAnnounce)?'block':'none';

		
}
