$(document).ready(function(){
	
	$("div.scrollable").scrollable();
	
	$(".items span.clickbox").click(function() {
		// find box to activate
		var showBox = $(this).attr("rel");
		
		// find currently active box
		$(".box-wrap div.box-pane:visible").fadeOut("fast").hide();
		
		$("."+showBox).fadeIn("fast");
 
	// when page loads simulate a "click" on the first image 
	}).filter(":first").click();
});