var nbuRates = [];nbuRates[0] = '1 грн = 0 $' ;nbuRates[1] = '1 грн = 0 &euro;' ;nbuRates[2] = '1 грн = 0 руб' ;nbuRates[3] = '1 $ = 0 грн' ;nbuRates[4] = '1 $ = 0 &euro;' ;nbuRates[5] = '1 $ = 0 руб' ;nbuRates[6] = '1 &euro; = 0 грн' ;nbuRates[7] = '1 &euro; = 0 $' ;nbuRates[8] = '1 &euro; = 0 руб' ;nbuRates[9] = '1 руб = 0</b> грн' ;nbuRates[10] = '1 руб = 0 $' ;nbuRates[11] = '1 руб = 0 &euro;' ;var numOfCurrencyRateNbu = 0;
function startNbuCarousel() {
	setInterval("moveNbuCarousel()", 3500);
}
function moveNbuCarousel() {
	if (typeof nbuRates == 'object') {
		if (nbuRates.length > 0) {
			$('#nbuRateBlock').html(nbuRates[numOfCurrencyRateNbu]);
			numOfCurrencyRateNbu = (numOfCurrencyRateNbu + 1) % nbuRates.length;
		}
	}
}
$(document).ready(function() { moveNbuCarousel(); startNbuCarousel(); });
