		$(document).ready(function(){	

 
 
      $( "#tabs" ).tabs({

        selected: 0,
        fx: {opacity:'toggle', height:'toggle', width:'toggle', duration:250},
          select: function(event, ui) {
          var url = $.data(ui.tab, 'load.tabs');
          if( url ) {
              location.href = url;
              return false;
          }
          return true;
          }
        
      });
      

      $("#LOGO").mouseenter(function () {
        $("#tabs").tabs('option', 'selected', 0);
      }); 



      $("#tabs").tabs().addClass('ui-tabs-vertical ui-helper-clearfix');
      
      
      
      $('ul.sf-menu').superfish({ 
        delay:       300,                            
        animation:   {opacity:'show',height:'show'}, 
        speed:       'normal',                        
        autoArrows:  false,                         
        dropShadows: true,  
      });
      
      
 
      $("#slider").easySlider({
				auto: true,
        pause: 6000, 
        continuous: true,
        speed: 400,
        numeric: true,
        numericId:'controlsA',
        hoverpause: true,
                                             
			});

			$("#slider2").easySlider({
				auto: true, 
				continuous: true,
        pause: 6000,
        speed: 400,
        numeric: true,
        numericId:'controlsB',
        hoverpause: true,
        delay:9000
			});
      

      
      
      $( "#dialog-form" ).dialog({
			autoOpen: false,
			height: 440,
			width: 600,
			modal: true,
			buttons: {
				"ODESLAT DOTAZ": function() {
						document.forms["contact"].submit(); 
				}
				
			},
			close: function() {
				
			}
		});
    
    $( ".dotaz_button" ).button()
			.click(function() {
				$( "#dialog-form" ).dialog( "open" );
			});          
		});	
    
    
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7426403-5']);
  _gaq.push(['_trackPageview']);
 
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
