if(typeof com=="undefined"){var com=new Object()}if(typeof com.deconcept=="undefined"){com.deconcept=new Object()}if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object()}if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object()}com.deconcept.FlashObject=function(a,m,o,l,b,k,d,e,f,g,i){if(!document.createElement||!document.getElementById){return}this.DETECT_KEY=i?i:"detectflash";this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();this.useExpressInstall=d;if(a){this.setAttribute("swf",a)}if(m){this.setAttribute("id",m)}if(o){this.setAttribute("width",o)}if(l){this.setAttribute("height",l)}if(b){this.setAttribute("version",new com.deconcept.PlayerVersion(b.toString().split(".")))}this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),d);if(k){this.addParam("bgcolor",k)}var n=e?e:"high";this.addParam("quality",n);var j=(f)?f:window.location;this.setAttribute("xiRedirectUrl",j);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(a,c){var b=document.createElement("param");b.setAttribute("name",a);b.setAttribute("value",c);return b},getVariablePairs:function(){var a=new Array();var c;var b=this.getVariables();for(c in b){a.push(c+"="+b[c])}return a},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 b=this.getParams();for(var f in b){a+=[f]+'="'+b[f]+'" '}var c=this.getVariablePairs().join("&");if(c.length>0){a+='flashvars="'+c+'"'}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 d=this.getParams();for(var f in d){a+='<param name="'+f+'" value="'+d[f]+'" />'}var e=this.getVariablePairs().join("&");if(e.length>0){a+='<param name="flashvars" value="'+e+'" />'}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 d=(typeof a=="string")?document.getElementById(a):a;d.innerHTML=this.getFlashHTML()}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}else{var d=(typeof a=="string")?document.getElementById(a):a;var c=d.getElementsByTagName("img");if(c!=null&&c.length>0){c[0].style.visibility="visible"}}}}};com.deconcept.FlashObjectUtil.getPlayerVersion=function(a,b){var c=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var h=navigator.plugins["Shockwave Flash"];if(h&&h.description){c=new com.deconcept.PlayerVersion(h.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var g=3;d!=null;g++){d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+g);c=new com.deconcept.PlayerVersion([g,0,0])}}catch(f){}if(a&&c.major>a.major){return c}if(!a||((a.minor!=0||a.rev!=0)&&c.major==a.major)||c.major!=6||b){try{c=new com.deconcept.PlayerVersion(d.GetVariable("$version").split(" ")[1].split(","))}catch(f){}}}return c};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(a){var d=document.location.search||document.location.hash;if(d){var b=d.indexOf(a+"=");var c=(d.indexOf("&",b)>-1)?d.indexOf("&",b):d.length;if(d.length>1&&b>-1){return d.substring(d.indexOf("=",b)+1,c)}}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;var FlashObject=com.deconcept.FlashObject;
