var currentTabId = -1;var currentInnerTabId = -1;var tabIdName = "tab_";
function displayTab(obj){$("#htabs > li").each(function (intIndex){if (this == obj) { $(this).addClass("sel"); currentTabId = intIndex; }else { $(this).removeClass("sel"); }});$("#htabs").siblings().each(function (intIndex){if (this.id.indexOf("tab_") == 0){if (tabIdName + currentTabId == this.id) $(this).show();else $(this).hide();}});displayInnerTab($("#" + tabIdName + currentTabId + " ul li a")[0]);}
function displayInnerTab(obj){$("#" + tabIdName + currentTabId + " ul.innavig li a").each(function (intIndex) { if (this == obj) { $(this).addClass("sel"); currentInnerTabId = intIndex; } else { $(this).removeClass("sel"); } } );$("#" + tabIdName + currentTabId + " ul.text").each(function (intIndex){if (intIndex == currentInnerTabId) $(this).show();else $(this).hide();});}
displayTab($("#htabs > li")[0]);