        function showBanner(bannerId,bannerValue)
        {
            banner = document.getElementById(bannerId);
            banner.innerHTML = bannerValue;

        }


        function BannerDisplay(bannerId, bannerArray)
        {

                
                this.bannerArray = bannerArray;
                this.bannerId = bannerId;
                this.length = bannerArray.length;
				this.counter = Math.floor(Math.random()*this.length) ;

        }
        BannerDisplay.prototype.display = function()
                {
                    if (this.length ==0 ) return;
                    showBanner(this.bannerId, this.bannerArray[this.counter]);

                }
        BannerDisplay.prototype.rotate = function()
                {
					if (this.length == 0) return;
                    this.counter++;
                    if (this.counter == this.length)
                       this.counter = 0;
                    showBanner(this.bannerId, this.bannerArray[this.counter]);
                }
