swfobject - SWFObject v2.1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* SWFObject v2.1 <http://code.google.com/p/swfobject/> Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave- flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J, Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+ $)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\. .*$/,"$1"),10);AC[1]=parseInt(x.replace( /^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*) $/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t) {try{x=y.GetVariable("$version");if(x){x=x.split(" ") [1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t) {}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)? parseFloat(AD.replace(/^.*webkit\/(\d+ (\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test( r):/mac/.test(AD);[email protected]_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA {try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J) {Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)) {E()}},10)}if(typeof K.addEventListener!=b) {K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S() {if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e) {return }if(h.ie&h.win){var v=a("span");try{var u=K.getElementsByTagName("body") [0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z) {clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

swfobject - SWFObject v2.1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online