﻿$(function() {
    $(".store-list li").click(function() {
        window.location = $("a", this).attr("href");
    });

    $(".regions li").mouseover(function() {
        $("a", this).css({ fontWeight: "bold" });
    }).mouseout(function() {
        $("a", this).css({ fontWeight: "" });
    });
});

var storePage = {
    height: function() {
        var height = 0;
        $(".content-promotion .Item").each(function() {
            if ($(this).height() > height)
                height = $(this).height();
        });
        return height;
    }
};

$(function() {
    var max = 0;
    $('.images li').each(function() {
        var container = $('.image-container', this);
        var caption = $('.caption', this);
        var height = container.outerHeight(true) + caption.outerHeight(true);
        if (height > max) {
            max = height;
        }
    });
    $('.store-page.template5 .images li').css('height', max);

    $('#store .navigation li.link').click(function() {
        window.location = $('a', this).attr('href');
        return false;
    });
});

