//Scrolling Sidebar text 
jQuery(function( $ ){
		//borrowed from jQuery easing plugin
		//http://gsgd.co.uk/sandbox/jquery.easing.php

		var shuffled = $('#news-items').find('li').get().slice(0).sort(function(){
			return Math.round(Math.random())-0.5;//just a random number between -0.5 and 0.5
		});
		$(shuffled).appendTo($('#news-items'));
		
		$('#screen').serialScroll({
			target:'#view',
			items:'li', // Selector to the items ( relative to the matched elements, '#sections' in this case )
			prev:'#left',// Selector to the 'prev' button (absolute!, meaning it's relative to the document)
			next:'#right',// Selector to the 'next' button (absolute too)
			duration:400,
			constant:false,// Allows the cycle back to start animation to take the same time as item to item animations
			exclude:0
		});
	 });


//Expandable Text Toggle
$(document).ready(function()
{

$('a.expand').click(function() {
	$(this).parent().find(".expandable").slideToggle(1);
    $(this).text($(this).text() == 'More' ? 'Hide' : 'More'); // <- HERE
   if ($(this).hasClass('more')) 
	{
		$(this).removeClass('more');
		$(this).addClass('back');
	} else {
		$(this).removeClass('back');
		$(this).addClass('more');
	};
	return false;
});
 });