startList = function() {
      if (document.all&&document.getElementById) {
            navRoot = document.getElementById("nav");
            for (i=0; i<navRoot.childNodes.length; i++) {
                  node = navRoot.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace(" over", "");
                        }
                  }
            }
      }
}
window.onload=startList;

function LMinit () {
        Cache = new Array();
        for (var c = 1; document.getElementById ('LM' + c) != null; c++)        { Cache[c] = document.getElementById ('LM' + c); }
        for (var c = 2; Cache[c] != undefined; c++) {
                	Cache[c].style.background = Cache[c].className == 'linkActive' ? '#FECD48' : '';
        }
        var        bgimg = 'url(images/leftmenu/lamp_noact.jpg) left no-repeat';
        var el = document.getElementById ('LM1');
        el.style.background = bgimg;


}
function LMAction(id) {
        Cache = new Array();

        for (var c = 1; document.getElementById ('LM' + c) != null; c++)        { Cache[c] = document.getElementById ('LM' + c); }
        Cache[1].style.background = 'url(images/leftmenu/bg_over1.gif) left no-repeat';
        for (var c = 1; Cache[c] != undefined; c++) {
                if (c<id) {
                    Cache[c].style.background = 'url(images/leftmenu/bg_over1.gif) left no-repeat';
                }
                else {
                	Cache[c].style.background = '';
                }

        }
        var        bgimg = '#FECD48 url(images/leftmenu/lamp_act.jpg) left no-repeat';
        var el = document.getElementById ('LM' + id);
        el.style.background = bgimg;
}