/*************************************************************************/
/* Created By: Shawn Karnoski                                            */
/* Created On: 3/25/2008                                                 */
/* Description: This file contains the javascript functions used by all  */
/*              pages of the web site.                                   */
/* Tested On: IE 6, IE 7, FF 1.5, FF 2, Safari 3 for Windows, Opera 9.26 */
/*************************************************************************/

/********************/
/* GLOBAL VARIABLES */
/********************/
//this variable will be used to track the event type that is currently showing on the "Events" page
var _strEventType;




/**********************/
/* TEMPLATE FUNCTIONS */
/**********************/
//this function is responsible for applying the style class representing an active tab in the main navigation area
//to the tab whose ID is contained within strTabID
function turnOnTab(strTabID)
{
	var strTabCSS;
	
	switch(strTabID)
	{
		case "homeTab":
			strTabCSS = "homeTabOn";
			break;
		case "diningTab":
			strTabCSS = "diningTabOn";
			break;
		case "golfTab":
			strTabCSS = "golfTabOn";
			break;
		case "tennisTab":
			strTabCSS = "tennisTabOn";
			break;
		case "swimTab":
			strTabCSS = "swimTabOn";
			break;
		case "membershipTab":
			strTabCSS = "membershipTabOn";
			break;
	}
	if(strTabID != "none")
	{
		try
		{
			document.getElementById(strTabID).className = strTabCSS;
		}
		catch(strError)
		{
		}
	}
}


//this function is responsible for applying the style class representing a inactive tab in the main navigation
//area to the tab whose ID is contained within strTabID
function turnOffTab(strTabID)
{
	var strTabCSS;
	
	switch(strTabID)
	{
		case "homeTab":
			strTabCSS = "homeTabOff";
			break;
		case "diningTab":
			strTabCSS = "diningTabOff";
			break;
		case "golfTab":
			strTabCSS = "golfTabOff";
			break;
		case "tennisTab":
			strTabCSS = "tennisTabOff";
			break;
		case "swimTab":
			strTabCSS = "swimTabOff";
			break;
		case "membershipTab":
			strTabCSS = "membershipTabOff";
			break;
	}
	if(strTabID != "none")
	{
		try
		{
			document.getElementById(strTabID).className = strTabCSS;
		}
		catch(strError)
		{
		}
	}
}


//this function is responsible for constructing the side navigation area on a page based on the main section and 
//subsection passsed in
function buildSideNav(strSecID, strSubSecID)
{
	var objSideNavBody;
	var objSideNavLinkContainer;
	var objSideNavLink;
	var objLineBreak;
	
	objSideNavBody = document.getElementById("sideNavBody");
	switch(strSecID)
	{
		case "dining":
			//this will create the link to get back to the dining section landing page
			//create the link container div
			objSideNavLinkContainer = document.createElement("div");
			objSideNavLinkContainer.style.width = "177px";
			objSideNavLinkContainer.style.lineHeight = "12px";
			objSideNavLinkContainer.style.marginBottom = "5px";
			objSideNavLinkContainer.style.paddingLeft = "5px";
			objSideNavLinkContainer.style.overflow = "hidden";
			//this will determine if the sidenav link being created corresponds with the subpage being displayed.
			//If so, then the link needs to be displayed as active.  In this case, 99 indicates that the main 
			//landing page for a section has been arrived at
			if(strSubSecID == 99)
			{
				//this creates a label that indicates that the page currently being displayed is active
				objSideNavLink = document.createElement("div");
				objSideNavLink.style.fontFamily = "Arial";
				objSideNavLink.style.fontSize = "11px";
				objSideNavLink.style.fontWeight = "bold";
				objSideNavLink.style.color = "#184f07";
				objSideNavLink.innerHTML = "Dining Home";
			}
			else
			{
				//this creates the link itself if the page is not active
				objSideNavLink = document.createElement("a");
				objSideNavLink.href = "index.php";
				objSideNavLink.innerHTML = "Dining Home";
				objSideNavLink.className = "sideNav";
			}
			//create the divider line that will seperate this from the next link
			objLineBreak = document.createElement("div");
			objLineBreak.style.width = "172px";
			objLineBreak.style.height = "1px";
			objLineBreak.style.marginLeft = "5px";
			objLineBreak.style.marginRight = "5px";
			objLineBreak.style.marginBottom = "5px";
			objLineBreak.style.backgroundColor = "#cdcdce"
			objLineBreak.style.overflow = "hidden"
			//add the link to the page for display
			objSideNavLinkContainer.appendChild(objSideNavLink);
			objSideNavBody.appendChild(objSideNavLinkContainer);
			objSideNavBody.appendChild(objLineBreak);
			//this will create the other dining right side nav links
			eval(_strDiningSideNavJSONDef);
			for(var i = 0; i <= _objSideNavDefJSON.diningSideNav.length - 1; i++)
			{
				//create the link container div
				objSideNavLinkContainer = document.createElement("div");
				objSideNavLinkContainer.style.width = "177px";
				objSideNavLinkContainer.style.lineHeight = "12px";
				objSideNavLinkContainer.style.marginBottom = "5px";
				objSideNavLinkContainer.style.paddingLeft = "5px";
				objSideNavLinkContainer.style.overflow = "hidden";
				//this will determine if the sidenav link being created corresponds with the subpage being
				//displayed.  If so, then the link needs to be displayed as active.
				if(strSubSecID == i)
				{
					//this creates a label that indicates that the page currently being displayed is active
					objSideNavLink = document.createElement("div");
					objSideNavLink.style.fontFamily = "Arial";
					objSideNavLink.style.fontSize = "11px";
					objSideNavLink.style.fontWeight = "bold";
					objSideNavLink.style.color = "#184f07";
					objSideNavLink.innerHTML = _objSideNavDefJSON.diningSideNav[i].linkTxt;
				}
				else
				{
					//create the link itself if the page is not active
					objSideNavLink = document.createElement("a");
					objSideNavLink.href = _objSideNavDefJSON.diningSideNav[i].linkURL;
					objSideNavLink.innerHTML = _objSideNavDefJSON.diningSideNav[i].linkTxt;
					objSideNavLink.className = "sideNav";
				}
				//create the divider line that will seperate this from the next link
				objLineBreak = document.createElement("div");
				objLineBreak.style.width = "172px";
				objLineBreak.style.height = "1px";
				objLineBreak.style.marginLeft = "5px";
				objLineBreak.style.marginRight = "5px";
				objLineBreak.style.marginBottom = "5px";
				objLineBreak.style.backgroundColor = "#cdcdce"
				objLineBreak.style.overflow = "hidden"
				//add the link to the page for display
				objSideNavLinkContainer.appendChild(objSideNavLink);
				objSideNavBody.appendChild(objSideNavLinkContainer);
				objSideNavBody.appendChild(objLineBreak);
			}
			break;
		case "golf":
			//this will create the link to get back to the golf section landing page
			//create the link container div
			objSideNavLinkContainer = document.createElement("div");
			objSideNavLinkContainer.style.width = "177px";
			objSideNavLinkContainer.style.lineHeight = "12px";
			objSideNavLinkContainer.style.marginBottom = "5px";
			objSideNavLinkContainer.style.paddingLeft = "5px";
			objSideNavLinkContainer.style.overflow = "hidden";
			//this will determine if the sidenav link being created corresponds with the subpage being displayed.
			//If so, then the link needs to be displayed as active.  In this case, 99 indicates that the main
			//landing page for a section has been arrived at
			if(strSubSecID == 99)
			{
				//this creates a label that indicates that the page currently being displayed is active
				objSideNavLink = document.createElement("div");
				objSideNavLink.style.fontFamily = "Arial";
				objSideNavLink.style.fontSize = "11px";
				objSideNavLink.style.fontWeight = "bold";
				objSideNavLink.style.color = "#184f07";
				objSideNavLink.innerHTML = "Golf Home";
			}
			else
			{
				//this creates the link itself if the page is not active
				objSideNavLink = document.createElement("a");
				objSideNavLink.href = "index.php";
				objSideNavLink.innerHTML = "Golf Home";
				objSideNavLink.className = "sideNav";
			}
			//create the divider line that will seperate this from the next link
			objLineBreak = document.createElement("div");
			objLineBreak.style.width = "172px";
			objLineBreak.style.height = "1px";
			objLineBreak.style.marginLeft = "5px";
			objLineBreak.style.marginRight = "5px";
			objLineBreak.style.marginBottom = "5px";
			objLineBreak.style.backgroundColor = "#cdcdce"
			objLineBreak.style.overflow = "hidden"
			//add the link to the page for display
			objSideNavLinkContainer.appendChild(objSideNavLink);
			objSideNavBody.appendChild(objSideNavLinkContainer);
			objSideNavBody.appendChild(objLineBreak);
			//this will create the other golf right side nav links
			eval(_strGolfNavJSONDef);
			for(var i = 0; i <= _objSideNavDefJSON.golfSideNav.length - 1; i++)
			{				
				//create the link container div
				objSideNavLinkContainer = document.createElement("div");
				objSideNavLinkContainer.style.width = "177px";
				objSideNavLinkContainer.style.lineHeight = "12px";
				objSideNavLinkContainer.style.marginBottom = "5px";
				objSideNavLinkContainer.style.paddingLeft = "5px";
				objSideNavLinkContainer.style.overflow = "hidden";
				//this will determine if the sidenav link being created corresponds with the subpage being
				//displayed.  If so, then the link needs to be displayed as active.
				if(strSubSecID == i)
				{
					//this creates a label that indicates that the page currently being displayed is active
					objSideNavLink = document.createElement("div");
					objSideNavLink.style.fontFamily = "Arial";
					objSideNavLink.style.fontSize = "11px";
					objSideNavLink.style.fontWeight = "bold";
					objSideNavLink.style.color = "#184f07";
					objSideNavLink.innerHTML = _objSideNavDefJSON.golfSideNav[i].linkTxt;
				}
				else
				{
					//create the link itself if the page is not active
					objSideNavLink = document.createElement("a");
					objSideNavLink.href = _objSideNavDefJSON.golfSideNav[i].linkURL;
					objSideNavLink.innerHTML = _objSideNavDefJSON.golfSideNav[i].linkTxt;
					objSideNavLink.className = "sideNav";
				}
				//create the divider line that will seperate this from the next link
				objLineBreak = document.createElement("div");
				objLineBreak.style.width = "172px";
				objLineBreak.style.height = "1px";
				objLineBreak.style.marginLeft = "5px";
				objLineBreak.style.marginRight = "5px";
				objLineBreak.style.marginBottom = "5px";
				objLineBreak.style.backgroundColor = "#cdcdce"
				objLineBreak.style.overflow = "hidden"
				//add the link to the page for display
				objSideNavLinkContainer.appendChild(objSideNavLink);
				objSideNavBody.appendChild(objSideNavLinkContainer);
				objSideNavBody.appendChild(objLineBreak);
			}
			break;
		case "tennis":
			//this will create the link to get back to the tennis section landing page
			//create the link container div
			objSideNavLinkContainer = document.createElement("div");
			objSideNavLinkContainer.style.width = "177px";
			objSideNavLinkContainer.style.lineHeight = "12px";
			objSideNavLinkContainer.style.marginBottom = "5px";
			objSideNavLinkContainer.style.paddingLeft = "5px";
			objSideNavLinkContainer.style.overflow = "hidden";
			//this will determine if the sidenav link being created corresponds with the subpage being displayed.
			//If so, then the link needs to be displayed as active.  In this case, 99 indicates that the main
			//landing page for a section has been arrived at
			if(strSubSecID == 99)
			{
				//this creates a label that indicates that the page currently being displayed is active
				objSideNavLink = document.createElement("div");
				objSideNavLink.style.fontFamily = "Arial";
				objSideNavLink.style.fontSize = "11px";
				objSideNavLink.style.fontWeight = "bold";
				objSideNavLink.style.color = "#184f07";
				objSideNavLink.innerHTML = "Tennis Home";
			}
			else
			{
				//this creates the link itself if the page is not active
				objSideNavLink = document.createElement("a");
				objSideNavLink.href = "index.php";
				objSideNavLink.innerHTML = "Tennis Home";
				objSideNavLink.className = "sideNav";
			}
			//create the divider line that will seperate this from the next link
			objLineBreak = document.createElement("div");
			objLineBreak.style.width = "172px";
			objLineBreak.style.height = "1px";
			objLineBreak.style.marginLeft = "5px";
			objLineBreak.style.marginRight = "5px";
			objLineBreak.style.marginBottom = "5px";
			objLineBreak.style.backgroundColor = "#cdcdce"
			objLineBreak.style.overflow = "hidden"
			//add the link to the page for display
			objSideNavLinkContainer.appendChild(objSideNavLink);
			objSideNavBody.appendChild(objSideNavLinkContainer);
			objSideNavBody.appendChild(objLineBreak);
			//this will create the other tennis right side nav links
			eval(_strTennisSideNavJSONDef);
			for(var i = 0; i <= _objSideNavDefJSON.tennisSideNav.length - 1; i++)
			{
				//create the link container div
				objSideNavLinkContainer = document.createElement("div");
				objSideNavLinkContainer.style.width = "177px";
				objSideNavLinkContainer.style.lineHeight = "12px";
				objSideNavLinkContainer.style.marginBottom = "5px";
				objSideNavLinkContainer.style.paddingLeft = "5px";
				objSideNavLinkContainer.style.overflow = "hidden";
				//this will determine if the sidenav link being created corresponds with the subpage being
				//displayed.  If so, then the link needs to be displayed as active.
				if(strSubSecID == i)
				{
					//this creates a label that indicates that the page currently being displayed is active
					objSideNavLink = document.createElement("div");
					objSideNavLink.style.fontFamily = "Arial";
					objSideNavLink.style.fontSize = "11px";
					objSideNavLink.style.fontWeight = "bold";
					objSideNavLink.style.color = "#184f07";
					objSideNavLink.innerHTML = _objSideNavDefJSON.tennisSideNav[i].linkTxt;
				}
				else
				{
					//create the link itself if the page is not active
					objSideNavLink = document.createElement("a");
					objSideNavLink.href = _objSideNavDefJSON.tennisSideNav[i].linkURL;
					objSideNavLink.innerHTML = _objSideNavDefJSON.tennisSideNav[i].linkTxt;
					objSideNavLink.className = "sideNav";
				}
				//create the divider line that will seperate this from the next link
				objLineBreak = document.createElement("div");
				objLineBreak.style.width = "172px";
				objLineBreak.style.height = "1px";
				objLineBreak.style.marginLeft = "5px";
				objLineBreak.style.marginRight = "5px";
				objLineBreak.style.marginBottom = "5px";
				objLineBreak.style.backgroundColor = "#cdcdce"
				objLineBreak.style.overflow = "hidden"
				//add the link to the page for display
				objSideNavLinkContainer.appendChild(objSideNavLink);
				objSideNavBody.appendChild(objSideNavLinkContainer);
				objSideNavBody.appendChild(objLineBreak);
			}
			break;
		case "swim":
			//this will create the link to get back to the swim section landing page
			//create the link container div
			objSideNavLinkContainer = document.createElement("div");
			objSideNavLinkContainer.style.width = "177px";
			objSideNavLinkContainer.style.lineHeight = "12px";
			objSideNavLinkContainer.style.marginBottom = "5px";
			objSideNavLinkContainer.style.paddingLeft = "5px";
			objSideNavLinkContainer.style.overflow = "hidden";
			//this will determine if the sidenav link being created corresponds with the subpage being displayed.
			//If so, then the link needs to be displayed as active.  In this case, 99 indicates that the main
			//landing page for a section has been arrived at
			if(strSubSecID == 99)
			{
				//this creates a label that indicates that the page currently being displayed is active
				objSideNavLink = document.createElement("div");
				objSideNavLink.style.fontFamily = "Arial";
				objSideNavLink.style.fontSize = "11px";
				objSideNavLink.style.fontWeight = "bold";
				objSideNavLink.style.color = "#184f07";
				objSideNavLink.innerHTML = "Swim Home";
			}
			else
			{
				//this creates the link itself if the page is not active
				objSideNavLink = document.createElement("a");
				objSideNavLink.href = "index.php";
				objSideNavLink.innerHTML = "Swim Home";
				objSideNavLink.className = "sideNav";
			}
			//create the divider line that will seperate this from the next link
			objLineBreak = document.createElement("div");
			objLineBreak.style.width = "172px";
			objLineBreak.style.height = "1px";
			objLineBreak.style.marginLeft = "5px";
			objLineBreak.style.marginRight = "5px";
			objLineBreak.style.marginBottom = "5px";
			objLineBreak.style.backgroundColor = "#cdcdce"
			objLineBreak.style.overflow = "hidden"
			//add the link to the page for display
			objSideNavLinkContainer.appendChild(objSideNavLink);
			objSideNavBody.appendChild(objSideNavLinkContainer);
			objSideNavBody.appendChild(objLineBreak);
			//this will create the other swim right side nav links
			eval(_strSwimSideNavJSONDef);
			for(var i = 0; i <= _objSideNavDefJSON.swimSideNav.length - 1; i++)
			{	
				//create the link container div
				objSideNavLinkContainer = document.createElement("div");
				objSideNavLinkContainer.style.width = "177px";
				objSideNavLinkContainer.style.lineHeight = "12px";
				objSideNavLinkContainer.style.marginBottom = "5px";
				objSideNavLinkContainer.style.paddingLeft = "5px";
				objSideNavLinkContainer.style.overflow = "hidden";
				//this will determine if the sidenav link being created corresponds with the subpage being
				//displayed.  If so, then the link needs to be displayed as active.
				if(strSubSecID == i)
				{
					//this creates a label that indicates that the page currently being displayed is active
					objSideNavLink = document.createElement("div");
					objSideNavLink.style.fontFamily = "Arial";
					objSideNavLink.style.fontSize = "11px";
					objSideNavLink.style.fontWeight = "bold";
					objSideNavLink.style.color = "#184f07";
					objSideNavLink.innerHTML = _objSideNavDefJSON.swimSideNav[i].linkTxt;
				}
				else
				{
					//create the link itself if the page is not active
					objSideNavLink = document.createElement("a");
					objSideNavLink.href = _objSideNavDefJSON.swimSideNav[i].linkURL;
					objSideNavLink.innerHTML = _objSideNavDefJSON.swimSideNav[i].linkTxt;
					objSideNavLink.className = "sideNav";
				}
				//create the divider line that will seperate this from the next link
				objLineBreak = document.createElement("div");
				objLineBreak.style.width = "172px";
				objLineBreak.style.height = "1px";
				objLineBreak.style.marginLeft = "5px";
				objLineBreak.style.marginRight = "5px";
				objLineBreak.style.marginBottom = "5px";
				objLineBreak.style.backgroundColor = "#cdcdce"
				objLineBreak.style.overflow = "hidden"
				//add the link to the page for display
				objSideNavLinkContainer.appendChild(objSideNavLink);
				objSideNavBody.appendChild(objSideNavLinkContainer);
				objSideNavBody.appendChild(objLineBreak);
			}
			break;
		case "membership":
			//this will create the link to get back to the membership section landing page
			//create the link container div
			objSideNavLinkContainer = document.createElement("div");
			objSideNavLinkContainer.style.width = "177px";
			objSideNavLinkContainer.style.lineHeight = "12px";
			objSideNavLinkContainer.style.marginBottom = "5px";
			objSideNavLinkContainer.style.paddingLeft = "5px";
			objSideNavLinkContainer.style.overflow = "hidden";
			//this will determine if the sidenav link being created corresponds with the subpage being displayed.
			//If so, then the link needs to be displayed as active.  In this case, 99 indicates that the main
			//landing page for a section has been arrived at
			if(strSubSecID == 99)
			{
				//this creates a label that indicates that the page currently being displayed is active
				objSideNavLink = document.createElement("div");
				objSideNavLink.style.fontFamily = "Arial";
				objSideNavLink.style.fontSize = "11px";
				objSideNavLink.style.fontWeight = "bold";
				objSideNavLink.style.color = "#184f07";
				objSideNavLink.innerHTML = "Membership Home";
			}
			else
			{
				//this creates the link itself if the page is not active
				objSideNavLink = document.createElement("a");
				objSideNavLink.href = "index.php";
				objSideNavLink.innerHTML = "Membership Home";
				objSideNavLink.className = "sideNav";
			}
			//create the divider line that will seperate this from the next link
			objLineBreak = document.createElement("div");
			objLineBreak.style.width = "172px";
			objLineBreak.style.height = "1px";
			objLineBreak.style.marginLeft = "5px";
			objLineBreak.style.marginRight = "5px";
			objLineBreak.style.marginBottom = "5px";
			objLineBreak.style.backgroundColor = "#cdcdce"
			objLineBreak.style.overflow = "hidden"
			//add the link to the page for display
			objSideNavLinkContainer.appendChild(objSideNavLink);
			objSideNavBody.appendChild(objSideNavLinkContainer);
			objSideNavBody.appendChild(objLineBreak);
			//this will create the other membership right side nav links
			eval(_strMembershipSideNavJSONDef);
			for(var i = 0; i <= _objSideNavDefJSON.membershipSideNav.length - 1; i++)
			{
				//create the link container div
				objSideNavLinkContainer = document.createElement("div");
				objSideNavLinkContainer.style.width = "177px";
				objSideNavLinkContainer.style.lineHeight = "12px";
				objSideNavLinkContainer.style.marginBottom = "5px";
				objSideNavLinkContainer.style.paddingLeft = "5px";
				objSideNavLinkContainer.style.overflow = "hidden";
				//this will determine if the sidenav link being created corresponds with the subpage being
				//displayed.  If so, then the link needs to be displayed as active.
				if(strSubSecID == i)
				{
					//this creates a label that indicates that the page currently being displayed is active
					objSideNavLink = document.createElement("div");
					objSideNavLink.style.fontFamily = "Arial";
					objSideNavLink.style.fontSize = "11px";
					objSideNavLink.style.fontWeight = "bold";
					objSideNavLink.style.color = "#184f07";
					objSideNavLink.innerHTML = _objSideNavDefJSON.membershipSideNav[i].linkTxt;
				}
				else
				{
					//create the link itself if the page is not active
					objSideNavLink = document.createElement("a");
					objSideNavLink.href = _objSideNavDefJSON.membershipSideNav[i].linkURL;
					objSideNavLink.innerHTML = _objSideNavDefJSON.membershipSideNav[i].linkTxt;
					objSideNavLink.className = "sideNav";
				}
				//create the divider line that will seperate this from the next link
				objLineBreak = document.createElement("div");
				objLineBreak.style.width = "172px";
				objLineBreak.style.height = "1px";
				objLineBreak.style.marginLeft = "5px";
				objLineBreak.style.marginRight = "5px";
				objLineBreak.style.marginBottom = "5px";
				objLineBreak.style.backgroundColor = "#cdcdce"
				objLineBreak.style.overflow = "hidden"
				//add the link to the page for display
				objSideNavLinkContainer.appendChild(objSideNavLink);
				objSideNavBody.appendChild(objSideNavLinkContainer);
				objSideNavBody.appendChild(objLineBreak);
			}
			break;
		case "events":
			//this will create the link to get back to the membership section landing page
			//create the link container div
			objSideNavLinkContainer = document.createElement("div");
			objSideNavLinkContainer.style.width = "177px";
			objSideNavLinkContainer.style.lineHeight = "12px";
			objSideNavLinkContainer.style.marginBottom = "5px";
			objSideNavLinkContainer.style.paddingLeft = "5px";
			objSideNavLinkContainer.style.overflow = "hidden";
			//this will determine if the sidenav link being created corresponds with the subpage being displayed.
			//If so, then the link needs to be displayed as active.  In this case, 99 indicates that the main
			//landing page for a section has been arrived at
			if(strSubSecID == 99)
			{
				//this creates a label that indicates that the page currently being displayed is active
				objSideNavLink = document.createElement("div");
				objSideNavLink.style.fontFamily = "Arial";
				objSideNavLink.style.fontSize = "11px";
				objSideNavLink.style.fontWeight = "bold";
				objSideNavLink.style.color = "#184f07";
				objSideNavLink.innerHTML = "Events Home";
			}
			else
			{
				//this creates the link itself if the page is not active
				objSideNavLink = document.createElement("a");
				objSideNavLink.href = "index.php";
				objSideNavLink.innerHTML = "Events Home";
				objSideNavLink.className = "sideNav";
			}
			//create the divider line that will seperate this from the next link
			objLineBreak = document.createElement("div");
			objLineBreak.style.width = "172px";
			objLineBreak.style.height = "1px";
			objLineBreak.style.marginLeft = "5px";
			objLineBreak.style.marginRight = "5px";
			objLineBreak.style.marginBottom = "5px";
			objLineBreak.style.backgroundColor = "#cdcdce"
			objLineBreak.style.overflow = "hidden"
			//add the link to the page for display
			objSideNavLinkContainer.appendChild(objSideNavLink);
			objSideNavBody.appendChild(objSideNavLinkContainer);
			objSideNavBody.appendChild(objLineBreak);
			//this will create the other membership right side nav links
			eval(_strEventsSideNavJSONDef);
			for(var i = 0; i <= _objSideNavDefJSON.eventsSideNav.length - 1; i++)
			{
				//create the link container div
				objSideNavLinkContainer = document.createElement("div");
				objSideNavLinkContainer.style.width = "177px";
				objSideNavLinkContainer.style.lineHeight = "12px";
				objSideNavLinkContainer.style.marginBottom = "5px";
				objSideNavLinkContainer.style.paddingLeft = "5px";
				objSideNavLinkContainer.style.overflow = "hidden";
				//this will determine if the sidenav link being created corresponds with the subpage being
				//displayed.  If so, then the link needs to be displayed as active.
				if(strSubSecID == i)
				{
					//this creates a label that indicates that the page currently being displayed is active
					objSideNavLink = document.createElement("div");
					objSideNavLink.style.fontFamily = "Arial";
					objSideNavLink.style.fontSize = "11px";
					objSideNavLink.style.fontWeight = "bold";
					objSideNavLink.style.color = "#184f07";
					objSideNavLink.innerHTML = _objSideNavDefJSON.eventsSideNav[i].linkTxt;
				}
				else
				{
					//create the link itself if the page is not active
					objSideNavLink = document.createElement("a");
					objSideNavLink.href = _objSideNavDefJSON.eventsSideNav[i].linkURL;
					objSideNavLink.innerHTML = _objSideNavDefJSON.eventsSideNav[i].linkTxt;
					objSideNavLink.className = "sideNav";
				}
				//create the divider line that will seperate this from the next link
				objLineBreak = document.createElement("div");
				objLineBreak.style.width = "172px";
				objLineBreak.style.height = "1px";
				objLineBreak.style.marginLeft = "5px";
				objLineBreak.style.marginRight = "5px";
				objLineBreak.style.marginBottom = "5px";
				objLineBreak.style.backgroundColor = "#cdcdce"
				objLineBreak.style.overflow = "hidden"
				//add the link to the page for display
				objSideNavLinkContainer.appendChild(objSideNavLink);
				objSideNavBody.appendChild(objSideNavLinkContainer);
				objSideNavBody.appendChild(objLineBreak);
			}
			break;
		case "history":
			//this will create the link to get back to the history section landing page
			//create the link container div
			objSideNavLinkContainer = document.createElement("div");
			objSideNavLinkContainer.style.width = "177px";
			objSideNavLinkContainer.style.lineHeight = "12px";
			objSideNavLinkContainer.style.marginBottom = "5px";
			objSideNavLinkContainer.style.paddingLeft = "5px";
			objSideNavLinkContainer.style.overflow = "hidden";
			//this will determine if the sidenav link being created corresponds with the subpage being displayed.
			//If so, then the link needs to be displayed as active.  In this case, 99 indicates that the main
			//landing page for a section has been arrived at
			if(strSubSecID == 99)
			{
				//this creates a label that indicates that the page currently being displayed is active
				objSideNavLink = document.createElement("div");
				objSideNavLink.style.fontFamily = "Arial";
				objSideNavLink.style.fontSize = "11px";
				objSideNavLink.style.fontWeight = "bold";
				objSideNavLink.style.color = "#184f07";
				objSideNavLink.innerHTML = "History Home";
			}
			else
			{
				//this creates the link itself if the page is not active
				objSideNavLink = document.createElement("a");
				objSideNavLink.href = "index.php";
				objSideNavLink.innerHTML = "History Home";
				objSideNavLink.className = "sideNav";
			}
			//create the divider line that will seperate this from the next link
			objLineBreak = document.createElement("div");
			objLineBreak.style.width = "172px";
			objLineBreak.style.height = "1px";
			objLineBreak.style.marginLeft = "5px";
			objLineBreak.style.marginRight = "5px";
			objLineBreak.style.marginBottom = "5px";
			objLineBreak.style.backgroundColor = "#cdcdce"
			objLineBreak.style.overflow = "hidden"
			//add the link to the page for display
			objSideNavLinkContainer.appendChild(objSideNavLink);
			objSideNavBody.appendChild(objSideNavLinkContainer);
			objSideNavBody.appendChild(objLineBreak);
			//this will create the other membership right side nav links
			eval(_strHistorySideNavJSONDef);
			for(var i = 0; i <= _objSideNavDefJSON.historySideNav.length - 1; i++)
			{
				//create the link container div
				objSideNavLinkContainer = document.createElement("div");
				objSideNavLinkContainer.style.width = "177px";
				objSideNavLinkContainer.style.lineHeight = "12px";
				objSideNavLinkContainer.style.marginBottom = "5px";
				objSideNavLinkContainer.style.paddingLeft = "5px";
				objSideNavLinkContainer.style.overflow = "hidden";
				//this will determine if the sidenav link being created corresponds with the subpage being 
				//displayed.  If so, then the link needs to be displayed as active.
				if(strSubSecID == i)
				{
					//this creates a label that indicates that the page currently being displayed is active
					objSideNavLink = document.createElement("div");
					objSideNavLink.style.fontFamily = "Arial";
					objSideNavLink.style.fontSize = "11px";
					objSideNavLink.style.fontWeight = "bold";
					objSideNavLink.style.color = "#184f07";
					objSideNavLink.innerHTML = _objSideNavDefJSON.historySideNav[i].linkTxt;
				}
				else
				{
					//create the link itself if the page is not active
					objSideNavLink = document.createElement("a");
					objSideNavLink.href = _objSideNavDefJSON.historySideNav[i].linkURL;
					objSideNavLink.innerHTML = _objSideNavDefJSON.historySideNav[i].linkTxt;
					objSideNavLink.className = "sideNav";
				}
				//create the divider line that will seperate this from the next link
				objLineBreak = document.createElement("div");
				objLineBreak.style.width = "172px";
				objLineBreak.style.height = "1px";
				objLineBreak.style.marginLeft = "5px";
				objLineBreak.style.marginRight = "5px";
				objLineBreak.style.marginBottom = "5px";
				objLineBreak.style.backgroundColor = "#cdcdce"
				objLineBreak.style.overflow = "hidden"
				//add the link to the page for display
				objSideNavLinkContainer.appendChild(objSideNavLink);
				objSideNavBody.appendChild(objSideNavLinkContainer);
				objSideNavBody.appendChild(objLineBreak);
			}
			break;
		case "none":
			switch(strSubSecID)
			{
				case "announcements":
					createAnnounceLinks();
					break;
				case "newsletters":
					createNewsletterLinks();
					break;
			}
			break;
	}
}




/***********************/
/* HOME PAGE FUNCTIONS */
/***********************/
//this function will handle creating the links that represent the current and past 3 years of announcements
function createAnnounceLinks()
{
	var objSideNavBody;
	var aryNavElements;
	var objDate = new Date();
	var intYear;
	var blnInitialPageLoad;
	
	//establish a reference to the container div that holds the sidenav links
	objSideNavBody = document.getElementById("sideNavBody");
	//this will build an array of all the links in the sidenav container
	aryNavElements = objSideNavBody.getElementsByTagName("div");
	//this will determine if this is the very first time the announcements page is being loaded or not
	if(aryNavElements.length > 0)
	{
		blnInitialPageLoad = false;
	}
	else
	{
		blnInitialPageLoad = true;
	}
	//this will remove the links currently in the sidenav area
	for(var x = 0; x < aryNavElements.length;)
	{
		objSideNavBody.removeChild(objSideNavBody.getElementsByTagName("div").item(x));
	}
	//this loop is only set to execute 4 times because there should only be links for the current and
	//past three years of announcements
	for(var i = 0; i <= 3; i++)
	{
		blnCurrentYear = false;
		switch(i)
		{
			//current year
			case 0:
				intYear = objDate.getFullYear();
				blnCurrentYear = true;
				break;
			//one year ago
			case 1:
				intYear = objDate.getFullYear();
				intYear = intYear - 1;
				break;
			//two years ago
			case 2:
				intYear = objDate.getFullYear();
				intYear = intYear - 2;
				break;
			//three years ago
			case 3:
				intYear = objDate.getFullYear();
				intYear = intYear - 3;
				break;
		}
		//create the link container div
		objSideNavLinkContainer = document.createElement("div");
		objSideNavLinkContainer.id = intYear + "LinkContainer";
		objSideNavLinkContainer.style.width = "177px";
		objSideNavLinkContainer.style.lineHeight = "12px";
		objSideNavLinkContainer.style.marginBottom = "5px";
		objSideNavLinkContainer.style.paddingLeft = "5px";
		objSideNavLinkContainer.style.overflow = "hidden";
		//create the link itself
		if(!blnInitialPageLoad)
		{
			objSideNavLink = document.createElement("a");
			objSideNavLink.id = intYear + "Link";
			objSideNavLink.href = "javascript:getAnnouncements(" + intYear + ");";
			objSideNavLink.innerHTML = intYear + " Announcements"; 
			objSideNavLink.className = "sideNav";
		}
		else
		{
			//at this point, it has been determined that the announcements page is being loaded for the first
			//time.  if the below statement is true, then that means that the link being processed is not the
			//current year and should be displayed as a normal link
			if(!blnCurrentYear)
			{
				objSideNavLink = document.createElement("a");
				objSideNavLink.id = intYear + "Link";
				objSideNavLink.href = "javascript:getAnnouncements(" + intYear + ");";
				objSideNavLink.innerHTML = intYear + " Announcements"; 
				objSideNavLink.className = "sideNav";
			}
			else
			{
				//if true, then the link being processed is the current year and should be displayed as a label
				//and not a link since the current year announcements are active by default
				objSideNavLink = document.createElement("div");
				objSideNavLink.style.fontFamily = "Arial";
				objSideNavLink.style.fontSize = "11px";
				objSideNavLink.style.fontWeight = "bold";
				objSideNavLink.style.color = "#184f07";
				objSideNavLink.innerHTML = intYear + " Announcements"; 
			}
		}
		//create the divider line that will seperate this from the next link
		objLineBreak = document.createElement("div");
		objLineBreak.id = intYear + "LinkDivLine";
		objLineBreak.style.width = "172px";
		objLineBreak.style.height = "1px";
		objLineBreak.style.marginLeft = "5px";
		objLineBreak.style.marginRight = "5px";
		objLineBreak.style.marginBottom = "5px";
		objLineBreak.style.backgroundColor = "#cdcdce"
		objLineBreak.style.overflow = "hidden"
		//add the link to the page for display
		objSideNavLinkContainer.appendChild(objSideNavLink);
		objSideNavBody.appendChild(objSideNavLinkContainer);
		objSideNavBody.appendChild(objLineBreak);
	}
}




/***********************************/
/* ANNOUNCEMENTS SECTION FUNCTIONS */
/***********************************/
//this function will obtain the announcements for the year specified in the intYear argument
function getAnnouncements(intYear)
{
	var objLinkContainer;
	var objLink;
	
	createAnnounceLinks();
	
	//this will be here temporarily until the database comes online as part of Phase 2
	displayAnnouncementSummary("announcements", intYear);
	
	objLinkContainer = document.getElementById(intYear + "LinkContainer");
	objLinkContainer.removeChild(document.getElementById(intYear + "Link"));
	//this creates a label that indicates that the page currently being displayed is active
	objLink = document.createElement("div");
	objLink.style.fontFamily = "Arial";
	objLink.style.fontSize = "11px";
	objLink.style.fontWeight = "bold";
	objLink.style.color = "#184f07";
	objLink.innerHTML = intYear + " Announcements"; 
	objLinkContainer.appendChild(objLink);
}


//this function will display the announcement titles and their brief summaries.  Depending on the location 
//specified in strLocation, the date that the announcement was posted may also be displayed
function displayAnnouncementSummary(strLocation, intAnnounceYear)
{	
	var objContainer;
	var objAnnounceContainer;
	var objMoreAnnounceLink;
	var objClearDiv;
	
	eval(_strAnnouncements);
	//if this is true, then the the home page is currently being shown.  This means that the three most current
	//announcement summaries must be shown
	if(strLocation == "homePage")
	{
		objContainer = document.getElementById("homePageAnnouncementsCol");
		//if this is true, that means that there are more than 3 announcements in the JSON definition
		if(objAnnouncementDefJSON.clubAnnouncements.length > 3)
		{
			//this will create links for the 3 most current announcements
			for(var i = 0; i <= 2; i++)
			{
				if(objAnnouncementDefJSON.clubAnnouncements[i].year == intAnnounceYear)
				{
					objAnnounceContainer = document.createElement("div");
					objAnnounceContainer.id = "announcement" + i;
					objAnnounceContainer.className = "homePageAnnouncement";
					objAnnounceContainer.innerHTML = "<a href='announcements.php?akey=" + objAnnouncementDefJSON.clubAnnouncements[i].announceKey +"' class='homePageBody'>" + objAnnouncementDefJSON.clubAnnouncements[i].title + "</a><br>" + objAnnouncementDefJSON.clubAnnouncements[i].summary;
					objContainer.appendChild(objAnnounceContainer);
				}
			}	
		}
		else
		{
			//this means that there are 3 or less announcements in the JSON definition.  This will create links
			//for as many announcements as are in the JSON
			for(var i = 0; i <= objAnnouncementDefJSON.clubAnnouncements.length - 1; i++)
			{
				if(objAnnouncementDefJSON.clubAnnouncements[i].year == intAnnounceYear)
				{
					objAnnounceContainer = document.createElement("div");
					objAnnounceContainer.id = "announcement" + i;
					objAnnounceContainer.className = "homePageAnnouncement";
					objAnnounceContainer.innerHTML = "<a href='announcements.php?akey=" + objAnnouncementDefJSON.clubAnnouncements[i].announceKey +"' class='homePageBody'>" + objAnnouncementDefJSON.clubAnnouncements[i].title + "</a><br>" + objAnnouncementDefJSON.clubAnnouncements[i].summary;
					objContainer.appendChild(objAnnounceContainer);
				}
			}
		}
		//this creates the "More Announcements" link that must appear on the home page
		objMoreAnnounceLink = document.createElement("div");
		objMoreAnnounceLink.id = "homePageMoreAnnounceLink";
		objMoreAnnounceLink.innerHTML = "<a href='announcements.php' class='homePageBody'>More Announcements...</a>";
		objContainer.appendChild(objMoreAnnounceLink);
		//this creates the div that will reset the float attribute so that any div created from this point will
		//display properly
		objClearDiv = document.createElement("div");
		objClearDiv.style.width = "0px";
		objClearDiv.style.height = "0px";
		objClearDiv.style.clear = "both";
		objClearDiv.style.overflow = "hidden";
		objContainer.appendChild(objClearDiv);
	}
	else
	{
		objContainer = document.getElementById("pageContent");
		objContainer.innerHTML = "";
		for(var i = 0; i <= objAnnouncementDefJSON.clubAnnouncements.length - 1; i++)
		{
			if(objAnnouncementDefJSON.clubAnnouncements[i].year == intAnnounceYear)
			{
				objAnnounceContainer = document.createElement("div");
				objAnnounceContainer.id = "announcement" + i;
				objAnnounceContainer.className = "announcePageAnnouncement";
				objAnnounceContainer.innerHTML = "<a href='javascript:displayAnnouncement(" + objAnnouncementDefJSON.clubAnnouncements[i].announceKey + ", " + intAnnounceYear +")' class='pageBody'>" + objAnnouncementDefJSON.clubAnnouncements[i].title + "</a>&nbsp;&nbsp;&nbsp;<b>Posted On: " + objAnnouncementDefJSON.clubAnnouncements[i].date + "</b><br>" + objAnnouncementDefJSON.clubAnnouncements[i].summary;
				objContainer.appendChild(objAnnounceContainer);
			}
		}
		//if this is true, then that means that there were no announcements for the year specified in
		//intAnnounceYear
		if(objContainer.innerHTML == "")
		{
			objContainer.innerHTML = "There are no announcements available for the year " + intAnnounceYear;
		}
	}
}


//this function will display a single specific announcement.  
function displayAnnouncement(intAnnounceKey, intAnnounceYear)
{
	var objContainer;
	var objBackButton;
	
	objContainer = document.getElementById("pageContent");
	objContainer.innerHTML = "";
	//this will check to make sure that the JSON holding all the announcements is accessible
	try
	{
		var intTest = objAnnouncementDefJSON.clubAnnouncements.length;
	}
	catch(strError)
	{
		eval(_strAnnouncements);
	}
	//this will go through the announcements JSON and locate the announcement with the key value specified in 
	//intAnnounceKey
	for(var i = 0; i <= objAnnouncementDefJSON.clubAnnouncements.length - 1; i++)
	{
		if(objAnnouncementDefJSON.clubAnnouncements[i].announceKey == intAnnounceKey)
		{
			objContainer.innerHTML = "<span class='itemTitle'>" + objAnnouncementDefJSON.clubAnnouncements[i].title + "</span><br><p>" + objAnnouncementDefJSON.clubAnnouncements[i].description + "</p>"; 
			
		}
	}
	//this will create a back button that will allow the user to go back to the list of announcements from
	//the current announcement that they are in
	objBackButton = document.createElement("input");
	objBackButton.type = "button";
	objBackButton.id = "announceBackButton";
	objBackButton.value = "Back to Announcements";
	if(navigator.userAgent.indexOf("MSIE") >= 0)
	{
		objBackButton.attachEvent("onclick", Function("displayAnnouncementSummary('announcements', '" + intAnnounceYear + "')"));
	}
	else
	{
		objBackButton.addEventListener("click", Function("displayAnnouncementSummary('announcements', " + intAnnounceYear + ")"), false);
	}
	objContainer.appendChild(objBackButton);
}




/****************************/
/* EVENTS SECTION FUNCTIONS */
/****************************/
//this function is responsible for identifying the event type that has been selected for viewing (i.e. golf
//events) and then supplying the necessary values (the month and year that is currently showing in the Yahoo 
//YUI calendar control) to the function that displays the event information for a specific month
function displayClubEventType(strEventType)
{
	var strSelectedMonth;
	var intSelectedMonth;
	var intSelectedYear;
	
	//this will extract a date value that is currently being displayed inside the Yahoo YUI calendar object
	intSelectedMonth = objYUICalendarCtrl.getDateByCellId("eventCalendarContainer_t_cell7");
	//this will get the year that the Yahoo YUI calendar object is currently displaying
	intSelectedYear = intSelectedMonth.getFullYear();
	//this will get the integer month value
	intSelectedMonth = intSelectedMonth.getMonth() + 1;
	//this will populate a variable with the textual representation of the integer month value
	switch(intSelectedMonth)
	{
		case 1:
			strSelectedMonth = "January";
			break;
		case 2:
			strSelectedMonth = "February";
			break;
		case 3:
			strSelectedMonth = "March";
			break;
		case 4:
			strSelectedMonth = "April";
			break;
		case 5:
			strSelectedMonth = "May";
			break;
		case 6:
			strSelectedMonth = "June";
			break;
		case 7:
			strSelectedMonth = "July";
			break;
		case 8:
			strSelectedMonth = "August";
			break;
		case 9:
			strSelectedMonth = "September";
			break;
		case 10:
			strSelectedMonth = "October";
			break;
		case 11:
			strSelectedMonth = "November";
			break;
		case 12:
			strSelectedMonth = "December";
			break;
	}
	//set the global variable for event type to the event type that is currently showing
	_strEventType = strEventType;
	//this calls the function to display the event information for the month and year that was just identified,
	//as well as for the event type (i.e. "golf") that is held in the strEventType variable
	displayClubMonthEvents(strEventType, strSelectedMonth, intSelectedMonth, intSelectedYear)
}


//this function will display events of all types taking place on the date specified in strDate
function displayClubDayEvents(strDate)
{
	var objDayEventInfoContainer;
	var objDayEventHeader;
	
	//this will establish a reference to the current day events header and change the date inside to match
	//the date selected in the calendar
	objDayEventHeader = document.getElementById("currentDayEventHeader");
	objDayEventHeader.innerHTML = "Events For: " + strDate;
	//this will establish a reference to the container that will display all the event information for the chosen
	//day and clear out any text that is currently inside
	objDayEventInfoContainer = document.getElementById("currentDayEventInfo");
	objDayEventInfoContainer.innerHTML = "";
	//this will load the events definition JSON and pull all events that match the date contained inside strDate
	eval(_strEvents);
	for(var i = 0; i <= objEventsDefJSON.clubEvents.length - 1; i++)
	{
		if(objEventsDefJSON.clubEvents[i].date == strDate)
		{
			objDayEventInfoContainer.innerHTML += "<p>" + objEventsDefJSON.clubEvents[i].description + "</p>";
		}
	}
	//if this is true, then that means that there are no events scheduled for the selected date, therefore a 
	//default message is supplied
	if(objDayEventInfoContainer.innerHTML == "")
	{
		objDayEventInfoContainer.innerHTML = "<p>There are no events scheduled for this day</p>";
	}
}


//this function will display all the events of a specific type (with that value being contained within
//strEventType) for a specific month and year
function displayClubMonthEvents(strEventType, strSelectedMonth, intSelectedMonth, intSelectedYear)
{
	var d = new Date;	
	var intEventMonth;
	var intEventYear;
	var objMonthEventInfoContainer;
	var objMonthEventInfoHeader;
	var objDayEventHeader;
	var objDayEventInfoContainer;
	
	//if this is true, then that means that the month has been changed in the YUI calendar.  That means that all
	//the information showing for the day chosen from the previous month should be erased and the area prepped
	//for showing new info
	if(blnMonthChange)
	{
		//this establishes a reference to the header for the current day events as well as the container that 
		//displays the event information for that day
		objDayEventHeader = document.getElementById("currentDayEventHeader");
		objDayEventInfoContainer = document.getElementById("currentDayEventInfo");
		//this will reset the text in the header to just state "Events For:" since a new month is being chosen
		//and a day in that month has not been chosen yet
		objDayEventHeader.innerHTML = "";
		objDayEventHeader.innerHTML = "Events For:";
		//this will blank out any event information that may have been showing since a new month is being
		//selected now
		objDayEventInfoContainer.innerHTML = "";
		blnMonthChange = false;
	}
	//this establishes a reference to the header for the container that displays the event information for the 
	//month chosen and sets the text inside based on that selection
	objMonthEventInfoHeader = document.getElementById("currentMonthEventsHeader");
	objMonthEventInfoHeader.innerHTML = "Events For: " + strSelectedMonth + " " + intSelectedYear;
	//this establishes a reference to the container that will display all the event information for the month
	//that is chosen from the calendar
	objMonthEventInfoContainer = document.getElementById("currentMonthEventsInfo");
	//this will determine which event type has been selected for display by the user
	switch(strEventType)
	{
		case "golf":
			document.getElementById("golfEventsTab").className = "pageBodyTabOn";
			document.getElementById("tennisEventsTab").className = "pageBodyTabOff";
			document.getElementById("swimEventsTab").className = "pageBodyTabOff";
			document.getElementById("diningEventsTab").className = "pageBodyTabOff";
			//clear out any text that might have been in the container
			objMonthEventInfoContainer.innerHTML = "";
			//this loads the JSON that contains all the event data
			eval(_strEvents);
			//this will examine each entry in the events JSON
			for(var i = 0; i <= objEventsDefJSON.clubEvents.length - 1; i++)
			{
				//this extracts the month that the event took place on
				intEventMonth = objEventsDefJSON.clubEvents[i].date.substring(0, objEventsDefJSON.clubEvents[i].date.indexOf("/"));
				//this extracts the year that the event took place on
				intEventYear = objEventsDefJSON.clubEvents[i].date.substring(objEventsDefJSON.clubEvents[i].date.lastIndexOf("/") + 1, objEventsDefJSON.clubEvents[i].date.length);
				//this will determine if the event is a golf event and if it took place in the month and year that
				//the calendar is reflecting
				if(intEventMonth == intSelectedMonth && intEventYear == intSelectedYear && objEventsDefJSON.clubEvents[i].type == "golf")
				{							
					objMonthEventInfoContainer.innerHTML += "<p><b>" + objEventsDefJSON.clubEvents[i].date + "</b> - " + objEventsDefJSON.clubEvents[i].description + "</p>";
				}
			}
			//if this is true, then that means that there are no golf events for the specified month, therefore
			//a default message is applied
			if(objMonthEventInfoContainer.innerHTML == "")
			{
				objMonthEventInfoContainer.innerHTML = "<p>There are no golf events scheduled for this month</p>";
			}
			break;
		case "tennis":
			document.getElementById("golfEventsTab").className = "pageBodyTabOff";
			document.getElementById("tennisEventsTab").className = "pageBodyTabOn";
			document.getElementById("swimEventsTab").className = "pageBodyTabOff";
			document.getElementById("diningEventsTab").className = "pageBodyTabOff";
			//clear out any text that might have been in the container
			objMonthEventInfoContainer.innerHTML = "";
			//this loads the JSON that contains all the event data
			eval(_strEvents);
			//this will examine each entry in the events JSON
			for(var i = 0; i <= objEventsDefJSON.clubEvents.length - 1; i++)
			{
				//this extracts the month that the event took place on
				intEventMonth = objEventsDefJSON.clubEvents[i].date.substring(0, objEventsDefJSON.clubEvents[i].date.indexOf("/"));
				//this extracts the year that the event took place on
				intEventYear = objEventsDefJSON.clubEvents[i].date.substring(objEventsDefJSON.clubEvents[i].date.lastIndexOf("/") + 1, objEventsDefJSON.clubEvents[i].date.length);
				//this will determine if the event is a tennis event and if it took place in the month and year that
				//the calendar is reflecting
				if(intEventMonth == intSelectedMonth && intEventYear == intSelectedYear && objEventsDefJSON.clubEvents[i].type == "tennis")
				{	
					objMonthEventInfoContainer.innerHTML += "<p><b>" + objEventsDefJSON.clubEvents[i].date + "</b> - " + objEventsDefJSON.clubEvents[i].description + "</p>";
				}
			}
			//if this is true, then that means that there are no tennis events for the specified month, therefore
			//a default message is applied
			if(objMonthEventInfoContainer.innerHTML == "")
			{
				objMonthEventInfoContainer.innerHTML = "<p>There are no tennis events scheduled for this month</p>";
			}
			break;
		case "swim":
			document.getElementById("golfEventsTab").className = "pageBodyTabOff";
			document.getElementById("tennisEventsTab").className = "pageBodyTabOff";
			document.getElementById("swimEventsTab").className = "pageBodyTabOn";
			document.getElementById("diningEventsTab").className = "pageBodyTabOff";
			//clear out any text that might have been in the container
			objMonthEventInfoContainer.innerHTML = "";
			//this loads the JSON that contains all the event data
			eval(_strEvents);
			//this will examine each entry in the events JSON
			for(var i = 0; i <= objEventsDefJSON.clubEvents.length - 1; i++)
			{
				//this extracts the month that the event took place on
				intEventMonth = objEventsDefJSON.clubEvents[i].date.substring(0, objEventsDefJSON.clubEvents[i].date.indexOf("/"));
				//this extracts the year that the event took place on
				intEventYear = objEventsDefJSON.clubEvents[i].date.substring(objEventsDefJSON.clubEvents[i].date.lastIndexOf("/") + 1, objEventsDefJSON.clubEvents[i].date.length);
				//this will determine if the event is a swim event and if it took place in the month and year
				//that the calendar is reflecting
				if(intEventMonth == intSelectedMonth && intEventYear == intSelectedYear && objEventsDefJSON.clubEvents[i].type == "swim")
				{	
					objMonthEventInfoContainer.innerHTML += "<p><b>" + objEventsDefJSON.clubEvents[i].date + "</b> - " + objEventsDefJSON.clubEvents[i].description + "</p>";
				}
			}
			//if this is true, then that means that there are no swimming events for the specified month,
			//therefore a default message is applied
			if(objMonthEventInfoContainer.innerHTML == "")
			{
				objMonthEventInfoContainer.innerHTML = "<p>There are no swimming events scheduled for this month</p>";
			}
			break;
		case "dining":
			document.getElementById("golfEventsTab").className = "pageBodyTabOff";
			document.getElementById("tennisEventsTab").className = "pageBodyTabOff";
			document.getElementById("swimEventsTab").className = "pageBodyTabOff";
			document.getElementById("diningEventsTab").className = "pageBodyTabOn";
			//clear out any text that might have been in the container
			objMonthEventInfoContainer.innerHTML = "";
			//this loads the JSON that contains all the event data
			eval(_strEvents);
			//this will examine each entry in the events JSON
			for(var i = 0; i <= objEventsDefJSON.clubEvents.length - 1; i++)
			{
				//this extracts the month that the event took place on
				intEventMonth = objEventsDefJSON.clubEvents[i].date.substring(0, objEventsDefJSON.clubEvents[i].date.indexOf("/"));
				//this extracts the year that the event took place on
				intEventYear = objEventsDefJSON.clubEvents[i].date.substring(objEventsDefJSON.clubEvents[i].date.lastIndexOf("/") + 1, objEventsDefJSON.clubEvents[i].date.length);
				//this will determine if the event is a dining event and if it took place in the month and year
				//that the calendar is reflecting
				if(intEventMonth == intSelectedMonth && intEventYear == intSelectedYear && objEventsDefJSON.clubEvents[i].type == "dining")
				{	
					objMonthEventInfoContainer.innerHTML += "<p><b>" + objEventsDefJSON.clubEvents[i].date + "</b> - " + objEventsDefJSON.clubEvents[i].description + "</p>";
				}
			}
			//if this is true, then that means that there are no dining events for the specified month, therefore
			//a default message is applied
			if(objMonthEventInfoContainer.innerHTML == "")
			{
				objMonthEventInfoContainer.innerHTML = "<p>There are no dining events scheduled for this month</p>";
			}
			break;
	}	
}


//this function will be responsible for displaying the wedding package information
function displayWeddingPackInfo(intPackNum)
{
	var objWeddingPackInfoTable;
	
	//create a reference to the table that is holding the package information
	objWeddingPackInfoTable = document.getElementById("packageInfo");
	//this will clear out all the rows that were created in the table by one of the other package selections
	while(objWeddingPackInfoTable.rows.length > 0)
	{
		objWeddingPackInfoTable.deleteRow(objWeddingPackInfoTable.rows.length - 1);
	}
	//this will determine what wedding package to display
	switch(intPackNum)
	{
		case "1":
			eval(_strWeddingPack1);
			for(var i = 0; i <= _objWeddingPackDefJSON.weddingPack.length - 1; i++)
			{
				objWeddingPackInfoTable.insertRow(objWeddingPackInfoTable.rows.length);
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].insertCell(0);
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[0].vAlign = "top";
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[0].innerHTML = _objWeddingPackDefJSON.weddingPack[i].type;
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].insertCell(1);
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[1].innerHTML = _objWeddingPackDefJSON.weddingPack[i].items;
			}
			break;
		case "2":
			eval(_strWeddingPack2);
			for(var i = 0; i <= _objWeddingPackDefJSON.weddingPack.length - 1; i++)
			{
				objWeddingPackInfoTable.insertRow(objWeddingPackInfoTable.rows.length);
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].insertCell(0);
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[0].vAlign = "top";
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[0].innerHTML = _objWeddingPackDefJSON.weddingPack[i].type;
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].insertCell(1);
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[1].innerHTML = _objWeddingPackDefJSON.weddingPack[i].items;
			}
			break;
		case "3":
			eval(_strWeddingPack3);
			for(var i = 0; i <= _objWeddingPackDefJSON.weddingPack.length - 1; i++)
			{
				objWeddingPackInfoTable.insertRow(objWeddingPackInfoTable.rows.length);
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].insertCell(0);
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[0].vAlign = "top";
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[0].innerHTML = _objWeddingPackDefJSON.weddingPack[i].type;
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].insertCell(1);
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objWeddingPackInfoTable.rows[objWeddingPackInfoTable.rows.length - 1].cells[1].innerHTML = _objWeddingPackDefJSON.weddingPack[i].items;
			}
			break;
	}
}


//this function will be responsible for displaying the second level of available options under a specific 
//menu selection on the banquets page (i.e. tradional and station dining under "Dinner")
function displayMenuTypeOptions(strMenuType)
{
	var objContainer;
	var objMenuInfoContainer;
	var objMenuInfoTable;
	var objDropDownLabel;
	var objDropDownMenu;
	var objDropDownMenuOpt;
	var objRadioBtnHeaderLabel;
	var objRadioBtnLabel;
	var objRadioBtn;
	
	//this will establish a reference to the container that stores the dropdowns that allow the user to specify
	//additional menu options and will clear it out in preparation for a new dropdown being placed inside
	objContainer = document.getElementById("menuTypeOptionQues");
	objContainer.innerHTML = "";
	//this will establish a reference to the container for storing the container that will store the table that
	//holds the menu information and remove the border attributes set by a previous menu selection.  It will also
	//reset the height to 0
	objMenuInfoContainer = document.getElementById("menuOptionInfo");
	objMenuInfoContainer.style.height = "";
	objMenuInfoContainer.style.borderStyle = "";
	objMenuInfoContainer.style.borderWidth = "";
	objMenuInfoContainer.style.borderColor = "";
	//this will establish a reference to the table that holds the menu information and clear out all the rows
	//that were created in the table by one of the other menu options
	objMenuInfoTable = document.getElementById("menuInfo");
	while(objMenuInfoTable.rows.length > 0)
	{
		objMenuInfoTable.deleteRow(objMenuInfoTable.rows.length - 1);
	}
	if(strMenuType != "dinner")
	{
		objDropDownLabel = document.createElement("span");
		objDropDownLabel.style.marginRight = "5px";
		objDropDownMenu = document.createElement("select");	
		objDropDownMenu.id = "menuTypeOpts";
		//this adds the default "Please Select" option to the dropdown
		objDropDownMenuOpt = document.createElement("option");
		objDropDownMenuOpt.text = "[Please Select]"
		objDropDownMenuOpt.value = "0";
		if(navigator.userAgent.indexOf("MSIE") >= 0)
		{
			objDropDownMenu.add(objDropDownMenuOpt)
		}
		else
		{
			objDropDownMenu.add(objDropDownMenuOpt, null)	
		}	
		//this will add the other dropdown options based on what type of menu has been chosen (i.e. lunch)
		switch(strMenuType)
		{
			case "breakfeast":
				objDropDownLabel.innerHTML = "Choose a Breakfeast Menu option:";
				for(var i = 0; i <= 5; i++)
				{
					objDropDownMenuOpt = document.createElement("option");
					switch(i)
					{
						case 0:
							objDropDownMenuOpt.text = "Beverage Break"
							objDropDownMenuOpt.value = "1";
							break;
						case 1:
							objDropDownMenuOpt.text = "Coffee Break"
							objDropDownMenuOpt.value = "2";
							break;
						case 2:
							objDropDownMenuOpt.text = "Brunch"
							objDropDownMenuOpt.value = "3";
							break;
						case 3:
							objDropDownMenuOpt.text = "Continental"
							objDropDownMenuOpt.value = "4";
							break;
						case 4:
							objDropDownMenuOpt.text = "American"
							objDropDownMenuOpt.value = "5";
							break;
						case 5:
							objDropDownMenuOpt.text = "Easy"
							objDropDownMenuOpt.value = "6";
							break;
					}
					if(navigator.userAgent.indexOf("MSIE") >= 0)
					{
						objDropDownMenu.add(objDropDownMenuOpt)
					}
					else
					{
						objDropDownMenu.add(objDropDownMenuOpt, null)	
					}	
				}
				break;
			case "lunch":
				objDropDownLabel.innerHTML = "Choose a Lunch Menu option:";
				for(var i = 0; i <= 2; i++)
				{
					objDropDownMenuOpt = document.createElement("option");
					switch(i)
					{
						case 0:
							objDropDownMenuOpt.text = "Served"
							objDropDownMenuOpt.value = "1";
							break;
						case 1:
							objDropDownMenuOpt.text = "Conference"
							objDropDownMenuOpt.value = "2";
							break;
						case 2:
							objDropDownMenuOpt.text = "Buffet"
							objDropDownMenuOpt.value = "3";
							break;
					}
					if(navigator.userAgent.indexOf("MSIE") >= 0)
					{
						objDropDownMenu.add(objDropDownMenuOpt)
					}
					else
					{
						objDropDownMenu.add(objDropDownMenuOpt, null)	
					}	
				}
				break;
			case "horsdervs":
				objDropDownLabel.innerHTML = "Choose a Hors d' oeuvres Menu option:";
				for(var i = 0; i <= 3; i++)
				{
					objDropDownMenuOpt = document.createElement("option");
					switch(i)
					{
						case 0:
							objDropDownMenuOpt.text = "Cold"
							objDropDownMenuOpt.value = "1";
							break;
						case 1:
							objDropDownMenuOpt.text = "Chilled Seafood"
							objDropDownMenuOpt.value = "2";
							break;
						case 2:
							objDropDownMenuOpt.text = "Cold Table"
							objDropDownMenuOpt.value = "3";
							break;
						case 3:
							objDropDownMenuOpt.text = "Hot"
							objDropDownMenuOpt.value = "4";
							break;
					}
					if(navigator.userAgent.indexOf("MSIE") >= 0)
					{
						objDropDownMenu.add(objDropDownMenuOpt)
					}
					else
					{
						objDropDownMenu.add(objDropDownMenuOpt, null)	
					}	
				}
				break;
			case "liquor":
				break;
		}
		if(navigator.userAgent.indexOf("MSIE") >= 0)
		{
			objDropDownMenu.attachEvent("onchange", Function("displayMenuTypeInfo('" + strMenuType + "')"));
				
		}
		else
		{
			objDropDownMenu.addEventListener("change", Function("displayMenuTypeInfo('" + strMenuType + "')"), false);
		}
		if(strMenuType != "liquor")
		{
			objContainer.appendChild(objDropDownLabel);
			objContainer.appendChild(objDropDownMenu);
		}
	}
	else
	{
		objRadioBtnHeaderLabel = document.createElement("span");
		objRadioBtnHeaderLabel.style.marginRight = "5px";
		objRadioBtnHeaderLabel.innerHTML = "Choose a Dinner style:";
		objContainer.appendChild(objRadioBtnHeaderLabel);
		for(var i = 0; i <= 1; i++)
		{
			objRadioBtnLabel = document.createElement("span");
			objRadioBtnLabel.style.marginRight = "10px";
			if(navigator.userAgent.indexOf("MSIE") >= 0)
			{
				objRadioBtn = document.createElement('<input type="radio" name="dinnerStyles"/>');		
			}
			else
			{
				objRadioBtn = document.createElement("input");
				objRadioBtn.type = "radio";
				objRadioBtn.name = "dinnerStyles";
			}
			switch(i)
			{
				case 0:
					objRadioBtn.id = "traditionalDining";
					objRadioBtnLabel.innerHTML = "Traditional";
					if(navigator.userAgent.indexOf("MSIE") >= 0)
					{
						objRadioBtn.attachEvent("onclick", Function("displayTraditionalDinOpts('" + strMenuType + "')"));
					}
					else
					{
						objRadioBtn.addEventListener("click", Function("displayTraditionalDinOpts('" + strMenuType + "')"), false);
					}
					break;
				case 1:
					objRadioBtn.id = "stationDining";
					objRadioBtnLabel.innerHTML = "Station";
					if(navigator.userAgent.indexOf("MSIE") >= 0)
					{
						objRadioBtn.attachEvent("onclick", Function("displayStationDineOpts('" + strMenuType + "')"));
					}
					else
					{
						objRadioBtn.addEventListener("click", Function("displayStationDineOpts('" + strMenuType + "')"), false);
					}
					break;	
			}
			objContainer.appendChild(objRadioBtn);
			objContainer.appendChild(objRadioBtnLabel);
		}
		
		//this will take care of a display bug in Safari that was causing the dropdown and the radio buttons
		//do display on top of one another
		var objBRTag;
		objBRTag = document.createElement("br");
		objContainer.appendChild(objBRTag);
	}	
}


//this function will be responsible for displaying the options available to the user under the traditional 
//dining option
function displayTraditionalDinOpts(strMenuType)
{
	var objContainer;
	var objMenuInfoContainer;
	var objMenuInfoTable;
	var objDropDownLabel;
	var objDropDownMenu;
	var objDropDownMenuOpt;
	var objResetDiv;
	
	objContainer = document.getElementById("menuTypeOptionQues");
	//this will clear any content from the container designed to hold the dropdown boxes for selecting what type
	//of traditional dining option should be displayed
	try
	{
		objContainer.removeChild(document.getElementById("tradDinnerOpts"));
		objContainer.removeChild(document.getElementById("menuTypeOpts"));
	}
	catch(Error)
	{
	}
	//this will establish a reference to the container for storing the container that will store the table that
	//holds the menu information and remove the border attributes set by a previous menu selection.  It will also
	//reset the height to 0
	objMenuInfoContainer = document.getElementById("menuOptionInfo");
	objMenuInfoContainer.style.height = "";
	objMenuInfoContainer.style.borderStyle = "";
	objMenuInfoContainer.style.borderWidth = "";
	objMenuInfoContainer.style.borderColor = "";
	//this will establish a reference to the table that holds the menu information and clear out all the rows
	//that were created in the table by one of the other menu options
	objMenuInfoTable = document.getElementById("menuInfo");
	while(objMenuInfoTable.rows.length > 0)
	{
		objMenuInfoTable.deleteRow(objMenuInfoTable.rows.length - 1);
	}
	objDropDownLabel = document.createElement("div");
	objDropDownLabel.id = "tradDinnerOpts";
	objDropDownLabel.style.marginTop = "20px";
	objDropDownLabel.style.marginRight = "5px";
	if(navigator.userAgent.indexOf("MSIE") >= 0)
	{
		objDropDownLabel.style.styleFloat = "left";
	}
	else
	{
		objDropDownLabel.style.cssFloat = "left";
	}
	objDropDownLabel.innerHTML = "Choose a Traditional Dinner Menu option:";
	objDropDownLabel.overflow = "hidden";
	objDropDownMenu = document.createElement("select");	
	objDropDownMenu.id = "menuTypeOpts";
	objDropDownMenu.style.marginTop = "17px";
	//this adds the default "Please Select" option to the dropdown
	objDropDownMenuOpt = document.createElement("option");
	objDropDownMenuOpt.text = "[Please Select]"
	objDropDownMenuOpt.value = "0";
	if(navigator.userAgent.indexOf("MSIE") >= 0)
	{
		objDropDownMenu.add(objDropDownMenuOpt)
	}
	else
	{
		objDropDownMenu.add(objDropDownMenuOpt, null)	
	}
	//this adds the other options to the dropdown that the user can select from for Traditional dining
	for(var i = 0; i <= 1; i++)
	{
		objDropDownMenuOpt = document.createElement("option");
		switch(i)
		{
			case 0:
				objDropDownMenuOpt.text = "Served"
				objDropDownMenuOpt.value = "1";
				break;
			case 1:
				objDropDownMenuOpt.text = "Buffet"
				objDropDownMenuOpt.value = "2";
				break;
		}
		if(navigator.userAgent.indexOf("MSIE") >= 0)
		{
			objDropDownMenu.add(objDropDownMenuOpt)
		}
		else
		{
			objDropDownMenu.add(objDropDownMenuOpt, null)	
		}
	}
	if(navigator.userAgent.indexOf("MSIE") >= 0)
	{
		objDropDownMenu.style.styleFloat = "left";
	}
	else
	{
		objDropDownMenu.style.cssFloat = "left";
	}
	if(navigator.userAgent.indexOf("MSIE") >= 0)
	{
		objDropDownMenu.attachEvent("onchange", Function("displayMenuTypeInfo('" + strMenuType + "')"));			
	}
	else
	{
		objDropDownMenu.addEventListener("change", Function("displayMenuTypeInfo('" + strMenuType + "')"), false);
	}
	//this will create a div that will clear out any float attributes set previously
	objResetDiv = document.createElement("div");
	objResetDiv.style.width = "0px";
	objResetDiv.style.height = "0px";
	objResetDiv.style.clear = "both";
	objResetDiv.overflow = "hidden";
	//add the elements to the page for display
	objContainer.appendChild(objDropDownLabel);
	objContainer.appendChild(objDropDownMenu);
	objContainer.appendChild(objResetDiv);
}


//this will display the station dining menu
function displayStationDineOpts(strMenuType)
{
	var objContainer;
	var objMenuInfoTable;
	var blnUseGreenBkGrndColor = false;
	
	objContainer = document.getElementById("menuTypeOptionQues");;
	//this will clear any content from the container designed to hold the dropdown boxes for
	//selecting what type of traditional dining option should be displayed
	try
	{
		objContainer.removeChild(document.getElementById("tradDinnerOpts"));
		objContainer.removeChild(document.getElementById("menuTypeOpts"));
	}
	catch(Error)
	{
	}
	//this will establish a reference to the container that will hold the table displaying the menu options and
	//set it's border attributes
	objContainer = document.getElementById("menuOptionInfo");
	objContainer.style.borderStyle = "solid";
	objContainer.style.borderWidth = "1px";
	objContainer.style.borderColor = "#184f07";
	//this will establish a reference to the table that will display the selected menu information
	objMenuInfoTable = document.getElementById("menuInfo");
	//this will clear out all the rows that were created in the table by one of the other menu options
	while(objMenuInfoTable.rows.length > 0)
	{
		objMenuInfoTable.deleteRow(objMenuInfoTable.rows.length - 1);
	}
	eval(_strStationDinnerMenu);
	for(var i = 0; i <= _objBanquetOptsJSON.stationDinnerOpts.length - 1; i++)
	{
		objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
		if(blnUseGreenBkGrndColor)
		{
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
			blnUseGreenBkGrndColor = false;
		}
		else
		{
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
			blnUseGreenBkGrndColor = true;
		}
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.stationDinnerOpts[i].description;
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.stationDinnerOpts[i].price;
	}	
}


//this will display the banquet menu information based on the selections made by the user
function displayMenuTypeInfo(strMenuType)
{
	var objContainer;
	var objMenuInfoHeader;
	var objMenuInfoTable;
	var blnUseGreenBkGrndColor = false;
	
	//this will establish a reference to the container that will hold the table displaying the menu options and
	//set it's border attributes
	objContainer = document.getElementById("menuOptionInfo");
	objContainer.style.borderStyle = "solid";
	objContainer.style.borderWidth = "1px";
	objContainer.style.borderColor = "#184f07";
	//this will establish a reference to the table that will display the selected menu information
	objMenuInfoTable = document.getElementById("menuInfo");
	//this will clear out all the rows that were created in the table by one of the other menu options
	while(objMenuInfoTable.rows.length > 0)
	{
		objMenuInfoTable.deleteRow(objMenuInfoTable.rows.length - 1);
	}
	switch(strMenuType)
	{
		case "breakfeast":
			switch(document.getElementById("menuTypeOpts").value)
			{
				//"Please Select" option
				case "0":
					objContainer.style.height = "";
					objContainer.style.borderStyle = "";
					objContainer.style.borderWidth = "";
					objContainer.style.borderColor = "";
					break;
				//Beverage break option
				case "1":
					eval(_strBevBreakBreakfeastMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.bevBreakOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.bevBreakOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.bevBreakOpts[i].price;
					}
					break;
				//Coffee break option
				case "2":
					eval(_strCoffeeBreakBreakfeastMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.cofeeBreakOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.cofeeBreakOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.cofeeBreakOpts[i].price;
					}
					break;
				//Breakfast brunch option
				case "3":
					eval(_strBreakfeastBrunchMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.breakfeastBrunchOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.breakfeastBrunchOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.breakfeastBrunchOpts[i].price;
					}
					break;
				//Continental breakfast option
				case "4":
					eval(_strContBreakfeastMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.contBreakOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.contBreakOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.contBreakOpts[i].price;
					}
					break;
				//American breakfast option
				case "5":
					eval(_strAmericanBreakfeastMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.americanBreakOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.americanBreakOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.americanBreakOpts[i].price;
					}
					break;
				//Easy breakfast option
				case "6":
					eval(_strEasyBreakfeastMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.easyBreakOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.easyBreakOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.easyBreakOpts[i].price;
					}
					break;
			}
			break;
		case "lunch":
			switch(document.getElementById("menuTypeOpts").value)
			{
				//"Please Select" option
				case "0":
					objContainer.style.height = "";
					objContainer.style.borderStyle = "";
					objContainer.style.borderWidth = "";
					objContainer.style.borderColor = "";
					break;
				//Served lunch option
				case "1":
					eval(_strServedLuncheonMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.serveLunchOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.serveLunchOpts[i].type;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.serveLunchOpts[i].items;
					}
					break;
				//Conference lunch option
				case "2":
					eval(_strConfLuncheonMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.confLunchOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.confLunchOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.confLunchOpts[i].price;
					}
					break;
				//Buffet lunch option
				case "3":
					eval(_strBuffetLuncheonMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.buffetLunchOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.buffetLunchOpts[i].type;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.buffetLunchOpts[i].items;
					}
					break;
			}
			break;
		case "horsdervs":
			switch(document.getElementById("menuTypeOpts").value)
			{
				//"Please Select" option
				case "0":
					objContainer.style.height = "";
					objContainer.style.borderStyle = "";
					objContainer.style.borderWidth = "";
					objContainer.style.borderColor = "";
					break;
				//Cold horsdervs option
				case "1":
					eval(_strColdHorDervMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.coldHorDervOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.coldHorDervOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.coldHorDervOpts[i].price;
					}
					break;
				//Chilled seafood option
				case "2":
					eval(_strChillSeafoodHorDervMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.chillSeafoodOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.chillSeafoodOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.chillSeafoodOpts[i].price;
					}
					break;
				//Cold Table option
				case "3":
					eval(_strColdTableHorDervMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.coldTableHorDervOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.coldTableHorDervOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.coldTableHorDervOpts[i].price;
					}
					break;
				//Hot horsdervs option
				case "4":
					eval(_strHotHorDervMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.hotHorDervOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.hotHorDervOpts[i].description;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.hotHorDervOpts[i].price;
					}
					break;
			}
			break;
		case "dinner":
			switch(document.getElementById("menuTypeOpts").value)
			{
				//"Please Select" option
				case "0":
					objContainer.style.height = "";
					objContainer.style.borderStyle = "";
					objContainer.style.borderWidth = "";
					objContainer.style.borderColor = "";
					break;
				//Served dinner option
				case "1":
					eval(_strServedDinnerMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.servedDinnerOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.servedDinnerOpts[i].type;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.servedDinnerOpts[i].items;
					}
					break;
				//Buffet dinner option
				case "2":
					eval(_strBuffetDinnerMenu);
					for(var i = 0; i <= _objBanquetOptsJSON.buffetDinnerOpts.length - 1; i++)
					{
						objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
						if(blnUseGreenBkGrndColor)
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
							blnUseGreenBkGrndColor = false;
						}
						else
						{
							objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
							blnUseGreenBkGrndColor = true;
						}
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.buffetDinnerOpts[i].type;
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
						objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.buffetDinnerOpts[i].items;
					}
					break;
			}
			break;
		case "liquor":
			//this will establish a reference to the container that stores the dropdowns that allow the user to
			//specify additional menu options and will clear it out since liquor does not have any additional
			//options
			document.getElementById("menuTypeOptionQues").innerHTML = "";
			eval(_strLiquorMenu);
			for(var i = 0; i <= _objBanquetOptsJSON.liquorOpts.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objBanquetOptsJSON.liquorOpts[i].type;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objBanquetOptsJSON.liquorOpts[i].items;
			}
			break;
	}
}



/*********************************/
/* NEWSLETTERS SECTION FUNCTIONS */
/*********************************/
//test code - left off here
//this function will handle creating the links that represent the current and past 3 years of announcements
function createNewsletterLinks()
{
	var objSideNavBody;
	var aryNavElements;
	var objDate = new Date();
	var intYear;
	var blnInitialPageLoad;
	
	//establish a reference to the container div that holds the sidenav links
	objSideNavBody = document.getElementById("sideNavBody");
	//this will build an array of all the links in the sidenav container
	aryNavElements = objSideNavBody.getElementsByTagName("div");
	//this will determine if this is the very first time the newsletters page is being loaded or not
	if(aryNavElements.length > 0)
	{
		blnInitialPageLoad = false;
	}
	else
	{
		blnInitialPageLoad = true;
	}
	//this will remove the links currently in the sidenav area
	for(var x = 0; x < aryNavElements.length;)
	{
		objSideNavBody.removeChild(objSideNavBody.getElementsByTagName("div").item(x));
	}
	//this loop is only set to execute 4 times because there should only be links for the current and
	//past three years of newsletters
	for(var i = 0; i <= 3; i++)
	{
		blnCurrentYear = false;
		switch(i)
		{
			//current year
			case 0:
				intYear = objDate.getFullYear();
				blnCurrentYear = true;
				break;
			//one year ago
			case 1:
				intYear = objDate.getFullYear();
				intYear = intYear - 1;
				break;
			//two years ago
			case 2:
				intYear = objDate.getFullYear();
				intYear = intYear - 2;
				break;
			//three years ago
			case 3:
				intYear = objDate.getFullYear();
				intYear = intYear - 3;
				break;
		}
		//create the link container div
		objSideNavLinkContainer = document.createElement("div");
		objSideNavLinkContainer.id = intYear + "LinkContainer";
		objSideNavLinkContainer.style.width = "177px";
		objSideNavLinkContainer.style.lineHeight = "12px";
		objSideNavLinkContainer.style.marginBottom = "5px";
		objSideNavLinkContainer.style.paddingLeft = "5px";
		objSideNavLinkContainer.style.overflow = "hidden";
		//create the link itself
		if(!blnInitialPageLoad)
		{
			objSideNavLink = document.createElement("a");
			objSideNavLink.id = intYear + "Link";
			objSideNavLink.href = "javascript:displayNewsletters(" + intYear + ");";
			objSideNavLink.innerHTML = intYear + " Newsletters"; 
			objSideNavLink.className = "sideNav";
		}
		else
		{
			//at this point, it has been determined that the newsletters page is being loaded for the first
			//time.  if the below statement is true, then that means that the link being processed is not the
			//current year and should be displayed as a normal link
			if(!blnCurrentYear)
			{
				objSideNavLink = document.createElement("a");
				objSideNavLink.id = intYear + "Link";
				objSideNavLink.href = "javascript:displayNewsletters(" + intYear + ");";
				objSideNavLink.innerHTML = intYear + " Newsletters"; 
				objSideNavLink.className = "sideNav";
			}
			else
			{
				//if true, then the link being processed is the current year and should be displayed as a label
				//and not a link since the current year announcements are active by default
				objSideNavLink = document.createElement("div");
				objSideNavLink.style.fontFamily = "Arial";
				objSideNavLink.style.fontSize = "11px";
				objSideNavLink.style.fontWeight = "bold";
				objSideNavLink.style.color = "#184f07";
				objSideNavLink.innerHTML = intYear + " Newsletters"; 
			}
		}
		//create the divider line that will seperate this from the next link
		objLineBreak = document.createElement("div");
		objLineBreak.id = intYear + "LinkDivLine";
		objLineBreak.style.width = "172px";
		objLineBreak.style.height = "1px";
		objLineBreak.style.marginLeft = "5px";
		objLineBreak.style.marginRight = "5px";
		objLineBreak.style.marginBottom = "5px";
		objLineBreak.style.backgroundColor = "#cdcdce"
		objLineBreak.style.overflow = "hidden"
		//add the link to the page for display
		objSideNavLinkContainer.appendChild(objSideNavLink);
		objSideNavBody.appendChild(objSideNavLinkContainer);
		objSideNavBody.appendChild(objLineBreak);
	}
}


//this function will obtain the newsletters for the year specified in the intYear argument.  It will then 
//display a link for each newsletter found
function displayNewsletters(intNewsletterYear)
{	
	var objContainer;
	var objNewsletterContainer;
	var objClearDiv;
	var objLinkContainer;
	var objLink;
	
	//this will load the JSON that contains the newsletter information
	eval(_strNewsletters);
	//this will establish a reference to the container that will hold the links
	objContainer = document.getElementById("pageContent");
	objContainer.innerHTML = "";
	//this will go through all the newsletters in the JSON and display the newsletters for the specified year
	for(var i = 0; i <= objNewsletterDefJSON.clubNewsletters.length - 1; i++)
	{
		if(objNewsletterDefJSON.clubNewsletters[i].newsLetterYear == intNewsletterYear)
		{
			
			if(objNewsletterDefJSON.clubNewsletters[i].multilink == "true")
			{
				objNewsletterContainer = document.createElement("div");
				objNewsletterContainer.id = "newsletter" + i;
				objNewsletterContainer.className = "newsletterMultiLinkPageAnnouncement";
				objNewsletterContainer.innerHTML = objNewsletterDefJSON.clubNewsletters[i].newsLetterMonth + " Newsletter<br>&nbsp;&nbsp;&nbsp;" + objNewsletterDefJSON.clubNewsletters[i].newsLetterLink + "<br>&nbsp;&nbsp;&nbsp;" + objNewsletterDefJSON.clubNewsletters[i].newsLetterLink2;
				objContainer.appendChild(objNewsletterContainer);
			}
			else
			{	
				objNewsletterContainer = document.createElement("div");
				objNewsletterContainer.id = "newsletter" + i;
				objNewsletterContainer.className = "newsletterPageAnnouncement";
				objNewsletterContainer.innerHTML = objNewsletterDefJSON.clubNewsletters[i].newsLetterLink;
				objContainer.appendChild(objNewsletterContainer);	
			}
		}
	}
	//if this is true, then that means that there were no newsletters for the year specified in
	//intNewsletterYear
	if(objContainer.innerHTML == "")
	{
		objContainer.innerHTML = "There are no newsletters available for the year " + intNewsletterYear;
	}
	try
	{
		//this will call the function that creates the links in the right side nav to the newsletters for the
		//current year and the past three years so that the links can be reset and a new link specified as
		//active
		createNewsletterLinks();
		//this will create a reference to the link in the right side nav that represents the year specified for
		//viewing newsletters
		objLinkContainer = document.getElementById(intNewsletterYear + "LinkContainer");
		objLinkContainer.removeChild(document.getElementById(intNewsletterYear + "Link"));
		//this creates a label that indicates that the page currently being displayed is active
		objLink = document.createElement("div");
		objLink.style.fontFamily = "Arial";
		objLink.style.fontSize = "11px";
		objLink.style.fontWeight = "bold";
		objLink.style.color = "#184f07";
		objLink.innerHTML = intNewsletterYear + " Newsletters"; 
		objLinkContainer.appendChild(objLink);
	}
	catch(Error)
	{
	}
}



/****************************/
/* DINING SECTION FUNCTIONS */
/****************************/
//this function is responsible for displaying the portion of the Courses menu specified in strMenuType
function displayCoursesMenu(strMenuType)
{
	var objMenuInfoTable;
	var blnUseGreenBkGrndColor = false;
	
	//create a reference to the table that is holding the menu items
	objMenuInfoTable = document.getElementById("menuInfo");
	//this will clear out all the rows that were created in the table by one of the other tabs
	while(objMenuInfoTable.rows.length > 0)
	{
		objMenuInfoTable.deleteRow(objMenuInfoTable.rows.length - 1);
	}
	//this will determine what menu items to display
	switch(strMenuType)
	{
		case "soups":
			document.getElementById("soupsTab").className = "pageBodyTabOn";
			document.getElementById("saladsTab").className = "pageBodyTabOff";
			document.getElementById("amuseTab").className = "pageBodyTabOff";
			document.getElementById("entreeTab").className = "pageBodyTabOff";
			eval(_strCoursesSoups);
			for(var i = 0; i <= _objFoodMenuDefJSON.coursesSoups.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.coursesSoups[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.coursesSoups[i].foodPrice;
			}
			break;
		case "salads":
			document.getElementById("soupsTab").className = "pageBodyTabOff";
			document.getElementById("saladsTab").className = "pageBodyTabOn";
			document.getElementById("amuseTab").className = "pageBodyTabOff";
			document.getElementById("entreeTab").className = "pageBodyTabOff";
			eval(_strCoursesSalads);
			for(var i = 0; i <= _objFoodMenuDefJSON.coursesSalads.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.coursesSalads[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.coursesSalads[i].foodPrice;
			}
			break;
		case "amuse":
			document.getElementById("soupsTab").className = "pageBodyTabOff";
			document.getElementById("saladsTab").className = "pageBodyTabOff";
			document.getElementById("amuseTab").className = "pageBodyTabOn";
			document.getElementById("entreeTab").className = "pageBodyTabOff";
			eval(_strCoursesAmuse);
			for(var i = 0; i <= _objFoodMenuDefJSON.coursesAmuse.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.coursesAmuse[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.coursesAmuse[i].foodPrice;
			}
			break;
		case "entrees":
			document.getElementById("soupsTab").className = "pageBodyTabOff";
			document.getElementById("saladsTab").className = "pageBodyTabOff";
			document.getElementById("amuseTab").className = "pageBodyTabOff";
			document.getElementById("entreeTab").className = "pageBodyTabOn";
			eval(_strCoursesEntrees);
			for(var i = 0; i <= _objFoodMenuDefJSON.coursesEntrees.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.coursesEntrees[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.coursesEntrees[i].foodPrice;
			}
			objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowFooterText";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].colSpan = "2";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].align = "center";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = "All entrees are served with Courses Salad and Chef Dale&#39;s Vegetable creation";			
			break;
	}
}


//this function is responsible for displaying the portion of the dining room menu specified in strMenuType
function displayDiningRoomMenu(strMenuType)
{
	var objMenuInfoTable;
	var blnUseGreenBkGrndColor = false;
	
	//create a reference to the table that is holding the menu items
	objMenuInfoTable = document.getElementById("menuInfo");
	//this will clear out all the rows that were created in the table by one of the other tabs
	while(objMenuInfoTable.rows.length > 0)
	{
		objMenuInfoTable.deleteRow(objMenuInfoTable.rows.length - 1);
	}
	//this will determine what menu items to display
	switch(strMenuType)
	{
		case "appetizers":
			document.getElementById("appetizerTab").className = "pageBodyTabOn";
			document.getElementById("saladsTab").className = "pageBodyTabOff";
			document.getElementById("entreeTab").className = "pageBodyTabOff";
			eval(_strDiningRmAppetizers);
			for(var i = 0; i <= _objFoodMenuDefJSON.diningRmAppetizers.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.diningRmAppetizers[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.diningRmAppetizers[i].foodPrice;
			}
			break;
		case "salads":
			document.getElementById("appetizerTab").className = "pageBodyTabOff";
			document.getElementById("saladsTab").className = "pageBodyTabOn";
			document.getElementById("entreeTab").className = "pageBodyTabOff";
			eval(_strDiningRmSalads);
			for(var i = 0; i <= _objFoodMenuDefJSON.diningRmSalads.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.diningRmSalads[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.diningRmSalads[i].foodPrice;
			}
			break;
		case "entrees":
			document.getElementById("appetizerTab").className = "pageBodyTabOff";
			document.getElementById("saladsTab").className = "pageBodyTabOff";
			document.getElementById("entreeTab").className = "pageBodyTabOn";
			eval(_strDiningRmEntrees);
			for(var i = 0; i <= _objFoodMenuDefJSON.diningRmEntrees.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.diningRmEntrees[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.diningRmEntrees[i].foodPrice;
			}
			objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowFooterText";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].colSpan = "2";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].align = "center";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = "All Entrees are served wiht your choice of mixed greens salad or Caesar salad, fresh baked rolls, vegetable du jour and garlic mashed potatoes or creamy parmesan risotto";
			
			break;
	}
}


//this function is responsible for displaying the portion of the Valley Grille menu specified in strMenuType
function displayValleyGrilleMenu(strMenuType)
{
	var objMenuInfoTable;
	var blnUseGreenBkGrndColor = false;
	
	//create a reference to the table that is holding the menu items
	objMenuInfoTable = document.getElementById("menuInfo");
	//this will clear out all the rows that were created in the table by one of the other tabs
	while(objMenuInfoTable.rows.length > 0)
	{
		objMenuInfoTable.deleteRow(objMenuInfoTable.rows.length - 1);
	}
	//this will determine what menu items to display
	switch(strMenuType)
	{
		case "starters":
			document.getElementById("startersTab").className = "pageBodyTabOn";
			document.getElementById("fromTheRuffTab").className = "pageBodyTabOff";
			document.getElementById("fromTheFairwayTab").className = "pageBodyTabOff";
			document.getElementById("fromNum12PondTab").className = "pageBodyTabOff";
			//this code is needed to modify the "From the Fairway" tab to allow the text to fit in the tab
			document.getElementById("fromTheFairwayTab").style.paddingTop = "3px";
			document.getElementById("fromTheFairwayTab").style.height = "31px";
			eval(_strValleyGrilleStarters);
			for(var i = 0; i <= _objFoodMenuDefJSON.valleyGrilleStarters.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.valleyGrilleStarters[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.valleyGrilleStarters[i].foodPrice;
			}
			break;
		case "fromTheRuff":
			document.getElementById("startersTab").className = "pageBodyTabOff";
			document.getElementById("fromTheRuffTab").className = "pageBodyTabOn";
			document.getElementById("fromTheFairwayTab").className = "pageBodyTabOff";
			document.getElementById("fromNum12PondTab").className = "pageBodyTabOff";
			//this code is needed to modify the "From the Fairway" tab to allow the text to fit in the tab
			document.getElementById("fromTheFairwayTab").style.paddingTop = "3px";
			document.getElementById("fromTheFairwayTab").style.height = "31px";
			eval(_strValleyGrillFromTheRuff);
			for(var i = 0; i <= _objFoodMenuDefJSON.valleyGrilleFromTheRuff.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.valleyGrilleFromTheRuff[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.valleyGrilleFromTheRuff[i].foodPrice;
			}
			objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowFooterText";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].colSpan = "2";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].align = "center";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = "<b>Dressings:&nbsp;</b>Blue Cheese, French, Russian, Paris, Balsamic Vinaigrette, Apple Cranberry Vinaigrette, Raspberry Vinaigrette, Italian, Buttermilk Ranch and Classic Oil and Vinegar";
			break;
		case "fromTheFairway":
			document.getElementById("startersTab").className = "pageBodyTabOff";
			document.getElementById("fromTheRuffTab").className = "pageBodyTabOff";
			document.getElementById("fromTheFairwayTab").className = "pageBodyTabOn";
			document.getElementById("fromNum12PondTab").className = "pageBodyTabOff";
			//this code is needed to modify the "From the Fairway" tab to allow the text to fit in the tab
			document.getElementById("fromTheFairwayTab").style.paddingTop = "3px";
			document.getElementById("fromTheFairwayTab").style.height = "31px";
			eval(_strValleyGrilleFromTheFairway);
			for(var i = 0; i <= _objFoodMenuDefJSON.valleyGrilleFromTheFairway.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.valleyGrilleFromTheFairway[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.valleyGrilleFromTheFairway[i].foodPrice;
			}
			objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowFooterText";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].colSpan = "2";
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].align = "center";
			break;
		case "fromNum12Pond":
			document.getElementById("startersTab").className = "pageBodyTabOff";
			document.getElementById("fromTheRuffTab").className = "pageBodyTabOff";
			document.getElementById("fromTheFairwayTab").className = "pageBodyTabOff";
			document.getElementById("fromNum12PondTab").className = "pageBodyTabOn";
			//this code is needed to modify the "From the Fairway" tab to allow the text to fit in the tab
			document.getElementById("fromTheFairwayTab").style.paddingTop = "3px";
			document.getElementById("fromTheFairwayTab").style.height = "31px";
			eval(_strValleyGrilleFromNum12Pond);
			for(var i = 0; i <= _objFoodMenuDefJSON.valleyGrilleFromNum12Pond.length - 1; i++)
			{
				objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
				if(blnUseGreenBkGrndColor)
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
					blnUseGreenBkGrndColor = false;
				}
				else
				{
					objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
					blnUseGreenBkGrndColor = true;
				}
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.valleyGrilleFromNum12Pond[i].foodItem;
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
				objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.valleyGrilleFromNum12Pond[i].foodPrice;
			}
			break;
	}
}


//this will display the sandwich menu avaiable in the Valley Grille
function displayValleyGrilleSandwichMenu()
{
	var objMenuInfoTable;
	var blnUseGreenBkGrndColor = false;
	
	//create a reference to the table that is holding the menu items
	objMenuInfoTable = document.getElementById("sandwichMenuInfo");
	//this will clear out all the rows that were created in the table by one of the other tabs
	while(objMenuInfoTable.rows.length > 0)
	{
		objMenuInfoTable.deleteRow(objMenuInfoTable.rows.length - 1);
	}
	eval(_strValleyGrilleSandwichMenu);
	for(var i = 0; i <= _objFoodMenuDefJSON.valleyGrilleSandwichMenu.length - 1; i++)
	{
		objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
		if(blnUseGreenBkGrndColor)
		{
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowGreenColor";
			blnUseGreenBkGrndColor = false;
		}
		else
		{
			objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowWhiteColor";
			blnUseGreenBkGrndColor = true;
		}
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = _objFoodMenuDefJSON.valleyGrilleSandwichMenu[i].foodItem;
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(1);
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].vAlign = "top";
		objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[1].innerHTML = _objFoodMenuDefJSON.valleyGrilleSandwichMenu[i].foodPrice;
	}
	
	//commented out until the pub menu is brought down
	/*objMenuInfoTable.insertRow(objMenuInfoTable.rows.length);
	objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].className = "tableRowFooterText";
	objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].insertCell(0);
	objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].colSpan = "2";
	objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].align = "center";
	objMenuInfoTable.rows[objMenuInfoTable.rows.length - 1].cells[0].innerHTML = "All Sandwiches come with your choice of: French Fries, Sweet Potato Fries or Cole Slaw";*/

}


//this function will display the Wednesday night dinner specials
function displayWedNightSpecials(intPriceLevel)
{
	var objMenuInfoHeader;
	var objMenuInfoContainer;
	
	//this will evaluate the JSON string to create the JSON object that contains the Wednesday night special
	//information
	eval(_strWednesdaySpecials);
	//this will get the date for the Wednesday night that the special applies to from the JSON
	objMenuInfoHeader = document.getElementById("menuInfoHeader");
	objMenuInfoHeader.innerHTML = "";
	objMenuInfoHeader.innerHTML = "Specials For: " + _objFoodMenuDefJSON.wedNightSpecs[0].date;
	//this will display the menu items themselves for the Wednesday night special
	objMenuInfoContainer = document.getElementById("menuInfoContainer");
	objMenuInfoContainer.innerHTML = "";
	for(var i = 1; i <= _objFoodMenuDefJSON.wedNightSpecs.length - 1; i++)
	{
		if(_objFoodMenuDefJSON.wedNightSpecs[i].priceLvl == intPriceLevel)
		{
			objMenuInfoContainer.innerHTML += "<p>" + _objFoodMenuDefJSON.wedNightSpecs[i].foodItem + "</p>";
		}
	}
}


//this function will display the Thursday buffet menu
function displayThursBuffetMenu()
{
	var objMenuInfoHeader;
	var objMenuInfoContainer;
	
	//this will evaluate the JSON string to create the JSON object that contains the Thursday buffet information
	eval(_strThursdayBuffet);
	//this will get the date for the Thursday buffet from the JSON
	objMenuInfoHeader = document.getElementById("menuInfoHeader");
	objMenuInfoHeader.innerHTML = "";
	objMenuInfoHeader.innerHTML = "Buffet For: " + _objFoodMenuDefJSON.thursBuffet[0].date;
	//this will display the buffet items themselves for the Thursday buffet
	objMenuInfoContainer = document.getElementById("menuInfoContainer");
	objMenuInfoContainer.innerHTML = "";
	for(var i = 1; i <= _objFoodMenuDefJSON.thursBuffet.length - 1; i++)
	{
		objMenuInfoContainer.innerHTML += "<p>" + _objFoodMenuDefJSON.thursBuffet[i].foodItem + "</p>";	
	}
}




/**************************/
/* GOLF SECTION FUNCTIONS */
/**************************/
function selectCoursePhoto(elementId)
{
	document.getElementById(elementId).className = "courseThumbnailPicContainerSelected";
	if(navigator.userAgent.indexOf("MSIE") >= 0)
	{
		document.getElementById(elementId).childNodes[0].className = "courseThumbnailPicSelected";
	}
	else
	{
		document.getElementById(elementId).childNodes[1].className = "courseThumbnailPicSelected";
	}
}


function unselectCoursePhoto(elementId)
{
	document.getElementById(elementId).className = "courseThumbnailPicContainer";
	if(navigator.userAgent.indexOf("MSIE") >= 0)
	{
		document.getElementById(elementId).childNodes[0].className = "courseThumbnailPic";
	}
	else
	{
		document.getElementById(elementId).childNodes[1].className = "courseThumbnailPic";
	}
}


function showCoursePhotoPopup(holeNum)
{
	var blockBackgroundDiv;
	var popupDiv;
	var audioPlayerDiv;
	var xyCoords;
	
	blockBackgroundDiv = document.createElement("div");
	blockBackgroundDiv.id = "blockBackground";
	blockBackgroundDiv.className = "blockBackgroundDiv";
	blockBackgroundDiv.style.display = "none";
	if(navigator.userAgent.indexOf("MSIE") >= 0)
	{
		blockBackgroundDiv.style.height = document.body.scrollHeight + "px";
	}
	else
	{
		blockBackgroundDiv.style.height = (document.body.offsetHeight + 500) + "px";
	}
	
	popupDiv = document.getElementById("popup")
	xyCoords = $("pageContent").cumulativeOffset();
	if(navigator.userAgent.indexOf("MSIE") >= 0)
	{
		if(navigator.userAgent.indexOf("MSIE 6.0") >= 0)
		{
			popupDiv.style.position = "absolute";
			popupDiv.style.top = ((document.documentElement.clientHeight / 2) - 216) + "px";
		}
		else
		{
			popupDiv.style.position = "fixed";
			popupDiv.style.top = ((document.body.clientHeight / 2) - 216) + "px";
		}
	}
	else
	{
		popupDiv.style.position = "fixed";
		popupDiv.style.top = ((self.innerHeight / 2) - 216) + "px";
	}
	popupDiv.style.left = (xyCoords[0] - 22) + "px";	

	audioPlayerDiv = document.createElement("div");
	audioPlayerDiv.id = "coursePhotoAudio";
	audioPlayerDiv.style.height = "16px"; 
	audioPlayerDiv.style.marginLeft = "10px"; 
	audioPlayerDiv.style.marginTop = "15px"; 
	audioPlayerDiv.style.width = "544px";
	
	switch(holeNum)
	{
		case 1:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 1";
			document.getElementById("coursePhoto").className = "hole1Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_1.mp3&song_title=Hole Number 1&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_1.mp3&song_title=Hole Number 1&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 2:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 2";
			document.getElementById("coursePhoto").className = "hole2Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_2.mp3&song_title=Hole Number 2&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_2.mp3&song_title=Hole Number 2&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 3:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 3";
			document.getElementById("coursePhoto").className = "hole3Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_3.mp3&song_title=Hole Number 3&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_3.mp3&song_title=Hole Number 3&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 4:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 4";
			document.getElementById("coursePhoto").className = "hole4Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_4.mp3&song_title=Hole Number 4&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_4.mp3&song_title=Hole Number 4&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 5:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 5";
			document.getElementById("coursePhoto").className = "hole5Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_5.mp3&song_title=Hole Number 5&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_5.mp3&song_title=Hole Number 5&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 6:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 6";
			document.getElementById("coursePhoto").className = "hole6Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_6.mp3&song_title=Hole Number 6&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_6.mp3&song_title=Hole Number 6&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 7:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 7";
			document.getElementById("coursePhoto").className = "hole7Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_7.mp3&song_title=Hole Number 7&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_7.mp3&song_title=Hole Number 7&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 8:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 8";
			document.getElementById("coursePhoto").className = "hole8Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_8.mp3&song_title=Hole Number 8&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_8.mp3&song_title=Hole Number 8&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
		
		case 9:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 9";
			document.getElementById("coursePhoto").className = "hole9Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_9.mp3&song_title=Hole Number 9&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_9.mp3&song_title=Hole Number 9&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 10:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 10";
			document.getElementById("coursePhoto").className = "hole10Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_10.mp3&song_title=Hole Number 10&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_10.mp3&song_title=Hole Number 10&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
		
		case 11:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 11";
			document.getElementById("coursePhoto").className = "hole11Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_11.mp3&song_title=Hole Number 11&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_11.mp3&song_title=Hole Number 11&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 12:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 12";
			document.getElementById("coursePhoto").className = "hole12Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_12.mp3&song_title=Hole Number 12&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_12.mp3&song_title=Hole Number 12&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 13:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 13";
			document.getElementById("coursePhoto").className = "hole13Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_13.mp3&song_title=Hole Number 13&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_13.mp3&song_title=Hole Number 13&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 14:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 14";
			document.getElementById("coursePhoto").className = "hole14Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_14.mp3&song_title=Hole Number 14&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_14.mp3&song_title=Hole Number 14&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 15:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 15";
			document.getElementById("coursePhoto").className = "hole15Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_15.mp3&song_title=Hole Number 15&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_15.mp3&song_title=Hole Number 15&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 16:	
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 16";
			document.getElementById("coursePhoto").className = "hole16Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_16.mp3&song_title=Hole Number 16&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_16.mp3&song_title=Hole Number 16&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 17:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 17";
			document.getElementById("coursePhoto").className = "hole17Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_17.mp3&song_title=Hole Number 17&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_17.mp3&song_title=Hole Number 17&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
			
		case 18:
			document.getElementById("photoPopupTitle").innerHTML = "Hole Number 18";
			document.getElementById("coursePhoto").className = "hole18Photo";
			audioPlayerDiv.innerHTML = '<object type="application/x-shockwave-flash" width="544" height="15" data="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_18.mp3&song_title=Hole Number 18&player_title=Click play to hear audio from Golf Professional Clark Luis"><param name="movie" value="http://www.vcc1909.com/dev/assets/audio/xspf_player_slim.swf?song_url=http://www.vcc1909.com/dev/assets/audio/hole_18.mp3&song_title=Hole Number 18&player_title=Click play to hear audio from Golf Professional Clark Luis"/></object>';
			break;
	}
	
	popupDiv.appendChild(audioPlayerDiv);
	document.body.appendChild(blockBackgroundDiv);
	Effect.Appear("blockBackground", {from:0.0, to:0.5, queue:"end"});
	Effect.Appear("popup", {queue:"end"});
}


function closeCoursePhotoPopup()
{
	document.getElementById("popup").removeChild(document.getElementById("coursePhotoAudio"));
	Effect.Fade("popup", {queue:"end"});
	Effect.Fade("blockBackground", {queue:"end"});
}


function repositionCoursePhotoPopup()
{
	var popupDiv;
	var xyCoords;
	
	if(document.getElementById("popup"))
	{
		popupDiv = document.getElementById("popup")
		xyCoords = $("pageContent").cumulativeOffset();
		if(navigator.userAgent.indexOf("MSIE") >= 0)
		{
			if(navigator.userAgent.indexOf("MSIE 6.0") >= 0)
			{
				popupDiv.style.top = ((document.documentElement.clientHeight / 2) - 216) + "px";
			}
			else
			{
				popupDiv.style.top = ((document.body.clientHeight / 2) - 216) + "px";
			}
		}
		else
		{
			popupDiv.style.top = ((self.innerHeight / 2) - 216) + "px";
		}
		popupDiv.style.left = (xyCoords[0] - 22) + "px";	
	}
}





/********************************/
/* MEMBERSHIP SECTION FUNCTIONS */
/********************************/
//this function will display all the membership information for the member type (i.e. Senior Golf) specified in
//strMemType
function displayMembershipInfo(strMemType)
{
	var objMembershipInfoTable;
	
	//create a reference to the table that is holding the membership items
	objMembershipInfoTable = document.getElementById("membershipMatrixTable");
	//this will clear out all the rows that were created in the table by one of the other tabs
	while(objMembershipInfoTable.rows.length > 2)
	{
		objMembershipInfoTable.deleteRow(objMembershipInfoTable.rows.length - 1);
	}
	//this will determine what membership information to display
	switch(strMemType)
	{
		case "golf40Plus":
			eval(_strGolfAge40Plus);
			break;
		case "golf31To39":
			eval(_strGolfAge31To39);
			break;
		case "golf21To30":
			eval(_strGolfAge21To30);
			break;
		case "familyGolf":
			eval(_strFamilyGolf);
			break;
		case "juniorGolf":
			eval(_strJuniorGolf);
			break;
		case "clergyGolf":
			eval(_strClergyGolf);
			break;
		case "corpGolf":
			eval(_strCorpGolf);
			break;
		case "swimTennis":
			eval(_strTennis)
			break;
		case "social":
			eval(_strSocial);
			break;
		case "socialOvr65":
			eval(_strSocialOver65);
			break;
		case "familySocial":
			eval(_strFamilySocial);
			break;
		case "corpSocial":
			eval(_strCorpSocial);
			break;
	}
	for(var i = 0; i <= objMembershipDefJSON.membershipInfo.length - 1; i++)
	{
		objMembershipInfoTable.insertRow(objMembershipInfoTable.rows.length);
		for(var x = 0; x <= 9; x++)
		{
			objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].insertCell(x);
			if(x != 9)
			{
				objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].className = "membershipMatrixTableCell";
			}
			else
			{
				objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].className = "membershipMatrixTableLastCell";
			}
			switch(x)
			{
				case 0:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].type
					break;
				case 1:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].golfMember
					break;
				case 2:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].golfSpouse
					break;
				case 3:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].diningMember
					break;
				case 4:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].diningSpouse
					break;
				case 5:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].swimming
					break;
				case 6:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].tennis
					break;
				case 7:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].monthlyFee
					break;
				case 8:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].initiationFee
					break;
				case 9:
					objMembershipInfoTable.rows[objMembershipInfoTable.rows.length - 1].cells[x].innerHTML = objMembershipDefJSON.membershipInfo[i].annualMinimum
					break;
			}
		}	
	}	
}




/*****************************/
/* DIRECTIONS PAGE FUNCTIONS */
/*****************************/
//this function is responsible for gathering the user entered data on the "Directions" page and sending a 
//request to the Google map service to get the directions from the inputted address to the club
function getGoogleMapsDirections()
{
	var strFullAddress;
	
	if(document.getElementById("txtAddress").value != "" && document.getElementById("txtCity").value != "" && document.getElementById("ddState").value != "" && document.getElementById("txtZipCode").value != "")
	{
		
	if(isNaN(document.getElementById("txtZipCode").value))
	{
		alert("Zip code must be numeric");
	}
	else
	{
		strFullAddress = document.getElementById("txtAddress").value + " " + document.getElementById("txtCity").value + " " + document.getElementById("ddState").value + " " + document.getElementById("txtZipCode").value;
	window.open("http://maps.google.com/maps?saddr=" + strFullAddress + "&daddr=79 Country Club Lane Sugarloaf PA 18249", "_blank", "location=no, menubar=no, resizable=no, toolbar=no");
	}
	
	}
	else
	{
		alert("Please enter an origin address");
	}
}