jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
		wrap : 'circular',
        initCallback: function(carousel, state){

            s = '';

            for(name in carousel){
                s += name + " : " + carousel[name] + '\n';
            }

            $(carousel.container).find('ul').css({overflow: 'visible'});

            //$(carousel.container).find('ul').width(($(carousel.container).find('li').size() * $(carousel.container).find('li').width()) + 'px');
           //alert($(carousel.container).find('img').css('width') + 'px');
        }
    });

//    setTimeout(widther, 100);

    function widther() {
        alert(jQuery('#mycarousel img').css('width'));
    }

    $('#mycarousel img').hover(
        function(){
            
            $(this).css({
                width: "150px",
                marginTop: "-5px",
                marginBottom: "-20px",
                marginLeft: "-6px",
                marginRight: "-6px",
                border: "2px solid #3ec832"
            });
        },
        function(){
            $(this).css({
                width: "140px",
                marginTop: "0",
                marginBottom: "0",
                marginLeft: "0",
                marginRight: "0",
                border: "1px solid #cdcdcd"
            });
        }
    );

    $('.fancybox').fancybox();
});
