	// SWAP image by reference/state
	function jpgSwap(_this, _state) {
		_this.src = "_lib/images/" + _this.id + "_" + _state + ".jpg";
	}
	function pngSwap(_this, _state) {
		_this.src = "_lib/images/menu/" + _this.id + "_" + _state + ".png";
	}
	function subSwap(_this, _state) {
		_this.src = "_lib/images/about/" + _this.id + "_" + _state + ".png";
	}
	
	// OPEN Pop-Ups
	function openWindow(winType, PageURL) {
		if (winType == "player") {//Audio Player
			var load = window.open(PageURL,'thePlayer','scrollbars=no,menubar=no,height=350,width=400,resizable=no,toolbar=no,location=no,status=no');
		} else if (winType == "maps") {// Directions (Google Maps)
			var load = window.open(PageURL,'','scrollbars=auto,menubar=no,height=600,width=785,resizable=yes,toolbar=yes,location=yes,status=yes');
		} else if (winType == "tickets") {  // Tickets
			var load = window.open(PageURL,'','scrollbars=auto,menubar=no,height=600,width=785,resizable=yes,toolbar=yes,location=yes,status=yes');
		}else if (winType == "merchandise") {// Merchandise
			var load = window.open(PageURL,'','scrollbars=auto,menubar=no,height=600,width=785,resizable=yes,toolbar=yes,location=yes,status=yes');
		} else {
			loadPage(PageURL)
		}
	
	}
	
	function swapBodyBG(){
		var elementID = "BODY"; // ID of element to change the background of, or "BODY" for body
		var bgs = new Array(); // Possible backgrounds
		bgs[0] = "url(_lib/images/bgA.jpg) no-repeat top center #886747"; //#886747
		bgs[1] = "url(_lib/images/bgB.jpg) no-repeat top center #7f879a";  //#7f879a
		bgs[2] = "url(_lib/images/bgC.jpg) no-repeat top center #bfbd96";  //
		var rand = Math.floor(Math.random() * bgs.length);
		(elementID == "BODY" ? document.body : document.getElementById(elementID)).style.background = bgs[rand];
	}