
jQuery(document).ready(function() {	
  
  // call to action hovers and jcarousel
  $("div#call_to_actions li, div#call_to_actions a").css("cursor","pointer");
  $("div#call_to_actions li").hover(function(){$(this).addClass('cta-over');return false;},function(){$(this).removeClass('cta-over');});
  $("div#call_to_actions a#back, div#call_to_actions a#forward").hover(function(){$(this).addClass('cta-over2');return false;},function(){$(this).removeClass('cta-over2');});
  //$("div#call_to_actions li").click(function(){window.location = $(this).find('a').attr("href");});
  jQuery.easing.easeOutQuart = function (x, t, b, c, d) {return -c * ((t=t/d-1)*t*t*t - 1) + b;};
  var intval = 9000;
  jQuery('#ctas').serialScroll({
		items: 'li',
		prev:'#call_to_actions a#back',
		next:'#call_to_actions a#forward',
		queue: false,
		interval: intval,
		duration: 8200,
		start: 0,
		force:true,
		stop: true,
		lock: false,
		jump: false,
		cycle: true,
		easing: 'easeOutQuart',
		step: 1
	});
  
  var intval2 = 6000;
  jQuery('#news-headlines').serialScroll({
		items: 'li',
		interval: intval2,
		duration: 600,
		start: 0,
		force:true,
		stop: true,
		lock: false,
		jump: false,
		cycle: true,
		easing: 'linear',
		step: 1
	});
  
  
});
