$(window).load(function(){

	$('.slider')._TMS({

		preset:'diagonalExpand',

		easing:'easeOutQuad',

		duration:800,

		slideshow:6000,

		banners:true,

		pagination:true,

		bannerShow:function(banner){

			banner

				.css({opacity:'0'})

				.stop()

				.animate({opacity:'1'},400)

		},

		bannerHide:function(banner){

			banner

				.stop()

				.animate({opacity:'0'},400)

		}

	})

	$('.pagination li').hover(function(){

		if (!$(this).hasClass('current')) {

			$(this).find('span').stop().animate({top:'0'},400,'easeOutCirc')							  

		}

	},function(){

		if (!$(this).hasClass('current')) {

			$(this).find('span').stop().animate({top:'80'},400,'easeOutCirc')

		}

	})

	$(".carousel").jCarouselLite({

			  btnNext: "#button-next",

			  btnPrev: "#button-prev"

	});

})// JavaScript Document
