$(document).ready(function() {
	
	$('.jazda').mouseover(function () {
	jQuery(this).find("img").stop();
	jQuery(this).find("img").animate({top:-20, left:-20, width:353, height:280},300);
	
	});
	
	$('.jazda').mouseout(function () {
	jQuery(this).find("img").stop();
	jQuery(this).find("img").animate({top:0, left:0, width:321, height:255},300);

	});
	
	$('.item01 > a').jFav();
	
	//$(".krok").css("width","900px");
	
	$(".krok").hide();
	//$(".krok:not(:first)").hide();
	$(".zapytanie h3 a:first").parent().next().slideDown("very slow");
	
		$(".zapytanie h3 a").click(function(){
			$(".krok:visible").slideUp("slow");
			$(this).parent().next().slideDown("slow");
			return false;
		});
		
	przeznaczenie = lokalizacja = termin = 0;
	S = L = H = Hmax = 0;
	dzwonic = 0;
		$('#przeznaczenie').focus(function() {
		if(przeznaczenie == 0)
		$(this).attr("value","");
		
		przeznaczenie = 1;
		});
		
		$('#lokalizacja').focus(function() {
		if(lokalizacja == 0)				   
		$(this).attr("value","");
		
		lokalizacja = 1;
		});
	
		$('#termin').focus(function() {
		if(termin == 0)	
		$(this).attr("value","");	
		
		termin = 1;
		});
		
		$('#S').focus(function() {
		if(S == 0)	
		$(this).attr("value","");	
		
		S = 1;
		});
		
		$('#L').focus(function() {
		if(L == 0)	
		$(this).attr("value","");	
		
		L = 1;
		});
		
		$('#H').focus(function() {
		if(H == 0)	
		$(this).attr("value","");	
		
		H = 1;
		});
		
		$('#Hmax').focus(function() {
		if(Hmax == 0)	
		$(this).attr("value","");	
		
		Hmax = 1;
		});
		
		$('#dzwonic').focus(function() {
		if(dzwonic == 0)	
		$(this).attr("value","");	
		
		dzwonic = 1;
		});

});


