jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

$(document).ready(function(){
  $('#navigation li ul:first').each(function(){
    $(this).css({ left:"720px"}).animate({left: "18px"}, 1000);
  });
  $('#navigation li li ul').each(function(){
    $(this).css({ left:"720px"}).animate({left: "0"}, 1000);
  });
  
  $('#slideshow').cycle({ 
    fx: 'custom', 
    speedIn:  1400, 
    speedOut: 1800,
    sync: 1,
    easeIn:  'easeIn', 
    easeOut:  'easeOut', 
    cssBefore: {  
      top: 0,
      left: 0,
      display: 'block',
      opacity: 0,
      zIndex: 1 
    },
    animIn: {  
      opacity: 1
    },
    animOut: {  
      left: 827
    }, 
    cssAfter: {  
      zIndex: 0
    },
    delay: 2000,
    timeout: 5000
  });
  
});
