
try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}
function resizeImage(obj,limitWidth,limitHeight){limitWidth=limitWidth||120;limitHeight=limitHeight||120;if(obj.width>limitWidth){obj.style.width=limitWidth+'px';obj.style.height=(limitWidth*obj.height/obj.width)+'px';}
if(obj.height>limitHeight){obj.style.height=limitHeight+'px';obj.style.width=(limitHeight*obj.width/obj.height)+'px';}
obj.style.visibility='visible';}
$.fn.extend({formVal:function(name){return $("[name="+name+"]",this).val();}});(function($){$(function(){$("table.hover tr, dl.subject_item").hover(function(){$(this).addClass("hover");},function(){$(this).removeClass("hover");});$(".kg_hover").hover(function(){$(this).addClass("hover");},function(){$(this).removeClass("hover");}).removeClass("kg_hover");window.setInterval(function(){$("img.captcha").click();},1200000);$("form[method=get]").each(function(){var str=$(this).attr("action");if(str.indexOf("?")==-1)return;var qs=str.replace(/^.*?\?([^\?]*)$/,"$1");var arr=qs.split(/&(amp;)?/);for(var i=0,c=arr.length;i<c;i+=1){if(arr[i].indexOf("=")==-1)continue;var arg=arr[i].split("=",2);if(!$("[name="+arg[0]+"]",this).length){$("<input />").attr({type:"hidden",name:arg[0],value:arg[1]}).appendTo(this);}}});if($(document.body).is(".page_common")){$(".box_side").bind("side_resize",function(){$(this).height("").height($(".box_main").outerHeight()>$(this).outerHeight()?$(".box_main").outerHeight()-($(this).outerHeight()-$(this).height()):$(this).height());}).trigger("side_resize");$(".box_side .menu .list .i .a").click(function(){if($(this).siblings(".sub").length&&!$(this).parents(".i").is(".current")){$(this).parents(".i").addClass("current").find(".sub").hide().slideDown("slow",function(){$(".box_side").trigger("side_resize");}).end().siblings(".current").removeClass("current").find(".sub").show().slideUp("fast");;;return false;}
return true;});}
return true;});})(jQuery);
