// JavaScript Document
$(document).ready(function(){
	var sudoSlider = $("#slider").sudoSlider({ 
		prevNext:true,     
		continuous:true,
		auto:true,
		pause:5000,
		resumePause:5000,
		//numeric:true, enables thumbnail controls
		//updateBefore:true, updates current thumbnail with current before ani
		beforeAniFunc: function(t){ 
			//$('.caption').fadeOut(100);
		},
		afterAniFunc: function(t){ 
			var text = $(this).children('.imageText').html();
			var title = $(this).children('.imageTitle').html();
			$('div.caption #slideText').html(text);
			$('div.caption #slideTitle').html(title);
		}
	});
	$(".cover").css("display","block");
	$('.news_slider.caption_full').hover(function(){  
		$(".cover", this).stop().animate({bottom:'0px'},{queue:false,duration:500});  
	}, function() {  
		$(".cover", this).stop().animate({bottom:'-190px'},{queue:false,duration:500});  
	}); 
});
