			$(function() {	

			// Dialog			

				$('#dialog').dialog({autoOpen: false,modal: true,width: 600,buttons: {"Zavřít": function() { 

				$(this).dialog("close"); } }});	
				
        $('#dialog3').dialog({autoOpen: false,modal: true,width: 700,buttons: {"OK": function() { 

				$(this).dialog("close"); } }});	

			// Dialog Link

				$('#dialog_link').click(function(){

				$('#dialog').dialog('open');return false;});
				
				
							// Dialog			

				$('#dialog2').dialog({autoOpen: false,modal: true,width: 600,buttons: {"Zavřít": function() { 

				$(this).dialog("close"); } }});	

			// Dialog Link

				$('.phoneorder').click(function(){

				$('#dialog2').dialog('open');return false;});
				
			//Accordion
				$('#accordion').accordion({ header: "h3", autoHeight: false });


			//Tablesorter

				$('#tablesorter-demo').tablesorter({sortList:[[0,0],[0,0]], widgets: ['zebra']});

				$('#tablesorter-demo1').tablesorter({sortList:[[0,0],[0,0]], widgets: ['zebra']});

				$('#tablesorter-demo2').tablesorter({widgets: ['zebra']});

				$('#options').tablesorter({sortList: [[0,0]], headers: { 3:{sorter: false}, 4:{sorter: false}}});	

			//Tabs

				$('#tabs').tabs();

			//Kwicks

				$('.kwicks').kwicks({max : 448,spacing : 0});

			//Superfish

				$("ul.sf-menu").superfish();

  /*

		//FancyBox

					$("a#example3").fancybox({

				'transitionIn'	: 'none',

				'transitionOut'	: 'none'	

			});       */



                   

			$("a[rel=foto_group]").fancybox({

				'transitionIn'		: 'none',

				'transitionOut'		: 'none',

				'titlePosition' 	: 'over',

				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {

					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';

				}

			});  



				});
