rlm@3: /** rlm@3: * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ rlm@3: * rlm@3: * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: rlm@3: * http://www.opensource.org/licenses/mit-license.php rlm@3: * rlm@3: * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for rlm@3: * legal reasons. rlm@3: */ rlm@3: if(typeof deconcept=="undefined"){var deconcept=new Object();} rlm@3: if(typeof deconcept.util=="undefined"){deconcept.util=new Object();} rlm@3: if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();} rlm@3: deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;} rlm@3: this.DETECT_KEY=_b?_b:"detectflash"; rlm@3: this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY); rlm@3: this.params=new Object(); rlm@3: this.variables=new Object(); rlm@3: this.attributes=new Array(); rlm@3: if(_1){this.setAttribute("swf",_1);} rlm@3: if(id){this.setAttribute("id",id);} rlm@3: if(w){this.setAttribute("width",w);} rlm@3: if(h){this.setAttribute("height",h);} rlm@3: if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));} rlm@3: this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(); rlm@3: if(c){this.addParam("bgcolor",c);} rlm@3: var q=_8?_8:"high"; rlm@3: this.addParam("quality",q); rlm@3: this.setAttribute("useExpressInstall",_7); rlm@3: this.setAttribute("doExpressInstall",false); rlm@3: var _d=(_9)?_9:window.location; rlm@3: this.setAttribute("xiRedirectUrl",_d); rlm@3: this.setAttribute("redirectUrl",""); rlm@3: if(_a){this.setAttribute("redirectUrl",_a);}}; rlm@3: deconcept.SWFObject.prototype={setAttribute:function(_e,_f){ rlm@3: this.attributes[_e]=_f; rlm@3: },getAttribute:function(_10){ rlm@3: return this.attributes[_10]; rlm@3: },addParam:function(_11,_12){ rlm@3: this.params[_11]=_12; rlm@3: },getParams:function(){ rlm@3: return this.params; rlm@3: },addVariable:function(_13,_14){ rlm@3: this.variables[_13]=_14; rlm@3: },getVariable:function(_15){ rlm@3: return this.variables[_15]; rlm@3: },getVariables:function(){ rlm@3: return this.variables; rlm@3: },getVariablePairs:function(){ rlm@3: var _16=new Array(); rlm@3: var key; rlm@3: var _18=this.getVariables(); rlm@3: for(key in _18){_16.push(key+"="+_18[key]);} rlm@3: return _16;},getSWFHTML:function(){var _19=""; rlm@3: if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){ rlm@3: if(this.getAttribute("doExpressInstall")){ rlm@3: this.addVariable("MMplayerType","PlugIn");} rlm@3: _19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>"; rlm@3: }else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");} rlm@3: _19=""; rlm@3: _19+=""; rlm@3: var _1d=this.getParams(); rlm@3: for(var key in _1d){_19+="";} rlm@3: var _1f=this.getVariablePairs().join("&"); rlm@3: if(_1f.length>0){_19+="";}_19+="";} rlm@3: return _19; rlm@3: },write:function(_20){ rlm@3: if(this.getAttribute("useExpressInstall")){ rlm@3: var _21=new deconcept.PlayerVersion([6,0,65]); rlm@3: if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){ rlm@3: this.setAttribute("doExpressInstall",true); rlm@3: this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl"))); rlm@3: document.title=document.title.slice(0,47)+" - Flash Player Installation"; rlm@3: this.addVariable("MMdoctitle",document.title);}} rlm@3: if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){ rlm@3: var n=(typeof _20=="string")?document.getElementById(_20):_20; rlm@3: n.innerHTML=this.getSWFHTML();return true; rlm@3: }else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}} rlm@3: return false;}}; rlm@3: deconcept.SWFObjectUtil.getPlayerVersion=function(){ rlm@3: var _23=new deconcept.PlayerVersion([0,0,0]); rlm@3: if(navigator.plugins&&navigator.mimeTypes.length){ rlm@3: var x=navigator.plugins["Shockwave Flash"]; rlm@3: if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));} rlm@3: }else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");} rlm@3: catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); rlm@3: _23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";} rlm@3: catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");} rlm@3: catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}} rlm@3: return _23;}; rlm@3: deconcept.PlayerVersion=function(_27){ rlm@3: this.major=_27[0]!=null?parseInt(_27[0]):0; rlm@3: this.minor=_27[1]!=null?parseInt(_27[1]):0; rlm@3: this.rev=_27[2]!=null?parseInt(_27[2]):0; rlm@3: }; rlm@3: deconcept.PlayerVersion.prototype.versionIsValid=function(fv){ rlm@3: if(this.majorfv.major){return true;} rlm@3: if(this.minorfv.minor){return true;} rlm@3: if(this.rev