Cufon.set('fontFamily', 'MyriadPro');
Cufon.replace('#top .slogan');
Cufon.replace('#side h2');

Cufon.set('fontFamily', 'MyriadProCond');
Cufon.replace('#top .desc h2');
Cufon.replace('#footer h2');
Cufon.replace('.entry h1');
Cufon.replace('#home h2');


/* TA Slideshow v.1.0 */
(function($){
  $.fn.ta_slideshow = function() 
  {    
    var settings = {
      'interval' : 5000,
      'speed'    : 'slow'
    };
    
    var id = this;
    var els = id.children();

    var count = id.children().length;
    var current = 0;

    els.hide();
    els.eq(0).show();
    
    setInterval(function(){
    
        next = current + 1 >= count ? 0 : current + 1;

        els.eq(current).fadeOut(settings['speed'])
        els.eq(next).fadeIn(settings['speed']);
        current = current + 1 >= count ? 0 : current + 1;
        
      }, settings['interval']
    );

  };
})(jQuery);

$('.btn_text_more').click(function(){
	$(this).parent().parent().find('.text_more').slideToggle();
	if ($(this).html() == 'więcej') {
		$(this).html('mniej');
	} else {
		$(this).html('więcej');
	}	
	return false;
})
