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()})}var fails=0;function refreshT(){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},function(a){if(fails>0){try{updateOnlineStatus()}catch(d){}}fails=0},function(a,g,f){if(fails==2){fails++;try{act_offline();if($("#m1").size()>0){$.jGrowl('<span style="font-size:26px">'+$("#m1").text()+"</span>",{sticky:true})}}catch(d){}}fails++},10000)}else{$.get("/jsp/checklog.jsp",{browser:$.browser.name,version:$.browser.version,flash:c})}setTimeout("refreshT();",31520)}$(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()})});
