	function In(divId){
		this.window.document.getElementById(divId).style.visibility = "visible";
		this.window.document.getElementById(divId).style.zIndex = 10;
	}
	
	function Out(divId){
		this.window.document.getElementById(divId).style.zIndex = -1;
		this.window.document.getElementById(divId).style.visibility = "hidden";
	}
	
	function chgImg(direction) {
		if (this.window.document.all){
	      this.window.document.images.slideshow.style.filter="blendTrans(duration=2)";
	      this.window.document.images.slideshow.style.filter="blendTrans(duration=crossFadeDuration)";
	      this.window.document.images.slideshow.filters.blendTrans.Apply();
		}
		if (this.window.document.images) {
			PIndex = PIndex + direction;
			if (PIndex > numPSlides) { PIndex = 0; }
			if (PIndex < 0) { PIndex = numPSlides; }
						
			this.window.document.slideshow.src = preLoadPlayerImages[PIndex].src;
			if (this.window.document.all){
				this.window.document.images.slideshow.filters.blendTrans.Play();
			}
			this.window.clearInterval(runPressbox);
			runPressbox = this.window.setInterval("chgImg(1)", delay);
		}
	}

	function changeTabs(tabClicked){
		var s1 = tabClicked.toUpperCase();
		if (s1 == "STATSTAB"){
			this.window.document.getElementById("statsTabText").innerHTML = statsTabInnerHTML_S;
			this.window.document.getElementById("transitionsTabText").innerHTML = transitionsTabInnerHTML;
			this.window.document.getElementById("milestonesTabText").innerHTML = milestonesTabInnerHTML;
			this.window.document.getElementById("proCareerTabText").innerHTML = proCareerTabInnerHTML;
			this.window.document.getElementById("playerStatsScroll").style.visibility = "visible";
			this.window.document.getElementById("playerStatsScroll").style.zIndex = "10";
			this.window.document.getElementById("playerMilestonesScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerMilestonesScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerTransactionsScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerTransactionsScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerProCareerScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerProCareerScroll").style.zIndex = "-1";
		}
		else if (s1 == "TRANSITIONSTAB"){
			this.window.document.getElementById("statsTabText").innerHTML = statsTabInnerHTML;
			this.window.document.getElementById("transitionsTabText").innerHTML = transitionsTabInnerHTML_S;
			this.window.document.getElementById("milestonesTabText").innerHTML = milestonesTabInnerHTML;
			this.window.document.getElementById("proCareerTabText").innerHTML = proCareerTabInnerHTML;
			this.window.document.getElementById("playerStatsScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerStatsScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerMilestonesScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerMilestonesScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerTransactionsScroll").style.visibility = "visible";
			this.window.document.getElementById("playerTransactionsScroll").style.zIndex = "10";
			this.window.document.getElementById("playerProCareerScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerProCareerScroll").style.zIndex = "-1";
		}
		else if (s1 == "MILESTONESTAB"){
			this.window.document.getElementById("statsTabText").innerHTML = statsTabInnerHTML;
			this.window.document.getElementById("transitionsTabText").innerHTML = transitionsTabInnerHTML;
			this.window.document.getElementById("milestonesTabText").innerHTML = milestonesTabInnerHTML_S;
			this.window.document.getElementById("proCareerTabText").innerHTML = proCareerTabInnerHTML;
			this.window.document.getElementById("playerStatsScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerStatsScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerMilestonesScroll").style.visibility = "visible";
			this.window.document.getElementById("playerMilestonesScroll").style.zIndex = "10";
			this.window.document.getElementById("playerTransactionsScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerTransactionsScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerProCareerScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerProCareerScroll").style.zIndex = "-1";
		}
		else if (s1 == "PROCAREERTAB"){
			this.window.document.getElementById("statsTabText").innerHTML = statsTabInnerHTML;
			this.window.document.getElementById("transitionsTabText").innerHTML = transitionsTabInnerHTML;
			this.window.document.getElementById("milestonesTabText").innerHTML = milestonesTabInnerHTML;
			this.window.document.getElementById("proCareerTabText").innerHTML = proCareerTabInnerHTML_S;
			this.window.document.getElementById("playerStatsScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerStatsScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerMilestonesScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerMilestonesScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerTransactionsScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerTransactionsScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerProCareerScroll").style.visibility = "visible";
			this.window.document.getElementById("playerProCareerScroll").style.zIndex = "10";
		}
	}


	function changeSystemTabs(tabClicked){
		var s1 = tabClicked.toUpperCase();
		if (s1 == "STATSTAB"){
			this.window.document.getElementById("statsTabText").innerHTML = statsTabInnerHTML_S;
			this.window.document.getElementById("transitionsTabText").innerHTML = transitionsTabInnerHTML;
			this.window.document.getElementById("playerStatsScroll").style.visibility = "visible";
			this.window.document.getElementById("playerStatsScroll").style.zIndex = "10";
			this.window.document.getElementById("playerTransactionsScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerTransactionsScroll").style.zIndex = "-1";
		}
		else if (s1 == "TRANSITIONSTAB"){
			this.window.document.getElementById("statsTabText").innerHTML = statsTabInnerHTML;
			this.window.document.getElementById("transitionsTabText").innerHTML = transitionsTabInnerHTML_S;
			this.window.document.getElementById("playerStatsScroll").style.visibility = "hidden";
			this.window.document.getElementById("playerStatsScroll").style.zIndex = "-1";
			this.window.document.getElementById("playerTransactionsScroll").style.visibility = "visible";
			this.window.document.getElementById("playerTransactionsScroll").style.zIndex = "10";
		}
	}
