页面代码
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" dir="ltr">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body style="font-family: arial; font-size: 10pt" onload="load();">
<div id="google_translate_element"></div><script>
                                             function googleTranslateElementInit() {
                                                 new google.translate.TranslateElement({
                                                     pageLanguage: 'zh-CN',
                                                     includedLanguages: 'de,ru,fr,ko,ja,en,zh-TW,zh-CN'
                                                 }, 'google_translate_element');
                                             }
</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
    <h2 style="border-bottom: 1px solid #68C; padding-bottom: 5px">
        您的个性网站</h2>
    <table width="100%">
        <tr>
            <td style="width: 170px; padding-right: 10px; padding-left: 10px; text-align: right">
                <div style="margin-bottom: 4px">
                    <b style="color: #333">简介</b></div>
                <div style="margin-bottom: 4px">
                    <b style="color: #888">相册</b></div>
                <div style="margin-bottom: 15px">
                    <b style="color: #888">博客</b></div>
            </td>
            <td style="border-right: 1px dashed #ABF; width: 1px">
            </td>
            <td style="padding-left: 10px; padding-right: 10px;">
                <h3 style="margin-top: 0">
                    简介</h3>
                <p>
                    这是示例网页。您可以在此处预览和试用网站翻译器。尝试更改上述设置,然后点击“预览和试用!”按钮查看效果。例如,如果您选择了某种翻译语言,则下拉菜单中的各语言会相应地更改。祝您体验愉快!</p>
            </td>
        </tr>
    </table>
</body>
</html>=======================
<div id="google_translate_element"></div>加载完的代码是
<div id="google_translate_element"><div style="" class="skiptranslate goog-te-gadget"><div id=":0.targetLanguage"><select class="goog-te-combo"><option value="">Select Language</option><option value="en">English</option><option value="zh-TW">Chinese (Traditional)</option><option value="fr">French</option><option value="de">German</option><option value="ja">Japanese</option><option value="ko">Korean</option><option value="ru">Russian</option></select></div>Powered by <span style="white-space: nowrap;"><a class="goog-logo-link" href="http://translate.google.com" target="_blank"><img src="http://translate.googleapis.com/translate_static/img/mini_google.png">Translate</a></span></div></div>是通过firefox 看到的
现在问题是select 是通过那个事件让页面执行的 翻译功能
我想自己用button onclick事件调用select 触发的翻译事件函数 。做整个网站的国际化工作
不否用户每次要翻译其他语言都要选择一次。不人性化

解决方案 »

  1.   

    select的事件是动态赋上去的.
    可能需要找到给select加事件的代码.然后用button来调用这个事件.
      

  2.   

    对 我用firefox 找了很久,就是没找到。
      

  3.   

    借个位置 请大虾帮忙一下:http://topic.csdn.net/u/20091130/11/44f40ada-23e2-44af-959f-4d094fa14bc7.html
    纵向js相册 缩略图上onmouseover 显示图片有随机特效
      

  4.   

    (function(){function e(a){throw a;}
    var h=true,j=null,k=false,m,q=this,aa=function(a,b,c){a=a.split(".");c=c||q;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&b!==undefined)c[d]=b;else c=c[d]?c[d]:(c[d]={})},ba=function(a,b){a=a.split(".");b=b||q;for(var c;c=a.shift();)if(b[c])b=b[c];else return j;return b},ca=function(){},da=function(a){a.Pd=function(){return a.Tf||(a.Tf=new a)}},s=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)==
    "[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b},t=function(a){return s(a)=="array"},
    ea=function(a){var b=s(a);return b=="array"||b=="object"&&typeof a.length=="number"},u=function(a){return typeof a=="string"},fa=function(a){return s(a)=="function"},ga=function(a){a=s(a);return a=="object"||a=="array"||a=="function"},ja=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(ha))return a[ha];a[ha]||(a[ha]=++ia);return a[ha]},ha="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36),ia=0,ka=function(a){var b=s(a);if(b=="object"||b=="array"){if(a.M)return a.M.call(a);b=b==
    "array"?[]:{};for(var c in a)b[c]=ka(a[c]);return b}return a},v=function(a,b){var c=b||q;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,d);return a.apply(c,f)}}else return function(){return a.apply(c,arguments)}},la=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}},ma=
    Date.now||function(){return+new Date},w=function(a,b){function c(){}c.prototype=b.prototype;a.p=b.prototype;a.prototype=new c;a.prototype.constructor=a};Function.prototype.Q=function(a){w(this,a)};var x=google.translate._const,y=x._cl||"en",na=x._cuc,oa=x._cnad||k,pa=x._cnal||{},qa=x._pbi||"",ra=x._pci||"",sa=x._phf||"",ta=x._plla||"",ua=x._pli||"",va=x._pmi||"",z=x._ps||"",wa=x._puh||"",xa=window.location.protocol=="https:"?"https://":"http://",ya=xa+"www.google.com/images/cleardot.gif",za=xa+"www.google.com/intl/"+y.replace("_","-")+"/images/logos/translate_logo_sm_trans.gif";var B=function(){};B.prototype.Hd=k;B.prototype.n=function(){if(!this.Hd){this.Hd=h;this.s()}};B.prototype.s=function(){};var C=Array.prototype,Aa=C.indexOf?function(a,b,c){return C.indexOf.call(a,b,c)}:function(a,b,c){c=c==j?0:c<0?Math.max(0,a.length+c):c;if(u(a)){if(!u(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ba=C.forEach?function(a,b,c){C.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=u(a)?a.split(""):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)},D=function(a,b){return Aa(a,b)>=0},Da=function(a,b){b=Aa(a,b);var c;if(c=b>=0)C.splice.call(a,
    b,1).length==1;return c},Ea=function(a){if(t(a))return a.concat();else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}},Fa=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];if(ea(c)){c=c;c=t(c)?c.concat():Ea(c);a.push.apply(a,c)}else a.push(c)}},Ga=function(a,b,c){return arguments.length<=2?C.slice.call(a,b):C.slice.call(a,b,c)};var E=function(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0};E.prototype.M=function(){return new E(this.x,this.y)};E.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var Ha=function(a,b){this.width=a;this.height=b};m=Ha.prototype;m.M=function(){return new Ha(this.width,this.height)};m.toString=function(){return"("+this.width+" x "+this.height+")"};m.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};m.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};m.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
    m.scale=function(a){this.width*=a;this.height*=a;return this};var Ia=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Ja=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},Ka=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b},La=function(a,b,c){if(b in a)return a[b];return c},Ma=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Na=function(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var f=0;f<Ma.length;f++){b=Ma[f];if(Object.prototype.hasOwnProperty.call(c,
    b))a[b]=c[b]}}};var F=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Oa=/^[a-zA-Z0-9\-_.!~*'()]*$/,G=function(a){a=String(a);if(!Oa.test(a))return encodeURIComponent(a);return a},Ua=function(a,b){if(b)return a.replace(Pa,"&amp;").replace(Qa,"&lt;").replace(Ra,"&gt;").replace(Sa,"&quot;");else{if(!Ta.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(Pa,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(Qa,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(Ra,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(Sa,"&quot;");return a}},
    Pa=/&/g,Qa=/</g,Ra=/>/g,Sa=/\"/g,Ta=/[&<>\"]/,Ya=function(a){if(Va(a,"&"))return"document"in q&&!Va(a,"<")?Wa(a):Xa(a);return a},Wa=function(a){var b=q.document.createElement("a");b.innerHTML=a;b.normalize&&b.normalize();a=b.firstChild.nodeValue;b.innerHTML="";return a},Xa=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){c=Number("0"+c.substr(1));if(!isNaN(c))return String.fromCharCode(c)}return b}})},
    Va=function(a,b){return a.indexOf(b)!=-1},$a=function(a,b){var c=0;a=F(String(a)).split(".");b=F(String(b)).split(".");for(var d=Math.max(a.length,b.length),f=0;c==0&&f<d;f++){var g=a[f]||"",i=b[f]||"",l=new RegExp("(\\d*)(\\D*)","g"),n=new RegExp("(\\d*)(\\D*)","g");do{var r=l.exec(g)||["","",""],o=n.exec(i)||["","",""];if(r[0].length==0&&o[0].length==0)break;c=r[1].length==0?0:parseInt(r[1],10);var A=o[1].length==0?0:parseInt(o[1],10);c=Za(c,A)||Za(r[2].length==0,o[2].length==0)||Za(r[2],o[2])}while(c==
    0)}return c},Za=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};ma();var ab,bb,cb,db,eb,fb,gb,hb,ib,jb=function(){return q.navigator?q.navigator.userAgent:j},kb=function(){return q.navigator};eb=db=cb=bb=ab=k;var lb;if(lb=jb()){var mb=kb();ab=lb.indexOf("Opera")==0;bb=!ab&&lb.indexOf("MSIE")!=-1;db=(cb=!ab&&lb.indexOf("WebKit")!=-1)&&lb.indexOf("Mobile")!=-1;eb=!ab&&!cb&&mb.product=="Gecko"}var nb=ab,H=bb,ob=eb,I=cb,pb=db,qb,rb=kb(),sb=qb=rb&&rb.platform||"";fb=Va(sb,"Mac");gb=Va(sb,"Win");hb=Va(sb,"Linux");ib=!!kb()&&Va(kb().appVersion||"","X11");
    var tb=fb,ub=ib,vb,wb="",xb;if(nb&&q.opera){var yb=q.opera.version;wb=typeof yb=="function"?yb():yb}else{if(ob)xb=/rv\:([^\);]+)(\)|;)/;else if(H)xb=/MSIE\s+([^\);]+)(\)|;)/;else if(I)xb=/WebKit\/(\S+)/;if(xb){var zb=xb.exec(jb());wb=zb?zb[1]:""}}var Ab=vb=wb,Bb={},J=function(a){return Bb[a]||(Bb[a]=$a(Ab,a)>=0)};var Cb,Db=function(a){return(a=a.className)&&typeof a.split=="function"?a.split(" "):[]},Eb=function(a){var b=Db(a),c=Ga(arguments,1),d;d=b;c=c;for(var f=0,g=0;g<c.length;g++)if(!D(d,c[g])){d.push(c[g]);f++}d=f==c.length;a.className=b.join(" ");return d};var Fb="A",Gb="B",Hb="I",Ib="Q",Jb="S",Kb="U";var Lb=function(a){return a?new K(L(a)):Cb||(Cb=new K)},Nb=function(a,b){Ia(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in Mb)a.setAttribute(Mb[d],c);else a[d]=c})},Mb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"},Ob=function(a){a=!I&&a.compatMode=="CSS1Compat"?a.documentElement:a.body;
    return new E(a.scrollLeft,a.scrollTop)},Pb=function(a){if(a.parentWindow)return a.parentWindow;if(I&&!J("500")&&!pb){var b=a.createElement("script");b.innerHTML="document.parentWindow=window";var c=a.documentElement;c.appendChild(b);c.removeChild(b);return a.parentWindow}return a.defaultView},Rb=function(){return Qb(document,arguments)},Qb=function(a,b){var c=b[0],d=b[1];if(H&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ua(d.name),'"');if(d.type){c.push(' type="',Ua(d.type),'"');d=ka(d);
    delete d.type}c.push(">");c=c.join("")}var f=a.createElement(c);if(d)if(u(d))f.className=d;else Nb(f,d);if(b.length>2){function g(i){if(i)f.appendChild(u(i)?a.createTextNode(i):i)}for(d=2;d<b.length;d++){c=b[d];ea(c)&&!(ga(c)&&c.nodeType>0)?Ba(Sb(c)?Ea(c):c,g):g(c)}}return f},Tb=function(a,b){a.appendChild(b)},Vb=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},M=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):j},Wb=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},Xb=
      

  5.   

    I&&J("522"),Yb=function(a,b){if(typeof a.contains!="undefined"&&!Xb&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},L=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},N=function(a){return a=I?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document},Zb=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&
    a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{Vb(a);var c=L(a);a.appendChild(c.createTextNode(b))}},$b={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ac={IMG:" ",BR:"\n"},cc=function(a){if(H&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];bc(a,b,h);a=b.join("")}a=a.replace(/\xAD/g,"");a=a.replace(/ +/g," ");if(a!=" ")a=a.replace(/^\s*/,"");return a},bc=function(a,b,c){if(!(a.nodeName in $b))if(a.nodeType==3)c?
    b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in ac)b.push(ac[a.nodeName]);else for(a=a.firstChild;a;){bc(a,b,c);a=a.nextSibling}},Sb=function(a){if(a&&typeof a.length=="number")if(ga(a))return typeof a.item=="function"||typeof a.item=="string";else if(fa(a))return typeof a.item=="function";return k},K=function(a){this.Ea=a||q.document||document};m=K.prototype;m.F=function(){return this.Ea};m.o=function(a){return u(a)?this.Ea.getElementById(a):a};
    m.Ge=K.prototype.o;
    m.Nd=function(a,b,c){var d=this.Ea;b=b;c=c||d;a=a&&a!="*"?a.toLowerCase():"";if(c.querySelectorAll&&(a||b)&&(!I||d.compatMode=="CSS1Compat"||J("528"))){b=a+(b?"."+b:"");b=c.querySelectorAll(b)}else if(b&&c.getElementsByClassName){d=c.getElementsByClassName(b);if(a){c={};for(var f=0,g=0,i;i=d[g];g++)if(a==i.nodeName.toLowerCase())c[f++]=i;c.length=f;b=c}else b=d}else{d=c.getElementsByTagName(a||"*");if(b){c={};for(g=f=0;i=d[g];g++){a=i.className;if(typeof a.split=="function"&&D(a.split(" "),b))c[f++]=
    i}c.length=f;b=c}else b=d}return b};m.t=function(){return Qb(this.Ea,arguments)};m.createElement=function(a){return this.Ea.createElement(a)};m.createTextNode=function(a){return this.Ea.createTextNode(a)};m.fe=function(){return this.Ea.compatMode=="CSS1Compat"};m.Md=function(){return Ob(this.Ea)};m.appendChild=Tb;m.dd=Vb;m.removeNode=M;m.replaceNode=Wb;m.contains=Yb;m.lc=Zb;var dc=function(a,b){this.type=a;this.currentTarget=this.target=b};w(dc,B);m=dc.prototype;m.s=function(){delete this.type;delete this.target;delete this.currentTarget};m.Ja=k;m.ob=h;m.stopPropagation=function(){this.Ja=h};m.preventDefault=function(){this.ob=k};var O=function(a,b){a&&this.fc(a,b)};w(O,dc);m=O.prototype;m.target=j;m.relatedTarget=j;m.offsetX=0;m.offsetY=0;m.clientX=0;m.clientY=0;m.screenX=0;m.screenY=0;m.button=0;m.keyCode=0;m.charCode=0;m.ctrlKey=k;m.altKey=k;m.shiftKey=k;m.metaKey=k;m.$a=j;
    m.fc=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(ob)try{b=b.nodeName&&b}catch(d){}}else if(c=="mouseover")b=a.fromElement;else if(c=="mouseout")b=a.toElement;this.relatedTarget=b;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=
    a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.$a=a;delete this.ob;delete this.Ja};m.stopPropagation=function(){this.Ja=h;if(this.$a.stopPropagation)this.$a.stopPropagation();else this.$a.cancelBubble=h};var ec=H&&!J("8");
    O.prototype.preventDefault=function(){this.ob=k;var a=this.$a;if(a.preventDefault)a.preventDefault();else{a.returnValue=k;if(ec)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};O.prototype.s=function(){O.p.s.call(this);this.relatedTarget=this.currentTarget=this.target=this.$a=j};var P=function(a,b){this.ke=b;this.Qa=[];this.Ue(a)};w(P,B);m=P.prototype;m.Ac=j;m.Gd=j;m.Jb=function(a){this.Ac=a};m.bb=function(){if(this.Qa.length)return this.Qa.pop();return this.Cd()};m.mb=function(a){this.Qa.length<this.ke?this.Qa.push(a):this.Fd(a)};m.Ue=function(a){if(a>this.ke)e(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.Qa.push(this.Cd())};m.Cd=function(){return this.Ac?this.Ac():{}};
    m.Fd=function(a){if(this.Gd)this.Gd(a);else if(fa(a.n))a.n();else for(var b in a)delete a[b]};m.s=function(){P.p.s.call(this);for(var a=this.Qa;a.length;)this.Fd(a.pop());delete this.Qa};var fc,gc,hc="ScriptEngine"in q;gc=(fc=hc&&q.ScriptEngine()=="JScript")?q.ScriptEngineMajorVersion()+"."+q.ScriptEngineMinorVersion()+"."+q.ScriptEngineBuildVersion():"0";var ic=fc,jc=gc;var kc=function(){},lc=0;m=kc.prototype;m.sa=0;m.nb=k;m.yd=k;m.fc=function(a,b,c,d,f,g){if(fa(a))this.ge=h;else if(a&&a.handleEvent&&fa(a.handleEvent))this.ge=k;else e(Error("Invalid listener argument"));this.Cb=a;this.re=b;this.src=c;this.type=d;this.Tb=!!f;this.Oc=g;this.yd=k;this.sa=++lc;this.nb=k};m.handleEvent=function(a){if(this.ge)return this.Cb.call(this.Oc||this.src,a);return this.Cb.handleEvent.call(this.Cb,a)};var mc,nc,oc,pc,qc,rc,sc,tc,uc,vc,wc;
    (function(){function a(){return{h:0,da:0}}function b(){return[]}function c(){var p=function(Ca){return i.call(p.src,p.sa,Ca)};return p}function d(){return new kc}function f(){return new O}var g=ic&&!($a(jc,"5.7")>=0),i;rc=function(p){i=p};if(g){mc=function(){return l.bb()};nc=function(p){l.mb(p)};oc=function(){return n.bb()};pc=function(p){n.mb(p)};qc=function(){return r.bb()};sc=function(){r.mb(c
      

  6.   

    ())};tc=function(){return o.bb()};uc=function(p){o.mb(p)};vc=function(){return A.bb()};wc=function(p){A.mb(p)};
    var l=new P(0,600);l.Jb(a);var n=new P(0,600);n.Jb(b);var r=new P(0,600);r.Jb(c);var o=new P(0,600);o.Jb(d);var A=new P(0,600);A.Jb(f)}else{mc=a;nc=ca;oc=b;pc=ca;qc=c;sc=ca;tc=d;uc=ca;vc=f;wc=ca}})();var xc={},Q={},R={},yc="on",zc={},Ac=function(a,b,c,d,f){if(b)if(t(b)){for(var g=0;g<b.length;g++)Ac(a,b[g],c,d,f);return j}else{d=!!d;var i=Q;b in i||(i[b]=mc());i=i[b];if(!(d in i)){i[d]=mc();i.h++}i=i[d];var l=ja(a),n;i.da++;if(i[l]){n=i[l];for(g=0;g<n.length;g++){i=n[g];if(i.Cb==c&&i.Oc==f){if(i.nb)break;return n[g].sa}}}else{n=i[l]=oc();i.h++}g=qc();g.src=a;i=tc();i.fc(c,g,a,b,d,f);c=i.sa;g.sa=c;n.push(i);xc[c]=i;R[l]||(R[l]=oc());R[l].push(i);if(a.addEventListener){if(a==q||!a.Dd)a.addEventListener(b,
    g,d)}else a.attachEvent(Bc(b),g);return c}else e(Error("Invalid event type"))},Cc=function(a,b,c,d,f){if(t(b)){for(var g=0;g<b.length;g++)Cc(a,b[g],c,d,f);return j}d=!!d;a:{g=Q;if(b in g){g=g[b];if(d in g){g=g[d];a=ja(a);if(g[a]){a=g[a];break a}}}a=j}if(!a)return k;for(g=0;g<a.length;g++)if(a[g].Cb==c&&a[g].Tb==d&&a[g].Oc==f)return Dc(a[g].sa);return k},Dc=function(a){if(!xc[a])return k;var b=xc[a];if(b.nb)return k;var c=b.src,d=b.type,f=b.re,g=b.Tb;if(c.removeEventListener){if(c==q||!c.Dd)c.removeEventListener(d,
    f,g)}else c.detachEvent&&c.detachEvent(Bc(d),f);c=ja(c);f=Q[d][g][c];if(R[c]){var i=R[c];Da(i,b);i.length==0&&delete R[c]}b.nb=h;f.ne=h;Ec(d,g,c,f);delete xc[a];return h},Ec=function(a,b,c,d){if(!d.hc)if(d.ne){for(var f=0,g=0;f<d.length;f++)if(d[f].nb){var i=d[f].re;i.src=j;sc(i);uc(d[f])}else{if(f!=g)d[g]=d[f];g++}d.length=g;d.ne=k;if(g==0){pc(d);delete Q[a][b][c];Q[a][b].h--;if(Q[a][b].h==0){nc(Q[a][b]);delete Q[a][b];Q[a].h--}if(Q[a].h==0){nc(Q[a]);delete Q[a]}}}},Fc=function(a,b,c){var d=0,f=