    function BuildContent(i) {
        if (i>=Images.length)
            i = i%Images.length;
        var content="";
        content = '<a href="http://'+Urls[i]+'" target="_blank" class="Sponsor">';
        content += '<img src="'+Images[i]+'" class="SponsorImg" />';
        content += '<span class="SponsorTitle">'+Titles[i]+'</span><br /><span class="SponsorText">'+Texts[i]+'</span><br /><span class="SponsorUrl">'+Urls[i]+'</span></a>';
        return content;
    }
    
    function Rotate(iStart) {
        //document.getElementById('Sponsor1').style.display='inline';
        //document.getElementById('Sponsor'+rnd).style.display='none';
        document.getElementById('Sponsor1').innerHTML = BuildContent(iStart); 
        document.getElementById('Sponsor2').innerHTML = BuildContent(iStart+1); 
        document.getElementById('Sponsor3').innerHTML = BuildContent(iStart+2); 
        
        iStart = iStart + 1;
        if (iStart > Images.length)
          iStart = 0;
        window.setTimeout("Rotate("+iStart+")",3000);
    }

