/* Tab scripts */
/* Call initTabs in the body tag's onLoad */
/* Name the tabs with a numeric index starting with 1: "tab1", "tab2" */

var tabURLs = null;
var tabBaseID = "";
var activeTabID = "";
		
function initTabs(baseID, URLs)
{
	tabBaseID = baseID;
	tabURLs = URLs;
		
	activateTab(1);
}
		
function activateTab(tabIndex)
{
	if (activeTabID != tabBaseID + tabIndex)
	{
		// Change the class of the active tab to show the tab as off
		// and change the class of the new tab to show the tab as on.
		if (activeTabID != "")
		{
			document.getElementById(activeTabID).className = "tab_off";
		}
		
		document.getElementById(tabBaseID + tabIndex).className = "tab_on";
		
		// Update which tab is active.
		activeTabID = tabBaseID + tabIndex;
		
		// Now load the appropriate page in the IFRAME
		this.currentGames.location.replace(tabURLs[tabIndex - 1]);
	}
}


/* Font size scripts */

function changeFontSize(elementID, fontSize)
{
	if (document.getElementById(elementID))
	{
		document.getElementById(elementID).style.fontSize = fontSize;
	}
}
