var G={D:document,B:document.body,W:window,CO:(function(f){return G.V.isFunction(f)?f:function(){}}),_:(function(f){return G.V.isFunction(f)?f:function(){}}),V:{isNumber:function(s){return /^\d+(?:\.\d+)?$/.test(s)},isInt:function(s){return /^-?\d+$/.test(s)},isDefined:function(s){return s!==undefined},isEmpty:function(s){return s==''},isNull:function(s){return s==null},isTrue:function(s){return s==true},isFalse:function(s){return s==false},isFunction:function(s){return typeof(s)=='function'},isObject:function(s){return typeof(s)=='object'},isGT:function(nf,ns){if(G.V.isNumber(nf)&&G.V.isNumber(ns)){return nf>ns}else{return null}}},C:{toNumber:function(s){return parseInt(s.replace(/\D/g,""))},toFloat:function(s,c){if(G.V.isNumber(s)){if(G.V.isInt(c)){var m=Math.pow(10,c);s*=m;s=parseInt(s);s/=m;return s}else{return parseFloat(s)}}else{return false}},rand:function(s,e){return parseInt(Math.random()*(e-s+1)+s)}},$:function(n){return document.getElementById(n)},$$:function(n,p,i){var a=arguments;if(G.V.isDefined(a[1])){if(G.V.isObject(a[1])||!G.V.isInt(a[1])){if(!G.V.isObject(p))p=G.$(p);if(G.V.isInt(a[2])){return p.getElementsByTagName(n)[i]}else{return p.getElementsByTagName(n)}}else{return document.getElementsByTagName(n)}}},setStyle:function(o,n,v,u,c){if(!G.V.isFalse(u))v+='px';c=eval("typeof("+o+")")=='object'?(o+".style."+n+"='"+v+"'"):("G.$('"+o+"').style."+n+"='"+v+"'");eval(c)},setValue:function(o,n,v,u,c){if(G.V.isTrue(u))v="'"+v+"'";c=eval("typeof("+o+")")=='object'?(o+"."+n+"="+v):("G.$('"+o+"')."+n+"="+v);eval(c)},setEvent:function(o,n,v,u,c){c=eval("typeof("+o+")")=='object'?(o+".on"+n+"=G.CO(function(){"+v+"})"):("G.$('"+o+"').on"+n+"=G.CO(function(){"+v+"})");eval(c)},eachSet:function(t,a){var al=a.length;for(var i=0;i<al;i++){eval('G.'+t+"('"+a[i][0]+"','"+a[i][1]+"','"+a[i][2]+"',"+a[i][3]+")")}},getNext:function(n,t,i){n=n.nextSibling;if(!G.V.isDefined(t))t=1;i=t==0?'true':G.V.isInt(t)?"n.nodeType=="+t:"n.tagName=='"+t.toUpperCase()+"'";while(n!=null){if(eval(i))return n;n=n.nextSibling}return n},getPrevious:function(n,t,i){n=n.previousSibling;if(!G.V.isDefined(t))t=1;i=t==0?'true':G.V.isInt(t)?"n.nodeType=="+t:"n.tagName=='"+t.toUpperCase()+"'";while(n!=null){if(eval(i))return n;n=n.previousSibling}return n},getChild:function(n,i,t){var list=n.childNodes;var index=-1;var child;if(!G.V.isDefined(t))t=1;var r=t==0?'true':G.V.isInt(t)?"list[j].nodeType=="+t:"list[j].tagName=='"+t.toUpperCase()+"'";if(list.length){if(i<0||i==undefined){var nodeList=[];for(var j=0,l=list.length;j<l;j++)if(eval(r))nodeList.push(list[j]);return nodeList}for(var j=0,l=list.length;j<l;j++){if(eval(r))index++;if(index==i)return list[j]}}return null},getNodeValue:function(n,v){try{v=n.childNodes[0].nodeValue}catch(e){v=''}return v},remove:function(n){if(!G.V.isObject(n))n=G.$(n);n.parentNode.removeChild(n)},create:function(t){return document.createElement(t)},ajax:{X:null,maxTime:30,interval:null,pastTime:null,free:true,parameters:null,mode:null,begin :null,end:null,create:function(){var a=G.ajax;if(a.X!=null)return;try{a.X=new XMLHttpRequest()}catch(e){try{a.X=new ActiveXObject("Microsoft.XMLHttp")}catch(e){a.X=new ActiveXObject("MSXML2.XMLHttp")}}},execute:function(method,location,done,vars,mode,modeEvent){if(!G.ajax.thread(mode,modeEvent))return;if(G.ajax.X===null)G.ajax.create();var X=G.ajax.X;G.ajax.free=false;G.ajax.clock.start();G.ajax.parameters=[arguments[0],arguments[1],arguments[2],arguments[3]];if(method=='get'){if(typeof(vars)=='string'){if(vars.length){location=location+(location.indexOf("?")==-1?"?":"&")+vars}else{vars=null}}X.open(method,location)}else{X.open(method,location);X.setRequestHeader("Content-type","application/x-www-form-urlencoded")}X.send(vars);X.onreadystatechange=function(){if(X.readyState==4&&X.status==200){G.ajax.clock.stop();G.ajax.free=true;if(typeof(done)=="function")done(X.responseXML==null||X.responseXML.childNodes.length==0?X.responseText:X.responseXML)}}},clock:{start:function(){G.ajax.pastTime=0;G.ajax.interval=setInterval('G.ajax.check()',1000)},stop:function(){clearInterval(G.ajax.interval)}},check:function(){var a=G.ajax;if(a.pastTime<a.maxTime){a.pastTime++}else{a.cancel();a.execute(a.parameters[0],a.parameters[1],a.parameters[2],a.parameters[3])}},cancel:function(){G.ajax.X.abort();G.ajax.clock.stop();G.ajax.free=true},thread:function(mode,modeEvent){G.ajax.begin=G.CO();G.ajax.end=G.CO();if(G.V.isDefined(mode)){G.ajax.mode=mode;if(typeof(modeEvent)=='object'){if(typeof(modeEvent.begin)=='function'){G.ajax.begin =modeEvent.begin}if(typeof(modeEvent.end)=='function'){G.ajax.end=modeEvent.end}}}if(!G.ajax.free){switch(G.ajax.mode){case 1:G.ajax.cancel();G.ajax.end();break;case 2:alert('暂时没提供AJAX队列功能！');break;case 3:return false;break;default:if(confirm('当前存在尚未结束的线程，当然你可以点击确定强制取消线程而执行新的，\n\n但这可能会影响到数据的完整性，我们并不推荐您这么做！\n\n您确定要取消尚未结束的线程吗？')){G.ajax.cancel();G.ajax.end()}else{return false}}}G.ajax.begin();return true}},ready:{list:[],append:function(f){G.ready.list.push(f)},remove:function(i,c){if(!G.V.isDefined(c)){G.ready.list.splice(i)}else{G.ready.list.splice(i,c)}},clear:function(){G.ready.list=[]},execute:function(){G.W.onload=function(){for(var i=0;i<G.ready.list.length;i++)G.ready.list[i]()}}},E:function(i){if(i==undefined)i=0;var e=G.E.caller.arguments[i]||event;this.which=e.which||e.keyCode;this.target=e.target||e.srcElement;this.tag=this.target.tagName.toLowerCase();this.x=e.clientX;this.y=e.clientY;this.ctrl=e.ctrlKey;this.leftButton=G.browser.isIE()?e.button==1?true:false:e.button==0?true:false;return this},browser:{isIE:function(){var index=navigator.appVersion.indexOf("MSIE");if(index>-1){return navigator.appVersion.substr(index+5,1)}else{return 0}},isSF:function(){return navigator.appVersion.indexOf("Safari")>-1}},cookie:{set:function(name,value,day){var day=day?day:0;var date=new Date();date.setTime(date.getTime()+day*24*60*60*1000);document.cookie=name+"="+escape(value)+";expires="+date.toUTCString()},get:function(name){var arr=document.cookie.match(new RegExp(name+"=([^;]*);?"));return arr==null?'':unescape(arr[1])},remove:function(name){var value=getCookie(name);if(value!='')document.cookie=name+"="+value+";expires="+(new Date()).toUTCString()}},root:function(d){if(d==undefined)d=document;return G.browser.isSF()?d.body:d.documentElement},choose:function chooseItem(element,value,type,v){for(var i=0,l=G.$(element).length;i<l;i++){v=type?G.$(element)[i].text:$(element)[i].value;if(v==value){G.$(element).selectedIndex=i;break}}},insertAfter:function(g,m,n){if(n=G.getNext(m)){n.parentNode.insertBefore(g,n)}else{m.parentNode.appendChild(g)}},insertBefore:function(g,m){m.parentNode.insertBefore(g,m)},getOffset:function(node,valid){var left=0;var top=0;var string='';var i=0;var width=node.offsetWidth;var height=node.offsetHeight;while(node.tagName!='HTML'){for(var j=0;j<valid.length;j++){if(valid[j]==i){left+=node.offsetLeft;top+=node.offsetTop;string+=i+'.'+node.tagName+'|'+node.id+'：'+node.offsetLeft+'\n';break}}node=node.parentNode;i++}return {left:left,top:top,width:width,height:height}},selectSwitch:{disabledSelect:function(type){switch(navigator.appName){case "Microsoft Internet Explorer":if(type){G.D.onselectstart=function(){return false}}else{G.D.onselectstart=null}break;case "Netscape":if(type){G.D.documentElement.style.cssText="-moz-user-select:none;-khtml-user-select:none;user-select:none"}else{G.D.documentElement.style.cssText=""}break;case "Opera":if(type){var element=G.D.createElement("input");element.type="text";element.style.display="none";element.id="ft";G.B.appendChild(element);var existsFunction=G.D.onmousemove?G.D.onmousemove:function(){};G.D.onmousemove=function(){existsFunction();element.focus()}}else{if($("ft"))G.B.removeChild($("ft"));G.W.onmousemove=null}break}},open:function(){G.selectSwitch.disabledSelect(false)},close:function(){G.selectSwitch.disabledSelect(true)}},label:{create:function(id,m,n,t,a){if(G.cookie.get('label_'+id)=='hide')return;var label=document.createElement('div');var string='';var pointerStyle='';if(typeof(a)=='object'){for(var ai in a){if(ai!='pointer'){string+=ai+':'+a[ai]+';'}else{pointerStyle=a[ai]}}}if(string!='')label.style.cssText=string;if(pointerStyle!='')pointerStyle='style="background-position:'+pointerStyle+' 0"';label.className='user_alert';label.innerHTML='\<div class="alert_icon"'+pointerStyle+'></div>\<div class="alert_body">\<div class="alert_message">'+m+'</div>\<div class="alert_handle">\<label><input type="checkbox" value="'+id+'"/>以后不再提示</label><input type="button" value="关闭" onclick="G.label.remove(this)" class="close_btn"/>\</div>\</div>';switch(t){case 0:G.insertBefore(label,n);break;case 1:G.insertAfter(label,n);break;case 2:n.appendChild(label);break}},remove:function(n,c){c=G.$$('input',n.parentNode,0);if(c.checked)G.cookie.set('label_'+c.value,'hide',90);G.remove(n.parentNode.parentNode.parentNode)}}}
