/* <![CDATA[ */
	jQuery(document).ready(function() {
		jQuery("a[rel=grupa1], a[rel=grupa2], a[rel=grupa3], a[rel=grupa4], a[rel=grupa5], a[rel=grupa6], a[rel=grupa7], a[rel=grupa8], a[rel=grupa9], a[rel=grupa10], a[rel=grupa11], a[rel=grupa12], a[rel=grupa13], a[rel=grupa14], a[rel=grupa15], a[rel=grupa1o], a[rel=grupa2o], a[rel=grupa3o], a[rel=grupa4o], a[rel=grupa5o], a[rel=grupa6o], a[rel=grupa7o]").fancybox({
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'none',
			'titlePosition'		: 'inside',
			'centerOnScroll'	: true,
			'padding'			: 5,
			'showCloseButton'	: true,
			'cyclic'			: true,
			'overlayShow'		: true,
			'overlayColor'		: '#333',
			'overlayOpacity'	: 0.3,
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<div id="fancybox-title-inside">' + (title.length ? '' + title : '') + '&nbsp;' + (currentIndex + 1) + ' / ' + currentArray.length + '</div>';
			}
		});
		jQuery(".before", this).stop().hide().animate({opacity: 1.0}, 0).fadeIn('slow'); 
		jQuery('.item').hover(function(){
			jQuery(".before", this).stop().animate({top:'-100px', opacity: '0'},{queue:false,duration:200});
			jQuery(".after", this).stop().animate({top:'0px', opacity: '1.0'},{queue:false,duration:200});
		}, function() {
			jQuery(".before", this).stop().animate({top:'0px', opacity: '1.0'},{queue:false,duration:300});
			jQuery(".after", this).stop().animate({top:'100px', opacity: '0'},{queue:false,duration:300});
		});
		jQuery('.item').hover(function(){
			jQuery(".boxcaption", this).stop().animate({top:'75px'},{queue:false,duration:100});
		}, function() {
			jQuery(".boxcaption", this).stop().animate({top:'95px'},{queue:false,duration:300});
		});
		var slideShow = new Array()
		slideShow[0] = "images/baner2.jpg";
		slideShow[1] = "images/baner3.jpg";
		slideShow[2] = "images/baner1.jpg";
		function startSlideshow() {
			processSlideshow("#movie", slideShow, 3000, 2000);
		}
		jQuery(document).ready(startSlideshow);
	});
/* ]]> */
