rushfee/classes/artifacts/rushfee_Web_exploded/www/lib/flash/swfobject.js

1 line
9.4 KiB
JavaScript
Raw Normal View History

2022-05-16 15:07:40 +00:00
var swfobject=function(){var $="undefined",p="object",T="Shockwave Flash",P="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",U="SWFObjectExprInst",u="onreadystatechange",I=window,g=document,n=navigator,O=false,N=[i],d=[],H=[],K=[],e,R,_,D,L=false,b=false,c,B,f=true,G=function(){var B=typeof g.getElementById!=$&&typeof g.getElementsByTagName!=$&&typeof g.createElement!=$,G=n.userAgent.toLowerCase(),E=n.platform.toLowerCase(),H=E?/win/.test(E):/win/.test(G),_=E?/mac/.test(E):/mac/.test(G),K=/webkit/.test(G)?parseFloat(G.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,F=!+"\v1",D=[0,0,0],C=null;if(typeof n.plugins!=$&&typeof n.plugins[T]==p){C=n.plugins[T].description;if(C&&!(typeof n.mimeTypes!=$&&n.mimeTypes[q]&&!n.mimeTypes[q].enabledPlugin)){O=true;F=false;C=C.replace(/^.*\s+(\S+\s+\S+$)/,"$1");D[0]=parseInt(C.replace(/^(.*)\..*$/,"$1"),10);D[1]=parseInt(C.replace(/^.*\.(.*)\s.*$/,"$1"),10);D[2]=/[a-zA-Z]/.test(C)?parseInt(C.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof I.ActiveXObject!=$){try{var A=new ActiveXObject(P);if(A){C=A.GetVariable("$version");if(C){F=true;C=C.split(" ")[1].split(",");D=[parseInt(C[0],10),parseInt(C[1],10),parseInt(C[2],10)]}}}catch(J){}}return{w3:B,pv:D,wk:K,ie:F,win:H,mac:_}}(),h=function(){if(!G.w3)return;if((typeof g.readyState!=$&&g.readyState=="complete")||(typeof g.readyState==$&&(g.getElementsByTagName("body")[0]||g.body)))V();if(!L){if(typeof g.addEventListener!=$)g.addEventListener("DOMContentLoaded",V,false);if(G.ie&&G.win){g.attachEvent(u,function(){if(g.readyState=="complete"){g.detachEvent(u,arguments.callee);V()}});if(I==top)(function(){if(L)return;try{g.documentElement.doScroll("left")}catch($){setTimeout(arguments.callee,0);return}V()})()}if(G.wk)(function(){if(L)return;if(!/loaded|complete/.test(g.readyState)){setTimeout(arguments.callee,0);return}V()})();o(V)}}();function V(){if(L)return;try{var B=g.getElementsByTagName("body")[0].appendChild(E("span"));B.parentNode.removeChild(B)}catch($){return}L=true;var A=N.length;for(var _=0;_<A;_++)N[_]()}function M($){if(L)$();else N[N.length]=$}function o(_){if(typeof I.addEventListener!=$)I.addEventListener("load",_,false);else if(typeof g.addEventListener!=$)g.addEventListener("load",_,false);else if(typeof I.attachEvent!=$)j(I,"onload",_);else if(typeof I.onload=="function"){var A=I.onload;I.onload=function(){A();_()}}else I.onload=_}function i(){if(O)Q();else J()}function Q(){var B=g.getElementsByTagName("body")[0],_=E(p);_.setAttribute("type",q);var C=B.appendChild(_);if(C){var A=0;(function(){if(typeof C.GetVariable!=$){var D=C.GetVariable("$version");if(D){D=D.split(" ")[1].split(",");G.pv=[parseInt(D[0],10),parseInt(D[1],10),parseInt(D[2],10)]}}else if(A<10){A++;setTimeout(arguments.callee,10);return}B.removeChild(_);C=null;J()})()}else J()}function J(){var H=d.length;if(H>0)for(var N=0;N<H;N++){var I=d[N].id,F=d[N].callbackFn,E={success:false,id:I};if(G.pv[0]>0){var L=a(I);if(L)if(A(d[N].swfVersion)&&!(G.wk&&G.wk<312)){k(I,true);if(F){E.success=true;E.ref=s(I);F(E)}}else if(d[N].expressInstall&&C()){var _={};_.data=d[N].expressInstall;_.width=L.getAttribute("width")||"0";_.height=L.getAttribute("height")||"0";if(L.getAttribute("class"))_.styleclass=L.getAttribute("class");if(L.getAttribute("align"))_.align=L.getAttribute("align");var J={},K=L.getElementsByTagName("param"),B=K.length;for(var D=0;D<B;D++)if(K[D].getAttribute("name").toLowerCase()!="movie")J[K[D].getAttribute("name")]=K[D].getAttribute("value");S(_,J,I,F)}else{r(L);if(F)F(E)}}else{k(I,true);if(F){var M=s(I);if(M&&typeof M.SetVariable!=$){E.success=true;E.ref=M}F(E)}}}}function s(_){var B=null,A=a(_);if(A&&A.nodeName=="OBJECT")if(typeof A.SetVariable!=$)B=A;else{var C=A.getElementsByTagName(p)[0];if(C)B=C}return B}function C(){return!b&&A("6.0.65")&&(G.win||G.mac)&&!(G.wk&&G.wk<312)}function S(C,F,J,L){b=true;_=L||null;D={success:false,id:J};var K=a(J);if(K){if(K.nodeName=="OBJECT"){e=W(K);R=null}else{e=K;R=J}C.id=U;if(typeof C.width==$||(!/%$/.test(C.width)&&parseInt(C.width,10)<310))C.width="310";if(typeof C.height==$||(!/%$/.te