$(document).ready(function() {
	$("input[type='text'], textarea").each(function(){
		$(this).val("");
	});
	$("#year").livequery(function(){
		$(this).change(function()
		{
			if($(this).val() != "year" && $(this).val() != "" && $(this).val().length == 4)
			{
				year = $(this).val();
				$("#makes_container").slideDown();
				if(canMakeSearch())
				{
					imageSearch.execute(year + " " + make + " " + model);
				}
			}	
		});
	});
	$("#gotomobile").livequery(function(){
		$(this).click(function(){
			var date = new Date();
    		date.setTime(date.getTime()-(20*3600));
    		var expires = "; expires="+date.toGMTString();
    		document.cookie = "mobile"+"="+"true"+expires+"; path=/";
			window.location = "http://m.bostoncarbuyers.com";
		});
	});
	/*$("label").hide();
	$("input[type='text'], textarea").each(function(){
		$(this).val($(this).attr('name')).css("color","#FFF");
	});
	$("input[type='text'], textarea").focus(function(){
		if($(this).val() == $(this).attr('name'))
		{
			$(this).val("").css("color","#FC0");
		}
	});
	$("input[type='text'], textarea").blur(function(){
		if($(this).val() == "")
		{
			$(this).val($(this).attr('name')).css("color","#FFF");
		}								  
	});*/
 });
