// Easing equation, borrowed from jQuery easing plugin
// http://gsgd.co.uk/sandbox/jquery/easing/
jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

$$(function(  ){
	

	
	$$('#slideshow').serialScroll({
		items:'li',
		prev:'#screen2 img.prev',
		next:'#screen2 img.next',
		axis:'xy',
		duration:1200,
		step:1,
		stop:true,
		force:true,
		onBefore:function( e, elem, $pane, $items, pos ){
			e.preventDefault();
			if( this.blur )
				this.blur();
		},
		onAfter:function( elem ){
		}
	});

	
	
	$$ ('.cimage a').click (function(){
		$$(this).children ('img').animate({ 
			width: "165px",
			height: "155px",
			opacity: 0,
			top: "-5px",
			left: "-5px"
		}, 900 );
	})
	
	
});