
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
    //alert("writing VB");
    document.write('<script language=\"VBScript\"\>\n');
    document.write('On Error Resume Next\n');
    document.write('Sub edit_FSCommand(ByVal command, ByVal args)\n');
    document.write('	Call edit_DoFSCommand(command, args)\n');
    document.write('End Sub\n');
    document.write('</script\>\n');
};



var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;


function thisMovie(movieName){
    var isIE = navigator.appName.indexOf("Microsoft") != -1;
    return (isIE) ? jQuery('#rollinPlayer')[0] : document[movieName];
    return (isIE) ? jQuery('#' + movieName)[0] : document[movieName];
};


function flashAO_to_javascriptAO(textfromflash){
    $("#activityObject").attr("value", textfromflash);
};

function javascriptAO_to_flashAO(){
    thisTempAOY = $.toJSON(activityObject);
    thisTempAO = unentityify(thisTempAOY);
    thisMovie("edit").setActivityObject(thisTempAO);
    
    return (true);
};



function makeCall(str){
    thisMovie("edit").asFunc(str);
};
