jQuery(document).ready(function() {
  jQuery("#top4 li:last").addClass("last");

  jQuery(".news_slider").each(function() {
    var j_this_ns = jQuery(this);
    var j_height_ns = 0;
    j_this_ns.find("li").each(function() {
      j_temp_h_ns = jQuery(this).height();
      if (j_temp_h_ns > j_height_ns) {
        j_height_ns = j_temp_h_ns;
      }
    })
    j_this_ns.find("li").css("height", j_height_ns);
  })
})

function mycarousel_initCallback(carousel) {
  carousel.clip.hover(
    function() {
      carousel.stopAuto();
    },
    function() {
    carousel.startAuto();
  });
};

jQuery(document).ready(function() {
  jQuery('#top4').jcarousel({
    auto: 16,
    wrap: 'last',
    scroll: 4,
    initCallback: mycarousel_initCallback
  });
});


