﻿$(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: "" });
    });

    // Store panel click on address handler
    $('.store-panel .visit, .store-panel .open-hours').click(function() {
        location = $('.company-name a', $(this).parent()).attr('href');
    });
});

var storePage = {
    height: function() {
        var height = 0;
        $(".content-promotion .Item").each(function() {
            if ($(this).height() > height)
                height = $(this).height();
        });
        return height;
    }
};
