/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

(function(){
var _1=null;
if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){
var _2="",_3="",_4="",_5={},_6={};
_1=_1||djConfig.scopeMap;
for(var i=0;i<_1.length;i++){
var _7=_1[i];
_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";
_3+=(i==0?"":",")+_7[0];
_4+=(i==0?"":",")+_7[1];
_5[_7[0]]=_7[1];
_6[_7[1]]=_7[0];
}
eval(_2+"dojo._scopeArgs = ["+_4+"];");
dojo._scopePrefixArgs=_3;
dojo._scopePrefix="(function("+_3+"){";
dojo._scopeSuffix="})("+_4+")";
dojo._scopeMap=_5;
dojo._scopeMapRev=_6;
}
(function(){
if(typeof this["loadFirebugConsole"]=="function"){
this["loadFirebugConsole"]();
}else{
this.console=this.console||{};
var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];
var i=0,tn;
while((tn=cn[i++])){
if(!console[tn]){
(function(){
var _8=tn+"";
console[_8]=("log" in console)?function(){
var a=Array.apply({},arguments);
a.unshift(_8+":");
console["log"](a.join(" "));
}:function(){
};
console[_8]._fake=true;
})();
}
}
}
if(typeof dojo=="undefined"){
dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};
}
var d=dojo;
if(typeof dijit=="undefined"){
dijit={_scopeName:"dijit"};
}
if(typeof dojox=="undefined"){
dojox={_scopeName:"dojox"};
}
if(!d._scopeArgs){
d._scopeArgs=[dojo,dijit,dojox];
}
d.global=this;
d.config={isDebug:false,debugAtAllCosts:false};
if(typeof djConfig!="undefined"){
for(var _9 in djConfig){
d.config[_9]=djConfig[_9];
}
}
dojo.locale=d.config.locale;
var _a="$Rev: 441931 $".match(/\d+/);
dojo.version={major:88,minor:9,patch:463547,flag:"",revision:_a?+_a[0]:NaN,toString:function(){
with(d.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
if(typeof OpenAjax!="undefined"){
OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());
}
var _b,_c,_d={};
for(var i in {toString:1}){
_b=[];
break;
}
dojo._extraNames=_b=_b||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];
_c=_b.length;
dojo._mixin=function(_e,_f){
var _10,s,i;
for(_10 in _f){
s=_f[_10];
if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){
_e[_10]=s;
}
}
if(_c&&_f){
for(i=0;i<_c;++i){
_10=_b[i];
s=_f[_10];
if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){
_e[_10]=s;
}
}
}
return _e;
};
dojo.mixin=function(obj,_11){
if(!obj){
obj={};
}
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(obj,arguments[i]);
}
return obj;
};
dojo._getProp=function(_12,_13,_14){
var obj=_14||d.global;
for(var i=0,p;obj&&(p=_12[i]);i++){
if(i==0&&d._scopeMap[p]){
p=d._scopeMap[p];
}
obj=(p in obj?obj[p]:(_13?obj[p]={}:undefined));
}
return obj;
};
dojo.setObject=function(_15,_16,_17){
var _18=_15.split("."),p=_18.pop(),obj=d._getProp(_18,true,_17);
return obj&&p?(obj[p]=_16):undefined;
};
dojo.getObject=function(_19,_1a,_1b){
return d._getProp(_19.split("."),_1a,_1b);
};
dojo.exists=function(_1c,obj){
return !!d.getObject(_1c,false,obj);
};
dojo["eval"]=function(_1d){
return d.global.eval?d.global.eval(_1d):eval(_1d);
};
d.deprecated=d.experimental=function(){
};
})();
(function(){
var d=dojo;
d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_1e){
var mp=d._modulePrefixes;
return !!(mp[_1e]&&mp[_1e].value);
},_getModulePrefix:function(_1f){
var mp=d._modulePrefixes;
if(d._moduleHasPrefix(_1f)){
return mp[_1f].value;
}
return _1f;
},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});
dojo._loadPath=function(_20,_21,cb){
var uri=((_20.charAt(0)=="/"||_20.match(/^\w+:/))?"":d.baseUrl)+_20;
try{
return !_21?d._loadUri(uri,cb):d._loadUriAndCheck(uri,_21,cb);
}
catch(e){
console.error(e);
return false;
}
};
dojo._loadUri=function(uri,cb){
if(d._loadedUrls[uri]){
return true;
}
d._inFlightCount++;
var _22=d._getText(uri,true);
if(_22){
d._loadedUrls[uri]=true;
d._loadedUrls.push(uri);
if(cb){
_22="("+_22+")";
}else{
_22=d._scopePrefix+_22+d._scopeSuffix;
}
if(!d.isIE){
_22+="\r\n//@ sourceURL="+uri;
}
var _23=d["eval"](_22);
if(cb){
cb(_23);
}
}
if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){
setTimeout(function(){
if(d._inFlightCount==0){
d._callLoaded();
}
},0);
}
return !!_22;
};
dojo._loadUriAndCheck=function(uri,_24,cb){
var ok=false;
try{
ok=d._loadUri(uri,cb);
}
catch(e){
console.error("failed loading "+uri+" with error: "+e);
}
return !!(ok&&d._loadedModules[_24]);
};
dojo.loaded=function(){
d._loadNotifying=true;
d._postLoad=true;
var mll=d._loaders;
d._loaders=[];
for(var x=0;x<mll.length;x++){
mll[x]();
}
d._loadNotifying=false;
if(d._postLoad&&d._inFlightCount==0&&mll.length){
d._callLoaded();
}
};
dojo.unloaded=function(){
var mll=d._unloaders;
while(mll.length){
(mll.pop())();
}
};
d._onto=function(arr,obj,fn){
if(!fn){
arr.push(obj);
}else{
if(fn){
var _25=(typeof fn=="string")?obj[fn]:fn;
arr.push(function(){
_25.call(obj);
});
}
}
};
dojo.ready=dojo.addOnLoad=function(obj,_26){
d._onto(d._loaders,obj,_26);
if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){
d._callLoaded();
}
};
var dca=d.config.addOnLoad;
if(dca){
d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca);
}
dojo._modulesLoaded=function(){
if(d._postLoad){
return;
}
if(d._inFlightCount>0){
return;
}
d._callLoaded();
};
dojo._callLoaded=function(){
if(typeof setTimeout=="object"||(d.config.useXDomain&&d.isOpera)){
setTimeout(d.isAIR?function(){
d.loaded();
}:d._scopeName+".loaded();",0);
}else{
d.loaded();
}
};
dojo._getModuleSymbols=function(_27){
var _28=_27.split(".");
for(var i=_28.length;i>0;i--){
var _29=_28.slice(0,i).join(".");
if(i==1&&!d._moduleHasPrefix(_29)){
_28[0]="../"+_28[0];
}else{
var _2a=d._getModulePrefix(_29);
if(_2a!=_29){
_28.splice(0,i,_2a);
break;
}
}
}
return _28;
};
dojo._global_omit_module_check=false;
dojo.loadInit=function(_2b){
_2b();
};
dojo._loadModule=dojo.require=function(_2c,_2d){
_2d=d._global_omit_module_check||_2d;
var _2e=d._loadedModules[_2c];
if(_2e){
return _2e;
}
var _2f=d._getModuleSymbols(_2c).join("/")+".js";
var _30=!_2d?_2c:null;
var ok=d._loadPath(_2f,_30);
if(!ok&&!_2d){
throw new Error("Could not load '"+_2c+"'; last tried '"+_2f+"'");
}
if(!_2d&&!d._isXDomain){
_2e=d._loadedModules[_2c];
if(!_2e){
throw new Error("symbol '"+_2c+"' is not defined after loading '"+_2f+"'");
}
}
return _2e;
};
dojo.provide=function(_31){
_31=_31+"";
return (d._loadedModules[_31]=d.getObject(_31,true));
};
dojo.platformRequire=function(_32){
var _33=_32.common||[];
var _34=_33.concat(_32[d._name]||_32["default"]||[]);
for(var x=0;x<_34.length;x++){
var _35=_34[x];
if(_35.constructor==Array){
d._loadModule.apply(d,_35);
}else{
d._loadModule(_35);
}
}
};
dojo.requireIf=function(_36,_37){
if(_36===true){
var _38=[];
for(var i=1;i<arguments.length;i++){
_38.push(arguments[i]);
}
d.require.apply(d,_38);
}
};
dojo.requireAfterIf=d.requireIf;
dojo.registerModulePath=function(_39,_3a){
d._modulePrefixes[_39]={name:_39,value:_3a};
};
dojo.requireLocalization=function(_3b,_3c,_3d,_3e){
d.require("dojo.i18n");
d.i18n._requireLocalization.apply(d.hostenv,arguments);
};
var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");
dojo._Url=function(){
var n=null,_3f=arguments,uri=[_3f[0]];
for(var i=1;i<_3f.length;i++){
if(!_3f[i]){
continue;
}
var _40=new d._Url(_3f[i]+""),_41=new d._Url(uri[0]+"");
if(_40.path==""&&!_40.scheme&&!_40.authority&&!_40.query){
if(_40.fragment!=n){
_41.fragment=_40.fragment;
}
_40=_41;
}else{
if(!_40.scheme){
_40.scheme=_41.scheme;
if(!_40.authority){
_40.authority=_41.authority;
if(_40.path.charAt(0)!="/"){
var _42=_41.path.substring(0,_41.path.lastIndexOf("/")+1)+_40.path;
var _43=_42.split("/");
for(var j=0;j<_43.length;j++){
if(_43[j]=="."){
if(j==_43.length-1){
_43[j]="";
}else{
_43.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&_43[0]=="")&&_43[j]==".."&&_43[j-1]!=".."){
if(j==(_43.length-1)){
_43.splice(j,1);
_43[j-1]="";
}else{
_43.splice(j-1,2);
j-=2;
}
}
}
}
_40.path=_43.join("/");
}
}
}
}
uri=[];
if(_40.scheme){
uri.push(_40.scheme,":");
}
if(_40.authority){
uri.push("//",_40.authority);
}
uri.push(_40.path);
if(_40.query){
uri.push("?",_40.query);
}
if(_40.fragment){
uri.push("#",_40.fragment);
}
}
this.uri=uri.join("");
var r=this.uri.match(ore);
this.scheme=r[2]||(r[1]?"":n);
this.authority=r[4]||(r[3]?"":n);
this.path=r[5];
this.query=r[7]||(r[6]?"":n);
this.fragment=r[9]||(r[8]?"":n);
if(this.authority!=n){
r=this.authority.match(ire);
this.user=r[3]||n;
this.password=r[4]||n;
this.host=r[6]||r[7];
this.port=r[9]||n;
}
};
dojo._Url.prototype.toString=function(){
return this.uri;
};
dojo.moduleUrl=function(_44,url){
var loc=d._getModuleSymbols(_44).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _45=loc.indexOf(":");
if(loc.charAt(0)!="/"&&(_45==-1||_45>loc.indexOf("/"))){
loc=d.baseUrl+loc;
}
return new d._Url(loc,url);
};
})();
if(typeof window!="undefined"){
dojo.isBrowser=true;
dojo._name="browser";
(function(){
var d=dojo;
if(document&&document.getElementsByTagName){
var _46=document.getElementsByTagName("script");
var _47=/dojo(\.xd)?\.js(\W|$)/i;
for(var i=0;i<_46.length;i++){
var src=_46[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_47);
if(m){
if(!d.config.baseUrl){
d.config.baseUrl=src.substring(0,m.index);
}
var cfg=_46[i].getAttribute("djConfig");
if(cfg){
var _48=eval("({ "+cfg+" })");
for(var x in _48){
dojo.config[x]=_48[x];
}
}
break;
}
}
}
d.baseUrl=d.config.baseUrl;
var n=navigator;
var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);
if(dua.indexOf("Opera")>=0){
d.isOpera=tv;
}
if(dua.indexOf("AdobeAIR")>=0){
d.isAIR=1;
}
d.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:0;
d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;
d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;
d.isMac=dav.indexOf("Macintosh")>=0;
var _49=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);
if(_49&&!dojo.isChrome){
d.isSafari=parseFloat(dav.split("Version/")[1]);
if(!d.isSafari||parseFloat(dav.substr(_49+7))<=419.3){
d.isSafari=2;
}
}
if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){
d.isMozilla=d.isMoz=tv;
}
if(d.isMoz){
d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined;
}
if(document.all&&!d.isOpera){
d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;
var _4a=document.documentMode;
if(_4a&&_4a!=5&&Math.floor(d.isIE)!=_4a){
d.isIE=_4a;
}
}
if(dojo.isIE&&window.location.protocol==="file:"){
dojo.config.ieForceActiveXXhr=true;
}
d.isQuirks=document.compatMode=="BackCompat";
d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();
d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
d._xhrObj=function(){
var _4b,_4c;
if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){
try{
_4b=new XMLHttpRequest();
}
catch(e){
}
}
if(!_4b){
for(var i=0;i<3;++i){
var _4d=d._XMLHTTP_PROGIDS[i];
try{
_4b=new ActiveXObject(_4d);
}
catch(e){
_4c=e;
}
if(_4b){
d._XMLHTTP_PROGIDS=[_4d];
break;
}
}
}
if(!_4b){
throw new Error("XMLHTTP not available: "+_4c);
}
return _4b;
};
d._isDocumentOk=function(_4e){
var _4f=_4e.status||0,lp=location.protocol;
return (_4f>=200&&_4f<300)||_4f==304||_4f==1223||(!_4f&&(lp=="file:"||lp=="chrome:"||lp=="app:"));
};
var _50=window.location+"";
var _51=document.getElementsByTagName("base");
var _52=(_51&&_51.length>0);
d._getText=function(uri,_53){
var _54=d._xhrObj();
if(!_52&&dojo._Url){
uri=(new dojo._Url(_50,uri)).toString();
}
if(d.config.cacheBust){
uri+="";
uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");
}
_54.open("GET",uri,false);
try{
_54.send(null);
if(!d._isDocumentOk(_54)){
var err=Error("Unable to load "+uri+" status:"+_54.status);
err.status=_54.status;
err.responseText=_54.responseText;
throw err;
}
}
catch(e){
if(_53){
return null;
}
throw e;
}
return _54.responseText;
};
var _55=window;
var _56=function(_57,fp){
var _58=_55.attachEvent||_55.addEventListener;
_57=_55.attachEvent?_57:_57.substring(2);
_58(_57,function(){
fp.apply(_55,arguments);
},false);
};
d._windowUnloaders=[];
d.windowUnloaded=function(){
var mll=d._windowUnloaders;
while(mll.length){
(mll.pop())();
}
};
var _59=0;
d.addOnWindowUnload=function(obj,_5a){
d._onto(d._windowUnloaders,obj,_5a);
if(!_59){
_59=1;
_56("onunload",d.windowUnloaded);
}
};
var _5b=0;
d.addOnUnload=function(obj,_5c){
d._onto(d._unloaders,obj,_5c);
if(!_5b){
_5b=1;
_56("onbeforeunload",dojo.unloaded);
}
};
})();
dojo._initFired=false;
dojo._loadInit=function(e){
if(!dojo._initFired){
dojo._initFired=true;
if(!dojo.config.afterOnLoad&&window.detachEvent){
window.detachEvent("onload",dojo._loadInit);
}
if(dojo._inFlightCount==0){
dojo._modulesLoaded();
}
}
};
if(!dojo.config.afterOnLoad){
if(document.addEventListener){
document.addEventListener("DOMContentLoaded",dojo._loadInit,false);
window.addEventListener("load",dojo._loadInit,false);
}else{
if(window.attachEvent){
window.attachEvent("onload",dojo._loadInit);
}
}
}
if(dojo.isIE){
if(!dojo.config.afterOnLoad&&!dojo.config.skipIeDomLoaded){
document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");
}
try{
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
var _5d=["*","group","roundrect","oval","shape","rect","imagedata"],i=0,l=1,s=document.createStyleSheet();
if(dojo.isIE>=8){
i=1;
l=_5d.length;
}
for(;i<l;++i){
s.addRule("v\\:"+_5d[i],"behavior:url(#default#VML); display:inline-block");
}
}
catch(e){
}
}
}
(function(){
var mp=dojo.config["modulePaths"];
if(mp){
for(var _5e in mp){
dojo.registerModulePath(_5e,mp[_5e]);
}
}
})();
if(dojo.config.isDebug){
dojo.require("dojo._firebug.firebug");
}
if(dojo.config.debugAtAllCosts){
dojo.config.useXDomain=true;
dojo.require("dojo._base._loader.loader_xd");
dojo.require("dojo._base._loader.loader_debug");
}
if(!dojo._hasResource["dojo._base.lang"]){
dojo._hasResource["dojo._base.lang"]=true;
dojo.provide("dojo._base.lang");
(function(){
var d=dojo,_5f=Object.prototype.toString;
dojo.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.isArray=function(it){
return it&&(it instanceof Array||typeof it=="array");
};
dojo.isFunction=function(it){
return _5f.call(it)==="[object Function]";
};
dojo.isObject=function(it){
return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it));
};
dojo.isArrayLike=function(it){
return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));
};
dojo.isAlien=function(it){
return it&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.extend=function(_60,_61){
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(_60.prototype,arguments[i]);
}
return _60;
};
dojo._hitchArgs=function(_62,_63){
var pre=d._toArray(arguments,2);
var _64=d.isString(_63);
return function(){
var _65=d._toArray(arguments);
var f=_64?(_62||d.global)[_63]:_63;
return f&&f.apply(_62||this,pre.concat(_65));
};
};
dojo.hitch=function(_66,_67){
if(arguments.length>2){
return d._hitchArgs.apply(d,arguments);
}
if(!_67){
_67=_66;
_66=null;
}
if(d.isString(_67)){
_66=_66||d.global;
if(!_66[_67]){
throw (["dojo.hitch: scope[\"",_67,"\"] is null (scope=\"",_66,"\")"].join(""));
}
return function(){
return _66[_67].apply(_66,arguments||[]);
};
}
return !_66?_67:function(){
return _67.apply(_66,arguments||[]);
};
};
dojo.delegate=dojo._delegate=(function(){
function TMP(){
};
return function(obj,_68){
TMP.prototype=obj;
var tmp=new TMP();
TMP.prototype=null;
if(_68){
d._mixin(tmp,_68);
}
return tmp;
};
})();
var _69=function(obj,_6a,_6b){
return (_6b||[]).concat(Array.prototype.slice.call(obj,_6a||0));
};
var _6c=function(obj,_6d,_6e){
var arr=_6e||[];
for(var x=_6d||0;x<obj.length;x++){
arr.push(obj[x]);
}
return arr;
};
dojo._toArray=d.isIE?function(obj){
return ((obj.item)?_6c:_69).apply(this,arguments);
}:_69;
dojo.partial=function(_6f){
var arr=[null];
return d.hitch.apply(d,arr.concat(d._toArray(arguments)));
};
var _70=d._extraNames,_71=_70.length,_72={};
dojo.clone=function(o){
if(!o||typeof o!="object"||d.isFunction(o)){
return o;
}
if(o.nodeType&&"cloneNode" in o){
return o.cloneNode(true);
}
if(o instanceof Date){
return new Date(o.getTime());
}
var r,i,l,s,_73;
if(d.isArray(o)){
r=[];
for(i=0,l=o.length;i<l;++i){
if(i in o){
r.push(d.clone(o[i]));
}
}
}else{
r=o.constructor?new o.constructor():{};
}
for(_73 in o){
s=o[_73];
if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){
r[_73]=d.clone(s);
}
}
if(_71){
for(i=0;i<_71;++i){
_73=_70[i];
s=o[_73];
if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){
r[_73]=s;
}
}
}
return r;
};
dojo.trim=String.prototype.trim?function(str){
return str.trim();
}:function(str){
return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");
};
var _74=/\{([^\}]+)\}/g;
dojo.replace=function(_75,map,_76){
return _75.replace(_76||_74,d.isFunction(map)?map:function(_77,k){
return d.getObject(k,false,map);
});
};
})();
}
if(!dojo._hasResource["dojo._base.array"]){
dojo._hasResource["dojo._base.array"]=true;
dojo.provide("dojo._base.array");
(function(){
var _78=function(arr,obj,cb){
return [(typeof arr=="string")?arr.split(""):arr,obj||dojo.global,(typeof cb=="string")?new Function("item","index","array",cb):cb];
};
var _79=function(_7a,arr,_7b,_7c){
var _7d=_78(arr,_7c,_7b);
arr=_7d[0];
for(var i=0,l=arr.length;i<l;++i){
var _7e=!!_7d[2].call(_7d[1],arr[i],i,arr);
if(_7a^_7e){
return _7e;
}
}
return _7a;
};
dojo.mixin(dojo,{indexOf:function(_7f,_80,_81,_82){
var _83=1,end=_7f.length||0,i=0;
if(_82){
i=end-1;
_83=end=-1;
}
if(_81!=undefined){
i=_81;
}
if((_82&&i>end)||i<end){
for(;i!=end;i+=_83){
if(_7f[i]==_80){
return i;
}
}
}
return -1;
},lastIndexOf:function(_84,_85,_86){
return dojo.indexOf(_84,_85,_86,true);
},forEach:function(arr,_87,_88){
if(!arr||!arr.length){
return;
}
var _89=_78(arr,_88,_87);
arr=_89[0];
for(var i=0,l=arr.length;i<l;++i){
_89[2].call(_89[1],arr[i],i,arr);
}
},every:function(arr,_8a,_8b){
return _79(true,arr,_8a,_8b);
},some:function(arr,_8c,_8d){
return _79(false,arr,_8c,_8d);
},map:function(arr,_8e,_8f){
var _90=_78(arr,_8f,_8e);
arr=_90[0];
var _91=(arguments[3]?(new arguments[3]()):[]);
for(var i=0,l=arr.length;i<l;++i){
_91.push(_90[2].call(_90[1],arr[i],i,arr));
}
return _91;
},filter:function(arr,_92,_93){
var _94=_78(arr,_93,_92);
arr=_94[0];
var _95=[];
for(var i=0,l=arr.length;i<l;++i){
if(_94[2].call(_94[1],arr[i],i,arr)){
_95.push(arr[i]);
}
}
return _95;
}});
})();
}
if(!dojo._hasResource["dojo._base.declare"]){
dojo._hasResource["dojo._base.declare"]=true;
dojo.provide("dojo._base.declare");
(function(){
var d=dojo,mix=d._mixin,op=Object.prototype,_96=op.toString,_97=new Function,_98=0,_99="constructor";
function err(msg){
throw new Error("declare: "+msg);
};
function _9a(_9b){
var _9c=[],_9d=[{cls:0,refs:[]}],_9e={},_9f=1,l=_9b.length,i=0,j,lin,_a0,top,_a1,rec,_a2,_a3;
for(;i<l;++i){
_a0=_9b[i];
if(!_a0){
err("mixin #"+i+" is null");
}
lin=_a0._meta?_a0._meta.bases:[_a0];
top=0;
for(j=lin.length-1;j>=0;--j){
_a1=lin[j].prototype;
if(!_a1.hasOwnProperty("declaredClass")){
_a1.declaredClass="uniqName_"+(_98++);
}
_a2=_a1.declaredClass;
if(!_9e.hasOwnProperty(_a2)){
_9e[_a2]={count:0,refs:[],cls:lin[j]};
++_9f;
}
rec=_9e[_a2];
if(top&&top!==rec){
rec.refs.push(top);
++top.count;
}
top=rec;
}
++top.count;
_9d[0].refs.push(top);
}
while(_9d.length){
top=_9d.pop();
_9c.push(top.cls);
--_9f;
while(_a3=top.refs,_a3.length==1){
top=_a3[0];
if(!top||--top.count){
top=0;
break;
}
_9c.push(top.cls);
--_9f;
}
if(top){
for(i=0,l=_a3.length;i<l;++i){
top=_a3[i];
if(!--top.count){
_9d.push(top);
}
}
}
}
if(_9f){
err("can't build consistent linearization");
}
_a0=_9b[0];
_9c[0]=_a0?_a0._meta&&_a0===_9c[_9c.length-_a0._meta.bases.length]?_a0._meta.bases.length:1:0;
return _9c;
};
function _a4(_a5,a,f){
var _a6,_a7,_a8,_a9,_aa,_ab,_ac,opf,pos,_ad=this._inherited=this._inherited||{};
if(typeof _a5=="string"){
_a6=_a5;
_a5=a;
a=f;
}
f=0;
_a9=_a5.callee;
_a6=_a6||_a9.nom;
if(!_a6){
err("can't deduce a name to call inherited()");
}
_aa=this.constructor._meta;
_a8=_aa.bases;
pos=_ad.p;
if(_a6!=_99){
if(_ad.c!==_a9){
pos=0;
_ab=_a8[0];
_aa=_ab._meta;
if(_aa.hidden[_a6]!==_a9){
_a7=_aa.chains;
if(_a7&&typeof _a7[_a6]=="string"){
err("calling chained method with inherited: "+_a6);
}
do{
_aa=_ab._meta;
_ac=_ab.prototype;
if(_aa&&(_ac[_a6]===_a9&&_ac.hasOwnProperty(_a6)||_aa.hidden[_a6]===_a9)){
break;
}
}while(_ab=_a8[++pos]);
pos=_ab?pos:-1;
}
}
_ab=_a8[++pos];
if(_ab){
_ac=_ab.prototype;
if(_ab._meta&&_ac.hasOwnProperty(_a6)){
f=_ac[_a6];
}else{
opf=op[_a6];
do{
_ac=_ab.prototype;
f=_ac[_a6];
if(f&&(_ab._meta?_ac.hasOwnProperty(_a6):f!==opf)){
break;
}
}while(_ab=_a8[++pos]);
}
}
f=_ab&&f||op[_a6];
}else{
if(_ad.c!==_a9){
pos=0;
_aa=_a8[0]._meta;
if(_aa&&_aa.ctor!==_a9){
_a7=_aa.chains;
if(!_a7||_a7.constructor!=="manual"){
err("calling chained constructor with inherited");
}
while(_ab=_a8[++pos]){
_aa=_ab._meta;
if(_aa&&_aa.ctor===_a9){
break;
}
}
pos=_ab?pos:-1;
}
}
while(_ab=_a8[++pos]){
_aa=_ab._meta;
f=_aa?_aa.ctor:_ab;
if(f){
break;
}
}
f=_ab&&f;
}
_ad.c=f;
_ad.p=pos;
if(f){
return a===true?f:f.apply(this,a||_a5);
}
};
function _ae(_af,_b0){
if(typeof _af=="string"){
return this.inherited(_af,_b0,true);
}
return this.inherited(_af,true);
};
function _b1(cls){
var _b2=this.constructor._meta.bases;
for(var i=0,l=_b2.length;i<l;++i){
if(_b2[i]===cls){
return true;
}
}
return this instanceof cls;
};
function _b3(_b4,_b5){
var _b6,t,i=0,l=d._extraNames.length;
for(_b6 in _b5){
t=_b5[_b6];
if((t!==op[_b6]||!(_b6 in op))&&_b6!=_99){
if(_96.call(t)=="[object Function]"){
t.nom=_b6;
}
_b4[_b6]=t;
}
}
for(;i<l;++i){
_b6=d._extraNames[i];
t=_b5[_b6];
if((t!==op[_b6]||!(_b6 in op))&&_b6!=_99){
if(_96.call(t)=="[object Function]"){
t.nom=_b6;
}
_b4[_b6]=t;
}
}
return _b4;
};
function _b7(_b8){
_b3(this.prototype,_b8);
return this;
};
function _b9(_ba,_bb){
return function(){
var a=arguments,_bc=a,a0=a[0],f,i,m,l=_ba.length,_bd;
if(_bb&&(a0&&a0.preamble||this.preamble)){
_bd=new Array(_ba.length);
_bd[0]=a;
for(i=0;;){
a0=a[0];
if(a0){
f=a0.preamble;
if(f){
a=f.apply(this,a)||a;
}
}
f=_ba[i].prototype;
f=f.hasOwnProperty("preamble")&&f.preamble;
if(f){
a=f.apply(this,a)||a;
}
if(++i==l){
break;
}
_bd[i]=a;
}
}
for(i=l-1;i>=0;--i){
f=_ba[i];
m=f._meta;
f=m?m.ctor:f;
if(f){
f.apply(this,_bd?_bd[i]:a);
}
}
f=this.postscript;
if(f){
f.apply(this,_bc);
}
};
};
function _be(_bf,_c0){
return function(){
var a=arguments,t=a,a0=a[0],f;
if(_c0){
if(a0){
f=a0.preamble;
if(f){
t=f.apply(this,t)||t;
}
}
f=this.preamble;
if(f){
f.apply(this,t);
}
}
if(_bf){
_bf.apply(this,a);
}
f=this.postscript;
if(f){
f.apply(this,a);
}
};
};
function _c1(_c2){
return function(){
var a=arguments,i=0,f;
for(;f=_c2[i];++i){
m=f._meta;
f=m?m.ctor:f;
if(f){
f.apply(this,a);
break;
}
}
f=this.postscript;
if(f){
f.apply(this,a);
}
};
};
function _c3(_c4,_c5,_c6){
return function(){
var b,m,f,i=0,_c7=1;
if(_c6){
i=_c5.length-1;
_c7=-1;
}
for(;b=_c5[i];i+=_c7){
m=b._meta;
f=(m?m.hidden:b.prototype)[_c4];
if(f){
f.apply(this,arguments);
}
}
};
};
d.declare=function(_c8,_c9,_ca){
var _cb,i,t,_cc,_cd,_ce,_cf,_d0=1,_d1=_c9;
if(typeof _c8!="string"){
_ca=_c9;
_c9=_c8;
_c8="";
}
_ca=_ca||{};
if(_96.call(_c9)=="[object Array]"){
_ce=_9a(_c9);
t=_ce[0];
_d0=_ce.length-t;
_c9=_ce[_d0];
}else{
_ce=[0];
if(_c9){
t=_c9._meta;
_ce=_ce.concat(t?t.bases:_c9);
}
}
if(_c9){
for(i=_d0-1;;--i){
_97.prototype=_c9.prototype;
_cb=new _97;
if(!i){
break;
}
t=_ce[i];
mix(_cb,t._meta?t._meta.hidden:t.prototype);
_cc=new Function;
_cc.superclass=_c9;
_cc.prototype=_cb;
_c9=_cb.constructor=_cc;
}
}else{
_cb={};
}
_b3(_cb,_ca);
t=_ca.constructor;
if(t!==op.constructor){
t.nom=_99;
_cb.constructor=t;
}
_97.prototype=0;
for(i=_d0-1;i;--i){
t=_ce[i]._meta;
if(t&&t.chains){
_cf=mix(_cf||{},t.chains);
}
}
if(_cb["-chains-"]){
_cf=mix(_cf||{},_cb["-chains-"]);
}
t=!_cf||!_cf.hasOwnProperty(_99);
_ce[0]=_cc=(_cf&&_cf.constructor==="manual")?_c1(_ce):(_ce.length==1?_be(_ca.constructor,t):_b9(_ce,t));
_cc._meta={bases:_ce,hidden:_ca,chains:_cf,parents:_d1,ctor:_ca.constructor};
_cc.superclass=_c9&&_c9.prototype;
_cc.extend=_b7;
_cc.prototype=_cb;
_cb.constructor=_cc;
_cb.getInherited=_ae;
_cb.inherited=_a4;
_cb.isInstanceOf=_b1;
if(_c8){
_cb.declaredClass=_c8;
d.setObject(_c8,_cc);
}
if(_cf){
for(_cd in _cf){
if(_cb[_cd]&&typeof _cf[_cd]=="string"&&_cd!=_99){
t=_cb[_cd]=_c3(_cd,_ce,_cf[_cd]==="after");
t.nom=_cd;
}
}
}
return _cc;
};
d.safeMixin=_b3;
})();
}
if(!dojo._hasResource["dojo._base.connect"]){
dojo._hasResource["dojo._base.connect"]=true;
dojo.provide("dojo._base.connect");
dojo._listener={getDispatcher:function(){
return function(){
var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;
var r=t&&t.apply(this,arguments);
var lls;
lls=[].concat(ls);
for(var i in lls){
if(!(i in ap)){
lls[i].apply(this,arguments);
}
}
return r;
};
},add:function(_d2,_d3,_d4){
_d2=_d2||dojo.global;
var f=_d2[_d3];
if(!f||!f._listeners){
var d=dojo._listener.getDispatcher();
d.target=f;
d._listeners=[];
f=_d2[_d3]=d;
}
return f._listeners.push(_d4);
},remove:function(_d5,_d6,_d7){
var f=(_d5||dojo.global)[_d6];
if(f&&f._listeners&&_d7--){
delete f._listeners[_d7];
}
}};
dojo.connect=function(obj,_d8,_d9,_da,_db){
var a=arguments,_dc=[],i=0;
_dc.push(dojo.isString(a[0])?null:a[i++],a[i++]);
var a1=a[i+1];
_dc.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);
for(var l=a.length;i<l;i++){
_dc.push(a[i]);
}
return dojo._connect.apply(this,_dc);
};
dojo._connect=function(obj,_dd,_de,_df){
var l=dojo._listener,h=l.add(obj,_dd,dojo.hitch(_de,_df));
return [obj,_dd,h,l];
};
dojo.disconnect=function(_e0){
if(_e0&&_e0[0]!==undefined){
dojo._disconnect.apply(this,_e0);
delete _e0[0];
}
};
dojo._disconnect=function(obj,_e1,_e2,_e3){
_e3.remove(obj,_e1,_e2);
};
dojo._topics={};
dojo.subscribe=function(_e4,_e5,_e6){
return [_e4,dojo._listener.add(dojo._topics,_e4,dojo.hitch(_e5,_e6))];
};
dojo.unsubscribe=function(_e7){
if(_e7){
dojo._listener.remove(dojo._topics,_e7[0],_e7[1]);
}
};
dojo.publish=function(_e8,_e9){
var f=dojo._topics[_e8];
if(f){
f.apply(this,_e9||[]);
}
};
dojo.connectPublisher=function(_ea,obj,_eb){
var pf=function(){
dojo.publish(_ea,arguments);
};
return (_eb)?dojo.connect(obj,_eb,pf):dojo.connect(obj,pf);
};
}
if(!dojo._hasResource["dojo._base.Deferred"]){
dojo._hasResource["dojo._base.Deferred"]=true;
dojo.provide("dojo._base.Deferred");
dojo.Deferred=function(_ec){
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_ec;
this.silentlyCancelled=false;
this.isFiring=false;
};
dojo.extend(dojo.Deferred,{_nextId:(function(){
var n=1;
return function(){
return n++;
};
})(),cancel:function(){
var err;
if(this.fired==-1){
if(this.canceller){
err=this.canceller(this);
}else{
this.silentlyCancelled=true;
}
if(this.fired==-1){
if(!(err instanceof Error)){
var res=err;
var msg="Deferred Cancelled";
if(err&&err.toString){
msg+=": "+err.toString();
}
err=new Error(msg);
err.dojoType="cancel";
err.cancelResult=res;
}
this.errback(err);
}
}else{
if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){
this.results[0].cancel();
}
}
},_resback:function(res){
this.fired=((res instanceof Error)?1:0);
this.results[this.fired]=res;
this._fire();
},_check:function(){
if(this.fired!=-1){
if(!this.silentlyCancelled){
throw new Error("already called!");
}
this.silentlyCancelled=false;
return;
}
},callback:function(res){
this._check();
this._resback(res);
},errback:function(res){
this._check();
if(!(res instanceof Error)){
res=new Error(res);
}
this._resback(res);
},addBoth:function(cb,_ed){
var _ee=dojo.hitch.apply(dojo,arguments);
return this.addCallbacks(_ee,_ee);
},addCallback:function(cb,_ef){
return this.addCallbacks(dojo.hitch.apply(dojo,arguments));
},addErrback:function(cb,_f0){
return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));
},addCallbacks:function(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0&&!this.isFiring){
this._fire();
}
return this;
},_fire:function(){
this.isFiring=true;
var _f1=this.chain;
var _f2=this.fired;
var res=this.results[_f2];
var _f3=this;
var cb=null;
while((_f1.length>0)&&(this.paused==0)){
var f=_f1.shift()[_f2];
if(!f){
continue;
}
var _f4=function(){
var ret=f(res);
if(typeof ret!="undefined"){
res=ret;
}
_f2=((res instanceof Error)?1:0);
if(res instanceof dojo.Deferred){
cb=function(res){
_f3._resback(res);
_f3.paused--;
if((_f3.paused==0)&&(_f3.fired>=0)){
_f3._fire();
}
};
this.paused++;
}
};
if(dojo.config.debugAtAllCosts){
_f4.call(this);
}else{
try{
_f4.call(this);
}
catch(err){
_f2=1;
res=err;
}
}
}
this.fired=_f2;
this.results[_f2]=res;
this.isFiring=false;
if((cb)&&(this.paused)){
res.addBoth(cb);
}
}});
}
if(!dojo._hasResource["dojo._base.json"]){
dojo._hasResource["dojo._base.json"]=true;
dojo.provide("dojo._base.json");
dojo.fromJson=function(_f5){
return eval("("+_f5+")");
};
if(typeof (JSON)!="undefined"){
dojo.fromJson=JSON.parse;
}
dojo._escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
dojo.toJsonIndentStr="\t";
dojo.toJson=function(it,_f6,_f7){
if(it===undefined){
return "undefined";
}
var _f8=typeof it;
if(_f8=="number"||_f8=="boolean"){
return it+"";
}
if(it===null){
return "null";
}
if(dojo.isString(it)){
return dojo._escapeString(it);
}
var _f9=arguments.callee;
var _fa;
_f7=_f7||"";
var _fb=_f6?_f7+dojo.toJsonIndentStr:"";
var tf=it.__json__||it.json;
if(dojo.isFunction(tf)){
_fa=tf.call(it);
if(it!==_fa){
return _f9(_fa,_f6,_fb);
}
}
if(it.nodeType&&it.cloneNode){
throw new Error("Can't serialize DOM nodes");
}
var sep=_f6?" ":"";
var _fc=_f6?"\n":"";
if(dojo.isArray(it)){
var res=dojo.map(it,function(obj){
var val=_f9(obj,_f6,_fb);
if(typeof val!="string"){
val="undefined";
}
return _fc+_fb+val;
});
return "["+res.join(","+sep)+_fc+_f7+"]";
}
if(_f8=="function"){
return null;
}
var _fd=[],key;
for(key in it){
var _fe,val;
if(typeof key=="number"){
_fe="\""+key+"\"";
}else{
if(typeof key=="string"){
_fe=dojo._escapeString(key);
}else{
continue;
}
}
val=_f9(it[key],_f6,_fb);
if(typeof val!="string"){
continue;
}
_fd.push(_fc+_fb+_fe+":"+sep+val);
}
return "{"+_fd.join(","+sep)+_fc+_f7+"}";
};
}
if(!dojo._hasResource["dojo._base.Color"]){
dojo._hasResource["dojo._base.Color"]=true;
dojo.provide("dojo._base.Color");
(function(){
var d=dojo;
dojo.Color=function(_ff){
if(_ff){
this.setColor(_ff);
}
};
dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:d.config.transparentColor||[255,255,255]};
dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){
var t=this;
t.r=r;
t.g=g;
t.b=b;
t.a=a;
},setColor:function(_100){
if(d.isString(_100)){
d.colorFromString(_100,this);
}else{
if(d.isArray(_100)){
d.colorFromArray(_100,this);
}else{
this._set(_100.r,_100.g,_100.b,_100.a);
if(!(_100 instanceof d.Color)){
this.sanitize();
}
}
}
return this;
},sanitize:function(){
return this;
},toRgb:function(){
var t=this;
return [t.r,t.g,t.b];
},toRgba:function(){
var t=this;
return [t.r,t.g,t.b,t.a];
},toHex:function(){
var arr=d.map(["r","g","b"],function(x){
var s=this[x].toString(16);
return s.length<2?"0"+s:s;
},this);
return "#"+arr.join("");
},toCss:function(_101){
var t=this,rgb=t.r+", "+t.g+", "+t.b;
return (_101?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";
},toString:function(){
return this.toCss(true);
}});
dojo.blendColors=function(_102,end,_103,obj){
var t=obj||new d.Color();
d.forEach(["r","g","b","a"],function(x){
t[x]=_102[x]+(end[x]-_102[x])*_103;
if(x!="a"){
t[x]=Math.round(t[x]);
}
});
return t.sanitize();
};
dojo.colorFromRgb=function(_104,obj){
var m=_104.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);
return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);
};
dojo.colorFromHex=function(_105,obj){
var t=obj||new d.Color(),bits=(_105.length==4)?4:8,mask=(1<<bits)-1;
_105=Number("0x"+_105.substr(1));
if(isNaN(_105)){
return null;
}
d.forEach(["b","g","r"],function(x){
var c=_105&mask;
_105>>=bits;
t[x]=bits==4?17*c:c;
});
t.a=1;
return t;
};
dojo.colorFromArray=function(a,obj){
var t=obj||new d.Color();
t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));
if(isNaN(t.a)){
t.a=1;
}
return t.sanitize();
};
dojo.colorFromString=function(str,obj){
var a=d.Color.named[str];
return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj);
};
})();
}
if(!dojo._hasResource["dojo._base"]){
dojo._hasResource["dojo._base"]=true;
dojo.provide("dojo._base");
}
if(!dojo._hasResource["dojo._base.window"]){
dojo._hasResource["dojo._base.window"]=true;
dojo.provide("dojo._base.window");
dojo.doc=window["document"]||null;
dojo.body=function(){
return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];
};
dojo.setContext=function(_106,_107){
dojo.global=_106;
dojo.doc=_107;
};
dojo.withGlobal=function(_108,_109,_10a,_10b){
var _10c=dojo.global;
try{
dojo.global=_108;
return dojo.withDoc.call(null,_108.document,_109,_10a,_10b);
}
finally{
dojo.global=_10c;
}
};
dojo.withDoc=function(_10d,_10e,_10f,_110){
var _111=dojo.doc,_112=dojo._bodyLtr,oldQ=dojo.isQuirks;
try{
dojo.doc=_10d;
delete dojo._bodyLtr;
dojo.isQuirks=dojo.doc.compatMode=="BackCompat";
if(_10f&&typeof _10e=="string"){
_10e=_10f[_10e];
}
return _10e.apply(_10f,_110||[]);
}
finally{
dojo.doc=_111;
delete dojo._bodyLtr;
if(_112!==undefined){
dojo._bodyLtr=_112;
}
dojo.isQuirks=oldQ;
}
};
}
if(!dojo._hasResource["dojo._base.event"]){
dojo._hasResource["dojo._base.event"]=true;
dojo.provide("dojo._base.event");
(function(){
var del=(dojo._event_listener={add:function(node,name,fp){
if(!node){
return;
}
name=del._normalizeEventName(name);
fp=del._fixCallback(name,fp);
var _113=name;
if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){
var ofp=fp;
name=(name=="mouseenter")?"mouseover":"mouseout";
fp=function(e){
if(!dojo.isDescendant(e.relatedTarget,node)){
return ofp.call(this,e);
}
};
}
node.addEventListener(name,fp,false);
return fp;
},remove:function(node,_114,_115){
if(node){
_114=del._normalizeEventName(_114);
if(!dojo.isIE&&(_114=="mouseenter"||_114=="mouseleave")){
_114=(_114=="mouseenter")?"mouseover":"mouseout";
}
node.removeEventListener(_114,_115,false);
}
},_normalizeEventName:function(name){
return name.slice(0,2)=="on"?name.slice(2):name;
},_fixCallback:function(name,fp){
return name!="keypress"?fp:function(e){
return fp.call(this,del._fixEvent(e,this));
};
},_fixEvent:function(evt,_116){
switch(evt.type){
case "keypress":
del._setKeyChar(evt);
break;
}
return evt;
},_setKeyChar:function(evt){
evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";
evt.charOrCode=evt.keyChar||evt.keyCode;
},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});
dojo.fixEvent=function(evt,_117){
return del._fixEvent(evt,_117);
};
dojo.stopEvent=function(evt){
evt.preventDefault();
evt.stopPropagation();
};
var _118=dojo._listener;
dojo._connect=function(obj,_119,_11a,_11b,_11c){
var _11d=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);
var lid=_11d?(_11c?2:1):0,l=[dojo._listener,del,_118][lid];
var h=l.add(obj,_119,dojo.hitch(_11a,_11b));
return [obj,_119,h,lid];
};
dojo._disconnect=function(obj,_11e,_11f,_120){
([dojo._listener,del,_118][_120]).remove(obj,_11e,_11f);
};
dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};
var _121=dojo.isMac?"metaKey":"ctrlKey";
dojo.isCopyKey=function(e){
return e[_121];
};
if(dojo.isIE){
dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_122){
return e.button&_122;
},isLeft:function(e){
return e.button&1;
},isMiddle:function(e){
return e.button&4;
},isRight:function(e){
return e.button&2;
}};
}else{
dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_123){
return e.button==_123;
},isLeft:function(e){
return e.button==0;
},isMiddle:function(e){
return e.button==1;
},isRight:function(e){
return e.button==2;
}};
}
if(dojo.isIE){
var _124=function(e,code){
try{
return (e.keyCode=code);
}
catch(e){
return 0;
}
};
var iel=dojo._listener;
var _125=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");
if(!dojo.config._allow_leaks){
_118=iel=dojo._ie_listener={handlers:[],add:function(_126,_127,_128){
_126=_126||dojo.global;
var f=_126[_127];
if(!f||!f[_125]){
var d=dojo._getIeDispatcher();
d.target=f&&(ieh.push(f)-1);
d[_125]=[];
f=_126[_127]=d;
}
return f[_125].push(ieh.push(_128)-1);
},remove:function(_129,_12a,_12b){
var f=(_129||dojo.global)[_12a],l=f&&f[_125];
if(f&&l&&_12b--){
delete ieh[l[_12b]];
delete l[_12b];
}
}};
var ieh=iel.handlers;
}
dojo.mixin(del,{add:function(node,_12c,fp){
if(!node){
return;
}
_12c=del._normalizeEventName(_12c);
if(_12c=="onkeypress"){
var kd=node.onkeydown;
if(!kd||!kd[_125]||!kd._stealthKeydownHandle){
var h=del.add(node,"onkeydown",del._stealthKeyDown);
kd=node.onkeydown;
kd._stealthKeydownHandle=h;
kd._stealthKeydownRefs=1;
}else{
kd._stealthKeydownRefs++;
}
}
return iel.add(node,_12c,del._fixCallback(fp));
},remove:function(node,_12d,_12e){
_12d=del._normalizeEventName(_12d);
iel.remove(node,_12d,_12e);
if(_12d=="onkeypress"){
var kd=node.onkeydown;
if(--kd._stealthKeydownRefs<=0){
iel.remove(node,"onkeydown",kd._stealthKeydownHandle);
delete kd._stealthKeydownHandle;
}
}
},_normalizeEventName:function(_12f){
return _12f.slice(0,2)!="on"?"on"+_12f:_12f;
},_nop:function(){
},_fixEvent:function(evt,_130){
if(!evt){
var w=_130&&(_130.ownerDocument||_130.document||_130).parentWindow||window;
evt=w.event;
}
if(!evt){
return (evt);
}
evt.target=evt.srcElement;
evt.currentTarget=(_130||evt.srcElement);
evt.layerX=evt.offsetX;
evt.layerY=evt.offsetY;
var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;
var _131=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
var _132=dojo._getIeDocumentElementOffset();
evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_131.scrollLeft||0)-_132.x;
evt.pageY=evt.clientY+(_131.scrollTop||0)-_132.y;
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
evt.stopPropagation=del._stopPropagation;
evt.preventDefault=del._preventDefault;
return del._fixKeys(evt);
},_fixKeys:function(evt){
switch(evt.type){
case "keypress":
var c=("charCode" in evt?evt.charCode:evt.keyCode);
if(c==10){
c=0;
evt.keyCode=13;
}else{
if(c==13||c==27){
c=0;
}else{
if(c==3){
c=99;
}
}
}
evt.charCode=c;
del._setKeyChar(evt);
break;
}
return evt;
},_stealthKeyDown:function(evt){
var kp=evt.currentTarget.onkeypress;
if(!kp||!kp[_125]){
return;
}
var k=evt.keyCode;
var _133=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_133||evt.ctrlKey){
var c=_133?0:k;
if(evt.ctrlKey){
if(k==3||k==13){
return;
}else{
if(c>95&&c<106){
c-=48;
}else{
if((!evt.shiftKey)&&(c>=65&&c<=90)){
c+=32;
}else{
c=del._punctMap[c]||c;
}
}
}
}
var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});
kp.call(evt.currentTarget,faux);
evt.cancelBubble=faux.cancelBubble;
evt.returnValue=faux.returnValue;
_124(evt,faux.keyCode);
}
},_stopPropagation:function(){
this.cancelBubble=true;
},_preventDefault:function(){
this.bubbledKeyCode=this.keyCode;
if(this.ctrlKey){
_124(this,0);
}
this.returnValue=false;
}});
dojo.stopEvent=function(evt){
evt=evt||window.event;
del._stopPropagation.call(evt);
del._preventDefault.call(evt);
};
}
del._synthesizeEvent=function(evt,_134){
var faux=dojo.mixin({},evt,_134);
del._setKeyChar(faux);
faux.preventDefault=function(){
evt.preventDefault();
};
faux.stopPropagation=function(){
evt.stopPropagation();
};
return faux;
};
if(dojo.isOpera){
dojo.mixin(del,{_fixEvent:function(evt,_135){
switch(evt.type){
case "keypress":
var c=evt.which;
if(c==3){
c=99;
}
c=c<41&&!evt.shiftKey?0:c;
if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){
c+=32;
}
return del._synthesizeEvent(evt,{charCode:c});
}
return evt;
}});
}
if(dojo.isWebKit){
del._add=del.add;
del._remove=del.remove;
dojo.mixin(del,{add:function(node,_136,fp){
if(!node){
return;
}
var _137=del._add(node,_136,fp);
if(del._normalizeEventName(_136)=="keypress"){
_137._stealthKeyDownHandle=del._add(node,"keydown",function(evt){
var k=evt.keyCode;
var _138=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_138||evt.ctrlKey){
var c=_138?0:k;
if(evt.ctrlKey){
if(k==3||k==13){
return;
}else{
if(c>95&&c<106){
c-=48;
}else{
if(!evt.shiftKey&&c>=65&&c<=90){
c+=32;
}else{
c=del._punctMap[c]||c;
}
}
}
}
var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});
fp.call(evt.currentTarget,faux);
}
});
}
return _137;
},remove:function(node,_139,_13a){
if(node){
if(_13a._stealthKeyDownHandle){
del._remove(node,"keydown",_13a._stealthKeyDownHandle);
}
del._remove(node,_139,_13a);
}
},_fixEvent:function(evt,_13b){
switch(evt.type){
case "keypress":
if(evt.faux){
return evt;
}
var c=evt.charCode;
c=c>=32?c:0;
return del._synthesizeEvent(evt,{charCode:c,faux:true});
}
return evt;
}});
}
})();
if(dojo.isIE){
dojo._ieDispatcher=function(args,_13c){
var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];
var r=t&&t.apply(_13c,args);
var lls=[].concat(ls);
for(var i in lls){
var f=h[lls[i]];
if(!(i in ap)&&f){
f.apply(_13c,args);
}
}
return r;
};
dojo._getIeDispatcher=function(){
return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");
};
dojo._event_listener._fixCallback=function(fp){
var f=dojo._event_listener._fixEvent;
return function(e){
return fp.call(this,f(e,this));
};
};
}
}
if(!dojo._hasResource["dojo._base.html"]){
dojo._hasResource["dojo._base.html"]=true;
dojo.provide("dojo._base.html");
try{
document.execCommand("BackgroundImageCache",false,true);
}
catch(e){
}
if(dojo.isIE||dojo.isOpera){
dojo.byId=function(id,doc){
if(typeof id!="string"){
return id;
}
var _13d=doc||dojo.doc,te=_13d.getElementById(id);
if(te&&(te.attributes.id.value==id||te.id==id)){
return te;
}else{
var eles=_13d.all[id];
if(!eles||eles.nodeName){
eles=[eles];
}
var i=0;
while((te=eles[i++])){
if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){
return te;
}
}
}
};
}else{
dojo.byId=function(id,doc){
return (typeof id=="string")?(doc||dojo.doc).getElementById(id):id;
};
}
(function(){
var d=dojo;
var byId=d.byId;
var _13e=null,_13f;
d.addOnWindowUnload(function(){
_13e=null;
});
dojo._destroyElement=dojo.destroy=function(node){
node=byId(node);
try{
var doc=node.ownerDocument;
if(!_13e||_13f!=doc){
_13e=doc.createElement("div");
_13f=doc;
}
_13e.appendChild(node.parentNode?node.parentNode.removeChild(node):node);
_13e.innerHTML="";
}
catch(e){
}
};
dojo.isDescendant=function(node,_140){
try{
node=byId(node);
_140=byId(_140);
while(node){
if(node==_140){
return true;
}
node=node.parentNode;
}
}
catch(e){
}
return false;
};
dojo.setSelectable=function(node,_141){
node=byId(node);
if(d.isMozilla){
node.style.MozUserSelect=_141?"":"none";
}else{
if(d.isKhtml||d.isWebKit){
node.style.KhtmlUserSelect=_141?"auto":"none";
}else{
if(d.isIE){
var v=(node.unselectable=_141?"":"on");
d.query("*",node).forEach("item.unselectable = '"+v+"'");
}
}
}
};
var _142=function(node,ref){
var _143=ref.parentNode;
if(_143){
_143.insertBefore(node,ref);
}
};
var _144=function(node,ref){
var _145=ref.parentNode;
if(_145){
if(_145.lastChild==ref){
_145.appendChild(node);
}else{
_145.insertBefore(node,ref.nextSibling);
}
}
};
dojo.place=function(node,_146,_147){
_146=byId(_146);
if(typeof node=="string"){
node=node.charAt(0)=="<"?d._toDom(node,_146.ownerDocument):byId(node);
}
if(typeof _147=="number"){
var cn=_146.childNodes;
if(!cn.length||cn.length<=_147){
_146.appendChild(node);
}else{
_142(node,cn[_147<0?0:_147]);
}
}else{
switch(_147){
case "before":
_142(node,_146);
break;
case "after":
_144(node,_146);
break;
case "replace":
_146.parentNode.replaceChild(node,_146);
break;
case "only":
d.empty(_146);
_146.appendChild(node);
break;
case "first":
if(_146.firstChild){
_142(node,_146.firstChild);
break;
}
default:
_146.appendChild(node);
}
}
return node;
};
dojo.boxModel="content-box";
if(d.isIE){
d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";
}
var gcs;
if(d.isWebKit){
gcs=function(node){
var s;
if(node.nodeType==1){
var dv=node.ownerDocument.defaultView;
s=dv.getComputedStyle(node,null);
if(!s&&node.style){
node.style.display="";
s=dv.getComputedStyle(node,null);
}
}
return s||{};
};
}else{
if(d.isIE){
gcs=function(node){
return node.nodeType==1?node.currentStyle:{};
};
}else{
gcs=function(node){
return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};
};
}
}
dojo.getComputedStyle=gcs;
if(!d.isIE){
d._toPixelValue=function(_148,_149){
return parseFloat(_149)||0;
};
}else{
d._toPixelValue=function(_14a,_14b){
if(!_14b){
return 0;
}
if(_14b=="medium"){
return 4;
}
if(_14b.slice&&_14b.slice(-2)=="px"){
return parseFloat(_14b);
}
with(_14a){
var _14c=style.left;
var _14d=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_14b;
_14b=style.pixelLeft;
}
catch(e){
_14b=0;
}
style.left=_14c;
runtimeStyle.left=_14d;
}
return _14b;
};
}
var px=d._toPixelValue;
var astr="DXImageTransform.Microsoft.Alpha";
var af=function(n,f){
try{
return n.filters.item(astr);
}
catch(e){
return f?{}:null;
}
};
dojo._getOpacity=d.isIE?function(node){
try{
return af(node).Opacity/100;
}
catch(e){
return 1;
}
}:function(node){
return gcs(node).opacity;
};
dojo._setOpacity=d.isIE?function(node,_14e){
var ov=_14e*100;
node.style.zoom=1;
af(node,1).Enabled=!(_14e==1);
if(_14e==1){
node.style.filter="";
return _14e;
}
if(!af(node)){
node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";
}else{
af(node,1).Opacity=ov;
}
if(node.nodeName.toLowerCase()=="tr"){
d.query("> td",node).forEach(function(i){
d._setOpacity(i,_14e);
});
}
return _14e;
}:function(node,_14f){
return node.style.opacity=_14f;
};
var _150={left:true,top:true};
var _151=/margin|padding|width|height|max|min|offset/;
var _152=function(node,type,_153){
type=type.toLowerCase();
if(d.isIE){
if(_153=="auto"){
if(type=="height"){
return node.offsetHeight;
}
if(type=="width"){
return node.offsetWidth;
}
}
if(type=="fontweight"){
switch(_153){
case 700:
return "bold";
case 400:
default:
return "normal";
}
}
}
if(!(type in _150)){
_150[type]=_151.test(type);
}
return _150[type]?px(node,_153):_153;
};
var _154=d.isIE?"styleFloat":"cssFloat",_155={"cssFloat":_154,"styleFloat":_154,"float":_154};
dojo.style=function(node,_156,_157){
var n=byId(node),args=arguments.length,op=(_156=="opacity");
_156=_155[_156]||_156;
if(args==3){
return op?d._setOpacity(n,_157):n.style[_156]=_157;
}
if(args==2&&op){
return d._getOpacity(n);
}
var s=gcs(n);
if(args==2&&typeof _156!="string"){
for(var x in _156){
d.style(node,x,_156[x]);
}
return s;
}
return (args==1)?s:_152(n,_156,s[_156]||n.style[_156]);
};
dojo._getPadExtents=function(n,_158){
var s=_158||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);
return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};
};
dojo._getBorderExtents=function(n,_159){
var ne="none",s=_159||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);
return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};
};
dojo._getPadBorderExtents=function(n,_15a){
var s=_15a||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);
return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};
};
dojo._getMarginExtents=function(n,_15b){
var s=_15b||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);
if(d.isWebKit&&(s.position!="absolute")){
r=l;
}
return {l:l,t:t,w:l+r,h:t+b};
};
dojo._getMarginBox=function(node,_15c){
var s=_15c||gcs(node),me=d._getMarginExtents(node,s);
var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;
if(d.isMoz){
var sl=parseFloat(s.left),st=parseFloat(s.top);
if(!isNaN(sl)&&!isNaN(st)){
l=sl,t=st;
}else{
if(p&&p.style){
var pcs=gcs(p);
if(pcs.overflow!="visible"){
var be=d._getBorderExtents(p,pcs);
l+=be.l,t+=be.t;
}
}
}
}else{
if(d.isOpera||(d.isIE>7&&!d.isQuirks)){
if(p){
be=d._getBorderExtents(p);
l-=be.l;
t-=be.t;
}
}
}
return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};
};
dojo._getContentBox=function(node,_15d){
var s=_15d||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;
if(!w){
w=node.offsetWidth,h=node.offsetHeight;
}else{
h=node.clientHeight,be.w=be.h=0;
}
if(d.isOpera){
pe.l+=be.l;
pe.t+=be.t;
}
return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};
};
dojo._getBorderBox=function(node,_15e){
var s=_15e||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);
return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};
};
dojo._setBox=function(node,l,t,w,h,u){
u=u||"px";
var s=node.style;
if(!isNaN(l)){
s.left=l+u;
}
if(!isNaN(t)){
s.top=t+u;
}
if(w>=0){
s.width=w+u;
}
if(h>=0){
s.height=h+u;
}
};
dojo._isButtonTag=function(node){
return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON";
};
dojo._usesBorderBox=function(node){
var n=node.tagName;
return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node);
};
dojo._setContentSize=function(node,_15f,_160,_161){
if(d._usesBorderBox(node)){
var pb=d._getPadBorderExtents(node,_161);
if(_15f>=0){
_15f+=pb.w;
}
if(_160>=0){
_160+=pb.h;
}
}
d._setBox(node,NaN,NaN,_15f,_160);
};
dojo._setMarginBox=function(node,_162,_163,_164,_165,_166){
var s=_166||gcs(node),bb=d._usesBorderBox(node),pb=bb?_167:d._getPadBorderExtents(node,s);
if(d.isWebKit){
if(d._isButtonTag(node)){
var ns=node.style;
if(_164>=0&&!ns.width){
ns.width="4px";
}
if(_165>=0&&!ns.height){
ns.height="4px";
}
}
}
var mb=d._getMarginExtents(node,s);
if(_164>=0){
_164=Math.max(_164-pb.w-mb.w,0);
}
if(_165>=0){
_165=Math.max(_165-pb.h-mb.h,0);
}
d._setBox(node,_162,_163,_164,_165);
};
var _167={l:0,t:0,w:0,h:0};
dojo.marginBox=function(node,box){
var n=byId(node),s=gcs(n),b=box;
return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);
};
dojo.contentBox=function(node,box){
var n=byId(node),s=gcs(n),b=box;
return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);
};
var _168=function(node,prop){
if(!(node=(node||0).parentNode)){
return 0;
}
var val,_169=0,_16a=d.body();
while(node&&node.style){
if(gcs(node).position=="fixed"){
return 0;
}
val=node[prop];
if(val){
_169+=val-0;
if(node==_16a){
break;
}
}
node=node.parentNode;
}
return _169;
};
dojo._docScroll=function(){
var n=d.global;
return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.doc.documentElement,n.clientHeight?{x:d._fixIeBiDiScrollLeft(n.scrollLeft),y:n.scrollTop}:(n=d.body(),{x:n.scrollLeft||0,y:n.scrollTop||0}));
};
dojo._isBodyLtr=function(){
return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";
};
dojo._getIeDocumentElementOffset=function(){
var de=d.doc.documentElement;
if(d.isIE<8){
var r=de.getBoundingClientRect();
var l=r.left,t=r.top;
if(d.isIE<7){
l+=de.clientLeft;
t+=de.clientTop;
}
return {x:l<0?0:l,y:t<0?0:t};
}else{
return {x:0,y:0};
}
};
dojo._fixIeBiDiScrollLeft=function(_16b){
var dd=d.doc;
if(d.isIE<8&&!d._isBodyLtr()){
var de=d.isQuirks?dd.body:dd.documentElement;
return _16b+de.clientWidth-de.scrollWidth;
}
return _16b;
};
dojo._abs=dojo.position=function(node,_16c){
var db=d.body(),dh=db.parentNode,ret;
node=byId(node);
if(node["getBoundingClientRect"]){
ret=node.getBoundingClientRect();
ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};
if(d.isIE){
var _16d=d._getIeDocumentElementOffset();
ret.x-=_16d.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);
ret.y-=_16d.y+(d.isQuirks?db.clientTop+db.offsetTop:0);
}else{
if(d.isFF==3){
var cs=gcs(dh);
ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);
ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);
}
}
}else{
ret={x:0,y:0,w:node.offsetWidth,h:node.offsetHeight};
if(node["offsetParent"]){
ret.x-=_168(node,"scrollLeft");
ret.y-=_168(node,"scrollTop");
var _16e=node;
do{
var n=_16e.offsetLeft,t=_16e.offsetTop;
ret.x+=isNaN(n)?0:n;
ret.y+=isNaN(t)?0:t;
cs=gcs(_16e);
if(_16e!=node){
if(d.isMoz){
ret.x+=2*px(_16e,cs.borderLeftWidth);
ret.y+=2*px(_16e,cs.borderTopWidth);
}else{
ret.x+=px(_16e,cs.borderLeftWidth);
ret.y+=px(_16e,cs.borderTopWidth);
}
}
if(d.isMoz&&cs.position=="static"){
var _16f=_16e.parentNode;
while(_16f!=_16e.offsetParent){
var pcs=gcs(_16f);
if(pcs.position=="static"){
ret.x+=px(_16e,pcs.borderLeftWidth);
ret.y+=px(_16e,pcs.borderTopWidth);
}
_16f=_16f.parentNode;
}
}
_16e=_16e.offsetParent;
}while((_16e!=dh)&&_16e);
}else{
if(node.x&&node.y){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
if(_16c){
var _170=d._docScroll();
ret.x+=_170.x;
ret.y+=_170.y;
}
return ret;
};
dojo.coords=function(node,_171){
var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);
var abs=d.position(n,_171);
mb.x=abs.x;
mb.y=abs.y;
return mb;
};
var _172={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_173={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_174={innerHTML:1,className:1,htmlFor:d.isIE,value:1};
var _175=function(name){
return _173[name.toLowerCase()]||name;
};
var _176=function(node,name){
var attr=node.getAttributeNode&&node.getAttributeNode(name);
return attr&&attr.specified;
};
dojo.hasAttr=function(node,name){
var lc=name.toLowerCase();
return _174[_172[lc]||name]||_176(byId(node),_173[lc]||name);
};
var _177={},_178=0,_179=dojo._scopeName+"attrid",_17a={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};
dojo.attr=function(node,name,_17b){
node=byId(node);
var args=arguments.length,prop;
if(args==2&&typeof name!="string"){
for(var x in name){
d.attr(node,x,name[x]);
}
return node;
}
var lc=name.toLowerCase(),_17c=_172[lc]||name,_17d=_174[_17c],_17e=_173[lc]||name;
if(args==3){
do{
if(_17c=="style"&&typeof _17b!="string"){
d.style(node,_17b);
break;
}
if(_17c=="innerHTML"){
if(d.isIE&&node.tagName.toLowerCase() in _17a){
d.empty(node);
node.appendChild(d._toDom(_17b,node.ownerDocument));
}else{
node[_17c]=_17b;
}
break;
}
if(d.isFunction(_17b)){
var _17f=d.attr(node,_179);
if(!_17f){
_17f=_178++;
d.attr(node,_179,_17f);
}
if(!_177[_17f]){
_177[_17f]={};
}
var h=_177[_17f][_17c];
if(h){
d.disconnect(h);
}else{
try{
delete node[_17c];
}
catch(e){
}
}
_177[_17f][_17c]=d.connect(node,_17c,_17b);
break;
}
if(_17d||typeof _17b=="boolean"){
node[_17c]=_17b;
break;
}
node.setAttribute(_17e,_17b);
}while(false);
return node;
}
_17b=node[_17c];
if(_17d&&typeof _17b!="undefined"){
return _17b;
}
if(_17c!="href"&&(typeof _17b=="boolean"||d.isFunction(_17b))){
return _17b;
}
return _176(node,_17e)?node.getAttribute(_17e):null;
};
dojo.removeAttr=function(node,name){
byId(node).removeAttribute(_175(name));
};
dojo.getNodeProp=function(node,name){
node=byId(node);
var lc=name.toLowerCase(),_180=_172[lc]||name;
if((_180 in node)&&_180!="href"){
return node[_180];
}
var _181=_173[lc]||name;
return _176(node,_181)?node.getAttribute(_181):null;
};
dojo.create=function(tag,_182,_183,pos){
var doc=d.doc;
if(_183){
_183=byId(_183);
doc=_183.ownerDocument;
}
if(typeof tag=="string"){
tag=doc.createElement(tag);
}
if(_182){
d.attr(tag,_182);
}
if(_183){
d.place(tag,_183,pos);
}
return tag;
};
d.empty=d.isIE?function(node){
node=byId(node);
for(var c;c=node.lastChild;){
d.destroy(c);
}
}:function(node){
byId(node).innerHTML="";
};
var _184={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_185=/<\s*([\w\:]+)/,_186={},_187=0,_188="__"+d._scopeName+"ToDomId";
for(var _189 in _184){
var tw=_184[_189];
tw.pre=_189=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";
tw.post="</"+tw.reverse().join("></")+">";
}
d._toDom=function(frag,doc){
doc=doc||d.doc;
var _18a=doc[_188];
if(!_18a){
doc[_188]=_18a=++_187+"";
_186[_18a]=doc.createElement("div");
}
frag+="";
var _18b=frag.match(_185),tag=_18b?_18b[1].toLowerCase():"",_18c=_186[_18a],wrap,i,fc,df;
if(_18b&&_184[tag]){
wrap=_184[tag];
_18c.innerHTML=wrap.pre+frag+wrap.post;
for(i=wrap.length;i;--i){
_18c=_18c.firstChild;
}
}else{
_18c.innerHTML=frag;
}
if(_18c.childNodes.length==1){
return _18c.removeChild(_18c.firstChild);
}
df=doc.createDocumentFragment();
while(fc=_18c.firstChild){
df.appendChild(fc);
}
return df;
};
var _18d="className";
dojo.hasClass=function(node,_18e){
return ((" "+byId(node)[_18d]+" ").indexOf(" "+_18e+" ")>=0);
};
var _18f=/\s+/,a1=[""],_190=function(s){
if(typeof s=="string"||s instanceof String){
if(s.indexOf(" ")<0){
a1[0]=s;
return a1;
}else{
return s.split(_18f);
}
}
return s;
};
dojo.addClass=function(node,_191){
node=byId(node);
_191=_190(_191);
var cls=" "+node[_18d]+" ";
for(var i=0,len=_191.length,c;i<len;++i){
c=_191[i];
if(c&&cls.indexOf(" "+c+" ")<0){
cls+=c+" ";
}
}
node[_18d]=d.trim(cls);
};
dojo.removeClass=function(node,_192){
node=byId(node);
var cls;
if(_192!==undefined){
_192=_190(_192);
cls=" "+node[_18d]+" ";
for(var i=0,len=_192.length;i<len;++i){
cls=cls.replace(" "+_192[i]+" "," ");
}
cls=d.trim(cls);
}else{
cls="";
}
if(node[_18d]!=cls){
node[_18d]=cls;
}
};
dojo.toggleClass=function(node,_193,_194){
if(_194===undefined){
_194=!d.hasClass(node,_193);
}
d[_194?"addClass":"removeClass"](node,_193);
};
})();
}
if(!dojo._hasResource["dojo._base.NodeList"]){
dojo._hasResource["dojo._base.NodeList"]=true;
dojo.provide("dojo._base.NodeList");
(function(){
var d=dojo;
var ap=Array.prototype,aps=ap.slice,apc=ap.concat;
var tnl=function(a,_195,_196){
if(!a.sort){
a=aps.call(a,0);
}
var ctor=_196||this._NodeListCtor||d._NodeListCtor;
a.constructor=ctor;
dojo._mixin(a,ctor.prototype);
a._NodeListCtor=ctor;
return _195?a._stash(_195):a;
};
var _197=function(f,a,o){
a=[0].concat(aps.call(a,0));
o=o||d.global;
return function(node){
a[0]=node;
return f.apply(o,a);
};
};
var _198=function(f,o){
return function(){
this.forEach(_197(f,arguments,o));
return this;
};
};
var _199=function(f,o){
return function(){
return this.map(_197(f,arguments,o));
};
};
var _19a=function(f,o){
return function(){
return this.filter(_197(f,arguments,o));
};
};
var _19b=function(f,g,o){
return function(){
var a=arguments,body=_197(f,a,o);
if(g.call(o||d.global,a)){
return this.map(body);
}
this.forEach(body);
return this;
};
};
var _19c=function(a){
return a.length==1&&(typeof a[0]=="string");
};
var _19d=function(node){
var p=node.parentNode;
if(p){
p.removeChild(node);
}
};
dojo.NodeList=function(){
return tnl(Array.apply(null,arguments));
};
d._NodeListCtor=d.NodeList;
var nl=d.NodeList,nlp=nl.prototype;
nl._wrap=nlp._wrap=tnl;
nl._adaptAsMap=_199;
nl._adaptAsForEach=_198;
nl._adaptAsFilter=_19a;
nl._adaptWithCondition=_19b;
d.forEach(["slice","splice"],function(name){
var f=ap[name];
nlp[name]=function(){
return this._wrap(f.apply(this,arguments),name=="slice"?this:null);
};
});
d.forEach(["indexOf","lastIndexOf","every","some"],function(name){
var f=d[name];
nlp[name]=function(){
return f.apply(d,[this].concat(aps.call(arguments,0)));
};
});
d.forEach(["attr","style"],function(name){
nlp[name]=_19b(d[name],_19c);
});
d.forEach(["connect","addClass","removeClass","toggleClass","empty","removeAttr"],function(name){
nlp[name]=_198(d[name]);
});
dojo.extend(dojo.NodeList,{_normalize:function(_19e,_19f){
var _1a0=_19e.parse===true?true:false;
if(typeof _19e.template=="string"){
var _1a1=_19e.templateFunc||(dojo.string&&dojo.string.substitute);
_19e=_1a1?_1a1(_19e.template,_19e):_19e;
}
var type=(typeof _19e);
if(type=="string"||type=="number"){
_19e=dojo._toDom(_19e,(_19f&&_19f.ownerDocument));
if(_19e.nodeType==11){
_19e=dojo._toArray(_19e.childNodes);
}else{
_19e=[_19e];
}
}else{
if(!dojo.isArrayLike(_19e)){
_19e=[_19e];
}else{
if(!dojo.isArray(_19e)){
_19e=dojo._toArray(_19e);
}
}
}
if(_1a0){
_19e._runParse=true;
}
return _19e;
},_cloneNode:function(node){
return node.cloneNode(true);
},_place:function(ary,_1a2,_1a3,_1a4){
if(_1a2.nodeType!=1&&_1a3=="only"){
return;
}
var _1a5=_1a2,_1a6;
var _1a7=ary.length;
for(var i=_1a7-1;i>=0;i--){
var node=(_1a4?this._cloneNode(ary[i]):ary[i]);
if(ary._runParse&&dojo.parser&&dojo.parser.parse){
if(!_1a6){
_1a6=_1a5.ownerDocument.createElement("div");
}
_1a6.appendChild(node);
dojo.parser.parse(_1a6);
node=_1a6.firstChild;
while(_1a6.firstChild){
_1a6.removeChild(_1a6.firstChild);
}
}
if(i==_1a7-1){
dojo.place(node,_1a5,_1a3);
}else{
_1a5.parentNode.insertBefore(node,_1a5);
}
_1a5=node;
}
},_stash:function(_1a8){
this._parent=_1a8;
return this;
},end:function(){
if(this._parent){
return this._parent;
}else{
return new this._NodeListCtor();
}
},concat:function(item){
var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){
return a&&!d.isArray(a)&&(typeof NodeList!="undefined"&&a.constructor===NodeList||a.constructor===this._NodeListCtor)?aps.call(a,0):a;
});
return this._wrap(apc.apply(t,m),this);
},map:function(func,obj){
return this._wrap(d.map(this,func,obj),this);
},forEach:function(_1a9,_1aa){
d.forEach(this,_1a9,_1aa);
return this;
},coords:_199(d.coords),position:_199(d.position),place:function(_1ab,_1ac){
var item=d.query(_1ab)[0];
return this.forEach(function(node){
d.place(node,item,_1ac);
});
},orphan:function(_1ad){
return (_1ad?d._filterQueryResult(this,_1ad):this).forEach(_19d);
},adopt:function(_1ae,_1af){
return d.query(_1ae).place(this[0],_1af)._stash(this);
},query:function(_1b0){
if(!_1b0){
return this;
}
var ret=this.map(function(node){
return d.query(_1b0,node).filter(function(_1b1){
return _1b1!==undefined;
});
});
return this._wrap(apc.apply([],ret),this);
},filter:function(_1b2){
var a=arguments,_1b3=this,_1b4=0;
if(typeof _1b2=="string"){
_1b3=d._filterQueryResult(this,a[0]);
if(a.length==1){
return _1b3._stash(this);
}
_1b4=1;
}
return this._wrap(d.filter(_1b3,a[_1b4],a[_1b4+1]),this);
},addContent:function(_1b5,_1b6){
_1b5=this._normalize(_1b5,this[0]);
for(var i=0,node;node=this[i];i++){
this._place(_1b5,node,_1b6,i>0);
}
return this;
},instantiate:function(_1b7,_1b8){
var c=d.isFunction(_1b7)?_1b7:d.getObject(_1b7);
_1b8=_1b8||{};
return this.forEach(function(node){
new c(_1b8,node);
});
},at:function(){
var t=new this._NodeListCtor();
d.forEach(arguments,function(i){
if(this[i]){
t.push(this[i]);
}
},this);
return t._stash(this);
}});
nl.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];
d.forEach(nl.events,function(evt){
var _1b9="on"+evt;
nlp[_1b9]=function(a,b){
return this.connect(_1b9,a,b);
};
});
})();
}
if(!dojo._hasResource["dojo._base.query"]){
dojo._hasResource["dojo._base.query"]=true;
if(typeof dojo!="undefined"){
dojo.provide("dojo._base.query");
}
(function(d){
var trim=d.trim;
var each=d.forEach;
var qlc=d._NodeListCtor=d.NodeList;
var _1ba=function(){
return d.doc;
};
var _1bb=((d.isWebKit||d.isMozilla)&&((_1ba().compatMode)=="BackCompat"));
var _1bc=!!_1ba().firstChild["children"]?"children":"childNodes";
var _1bd=">~+";
var _1be=false;
var _1bf=function(){
return true;
};
var _1c0=function(_1c1){
if(_1bd.indexOf(_1c1.slice(-1))>=0){
_1c1+=" * ";
}else{
_1c1+=" ";
}
var ts=function(s,e){
return trim(_1c1.slice(s,e));
};
var _1c2=[];
var _1c3=-1,_1c4=-1,_1c5=-1,_1c6=-1,_1c7=-1,inId=-1,_1c8=-1,lc="",cc="",_1c9;
var x=0,ql=_1c1.length,_1ca=null,_1cb=null;
var _1cc=function(){
if(_1c8>=0){
var tv=(_1c8==x)?null:ts(_1c8,x);
_1ca[(_1bd.indexOf(tv)<0)?"tag":"oper"]=tv;
_1c8=-1;
}
};
var _1cd=function(){
if(inId>=0){
_1ca.id=ts(inId,x).replace(/\\/g,"");
inId=-1;
}
};
var _1ce=function(){
if(_1c7>=0){
_1ca.classes.push(ts(_1c7+1,x).replace(/\\/g,""));
_1c7=-1;
}
};
var _1cf=function(){
_1cd();
_1cc();
_1ce();
};
var _1d0=function(){
_1cf();
if(_1c6>=0){
_1ca.pseudos.push({name:ts(_1c6+1,x)});
}
_1ca.loops=(_1ca.pseudos.length||_1ca.attrs.length||_1ca.classes.length);
_1ca.oquery=_1ca.query=ts(_1c9,x);
_1ca.otag=_1ca.tag=(_1ca["oper"])?null:(_1ca.tag||"*");
if(_1ca.tag){
_1ca.tag=_1ca.tag.toUpperCase();
}
if(_1c2.length&&(_1c2[_1c2.length-1].oper)){
_1ca.infixOper=_1c2.pop();
_1ca.query=_1ca.infixOper.query+" "+_1ca.query;
}
_1c2.push(_1ca);
_1ca=null;
};
for(;lc=cc,cc=_1c1.charAt(x),x<ql;x++){
if(lc=="\\"){
continue;
}
if(!_1ca){
_1c9=x;
_1ca={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){
return (_1be)?this.otag:this.tag;
}};
_1c8=x;
}
if(_1c3>=0){
if(cc=="]"){
if(!_1cb.attr){
_1cb.attr=ts(_1c3+1,x);
}else{
_1cb.matchFor=ts((_1c5||_1c3+1),x);
}
var cmf=_1cb.matchFor;
if(cmf){
if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){
_1cb.matchFor=cmf.slice(1,-1);
}
}
_1ca.attrs.push(_1cb);
_1cb=null;
_1c3=_1c5=-1;
}else{
if(cc=="="){
var _1d1=("|~^$*".indexOf(lc)>=0)?lc:"";
_1cb.type=_1d1+cc;
_1cb.attr=ts(_1c3+1,x-_1d1.length);
_1c5=x+1;
}
}
}else{
if(_1c4>=0){
if(cc==")"){
if(_1c6>=0){
_1cb.value=ts(_1c4+1,x);
}
_1c6=_1c4=-1;
}
}else{
if(cc=="#"){
_1cf();
inId=x+1;
}else{
if(cc=="."){
_1cf();
_1c7=x;
}else{
if(cc==":"){
_1cf();
_1c6=x;
}else{
if(cc=="["){
_1cf();
_1c3=x;
_1cb={};
}else{
if(cc=="("){
if(_1c6>=0){
_1cb={name:ts(_1c6+1,x),value:null};
_1ca.pseudos.push(_1cb);
}
_1c4=x;
}else{
if((cc==" ")&&(lc!=cc)){
_1d0();
}
}
}
}
}
}
}
}
}
return _1c2;
};
var _1d2=function(_1d3,_1d4){
if(!_1d3){
return _1d4;
}
if(!_1d4){
return _1d3;
}
return function(){
return _1d3.apply(window,arguments)&&_1d4.apply(window,arguments);
};
};
var _1d5=function(i,arr){
var r=arr||[];
if(i){
r.push(i);
}
return r;
};
var _1d6=function(n){
return (1==n.nodeType);
};
var _1d7="";
var _1d8=function(elem,attr){
if(!elem){
return _1d7;
}
if(attr=="class"){
return elem.className||_1d7;
}
if(attr=="for"){
return elem.htmlFor||_1d7;
}
if(attr=="style"){
return elem.style.cssText||_1d7;
}
return (_1be?elem.getAttribute(attr):elem.getAttribute(attr,2))||_1d7;
};
var _1d9={"*=":function(attr,_1da){
return function(elem){
return (_1d8(elem,attr).indexOf(_1da)>=0);
};
},"^=":function(attr,_1db){
return function(elem){
return (_1d8(elem,attr).indexOf(_1db)==0);
};
},"$=":function(attr,_1dc){
var tval=" "+_1dc;
return function(elem){
var ea=" "+_1d8(elem,attr);
return (ea.lastIndexOf(_1dc)==(ea.length-_1dc.length));
};
},"~=":function(attr,_1dd){
var tval=" "+_1dd+" ";
return function(elem){
var ea=" "+_1d8(elem,attr)+" ";
return (ea.indexOf(tval)>=0);
};
},"|=":function(attr,_1de){
var _1df=" "+_1de+"-";
return function(elem){
var ea=" "+_1d8(elem,attr);
return ((ea==_1de)||(ea.indexOf(_1df)==0));
};
},"=":function(attr,_1e0){
return function(elem){
return (_1d8(elem,attr)==_1e0);
};
}};
var _1e1=(typeof _1ba().firstChild.nextElementSibling=="undefined");
var _1e2=!_1e1?"nextElementSibling":"nextSibling";
var _1e3=!_1e1?"previousElementSibling":"previousSibling";
var _1e4=(_1e1?_1d6:_1bf);
var _1e5=function(node){
while(node=node[_1e3]){
if(_1e4(node)){
return false;
}
}
return true;
};
var _1e6=function(node){
while(node=node[_1e2]){
if(_1e4(node)){
return false;
}
}
return true;
};
var _1e7=function(node){
var root=node.parentNode;
var i=0,tret=root[_1bc],ci=(node["_i"]||-1),cl=(root["_l"]||-1);
if(!tret){
return -1;
}
var l=tret.length;
if(cl==l&&ci>=0&&cl>=0){
return ci;
}
root["_l"]=l;
ci=-1;
for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_1e2]){
if(_1e4(te)){
te["_i"]=++i;
if(node===te){
ci=i;
}
}
}
return ci;
};
var _1e8=function(elem){
return !((_1e7(elem))%2);
};
var _1e9=function(elem){
return ((_1e7(elem))%2);
};
var _1ea={"checked":function(name,_1eb){
return function(elem){
return !!("checked" in elem?elem.checked:elem.selected);
};
},"first-child":function(){
return _1e5;
},"last-child":function(){
return _1e6;
},"only-child":function(name,_1ec){
return function(node){
if(!_1e5(node)){
return false;
}
if(!_1e6(node)){
return false;
}
return true;
};
},"empty":function(name,_1ed){
return function(elem){
var cn=elem.childNodes;
var cnl=elem.childNodes.length;
for(var x=cnl-1;x>=0;x--){
var nt=cn[x].nodeType;
if((nt===1)||(nt==3)){
return false;
}
}
return true;
};
},"contains":function(name,_1ee){
var cz=_1ee.charAt(0);
if(cz=="\""||cz=="'"){
_1ee=_1ee.slice(1,-1);
}
return function(elem){
return (elem.innerHTML.indexOf(_1ee)>=0);
};
},"not":function(name,_1ef){
var p=_1c0(_1ef)[0];
var _1f0={el:1};
if(p.tag!="*"){
_1f0.tag=1;
}
if(!p.classes.length){
_1f0.classes=1;
}
var ntf=_1f1(p,_1f0);
return function(elem){
return (!ntf(elem));
};
},"nth-child":function(name,_1f2){
var pi=parseInt;
if(_1f2=="odd"){
return _1e9;
}else{
if(_1f2=="even"){
return _1e8;
}
}
if(_1f2.indexOf("n")!=-1){
var _1f3=_1f2.split("n",2);
var pred=_1f3[0]?((_1f3[0]=="-")?-1:pi(_1f3[0])):1;
var idx=_1f3[1]?pi(_1f3[1]):0;
var lb=0,ub=-1;
if(pred>0){
if(idx<0){
idx=(idx%pred)&&(pred+(idx%pred));
}else{
if(idx>0){
if(idx>=pred){
lb=idx-idx%pred;
}
idx=idx%pred;
}
}
}else{
if(pred<0){
pred*=-1;
if(idx>0){
ub=idx;
idx=idx%pred;
}
}
}
if(pred>0){
return function(elem){
var i=_1e7(elem);
return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);
};
}else{
_1f2=idx;
}
}
var _1f4=pi(_1f2);
return function(elem){
return (_1e7(elem)==_1f4);
};
}};
var _1f5=(d.isIE)?function(cond){
var clc=cond.toLowerCase();
if(clc=="class"){
cond="className";
}
return function(elem){
return (_1be?elem.getAttribute(cond):elem[cond]||elem[clc]);
};
}:function(cond){
return function(elem){
return (elem&&elem.getAttribute&&elem.hasAttribute(cond));
};
};
var _1f1=function(_1f6,_1f7){
if(!_1f6){
return _1bf;
}
_1f7=_1f7||{};
var ff=null;
if(!("el" in _1f7)){
ff=_1d2(ff,_1d6);
}
if(!("tag" in _1f7)){
if(_1f6.tag!="*"){
ff=_1d2(ff,function(elem){
return (elem&&(elem.tagName==_1f6.getTag()));
});
}
}
if(!("classes" in _1f7)){
each(_1f6.classes,function(_1f8,idx,arr){
var re=new RegExp("(?:^|\\s)"+_1f8+"(?:\\s|$)");
ff=_1d2(ff,function(elem){
return re.test(elem.className);
});
ff.count=idx;
});
}
if(!("pseudos" in _1f7)){
each(_1f6.pseudos,function(_1f9){
var pn=_1f9.name;
if(_1ea[pn]){
ff=_1d2(ff,_1ea[pn](pn,_1f9.value));
}
});
}
if(!("attrs" in _1f7)){
each(_1f6.attrs,function(attr){
var _1fa;
var a=attr.attr;
if(attr.type&&_1d9[attr.type]){
_1fa=_1d9[attr.type](a,attr.matchFor);
}else{
if(a.length){
_1fa=_1f5(a);
}
}
if(_1fa){
ff=_1d2(ff,_1fa);
}
});
}
if(!("id" in _1f7)){
if(_1f6.id){
ff=_1d2(ff,function(elem){
return (!!elem&&(elem.id==_1f6.id));
});
}
}
if(!ff){
if(!("default" in _1f7)){
ff=_1bf;
}
}
return ff;
};
var _1fb=function(_1fc){
return function(node,ret,bag){
while(node=node[_1e2]){
if(_1e1&&(!_1d6(node))){
continue;
}
if((!bag||_1fd(node,bag))&&_1fc(node)){
ret.push(node);
}
break;
}
return ret;
};
};
var _1fe=function(_1ff){
return function(root,ret,bag){
var te=root[_1e2];
while(te){
if(_1e4(te)){
if(bag&&!_1fd(te,bag)){
break;
}
if(_1ff(te)){
ret.push(te);
}
}
te=te[_1e2];
}
return ret;
};
};
var _200=function(_201){
_201=_201||_1bf;
return function(root,ret,bag){
var te,x=0,tret=root[_1bc];
while(te=tret[x++]){
if(_1e4(te)&&(!bag||_1fd(te,bag))&&(_201(te,x))){
ret.push(te);
}
}
return ret;
};
};
var _202=function(node,root){
var pn=node.parentNode;
while(pn){
if(pn==root){
break;
}
pn=pn.parentNode;
}
return !!pn;
};
var _203={};
var _204=function(_205){
var _206=_203[_205.query];
if(_206){
return _206;
}
var io=_205.infixOper;
var oper=(io?io.oper:"");
var _207=_1f1(_205,{el:1});
var qt=_205.tag;
var _208=("*"==qt);
var ecs=_1ba()["getElementsByClassName"];
if(!oper){
if(_205.id){
_207=(!_205.loops&&_208)?_1bf:_1f1(_205,{el:1,id:1});
_206=function(root,arr){
var te=d.byId(_205.id,(root.ownerDocument||root));
if(!te||!_207(te)){
return;
}
if(9==root.nodeType){
return _1d5(te,arr);
}else{
if(_202(te,root)){
return _1d5(te,arr);
}
}
};
}else{
if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_205.classes.length&&!_1bb){
_207=_1f1(_205,{el:1,classes:1,id:1});
var _209=_205.classes.join(" ");
_206=function(root,arr,bag){
var ret=_1d5(0,arr),te,x=0;
var tret=root.getElementsByClassName(_209);
while((te=tret[x++])){
if(_207(te,root)&&_1fd(te,bag)){
ret.push(te);
}
}
return ret;
};
}else{
if(!_208&&!_205.loops){
_206=function(root,arr,bag){
var ret=_1d5(0,arr),te,x=0;
var tret=root.getElementsByTagName(_205.getTag());
while((te=tret[x++])){
if(_1fd(te,bag)){
ret.push(te);
}
}
return ret;
};
}else{
_207=_1f1(_205,{el:1,tag:1,id:1});
_206=function(root,arr,bag){
var ret=_1d5(0,arr),te,x=0;
var tret=root.getElementsByTagName(_205.getTag());
while((te=tret[x++])){
if(_207(te,root)&&_1fd(te,bag)){
ret.push(te);
}
}
return ret;
};
}
}
}
}else{
var _20a={el:1};
if(_208){
_20a.tag=1;
}
_207=_1f1(_205,_20a);
if("+"==oper){
_206=_1fb(_207);
}else{
if("~"==oper){
_206=_1fe(_207);
}else{
if(">"==oper){
_206=_200(_207);
}
}
}
}
return _203[_205.query]=_206;
};
var _20b=function(root,_20c){
var _20d=_1d5(root),qp,x,te,qpl=_20c.length,bag,ret;
for(var i=0;i<qpl;i++){
ret=[];
qp=_20c[i];
x=_20d.length-1;
if(x>0){
bag={};
ret.nozip=true;
}
var gef=_204(qp);
for(var j=0;(te=_20d[j]);j++){
gef(te,ret,bag);
}
if(!ret.length){
break;
}
_20d=ret;
}
return ret;
};
var _20e={},_20f={};
var _210=function(_211){
var _212=_1c0(trim(_211));
if(_212.length==1){
var tef=_204(_212[0]);
return function(root){
var r=tef(root,new qlc());
if(r){
r.nozip=true;
}
return r;
};
}
return function(root){
return _20b(root,_212);
};
};
var nua=navigator.userAgent;
var wk="WebKit/";
var _213=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));
var _214=d.isIE?"commentStrip":"nozip";
var qsa="querySelectorAll";
var _215=(!!_1ba()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_213));
var _216=/n\+\d|([^ ])?([>~+])([^ =])?/g;
var _217=function(_218,pre,ch,post){
return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_218;
};
var _219=function(_21a,_21b){
_21a=_21a.replace(_216,_217);
if(_215){
var _21c=_20f[_21a];
if(_21c&&!_21b){
return _21c;
}
}
var _21d=_20e[_21a];
if(_21d){
return _21d;
}
var qcz=_21a.charAt(0);
var _21e=(-1==_21a.indexOf(" "));
if((_21a.indexOf("#")>=0)&&(_21e)){
_21b=true;
}
var _21f=(_215&&(!_21b)&&(_1bd.indexOf(qcz)==-1)&&(!d.isIE||(_21a.indexOf(":")==-1))&&(!(_1bb&&(_21a.indexOf(".")>=0)))&&(_21a.indexOf(":contains")==-1)&&(_21a.indexOf(":checked")==-1)&&(_21a.indexOf("|=")==-1));
if(_21f){
var tq=(_1bd.indexOf(_21a.charAt(_21a.length-1))>=0)?(_21a+" *"):_21a;
return _20f[_21a]=function(root){
try{
if(!((9==root.nodeType)||_21e)){
throw "";
}
var r=root[qsa](tq);
r[_214]=true;
return r;
}
catch(e){
return _219(_21a,true)(root);
}
};
}else{
var _220=_21a.split(/\s*,\s*/);
return _20e[_21a]=((_220.length<2)?_210(_21a):function(root){
var _221=0,ret=[],tp;
while((tp=_220[_221++])){
ret=ret.concat(_210(tp)(root));
}
return ret;
});
}
};
var _222=0;
var _223=d.isIE?function(node){
if(_1be){
return (node.getAttribute("_uid")||node.setAttribute("_uid",++_222)||_222);
}else{
return node.uniqueID;
}
}:function(node){
return (node._uid||(node._uid=++_222));
};
var _1fd=function(node,bag){
if(!bag){
return 1;
}
var id=_223(node);
if(!bag[id]){
return bag[id]=1;
}
return 0;
};
var _224="_zipIdx";
var _225=function(arr){
if(arr&&arr.nozip){
return (qlc._wrap)?qlc._wrap(arr):arr;
}
var ret=new qlc();
if(!arr||!arr.length){
return ret;
}
if(arr[0]){
ret.push(arr[0]);
}
if(arr.length<2){
return ret;
}
_222++;
if(d.isIE&&_1be){
var _226=_222+"";
arr[0].setAttribute(_224,_226);
for(var x=1,te;te=arr[x];x++){
if(arr[x].getAttribute(_224)!=_226){
ret.push(te);
}
te.setAttribute(_224,_226);
}
}else{
if(d.isIE&&arr.commentStrip){
try{
for(var x=1,te;te=arr[x];x++){
if(_1d6(te)){
ret.push(te);
}
}
}
catch(e){
}
}else{
if(arr[0]){
arr[0][_224]=_222;
}
for(var x=1,te;te=arr[x];x++){
if(arr[x][_224]!=_222){
ret.push(te);
}
te[_224]=_222;
}
}
}
return ret;
};
d.query=function(_227,root){
qlc=d._NodeListCtor;
if(!_227){
return new qlc();
}
if(_227.constructor==qlc){
return _227;
}
if(typeof _227!="string"){
return new qlc(_227);
}
if(typeof root=="string"){
root=d.byId(root);
if(!root){
return new qlc();
}
}
root=root||_1ba();
var od=root.ownerDocument||root.documentElement;
_1be=(root.contentType&&root.contentType=="application/xml")||(d.isOpera&&(root.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));
var r=_219(_227)(root);
if(r&&r.nozip&&!qlc._wrap){
return r;
}
return _225(r);
};
d.query.pseudos=_1ea;
d._filterQueryResult=function(_228,_229){
var _22a=new d._NodeListCtor();
var _22b=_1f1(_1c0(_229)[0]);
for(var x=0,te;te=_228[x];x++){
if(_22b(te)){
_22a.push(te);
}
}
return _22a;
};
})(this["queryPortability"]||this["acme"]||dojo);
}
if(!dojo._hasResource["dojo._base.xhr"]){
dojo._hasResource["dojo._base.xhr"]=true;
dojo.provide("dojo._base.xhr");
(function(){
var _22c=dojo,cfg=_22c.config;
function _22d(obj,name,_22e){
if(_22e===null){
return;
}
var val=obj[name];
if(typeof val=="string"){
obj[name]=[val,_22e];
}else{
if(_22c.isArray(val)){
val.push(_22e);
}else{
obj[name]=_22e;
}
}
};
dojo.fieldToObject=function(_22f){
var ret=null;
var item=_22c.byId(_22f);
if(item){
var _230=item.name;
var type=(item.type||"").toLowerCase();
if(_230&&type&&!item.disabled){
if(type=="radio"||type=="checkbox"){
if(item.checked){
ret=item.value;
}
}else{
if(item.multiple){
ret=[];
_22c.query("option",item).forEach(function(opt){
if(opt.selected){
ret.push(opt.value);
}
});
}else{
ret=item.value;
}
}
}
}
return ret;
};
dojo.formToObject=function(_231){
var ret={};
var _232="file|submit|image|reset|button|";
_22c.forEach(dojo.byId(_231).elements,function(item){
var _233=item.name;
var type=(item.type||"").toLowerCase();
if(_233&&type&&_232.indexOf(type)==-1&&!item.disabled){
_22d(ret,_233,_22c.fieldToObject(item));
if(type=="image"){
ret[_233+".x"]=ret[_233+".y"]=ret[_233].x=ret[_233].y=0;
}
}
});
return ret;
};
dojo.objectToQuery=function(map){
var enc=encodeURIComponent;
var _234=[];
var _235={};
for(var name in map){
var _236=map[name];
if(_236!=_235[name]){
var _237=enc(name)+"=";
if(_22c.isArray(_236)){
for(var i=0;i<_236.length;i++){
_234.push(_237+enc(_236[i]));
}
}else{
_234.push(_237+enc(_236));
}
}
}
return _234.join("&");
};
dojo.formToQuery=function(_238){
return _22c.objectToQuery(_22c.formToObject(_238));
};
dojo.formToJson=function(_239,_23a){
return _22c.toJson(_22c.formToObject(_239),_23a);
};
dojo.queryToObject=function(str){
var ret={};
var qp=str.split("&");
var dec=decodeURIComponent;
_22c.forEach(qp,function(item){
if(item.length){
var _23b=item.split("=");
var name=dec(_23b.shift());
var val=dec(_23b.join("="));
if(typeof ret[name]=="string"){
ret[name]=[ret[name]];
}
if(_22c.isArray(ret[name])){
ret[name].push(val);
}else{
ret[name]=val;
}
}
});
return ret;
};
dojo._blockAsync=false;
var _23c=_22c._contentHandlers=dojo.contentHandlers={text:function(xhr){
return xhr.responseText;
},json:function(xhr){
return _22c.fromJson(xhr.responseText||null);
},"json-comment-filtered":function(xhr){
if(!dojo.config.useCommentedJson){
}
var _23d=xhr.responseText;
var _23e=_23d.indexOf("/*");
var _23f=_23d.lastIndexOf("*/");
if(_23e==-1||_23f==-1){
throw new Error("JSON was not comment filtered");
}
return _22c.fromJson(_23d.substring(_23e+2,_23f));
},javascript:function(xhr){
return _22c.eval(xhr.responseText);
},xml:function(xhr){
var _240=xhr.responseXML;
if(_22c.isIE&&(!_240||!_240.documentElement)){
var ms=function(n){
return "MSXML"+n+".DOMDocument";
};
var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];
_22c.some(dp,function(p){
try{
var dom=new ActiveXObject(p);
dom.async=false;
dom.loadXML(xhr.responseText);
_240=dom;
}
catch(e){
return false;
}
return true;
});
}
return _240;
},"json-comment-optional":function(xhr){
if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){
return _23c["json-comment-filtered"](xhr);
}else{
return _23c["json"](xhr);
}
}};
dojo._ioSetArgs=function(args,_241,_242,_243){
var _244={args:args,url:args.url};
var _245=null;
if(args.form){
var form=_22c.byId(args.form);
var _246=form.getAttributeNode("action");
_244.url=_244.url||(_246?_246.value:null);
_245=_22c.formToObject(form);
}
var _247=[{}];
if(_245){
_247.push(_245);
}
if(args.content){
_247.push(args.content);
}
if(args.preventCache){
_247.push({"dojo.preventCache":new Date().valueOf()});
}
_244.query=_22c.objectToQuery(_22c.mixin.apply(null,_247));
_244.handleAs=args.handleAs||"text";
var d=new _22c.Deferred(_241);
d.addCallbacks(_242,function(_248){
return _243(_248,d);
});
var ld=args.load;
if(ld&&_22c.isFunction(ld)){
d.addCallback(function(_249){
return ld.call(args,_249,_244);
});
}
var err=args.error;
if(err&&_22c.isFunction(err)){
d.addErrback(function(_24a){
return err.call(args,_24a,_244);
});
}
var _24b=args.handle;
if(_24b&&_22c.isFunction(_24b)){
d.addBoth(function(_24c){
return _24b.call(args,_24c,_244);
});
}
if(cfg.ioPublish&&_22c.publish&&_244.args.ioPublish!==false){
d.addCallbacks(function(res){
_22c.publish("/dojo/io/load",[d,res]);
return res;
},function(res){
_22c.publish("/dojo/io/error",[d,res]);
return res;
});
d.addBoth(function(res){
_22c.publish("/dojo/io/done",[d,res]);
return res;
});
}
d.ioArgs=_244;
return d;
};
var _24d=function(dfd){
dfd.canceled=true;
var xhr=dfd.ioArgs.xhr;
var _24e=typeof xhr.abort;
if(_24e=="function"||_24e=="object"||_24e=="unknown"){
xhr.abort();
}
var err=dfd.ioArgs.error;
if(!err){
err=new Error("xhr cancelled");
err.dojoType="cancel";
}
return err;
};
var _24f=function(dfd){
var ret=_23c[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);
return ret===undefined?null:ret;
};
var _250=function(_251,dfd){
if(!dfd.ioArgs.args.failOk){
console.error(_251);
}
return _251;
};
var _252=null;
var _253=[];
var _254=0;
var _255=function(dfd){
if(_254<=0){
_254=0;
if(cfg.ioPublish&&_22c.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){
_22c.publish("/dojo/io/stop");
}
}
};
var _256=function(){
var now=(new Date()).getTime();
if(!_22c._blockAsync){
for(var i=0,tif;i<_253.length&&(tif=_253[i]);i++){
var dfd=tif.dfd;
var func=function(){
if(!dfd||dfd.canceled||!tif.validCheck(dfd)){
_253.splice(i--,1);
_254-=1;
}else{
if(tif.ioCheck(dfd)){
_253.splice(i--,1);
tif.resHandle(dfd);
_254-=1;
}else{
if(dfd.startTime){
if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){
_253.splice(i--,1);
var err=new Error("timeout exceeded");
err.dojoType="timeout";
dfd.errback(err);
dfd.cancel();
_254-=1;
}
}
}
}
};
if(dojo.config.debugAtAllCosts){
func.call(this);
}else{
try{
func.call(this);
}
catch(e){
dfd.errback(e);
}
}
}
}
_255(dfd);
if(!_253.length){
clearInterval(_252);
_252=null;
return;
}
};
dojo._ioCancelAll=function(){
try{
_22c.forEach(_253,function(i){
try{
i.dfd.cancel();
}
catch(e){
}
});
}
catch(e){
}
};
if(_22c.isIE){
_22c.addOnWindowUnload(_22c._ioCancelAll);
}
_22c._ioNotifyStart=function(dfd){
if(cfg.ioPublish&&_22c.publish&&dfd.ioArgs.args.ioPublish!==false){
if(!_254){
_22c.publish("/dojo/io/start");
}
_254+=1;
_22c.publish("/dojo/io/send",[dfd]);
}
};
_22c._ioWatch=function(dfd,_257,_258,_259){
var args=dfd.ioArgs.args;
if(args.timeout){
dfd.startTime=(new Date()).getTime();
}
_253.push({dfd:dfd,validCheck:_257,ioCheck:_258,resHandle:_259});
if(!_252){
_252=setInterval(_256,50);
}
if(args.sync){
_256();
}
};
var _25a="application/x-www-form-urlencoded";
var _25b=function(dfd){
return dfd.ioArgs.xhr.readyState;
};
var _25c=function(dfd){
return 4==dfd.ioArgs.xhr.readyState;
};
var _25d=function(dfd){
var xhr=dfd.ioArgs.xhr;
if(_22c._isDocumentOk(xhr)){
dfd.callback(dfd);
}else{
var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);
err.status=xhr.status;
err.responseText=xhr.responseText;
dfd.errback(err);
}
};
dojo._ioAddQueryToUrl=function(_25e){
if(_25e.query.length){
_25e.url+=(_25e.url.indexOf("?")==-1?"?":"&")+_25e.query;
_25e.query=null;
}
};
dojo.xhr=function(_25f,args,_260){
var dfd=_22c._ioSetArgs(args,_24d,_24f,_250);
var _261=dfd.ioArgs;
var xhr=_261.xhr=_22c._xhrObj(_261.args);
if(!xhr){
dfd.cancel();
return dfd;
}
if("postData" in args){
_261.query=args.postData;
}else{
if("putData" in args){
_261.query=args.putData;
}else{
if("rawBody" in args){
_261.query=args.rawBody;
}else{
if((arguments.length>2&&!_260)||"POST|PUT".indexOf(_25f.toUpperCase())==-1){
_22c._ioAddQueryToUrl(_261);
}
}
}
}
xhr.open(_25f,_261.url,args.sync!==true,args.user||undefined,args.password||undefined);
if(args.headers){
for(var hdr in args.headers){
if(hdr.toLowerCase()==="content-type"&&!args.contentType){
args.contentType=args.headers[hdr];
}else{
if(args.headers[hdr]){
xhr.setRequestHeader(hdr,args.headers[hdr]);
}
}
}
}
xhr.setRequestHeader("Content-Type",args.contentType||_25a);
if(!args.headers||!("X-Requested-With" in args.headers)){
xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");
}
_22c._ioNotifyStart(dfd);
if(dojo.config.debugAtAllCosts){
xhr.send(_261.query);
}else{
try{
xhr.send(_261.query);
}
catch(e){
_261.error=e;
dfd.cancel();
}
}
_22c._ioWatch(dfd,_25b,_25c,_25d);
xhr=null;
return dfd;
};
dojo.xhrGet=function(args){
return _22c.xhr("GET",args);
};
dojo.rawXhrPost=dojo.xhrPost=function(args){
return _22c.xhr("POST",args,true);
};
dojo.rawXhrPut=dojo.xhrPut=function(args){
return _22c.xhr("PUT",args,true);
};
dojo.xhrDelete=function(args){
return _22c.xhr("DELETE",args);
};
})();
}
if(!dojo._hasResource["dojo._base.fx"]){
dojo._hasResource["dojo._base.fx"]=true;
dojo.provide("dojo._base.fx");
(function(){
var d=dojo;
var _262=d._mixin;
dojo._Line=function(_263,end){
this.start=_263;
this.end=end;
};
dojo._Line.prototype.getValue=function(n){
return ((this.end-this.start)*n)+this.start;
};
dojo.Animation=function(args){
_262(this,args);
if(d.isArray(this.curve)){
this.curve=new d._Line(this.curve[0],this.curve[1]);
}
};
d._Animation=d.Animation;
d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){
var _264=this._percent,_265=this.easing;
return _265?_265(_264):_264;
},_fire:function(evt,args){
var a=args||[];
if(this[evt]){
if(d.config.debugAtAllCosts){
this[evt].apply(this,a);
}else{
try{
this[evt].apply(this,a);
}
catch(e){
console.error("exception in animation handler for:",evt);
console.error(e);
}
}
}
return this;
},play:function(_266,_267){
var _268=this;
if(_268._delayTimer){
_268._clearTimer();
}
if(_267){
_268._stopTimer();
_268._active=_268._paused=false;
_268._percent=0;
}else{
if(_268._active&&!_268._paused){
return _268;
}
}
_268._fire("beforeBegin",[_268.node]);
var de=_266||_268.delay,_269=dojo.hitch(_268,"_play",_267);
if(de>0){
_268._delayTimer=setTimeout(_269,de);
return _268;
}
_269();
return _268;
},_play:function(_26a){
var _26b=this;
if(_26b._delayTimer){
_26b._clearTimer();
}
_26b._startTime=new Date().valueOf();
if(_26b._paused){
_26b._startTime-=_26b.duration*_26b._percent;
}
_26b._endTime=_26b._startTime+_26b.duration;
_26b._active=true;
_26b._paused=false;
var _26c=_26b.curve.getValue(_26b._getStep());
if(!_26b._percent){
if(!_26b._startRepeatCount){
_26b._startRepeatCount=_26b.repeat;
}
_26b._fire("onBegin",[_26c]);
}
_26b._fire("onPlay",[_26c]);
_26b._cycle();
return _26b;
},pause:function(){
var _26d=this;
if(_26d._delayTimer){
_26d._clearTimer();
}
_26d._stopTimer();
if(!_26d._active){
return _26d;
}
_26d._paused=true;
_26d._fire("onPause",[_26d.curve.getValue(_26d._getStep())]);
return _26d;
},gotoPercent:function(_26e,_26f){
var _270=this;
_270._stopTimer();
_270._active=_270._paused=true;
_270._percent=_26e;
if(_26f){
_270.play();
}
return _270;
},stop:function(_271){
var _272=this;
if(_272._delayTimer){
_272._clearTimer();
}
if(!_272._timer){
return _272;
}
_272._stopTimer();
if(_271){
_272._percent=1;
}
_272._fire("onStop",[_272.curve.getValue(_272._getStep())]);
_272._active=_272._paused=false;
return _272;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}
return "stopped";
},_cycle:function(){
var _273=this;
if(_273._active){
var curr=new Date().valueOf();
var step=(curr-_273._startTime)/(_273._endTime-_273._startTime);
if(step>=1){
step=1;
}
_273._percent=step;
if(_273.easing){
step=_273.easing(step);
}
_273._fire("onAnimate",[_273.curve.getValue(step)]);
if(_273._percent<1){
_273._startTimer();
}else{
_273._active=false;
if(_273.repeat>0){
_273.repeat--;
_273.play(null,true);
}else{
if(_273.repeat==-1){
_273.play(null,true);
}else{
if(_273._startRepeatCount){
_273.repeat=_273._startRepeatCount;
_273._startRepeatCount=0;
}
}
}
_273._percent=0;
_273._fire("onEnd",[_273.node]);
!_273.repeat&&_273._stopTimer();
}
}
return _273;
},_clearTimer:function(){
clearTimeout(this._delayTimer);
delete this._delayTimer;
}});
var ctr=0,_274=[],_275=null,_276={run:function(){
}};
d.extend(d.Animation,{_startTimer:function(){
if(!this._timer){
this._timer=d.connect(_276,"run",this,"_cycle");
ctr++;
}
if(!_275){
_275=setInterval(d.hitch(_276,"run"),this.rate);
}
},_stopTimer:function(){
if(this._timer){
d.disconnect(this._timer);
this._timer=null;
ctr--;
}
if(ctr<=0){
clearInterval(_275);
_275=null;
ctr=0;
}
}});
var _277=d.isIE?function(node){
var ns=node.style;
if(!ns.width.length&&d.style(node,"width")=="auto"){
ns.width="auto";
}
}:function(){
};
dojo._fade=function(args){
args.node=d.byId(args.node);
var _278=_262({properties:{}},args),_279=(_278.properties.opacity={});
_279.start=!("start" in _278)?function(){
return +d.style(_278.node,"opacity")||0;
}:_278.start;
_279.end=_278.end;
var anim=d.animateProperty(_278);
d.connect(anim,"beforeBegin",d.partial(_277,_278.node));
return anim;
};
dojo.fadeIn=function(args){
return d._fade(_262({end:1},args));
};
dojo.fadeOut=function(args){
return d._fade(_262({end:0},args));
};
dojo._defaultEasing=function(n){
return 0.5+((Math.sin((n+1.5)*Math.PI))/2);
};
var _27a=function(_27b){
this._properties=_27b;
for(var p in _27b){
var prop=_27b[p];
if(prop.start instanceof d.Color){
prop.tempColor=new d.Color();
}
}
};
_27a.prototype.getValue=function(r){
var ret={};
for(var p in this._properties){
var prop=this._properties[p],_27c=prop.start;
if(_27c instanceof d.Color){
ret[p]=d.blendColors(_27c,prop.end,r,prop.tempColor).toCss();
}else{
if(!d.isArray(_27c)){
ret[p]=((prop.end-_27c)*r)+_27c+(p!="opacity"?prop.units||"px":0);
}
}
}
return ret;
};
dojo.animateProperty=function(args){
var n=args.node=d.byId(args.node);
if(!args.easing){
args.easing=d._defaultEasing;
}
var anim=new d.Animation(args);
d.connect(anim,"beforeBegin",anim,function(){
var pm={};
for(var p in this.properties){
if(p=="width"||p=="height"){
this.node.display="block";
}
var prop=this.properties[p];
if(d.isFunction(prop)){
prop=prop(n);
}
prop=pm[p]=_262({},(d.isObject(prop)?prop:{end:prop}));
if(d.isFunction(prop.start)){
prop.start=prop.start(n);
}
if(d.isFunction(prop.end)){
prop.end=prop.end(n);
}
var _27d=(p.toLowerCase().indexOf("color")>=0);
function _27e(node,p){
var v={height:node.offsetHeight,width:node.offsetWidth}[p];
if(v!==undefined){
return v;
}
v=d.style(node,p);
return (p=="opacity")?+v:(_27d?v:parseFloat(v));
};
if(!("end" in prop)){
prop.end=_27e(n,p);
}else{
if(!("start" in prop)){
prop.start=_27e(n,p);
}
}
if(_27d){
prop.start=new d.Color(prop.start);
prop.end=new d.Color(prop.end);
}else{
prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);
}
}
this.curve=new _27a(pm);
});
d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));
return anim;
};
dojo.anim=function(node,_27f,_280,_281,_282,_283){
return d.animateProperty({node:node,duration:_280||d.Animation.prototype.duration,properties:_27f,easing:_281,onEnd:_282}).play(_283||0);
};
})();
}
if(!dojo._hasResource["dojo._base.browser"]){
dojo._hasResource["dojo._base.browser"]=true;
dojo.provide("dojo._base.browser");
dojo.forEach(dojo.config.require,function(i){
dojo["require"](i);
});
}
if(!dojo._hasResource["dijit._base.manager"]){
dojo._hasResource["dijit._base.manager"]=true;
dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function(){
this._hash={};
this.length=0;
},add:function(_284){
if(this._hash[_284.id]){
throw new Error("Tried to register widget with id=="+_284.id+" but that id is already registered");
}
this._hash[_284.id]=_284;
this.length++;
},remove:function(id){
if(this._hash[id]){
delete this._hash[id];
this.length--;
}
},forEach:function(func,_285){
_285=_285||dojo.global;
var i=0,id;
for(id in this._hash){
func.call(_285,this._hash[id],i++,this._hash);
}
return this;
},filter:function(_286,_287){
_287=_287||dojo.global;
var res=new dijit.WidgetSet(),i=0,id;
for(id in this._hash){
var w=this._hash[id];
if(_286.call(_287,w,i++,this._hash)){
res.add(w);
}
}
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
var res=new dijit.WidgetSet(),id,_288;
for(id in this._hash){
_288=this._hash[id];
if(_288.declaredClass==cls){
res.add(_288);
}
}
return res;
},toArray:function(){
var ar=[];
for(var id in this._hash){
ar.push(this._hash[id]);
}
return ar;
},map:function(func,_289){
return dojo.map(this.toArray(),func,_289);
},every:function(func,_28a){
_28a=_28a||dojo.global;
var x=0,i;
for(i in this._hash){
if(!func.call(_28a,this._hash[i],x++,this._hash)){
return false;
}
}
return true;
},some:function(func,_28b){
_28b=_28b||dojo.global;
var x=0,i;
for(i in this._hash){
if(func.call(_28b,this._hash[i],x++,this._hash)){
return true;
}
}
return false;
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_28c){
var id;
do{
id=_28c+"_"+(_28c in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_28c]:dijit._widgetTypeCtr[_28c]=0);
}while(dijit.byId(id));
return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;
};
dijit.findWidgets=function(root){
var _28d=[];
function _28e(root){
for(var node=root.firstChild;node;node=node.nextSibling){
if(node.nodeType==1){
var _28f=node.getAttribute("widgetId");
if(_28f){
var _290=dijit.byId(_28f);
_28d.push(_290);
}else{
_28e(node);
}
}
}
};
_28e(root);
return _28d;
};
dijit._destroyAll=function(){
dijit._curFocus=null;
dijit._prevFocus=null;
dijit._activeStack=[];
dojo.forEach(dijit.findWidgets(dojo.body()),function(_291){
if(!_291._destroyed){
if(_291.destroyRecursive){
_291.destroyRecursive();
}else{
if(_291.destroy){
_291.destroy();
}
}
}
});
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit._destroyAll();
});
}
dijit.byId=function(id){
return typeof id=="string"?dijit.registry._hash[id]:id;
};
dijit.byNode=function(node){
return dijit.registry.byId(node.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(node){
while(node){
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
return dijit.byId(id);
}
node=node.parentNode;
}
return null;
};
dijit._isElementShown=function(elem){
var _292=dojo.style(elem);
return (_292.visibility!="hidden")&&(_292.visibility!="collapsed")&&(_292.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function(elem){
if(dojo.attr(elem,"disabled")){
return false;
}else{
if(dojo.hasAttr(elem,"tabIndex")){
return dojo.attr(elem,"tabIndex")>=0;
}else{
switch(elem.nodeName.toLowerCase()){
case "a":
return dojo.hasAttr(elem,"href");
case "area":
case "button":
case "input":
case "object":
case "select":
case "textarea":
return true;
case "iframe":
if(dojo.isMoz){
return elem.contentDocument.designMode=="on";
}else{
if(dojo.isWebKit){
var doc=elem.contentDocument,body=doc&&doc.body;
return body&&body.contentEditable=="true";
}else{
try{
doc=elem.contentWindow.document;
body=doc&&doc.body;
return body&&body.firstChild&&body.firstChild.contentEditable=="true";
}
catch(e){
return false;
}
}
}
default:
return elem.contentEditable=="true";
}
}
}
};
dijit._getTabNavigable=function(root){
var _293,last,_294,_295,_296,_297;
var _298=function(_299){
dojo.query("> *",_299).forEach(function(_29a){
var _29b=dijit._isElementShown(_29a);
if(_29b&&dijit.isTabNavigable(_29a)){
var _29c=dojo.attr(_29a,"tabIndex");
if(!dojo.hasAttr(_29a,"tabIndex")||_29c==0){
if(!_293){
_293=_29a;
}
last=_29a;
}else{
if(_29c>0){
if(!_294||_29c<_295){
_295=_29c;
_294=_29a;
}
if(!_296||_29c>=_297){
_297=_29c;
_296=_29a;
}
}
}
}
if(_29b&&_29a.nodeName.toUpperCase()!="SELECT"){
_298(_29a);
}
});
};
if(dijit._isElementShown(root)){
_298(root);
}
return {first:_293,last:last,lowest:_294,highest:_296};
};
dijit.getFirstInTabbingOrder=function(root){
var _29d=dijit._getTabNavigable(dojo.byId(root));
return _29d.lowest?_29d.lowest:_29d.first;
};
dijit.getLastInTabbingOrder=function(root){
var _29e=dijit._getTabNavigable(dojo.byId(root));
return _29e.last?_29e.last:_29e.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dijit._base.focus"]){
dojo._hasResource["dijit._base.focus"]=true;
dojo.provide("dijit._base.focus");
dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){
return dijit.getBookmark().isCollapsed;
},getBookmark:function(){
var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;
if(dojo.global.getSelection){
sel=dojo.global.getSelection();
if(sel){
if(sel.isCollapsed){
tg=cf?cf.tagName:"";
if(tg){
tg=tg.toLowerCase();
if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){
sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};
return {isCollapsed:(sel.end<=sel.start),mark:sel};
}
}
bm={isCollapsed:true};
}else{
rg=sel.getRangeAt(0);
bm={isCollapsed:false,mark:rg.cloneRange()};
}
}
}else{
if(sel){
tg=cf?cf.tagName:"";
tg=tg.toLowerCase();
if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){
if(sel.type&&sel.type.toLowerCase()=="none"){
return {isCollapsed:true,mark:null};
}else{
rg=sel.createRange();
return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};
}
}
bm={};
try{
rg=sel.createRange();
bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);
}
catch(e){
bm.isCollapsed=true;
return bm;
}
if(sel.type.toUpperCase()=="CONTROL"){
if(rg.length){
bm.mark=[];
var i=0,len=rg.length;
while(i<len){
bm.mark.push(rg.item(i++));
}
}else{
bm.isCollapsed=true;
bm.mark=null;
}
}else{
bm.mark=rg.getBookmark();
}
}else{
}
}
return bm;
},moveToBookmark:function(_29f){
var _2a0=dojo.doc,mark=_29f.mark;
if(mark){
if(dojo.global.getSelection){
var sel=dojo.global.getSelection();
if(sel&&sel.removeAllRanges){
if(mark.pRange){
var r=mark;
var n=r.node;
n.selectionStart=r.start;
n.selectionEnd=r.end;
}else{
sel.removeAllRanges();
sel.addRange(mark);
}
}else{
}
}else{
if(_2a0.selection&&mark){
var rg;
if(mark.pRange){
rg=mark.range;
}else{
if(dojo.isArray(mark)){
rg=_2a0.body.createControlRange();
dojo.forEach(mark,function(n){
rg.addElement(n);
});
}else{
rg=_2a0.body.createTextRange();
rg.moveToBookmark(mark);
}
}
rg.select();
}
}
}
},getFocus:function(menu,_2a1){
var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;
return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_2a1||dojo.global,dijit.getBookmark),openedForWindow:_2a1};
},focus:function(_2a2){
if(!_2a2){
return;
}
var node="node" in _2a2?_2a2.node:_2a2,_2a3=_2a2.bookmark,_2a4=_2a2.openedForWindow,_2a5=_2a3?_2a3.isCollapsed:false;
if(node){
var _2a6=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_2a6&&_2a6.focus){
try{
_2a6.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_2a3&&dojo.withGlobal(_2a4||dojo.global,dijit.isCollapsed)&&!_2a5){
if(_2a4){
_2a4.focus();
}
try{
dojo.withGlobal(_2a4||dojo.global,dijit.moveToBookmark,null,[_2a3]);
}
catch(e2){
}
}
},_activeStack:[],registerIframe:function(_2a7){
return dijit.registerWin(_2a7.contentWindow,_2a7);
},unregisterIframe:function(_2a8){
dijit.unregisterWin(_2a8);
},registerWin:function(_2a9,_2aa){
var _2ab=function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_2aa||evt.target||evt.srcElement,"mouse");
};
var doc=dojo.isIE?_2a9.document.documentElement:_2a9.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onmousedown",_2ab);
var _2ac=function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){
dijit._onFocusNode(_2aa||evt.srcElement);
}else{
dijit._onTouchNode(_2aa||evt.srcElement);
}
};
doc.attachEvent("onactivate",_2ac);
var _2ad=function(evt){
dijit._onBlurNode(_2aa||evt.srcElement);
};
doc.attachEvent("ondeactivate",_2ad);
return function(){
doc.detachEvent("onmousedown",_2ab);
doc.detachEvent("onactivate",_2ac);
doc.detachEvent("ondeactivate",_2ad);
doc=null;
};
}else{
doc.addEventListener("mousedown",_2ab,true);
var _2ae=function(evt){
dijit._onFocusNode(_2aa||evt.target);
};
doc.addEventListener("focus",_2ae,true);
var _2af=function(evt){
dijit._onBlurNode(_2aa||evt.target);
};
doc.addEventListener("blur",_2af,true);
return function(){
doc.removeEventListener("mousedown",_2ab,true);
doc.removeEventListener("focus",_2ae,true);
doc.removeEventListener("blur",_2af,true);
doc=null;
};
}
}
},unregisterWin:function(_2b0){
_2b0&&_2b0();
},_onBlurNode:function(node){
dijit._prevFocus=dijit._curFocus;
dijit._curFocus=null;
if(dijit._justMouseDowned){
return;
}
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
}
dijit._clearActiveWidgetsTimer=setTimeout(function(){
delete dijit._clearActiveWidgetsTimer;
dijit._setStack([]);
dijit._prevFocus=null;
},100);
},_onTouchNode:function(node,by){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _2b1=[];
try{
while(node){
var _2b2=dojo.attr(node,"dijitPopupParent");
if(_2b2){
node=dijit.byId(_2b2).domNode;
}else{
if(node.tagName&&node.tagName.toLowerCase()=="body"){
if(node===dojo.body()){
break;
}
node=dijit.getDocumentWindow(node.ownerDocument).frameElement;
}else{
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
_2b1.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_2b1,by);
},_onFocusNode:function(node){
if(!node){
return;
}
if(node.nodeType==9){
return;
}
dijit._onTouchNode(node);
if(node==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=node;
dojo.publish("focusNode",[node]);
},_setStack:function(_2b3,by){
var _2b4=dijit._activeStack;
dijit._activeStack=_2b3;
for(var _2b5=0;_2b5<Math.min(_2b4.length,_2b3.length);_2b5++){
if(_2b4[_2b5]!=_2b3[_2b5]){
break;
}
}
var _2b6;
for(var i=_2b4.length-1;i>=_2b5;i--){
_2b6=dijit.byId(_2b4[i]);
if(_2b6){
_2b6._focused=false;
_2b6._hasBeenBlurred=true;
if(_2b6._onBlur){
_2b6._onBlur(by);
}
if(_2b6._setStateClass){
_2b6._setStateClass();
}
dojo.publish("widgetBlur",[_2b6,by]);
}
}
for(i=_2b5;i<_2b3.length;i++){
_2b6=dijit.byId(_2b3[i]);
if(_2b6){
_2b6._focused=true;
if(_2b6._onFocus){
_2b6._onFocus(by);
}
if(_2b6._setStateClass){
_2b6._setStateClass();
}
dojo.publish("widgetFocus",[_2b6,by]);
}
}
}});
dojo.addOnLoad(function(){
var _2b7=dijit.registerWin(window);
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.unregisterWin(_2b7);
_2b7=null;
});
}
});
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_2b8){
this.pairs=[];
this.returnWrappers=_2b8||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_2b9,wrap,_2ba,_2bb){
this.pairs[((_2bb)?"unshift":"push")]([name,_2b9,wrap,_2ba]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
}
if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dijit.getViewport=function(){
var _2bc=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _2bd=dojo._docScroll();
return {w:_2bc.clientWidth,h:_2bc.clientHeight,l:_2bd.x,t:_2bd.y};
};
dijit.placeOnScreen=function(node,pos,_2be,_2bf){
var _2c0=dojo.map(_2be,function(_2c1){
var c={corner:_2c1,pos:{x:pos.x,y:pos.y}};
if(_2bf){
c.pos.x+=_2c1.charAt(1)=="L"?_2bf.x:-_2bf.x;
c.pos.y+=_2c1.charAt(0)=="T"?_2bf.y:-_2bf.y;
}
return c;
});
return dijit._place(node,_2c0);
};
dijit._place=function(node,_2c2,_2c3){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_2c2,function(_2c4){
var _2c5=_2c4.corner;
var pos=_2c4.pos;
if(_2c3){
_2c3(node,_2c4.aroundCorner,_2c5);
}
var _2c6=node.style;
var _2c7=_2c6.display;
var _2c8=_2c6.visibility;
_2c6.visibility="hidden";
_2c6.display="";
var mb=dojo.marginBox(node);
_2c6.display=_2c7;
_2c6.visibility=_2c8;
var _2c9=Math.max(view.l,_2c5.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_2ca=Math.max(view.t,_2c5.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_2c5.charAt(1)=="L"?(_2c9+mb.w):pos.x),endY=Math.min(view.t+view.h,_2c5.charAt(0)=="T"?(_2ca+mb.h):pos.y),_2cb=endX-_2c9,_2cc=endY-_2ca,_2cd=(mb.w-_2cb)+(mb.h-_2cc);
if(best==null||_2cd<best.overflow){
best={corner:_2c5,aroundCorner:_2c4.aroundCorner,x:_2c9,y:_2ca,w:_2cb,h:_2cc,overflow:_2cd};
}
return !_2cd;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_2c3){
_2c3(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_2ce,_2cf,_2d0){
_2ce=dojo.byId(_2ce);
var _2d1=_2ce.style.display;
_2ce.style.display="";
var _2d2=dojo.position(_2ce,true);
_2ce.style.display=_2d1;
return dijit._placeOnScreenAroundRect(node,_2d2.x,_2d2.y,_2d2.w,_2d2.h,_2cf,_2d0);
};
dijit.placeOnScreenAroundRectangle=function(node,_2d3,_2d4,_2d5){
return dijit._placeOnScreenAroundRect(node,_2d3.x,_2d3.y,_2d3.width,_2d3.height,_2d4,_2d5);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_2d6,_2d7,_2d8,_2d9){
var _2da=[];
for(var _2db in _2d8){
_2da.push({aroundCorner:_2db,corner:_2d8[_2db],pos:{x:x+(_2db.charAt(1)=="L"?0:_2d6),y:y+(_2db.charAt(0)=="T"?0:_2d7)}});
}
return dijit._place(node,_2da,_2d9);
};
dijit.placementRegistry=new dojo.AdapterRegistry();
dijit.placementRegistry.register("node",function(n,x){
return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";
},dijit.placeOnScreenAroundNode);
dijit.placementRegistry.register("rect",function(n,x){
return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;
},dijit.placeOnScreenAroundRectangle);
dijit.placeOnScreenAroundElement=function(node,_2dc,_2dd,_2de){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
dijit.getPopupAlignment=function(_2df,_2e0){
var _2e1={};
dojo.forEach(_2df,function(pos){
switch(pos){
case "after":
_2e1[_2e0?"TR":"TL"]=_2e0?"TL":"TR";
break;
case "before":
_2e1[_2e0?"TL":"TR"]=_2e0?"TR":"TL";
break;
case "below":
_2e1[_2e0?"BL":"BR"]=_2e0?"TL":"TR";
_2e1[_2e0?"BR":"BL"]=_2e0?"TR":"TL";
break;
case "above":
default:
_2e1[_2e0?"TL":"TR"]=_2e0?"BL":"BR";
_2e1[_2e0?"TR":"TL"]=_2e0?"BR":"BL";
break;
}
});
return _2e1;
};
dijit.getPopupAroundAlignment=function(_2e2,_2e3){
var _2e4={};
dojo.forEach(_2e2,function(pos){
switch(pos){
case "after":
_2e4[_2e3?"TR":"TL"]=_2e3?"TL":"TR";
break;
case "before":
_2e4[_2e3?"TL":"TR"]=_2e3?"TR":"TL";
break;
case "below":
_2e4[_2e3?"BL":"BR"]=_2e3?"TL":"TR";
_2e4[_2e3?"BR":"BL"]=_2e3?"TR":"TL";
break;
case "above":
default:
_2e4[_2e3?"TL":"TR"]=_2e3?"BL":"BR";
_2e4[_2e3?"TR":"TL"]=_2e3?"BR":"BL";
break;
}
});
return _2e4;
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(doc){
if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
}
if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dijit.popup=new function(){
var _2e5=[],_2e6=10000,_2e7=1;
this.moveOffScreen=function(node){
var s=node.style;
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
if(s.display=="none"){
s.display="";
}
dojo.body().appendChild(node);
};
var _2e8=function(){
for(var pi=_2e5.length-1;pi>0&&_2e5[pi].parent===_2e5[pi-1].widget;pi--){
}
return _2e5[pi];
};
var _2e9=[];
this.open=function(args){
var _2ea=args.popup,_2eb=args.orient||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_2ec=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_2e7++);
var _2ed=_2e9.pop(),_2ee,_2ef;
if(!_2ed){
_2ee=dojo.create("div",{"class":"dijitPopup"},dojo.body());
dijit.setWaiRole(_2ee,"presentation");
}else{
_2ee=_2ed[0];
_2ef=_2ed[1];
}
dojo.attr(_2ee,{id:id,style:{zIndex:_2e6+_2e5.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:args.parent?args.parent.id:""});
var s=_2ea.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_2ee.appendChild(_2ea.domNode);
if(!_2ef){
_2ef=new dijit.BackgroundIframe(_2ee);
}else{
_2ef.resize(_2ee);
}
var best=_2ec?dijit.placeOnScreenAroundElement(_2ee,_2ec,_2eb,_2ea.orient?dojo.hitch(_2ea,"orient"):null):dijit.placeOnScreen(_2ee,args,_2eb=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_2ee.style.visibility="visible";
var _2f0=[];
_2f0.push(dojo.connect(_2ee,"onkeypress",this,function(evt){
if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){
dojo.stopEvent(evt);
args.onCancel();
}else{
if(evt.charOrCode===dojo.keys.TAB){
dojo.stopEvent(evt);
var _2f1=_2e8();
if(_2f1&&_2f1.onCancel){
_2f1.onCancel();
}
}
}
}));
if(_2ea.onCancel){
_2f0.push(dojo.connect(_2ea,"onCancel",args.onCancel));
}
_2f0.push(dojo.connect(_2ea,_2ea.onExecute?"onExecute":"onChange",function(){
var _2f2=_2e8();
if(_2f2&&_2f2.onExecute){
_2f2.onExecute();
}
}));
_2e5.push({wrapper:_2ee,iframe:_2ef,widget:_2ea,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_2f0});
if(_2ea.onOpen){
_2ea.onOpen(best);
}
return best;
};
this.close=function(_2f3){
while(dojo.some(_2e5,function(elem){
return elem.widget==_2f3;
})){
var top=_2e5.pop(),_2f4=top.wrapper,_2f5=top.iframe,_2f6=top.widget,_2f7=top.onClose;
if(_2f6.onClose){
_2f6.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(_2f6&&_2f6.domNode){
this.moveOffScreen(_2f6.domNode);
}
_2f4.style.top="-9999px";
_2f4.style.visibility="hidden";
_2e9.push([_2f4,_2f5]);
if(_2f7){
_2f7();
}
}
};
}();
dijit._frames=new function(){
var _2f8=[];
this.pop=function(){
var _2f9;
if(_2f8.length){
_2f9=_2f8.pop();
_2f9.style.display="";
}else{
if(dojo.isIE){
var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";
var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_2f9=dojo.doc.createElement(html);
}else{
_2f9=dojo.create("iframe");
_2f9.src="javascript:\"\"";
_2f9.className="dijitBackgroundIframe";
dojo.style(_2f9,"opacity",0.1);
}
_2f9.tabIndex=-1;
}
return _2f9;
};
this.push=function(_2fa){
_2fa.style.display="none";
_2f8.push(_2fa);
};
}();
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if(dojo.isIE||dojo.isMoz){
var _2fb=dijit._frames.pop();
node.appendChild(_2fb);
if(dojo.isIE<7){
this.resize(node);
this._conn=dojo.connect(node,"onresize",this,function(){
this.resize(node);
});
}else{
dojo.style(_2fb,{width:"100%",height:"100%"});
}
this.iframe=_2fb;
}
};
dojo.extend(dijit.BackgroundIframe,{resize:function(node){
if(this.iframe&&dojo.isIE<7){
dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});
}
},destroy:function(){
if(this._conn){
dojo.disconnect(this._conn);
this._conn=null;
}
if(this.iframe){
dijit._frames.push(this.iframe);
delete this.iframe;
}
}});
}
if(!dojo._hasResource["dijit._base.scroll"]){
dojo._hasResource["dijit._base.scroll"]=true;
dojo.provide("dijit._base.scroll");
dijit.scrollIntoView=function(node,pos){
try{
node=dojo.byId(node);
var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;
if((!(dojo.isMoz||isIE||isWK)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){
node.scrollIntoView(false);
return;
}
var _2fc=doc.compatMode=="BackCompat",_2fd=_2fc?body:html,_2fe=isWK?body:_2fd,_2ff=_2fd.clientWidth,_300=_2fd.clientHeight,rtl=!dojo._isBodyLtr(),_301=pos||dojo.position(node),el=node.parentNode,_302=function(el){
return ((isIE<=6||(isIE&&_2fc))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));
};
if(_302(node)){
return;
}
while(el){
if(el==body){
el=_2fe;
}
var _303=dojo.position(el),_304=_302(el);
with(_303){
if(el==_2fe){
w=_2ff,h=_300;
if(_2fe==html&&isIE&&rtl){
x+=_2fe.offsetWidth-w;
}
if(x<0||!isIE){
x=0;
}
if(y<0||!isIE){
y=0;
}
}else{
var pb=dojo._getPadBorderExtents(el);
w-=pb.w;
h-=pb.h;
x+=pb.l;
y+=pb.t;
}
with(el){
if(el!=_2fe){
var _305=clientWidth,_306=w-_305;
if(_305>0&&_306>0){
w=_305;
if(isIE&&rtl){
x+=_306;
}
}
_305=clientHeight;
_306=h-_305;
if(_305>0&&_306>0){
h=_305;
}
}
if(_304){
if(y<0){
h+=y,y=0;
}
if(x<0){
w+=x,x=0;
}
if(y+h>_300){
h=_300-y;
}
if(x+w>_2ff){
w=_2ff-x;
}
}
var l=_301.x-x,t=_301.y-Math.max(y,0),r=l+_301.w-w,bot=t+_301.h-h;
if(r*l>0){
var s=Math[l<0?"max":"min"](l,r);
_301.x+=scrollLeft;
scrollLeft+=(isIE>=8&&!_2fc&&rtl)?-s:s;
_301.x-=scrollLeft;
}
if(bot*t>0){
_301.y+=scrollTop;
scrollTop+=Math[t<0?"max":"min"](t,bot);
_301.y-=scrollTop;
}
}
}
el=(el!=_2fe)&&!_304&&el.parentNode;
}
}
catch(error){
console.error("scrollIntoView: "+error);
node.scrollIntoView(false);
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo,html=d.doc.documentElement,ie=d.isIE,_307=d.isOpera,maj=Math.floor,ff=d.isFF,_308=d.boxModel.replace(/-/,""),_309={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_iequirks:ie&&d.isQuirks,dj_opera:_307,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};
_309["dj_"+_308]=true;
for(var p in _309){
if(_309[p]){
if(html.className){
html.className+=" "+p;
}else{
html.className=p;
}
}
}
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
html.className+=" dijitRtl";
for(var p in _309){
if(_309[p]){
html.className+=" "+p+"-rtl";
}
}
}
});
})();
}
if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),10);
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_30a,node,_30b,obj,_30c,_30d){
if(obj!=this._obj){
this.stop();
this._initialDelay=_30d||500;
this._subsequentDelay=_30c||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_30a,_30b);
this._fireEventAndReload();
}
},stop:function(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function(node,_30e,_30f,_310,_311,_312){
if(_30e.keyCode){
_30e.charOrCode=_30e.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_30e.charCode){
_30e.charOrCode=String.fromCharCode(_30e.charCode);
dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}
}
return [dojo.connect(node,"onkeypress",this,function(evt){
if(evt.charOrCode==_30e.charOrCode&&(_30e.ctrlKey===undefined||_30e.ctrlKey==evt.ctrlKey)&&(_30e.altKey===undefined||_30e.altKey==evt.altKey)&&(_30e.metaKey===undefined||_30e.metaKey==(evt.metaKey||false))&&(_30e.shiftKey===undefined||_30e.shiftKey==evt.shiftKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_30e,_30f,node,_310,_30e,_311,_312);
}else{
if(dijit.typematic._obj==_30e){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_30e){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_313,_314,_315,_316){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_313,node,_314,node,_315,_316);
}),dc(node,"mouseup",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mouseout",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mousemove",this,function(evt){
dojo.stopEvent(evt);
}),dc(node,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_313,node,_314,node,_315,_316);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_317,_318,_319,_31a,_31b,_31c,_31d){
return this.addKeyListener(_318,_319,_31a,_31b,_31c,_31d).concat(this.addMouseListener(_317,_31a,_31b,_31c,_31d));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());
var cs=dojo.getComputedStyle(div);
if(cs){
var _31e=cs.backgroundImage;
var _31f=(cs.borderTopColor==cs.borderRightColor)||(_31e!=null&&(_31e=="none"||_31e=="url(invalid-url:)"));
dojo[_31f?"addClass":"removeClass"](dojo.body(),"dijit_a11y");
if(dojo.isIE){
div.outerHTML="";
}else{
dojo.body().removeChild(div);
}
}
}};
if(dojo.isIE||dojo.isMoz){
dojo._loaders.unshift(dijit.wai.onload);
}
dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){
var _320=this.getWaiRole(elem);
return role?(_320.indexOf(role)>-1):(_320.length>0);
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _321=dojo.attr(elem,"role")||"";
if(!this._XhtmlRoles.test(_321)){
dojo.attr(elem,"role",role);
}else{
if((" "+_321+" ").indexOf(" "+role+" ")<0){
var _322=dojo.trim(_321.replace(this._XhtmlRoles,""));
var _323=dojo.trim(_321.replace(_322,""));
dojo.attr(elem,"role",_323+(_323?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _324=dojo.attr(elem,"role");
if(!_324){
return;
}
if(role){
var t=dojo.trim((" "+_324+" ").replace(" "+role+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_325){
return elem.hasAttribute?elem.hasAttribute("aria-"+_325):!!elem.getAttribute("aria-"+_325);
},getWaiState:function(elem,_326){
return elem.getAttribute("aria-"+_326)||"";
},setWaiState:function(elem,_327,_328){
elem.setAttribute("aria-"+_327,_328);
},removeWaiState:function(elem,_329){
elem.removeAttribute("aria-"+_329);
}});
}
if(!dojo._hasResource["dijit._base"]){
dojo._hasResource["dijit._base"]=true;
dojo.provide("dijit._base");
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_32a,_32b){
if(!dojo.date.stamp._isoRegExp){
dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
}
var _32c=dojo.date.stamp._isoRegExp.exec(_32a),_32d=null;
if(_32c){
_32c.shift();
if(_32c[1]){
_32c[1]--;
}
if(_32c[6]){
_32c[6]*=1000;
}
if(_32b){
_32b=new Date(_32b);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _32b["get"+prop]();
}).forEach(function(_32e,_32f){
if(_32c[_32f]===undefined){
_32c[_32f]=_32e;
}
});
}
_32d=new Date(_32c[0]||1970,_32c[1]||0,_32c[2]||1,_32c[3]||0,_32c[4]||0,_32c[5]||0,_32c[6]||0);
if(_32c[0]<100){
_32d.setFullYear(_32c[0]||1970);
}
var _330=0,_331=_32c[7]&&_32c[7].charAt(0);
if(_331!="Z"){
_330=((_32c[8]||0)*60)+(Number(_32c[9])||0);
if(_331!="-"){
_330*=-1;
}
}
if(_331){
_330-=_32d.getTimezoneOffset();
}
if(_330){
_32d.setTime(_32d.getTime()+_330*60000);
}
}
return _32d;
};
dojo.date.stamp.toISOString=function(_332,_333){
var _334=function(n){
return (n<10)?"0"+n:n;
};
_333=_333||{};
var _335=[],_336=_333.zulu?"getUTC":"get",date="";
if(_333.selector!="time"){
var year=_332[_336+"FullYear"]();
date=["0000".substr((year+"").length)+year,_334(_332[_336+"Month"]()+1),_334(_332[_336+"Date"]())].join("-");
}
_335.push(date);
if(_333.selector!="date"){
var time=[_334(_332[_336+"Hours"]()),_334(_332[_336+"Minutes"]()),_334(_332[_336+"Seconds"]())].join(":");
var _337=_332[_336+"Milliseconds"]();
if(_333.milliseconds){
time+="."+(_337<100?"0":"")+_334(_337);
}
if(_333.zulu){
time+="Z";
}else{
if(_333.selector!="time"){
var _338=_332.getTimezoneOffset();
var _339=Math.abs(_338);
time+=(_338>0?"-":"+")+_334(Math.floor(_339/60))+":"+_334(_339%60);
}
}
_335.push(time);
}
return _335.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
this._attrName=d._scopeName+"Type";
this._query="["+this._attrName+"]";
function _33a(_33b){
if(d.isString(_33b)){
return "string";
}
if(typeof _33b=="number"){
return "number";
}
if(typeof _33b=="boolean"){
return "boolean";
}
if(d.isFunction(_33b)){
return "function";
}
if(d.isArray(_33b)){
return "array";
}
if(_33b instanceof Date){
return "date";
}
if(_33b instanceof d._Url){
return "url";
}
return "object";
};
function _33c(_33d,type){
switch(type){
case "string":
return _33d;
case "number":
return _33d.length?Number(_33d):NaN;
case "boolean":
return typeof _33d=="boolean"?_33d:!(_33d.toLowerCase()=="false");
case "function":
if(d.isFunction(_33d)){
_33d=_33d.toString();
_33d=d.trim(_33d.substring(_33d.indexOf("{")+1,_33d.length-1));
}
try{
if(_33d.search(/[^\w\.]+/i)!=-1){
return new Function(_33d);
}else{
return d.getObject(_33d,false);
}
}
catch(e){
return new Function();
}
case "array":
return _33d?_33d.split(/\s*,\s*/):[];
case "date":
switch(_33d){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_33d);
}
case "url":
return d.baseUrl+_33d;
default:
return d.fromJson(_33d);
}
};
var _33e={};
dojo.connect(dojo,"extend",function(){
_33e={};
});
function _33f(_340){
if(!_33e[_340]){
var cls=d.getObject(_340);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_340+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _341=cls.prototype;
var _342={},_343={};
for(var name in _341){
if(name.charAt(0)=="_"){
continue;
}
if(name in _343){
continue;
}
var _344=_341[name];
_342[name]=_33a(_344);
}
_33e[_340]={cls:cls,params:_342};
}
return _33e[_340];
};
this._functionFromScript=function(_345){
var _346="";
var _347="";
var _348=_345.getAttribute("args");
if(_348){
d.forEach(_348.split(/\s*,\s*/),function(part,idx){
_346+="var "+part+" = arguments["+idx+"]; ";
});
}
var _349=_345.getAttribute("with");
if(_349&&_349.length){
d.forEach(_349.split(/\s*,\s*/),function(part){
_346+="with("+part+"){";
_347+="}";
});
}
return new Function(_346+_345.innerHTML+_347);
};
this.instantiate=function(_34a,_34b,args){
var _34c=[],dp=dojo.parser;
_34b=_34b||{};
args=args||{};
d.forEach(_34a,function(node){
if(!node){
return;
}
var type=dp._attrName in _34b?_34b[dp._attrName]:node.getAttribute(dp._attrName);
if(!type||!type.length){
return;
}
var _34d=_33f(type),_34e=_34d.cls,ps=_34e._noScript||_34e.prototype._noScript;
var _34f={},_350=node.attributes;
for(var name in _34d.params){
var item=name in _34b?{value:_34b[name],specified:true}:_350.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _351=item.value;
switch(name){
case "class":
_351="className" in _34b?_34b.className:node.className;
break;
case "style":
_351="style" in _34b?_34b.style:(node.style&&node.style.cssText);
}
var _352=_34d.params[name];
if(typeof _351=="string"){
_34f[name]=_33c(_351,_352);
}else{
_34f[name]=_351;
}
}
if(!ps){
var _353=[],_354=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_355){
var _356=_355.getAttribute("event"),type=_355.getAttribute("type"),nf=d.parser._functionFromScript(_355);
if(_356){
if(type=="dojo/connect"){
_353.push({event:_356,func:nf});
}else{
_34f[_356]=nf;
}
}else{
_354.push(nf);
}
});
}
var _357=_34e.markupFactory||_34e.prototype&&_34e.prototype.markupFactory;
var _358=_357?_357(_34f,node,_34e):new _34e(_34f,node);
_34c.push(_358);
var _359=node.getAttribute("jsId");
if(_359){
d.setObject(_359,_358);
}
if(!ps){
d.forEach(_353,function(_35a){
d.connect(_358,_35a.event,null,_35a.func);
});
d.forEach(_354,function(func){
func.call(_358);
});
}
});
if(!_34b._started){
d.forEach(_34c,function(_35b){
if(!args.noStart&&_35b&&_35b.startup&&!_35b._started&&(!_35b.getParent||!_35b.getParent())){
_35b.startup();
}
});
}
return _34c;
};
this.parse=function(_35c,args){
var root;
if(!args&&_35c&&_35c.rootNode){
args=_35c;
root=args.rootNode;
}else{
root=_35c;
}
var list=d.query(this._query,root);
return this.instantiate(list,null,args);
};
}();
(function(){
var _35d=function(){
if(dojo.config.parseOnLoad){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_35d);
}else{
dojo._loaders.unshift(_35d);
}
})();
}
if(!dojo._hasResource["dijit._Widget"]){
dojo._hasResource["dijit._Widget"]=true;
dojo.provide("dijit._Widget");
dojo.require("dijit._base");
dojo.connect(dojo,"_connect",function(_35e,_35f){
if(_35e&&dojo.isFunction(_35e._onConnect)){
_35e._onConnect(_35f);
}
});
dijit._connectOnUseEventHandler=function(_360){
};
dijit._lastKeyDownNode=null;
if(dojo.isIE){
(function(){
var _361=function(evt){
dijit._lastKeyDownNode=evt.srcElement;
};
dojo.doc.attachEvent("onkeydown",_361);
dojo.addOnWindowUnload(function(){
dojo.doc.detachEvent("onkeydown",_361);
});
})();
}else{
dojo.doc.addEventListener("keydown",function(evt){
dijit._lastKeyDownNode=evt.target;
},true);
}
(function(){
var _362={},_363=function(_364){
var dc=_364.declaredClass;
if(!_362[dc]){
var r=[],_365,_366=_364.constructor.prototype;
for(var _367 in _366){
if(dojo.isFunction(_366[_367])&&(_365=_367.match(/^_set([a-zA-Z]*)Attr$/))&&_365[1]){
r.push(_365[1].charAt(0).toLowerCase()+_365[1].substr(1));
}
}
_362[dc]=r;
}
return _362[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_368,_369){
this.create(_368,_369);
},create:function(_36a,_36b){
this.srcNodeRef=dojo.byId(_36b);
this._connects=[];
this._subscribes=[];
this._deferredConnects=dojo.clone(this._deferredConnects);
for(var attr in this.attributeMap){
delete this._deferredConnects[attr];
}
for(attr in this._deferredConnects){
if(this[attr]!==dijit._connectOnUseEventHandler){
delete this._deferredConnects[attr];
}
}
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){
this.id=this.srcNodeRef.id;
}
if(_36a){
this.params=_36a;
dojo.mixin(this,_36a);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
var _36c=this.srcNodeRef;
if(_36c&&_36c.parentNode){
_36c.parentNode.replaceChild(this.domNode,_36c);
}
for(attr in this.params){
this._onConnect(attr);
}
}
if(this.domNode){
this.domNode.setAttribute("widgetId",this.id);
}
this.postCreate();
if(this.srcNodeRef&&!this.srcNodeRef.parentNode){
delete this.srcNodeRef;
}
this._created=true;
},_applyAttributes:function(){
var _36d=function(attr,_36e){
if((_36e.params&&attr in _36e.params)||_36e[attr]){
_36e.attr(attr,_36e[attr]);
}
};
for(var attr in this.attributeMap){
_36d(attr,this);
}
dojo.forEach(_363(this),function(a){
if(!(a in this.attributeMap)){
_36d(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_36f){
this._beingDestroyed=true;
this.destroyDescendants(_36f);
this.destroy(_36f);
},destroy:function(_370){
this._beingDestroyed=true;
this.uninitialize();
var d=dojo,dfe=d.forEach,dun=d.unsubscribe;
dfe(this._connects,function(_371){
dfe(_371,d.disconnect);
});
dfe(this._subscribes,function(_372){
dun(_372);
});
dfe(this._supportingWidgets||[],function(w){
if(w.destroyRecursive){
w.destroyRecursive();
}else{
if(w.destroy){
w.destroy();
}
}
});
this.destroyRendering(_370);
dijit.registry.remove(this.id);
this._destroyed=true;
},destroyRendering:function(_373){
if(this.bgIframe){
this.bgIframe.destroy(_373);
delete this.bgIframe;
}
if(this.domNode){
if(_373){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_373){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_374){
dojo.forEach(this.getChildren(),function(_375){
if(_375.destroyRecursive){
_375.destroyRecursive(_374);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_376){
if(_376 in this._deferredConnects){
var _377=this[this._deferredConnects[_376]||"domNode"];
this.connect(_377,_376.toLowerCase(),_376);
delete this._deferredConnects[_376];
}
},_setClassAttr:function(_378){
var _379=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_379,this["class"]);
this["class"]=_378;
dojo.addClass(_379,_378);
},_setStyleAttr:function(_37a){
var _37b=this[this.attributeMap.style||"domNode"];
if(dojo.isObject(_37a)){
dojo.style(_37b,_37a);
}else{
if(_37b.style.cssText){
_37b.style.cssText+="; "+_37a;
}else{
_37b.style.cssText=_37a;
}
}
this.style=_37a;
},setAttribute:function(attr,_37c){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_37c);
},_attrToDom:function(attr,_37d){
var _37e=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_37e)?_37e:[_37e],function(_37f){
var _380=this[_37f.node||_37f||"domNode"];
if(!_380){
throw new Error("_Widget::_attrToDom:: No node named "+(_37f.node||_37f||"domNode"));
}
var type=_37f.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_37d)){
_37d=dojo.hitch(this,_37d);
}
var _381=_37f.attribute?_37f.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);
dojo.attr(_380,_381,_37d);
break;
case "innerText":
_380.innerHTML="";
_380.appendChild(dojo.doc.createTextNode(_37d));
break;
case "innerHTML":
_380.innerHTML=_37d;
break;
case "class":
dojo.removeClass(_380,this[attr]);
dojo.addClass(_380,_37d);
break;
}
},this);
this[attr]=_37d;
},attr:function(name,_382){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _383=this._getAttrNames(name);
if(args>=2){
if(this[_383.s]){
args=dojo._toArray(arguments,1);
return this[_383.s].apply(this,args)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_382);
}
this[name]=_382;
}
return this;
}else{
return this[_383.g]?this[_383.g]():this[name];
}
},_attrPairNames:{},_getAttrNames:function(name){
var apn=this._attrPairNames;
if(apn[name]){
return apn[name];
}
var uc=name.charAt(0).toUpperCase()+name.substr(1);
return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});
},toString:function(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function(){
return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];
},getChildren:function(){
return this.containerNode?dijit.findWidgets(this.containerNode):[];
},nodesWithKeyClick:["input","button"],connect:function(obj,_384,_385){
var d=dojo,dc=d._connect,_386=[];
if(_384=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){
var m=d.hitch(this,_385);
_386.push(dc(obj,"onkeydown",this,function(e){
if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
dijit._lastKeyDownNode=e.target;
d.stopEvent(e);
}
}),dc(obj,"onkeyup",this,function(e){
if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
dijit._lastKeyDownNode=null;
return m(e);
}
}));
}
_384="onclick";
}
_386.push(dc(obj,_384,this,_385));
this._connects.push(_386);
return _386;
},disconnect:function(_387){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_387){
dojo.forEach(_387,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},subscribe:function(_388,_389){
var d=dojo,_38a=d.subscribe(_388,this,_389);
this._subscribes.push(_38a);
return _38a;
},unsubscribe:function(_38b){
for(var i=0;i<this._subscribes.length;i++){
if(this._subscribes[i]==_38b){
dojo.unsubscribe(_38b);
this._subscribes.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_38c,_38d){
if(_38c.declaredClass&&_38c.addChild){
_38c.addChild(this,_38d);
}else{
dojo.place(this.domNode,_38c,_38d);
}
return this;
},_onShow:function(){
this.onShow();
},onShow:function(){
},onHide:function(){
}});
})();
}
if(!dojo._hasResource["dojo.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.string.rep=function(str,num){
if(num<=0||!str){
return "";
}
var buf=[];
for(;;){
if(num&1){
buf.push(str);
}
if(!(num>>=1)){
break;
}
str+=str;
}
return buf.join("");
};
dojo.string.pad=function(text,size,ch,end){
if(!ch){
ch="0";
}
var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));
return end?out+pad:pad+out;
};
dojo.string.substitute=function(_38e,map,_38f,_390){
_390=_390||dojo.global;
_38f=_38f?dojo.hitch(_390,_38f):function(v){
return v;
};
return _38e.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_391,key,_392){
var _393=dojo.getObject(key,false,map);
if(_392){
_393=dojo.getObject(_392,false,_390).call(_390,_393,key);
}
var s=_38f(_393,key);
return s.toString();
});
};
dojo.string.trim=String.prototype.trim?dojo.trim:function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}
if(!dojo._hasResource["dojo.cache"]){
dojo._hasResource["dojo.cache"]=true;
dojo.provide("dojo.cache");
(function(){
var _394={};
dojo.cache=function(_395,url,_396){
if(typeof _395=="string"){
var _397=dojo.moduleUrl(_395,url);
}else{
_397=_395;
_396=url;
}
var key=_397.toString();
var val=_396;
if(_396!==undefined&&!dojo.isString(_396)){
val=("value" in _396?_396.value:undefined);
}
var _398=_396&&_396.sanitize?true:false;
if(val||val===null){
if(val==null){
delete _394[key];
}else{
val=_394[key]=_398?dojo.cache._sanitize(val):val;
}
}else{
if(!(key in _394)){
val=dojo._getText(key);
_394[key]=_398?dojo.cache._sanitize(val):val;
}
val=_394[key];
}
return val;
};
dojo.cache._sanitize=function(val){
if(val){
val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _399=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_399){
val=_399[1];
}
}else{
val="";
}
return val;
};
})();
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){
this._attachPoints=[];
},_stringRepl:function(tmpl){
var _39a=this.declaredClass,_39b=this;
return dojo.string.substitute(tmpl,this,function(_39c,key){
if(key.charAt(0)=="!"){
_39c=dojo.getObject(key.substr(1),false,_39b);
}
if(typeof _39c=="undefined"){
throw new Error(_39a+" template:"+key);
}
if(_39c==null){
return "";
}
return key.charAt(0)=="!"?_39c:_39c.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _39d=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_39d)){
node=dojo._toDom(this._stringRepl(_39d));
if(node.nodeType!=1){
throw new Error("Invalid template: "+_39d);
}
}else{
node=_39d.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
if(this.widgetsInTemplate){
var _39e=dojo.parser,qry,attr;
if(_39e._query!="[dojoType]"){
qry=_39e._query;
attr=_39e._attrName;
_39e._query="[dojoType]";
_39e._attrName="dojoType";
}
var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));
if(qry){
_39e._query=qry;
_39e._attrName=attr;
}
this._supportingWidgets=dijit.findWidgets(node);
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function(_39f){
var dest=this.containerNode;
if(_39f&&dest){
while(_39f.hasChildNodes()){
dest.appendChild(_39f.firstChild);
}
}
},_attachTemplateNodes:function(_3a0,_3a1){
_3a1=_3a1||function(n,p){
return n.getAttribute(p);
};
var _3a2=dojo.isArray(_3a0)?_3a0:(_3a0.all||_3a0.getElementsByTagName("*"));
var x=dojo.isArray(_3a0)?0:-1;
for(;x<_3a2.length;x++){
var _3a3=(x==-1)?_3a0:_3a2[x];
if(this.widgetsInTemplate&&_3a1(_3a3,"dojoType")){
continue;
}
var _3a4=_3a1(_3a3,"dojoAttachPoint");
if(_3a4){
var _3a5,_3a6=_3a4.split(/\s*,\s*/);
while((_3a5=_3a6.shift())){
if(dojo.isArray(this[_3a5])){
this[_3a5].push(_3a3);
}else{
this[_3a5]=_3a3;
}
this._attachPoints.push(_3a5);
}
}
var _3a7=_3a1(_3a3,"dojoAttachEvent");
if(_3a7){
var _3a8,_3a9=_3a7.split(/\s*,\s*/);
var trim=dojo.trim;
while((_3a8=_3a9.shift())){
if(_3a8){
var _3aa=null;
if(_3a8.indexOf(":")!=-1){
var _3ab=_3a8.split(":");
_3a8=trim(_3ab[0]);
_3aa=trim(_3ab[1]);
}else{
_3a8=trim(_3a8);
}
if(!_3aa){
_3aa=_3a8;
}
this.connect(_3a3,_3a8,_3aa);
}
}
}
var role=_3a1(_3a3,"waiRole");
if(role){
dijit.setWaiRole(_3a3,role);
}
var _3ac=_3a1(_3a3,"waiState");
if(_3ac){
dojo.forEach(_3ac.split(/\s*,\s*/),function(_3ad){
if(_3ad.indexOf("-")!=-1){
var pair=_3ad.split("-");
dijit.setWaiState(_3a3,pair[0],pair[1]);
}
});
}
}
},startup:function(){
dojo.forEach(this._startupWidgets,function(w){
if(w&&!w._started&&w.startup){
w.startup();
}
});
this.inherited(arguments);
},destroyRendering:function(){
dojo.forEach(this._attachPoints,function(_3ae){
delete this[_3ae];
},this);
this._attachPoints=[];
this.inherited(arguments);
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_3af,_3b0,_3b1){
var _3b2=dijit._Templated._templateCache;
var key=_3b0||_3af;
var _3b3=_3b2[key];
if(_3b3){
try{
if(!_3b3.ownerDocument||_3b3.ownerDocument==dojo.doc){
return _3b3;
}
}
catch(e){
}
dojo.destroy(_3b3);
}
if(!_3b0){
_3b0=dojo.cache(_3af,{sanitize:true});
}
_3b0=dojo.string.trim(_3b0);
if(_3b1||_3b0.match(/\$\{([^\}]+)\}/g)){
return (_3b2[key]=_3b0);
}else{
var node=dojo._toDom(_3b0);
if(node.nodeType!=1){
throw new Error("Invalid template: "+_3b0);
}
return (_3b2[key]=node);
}
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _3b4=dijit._Templated._templateCache;
for(var key in _3b4){
var _3b5=_3b4[key];
if(typeof _3b5=="object"){
dojo.destroy(_3b5);
}
delete _3b4[key];
}
});
}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_3b6,_3b7){
var _3b8=this.containerNode;
if(_3b7&&typeof _3b7=="number"){
var _3b9=this.getChildren();
if(_3b9&&_3b9.length>=_3b7){
_3b8=_3b9[_3b7-1].domNode;
_3b7="after";
}
}
dojo.place(_3b6.domNode,_3b8,_3b7);
if(this._started&&!_3b6._started){
_3b6.startup();
}
},removeChild:function(_3ba){
if(typeof _3ba=="number"&&_3ba>0){
_3ba=this.getChildren()[_3ba];
}
if(_3ba&&_3ba.domNode){
var node=_3ba.domNode;
node.parentNode.removeChild(node);
}
},getChildren:function(){
return this.containerNode?dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode):[];
},hasChildren:function(){
return this.containerNode&&dojo.query("> [widgetId]",this.containerNode).length>0;
},destroyDescendants:function(_3bb){
dojo.forEach(this.getChildren(),function(_3bc){
_3bc.destroyRecursive(_3bb);
});
},_getSiblingOfChild:function(_3bd,dir){
var node=_3bd.domNode,_3be=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_3be];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node&&dijit.byNode(node);
},getIndexOfChild:function(_3bf){
return dojo.indexOf(this.getChildren(),_3bf);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_3c0){
_3c0.startup();
});
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit._Contained"]){
dojo._hasResource["dijit._Contained"]=true;
dojo.provide("dijit._Contained");
dojo.declare("dijit._Contained",null,{getParent:function(){
var _3c1=dijit.getEnclosingWidget(this.domNode.parentNode);
return _3c1&&_3c1.isContainer?_3c1:null;
},_getSibling:function(_3c2){
var node=this.domNode;
do{
node=node[_3c2+"Sibling"];
}while(node&&node.nodeType!=1);
return node&&dijit.byNode(node);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
},getIndexInParent:function(){
var p=this.getParent();
if(!p||!p.getIndexOfChild){
return -1;
}
return p.getIndexOfChild(this);
}});
}
if(!dojo._hasResource["dijit.layout._LayoutWidget"]){
dojo._hasResource["dijit.layout._LayoutWidget"]=true;
dojo.provide("dijit.layout._LayoutWidget");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){
dojo.addClass(this.domNode,"dijitContainer");
dojo.addClass(this.domNode,this.baseClass);
this.inherited(arguments);
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
var _3c3=this.getParent&&this.getParent();
if(!(_3c3&&_3c3.isLayoutContainer)){
this.resize();
this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){
this.resize();
});
}
},resize:function(_3c4,_3c5){
var node=this.domNode;
if(_3c4){
dojo.marginBox(node,_3c4);
if(_3c4.t){
node.style.top=_3c4.t+"px";
}
if(_3c4.l){
node.style.left=_3c4.l+"px";
}
}
var mb=_3c5||{};
dojo.mixin(mb,_3c4||{});
if(!("h" in mb)||!("w" in mb)){
mb=dojo.mixin(dojo.marginBox(node),mb);
}
var cs=dojo.getComputedStyle(node);
var me=dojo._getMarginExtents(node,cs);
var be=dojo._getBorderExtents(node,cs);
var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});
var pe=dojo._getPadExtents(node,cs);
this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};
this.layout();
},layout:function(){
},_setupChild:function(_3c6){
dojo.addClass(_3c6.domNode,this.baseClass+"-child");
if(_3c6.baseClass){
dojo.addClass(_3c6.domNode,this.baseClass+"-"+_3c6.baseClass);
}
},addChild:function(_3c7,_3c8){
this.inherited(arguments);
if(this._started){
this._setupChild(_3c7);
}
},removeChild:function(_3c9){
dojo.removeClass(_3c9.domNode,this.baseClass+"-child");
if(_3c9.baseClass){
dojo.removeClass(_3c9.domNode,this.baseClass+"-"+_3c9.baseClass);
}
this.inherited(arguments);
}});
dijit.layout.marginBox2contentBox=function(node,mb){
var cs=dojo.getComputedStyle(node);
var me=dojo._getMarginExtents(node,cs);
var pb=dojo._getPadBorderExtents(node,cs);
return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};
};
(function(){
var _3ca=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_3cb,dim){
_3cb.resize?_3cb.resize(dim):dojo.marginBox(_3cb.domNode,dim);
dojo.mixin(_3cb,dojo.marginBox(_3cb.domNode));
dojo.mixin(_3cb,dim);
};
dijit.layout.layoutChildren=function(_3cc,dim,_3cd){
dim=dojo.mixin({},dim);
dojo.addClass(_3cc,"dijitLayoutContainer");
_3cd=dojo.filter(_3cd,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_3cd,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_3cd,function(_3ce){
var elm=_3ce.domNode,pos=_3ce.layoutAlign;
var _3cf=elm.style;
_3cf.left=dim.l+"px";
_3cf.top=dim.t+"px";
_3cf.bottom=_3cf.right="auto";
dojo.addClass(elm,"dijitAlign"+_3ca(pos));
if(pos=="top"||pos=="bottom"){
size(_3ce,{w:dim.w});
dim.h-=_3ce.h;
if(pos=="top"){
dim.t+=_3ce.h;
}else{
_3cf.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_3ce,{h:dim.h});
dim.w-=_3ce.w;
if(pos=="left"){
dim.l+=_3ce.w;
}else{
_3cf.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_3ce,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dijit.form._FormWidget"]){
dojo._hasResource["dijit.form._FormWidget"]=true;
dojo.provide("dijit.form._FormWidget");
dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},_setDisabledAttr:function(_3d0){
this.disabled=_3d0;
dojo.attr(this.focusNode,"disabled",_3d0);
if(this.valueNode){
dojo.attr(this.valueNode,"disabled",_3d0);
}
dijit.setWaiState(this.focusNode,"disabled",_3d0);
if(_3d0){
this._hovering=false;
this._active=false;
this.focusNode.setAttribute("tabIndex","-1");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_3d1){
dojo.deprecated("setDisabled("+_3d1+") is deprecated. Use attr('disabled',"+_3d1+") instead.","","2.0");
this.attr("disabled",_3d1);
},_onFocus:function(e){
if(this.scrollOnFocus){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_3d2){
var _3d3=_3d2.currentTarget;
if(_3d3&&_3d3.getAttribute){
this.stateModifier=_3d3.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_3d2.type){
case "mouseenter":
case "mouseover":
this._hovering=true;
this._active=this._mouseDown;
break;
case "mouseout":
case "mouseleave":
this._hovering=false;
this._active=false;
break;
case "mousedown":
this._active=true;
this._mouseDown=true;
var _3d4=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_3d4);
});
break;
}
this._setStateClass();
}
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
dijit.focus(this.focusNode);
},_setStateClass:function(){
var _3d5=this.baseClass.split(" ");
function _3d6(_3d7){
_3d5=_3d5.concat(dojo.map(_3d5,function(c){
return c+_3d7;
}),"dijit"+_3d7);
};
if(this.checked){
_3d6("Checked");
}
if(this.state){
_3d6(this.state);
}
if(this.selected){
_3d6("Selected");
}
if(this.disabled){
_3d6("Disabled");
}else{
if(this.readOnly){
_3d6("ReadOnly");
}else{
if(this._active){
_3d6(this.stateModifier+"Active");
}else{
if(this._focused){
_3d6("Focused");
}
if(this._hovering){
_3d6(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_3d8={};
dojo.forEach(tn.className.split(" "),function(c){
_3d8[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _3d8[c];
});
}
dojo.forEach(_3d5,function(c){
_3d8[c]=true;
});
var _3d9=[];
for(var c in _3d8){
_3d9.push(c);
}
tn.className=_3d9.join(" ");
this._stateClasses=_3d5;
},compare:function(val1,val2){
if(typeof val1=="number"&&typeof val2=="number"){
return (isNaN(val1)&&isNaN(val2))?0:val1-val2;
}else{
if(val1>val2){
return 1;
}else{
if(val1<val2){
return -1;
}else{
return 0;
}
}
}
},onChange:function(_3da){
},_onChangeActive:false,_handleOnChange:function(_3db,_3dc){
this._lastValue=_3db;
if(this._lastValueReported==undefined&&(_3dc===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_3db;
}
if((this.intermediateChanges||_3dc||_3dc===undefined)&&((typeof _3db!=typeof this._lastValueReported)||this.compare(_3db,this._lastValueReported)!=0)){
this._lastValueReported=_3db;
if(this._onChangeActive){
if(this._onChangeHandle){
clearTimeout(this._onChangeHandle);
}
this._onChangeHandle=setTimeout(dojo.hitch(this,function(){
this._onChangeHandle=null;
this.onChange(_3db);
}),0);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._onChangeHandle){
clearTimeout(this._onChangeHandle);
this.onChange(this._lastValueReported);
}
this.inherited(arguments);
},setValue:function(_3dd){
dojo.deprecated("dijit.form._FormWidget:setValue("+_3dd+") is deprecated.  Use attr('value',"+_3dd+") instead.","","2.0");
this.attr("value",_3dd);
},getValue:function(){
dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_3de){
this.readOnly=_3de;
dojo.attr(this.focusNode,"readOnly",_3de);
dijit.setWaiState(this.focusNode,"readonly",_3de);
this._setStateClass();
},postCreate:function(){
if(dojo.isIE){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_3df,_3e0){
this.value=_3df;
this._handleOnChange(_3df,_3e0);
},_getValueAttr:function(){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}
}
},_layoutHackIE7:function(){
if(dojo.isIE==7){
var _3e1=this.domNode;
var _3e2=_3e1.parentNode;
var _3e3=_3e1.firstChild||_3e1;
var _3e4=_3e3.style.filter;
while(_3e2&&_3e2.clientHeight==0){
_3e2._disconnectHandle=this.connect(_3e2,"onscroll",dojo.hitch(this,function(e){
this.disconnect(_3e2._disconnectHandle);
_3e2.removeAttribute("_disconnectHandle");
_3e3.style.filter=(new Date()).getMilliseconds();
setTimeout(function(){
_3e3.style.filter=_3e4;
},0);
}));
_3e2=_3e2.parentNode;
}
}
}});
}
if(!dojo._hasResource["dijit.dijit"]){
dojo._hasResource["dijit.dijit"]=true;
dojo.provide("dijit.dijit");
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_3e5,_3e6,_3e7){
_3e7=dojo.i18n.normalizeLocale(_3e7);
var _3e8=_3e7.split("-");
var _3e9=[_3e5,"nls",_3e6].join(".");
var _3ea=dojo._loadedModules[_3e9];
if(_3ea){
var _3eb;
for(var i=_3e8.length;i>0;i--){
var loc=_3e8.slice(0,i).join("_");
if(_3ea[loc]){
_3eb=_3ea[loc];
break;
}
}
if(!_3eb){
_3eb=_3ea.ROOT;
}
if(_3eb){
var _3ec=function(){
};
_3ec.prototype=_3eb;
return new _3ec();
}
}
throw new Error("Bundle not found: "+_3e6+" in "+_3e5+" , locale="+_3e7);
};
dojo.i18n.normalizeLocale=function(_3ed){
var _3ee=_3ed?_3ed.toLowerCase():dojo.locale;
if(_3ee=="root"){
_3ee="ROOT";
}
return _3ee;
};
dojo.i18n._requireLocalization=function(_3ef,_3f0,_3f1,_3f2){
var _3f3=dojo.i18n.normalizeLocale(_3f1);
var _3f4=[_3ef,"nls",_3f0].join(".");
var _3f5="";
if(_3f2){
var _3f6=_3f2.split(",");
for(var i=0;i<_3f6.length;i++){
if(_3f3["indexOf"](_3f6[i])==0){
if(_3f6[i].length>_3f5.length){
_3f5=_3f6[i];
}
}
}
if(!_3f5){
_3f5="ROOT";
}
}
var _3f7=_3f2?_3f5:_3f3;
var _3f8=dojo._loadedModules[_3f4];
var _3f9=null;
if(_3f8){
if(dojo.config.localizationComplete&&_3f8._built){
return;
}
var _3fa=_3f7.replace(/-/g,"_");
var _3fb=_3f4+"."+_3fa;
_3f9=dojo._loadedModules[_3fb];
}
if(!_3f9){
_3f8=dojo["provide"](_3f4);
var syms=dojo._getModuleSymbols(_3ef);
var _3fc=syms.concat("nls").join("/");
var _3fd;
dojo.i18n._searchLocalePath(_3f7,_3f2,function(loc){
var _3fe=loc.replace(/-/g,"_");
var _3ff=_3f4+"."+_3fe;
var _400=false;
if(!dojo._loadedModules[_3ff]){
dojo["provide"](_3ff);
var _401=[_3fc];
if(loc!="ROOT"){
_401.push(loc);
}
_401.push(_3f0);
var _402=_401.join("/")+".js";
_400=dojo._loadPath(_402,null,function(hash){
var _403=function(){
};
_403.prototype=_3fd;
_3f8[_3fe]=new _403();
for(var j in hash){
_3f8[_3fe][j]=hash[j];
}
});
}else{
_400=true;
}
if(_400&&_3f8[_3fe]){
_3fd=_3f8[_3fe];
}else{
_3f8[_3fe]=_3fd;
}
if(_3f2){
return true;
}
});
}
if(_3f2&&_3f3!=_3f5){
_3f8[_3f3.replace(/-/g,"_")]=_3f8[_3f5.replace(/-/g,"_")];
}
};
(function(){
var _404=dojo.config.extraLocale;
if(_404){
if(!_404 instanceof Array){
_404=[_404];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_405,_406){
req(m,b,_405,_406);
if(_405){
return;
}
for(var i=0;i<_404.length;i++){
req(m,b,_404[i],_406);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_407,down,_408){
_407=dojo.i18n.normalizeLocale(_407);
var _409=_407.split("-");
var _40a=[];
for(var i=_409.length;i>0;i--){
_40a.push(_409.slice(0,i).join("-"));
}
_40a.push(false);
if(down){
_40a.reverse();
}
for(var j=_40a.length-1;j>=0;j--){
var loc=_40a[j]||"ROOT";
var stop=_408(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_40b,_40c){
function _40d(_40e){
_40e=dojo.i18n.normalizeLocale(_40e);
dojo.i18n._searchLocalePath(_40e,true,function(loc){
for(var i=0;i<_40c.length;i++){
if(_40c[i]==loc){
dojo["require"](_40b+"_"+loc);
return true;
}
}
return false;
});
};
_40d();
var _40f=dojo.config.extraLocale||[];
for(var i=0;i<_40f.length;i++){
_40d(_40f[i]);
}
};
}
if(!dojo._hasResource["dojo.fx.Toggler"]){
dojo._hasResource["dojo.fx.Toggler"]=true;
dojo.provide("dojo.fx.Toggler");
dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){
var _410=this;
dojo.mixin(_410,args);
_410.node=args.node;
_410._showArgs=dojo.mixin({},args);
_410._showArgs.node=_410.node;
_410._showArgs.duration=_410.showDuration;
_410.showAnim=_410.showFunc(_410._showArgs);
_410._hideArgs=dojo.mixin({},args);
_410._hideArgs.node=_410.node;
_410._hideArgs.duration=_410.hideDuration;
_410.hideAnim=_410.hideFunc(_410._hideArgs);
dojo.connect(_410.showAnim,"beforeBegin",dojo.hitch(_410.hideAnim,"stop",true));
dojo.connect(_410.hideAnim,"beforeBegin",dojo.hitch(_410.showAnim,"stop",true));
},show:function(_411){
return this.showAnim.play(_411||0);
},hide:function(_412){
return this.hideAnim.play(_412||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_413={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _414=function(_415){
this._index=-1;
this._animations=_415||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
d.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
d.extend(_414,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
d.disconnect(this._onAnimateCtx);
d.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;
if(this._index+1==this._animations.length){
this._fire("onEnd");
}else{
this._current=this._animations[++this._index];
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_416,_417){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_417&&this._current.status()=="playing"){
return this;
}
var _418=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_419=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_41a=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_418);
d.disconnect(_419);
d.disconnect(_41a);
});
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=d.connect(this._current,"onPause",this,function(arg){
this._fire("onPause",arguments);
d.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_41b,_41c){
this.pause();
var _41d=this.duration*_41b;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_41d){
this._current=a;
return true;
}
_41d-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_41d/this._current.duration,_41c);
}
return this;
},stop:function(_41e){
if(this._current){
if(_41e){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=d.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
d.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
}});
d.extend(_414,_413);
dojo.fx.chain=function(_41f){
return new _414(_41f);
};
var _420=function(_421){
this._animations=_421||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_421,function(a){
var _422=a.duration;
if(a.delay){
_422+=a.delay;
}
if(this.duration<_422){
this.duration=_422;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});
var self=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){
self._connects.push(d.connect(self._pseudoAnimation,evt,function(){
self._fire(evt,arguments);
}));
});
};
d.extend(_420,{_doAction:function(_423,args){
d.forEach(this._animations,function(a){
a[_423].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished>this._animations.length){
this._fire("onEnd");
}
},_call:function(_424,args){
var t=this._pseudoAnimation;
t[_424].apply(t,args);
},play:function(_425,_426){
this._finished=0;
this._doAction("play",arguments);
this._call("play",arguments);
return this;
},pause:function(){
this._doAction("pause",arguments);
this._call("pause",arguments);
return this;
},gotoPercent:function(_427,_428){
var ms=this.duration*_427;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_428);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_429){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
d.forEach(this._connects,dojo.disconnect);
}});
d.extend(_420,_413);
dojo.fx.combine=function(_42a){
return new _420(_42a);
};
dojo.fx.wipeIn=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){
o=s.overflow;
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _42b=d.style(node,"height");
return Math.max(_42b,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
d.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));
d.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=args.node=d.byId(args.node),top=null,left=null;
var init=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.position(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));
d.connect(anim,"beforeBegin",anim,init);
return anim;
};
})();
}
if(!dojo._hasResource["dojo.fx.easing"]){
dojo._hasResource["dojo.fx.easing"]=true;
dojo.provide("dojo.fx.easing");
dojo.fx.easing={linear:function(n){
return n;
},quadIn:function(n){
return Math.pow(n,2);
},quadOut:function(n){
return n*(n-2)*-1;
},quadInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,2)/2;
}
return -1*((--n)*(n-2)-1)/2;
},cubicIn:function(n){
return Math.pow(n,3);
},cubicOut:function(n){
return Math.pow(n-1,3)+1;
},cubicInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,3)/2;
}
n-=2;
return (Math.pow(n,3)+2)/2;
},quartIn:function(n){
return Math.pow(n,4);
},quartOut:function(n){
return -1*(Math.pow(n-1,4)-1);
},quartInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,4)/2;
}
n-=2;
return -1/2*(Math.pow(n,4)-2);
},quintIn:function(n){
return Math.pow(n,5);
},quintOut:function(n){
return Math.pow(n-1,5)+1;
},quintInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,5)/2;
}
n-=2;
return (Math.pow(n,5)+2)/2;
},sineIn:function(n){
return -1*Math.cos(n*(Math.PI/2))+1;
},sineOut:function(n){
return Math.sin(n*(Math.PI/2));
},sineInOut:function(n){
return -1*(Math.cos(Math.PI*n)-1)/2;
},expoIn:function(n){
return (n==0)?0:Math.pow(2,10*(n-1));
},expoOut:function(n){
return (n==1)?1:(-1*Math.pow(2,-10*n)+1);
},expoInOut:function(n){
if(n==0){
return 0;
}
if(n==1){
return 1;
}
n=n*2;
if(n<1){
return Math.pow(2,10*(n-1))/2;
}
--n;
return (-1*Math.pow(2,-10*n)+2)/2;
},circIn:function(n){
return -1*(Math.sqrt(1-Math.pow(n,2))-1);
},circOut:function(n){
n=n-1;
return Math.sqrt(1-Math.pow(n,2));
},circInOut:function(n){
n=n*2;
if(n<1){
return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);
}
n-=2;
return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);
},backIn:function(n){
var s=1.70158;
return Math.pow(n,2)*((s+1)*n-s);
},backOut:function(n){
n=n-1;
var s=1.70158;
return Math.pow(n,2)*((s+1)*n+s)+1;
},backInOut:function(n){
var s=1.70158*1.525;
n=n*2;
if(n<1){
return (Math.pow(n,2)*((s+1)*n-s))/2;
}
n-=2;
return (Math.pow(n,2)*((s+1)*n+s)+2)/2;
},elasticIn:function(n){
if(n==0||n==1){
return n;
}
var p=0.3;
var s=p/4;
n=n-1;
return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);
},elasticOut:function(n){
if(n==0||n==1){
return n;
}
var p=0.3;
var s=p/4;
return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;
},elasticInOut:function(n){
if(n==0){
return 0;
}
n=n*2;
if(n==2){
return 1;
}
var p=0.3*1.5;
var s=p/4;
if(n<1){
n-=1;
return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));
}
n-=1;
return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;
},bounceIn:function(n){
return (1-dojo.fx.easing.bounceOut(1-n));
},bounceOut:function(n){
var s=7.5625;
var p=2.75;
var l;
if(n<(1/p)){
l=s*Math.pow(n,2);
}else{
if(n<(2/p)){
n-=(1.5/p);
l=s*Math.pow(n,2)+0.75;
}else{
if(n<(2.5/p)){
n-=(2.25/p);
l=s*Math.pow(n,2)+0.9375;
}else{
n-=(2.625/p);
l=s*Math.pow(n,2)+0.984375;
}
}
}
return l;
},bounceInOut:function(n){
if(n<0.5){
return dojo.fx.easing.bounceIn(n*2)/2;
}
return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;
}};
}
if(!dojo._hasResource["dojo.NodeList-fx"]){
dojo._hasResource["dojo.NodeList-fx"]=true;
dojo.provide("dojo.NodeList-fx");
dojo.extend(dojo.NodeList,{_anim:function(obj,_42c,args){
args=args||{};
return dojo.fx.combine(this.map(function(item){
var _42d={node:item};
dojo.mixin(_42d,args);
return obj[_42c](_42d);
}));
},wipeIn:function(args){
return this._anim(dojo.fx,"wipeIn",args);
},wipeOut:function(args){
return this._anim(dojo.fx,"wipeOut",args);
},slideTo:function(args){
return this._anim(dojo.fx,"slideTo",args);
},fadeIn:function(args){
return this._anim(dojo,"fadeIn",args);
},fadeOut:function(args){
return this._anim(dojo,"fadeOut",args);
},animateProperty:function(args){
return this._anim(dojo,"animateProperty",args);
},anim:function(_42e,_42f,_430,_431,_432){
var _433=dojo.fx.combine(this.map(function(item){
return dojo.animateProperty({node:item,properties:_42e,duration:_42f||350,easing:_430});
}));
if(_431){
dojo.connect(_433,"onEnd",_431);
}
return _433.play(_432||0);
}});
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _434=0,d=dojo;
dojo.html._secureForInnerHtml=function(cont){
return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
};
dojo.html._emptyNode=dojo.empty;
dojo.html._setNodeContent=function(node,cont){
d.empty(node);
if(cont){
if(typeof cont=="string"){
cont=d._toDom(cont,node.ownerDocument);
}
if(!cont.nodeType&&d.isArrayLike(cont)){
for(var _435=cont.length,i=0;i<cont.length;i=_435==cont.length?i+1:0){
d.place(cont[i],node,"last");
}
}else{
d.place(cont,node,"last");
}
}
return node;
};
dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_436,node){
dojo.mixin(this,_436||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_434++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_437){
if(undefined!==cont){
this.content=cont;
}
if(_437){
this._mixin(_437);
}
this.onBegin();
this.setContent();
this.onEnd();
return this.node;
},setContent:function(){
var node=this.node;
if(!node){
console.error("setContent given no node");
}
try{
node=dojo.html._setNodeContent(node,this.content);
}
catch(e){
var _438=this.onContentError(e);
try{
node.innerHTML=_438;
}
catch(e){
console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);
}
}
this.node=node;
},empty:function(){
if(this.parseResults&&this.parseResults.length){
dojo.forEach(this.parseResults,function(w){
if(w.destroy){
w.destroy();
}
});
delete this.parseResults;
}
dojo.html._emptyNode(this.node);
},onBegin:function(){
var cont=this.content;
if(dojo.isString(cont)){
if(this.cleanContent){
cont=dojo.html._secureForInnerHtml(cont);
}
if(this.extractContent){
var _439=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_439){
cont=_439[1];
}
}
}
this.empty();
this.content=cont;
return this.node;
},onEnd:function(){
if(this.parseContent){
this._parse();
}
return this.node;
},tearDown:function(){
delete this.parseResults;
delete this.node;
delete this.content;
},onContentError:function(err){
return "Error occured setting content: "+err;
},_mixin:function(_43a){
var _43b={},key;
for(key in _43a){
if(key in _43b){
continue;
}
this[key]=_43a[key];
}
},_parse:function(){
var _43c=this.node;
try{
this.parseResults=dojo.parser.parse(_43c,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_43d){
var _43e=this["on"+type+"Error"].call(this,err);
if(_43d){
console.error(_43d,err);
}else{
if(_43e){
dojo.html._setNodeContent(this.node,_43e,true);
}
}
}});
dojo.html.set=function(node,cont,_43f){
if(undefined==cont){
cont="";
}
if(!_43f){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_43f,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dojo.NodeList-html"]){
dojo._hasResource["dojo.NodeList-html"]=true;
dojo.provide("dojo.NodeList-html");
dojo.extend(dojo.NodeList,{html:function(_440,_441){
var dhs=new dojo.html._ContentSetter(_441||{});
this.forEach(function(elm){
dhs.node=elm;
dhs.set(_440);
dhs.tearDown();
});
return this;
}});
}
if(dojo.config.afterOnLoad&&dojo.isBrowser){
window.setTimeout(dojo._loadInit,1000);
}
})();

