// JavaScript Document
 $(document).ready(function(){
        $(".tab_wybrany").fadeIn();
        $(".tab_link").live("click", function(event){
            event.preventDefault();
            $(".tab_link_wybrany").removeClass("tab_link_wybrany");
            $(this).addClass("tab_link_wybrany");
            var container_id = $(this).attr("title");
            $(".tab_wybrany").animate({                 
                height : "toggle" , opacity : "toggle" 
            },function(){
                $(this).removeClass("tab_wybrany");
                $(container_id).addClass("tab_wybrany");
                $(".tab_wybrany").animate({                   
                    height : "toggle" , opacity : "toggle"                    
                });
            });            
        });
    });
	
	
$(document).ready(function() {
	
	$(".tab_link").hover(function() { //On hover...
		
		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'
		
		//Set a background image(thumbOver) on the &lt;a&gt; tag 
		$(this).find("a.tab_link").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});
		//Fade the image to 0 
		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() //Hide the image after fade
		}); 
	} , function() { //on hover out...
		//Fade the image to 1 
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});
	
	$(".tab_link")(function() { //On hover...
			var thumbOut = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'
		
		//Set a background image(thumbOver) on the &lt;a&gt; tag 
		$(this).find("div.tab_link").css({'background' : 'url(' + thumbOut + ') no-repeat center top'});
		//Fade the image to 0 
		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() //Hide the image after fade
		}); 
	} , function() { //on hover out...
		//Fade the image to 1 
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});				

});

