/* Jquery Carousel */

function mycarousel_initCallback(carousel)
  {
      carousel.buttonNext.bind('click', function() {
          carousel.startAuto(0);
      });
      carousel.buttonPrev.bind('click', function() {
          carousel.startAuto(0);
      });
      carousel.clip.hover(function() {
          carousel.stopAuto();
      }, function() {
          carousel.startAuto();
      });
  };
  
  jQuery(document).ready(function() {
      jQuery('#news').jcarousel({
          auto: 0,
          scroll: 1,
          wrap: 'last',
          animation: 5000,
          initCallback: mycarousel_initCallback
      });
  });

/* Selectbox */

$(document).ready(function() {
	$('#category').selectbox();
});

/* File input */

$(function() {
      $("input[type=file]").filestyle({ 
        image: "img/vybrat-soubor.png",
        imageheight : 31,
        imagewidth : 24,
        width : 250
     });
    });
