// Main scripts (for menu, etc.)
<!--
flagMouseIn 		= 0;
flagMenusActive = 0;

function winopen(url,specs){
	a = '';
	newwin=window.open(url,a,specs)
} 	

function divIn() {
	flagMouseIn = 1;
	document.getElementById('menuSwf').style.zIndex=1;
}

function divOut() {
	flagMouseIn = 0;
	resetLayer();
}

function menusOn() {
	flagMenusActive = 1;
}

function menusOff() {
//	alert('here');
	flagMenusActive = 0;
	resetLayer();
}

function resetLayer() { 
	if (flagMouseIn == 0 && flagMenusActive == 0) {
//		alert('flagMouseIn = '  + flagMouseIn);
//		alert('flagMenusActive = '  + flagMenusActive);
		document.getElementById('menuSwf').style.zIndex=-1; 
		document.getElementById('menuImg').style.zIndex=1;
	}
//	document.getElementById('menuImg').style.zIndex=1;	
}
	
function swapMainOff(adNumber) {
//	document.getElementById('rotator').style.zIndex=1;
//	document.getElementById('mainHolder').style.zIndex=-1; 
//	document.getElementById('mainImg').setAttribute('src',newImg);
	document.getElementById('rotator').className = 'ad' + adNumber;	
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function menu_DoFSCommand(command, args) {
	var menuObj = isInternetExplorer ? document.all.menu : document.menu;
		if (command == "resetLayer") {
			resetLayer();
		} else if (command == "menusOn") {
			menusOn();
		} else if (command == "menusOff") {
			menusOff();
		}
}

// Handle all the FSCommand messages in a Flash movie.
function main_DoFSCommand(command, args) {
	var movieObj = isInternetExplorer ? document.all.test : document.test;
		if (command == "swapMainOff") {
			swapMainOff(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 menu_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call menu_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub main_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call main_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

// Hook for Internet Explorer.
//if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
//}
//-->
