	function formatText(index, panel) {
	  return index + "";
	}
	
	$(function () {
		
		var _autoPlay=true;
		if (String (window.location).indexOf('intranet') != -1) _autoPlay=false;
		
	
		$('.anythingSlider').anythingSlider({
			easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
			autoPlay: _autoPlay,             // This turns off the entire FUNCTIONALY, not just if it starts running or not.
			delay: 4000,                    // How long between slide transitions in AutoPlay mode
			startStopped: false,            // If autoPlay is on, this can force it to start stopped
			animationTime: 1000,             // How long the slide transition takes
			hashTags: true,                 // Should links change the hashtag in the URL?
			buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
			pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
			startText: "Go",             // Start text
			stopText: "Stop",               // Stop text
			navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
		});
		
		$("#slide-jump").click(function(){
			$('.anythingSlider').anythingSlider(6);
		});
	
		///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		
		//-----------------------------------
		
		$("#thumbNav a").each(function(indxObj) {
			$(this).html();
			$(this).addClass('thumbNum' + String (indxObj+1));
		});
		
		$("#thumbNav a").mouseover(function() {
			$(this).addClass('curhov');
		});
		$("#thumbNav a").mouseout(function() {
			$(this).removeClass('curhov');
		});
		
		//-----------------------------------
	
		var storedHash = window.location.hash;
		changeHash();
		setInterval(function () {
			if (window.location.hash != storedHash) {
				storedHash = window.location.hash;
				changeHash();
			}
		}, 30);
		
		//-----------------------------------
		
		var miNum = 1;
		function changeHash(){
			if (storedHash =="#panel-1" ) miNum =1;
			if (storedHash =="#panel-2" ) miNum =2;
			if (storedHash =="#panel-3" ) miNum =3;
			if (storedHash =="#panel-4" ) miNum =4;
			if (storedHash =="#panel-5" ) miNum =5;
			if (storedHash =="#panel-6" ) miNum =6;
			if (storedHash =="#panel-7" ) miNum =7;
			
			miNum = (miNum-1);
			$("#thumbNav a").removeClass('cur');
			$("#thumbNav a").eq(miNum).addClass('cur');	
		};
		
		//-----------------------------------
		
	});
