function showBanner(url, banner, target, height, wdith, alt, border, mode, duplicate) {
	if (duplicate == false) {
    for (i = 0; i < ITEM_COUNT; i++) {
      selected[i] = -1;
    }
	}
	do {
		switch (mode) {
		case 1:
			n = Math.floor(Math.random()*url.length);
			break;

		case 2:
			dd = new Date();
			n = dd.getTime() % url.length;
			break;

		default:
			n = Math.floor(Math.random()*url.length);
			break;
		}
	} while(selected[n] == 1);
	selected[n] = 1;

	switch (target) {
	case 1:
		target = "target='_blank'";
		break;
	case 2:
		target = "target='_top'";
		break;
	case 3:
		target = "target='_parent'";
		break;

	default:
		target = "target='_parent'";
		self;
	}

	if (!isNaN(border)) {
		border = " border='" + border + "'";
	} else {
		border = "";
	}
	if (!isNaN(height)) {
		height = " height='" + height + "'";
	} else {
		height = "";
	}
	if (!isNaN(width)) {
		width = " width='" + width + "'";
	} else {
		width = "";
	}

	if (alt != "") {
		alt = " alt='" + alt + "'";
	} else {
		alt = "";
	}
	document.write("<a href='" + url[n] + "' " + target + " >");
	document.write("<img src='" + banner[n] + "'" + border + height + width + alt +"'/>");
	document.write("</a>");
}

