

// Easing equation, borrowed from jQuery easing plugin
// http://gsgd.co.uk/sandbox/jquery/easing/
jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

jQuery(function( $ ){
  
  $('.pics').cycle({ 
    fx:    'fade', 
    speed:  2500,
    pause:  1,
    random:  1 
  }); 

  $('.triple').cycle({ 
    fx:    'fade', 
    speed:  2500,
    pause:  1,
    random:  1 
  }); 
 
  /* Barvičky tabulky , row, even*/
  $("table tr:even").addClass("even");
  $("table tr:odd").addClass("odd");


});


//jakmile se stránka načte
$(document).ready(function() { 
  
  $('p.item').hover(
    function() {
      $(this).addClass('hover');
    }, function() {
      $(this).removeClass('hover');
    }
  );
  

	$("#nav-one li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function() { } 
	);
	if (document.all) {
		$("#nav-one li").hoverClass ("sfHover");
	}
});

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};	




