jQuery(document).ready(function($) {
		$(".hideable").each(function () {
	    var el = $(this);
	    setTimeout(function () {
	        el.animate({"opacity": 0}, 2000);
	        el.slideUp();
	    }, 10000);
	});
	
		$.localScroll({
	    target: 'body'
	});
	
		$('.hoverize').each(function() {
        $(this).hover(
            function() {
                $(this).addClass('ui-state-hover');
            },
            function() {
                $(this).removeClass('ui-state-hover');
            }
        );
    });
	
		var progress = 0;
    $(".progressbar").livequery(function(){
        $(this).each(function() {
            progress = parseInt($(this).attr('title'));
            $(this).progressbar({
                value: 0
            });
            $(this).progressbar("option", "value", progress);
        });
    });
	
		$("a.ajax").live("click", function(event) {
        event.preventDefault();
        $.get(this.href);
        $(this).html('Načítám...');
    });
});

