/* This first inline block is to replace browser hawk with client-side browser detection.*/
var BROWSER_ISMAC = (navigator.appVersion.indexOf("Windows") == -1);
var BROWSER_ISPC = (navigator.appVersion.indexOf("Windows") != -1);
var PLATFORMNAME = "";
var BROWSER_NAME = navigator.appName.toLowerCase();
if(BROWSER_NAME == "microsoft internet explorer"){
	BROWSER_NAME = "explorer";
}

if(BROWSER_ISPC){
	PLATFORMNAME = "pc";
}else if(BROWSER_ISMAC){
	PLATFORMNAME = "mac";
}else{
	PLATFORMNAME = "unix";
}

// code was in flashAPI.js
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 start_FSCommand(ByVal command, ByVal args)\n')
			document.write('	Call start_DoFSCommand(command, args)\n')
			document.write('End Sub\n')
			document.write('</script\>\n')
		}



function TurnOnImage(oE){
	img = eval(oE + "On.src");
	document [oE].src = img;
	
}

function TurnOffImage(oE){
	img = eval(oE + "Off.src");
	document [oE].src = img;
}

function roll(ele) {
	var img = ele.getElementsByTagName("img")[0];
	var src = img.src;
	img.src = (/_on/.test(src)) ? src.replace('_on', '_off') : src.replace('_off', '_on');
}


function leftNavOn(obj, bgN){
	obj.className = "leftNavOn" + bgN;
}
function leftNavOff(obj,bgN){
	obj.className = "leftNavOff" + bgN;
}

function bottomleftNavOn(obj, bgN){
	obj.className = "bottomleftNavOn" + bgN;
}
function bottomleftNavOff(obj,bgN){
	obj.className = "bottomleftNavOff" + bgN;
}



