$(function() {

    $("#blavod").css("display" , "none");
    $("#du").css("display" , "none");
    $("#thirty").css("display" , "none");
    $("#cherry").css("display" , "none");
    $("#caramel").css("display" , "none");
    
    });
    
$(function() {
    
    $("#pick-a-poison li a").click(function() {
        
        // Figure out current list via CSS class
        var curList = $("#pick-a-poison li a.current").attr("href");
        
        // List moving to
        var $newList = $(this);
        
        // Set outer wrapper height to height of current inner list
        var curListHeight = $("#all-list-wrap").height();
        $("#all-list-wrap").height(curListHeight);
        
        // Remove highlighting - Add to just-clicked tab
        $("#pick-a-poison li a").removeClass("current");
        $newList.addClass("current");
        
        // Figure out ID of new list
        var listID = $newList.attr("href");
        
        if (listID != curList) {
            
            // Fade out current list
            $(curList).fadeOut(400, function() {
                
                // Fade in new list on callback
                $(listID).fadeIn();
                $(curList).css("display" , "none")
                // Adjust outer wrapper to fit new list snuggly
                var newHeight = $(listID).height();
                $("#all-list-wrap").animate({
                    height: newHeight
                });
            	
            });
           
        }        
        
        // Don't behave like a regular link
        return false;
    });

});

$(function() {

	$(".thumb").click(function(){
	     window.location=$(this).find("a").attr("href");
	     return false;
	});
});
