	CPartnersBanner = function(){
		this.max = 0;
		this.min = 0;
		this.current;
		
		this.SetMinMax = function(a_s, a_e){
			this.min = a_s;
			this.max = a_e;
		};
		
		this.HideAll = function(){
			$("div.partners_banner div.partner4banner").each(function(){
//				this.css("display", "none");
				this.style.display = "none";
			});
		};
		
		this.ShowCurrent = function(){
			$("div.partners_banner div#partner_"+this.current).css("display", "block");
		}
		
		this.HideCurrent = function(){
			$("div.partners_banner div#partner_"+this.current).css("display", "none");
		}
		
		this.ShowNew = function(a_idx){
			this.current = a_idx;
			$("div.partners_banner div#partner_"+this.current).css("display", "block");
		}
		
		this.StartShow = function(a_func){
			var next = this.GetNext();
			this.HideCurrent();
			this.ShowNew(next);
			setTimeout(a_func, 5000);
		}

			
		this.GetNext = function(){
			var next;
			next = (Math.floor((this.max-(this.min-1))*Math.random()) + this.min);
			if (next != this.current){
				return next;
			}else{
				return this.GetNext();
			}
		}
		
	}