// JavaScript Document

$(document).ready(function(){
	var currentPosition = 0;
 	var slideWidth = 594;
	var slides = $('.slide');
  	var numberOfSlides = slides.length;

  	// Remove scrollbar in JS
  	$('#slidesContainer').css('overflow', 'hidden');

  	// Wrap all .slides with #homeStageSlider div
  	slides.wrapAll('<div id="homeStageSlider"></div>')
    // Float left to display horizontally, readjust .slides width
	.css({'float' : 'left', 'width' : slideWidth });
	
	// Set #homeStageSlider width equal to total width of all slides
	$('#homeStageSlider').css('width', slideWidth * numberOfSlides);
	
	// Insert controls in the DOM
	$('#slideshow')
    
	// Hide left arrow control on first load
	manageControls(currentPosition);
	
	// Create event listeners for .controls clicks
	$('.HS-control').bind('click', function(){
		oldPosition = currentPosition;
		// Determine new position
		currentPosition = ($(this).attr('id')=='HS-rightControl') ? currentPosition+1 : currentPosition-1;
		
		// Hide / show controls
		manageControls(currentPosition);
		
		if(oldPosition < currentPosition){
			movingRight = true;
		}else{
			movingRight = false;
		}
		
		// Move homeStageSlider using margin-left
		$('#homeStageSlider').animate({'marginLeft' : slideWidth*(-currentPosition)});
		
		setRollOver(currentPosition);
		
		if(movingRight){
			mySlideID1 = "#sa"+currentPosition;
			mySlideID2 = "#sa"+(currentPosition + 1);
		}else{
			mySlideID1 = "#sa"+(currentPosition+2);
			mySlideID2 = "#sa"+(currentPosition+1);
		}
		
		$(mySlideID1).slideUp("slow", function () {
			$(mySlideID2).slideDown("slow");
		});
	});
	
	if(numberOfSlides > 0){
		$('.jump_1').bind('mouseover', function(){ hlthis(0, 'slideBoxNum_0','jump_1 roll'); });
		$('.jump_1').bind('mouseout',  function(){ hlthis(0, 'slideBoxNum_0','jump_1 norm'); });
	}
	if(numberOfSlides > 1){
		$('.jump_2').bind('mouseover', function(){ hlthis(1, 'slideBoxNum_1','jump_2 roll'); });	
		$('.jump_2').bind('mouseout',  function(){ hlthis(1, 'slideBoxNum_1','jump_2 norm'); });
	}
	if(numberOfSlides > 2){
		$('.jump_3').bind('mouseover', function(){ hlthis(2, 'slideBoxNum_2','jump_3 roll'); });
		$('.jump_3').bind('mouseout',  function(){ hlthis(2, 'slideBoxNum_2','jump_3 norm'); });
	}
	if(numberOfSlides > 3){
		$('.jump_4').bind('mouseover', function(){ hlthis(3, 'slideBoxNum_3','jump_4 roll'); });
		$('.jump_4').bind('mouseout',  function(){ hlthis(3, 'slideBoxNum_3','jump_4 norm'); });
	}
	if(numberOfSlides > 4){
		$('.jump_5').bind('mouseover', function(){ hlthis(4, 'slideBoxNum_4','jump_5 roll'); });
		$('.jump_5').bind('mouseout',  function(){ hlthis(4, 'slideBoxNum_4','jump_5 norm'); });
	}
	
	if(numberOfSlides > 5){
		$('.jump_6').bind('mouseover', function(){ hlthis(5, 'slideBoxNum_5','jump_6 roll'); });
		$('.jump_6').bind('mouseout',  function(){ hlthis(5, 'slideBoxNum_5','jump_6 norm'); });
	}
	if(numberOfSlides > 6){
		$('.jump_7').bind('mouseover', function(){ hlthis(6, 'slideBoxNum_6','jump_7 roll'); });
		$('.jump_7').bind('mouseout',  function(){ hlthis(6, 'slideBoxNum_6','jump_7 norm'); });
	}
	if(numberOfSlides > 7){
		$('.jump_8').bind('mouseover', function(){ hlthis(7, 'slideBoxNum_7','jump_8 roll'); });
		$('.jump_8').bind('mouseout',  function(){ hlthis(7, 'slideBoxNum_7','jump_8 norm'); });
	}
	if(numberOfSlides > 8){
		$('.jump_9').bind('mouseover', function(){ hlthis(8, 'slideBoxNum_8','jump_9 roll'); });
		$('.jump_9').bind('mouseout',  function(){ hlthis(8, 'slideBoxNum_8','jump_9 norm'); });
	}
	if(numberOfSlides > 9){
		$('.jump_10').bind('mouseover', function(){ hlthis(9, 'slideBoxNum_9','jump_10 roll'); });
		$('.jump_10').bind('mouseout',  function(){ hlthis(9, 'slideBoxNum_9','jump_10 norm'); });
	}
	if(numberOfSlides > 10){
		$('.jump_11').bind('mouseover', function(){ hlthis(10, 'slideBoxNum_10','jump_11 roll'); });
		$('.jump_11').bind('mouseout',  function(){ hlthis(10, 'slideBoxNum_10','jump_11 norm'); });
	}
	if(numberOfSlides > 11){
		$('.jump_12').bind('mouseover', function(){ hlthis(11, 'slideBoxNum_11','jump_12 roll'); });
		$('.jump_12').bind('mouseout',  function(){ hlthis(11, 'slideBoxNum_11','jump_12 norm'); });
	}
	if(numberOfSlides > 12){
		$('.jump_13').bind('mouseover', function(){ hlthis(12, 'slideBoxNum_12','jump_13 roll'); });
		$('.jump_13').bind('mouseout',  function(){ hlthis(12, 'slideBoxNum_12','jump_13 norm'); });
	}
	if(numberOfSlides > 13){
		$('.jump_14').bind('mouseover', function(){ hlthis(13, 'slideBoxNum_13','jump_14 roll'); });
		$('.jump_14').bind('mouseout',  function(){ hlthis(13, 'slideBoxNum_13','jump_14 norm'); });
	}
	if(numberOfSlides > 14){
		$('.jump_15').bind('mouseover', function(){ hlthis(14, 'slideBoxNum_14','jump_15 roll'); });
		$('.jump_15').bind('mouseout',  function(){ hlthis(14, 'slideBoxNum_14','jump_15 norm'); });
	}
	if(numberOfSlides > 15){
		$('.jump_16').bind('mouseover', function(){ hlthis(15, 'slideBoxNum_15','jump_16 roll'); });
		$('.jump_16').bind('mouseout',  function(){ hlthis(15, 'slideBoxNum_15','jump_16 norm'); });
	}
	if(numberOfSlides > 16){
		$('.jump_17').bind('mouseover', function(){ hlthis(16, 'slideBoxNum_16','jump_17 roll'); });
		$('.jump_17').bind('mouseout',  function(){ hlthis(16, 'slideBoxNum_16','jump_17 norm'); });
	}
	if(numberOfSlides > 17){
		$('.jump_18').bind('mouseover', function(){ hlthis(17, 'slideBoxNum_17','jump_18 roll'); });
		$('.jump_18').bind('mouseout',  function(){ hlthis(17, 'slideBoxNum_17','jump_18 norm'); });
	}
	if(numberOfSlides > 18){
		$('.jump_19').bind('mouseover', function(){ hlthis(18, 'slideBoxNum_18','jump_19 roll'); });
		$('.jump_19').bind('mouseout',  function(){ hlthis(18, 'slideBoxNum_18','jump_19 norm'); });
	}

	
	
	// Create event listeners for .Specific Number click
	if(numberOfSlides > 0){ $('.jump_1').bind('click', function(){ jumptoNum(0); }); }
	if(numberOfSlides > 1){	$('.jump_2').bind('click', function(){ jumptoNum(1); }); }
	if(numberOfSlides > 2){	$('.jump_3').bind('click', function(){ jumptoNum(2); }); }
	if(numberOfSlides > 3){	$('.jump_4').bind('click', function(){ jumptoNum(3); }); }
	if(numberOfSlides > 4){	$('.jump_5').bind('click', function(){ jumptoNum(4); }); }	
	if(numberOfSlides > 5){ $('.jump_6').bind('click', function(){ jumptoNum(5); }); }
	if(numberOfSlides > 6){ $('.jump_7').bind('click', function(){ jumptoNum(6); }); }
	if(numberOfSlides > 7){ $('.jump_8').bind('click', function(){ jumptoNum(7); }); }
	if(numberOfSlides > 8){ $('.jump_9').bind('click', function(){ jumptoNum(8); }); }
	if(numberOfSlides > 9){ $('.jump_10').bind('click', function(){ jumptoNum(9); }); }	
	if(numberOfSlides > 10){ $('.jump_11').bind('click', function(){ jumptoNum(10); }); }
	if(numberOfSlides > 11){ $('.jump_12').bind('click', function(){ jumptoNum(11); }); }
	if(numberOfSlides > 12){ $('.jump_13').bind('click', function(){ jumptoNum(12); }); }
	
	if(numberOfSlides > 13){ $('.jump_14').bind('click', function(){ jumptoNum(13); }); }
	if(numberOfSlides > 14){ $('.jump_15').bind('click', function(){ jumptoNum(14); }); }
	if(numberOfSlides > 15){ $('.jump_16').bind('click', function(){ jumptoNum(15); }); }
	if(numberOfSlides > 16){ $('.jump_17').bind('click', function(){ jumptoNum(16); }); }
	if(numberOfSlides > 17){ $('.jump_18').bind('click', function(){ jumptoNum(17); }); }
	if(numberOfSlides > 18){ $('.jump_19').bind('click', function(){ jumptoNum(18); }); }

	
	function hlthis(myPos, id1, id2){ 
		if (myPos != currentPosition){
			document.getElementById(id1).className = id2;
		}
	}
	
	function jumptoNum(whichSlide){
		setRollOver(whichSlide);
		
		// Determine new position
		currentPosition = whichSlide;
		
		// Hide / show controls
		manageControls(currentPosition);
		
		// Move homeStageSlider using margin-left
		$('#homeStageSlider').animate({'marginLeft' : slideWidth*(-currentPosition)},"slow");
		
		for(i=1;i<=numberOfSlides;i++){
			myID = "#sa"+i;
			$(myID).hide();
		}
		
		mySlideID1 = "#sa"+(currentPosition+1);
		$(mySlideID1).slideDown("slow");
	}
	
	function setRollOver(whichSlide){
		if(whichSlide == 0){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 roll"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
			
		}else if (whichSlide == 1){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 roll"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
			
		}else if (whichSlide == 2){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 roll"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 3){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 roll"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 4){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 roll"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 5){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 roll"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 6){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 roll"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 7){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 roll"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 8){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 roll"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 9){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 roll"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 10){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 roll"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 11){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 roll"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 12){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 roll"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 13){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 roll"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 14){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 roll"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 15){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 roll"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 16){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 roll"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 17){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 roll"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 norm"; }
		}else if (whichSlide == 18){
			if(numberOfSlides > 0){	document.getElementById('slideBoxNum_0').className = "jump_1 norm"; }
			if(numberOfSlides > 1){ document.getElementById('slideBoxNum_1').className = "jump_2 norm"; }
			if(numberOfSlides > 2){ document.getElementById('slideBoxNum_2').className = "jump_3 norm"; }
			if(numberOfSlides > 3){ document.getElementById('slideBoxNum_3').className = "jump_4 norm"; }
			if(numberOfSlides > 4){ document.getElementById('slideBoxNum_4').className = "jump_5 norm"; }
			if(numberOfSlides > 5){	document.getElementById('slideBoxNum_5').className = "jump_6 norm"; }
			if(numberOfSlides > 6){ document.getElementById('slideBoxNum_6').className = "jump_7 norm"; }
			if(numberOfSlides > 7){ document.getElementById('slideBoxNum_7').className = "jump_8 norm"; }
			if(numberOfSlides > 8){ document.getElementById('slideBoxNum_8').className = "jump_9 norm"; }
			if(numberOfSlides > 9){ document.getElementById('slideBoxNum_9').className = "jump_10 norm"; }
			if(numberOfSlides > 10){ document.getElementById('slideBoxNum_10').className = "jump_11 norm"; }
			if(numberOfSlides > 11){ document.getElementById('slideBoxNum_11').className = "jump_12 norm"; }
			if(numberOfSlides > 12){ document.getElementById('slideBoxNum_12').className = "jump_13 norm"; }
			if(numberOfSlides > 13){ document.getElementById('slideBoxNum_13').className = "jump_14 norm"; }
			if(numberOfSlides > 14){ document.getElementById('slideBoxNum_14').className = "jump_15 norm"; }
			if(numberOfSlides > 15){ document.getElementById('slideBoxNum_15').className = "jump_16 norm"; }
			if(numberOfSlides > 16){ document.getElementById('slideBoxNum_16').className = "jump_17 norm"; }
			if(numberOfSlides > 17){ document.getElementById('slideBoxNum_17').className = "jump_18 norm"; }
			if(numberOfSlides > 18){ document.getElementById('slideBoxNum_18').className = "jump_19 roll"; }
		}
		
	}
	
	// manageControls: Hides and Shows controls depending on currentPosition
	function manageControls(position){
		// Hide left arrow if position is first slide
		if(position==0){ $('#HS-leftControl').hide() } else{ $('#HS-leftControl').show() }
		
		// Hide right arrow if position is last slide
		if(position==numberOfSlides-1){ $('#HS-rightControl').hide() } else{ $('#HS-rightControl').show() }
	}
});
