//---------------------------------------------------------------------------------------
function clickBanner() {
	var myIndex = idx

	hdl = window.open(bList[myIndex].linkurl, bList[myIndex].target)
	return false
}

//---------------------------------------------------------------------------------------
function swapBanner() {
	idx = Math.ceil(Math.random() * bList.length)
	document.images["banner"].src = bList[idx].img.src
	setTimeout("swapBanner()", timeOut);
}

//---------------------------------------------------------------------------------------
function collection() {
	this.length = 0;
	this.add = add;
	return this
}

//---------------------------------------------------------------------------------------
function add(object) {
	this.length++;
	this[this.length] = object
}

//---------------------------------------------------------------------------------------
function banner(imgurl, linkurl, target) {
	this.img = new Image()
	this.img.src = imgurl
	this.linkurl = linkurl
	this.target = target
	return this
}
