var currenttimer;function refreshCurrentTime(){clearTimeout(currenttimer);$.get("/jsp/currentdate.jsp",function(a){$("#currenttime").text(a.trim())});currenttimer=setTimeout("refreshCurrentTime()",61000)}function toCN(){$.cookie("cht","simp",{expires:7,path:"/"});$.get("/jsp/teacher/cht_index.jsp",function(){location.reload()})}function toTW(){$.cookie("cht","trad",{expires:7,path:"/"});$.get("/jsp/teacher/cht_index.jsp",{cht:"cht"},function(){location.reload()})}function refreshT(){setTimeout("refreshT();",31540);var b=$.flashPlayerVersion;var c=b[0]+"."+b[1]+"."+b[2];if($("#status").val()!=undefined){$.get("/jsp/checklog.jsp",{browser:$.browser.name,version:$.browser.version,status:$("#status").val(),flash:c})}else{$.get("/jsp/checklog.jsp",{browser:$.browser.name,version:$.browser.version,flash:c})}}$(function(){if($.browser.opera){$("body").append('<link rel="stylesheet" href="/jsp/teacher/css/style_opera.css" type="text/css" />')}else{if($.browser.mozilla&&$.browser.version<"1.9"){$("body").append('<link rel="stylesheet" href="/jsp/teacher/css/style_firefox2.css" type="text/css" />')}else{if($.browser.mozilla){$("body").append('<link rel="stylesheet" href="/jsp/teacher/css/style_firefox.css" type="text/css" />')}}}detectBroadcast("cht");currenttimer=setTimeout("refreshCurrentTime()",1000);$('select[class!="notsort"]').each(function(){$(this).sortOptions()})});