var Sponsors = new Class({
	initialize: function(container, delay, tag) {
		console.log(tag);
		this.container = container;
		this.delay = delay;
		this.master = new Hash({
			"all": [
				"images/sponsors/bankofnewyork.gif", 
				"images/sponsors/mcdonalds.gif", 
				"images/sponsors/dytech.jpg", 
				"images/sponsors/starwood.gif", 
				"images/sponsors/IBSA.gif", 
				"images/sponsors/est_profumo.gif"
			],
			"default": [
				"images/sponsors/anna_disegni.gif", 
				"images/sponsors/estancia_el_rocio.gif", 
				"images/sponsors/International.gif", 
				"images/sponsors/est_marutian.gif", 
				"images/sponsors/fengshui.gif", 
				"images/sponsors/la_historia.gif", 
				"images/sponsors/lupalab.gif", 
				"images/sponsors/portalmiami.gif", 
				"images/sponsors/newpolitic.gif", 
				"images/sponsors/portalmiami.gif", 
				"images/sponsors/radiomiami.gif", 
				"images/sponsors/rest_bengal-medium;init_.jpg", 
				"images/sponsors/rest_inaki.gif", 
				"images/sponsors/rest_rumi.gif", 
				"images/sponsors/luxcar.gif",
				"images/sponsors/the_ice_planet.gif"
			]
		});
		this.list = this.master.get("all");
		if (this.master.hasKey(tag)) {
			this.list.extend( this.master.get(tag));
		} else {
			this.list.extend( this.master.get("default"));
		}
		$(this.container).innerHTML = "";
		
		this.j = 0;
		this.show();
	}
,	show: function() {
		for (var k=0; k<5; k++) {
			if (this.j<this.list.length) {
				new Asset.image(this.list[this.j]).injectInside(this.container);
				this.j++;
			}
		}
		if (this.j<this.list.length) {
			this.show.delay(this.delay, this);
		}
	}
});
