Cufon.replace('#leftpanel ul li a:not(#leftpanel ul.normal li a), .cufon');
Cufon.replace('#leftpanel ul li .date',{
    fontSize: '48px'
});
Cufon.replace('h1', {
    textShadow: '-2px -3px rgba(50, 0, 0, 0.65)',
    fontSize: '56px',
    fontWeight: 'bold'
});
Cufon.replace('h2', {
    fontSize: '48px'
});
Cufon.replace('#plyty h2', {
 textShadow: '-2px -3px rgba(50, 0, 0, 0.65)'   
});
Cufon.replace('h2 span, h4.en-link', {
    fontSize: '36px'
});

Cufon.replace('h5.en-link', {
    fontSize: '22px'
});

Cufon.replace('h5.en-link1', {
    fontSize: '34px'
});

Cufon.replace('#adres p', {
    fontSize: '22px'
});
Cufon.replace('.zamknij', {
    fontSize: '22px'
});
function ukryjBanner() {
$('.banner').click(function(){
$(".banner").css("display", "none");						 								 
});
}
$(document).ready(function(){
						   
						   $.ajaxSetup ({
    // Disable caching of AJAX responses */
    cache: false
}); 
$(document).ready(function() {

if ($.cookie("banner")) {	
$(".banner").css("display", "none");	
return;
}
else {
$('.banner').load('banner.html', '', ukryjBanner);	
$.cookie("banner", "pokaz", { expires: 0.1});
}
});	

	 			   
     
	 
	 
	 
	 
	 
	 //$(".banner").css("position", "fixed");
     $(".banner").css("top", "110px");
	 $(".banner").css("z-index", "10px");
   
});
function zamykanie () {	
$('.zamknij').click(function(){			
$('.tabka').next().slideUp('normal');
              $('.tabka').removeClass('active');
			   window.location.replace('');
                return false;
							   
			});		
		}	
$(document).ready(function(){
	
					   	  

						   
						   						  
						    $('.tabka').each(function() {
						    var adres = $(this).attr('href');
							var count = adres.indexOf(".html");
							var subname =adres.slice(0, count);
							$(this).attr('href', '#' + subname);					
							 });
						



	

});
function aClick() {
$('.tabka').next().slideUp('fast');
$('.tabka').removeClass('active');
var adres = window.location.href;
var afterhash =location.hash.slice(1);
var id = '#'+ afterhash;
var klasa = ".tabka[href$="+ afterhash + "]";
$(klasa).addClass("active");
 $(klasa).next().css({
            'min-height' : '1px'
        });
$(klasa).next().slideUp('fast'); 
var toLoad = afterhash + '.html'+' .content';

function showNewContent() {
            Cufon.refresh();
			
                   $(this).slideDown('slow');
				   zamykanie();
				   $('.w_przygotowaniu').colorbox({speed:10, opacity:0.5});;
				$('#czytaj').css('display', 'none');
				$('#dziecieca_stolica .wiecej').click( function () {
$('#czytaj').slideToggle('slow');
return false

							  });

		}

$(klasa).next().load(toLoad, '',showNewContent );	




$('.active').click(function(){
$('.tabka').next().slideUp('normal');
$('.tabka').removeClass('active');
window.location.replace('');
return false;
              

			
                
             });
            
			


}


$(function(){
a = location.hash;
if (a) {
	aClick();
}
$(window).bind( 'hashchange', function(){
a = location.hash;	
if (a) {
	aClick();
}
});




/*$('#signup #zapiszsie').click(function(event){
var poprawnosc = $("#signup").valid();
if (poprawnosc == true) {  
event.preventDefault();
pageUrl = $('#signup').attr("action");
$.ajax( 
    { 
        url: pageUrl, 
        cache: false, 
        success: function(message) 
        { 
        $('#signup').empty().append('<p class= "message">' + message + '</p>'); 
		
        } 
    }); 
}
});
*/





});



