function toggleRoom(n) 
{
	if (window.document.flashmap == null)
	{
		mymap = parent.window.document.flashmap;
	}
	else
	{
		mymap = window.document.flashmap;
	}
	mymap.SetVariable("r", n);
	mymap.Play();
}

function showroom(i)
{
	if (window.document.flashmap == null)
	{
		parent.window.document.flashmap.SetVariable("tmproom", i);
		parent.window.document.flashmap.Play();
	}
	else
	{
		window.document.flashmap.SetVariable("tmproom", i);
		window.document.flashmap.Play();
	}
}

function changecam(i)
{
	parent.cameraframe.document.cam.SetVariable("newcam", "R" + i);
	parent.cameraframe.document.cam.Play();
}