;$j = jQuery.noConflict();

$j(document).ready
(
	function()
	{
		/**
		 * Products images
		 */
		$j('.fancybox').fancybox
		({
			titlePosition: 'inside'
		});
		
	
		$j("a#single_image").fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	600, 
			'speedOut'		:	200, 
			'overlayShow'	:	false
		});
		
		/**
		 * Gallery slideshow
		 */
		/*
		$galleryContainer = $j('.cms-home .home-slideshow');
		
		if ($galleryContainer.length)
		{
			$galleryContainer.wrapInner($j('<div class="inner-wrapper"></div>'));
			
			$galleryContainer.easySlider
			({
				auto:		true,
				pause:		3000,
				continuous:	true,
				numeric:	true,
				numericId:	'slideshow-controls'
			});
		}
		*/
	}
);

$j(window).load(function() {
	$j('.nivoSlider').nivoSlider({
		effect:'fade',
		slices:15,
		animSpeed:800,
		pauseTime:5000,
		directionNav:true, //Next & Prev
		directionNavHide:false, //Only show on hover
		controlNav:false, //1,2,3...
		pauseOnHover:false, //Stop animation while hovering
		captionOpacity:.7 //Universal caption opacity
	});
});
