// Called from <body onload=
// Connects engine.jsp after 3 milliseconds.
// Set roomDataToInclude to "TV" if only require TV games, "All" if also require Web and ExDemo games 
function SetEngineSource(roomDataToInclude)
{
	setTimeout("DelayedSetEngineSource('" + roomDataToInclude + "')", 3);
}

function DelayedSetEngineSource(roomDataToInclude)
{
	// Set source of "engine" iframe
	var engineSource = "/engine.jsp?roomDataToInclude=" + roomDataToInclude;

	// Use iframe location to load the engine to avoid engine.jsp being added
	// to the browser history	
	parent.frames["engine"].location.replace(engineSource);
}

