/*Scripted by Mihail Polyakov (c) 2010*/
var cTab = "lc_tab_1";

function hlTab(obj,stat) {
  if (obj.className == "lc_tab_off") {
    if (stat) { obj.style.textDecoration = "underline"; } else { obj.style.textDecoration = "none"; }
  }
}

function chTab(obj,tab) {
 tabToSet = document.getElementById("lc_tab_"+tab);
 tabToOff = document.getElementById(cTab);
 if (tabToSet.id != tabToOff.id) {
   offAll();
   obj.className = "lc_tab_on";
   obj.style.textDecoration = "none";
   tabToOff.className = "h";
   tabToSet.className = "";
   cTab = "lc_tab_"+tab;
 }
}

function offAll() {
  tabs = document.getElementById("lc_tabs").getElementsByTagName("td");
  for(i = 0; i != tabs.length; i++) {
    tabs[i].className = "lc_tab_off";
  }
}
