function switchCell(n,hash){
	nc=document.getElementsByName("navcell");
	if(nc){
		t=document.getElementsByName("tb")
		for(i=0;i<nc.length;i++){

			t.item(i).className="hide-table";
		}

		t.item(n-1).className="tab-content";
	}else if(navcell){
		for(i=0;i<navcell.length;i++){

			tb[i].className="hide-table";
		}

		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 + ".jpg";
			}else{
				t.src="images/spnew_0" + i + ".jpg";
			}
		}
	}
}
