﻿var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function flash_menu_DoFSCommand(command, args) {
//alert("1 : " + command);
//var flash_menuObj = InternetExplorer ? flash_menu : document.flash_menu;
//alert("2 : " + command);
var flashMenu = document.getElementById("menu");
// alert("3 : " + command);

if (command == "bringToFront")
{
//alert("bring me to front : " + flashMenu.style["z-index"] + " : " + flashMenu.style.zIndex);
flashMenu.style.zIndex = 4;
}
if (command == "sendToBack")
{
//alert("send me to back : " + flashMenu.style["z-index"] + " : " + flashMenu.style.zIndex);
flashMenu.style.zIndex = 2;
}
}
// 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_menu_FSCommand(ByVal command, ByVal args)\n');
document.write('  call flash_menu_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCR');
document.write('IPT\> \n');
}


