
function play(toWhat){


 $(".bannerarea").hide();
 $("#"+toWhat).fadeIn("slow");

}


 $(document).ready(function() {
	
 $(".bannerarea").hide();
 
 var theSection = "#" + $.query.get('section');
	//alert(test)
	if(theSection!="#"){
		 $(theSection).fadeIn("slow");
	} else {
		$("#banner1").fadeIn("slow");
	}
	
	$("ul.simplifyList li li ul").hide();
	$("ul.simplifyList li li a").click( function() {
		$(this).siblings()
			.toggle();
	});
	$("div.simplifyList ul").hide();
	$("div.simplifyList p").click( function() {
		$(this).siblings()
			.toggle();
	});
	
	$("ul#foryou_steps li a").click( function() {
		var title = $(this).parent().attr("class");
		$("li.foryou_step").attr("class","foryou_stepsmall");
		if(title=="foryou_stepsmall"){
			$(this).parent().attr("class","foryou_step");
		} else if (title=="foryou_step"){
			$(this).parent().attr("class","foryou_stepsmall");
		}
	});


/*$("#dealerloginbutton").click( function() {
	var passwordInput =	$("#logininput").val();
	if(passwordInput=="brennan"){
		document.location='dealers_corner.html';
	} else if(passwordInput == "" || passwordInput == null) { 
		alert("You must enter your dealer password");
	} else {
		alert("Incorrect password");
	}
});*/

});

function loginSubmit()
{
	var passwordInput =	$("#logininput").val();
	if(passwordInput == "" || passwordInput == null) { 
	alert("You must enter your dealer password");
	return false;
	}
	else {
	return true;
	}
}
