flashAttributes = {
	//all properties initially empty strings populated by interface.swf with fscommand for use by debugger
	courseTitle: "",
	moduleTitle: "",
	curTopic: "",
	curLoc: "",
	curSwf: "",
	fileName: "interface.swf",
	width: "1012",
	height: "709",
	backColor: "#323232"
};

// Hook for Internet Explorer.
function ieHook() {		
	if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
		var strVB = '<script language=\"VBScript\"\>\n';
		strVB += 'On Error Resume Next\n';
		strVB += 'Sub swf_sco_FSCommand(ByVal command, ByVal args)\n';
		strVB += '	Call swf_sco_DoFSCommand(command, args)\n';
		strVB += 'End Sub\n';
		strVB += '</script\>\n';
		document.write(strVB);
	}
}

function closeLesson() {
	exitX();
	exitSCO();
	if (opener && !opener.closed) {
		//opener.close();
	}
}

//for ie, use onbeforeunload, otherwise use onunload
if (window.onbeforeunload) {
	onbeforeunload = closeLesson;
} else {
	onunload = closeLesson;
}
