var sogou_search=function(){var B=function(D){return typeof (D)=="undefined"};var C=function(){var E="";try{E=document.referrer;var G=new Array(window.top.location.href,document.location.href);for(var D=0;D<G.length;D++){try{E=G[D].toString();break}catch(F){}}}catch(F){}return E};var A=function(){if(B(sogou_param)){return }var q=encodeURIComponent(C());var U=sogou_param.iw;var F=sogou_param.ih;var u=sogou_param.c_bo;var z=sogou_param.c_bg;var H=sogou_param.c_te;var v=sogou_param.fid;var N=sogou_param.sw;var K=new Date();if(B(v)){v="sogou_iframe"}var AE=K.getFullYear().toString()+(K.getMonth()+1).toString()+K.getDate().toString();var T=12;var c='<input type="submit" id="sogoubtn" onclick="return onSearch();" ';if(U<300){c+='value="ËÑË÷" style="padding:0;">'}else{c+='value="ËÑ Ë÷">'}var p=sogou_param.pid;var AA=sogou_param.wt;var S=parseInt(sogou_param.af);var k=parseInt(sogou_param.lg);var P=parseInt(sogou_param.fmt);var i=parseInt(sogou_param.lh);var X=parseInt(sogou_param.pd);var f=parseInt(sogou_param.fh);var f=parseInt(sogou_param.fh);var T=parseInt(sogou_param.fs);var b=sogou_param.ff;var M=sogou_param.fw;var Y=sogou_param.fp;var j=sogou_param.lb;if(i==0||isNaN(i)){i=18}if(T==0||isNaN(T)){T=12}if(isNaN(X)){X=5}if(isNaN(f)){f=6}if(b){b=decodeURIComponent(b)}if(!b){b="simsun, serif"}if(!M){M="normal"}if(!Y){Y="left"}if(!j){j=0}var V=sogou_param.mi;var R;var J;var x;var e=120;if(!N){N="98%"}else{e=N;N=N+"px"}var w="http://pbd.sogou.com/";switch(k){case 1:R=155;J=60;x="sogoulogo.gif";break;case 2:R=78;J=23;x="sogoulogo2.gif";break;case 3:R=58;J=19;x="sogoulogo3.gif";break;case 4:R=219;J=23;x="sogoulogo4.gif";break}var d='<img src="'+w+"images/"+x+'" alt="ËÑ¹·" width="'+R+'" height="'+J+'" border="0"></a>';var Q=0;var Z=0;var g=0;var AB=new Array();switch(P){case 1:break;case 2:break;case 3:Q=Math.floor((U-R)*2/T)-4;Z=Math.floor((U-R-X*2)/T/5);g=1;break;case 5:case 6:Z=Math.floor((U-R-e-70-X*2)/T/5);g=Math.floor((F-X*2-f)/i);break;case 8:Z=Math.floor((U-X*2)/T/5);g=Math.floor((F-X*2-f)/i);break;case 9:Z=Math.floor((U-R-X*2)/T/5);g=Math.floor((F-X*2-f)/i);break;case 4:case 7:case 10:case 11:Z=Math.floor((U-X*2)/T/5);g=Math.floor((F-Math.max(J,T+10)-X*2-f)/i);break}var W=T*4+7;var Q=0;var G=0;if(j==1||P==3){W=Z*T*5;Q=W*2/T-2;Z=1;G=g-1;if(M=="bold"||M=="bolder"){Q-=7}if(P==3){Q-=3}}AB.push('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>sogou</title>');AB.push('<style type="text/css">*{font-size:'+T+"px;font-style:normal;font-family:"+b+";font-weight:"+M+";}#sogoubtn{font-weight:normal;margin-right:8px;}.sgchip1,.sgchip2 {margin: 0;padding: 0;overflow:hidden;}.sgchip1 table {border-collapse:collapse;text-align:left;width: 100%;}.sgchip1 td {vertical-align: top;padding-right: 10px;}.sginput1 {width: ");AB.push(N);AB.push(";color:#"+H+";}.sgkw1 {line-height: "+i+"px;}.sgkw1 a,.sgkwbox1 a {color:#"+H+";	text-decoration: underline;}.sgkw1 a:hover,.sgkwbox1 a:hover {color: #f00 !important;}.sginputbox1 {padding-top: 14px;width: 100%;}.sgbtn1 {padding-top: 14px;}.chipbox {padding: "+X+"px;}.sgsearch {border-collapse:collapse;text-align: left;width: 100%;}.sginputbox {");if(N.indexOf("px")<0){AB.push("width: 100%;")}AB.push("padding-right: 10px;}.sgkwbox1 {line-height: "+i+"px;border-collapse: collapse;width: 100%;text-align: left;}");AB.push(".tkws{visibility:hidden;text-align:"+Y+";}");AB.push("#main { height:"+F+"px;width:"+U+"px;border:1px solid #"+u+";}");AB.push("</style>");AB.push('<script type="text/javascript" src="http://pbd.sogou.com/hot/hot.js?r='+AE+'" charset="gbk"><\/script>');AB.push('<script type="text/javascript">var mi = '+V+";var wlen="+Q+";var wh="+G+";var pt="+P+";var wc=0;var pbs = new Array();var wlen = "+Q+";var td_num = "+Z+";var lines = "+g+';var hots=Array();var sogouUrl = "http://www.sogou.com/sogou?query=";var account = "'+p+'";var clientInfo = "&pid="+account;var extraPara = "&ie=utf8";var ua = navigator.userAgent.toLowerCase();');AB.push('function strLength(str){if(!str||typeof(str)!="string"){return -1;}	var len = 0;for(var i = 0; i<str.length; i++ ){var hex = str.charCodeAt(i);if( hex < 0xff ){len += 1;}else{len += 2;}}return len;}');AB.push('function onSearch(){pbAction("sogou_search.png");if(ua.indexOf("opera")>=0||ua.indexOf("netscape")>=0){var searchtext = document.getElementById("query").value;var url = sogouUrl + encodeURIComponent(searchtext) + clientInfo + extraPara;window.open(url);return false;}else if(ua.indexOf("firefox")>=0){document.getElementById("ie").name = "ie";	document.getElementById("ie").value = "utf8";}return true;}');AB.push('function pbAction(s){var hl = 0;var wcount=0;if(wc>0){wcount=wc;}else{wcount=Math.min(hl, td_num*lines);}if(typeof(hots)!="undefined") hl = hots.length;var n=new Date().getTime();var c=escape(n*1000+Math.round(Math.random()*1000));var i=pbs.length;pbs[i] = new Image();pbs[i].src = "http://pb.pbd.sogou.com/" + s + "?p=" + account + "?w=" + wcount + "?t="+c;return true;}');if(j==1||P==3){AB.push('function wrapKeyword(){if(typeof(ahots)=="undefined") return;var wStr = "'+AA+'";var wts = wStr.split("|");for(var i=0;i<wts.length;i++){var key = wts[i];eval("var hotcat = ahots["+key+"]");if(hotcat)hots=hots.concat(hotcat);}if(typeof(hots)=="undefined")return;var o = document.getElementById("hws_0");if(o==null)o=document.getElementById("hws");if(o){var s = "";hots.sort(function(){return Math.random()*new Date%3-1});var l = 0;var h = 0;var dw = hots[0];if(dw&&mi==0&&pt<8){document.getElementById("query").value = dw;}for (var m = 1; m < hots.length; m++){var b = hots[m];var url = sogouUrl + b + clientInfo;if(ua.indexOf("opera")>=0||ua.indexOf("firefox")>=0||ua.indexOf("netscape")>=0){url = sogouUrl + encodeURIComponent(b) + clientInfo + extraPara;}if (b && b != ""){l += strLength(b) + 1;if(l>wlen){s += "<br>";l = strLength(b) + 1;h++;}if(h>wh){wc=m-1;break;}if(s) s+= " ";s += "<a onclick=pbAction(\'sogou_click.png\') target=_blank href=" + url + ">" + b + "</a>";}}o.style.visibility = "visible";o.innerHTML = s;}}')}else{AB.push('function clearBlock(){for(var m = 0; m < td_num; m++){var so = document.getElementById("hws_" + m);if(so) {so.innerHTML = "";so.parentNode.style.display = "none";}}} function wrapKeyword(){if(typeof(ahots)=="undefined"){clearBlock();return;}var wStr = "'+AA+'";var wts = wStr.split("|");for(var i=0;i<wts.length;i++){var key = wts[i];eval("var hotcat = ahots["+key+"]");if(hotcat)hots=hots.concat(hotcat);}	if(typeof(hots)=="undefined"){clearBlock();return};hots.sort(function(){return Math.random()*new Date%3-1});var dw = hots[0];if(dw&&mi==0){var q=document.getElementById("query");if(q) q.value = dw;}	for(var m = 0; m < td_num; m++){var so = document.getElementById("hws_" + m);if(so){var s = "";for(var k = 0; k < lines; k++){var b = hots[m*lines+k+1];if (b && b != ""){var url = sogouUrl + b + clientInfo;if(ua.indexOf("opera")>=0||ua.indexOf("firefox")>=0||ua.indexOf("netscape")>=0){url = sogouUrl + encodeURIComponent(b) + clientInfo + extraPara;}if(s) s+= "<br>";s += "<a onclick=\'pbAction(\\"sogou_click.png\\");\' target=\'_blank\' href=\'" + url + "\'>" + b + "</a>";}}s += "";if(s.length>0){so.innerHTML = s;so.style.visibility = "visible";}else{so.innerHTML = "";so.parentNode.style.display = "none";}}}}')}AB.push("function bol(){try{wrapKeyword();");if(S>0){AB.push("setInterval(wrapKeyword, "+S+");")}AB.push('pbAction("sogou_pv.png");}catch(e){}}<\/script>');AB.push("</head><body onload=\"if(ua.indexOf('firefox')<0){bol();}\">");AB.push('<table id="main" cellspacing="0" cellpadding="0" bgcolor="#'+z+'" style="table-layout:fixed;overflow:hidden;');AB.push('"><tr><td valign="middle">');var n='<form action="http://www.sogou.com/sogou" method="get" class="sgchip';if(P==3){AB.push(n+'1" style="')}else{AB.push(n+'2" style="')}if(P==2){AB.push("text-align:center;")}AB.push('width:100%;height:100%;" target="_blank">');var I='<div class="chipbox">';var E='<table class="sgsearch">';var D='<table class="sgkwbox1">';var AF='<td class="sginputbox1">';var AD='<td class="sginputbox">';var AC='<td class="sgbtn1">';var y='<input type="hidden" id="ie"><input type="hidden" name="pid" value="'+p+'">';var a="ËÑ¹·ËÑË÷";var O=function(r){var o='<div id="hws_'+r+'" class="tkws">';for(var h=0;h<g;h++){if(h>0){o+="<br>"}o+=a}o+="</div>";return o};switch(P){case 1:AB.push(I);AB.push(E+"<tr><td>");break;case 2:AB.push(I);break;case 3:AB.push('<table><tr><td rowspan="2">');break;case 4:AB.push(I);AB.push(E+"<tr><td>");break;case 5:AB.push(I);AB.push(D+"<tr><td>"+E+"<tr><td>");break;case 6:AB.push(I);AB.push(D+"<tr>");for(var t=0;t<Z;t++){AB.push("<td width="+W+">"+O(t)+"</td>")}AB.push("<td>"+E+"<tr><td>");break;case 7:AB.push(I);AB.push(D+"<tr>");for(var t=0;t<Z;t++){AB.push("<td>"+O(t)+"</td>")}AB.push("<tr></table>"+E+"<tr><td>");break;case 8:AB.push(I);AB.push(D+"<tr>");for(var t=0;t<Z;t++){AB.push("<td>"+O(t)+"</td>")}AB.push("<tr></table>");break;case 9:AB.push(I);AB.push(D+"<tr>");AB.push("<td>");break;case 10:AB.push(I);AB.push(E+"<tr>");AB.push('<td align="center">');break;case 11:AB.push(I);AB.push(D+"<tr>");for(var t=0;t<Z;t++){AB.push("<td>"+O(t)+"</td>")}AB.push("<tr></table>"+E+'<tr><td align="center">');break}if(P!=8){AB.push('<a href="http://www.sogou.com/index.htm?pid='+p+'" target="_blank" onclick="pbAction(\'sogou_hclick.png\');">')}switch(P){case 3:AB.push(d);break;case 1:case 2:case 4:case 5:case 6:case 7:AB.push(d);break;case 8:break;case 9:case 10:case 11:AB.push(d);break}switch(P){case 2:AB.push("<div>");break;case 3:AB.push("</td>"+AF);break;case 1:case 4:case 5:case 6:case 7:AB.push("</td>"+AD);break;case 8:break;case 9:AB.push("</td>");break;case 10:break;case 11:break}if(P<8){AB.push('<input type="text" name="query" size="20" class="sginput1" id="query" onfocus="if(mi==0){this.value=\'\';mi=1;}">')}switch(P){case 2:AB.push(y+"</div>");break;case 3:AB.push("</td>");AB.push(AC+y);break;case 1:case 4:case 5:case 6:case 7:AB.push(y+"</td><td>");break;case 8:break;case 9:break;case 10:break;case 11:break}if(P<8){AB.push(c)}switch(P){case 2:AB.push("</div>");break;case 1:case 3:case 4:case 5:case 6:case 7:AB.push("</td></tr>");break;case 8:break;case 9:break;case 10:break;case 11:break}switch(P){case 2:break;case 3:AB.push("<tr>");break;case 4:AB.push("</table>");break;case 8:break;case 9:break;case 1:case 5:case 6:case 7:case 10:case 11:AB.push("</td></tr></table>");break}switch(P){case 1:AB.push("</div>");break;case 2:AB.push("");break;case 3:AB.push('<td colspan="2" class="sgkw1"><div id="hws"></div></td>');AB.push("</tr></table>");break;case 4:AB.push(D+"<tr>");for(var t=0;t<Z;t++){AB.push("<td>"+O(t)+"</td>")}AB.push("</tr></table></div>");break;case 5:AB.push("</td>");for(var t=0;t<Z;t++){AB.push("<td width="+W+">"+O(t)+"</td>")}AB.push("</tr></table></div>");break;case 6:AB.push("</td></tr></table></div>");break;case 9:for(var t=0;t<Z;t++){AB.push("<td>"+O(t)+"</td>")}AB.push("</tr></table></div>");break;case 10:AB.push(D+"<tr>");for(var t=0;t<Z;t++){AB.push("<td>"+O(t)+"</td>")}AB.push("</tr></table></div>");break;case 7:case 8:case 11:AB.push("</div>");break}AB.push('<script type="text/javascript">if(ua.indexOf("firefox")>=0){bol();}<\/script>');AB.push("</form></td></tr></table></body></html>");var l=AB.join("");var s=document.getElementById(v);var L;if(s){if(s.contentDocument){L=s.contentDocument}else{if(s.Document){L=s.Document}}if(L){L.open("text/html; charset=gb2312");L.charset="gb2312";L.write(l);L.close()}}}()}();