


$(function() {
	$(".carousel").jCarouselLite({
	      btnNext: ".next",
	      btnPrev: ".prev",
	      btnGo: [".carousel .next1", ".carousel .next2", ".carousel .next3" , ".carousel .next4",".carousel .next5"],
	      scroll: 1,
	      visible: 1,
	      auto: 6000,
	      speed: 800,
	      pause: true,
   		  afterEnd: function(a) {
    		$(".carousel .next"+$(a).attr('buttonNr')).attr('class', 'next' + $(a[0]).attr('buttonNr') + ' hoverbt');
    	  },
    	  beforeStart: function(a) {
    		$(".carousel .next"+$(a).attr('buttonNr')).attr('class', 'next'+$(a[0]).attr('buttonNr'));
    	  }
	});
});




$(document).ready(function(){	
	$(".carousel .next1").attr("class", "next1 hoverbt");	
	$(".carousel ul li").each(function(i){		
		$(this).attr('buttonNr', i);		
		if(i >= $(".carousel ul li").length-1) $(this).attr('buttonNr', 1)		
	});
	
	// tabs	
	$("#tabs").tabs({ cookie: { expires: 1 } });	
	
	Custom.init;

});

