//>>built
define("dojox/flash/_base",["dojo","dijit","dojox","dojo/require!dojo/window"],function(f,l,d){f.provide("dojox.flash._base");f.experimental("dojox.flash");f.require("dojo.window");d.flash={ready:!1,url:null,_visible:!0,_loadedListeners:[],_installingListeners:[],setSwf:function(a,b){this.url=a;this._visible=!0;null!==b&&void 0!==b&&(this._visible=b);this._initialize()},addLoadedListener:function(a){this._loadedListeners.push(a)},addInstallingListener:function(a){this._installingListeners.push(a)},
loaded:function(){d.flash.ready=!0;if(d.flash._loadedListeners.length)for(var a=0;a<d.flash._loadedListeners.length;a++)d.flash._loadedListeners[a].call(null)},installing:function(){if(d.flash._installingListeners.length)for(var a=0;a<d.flash._installingListeners.length;a++)d.flash._installingListeners[a].call(null)},_initialize:function(){var a=new d.flash.Install;d.flash.installer=a;a.needed()?a.install():(d.flash.obj=new d.flash.Embed(this._visible),d.flash.obj.write(),d.flash.comm=new d.flash.Communicator)}};
d.flash.Info=function(){this._detectVersion()};d.flash.Info.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:!1,installing:!1,isVersionOrAbove:function(a,b,c){c=parseFloat("."+c);return this.versionMajor>=a&&this.versionMinor>=b&&this.versionRevision>=c?!0:!1},_detectVersion:function(){for(var a,b=25;0<b;b--){if(f.isIE){var c;try{c=6<b?new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b):new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),"object"==typeof c&&(6==b&&
(c.AllowScriptAccess="always"),a=c.GetVariable("$version"))}catch(e){continue}}else a=this._JSFlashInfo(b);if(-1==a){this.capable=!1;break}else if(0!=a){a=f.isIE?a.split(" ")[1].split(","):a.split(".");this.versionMajor=a[0];this.versionMinor=a[1];this.versionRevision=a[2];this.version=parseFloat(this.versionMajor+"."+this.versionRevision);this.capable=!0;break}}},_JSFlashInfo:function(a){if(null!=navigator.plugins&&0<navigator.plugins.length&&(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"])){var b=
navigator.plugins["Shockwave Flash"+(navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"")].description.split(" "),c=b[2].split(".");a=c[0];c=c[1];b=(b[3]||b[4]).split("r");return a+"."+c+"."+(0<b[1]?b[1]:0)}return-1}};d.flash.Embed=function(a){this._visible=a};d.flash.Embed.prototype={width:215,height:138,id:"flashObject",_visible:!0,protocol:function(){switch(window.location.protocol){case "https:":return"https";default:return"http"}},write:function(a){var b,c=d.flash.url,e=c,g=f.baseUrl,h=document.location.protocol+
"//"+document.location.host;if(a){a=escape(window.location);document.title=document.title.slice(0,47)+" - Flash Player Installation";var k=escape(document.title),e=e+("?MMredirectURL\x3d"+a+"\x26MMplayerType\x3dActiveX\x26MMdoctitle\x3d"+k+"\x26baseUrl\x3d"+escape(g)+"\x26xdomain\x3d"+escape(h)),c=c+("?MMredirectURL\x3d"+a+"\x26MMplayerType\x3dPlugIn\x26baseUrl\x3d"+escape(g)+"\x26xdomain\x3d"+escape(h))}else e+="?cachebust\x3d"+(new Date).getTime(),e+="\x26baseUrl\x3d"+escape(g),e+="\x26xdomain\x3d"+
escape(h);c=-1==c.indexOf("?")?c+("?baseUrl\x3d"+escape(g)):c+("\x26baseUrl\x3d"+escape(g));c+="\x26xdomain\x3d"+escape(h);b='\x3cobject classid\x3d"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase\x3d"'+this.protocol()+'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version\x3d8,0,0,0"\n width\x3d"'+this.width+'"\n height\x3d"'+this.height+'"\n id\x3d"'+this.id+'"\n name\x3d"'+this.id+'"\n align\x3d"middle"\x3e\n \x3cparam name\x3d"allowScriptAccess" value\x3d"always"\x3e\x3c/param\x3e\n \x3cparam name\x3d"movie" value\x3d"'+
e+'"\x3e\x3c/param\x3e\n \x3cparam name\x3d"quality" value\x3d"high"\x3e\x3c/param\x3e\n \x3cparam name\x3d"bgcolor" value\x3d"#ffffff"\x3e\x3c/param\x3e\n \x3cembed src\x3d"'+c+'" quality\x3d"high" bgcolor\x3d"#ffffff" width\x3d"'+this.width+'" height\x3d"'+this.height+'" id\x3d"'+this.id+'Embed" name\x3d"'+this.id+'" swLiveConnect\x3d"true" align\x3d"middle" allowScriptAccess\x3d"always" type\x3d"application/x-shockwave-flash" pluginspage\x3d"'+this.protocol()+'://www.macromedia.com/go/getflashplayer" \x3e\x3c/embed\x3e\n\x3c/object\x3e\n';
f.connect(f,"loaded",f.hitch(this,function(){if(!f.byId(this.id+"Container")){var a=document.createElement("div");a.id=this.id+"Container";a.style.width=this.width+"px";a.style.height=this.height+"px";this._visible||(a.style.position="absolute",a.style.zIndex="10000",a.style.top="-1000px");a.innerHTML=b;var c=document.getElementsByTagName("body");if(!c||!c.length)throw Error("No body tag for this page");c=c[0];c.appendChild(a)}}))},get:function(){return f.isIE||f.isWebKit?f.byId(this.id):document[this.id+
"Embed"]},setVisible:function(a){var b=f.byId(this.id+"Container");a?(b.style.position="absolute",b.style.visibility="visible"):(b.style.position="absolute",b.style.y="-1000px",b.style.visibility="hidden")},center:function(){var a=this.width,b=this.height,c=f.window.getBox(),a=c.l+(c.w-a)/2,b=c.t+(c.h-b)/2,c=f.byId(this.id+"Container");c.style.top=b+"px";c.style.left=a+"px"}};d.flash.Communicator=function(){};d.flash.Communicator.prototype={_addExternalInterfaceCallback:function(a){var b=f.hitch(this,
function(){for(var c=Array(arguments.length),b=0;b<arguments.length;b++)c[b]=this._encodeData(arguments[b]);c=this._execFlash(a,c);return c=this._decodeData(c)});this[a]=b},_encodeData:function(a){if(!a||"string"!=typeof a)return a;a=a.replace("\\","\x26custom_backslash;");return a=a.replace(/\0/g,"\x26custom_null;")},_decodeData:function(a){a&&a.length&&"string"!=typeof a&&(a=a[0]);if(!a||"string"!=typeof a)return a;a=a.replace(/\&custom_null\;/g,"\x00");return a=a.replace(/\&custom_lt\;/g,"\x3c").replace(/\&custom_gt\;/g,
"\x3e").replace(/\&custom_backslash\;/g,"\\")},_execFlash:function(a,b){var c=d.flash.obj.get();b=b?b:[];for(var e=0;e<b;e++)"string"==typeof b[e]&&(b[e]=this._encodeData(b[e]));e=function(){return eval(c.CallFunction('\x3cinvoke name\x3d"'+a+'" returntype\x3d"javascript"\x3e'+__flash__argumentsToXML(b,0)+"\x3c/invoke\x3e"))}.call(b);"string"==typeof e&&(e=this._decodeData(e));return e}};d.flash.Install=function(){};d.flash.Install.prototype={needed:function(){return d.flash.info.capable&&d.flash.info.isVersionOrAbove(8,
0,0)?!1:!0},install:function(){var a;d.flash.info.installing=!0;d.flash.installing();0==d.flash.info.capable?(a=new d.flash.Embed(!1),a.write()):d.flash.info.isVersionOrAbove(6,0,65)?(a=new d.flash.Embed(!1),a.write(!0),a.setVisible(!0),a.center()):(alert("This content requires a more recent version of the Macromedia  Flash Player."),window.location.href=+d.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer")},_onInstallStatus:function(a){"Download.Complete"==a?d.flash._initialize():
"Download.Cancelled"==a?(alert("This content requires a more recent version of the Macromedia  Flash Player."),window.location.href=d.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer"):"Download.Failed"==a&&alert("There was an error downloading the Flash Player update. Please try again later, or visit macromedia.com to download the latest version of the Flash plugin.")}};d.flash.info=new d.flash.Info});