$(function(){
	$("#longdescription-0").hide();
	$("#longdescription").hide();

	$("#moreinfolink-0").click(function(){
		$("#shortdescription-0").hide();
		$("#longdescription-0").show();
		return false;
	});
	$("#lessinfolink-0").click(function(){
		$("#shortdescription-0").show();
		$("#longdescription-0").hide();
		return false;
	});
	
	$("#moreinfolink").click(function(){
		$("#shortdescription").hide();
		$("#longdescription").show();
		return false;
	});
	$("#lessinfolink").click(function(){
		$("#shortdescription").show();
		$("#longdescription").hide();
		return false;
	});

	$('#news').append('<a href="#" id="news-more-link">More Posts &gt;&gt;</a><div id="news-more" style="display:none;"></div>'); //Add elements to the news div
	$('#news p').each(function(i){	//Loop through all of the p tags in the news div
		$(this).removeAttr('style');
		if ( i > 9 ) {	//Leave the firs n there
			$(this).appendTo('#news-more');	//Move the rest into the more div
		}
	});
	//show the more-news div when the more posts link is clicked
	$('#news-more-link').click(function(){
		$('#news-more').show();
		$(this).hide();
		return false;
	});

	 $('.slideshow').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed: 500,
		timeout: 9000
	});
});
