$(document).ready(function(){
	
	jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	 return -c * ((t=t/d-1)*t*t*t - 1) + b;
	};
	
	jQuery(function( $ ){
	$('#slideshow').serialScroll({
		items:'li',
		axis:'y',
		prev:'a.prev',
		next:'a.next',
		offset:0, 
		start:0,
		duration:1200,
		force:true,
		stop:true,
		lock:false,
		cycle:false,
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: true //click on the images to scroll to them
		});
	});
	
	//link hover
	$("div#top_links a.navigation").hover(
		function(){
			$("#top_links").not(this).css("background-color","#2b2e2f");
			$("#top_links a").not(this).css("color","#222");
		},
		function(){
			$("#top_links").attr("style","");
			$("#top_links a").attr("style","");
	});
	
	$("div#info a.navigation").hover(
		function(){
			$("#info").not(this).css("background-color","#2b2e2f");
			$("#info").not(this).css("color","#222");
		},
		function(){
			$("#info").attr("style","");
			$("#info a").attr("style","");
	});

});
