$(document).ready(function()
{
	$('.headers > h3').click(function()
	{
		if ($(this).hasClass('parent'))
		{
			return false;
			//$(this) = $(this).next('h3');
		}

	    $('.headers > h3').removeClass('selected');
	    $(this).addClass('selected');
		$('.headers .content:visible').slideUp('fast');
		$(this).next('.content').slideDown('fast');
	});

//    $('h3#biomass-technology-researches').click(function()
//    {
//    	self.location = '/files/other/badanie-z-zabrza.pdf';
//    });

/*
    $(".iframeGallery").fancybox({
		'width'				: '70%',
		'height'			: '100%',
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
*/

});

