NSGBannerSwitcher = Class.create({
	i: null,
	images: null,
	containerID: null,

	initialize: function(containerID) {
		this.containerID = containerID;

		// identify all images, add IDs to images array
		this.images = new Array();
		$(containerID).select('img').each(function(elm){
			this.images.push(elm.identify());
		}.bind(this));

		// get random number
		this.i = Math.floor(Math.random() * this.images.size());

		$(this.images[this.i]).show();
	}
});
var nsgBannerSwitcher;
