$(function() {
	$('#tm a.noactive')
		.css( {backgroundPosition:"-30px 0px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(120px -77px)"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(-30px 0px)"}, {duration:400, complete:function(){
				$(this).css({backgroundPosition:"-30px 0px"})
			}})
		})
		
	
	$('#leftm li')
		.css( {backgroundPosition:"-15px 0px"})
		.mouseover(function(){
			$(this).animate({backgroundPosition:"(0px 0px)", paddingLeft:"15px"}, {queue:false, duration:200, complete:function(){
				$(this).children().css({backgroundPosition:"-15px 0px", color:"#000"})
			}})
			

		})
		.mouseout(function(){
			$(this).animate({backgroundPosition:"(-15px 0px)", paddingLeft:"6px"}, {queue:false, duration:200, complete:function(){
				$(this).children().css({backgroundPosition:"-15px 0px", color:"#434343"})
			}})
		})
		
});

	$(function() {
		$('#searchForm').submit(function() {
			window.location = '/' + $('#sfType').val() + '/szukaj/' + $('#sfWord').val();
			return false;
		});
		
		jQuery("#sfType").search_skin();
	});
	$("img").lazyload({ 
		effect : "fadeIn"
	});

