/**
 * @author Dan
 */

var app = function()
{
	if ($('#loopedSlider').size() > 0) 
	{
		$('#loopedSlider').loopedSlider({
			autoStart: 12000,
			restart: 12000
		});
		$('#customerCarousel #loopedSlider').loopedSlider({
			autoStart: 5000,
			restart: 4000
		});
		
		//Caption Sliding (Partially Hidden to Visible)
		$('#loopedSlider .slderNav').hover(function(){
			$(".previous", this).stop().animate({left:'0px'},{queue:false,duration:200});
		}, function() {
			$(".previous", this).stop().animate({left:'6px'},{queue:false,duration:200});
		});
		//Caption Sliding (Partially Hidden to Visible)
		$('#loopedSlider .slderNav').hover(function(){
			$(".next", this).stop().animate({right:'13px'},{queue:false,duration:200});
		}, function() {
			$(".next", this).stop().animate({right:'19px'},{queue:false,duration:200});
		});
		//Caption Sliding (Partially Hidden to Visible)
		$('#ribbon .learnMore').hover(function(){
			$(".learnMore-button", this).stop().animate({right:'25px'},{queue:false,duration:200});
		}, function() {
			$(".learnMore-button", this).stop().animate({right:'0'},{queue:false,duration:200});
		});
	
	}
 }
 
 $(document).ready(app);

