function scRBinit( rotateWhat ) {
	function rotateTop() {
		var imgLink = document.getElementById("topBnrImgLink");
		var bnrImg = imgLink.getElementsByTagName("img");
		var txtLink = document.getElementById("topBnrTxtLink");
		if (imgLink && txtLink && window.scRBtopList && scRBtopList) {
			var newBnr = scRBtopList[Math.floor(scRBtopList.length * Math.random())];
			imgLink.setAttribute("href", (newBnr.rbId + ".html"));
			txtLink.setAttribute("href", (newBnr.rbId + ".html"));
			txtLink.innerHTML = newBnr.rbText;
			bnrImg = bnrImg[0];
			bnrImg.removeAttribute("height");
			bnrImg.removeAttribute("width");
			bnrImg.setAttribute("alt", newBnr.rbName);
			bnrImg.setAttribute("src", newBnr.rbImage);
		}
	}
	
	function rotateMain() {
		var bnrLink = document.getElementById("mainBnrLink");
		var bnrImg = bnrLink.getElementsByTagName("img");
		if (bnrLink && bnrImg && window.scRBmainList && scRBmainList) {
			var newBnr = scRBmainList[Math.floor(scRBmainList.length * Math.random())];
			bnrLink.setAttribute("href", (newBnr.rbId + ".html"));
			bnrImg = bnrImg[0];
			bnrImg.removeAttribute("height");
			bnrImg.removeAttribute("width");
			bnrImg.setAttribute("alt", newBnr.rbName);
			bnrImg.setAttribute("src", newBnr.rbImage);
		}
	}
	
	switch (rotateWhat) {
		case "top":
			rotateTop();
			break;
		case "main":
			rotateMain();
			break;
	}
}
