Решил проблему:
function switchimg(t_ident, t_ident_b, abc) {
if (abc != "1")
{
if (vsig_dom('active_thumb')) {
vsig_dom('active_thumb').id = ""
}
abc.firstChild.id ="active_thumb";
}
//topimage
var topimg = "topimg" + t_ident_b[2];
t_ident[6] = t_ident[6].replace(/'/g, "'"); //replace ' with ' in alt-title
t_ident[4] = t_ident[4].replace(/'/g, "'"); //replace ' with ' in link-title
t_ident[6] = t_ident[6].replace(/&/g, "&"); //replace & with & in alt-title
//switch caption
var t_cap = (typeof (vsig_dom(topimg).parentNode.href) !== "undefined") ? (vsig_dom(topimg).parentNode.parentNode.getElementsByTagName("div")) : (vsig_dom(topimg).parentNode.getElementsByTagName("div"));
if (t_cap.length >= 1) {
t_cap[0].innerHTML = (t_ident[1] !== "" || t_ident[2] !== "") ? ("<span>" + t_ident[1] + "</span><span>" + t_ident[2] + "</span>") : "";
}
//switch link
if (typeof (vsig_dom(topimg).parentNode.href) !== "undefined") {
vsig_dom(topimg).parentNode.href = t_ident[3];
vsig_dom(topimg).parentNode.title = t_ident[4];
vsig_dom(topimg).parentNode.target = t_ident[5];
}
//switch image
vsig_dom(topimg).src = t_ident_b[0] + "vsig_images/" + t_ident[0];
vsig_dom(topimg).alt = t_ident[6];
vsig_dom(topimg).title = t_ident[6];
}