var n=true,s=null,y=false;
(function(){function u(a){if(typeof a==="string")return document.getElementById(a);return a}function l(a,b,c){var d=document.createElement(a);d.className=b?b:"";d.style.cssText=c?c:"";return d}function m(a,b){a.appendChild(b)}function $(a,b){a.removeChild(b)}function v(a,b){return function(){b.apply(a,arguments)}}function ca(a){for(var b=0;b<a.gaokaoevents_.length;++b){var c=a.gaokaoevents_[b];window.detachEvent?a.detachEvent("on"+c[0],c[1]):a.removeEventListener(c[0],c[1],y)}}function x(a,b,c){if(a.gaokaoevents_)a.gaokaoevents_.push([b,
c]);else a.gaokaoevents_=[[b,c]];if(window.attachEvent){b="on"+b;a.attachEvent(b,c)}else a.addEventListener(b,c,y)}var ba=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];function da(){for(var a=y,b=0;b<ba.length;b++){try{a=ba[b]()}catch(c){continue}break}return a}function U(a,b){var c=da();c.onreadystatechange=function(){if(!(c.readyState!=
4)){var d="["+c.responseText+"]";d=eval(d);b(d[0])}};c.open("get",a,n);c.send(s)}var E=s,Y=["A","B","C","D","E","F","G","H","I","J","K","L","M","N"],j={body:document.body,chart:u("chart"),favPan:u("fav-pan"),favUl:u("fav-list-ul"),listPan:u("list-pan"),list:u("school-list"),listFav:u("fav-list"),listFavUl:u("fav-list-ul"),listUl:u("school-list-ul"),mapPan:u("map-pan"),map:u("map"),mapExpand:u("map-tag-icon"),orderHint:u("order-hint"),page:u("page"),tabSchool:u("tab-school"),tabFav:u("tab-fav"),schoolPan:u("school-pan"),
search:u("search-box"),searchButton:u("search"),selBox:u("sel-box"),order:u("search-order"),message:u("message"),favConfirm:u("fav-confirm")},V=["cc3333","6633cc","1188ee","66aa00","d6ae00","dd5511","336699","dd4477","22aa99","994499","aaaa11","109618","a87070","329262"],ea=function(a,b,c){for(var d=function(I,D,C){for(var J=[],H=0;H<I.length;H++){var M=I[H];!isNaN(M)&&M>=0?J.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.round(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".length-
1)*(M-C)/(D-C)))):J.push("_")}return J.join("")},e=b,g=c,f=[],i=0;i<a.length;++i)if(!(a[i]==s))for(var h=a[i],k=0;k<h.length;++k)if(!(h[k]==-1)){if(h[k]>e)e=h[k];if(h[k]<g)g=h[k]}var q=parseInt((e-g)/15,10);b=e+q>750?750:e+q;c=g-q<0?0:g-q;b=750;for(i=c=0;i<a.length;++i)a[i]!=s&&f.push(d(a[i],b,c));var p="http://chart.apis.google.com/chart?cht=lc&chs=270x220&chl=2006|2007|2008&chg=50,20,3,3&chly=",r="",w=(b-c)/5;for(i=5;i>=0;i--){if(i!=5)r+="|";r+=parseInt(c+w*i,10)}p+=r+"&chd=s:"+f.join(",");var z=
"&chco=",t="&chm=",B=y,F=0;for(i=0;i<a.length;++i)if(!(a[i]==s)){if(B){z+=",";t+="|"}else B=n;z+=V[i];t+="o,"+V[i]+","+F+",-1,6";F++}if(!B)return s;p+=z;p+=t;return p},K=function(a,b,c,d,e,g){this.width_=a;this.min_=c||0;this.max_=d||100;this.curMin_=this.min_;this.curMax_=this.max_;this.parent_=b;this.change_=g||s;e=e||"";this.bar_=l("div","slider-bar inline-block inline","width:"+a+"px;"+e);var f=l("div","slider-line");this.sliderLeft_=l("div","slider","left:0");this.sliderRight_=l("div","slider",
"left:"+(a-9)+"px");m(this.bar_,f);m(this.bar_,this.sliderLeft_);m(this.bar_,this.sliderRight_);this.parent_&&m(this.parent_,this.bar_);x(this.bar_,"mousedown",v(this,this.sliderClickFn_));x(this.bar_,"mouseup",v(this,this.sliderClickEndFn_));x(this.bar_,"mouseout",v(this,this.sliderClickEndFn_));x(this.sliderLeft_,"mousedown",v(this,this.sliderDownFn_("left")));x(this.sliderRight_,"mousedown",v(this,this.sliderDownFn_("right")));x(j.body,"mousemove",v(this,this.sliderMoveFn_()));x(j.body,"mouseup",
v(this,this.sliderUpFn_()))};K.prototype.sliderClickFn_=function(){return function(){}};K.prototype.sliderClick_=function(){};K.prototype.sliderClickEndFn_=function(){window.clearInterval(this.timer_)};K.prototype.sliderDownFn_=function(a){return function(b){b=b||window.event;this.slider_=a;var c=this.sliderRight_,d=this.sliderLeft_;if(a=="left"){c=this.sliderLeft_;d=this.sliderRight_}var e=c.style.left;c.style.zIndex=2;d.style.zIndex=1;e=parseInt(e.substr(0,e.length-2),10);this.clientDX_=b.clientX-
e}};K.prototype.sliderMoveFn_=function(){return function(a){if(this.slider_){a=a||window.event;window.getSelection?window.getSelection().removeAllRanges():document.selection.empty();var b=this.sliderLeft_.style.left;b=parseInt(b.substr(0,b.length-2),10);var c=this.sliderRight_.style.left;c=parseInt(c.substr(0,c.length-2),10);if(this.slider_==="left"){b=a.clientX-this.clientDX_;b=b<0?0:b;b=b>c?c:b;this.sliderLeft_.style.left=b+"px"}else{c=a.clientX-this.clientDX_;c=c>this.width_-9?this.width_-9:c;
c=c<b?b:c;this.sliderRight_.style.left=c+"px"}}if(this.timer_)this.curClientX_=a.clientX-this.clientDX_}};K.prototype.setMin=function(a){var b=this.getMax();a=a>b?b:a;a=a<this.min_?this.min_:a;var c=(a-this.min_)/(this.max_-this.min_);c=parseInt((this.width_-9)*c,10);this.sliderLeft_.style.left=c+"px";return this.curMin_=a};K.prototype.setMax=function(a){var b=this.getMin();a=a<b?b:a;a=a>this.max_?this.max_:a;var c=(a-this.min_)/(this.max_-this.min_);c=parseInt((this.width_-9)*c,10);this.sliderRight_.style.left=
c+"px";return this.curMax_=a};K.prototype.sliderUpFn_=function(){return function(){if(this.slider_){this.change_.apply(this,[this.slider_]);this.slider_=s}}};K.prototype.getMin=function(a){if(a||this.curMin_==s){var b=this.sliderLeft_.style.left;b=parseInt(b.substr(0,b.length-2),10);b=b/(this.width_-9);b=parseInt((this.max_-this.min_)*b+this.min_,10);this.curMin_=b>this.curMax_?this.curMax_:b}return this.curMin_};K.prototype.getMax=function(a){if(a||this.curMax_==s){var b=this.sliderRight_.style.left;
b=parseInt(b.substr(0,b.length-2),10);b=b/(this.width_-9);b=parseInt((this.max_-this.min_)*b+this.min_,10);this.curMax_=b<this.curMin_?this.curMin_:b}return this.curMax_};K.prototype.inject=function(a){this.parent_&&this.parent_.removeChild(this.bar_);this.parent_=a;m(a,this.bar_)};var N=function(a,b){this.init_(a,b)};N.prototype.getValue=function(){for(var a=[],b=this.source_,c=0;c<this.value_.length;++c){var d=this.value_[c].index;a.push(b[d].id);b=b[d].sub}return a};N.prototype.init_=function(a,
b){this.events_={click:[],change:[]};this.box_=l("div","sel-box");var c=l("div");m(c,l("div","sel-border-top"));this.tborder1_=l("div","sel-border sel-border-1");this.tborder2_=l("div","sel-border sel-border-2");m(c,this.tborder1_);m(c,this.tborder2_);m(this.box_,c);this.titleBack_=l("div","sel-title-back");m(this.box_,this.titleBack_);this.title_=l("div","sel-title");this.expand_=l("div","expand");this.content_=l("div","sel-content");m(this.box_,this.title_);m(this.title_,this.expand_);m(this.box_,
this.content_);var d=l("div");this.bborder_=l("div","sel-border sel-border-2");m(d,this.bborder_);m(d,l("div","sel-border-bottom"));m(this.box_,d);m(a,this.box_);b&&this.expandFn_().apply(this);GEvent.addDomListener(this.expand_,"click",GEvent.callback(this,this.expandFn_()))};N.prototype.addEvent=function(a,b){this.events_[a]&&this.events_[a].push(b)};N.prototype.setValue=function(a,b){for(var c=0;c<this.value_.length;c++)$(this.title_,this.value_[c].tab);this.content_.innerHTML="";this.value_=[];
for(var d=s,e=s,g=this.source_,f=0;f<a.length;++f){for(var i=y,h=0;h<g.length;++h)if(a[f]==g[h].id){var k=l("div","tab");k.innerHTML="<a>"+g[h].name+"</a>&nbsp;&nbsp;&gt;";m(this.title_,k);d=k;e=g[h];i=n;this.value_.push({index:h,tab:k});GEvent.addDomListener(k,"click",GEvent.callback(this,this.tabClickFn_(f)));GEvent.addDomListener(k,"click",GEvent.callback(this,this.tabClickExpandFn_()));break}g=e.sub;if(!i||!g)break}if(d){d.className="tab high-light";d.innerHTML="<a>"+e.name+"</a>";GEvent.clearListeners(d,
"click");var q=e.sub;if(q){this.resetContent_(q);this.expandFn_(n).apply(this);GEvent.addDomListener(k,"click",GEvent.callback(this,this.tabClickExpandFn_()))}else{d.innerHTML=e.name;this.expandFn_(y).apply(this);this.expand_.style.display="none"}if(!b)for(var p=0;p<this.events_.change.length;++p)this.events_.change[p](this)}};N.prototype.expandFn_=function(a){return function(){if(this.content_.style.display!=="none"&&!a){this.content_.style.display="none";this.expand_.style.backgroundPosition="-12px 0";
this.tborder1_.style.backgroundColor="#ffffff";this.tborder2_.style.backgroundColor="#ffffff";this.bborder_.style.backgroundColor="#ffffff";this.titleBack_.style.backgroundColor="#ffffff";this.value_[this.value_.length-1].tab.className="tab"}else{this.content_.style.display="";this.expand_.style.backgroundPosition="0 0";this.tborder1_.style.backgroundColor="#e5ebf9";this.tborder2_.style.backgroundColor="#e5ebf9";this.bborder_.style.backgroundColor="#e5ebf9";this.titleBack_.style.backgroundColor="#e5ebf9";
this.value_[this.value_.length-1].tab.className="tab high-light"}}};N.prototype.setSource=function(a){this.source_=a;if(this.value_)for(var b=0;b<this.value_.length;b++)$(this.title_,this.value_[b].tab);this.content_.innerHTML="";var c=l("div","tab high-light");c.innerHTML="<a>"+a[0].name+"</a>";this.value_=[{index:0,tab:c}];var d=a[0].sub;this.resetContent_(d);m(this.title_,c);GEvent.addDomListener(c,"click",GEvent.callback(this,this.tabClickExpandFn_()))};N.prototype.itemClickFn_=function(a){return function(){for(var b=
l("div","tab high-light"),c=this.source_,d=this.value_,e=0;e<d.length;++e){var g=c[d[e].index];if(e==d.length-1){var f=d[e].tab;f.className="tab";f.innerHTML="<a>"+g.name+"</a>&nbsp;&nbsp;&gt;";GEvent.clearListeners(f,"click");GEvent.addDomListener(f,"click",GEvent.callback(this,this.tabClickFn_(e)));GEvent.addDomListener(f,"click",GEvent.callback(this,this.tabClickExpandFn_()))}c=g.sub}this.value_.push({index:a,tab:b});var i=c[a];m(this.title_,b);if(i.sub){b.innerHTML="<a>"+i.name+"</a>";this.resetContent_(i.sub);
GEvent.addDomListener(b,"click",GEvent.callback(this,this.tabClickExpandFn_()))}else{b.innerHTML=i.name;this.expandFn_(y).apply(this);this.expand_.style.display="none"}for(var h=0;h<this.events_.change.length;++h)this.events_.change[h](this)}};N.prototype.tabClickExpandFn_=function(){return function(){this.expandFn_(n).apply(this);this.expand_.style.display=""}};N.prototype.tabClickFn_=function(a){return function(){for(var b=this.value_.length-a-1,c=0;c<b;++c){var d=this.value_.pop();d.tab.parentNode.removeChild(d.tab)}var e=
this.value_[a].tab;e.className="tab high-light";GEvent.clearListeners(e,"click");this.expandFn_(n).apply(this);this.expand_.style.display="";for(var g=this.source_,f=s,i=0;i<=a;++i){f=g[this.value_[i].index].name;g=g[this.value_[i].index].sub}e.innerHTML="<a>"+f+"</a>";GEvent.addDomListener(e,"click",GEvent.callback(this,this.tabClickExpandFn_()));this.resetContent_(g);for(var h=0;h<this.events_.change.length;++h)this.events_.change[h](this)}};N.prototype.resetContent_=function(a){this.content_.innerHTML=
"";for(var b=0;b<a.length;++b){var c=l("div","item");c.innerHTML=a[b].name;m(this.content_,c);GEvent.addDomListener(c,"click",GEvent.callback(this,this.itemClickFn_(b)))}m(this.content_,l("div","clear"))};var A=function(a){this.value_=s;this.width_=150;this.options_=[];this.parent_=s;this.boxStyle_="";this.panParent_=s;this.maxWidth_=250;this.label_=s;if(a){this.width_=a.width?a.width:150;this.options_=a.options?a.options:[];this.value_=typeof a.value!=="undefined"?a.value:s;this.parent_=a.parent?
a.parent:s;this.boxStyle_=a.style?a.style:"";this.panParent_=a.panParent?a.panParent:s;this.maxWidth_=a.maxWidth?a.maxWidth:250;this.label_=a.label?a.label:s}this.init()};A.prototype.hide=function(){this.box_.style.display="none"};A.prototype.show=function(){this.box_.style.display=""};A.optPans_=[];A.prototype.resetPan_=function(){if(this.parent_){var a=this.panParent_.style.display;this.panParent_.style.display="";var b=this.box_.offsetLeft;this.optPan_.style.top=this.box_.offsetTop+23+"px";var c=
this.panParent_.offsetWidth;this.panParent_.style.display=a;a=this.optPan_.style.display;this.optPan_.style.display="";this.optPan_.style.width=this.options_.length>15&&this.optPan_.offsetWidth>this.maxWidth_?this.maxWidth_+"px":"auto";if(b+this.optPan_.offsetWidth>c){b=c-this.optPan_.offsetWidth;b=b<0?0:b}this.optPan_.style.left=b+"px";this.optPan_.style.display=a}};A.prototype.init=function(){this.events_={click:[],change:[]};this.box_=l("div","is-box inline-block inline",this.boxStyle_);if(this.panParent_===
s)this.panParent_=this.box_;var a=l("div","is-input");this.input_=l("a");this.optPan_=l("div","is-opt-pan");this.optPan_.style.display="none";A.optPans_.push(this.optPan_);this.optUl_=l("ul");this.panWid_=l("div","is-opt-pan-wid");m(this.optPan_,this.optUl_);m(this.optPan_,this.panWid_);m(this.box_,a);m(this.panParent_,this.optPan_);m(a,this.input_);var b=this;x(j.body,"click",function(){b.optPan_.style.display="none"});x(this.box_,"click",function(c){c=c||window.event;if(c.stopPropagation)c.stopPropagation();
else c.cancelBubble=n;for(var d=0;d<A.optPans_.length;++d){var e=A.optPans_[d];if(e!==b.optPan_)e.style.display="none"}b.optPan_.style.display=b.optPan_.style.display==="none"?"":"none";b.resetPan_()});this.addOptions(this.options_,this.value_,this.label_);if(this.width_){this.box_.style.width=this.width_+"px";this.panWid_.style.width=this.width_+"px";a.style.width=this.width_-21+"px"}if(this.parent_){m(this.parent_,this.box_);this.resetPan_()}l("div")};A.prototype.itemOverFn_=function(a,b,c){return function(){if(c!==
b.getValue())a.style.background="#d0d8ff"}};A.prototype.itemOutFn_=function(a,b,c){return function(){if(c!==b.getValue())a.style.background="#f3f3f3"}};A.prototype.setValueFn_=function(a,b){return function(){b.value_!==a&&b.setValue(a,n)}};A.prototype.adopt=function(a){this.remove();m(a,this.box_);this.parent_=a;this.resetPan_()};A.prototype.remove=function(){this.parent_&&$(this.parent_,this.box_)};A.prototype.empty=function(){this.options_=s;this.optUl_.innerHTML="";this.optUl_.style.width="auto";
this.value_=s;this.input_.innerHTML="";this.liList_=s};A.prototype.addOption=function(){};A.prototype.addOptions=function(a,b,c){this.options_=a;this.liList_=[];if(this.value_===s)this.value_=b;var d=this;if(this.options_&&this.options_.length!==0){for(var e=y,g=s,f=this.options_.length,i=this.width_-6,h=0;h<f;++h){var k=l("li");if(f>15){k.style.marginRight="5px";k.style.marginTop="1px";k.style.marginBottom="1px";k.style.cssFloat="left";k.style.styleFloat="left"}else k.style.width="100%";var q=this.options_[h].label;
k.innerHTML=q;var p=l("span");p.innerHTML=q;m(j.body,p);var r=p.offsetWidth;j.body.removeChild(p);if(i<r+5)i=r+5;var w=this.options_[h].value;m(this.optUl_,k);x(k,"mouseover",this.itemOverFn_(k,d,w));x(k,"mouseout",this.itemOutFn_(k,d,w));x(k,"click",this.setValueFn_(w,this));if(h===0)g=k;if(this.value_!==s&&this.value_===w){this.input_.innerHTML=q;this.input_.title=q;g=k;e=n}this.liList_.push({value:w,li:k,label:q})}if(f>15)m(this.optUl_,l("span","clear"));else this.optUl_.style.width=i+"px";if(e==
y){this.input_.innerHTML=this.options_[0].label;this.input_.title=this.options_[0].label;this.value_=this.options_[0].value}g.style.background="#3366cc";g.style.color="#f3f3f3"}if(c)this.input_.innerHTML=c};A.prototype.addEvent=function(a,b){this.events_[a]&&this.events_[a].push(b)};A.prototype.setValue=function(a,b){for(var c=0;c<this.liList_.length;c++){var d=this.liList_[c].li;if(this.liList_[c].value===a){this.value_=a;this.input_.innerHTML=this.liList_[c].label;this.input_.title=this.liList_[c].label;
d.style.background="#3366cc";d.style.color="#f3f3f3"}else{d.style.background="#f3f3f3";d.style.color="#333333"}}if(b)for(c=0;c<this.events_.change.length;++c)this.events_.change[c]()};A.prototype.getLabel=function(){return this.input_.innerHTML};A.prototype.getValue=function(){return this.value_};var o=function(){};o.prototype.showMessage=function(a){j.message.style.display="";j.message.style.opacity=1;j.message.style.filter="alpha(opacity=100)";this.optMess_=100;this.messTimer_&&window.clearTimeout(this.messTimer_);
j.message.innerHTML=a};o.prototype.hideMessage=function(){j.message.style.opacity=this.optMess_/100;j.message.style.filter="alpha(opacity="+this.optMess+")";this.optMess_-=20;if(this.optMess_>0)this.messTimer_=window.setTimeout(v(this,this.hideMessage),200);else{this.messTimer_=s;j.message.style.display="none"}};o.prototype.resizeWindow=function(){var a=j.body.offsetHeight-77;a=a<0?0:a;j.listPan.style.height=a+"px";j.mapPan.style.height=a+"px";j.map.style.height=a-28+"px";j.list.style.height=a-180+
"px";typeof this.map_!=="undefined"&&this.map_.checkResize()};o.prototype.setCookie=function(a,b,c,d,e,g){var f=new Date;f.setTime(f.getTime());if(c)c=c*1000*60*60*24;var i=new Date(f.getTime()+c);document.cookie=a+"="+escape(b)+(c?";expires="+i.toGMTString():"")+(d?";path="+d:"")+(e?";domain="+e:"")+(g?";secure":"")};o.prototype.getCookie=function(a){var b=document.cookie.indexOf(a+"="),c=b+a.length+1;if(!b&&a!=document.cookie.substring(0,a.length))return s;if(b===-1)return s;var d=document.cookie.indexOf(";",
c);if(d===-1)d=document.cookie.length;return unescape(document.cookie.substring(c,d))};o.prototype.delCookie=function(a,b,c){if(this.getCookie(a))document.cookie=a+"="+(b?";path="+b:"")+(c?"domain="+c:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"};o.prototype.saveStar=function(){var a=this.starIcon_,b="",c=n;for(var d in a)if(a.hasOwnProperty(d))if(a[d]!==0){if(c)c=y;else b+="|";b+=d+"-"+a[d]}this.setCookie("star",b,30)};o.prototype.requestFavor=function(){this.refreshFav_=y;this.showMessage(info.loading);
var a=y,b="";for(var c in this.starIcon_)if(this.starIcon_.hasOwnProperty(c))if(this.starIcon_[c]!==0){if(a)b+=",";else a=n;b+=c}var d=this.link_+"type=favor&sProvId="+this.studentProvince_.getValue()+"&majorIds="+b+"&"+(new Date).getTime();this.curRequest_.fav=b;U(d,v(this,this.renderFavorite(b)))};o.prototype.loadStar=function(){this.starIcon_=[];this.starListIcon_=[];this.starFavIcon_=[];var a=this.getCookie("star");if(!(a===s)){a=a.split("|");for(var b=0;b<a.length;b++){var c=a[b].split("-");
this.starIcon_[c[0]]=parseInt(c[1],10)}}};o.prototype.loadStatus=function(a){var b=this.getCookie("status");if(b){b=b.split("|");for(var c=b[0].split("_"),d=0;d<c.length;++d)c[d]=parseInt(c[d],10);var e=b[1].split("_");for(d=0;d<e.length;++d)e[d]=parseInt(e[d],10);if(e[0]!==-1){this.subjectLevelOne_.setValue(e[0]);this.fillSelSecond(a,"major").apply(this);e[1]!==-1&&this.subjectLevelTwo_.setValue(e[1])}if(c[0]!==-1){this.cityLevelOne_.setValue(c[0]);this.fillSelSecond(eval(info.cities),"city").apply(this);
c[1]!==-1&&this.cityLevelTwo_.setValue(c[1])}this.studentProvince_.setValue(parseInt(b[2],10));this.studentClass_.setValue(parseInt(b[3],10));this.batch_.setValue(parseInt(b[4],10));this.min_.value=b[5];this.max_.value=b[6];this.slider_.setMin(parseInt(b[5],10));this.slider_.setMax(parseInt(b[6],10));this.sortType_="pinyin";typeof b[7]=="undefined"||b[7]=="undefined"||b[7]!="pinyin"&&this.setSortType("score").apply(this);this.speJiangSu();this.requestSchools();return n}return y};o.prototype.setSortType=
function(a){return function(){if(a=="pinyin"){if(this.sortType_=="pinyin")return;u("pinyin-sort").style.cssText="";u("score-sort").style.cssText="color:#0000cc;cursor:pointer;text-decoration:underline;";this.sortType_="pinyin"}else{if(this.sortType_!="pinyin")return;u("pinyin-sort").style.cssText="color:#0000cc;cursor:pointer;text-decoration:underline;";u("score-sort").style.cssText="";this.sortType_="score"}if(this.curRequest_.list){var b=this.curRequest_.list,c=this.curRequest_.listmark;if(this.sortType_==
"pinyin"){b+="&order=p";c+="p"}else{b+="&order=s";c+="s"}for(var d=s,e=0;e<this.schoolsDataSort_.length;++e)if(this.schoolsDataSort_[e].key==b){d=this.schoolsDataSort_[e].data;break}this.curRequest_.schools=c;d!=s?this.renderList(y,s,c)(d):U(b,v(this,this.renderList(y,s,c)))}}};o.prototype.setStarIcon_=function(a,b,c){var d=0;d=c?90:this.starIcon_[a]===0?90:30;b.style.backgroundPosition="-"+d+"px 0"};o.prototype.star=function(a,b){return function(c){c=c||window.event;if(c.stopPropagation)c.stopPropagation();
else c.cancelBubble=n;var d=this.starIcon_[a];d++;if(d===2)d=0;this.starIcon_[a]=d;this.saveStar();this.starListIcon_[a]&&this.setStarIcon_(a,this.starListIcon_[a]);if(this.starFavIcon_[a]&&d!==0||b)this.setStarIcon_(a,this.starFavIcon_[a]);else{this.starInfo_=[];this.chartFav_=s}this.refreshFav_=n}};o.prototype.listItemOutFn_=function(a,b,c){return function(){a.style.background="#ffffff";b.style.backgroundPosition="0 0";b.style.color="#ffffff";c.mouseOutFn_().apply(c)}};o.prototype.listItemOverFn_=
function(a,b,c){return function(){a.style.background="#d5ddf3";b.style.color="#333333";b.style.backgroundPosition="-19px 0";c.mouseOverFn_().apply(c)}};o.prototype.itemClickFn_=function(a,b,c,d){return function(){if(d=="")d=s;this.map_.openInfoWindowHtml(a,'<div class="info-window"><h4 id="link_'+b+'">'+c+'</h4><div id="info_'+b+'">'+info.loading+"</div></div>",{onOpenFn:GEvent.callback(this,this.requestInfo(b,d,a.lat(),a.lng(),c))});this.tip_.hide()}};o.prototype.setProvValueFn_=function(a,b){return function(){if(this.cityLevelOne_.getValue()!=
a){this.cityLevelOne_.setValue(a,n);this.requestSchools()}else this.map_.setCenter(b,6)}};o.prototype.showSchoolsAround_=function(){var a=this.map_,b=a.getBounds(),c=this.favIds_;if(j.listPan.style.display!=="none")c=this.listIds_;for(var d=0;d<this.allSchoolsData_.length;++d){var e=this.allSchoolsData_[d];if(a.getZoom()<=8)e.marker&&e.marker.hide();else{if(c){for(var g=y,f=0;f<c.length;++f)if(c[f]==e.id){e.marker&&e.marker.hide();g=n}if(g)continue}var i=s;i=e.marker?e.marker.getLatLng():new GLatLng(e.lat,
e.lng);if(b.containsLatLng(i))if(e.marker)e.marker.show();else{e.marker=new E(i,"",e.name,this.tip_,[7,7],"img/dot.png",0);var h=GEvent.callback(this,this.itemClickFn_(i,e.id,e.name));GEvent.addListener(e.marker,"click",h);a.addOverlay(e.marker)}else e.marker&&e.marker.hide()}}};o.prototype.showProvMarkersFn_=function(a){a=a[0].sub;return function(b){b=eval(b);for(var c=0;c<b.length;++c){for(var d=b[c].id,e=s,g=0;g<a.length;++g)if(a[g].id===d&&a[g].count)e=a[g];if(e){var f=new GLatLng(b[c].lng,b[c].lat),
i=new E(f,e.count,e.name+": "+e.count+"&nbsp;"+info.schools,this.tip_,[53,53],"img/m1.png");GEvent.addListener(i,"click",GEvent.callback(this,this.setProvValueFn_(e.id,f)));this.map_.addOverlay(i);this.provMarkers_[d].marker=i}}GEvent.addListener(this.map_,"zoomend",GEvent.callback(this,this.shProvMarkers_))}};o.prototype.shProvMarkers_=function(){if(this.map_.getZoom()>5||j.schoolPan.style.display==="none"){for(var a in this.provMarkers_)this.provMarkers_.hasOwnProperty(a)&&this.provMarkers_[a].marker.hide();
j.schoolPan.style.display!=="none"&&this.showMarkers("list")}else{for(a in this.provMarkers_)if(this.provMarkers_.hasOwnProperty(a))if(this.provMarkers_[a].count>0){this.provMarkers_[a].marker.setText(this.provMarkers_[a].count,this.provMarkers_[a].name+": "+this.provMarkers_[a].count+"&nbsp;"+info.schools);this.provMarkers_[a].marker.show()}else this.provMarkers_[a].marker.hide();for(var b=0;b<this.listMarkers_.length;++b)this.listMarkers_[b].hide()}};o.prototype.fillCities=function(a){a=eval(a);
var b=a[0].sub,c=[];c.push({value:-1,label:info.all});for(var d=0;d<b.length;++d)c.push({value:b[d].id,label:b[d].name});this.cityLevelOne_.addOptions(c);this.cityLevelOne_.addEvent("change",v(this,this.fillSelSecond(a,"city")));var e=[],g=a[0].sub;for(d=0;d<g.length;++d)e.push({label:g[d].name,value:g[d].id});this.studentProvince_.empty();this.studentProvince_.addOptions(e,11)};o.prototype.fillSelSecond=function(a,b){return function(){var c=this.subjectLevelTwo_,d=this.subjectLevelOne_,e=this.subjectInp_;
if(b==="city"){c=this.cityLevelTwo_;d=this.cityLevelOne_;e=this.cityInp_}var g=a[0].sub,f=d.getValue();if(f==-1){c.hide();e.style.width="137px"}else{for(var i=0;i<g.length;++i)if(f===g[i].id){g=g[i].sub;break}if(!g||g.length==0){c.hide();c.setValue(-1);e.style.width="137px"}else{var h=[];h.push({value:-1,label:info.all});for(i=0;i<g.length;++i)h.push({value:g[i].id,label:g[i].name});c.show();c.empty();c.addOptions(h);c.setValue(-1);e.style.width="70px"}}}};o.prototype.fillSubjects=function(a){a=eval(a);
var b=a[0].sub,c=[];c.push({value:-1,label:info.all});for(var d=0;d<b.length;++d)c.push({value:b[d].id,label:b[d].name});this.subjectLevelOne_.addOptions(c);this.subjectLevelOne_.addEvent("change",v(this,this.fillSelSecond(a,"major")))};o.prototype.gotAllSchools=function(a){this.allSchoolsData_=a=eval(a);GEvent.addListener(this.map_,"moveend",GEvent.callback(this,this.showSchoolsAround_));this.showSchoolsAround_.apply(this)};o.prototype.requestInfo=function(a,b,c,d,e){return function(){if(!this.schoolInfo_)this.schoolInfo_=
[];this.schoolInfo_[a]?this.renderInfo(a,b,c,d,e).apply(this,[this.schoolInfo_[a]]):U(this.link_+"type=info&schoolId="+a,v(this,this.renderInfo(a,b,c,d,e)))}};o.prototype.requestCustom=function(a){a=window.event||a;if(a.preventDefault)a.preventDefault();else a.returnValue=y;U(this.link_+"type=search&school="+this.searchSchool_.value+"&major="+this.searchMajor_.value+"&callback=_GaoKao.renderList(true)",v(this,this.renderList(n)));return y};o.prototype.requestSchools=function(){this.showMessage(info.loading);
this.suggestion_.style.display="none";var a=this.subjectInp_.value.trim();if(a==info.majorInp)a="";var b=this.cityInp_.value.trim();if(b==info.schoolInp)b="";var c=s,d=this.subjectLevelOne_.getValue(),e=-1;if(d!=-1){c=d;e=this.subjectLevelTwo_.getValue();if(e!=-1)c=e}var g=this.cityLevelOne_.getValue(),f=this.cityLevelTwo_.getValue(),i=this.studentProvince_.getValue(),h=this.studentClass_.getValue(),k=this.batch_.getValue(),q=this.min_.value,p=this.max_.value;this.setCookie("status",g+"_"+f+"|"+d+
"_"+e+"|"+i+"|"+h+"|"+k+"|"+q+"|"+p+"|"+this.sortType_,30);if(isNaN(parseInt(q,10))||q<0||q>750)q=0;if(isNaN(parseInt(p,10))||p<0||p>750)p=750;var r="",w=this.link_+"type=schools",z=this.link_+"type=majors";if(g!=-1){w+="&provId="+g;r+=g;if(f!=-1){w+="&cityId="+f;r+=f}}if(b!=""){w+="&school="+encodeURIComponent(b);r+=b}var t="";if(c!==s){t+="&majorId="+c;r+=c}if(a!=""){w+="&major="+encodeURIComponent(a);t+="&majorKey="+encodeURIComponent(a);r+=encodeURIComponent(a)}if(k!=-1){t+="&batch="+k;r+=k}t+=
"&sProvId="+i+"&class="+h+"&year=2008&min="+q+"&max="+p;z+="&sProvId="+i+"&schoolId=0";r+=i+h+"2008"+q+p;this.majorBatch_=k;this.majorUrl_=t;t=w+t;this.curRequest_.list=t;this.curRequest_.listmark=r;if(this.sortType_=="pinyin"){t+="&order=p";r+="p"}else{t+="&order=s";r+="s"}this.curRequest_.schools=r;for(var B=s,F=0;F<this.schoolsDataSort_.length;++F)if(this.schoolsDataSort_[F].key==t){B=this.schoolsDataSort_[F].data;break}var I=this.studentProvince_.getLabel(),D=this.studentClass_.getLabel();U(z,
v(this,this.renderSLine(I,D)));B!=s?this.renderList(y,s,r)(B):U(t,v(this,this.renderList(y,s,r)))};o.prototype.renderSLine=function(a,b){return function(c){var d=u("score-line"),e=[],g=[];if(!c||c.length==0)d.style.display="none";else{for(var f=0;f<c.length;++f)if(c[f].name==b)for(var i=c[f].detail,h=0;h<i.length;++h)if(i[h].batch==3)g[i[h].year]=i[h].avg;else if(i[h].batch==2)e[i[h].year]=i[h].avg;d.style.display="";var k='<table cellspaceing="0" cellpadding="0"><tbody><tr><td style="width:110px;">'+
a+b+info.sline+"</td>",q="<tr><td>"+info.batch[1].label+info.sym+"</td>",p="<tr><td>"+info.batch[2].label+info.sym+"</td>",r=[2009,2008,2007,2006];for(f=0;f<4;++f){var w=r[f];q+=e[w]?"<td>"+e[w]+"</td>":"<td>--</td>";p+=g[w]?"<td>"+g[w]+"</td>":"<td>--</td>";k+='<td style="width:45px;">'+w+"</td>"}k+="</tr>";q+="</tr>";p+="</tr>";k+=q;k+=p+"</tbody></table>";d.innerHTML=k}}};o.prototype.requestMajors=function(a,b){return function(c){var d=this;c=c||window.event;if(c.stopPropagation)c.stopPropagation();
else c.cancelBubble=n;var e=u("item_expand_"+a),g=u("item_content_"+a);if(e){e.style.backgroundPosition="0 0";g.style.display="";ca(e);x(e,"click",d.majorFold(a));g.innerHTML=info.loading}var f=d.link_+"type=majors";if(b)f+="&schoolId="+a+"&majorKey="+d.searchMajor_.value;else{f+=d.majorUrl_;f+="&schoolId="+a}var i=v(this,this.renderMajors(a));U(f,i)}};o.prototype.majorFold=function(a){return function(b){b=b||window.event;if(b.stopPropagation)b.stopPropagation();else b.cancelBubble=n;var c=u("item_expand_"+
a),d=u("item_content_"+a);if(c&&d)if(d.style.display==="none"){d.style.display="";c.style.backgroundPosition="0 0"}else{d.style.display="none";c.style.backgroundPosition="-12px 0"}}};o.prototype.renderMajors=function(a){return function(b){var c=window._GaoKao,d=u("item_expand_"+a),e=u("item_content_"+a);if(d){d.style.backgroundPosition="0 0";e.style.display="";e.innerHTML="";for(var g=[],f=0;f<b.length;++f){var i=l("div"),h=l("span"),k=s;if(c.majorBatch_==-1)for(var q=0;q<g.length;++q)if(g[q].id==
b[f].id){k=g[q];break}if(c.majorBatch_!=-1||k==s){if(b[f].detail&&b[f].detail[0]){var p=b[f].name+": ("+b[f].detail[0].avg+info.fen;if(f==0)p+="&nbsp;"+b[f].detail[0].year+info.nian;p+=")";h.innerHTML=p}else h.innerHTML=b[f].name;h.style.marginRight="5px";var r=l("img","item-icon-star");r.src="img/cleardot.gif";var w=a+"_"+b[f].id;x(r,"click",v(window._GaoKao,window._GaoKao.star(w)));m(i,h);m(i,r);m(e,i);c.starListIcon_[w]=r;if(typeof c.starIcon_[w]!=="undefined")c.setStarIcon_(w,r);else c.starIcon_[w]=
0;if(c.majorBatch_==-1){k={id:b[f].id,name:b[f].name,detail:[],year:s,txt:h};if(b[f].detail&&b[f].detail[0]){k.detail.push(b[f].detail[0]);if(f==0)k.year=b[f].detail[0].year}}}else b[f].detail&&b[f].detail[0]&&k.detail.push(b[f].detail[0]);if(c.majorBatch_==-1&&k.detail.length!=0){g.push(k);p=b[f].name+": (";for(var z=0;z<k.detail.length;++z){var t=k.detail[z];p+=info.batch[t.batch-1].label+": "+t.avg+info.fen;if(z!=k.detail.length-1)p+="&nbsp;"}if(k.year!=s)p+="&nbsp;"+k.year+info.nian;p+=")";k.txt.innerHTML=
p}}}}};o.prototype.renderFavorite=function(a){return function(b){var c=window._GaoKao;if(!(a!=c.curRequest_.fav)){c.hideMessage();c.starInfo_=[];for(var d=0;d<b.length;++d){var e=b[d].major,g={school:{name:b[d].school.name,id:b[d].school.id,lat:b[d].school.lat,lng:b[d].school.lng},major:[]};c.starInfo_.push(g);for(var f=0;f<e.length;++f){for(var i=e[f].id,h=y,k=0;k<g.major.length;++k)if(i===g.major[k].id){for(var q=0;q<g.major[k].detail;++q){var p=g.major[k].detail[q];e[f].detail.push({year:p.year,
avg:p.avg})}h=n}h||g.major.push(e[f])}}c.drawFavorite(n)}}};o.prototype.renderInfo=function(a,b,c,d,e){return function(g){window._GaoKao.schoolInfo_[a]=g;if(u("info_"+a)!==s){window._GaoKao.map_.getZoom()<=5&&window._GaoKao.map_.setZoom(10);if(g.site!="")u("link_"+a).innerHTML='<a target="_blank" href="/rebang/event/gaokao/'+a+'.html" style="float:none;white-space:normal;">'+e+"</a>";for(var f="",i="",h="",k=0;k<g.links.length;++k){if(g.links[k].text==info.intro)i=g.links[k].link;if(g.links[k].text==
info.cost)h=g.links[k].link}if(g.intro!="")f+=g.intro+"...";f+=i!=""?'<a target="_blank" href="/rebang/event/gaokao/'+a+'.html" style="float:none;margin-left:10px;">'+info.more+'</a><div class="clear"></div>':"<br />";var q=g.query?g.query:e;f+='<a target="_blank" href="http://ditu.google.cn/maps?ll='+c+","+d+'&z=15">'+info.searchAround+"</a><span>&nbsp;&nbsp;&nbsp</span>";f+='<a target="_blank" href="http://ditu.google.cn/maps?hl=zh-CN&ie=utf8&f=d&dirflg=r&saddr='+encodeURIComponent(window._GaoKao.studentProvince_.getLabel())+
"&daddr="+encodeURIComponent(q)+'">'+info.searchRoute+"</a><span>&nbsp;&nbsp;&nbsp;</span>";f+='<a target="_blank" href="http://www.google.cn/search?oe=utf8&ie=utf8&source=billboard_gk&hl=zh-CN&q='+encodeURIComponent(e)+'">'+info.searchWeb+"</a><span>&nbsp;&nbsp;&nbsp;</span>";f+='<a target="_blank" href="http://images.google.cn/images?hl=zh-CN&q='+encodeURIComponent(e)+'">'+info.searchImage+"</a><span>&nbsp;&nbsp;&nbsp;</span>";f+='<a target="_blank" href="http://news.google.cn/news/search?q='+encodeURIComponent(info.gaokao+
" "+e)+'">'+info.searchNews+"</a><span>&nbsp;&nbsp;&nbsp;</span>";if(b)f+='<a target="_blank" href="http://laiba.tianya.cn/laiba/Community?cmm='+b+'">'+g.name+info.bar+"</a><span>&nbsp;&nbsp;&nbsp;</span>";if(g.intro)f+='<a target="_blank" href="/rebang/event/gaokao/'+a+'.html">'+info.scoreLine+"</a><span>&nbsp;&nbsp;&nbsp</span>";if(h!="")f+='<a target="_blank" href="'+h+'">'+info.cost+"</a><span>&nbsp;&nbsp;&nbsp</span>";f+='<div class="clear"></div><div style="color:#999999;margin-top:13px;">'+
info.linkFrom+'<a href="http://gaokao.eol.cn" style="float:none;" target="_blank">'+info.eduOnline+"</a>"+info.linkProvider+"</div><br />";u("info_"+a).innerHTML=f;window._GaoKao.map_.updateInfoWindow()}}};o.prototype.renderListMarkersCache_=function(){var a=this;this.globeView_=y;if(a.listMarkersCache_){a.map_.closeInfoWindow();for(var b=0;b<a.listMarkers_.length;++b)a.map_.removeOverlay(a.listMarkers_[b]);a.listMarkers_=[];for(var c=0;c<this.listMarkersCache_.length;++c){var d=this.listMarkersCache_[c],
e=d[1],g=new E(new GLatLng(e.lat,e.lng),Y[d[0]],e.name,a.tip_);a.listMarkers_.push(g);a.map_.addOverlay(g);g.hide();GEvent.addDomListener(d[3],"mouseover",GEvent.callback(a,a.listItemOverFn_(d[3],d[4],g)));GEvent.addDomListener(d[3],"mouseout",GEvent.callback(a,a.listItemOutFn_(d[3],d[4],g)));var f=GEvent.callback(a,a.itemClickFn_(new GLatLng(e.lat,e.lng),e.id,e.name,e.bbs));GEvent.addDomListener(d[5],"click",f);GEvent.addListener(g,"click",f)}if(j.listPan.style.display!=="none"){a.showMarkers("list");
a.resetMap("list");a.shProvMarkers_()}a.listMarkersCache_=s}};o.prototype.renderList=function(a,b,c){return function(d,e,g){var f=window._GaoKao;if(!(c&&c!=f.curRequest_.schools)){f.hideMessage();j.listUl.innerHTML="";f.starListIcon_=[];j.page.innerHTML="";j.page.style.display="";if(d.length==0){var i=l("li","","font-size:80%");i.innerHTML=info.emptyList;m(j.listUl,i);f.renderBar();j.page.style.display="none";j.orderHint.style.display="none";for(var h=0;h<f.listMarkers_.length;++h)f.map_.removeOverlay(f.listMarkers_[h])}else{j.orderHint.style.display=
"";var k=y;if(!e){f.barList_=[];e=1;k=n;for(var q=y,p=0;p<f.schoolsDataSort_.length;++p)if(f.schoolsDataSort_[p].key==c){f.schoolsDataSort_[p].data=d;q=n}q||f.schoolsDataSort_.push({key:c,data:d})}g||(g=8);var r=(e-1)*g,w=e*g;if(w>d.length)w=d.length;if(k){for(var z=0,t=0;t<d.length;++t)if(d[t].bbs){f.barList_.push([d[t].bbs,d[t].name]);z++;if(z==9)break}for(var B in f.provMarkers_)if(f.provMarkers_.hasOwnProperty(B))f.provMarkers_[B].count=0;for(var F=0;F<d.length;++F){var I=d[F].provId;typeof f.provMarkers_[I]!=
"undefined"&&f.provMarkers_[I].count++}}f.listIds_=[];f.listMarkersCache_=[];for(var D=r;D<w;++D){var C=l("li"),J=l("div","item-icon-blue");J.innerHTML=Y[D-r];J.style.backgroundPosition="0 0";var H=l("div","item-title"),M=l("span","","text-decoration:underline;margin-right:10px;");M.innerHTML=d[D].name;m(H,M);var L=l("img","item-expand");L.src="img/cleardot.gif";L.id="item_expand_"+d[D].id;a?x(L,"click",v(f,f.requestMajors(d[D].id,n))):x(L,"click",v(f,f.requestMajors(d[D].id)));f.listIds_.push(d[D].id);
var P=l("div","item-content");P.id="item_content_"+d[D].id;P.style.display="none";var R=l("div","","position:relative;left:19px;width:260px;padding:5px;padding-left:2px;margin-left:3px;");m(C,J);m(R,H);m(H,L);m(R,P);m(C,R);m(j.listUl,C);f.listMarkersCache_.push([D-r,d[D],f.tip_,R,J,M])}b||f.requestMajors(d[0].id).apply(f,[{}]);k&&f.renderBar("list");if(d.length>g){if(e>1){var S=l("a");S.innerHTML=info.prePage;x(S,"click",v(f,f.gotoPageFn_(d,e-1,a)));m(j.page,S)}var G=d.length%g==0?d.length/g:parseInt(d.length/
g+1,10),O=1,Q=G;if(e-4>1){var W=l("span");W.innerHTML="";O=e-4;if(e+4<G)Q=e+4;else{O=O-(e+4-G);if(O<1)O=1;else m(j.page,W)}}else if(e+4<G){Q=e+4+4-e+O;if(Q>G)Q=G}for(var X=O;X<=Q;++X){var Z=l("a");Z.innerHTML=X;if(X===e)Z.className="selected";else x(Z,"click",v(f,f.gotoPageFn_(d,X,a)));m(j.page,Z)}if(Q!=G){W=l("span");W.innerHTML="";m(j.page,W)}if(e<G){var aa=l("a");aa.innerHTML=info.nextPage;x(aa,"click",v(f,f.gotoPageFn_(d,e+1,a)));m(j.page,aa)}}else j.page.style.display="none";f.map_&&f.renderListMarkersCache_()}}}};
o.prototype.preClearFav=function(){j.favConfirm.style.display=""};o.prototype.clearFavorite=function(){for(var a in this.starListIcon_)this.starListIcon_.hasOwnProperty(a)&&this.setStarIcon_(s,this.starListIcon_[a],n);this.starInfo_=[];for(a in this.starIcon_)if(this.starIcon_.hasOwnProperty(a))this.starIcon_[a]=0;this.map_.closeInfoWindow();for(var b=0;b<this.favMarkers_.length;++b)this.map_.removeOverlay(this.favMarkers_[b]);this.starFavIcon_=[];this.chartFav_=s;j.favUl.innerHTML="";j.chart.innerHTML=
"";j.chart.style.display="none";this.setCookie("star","");var c=l("li","","font-size:80%;");c.innerHTML=info.emptyFav;m(j.favUl,c);this.renderBar("favorite");u("cls-fav").style.display="none";this.cancelClearFav()};o.prototype.cancelClearFav=function(){j.favConfirm.style.display="none"};o.prototype.gotoPageFn_=function(a,b,c){return function(){this.renderList(c,n)(a,b)}};o.prototype.renderTopTen=function(){this.renderBar("list")};o.prototype.renderBar=function(){var a=s;(a=this.barList_)||(a=[]);
for(var b=[],c=0;c<a.length;++c)b.push(a[c]);a=b;var d=a.length>9?9:a.length;if(d<9)for(var e=0;e<9;++e){for(var g=y,f=0;f<d;++f)if(a[f][1]==info.topTen[e].name){g=n;break}g||a.push([info.topTen[e].bbs,info.topTen[e].name])}u("laiba").innerHTML="";for(c=0;c<9;++c){var i=l("div"),h=l("a");h.target="_blank";h.href="http://laiba.tianya.cn/laiba/Community?cmm="+a[c][0];h.innerHTML=a[c][1]+info.bar;m(i,h);m(u("laiba"),i)}};o.prototype.renderReBang=function(a){for(var b=a.queries,c=b.length>9?9:b.length,
d=0;d<c;d++){var e=l("div"),g=l("span");g.innerHTML=d+1;var f=l("a");f.href="http://www.google.cn/search?oe=utf8&source=billboard_gk&hl=zh-CN&q="+encodeURIComponent(b[d]);f.target="_blank";f.innerHTML=b[d];m(e,g);m(e,f);m(u("rebang"),e)}};o.prototype.search=function(){this.rpcRequest("http://www.google.cn/rebang/xml?bid=12000012&type=json&oe=UTF-8")};o.prototype.rpcRequest=function(a){var b=l("script");b.charset="UTF-8";b.src=a;m(document.body,b)};o.prototype.inpKeyDownFn_=function(a){a=window.event||
a;a.keyCode==13&&this.requestSchools()};o.prototype.setFocus=function(a){return function(){if(this.value===a){this.value="";this.style.color="#333333"}var b=window._GaoKao;b.studentProvince_.optPan_.style.display="none";b.studentClass_.optPan_.style.display="none";b.batch_.optPan_.style.display="none";b.cityLevelOne_.optPan_.style.display="none";b.cityLevelTwo_.optPan_.style.display="none";b.subjectLevelOne_.optPan_.style.display="none";b.subjectLevelTwo_.optPan_.style.display="none";b.hint_=this.value;
window.clearTimeout(window._GaoKao.hintTimer_);b.hintTimer_=window.setTimeout(v(window._GaoKao,window._GaoKao.suggest_(this)),500)}};o.prototype.setBlur=function(a){return function(){if(this.value===""){this.value=a;this.style.color="#999999"}window._GaoKao.suggestion_.style.display="none";window.clearTimeout(window._GaoKao.hintTimer_);window._GaoKao.hint=""}};o.prototype.suggest_=function(a){return function(){if(a.value!=window._GaoKao.hint_){this.hint_=a.value;if(this.suggestion_.style.top!=a.offsetTop+
22+"px"){this.suggestion_.style.top=a.offsetTop+22+"px";this.suggestSelect_=a}if(a.value=="")this.suggestion_.style.display="none";var b="gk_major";if(a.id=="cityinput")b="gk_school";this.rpcRequest("http://daohang.google.cn/suggest?num=10&q="+encodeURIComponent(a.value)+"&client="+b);this.sugWidth_=a.offsetWidth;this.sugLeft_=a.offsetLeft+1;this.sugInp_=a}this.hintTimer_=window.setTimeout(v(window._GaoKao,window._GaoKao.suggest_(a)),500)}};o.prototype.suggestOver_=function(){this.style.backgroundColor=
"#d0d8ff"};o.prototype.suggestClick_=function(a){a=window.event||a;if(a.preventDefault)a.preventDefault();else a.returnValue=y;if(a.stopPropagation)a.stopPropagation();else a.cancelBubble=n;var b=this.innerHTML;b=b.replace(/\<span\>/ig,"");b=b.replace(/\<\/span\>/ig,"");window._GaoKao.suggestion_.style.display="none";window._GaoKao.sugInp_.value=b;window._GaoKao.hint_=b};o.prototype.suggestOut_=function(){this.style.backgroundColor="#f3f3f3"};window._handleAjax=function(a){var b=a.split("|"),c=window._GaoKao;
c.sugVal_=c.sugInp_.value;if(b.length==1)c.suggestion_.style.display="none";else{c.suggestion_.style.display="";c.suggestion_.innerHTML="";for(var d=l("ul"),e=[],g=window._GaoKao.sugWidth_,f=1;f<b.length;f++){f++;for(var i=b[f],h=y,k=0;k<e.length;++k)if(e[k]==i)h=n;if(!h){e.push(i);var q=l("span","width-test-suggest");q.innerHTML=i;m(j.body,q);var p=q.offsetWidth;j.body.removeChild(q);if(g<p+18)g=p+18;var r=l("li");r.innerHTML=b[f];m(d,r);x(r,"mouseover",v(r,window._GaoKao.suggestOver_));x(r,"mouseout",
v(r,window._GaoKao.suggestOut_));x(r,"mousedown",v(r,window._GaoKao.suggestClick_))}}d.style.width=g-8+"px";var w=c.suggestion_;m(w,d);var z=c.suggestion_.parentNode;if(c.sugLeft_+g>z.offsetWidth)w.style.left=z.offsetWidth-g+"px";else if(c.suggestSelect_)w.style.left=c.suggestSelect_.offsetLeft+1+"px"}};o.prototype.speJiangSu=function(){this.refreshFav_=n;var a=this.studentClass_.getValue();this.studentClass_.empty();var b=info.sclassNormal;if(this.studentProvince_.getValue()==32){b=info.sclass;a=
3;this.slider_.min_=0;this.slider_.max_=480;this.slider_.setMin(0);this.slider_.setMax(480);this.min_.value=0;this.max_.value=480}else{if(a==3)a=2;this.slider_.min_=300;this.slider_.max_=750;this.slider_.setMin(300);this.slider_.setMax(750);this.min_.value=300;this.max_.value=750}this.studentClass_.addOptions(b,a)};o.prototype.init=function(){this.link_="/rebang/data/gaokao2?v=2&";this.globeView_=n;this.curRequest_=[];this.refreshFav_=n;this.schoolsDataSort_=[];var a=v(this,this.requestSchools),b=
l("span","","margin:8px;font-size:75%;");b.innerHTML=info.sinfo;m(j.selBox,b);this.studentProvince_=new A({width:58,value:-1,style:"margin:2px 8px 2px 9px;",parent:j.selBox,panParent:j.schoolPan});this.studentProvince_.addEvent("change",v(this,this.speJiangSu));this.studentClass_=new A({width:58,options:info.sclassNormal,value:2,style:"margin:2px 8px 2px 0;",parent:j.selBox,panParent:j.schoolPan});this.batch_=new A({width:72,options:info.batch,value:-1,style:"margin:2px 0;",parent:j.selBox,panParent:j.schoolPan});
m(j.selBox,l("br"));b=l("span","","position:relative;left:8px;top:4px;font-size:75%;");b.innerHTML=info.provSchools;m(j.selBox,b);this.cityLevelOne_=new A({width:58,value:-1,style:"margin:10px 8px 2px 13px;",parent:j.selBox,panParent:j.schoolPan});this.cityLevelTwo_=new A({width:58,value:-1,style:"margin:10px 8px 2px 0",parent:j.selBox,panParent:j.schoolPan});this.cityLevelTwo_.hide();this.cityInp_=l("input","","width:137px;color:#999999;vertical-align:middle;margin-top:7px;font-size:75%;");this.cityInp_.value=
info.schoolInp;m(j.selBox,this.cityInp_);this.cityInp_.id="cityinput";m(j.selBox,l("br"));x(this.cityInp_,"keydown",v(this,this.inpKeyDownFn_));x(this.cityInp_,"focus",v(this.cityInp_,this.setFocus(info.schoolInp)));x(this.cityInp_,"blur",v(this.cityInp_,this.setBlur(info.schoolInp)));this.suggestion_=l("div","is-opt-pan","display:none");m(j.selBox,this.suggestion_);b=l("span","","position:relative;left:8px;top:4px;;font-size:75%;");b.innerHTML=info.sMajor;m(j.selBox,b);this.subjectLevelOne_=new A({width:58,
value:-1,style:"margin:10px 8px 2px 49px;",parent:j.selBox,panParent:j.schoolPan});this.subjectLevelTwo_=new A({width:58,value:-1,style:"margin:10px 8px 2px 0",parent:j.selBox,panParent:j.schoolPan});this.subjectLevelTwo_.hide();this.subjectInp_=l("input","","width:137px;color:#999999;vertical-align:middle;margin-top:7px;font-size:75%;");this.subjectInp_.value=info.majorInp;this.subjectInp_.id="subjectinput";m(j.selBox,this.subjectInp_);x(this.subjectInp_,"keydown",v(this,this.inpKeyDownFn_));x(this.subjectInp_,
"focus",v(this.subjectInp_,this.setFocus(info.majorInp)));x(this.subjectInp_,"blur",v(this.subjectInp_,this.setBlur(info.majorInp)));var c=l("div","","position:relative;height:30px;");m(j.selBox,c);b=l("span","","font-size:75%;position:relative;top:10px;*line-height:20px;*top:12px;_top:8px;left:8px;");b.innerHTML=info.scoreLabel;this.min_=l("input","score","width:25px;top:3px;position:absolute;left:82px;");this.min_.value=300;this.max_=l("input","score","width:25px;position:absolute;left:259px;top:3px;");
this.max_.value=750;x(this.min_,"keydown",v(this,this.inpKeyDownFn_));x(this.max_,"keydown",v(this,this.inpKeyDownFn_));m(c,this.min_);var d=new K(131,c,300,750,"position:absolute;top:5px;left:125px;",this.setMinMaxFn_(this.min_,this.max_,this));this.slider_=d;m(c,this.max_);m(c,b);var e=l("div","","margin-top:15px;font-size:75%;position:relative;height:20px;"),g=l("div","","margin-left: 8px;position:absolute;top:5px;*top:7px;left:0;");g.innerHTML=info.click+'<img src="img/cleardot.gif" style="background:url(img/little_buttons.png) -12px 0;width:12px;height:12px;margin:0 2px;vertical-align:top;"></img>'+
info.view+info.click+'<img src="img/cleardot.gif" style="background:url(img/stars.gif) -90px 0;width:14px;height:14px;vertical-align:top;margin:0 2px;"></img>'+info.favor;m(e,g);var f=l("input","","margin-left:246px;width:50px;*padding-top:2px;");x(f,"click",a);f.value=info.search;f.type="button";m(j.selBox,e);m(e,f);var i=this.min_,h=this.max_;x(this.min_,"keydown",function(t){t=window.event||t;if(t.keyCode==13){var B=parseInt(i.value,10);i.value=isNaN(B)?d.getMin():d.setMin(B)}});x(this.max_,"keydown",
function(t){t=window.event||t;if(t.keyCode==13){var B=parseInt(h.value,10);h.value=isNaN(B)?d.getMax():d.setMax(B)}});x(this.min_,"change",function(){i.style.color="#333333";var t=parseInt(i.value,10);i.value=isNaN(t)?d.getMin():d.setMin(t)});x(this.max_,"change",function(){h.style.color="#333333";var t=parseInt(h.value,10);h.value=isNaN(t)?d.getMax():d.setMax(t)});this.loadStar();this.currentTab_="school";x(j.mapExpand,"click",v(this,this.expandMap));x(j.tabSchool,"click",v(this,this.changeTabFn_("school")));
x(j.tabFav,"click",v(this,this.changeTabFn_("favorite")));this.listMarkers_=[];this.favMarkers_=[];this.fillCities(info.cities);this.fillSubjects(info.majors);var k=eval(info.cities)[0].sub,q=eval(info.provLatLng);this.provMarkers_={};for(var p=0;p<q.length;++p){for(var r=q[p].id,w=s,z=0;z<k.length;++z)if(k[z].id===r&&k[z].count)w=k[z];if(w)this.provMarkers_[r]={name:w.name,count:w.count,marker:s}}x(u("pinyin-sort"),"click",v(this,this.setSortType("pinyin")));x(u("score-sort"),"click",v(this,this.setSortType("score")));
if(!this.loadStatus(info.majors)){this.renderTopTen();this.sortType_="pinyin"}this.loadAjaxApi()};o.prototype.mapInit_=function(){if(GBrowserIsCompatible()){E=function(c,d,e,g,f,i,h){this.latlng_=c;this.index_=d;this.title_=e;this.tip_=g;this.clickable_=n;this.size_=f;this.image_=i;this.zIndex_=h};E.prototype=new GOverlay;E.prototype.setText=function(c,d){this.index_=c;this.div_.innerHTML=c;this.title_=d};E.prototype.initialize=function(c){var d=s,e="";if(this.size_){e="text-align:center;font-size:0.8em;cursor:pointer;line-height:"+
this.size_[1]+"px;width:"+this.size_[0]+"px;height:"+this.size_[1]+"px;color:#ffffff;position:absolute;";e+=document.all?'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+this.image_+'");':"background:url("+this.image_+");";d=l("div","",e);d.style.zIndex=2}else{e="text-align:center;font-size:0.8em;cursor:pointer;line-height:22px;width:23px;height:23px;color:#ffffff;position:absolute;";e+=document.all?'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="img/marker_b.png");':
"background:url(img/marker_b.png);";d=l("div","",e);d.style.zIndex=1}if(typeof this.zIndex_!="undefined"&&this.zIndex_!=s)d.style.zIndex=this.zIndex_;d.innerHTML=this.index_;c.getPane(G_MAP_MARKER_PANE).appendChild(d);this.map_=c;this.div_=d;GEvent.addDomListener(this.div_,"mouseover",GEvent.callback(this,this.mouseOverFn_()));GEvent.addDomListener(this.div_,"mouseout",GEvent.callback(this,this.mouseOutFn_()));for(var g=["click","mouseover","mouseout"],f=0;f<g.length;++f)GEvent.addDomListener(d,g[f],
GEvent.callback(GEvent,GEvent.trigger,this,g[f],this.getLatLng()))};E.prototype.mouseOverFn_=function(){return function(){if(this.div_){if(!this.size_){if(document.all)this.div_.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="img/marker_r.png");';else this.div_.style.background="url(img/marker_r.png)";this.div_.style.color="#333333"}this.div_.style.zIndex=10}this.tip_.show(this.title_,this.latlng_)}};E.prototype.mouseOutFn_=function(){return function(){if(this.div_){if(this.size_)this.div_.style.zIndex=
2;else{if(document.all)this.div_.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="img/marker_b.png");';else this.div_.style.background="url(img/marker_b.png)";this.div_.style.zIndex=1;this.div_.style.color="#ffffff"}if(typeof this.zIndex_!="undefined"&&this.zIndex_!=s)this.div_.style.zIndex=this.zIndex_}this.tip_.hide()}};E.prototype.hide=function(){this.div_.style.display="none"};E.prototype.show=function(){this.div_.style.display=""};E.prototype.remove=function(){this.div_.parentNode.removeChild(this.div_)};
E.prototype.copy=function(){};E.prototype.redraw=function(c){if(c){var d=this.map_.fromLatLngToDivPixel(this.latlng_),e=12,g=12;if(this.size_){e=parseInt(this.size_[0]/2,10);g=parseInt(this.size_[1]/2,10)}this.div_.style.left=d.x-e+"px";this.div_.style.top=d.y-g+"px"}};E.prototype.getElement=function(){return this.div_};E.prototype.getLatLng=function(){return this.latlng_};function a(){}a.prototype=new GControl;a.prototype.clickFn_=function(){var c=window._GaoKao;c.map_.closeInfoWindow();for(var d=
0;d<c.listMarkers_.length;++d)c.map_.removeOverlay(c.listMarkers_[d]);c.listMarkers_=[];for(var e=eval(info.cities)[0].sub,g=eval(info.provLatLng),f=0;f<g.length;++f){for(var i=g[f].id,h=s,k=0;k<e.length;++k)if(e[k].id===i&&e[k].count)h=e[k];if(h)c.provMarkers_[i].count=h.count}c.map_.setCenter(new GLatLng(37.160317,103.623047),4);c.hideMessage();j.listUl.innerHTML="";c.starListIcon_=[];j.page.innerHTML="";j.page.style.display="";c.renderBar();j.page.style.display="none";j.orderHint.style.display=
"none";c.cityLevelOne_.setValue(-1,n);c.shProvMarkers_()};a.prototype.initialize=function(c){var d=l("div","","background:#ffffff;font-size:75%;border:1px solid black;cursor:pointer;"),e=l("div");m(d,e);e.innerHTML=info.globeSchools;c.getContainer().appendChild(d);window._GaoKao.isShowProvMarkers_=n;GEvent.addDomListener(d,"click",GEvent.callback(this,this.clickFn_));this.div_=e;this.cont_=d;this.nonClickStyle();return d};a.prototype.clickStyle=function(){this.div_.style.cssText="border:1px solid #6c9ddf;border-left:1px solid #345684;border-top:1px solid #345684;padding:0 3px;font-weight:bold;"};
a.prototype.nonClickStyle=function(){this.div_.style.cssText="border:1px solid #b0b0b0;border-top:1px solid white;border-left:1px solid white;padding:0 3px;font-weight:normal;"};a.prototype.hide=function(){this.cont_.style.display="none"};a.prototype.show=function(){this.cont_.style.display=""};a.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(96,7))};this.map_=new GMap2(j.map);this.map_.setCenter(new GLatLng(37.160317,103.623047),4);var b=this.map_.getDefaultUI();
b.controls.maptypecontrol=y;b.controls.menumaptypecontrol=n;this.map_.setUI(b);this.map_.disableScrollWheelZoom();this.tip_=new T;this.map_.addOverlay(this.tip_);this.pc_=new a;this.map_.addControl(this.pc_);this.search();this.showProvMarkersFn_(eval(info.cities)).apply(this,[info.provLatLng]);this.renderListMarkersCache_();GDownloadUrl("data/schools-total.json",GEvent.callback(this,this.gotAllSchools))}};o.prototype.loadAjaxApi=function(){this.rpcRequest("http://www.google.cn/jsapi?key=ABQIAAAAec0uG9m_VSLs4ZXN8YGMoRTD9uafkkzDhLPecS9POo8mzN4tDBSpJpECPM0UCHhROxov8yyy5vwVSQ&callback=_GaoKao.loadMapsApi")};
o.prototype.loadMapsApi=function(){google.load("maps","2",{callback:v(this,this.mapInit_),base_domain:"ditu.google.cn"})};o.prototype.showMarkers=function(a){var b=s,c=s;if(a==="favorite"){b=this.favMarkers_;c=this.listMarkers_}else{b=this.map_.getZoom()<=5?[]:this.listMarkers_;c=this.favMarkers_}for(var d=0;d<b.length;++d)b[d].show();for(var e=0;e<c.length;++e)c[e].hide()};o.prototype.drawFavorite=function(a){if(this.starInfo_){j.favUl.innerHTML="";this.starFavIcon_=[];for(var b=[],c=1,d=0;d<this.favMarkers_.length;++d)this.map_.removeOverlay(this.favMarkers_[d]);
this.favMarkers_=[];this.barFav_=[];if(this.starInfo_.length==0){var e=l("li","","font-size:80%;");e.innerHTML=info.emptyFav;m(j.favUl,e);this.renderBar("favorite");u("cls-fav").style.display="none"}else{u("cls-fav").style.display="";var g=y;if(!this.chartFav_){this.chartFav_=[];g=n}var f=0;this.favIds_=[];for(var i=0;i<this.starInfo_.length;++i)if(typeof this.starInfo_[i]!="undefined"&&this.starInfo_[i]!=0){var h=this.starInfo_[i],k=l("li"),q=l("div","item-icon-blue");q.style.backgroundPosition=
"0 0";q.innerHTML=Y[i];b.push(h.school.name);h.school.bbs&&this.barFav_.push([h.school.bbs,h.school.name]);this.favIds_.push(h.school.id);var p=l("div","","padding:5px 5px;position:relative;left:19px;width:260px;top:0;padding-left:2px;margin-left:3px;"),r=l("div","item-title");r.innerHTML='<span style="text-decoration:underline;">'+h.school.name+"</span>";var w=l("div","item-content");w.style.padding="0";m(k,q);m(p,r);m(p,w);m(k,p);m(j.favUl,k);for(var z=0;z<h.major.length;++z){var t=l("div"),B=l("input",
"","margin-right:5px;vertical-align:middle;margin-top:0;");B.type="checkbox";var F=l("span","","margin-right: 10px;padding:0;"),I=l("span"),D=l("span");m(F,I);m(F,D);m(t,B);m(w,t);for(var C=h.major[z],J=[2005,""],H=0;H<C.detail.length;++H)if(J[0]<C.detail[H].year)J=[C.detail[H].year,"("+C.detail[H].avg+info.fen+"&nbsp;"+C.detail[H].year+info.nian+")"];var M=C.name;if(g&&f<10){B.checked=n;this.chartFav_.push([h.school.id,C.id,C]);M='<span style="color:#'+V[f]+'">'+C.name+"</span>";f++}else if(!g)for(var L=
0;L<this.chartFav_.length;++L)if(this.chartFav_[L]&&this.chartFav_[L][0]===h.school.id&&this.chartFav_[L][1]===C.id){B.checked=n;M='<span style="color:#'+V[L]+'">'+C.name+"</span>";break}I.innerHTML=M;I.style.marginRight="5px";D.innerHTML="&nbsp;"+J[1];var P=l("img","item-icon-star");P.src="img/cleardot.gif";var R=h.school.id+"_"+C.id;GEvent.addDomListener(P,"click",GEvent.callback(this,this.star(R,n)));this.starFavIcon_[R]=P;this.setStarIcon_(R,P);var S=l("div","","color:red;margin-left:25px;");
S.innerHTML=info.favError;S.style.display="none";m(t,F);m(t,P);m(t,S);GEvent.addDomListener(B,"click",GEvent.callback(this,this.addFavChartFn_(h.school.id,C.id,B,C,I,S)))}var G=new E(new GLatLng(h.school.lat,h.school.lng),Y[c-1],h.school.name,this.tip_);this.favMarkers_.push(G);c++;GEvent.addDomListener(p,"mouseover",GEvent.callback(this,this.listItemOverFn_(p,q,G)));GEvent.addDomListener(p,"mouseout",GEvent.callback(this,this.listItemOutFn_(p,q,G)));var O=GEvent.callback(this,this.itemClickFn_(new GLatLng(h.school.lat,
h.school.lng),h.school.id,h.school.name,h.school.bbs));GEvent.addDomListener(r,"click",O);GEvent.addListener(G,"click",O);this.map_.addOverlay(G);G.hide()}this.renderBar("favorite");if(j.favPan.style.display!=="none"){this.showMarkers("favorite");a&&this.resetMap("favorite")}if(this.chartFav_&&this.chartFav_.length<10)for(var Q=this.chartFav_.length;Q<10;++Q)this.chartFav_.push(s);this.drawChart()}}else{this.starInfo_=[];this.requestFavor()}};o.prototype.hideFavErrorFn_=function(){this.favError_.style.display=
"none"};o.prototype.addFavChartFn_=function(a,b,c,d,e,g){return function(f){f=f||window.event;if(f.stopPropagation)f.stopPropagation();else f.cancelBubble=n;if(c.checked){for(var i=y,h=0;h<this.chartFav_.length;++h)if(!this.chartFav_[h]){this.chartFav_[h]=[a,b,d];this.drawChart();e.innerHTML='<span style="color:#'+V[h]+'">'+d.name+"</span>";i=n;break}if(!i){if(this.favError_)this.favError_.style.display="none";this.favErrorTimer_&&window.clearTimeout(this.favErrorTimer_);g.style.display="";this.favError_=
g;c.checked=y;this.favErrorTimer_=window.setTimeout(GEvent.callback(this,this.hideFavErrorFn_),3000)}}else for(h=0;h<this.chartFav_.length;++h)if(this.chartFav_[h]&&this.chartFav_[h][0]===a&&this.chartFav_[h][1]===b){this.chartFav_[h]=s;e.innerHTML=d.name;this.drawChart();break}}};o.prototype.drawChart=function(){for(var a=this.chartFav_,b=[],c=0;c<a.length;++c){var d=[-1,-1,-1];if(a[c]){for(var e=0;e<a[c][2].detail.length;++e){var g=a[c][2].detail[e];if(g.year===2006)d[0]=g.avg;else if(g.year===
2007)d[1]=g.avg;else if(g.year===2008)d[2]=g.avg}b.push(d)}else b.push(s)}var f=ea(b,0,750);if(f!=s){if(j.chart.firstChild)j.chart.firstChild.src=f;else{var i=l("img");i.src=f;m(j.chart,i)}j.chart.style.display="";j.chart.style.marginTop="20px";j.chart.style.marginBottom="10px"}else{j.chart.style.display="none";j.chart.style.marginTop=0;j.chart.style.marginBottom=0}};o.prototype.setMinMaxFn_=function(a,b){return function(c){if(c==="left"){a.value=this.getMin(n);a.style.color="#333333"}else{b.value=
this.getMax(n);b.style.color="#333333"}}};o.prototype.resetMap=function(a){var b=s;b=a==="favorite"?this.favMarkers_:this.listMarkers_;for(var c=new GLatLngBounds,d=0;d<b.length;++d)c.extend(b[d].getLatLng());if(b.length>1){var e=this.map_.getBoundsZoomLevel(c)-1;this.map_.setCenter(c.getCenter(),e)}else this.map_.panTo(c.getCenter())};o.prototype.changeTabFn_=function(a){return function(){if(!(a==this.currentTab_||!this.map_)){var b=this.map_.getCenter(),c=this.map_.getZoom();this.oldCenter_&&this.map_.setCenter(this.oldCenter_,
this.oldZoom_);if(a==="school"){j.schoolPan.style.display="";j.favPan.style.display="none";j.tabSchool.className="tab high-light";j.tabFav.className="tab";this.showMarkers("list");this.renderBar("list");this.map_.closeInfoWindow();this.pc_.show()}else{j.schoolPan.style.display="none";j.favPan.style.display="";j.tabSchool.className="tab";j.tabFav.className="tab high-light";this.renderBar("favorite");this.showMarkers("favorite");this.map_.closeInfoWindow();if(this.refreshFav_){this.chartFav_=s;j.favUl.innerHTML=
"";this.requestFavor()}this.pc_.hide()}this.shProvMarkers_();this.oldCenter_=b;this.oldZoom_=c;this.currentTab_=a;this.setCookie("tab",a,30)}}};o.prototype.expandMap=function(){if(j.listPan.style.display==="none"){j.listPan.style.display="";j.mapPan.style.marginLeft="328px";j.mapExpand.style.background="url(img/expand.gif) -18px 0"}else{j.listPan.style.display="none";j.mapPan.style.marginLeft="0";j.mapExpand.style.background="url(img/expand.gif) 0 0"}this.map_.checkResize();this.map_.disableScrollWheelZoom()};
var T=function(){};T.prototype.initialize=function(a){var b="display:none;position:absolute;padding-right:18px;white-space:nowrap;z-index:11;";this.div_=l("div","",b);b="position:absolute;right:0;top:0;height:54px;width:18px;";b+=document.all?'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop,src="img/t_r.png");':"background:url(img/t_r.png) no-repeat;";var c=l("div","",b);b="padding-left:18px;color:#333333;font-size:75%;height:54px;line-height:52px;";b+=document.all?'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop,src="img/t_l.png");':
"background:url(img/t_l.png) no-repeat;";this.span_=l("div","",b);this.span_.innerHTML="tooltip";m(this.div_,this.span_);m(this.div_,c);m(a.getPane(G_MAP_MARKER_PANE),this.div_);this.map_=a};T.prototype.show=function(a,b){if(document.all){var c=l("span","","font-size:75%;");c.innerHTML=a;document.body.appendChild(c);var d=c.offsetWidth;document.body.removeChild(c);this.span_.style.width=d+5+"px"}this.span_.innerHTML=a;this.div_.style.display="";this.timer_&&window.clearTimeout(this.timer_);this.timerD_&&
window.clearTimeout(this.timerD_);var e=this.map_.fromLatLngToDivPixel(b);this.div_.style.left=e.x-7+"px";this.div_.style.top=e.y+11+"px";this.opa_=0;if(document.all){this.div_.style.display="";this.opa_=100}else{this.div_.style.opacity="0";this.timer_=window.setTimeout(GEvent.callback(this,this.gradualAppear),500)}};T.prototype.hide=function(){this.div_.style.display="none";window.clearTimeout(this.timer_);window.clearTimeout(this.timerD_)};T.prototype.redraw=function(){};T.prototype.remove=function(){this.div_.parentNode.removeChild(this.div_)};
T.prototype.gradualAppear=function(){if(this.opa_<1){this.opa_+=0.1;this.div_.style.opacity=this.opa_;this.div_.style.filter="alpha(opacity="+parseInt(this.opa_*100,10)+")";this.timer_=window.setTimeout(GEvent.callback(this,this.gradualAppear),30)}};T.prototype.gradualDisappear=function(){if(this.opa_>0){this.opa_-=0.1;this.div_.style.opacity=this.opa_;this.div_.style.filter="alpha(opacity="+parseInt(this.opa_*100,10)+")";this.timerD_=window.setTimeout(GEvent.callback(this,this.gradualDisappear),
30)}};String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};window._GaoKao=new o||window._GaoKao;window._GaoKao.init();window.google_hot_queries_request_done=window._GaoKao.renderReBang;try{document.execCommand("BackgroundImageCache",y,n)}catch(fa){}})();

