

	function sliderLoaded() {
		
			setTimeout(function() {
				
				var containerWidth = 100;
				var thumbsCount = $(".nivo-controlNav a").length;
				var newThumbsPos;
				
				containerWidth = (containerWidth * thumbsCount) + "px";
				
				console.log(containerWidth);
				
				$(".nivo-controlNav").css("width", containerWidth);
				
				
				$(".nivo_slider").append('<div id="thumbsLeft"></div>');
				$(".nivo_slider").append('<div id="thumbsRight"></div>');
				
				var thumbsMax = -(parseInt($(".nivo-controlNav").width()) - 583);
				
				$(".nivo_slider #thumbsRight").click(function() {
					
					newThumbsPos = (parseInt($(".nivo-controlNav").css("left")) - 300) + "px";
					console.log(thumbsMax);
					if(parseInt($(".nivo-controlNav").css("left")) != thumbsMax) {
						$(".nivo-controlNav").stop().clearQueue().animate({ 
							left: newThumbsPos 
						}, { queue: false, step: function(now, fx) {
								if(now < thumbsMax)
									$(this).animate({ left: thumbsMax }, 100);
						}});
					}
				});
				$(".nivo_slider #thumbsLeft").click(function() {
					
					newThumbsPos = (parseInt($(".nivo-controlNav").css("left")) + 300) + "px";
					
					if($(".nivo-controlNav").css("left") != "40px") {
						$(".nivo-controlNav").stop().clearQueue().animate({ 
							left: newThumbsPos 
						}, { queue: false, step: function(now, fx) {
								if(now > 40)
									$(this).animate({ left: "40px"}, 100);
						}});
					}
				});
						
				
			}, 600);
		
	}
	
