$(document).ready(function() {
	
	$('.slideshow').slideshow();
	
	// Accordion
	$('.hl-cont .highlight-posts:not(:first)').hide();
	$('.hl-cont h3:first').addClass('selected-hl');
	$('.hl-cont h3').click(function() {
		$('.hl-cont h3').removeClass('selected-hl');
		$(this).addClass('selected-hl');
		$('.hl-cont .highlight-posts:visible').slideUp();
		$(this).next().slideDown('slow');
	});
	
//	$('.full-speaker').hide();
	$('.speaker-excerpt').hide();
	$('.full-speaker').css('height', '30px');
	
	$('.expand-speaker').click(function() {
		if($(this).hasClass('hidden')) {
		//	$(this).parent().find('.speaker-excerpt').slideDown();
			$(this).parent().find('.full-speaker').css('height', '30px');
			$(this).removeClass('hidden');
		} else {
		//	$(this).parent().find('.speaker-excerpt').slideUp();
			$(this).parent().find('.full-speaker').css('height','auto');
			$(this).addClass('hidden');
		}
		
		return false;
	});
	
});
