var transTable_temp = new Array();
transTable_temp.push("Joining a session?<br>Click the button below and enter your Session ID number.");
transTable_temp.push("The Cure for the Common Webinar");
transTable_temp.push("AllPlay Web can make your webinars and web conferences more<br><strong>Engaging</strong>, <strong>Interactive</strong> and <strong>Memorable</strong>.");
transTable_temp.push("Welcome to Room");
transTable_temp.push("Room Id Required....");
transTable_temp.push("Login");
transTable_temp.push("Email Address");
transTable_temp.push("Password");
transTable_temp.push("Keep me logged in on this computer");
transTable_temp.push("Select Game");
transTable_temp.push("Use a Passcode to protect entry to this room");
transTable_temp.push("Passcode");
transTable_temp.push("To launch the keypad, click this button");
transTable_temp.push("Contacting Server....");
transTable_temp.push("The game controller could not be loaded.");
transTable_temp.push("To join a different game room, ");
transTable_temp.push("Game Host Launch Successful");
transTable_temp.push("Your Game Host is now in the upper - left area of your screen. Use it to control the game.");
transTable_temp.push("Please <strong>minimize</strong> this browser window.");
transTable_temp.push("To join a different game session, ");
transTable_temp.push("click here");
transTable_temp.push("Game Window Closed");
transTable_temp.push("It appears that you  closed the game window before the session was ended.");
transTable_temp.push("To to re-join the game, click this button:");
transTable_temp.push("Contact Us");
transTable_temp.push("An AllPlay Web session ID is a six-digit number. If you were not supplied with your session ID, please contact the host of your meeting.");

var transTable = new Object();
for (var n=0; n<transTable_temp.length; n++) {
	var key = transTable_temp[n];
	key = key.replace(/\s*/g, "");
	transTable[key] = transTable_temp[n];
}


function TransItem(transCode) {
	switch (transCode) {
		case("WELCOME_TO_ROOM"): return "Welcome to Session ";
		case("KP_LAUNCH_CLICK_BUTTON"): return "To launch the keypad, click this button:";
		case("VIEWER_LAUNCH_CLICK_BUTTON"): return "To launch the game viewer, click this button:";
		case("KP_LAUNCHED"): return "Keypad Launch Sucessful";
		case("VIEWER_LAUNCHED"): return "Game Viewer Launch Sucessful";
		case("VIEWER_IN_CORNER"): return "Your Game Viewer is now in the upper-left area of your screen. Use it to view the game.";
		case("GAME_HOST_LAUNCHED"): return "Game Host Launch Sucessful";
		case("GAME_HOST_IN_CORNER"): return "Your Game Host is now in the upper-left area of your screen. Use it to control the game.";
	}
}

function TransString(transString) {
	key = transString.replace(/\s*/g, "");
	var transResult = transTable[key];
	if (transResult == null) {
		//alert("key:" + key + " transResult:" + transResult);
		return transString;
	}
	return transResult;
}
