var tabScroll = 1; var tabChk,tabLast // 3 // function switchMainIndexTab(tNo) { var frm = document.all; // 3 document.getElementById('tabBtn' + tNo).src="newimg/tab_ov_" + tNo + ".gif"; document.getElementById('todayTab' + tNo).filters.blendTrans.Apply(); document.getElementById('todayTab' + tNo).style.zIndex="20"; document.getElementById('todayTab' + tNo).style.visibility = "visible"; document.getElementById('todayTab' + tNo).filters.blendTrans.Play(); // 3 for(i=1; i<=3; i++) { var tmp = "0"+i; if(tNo != tmp) { document.getElementById('tabBtn0' + i).src="newimg/tab_0" + i + ".gif"; } } // 3 tabChk = "N"; tabLast = tNo; hiddenTab(); } // 3(13) function hiddenTab() { var frm = document.all; // ??? ?? if(tabChk=="Y") { for(i=1;i<=3;i++) { var tmp = "0"+i; if(tabLast!=tmp) { document.getElementById('todayTab0' + i).style.visibility = 'hidden'; } document.getElementById('todayTab0' + i).style.zIndex="10"; } clearTimeout(tabTimeOut2); } else { tabChk="Y"; tabTimeOut2 = setTimeout(hiddenTab,3); } } // 3 // function startMainIndexTab() { if(tabScroll > 3) tabScroll = 1; switchMainIndexTab('0'+tabScroll); tabScroll++; tabTimeOut = setTimeout(startMainIndexTab, 9000); } function startMainIndexTab1(str) { tabScroll = str; switchMainIndexTab('0'+tabScroll); tabScroll++; tabTimeOut = setTimeout(startMainIndexTab, 5000); } // 3 // function endMainIndexTab() { clearTimeout(tabTimeOut); }