			  $(document).ready(function(){
				  
					
					$.Lightbox.construct({
						show_helper_text: false,
						show_linkback:	false,
						text: {
							image:		_lightbox_image,
							of: _lightbox_of,
							close: _lightbox_close
						}
					});				  
				  
			  	$("#My-Account").pngFix();
			  //	$("select").selectbox();
				$(".scrollable").scrollable({
					size:8,      
					next: ".choose-color-next",
					prev: ".choose-color-prev",
					disabledClass: "choose-color-disable"
				});			  	
			    $("#faq").tabs("#faq div.pane", {tabs: 'h2', effect: 'slide', initialIndex: null});

				
			    initDetails();
			    

				
				$("div#Product div.Product-Details div.label").hover(
				function(){
					if(!$(this).children("span.radioButton").children("input:radio").is(":checked"))
					$(this).css("background","#f4f1ec");
				},
				function(){
					if(!$(this).children("span.radioButton").children("input:radio").is(":checked"))
					$(this).css("background","#ffffff");
				}
				);
				$("div#Product div.Product-Details div.label").click(
				function(){
					$("div#Product div.Product-Details label").css("background","#ffffff");
					$(this).css("background","#f4f1ec");
				}
				);
				
				//$("div#Product div.Product-Details label input:text").focus(function(){alert("blur")})
				
/*				$("div.frow span.info").hover(function(){
					var atrybut =  $(this).attr("title");
					alert(atrybut);	
					initTooltips()
				});		*/	
			

	$customCheck = $("input.customC:checkbox");
	$customCheck.wrap('<div class="customCheck"></div>');
	$customCheck.parent().toggle(function(){
		$(this).addClass("customCheckOn");
		$(this).children().attr("checked","checked");
		$(this).children().change(function(){
			return true;
		})
		.change();
	}, function(){
		$(this).removeClass("customCheckOn");
		$(this).children().attr("checked","");
		$(this).children().change(function(){
			return true;
		})
		.change();
	}
	)
	$customRadio = $("input.customR:radio");
	$customRadio.wrap('<div class="customRadio"></div>');
	$customRadio.parent().click(function(){
		var atrybut = $(this).children().attr("name");
		$customRadio.filter("input[name='"+atrybut+"']").parent().removeClass("customRadioOn");
		$(this).addClass("customRadioOn");
		$(this).children().attr("checked","checked");
	})	
			
			  });
			  
			  
function refreshCheks() {
	$customCheck = $("input.customC:checkbox");
	$customCheck.parent().removeClass("customCheckOn");
	$customCheck = $("input.customC:checked");
	$customCheck.parent().addClass("customCheckOn");
	
}			  
function initTooltips() {
	$("div.frow span.info").tooltip({      
		// place tooltip on the right edge     
		position: "center left",      
		// a little tweaking of the position     
		offset: [-2, 260],      
		// use the built-in fadeIn/fadeOut effect     
		effect: "fade", 
		lazy: true,
		cancelDefault: true,
		// custom opacity setting     
		opacity: 0.7,      
		// use this single tooltip element     
		tip: '.tooltip'  });	
	
}

function initDetails() {
	$("a.see-detail-list").toggle(
			function(){
				$(this).text("schowaj szczegóły");
				$(this).next().css("display","block");
				
				//alert("on");
			},
			function(){
				$(this).text("pokaż szczegóły");
				$(this).next().css("display","none");
				//alert("off");
			}
		);
}