isExpanded = false;

function Resize(height,width) {
		window.resizeTo(height,width);
}

var oLastBtn = 0;
function RaiseButton(){
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	var bChosen = false;
	if(oLastBtn && oLastBtn != oBtn){
		HideButton();
	}
	if(oBtn.buttonType){
		oBtn.className = oBtn.buttonType + "Up";
		oLastBtn=oBtn;
	}else{
	oLastBtn = 0;
	}
}

function DepressButton(){
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	if(oBtn.buttonType){
		oBtn.className = oBtn.buttonType + "Down";
	}
}

function HideButton(){
	if ((oLastBtn.buttonType == "LeftNavChosen") || (oLastBtn.buttonType == "LeftNavSubChosen")) {
		oLastBtn.className = oLastBtn.buttonType;
	}else {
		oLastBtn.className = oLastBtn.buttonType + "Off";
	}
}

function initIt(){
   tempColl = document.all.tags("DIV");
   for (i=0; i<tempColl.length; i++) {
      if (tempColl(i).className == "cat") tempColl(i).style.display = "none";
   }
}

function expandAll(isBot) {
	divColl = document.all.tags("DIV");
   for (i=0; i<divColl.length; i++) {
   	if (divColl(i).className == "cat") {
   		divColl(i).style.display = (isExpanded) ? "none" : "block";
   	}
   }
   isExpanded = !isExpanded;
}

function expandIt(ID) {
	divColl = document.getElementById(ID);
	if (divColl.style.display == "block") {
		divColl.style.display = "none";
	}else{
		divColl.style.display = "block";
	}
}
