function showDiv(n) {
	document.getElementById(n).style.display = "block";
}

function hideDiv(n) {
	document.getElementById(n).style.display = "none";
}

var tabs = new Array("article", "tutorial");

function showTab(n) {
	for(i = 0; i < tabs.length; i++) {
		if(tabs[i] == n) {
			showDiv("d_"+tabs[i]);
		} else {
			hideDiv("d_"+tabs[i]);
		}
	}
}


function showTutorial(x) {
	location.href = "/howto/" + x + ".jsp?" ;
//	alert("test");
}

function checkTab_state() {
	var n = 0;
	var tab_state = window.location.href;
	var n = tab_state.indexOf('?');
//	alert(tab_state);
//	alert('n = ' + n);
	if (n > 0) {
	showTab('tutorial');
	}
}

