function OpenChatWindow() 
{
	try
	{
		var winl = (screen.width - 700) / 2;
		var wint = (screen.height - 700) / 2;
		var sOptions = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,width=700,height=700,top='+wint+',left='+winl;
		window.open('http://www.forgottenkingdoms.org/chat/', '_blank', sOptions );
	}
	catch ( sError )
	{
		alert ( "Error opening chat window: " + sError );
	}
}
function loadTransMenu() 
{
	//==========================================================================================
	// if supported, initialize TransMenus
	//==========================================================================================
	// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
	// This is better than server-side checking because it will also catch browsers which would
	// normally support the menus but have javascript disabled.
	//
	// If supported, call initialize() and then hook whatever image rollover code you need to do
	// to the .onactivate and .ondeactivate events for each menu.
	//==========================================================================================
	try
	{
		if (TransMenu.isSupported()) {
			TransMenu.initialize();

			// hook all the highlight swapping of the main toolbar to menu activation/deactivation
			// instead of simple rollover to get the effect where the button stays hightlit until
			// the menu is closed.
			/*
			document.getElementById("Home").onmouseover = function() {
				ms.hideCurrent();
				this.className = "hover";
			}
			document.getElementById("Home").onmouseout = function() { this.className = ""; }
			*/
			/*
			document.getElementById("Builders").onmouseover = function() {
				ms.hideCurrent();
				this.className = "hover";
			}

			document.getElementById("Builders").onmouseout = function() { this.className = ""; }
			*/
			menu5.onactivate = function() { document.getElementById("Home").className = "hover"; };
			menu5.ondeactivate = function() { document.getElementById("Home").className = ""; };
			menu7.onactivate = function() { document.getElementById("Builders").className = "hover"; };
			menu7.ondeactivate = function() { document.getElementById("Builders").className = ""; };

			menu6.onactivate = function() { document.getElementById("GetStarted").className = "hover"; };
			menu6.ondeactivate = function() { document.getElementById("GetStarted").className = ""; };
			menu1.onactivate = function() { document.getElementById("Forum").className = "hover"; };
			menu1.ondeactivate = function() { document.getElementById("Forum").className = ""; };
			menu2.onactivate = function() { document.getElementById("Support").className = "hover"; };
			menu2.ondeactivate = function() { document.getElementById("Support").className = ""; };
			/*
			menu3.onactivate = function() { document.getElementById("Game").className = "hover"; };
			menu3.ondeactivate = function() { document.getElementById("Game").className = ""; };
			*/
			menu4.onactivate = function() { document.getElementById("WorldInfo").className = "hover"; };
			menu4.ondeactivate = function() { document.getElementById("WorldInfo").className = ""; };
		}
	}
	catch ( sError )
	{
		alert ( "Error: " + sError );
	}
}
function init() 
{
	loadTransMenu();
}
