jQuery(function( $ ){

	$.easing.inoutexpo = function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	};

	var $paneOptions = $('#content');
	
	$('#home').click(function(){
		$paneOptions.scrollTo( 'div:eq(0)', 1000, { axis:'y', easing:'inoutexpo' } );
		$("#current").html("<img src='images/pointer.jpg' style='margin-top:-5px'>");
	});
	$('#home2').click(function(){
		$paneOptions.scrollTo( 'div:eq(0)', 1000, { axis:'y', easing:'inoutexpo' } );
		$("#current").html("<img src='images/pointer.jpg' style='margin-top:-5px'>");
	});
	$('#shots').click(function(){
		$paneOptions.scrollTo( 'div:eq(1)', 1000, { axis:'y', easing:'inoutexpo' } );
		$("#current").html("<img src='images/pointer.jpg' style='margin-top:40px'>");		
	});
	$('#gallery').click(function(){
		$paneOptions.scrollTo( 'div:eq(2)', 1000, { axis:'y', easing:'inoutexpo' } );
		$("#current").html("<img src='images/pointer.jpg' style='margin-top:85px'>");
	});
	$('#contact').click(function(){
		$paneOptions.scrollTo( 'div:eq(3)', 1000, { axis:'y', easing:'inoutexpo' } );
		$("#current").html("<img src='images/pointer.jpg' style='margin-top:130px'>");		
	});

});
