// JavaScript Document
$(function() {
	$("#number_slideshow").number_slideshow({
		slideshow_autoplay: 'enable',//enable disable
        slideshow_time_interval: '5000',
        slideshow_window_background_color: "#ccc",
        slideshow_window_padding: '1',
        slideshow_window_width: '940',
        slideshow_window_height: '300',
        slideshow_border_size: '1',
        slideshow_border_color: 'black',
        slideshow_show_button: 'enable',//enable disable
        slideshow_show_title: 'disable',//enable disable
        slideshow_button_text_color: '#CCC',
        slideshow_button_background_color: '#333',
        slideshow_button_current_background_color: '#666',
        slideshow_button_border_color: '#000',
        slideshow_loading_gif: 'loading.gif',//loading pic position, you can replace it.
        slideshow_button_border_size: '1'
	});
});
		$(document).ready(function() {
			$( "button, input:submit, a", ".send_guestbook" ).button();
	$( "#kniha_ok" ).dialog({
			modal: true,
			buttons: {
				Ok: function() {
					$( this ).dialog( "close" );
					window.location.href="";
				}
			}
		});					   
			/*
			*   Examples - images
			*/

			$("a#example1").fancybox();

			$("a#example2").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

			$("a#example3").fancybox({
				'transitionIn'	: 'none',
				'transitionOut'	: 'none'	
			});

			$("a#example4").fancybox({
				'opacity'		: true,
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'none'
			});

			$("a#example5").fancybox();

			$("a#example6").fancybox({
				'titlePosition'		: 'outside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.9
			});

			$("a#example7").fancybox({
				'titlePosition'	: 'inside'
			});

			$("a#example8").fancybox({
				'titlePosition'	: 'over'
			});

			$("a[rel=example_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Fotka ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
		});

