// Use this file to add javascript functions which will be available to all the site


function select_active(carousel, state) 
{
  //alert(carousel.first);
  if(carousel.first > 1) {
	  $(".promoted-item-title-"+(carousel.first-1)).removeClass("active");
  } else {
	  $(".promoted-item-title-4").removeClass("active");	  
  }
  $(".promoted-item-title-"+carousel.first).addClass("active");
}

