//This here script was written by Fred de St. Croix of practifab.com
//If you want to use these scripts you can, but you gotta let me know.
//That way I'll get a warm fuzzy feeling knowing that someone actually 
//thinks that it is kind of useful. If I find that someone uses this script
//without telling me I will begin making them almost impossible to copy and modify.  

function switchAcc(newPlace) {
	if (newPlace > place) {
		i=place+1;
		while (i<=newPlace){
			box = "acc"+i;
			newPos = headHeight*i-headHeight;
			movObj = document.getElementById(box);
			movObj.style.top=newPos+"px";
			i=i+1;
		}
	}
	if (newPlace < place) {
		i=place;
		while (i>newPlace){
			box = "acc"+i;
			newPos = boxHeight-(numBox-i+1)*headHeight;
			movObj = document.getElementById(box);
			movObj.style.top=newPos+"px";
			i=i-1;
		}
	}
	hed = "hed"+place;
	hedObj = document.getElementById(hed);
	hedObj.style.background="#81868c";
	
	place=newPlace;	
	
	hed = "hed"+place;
	hedObj = document.getElementById(hed);
	hedObj.style.background="#b6c2ce";
	
}
	
