function mycarousel_initCallback(carousel) {
    jQuery('#next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};
	
jQuery(function($) {
	
    $("#mycarousel").jcarousel({
        scroll: 1,
        wrap:"both",
        initCallback: mycarousel_initCallback,
        auto: 10,
        buttonNextHTML: null,
        buttonPrevHTML: null
    });

/*	var sidebar_h = $('#sidebar').height();
	var topics_h = $('#hot-topics').height();
	var topics_box_h = $('#hot-topics .box-c').outerHeight();
	var title_h = $('#hot-topics h2:first').outerHeight();
	var topics_padding = parseInt($('#hot-topics .box-c').css('padding-top')) + parseInt($('#hot-topics .box-c').css('padding-bottom'));
	var side_box_margin = parseInt($('#sidebar .box:first').css('padding-bottom'));
	var side_box_top_p = parseInt($('#sidebar .box-c:first').css('padding-top'));
	var side_box_bottom_p = parseInt($('#sidebar .box-c:first').css('padding-bottom'));
	if (sidebar_h > topics_h) {
		$('#hot-topics .box-c').height(sidebar_h - title_h - topics_padding - side_box_margin);
	} else {
		var h = 0;
		$('#sidebar .box-c').each(function() {
			h+= $(this).outerHeight();
		});
		var pad = (topics_box_h - h - title_h - side_box_margin) / 4;
		$('#sidebar .box-c').each(function() {
			$(this).css('padding-top', side_box_top_p+pad);
			$(this).css('padding-bottom', side_box_bottom_p+pad);
		});
	}*/
});

