            var capture = true;            
            var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
            
            // Handle all the FSCommand messages in a Flash movie.
            function Framework_DoFSCommand(command, args, forced) {
	            var FrameworkObj = isInternetExplorer ? document.all.Framework : document.Framework;
	            
	            var html = "";
	            if (command.match(/Trace|Info|Error/)) {
	                html = args;
	            } else {
	                html = command.toUpperCase() + " " + args;
	            }
	            
	            //html = command.toUpperCase() + " " + args;
	            
	            var DebugData = document.getElementById("DebugData");
	            var div = document.createElement("div");
	            div.className = command;
	            div.innerHTML = html;
	            
	            if (capture||forced) {
	                DebugData.insertBefore(div, DebugData.firstChild);
	            }
	            
            }
            // 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 Framework_FSCommand(ByVal command, ByVal args)\n');
	            document.write('	Call Framework_DoFSCommand(command, args)\n');
	            document.write('End Sub\n');
	            document.write('</script\>\n');
            }
            
            function clear() {
                document.getElementById("DebugData").innerHTML = "";
            }
            
            function WebsiteKeyPressed(e) {
	            if (!e) var e = window.event;
	            if (e.keyCode==68) {
	                if (capture) {
	                    Framework_DoFSCommand("Q", "Capture off");
	                    capture = false;
	                } else {
	                    capture = true;
	                    Framework_DoFSCommand("Q", "Capture on");
	                }
	            }
            	
	            if (e.keyCode==67) {
	                clear();
	                Framework_DoFSCommand("Q", "Cleared.", true);
	            }
	            
//	            if (e.keyCode==88) {
//	                Framework_DoFSCommand("Q", "Reload XML data.", true);
//	            }
	            	            
            }

            document.onkeydown = WebsiteKeyPressed;


var html = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" id=\"Framework\" width=\"800\" height=\"600\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"Maersk.swf\" /><param name=\"quality\" value=\"best\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"bgcolor\" value=\"#000000\" /><embed src=\"Maersk.swf\" quality=\"low\" wmode=\"transparent\" bgcolor=\"#000000\" width=\"800\" height=\"600\" swLiveConnect=true id=\"Framework\" name=\"Framework\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>";

function flash() {
    var FlashContainer = document.getElementById("FlashContainer");
    var datetimestamp = new Date();
    FlashContainer.innerHTML = html.replace(/Maersk.swf/g, "Maersk.swf?queryAudioQuality=High&queryWebMode=true&date=" + datetimestamp);
    Framework_DoFSCommand("INIT", datetimestamp);
}

function disableDebug() {
    document.onkeydown = null;
    capture = null;
    clear();
    
}

document.onhelp = function() {
	event.returnValue = false;
	return false;
}
