var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function flash_DoFSCommand(command, args) {
	var flashObj = isInternetExplorer ? document.all.flash : document.flash;
	if (command == "popup") {
		window.open('popup-'+args+'.htm','fen','menubar=no,toolbar=no,location=no,personalbar=bo, statusbar=no,scrollbars=yes,width=566 ,height=550,top=50,left=40');
	}
	if (command == "popup2") {
		window.open('popup-'+args+'.htm','fen2','menubar=no,toolbar=no,location=no,personalbar=bo, statusbar=no,scrollbars=no,width=550 ,height=550,top=50,left=40');
	}
	if (command == "popup3") {
		window.open('popup-'+args+'.htm','fen2','menubar=no,toolbar=no,location=no,personalbar=bo, statusbar=no,scrollbars=no,width=550 ,height=354,top=50,left=40');
	}
	if (command == "uk-popup") {
		window.open('uk-popup-'+args+'.htm','fen','menubar=no,toolbar=no,location=no,personalbar=bo, statusbar=no,scrollbars=yes,width=566 ,height=550,top=50,left=40');
	}
	if (command == "uk-popup2") {
		window.open('uk-popup-'+args+'.htm','fen2','menubar=no,toolbar=no,location=no,personalbar=bo, statusbar=no,scrollbars=no,width=550 ,height=550,top=50,left=40');
	}
}
// 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 flash_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call flash_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}