jQuery(document).ready(function(){
		jQuery("#makeMeScrollable").smoothDivScroll({mouseDownSpeedBooster: 8, scrollingSpeed: 11});

		jQuery(".gallery span").click(function() {			var p = $(this);			if(p.is(".gal-last")) {
				$(this).css({'z-index' : '10'});
				$(this).find('img').addClass("hover").stop()
				.animate({
					marginTop: '-215px',
					marginLeft: '-65px',
					top: '50%',
					left: '50%',
					width: '272px',
					height: '409px',
					padding: '10px'
				}, 200);
			} else if (p.is(".gal-first")) {				$(this).css({'z-index' : '10'});
				$(this).find('img').addClass("hover").stop()
				.animate({
					marginTop: '-215px',
					marginLeft: '-220px',
					top: '50%',
					left: '50%',
					width: '272px',
					height: '409px',
					padding: '10px'
				}, 200);            } else  {
				$(this).css({'z-index' : '10'});
				$(this).find('img').addClass("hover").stop()
				.animate({
					marginTop: '-215px',
					marginLeft: '-135px',
					top: '50%',
					left: '50%',
					width: '272px',
					height: '409px',
					padding: '10px'
				}, 200);
            }
		});

		jQuery(".gallery span").mouseout(function() {
			$(this).css({'z-index' : '0'});
			$(this).find('img').removeClass("hover").stop()
			.animate({
				marginTop: '0',
				marginLeft: '0',
				top: '0',
				left: '0',
				width: '128px',
				height: '192px',
				padding: '0'
		}, 400);
		});
	});