
/* - carousel.js - */
function mycarousel_initCallback(a) 
{ 
  jQuery(".flcarousel-control .slideNum a").bind("click", function() 
  { 
    a.scroll(jQuery.jcarousel.intval(jQuery(this).text())); 
    return false 
  } 
  );
  a.pauseSlider = function() { 
      a.stopAuto(); 
      $("#jcpause").toggleClass("oncarousel")
  } 

  a.unpauseSlider = function() { 
      a.startAuto();
      $("#jcpause").toggleClass("oncarousel")
  } 
  jQuery("#jcpause").toggle(function() {a.pauseSlider();}, function() {a.unpauseSlider();}  
  ); 

  jQuery(".jcarousel-scroll select").bind("change", function() 
  { 
    a.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value); 
    return false 
  } 
  ) 
} 
function beforeVisible(d, c, a, b) 
{ 
  $("#c" + a).toggleClass("oncarousel") 
} 
function afterVisible(d, c, a, b) 
{ 
  $("#c" + a).toggleClass("oncarousel") 
} 
jQuery(document).ready(function() 
{ 
  jQuery("#flcarousel").jcarousel( 
  { 
    scroll: 1, auto: 15, wrap: "last", initCallback: mycarousel_initCallback, itemVisibleInCallback: 
    { 
      onBeforeAnimation: beforeVisible 
    } 
    , itemVisibleOutCallback: 
    { 
      onBeforeAnimation: afterVisible 
    } 
    , buttonNextHTML: null, buttonPrevHTML: null 
  } 
  ) 
} 
); 

