//Digging around eh?
//This is for the index page
$(function(){
	
	//write carousel controls in JS so they don't clutter
	$('.carousel').append('<div class="controls"><a href="#" class="next">Next</a><a href="#" class="prev">Previous</a></div>');
	
	$('.testimonialhide').hide();
	$('.showhidetest').bind('click', function(){
		if($('.testimonialhide').css('display')=='none'){
			$('.testbuttonselector').addClass('largeup').removeClass('largedrop');
			$('html, body').animate({scrollTop: $('.bottom').offset().top}, 500);
		}else{
			$('.testbuttonselector').removeClass('largeup').addClass('largedrop');
			$('html, body').animate({scrollTop: 0}, 500);
		};
		$('.testimonialhide').slideToggle();
		return false;
	});
});

$('.carousel-inner').cycle({ 
    fx:     'scrollHorz', 
    prev:   '.prev', 
    next:   '.next',
	pause: 1,
	timeout: 5000
});