function setBanners() {
	this.Id = "";
	this.Element = "__LoadBanner__";
	this.Width = null;
	this.Height = null;
	this.Files = null;
	this.Delay = null;
	this.Links = null;
	this.SplitChar = ",";
	this.Path = "";
	this.Current = 0;
	this.FlashVer = 7;
	this.Extensions = "jpg,gif,png,swf";
	
	document.write('<input type="hidden" name="txtbanners_counter" id="txtbanners_counter" value="' + this.Current + '">');
	
	this.setSize = function(width, height) {
		this.Width = width;
		this.Height = height;
	}
	
	this.setFiles = function(files_array) {
		var _tmp = files_array.split(this.SplitChar);
		this.Files = _tmp;
	}
	
	this.setDelay = function(delay_array) {
		var _tmp = delay_array.split(this.SplitChar);
		this.Delay = _tmp;
	}
	
	this.setLinks = function(links_array) {
		var _tmp = links_array.split(this.SplitChar);
		this.Links = _tmp;
	}
	
	
	this.display = function() {
		window.refToThisBannerObj = this;
		
		var _obj = jsGetObject(this.Element + this.Id);
		
		if (_obj) {
			_obj.innerHTML = "";
			if (this.Files.length > 1) {
				if (this.Current >= this.Files.length) this.Current = 0;
				if (this.Extensions.indexOf(FileExtension(this.Files[this.Current])) >= 0) {
					if (FileExtension(this.Files[this.Current]) != "swf") {
						var _img = document.createElement('IMG');
						_img.src = this.Path + this.Files[this.Current];
						_img.border = 0;
						if (this.Links[this.Current] != "") {
							var _Link = this.Links[this.Current];
							_img.onclick = function() {
								window.open(_Link);
							}
							_img.style.cursor = "pointer";
						}
						_obj.appendChild(_img);
					} else {
						var so = new SWFObject(this.Path + this.Files[this.Current], "__Banner" + this.Id, this.Width, 
						this.Height, this.FlashVer);
						so.addParam("menu", "false");
						so.addParam("wmode", "transparent");
						so.write(this.Element + this.Id);
					}
				}
				
				var _limit = parseInt(this.Delay[this.Current]) * 1000;
				this.Current++;
				
				setTimeout("window.refToThisBannerObj.display()", _limit);
			} else {
				if (this.Extensions.indexOf(FileExtension(this.Files)) >= 0) {
					if (FileExtension(this.Files) != "swf") {
						var _img = document.createElement('IMG');
						_img.src = this.Path + this.Files;
						_img.border = 0;
						if (this.Links != "") {
							var _Link = this.Links;
							_img.onclick = function() {
								window.open(_Link);
							}
							_img.style.cursor = "pointer";
						}
						_obj.appendChild(_img);
					} else {
						var so = new SWFObject(this.Path + this.Files, "__Banner" + this.Id, this.Width, 
						this.Height, this.FlashVer);
						so.addParam("menu", "false");
						so.addParam("wmode", "transparent");
						so.write(this.Element + this.Id);
					}
				}
			}
		}
	}
}
