var swfactive = true;

function showHTML()
{
	if(swfactive)
	{
		$('#htmlcontent').show('fast');
		swfactive = false;
	}
}

function showSWF()
{
	if(!swfactive)
	{
		$('#htmlcontent').hide();
		swfactive = true;
	}
}

function checkIn(target, html, script)
{
	$(target).html(html);
	showHTML();
	try
	{
		eval(script);
	}
	catch(err)
	{
		alert(err);
	}
}

function checkOut()
{
	showSWF();
}
