

function hero_DoFSCommand(command, args) { 
	if (command == "call_alert") { 
	
	if(window.dancer) window.document["dancer"].SetVariable("heroLoadStatus", args);
	if(document.dancer) document.dancer.SetVariable("heroLoadStatus", args);
		
	}	
}

// 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 hero_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call hero_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}


function dancer_DoFSCommand(command, args) { 
	if (command == "load_alert") { 
	
	if(window.hero) window.document["hero"].SetVariable("dancerLoadStatus", args);
	if(document.hero) document.hero.SetVariable("dancerLoadStatus", args);
		
	}	
}

// 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 dancer_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call dancer_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
