﻿var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

// Handle all the FSCommand messages in a Flash movie.
function MainNavigation_DoFSCommand(command, args) {
    var indexObj = isInternetExplorer ? document.all.index : document.index;
	eval(command+"('"+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 MainNavigation_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call MainNavigation_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

var topMenuStack = 0;
var seq = "";
function swapContent()
{
    seq += 'a';
    //alert(seq);
    topMenuStack--;
    //if (topMenuStack  == 0)
    {
       var header = document.getElementById('headerMenu');
       header.className = 'normal';
    }
}
function swapMenu()
{
    seq += 'b';
    //alert(seq);
    if (topMenuStack < 1)
    {
        topMenuStack++;
    }
    //if (topMenuStack == 1)
    {
        var header = document.getElementById('headerMenu');
        header.className = 'menu';
    }
}