var $j = jQuery.noConflict();
$j( function() {
	$j('#slider1').cycle({ 
		fx:			'fade',		
		timeout:	4000,
		speed:		700,
		delay:		-3000
	});
	$j('#slider2').cycle({ 
		fx:			'fade',		
		timeout:	4000,
		speed:		700,
		delay:		-2000
	});
	$j('#slider3').cycle({ 
		fx:			'fade',		
		timeout:	4000,
		speed:		700,
		delay:		-1000
	});
	$j('#slider4').cycle({ 
		fx:			'fade',		
		timeout:	4000,
		speed:		700,
		delay:		0
	});
	$j('#mini_gallery').cycle({
		fx:			'fade',
		speed:		'fast',
		timeout:	0,
		next:		'#mini_gallery_next',
		prev:		'#mini_gallery_prev',
		cssBefore:	{'visibility':'hidden'}
	});
	$j('#mini_gallery_box').css( 'visibility', 'visible' );
});

/*$j(document).ready(function() {*/
$j( function() {
	$j("#mini_gallery a[rel=mini_gallery]").fancybox({
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'titlePosition'		: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
});
