function allhidden() { var intLocality = 3;//层总数 while (intLocality > 0) { var obj1 = document.getElementById('Menu'+intLocality); if(obj1 && obj1.style) obj1.style.display = "none"; intLocality =intLocality- 1; } } function do_Show1(sel) { var bg1; var aaa; var bbb; for (var i = 1;i < 4;i++) { bg1 = eval("bg1_" + i); if (i==sel) { bg1.src = "imgtp/l1" + i + ".jpg"; } if (i!=sel) { bg1.src = "imgtp/l1" + i + "2.jpg"; } } } function OpenMenu(MenuID) { var obj = document.getElementById('Menu'+MenuID); if(obj && obj.style) { if(obj.style.display=="none") { allhidden(); obj.style.display = 'block'; } } } function do_Showzw1(selzw1) { var bgzw1; var colorzw1; var divzw1; for (var i = 1;i < 5;i++) { bgzw1 = eval("bgzw1_" + i); colorzw1 = eval("colorzw1_" + i); divzw1 = eval("divzw1_" + i); bgzw1.background = i==selzw1 ? "imgtp/l14.jpg" : "imgtp/l15.jpg"; colorzw1.color = i==selzw1 ? "#ffffff" : "#277AC6"; divzw1.style.display = i==selzw1 ? "" : "none"; } } function do_Showzw2(selzw2) { var bgzw2; var colorzw2; var divzw2; for (var i = 1;i < 5;i++) { bgzw2 = eval("bgzw2_" + i); colorzw2 = eval("colorzw2_" + i); divzw2 = eval("divzw2_" + i); bgzw2.background = i==selzw2 ? "imgtp/l14.jpg" : "imgtp/l15.jpg"; colorzw2.color = i==selzw2 ? "#ffffff" : "#277AC6"; divzw2.style.display = i==selzw2 ? "" : "none"; } } function do_Showzw3(selzw3) { var bgzw3; var colorzw3; var divzw3; for (var i = 1;i < 5;i++) { bgzw3 = eval("bgzw3_" + i); colorzw3 = eval("colorzw3_" + i); divzw3 = eval("divzw3_" + i); bgzw3.background = i==selzw3 ? "imgtp/l16.jpg" : "imgtp/l17.jpg"; colorzw3.color = i==selzw3 ? "#ffffff" : "#277AC6"; divzw3.style.display = i==selzw3 ? "" : "none"; } } function do_Showzw4(selzw4) { var bgzw4; var colorzw4; var divzw4; for (var i = 1;i < 5;i++) { bgzw4 = eval("bgzw4_" + i); colorzw4 = eval("colorzw4_" + i); divzw4 = eval("divzw4_" + i); bgzw4.background = i==selzw4 ? "imgtp/l14.jpg" : "imgtp/l15.jpg"; colorzw4.color = i==selzw4 ? "#ffffff" : "#277AC6"; divzw4.style.display = i==selzw4 ? "" : "none"; } } function do_Showxx1(selxx1) { var bgxx1; var colorxx1; var divxx1; for (var i = 1;i < 6;i++) { bgxx1 = eval("bgxx1_" + i); colorxx1 = eval("colorxx1_" + i); divxx1 = eval("divxx1_" + i); bgxx1.background = i==selxx1 ? "imgtp/l38.jpg" : "imgtp/l40.jpg"; colorxx1.color = i==selxx1 ? "#277AC6" : "#ffffff"; divxx1.style.display = i==selxx1? "" : "none"; } } function do_Showxx1(selxx1) { var bgxx1; var colorxx1; var divxx1; for (var i = 1;i < 5;i++) { bgxx1 = eval("bgxx1_" + i); colorxx1 = eval("colorxx1_" + i); divxx1 = eval("divxx1_" + i); bgxx1.background = i==selxx1 ? "imgtp/l38.jpg" : "imgtp/l40.jpg"; colorxx1.color = i==selxx1 ? "#277AC6" : "#ffffff"; divxx1.style.display = i==selxx1? "" : "none"; } } function do_Showxx2(selxx2) { var bgxx2; var colorxx2; var divxx2; for (var i = 1;i < 5;i++) { bgxx2 = eval("bgxx2_" + i); colorxx2 = eval("colorxx2_" + i); divxx2 = eval("divxx2_" + i); bgxx2.background = i==selxx2 ? "imgtp/l38.jpg" : "imgtp/l40.jpg"; colorxx2.color = i==selxx2 ? "#277AC6" : "#ffffff"; divxx2.style.display = i==selxx2? "" : "none"; } } function do_Showxx3(selxx3) { var bgxx3; var divxx3; for (var i = 1;i < 6;i++) { bgxx3 = eval("bgxx3_" + i); divxx3 = eval("divxx3_" + i); bgxx3.src = i==selxx3 ? "imgtp/f" + i + ".jpg" : "imgtp/f" + i + "1.jpg"; divxx3.style.display = i==selxx3? "" : "none"; } } function do_Showxx4(selxx4) { var bgxx4; var colorxx4; var divxx4; for (var i = 1;i < 5;i++) { bgxx4 = eval("bgxx4_" + i); colorxx4 = eval("colorxx4_" + i); divxx4 = eval("divxx4_" + i); bgxx4.background = i==selxx4 ? "imgtp/l55.jpg" : "imgtp/l56.jpg"; colorxx4.color = i==selxx4 ? "#277AC6" : "#ffffff"; divxx4.style.display = i==selxx4? "" : "none"; } } function do_Showzwtt(selzwtt) { var bgzwtt; var colorzwtt; var divzwtt; for (var i = 1;i < 5;i++) { bgzwtt = eval("bgzwtt_" + i); colorzwtt = eval("colorzwtt_" + i); divzwtt= eval("divzwtt_" + i); bgzwtt.background = i==selzwtt ? "imgtp/l1410.jpg" : "imgtp/l1510.jpg"; colorzwtt.color = i==selzwtt ? "#ffffff" : "#277AC6"; divzwtt.style.display = i==selzwtt ? "" : "none"; } } // JavaScript Document function setTab0dSyn(i,classnamebef,idbef,idall,tabtabbef) { var waitInterval; var MouseDelayTime=150;//鼠标感应延迟300毫秒 // _gObj(idbef+i).onmouseout=function(aEvent) { clearTimeout(waitInterval); } clearTimeout(waitInterval); var str="setTab0dSyn1("+i+",'"+classnamebef+"','"+idbef+"',"+idall+",'"+tabtabbef+"')"; waitInterval=setTimeout(str,MouseDelayTime); } function aa(i) { alert("aa is run"+i); } //---------------------------------------------------------------------------------- function setTab0dSyn1(i,classnamebef,idbef,idall,tabtabbef) { //alert("aa"); changDivClass(idbef,idall,i,classnamebef) selectTab0dSyn(tabtabbef,idall,i); } function selectTab0dSyn(div_id,allnum,now){ for(var i= 1; i<= allnum;i++) { if(i==now) { _gObj(div_id+i).style.display="block"; }else { _gObj(div_id+i).style.display="none"; } } // document.getElementById("tabtabd1").style.display="block"; // document.getElementById("tabtabd2").style.display="none"; } function _gObj(id) { return document.getElementById(id); } function changDivClass(div_id,all,now,classnamebef) { for(var i= 1; i<= all;i++) { if(i==now) { _gObj(div_id+i).className = classnamebef+"_0"+i; }else { //_gObj(div_id+i).className = "dj4_"+i; _gObj(div_id+i).className = classnamebef+"_"+i; } } } function selectTabsearch(J,allcount,idnamebef,stabid,fzname) { // _gObj("fzn").innerHTML=fzname; // var xjwaitInterval; var MouseDelayTime1=150;//鼠标感应延迟300毫秒 // var idstr=stabid; //alert (idstr); _gObj(idstr).onmouseout=function(aEvent) { //alert(idstr); clearTimeout(xjwaitInterval); //alert(xjwaitInterval); } clearTimeout(xjwaitInterval); var str="selectTabsearch1("+J+","+allcount+",'"+idnamebef+"')"; //alert(str); xjwaitInterval=setTimeout(str,MouseDelayTime1); } function selectTabsearch1(J,allcount,idnamebef) { selectTabsearch2(J,allcount,idnamebef) } function selectTabsearch2(J,allcount,idnamebef) { //alert(J); for(var i=1;i<=allcount;i++) { if(J==i) { _gObj(idnamebef+i).style.display="block"; } else { _gObj(idnamebef+i).style.display="none"; } } }