// JavaScript Document

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        vertical: false,
        itemFirstInCallback: mycarousel_itemFirstInCallback,
        scroll: 1
    });
});

/**
* This is the callback function which receives notification
* when an item becomes the first one in the visible range.
*/
function mycarousel_itemFirstInCallback(carousel, item, idx, state) {
    aImageBig = document.getElementById("aImageBig");
    var listItem = jQuery(item).find("a:first");
    if (listItem.length > 0) {
        aImageBig.href = listItem[0].href
        aImageBig.title = listItem[0].title;
    }
};