if(typeof util=="undefined")util={};if(typeof SWFObjectUtil=="undefined")SWFObjectUtil={};SWFObject=function(flashFile,id,width,height,version,color,detect){if(!document.getElementById)return;this.DETECT_KEY=detect?detect:"detectflash";this.skipDetect=util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(flashFile)this.setAttribute("swf",flashFile);if(id)this.setAttribute("id",id);if(width)this.setAttribute("width",width);if(height)this.setAttribute("height",height);if(version)this.setAttribute("version",new PlayerVersion(version.toString().split(".")));this.installedVer=SWFObjectUtil.getPlayerVersion();if(color)this.addParam("bgcolor",color)};SWFObject.prototype={setAttribute:function(attr,value){this.attributes[attr]=value},getAttribute:function(value){return this.attributes[value]},addParam:function(param,value){this.params[param]=value},getParams:function(){return this.params},addVariable:function(variable,value){this.variables[variable]=value},getVariable:function(value){return this.variables[value]},getVariables:function(){return this.variables},getVariablePairs:function(){var arr=[],variables=this.getVariables();for(var i in variables)arr.push(i+"="+variables[i]);return arr},getSWFHTML:function(){var stringVersion="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall"))this.addVariable("MMplayerType","PlugIn");stringVersion='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';stringVersion+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var params=this.getParams();for(var i in params)stringVersion+=[i]+'="'+params[i]+'" ';var pairs=this.getVariablePairs().join("&");if(pairs.length>0)stringVersion+='flashvars="'+pairs+'"';stringVersion+="/>"}else{if(this.getAttribute("doExpressInstall"))this.addVariable("MMplayerType","ActiveX");stringVersion='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';stringVersion+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var _1d=this.getParams();for(var key in _1d)stringVersion+='<param name="'+key+'" value="'+_1d[key]+'" />';var _1f=this.getVariablePairs().join("&");if(_1f.length>0)stringVersion+='<param name="flashvars" value="'+_1f+'" />';stringVersion+="</object>"}return stringVersion},write:function(flash){if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=typeof flash=="string"?document.getElementById(flash):flash;n.innerHTML=this.getSWFHTML();return true}else{var imgPath=this.getVariable("imgPath"),imgURL=this.getVariable("imgURL");if(imgPath!=""){var flash=document.getElementById("flashcontent");flash.innerHTML="<a href='"+imgURL+"'><img border='0' src='"+imgPath+"'></a>";flash.style.display="block"}return false}return false}};SWFObjectUtil.getPlayerVersion=function(){var playVersion=new PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description)playVersion=new PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");playVersion=new PlayerVersion([6,0,21]);axo.AllowScriptAccess="always"}catch(e){if(playVersion.major==6)return playVersion}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(axo!=null)playVersion=new PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","))}return playVersion};PlayerVersion=function(ver){this.major=ver[0]!=null?parseInt(ver[0]):0;this.minor=ver[1]!=null?parseInt(ver[1]):0;this.rev=ver[2]!=null?parseInt(ver[2]):0};PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major)return false;if(this.major>fv.major)return true;if(this.minor<fv.minor)return false;if(this.minor>fv.minor)return true;if(this.rev<fv.rev)return false;return true};util={getRequestParameter:function(param){var q=document.location.search||document.location.hash;if(q){var split=q.substring(1).split("&");for(var i=0;i<split.length;i++)if(split[i].substring(0,split[i].indexOf("="))==param)return split[i].substring(split[i].indexOf("=")+1)}return ""}};SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all)return;var ob=document.getElementsByTagName("OBJECT");for(var i=0;i<ob.length;i++){ob[i].style.display="none";for(var x in ob[i])if(typeof ob[i][x]=="function")ob[i][x]=function(){}}};SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var windw=window.onunload;window.onunload=function(){SWFObjectUtil.cleanupSWFs();windw()}}else window.onunload=SWFObjectUtil.cleanupSWFs};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){SWFObjectUtil.prepUnload();oldBeforeUnload()}}else window.onbeforeunload=SWFObjectUtil.prepUnload;if(Array.prototype.push==null)Array.prototype.push=function(arr){this[this.length]=arr;return this.length};var SWFObject=SWFObject