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]));
	
	//$(".jcarousel-item a img").each(function(){
	//
	//	$(this).css({opacity: 0.5});
	//	$(this).mouseover(function(){
	//		$(this).animate({opacity: 1.0}, {duration: 250});
	//	});
	//	$(this).mouseout(function(){
	//		$(this).animate({opacity: 0.5}, {duration: 200});
	//	});
	//});
	
};

function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt)
{
    carousel.remove(i);
};

function mycarousel_getItemHTML(item)
{
    return '<a href="player.asp?dir=' + item.dir + '&id=' + item.id + '" name="' + item.title + '"><img src="' + item.src + '" width="155" height="95" border="0" alt="' + item.title + '"  /></a><br />' + item.title;
};

function initCallbackFunction(carousel, state)
{
     if (state == 'init') {
        myCarousel = carousel;
    } 
	
};

function itemLoadCallbackFunction(carousel, state)
{

	
};

function resetData(myReel){
	
	$('#mycarousel').fadeOut(800, function(){
		mycarousel_itemList = myReel;
		myCarousel.reset();
		}).fadeIn(500);
	
}  