jQuery(document).ready(function()
{
  jQuery('#carousel .carousel').jcarousel(
  {
    scroll: 1,
    visible: 1,
    wrap: 'circular',
    start: typeof(start_carousel) != "undefined" ? start_carousel : 1,
    initCallback: carousel_initCallback,
    buttonPrevHTML: null,
    buttonNextHTML: null
  });
});

function carousel_initCallback(carousel)
{
  carousel.mouse_timer = null;

  $('#carousel .next').bind('click', function(event)
  {
    event.preventDefault();
    carousel.next();
  });

  $('#carousel .previous').bind('click', function(event)
  {
    event.preventDefault();
    carousel.prev();
  });
}
