﻿if(typeof com=="undefined")var com={};if(typeof com.deconcept=="undefined")com.deconcept={};if(typeof com.deconcept.util=="undefined")com.deconcept.util={};if(typeof com.deconcept.FlashObjectUtil=="undefined")com.deconcept.FlashObjectUtil={};com.deconcept.FlashObject=function(b,a,k,j,c,i,d,e,f,g,h){if(!document.createElement||!document.getElementById)return;this.DETECT_KEY=h?h:"detectflash";this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];this.useExpressInstall=d;if(b)this.setAttribute("swf",b);if(a)this.setAttribute("id",a);if(k)this.setAttribute("width",k);if(j)this.setAttribute("height",j);if(c)this.setAttribute("version",new com.deconcept.PlayerVersion(c.toString().split(".")));this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),d);if(i)this.addParam("bgcolor",i);var m=e?e:"high";this.addParam("quality",m);var l=f?f:window.location;this.setAttribute("xiRedirectUrl",l);this.setAttribute("redirectUrl","");if(g)this.setAttribute("redirectUrl",g)};com.deconcept.FlashObject.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},createParamTag:function(b,c){var a=document.createElement("param");a.setAttribute("name",b);a.setAttribute("value",c);return a},getVariablePairs:function(){var b=[],a,c=this.getVariables();for(a in c)b.push(a+"="+c[a]);return b},getFlashHTML:function(){var a="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall"))this.addVariable("MMplayerType","PlugIn");a='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';a+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var c=this.getParams();for(var b in c)a+=[b]+'="'+c[b]+'" ';var d=this.getVariablePairs().join("&");if(d.length>0)a+='flashvars="'+d+'"';a+="/>"}else{if(this.getAttribute("doExpressInstall"))this.addVariable("MMplayerType","ActiveX");a='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';a+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var e=this.getParams();for(var b in e)a+='<param name="'+b+'" value="'+e[b]+'" />';var f=this.getVariablePairs().join("&");if(f.length>0)a+='<param name="flashvars" value="'+f+'" />';a+="</object>"}return a},write:function(a){if(this.useExpressInstall){var b=new com.deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}else this.setAttribute("doExpressInstall",false);if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=typeof a=="string"?document.getElementById(a):a;c.innerHTML=this.getFlashHTML()}else if(this.getAttribute("redirectUrl")!="")document.location.replace(this.getAttribute("redirectUrl"))}};com.deconcept.FlashObjectUtil.getPlayerVersion=function(b,f){var a=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var e=navigator.plugins["Shockwave Flash"];if(e&&e.description)a=new com.deconcept.PlayerVersion(e.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var d=3;c!=null;d++){c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);a=new com.deconcept.PlayerVersion([d,0,0])}}catch(g){}if(b&&a.major>b.major)return a;if(!b||(b.minor!=0||b.rev!=0)&&a.major==b.major||a.major!=6||f)try{a=new com.deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}catch(g){}}return a};com.deconcept.PlayerVersion=function(a){this.major=parseInt(a[0])||0;this.minor=parseInt(a[1])||0;this.rev=parseInt(a[2])||0};com.deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major)return false;if(this.major>a.major)return true;if(this.minor<a.minor)return false;if(this.minor>a.minor)return true;if(this.rev<a.rev)return false;return true};com.deconcept.util={getRequestParameter:function(c){var a=document.location.search||document.location.hash;if(a){var b=a.indexOf(c+"="),d=a.indexOf("&",b)>-1?a.indexOf("&",b):a.length;if(a.length>1&&b>-1)return a.substring(a.indexOf("=",b)+1,d)}return ""},removeChildren:function(a){while(a.hasChildNodes())a.removeChild(a.firstChild)}};if(Array.prototype.push==null)Array.prototype.push=function(a){this[this.length]=a;return this.length};var getQueryParamValue=com.deconcept.util.getRequestParameter,FlashObject=com.deconcept.FlashObject