	(
	function($) 
	{
		$.fn.orphans = function()
		{
			var txt = [];
			this.each
			(
				function()
				{
					$.each
					(
						this.childNodes, function() 
						{
							if (this.nodeType == 3 && $.trim(this.nodeValue)) txt.push(this)
						}
					)
				}
			); 
		return $(txt);
		};
	}
	)(jQuery);

	$(
		function() 
		{
			$('div.day01 ul').find('ul.collapse').hide();
			$('div.day01 .expand').click
			(
				function() 
				{
					$(this).toggleClass('open').siblings().removeClass('open').end()
					.find('ul').slideToggle().end()
					.siblings('li').find('ul:visible').slideToggle(); // előző bezárása
				}
			);
		}
	);

	$(
		function() 
		{
			$('div.day02 ul').find('ul.collapse').hide();
			$('div.day02 .expand').click
			(
				function() 
				{
					$(this).toggleClass('open').siblings().removeClass('open').end()
					.find('ul').slideToggle().end()
					.siblings('li').find('ul:visible').slideToggle(); // előző bezárása
				}
			);
		}
	);

	$(
		function() 
		{
			$('div.day03 ul').find('ul.collapse').hide();
			$('div.day03 .expand').click
			(
				function() 
				{
					$(this).toggleClass('open').siblings().removeClass('open').end()
					.find('ul').slideToggle().end()
					.siblings('li').find('ul:visible').slideToggle(); // előző bezárása
				}
			);
		}
	);
	
		$(
		function() 
		{
			$('div.rss_news ul').find('ul.collapse').hide();
			$('div.rss_news .expand').click
			(
				function() 
				{
					$(this).toggleClass('open').siblings().removeClass('open').end()
					.find('ul').slideToggle().end()
					.siblings('li').find('ul:visible').slideToggle(); // előző bezárása
				}
			);
		}
	);
