var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function main_DoFSCommand(command, args) {
	var mainObj = isInternetExplorer ? document.all.main : document.main;
	//
	if (command =="segnalibro"){
		setBook(args);
	}
	if (command =="saveVisited"){
		setVisited(args);
	}
	if (command =="logout"){
		doQuit();
	}
	if (command =="vai"){
		Pagina(args);
	}
	if (command =="completato"){
		setComplete();
	}
	if (command =="reset"){
		resetAll();
	}
	if (command =="fsBook"){
		getBookmark();
	}
	if (command =="fsVisited"){
		getVisited();
	}
	if (command =="apriPagina"){
		Pagina(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 main_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call main_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

