function work1() {
window.test = document.getElementById("player");
window.arr = tracks.split(",");
window.j = 0;
window.timer1 = window.setInterval("gtau()", 350);
};
function gtau() {
j++;
VK.Api.call("audio.search", {q: arr[0] + " " + arr[j] }, function (r) {
var object = "<object data='player.swf' width='400' height='55'> ";
object += "<param name='bgcolor' value='#ffffff' /><param name='allowScriptAccess' value='always' /> <param name='movie' value='player.swf' /> ";
object += "<param name='flashvars' value='comment=" + r.response[1].title + "&m=audio&file=" + r.response[1].url + "' /> </param> </object>";
test.innerHTML += object;
});
if (j >= 4) clearInterval(window.timer1);
};
И правда, работает. Благодарю.