$(document).ready(function() {
    $("a.back").click(function() {
        location.history.go(-1);
        return false;
    });

    $("div.images ul a,div.images ul img").each(function() {
        $(this).click(function() {

            var src = this.tagName == "IMG" ? this.src : $(this).siblings("img:first").attr("src");
            src = src.replace("thumb-", "");
            
            $("div.images img.large").attr("src", src);

            return false;
        }).mouseover(function() {
            $(this).css("cursor", "pointer");
        });
    });
});