var isIE;
if (navigator.appName == "Microsoft Internet Explorer") {
			if (parseInt(navigator.appVersion) >= 4) {
				isIE = true;
				//document.write("<LINK REL='STYLESHEET' HREF='/_inc/nasdw_000462.css'>");
				document.write("<LINK REL='STYLESHEET' HREF='/_inc/finra-nav-app-px.css'>");
				document.write("<LINK REL='STYLESHEET' HREF='/_inc/finra-nav-app-print.css' media='print'>");
			}
} else {
			isIE = false;
				//document.write("<LINK REL='STYLESHEET' HREF='/_inc/nasdw_001337.css'>");
				//document.write("<LINK REL='STYLESHEET' HREF='/_inc/nasdw_000462.css'>");
				document.write("<LINK REL='STYLESHEET' HREF='/_inc/finra-nav-app-px.css'>");
				document.write("<LINK REL='STYLESHEET' HREF='/_inc/finra-nav-app-print.css' media='print'>");

}

// PRELOAD ROLLOVER IMAGES
var preimages = new Array();
function preloading(){
	for (x=0; x>preloading.arguments.length; x++){
		preimages[x] = new Image();
		preimages[x].src = preloading.arguments[x];
	}
}

function onloadtasks() {
	preloading("home_on.gif","rules_on.gif","enforcement_on.gif","education_on.gif","regulatory_on.gif","mediation_on.gif","investor_on.gif","home_hover.gif","rules_hover.gif","enforcement_hover.gif","education_hover.gif","regulatory_hover.gif","mediation_hover.gif","investor_hover.gif");
	SetContentHeight();
}
			
//THIS FUNCTIN SETS THE REQUIRED BOTTOM PADDING BASED ON THE SCREEN RESOLUTION. THIS IS REQUIRED TO ELIMINATE GREEN SPACE BELOW THE CONTENT AREA.
function SetContentHeight(){
	// browser sniffer
	var NN, IE, dynNN, dynIE
	var agent = navigator.appName + navigator.appVersion;

	NN = ( (agent.indexOf("Netscape") > -1 ) ? 1 : 0);
	IE = ( (agent.indexOf("Explorer" )> -1 || agent.indexOf("MSIE") > -1 ) ? 1 : 0);

	if (parseInt(navigator.appVersion) >= 4){
		if (navigator.appName == "Netscape"){
			dynNN = true;
			}
		else{
			dynIE = true;
			}
		}

	var ScreenHeight;
	//var NavHeight;
	var ContentTopHeight;

	// If browsing with IE, set the height of the nav area to the available height in the browser window.
//  if (dynIE){
//		ScreenHeight = document.body.clientHeight;
//		NavHeight = parseInt(TopNav1.height) + parseInt(TopNav2.height) + parseInt(TopNav3.height) + parseInt(TopNav4.height);
//		ContentTopHeight = parseInt(ContentTop.height);
//		LeftNav.height = ScreenHeight - (NavHeight + ContentTopHeight + 2);
//		}
}

