function BannerSystem() {
	this.currentBanner = -1;
	this.banners = [];
};

BannerSystem.prototype = {

addBanner:function( banner ) {
	if( banner && banner.style ) {
		this.banners[ this.banners.length ] = banner;
	}
},

showFirstBanner:function() {
	this.currentBanner = 0;

	var currentBanner = this.banners[ this.currentBanner ];
	if( currentBanner ) {
		currentBanner.style.display = "block";
	}
},

switchBanner:function() {
	var nextBanner = this.currentBanner + 1;

	if( this.currentBanner >= ( this.banners.length - 1 ) ) {
		if( this.currentBanner == 0 ) {
			return;
		}
		else {
			nextBanner = 0;
		}
	}

	var currentBanner = this.banners[ this.currentBanner ];
	if( currentBanner ) {
		currentBanner.style.display = "none";
	}

	this.currentBanner = nextBanner;

	currentBanner = this.banners[ this.currentBanner ];
	if( currentBanner ) {
		currentBanner.style.display = "block";
	}

}

};