function handleError() {
    return true;
}
window.onerror = handleError;

jQuery(function($) {    
    $(".button-top").click(function() {
        $.scrollTo("#wrapper",250);
        return false;
    })
    if ($('.slider').length)
    {
        $('.slider-inside').jCarouselLite({
            btnPrev: 'a.prev',
            btnNext: 'a.next',
            auto: 5000,
            speed: 800,
            circular: true,
            visible: 1
        });
    }
    $("#watchvid").click(function() {
        $.fancybox({
            'autoscale' : false,
            'transitionIn' : 'none',
            'transitionOut': 'none',
            'padding' : 0,
            'width'  : 370,
            'height' : 301,
            'type'    : 'swf',
            'href'    : this.href,
            'swf'   : {
                'wmode':'transparent',
                'allowfullscreen':'true'
            }
        });
        return false;
    });
});
