
	var mycarousel_itemList = [
	    {url: '/a/js/jcarousel/images/cineastesassocieweb.gif', title: 'Cinéastes Associés'},
	    {url: '/a/js/jcarousel/images/faktorecords.gif', title: 'Fakt records'},
	    {url: '/a/js/jcarousel/images/musicproductive.gif', title: 'MusicProductive'}
	];

	function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt)
	{
	    // The index() method calculates the index from a
	    // given index who is out of the actual item range.
	    var idx = carousel.index(i, mycarousel_itemList.length);
	    carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[idx - 1]));
	};

	function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt)
	{
	    carousel.remove(i);
	};

	/**
	 * Item html creation helper.
	 */
	function mycarousel_getItemHTML(item)
	{
	    return '<img src="' + item.url + '" width="228" height="75" alt="' + item.title + '" />';
	};

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

	};

	// Ride the carousel...
	jQuery(document).ready(function() {
		jQuery("#partnersCarousel").jcarousel({
			scroll: 1,
			auto: 8,
			wrap: 'first',
			initCallback: mycarousel_initCallback,
	        itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback},
	        itemVisibleOutCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallback},
			// This tells jCarousel NOT to autobuild prev/next buttons
			buttonNextHTML: null,
			buttonPrevHTML: null
		});
	});