
function togglethingstodo()
{
	$('select#thingstolist').change( function(){
		$('#thingstodoform').submit();
	});
}

function initCallback()
{
	$('a.previmg').click( function(){
		carousel.prev();
		return false;
	});
	$('a.nextimg').click( function(){
		carousel.next();
		return false;
	});
}

function mainrotational()
{
	jQuery('ul.main-spinner').jcarousel({
		scroll: 1,
		easing: 'easeInOutElastic',
		animation: 1000,
		wrap: 'both',
		initCallback: initCallback,
		buttonNextHTML: null,
		buttonPrevHTML: null
	});
}


function cycleSpinner(){
	$('.main-spinner').cycle({ 
		fx: 'scrollLeft', 
		before:  function(){ $('.rotational-wrap .desc p').html(this.title); }, 
		delay: 4000, 
		timeout: 4000
	});
}


$(document).ready(function(){
	togglethingstodo();
	cycleSpinner();
	//mainrotational();
});