function switchCell(n, hash){
	nc=document.getElementsByName("navcell");
	if(nc){
		t=document.getElementsByName("tb")
		for(i=0;i<nc.length;i++){
			//nc.item(i).className="tab-off";
			t.item(i).className="hide-table";
		}
		//nc.item(n-1).className="tab-on";
		t.item(n-1).className="tab-content";
	}else if(navcell){
		for(i=0;i<navcell.length;i++){
			//navcell[i].className="tab-off";
			tb[i].className="hide-table";
		}
		//navcell[n-1].className="tab-on";
		tb[n-1].className="tab-content";
	}
	if(hash){
		document.location="#"+hash;
	}
}

function changeCellImage(n,m){
	for(i=1;i<=m;i++){
		t=document.getElementById("Image0" + i)
		if(t){
			if(i==n){
				t.src="images/roll_0" + i + ".gif";
			}else{
				t.src="images/spnew_0" + i + ".gif";
			}
		}
	}
}

