$(document).ready(function(){

			$('.anythingSlider').anythingSlider({
                easing: "easeOutBack",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 6000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 400,             // How long the slide transition takes
                hashTags: false,                 // Should links change the hashtag in the URL?
                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true             // If true, and autoPlay is enabled, the show will pause on hover
            });
			
	$('#lastComments .scroll').jScrollPane();

	$('#zaloguj').css('width', '1px');
	$('#zaloguj').css('opacity', '0');
	var zaloguj_text = $('.zaloguj').html();
	$('.zaloguj').live("click", function(e) {
        if ($('#zaloguj').css('width') == '1px') {
            $('#zaloguj').animate({
				opacity: '1',
				width: '430px'
			});
			$('#zaloguj input[type=text]').focus();
			$(this).html("&gt;&gt;&gt;");
        } else {
            $('#zaloguj').animate({
				opacity: '0',
				width: '1px'
			});
			$(this).html(zaloguj_text);
        }
		return false;
    });


	$('#images a, #gallery a').attr('rel', 'gallery').fancybox({
		onStart: function(){$('embed, object').css('visibility', 'hidden')},
		onClosed: function(){$('embed, object').css('visibility','visible')}
	});
	
	var conf =  $("#images").scrollable({easing: 'easeOutBack', speed: 350});
	
	$('.tt, .event a').tooltip({ 
	    track: true, 
	    delay: 0, 
	    showURL: false, 
	    showBody: " || ", 
	    fade: 250 
	});


});
