jQuery(document).ready(function(){
	// dodaje klase "borderB" która usuwa border z ostatniego elementu w listach
	jQuery(".zobaczwiecej li:last, .top10 li:last, .arch li:last").css({"border": 0});

	// usuwa belki po prawej stronie jeśli nie ma w ich kategorii artykułów
	for ($i = 2; $i >= 0; $i--) {
		$ik = jQuery(".rightLists:eq("+$i+") > ul > li").size();
		if ($ik == 0) {
			jQuery(".rightLists:eq("+$i+")").remove();
		}
	}

	jQuery("#slideCont .barSlideBox:first").addClass("active");
	jQuery("#slideCont .slideBox:first").removeClass("hide");

	// dodaje "więcej" do każdego li w box-ach na stronie głównej
	/*
	jQuery("ul#pzmsport > li > a").each(function(){
	$this = jQuery(this);
		$this.find(".title").wrapAll("<span class='tm'></span>");
		$this.find(".tm").append('<span class="more">więcej&#160;&#187;</span>');
	});

	jQuery("ul#pzmsport > li:first > a").prepend(jQuery("ul#pzmsport > li:first > a > .tm > .title"));
	jQuery("ul#pzmsport > li:first > a > .tm").remove();
	jQuery("ul#pzmsport > li:first > a").append('<span class="more">więcej&#160;&#187;</span>');
	*/
	//jQuery("ul#pzmsport > li:first > a").apppend('<span class="more">więcej&#160;&#187;</span>');
	/*
	jQuery("ul#pzmturystyka > li > a").each(function(){
	$this = jQuery(this);
		$this.find(".title").wrapAll("<span class='tm'></span>");
		$this.find(".tm").append('<span class="more">więcej&#160;&#187;</span>');
	});

	jQuery("ul#pzmturystyka > li:first > a").prepend(jQuery("ul#pzmturystyka > li:first > a > .tm > .title"));
	jQuery("ul#pzmturystyka > li:first > a > .tm").remove();
	jQuery("ul#pzmturystyka > li:first > a").append('<span class="more">więcej&#160;&#187;</span>');
	*/

	// zmienia glowny box jezeli pojawia sie zdjecie
	//jQuery("ul#polecamy > li > a").prepend('<img src="_img/sample_temat.jpg"/>');
	if (jQuery("ul#polecamy > li > a > img").size() == 1) {
		jQuery("ul#polecamy").css({padding:"0"});
		//jQuery("ul#polecamy").css({background:"url(_img/temattygodnia2.jpg) no-repeat"});
		jQuery("ul#polecamy").css({backgroundPosition:"0 125px"});
	}
});