
var tab = Request.QueryString("tab") || "0";

$(function(){
	tab = $("#Tab" + tab).length ? tab : 0;
	switchTab(tab);
});

function switchTab(tab) {
	$("#toc li").removeClass("current");
	$(".tab-content").hide();
	$("#liTab" + tab).addClass("current");
	$("#Tab" + tab).show();
	//scrollTo(0, 0);
	if (typeof TabTitles != 'undefined' && tab >= 0) {
		var title = TabTitles[tab];
		document.title = title;
	}
}

