jQuery(document).ready(function(){
	
	function formatText(index, panel) {
			return index + "";
		};
	
		jQuery(function () {
			$('#anythingSlider1').anythingSlider({
				width : 440,          // Override the default CSS width
				height : 216,
				easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
				autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
				delay: 5000,                    // How long between slide transitions in AutoPlay mode
				startStopped: false,            // If autoPlay is on, this can force it to start stopped
				animationTime: 600,             // How long the slide transition takes
				hashTags: false,                 // 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: "Play",                // Start text
				stopText: "Stop",               // Stop text
				navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
			});
			$('#anythingSlider2').anythingSlider({
				width : 384,          // Override the default CSS width
				height : 172,
				easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
				autoPlay: false,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
				delay: 5000,                    // How long between slide transitions in AutoPlay mode
				enableNavigation: false,
				animationTime: 1000,             // How long the slide transition takes
				hashTags: false,                 // Should links change the hashtag in the URL?
				buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
			});
		});
	
	$(document).pngFix();
	
// ChannelPointer
	$('div.ChannelPointer')
		.hover(function() {
			$(this).children('.Cover').stop().animate({ left: -193 }, 'fast');
		}, function() {
			$(this).children('.Cover').stop().animate({ left: 0  }, 'fast');
	});
	$('div.ChannelPointer')
		.hover(function() {
			$(this).children('p:first').stop().animate({ left: 20 }, 'fast');
		}, function() {
			$(this).children('p:first').stop().animate({ left: 0  }, 'fast');
	});
	  
	
});
