$(document).ready(function()
{
	$('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});

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

		var selected = $(this).hasClass('selected');
		
	    $('.headers > h3').removeClass('selected');
	    
	    if (!selected)
	    {
	    	$(this).addClass('selected');	    	
	    }

	    //$('.headers .content:visible').slideUp('fast');
	    $('.headers .content:visible').hide();

	    if (!selected)
	    {
	    	$(this).next('.content').slideDown('fast');
	    	//$(this).next('.content').show();
	    }
		
		/*
		$(this).toggleClass('selected');
		$(this).next('.content').slideToggle();
		*/
	});
	
	$(".fancybox").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});

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

});

