window.onload = function(){ init_dd(); init_tables(); } var ie = !window.getComputedStyle; var ie6 = ie && navigator.appVersion.indexOf("MSIE 7") == -1; function init_tables(){ var root = $("text-content"); if(!root){ return; } var tables = $C("tbl", root, "TABLE"); if(!tables){ return; } tables.each(function(tbl){ var trs = $T("TR", tbl); var val = 1; trs.each(function(tr, index){ var tds = $T("TD", tr); tds.last().className = tds.last().className ? tds.last().className + " last" : "last"; if(tr.className.indexOf("theader") != -1 || $C("theader", tr, "TD")){ val = 0; throw $continue; } if(index % 2 == val){ tr.className = tr.className ? tr.className + " zebra" : "zebra"; } }); trs.last().className = trs.last().className ? trs.last().className + " last" : "last"; }) } function init_dd(){ if(flashObj.IS_FLASH && !ie6){ return false; } var root = $("main-menu"); var items = $T("LI", root); items.each(function(item){ if(item.parentNode == root){ item.onmouseover = function(){ if(this.className.indexOf("over") != -1){ return false; } this.className = "over"; } item.onmouseout = function(){ this.className = this.className.replace("over", ""); } } }) }