	
	$(document).ready(function(){
		
			var onMouseOutOpacity = 0.3;
			$('#thumbs-adv ul.thumbs li').css('opacity', onMouseOutOpacity)
				.hover(
					function () {
						$(this).not('.selected').fadeTo('fast', 1.0);
					}, 
					function () {
						$(this).not('.selected').fadeTo('fast', onMouseOutOpacity);
					}
				);

			$('#thumbs-adv ul.thumbs li').children('a').hover(function(){
				var PlayerName = $(this).children('.image-title').text();
				$(this).children('a').attr('title', PlayerName);
			});	
				
			$(document).ready(function() {
				// Initialize Advanced Galleriffic Gallery
				var galleryAdv = $('#gallery-adv').galleriffic('#thumbs-adv', {
					delay:                  2000,
					numThumbs:              7,
					preloadAhead:           80,
					enableTopPager:         false,
					enableBottomPager:      true,
					imageContainerSel:      '#slideshow-adv',
					controlsContainerSel:   '#controls-adv',
					captionContainerSel:    '#caption-adv',
					loadingContainerSel:    '#loading-adv',
					renderSSControls:       false,
					renderNavControls:      false,
					playLinkText:           'Pokaz slajdów',
					pauseLinkText:          'Zatrzymaj pokaz',
					prevLinkText:           '&laquo; Poprzednie zdjęcie',
					nextLinkText:           'Następne zdjęcie &raquo;',
					nextPageLinkText:       '&raquo;',
					prevPageLinkText:       '&laquo;',
					enableHistory:          true,
					autoStart:              false,
					onChange:               function(prevIndex, nextIndex) {
						$('#thumbs-adv ul.thumbs').children()
							.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
							.eq(nextIndex).fadeTo('fast', 1.0);
					},
					onTransitionOut:        function(callback) {
						$('#slideshow-adv').fadeOut('normal', callback);
					},
					onTransitionIn:         function() {
						$('#slideshow-adv').fadeIn('normal');
					},
					onPageTransitionOut:    function(callback) {
						$('#thumbs-adv ul.thumbs').fadeOut('fast', callback);
					},
					onPageTransitionIn:     function() {
						$('#thumbs-adv ul.thumbs').fadeIn('fast');
					}
				});
			});

				$('.KitchenMenu').kwicks({
					maxWidth : 300,  // required attribute
					spacing : 3
				});
			
				
			$(".OfferList span").css("opacity","0");
			$(".OfferList span").hover(function () {
				$(this).stop().animate({
			  		opacity: 1
				}, "slow");
			},
			function () {
				$(this).stop().animate({
					opacity: 0
				}, "normal");
			});
		});
			
