jQuery(function( $ ){
	$.easing.backout = function(x, t, b, c, d){
		var s=1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	};
	$('#screen').scrollShow({
		view:'#view',
		content:'#images',
		easing:'backout',
		wrappers:'crop',
		navigators:'a[id]',
		navigationMode:'sr',
		circular:true,
		start:0,
		itemSize:{
			height:143,
			width:248
		}
	});
});

$(document).ready(function(){	
	$("#slider").easySlider({
		controlsBefore:	'<p id="controls">',
		controlsAfter:	'</p>',
		auto: true, 
		continuous: true
	});
	$('#boxlink').click(function(){
		offset = $(this).parent().parent().offset();
		newoffset = offset.left + 22;
		$('#xtrabox').css({opacity: 0.90});
		$('#xtrabox').slideDown();
		return false;
	});
	$('.boxclose').click(function(){
		$('#xtrabox').slideUp();
		return false;
	});
});
