function tab(current) {
	tabs = current.parentNode.getElementsByTagName("li");
	l = current.parentNode.getElementsByTagName("li").length;
	tb = current.id.replace("sm","sc");
	for (i=1;i<=l;i++) {
		
		tabs[i-1].className = 'notthis';
		t = "sc"+i;

		document.getElementById(t).style.display = t == tb ? 'block' : 'none';
		};
	current.className = 'this';
	};