var $j = jQuery.noConflict();

$j(document).ready(function() {
													 
	$j('.carousel').jcarousel({
     scroll: 1
  });

	$j('#taby .carousel').jcarousel({
     scroll: 1,
		 itemVisibleInCallback: {
       onAfterAnimation:  mycarousel_itemVisibleInCallbackAfterAnimation
     }
  });
	
	function mycarousel_itemLastInCallback(carousel, item, idx, state) {
		display('Item #' + idx + ' is now the last item');
	};
		
	function mycarousel_itemVisibleInCallbackAfterAnimation(carousel, item, idx, state) {
		display('PAGE ' + idx + ' of ' );
	};
	

	function display(s) {
		$j('#display').html(s + $j('.carousel').children().size() );
	};
	
	$j("a[rel^='fancybox'], .lightbox").fancybox({ 'zoomSpeedIn': 1000, 'zoomSpeedOut': 0, 'overlayShow': true }); 
	
});