mp.features = {
    actions: ['battling', 'commenting', 'poking', 'tweeting', 'uploading pictures', 'watching videos', 'playing songs'],
    current: 0
};

mp.features.init = function(eid, time) {
    setTimeout(function() {
        mp.features.swap(eid, time)
    }, time);
};

mp.features.swap = function(eid, time) {
    mp.features.current += 1;
    mp.features.current = mp.features.current % mp.features.actions.length;
	
	$("#" + eid).fadeOut(100, function() {
	    $("#" + eid).html(mp.features.actions[mp.features.current]);
		$("#" + eid).fadeIn(300);
	});
	
    setTimeout(function() {
        mp.features.swap(eid, time)
    }, time);
};
