

var bannerRotator = {
	timer:null,
	urls:new Array(),
	cur:0,
	id:0,
	
	setImageID:function(id)
	{
		this.id=id;
	},
	
	add:function(url)
	{
		this.urls[this.urls.length]=url;
	},
	
	rotate:function()
	{
		clearTimeout(this.timer);
		this.cur++;
		if (this.cur>=this.urls.length) this.cur=0;
        document.getElementById('banner_partner_name').innerHTML = this.urls[this.cur];
		this.timer=setTimeout('bannerRotator.rotate()',5000);
	},
	
	start:function()
	{
		this.cur = Math.floor(Math.random() * this.urls.length);
		this.rotate();
	}
	
	
}