var DB_mode=false;function DumpError(a){try{throw a;}catch(b){DumpException(b)}}
function DumpException(a,b){b="Javascript exception: "+(b?b:"")+" "+a;if(BR_AgentContains_("msie")&&!window.opera)b+=" "+a.name+": "+a.message+" ("+a.number+")";var c="";if(typeof a=="string")c=a+"\n";else for(var d in a)try{c+=d+": "+a[d]+"\n"}catch(f){}c+=DB_GetStackTrace(DumpException.caller);a=b+"\n"+c;if(DB_mode){try{var e=(new Date).getTime()-DB_starttime,g="["+e+"] "+HtmlEscape(a).replace(/\n/g,"<br>")+"<br>";g="<font color=#ff0000><b>Error: "+g+"</b></font>";DB_win.focus()}catch(h){}DB_WriteDebugHtml(g)}else typeof log!=
"undefined"&&log(HtmlEscape(a))}var function_name_re_=/function (\w+)/;
function DB_GetStackTrace(a){try{if(!(BR_AgentContains_("msie")&&!window.opera)&&!(BR_AgentContains_("safari")||BR_AgentContains_("konqueror"))&&BR_AgentContains_("mozilla"))return Error().stack;if(!a)return"";var b;var c=function_name_re_.exec(String(a));b=c?c[1]:"";b="- "+b+"(";for(c=0;c<a.arguments.length;c++){if(c>0)b+=", ";var d=String(a.arguments[c]);if(d.length>40)d=d.substr(0,40)+"...";b+=d}b+=")\n";b+=DB_GetStackTrace(a.caller);return b}catch(f){return"[Cannot get stack trace]: "+f+"\n"}}
var DB_starttime,DB_win=null,DB_winopening=false;
function DB_WriteDebugHtml(a){if(DB_mode)try{if((DB_win==null||DB_win.closed)&&!DB_winopening)try{DB_winopening=true;DB_win=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");DB_win.blur();DB_win.document.open();DB_winopening=false;var b="<font color=#ff0000><b>To turn off this debugging window,hit 'D' inside the main caribou window, then close this window.</b></font><br>";DB_WriteDebugHtml(b)}catch(c){}DB_win.document.write(a);DB_win.scrollTo(0,
1E6)}catch(d){}};function BR_AgentContains_(a){if(a in BR_AgentContains_cache_)return BR_AgentContains_cache_[a];return BR_AgentContains_cache_[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var BR_AgentContains_cache_={},amp_re_=/&/g,lt_re_=/</g,gt_re_=/>/g;function HtmlEscape(a){if(!a)return"";return a.replace(amp_re_,"&amp;").replace(lt_re_,"&lt;").replace(gt_re_,"&gt;").replace(quote_re_,"&quot;")}var quote_re_=/\"/g;function forid_1(a){return document.getElementById(a)}
function forid_2(a){return document.all[a]}var forid=document.getElementById?forid_1:forid_2;function log(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=forid("log");if(c){a="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=a+c.innerHTML}else window.status=a};function AS_Assert(){}AS_Assert.raise=function(a){if(typeof Error!="undefined")throw new Error(a||"Assertion Failed");else throw a;};AS_Assert.fail=function(a){a=a||"Assertion failed";typeof DumpError!="undefined"&&DumpError(a+"\n");AS_Assert.raise(a)};AS_Assert.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";AS_Assert.fail(b)}};AS_Assert.equals=function(a,b,c){if(a!=b){if(c===undefined)c="AS_Assert.equals failed: <"+a+"> != <"+b+">";AS_Assert.fail(c)}};
AS_Assert.typeOf=function(a,b,c){if(typeof a!=b){if(a||a=="")try{if(b==AS_Assert.TYPE_MAP[typeof a]||a instanceof b)return}catch(d){}if(c===undefined){if(typeof b=="function")if(c=b.toString().match(/^\s*function\s+([^\s\{]+)/))b=c[1];c="AS_Assert.typeOf failed: <"+a+"> not typeof "+b}AS_Assert.fail(c)}};AS_Assert.TYPE_MAP={string:String,number:Number,"boolean":Boolean};
AS_Assert.numArgs=function(a,b){var c=AS_Assert.numArgs.caller;if(c&&c.arguments.length!=a){if(b===undefined)b=c.name+" expected "+a+" arguments  but received "+c.arguments.length;AS_Assert.fail(b)}};function Dom(a){this.doc=a||document;this.getElementById_=this.doc.getElementById?function(b){return this.doc.getElementById(b)}:function(b){return this.doc.all[b]}}Dom.prototype.$=function(a){return this.getElementById_(a)};Dom.prototype.create=function(a){return this.doc.createElement(a)};Dom.remove=function(a){AS_Assert.isTrue(a.parentNode);a.parentNode.removeChild(a)};Dom.insertAfter=function(a,b){AS_Assert.isTrue(b.parentNode);b.parentNode.insertBefore(a,b.nextSibling)};
Dom.insertBefore=function(a,b){AS_Assert.isTrue(b.parentNode);b.parentNode.insertBefore(a,b)};Dom.replace=function(a,b){AS_Assert.isTrue(b.parentNode);b.parentNode.replaceChild(a,b)};Dom.getInnerText=function(a){var b=[];Dom.getInnerTextHelp_(a,b);return b.join("")};Dom.getInnerTextHelp_=function(a,b){if(a.innerText)b.push(a.innerText);else if(a.data)b.push(a.data);else if(a.hasChildNodes())for(var c=a.firstChild;c;){arguments.callee(c,b);c=c.nextSibling}};var DM_GlobalDom=new Dom;
function $(a){return DM_GlobalDom.$(a)};var XH_ieProgId_,JSCompiler_inline_XH_ACTIVE_X_IDENTS_23=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];
if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var JSCompiler_inline_i$$19_24=0;JSCompiler_inline_i$$19_24<JSCompiler_inline_XH_ACTIVE_X_IDENTS_23.length;JSCompiler_inline_i$$19_24++){var JSCompiler_inline_candidate_25=JSCompiler_inline_XH_ACTIVE_X_IDENTS_23[JSCompiler_inline_i$$19_24];try{new ActiveXObject(JSCompiler_inline_candidate_25);XH_ieProgId_=JSCompiler_inline_candidate_25;break}catch(JSCompiler_inline_e$$11_26){}}if(!XH_ieProgId_)throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed.");
}function XH_XmlHttpGET(a,b,c){a.open("GET",b,true);a.onreadystatechange=c;try{a.send(null)}catch(d){log("XMLHttpSend failed "+d.toString()+"<br>"+d.stack);throw d;}};if("undefined"==typeof log)log=function(){};var ER_curPage_=1,ER_curQuery_=-1,ER_queries_,ER_linktexts_,ER_linkurls_,ER_udsLoaded_=false,ER_DOM_=new Dom,ER_NUM_RE=/\d+/g,ER_QUERY_RE=/_QUERY_/g,ER_RANK_RE=/_RANK_/g;function createElement(a,b,c){a=ER_DOM_.create(a);if(b!=null)a.id=b;if(c!=null)a.className=c;return a}
function ER_buildQueryList(a,b,c){var d=createElement("div","ql");for(a=a;a<b;a++){var f=createElement("div","q_"+a,"q_inactive");f.onclick=ER_onQueryClick;f.onmouseover=ER_highlightDiv;f.onmouseout=ER_unHightlightDiv;var e=createElement("span","q_rank","bottom_border l center c");e.appendChild(document.createTextNode(""+(a+1)));e.style.width="25px";f.appendChild(e);e=createElement("span","q_trend","bottom_border pd_6 l");if(ER_queries_[a][1]=="0")e.appendChild(createElement("div","nomove"));else if(ER_queries_[a][1]==
"1")e.appendChild(createElement("div","up"));else ER_queries_[a][1]=="-1"?e.appendChild(createElement("div","down")):e.appendChild(createElement("div","none"));e.style.width="22px";f.appendChild(e);e=createElement("a","q_title","bottom_border l color_2");e.appendChild(document.createTextNode(ER_queries_[a][0]));e.href="javascript:_ER_doDetailSearch("+a+");";e.style.width="245px";e.style.height="25px";f.appendChild(e);e=createElement("span","q_link","bottom_border l");var g=createElement("a",null,
"color_2");g.appendChild(document.createTextNode(ER_linktexts_[0]));g.href="javascript:_ER_doSearch(0,"+a+");";e.appendChild(g);e.appendChild(document.createTextNode(" | "));g=createElement("a",null,"color_2");g.appendChild(document.createTextNode(ER_linktexts_[1]));g.href="javascript:_ER_doSearch(1,"+a+");";e.appendChild(g);if(ER_queries_[a][2]!=""){g=createElement("a");g.appendChild(document.createTextNode(ER_linktexts_[2]));g.href="javascript:_ER_doSearch(2,"+a+");";e.appendChild(document.createTextNode(" | "));
e.appendChild(g)}if(ER_queries_[a][4]!=""){g=createElement("a");g.appendChild(document.createTextNode(ER_linktexts_[3]));g.href="javascript:_ER_doSearch(4,"+a+");";e.appendChild(document.createTextNode(" | "));e.appendChild(g)}f.appendChild(e);d.appendChild(f)}Dom.replace(d,$("ql"));ER_doDetailSearch(c)}
function ER_doDetailSearch(a){var b=a;if(a==null)b=ER_getQid();if(ER_curQuery_!=b){ER_updateIntro(b);ER_udsLoaded_?Z2_initializeAjaxSearchers(ER_queries_[b][0]):google.setOnLoadCallback(function(){ER_udsLoaded_=true;Z2_searchControl(ER_queries_[b][0])});ER_updateRelatedQueries(ER_queries_[b][0]);a=$("q_"+ER_curQuery_);if(a!=null){a.className="q_inactive";a.onmouseover=ER_highlightDiv;a.onmouseout=ER_unHightlightDiv}ER_curQuery_=b;a=$("q_"+ER_curQuery_);a.className="q_active";a.onmouseover=null;a.onmouseout=
null;ER_sendTracking("/rebang/tracking?type=uds")}}
function ER_updateIntro(a){var b=$("introtext");if(b!=null)if(ER_queries_[a][3]!=""){for(b.parentNode.style.display="";b.hasChildNodes();)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(ER_queries_[a][3]));if(ER_queries_[a][2]!=""){var c=createElement("a",null,"gsc-trailing-more-results");c.innerHTML=_UDS_MSG_SEARCHCONTROL_SEE_MORE;c.href=ER_queries_[a][2];a=createElement("div",null,"gsc-trailing-more-results");a.appendChild(c);b.appendChild(a)}}else b.parentNode.style.display="none"}
function ER_updateRelatedQueries(a){var b=XH_ieProgId_?new ActiveXObject(XH_ieProgId_):new XMLHttpRequest;a="/rebang/relatedqueries?q="+encodeURIComponent(a);XH_XmlHttpGET(b,a,function(){if(b.readyState==4)if(b.status==200){$("rs").style.display="";$("rscontrol").innerHTML=b.responseText}else $("rs").style.display="none"})}function ER_getQid(){var a=document.location.search.substring(1);a=a.split("&");for(var b=0;b<a.length;b++){var c=a[b].split("=");if(c[0]=="qid")return c[1]}return 0}
function ER_switchQueryListPage(a){a=this.id.match(ER_NUM_RE);if(a!=ER_curPage_){$("querylist_align").style.height="0";$("result_align").style.height="0";a==1?ER_buildQueryList(0,25,0):ER_buildQueryList(25,ER_queries_.length,25);var b=$("ql_page_"+ER_curPage_);b.className="ql_page_inactive";b.onmouseover=ER_onMouseOver;b.onmouseout=ER_onMouseOut;ER_curPage_=a;b=$("ql_page_"+ER_curPage_);b.className="ql_page_active";b.onmouseover=null;b.onmouseout=null;b.style.textDecoration="none"}}
function ER_initExtendReading(a,b,c){ER_queries_=a;ER_linktexts_=b;ER_linkurls_=c;ER_loadExtendReading();google.setOnLoadCallback(function(){ER_udsLoaded_=true})}
function ER_loadExtendReading(){var a=ER_queries_;a[a.length-1]==null&&ER_queries_.pop();a=a.length;if(a<25)ER_buildQueryList(0,a);else{ER_buildQueryList(0,25);var b=$("ql_page"),c=createElement("span","ql_page_1","ql_page_active");c.onclick=_ER_switchQueryListPage;c.appendChild(document.createTextNode("1-25"));b.appendChild(c);b.appendChild(document.createTextNode(" | "));c=createElement("span","ql_page_2","ql_page_inactive");c.onclick=_ER_switchQueryListPage;c.appendChild(document.createTextNode("26-"+
a));c.onmouseover=ER_onMouseOver;c.onmouseout=ER_onMouseOut;b.appendChild(c)}}function ER_onMouseOver(){this.style.textDecoration="underline";this.style.cursor="pointer"}function ER_onMouseOut(){this.style.textDecoration="none"}function ER_doSearch(a,b){var c="";if(a>=2)c=ER_queries_[b][a];else{c=ER_linkurls_[a].replace(ER_QUERY_RE,encodeURIComponent(ER_queries_[b][0]));c=c.replace(ER_RANK_RE,""+b)}window.open(c,"newwindow")}
function ER_searchWeb(a){var b="";b=ER_linkurls_[0].replace(ER_QUERY_RE,encodeURIComponent(a));b=b.replace(ER_RANK_RE,"rs");window.open(b,"newwindow")}function ER_onQueryClick(){var a=this.id.match(ER_NUM_RE);ER_doDetailSearch(a)}function ER_highlightDiv(){this.className="q_highlight"}function ER_unHightlightDiv(){this.className="q_inactive"}
function ER_tracking(a,b){a=a?a:window.event;a=a.srcElement?a.srcElement:a.target;a=a.className;if(a!="gs-title")return true;ER_sendTracking("/rebang/tracking?type="+b)}function ER_sendTracking(a){try{var b=new Image;b.src=a;b.onload=function(){}}catch(c){}}var _ER_doDetailSearch=ER_doDetailSearch,_ER_switchQueryListPage=ER_switchQueryListPage,_ER_initExtendReading=ER_initExtendReading,_ER_doSearch=ER_doSearch,_ER_tracking=ER_tracking,_ER_searchWeb=ER_searchWeb,_ER_updateRelatedQueries=ER_updateRelatedQueries;var Z2_numSearches_=0;function Z2_initializeAjaxSearchers(a){Z2_searchControl(a)}function Z2_searchControl(a){Z2_searchControl.prototype.Z2_startSearch("web");Z2_searchControl.prototype.Z2_startSearch("news");Z2_numSearches_=2;var b=new GwebSearch;b.setSearchCompleteCallback(this,Z2_searchControl.prototype.Z2_searchComplete,["web",b,3]);b.execute(a);b=new GnewsSearch;b.setSearchCompleteCallback(this,Z2_searchControl.prototype.Z2_searchComplete,["news",b,4]);b.execute(a)}
Z2_searchControl.prototype.Z2_startSearch=function(a){a=document.getElementById(a+"control");a.firstChild&&a.removeChild(a.firstChild);a.innerHTML="Loading..."};
Z2_searchControl.prototype.Z2_searchComplete=function(a,b,c){var d=document.getElementById(a+"control");d.firstChild&&d.removeChild(d.firstChild);a=createDiv("","gsc-results gsc-"+a+"Result");a.setAttribute("style","display:block");d.appendChild(a);if(b.results&&b.results.length>0){d.parentNode.style.display="";c=c>b.results.length?b.results.length:c;for(d=0;d<c;d++){var f=createDiv("","gsc-result"),e=b.results[d];if(e.html){e=e.html.cloneNode(true);f.appendChild(e);a.appendChild(f)}}c=createDiv("",
"gsc-trailing-more-results");d=document.createElement("a");b=b.gwsUrl.replace(/source=uds/g,"source=billboard_site&sourceid=uds");b=b.replace(/.google.com/g,".google.cn");d.setAttribute("href",b);d.setAttribute("target","_blank");d.innerHTML="\u66f4\u591a\u7ed3\u679c";d.className="gsc-trailing-more-results";c.appendChild(d);a.appendChild(c)}else d.parentNode.style.display="none";Z2_numSearches_--;Z2_numSearches_==0&&adjustHeight()};
function createDiv(a,b){var c=document.createElement("div");if(a)c.innerHTML=a;if(b)c.className=b;return c}
function adjustHeight(){var a=$("querylist_panel"),b=$("result_panel"),c=$("querylist_align"),d=$("result_align");a=a.scrollHeight-c.scrollHeight;var f=b.scrollHeight-d.scrollHeight;b=0;b=a>f?a:f;if(b<675)b=675;if(b>f){f=b-f+"px";d.style.lineHeight=f;d.style.height=f;d.style.display=""}else{d.style.display="none";d.style.height="0"}if(b>a){f=b-a+"px";c.style.lineHeight=f;c.style.height=f;c.style.display=""}else{c.style.display="none";c.style.height="0"}};
