    $(function() {
        $('a.smoothbox').lightBox();
    });

var mycarousel_itemList = [
    {url: "files/photos/12560102019933_b.jpg", title: ""},
    {url: "files/photos/12576493294394_b.jpg", title: ""},
    {url: "files/photos/12576933047130_b.jpg", title: ""},
    {url: "files/photos/12576938654664_b.jpg", title: ""},
    {url: "files/photos/12576941809906_b.jpg", title: ""},
    {url: "files/photos/12576944507480_b.jpg", title: ""},
    {url: "files/photos/12576951828272_b.jpg", title: ""},
    {url: "files/photos/12576952847461_b.jpg", title: ""},
    {url: "files/photos/12609475613886_b.jpg", title: ""},
    {url: "files/photos/12609477663187_b.jpg", title: ""},
	{url: "files/photos/12609480289114_b.jpg", title: ""},
	{url: "files/photos/12609482202922_b.jpg", title: ""},
    {url: "files/photos/12609528532357_b.jpg", title: ""},
    {url: "files/photos/12609553697878_b.jpg", title: ""},
    {url: "files/photos/12609554674068_b.jpg", title: ""},
    {url: "files/photos/12609559102790_b.jpg", title: ""},
    {url: "files/photos/12609559878335_b.jpg", title: ""},
    {url: "files/photos/12609561736322_b.jpg", title: ""},
	{url: "files/photos/12609563495692_b.jpg", title: ""},
    {url: "files/photos/12609565876707_b.jpg", title: ""},
    {url: "files/photos/12609568193526_b.jpg", title: ""},	
    {url: "files/photos/12609570569585_b.jpg", title: ""},
    {url: "files/photos/12609572635673_b.jpg", title: ""},
    {url: "files/photos/12609573833601_b.jpg", title: ""},
    {url: "files/photos/12609576404733_b.jpg", title: ""},	
    {url: "files/photos/12609577657362_b.jpg", title: ""},	
    {url: "files/photos/12609578561977_b.jpg", title: ""},	
    {url: "files/photos/12609583496735_b.jpg", title: ""},	
];

function mycarousel_itemLoadCallback(carousel, state)
{
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) {
            continue;
        }

        if (i > mycarousel_itemList.length) {
            break;
        }

        var item = jQuery(mycarousel_getItemHTML(mycarousel_itemList[i-1])).get(0);

        tb_init(item);

        carousel.add(i, item);
    }
};

function mycarousel_getItemHTML(item)
{
    var url_m = item.url.replace(/_s.jpg/g, '_m.jpg');
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="84" height="63" border="0" alt="' + item.title + '" /></a>';
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        size: mycarousel_itemList.length,
        itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback}
    });
});
