var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function controler_DoFSCommand(command, args) {
	var controlerObj = InternetExplorer ? controler : document.controler;
	var movie = InternetExplorer ? top10movie : document.top10movie;
	if (command == "pause") {
		movie.StopPlay();
	}
	if (command == "play") {
		movie.Play();
	}
	if (command == "rewind") {
		movie.Rewind();
	}
	if (command == "stop") {
		movie.StopPlay();
	}
	if (command == "getframes") {
		var totalFrames = movie.TotalFrames;
		controlerObj.SetVariable("/:totalFrames",totalFrames);
	}
	if (command == "getcurrentframe") {
		var currentFrame = movie.TCurrentFrame("/");
		controlerObj.SetVariable("/:currentFrame",currentFrame);
	}
	if (command == "jumper") {
		movie.GotoFrame(args);
		movie.Play();
	}
}
// 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 language=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub controler_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call controler_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</script\>\n'); } //-->
