olmensk,
$(function() {
var arrText = [];
$(".list1, .list2, .list3").each(function(indx, ul) {
arrText[indx] = "";
$("li", ul).click(function() {var img_path = $(this).attr("path-img"),title = $("img", this).data("title");
$("li", ul).css("border-color", "white");
$(this).css("border-color", "#000");
$(".bottom" + (indx == 2? 2 : 1)).css("background", "url(" + img_path + ") repeat");
arrText[indx] = title;
$(".bloknot").html(arrText.join("<br>"))})
})
});