function setSizes() {    var minHeight = $(window).height() -            $('#header').height() -            $('#banner').height() -            $('#footer').height() -            parseInt($('#content').css('marginBottom'));    if (minHeight >= $('#content').height()) $('#content').css('height', minHeight);}function initTabs() {    $('#imageInfoTabs > div').each(function() {        $(this).click(function() {            $('#imageInfo div.tabContent').hide();            $('#imageInfoTabs > div').removeClass('selected');            $('#' + this.id + 'Content').show();            $(this).addClass('selected');        });    });    $('#photosTabContent').show();}$(document).ready(function() {    if ($('#imageInfo').get(0)) initTabs();    $('#menu img').each(function() {        var img = document.createElement('IMG');        img.src = this.src.replace('.png', '-selected.png');    }).hover(            function() {                if ($(this).attr('rel') != 'selected')                    this.src = this.src.replace('.png', '-selected.png');            },            function() {                if ($(this).attr('rel') != 'selected')                    this.src = this.src.replace('-selected.png', '.png');            }            );    /*    $('img.catalog-item-property').hover(function() {        $('#tip').text($(this).attr('alt')).fadeIn();    }, function() {        $('#tip').text('').hide(1);    });    */    $('img.catalog-item-property').hover(function() {        $('#tip').text($(this).attr('alt')).stop(true, true).fadeIn(400);    }, function() {        $('#tip').text('').stop(true, true).hide();    });    /*    $('.addToCart').hover(function() {        $('#tip').text('Добавить в корзину').fadeIn();    }, function() {        $('#tip').text('').hide(1);    });    */        $('.addToCart').hover(function() {        $('#tip').text('Добавить в корзину').stop(true, true).fadeIn(400);    }, function() {       $('#tip').text('').stop(true, true).hide();    });    $('body').mousemove(function(e) {        $('#tip').css({            left: e.pageX + 20,            top: e.pageY + 20        });    });});
