$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'sliceDownRight', //Specify sets like: 'fold,fade,sliceDown'
		animSpeed:500, //Slide transition speed
		pauseTime: 9000, //
		directionNav:false,
		controlNav:false
	});
});

$(document).ready(function() {
	$("a[rel=this_gallery]").fancybox({
		'opacity'			: 'true',
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'fade',
		'easingIn'			: 'swing',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
		return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp;|&nbsp; ' + title : '') + '</span>';
		}
	});
});
