$(function(){var b=$("#flash_imgbox ul li"),d=$("#flash_index ul li"),f=b.length,c=[];b.each(function(){c.push($(this).attr("showtime"))});var a=new Timer(c,c.length);a.predone=function(){var b=a.times[a.current]*1e3};a.begin();a.done=function(){var c=a.current,e=c==f?0:c;d.eq(e).addClass("cur").siblings().removeClass("cur");b.eq(e).fadeIn("fast").prev().fadeOut("fast");a.begin()};d.click(function(){a.stop();var c=$(this),d=c.prevAll().length;c.addClass("cur").siblings().removeClass("cur");b.eq(d).fadeIn("slowly").siblings().fadeOut("fast");a.current=d;a.begin()});var e=$("div.tab_menu");e.each(function(){var b=$(this).children("ul").children("li");b.filter(":first").addClass("cur");var a=$(this).next("div.tab_content");a.children("div").filter(":first").addClass("cur");b.each(function(c){var b=$(this);b.bind("mouseover",function(){if(!b.hasClass("cur")){b.addClass("cur").siblings().removeClass("cur");a.children("div").eq(c).addClass("cur").siblings().removeClass("cur")}})})});$("#voice_listbox ul").mulMarquee({direction:"up",isEqual:false});$("#ol_sign_scroll").Scroll({line:1,speed:1e3,timer:4e3});$("#ol_sign_scroll2").Scroll2({line:1,speed:1e3,timer:4e3})});function ScrollImgLeft(){var f=30,b=document.getElementById("scroll_begin"),c=document.getElementById("scroll_end"),a=document.getElementById("scroll_div");if(b.scrollWidth>parseInt(document.body.clientWidth)/2){c.innerHTML=b.innerHTML;function d(){if(c.offsetWidth-a.scrollLeft<=0)a.scrollLeft-=b.offsetWidth;else a.scrollLeft++}var e=setInterval(d,f);a.onmouseover=function(){clearInterval(e)};a.onmouseout=function(){e=setInterval(d,f)}}}function setHomepage(){if(document.all){document.body.style.behavior="url(#default#homepage)";document.body.setHomePage("http://www.ksyx.net")}else if(window.sidebar){if(window.netscape)try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(b){$.yixianMsg("该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");return fasle}var a=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);a.setCharPref("browser.startup.homepage","http://www.ksyx.net/")}}function addFavorite(){if(document.all)window.external.addFavorite("http://www.ksyx.net/","昆山逸仙学习广场");else if(window.sidebar)window.sidebar.addPanel("昆山逸仙学习广场","http://www.ksyx.net/","");else $.yixianMsg("您的浏览器不支持此操作")};
