var colors = ["rgb(250,192,30)", "rgb(14,142,250)", "rgb(91,10,4)"];
var colorIndex = 0;
var that = this;
var t = setInterval(function() {
var paths = $(that.element).find("path[style*='fill: rgb(229, 113, 90);']")
if (paths[0]) {
$(paths).off("mousemove");
clearInterval(t);
paths.each(function() {
$(this).mouseover(function(event) {
event.preventDefault();
event.stopPropagation();
return false;
});
$(this).mouseout(function(event) {
event.preventDefault();
event.stopPropagation();
return false;
});
$(this).mousemove(function(event) {
event.preventDefault();
event.stopPropagation();
return false;
});
$(this).css('fill', colors[colorIndex]);
colorIndex++;
});
colorIndex = 0;
}
}, 300);