var j=function(b,c,a,d){var e=b.addEventListener&&c=="mousewheel"?"DOMMouseScroll":c,h=arguments.length==4?d:b,f=function(g){a.call(h,g)};if(b.attachEvent)b.attachEvent("on"+e,f);else if(b.addEventListener)b.addEventListener(e,f,false);else b["on"+e]=f},m=function(b){var c=b.style.display;if(c!="none"&&c!=null)return{width:b.offsetWidth,height:b.offsetHeight};var a=b.style,d=a.visibility,e=a.position,h=a.display;a.visibility="hidden";a.position="absolute";a.display="block";var f=b.clientWidth,g=b.clientHeight;
a.display=h;a.position=e;a.visibility=d;return{width:f,height:g}},r=function(b,c,a){if(b.fireEvent)b.fireEvent("on"+c,a);else if(b.dispatchEvent){var d;switch(c){case "focus":case "blur":case "scroll":d=document.createEvent("UIEvents");d.initUIEvent(c,true,true,a.view,a.detail);break;case "click":case "mousedown":case "mouseup":case "mouseover":case "mouseout":d=document.createEvent("MouseEvents");d.initMouseEvent(c,true,true,a.view,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,
a.shiftKey,a.metaKey,a.button,a.relatedTarget);break;case "keydown":case "keyup":d=document.createEvent("KeyboardEvent");d.initKeyboardEvent(c,true,true,a.view,a.detail);break;case "select":case "change":d=document.createEvent("Event");d.initEvent(c,true,true);break}b.dispatchEvent(d)}},t={IE:!(!(window.attachEvent&&!window.opera)),WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1},x=function(){this.p="";this.d=[];this.e=[];this.r={};this.i=true;this.j="\u25bc";this.A="\u25b2";this.c={en:"English",
fr:"French",de:"German",it:"Italian",ko:"Korean",es:"Spanish",ru:"Russian","zh-TW":"Chinese (Traditional)","zh-CN":"Chinese (Simplified)",pt:"Portuese",hi:"Hindi"}};x.instances={};x.prototype.init=function(b,c){this.p=b;if(c){this.c={};for(var a in c)this.c[a]=c[a]}var d=document.getElementById(this.p),e=m(d);e.height=t.IE?e.height:e.height+2;var h=document.createElement("div"),f=document.createElement("div"),g=document.createElement("input");h.setAttribute("id","gs-box");h.className="gs-style";j(h,
"mouseover",this.s,this);j(h,"mouseout",this.k,this);g.setAttribute("id","gs-btn");g.setAttribute("type","button");g.setAttribute("value",this.j);g.className="gs-btn-style";var n=this.m(d),k=this.n(d);k.setAttribute("id","gs-opts");k.className="gs-style";f.setAttribute("id","gs-view");f.className="gs-view-style";n.value.split("|");f.innerHTML="<span>"+this.g(n.innerHTML)+"</span>";h.appendChild(f);h.appendChild(g);h.appendChild(k);h.style.width=e.width+"px";h.style.height=e.height-1+"px";f.style.width=
e.width-2+"px";f.style.height=e.height-3+"px";g.style.height=t.WebKit?e.height+"px":e.height-3+"px";f.style.lineHeight=e.height-3+"px";j(f,"click",this.toggle,this);j(g,"click",this.toggle,this);d.parentNode.insertBefore(h,d);d.style.display="none";k.style.top=h.offsetHeight+"px";k.style.left="0";this.z=h;this.w=f;this.b=g;this.a=k;this.h=d;j(document,"click",this.t,this)};x.prototype.m=function(b){var c=b.getElementsByTagName("option");for(var a=0;a<c.length;a++)if(c[a].selected)return c[a];return c[0]};
x.prototype.n=function(b){var c=document.createElement("ul");c.setAttribute("id","gs-opts");c.className="gs-style";var a={},d={};for(var e in this.c)a[e]=[];var h=b.getElementsByTagName("option");for(var f=0;f<h.length;f++){var g=h[f],n=this.d.length;this.d[n]=g;this.r[g.value]=n;var k=g.value,i=g.value.split("|");if(!d[i[0]+":"+k]&&a[i[0]]){d[i[0]+":"+k]=true;a[i[0]].push(n+":to:"+i[1]+":"+g.innerHTML)}if(!d[i[1]+":"+k]&&a[i[1]]){d[i[1]+":"+k]=true;a[i[1]].push(n+":from:"+i[0]+":"+g.innerHTML)}}for(var e in a){var u=
e,o=document.createElement("li");o.innerHTML=this.c[u];o.className="more";var p=document.createElement("span");p.innerHTML="&raquo;";p.className="raquo";o.appendChild(p);var q=document.createElement("ul");q.className="sub gs-opts-style";for(var f=0;f<a[e].length;f++){var s=a[e][f].split(":"),n=s[0],y=s[1],i=s[2],z=s[3];if(y=="from")continue;else{var A=u,v=i}var k=A+"|"+v,B=this.g(z),l=document.createElement("li");l.innerHTML=B;l.setAttribute("value",k);l.setAttribute("index",n);l.className="clickable";
j(l,"click",this.click,this);q.appendChild(l);if(t.IE){j(l,"mouseover",this.rollover,l);j(l,"mouseout",this.rollout,l)}}o.appendChild(q);c.appendChild(o);if(t.IE){var w=this.e.length;o.setAttribute("index",w);q.setAttribute("index",w);p.setAttribute("index",w);this.e[w]=q;j(o,"mouseover",this.u,this);j(o,"mouseout",this.o,this);j(p,"mouseover",this.view,this);j(p,"mouseout",this.hide,this);j(q,"mouseover",this.view,this);j(q,"mouseout",this.hide,this)}}return c};x.prototype.click=function(b){this.toggle();
var c=b.target||b.srcElement;if(c.nodeName.toUpperCase()!="LI")c=c.parentNode;var a=c.getAttribute("value");if(this.h.value!=a)this.set(a,b);r(this.d[c.getAttribute("index")],"click",b)};x.prototype.set=function(b,c){if(!b)return false;var a=this.r[b],d=this.d[a].innerHTML;this.h.value=b;this.w.innerHTML="<span>"+d+"</span>";if(c)r(this.h,"change",c)};x.prototype.toggle=function(){if(t.IE)this.hide();var b=this.a.style.display;if(!b||b=="none"){this.a.style.display="block";this.v=true;if(t.IE&&!C){C=
this.a;window.setTimeout(D,10)}}else{this.a.style.display="none";this.b.className="gs-btn-style";this.b.setAttribute("value",this.j);this.v=false}};x.prototype.t=function(){if(!this.i){this.a.style.display="none";this.b.className="gs-btn-style";this.b.setAttribute("value",this.j)}};x.prototype.k=function(){this.i=false};x.prototype.s=function(){this.i=true};x.prototype.g=function(b){var c=new RegExp;c=/(beta)/i;return b.replace(c,"<span class=beta>$1</span>")};if(t.IE){var C=null,D=function(){if(C){C.style.display=
"none";C.style.display="block"}};x.prototype.rollover=function(){this.className="hover"};x.prototype.rollout=function(){this.className=""};x.prototype.view=function(){var b=this.e[this.l];if(b){var c=b.parentNode;c.className="more-hover";b.style.display="block"}};x.prototype.u=function(b,c){var a=b.target||b.srcElement,d=c?c:a;if(d.className=="more"){d.className="more-hover";this.l=d.getAttribute("index");this.view(d)}};x.prototype.hide=function(){var b=this.e[this.l];if(b){var c=b.parentNode;c.className=
"more";b.style.display="none"}};x.prototype.o=function(b,c){var a=b.target||b.srcElement,d=c?c:a;if(d.className=="more-hover"){d.className="more";this.hide()}}}function E(b,c){var a=new x;a.init(b,c);x.instances[b]=a}function F(b,c){var a=0,d=0;do{d+=b.offsetTop||0;a+=b.offsetLeft||0;b=b.offsetParent}while(b!=c);return{x:a,y:d}}function G(b,c,a,d,e){if(document.getElementById){var h=document.getElementById(b),f=document.getElementById(c),g=document.getElementById(a),n=document.getElementById(d),k=
function(){if(g.style.display=="block")g.style.display="none";else g.style.display="block";return false},i=function(){g.style.display="none";document.onmouseover=null;return false};h.onclick=k;f.onclick=i;g.onclick=function(){document.onmouseover=i};g.onmouseover=function(l){if(!l)var l=window.event;l.cancelBubble=true;if(l.stopPropagation)l.stopPropagation()};var u=function(){document.f.q.value=this.innerHTML;i();document.f.q.select();if(this.getAttribute("langpair"))x.instances[e].set(this.getAttribute("langpair"));
else x.instances[e].set(this.getAttribute("sl")+"|"+this.getAttribute("tl"));return false},o=n.getElementsByTagName("a");for(var p=0;p<o.length;p++){var q=o[p];q.onclick=u}var s=document.body.getAttribute("dir"),y=document.getElementById("dct-help"),z=F(h,y),A=m(h),v=z.x+A.width/2,B=m(g);g.style.left=(s=="rtl"?v-B.width:v)+"px"}}function H(b,c,a,d,e){var h=document.getElementById(b);if(!h)return;var f=function(){var g=document.getElementById(c);if(g.style.display=="none"){g.style.display="block";
this.innerHTML=d}else{g.style.display="none";this.innerHTML=a;if(t.IE)window.setTimeout(D,10)}return false};h.onclick=f;if(!e)f()}var I=function(b,c,a){var d="more-"+b,e=document.getElementById(d),h=function(){if(e.style.display=="none"){e.style.display="block";this.innerHTML="&laquo; "+a}else{e.style.display="none";this.innerHTML=c+" &raquo;"}return false},f=document.createElement("div");f.className="mrbtn";var g=document.createElement("span");g.innerHTML=c+" &raquo;";g.onclick=h;f.appendChild(g);
e.parentNode.insertBefore(f,e.nextSibling);e.style.display="none"};function J(b,c){if(!window.focus)return true;var a;if(typeof b=="string")a=b;else a=b.href;window.open(a,c,"width=380,height=400,scrollbars=no");return false}function K(b,c,a,d){var e=c.split("|"),h=e[0],f="";if(e.length==2)f=e[1];var g="/dictionary/wordlistop?",n=new Array(g,"q=",encodeURIComponent(b),"&sl=",encodeURIComponent(h),"&tl=",encodeURIComponent(f),"&action=",a),k=n.join(""),i=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");
i.open("GET",k,true);i.onreadystatechange=function(){if(i.readyState==4&&i.status==200)d(i)};i.send(null)}function L(b,c,a){K(b,c,"lookupword",function(d){var e=eval("("+d.responseText+")");if(e.responseData.found){document.getElementById("wl-st-"+a).style.display="none";document.getElementById("wl-ust-"+a).style.display="inline"}})}function M(b,c,a){K(b,c,"addword",function(){document.getElementById("wl-st-"+a).style.display="none";document.getElementById("wl-ust-"+a).style.display="inline"})}function N(b,
c,a){K(b,c,"removeword",function(){document.getElementById("wl-ust-"+a).style.display="none";document.getElementById("wl-st-"+a).style.display="inline"})}function O(){var b,c=document.getElementById("dct-clk-im"),a=document.getElementById("dct-clk-show"),d=document.getElementById("dct-clk-hide");if(a.style.display=="none"){b="none";a.style.display="inline";d.style.display="none";c.style.backgroundPosition="-91px -74px"}else{b="list-item";a.style.display="none";d.style.display="inline";c.style.backgroundPosition=
"-105px -74px"}var e=document.getElementById("pr-root"),h=e.getElementsByTagName("li");for(var f=0;f<h.length;++f)if(h[f].className=="dct-ee")h[f].style.display=b}window.google={generateMoreButton:I,installLanguageSelect:E,installLearnMore:G,popup:J,registerTLS:H,lookupWord:L,addWord:M,removeWord:N,toggleDictionaryExample:O};

