	jQuery(function(){
		jQuery('#nav').superfish();
	});
	
var browserName=navigator.appName; 

if (browserName!="Microsoft Internet Explorer") {
	
	$(document).ready(function() {  
	   $('#nav > li').bind('mouseover', fadeBG)
	   $('#nav > li').bind('mouseout',  restoreBG)
	});


	var timeout    = 200;
	var closetimer = 0;
	var submenuitem = 0;
			
	
	function fadeBG() {
		$("#background").dequeue().fadeTo("2000", 0.65);
		
	}
	
	function restoreBG() {
		$("#background").dequeue().fadeTo("2000", 1.0);
	}

}


function showLoginBox() {
	$('#loginBox').slideDown(); 
}


//------------------------------
//Added hideLoginBox (below) with the standard windows "x"  button on the slideDown login menu.  The change in the "mouseleave" function below forced it to come down and STAY down (probelm described below)... but there are times people may want to close it using this function

function hideLoginBox() {
	$('#loginBox').slideUp(); 
}

//------------------------------


$(document).ready(function() {
	
	//REM'd out the "slideUp"  090/08/10 as we had complaints about the menu sliding up and causing login problems (some unable to enter password, as it slid up when they changed fields)  So- forcing to slide down and STAY down until another navigation or refresh event happen - or the button that was added in the "controls/LoginContral.ascx" is clicked and triggers the "hideLoginBox()" above

	$('#loginBox').mouseleave( function() {
		//$('#loginBox').slideUp();
	})
});
