$('#roller-wrapper').ready(function() {
    interv = window.setInterval (function() {
        // interval hack for Chrome which apparently calls .ready() prematurely,
        // not letting the widths calculate properly
        if ((w = jQuery('#roller-wrapper ul li img').width()) < 100) return
        
        window.clearInterval(interv)
        
        amount = jQuery(document).width() / w
        amount1 = jQuery('#roller-wrapper ul li').length
        if (amount > amount1) {
            amount = amount1
        }
        
        jQuery('#roller-wrapper').jCarouselLite({
            btnPrev : '#roller-left',
            btnNext : '#roller-right',
            visible: amount,
            circular: true
        })
        
        if (navigator.userAgent.match(/MSIE 6/) && w*amount > (ww = jQuery('#header').width())) {
            jQuery('#roller-holder').css('position', 'relative').css('left', '-' + (w*amount - ww)/2 + 'px')
        }
        
        Shadowbox.setup(jQuery("a.show_hall_gallery_image"), {
            gallery: "1"
        })}
    , 50)
});
