/**/
$(document).ready(function(){		
		$('#top #nav li ul li ul').parent().addClass('sec');	
		
		$('#slider-box').cycle({ 
        fx:     'fade', 
        speed:   500, 
        timeout: 5000, 
        pager:  '#slider-nav', 
        before: function() {  
            $('#caption').html(this.alt); 
        } 
    }); 
		
	//	$(".articles-list > .latest-post-wrap:eq(2)").css("margin-right", "0");
		//$(".articles-list > .latest-post-wrap:eq(5)").css("margin-right", "0");
		//$(".articles-list > .latest-post-wrap:eq(8)").css("margin-right", "0");
		//$(".articles-list > .latest-post-wrap:eq(11)").css("margin-right", "0");
		//$(".articles-list > .latest-post-wrap:eq(14)").css("margin-right", "0");
		//$(".articles-list > .latest-post-wrap:eq(17)").css("margin-right", "0");
	//	$(".articles-list > .latest-post-wrap:eq(20)").css("margin-right", "0");
	//$(".articles-list > .latest-post-wrap:eq(23)").css("margin-right", "0");
	//	$(".articles-list > .latest-post-wrap:eq(26)").css("margin-right", "0");
	//	$(".articles-list > .latest-post-wrap:eq(29)").css("margin-right", "0");
		$(".articles-list > .latest-post-wrap:nth-child(3n+1)").css("margin-right", "0");	
		$(".content  > .latest-post-wrap:nth-child(3n)").css("margin-right", "0");
		$("a[href$='.pdf']").addClass("pdf").html("Przeczytaj ca&#322;&#010;y artyku&#322;&#010;");
		
		$(".promo:eq(3)").css("margin-right", "0");							
/*Ostatnio dodane slider*/
//$('#featured-slider').before('<div id="loop-nav">').cycle({ 
//    fx:     'fade', 
//    speed:  '700', 
//    timeout: 5000, 
//    pager:  '#loop-nav' 
//});
/*Partnerzy slider*/
$('#p-slider').cycle({ 
    fx:     'fade', 
    speed:  '300', 
    timeout: 3000,  
    prev:   '#prevBtn', 
    next:   '#nextBtn'
});
/* Równe kolumny */
//$('#article-others .others-box').equalHeights();
//$('.featured-title h2 a').equalHeights();
//$('.category-box ul li').equalHeights(); 
/*Wywolanie Lightbox'a dla galerii*/
$('.gallery a').lightBox({fixedNavigation:true});	
/* Partnerzy zakladki */


	$('.gallery a').lightBox({fixedNavigation:true});


/**/
})

$(window).load(function() {  
$('.others-box h2').equalHeights();
$('#article-others .others-box').equalHeights();
$('.featured-title h2 a').equalHeights();
 
$('a#zaloguj-link').click(function() {
   $('#newsletter-box').toggle('medium');
	return false;
});
});


