if(window.JSON&&window.JSON.stringify.toString().indexOf("[native code]")!==-1){window.JSONYoudao=window.JSON}else{window.JSONYoudao={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;ie.origin){g=e.origin}if(g===e.full){return false}else{c.call(h,d.full,g,false);return true}};this.getWidth=function(g){return d[g]};this.getHeight=function(g){return e[g]}}window.YoudaoSelector.Config=new a()})(YoudaoUtils);(function(c,a){function b(){var h=this;var i=null;this.init=function(o){var j=this;i=document.getElementById("YOUDAO_SELECTOR_WRAPPER");a.init(i.style.width,i.style.height);var k=i.getAttribute("bindTo");if(k!==null){a.bindTo=k}var n=i.getAttribute("borderColor");var m=i.getAttribute("backgroundImage");if(n!==null){a.borderColor=n}if(m!==null){a.backgroundImage=m}var l=e();setTimeout(function(){try{j.iframeDocument=l.contentDocument||l.contentWindow.document}catch(p){alert("由于该网页存在安全性限制, 无法加载有道翻译");return}g(j.iframeDocument);j.resultDiv=f(j.iframeDocument);d(j.iframeDocument,true);o.call()},100)};function e(){i.innerHTML='';var j=document.getElementById("YOUDAO_SELECTOR_IFRAME");c.css(j,{"background-color":"white",border:"0",width:a.getWidth("full")+"px",height:a.getHeight("full")+"px"});if(c.browser.msie){if(document.domain!=document.location.hostname){j.src="