
	$(function(){ 
		
		// die IE6, die...
		$(".news:not(.special), .news-item:not(.special)").hover(
			function() { $(this).addClass('news-hl'); },
			function() { $(this).removeClass('news-hl'); }
		);
		$(".special").hover(
			function() { $(this).addClass('special-hl'); },
			function() { $(this).removeClass('special-hl'); }
		);
		
		// zamień obrazki @ na znaczek
		$(".email img").replaceWith('@');

		// utwórz animacje linków do poprzedniej i kolejnej strony
		$("#page-prev").hover(
			function() { $(this).attr('src', '/img/page_prev_on.gif'); },
			function() { $(this).attr('src', '/img/page_prev_off.gif'); }
		);
		$("#page-next").hover(
			function() { $(this).attr('src', '/img/page_next_on.gif'); },
			function() { $(this).attr('src', '/img/page_next_off.gif'); }
		);

		// uruchom Lightbox w galeriach zdjęć
		$('a.lightbox').lightBox({
        	imageLoading: '/img/lightbox-ico-loading.gif',
			imageBtnClose: '/img/lightbox-btn-close.gif',
			imageBtnPrev: '/img/lightbox-btn-prev.gif',
			imageBtnNext: '/img/lightbox-btn-next.gif',
			txtImage: 'Obraz',
			txtOf: 'z'
//			fixedNavigation: true
        });
        
        // zmień cel wyszukiwarki
        $("#search form").attr('action', '/szukaj.html').find('input[name=cof]').attr('value', 'FORID:10');

	});