
$(document).ready(function() {
    $(".item1, .item2").each(function() {
        var u = $("#" + this.id + " .img a").attr("href");
        $(this).click(function(event) {
            window.top.location = u;
        }).css("cursor", "pointer");
    });
});
