var browserVersion = parseInt(navigator.appVersion);
var browserType = "Unknown";
var ie = false;
var ns = false;

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function bpintro_DoFSCommand(command, args) {
  var bpintroObj = InternetExplorer ? bpintro : document.bpintro;

}
// 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 bpintro_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call bpintro_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

// end flash

if (navigator.appName.indexOf("Microsoft") != -1)
{
	browserType = "ie";
	ie = true;
}
else if (navigator.appName.indexOf("Netscape") != -1)
{
	browserType = "ns";
	ns = true;

}

if (browserType == "Unknown")
{

	browserVersion = 0;

}

if (browserVersion < 4)
{
	event = " ";
}


function HideAllMenus()
{
	if (browserVersion >= 4)
	{
		for (var i=1;i<List.Menus.length;i++) 
		{
			if (List.Menus[i].autohide == true)
			{
				List.Menus[i].hide();
			}
		}
	}
}

function showMenu(menu)
{
	if (browserVersion >= 4)
	{
		HideAllMenus();
		menu.showMenu();
	}

}

function hideMenu(menu, e)
{
	if (browserVersion >= 4)
	{
		menu.hideMenu(e);
	}

}

function renderMenu()
{
	if (browserVersion >= 4)
	{
		for (var i=1;i<List.Menus.length;i++) 
		{
			document.write(List.Menus[i].div)
		}
	}
}
