﻿$(document).ready(function() {

    $("#thumbnails img").each(function() {
        $(this).css("cursor", "pointer");
    });

    $("#thumbnails img").click(function() {
        ShowImage($(this).attr("mainimage"));
    });
});

function ShowImage(src) {
    $("#mainimage img:first").attr("src", src);
}
