$(document).ready(function(){
	var imgList = $(".img-player").html();
	var imgOH;
	$(".img-player img").each(function(){
		$(".img-player img").ready(function(){
			imgOH = $(this).height();
		});
			bottom = imgOH - 499;
			$(this).css({"marginTop":-bottom});
	});
	$(".img-select ul").html(imgList);
	$(".img-select li").bind("click",function(){
		var num = $(this).index();
		var imgH = $("#projectGallery").height();
		var pos = -(num)*imgH;
		$(".img-player").animate({"top":pos},1000);	
	});
});

(function($){
window.onload=function(){ 
	$("#thumbnailsRight").thumbnailScroller({ 
		scrollerType:"hoverPrecise", 
		scrollerOrientation:"vertical", 
		scrollSpeed:2, 
		scrollEasing:"easeOutCirc", 
		scrollEasingAmount:800, 
		acceleration:4, 
		scrollSpeed:800, 
		noScrollCenterSpace:10, 
		autoScrolling:0, 
		autoScrollingSpeed:2000, 
		autoScrollingEasing:"easeInOutQuad", 
		autoScrollingDelay:500 
	});
}
})(jQuery);
