function _ni_animation_1c(id)
{
	var run = false;
	var i;
    for (i in _ni_percentage[id])
    {
		if ($('#'+id+' ._ni-percentage_'+i).text()*1.0 + 1.0 > _ni_percentage[id][i] ) {
			$('#'+id+' ._ni-percentage_'+i).text(_ni_percentage[id][i]);
		}
		else {
			$('#'+id+' ._ni-percentage_'+i).text(($('#'+id+' ._ni-percentage_'+i).text()*1.0 + 1.0) + '.0');
			run = true;
		}
	}
	if (run) {
		setTimeout("_ni_animation_1c('"+id+"');", 50);
	}
}

function _ni_animation_2c(id)
{
	var run = false;
	var i;
    for (i in _ni_percentage[id])
    {
		if ($('#'+id+' ._ni-percentage_'+i).text()*1.0 + 1.0 > _ni_percentage[id][i]['first'] ) {
			$('#'+id+' ._ni-percentage_'+i).text(_ni_percentage[id][i]['first']);
		}
		else {
			$('#'+id+' ._ni-percentage_'+i).text(($('#'+id+' ._ni-percentage_'+i).text()*1.0 + 1.0) + '.0');
			run = true;
		}
        if ($('#'+id+' ._ni-percentage_p_'+i).text()*1.0 + 1.0 > _ni_percentage[id][i]['second'] ) {
			$('#'+id+' ._ni-percentage_p_'+i).text(_ni_percentage[id][i]['second']);
		}
		else {
			$('#'+id+' ._ni-percentage_p_'+i).text(($('#'+id+' ._ni-percentage_p_'+i).text()*1.0 + 1.0) + '.0');
			run = true;
		}
	}
	if (run) {
		setTimeout("_ni_animation_2c('"+id+"');", 50);
	}
}