var majors = new Array('one','two','three','four','five','six');

function reset(){
	document.getElementById("boxone").style.backgroundColor='#ffffff';
	document.getElementById("boxtwo").style.backgroundColor='#ffffff';
	document.getElementById("boxthree").style.backgroundColor='#ffffff';
	document.getElementById("boxfour").style.backgroundColor='#ffffff';
	document.getElementById("boxfive").style.backgroundColor='#ffffff';
	document.getElementById("boxsix").style.backgroundColor='#ffffff';
}

function toggle(a,b) {
	if (!document.getElementById){
		return true;
	}
	reset();
	temp = "box" + a;
	document.getElementById(temp).style.backgroundColor='#BAA605';
	if (b==1) {
		for (var i=majors.length-1; i>=0; i--) {
			 if (majors[i] != a) {
				document.getElementById(majors[i]).style.display='none';
				}
			}
		}
	a=document.getElementById(a);
	if (a.style.display=='block') {
		document.getElementById(temp).style.backgroundColor='#BAA605';
	} else {
		a.style.display='block';
	    document.getElementById(temp).style.backgroundColor='#BAA605';
	}
	return false;
}