/* Copyright 2014, KISSY v1.42 MIT Licensed build time: Feb 25 16:37 */ KISSY.add("swf/ua",[],function(g){function i(c){var h="string"===typeof c?c.match(/\d+/g).splice(0,3):c;g.isArray(h)&&(c=parseFloat(h[0]+"."+n(h[1],3)+n(h[2],5)));return c||0}function n(c,h){var c=(c||0)+"",g=h+1-c.length;return Array(0=i(c)}}}); KISSY.add("swf",["dom","json","attribute","swf/ua"],function(g,i){function n(a){var d=e;g.each(a,function(a,b){b=b.toLowerCase();b in A?d+=l(b,a):b===B&&(d+=l(b,r(a)))});return d}function k(a,d,c,b){var m=e,f=e;g.each(d,function(a,b){m+=" "+b+'="'+a+'"'});b?(m+=' classid="'+C+'"',f+=l("movie",a)):(m+=' data="'+a+'"',m+=' type="'+D+'"');f+=n(c);return s+t+m+u+f}function r(a){var d=[];g.each(a,function(a,b){"string"!==typeof a&&(a=z.stringify(a));a&&d.push(b+"="+E(a))});return d.join("&")}function l(a, d){return''}var c=i("dom"),z=i("json"),h=i("attribute"),w=i("swf/ua"),p=!!g.Env.host.ActiveXObject,D="application/x-shockwave-flash",C="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",B="flashvars",e="",s="<",u=">",F=g.Env.host.document,x=w.fpv,G=w.fpvGEQ,y=w.fpvGTE,t="object",E=encodeURIComponent,A={wmode:e,allowscriptaccess:e,allownetworking:e,allowfullscreen:e,play:"false",loop:e,menu:e,quality:e,scale:e,salign:e,bgcolor:e,devicefont:e,hasPriority:e,base:e, swliveconnect:e,seamlesstabbing:e},v;return v=h.extend({constructor:function(a){this.callSuper(a);var d=this.get("expressInstall"),j,b,e,a=this.get("htmlMode");b=this.get("params");var f=this.get("attrs"),h=this.get("document"),i=c.create("",void 0,h),l=this.get("elBefore"),o=this.get("src"),n=!("id"in f),q=this.get("version");e=f.id=f.id||g.guid("ks-swf-");n&&(j=RegExp("\\s+id\\s*=\\s*['\"]?"+g.escapeRegExp(e)+"['\"]?","i"));if(x()){if(q&&!y(q)&&(this.set("status",v.Status.TOO_LOW),d)){o=d; if(!("width"in f)||!/%$/.test(f.width)&&310>parseInt(f.width,10))f.width="310";if(!("height"in f)||!/%$/.test(f.height)&&137>parseInt(f.height,10))f.height="137";d=b.flashVars=b.flashVars||{};g.mix(d,{MMredirectURL:location.href,MMplayerType:p?"ActiveX":"PlugIn",MMdoctitle:h.title.slice(0,47)+" - Flash Player Installation"})}"full"===a?(p?(d=k(o,f,b,1),delete f.id,delete f.style,q=k(o,f,b,0)):(q=k(o,f,b,0),delete f.id,delete f.style,d=k(o,f,b,1)),b=d+q+s+"/"+t+u+s+"/"+t+u):b=k(o,f,b,p)+s+"/"+t+u; this.set("html",j?b.replace(j,""):b);l?c.insertBefore(i,l):c.append(i,this.get("render"));"outerHTML"in i?i.outerHTML=b:i.parentNode.replaceChild(c.create(b),i);j=c.get("#"+e,h);"full"===a?p?this.set("swfObject",j):this.set("swfObject",j.parentNode):this.set("swfObject",j);n&&c.removeAttr(j,"id");this.set("el",j);this.get("status")||this.set("status",v.Status.SUCCESS)}else this.set("status",v.Status.NOT_INSTALLED)},callSWF:function(a,d){var c=this.get("el"),b,d=d||[];try{c[a]&&(b=c[a].apply(c,d))}catch(e){b= "",0!==d.length&&(b='"'+d.join('", "')+'"'),b=(new Function("swf","return swf."+a+"("+b+");"))(c)}return b},destroy:function(){var a=this.get("swfObject");p?(a.style.display="none",function j(){if(4===a.readyState){for(var b in a)"function"===typeof a[b]&&(a[b]=null);a.parentNode.removeChild(a)}else setTimeout(j,10)}()):a.parentNode.removeChild(a)}},{ATTRS:{expressInstall:{value:g.config("base")+"swf/assets/expressInstall.swf"},src:{},version:{value:"9"},params:{value:{}},attrs:{value:{}},render:{setter:function(a){"string"=== typeof a&&(a=c.get(a,this.get("document")));return a},valueFn:function(){return document.body}},elBefore:{setter:function(a){"string"===typeof a&&(a=c.get(a,this.get("document")));return a}},document:{value:F},status:{},el:{},swfObject:{},html:{},htmlMode:{value:"default"}},getSrc:function(a){var d=a=c.get(a),e="",b,a=[],e=c.nodeName(d);if("object"===e){(e=c.attr(d,"data"))&&a.push(d);d=d.childNodes;for(e=0;e