function initCallback(carousel) {
    jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });
};
function highlight(carousel, obejctli,liindex,listate){
	jQuery('.jcarousel-control a:nth-child('+ liindex +')').attr("class","selected");
};
function removehighlight(carousel, obejctli,liindex,listate){
     jQuery('.jcarousel-control a:nth-child('+ liindex +')').removeAttr("class","selected");
};

jQuery(document).ready(function() {
    jQuery("#header-content-banner").jcarousel({
        scroll: 1,
        initCallback: initCallback,
        auto: 5,
        wrap: "both",
        animation : 1000,
        buttonNextHTML: null,
        buttonPrevHTML: null,
        itemVisibleInCallback:  highlight,
        itemVisibleOutCallback: removehighlight
    });
});
