$(document).ready(function(){ 

	$('#s1').cycle({
	next:'#next, .img-bot', 
	prev:'#prev',
	height:'480px',
	});

	SoftScroll.showHash();

			
	$("a.grouped").fancybox({
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'titlePosition' 	: 'inside',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {	
		    return '<div id="fancy-title-inside"><span>' + (currentIndex + 1) + ' of ' + currentArray.length + '</span><div id="title">' + (title.length ? ' &nbsp; ' + title : '')+'</div>';
		}
	});			
			
});
