var banners = new Array();
var currentBannerIndex = -1;

function bannerRotator(){
    currentBannerIndex++;
    
    if(currentBannerIndex>banners.length-1) currentBannerIndex = 0;
    $('div#nyitoBanner img').attr('src', banners[currentBannerIndex]);
}

$(function(){
    if(banners[0]!==""){
        setInterval("bannerRotator()", 4000)
    }
})
