var n = Array();
var item;
var index;
var virus_horoshij;
var el;
var func = function() {
	if (typeof(n[index]) == 'undefined') n[index] = 1;
	if (item[n[index]]) {
		el.src = item[n[index]]['path'];
		n[index]++;
	} else {
		n[index] = 0;
	}
}

function profile_video_pre_start(e, n) {
	el = e;
	if (!profile_videos[n]) return;
	item = profile_videos[n];
	index = n;
	virus_horoshij = func.periodical(500);
}
function profile_video_pre_stop(e, n) {
	$clear(virus_horoshij);
}
