/* function to hide sidebox list items greater than a given number */
$(document).ready(function(){
	$('.sideBoxListContent ul').each(function(){
		if ($(this).children().length > 10) {
			// cribbed from StackOverflow :-)
			$(this)
			  .find('li:gt(8)')
			  .hide()
			  .end()
			  .append(
			    $('<li id="sideBoxListShowMore">More...</li>').mouseover( function(){
			      $(this).siblings(':hidden').show().end().remove();
			    })
			);
		};
	});
});

