$(document).ready(function(){
     $("#scroll").jqGalScroll({height:370,width:1000,ease:'easeInOutCubic',speed:500});
});
    
    
function ShowThumbs(show) {
	
	if (show) {
	
		$(".jqGSPagination ul li a").each(function(i) { 	
			img = $("#img_"+i).attr("src");
			thumb = '<img src="'+img+'" width="120" height="40" />';
			$(this).html(thumb);
		});
		
		$(".jqGSPagination").addClass("scrollable");
		$(".scrollable").scrollable();
		
		$(".jqGSPagination ul li a").css("padding-right","16px");
		$("#showthumbs").hide();
		$("#shownumbers").show();
		$(".next").show();
		$(".prev").show();
		
	} else {
		
		$(".jqGSPagination ul li a").each(function(i) { 	
			$(this).html(i+1);
		});
		
		$(".jqGSPagination ul li a").css("padding-right","20px");
		//$("#scroll").removeClass("items");
		$(".scrollable").scrollable();
		
		$("#shownumbers").hide();
		$("#showthumbs").show();
		$(".next").hide();
		$(".prev").hide();
		
	}

}