// JavaScript Document

a = true;

function colAll(sec){
	if (!document.getElementById) return null;
	if(a == true){
		for(var i=0;i<sec;i++){
			var what = document.getElementById("detail_"+i);
			what.className = "hidden";
			var head = document.getElementById("head_"+i);
			head.className = "plus"
			a = false;
		};
		/*text = document.getElementById("all");
		text.innerHTML = "Click here to expand all the menu catagories"; */
	}else{
		for(var i=0;i<sec;i++){
			what = document.getElementById("detail_"+i);
			what.className = "display";
			var head = document.getElementById("head_"+i);
			head.className = "minus"
			a = true;
		};
		/*text = document.getElementById("all");
		text.innerHTML = "Click here to collapse all the menu catagories"*/; 
	};
};

function showHide(n){
	if (!document.getElementById) return null;
	var what = document.getElementById("detail_"+n);
	var head = document.getElementById("head_"+n);
	if(what.className == "display"){
		what.className = "hidden"; 
		head.className = "plus";
	}else{
		what.className = "display";
		head.className = "minus";
	};
};
/*
popUp = 0;

function popWinC(URL,name,w,h){
	if(popUp){
		popUp.close();
	};
	var winPosX = (screen.width - w)*.5;
	var winPosY = (screen.height - h)*.5;
	if(screen.width > (screen.height*2)){
		winPosX = ((screen.width*.5)-w)*.5;
	};
	props = 'height='+h+',width='+w+',top='+winPosY+',left='+winPosX;
	popUp=window.open(URL,name,props);
	popUp.focus();
};

function swapImage(imgName,theSrc) {
	eval("document.images."+imgName+".src='"+theSrc+"'");
}

function confirmSubmit(text){
	var agree = confirm(text);
	if(agree){
		return true;
	}else{
		return false;
	};
};*/