';} else {html = html + '
';}}document.getElementById('scrollNav').innerHTML = html;function select(n) {for (var i = startingNumber; i <= endingNumber; i++) {document.getElementById('thumb' + i).style.backgroundColor = '#222';}document.getElementById('thumb' + n).style.backgroundColor = '#ccc';if (n < 10) {n = '0' + n;}$('#playerDetail').fadeOut('slow', function() {document.getElementById('playerDetail').src = imagePath + "team-te-"+n+".jpg";$('#playerDetail').fadeIn(1200);});}function autoplay() {if (document.getElementById('autoplay').value == 'true') {var n = Number(document.getElementById('autoplaystart').value) + 1;if (n > endingNumber) { n = startingNumber; }document.getElementById('autoplaystart').value = n;t = setTimeout("continueAutoplay("+n+")",5000);}}function continueAutoplay(n) {if (document.getElementById('autoplay').value == 'true') {select(n);autoplay();}}