var nbuRates = [];nbuRates[0] = '1 грн = 0.127 $' ;nbuRates[1] = '1 грн = 0.097 &euro;' ;nbuRates[2] = '1 грн = 3.825 руб' ;nbuRates[3] = '1 $ = 7.893 грн' ;nbuRates[4] = '1 $ = 0.768 &euro;' ;nbuRates[5] = '1 $ = 30.187 руб' ;nbuRates[6] = '1 &euro; = 10.283 грн' ;nbuRates[7] = '1 &euro; = 1.303 $' ;nbuRates[8] = '1 &euro; = 39.328 руб' ;nbuRates[9] = '1 руб = 0.261</b> грн' ;nbuRates[10] = '1 руб = 30.187 $' ;nbuRates[11] = '1 руб = 39.328 &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(); });