 // Add VideoJS to all video tags on the page when the DOM is ready
    VideoJS.setupAllWhenReady();
    
    // Setting the slideshow
         $(function() {
                $("#previousnext_slideshow").previousnext_slideshow({
                    slideshow_time_interval: '10000',
                    slideshow_window_background_color: "#000",
                    slideshow_window_padding: '0',
                    slideshow_window_width: '990',
                    slideshow_window_height: '660',
                    slideshow_window_border_size: '0',
                    slideshow_window_border_color: '#999',
                    slideshow_button_style: '1',
                    directory: 'images'
                });
            });
            
     // Setting the menu 
            $(function() {
				 	var $menu = $('#ldd_menu');
	 
			  	$menu.children('li').each(function(){
					var $this = $(this);
					var $span = $this.children('span');
					$span.data('width',$span.width());
					
					$this.bind('mouseenter',function(){
						$menu.find('.ldd_submenu').stop(true,true).hide();
						$span.stop().animate(300,function(){
							$this.find('.ldd_submenu').slideDown(300);
						});
					}).bind('mouseleave',function(){
						$this.find('.ldd_submenu').stop(true,true).hide();
						$span.stop().animate(300);
					});
				});
         });
         
  //FB setting
  window.fbAsyncInit = function() {

		FB.init({appId: '238839272807666', status: true, cookie: true, xfbml: true});

	};

(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/cs_CZ/all.js#xfbml=1&appId=238839272807666";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
