function getInitTime()
{
	var initTime = readCookie('initTime');

	if(initTime == '' || isNaN(initTime)) {
		initTime = new Date().getTime();
		setCookie('initTime',initTime,'','/');
	}
	var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	var tellerObj = isInternetExplorer ? document.all.teller : document.teller;  	
	tellerObj.SetVariable("startTimer", initTime);  		
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function teller_DoFSCommand(command, args) {
	var tellerObj = isInternetExplorer ? document.all.teller : document.teller;

	// Place your code here.
	if(command == "say") {
		alert(args);
	}
  if (command=="getInitTime")
  {
  	getInitTime();
	}
	//
}
// 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 teller_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call teller_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
