var lib =
{
	header :
	{
		init : function()
		{
			$(window).load(function(){
			$('#header img:gt(0)').hide();
			setInterval(function() {
				$('#header :first-child').fadeOut(1000).next('img').fadeIn()
				.end().appendTo('#header');},5000);
			});
		}
	},
	ie_hover :
	{
		init: function()
		{
			$(document).ready(function() {
			$("#menu li").hover(function() { 
				$(this).addClass("hover"); }, function() { 
					$(this).removeClass("hover"); 
				});
			});
		}
	},
	show_hide :
	{
		init: function()
		{
			$(document).ready(function() {
			$("[id=more]").hide();
			$("[id=link]").click(function() {
				$(this).parent().next().toggle("normal");
					}).toggle(function() {$(this).text('schowaj');}, function() {$(this).text("czytaj dalej");});
			});
		}
	}
}
lib.header.init();
lib.show_hide.init();
if ($.browser.msie) {lib.ie_hover.init();};
