$(document).ready(function(){
						   
						   


//$("div.lista ul li input").attr({checked: ""});

var klik = $(".lista ul li a.tool-link");
var change = $(".lista ul li a.change");
var change200 = $(".lista ul li a.change200");
var change300 = $(".lista ul li a.change300");
var change400 = $(".lista ul li a.change400");

klik.css("cursor", "pointer");

var divy = klik.next("div.tooltip");
divy.hide();

klik.click(function(){
					
	if ($(this).prev().is(":not(:checked)")) {
		
			$(this).prev().attr("checked", "checked");
		
	} else {
	
			$(this).prev().removeAttr("checked");
	
	};
	
return false;

});

change.fancybox({
							'hideOnContentClick': false,
							frameHeight : 400,
							frameWidth: 700
							}); 

change200.fancybox({
							'hideOnContentClick': false,
							frameHeight : 230,
							frameWidth: 700
							}); 

change300.fancybox({
							'hideOnContentClick': false,
							frameHeight : 270,
							frameWidth: 700
							}); 

change400.fancybox({
							'hideOnContentClick': false,
							frameHeight : 320,
							frameWidth: 700
							}); 




$(".scrollableall").serialScroll({
		items:'img',
		duration:2000,
		force:true,
		axis:'x',
		easing:'linear',
		lazy:true,
		interval:1, 
		step:1
	});	


//$(".scrollableall").scrollable().autoscroll({autoplay: true, loop: true, steps: 1, interval: 1000}).mousewheel().circular();



/*
change.click(function(){
	
	if ($("#change .item").is(":visible")){
		$("#change").empty();
	};

	$(this).next(".item").clone().appendTo("#change").fadeIn();
	$(".scrollable").scrollable().autoscroll({autoplay: true, loop: true, steps: 3}).circular();
	return false;
					
});

$("li.cloned").hide(); //usunac po wyborze wersji


		   



klik.bind("mouseenter", function() {
								 
	if ($("div.tooltip").hasClass("active")) {
		
			$("div.tooltip").removeClass("active").fadeOut();
		
	};
	
	$(this).next().addClass("active, zindex-1").fadeIn();
	$(this).addClass("zindex-2");	
	$(this).prev().addClass("zindex-2");
		
});


$("div.lista ul li:not(ul.items li)").bind("mouseleave", function() {

	$(this).parent().find("input, a.tool-link").removeClass("zindex-2");

	divy.removeClass("active").fadeOut();

});*/
	
				   

	
$(".ukryjDane").hide();



$("#podajDane").click(function(){
					
	if($(".ukryjDane").is(":visible")){
		$(".ukryjDane").hide();
	//	$(".ukryjDane input").val("");
	} else {
		$(".ukryjDane").fadeIn();
	};				 

});



	

	
});




