﻿var oldBox = 0;
var newBox = 0;
function ActivateBox(theBox) {
	oldBox = newBox;
	if (theBox != oldBox) {
		newBox = theBox;
		$(".boxOver").stop().hide();
		$("#boxOver" + theBox).css({ opacity: 0 });
		$("#boxOver" + theBox).show();
		$("#boxOver" + theBox).animate({ opacity: 0.90 }, 500, "linear");
		$(".text").stop().hide();
		$("#text" + theBox).css({ opacity: 0 });
		$("#text" + theBox).show();
		$("#text" + theBox).animate({ opacity: 0.90 }, 500, "linear");
	}
}
