$(document).ready(function() {

$('.homepage').css('cursor' , 'pointer').click(function()
	{
		$('.homepage').css('cursor' , 'default');
		$('#splash')
		.animate(
			{width: "680px",
			marginLeft: "120px"},
			700);
	});

$('a.heading').click(function()
	{
		return false;
	});

$('#eng a.heading').click(function()
	{
		$('#navigation #eng ul ul').show();
		$('#navigation #eng ul').slideDown(500);
		$('#navigation #is ul').hide();
	});

$('#is a.heading').click(function()
	{
		$('#navigation #is ul ul').show();
		$('#navigation #is ul').slideDown(500);
		$('#navigation #eng ul').hide();
	});

jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

	$('#slideshow').serialScroll({
		items:'li',
		prev:'li.prev',
		next:'li.next',
		// offset:-230, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:0, //as we are centering it, start at the 2nd
		duration:1200,
		force:true,
		stop:true,
		lock:false,
		cycle:true, //don't pull back once you reach the end
		// easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: false //click on the images to scroll to them
	});

$('.gallery ol').css('opacity' , 0.7).fadeIn(600);

});
	