jQuery(function(){

    //MAIN NAV ROLLOVER
	//jQueryFish dropNav	
	$('#mainNav > li').hover(function(){
	    //mouseover
	    $(this).addClass('sfhover'); //ADD CLASS TO LI
	    thisName = this.id.substr(0, (this.id.length-4) ); //TRUNCATE STRINGS
	    if(typeof selectedID == 'string'){
	        selectedName = selectedID.substr(0, (selectedID.length-4) );
	        if( (thisName != selectedName)){ //COMPARE AND EXECUTE, ADDING SELECTED IF LI IS IN THE 'NAVBAR' LI
	            $(this).addClass('selected');
	        }
	    }
	}, function(){ 
	    //mouseout
	    $(this).removeClass('sfhover');   
	    thisName = this.id.substr(0, (this.id.length-4) );
	    if(typeof selectedID == 'string'){
	        selectedName = selectedID.substr(0, (selectedID.length-4) );
	        if( (thisName != selectedName)){
	            $(this).removeClass('selected');
	        }
	    }
	});
	
	var selectedSideNavID;
	//SIDE NAV HOVERS
	$("li.side_bar_main").hover(
		function() {
		    if (selectedSideNavID != this || selectedSideNavID == undefined) {
				    this.className = 'side_bar_main_on';
	            }
			}	,
		function() {
		    if (selectedSideNavID != this || selectedSideNavID == undefined) {
			    this.className = 'side_bar_main';
		    }
	    }
	);
	
	//DEALER FORM
	$('#findDealer input').focus(function() {
	    if (this.value == 'Enter your Zip Code') {
	        this.value = '';
	    }
	})
	$('#findDealer input').blur(function() {
	    if (this.value == '') {
	        this.value = 'Enter your Zip Code';
	    }
	})
	
});
 
var isMenuOpen = false;
var baseURL = 'images/global/icons/';

function setSideNavID(id) {
	   jQuery('#'+id).addClass('side_bar_main_on');
	}
//-->