var IE = navigator.appName.indexOf("Microsoft") != -1;

function menuFlash_DoFSCommand(command, args) {
	var flashObj = IE ? menuFlash : document.menuFlash;
	if(command == "home") {
		window.location.assign("http://cjmems.seas.ucla.edu/index.html");
	} else if(command == "members") {
		window.location.assign("http://cjmems.seas.ucla.edu/members.html");
	} else if(command == "research") {
		window.location.assign("http://cjmems.seas.ucla.edu/research.html");
	} else if(command == "news") {
		window.location.assign("http://cjmems.seas.ucla.edu/news.html");
	} else if(command == "publications") {
		window.location.assign("http://cjmems.seas.ucla.edu/publications.html");
	} else if(command == "links") {
		window.location.assign("http://cjmems.seas.ucla.edu/links.html");
	}
}

//Hook For IE
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1)
{
	document.write('<script language=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub menuFlash_FSCommand(ByVal command, ByVal args)\n');
	document.write('    call menuFlash_DoFSCommand(command,args)\n');
	document.write('end sub\n');
	document.write('</script\> \n');
}
