function recieveFromFlash(Txt) {
	document.getElementById('txtRecieve').value = Txt;
}

function getMovie() {
        var M$ =  navigator.appName.indexOf("Microsoft")!=-1
	return (M$ ? window : document)["BridgeMovie"]
}


function sendSetVariable() {
	var value = document.getElementById('txtSend').value
    
	var movie = getMovie()
	movie.SetVariable("message", value) 
}


function sendExternalInterface() {
	var value = document.getElementById('txtSend').value
    
	var movie = getMovie()

   	movie.sendFromJS(value);
}

/* movie name_DoFSCommand */
function BridgeMovie_DoFSCommand(command, args) {
	window[command].call(null, args)
}


// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1) {
        document.write('<script language=\"VBScript\"\>\n');
        document.write('On Error Resume Next\n');
        document.write('Sub BridgeMovie_FSCommand(ByVal command, ByVal args)\n');
        document.write('        Call BridgeMovie_DoFSCommand(command, args)\n');
        document.write('End Sub\n');
        document.write('</script\>\n');
}


