// JScript source code
jQuery(function($) {
    //$.preload('../images/left_main.png');
});

$(window).load(function() {
    if ($.browser.webkit && document.readyState != "complete") {

    }

    if ($('#wrapper:has(div.blog)')) {
        var h = $('.blog table').height();
        $('#container').css('min-height', h - ($('#header').height() - 145));
        $('.blog #container-main').css('min-height', h - 16);
        $('.blog #container-main table').css('min-height', h - 16);
        var h = $('#wrapper').height();
        $('#right-shadow').css('min-height', h);
        $('#left-shadow').css('min-height', h);
        if ($.browser.name == 'firefox') {
            $('#container').css('padding-bottom', '0');
        }
    }
});

$(document).ready(function() {

});

function goToSlide(s) 
{
    var selected = $('#slide-' + s);
    var slides = $('#product-slides .slide:visible').not('#slide-' + s);
    slides.fadeOut('fast', function() 
    {
        selected.fadeIn('fast');
    });
    $('#product-tabs .active').removeClass('active');
    $('#product-tabs #tab-' + s).addClass('active'); 
    return false;
}


