/**
 * We use the initCallback callback
 * to assign functionality to the controls
 */
function mycarousel_initCallback(carousel) {
    jQuery('#mycarousel-next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};

// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#mycarousel").jcarousel({
        scroll: 3,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
});

function showItemText (id) {
	document.getElementById(id).style['display'] = 'block';	
	document.getElementById(id+'_bg').style['display'] = 'block';	
}
function hideItemText (id) {
	document.getElementById(id).style['display'] = 'none';	
	document.getElementById(id+'_bg').style['display'] = 'none';	
}
