// Handle all the FSCommand messages in a Flash movie.
var w;
function sl1_DoFSCommand(command, args)
{
	var sl1Obj = document.getElementById('sl1');
	switch (command)
	{
		case 'alert':
		{
			alert(args);
			break;
		}
		case 'debug':
		{
			if (!w)
			{
				w = open('','debug','width=200, height=500');
				w.document.open();
			}
			
			w.document.writeln(args +'<br>');
			break;
		}
		default:
		{
			alert(command);
		}
	}
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1)
{
	document.write('<script type="text/vbscript">\n');
	document.write('On Error Resume Next\n');
	document.write('Sub sl1_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call sl1_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script>\n');
}
