$(document).ready(function() {
	$('#slideshow').anythingSlider({
		hashTags:false,		
		buildArrows:false,
		autoPlay:true,
		delay: 10000,
		animationTime: 800		
	});


	$('#slideshow li').mouseover(function(e) {
		var $this = $(this);
		var $link = $('input:hidden', $this);
		if($this.hasClass('sprite')) {
			$this.css('background-position', '0 -240px');
		}
		if($link.length > 0) {
			$this.css('cursor', 'pointer');
		}
	}).mouseout(function(e) {
		var $this = $(this);
		if($this.hasClass('sprite')) {
			$(this).css('background-position', '0 0');
		}
		$this.css('cursor', 'auto');
	}).click(function(e) {
		var $this = $(this);
		var $link = $('input:hidden', $this);
		if($link.length > 0) {
			window.location.href = $link.val();
		}
	});

});
