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(swf,id,w,h,ver,c,useexpressinstall,quality,xiredirecturl,redirecturl,detectkey){ if(!document.createelement||!document.getelementbyid)return; this.detect_key=detectkey?detectkey:'detectflash'; this.skipdetect=com.deconcept.util.getrequestparameter(this.detect_key); this.params=new object(); this.variables=new object(); this.attributes=new array(); this.useexpressinstall=useexpressinstall; if(swf)this.setattribute('swf',swf); if(id)this.setattribute('id',id); if(w)this.setattribute('width',w); if(h)this.setattribute('height',h); if(ver)this.setattribute('version',new com.deconcept.playerversion(ver.tostring().split("."))); this.installedver=com.deconcept.flashobjectutil.getplayerversion(this.getattribute('version'),useexpressinstall); if(c)this.addparam('bgcolor',c); var q=quality?quality:'high'; this.addparam('quality',q); var xir=(xiredirecturl)?xiredirecturl:window.location; this.setattribute('xiredirecturl',xir); this.setattribute('redirecturl',''); if(redirecturl)this.setattribute('redirecturl',redirecturl)}; com.deconcept.flashobject.prototype={ setattribute:function(name,value){this.attributes[name]=value}, getattribute:function(name){return this.attributes[name]}, addparam:function(name,value){this.params[name]=value}, getparams:function(){return this.params}, addvariable:function(name,value){this.variables[name]=value}, getvariable:function(name){return this.variables[name]}, getvariables:function(){return this.variables}, createparamtag:function(n,v){ var p=document.createelement('param'); p.setattribute('name',n); p.setattribute('value',v);return p }, getvariablepairs:function(){ var variablepairs=new array(); var key; var variables=this.getvariables(); for(key in variables){variablepairs.push(key+"="+variables[key])} return variablepairs }, getflashhtml:function(){ var flashnode=""; if(navigator.plugins&&navigator.mimetypes&&navigator.mimetypes.length){ if(this.getattribute("doexpressinstall"))this.addvariable("mmplayertype","plugin"); flashnode='0){flashnode+='flashvars="'+pairs+'"'} flashnode+='/>' }else{ if(this.getattribute("doexpressinstall"))this.addvariable("mmplayertype","activex"); flashnode=''; flashnode+='';var params=this.getparams(); for(var key in params){flashnode+=''} var pairs=this.getvariablepairs().join("&"); if(pairs.length>0){flashnode+=''} flashnode+="" } return flashnode }, write:function(elementid){ if(this.useexpressinstall){ var expressinstallreqver=new com.deconcept.playerversion([6,0,65]); if(this.installedver.versionisvalid(expressinstallreqver)&&!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 n=(typeof elementid=='string')?document.getelementbyid(elementid):elementid;n.innerhtml=this.getflashhtml() }else{ if(this.getattribute('redirecturl')!=""){ document.location.replace(this.getattribute('redirecturl')) } } } }; com.deconcept.flashobjectutil.getplayerversion=function(reqver,xiinstall){ var playerversion=new com.deconcept.playerversion(0,0,0); if(navigator.plugins&&navigator.mimetypes.length){ var x=navigator.plugins["shockwave flash"]; if(x&&x.description){ playerversion=new com.deconcept.playerversion(x.description.replace(/([a-z]|[a-z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")) } }else{ try{ var axo=new activexobject("shockwaveflash.shockwaveflash"); for(var i=3;axo!=null;i++){ axo=new activexobject("shockwaveflash.shockwaveflash."+i); playerversion=new com.deconcept.playerversion([i,0,0]) } }catch(e){ } if(reqver&&playerversion.major>reqver.major)return playerversion; if(!reqver||((reqver.minor!=0||reqver.rev!=0)&&playerversion.major==reqver.major)||playerversion.major!=6||xiinstall){ try{ playerversion=new com.deconcept.playerversion(axo.getvariable("$version").split(" ")[1].split(",")) }catch(e){ } } } return playerversion }; com.deconcept.playerversion=function(arrversion){ this.major=parseint(arrversion[0])||0; this.minor=parseint(arrversion[1])||0; this.rev=parseint(arrversion[2])||0}; com.deconcept.playerversion.prototype.versionisvalid=function(fv){ if(this.majorfv.major)return true; if(this.minorfv.minor)return true; if(this.rev-1)?q.indexof("&",startindex):q.length; if(q.length>1&&startindex>-1){return q.substring(q.indexof("=",startindex)+1,endindex)} } return"" } }; if(array.prototype.push==null){array.prototype.push=function(item){this[this.length]=item;return this.length}} var getqueryparamvalue=com.deconcept.util.getrequestparameter; var focusflash=com.deconcept.flashobject;