/*
	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: 21629 $".match(/\d+/);
dojo.version={major:1,minor:0,patch:0,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){
console.warn("files still in flight!");
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 $DBT0_(it){
return (typeof it=="string"||it instanceof String);
};
dojo.isArray=function $DBT1_(it){
return it&&(it instanceof Array||typeof it=="array");
};
dojo.isFunction=function $DBT2_(it){
return _5f.call(it)==="[object Function]";
};
dojo.isObject=function $DBT3_(it){
return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it));
};
dojo.isArrayLike=function $DBT4_(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 $DBT5_(it){
return it&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.extend=function $DBT6_(_60,_61){
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(_60.prototype,arguments[i]);
}
return _60;
};
dojo._hitchArgs=function $DBT7_(_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 $DBT8_(_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 $DBUB_(_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 $DBUC_(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 $DBUF_(_75,map,_76){
return _75.replace(_76||_74,d.isFunction(map)?map:function $DBTz_(_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 $DBRq_(_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 $DBRr_(_84,_85,_86){
return dojo.indexOf(_84,_85,_86,true);
},forEach:function $DBRs_(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 $DBRt_(arr,_8a,_8b){
return _79(true,arr,_8a,_8b);
},some:function $DBRu_(arr,_8c,_8d){
return _79(false,arr,_8c,_8d);
},map:function $DBRv_(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 $DBRw_(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 $DBRx_(_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 $DBTo_(){
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 $DBTp_(_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 $DBTq_(_d5,_d6,_d7){
var f=(_d5||dojo.global)[_d6];
if(f&&f._listeners&&_d7--){
delete f._listeners[_d7];
}
}};
dojo.connect=function $DBTr_(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 $DBTs_(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 $DBTt_(_e0){
if(_e0&&_e0[0]!==undefined){
dojo._disconnect.apply(this,_e0);
delete _e0[0];
}
};
dojo._disconnect=function $DBTu_(obj,_e1,_e2,_e3){
_e3.remove(obj,_e1,_e2);
};
dojo._topics={};
dojo.subscribe=function $DBTv_(_e4,_e5,_e6){
return [_e4,dojo._listener.add(dojo._topics,_e4,dojo.hitch(_e5,_e6))];
};
dojo.unsubscribe=function $DBTw_(_e7){
if(_e7){
dojo._listener.remove(dojo._topics,_e7[0],_e7[1]);
}
};
dojo.publish=function $DBTx_(_e8,_e9){
var f=dojo._topics[_e8];
if(f){
f.apply(this,_e9||[]);
}
};
dojo.connectPublisher=function $DBTy_(_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 $DBQx_(_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 $DBQn_(){
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 $DBQo_(res){
this.fired=((res instanceof Error)?1:0);
this.results[this.fired]=res;
this._fire();
},_check:function $DBQp_(){
if(this.fired!=-1){
if(!this.silentlyCancelled){
throw new Error("already called!");
}
this.silentlyCancelled=false;
return;
}
},callback:function $DBQq_(res){
this._check();
this._resback(res);
},errback:function $DBQr_(res){
this._check();
if(!(res instanceof Error)){
res=new Error(res);
}
this._resback(res);
},addBoth:function $DBQs_(cb,_ed){
var _ee=dojo.hitch.apply(dojo,arguments);
return this.addCallbacks(_ee,_ee);
},addCallback:function $DBQt_(cb,_ef){
return this.addCallbacks(dojo.hitch.apply(dojo,arguments));
},addErrback:function $DBQu_(cb,_f0){
return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));
},addCallbacks:function $DBQv_(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0&&!this.isFiring){
this._fire();
}
return this;
},_fire:function $DBQw_(){
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 $DBQy_(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 $DBQ3_(_f5){
return eval("("+_f5+")");
};
dojo._escapeString=function $DBQ4_(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 $DBQ5_(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 $DBPn_(_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 $DBPf_(r,g,b,a){
var t=this;
t.r=r;
t.g=g;
t.b=b;
t.a=a;
},setColor:function $DBPg_(_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 $DBPh_(){
return this;
},toRgb:function $DBPi_(){
var t=this;
return [t.r,t.g,t.b];
},toRgba:function $DBPj_(){
var t=this;
return [t.r,t.g,t.b,t.a];
},toHex:function $DBPk_(){
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 $DBPl_(_101){
var t=this,rgb=t.r+", "+t.g+", "+t.b;
return (_101?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";
},toString:function $DBPm_(){
return this.toCss(true);
}});
dojo.blendColors=function $DBPo_(_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 $DBPp_(_104,obj){
var m=_104.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);
return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);
};
dojo.colorFromHex=function $DBPq_(_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 $DBPr_(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 $DBPs_(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 $DBQz_(){
return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];
};
dojo.setContext=function $DBQ0_(_106,_107){
dojo.global=_106;
dojo.doc=_107;
};
dojo.withGlobal=function $DBQ1_(_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 $DBQ2_(_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 $DBQ6_(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 $DBRd_(e){
if(!dojo.isDescendant(e.relatedTarget,node)){
return ofp.call(this,e);
}
};
}
node.addEventListener(name,fp,false);
return fp;
},remove:function $DBQ7_(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 $DBQ8_(name){
return name.slice(0,2)=="on"?name.slice(2):name;
},_fixCallback:function $DBQ9_(name,fp){
return name!="keypress"?fp:function(e){
return fp.call(this,del._fixEvent(e,this));
};
},_fixEvent:function $DBRA_(evt,_116){
switch(evt.type){
case "keypress":
del._setKeyChar(evt);
break;
}
return evt;
},_setKeyChar:function $DBRB_(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 $DBRe_(evt,_117){
return del._fixEvent(evt,_117);
};
dojo.stopEvent=function $DBRf_(evt){
evt.preventDefault();
evt.stopPropagation();
};
var _118=dojo._listener;
dojo._connect=function $DBRg_(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 $DBRh_(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 $DBRi_(e){
return e[_121];
};
if(dojo.isIE){
dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function $DBRG_(e,_122){
return e.button&_122;
},isLeft:function $DBRH_(e){
return e.button&1;
},isMiddle:function $DBRI_(e){
return e.button&4;
},isRight:function $DBRJ_(e){
return e.button&2;
}};
}else{
dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function $DBRK_(e,_123){
return e.button==_123;
},isLeft:function $DBRL_(e){
return e.button==0;
},isMiddle:function $DBRM_(e){
return e.button==1;
},isRight:function $DBRN_(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 $DBRO_(_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 $DBRP_(_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 $DBRQ_(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 $DBRR_(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 $DBRS_(_12f){
return _12f.slice(0,2)!="on"?"on"+_12f:_12f;
},_nop:function $DBRT_(){
},_fixEvent:function $DBRU_(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 $DBRV_(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 $DBRW_(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 $DBRX_(){
this.cancelBubble=true;
},_preventDefault:function $DBRY_(){
this.bubbledKeyCode=this.keyCode;
if(this.ctrlKey){
_124(this,0);
}
this.returnValue=false;
}});
dojo.stopEvent=function $DBRj_(evt){
evt=evt||window.event;
del._stopPropagation.call(evt);
del._preventDefault.call(evt);
};
}
del._synthesizeEvent=function $DBRk_(evt,_134){
var faux=dojo.mixin({},evt,_134);
del._setKeyChar(faux);
faux.preventDefault=function $DBRl_(){
evt.preventDefault();
};
faux.stopPropagation=function $DBRm_(){
evt.stopPropagation();
};
return faux;
};
if(dojo.isOpera){
dojo.mixin(del,{_fixEvent:function $DBRZ_(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 $DBRa_(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 $DBRb_(node,_139,_13a){
if(node){
if(_13a._stealthKeyDownHandle){
del._remove(node,"keydown",_13a._stealthKeyDownHandle);
}
del._remove(node,_139,_13a);
}
},_fixEvent:function $DBRc_(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 $DBRn_(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 $DBRo_(){
return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");
};
dojo._event_listener._fixCallback=function $DBRp_(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 $DBS3_(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 $DBS4_(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 $DBS6_(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 $DBS7_(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 $DBS8_(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 $DBTA_(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 $DBTB_(node){
return node.nodeType==1?node.currentStyle:{};
};
}else{
gcs=function $DBTC_(node){
return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};
};
}
}
dojo.getComputedStyle=gcs;
if(!d.isIE){
d._toPixelValue=function $DBTD_(_148,_149){
return parseFloat(_149)||0;
};
}else{
d._toPixelValue=function $DBTE_(_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(!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 $DBTH_(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 $DBTI_(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 $DBTJ_(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 $DBTK_(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 $DBTL_(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 $DBTM_(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 $DBTN_(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 $DBTO_(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 $DBTP_(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 $DBTQ_(node){
return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON";
};
dojo._usesBorderBox=function $DBTR_(node){
var n=node.tagName;
return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node);
};
dojo._setContentSize=function $DBTS_(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 $DBTT_(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 $DBTU_(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 $DBTV_(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 $DBTW_(){
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 $DBTX_(){
return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";
};
dojo._getIeDocumentElementOffset=function $DBTY_(){
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 $DBTZ_(_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 $DBTa_(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 $DBTb_(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 $DBTc_(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 $DBTd_(node,name){
byId(node).removeAttribute(_175(name));
};
dojo.getNodeProp=function $DBTe_(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 $DBTf_(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 $DBTi_(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 $DBTj_(node,_18e){
return ((" "+byId(node)[_18d]+" ").indexOf(" "+_18e+" ")>=0);
};
var _18f=/\s+/,a1=[""],_190=function $DBTk_(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 $DBTl_(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 $DBTm_(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 $DBTn_(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 $DBSb_(){
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 $DBR4_(_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 $DBR5_(node){
return node.cloneNode(true);
},_place:function $DBR6_(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 $DBR7_(_1a8){
this._parent=_1a8;
return this;
},end:function $DBR8_(){
if(this._parent){
return this._parent;
}else{
return new this._NodeListCtor();
}
},concat:function $DBSF_(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 $DBSG_(func,obj){
return this._wrap(d.map(this,func,obj),this);
},forEach:function $DBSH_(_1a9,_1aa){
d.forEach(this,_1a9,_1aa);
return this;
},coords:_199(d.coords),position:_199(d.position),place:function $DBSS_(_1ab,_1ac){
var item=d.query(_1ab)[0];
return this.forEach(function(node){
d.place(node,item,_1ac);
});
},orphan:function $DBST_(_1ad){
return (_1ad?d._filterQueryResult(this,_1ad):this).forEach(_19d);
},adopt:function $DBSU_(_1ae,_1af){
return d.query(_1ae).place(this[0],_1af)._stash(this);
},query:function $DBSV_(_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 $DBSW_(_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 $DBSY_(_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 $DBSZ_(_1b7,_1b8){
var c=d.isFunction(_1b7)?_1b7:d.getObject(_1b7);
_1b8=_1b8||{};
return this.forEach(function(node){
new c(_1b8,node);
});
},at:function $DBSa_(){
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 $DBPW_(){
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 $DBPY_(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 $DBPZ_(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 $DBPa_(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 $DBPb_(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 $DBPc_(_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 $DBPd_(_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 $DBSk_(_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 $DBSl_(_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 $DBSm_(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 $DBSn_(_238){
return _22c.objectToQuery(_22c.formToObject(_238));
};
dojo.formToJson=function $DBSo_(_239,_23a){
return _22c.toJson(_22c.formToObject(_239),_23a);
};
dojo.queryToObject=function $DBSp_(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 $DBSc_(xhr){
return xhr.responseText;
},json:function $DBSd_(xhr){
return _22c.fromJson(xhr.responseText||null);
},"json-comment-filtered":function(xhr){
if(!dojo.config.useCommentedJson){
console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");
}
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 $DBSe_(xhr){
return _22c.eval(xhr.responseText);
},xml:function $DBSf_(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 $DBSt_(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 $DBSu_(){
try{
_22c.forEach(_253,function(i){
try{
i.dfd.cancel();
}
catch(e){
}
});
}
catch(e){
}
};
if(_22c.isIE){
_22c.addOnWindowUnload(_22c._ioCancelAll);
}
_22c._ioNotifyStart=function $DBSv_(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 $DBSw_(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 $DBSx_(_25e){
if(_25e.query.length){
_25e.url+=(_25e.url.indexOf("?")==-1?"?":"&")+_25e.query;
_25e.query=null;
}
};
dojo.xhr=function $DBSy_(_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 $DBSz_(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 $DBS0_(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 $DBVk_(_263,end){
this.start=_263;
this.end=end;
};
dojo._Line.prototype.getValue=function $DBVl_(n){
return ((this.end-this.start)*n)+this.start;
};
dojo.Animation=function $DBVm_(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 $DBVX_(){
var _264=this._percent,_265=this.easing;
return _265?_265(_264):_264;
},_fire:function $DBVY_(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 $DBVZ_(_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 $DBVa_(_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 $DBVb_(){
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 $DBVc_(_26e,_26f){
var _270=this;
_270._stopTimer();
_270._active=_270._paused=true;
_270._percent=_26e;
if(_26f){
_270.play();
}
return _270;
},stop:function $DBVd_(_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 $DBVe_(){
if(this._active){
return this._paused?"paused":"playing";
}
return "stopped";
},_cycle:function $DBVf_(){
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 $DBVg_(){
clearTimeout(this._delayTimer);
delete this._delayTimer;
}});
var ctr=0,_274=[],_275=null,_276={run:function $DBVh_(){
}};
d.extend(d.Animation,{_startTimer:function $DBVi_(){
if(!this._timer){
this._timer=d.connect(_276,"run",this,"_cycle");
ctr++;
}
if(!_275){
_275=setInterval(d.hitch(_276,"run"),this.rate);
}
},_stopTimer:function $DBVj_(){
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 $DBVn_(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 $DBVp_(args){
return d._fade(_262({end:1},args));
};
dojo.fadeOut=function $DBVq_(args){
return d._fade(_262({end:0},args));
};
dojo._defaultEasing=function $DBVr_(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 $DBVs_(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 $DBVt_(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 $DBVu_(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["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 $DBWQ_(args){
var _284=this;
dojo.mixin(_284,args);
_284.node=args.node;
_284._showArgs=dojo.mixin({},args);
_284._showArgs.node=_284.node;
_284._showArgs.duration=_284.showDuration;
_284.showAnim=_284.showFunc(_284._showArgs);
_284._hideArgs=dojo.mixin({},args);
_284._hideArgs.node=_284.node;
_284._hideArgs.duration=_284.hideDuration;
_284.hideAnim=_284.hideFunc(_284._hideArgs);
dojo.connect(_284.showAnim,"beforeBegin",dojo.hitch(_284.hideAnim,"stop",true));
dojo.connect(_284.hideAnim,"beforeBegin",dojo.hitch(_284.showAnim,"stop",true));
},show:function $DBWR_(_285){
return this.showAnim.play(_285||0);
},hide:function $DBWS_(_286){
return this.hideAnim.play(_286||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_287={_fire:function $DBXQ_(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _288=function(_289){
this._index=-1;
this._animations=_289||[];
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(_288,{_onAnimate:function $DBXR_(){
this._fire("onAnimate",arguments);
},_onEnd:function $DBXS_(){
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 $DBXT_(_28a,_28b){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_28b&&this._current.status()=="playing"){
return this;
}
var _28c=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_28d=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_28e=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_28c);
d.disconnect(_28d);
d.disconnect(_28e);
});
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 $DBXU_(){
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 $DBXV_(_28f,_290){
this.pause();
var _291=this.duration*_28f;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_291){
this._current=a;
return true;
}
_291-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_291/this._current.duration,_290);
}
return this;
},stop:function $DBXW_(_292){
if(this._current){
if(_292){
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 $DBXX_(){
return this._current?this._current.status():"stopped";
},destroy:function $DBXY_(){
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
}});
d.extend(_288,_287);
dojo.fx.chain=function $DBXk_(_293){
return new _288(_293);
};
var _294=function(_295){
this._animations=_295||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_295,function(a){
var _296=a.duration;
if(a.delay){
_296+=a.delay;
}
if(this.duration<_296){
this.duration=_296;
}
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(_294,{_doAction:function $DBXZ_(_297,args){
d.forEach(this._animations,function(a){
a[_297].apply(a,args);
});
return this;
},_onEnd:function $DBXa_(){
if(++this._finished>this._animations.length){
this._fire("onEnd");
}
},_call:function $DBXb_(_298,args){
var t=this._pseudoAnimation;
t[_298].apply(t,args);
},play:function $DBXc_(_299,_29a){
this._finished=0;
this._doAction("play",arguments);
this._call("play",arguments);
return this;
},pause:function $DBXd_(){
this._doAction("pause",arguments);
this._call("pause",arguments);
return this;
},gotoPercent:function $DBXe_(_29b,_29c){
var ms=this.duration*_29b;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_29c);
});
this._call("gotoPercent",arguments);
return this;
},stop:function $DBXf_(_29d){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function $DBXg_(){
return this._pseudoAnimation.status();
},destroy:function $DBXh_(){
d.forEach(this._connects,dojo.disconnect);
}});
d.extend(_294,_287);
dojo.fx.combine=function $DBXl_(_29e){
return new _294(_29e);
};
dojo.fx.wipeIn=function $DBXm_(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{start:function $DBXi_(){
o=s.overflow;
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _29f=d.style(node,"height");
return Math.max(_29f,1);
}
},end:function $DBXj_(){
return node.scrollHeight;
}}}},args));
d.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function $DBXn_(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 $DBXo_(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.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.string.rep=function $DBO2_(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 $DBO3_(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 $DBO4_(_2a0,map,_2a1,_2a2){
_2a2=_2a2||dojo.global;
_2a1=_2a1?dojo.hitch(_2a2,_2a1):function(v){
return v;
};
return _2a0.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_2a3,key,_2a4){
var _2a5=dojo.getObject(key,false,map);
if(_2a4){
_2a5=dojo.getObject(_2a4,false,_2a2).call(_2a2,_2a5,key);
}
return _2a1(_2a5,key).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.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.dnd.getCopyKeyState=dojo.isCopyKeyPressed;
dojo.dnd._uniqueId=0;
dojo.dnd.getUniqueId=function $DBJz_(){
var id;
do{
id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);
}while(dojo.byId(id));
return id;
};
dojo.dnd._empty={};
dojo.dnd.isFormElement=function $DBJ0_(e){
var t=e.target;
if(t.nodeType==3){
t=t.parentNode;
}
return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;
};
}
if(!dojo._hasResource["dojo.dnd.autoscroll"]){
dojo._hasResource["dojo.dnd.autoscroll"]=true;
dojo.provide("dojo.dnd.autoscroll");
dojo.dnd.getViewport=function $DBJs_(){
var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();
if(dojo.isMozilla){
return {w:dd.clientWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&w.innerWidth){
return {w:w.innerWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&dd&&dd.clientWidth){
return {w:dd.clientWidth,h:dd.clientHeight};
}else{
if(b.clientWidth){
return {w:b.clientWidth,h:b.clientHeight};
}
}
}
}
return null;
};
dojo.dnd.V_TRIGGER_AUTOSCROLL=32;
dojo.dnd.H_TRIGGER_AUTOSCROLL=32;
dojo.dnd.V_AUTOSCROLL_VALUE=16;
dojo.dnd.H_AUTOSCROLL_VALUE=16;
dojo.dnd.autoScroll=function $DBJt_(e){
var v=dojo.dnd.getViewport(),dx=0,dy=0;
if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
}else{
if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=dojo.dnd.H_AUTOSCROLL_VALUE;
}
}
if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
}else{
if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=dojo.dnd.V_AUTOSCROLL_VALUE;
}
}
window.scrollBy(dx,dy);
};
dojo.dnd._validNodes={"div":1,"p":1,"td":1};
dojo.dnd._validOverflow={"auto":1,"scroll":1};
dojo.dnd.autoScrollNodes=function $DBJu_(e){
for(var n=e.target;n;){
if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){
var s=dojo.getComputedStyle(n);
if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){
var b=dojo._getContentBox(n,s),t=dojo.position(n,true);
var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;
if(dojo.isWebKit||dojo.isOpera){
rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;
}
if(rx>0&&rx<b.w){
if(rx<w){
dx=-w;
}else{
if(rx>b.w-w){
dx=w;
}
}
}
if(ry>0&&ry<b.h){
if(ry<h){
dy=-h;
}else{
if(ry>b.h-h){
dy=h;
}
}
}
var _2a6=n.scrollLeft,_2a7=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_2a6!=n.scrollLeft||_2a7!=n.scrollTop){
return;
}
}
}
try{
n=n.parentNode;
}
catch(x){
n=null;
}
}
dojo.dnd.autoScroll(e);
};
}
if(!dojo._hasResource["dojo.dnd.Mover"]){
dojo._hasResource["dojo.dnd.Mover"]=true;
dojo.provide("dojo.dnd.Mover");
dojo.declare("dojo.dnd.Mover",null,{constructor:function $DBIx_(node,e,host){
this.node=dojo.byId(node);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=host,d=node.ownerDocument,_2a8=dojo.connect(d,"onmousemove",this,"onFirstMove");
this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_2a8];
if(h&&h.onMoveStart){
h.onMoveStart(this);
}
},onMouseMove:function $DBIy_(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox;
this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});
dojo.stopEvent(e);
},onMouseUp:function $DBIz_(e){
if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){
this.destroy();
}
dojo.stopEvent(e);
},onFirstMove:function $DBI0_(){
var s=this.node.style,l,t,h=this.host;
switch(s.position){
case "relative":
case "absolute":
l=Math.round(parseFloat(s.left));
t=Math.round(parseFloat(s.top));
break;
default:
s.position="absolute";
var m=dojo.marginBox(this.node);
var b=dojo.doc.body;
var bs=dojo.getComputedStyle(b);
var bm=dojo._getMarginBox(b,bs);
var bc=dojo._getContentBox(b,bs);
l=m.l-(bc.l-bm.l);
t=m.t-(bc.t-bm.t);
break;
}
this.marginBox.l=l-this.marginBox.l;
this.marginBox.t=t-this.marginBox.t;
if(h&&h.onFirstMove){
h.onFirstMove(this);
}
dojo.disconnect(this.events.pop());
},destroy:function $DBI1_(){
dojo.forEach(this.events,dojo.disconnect);
var h=this.host;
if(h&&h.onMoveStop){
h.onMoveStop(this);
}
this.events=this.node=this.host=null;
}});
}
if(!dojo._hasResource["dojo.dnd.Moveable"]){
dojo._hasResource["dojo.dnd.Moveable"]=true;
dojo.provide("dojo.dnd.Moveable");
dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function $DBKI_(node,_2a9){
this.node=dojo.byId(node);
if(!_2a9){
_2a9={};
}
this.handle=_2a9.handle?dojo.byId(_2a9.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_2a9.delay>0?_2a9.delay:0;
this.skip=_2a9.skip;
this.mover=_2a9.mover?_2a9.mover:dojo.dnd.Mover;
this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];
},markupFactory:function $DBKJ_(_2aa,node){
return new dojo.dnd.Moveable(node,_2aa);
},destroy:function $DBKK_(){
dojo.forEach(this.events,dojo.disconnect);
this.events=this.node=this.handle=null;
},onMouseDown:function $DBKL_(e){
if(this.skip&&dojo.dnd.isFormElement(e)){
return;
}
if(this.delay){
this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));
this._lastX=e.pageX;
this._lastY=e.pageY;
}else{
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseMove:function $DBKM_(e){
if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){
this.onMouseUp(e);
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseUp:function $DBKN_(e){
for(var i=0;i<2;++i){
dojo.disconnect(this.events.pop());
}
dojo.stopEvent(e);
},onSelectStart:function $DBKO_(e){
if(!this.skip||!dojo.dnd.isFormElement(e)){
dojo.stopEvent(e);
}
},onDragDetected:function $DBKP_(e){
new this.mover(this.node,e,this);
},onMoveStart:function $DBKQ_(_2ab){
dojo.publish("/dnd/move/start",[_2ab]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function $DBKR_(_2ac){
dojo.publish("/dnd/move/stop",[_2ac]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function $DBKS_(_2ad){
},onMove:function $DBKT_(_2ae,_2af){
this.onMoving(_2ae,_2af);
var s=_2ae.node.style;
s.left=_2af.l+"px";
s.top=_2af.t+"px";
this.onMoved(_2ae,_2af);
},onMoving:function $DBKU_(_2b0,_2b1){
},onMoved:function $DBKV_(_2b2,_2b3){
}});
}
if(!dojo._hasResource["dojo.dnd.move"]){
dojo._hasResource["dojo.dnd.move"]=true;
dojo.provide("dojo.dnd.move");
dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function $DBJ2_(){
},within:false,markupFactory:function $DBJ3_(_2b4,node){
return new dojo.dnd.move.constrainedMoveable(node,_2b4);
},constructor:function $DBJ4_(node,_2b5){
if(!_2b5){
_2b5={};
}
this.constraints=_2b5.constraints;
this.within=_2b5.within;
},onFirstMove:function $DBJ5_(_2b6){
var c=this.constraintBox=this.constraints.call(this,_2b6);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_2b6.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function $DBJ6_(_2b7,_2b8){
var c=this.constraintBox,s=_2b7.node.style;
s.left=(_2b8.l<c.l?c.l:c.r<_2b8.l?c.r:_2b8.l)+"px";
s.top=(_2b8.t<c.t?c.t:c.b<_2b8.t?c.b:_2b8.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function $DBJ7_(_2b9,node){
return new dojo.dnd.move.boxConstrainedMoveable(node,_2b9);
},constructor:function $DBJ8_(node,_2ba){
var box=_2ba&&_2ba.box;
this.constraints=function $DBKD_(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function $DBJ9_(_2bb,node){
return new dojo.dnd.move.parentConstrainedMoveable(node,_2bb);
},constructor:function $DBKA_(node,_2bc){
var area=_2bc&&_2bc.area;
this.constraints=function $DBKE_(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(area=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(area=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(area=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
}});
dojo.dnd.move.constrainedMover=function $DBKF_(fun,_2bd){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _2be=function(node,e,_2bf){
dojo.dnd.Mover.call(this,node,e,_2bf);
};
dojo.extend(_2be,dojo.dnd.Mover.prototype);
dojo.extend(_2be,{onMouseMove:function $DBKB_(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;
l=l<c.l?c.l:c.r<l?c.r:l;
t=t<c.t?c.t:c.b<t?c.b:t;
this.host.onMove(this,{l:l,t:t});
},onFirstMove:function $DBKC_(){
dojo.dnd.Mover.prototype.onFirstMove.call(this);
var c=this.constraintBox=fun.call(this);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(_2bd){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _2be;
};
dojo.dnd.move.boxConstrainedMover=function $DBKG_(box,_2c0){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_2c0);
};
dojo.dnd.move.parentConstrainedMover=function $DBKH_(area,_2c1){
dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");
var fun=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(area=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(area=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(area=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
return dojo.dnd.move.constrainedMover(fun,_2c1);
};
dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function $DBNr_(_2c2,_2c3){
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 _2c4=dojo.date.stamp._isoRegExp.exec(_2c2),_2c5=null;
if(_2c4){
_2c4.shift();
if(_2c4[1]){
_2c4[1]--;
}
if(_2c4[6]){
_2c4[6]*=1000;
}
if(_2c3){
_2c3=new Date(_2c3);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _2c3["get"+prop]();
}).forEach(function(_2c6,_2c7){
if(_2c4[_2c7]===undefined){
_2c4[_2c7]=_2c6;
}
});
}
_2c5=new Date(_2c4[0]||1970,_2c4[1]||0,_2c4[2]||1,_2c4[3]||0,_2c4[4]||0,_2c4[5]||0,_2c4[6]||0);
if(_2c4[0]<100){
_2c5.setFullYear(_2c4[0]||1970);
}
var _2c8=0,_2c9=_2c4[7]&&_2c4[7].charAt(0);
if(_2c9!="Z"){
_2c8=((_2c4[8]||0)*60)+(Number(_2c4[9])||0);
if(_2c9!="-"){
_2c8*=-1;
}
}
if(_2c9){
_2c8-=_2c5.getTimezoneOffset();
}
if(_2c8){
_2c5.setTime(_2c5.getTime()+_2c8*60000);
}
}
return _2c5;
};
dojo.date.stamp.toISOString=function $DBNt_(_2ca,_2cb){
var _2cc=function(n){
return (n<10)?"0"+n:n;
};
_2cb=_2cb||{};
var _2cd=[],_2ce=_2cb.zulu?"getUTC":"get",date="";
if(_2cb.selector!="time"){
var year=_2ca[_2ce+"FullYear"]();
date=["0000".substr((year+"").length)+year,_2cc(_2ca[_2ce+"Month"]()+1),_2cc(_2ca[_2ce+"Date"]())].join("-");
}
_2cd.push(date);
if(_2cb.selector!="date"){
var time=[_2cc(_2ca[_2ce+"Hours"]()),_2cc(_2ca[_2ce+"Minutes"]()),_2cc(_2ca[_2ce+"Seconds"]())].join(":");
var _2cf=_2ca[_2ce+"Milliseconds"]();
if(_2cb.milliseconds){
time+="."+(_2cf<100?"0":"")+_2cc(_2cf);
}
if(_2cb.zulu){
time+="Z";
}else{
if(_2cb.selector!="time"){
var _2d0=_2ca.getTimezoneOffset();
var _2d1=Math.abs(_2d0);
time+=(_2d0>0?"-":"+")+_2cc(Math.floor(_2d1/60))+":"+_2cc(_2d1%60);
}
}
_2cd.push(time);
}
return _2cd.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 _2d2(_2d3){
if(d.isString(_2d3)){
return "string";
}
if(typeof _2d3=="number"){
return "number";
}
if(typeof _2d3=="boolean"){
return "boolean";
}
if(d.isFunction(_2d3)){
return "function";
}
if(d.isArray(_2d3)){
return "array";
}
if(_2d3 instanceof Date){
return "date";
}
if(_2d3 instanceof d._Url){
return "url";
}
return "object";
};
function _2d4(_2d5,type){
switch(type){
case "string":
return _2d5;
case "number":
return _2d5.length?Number(_2d5):NaN;
case "boolean":
return typeof _2d5=="boolean"?_2d5:!(_2d5.toLowerCase()=="false");
case "function":
if(d.isFunction(_2d5)){
_2d5=_2d5.toString();
_2d5=d.trim(_2d5.substring(_2d5.indexOf("{")+1,_2d5.length-1));
}
try{
if(_2d5.search(/[^\w\.]+/i)!=-1){
return new Function(_2d5);
}else{
return d.getObject(_2d5,false);
}
}
catch(e){
return new Function();
}
case "array":
return _2d5?_2d5.split(/\s*,\s*/):[];
case "date":
switch(_2d5){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_2d5);
}
case "url":
return d.baseUrl+_2d5;
default:
return d.fromJson(_2d5);
}
};
var _2d6={};
dojo.connect(dojo,"extend",function(){
_2d6={};
});
function _2d7(_2d8){
if(!_2d6[_2d8]){
var cls=d.getObject(_2d8);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_2d8+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _2d9=cls.prototype;
var _2da={},_2db={};
for(var name in _2d9){
if(name.charAt(0)=="_"){
continue;
}
if(name in _2db){
continue;
}
var _2dc=_2d9[name];
_2da[name]=_2d2(_2dc);
}
_2d6[_2d8]={cls:cls,params:_2da};
}
return _2d6[_2d8];
};
this._functionFromScript=function $DBPQ_(_2dd){
var _2de="";
var _2df="";
var _2e0=_2dd.getAttribute("args");
if(_2e0){
d.forEach(_2e0.split(/\s*,\s*/),function(part,idx){
_2de+="var "+part+" = arguments["+idx+"]; ";
});
}
var _2e1=_2dd.getAttribute("with");
if(_2e1&&_2e1.length){
d.forEach(_2e1.split(/\s*,\s*/),function(part){
_2de+="with("+part+"){";
_2df+="}";
});
}
return new Function(_2de+_2dd.innerHTML+_2df);
};
this.instantiate=function $DBPR_(_2e2,_2e3,args){
var _2e4=[],dp=dojo.parser;
_2e3=_2e3||{};
args=args||{};
d.forEach(_2e2,function(node){
if(!node){
return;
}
var type=dp._attrName in _2e3?_2e3[dp._attrName]:node.getAttribute(dp._attrName);
if(!type||!type.length){
return;
}
var _2e5=_2d7(type),_2e6=_2e5.cls,ps=_2e6._noScript||_2e6.prototype._noScript;
var _2e7={},_2e8=node.attributes;
for(var name in _2e5.params){
var item=name in _2e3?{value:_2e3[name],specified:true}:_2e8.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _2e9=item.value;
switch(name){
case "class":
_2e9="className" in _2e3?_2e3.className:node.className;
break;
case "style":
_2e9="style" in _2e3?_2e3.style:(node.style&&node.style.cssText);
}
var _2ea=_2e5.params[name];
if(typeof _2e9=="string"){
_2e7[name]=_2d4(_2e9,_2ea);
}else{
_2e7[name]=_2e9;
}
}
if(!ps){
var _2eb=[],_2ec=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_2ed){
var _2ee=_2ed.getAttribute("event"),type=_2ed.getAttribute("type"),nf=d.parser._functionFromScript(_2ed);
if(_2ee){
if(type=="dojo/connect"){
_2eb.push({event:_2ee,func:nf});
}else{
_2e7[_2ee]=nf;
}
}else{
_2ec.push(nf);
}
});
}
var _2ef=_2e6.markupFactory||_2e6.prototype&&_2e6.prototype.markupFactory;
var _2f0=_2ef?_2ef(_2e7,node,_2e6):new _2e6(_2e7,node);
_2e4.push(_2f0);
var _2f1=node.getAttribute("jsId");
if(_2f1){
d.setObject(_2f1,_2f0);
}
if(!ps){
d.forEach(_2eb,function(_2f2){
d.connect(_2f0,_2f2.event,null,_2f2.func);
});
d.forEach(_2ec,function(func){
func.call(_2f0);
});
}
});
if(!_2e3._started){
d.forEach(_2e4,function(_2f3){
if(!args.noStart&&_2f3&&_2f3.startup&&!_2f3._started&&(!_2f3.getParent||!_2f3.getParent())){
_2f3.startup();
}
});
}
return _2e4;
};
this.parse=function $DBPS_(_2f4,args){
var root;
if(!args&&_2f4&&_2f4.rootNode){
args=_2f4;
root=args.rootNode;
}else{
root=_2f4;
}
var list=d.query(this._query,root);
return this.instantiate(list,null,args);
};
}();
(function(){
var _2f5=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,_2f5);
}else{
dojo._loaders.unshift(_2f5);
}
})();
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _2f6=0,d=dojo;
dojo.html._secureForInnerHtml=function $DBWm_(cont){
return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
};
dojo.html._emptyNode=dojo.empty;
dojo.html._setNodeContent=function $DBWo_(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 _2f7=cont.length,i=0;i<cont.length;i=_2f7==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 $DBWb_(_2f8,node){
dojo.mixin(this,_2f8||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_2f6++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function $DBWc_(cont,_2f9){
if(undefined!==cont){
this.content=cont;
}
if(_2f9){
this._mixin(_2f9);
}
this.onBegin();
this.setContent();
this.onEnd();
return this.node;
},setContent:function $DBWd_(){
var node=this.node;
if(!node){
console.error("setContent given no node");
}
try{
node=dojo.html._setNodeContent(node,this.content);
}
catch(e){
var _2fa=this.onContentError(e);
try{
node.innerHTML=_2fa;
}
catch(e){
console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);
}
}
this.node=node;
},empty:function $DBWe_(){
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 $DBWf_(){
var cont=this.content;
if(dojo.isString(cont)){
if(this.cleanContent){
cont=dojo.html._secureForInnerHtml(cont);
}
if(this.extractContent){
var _2fb=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2fb){
cont=_2fb[1];
}
}
}
this.empty();
this.content=cont;
return this.node;
},onEnd:function $DBWg_(){
if(this.parseContent){
this._parse();
}
return this.node;
},tearDown:function $DBWh_(){
delete this.parseResults;
delete this.node;
delete this.content;
},onContentError:function $DBWi_(err){
return "Error occured setting content: "+err;
},_mixin:function $DBWj_(_2fc){
var _2fd={},key;
for(key in _2fc){
if(key in _2fd){
continue;
}
this[key]=_2fc[key];
}
},_parse:function $DBWk_(){
var _2fe=this.node;
try{
this.parseResults=dojo.parser.parse(_2fe,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function $DBWl_(type,err,_2ff){
var _300=this["on"+type+"Error"].call(this,err);
if(_2ff){
console.error(_2ff,err);
}else{
if(_300){
dojo.html._setNodeContent(this.node,_300,true);
}
}
}});
dojo.html.set=function $DBWp_(node,cont,_301){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_301){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_301,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function $DBNV_(_302,_303,_304){
_304=dojo.i18n.normalizeLocale(_304);
var _305=_304.split("-");
var _306=[_302,"nls",_303].join(".");
var _307=dojo._loadedModules[_306];
if(_307){
var _308;
for(var i=_305.length;i>0;i--){
var loc=_305.slice(0,i).join("_");
if(_307[loc]){
_308=_307[loc];
break;
}
}
if(!_308){
_308=_307.ROOT;
}
if(_308){
var _309=function(){
};
_309.prototype=_308;
return new _309();
}
}
throw new Error("Bundle not found: "+_303+" in "+_302+" , locale="+_304);
};
dojo.i18n.normalizeLocale=function $DBNW_(_30a){
var _30b=_30a?_30a.toLowerCase():dojo.locale;
if(_30b=="root"){
_30b="ROOT";
}
return _30b;
};
dojo.i18n._requireLocalization=function $DBNX_(_30c,_30d,_30e,_30f){
var _310=dojo.i18n.normalizeLocale(_30e);
var _311=[_30c,"nls",_30d].join(".");
var _312="";
if(_30f){
var _313=_30f.split(",");
for(var i=0;i<_313.length;i++){
if(_310["indexOf"](_313[i])==0){
if(_313[i].length>_312.length){
_312=_313[i];
}
}
}
if(!_312){
_312="ROOT";
}
}
var _314=_30f?_312:_310;
var _315=dojo._loadedModules[_311];
var _316=null;
if(_315){
if(dojo.config.localizationComplete&&_315._built){
return;
}
var _317=_314.replace(/-/g,"_");
var _318=_311+"."+_317;
_316=dojo._loadedModules[_318];
}
if(!_316){
_315=dojo["provide"](_311);
var syms=dojo._getModuleSymbols(_30c);
var _319=syms.concat("nls").join("/");
var _31a;
dojo.i18n._searchLocalePath(_314,_30f,function(loc){
var _31b=loc.replace(/-/g,"_");
var _31c=_311+"."+_31b;
var _31d=false;
if(!dojo._loadedModules[_31c]){
dojo["provide"](_31c);
var _31e=[_319];
if(loc!="ROOT"){
_31e.push(loc);
}
_31e.push(_30d);
var _31f=_31e.join("/")+".js";
_31d=dojo._loadPath(_31f,null,function(hash){
var _320=function(){
};
_320.prototype=_31a;
_315[_31b]=new _320();
for(var j in hash){
_315[_31b][j]=hash[j];
}
});
}else{
_31d=true;
}
if(_31d&&_315[_31b]){
_31a=_315[_31b];
}else{
_315[_31b]=_31a;
}
if(_30f){
return true;
}
});
}
if(_30f&&_310!=_312){
_315[_310.replace(/-/g,"_")]=_315[_312.replace(/-/g,"_")];
}
};
(function(){
var _321=dojo.config.extraLocale;
if(_321){
if(!_321 instanceof Array){
_321=[_321];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function $DBNY_(m,b,_322,_323){
req(m,b,_322,_323);
if(_322){
return;
}
for(var i=0;i<_321.length;i++){
req(m,b,_321[i],_323);
}
};
}
})();
dojo.i18n._searchLocalePath=function $DBNZ_(_324,down,_325){
_324=dojo.i18n.normalizeLocale(_324);
var _326=_324.split("-");
var _327=[];
for(var i=_326.length;i>0;i--){
_327.push(_326.slice(0,i).join("-"));
}
_327.push(false);
if(down){
_327.reverse();
}
for(var j=_327.length-1;j>=0;j--){
var loc=_327[j]||"ROOT";
var stop=_325(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function $DBNa_(_328,_329){
function _32a(_32b){
_32b=dojo.i18n.normalizeLocale(_32b);
dojo.i18n._searchLocalePath(_32b,true,function(loc){
for(var i=0;i<_329.length;i++){
if(_329[i]==loc){
dojo["require"](_328+"_"+loc);
return true;
}
}
return false;
});
};
_32a();
var _32c=dojo.config.extraLocale||[];
for(var i=0;i<_32c.length;i++){
_32a(_32c[i]);
}
};
}
if(!dojo._hasResource["dojo.dnd.Container"]){
dojo._hasResource["dojo.dnd.Container"]=true;
dojo.provide("dojo.dnd.Container");
dojo.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function $DBKX_(node,_32d){
this.node=dojo.byId(node);
if(!_32d){
_32d={};
}
this.creator=_32d.creator||null;
this.skipForm=_32d.skipForm;
this.parent=_32d.dropParent&&dojo.byId(_32d.dropParent);
this.map={};
this.current=null;
this.containerState="";
dojo.addClass(this.node,"dojoDndContainer");
if(!(_32d&&_32d._skipStartup)){
this.startup();
}
this.events=[dojo.connect(this.node,"onmouseover",this,"onMouseOver"),dojo.connect(this.node,"onmouseout",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.connect(this.node,"onselectstart",this,"onSelectStart")];
},creator:function $DBKY_(){
},getItem:function $DBKZ_(key){
return this.map[key];
},setItem:function $DBKa_(key,data){
this.map[key]=data;
},delItem:function $DBKb_(key){
delete this.map[key];
},forInItems:function $DBKc_(f,o){
o=o||dojo.global;
var m=this.map,e=dojo.dnd._empty;
for(var i in m){
if(i in e){
continue;
}
f.call(o,m[i],i,this);
}
return o;
},clearItems:function $DBKd_(){
this.map={};
},getAllNodes:function $DBKe_(){
return dojo.query("> .dojoDndItem",this.parent);
},sync:function $DBKf_(){
var map={};
this.getAllNodes().forEach(function(node){
if(node.id){
var item=this.getItem(node.id);
if(item){
map[node.id]=item;
return;
}
}else{
node.id=dojo.dnd.getUniqueId();
}
var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");
map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};
},this);
this.map=map;
return this;
},insertNodes:function $DBKg_(data,_32e,_32f){
if(!this.parent.firstChild){
_32f=null;
}else{
if(_32e){
if(!_32f){
_32f=this.parent.firstChild;
}
}else{
if(_32f){
_32f=_32f.nextSibling;
}
}
}
if(_32f){
for(var i=0;i<data.length;++i){
var t=this._normalizedCreator(data[i]);
this.setItem(t.node.id,{data:t.data,type:t.type});
this.parent.insertBefore(t.node,_32f);
}
}else{
for(var i=0;i<data.length;++i){
var t=this._normalizedCreator(data[i]);
this.setItem(t.node.id,{data:t.data,type:t.type});
this.parent.appendChild(t.node);
}
}
return this;
},destroy:function $DBKh_(){
dojo.forEach(this.events,dojo.disconnect);
this.clearItems();
this.node=this.parent=this.current=null;
},markupFactory:function $DBKi_(_330,node){
_330._skipStartup=true;
return new dojo.dnd.Container(node,_330);
},startup:function $DBKj_(){
if(!this.parent){
this.parent=this.node;
if(this.parent.tagName.toLowerCase()=="table"){
var c=this.parent.getElementsByTagName("tbody");
if(c&&c.length){
this.parent=c[0];
}
}
}
this.defaultCreator=dojo.dnd._defaultCreator(this.parent);
this.sync();
},onMouseOver:function $DBKk_(e){
var n=e.relatedTarget;
while(n){
if(n==this.node){
break;
}
try{
n=n.parentNode;
}
catch(x){
n=null;
}
}
if(!n){
this._changeState("Container","Over");
this.onOverEvent();
}
n=this._getChildByEvent(e);
if(this.current==n){
return;
}
if(this.current){
this._removeItemClass(this.current,"Over");
}
if(n){
this._addItemClass(n,"Over");
}
this.current=n;
},onMouseOut:function $DBKl_(e){
for(var n=e.relatedTarget;n;){
if(n==this.node){
return;
}
try{
n=n.parentNode;
}
catch(x){
n=null;
}
}
if(this.current){
this._removeItemClass(this.current,"Over");
this.current=null;
}
this._changeState("Container","");
this.onOutEvent();
},onSelectStart:function $DBKm_(e){
if(!this.skipForm||!dojo.dnd.isFormElement(e)){
dojo.stopEvent(e);
}
},onOverEvent:function $DBKn_(){
},onOutEvent:function $DBKo_(){
},_changeState:function $DBKp_(type,_331){
var _332="dojoDnd"+type;
var _333=type.toLowerCase()+"State";
dojo.removeClass(this.node,_332+this[_333]);
dojo.addClass(this.node,_332+_331);
this[_333]=_331;
},_addItemClass:function $DBKq_(node,type){
dojo.addClass(node,"dojoDndItem"+type);
},_removeItemClass:function $DBKr_(node,type){
dojo.removeClass(node,"dojoDndItem"+type);
},_getChildByEvent:function $DBKs_(e){
var node=e.target;
if(node){
for(var _334=node.parentNode;_334;node=_334,_334=node.parentNode){
if(_334==this.parent&&dojo.hasClass(node,"dojoDndItem")){
return node;
}
}
}
return null;
},_normalizedCreator:function $DBKt_(item,hint){
var t=(this.creator||this.defaultCreator).call(this,item,hint);
if(!dojo.isArray(t.type)){
t.type=["text"];
}
if(!t.node.id){
t.node.id=dojo.dnd.getUniqueId();
}
dojo.addClass(t.node,"dojoDndItem");
return t;
}});
dojo.dnd._createNode=function $DBKv_(tag){
if(!tag){
return dojo.dnd._createSpan;
}
return function(text){
return dojo.create(tag,{innerHTML:text});
};
};
dojo.dnd._createTrTd=function $DBKw_(text){
var tr=dojo.create("tr");
dojo.create("td",{innerHTML:text},tr);
return tr;
};
dojo.dnd._createSpan=function $DBKx_(text){
return dojo.create("span",{innerHTML:text});
};
dojo.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};
dojo.dnd._defaultCreator=function $DBKy_(node){
var tag=node.tagName.toLowerCase();
var c=tag=="tbody"||tag=="thead"?dojo.dnd._createTrTd:dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]);
return function(item,hint){
var _335=item&&dojo.isObject(item),data,type,n;
if(_335&&item.tagName&&item.nodeType&&item.getAttribute){
data=item.getAttribute("dndData")||item.innerHTML;
type=item.getAttribute("dndType");
type=type?type.split(/\s*,\s*/):["text"];
n=item;
}else{
data=(_335&&item.data)?item.data:item;
type=(_335&&item.type)?item.type:["text"];
n=(hint=="avatar"?dojo.dnd._createSpan:c)(String(data));
}
n.id=dojo.dnd.getUniqueId();
return {node:n,data:data,type:type};
};
};
}
if(!dojo._hasResource["dojo.dnd.Selector"]){
dojo._hasResource["dojo.dnd.Selector"]=true;
dojo.provide("dojo.dnd.Selector");
dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function $DBJa_(node,_336){
if(!_336){
_336={};
}
this.singular=_336.singular;
this.autoSync=_336.autoSync;
this.selection={};
this.anchor=null;
this.simpleSelection=false;
this.events.push(dojo.connect(this.node,"onmousedown",this,"onMouseDown"),dojo.connect(this.node,"onmouseup",this,"onMouseUp"));
},singular:false,getSelectedNodes:function $DBJb_(){
var t=new dojo.NodeList();
var e=dojo.dnd._empty;
for(var i in this.selection){
if(i in e){
continue;
}
t.push(dojo.byId(i));
}
return t;
},selectNone:function $DBJc_(){
return this._removeSelection()._removeAnchor();
},selectAll:function $DBJd_(){
this.forInItems(function(data,id){
this._addItemClass(dojo.byId(id),"Selected");
this.selection[id]=1;
},this);
return this._removeAnchor();
},deleteSelectedNodes:function $DBJe_(){
var e=dojo.dnd._empty;
for(var i in this.selection){
if(i in e){
continue;
}
var n=dojo.byId(i);
this.delItem(i);
dojo.destroy(n);
}
this.anchor=null;
this.selection={};
return this;
},forInSelectedItems:function $DBJf_(f,o){
o=o||dojo.global;
var s=this.selection,e=dojo.dnd._empty;
for(var i in s){
if(i in e){
continue;
}
f.call(o,this.getItem(i),i,this);
}
},sync:function $DBJg_(){
dojo.dnd.Selector.superclass.sync.call(this);
if(this.anchor){
if(!this.getItem(this.anchor.id)){
this.anchor=null;
}
}
var t=[],e=dojo.dnd._empty;
for(var i in this.selection){
if(i in e){
continue;
}
if(!this.getItem(i)){
t.push(i);
}
}
dojo.forEach(t,function(i){
delete this.selection[i];
},this);
return this;
},insertNodes:function $DBJh_(_337,data,_338,_339){
var _33a=this._normalizedCreator;
this._normalizedCreator=function $DBJr_(item,hint){
var t=_33a.call(this,item,hint);
if(_337){
if(!this.anchor){
this.anchor=t.node;
this._removeItemClass(t.node,"Selected");
this._addItemClass(this.anchor,"Anchor");
}else{
if(this.anchor!=t.node){
this._removeItemClass(t.node,"Anchor");
this._addItemClass(t.node,"Selected");
}
}
this.selection[t.node.id]=1;
}else{
this._removeItemClass(t.node,"Selected");
this._removeItemClass(t.node,"Anchor");
}
return t;
};
dojo.dnd.Selector.superclass.insertNodes.call(this,data,_338,_339);
this._normalizedCreator=_33a;
return this;
},destroy:function $DBJi_(){
dojo.dnd.Selector.superclass.destroy.call(this);
this.selection=this.anchor=null;
},markupFactory:function $DBJj_(_33b,node){
_33b._skipStartup=true;
return new dojo.dnd.Selector(node,_33b);
},onMouseDown:function $DBJk_(e){
if(this.autoSync){
this.sync();
}
if(!this.current){
return;
}
if(!this.singular&&!dojo.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){
this.simpleSelection=true;
if(e.button===dojo.mouseButtons.LEFT){
dojo.stopEvent(e);
}
return;
}
if(!this.singular&&e.shiftKey){
if(!dojo.isCopyKey(e)){
this._removeSelection();
}
var c=this.getAllNodes();
if(c.length){
if(!this.anchor){
this.anchor=c[0];
this._addItemClass(this.anchor,"Anchor");
}
this.selection[this.anchor.id]=1;
if(this.anchor!=this.current){
var i=0;
for(;i<c.length;++i){
var node=c[i];
if(node==this.anchor||node==this.current){
break;
}
}
for(++i;i<c.length;++i){
var node=c[i];
if(node==this.anchor||node==this.current){
break;
}
this._addItemClass(node,"Selected");
this.selection[node.id]=1;
}
this._addItemClass(this.current,"Selected");
this.selection[this.current.id]=1;
}
}
}else{
if(this.singular){
if(this.anchor==this.current){
if(dojo.isCopyKey(e)){
this.selectNone();
}
}else{
this.selectNone();
this.anchor=this.current;
this._addItemClass(this.anchor,"Anchor");
this.selection[this.current.id]=1;
}
}else{
if(dojo.isCopyKey(e)){
if(this.anchor==this.current){
delete this.selection[this.anchor.id];
this._removeAnchor();
}else{
if(this.current.id in this.selection){
this._removeItemClass(this.current,"Selected");
delete this.selection[this.current.id];
}else{
if(this.anchor){
this._removeItemClass(this.anchor,"Anchor");
this._addItemClass(this.anchor,"Selected");
}
this.anchor=this.current;
this._addItemClass(this.current,"Anchor");
this.selection[this.current.id]=1;
}
}
}else{
if(!(this.current.id in this.selection)){
this.selectNone();
this.anchor=this.current;
this._addItemClass(this.current,"Anchor");
this.selection[this.current.id]=1;
}
}
}
}
dojo.stopEvent(e);
},onMouseUp:function $DBJl_(e){
if(!this.simpleSelection){
return;
}
this.simpleSelection=false;
this.selectNone();
if(this.current){
this.anchor=this.current;
this._addItemClass(this.anchor,"Anchor");
this.selection[this.current.id]=1;
}
},onMouseMove:function $DBJm_(e){
this.simpleSelection=false;
},onOverEvent:function $DBJn_(){
this.onmousemoveEvent=dojo.connect(this.node,"onmousemove",this,"onMouseMove");
},onOutEvent:function $DBJo_(){
dojo.disconnect(this.onmousemoveEvent);
delete this.onmousemoveEvent;
},_removeSelection:function $DBJp_(){
var e=dojo.dnd._empty;
for(var i in this.selection){
if(i in e){
continue;
}
var node=dojo.byId(i);
if(node){
this._removeItemClass(node,"Selected");
}
}
this.selection={};
return this;
},_removeAnchor:function $DBJq_(){
if(this.anchor){
this._removeItemClass(this.anchor,"Anchor");
this.anchor=null;
}
return this;
}});
}
if(!dojo._hasResource["dojo.dnd.Avatar"]){
dojo._hasResource["dojo.dnd.Avatar"]=true;
dojo.provide("dojo.dnd.Avatar");
dojo.declare("dojo.dnd.Avatar",null,{constructor:function $DBLD_(_33c){
this.manager=_33c;
this.construct();
},construct:function $DBLE_(){
this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");
var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_33d=this.manager.source,node,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),icon=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,span=dojo.create("span",{innerHTML:_33d.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;
dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});
for(;i<k;++i){
if(_33d.creator){
node=_33d._normalizedCreator(_33d.getItem(this.manager.nodes[i].id).data,"avatar").node;
}else{
node=this.manager.nodes[i].cloneNode(true);
if(node.tagName.toLowerCase()=="tr"){
var _33e=dojo.create("table"),_33f=dojo.create("tbody",null,_33e);
_33f.appendChild(node);
node=_33e;
}
}
node.id="";
tr=dojo.create("tr",null,b);
td=dojo.create("td",null,tr);
td.appendChild(node);
dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});
}
this.node=a;
},destroy:function $DBLF_(){
dojo.destroy(this.node);
this.node=false;
},update:function $DBLG_(){
dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");
if(this.isA11y){
var icon=dojo.byId("a11yIcon");
var text="+";
if(this.manager.canDropFlag&&!this.manager.copy){
text="< ";
}else{
if(!this.manager.canDropFlag&&!this.manager.copy){
text="o";
}else{
if(!this.manager.canDropFlag){
text="x";
}
}
}
icon.innerHTML=text;
}
dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(node){
node.innerHTML=this._generateText();
},this);
},_generateText:function $DBLH_(){
return this.manager.nodes.length.toString();
}});
}
if(!dojo._hasResource["dojo.dnd.Manager"]){
dojo._hasResource["dojo.dnd.Manager"]=true;
dojo.provide("dojo.dnd.Manager");
dojo.declare("dojo.dnd.Manager",null,{constructor:function $DBKz_(){
this.avatar=null;
this.source=null;
this.nodes=[];
this.copy=true;
this.target=null;
this.canDropFlag=false;
this.events=[];
},OFFSET_X:16,OFFSET_Y:16,overSource:function $DBK0_(_340){
if(this.avatar){
this.target=(_340&&_340.targetState!="Disabled")?_340:null;
this.canDropFlag=Boolean(this.target);
this.avatar.update();
}
dojo.publish("/dnd/source/over",[_340]);
},outSource:function $DBK1_(_341){
if(this.avatar){
if(this.target==_341){
this.target=null;
this.canDropFlag=false;
this.avatar.update();
dojo.publish("/dnd/source/over",[null]);
}
}else{
dojo.publish("/dnd/source/over",[null]);
}
},startDrag:function $DBK2_(_342,_343,copy){
this.source=_342;
this.nodes=_343;
this.copy=Boolean(copy);
this.avatar=this.makeAvatar();
dojo.body().appendChild(this.avatar.node);
dojo.publish("/dnd/start",[_342,_343,this.copy]);
this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp"),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent)];
var c="dojoDnd"+(copy?"Copy":"Move");
dojo.addClass(dojo.body(),c);
},canDrop:function $DBK3_(flag){
var _344=Boolean(this.target&&flag);
if(this.canDropFlag!=_344){
this.canDropFlag=_344;
this.avatar.update();
}
},stopDrag:function $DBK4_(){
dojo.removeClass(dojo.body(),"dojoDndCopy");
dojo.removeClass(dojo.body(),"dojoDndMove");
dojo.forEach(this.events,dojo.disconnect);
this.events=[];
this.avatar.destroy();
this.avatar=null;
this.source=this.target=null;
this.nodes=[];
},makeAvatar:function $DBK5_(){
return new dojo.dnd.Avatar(this);
},updateAvatar:function $DBK6_(){
this.avatar.update();
},onMouseMove:function $DBK7_(e){
var a=this.avatar;
if(a){
dojo.dnd.autoScrollNodes(e);
var s=a.node.style;
s.left=(e.pageX+this.OFFSET_X)+"px";
s.top=(e.pageY+this.OFFSET_Y)+"px";
var copy=Boolean(this.source.copyState(dojo.isCopyKey(e)));
if(this.copy!=copy){
this._setCopyStatus(copy);
}
}
},onMouseUp:function $DBK8_(e){
if(this.avatar){
if(this.target&&this.canDropFlag){
var copy=Boolean(this.source.copyState(dojo.isCopyKey(e))),_345=[this.source,this.nodes,copy,this.target];
dojo.publish("/dnd/drop/before",_345);
dojo.publish("/dnd/drop",_345);
}else{
dojo.publish("/dnd/cancel");
}
this.stopDrag();
}
},onKeyDown:function $DBK9_(e){
if(this.avatar){
switch(e.keyCode){
case dojo.keys.CTRL:
var copy=Boolean(this.source.copyState(true));
if(this.copy!=copy){
this._setCopyStatus(copy);
}
break;
case dojo.keys.ESCAPE:
dojo.publish("/dnd/cancel");
this.stopDrag();
break;
}
}
},onKeyUp:function $DBLA_(e){
if(this.avatar&&e.keyCode==dojo.keys.CTRL){
var copy=Boolean(this.source.copyState(false));
if(this.copy!=copy){
this._setCopyStatus(copy);
}
}
},_setCopyStatus:function $DBLB_(copy){
this.copy=copy;
this.source._markDndStatus(this.copy);
this.updateAvatar();
dojo.removeClass(dojo.body(),"dojoDnd"+(this.copy?"Move":"Copy"));
dojo.addClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"));
}});
dojo.dnd._manager=null;
dojo.dnd.manager=function $DBLC_(){
if(!dojo.dnd._manager){
dojo.dnd._manager=new dojo.dnd.Manager();
}
return dojo.dnd._manager;
};
}
if(!dojo._hasResource["dojo.dnd.Source"]){
dojo._hasResource["dojo.dnd.Source"]=true;
dojo.provide("dojo.dnd.Source");
dojo.declare("dojo.dnd.Source",dojo.dnd.Selector,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function $DBI2_(node,_346){
dojo.mixin(this,dojo.mixin({},_346));
var type=this.accept;
if(type.length){
this.accept={};
for(var i=0;i<type.length;++i){
this.accept[type[i]]=1;
}
}
this.isDragging=false;
this.mouseDown=false;
this.targetAnchor=null;
this.targetBox=null;
this.before=true;
this._lastX=0;
this._lastY=0;
this.sourceState="";
if(this.isSource){
dojo.addClass(this.node,"dojoDndSource");
}
this.targetState="";
if(this.accept){
dojo.addClass(this.node,"dojoDndTarget");
}
if(this.horizontal){
dojo.addClass(this.node,"dojoDndHorizontal");
}
this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];
},checkAcceptance:function $DBI3_(_347,_348){
if(this==_347){
return !this.copyOnly||this.selfAccept;
}
for(var i=0;i<_348.length;++i){
var type=_347.getItem(_348[i].id).type;
var flag=false;
for(var j=0;j<type.length;++j){
if(type[j] in this.accept){
flag=true;
break;
}
}
if(!flag){
return false;
}
}
return true;
},copyState:function $DBI4_(_349,self){
if(_349){
return true;
}
if(arguments.length<2){
self=this==dojo.dnd.manager().target;
}
if(self){
if(this.copyOnly){
return this.selfCopy;
}
}else{
return this.copyOnly;
}
return false;
},destroy:function $DBI5_(){
dojo.dnd.Source.superclass.destroy.call(this);
dojo.forEach(this.topics,dojo.unsubscribe);
this.targetAnchor=null;
},markupFactory:function $DBI6_(_34a,node){
_34a._skipStartup=true;
return new dojo.dnd.Source(node,_34a);
},onMouseMove:function $DBI7_(e){
if(this.isDragging&&this.targetState=="Disabled"){
return;
}
dojo.dnd.Source.superclass.onMouseMove.call(this,e);
var m=dojo.dnd.manager();
if(this.isDragging){
var _34b=false;
if(this.current){
if(!this.targetBox||this.targetAnchor!=this.current){
this.targetBox=dojo.position(this.current,true);
}
if(this.horizontal){
_34b=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);
}else{
_34b=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);
}
}
if(this.current!=this.targetAnchor||_34b!=this.before){
this._markTargetAnchor(_34b);
m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));
}
}else{
if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){
var _34c=this.getSelectedNodes();
if(_34c.length){
m.startDrag(this,_34c,this.copyState(dojo.isCopyKey(e),true));
}
}
}
},onMouseDown:function $DBI8_(e){
if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){
this.mouseDown=true;
this._lastX=e.pageX;
this._lastY=e.pageY;
dojo.dnd.Source.superclass.onMouseDown.call(this,e);
}
},onMouseUp:function $DBI9_(e){
if(this.mouseDown){
this.mouseDown=false;
dojo.dnd.Source.superclass.onMouseUp.call(this,e);
}
},onDndSourceOver:function $DBJA_(_34d){
if(this!=_34d){
this.mouseDown=false;
if(this.targetAnchor){
this._unmarkTargetAnchor();
}
}else{
if(this.isDragging){
var m=dojo.dnd.manager();
m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));
}
}
},onDndStart:function $DBJB_(_34e,_34f,copy){
if(this.autoSync){
this.sync();
}
if(this.isSource){
this._changeState("Source",this==_34e?(copy?"Copied":"Moved"):"");
}
var _350=this.accept&&this.checkAcceptance(_34e,_34f);
this._changeState("Target",_350?"":"Disabled");
if(this==_34e){
dojo.dnd.manager().overSource(this);
}
this.isDragging=true;
},onDndDrop:function $DBJC_(_351,_352,copy,_353){
if(this==_353){
this.onDrop(_351,_352,copy);
}
this.onDndCancel();
},onDndCancel:function $DBJD_(){
if(this.targetAnchor){
this._unmarkTargetAnchor();
this.targetAnchor=null;
}
this.before=true;
this.isDragging=false;
this.mouseDown=false;
this._changeState("Source","");
this._changeState("Target","");
},onDrop:function $DBJE_(_354,_355,copy){
if(this!=_354){
this.onDropExternal(_354,_355,copy);
}else{
this.onDropInternal(_355,copy);
}
},onDropExternal:function $DBJF_(_356,_357,copy){
var _358=this._normalizedCreator;
if(this.creator){
this._normalizedCreator=function $DBJT_(node,hint){
return _358.call(this,_356.getItem(node.id).data,hint);
};
}else{
if(copy){
this._normalizedCreator=function $DBJU_(node,hint){
var t=_356.getItem(node.id);
var n=node.cloneNode(true);
n.id=dojo.dnd.getUniqueId();
return {node:n,data:t.data,type:t.type};
};
}else{
this._normalizedCreator=function $DBJV_(node,hint){
var t=_356.getItem(node.id);
_356.delItem(node.id);
return {node:node,data:t.data,type:t.type};
};
}
}
this.selectNone();
if(!copy&&!this.creator){
_356.selectNone();
}
this.insertNodes(true,_357,this.before,this.current);
if(!copy&&this.creator){
_356.deleteSelectedNodes();
}
this._normalizedCreator=_358;
},onDropInternal:function $DBJG_(_359,copy){
var _35a=this._normalizedCreator;
if(this.current&&this.current.id in this.selection){
return;
}
if(copy){
if(this.creator){
this._normalizedCreator=function $DBJW_(node,hint){
return _35a.call(this,this.getItem(node.id).data,hint);
};
}else{
this._normalizedCreator=function $DBJX_(node,hint){
var t=this.getItem(node.id);
var n=node.cloneNode(true);
n.id=dojo.dnd.getUniqueId();
return {node:n,data:t.data,type:t.type};
};
}
}else{
if(!this.current){
return;
}
this._normalizedCreator=function $DBJY_(node,hint){
var t=this.getItem(node.id);
return {node:node,data:t.data,type:t.type};
};
}
this._removeSelection();
this.insertNodes(true,_359,this.before,this.current);
this._normalizedCreator=_35a;
},onDraggingOver:function $DBJH_(){
},onDraggingOut:function $DBJI_(){
},onOverEvent:function $DBJJ_(){
dojo.dnd.Source.superclass.onOverEvent.call(this);
dojo.dnd.manager().overSource(this);
if(this.isDragging&&this.targetState!="Disabled"){
this.onDraggingOver();
}
},onOutEvent:function $DBJK_(){
dojo.dnd.Source.superclass.onOutEvent.call(this);
dojo.dnd.manager().outSource(this);
if(this.isDragging&&this.targetState!="Disabled"){
this.onDraggingOut();
}
},_markTargetAnchor:function $DBJL_(_35b){
if(this.current==this.targetAnchor&&this.before==_35b){
return;
}
if(this.targetAnchor){
this._removeItemClass(this.targetAnchor,this.before?"Before":"After");
}
this.targetAnchor=this.current;
this.targetBox=null;
this.before=_35b;
if(this.targetAnchor){
this._addItemClass(this.targetAnchor,this.before?"Before":"After");
}
},_unmarkTargetAnchor:function $DBJM_(){
if(!this.targetAnchor){
return;
}
this._removeItemClass(this.targetAnchor,this.before?"Before":"After");
this.targetAnchor=null;
this.targetBox=null;
this.before=true;
},_markDndStatus:function $DBJN_(copy){
this._changeState("Source",copy?"Copied":"Moved");
},_legalMouseDown:function $DBJO_(e){
if(!dojo.mouseButtons.isLeft(e)){
return false;
}
if(!this.withHandles){
return true;
}
for(var node=e.target;node&&node!==this.node;node=node.parentNode){
if(dojo.hasClass(node,"dojoDndHandle")){
return true;
}
if(dojo.hasClass(node,"dojoDndItem")||dojo.hasClass(node,"dojoDndIgnore")){
break;
}
}
return false;
}});
dojo.declare("dojo.dnd.Target",dojo.dnd.Source,{constructor:function $DBJP_(node,_35c){
this.isSource=false;
dojo.removeClass(this.node,"dojoDndSource");
},markupFactory:function $DBJQ_(_35d,node){
_35d._skipStartup=true;
return new dojo.dnd.Target(node,_35d);
}});
dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function $DBJR_(node,_35e){
this.autoSync=true;
},markupFactory:function $DBJS_(_35f,node){
_35f._skipStartup=true;
return new dojo.dnd.AutoSource(node,_35f);
}});
}
if(!dojo._hasResource["dojo.data.util.filter"]){
dojo._hasResource["dojo.data.util.filter"]=true;
dojo.provide("dojo.data.util.filter");
dojo.data.util.filter.patternToRegExp=function $DBLp_(_360,_361){
var rxp="^";
var c=null;
for(var i=0;i<_360.length;i++){
c=_360.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_360.charAt(i);
break;
case "*":
rxp+=".*";
break;
case "?":
rxp+=".";
break;
case "$":
case "^":
case "/":
case "+":
case ".":
case "|":
case "(":
case ")":
case "{":
case "}":
case "[":
case "]":
rxp+="\\";
default:
rxp+=c;
}
}
rxp+="$";
if(_361){
return new RegExp(rxp,"mi");
}else{
return new RegExp(rxp,"m");
}
};
}
if(!dojo._hasResource["dojo.data.util.sorter"]){
dojo._hasResource["dojo.data.util.sorter"]=true;
dojo.provide("dojo.data.util.sorter");
dojo.data.util.sorter.basicComparator=function $DBLq_(a,b){
var r=-1;
if(a===null){
a=undefined;
}
if(b===null){
b=undefined;
}
if(a==b){
r=0;
}else{
if(a>b||a==null){
r=1;
}
}
return r;
};
dojo.data.util.sorter.createSortFunction=function $DBLr_(_362,_363){
var _364=[];
function _365(attr,dir,comp,s){
return function(_366,_367){
var a=s.getValue(_366,attr);
var b=s.getValue(_367,attr);
return dir*comp(a,b);
};
};
var _368;
var map=_363.comparatorMap;
var bc=dojo.data.util.sorter.basicComparator;
for(var i=0;i<_362.length;i++){
_368=_362[i];
var attr=_368.attribute;
if(attr){
var dir=(_368.descending)?-1:1;
var comp=bc;
if(map){
if(typeof attr!=="string"&&("toString" in attr)){
attr=attr.toString();
}
comp=map[attr]||bc;
}
_364.push(_365(attr,dir,comp,_363));
}
}
return function(rowA,rowB){
var i=0;
while(i<_364.length){
var ret=_364[i++](rowA,rowB);
if(ret!==0){
return ret;
}
}
return 0;
};
};
}
if(!dojo._hasResource["dojo.data.util.simpleFetch"]){
dojo._hasResource["dojo.data.util.simpleFetch"]=true;
dojo.provide("dojo.data.util.simpleFetch");
dojo.data.util.simpleFetch.fetch=function $DBLs_(_369){
_369=_369||{};
if(!_369.store){
_369.store=this;
}
var self=this;
var _36a=function(_36b,_36c){
if(_36c.onError){
var _36d=_36c.scope||dojo.global;
_36c.onError.call(_36d,_36b,_36c);
}
};
var _36e=function(_36f,_370){
var _371=_370.abort||null;
var _372=false;
var _373=_370.start?_370.start:0;
var _374=(_370.count&&(_370.count!==Infinity))?(_373+_370.count):_36f.length;
_370.abort=function $DBLt_(){
_372=true;
if(_371){
_371.call(_370);
}
};
var _375=_370.scope||dojo.global;
if(!_370.store){
_370.store=self;
}
if(_370.onBegin){
_370.onBegin.call(_375,_36f.length,_370);
}
if(_370.sort){
_36f.sort(dojo.data.util.sorter.createSortFunction(_370.sort,self));
}
if(_370.onItem){
for(var i=_373;(i<_36f.length)&&(i<_374);++i){
var item=_36f[i];
if(!_372){
_370.onItem.call(_375,item,_370);
}
}
}
if(_370.onComplete&&!_372){
var _376=null;
if(!_370.onItem){
_376=_36f.slice(_373,_374);
}
_370.onComplete.call(_375,_376,_370);
}
};
this._fetchItems(_369,_36e,_36a);
return _369;
};
}
if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){
dojo._hasResource["dojo.data.ItemFileReadStore"]=true;
dojo.provide("dojo.data.ItemFileReadStore");
dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function $DBLu_(_377){
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._jsonFileUrl=_377.url;
this._ccUrl=_377.url;
this.url=_377.url;
this._jsonData=_377.data;
this.data=null;
this._datatypeMap=_377.typeMap||{};
if(!this._datatypeMap["Date"]){
this._datatypeMap["Date"]={type:Date,deserialize:function $DBLv_(_378){
return dojo.date.stamp.fromISOString(_378);
}};
}
this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
this._itemsByIdentity=null;
this._storeRefPropName="_S";
this._itemNumPropName="_0";
this._rootItemPropName="_RI";
this._reverseRefMap="_RRM";
this._loadInProgress=false;
this._queuedFetches=[];
if(_377.urlPreventCache!==undefined){
this.urlPreventCache=_377.urlPreventCache?true:false;
}
if(_377.hierarchical!==undefined){
this.hierarchical=_377.hierarchical?true:false;
}
if(_377.clearOnClose){
this.clearOnClose=true;
}
if("failOk" in _377){
this.failOk=_377.failOk?true:false;
}
},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function $DBLw_(item){
if(!this.isItem(item)){
throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");
}
},_assertIsAttribute:function $DBLx_(_379){
if(typeof _379!=="string"){
throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");
}
},getValue:function $DBLy_(item,_37a,_37b){
var _37c=this.getValues(item,_37a);
return (_37c.length>0)?_37c[0]:_37b;
},getValues:function $DBLz_(item,_37d){
this._assertIsItem(item);
this._assertIsAttribute(_37d);
return item[_37d]||[];
},getAttributes:function $DBL0_(item){
this._assertIsItem(item);
var _37e=[];
for(var key in item){
if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){
_37e.push(key);
}
}
return _37e;
},hasAttribute:function $DBL1_(item,_37f){
this._assertIsItem(item);
this._assertIsAttribute(_37f);
return (_37f in item);
},containsValue:function $DBL2_(item,_380,_381){
var _382=undefined;
if(typeof _381==="string"){
_382=dojo.data.util.filter.patternToRegExp(_381,false);
}
return this._containsValue(item,_380,_381,_382);
},_containsValue:function $DBL3_(item,_383,_384,_385){
return dojo.some(this.getValues(item,_383),function(_386){
if(_386!==null&&!dojo.isObject(_386)&&_385){
if(_386.toString().match(_385)){
return true;
}
}else{
if(_384===_386){
return true;
}
}
});
},isItem:function $DBL4_(_387){
if(_387&&_387[this._storeRefPropName]===this){
if(this._arrayOfAllItems[_387[this._itemNumPropName]]===_387){
return true;
}
}
return false;
},isItemLoaded:function $DBL5_(_388){
return this.isItem(_388);
},loadItem:function $DBL6_(_389){
this._assertIsItem(_389.item);
},getFeatures:function $DBL7_(){
return this._features;
},getLabel:function $DBL8_(item){
if(this._labelAttr&&this.isItem(item)){
return this.getValue(item,this._labelAttr);
}
return undefined;
},getLabelAttributes:function $DBL9_(item){
if(this._labelAttr){
return [this._labelAttr];
}
return null;
},_fetchItems:function $DBMA_(_38a,_38b,_38c){
var self=this;
var _38d=function(_38e,_38f){
var _390=[];
var i,key;
if(_38e.query){
var _391;
var _392=_38e.queryOptions?_38e.queryOptions.ignoreCase:false;
var _393={};
for(key in _38e.query){
_391=_38e.query[key];
if(typeof _391==="string"){
_393[key]=dojo.data.util.filter.patternToRegExp(_391,_392);
}else{
if(_391 instanceof RegExp){
_393[key]=_391;
}
}
}
for(i=0;i<_38f.length;++i){
var _394=true;
var _395=_38f[i];
if(_395===null){
_394=false;
}else{
for(key in _38e.query){
_391=_38e.query[key];
if(!self._containsValue(_395,key,_391,_393[key])){
_394=false;
}
}
}
if(_394){
_390.push(_395);
}
}
_38b(_390,_38e);
}else{
for(i=0;i<_38f.length;++i){
var item=_38f[i];
if(item!==null){
_390.push(item);
}
}
_38b(_390,_38e);
}
};
if(this._loadFinished){
_38d(_38a,this._getItemsArray(_38a.queryOptions));
}else{
if(this._jsonFileUrl!==this._ccUrl){
dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_38a,filter:_38d});
}else{
this._loadInProgress=true;
var _396={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};
var _397=dojo.xhrGet(_396);
_397.addCallback(function(data){
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
_38d(_38a,self._getItemsArray(_38a.queryOptions));
self._handleQueuedFetches();
}
catch(e){
self._loadFinished=true;
self._loadInProgress=false;
_38c(e,_38a);
}
});
_397.addErrback(function(_398){
self._loadInProgress=false;
_38c(_398,_38a);
});
var _399=null;
if(_38a.abort){
_399=_38a.abort;
}
_38a.abort=function $DBML_(){
var df=_397;
if(df&&df.fired===-1){
df.cancel();
df=null;
}
if(_399){
_399.call(_38a);
}
};
}
}else{
if(this._jsonData){
try{
this._loadFinished=true;
this._getItemsFromLoadedData(this._jsonData);
this._jsonData=null;
_38d(_38a,this._getItemsArray(_38a.queryOptions));
}
catch(e){
_38c(e,_38a);
}
}else{
_38c(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_38a);
}
}
}
},_handleQueuedFetches:function $DBMB_(){
if(this._queuedFetches.length>0){
for(var i=0;i<this._queuedFetches.length;i++){
var _39a=this._queuedFetches[i];
var _39b=_39a.args;
var _39c=_39a.filter;
if(_39c){
_39c(_39b,this._getItemsArray(_39b.queryOptions));
}else{
this.fetchItemByIdentity(_39b);
}
}
this._queuedFetches=[];
}
},_getItemsArray:function $DBMC_(_39d){
if(_39d&&_39d.deep){
return this._arrayOfAllItems;
}
return this._arrayOfTopLevelItems;
},close:function $DBMD_(_39e){
if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){
if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){
console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");
}
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._itemsByIdentity=null;
this._loadInProgress=false;
this._queuedFetches=[];
}
},_getItemsFromLoadedData:function $DBME_(_39f){
var _3a0=false;
var self=this;
function _3a1(_3a2){
var _3a3=((_3a2!==null)&&(typeof _3a2==="object")&&(!dojo.isArray(_3a2)||_3a0)&&(!dojo.isFunction(_3a2))&&(_3a2.constructor==Object||dojo.isArray(_3a2))&&(typeof _3a2._reference==="undefined")&&(typeof _3a2._type==="undefined")&&(typeof _3a2._value==="undefined")&&self.hierarchical);
return _3a3;
};
function _3a4(_3a5){
self._arrayOfAllItems.push(_3a5);
for(var _3a6 in _3a5){
var _3a7=_3a5[_3a6];
if(_3a7){
if(dojo.isArray(_3a7)){
var _3a8=_3a7;
for(var k=0;k<_3a8.length;++k){
var _3a9=_3a8[k];
if(_3a1(_3a9)){
_3a4(_3a9);
}
}
}else{
if(_3a1(_3a7)){
_3a4(_3a7);
}
}
}
}
};
this._labelAttr=_39f.label;
var i;
var item;
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=_39f.items;
for(i=0;i<this._arrayOfTopLevelItems.length;++i){
item=this._arrayOfTopLevelItems[i];
if(dojo.isArray(item)){
_3a0=true;
}
_3a4(item);
item[this._rootItemPropName]=true;
}
var _3aa={};
var key;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
if(key!==this._rootItemPropName){
var _3ab=item[key];
if(_3ab!==null){
if(!dojo.isArray(_3ab)){
item[key]=[_3ab];
}
}else{
item[key]=[null];
}
}
_3aa[key]=key;
}
}
while(_3aa[this._storeRefPropName]){
this._storeRefPropName+="_";
}
while(_3aa[this._itemNumPropName]){
this._itemNumPropName+="_";
}
while(_3aa[this._reverseRefMap]){
this._reverseRefMap+="_";
}
var _3ac;
var _3ad=_39f.identifier;
if(_3ad){
this._itemsByIdentity={};
this._features["dojo.data.api.Identity"]=_3ad;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
_3ac=item[_3ad];
var _3ae=_3ac[0];
if(!this._itemsByIdentity[_3ae]){
this._itemsByIdentity[_3ae]=item;
}else{
if(this._jsonFileUrl){
throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_3ad+"].  Value collided: ["+_3ae+"]");
}else{
if(this._jsonData){
throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_3ad+"].  Value collided: ["+_3ae+"]");
}
}
}
}
}else{
this._features["dojo.data.api.Identity"]=Number;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
item[this._storeRefPropName]=this;
item[this._itemNumPropName]=i;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
_3ac=item[key];
for(var j=0;j<_3ac.length;++j){
_3ab=_3ac[j];
if(_3ab!==null&&typeof _3ab=="object"){
if(("_type" in _3ab)&&("_value" in _3ab)){
var type=_3ab._type;
var _3af=this._datatypeMap[type];
if(!_3af){
throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");
}else{
if(dojo.isFunction(_3af)){
_3ac[j]=new _3af(_3ab._value);
}else{
if(dojo.isFunction(_3af.deserialize)){
_3ac[j]=_3af.deserialize(_3ab._value);
}else{
throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
}
}
}
}
if(_3ab._reference){
var _3b0=_3ab._reference;
if(!dojo.isObject(_3b0)){
_3ac[j]=this._itemsByIdentity[_3b0];
}else{
for(var k=0;k<this._arrayOfAllItems.length;++k){
var _3b1=this._arrayOfAllItems[k];
var _3b2=true;
for(var _3b3 in _3b0){
if(_3b1[_3b3]!=_3b0[_3b3]){
_3b2=false;
}
}
if(_3b2){
_3ac[j]=_3b1;
}
}
}
if(this.referenceIntegrity){
var _3b4=_3ac[j];
if(this.isItem(_3b4)){
this._addReferenceToMap(_3b4,item,key);
}
}
}else{
if(this.isItem(_3ab)){
if(this.referenceIntegrity){
this._addReferenceToMap(_3ab,item,key);
}
}
}
}
}
}
}
},_addReferenceToMap:function $DBMF_(_3b5,_3b6,_3b7){
},getIdentity:function $DBMG_(item){
var _3b8=this._features["dojo.data.api.Identity"];
if(_3b8===Number){
return item[this._itemNumPropName];
}else{
var _3b9=item[_3b8];
if(_3b9){
return _3b9[0];
}
}
return null;
},fetchItemByIdentity:function $DBMH_(_3ba){
var item;
var _3bb;
if(!this._loadFinished){
var self=this;
if(this._jsonFileUrl!==this._ccUrl){
dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_3ba});
}else{
this._loadInProgress=true;
var _3bc={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};
var _3bd=dojo.xhrGet(_3bc);
_3bd.addCallback(function(data){
var _3be=_3ba.scope?_3ba.scope:dojo.global;
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
item=self._getItemByIdentity(_3ba.identity);
if(_3ba.onItem){
_3ba.onItem.call(_3be,item);
}
self._handleQueuedFetches();
}
catch(error){
self._loadInProgress=false;
if(_3ba.onError){
_3ba.onError.call(_3be,error);
}
}
});
_3bd.addErrback(function(_3bf){
self._loadInProgress=false;
if(_3ba.onError){
var _3c0=_3ba.scope?_3ba.scope:dojo.global;
_3ba.onError.call(_3c0,_3bf);
}
});
}
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
item=self._getItemByIdentity(_3ba.identity);
if(_3ba.onItem){
_3bb=_3ba.scope?_3ba.scope:dojo.global;
_3ba.onItem.call(_3bb,item);
}
}
}
}else{
item=this._getItemByIdentity(_3ba.identity);
if(_3ba.onItem){
_3bb=_3ba.scope?_3ba.scope:dojo.global;
_3ba.onItem.call(_3bb,item);
}
}
},_getItemByIdentity:function $DBMI_(_3c1){
var item=null;
if(this._itemsByIdentity){
item=this._itemsByIdentity[_3c1];
}else{
item=this._arrayOfAllItems[_3c1];
}
if(item===undefined){
item=null;
}
return item;
},getIdentityAttributes:function $DBMJ_(item){
var _3c2=this._features["dojo.data.api.Identity"];
if(_3c2===Number){
return null;
}else{
return [_3c2];
}
},_forceLoad:function $DBMK_(){
var self=this;
if(this._jsonFileUrl!==this._ccUrl){
dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
var _3c3={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};
var _3c4=dojo.xhrGet(_3c3);
_3c4.addCallback(function(data){
try{
if(self._loadInProgress!==true&&!self._loadFinished){
self._getItemsFromLoadedData(data);
self._loadFinished=true;
}else{
if(self._loadInProgress){
throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");
}
}
}
catch(e){
console.log(e);
throw e;
}
});
_3c4.addErrback(function(_3c5){
throw _3c5;
});
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
}
}
}});
dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);
}
if(!dojo._hasResource["dijit._base.manager"]){
dojo._hasResource["dijit._base.manager"]=true;
dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function $DA83_(){
this._hash={};
this.length=0;
},add:function $DA84_(_3c6){
if(this._hash[_3c6.id]){
throw new Error("Tried to register widget with id=="+_3c6.id+" but that id is already registered");
}
this._hash[_3c6.id]=_3c6;
this.length++;
},remove:function $DA85_(id){
if(this._hash[id]){
delete this._hash[id];
this.length--;
}
},forEach:function $DA86_(func,_3c7){
_3c7=_3c7||dojo.global;
var i=0,id;
for(id in this._hash){
func.call(_3c7,this._hash[id],i++,this._hash);
}
return this;
},filter:function $DA87_(_3c8,_3c9){
_3c9=_3c9||dojo.global;
var res=new dijit.WidgetSet(),i=0,id;
for(id in this._hash){
var w=this._hash[id];
if(_3c8.call(_3c9,w,i++,this._hash)){
res.add(w);
}
}
return res;
},byId:function $DA88_(id){
return this._hash[id];
},byClass:function $DA89_(cls){
var res=new dijit.WidgetSet(),id,_3ca;
for(id in this._hash){
_3ca=this._hash[id];
if(_3ca.declaredClass==cls){
res.add(_3ca);
}
}
return res;
},toArray:function $DA9A_(){
var ar=[];
for(var id in this._hash){
ar.push(this._hash[id]);
}
return ar;
},map:function $DA9B_(func,_3cb){
return dojo.map(this.toArray(),func,_3cb);
},every:function $DA9C_(func,_3cc){
_3cc=_3cc||dojo.global;
var x=0,i;
for(i in this._hash){
if(!func.call(_3cc,this._hash[i],x++,this._hash)){
return false;
}
}
return true;
},some:function $DA9D_(func,_3cd){
_3cd=_3cd||dojo.global;
var x=0,i;
for(i in this._hash){
if(func.call(_3cd,this._hash[i],x++,this._hash)){
return true;
}
}
return false;
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function $DA9E_(_3ce){
var id;
do{
id=_3ce+"_"+(_3ce in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_3ce]:dijit._widgetTypeCtr[_3ce]=0);
}while(dijit.byId(id));
return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;
};
dijit.findWidgets=function $DA9F_(root){
var _3cf=[];
function _3d0(root){
for(var node=root.firstChild;node;node=node.nextSibling){
if(node.nodeType==1){
var _3d1=node.getAttribute("widgetId");
if(_3d1){
var _3d2=dijit.byId(_3d1);
_3cf.push(_3d2);
}else{
_3d0(node);
}
}
}
};
_3d0(root);
return _3cf;
};
dijit._destroyAll=function $DA9G_(){
dijit._curFocus=null;
dijit._prevFocus=null;
dijit._activeStack=[];
dojo.forEach(dijit.findWidgets(dojo.body()),function(_3d3){
if(!_3d3._destroyed){
if(_3d3.destroyRecursive){
_3d3.destroyRecursive();
}else{
if(_3d3.destroy){
_3d3.destroy();
}
}
}
});
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit._destroyAll();
});
}
dijit.byId=function $DA9H_(id){
return typeof id=="string"?dijit.registry._hash[id]:id;
};
dijit.byNode=function $DA9I_(node){
return dijit.registry.byId(node.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function $DA9J_(node){
while(node){
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
return dijit.byId(id);
}
node=node.parentNode;
}
return null;
};
dijit._isElementShown=function $DA9K_(elem){
var _3d4=dojo.style(elem);
return (_3d4.visibility!="hidden")&&(_3d4.visibility!="collapsed")&&(_3d4.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function $DA9L_(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 $DA9M_(root){
var _3d5,last,_3d6,_3d7,_3d8,_3d9;
var _3da=function(_3db){
dojo.query("> *",_3db).forEach(function(_3dc){
var _3dd=dijit._isElementShown(_3dc);
if(_3dd&&dijit.isTabNavigable(_3dc)){
var _3de=dojo.attr(_3dc,"tabIndex");
if(!dojo.hasAttr(_3dc,"tabIndex")||_3de==0){
if(!_3d5){
_3d5=_3dc;
}
last=_3dc;
}else{
if(_3de>0){
if(!_3d6||_3de<_3d7){
_3d7=_3de;
_3d6=_3dc;
}
if(!_3d8||_3de>=_3d9){
_3d9=_3de;
_3d8=_3dc;
}
}
}
}
if(_3dd&&_3dc.nodeName.toUpperCase()!="SELECT"){
_3da(_3dc);
}
});
};
if(dijit._isElementShown(root)){
_3da(root);
}
return {first:_3d5,last:last,lowest:_3d6,highest:_3d8};
};
dijit.getFirstInTabbingOrder=function $DA9N_(root){
var _3df=dijit._getTabNavigable(dojo.byId(root));
return _3df.lowest?_3df.lowest:_3df.first;
};
dijit.getLastInTabbingOrder=function $DA9O_(root){
var _3e0=dijit._getTabNavigable(dojo.byId(root));
return _3e0.last?_3e0.last:_3e0.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 $DA9m_(){
return dijit.getBookmark().isCollapsed;
},getBookmark:function $DA9n_(){
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{
console.warn("No idea how to store the current selection for this browser!");
}
}
return bm;
},moveToBookmark:function $DA9o_(_3e1){
var _3e2=dojo.doc,mark=_3e1.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{
console.warn("No idea how to restore selection for this browser!");
}
}else{
if(_3e2.selection&&mark){
var rg;
if(mark.pRange){
rg=mark.range;
}else{
if(dojo.isArray(mark)){
rg=_3e2.body.createControlRange();
dojo.forEach(mark,function(n){
rg.addElement(n);
});
}else{
rg=_3e2.body.createTextRange();
rg.moveToBookmark(mark);
}
}
rg.select();
}
}
}
},getFocus:function $DA9p_(menu,_3e3){
var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;
return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_3e3||dojo.global,dijit.getBookmark),openedForWindow:_3e3};
},focus:function $DA9q_(_3e4){
if(!_3e4){
return;
}
var node="node" in _3e4?_3e4.node:_3e4,_3e5=_3e4.bookmark,_3e6=_3e4.openedForWindow,_3e7=_3e5?_3e5.isCollapsed:false;
if(node){
var _3e8=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_3e8&&_3e8.focus){
try{
_3e8.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_3e5&&dojo.withGlobal(_3e6||dojo.global,dijit.isCollapsed)&&!_3e7){
if(_3e6){
_3e6.focus();
}
try{
dojo.withGlobal(_3e6||dojo.global,dijit.moveToBookmark,null,[_3e5]);
}
catch(e2){
}
}
},_activeStack:[],registerIframe:function $DA9r_(_3e9){
return dijit.registerWin(_3e9.contentWindow,_3e9);
},unregisterIframe:function $DA9s_(_3ea){
dijit.unregisterWin(_3ea);
},registerWin:function $DA9t_(_3eb,_3ec){
var _3ed=function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_3ec||evt.target||evt.srcElement,"mouse");
};
var doc=dojo.isIE?_3eb.document.documentElement:_3eb.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onmousedown",_3ed);
var _3ee=function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){
dijit._onFocusNode(_3ec||evt.srcElement);
}else{
dijit._onTouchNode(_3ec||evt.srcElement);
}
};
doc.attachEvent("onactivate",_3ee);
var _3ef=function(evt){
dijit._onBlurNode(_3ec||evt.srcElement);
};
doc.attachEvent("ondeactivate",_3ef);
return function(){
doc.detachEvent("onmousedown",_3ed);
doc.detachEvent("onactivate",_3ee);
doc.detachEvent("ondeactivate",_3ef);
doc=null;
};
}else{
doc.addEventListener("mousedown",_3ed,true);
var _3f0=function(evt){
dijit._onFocusNode(_3ec||evt.target);
};
doc.addEventListener("focus",_3f0,true);
var _3f1=function(evt){
dijit._onBlurNode(_3ec||evt.target);
};
doc.addEventListener("blur",_3f1,true);
return function(){
doc.removeEventListener("mousedown",_3ed,true);
doc.removeEventListener("focus",_3f0,true);
doc.removeEventListener("blur",_3f1,true);
doc=null;
};
}
}
},unregisterWin:function $DA9u_(_3f2){
_3f2&&_3f2();
},_onBlurNode:function $DA9v_(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 $DA9w_(node,by){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _3f3=[];
try{
while(node){
var _3f4=dojo.attr(node,"dijitPopupParent");
if(_3f4){
node=dijit.byId(_3f4).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){
_3f3.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_3f3,by);
},_onFocusNode:function $DA9x_(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 $DA9y_(_3f5,by){
var _3f6=dijit._activeStack;
dijit._activeStack=_3f5;
for(var _3f7=0;_3f7<Math.min(_3f6.length,_3f5.length);_3f7++){
if(_3f6[_3f7]!=_3f5[_3f7]){
break;
}
}
var _3f8;
for(var i=_3f6.length-1;i>=_3f7;i--){
_3f8=dijit.byId(_3f6[i]);
if(_3f8){
_3f8._focused=false;
_3f8._hasBeenBlurred=true;
if(_3f8._onBlur){
_3f8._onBlur(by);
}
if(_3f8._setStateClass){
_3f8._setStateClass();
}
dojo.publish("widgetBlur",[_3f8,by]);
}
}
for(i=_3f7;i<_3f5.length;i++){
_3f8=dijit.byId(_3f5[i]);
if(_3f8){
_3f8._focused=true;
if(_3f8._onFocus){
_3f8._onFocus(by);
}
if(_3f8._setStateClass){
_3f8._setStateClass();
}
dojo.publish("widgetFocus",[_3f8,by]);
}
}
}});
dojo.addOnLoad(function(){
var _3f9=dijit.registerWin(window);
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.unregisterWin(_3f9);
_3f9=null;
});
}
});
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function $DBOb_(_3fa){
this.pairs=[];
this.returnWrappers=_3fa||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function $DBOY_(name,_3fb,wrap,_3fc,_3fd){
this.pairs[((_3fd)?"unshift":"push")]([name,_3fb,wrap,_3fc]);
},match:function $DBOZ_(){
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 $DBOa_(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 $DA9b_(){
var _3fe=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _3ff=dojo._docScroll();
return {w:_3fe.clientWidth,h:_3fe.clientHeight,l:_3ff.x,t:_3ff.y};
};
dijit.placeOnScreen=function $DA9d_(node,pos,_400,_401){
var _402=dojo.map(_400,function(_403){
var c={corner:_403,pos:{x:pos.x,y:pos.y}};
if(_401){
c.pos.x+=_403.charAt(1)=="L"?_401.x:-_401.x;
c.pos.y+=_403.charAt(0)=="T"?_401.y:-_401.y;
}
return c;
});
return dijit._place(node,_402);
};
dijit._place=function $DA9e_(node,_404,_405){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_404,function(_406){
var _407=_406.corner;
var pos=_406.pos;
if(_405){
_405(node,_406.aroundCorner,_407);
}
var _408=node.style;
var _409=_408.display;
var _40a=_408.visibility;
_408.visibility="hidden";
_408.display="";
var mb=dojo.marginBox(node);
_408.display=_409;
_408.visibility=_40a;
var _40b=Math.max(view.l,_407.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_40c=Math.max(view.t,_407.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_407.charAt(1)=="L"?(_40b+mb.w):pos.x),endY=Math.min(view.t+view.h,_407.charAt(0)=="T"?(_40c+mb.h):pos.y),_40d=endX-_40b,_40e=endY-_40c,_40f=(mb.w-_40d)+(mb.h-_40e);
if(best==null||_40f<best.overflow){
best={corner:_407,aroundCorner:_406.aroundCorner,x:_40b,y:_40c,w:_40d,h:_40e,overflow:_40f};
}
return !_40f;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_405){
_405(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function $DA9f_(node,_410,_411,_412){
_410=dojo.byId(_410);
var _413=_410.style.display;
_410.style.display="";
var _414=dojo.position(_410,true);
_410.style.display=_413;
return dijit._placeOnScreenAroundRect(node,_414.x,_414.y,_414.w,_414.h,_411,_412);
};
dijit.placeOnScreenAroundRectangle=function $DA9h_(node,_415,_416,_417){
return dijit._placeOnScreenAroundRect(node,_415.x,_415.y,_415.width,_415.height,_416,_417);
};
dijit._placeOnScreenAroundRect=function $DA9i_(node,x,y,_418,_419,_41a,_41b){
var _41c=[];
for(var _41d in _41a){
_41c.push({aroundCorner:_41d,corner:_41a[_41d],pos:{x:x+(_41d.charAt(1)=="L"?0:_418),y:y+(_41d.charAt(0)=="T"?0:_419)}});
}
return dijit._place(node,_41c,_41b);
};
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 $DA9j_(node,_41e,_41f,_420){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
dijit.getPopupAlignment=function $DA9k_(_421,_422){
var _423={};
dojo.forEach(_421,function(pos){
switch(pos){
case "after":
_423[_422?"BR":"BL"]=_422?"BL":"BR";
break;
case "before":
_423[_422?"BL":"BR"]=_422?"BR":"BL";
break;
case "below":
_423[_422?"BL":"BR"]=_422?"TL":"TR";
_423[_422?"BR":"BL"]=_422?"TR":"TL";
break;
case "above":
default:
_423[_422?"TL":"TR"]=_422?"BL":"BR";
_423[_422?"TR":"TL"]=_422?"BR":"BL";
break;
}
});
return _423;
};
dijit.getPopupAroundAlignment=function $DA9l_(_424,_425){
var _426={};
dojo.forEach(_424,function(pos){
switch(pos){
case "after":
_426[_425?"BR":"BL"]=_425?"BL":"BR";
break;
case "before":
_426[_425?"BL":"BR"]=_425?"BR":"BL";
break;
case "below":
_426[_425?"BL":"BR"]=_425?"TL":"TR";
_426[_425?"BR":"BL"]=_425?"TR":"TL";
break;
case "above":
default:
_426[_425?"TL":"TR"]=_425?"BL":"BR";
_426[_425?"TR":"TL"]=_425?"BR":"BL";
break;
}
});
return _426;
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function $DA9R_(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 _427=[],_428=1000,_429=1;
this.moveOffScreen=function $DA9U_(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 _42a=function(){
for(var pi=_427.length-1;pi>0&&_427[pi].parent===_427[pi-1].widget;pi--){
}
return _427[pi];
};
var _42b=[];
this.open=function $DA9V_(args){
var _42c=args.popup,_42d=args.orient||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_42e=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_429++);
var _42f=_42b.pop(),_430,_431;
if(!_42f){
_430=dojo.create("div",{"class":"dijitPopup"},dojo.body());
dijit.setWaiRole(_430,"presentation");
}else{
_430=_42f[0];
_431=_42f[1];
}
dojo.attr(_430,{id:id,style:{zIndex:_428+_427.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:args.parent?args.parent.id:""});
var s=_42c.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_430.appendChild(_42c.domNode);
if(!_431){
_431=new dijit.BackgroundIframe(_430);
}else{
_431.resize(_430);
}
var best=_42e?dijit.placeOnScreenAroundElement(_430,_42e,_42d,_42c.orient?dojo.hitch(_42c,"orient"):null):dijit.placeOnScreen(_430,args,_42d=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_430.style.visibility="visible";
var _432=[];
_432.push(dojo.connect(_430,"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 _433=_42a();
if(_433&&_433.onCancel){
_433.onCancel();
}
}
}
}));
if(_42c.onCancel){
_432.push(dojo.connect(_42c,"onCancel",args.onCancel));
}
_432.push(dojo.connect(_42c,_42c.onExecute?"onExecute":"onChange",function(){
var _434=_42a();
if(_434&&_434.onExecute){
_434.onExecute();
}
}));
_427.push({wrapper:_430,iframe:_431,widget:_42c,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_432});
if(_42c.onOpen){
_42c.onOpen(best);
}
return best;
};
this.close=function $DA9W_(_435){
while(dojo.some(_427,function(elem){
return elem.widget==_435;
})){
var top=_427.pop(),_436=top.wrapper,_437=top.iframe,_438=top.widget,_439=top.onClose;
if(_438.onClose){
_438.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(_438&&_438.domNode){
this.moveOffScreen(_438.domNode);
}
_436.style.top="-9999px";
_436.style.visibility="hidden";
_42b.push([_436,_437]);
if(_439){
_439();
}
}
};
}();
dijit._frames=new function(){
var _43a=[];
this.pop=function $DA9X_(){
var _43b;
if(_43a.length){
_43b=_43a.pop();
_43b.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\");'>";
_43b=dojo.doc.createElement(html);
}else{
_43b=dojo.create("iframe");
_43b.src="javascript:\"\"";
_43b.className="dijitBackgroundIframe";
dojo.style(_43b,"opacity",0.1);
}
_43b.tabIndex=-1;
}
return _43b;
};
this.push=function $DA9Y_(_43c){
_43c.style.display="none";
_43a.push(_43c);
};
}();
dijit.BackgroundIframe=function $DA9a_(node){
if(!node.id){
throw new Error("no id");
}
if(dojo.isIE||dojo.isMoz){
var _43d=dijit._frames.pop();
node.appendChild(_43d);
if(dojo.isIE<7){
this.resize(node);
this._conn=dojo.connect(node,"onresize",this,function(){
this.resize(node);
});
}else{
dojo.style(_43d,{width:"100%",height:"100%"});
}
this.iframe=_43d;
}
};
dojo.extend(dijit.BackgroundIframe,{resize:function $DA9S_(node){
if(this.iframe&&dojo.isIE<7){
dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});
}
},destroy:function $DA9T_(){
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 $DA9P_(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 _43e=doc.compatMode=="BackCompat",_43f=_43e?body:html,_440=isWK?body:_43f,_441=_43f.clientWidth,_442=_43f.clientHeight,rtl=!dojo._isBodyLtr(),_443=pos||dojo.position(node),el=node.parentNode,_444=function $DA9Q_(el){
return ((isIE<=6||(isIE&&_43e))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));
};
if(_444(node)){
return;
}
while(el){
if(el==body){
el=_440;
}
var _445=dojo.position(el),_446=_444(el);
with(_445){
if(el==_440){
w=_441,h=_442;
if(_440==html&&isIE&&rtl){
x+=_440.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!=_440){
var _447=clientWidth,_448=w-_447;
if(_447>0&&_448>0){
w=_447;
if(isIE&&rtl){
x+=_448;
}
}
_447=clientHeight;
_448=h-_447;
if(_447>0&&_448>0){
h=_447;
}
}
if(_446){
if(y<0){
h+=y,y=0;
}
if(x<0){
w+=x,x=0;
}
if(y+h>_442){
h=_442-y;
}
if(x+w>_441){
w=_441-x;
}
}
var l=_443.x-x,t=_443.y-Math.max(y,0),r=l+_443.w-w,bot=t+_443.h-h;
if(r*l>0){
var s=Math[l<0?"max":"min"](l,r);
_443.x+=scrollLeft;
scrollLeft+=(isIE>=8&&!_43e&&rtl)?-s:s;
_443.x-=scrollLeft;
}
if(bot*t>0){
_443.y+=scrollTop;
scrollTop+=Math[t<0?"max":"min"](t,bot);
_443.y-=scrollTop;
}
}
}
el=(el!=_440)&&!_446&&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,_449=d.isOpera,maj=Math.floor,ff=d.isFF,_44a=d.boxModel.replace(/-/,""),_44b={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:_449,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};
_44b["dj_"+_44a]=true;
for(var p in _44b){
if(_44b[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 _44b){
if(_44b[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 $DA9z_(){
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 $DA90_(evt,_44c,node,_44d,obj,_44e,_44f){
if(obj!=this._obj){
this.stop();
this._initialDelay=_44f||500;
this._subsequentDelay=_44e||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_44c,_44d);
this._fireEventAndReload();
}
},stop:function $DA91_(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function $DA92_(node,_450,_451,_452,_453,_454){
if(_450.keyCode){
_450.charOrCode=_450.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_450.charCode){
_450.charOrCode=String.fromCharCode(_450.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==_450.charOrCode&&(_450.ctrlKey===undefined||_450.ctrlKey==evt.ctrlKey)&&(_450.altKey===undefined||_450.altKey==evt.altKey)&&(_450.metaKey===undefined||_450.metaKey==(evt.metaKey||false))&&(_450.shiftKey===undefined||_450.shiftKey==evt.shiftKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_450,_451,node,_452,_450,_453,_454);
}else{
if(dijit.typematic._obj==_450){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_450){
dijit.typematic.stop();
}
})];
},addMouseListener:function $DA93_(node,_455,_456,_457,_458){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_455,node,_456,node,_457,_458);
}),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,_455,node,_456,node,_457,_458);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function $DA94_(_459,_45a,_45b,_45c,_45d,_45e,_45f){
return this.addKeyListener(_45a,_45b,_45c,_45d,_45e,_45f).concat(this.addMouseListener(_459,_45c,_45d,_45e,_45f));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function $DA8u_(){
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 _460=cs.backgroundImage;
var _461=(cs.borderTopColor==cs.borderRightColor)||(_460!=null&&(_460=="none"||_460=="url(invalid-url:)"));
dojo[_461?"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 $DA8v_(elem,role){
var _462=this.getWaiRole(elem);
return role?(_462.indexOf(role)>-1):(_462.length>0);
},getWaiRole:function $DA8w_(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function $DA8x_(elem,role){
var _463=dojo.attr(elem,"role")||"";
if(!this._XhtmlRoles.test(_463)){
dojo.attr(elem,"role",role);
}else{
if((" "+_463+" ").indexOf(" "+role+" ")<0){
var _464=dojo.trim(_463.replace(this._XhtmlRoles,""));
var _465=dojo.trim(_463.replace(_464,""));
dojo.attr(elem,"role",_465+(_465?" ":"")+role);
}
}
},removeWaiRole:function $DA8y_(elem,role){
var _466=dojo.attr(elem,"role");
if(!_466){
return;
}
if(role){
var t=dojo.trim((" "+_466+" ").replace(" "+role+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function $DA8z_(elem,_467){
return elem.hasAttribute?elem.hasAttribute("aria-"+_467):!!elem.getAttribute("aria-"+_467);
},getWaiState:function $DA80_(elem,_468){
return elem.getAttribute("aria-"+_468)||"";
},setWaiState:function $DA81_(elem,_469,_46a){
elem.setAttribute("aria-"+_469,_46a);
},removeWaiState:function $DA82_(elem,_46b){
elem.removeAttribute("aria-"+_46b);
}});
}
if(!dojo._hasResource["dijit._base"]){
dojo._hasResource["dijit._base"]=true;
dojo.provide("dijit._base");
}
if(!dojo._hasResource["dijit._Widget"]){
dojo._hasResource["dijit._Widget"]=true;
dojo.provide("dijit._Widget");
dojo.require("dijit._base");
dojo.connect(dojo,"_connect",function(_46c,_46d){
if(_46c&&dojo.isFunction(_46c._onConnect)){
_46c._onConnect(_46d);
}
});
dijit._connectOnUseEventHandler=function $DA2G_(_46e){
};
dijit._lastKeyDownNode=null;
if(dojo.isIE){
(function(){
var _46f=function(evt){
dijit._lastKeyDownNode=evt.srcElement;
};
dojo.doc.attachEvent("onkeydown",_46f);
dojo.addOnWindowUnload(function(){
dojo.doc.detachEvent("onkeydown",_46f);
});
})();
}else{
dojo.doc.addEventListener("keydown",function(evt){
dijit._lastKeyDownNode=evt.target;
},true);
}
(function(){
var _470={},_471=function $DA2H_(_472){
var dc=_472.declaredClass;
if(!_470[dc]){
var r=[],_473,_474=_472.constructor.prototype;
for(var _475 in _474){
if(dojo.isFunction(_474[_475])&&(_473=_475.match(/^_set([a-zA-Z]*)Attr$/))&&_473[1]){
r.push(_473[1].charAt(0).toLowerCase()+_473[1].substr(1));
}
}
_470[dc]=r;
}
return _470[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 $DA1g_(_476,_477){
this.create(_476,_477);
},create:function $DA1h_(_478,_479){
this.srcNodeRef=dojo.byId(_479);
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(_478){
this.params=_478;
dojo.mixin(this,_478);
}
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 _47a=this.srcNodeRef;
if(_47a&&_47a.parentNode){
_47a.parentNode.replaceChild(this.domNode,_47a);
}
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 $DA1i_(){
var _47b=function(attr,_47c){
if((_47c.params&&attr in _47c.params)||_47c[attr]){
_47c.attr(attr,_47c[attr]);
}
};
for(var attr in this.attributeMap){
_47b(attr,this);
}
dojo.forEach(_471(this),function(a){
if(!(a in this.attributeMap)){
_47b(a,this);
}
},this);
},postMixInProperties:function $DA1j_(){
},buildRendering:function $DA1k_(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function $DA1l_(){
},startup:function $DA1m_(){
this._started=true;
},destroyRecursive:function $DA1n_(_47d){
this._beingDestroyed=true;
this.destroyDescendants(_47d);
this.destroy(_47d);
},destroy:function $DA1o_(_47e){
this._beingDestroyed=true;
this.uninitialize();
var d=dojo,dfe=d.forEach,dun=d.unsubscribe;
dfe(this._connects,function(_47f){
dfe(_47f,d.disconnect);
});
dfe(this._subscribes,function(_480){
dun(_480);
});
dfe(this._supportingWidgets||[],function(w){
if(w.destroyRecursive){
w.destroyRecursive();
}else{
if(w.destroy){
w.destroy();
}
}
});
this.destroyRendering(_47e);
dijit.registry.remove(this.id);
this._destroyed=true;
},destroyRendering:function $DA1p_(_481){
if(this.bgIframe){
this.bgIframe.destroy(_481);
delete this.bgIframe;
}
if(this.domNode){
if(_481){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_481){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function $DA1q_(_482){
dojo.forEach(this.getChildren(),function(_483){
if(_483.destroyRecursive){
_483.destroyRecursive(_482);
}
});
},uninitialize:function $DA1r_(){
return false;
},onFocus:function $DA1s_(){
},onBlur:function $DA1t_(){
},_onFocus:function $DA1u_(e){
this.onFocus();
},_onBlur:function $DA1v_(){
this.onBlur();
},_onConnect:function $DA1w_(_484){
if(_484 in this._deferredConnects){
var _485=this[this._deferredConnects[_484]||"domNode"];
this.connect(_485,_484.toLowerCase(),_484);
delete this._deferredConnects[_484];
}
},_setClassAttr:function $DA1x_(_486){
var _487=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_487,this["class"]);
this["class"]=_486;
dojo.addClass(_487,_486);
},_setStyleAttr:function $DA1y_(_488){
var _489=this[this.attributeMap.style||"domNode"];
if(dojo.isObject(_488)){
dojo.style(_489,_488);
}else{
if(_489.style.cssText){
_489.style.cssText+="; "+_488;
}else{
_489.style.cssText=_488;
}
}
this.style=_488;
},setAttribute:function $DA1z_(attr,_48a){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_48a);
},_attrToDom:function $DA10_(attr,_48b){
var _48c=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_48c)?_48c:[_48c],function(_48d){
var _48e=this[_48d.node||_48d||"domNode"];
var type=_48d.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_48b)){
_48b=dojo.hitch(this,_48b);
}
var _48f=_48d.attribute?_48d.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);
dojo.attr(_48e,_48f,_48b);
break;
case "innerText":
_48e.innerHTML="";
_48e.appendChild(dojo.doc.createTextNode(_48b));
break;
case "innerHTML":
_48e.innerHTML=_48b;
break;
case "class":
dojo.removeClass(_48e,this[attr]);
dojo.addClass(_48e,_48b);
break;
}
},this);
this[attr]=_48b;
},attr:function $DA11_(name,_490){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _491=this._getAttrNames(name);
if(args>=2){
if(this[_491.s]){
args=dojo._toArray(arguments,1);
return this[_491.s].apply(this,args)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_490);
}
this[name]=_490;
}
return this;
}else{
return this[_491.g]?this[_491.g]():this[name];
}
},_attrPairNames:{},_getAttrNames:function $DA12_(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 $DA13_(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function $DA14_(){
return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];
},getChildren:function $DA15_(){
return this.containerNode?dijit.findWidgets(this.containerNode):[];
},nodesWithKeyClick:["input","button"],connect:function $DA16_(obj,_492,_493){
var d=dojo,dc=d._connect,_494=[];
if(_492=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){
var m=d.hitch(this,_493);
_494.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);
}
}));
}
_492="onclick";
}
_494.push(dc(obj,_492,this,_493));
this._connects.push(_494);
return _494;
},disconnect:function $DA17_(_495){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_495){
dojo.forEach(_495,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},subscribe:function $DA18_(_496,_497){
var d=dojo,_498=d.subscribe(_496,this,_497);
this._subscribes.push(_498);
return _498;
},unsubscribe:function $DA19_(_499){
for(var i=0;i<this._subscribes.length;i++){
if(this._subscribes[i]==_499){
dojo.unsubscribe(_499);
this._subscribes.splice(i,1);
return;
}
}
},isLeftToRight:function $DA2A_(){
return dojo._isBodyLtr();
},isFocusable:function $DA2B_(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function $DA2C_(_49a,_49b){
if(_49a.declaredClass&&_49a.addChild){
_49a.addChild(this,_49b);
}else{
dojo.place(this.domNode,_49a,_49b);
}
return this;
},_onShow:function $DA2D_(){
this.onShow();
},onShow:function $DA2E_(){
},onHide:function $DA2F_(){
}});
})();
}
if(!dojo._hasResource["dojo.cache"]){
dojo._hasResource["dojo.cache"]=true;
dojo.provide("dojo.cache");
(function(){
var _49c={};
dojo.cache=function $DBNb_(_49d,url,_49e){
if(typeof _49d=="string"){
var _49f=dojo.moduleUrl(_49d,url);
}else{
_49f=_49d;
_49e=url;
}
var key=_49f.toString();
var val=_49e;
if(_49e!==undefined&&!dojo.isString(_49e)){
val=("value" in _49e?_49e.value:undefined);
}
var _4a0=_49e&&_49e.sanitize?true:false;
if(val||val===null){
if(val==null){
delete _49c[key];
}else{
val=_49c[key]=_4a0?dojo.cache._sanitize(val):val;
}
}else{
if(!(key in _49c)){
val=dojo._getText(key);
_49c[key]=_4a0?dojo.cache._sanitize(val):val;
}
val=_49c[key];
}
return val;
};
dojo.cache._sanitize=function $DBNc_(val){
if(val){
val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _4a1=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_4a1){
val=_4a1[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 $DA3Z_(){
this._attachPoints=[];
},_stringRepl:function $DA3a_(tmpl){
var _4a2=this.declaredClass,_4a3=this;
return dojo.string.substitute(tmpl,this,function(_4a4,key){
if(key.charAt(0)=="!"){
_4a4=dojo.getObject(key.substr(1),false,_4a3);
}
if(typeof _4a4=="undefined"){
throw new Error(_4a2+" template:"+key);
}
if(_4a4==null){
return "";
}
return key.charAt(0)=="!"?_4a4:_4a4.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function $DA3b_(){
var _4a5=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_4a5)){
node=dojo._toDom(this._stringRepl(_4a5));
if(node.nodeType!=1){
throw new Error("Invalid template: "+_4a5);
}
}else{
node=_4a5.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
if(this.widgetsInTemplate){
var _4a6=dojo.parser,qry,attr;
if(_4a6._query!="[dojoType]"){
qry=_4a6._query;
attr=_4a6._attrName;
_4a6._query="[dojoType]";
_4a6._attrName="dojoType";
}
var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));
if(qry){
_4a6._query=qry;
_4a6._attrName=attr;
}
this._supportingWidgets=dijit.findWidgets(node);
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function $DA3c_(_4a7){
var dest=this.containerNode;
if(_4a7&&dest){
while(_4a7.hasChildNodes()){
dest.appendChild(_4a7.firstChild);
}
}
},_attachTemplateNodes:function $DA3d_(_4a8,_4a9){
_4a9=_4a9||function(n,p){
return n.getAttribute(p);
};
var _4aa=dojo.isArray(_4a8)?_4a8:(_4a8.all||_4a8.getElementsByTagName("*"));
var x=dojo.isArray(_4a8)?0:-1;
for(;x<_4aa.length;x++){
var _4ab=(x==-1)?_4a8:_4aa[x];
if(this.widgetsInTemplate&&_4a9(_4ab,"dojoType")){
continue;
}
var _4ac=_4a9(_4ab,"dojoAttachPoint");
if(_4ac){
var _4ad,_4ae=_4ac.split(/\s*,\s*/);
while((_4ad=_4ae.shift())){
if(dojo.isArray(this[_4ad])){
this[_4ad].push(_4ab);
}else{
this[_4ad]=_4ab;
}
this._attachPoints.push(_4ad);
}
}
var _4af=_4a9(_4ab,"dojoAttachEvent");
if(_4af){
var _4b0,_4b1=_4af.split(/\s*,\s*/);
var trim=dojo.trim;
while((_4b0=_4b1.shift())){
if(_4b0){
var _4b2=null;
if(_4b0.indexOf(":")!=-1){
var _4b3=_4b0.split(":");
_4b0=trim(_4b3[0]);
_4b2=trim(_4b3[1]);
}else{
_4b0=trim(_4b0);
}
if(!_4b2){
_4b2=_4b0;
}
this.connect(_4ab,_4b0,_4b2);
}
}
}
var role=_4a9(_4ab,"waiRole");
if(role){
dijit.setWaiRole(_4ab,role);
}
var _4b4=_4a9(_4ab,"waiState");
if(_4b4){
dojo.forEach(_4b4.split(/\s*,\s*/),function(_4b5){
if(_4b5.indexOf("-")!=-1){
var pair=_4b5.split("-");
dijit.setWaiState(_4ab,pair[0],pair[1]);
}
});
}
}
},startup:function $DA3e_(){
dojo.forEach(this._startupWidgets,function(w){
if(w&&!w._started&&w.startup){
w.startup();
}
});
this.inherited(arguments);
},destroyRendering:function $DA3f_(){
dojo.forEach(this._attachPoints,function(_4b6){
delete this[_4b6];
},this);
this._attachPoints=[];
this.inherited(arguments);
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function $DA3g_(_4b7,_4b8,_4b9){
var _4ba=dijit._Templated._templateCache;
var key=_4b8||_4b7;
var _4bb=_4ba[key];
if(_4bb){
try{
if(!_4bb.ownerDocument||_4bb.ownerDocument==dojo.doc){
return _4bb;
}
}
catch(e){
}
dojo.destroy(_4bb);
}
if(!_4b8){
_4b8=dojo.cache(_4b7,{sanitize:true});
}
_4b8=dojo.string.trim(_4b8);
if(_4b9||_4b8.match(/\$\{([^\}]+)\}/g)){
return (_4ba[key]=_4b8);
}else{
var node=dojo._toDom(_4b8);
if(node.nodeType!=1){
throw new Error("Invalid template: "+_4b8);
}
return (_4ba[key]=node);
}
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _4bc=dijit._Templated._templateCache;
for(var key in _4bc){
var _4bd=_4bc[key];
if(typeof _4bd=="object"){
dojo.destroy(_4bd);
}
delete _4bc[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 $DAwz_(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function $DAw0_(_4be,_4bf){
var _4c0=this.containerNode;
if(_4bf&&typeof _4bf=="number"){
var _4c1=this.getChildren();
if(_4c1&&_4c1.length>=_4bf){
_4c0=_4c1[_4bf-1].domNode;
_4bf="after";
}
}
dojo.place(_4be.domNode,_4c0,_4bf);
if(this._started&&!_4be._started){
_4be.startup();
}
},removeChild:function $DAw1_(_4c2){
if(typeof _4c2=="number"&&_4c2>0){
_4c2=this.getChildren()[_4c2];
}
if(_4c2&&_4c2.domNode){
var node=_4c2.domNode;
node.parentNode.removeChild(node);
}
},getChildren:function $DAw2_(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function $DAw3_(){
return dojo.query("> [widgetId]",this.containerNode).length>0;
},destroyDescendants:function $DAw4_(_4c3){
dojo.forEach(this.getChildren(),function(_4c4){
_4c4.destroyRecursive(_4c3);
});
},_getSiblingOfChild:function $DAw5_(_4c5,dir){
var node=_4c5.domNode,_4c6=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_4c6];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node&&dijit.byNode(node);
},getIndexOfChild:function $DAw6_(_4c7){
return dojo.indexOf(this.getChildren(),_4c7);
},startup:function $DAw7_(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_4c8){
_4c8.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 $DA3h_(){
var _4c9=dijit.getEnclosingWidget(this.domNode.parentNode);
return _4c9&&_4c9.isContainer?_4c9:null;
},_getSibling:function $DA3i_(_4ca){
var node=this.domNode;
do{
node=node[_4ca+"Sibling"];
}while(node&&node.nodeType!=1);
return node&&dijit.byNode(node);
},getPreviousSibling:function $DA3j_(){
return this._getSibling("previous");
},getNextSibling:function $DA3k_(){
return this._getSibling("next");
},getIndexInParent:function $DA3l_(){
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 $DAxB_(){
dojo.addClass(this.domNode,"dijitContainer");
dojo.addClass(this.domNode,this.baseClass);
this.inherited(arguments);
},startup:function $DAxC_(){
if(this._started){
return;
}
this.inherited(arguments);
var _4cb=this.getParent&&this.getParent();
if(!(_4cb&&_4cb.isLayoutContainer)){
this.resize();
this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){
this.resize();
});
}
},resize:function $DAxD_(_4cc,_4cd){
var node=this.domNode;
if(_4cc){
dojo.marginBox(node,_4cc);
if(_4cc.t){
node.style.top=_4cc.t+"px";
}
if(_4cc.l){
node.style.left=_4cc.l+"px";
}
}
var mb=_4cd||{};
dojo.mixin(mb,_4cc||{});
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 $DAxE_(){
},_setupChild:function $DAxF_(_4ce){
dojo.addClass(_4ce.domNode,this.baseClass+"-child");
if(_4ce.baseClass){
dojo.addClass(_4ce.domNode,this.baseClass+"-"+_4ce.baseClass);
}
},addChild:function $DAxG_(_4cf,_4d0){
this.inherited(arguments);
if(this._started){
this._setupChild(_4cf);
}
},removeChild:function $DAxH_(_4d1){
dojo.removeClass(_4d1.domNode,this.baseClass+"-child");
if(_4d1.baseClass){
dojo.removeClass(_4d1.domNode,this.baseClass+"-"+_4d1.baseClass);
}
this.inherited(arguments);
}});
dijit.layout.marginBox2contentBox=function $DAxI_(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 _4d2=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_4d3,dim){
_4d3.resize?_4d3.resize(dim):dojo.marginBox(_4d3.domNode,dim);
dojo.mixin(_4d3,dojo.marginBox(_4d3.domNode));
dojo.mixin(_4d3,dim);
};
dijit.layout.layoutChildren=function $DAxJ_(_4d4,dim,_4d5){
dim=dojo.mixin({},dim);
dojo.addClass(_4d4,"dijitLayoutContainer");
_4d5=dojo.filter(_4d5,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_4d5,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_4d5,function(_4d6){
var elm=_4d6.domNode,pos=_4d6.layoutAlign;
var _4d7=elm.style;
_4d7.left=dim.l+"px";
_4d7.top=dim.t+"px";
_4d7.bottom=_4d7.right="auto";
dojo.addClass(elm,"dijitAlign"+_4d2(pos));
if(pos=="top"||pos=="bottom"){
size(_4d6,{w:dim.w});
dim.h-=_4d6.h;
if(pos=="top"){
dim.t+=_4d6.h;
}else{
_4d7.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_4d6,{h:dim.h});
dim.w-=_4d6.w;
if(pos=="left"){
dim.l+=_4d6.w;
}else{
_4d7.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_4d6,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 $DAp5_(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},_setDisabledAttr:function $DAp6_(_4d8){
this.disabled=_4d8;
dojo.attr(this.focusNode,"disabled",_4d8);
if(this.valueNode){
dojo.attr(this.valueNode,"disabled",_4d8);
}
dijit.setWaiState(this.focusNode,"disabled",_4d8);
if(_4d8){
this._hovering=false;
this._active=false;
this.focusNode.setAttribute("tabIndex","-1");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function $DAp7_(_4d9){
dojo.deprecated("setDisabled("+_4d9+") is deprecated. Use attr('disabled',"+_4d9+") instead.","","2.0");
this.attr("disabled",_4d9);
},_onFocus:function $DAp8_(e){
if(this.scrollOnFocus){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function $DAp9_(_4da){
var _4db=_4da.currentTarget;
if(_4db&&_4db.getAttribute){
this.stateModifier=_4db.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_4da.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 _4dc=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_4dc);
});
break;
}
this._setStateClass();
}
},isFocusable:function $DAqA_(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function $DAqB_(){
dijit.focus(this.focusNode);
},_setStateClass:function $DAqC_(){
var _4dd=this.baseClass.split(" ");
function _4de(_4df){
_4dd=_4dd.concat(dojo.map(_4dd,function(c){
return c+_4df;
}),"dijit"+_4df);
};
if(this.checked){
_4de("Checked");
}
if(this.state){
_4de(this.state);
}
if(this.selected){
_4de("Selected");
}
if(this.disabled){
_4de("Disabled");
}else{
if(this.readOnly){
_4de("ReadOnly");
}else{
if(this._active){
_4de(this.stateModifier+"Active");
}else{
if(this._focused){
_4de("Focused");
}
if(this._hovering){
_4de(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_4e0={};
dojo.forEach(tn.className.split(" "),function(c){
_4e0[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _4e0[c];
});
}
dojo.forEach(_4dd,function(c){
_4e0[c]=true;
});
var _4e1=[];
for(var c in _4e0){
_4e1.push(c);
}
tn.className=_4e1.join(" ");
this._stateClasses=_4dd;
},compare:function $DAqD_(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 $DAqE_(_4e2){
},_onChangeActive:false,_handleOnChange:function $DAqF_(_4e3,_4e4){
this._lastValue=_4e3;
if(this._lastValueReported==undefined&&(_4e4===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_4e3;
}
if((this.intermediateChanges||_4e4||_4e4===undefined)&&((typeof _4e3!=typeof this._lastValueReported)||this.compare(_4e3,this._lastValueReported)!=0)){
this._lastValueReported=_4e3;
if(this._onChangeActive){
if(this._onChangeHandle){
clearTimeout(this._onChangeHandle);
}
this._onChangeHandle=setTimeout(dojo.hitch(this,function(){
this._onChangeHandle=null;
this.onChange(_4e3);
}),0);
}
}
},create:function $DAqG_(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function $DAqH_(){
if(this._onChangeHandle){
clearTimeout(this._onChangeHandle);
this.onChange(this._lastValueReported);
}
this.inherited(arguments);
},setValue:function $DAqI_(_4e5){
dojo.deprecated("dijit.form._FormWidget:setValue("+_4e5+") is deprecated.  Use attr('value',"+_4e5+") instead.","","2.0");
this.attr("value",_4e5);
},getValue:function $DAqJ_(){
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 $DAqK_(_4e6){
this.readOnly=_4e6;
dojo.attr(this.focusNode,"readOnly",_4e6);
dijit.setWaiState(this.focusNode,"readonly",_4e6);
this._setStateClass();
},postCreate:function $DAqL_(){
if(dojo.isIE){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function $DAqM_(_4e7,_4e8){
this.value=_4e7;
this._handleOnChange(_4e7,_4e8);
},_getValueAttr:function $DAqN_(){
return this._lastValue;
},undo:function $DAqO_(){
this._setValueAttr(this._lastValueReported,false);
},reset:function $DAqP_(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_onKeyDown:function $DAqQ_(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 $DAqR_(){
if(dojo.isIE==7){
var _4e9=this.domNode;
var _4ea=_4e9.parentNode;
var _4eb=_4e9.firstChild||_4e9;
var _4ec=_4eb.style.filter;
while(_4ea&&_4ea.clientHeight==0){
_4ea._disconnectHandle=this.connect(_4ea,"onscroll",dojo.hitch(this,function(e){
this.disconnect(_4ea._disconnectHandle);
_4ea.removeAttribute("_disconnectHandle");
_4eb.style.filter=(new Date()).getMilliseconds();
setTimeout(function(){
_4eb.style.filter=_4ec;
},0);
}));
_4ea=_4ea.parentNode;
}
}
}});
}
if(!dojo._hasResource["dijit._HasDropDown"]){
dojo._hasResource["dijit._HasDropDown"]=true;
dojo.provide("dijit._HasDropDown");
dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouse:function $DA0R_(e){
if(e.type=="click"&&!this._seenKeydown){
return;
}
this._seenKeydown=false;
if(e.type=="mousedown"){
this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseup");
}
if(this.disabled||this.readOnly){
return;
}
if(this._stopClickEvents){
dojo.stopEvent(e);
}
this.toggleDropDown();
if(e.type=="click"||e.type=="keypress"){
this._onDropDownMouseup();
}
},_onDropDownMouseup:function $DA0S_(e){
if(e&&this._docHandler){
this.disconnect(this._docHandler);
}
var _4ed=this.dropDown,_4ee=false;
if(e&&this._opened){
var c=dojo.position(this._buttonNode,true);
if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){
var t=e.target;
while(t&&!_4ee){
if(dojo.hasClass(t,"dijitPopup")){
_4ee=true;
}else{
t=t.parentNode;
}
}
if(_4ee){
t=e.target;
if(_4ed.onItemClick){
var _4ef;
while(t&&!(_4ef=dijit.byNode(t))){
t=t.parentNode;
}
if(_4ef&&_4ef.onClick&&_4ef.getParent){
_4ef.getParent().onItemClick(_4ef,e);
}
}
return;
}
}
}
if(this._opened&&_4ed.focus){
window.setTimeout(dojo.hitch(_4ed,"focus"),1);
}
},_setupDropdown:function $DA0T_(){
this._buttonNode=this._buttonNode||this.focusNode||this.domNode;
this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;
this._aroundNode=this._aroundNode||this.domNode;
this.connect(this._buttonNode,"onmousedown","_onDropDownMouse");
this.connect(this._buttonNode,"onclick","_onDropDownMouse");
this.connect(this._buttonNode,"onkeydown","_onDropDownKeydown");
this.connect(this._buttonNode,"onblur","_onDropDownBlur");
this.connect(this._buttonNode,"onkeypress","_onKey");
if(this._setStateClass){
this.connect(this,"openDropDown","_setStateClass");
this.connect(this,"closeDropDown","_setStateClass");
}
var _4f0={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";
dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_4f0+"ArrowButton");
},postCreate:function $DA0U_(){
this._setupDropdown();
this.inherited(arguments);
},destroyDescendants:function $DA0V_(){
if(this.dropDown){
if(!this.dropDown._destroyed){
this.dropDown.destroyRecursive();
}
delete this.dropDown;
}
this.inherited(arguments);
},_onDropDownKeydown:function $DA0W_(e){
this._seenKeydown=true;
},_onKeyPress:function $DA0X_(e){
if(this._opened&&e.charOrCode==dojo.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){
this.toggleDropDown();
dojo.stopEvent(e);
return;
}
this.inherited(arguments);
},_onDropDownBlur:function $DA0Y_(e){
this._seenKeydown=false;
},_onKey:function $DA0Z_(e){
if(this.disabled||this.readOnly){
return;
}
var d=this.dropDown;
if(d&&this._opened&&d.handleKey){
if(d.handleKey(e)===false){
return;
}
}
if(d&&this._opened&&e.keyCode==dojo.keys.ESCAPE){
this.toggleDropDown();
return;
}
if(e.keyCode==dojo.keys.DOWN_ARROW||e.keyCode==dojo.keys.ENTER||e.charOrCode==" "){
this._onDropDownMouse(e);
}
},_onBlur:function $DA0a_(){
this.closeDropDown();
this.inherited(arguments);
},isLoaded:function $DA0b_(){
return true;
},loadDropDown:function $DA0c_(_4f1){
_4f1();
},toggleDropDown:function $DA0d_(){
if(this.disabled||this.readOnly){
return;
}
this.focus();
var _4f2=this.dropDown;
if(!_4f2){
return;
}
if(!this._opened){
if(!this.isLoaded()){
this.loadDropDown(dojo.hitch(this,"openDropDown"));
return;
}else{
this.openDropDown();
}
}else{
this.closeDropDown();
}
},openDropDown:function $DA0e_(){
var _4f3=this.dropDown;
var _4f4=_4f3.domNode;
var self=this;
if(!this._preparedNode){
dijit.popup.moveOffScreen(_4f4);
this._preparedNode=true;
if(_4f4.style.width){
this._explicitDDWidth=true;
}
if(_4f4.style.height){
this._explicitDDHeight=true;
}
}
if(this.maxHeight||this.forceWidth||this.autoWidth){
var _4f5={display:"",visibility:"hidden"};
if(!this._explicitDDWidth){
_4f5.width="";
}
if(!this._explicitDDHeight){
_4f5.height="";
}
dojo.style(_4f4,_4f5);
var mb=dojo.marginBox(_4f4);
var _4f6=(this.maxHeight&&mb.h>this.maxHeight);
dojo.style(_4f4,{overflow:_4f6?"auto":"hidden"});
if(this.forceWidth){
mb.w=this.domNode.offsetWidth;
}else{
if(this.autoWidth){
mb.w=Math.max(mb.w,this.domNode.offsetWidth);
}else{
delete mb.w;
}
}
if(_4f6){
mb.h=this.maxHeight;
if("w" in mb){
mb.w+=16;
}
}else{
delete mb.h;
}
delete mb.t;
delete mb.l;
if(dojo.isFunction(_4f3.resize)){
_4f3.resize(mb);
}else{
dojo.marginBox(_4f4,mb);
}
}
var _4f7=dijit.popup.open({parent:this,popup:_4f3,around:this._aroundNode,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function $DA0f_(){
self.closeDropDown(true);
},onCancel:function $DA0g_(){
self.closeDropDown(true);
},onClose:function $DA0h_(){
dojo.attr(self._popupStateNode,"popupActive",false);
dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");
self._opened=false;
self.state="";
}});
dojo.attr(this._popupStateNode,"popupActive","true");
dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");
this._opened=true;
this.state="Opened";
return _4f7;
},closeDropDown:function $DA0i_(_4f8){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_4f8){
this.focus();
}
this._opened=false;
this.state="";
}
}});
}
if(!dojo._hasResource["dijit.form.Button"]){
dojo._hasResource["dijit.form.Button"]=true;
dojo.provide("dijit.form.Button");
dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\"\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function $DAuI_(e){
if(this.disabled){
return false;
}
this._clicked();
return this.onClick(e);
},_onButtonClick:function $DAuJ_(e){
if(this._onClick(e)===false){
e.preventDefault();
}else{
if(this.type=="submit"&&!this.focusNode.form){
for(var node=this.domNode;node.parentNode;node=node.parentNode){
var _4f9=dijit.byNode(node);
if(_4f9&&typeof _4f9._onSubmit=="function"){
_4f9._onSubmit(e);
break;
}
}
}
}
},_setValueAttr:function $DAuK_(_4fa){
var attr=this.attributeMap.value||"";
if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){
if(_4fa!=this.value){
console.debug("Cannot change the value attribute on a Button widget.");
}
}
},_fillContent:function $DAuL_(_4fb){
if(_4fb&&(!this.params||!("label" in this.params))){
this.attr("label",_4fb.innerHTML);
}
},postCreate:function $DAuM_(){
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
},_setShowLabelAttr:function $DAuN_(val){
if(this.containerNode){
dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);
}
this.showLabel=val;
},onClick:function $DAuO_(e){
return true;
},_clicked:function $DAuP_(e){
},setLabel:function $DAuQ_(_4fc){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_4fc);
},_setLabelAttr:function $DAuR_(_4fd){
this.containerNode.innerHTML=this.label=_4fd;
if(this.showLabel==false&&!this.params.title){
this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");
}
}});
dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachPoint=\"_buttonNode\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\"\n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n"),_fillContent:function $DAuS_(){
if(this.srcNodeRef){
var _4fe=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_4fe[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function $DAuT_(){
if(this._started){
return;
}
if(!this.dropDown){
var _4ff=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_4ff);
delete this.dropDownContainer;
}
dijit.popup.moveOffScreen(this.dropDown.domNode);
this.inherited(arguments);
},isLoaded:function $DAuU_(){
var _500=this.dropDown;
return (!_500.href||_500.isLoaded);
},loadDropDown:function $DAuV_(){
var _501=this.dropDown;
if(!_501){
return;
}
if(!this.isLoaded()){
var _502=dojo.connect(_501,"onLoad",this,function(){
dojo.disconnect(_502);
this.openDropDown();
});
_501.refresh();
}else{
this.openDropDown();
}
},isFocusable:function $DAuW_(){
return this.inherited(arguments)&&!this._mouseDown;
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\"><button id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onkeypress:_onButtonKeyPress\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></button></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onkeypress:_onArrowKeyPress\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function $DAuX_(){
this.inherited(arguments);
this._focalNodes=[this.titleNode,this._popupStateNode];
var isIE=dojo.isIE;
dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){
this.connect(node,isIE?"onactivate":"onfocus",this._onNodeFocus);
this.connect(node,isIE?"ondeactivate":"onblur",this._onNodeBlur);
}));
if(isIE&&(isIE<8||dojo.isQuirks)){
with(this.titleNode){
style.width=scrollWidth+"px";
this.connect(this.titleNode,"onresize",function(){
setTimeout(function(){
style.width=scrollWidth+"px";
},0);
});
}
}
},_onNodeFocus:function $DAuY_(evt){
this._focusedNode=evt.currentTarget;
var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.addClass(this._focusedNode,fnc);
},_onNodeBlur:function $DAuZ_(evt){
var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.removeClass(evt.currentTarget,fnc);
},_onBlur:function $DAua_(){
this.inherited(arguments);
this._focusedNode=null;
},_onButtonKeyPress:function $DAub_(evt){
if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){
dijit.focus(this._popupStateNode);
dojo.stopEvent(evt);
}
},_onArrowKeyPress:function $DAuc_(evt){
if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){
dijit.focus(this.titleNode);
dojo.stopEvent(evt);
}
},focus:function $DAud_(_503){
dijit.focus(_503=="start"?this.titleNode:this._popupStateNode);
}});
dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function $DAue_(evt){
this.attr("checked",!this.checked);
},_setCheckedAttr:function $DAuf_(_504){
this.checked=_504;
dojo.attr(this.focusNode||this.domNode,"checked",_504);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_504);
this._setStateClass();
this._handleOnChange(_504,true);
},setChecked:function $DAug_(_505){
dojo.deprecated("setChecked("+_505+") is deprecated. Use attr('checked',"+_505+") instead.","","2.0");
this.attr("checked",_505);
},reset:function $DAuh_(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}
if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
(function(){
var _506=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function $DBJv_(node,_507){
if(!_507){
_507={};
}
if(_507.timeout&&typeof _507.timeout=="number"&&_507.timeout>=0){
this.timeout=_507.timeout;
}
},markupFactory:function $DBJw_(_508,node){
return new dojo.dnd.TimedMoveable(node,_508);
},onMoveStop:function $DBJx_(_509){
if(_509._timer){
clearTimeout(_509._timer);
_506.call(this,_509,_509._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function $DBJy_(_50a,_50b){
_50a._leftTop=_50b;
if(!_50a._timer){
var _50c=this;
_50a._timer=setTimeout(function(){
_50a._timer=null;
_506.call(_50c,_50a,_50a._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["dijit.form._FormMixin"]){
dojo._hasResource["dijit.form._FormMixin"]=true;
dojo.provide("dijit.form._FormMixin");
dojo.declare("dijit.form._FormMixin",null,{reset:function $DAqZ_(){
dojo.forEach(this.getDescendants(),function(_50d){
if(_50d.reset){
_50d.reset();
}
});
},validate:function $DAqa_(){
var _50e=false;
return dojo.every(dojo.map(this.getDescendants(),function(_50f){
_50f._hasBeenBlurred=true;
var _510=_50f.disabled||!_50f.validate||_50f.validate();
if(!_510&&!_50e){
dijit.scrollIntoView(_50f.containerNode||_50f.domNode);
_50f.focus();
_50e=true;
}
return _510;
}),function(item){
return item;
});
},setValues:function $DAqb_(val){
dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");
return this.attr("value",val);
},_setValueAttr:function $DAqc_(obj){
var map={};
dojo.forEach(this.getDescendants(),function(_511){
if(!_511.name){
return;
}
var _512=map[_511.name]||(map[_511.name]=[]);
_512.push(_511);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _513=map[name],_514=dojo.getObject(name,false,obj);
if(_514===undefined){
continue;
}
if(!dojo.isArray(_514)){
_514=[_514];
}
if(typeof _513[0].checked=="boolean"){
dojo.forEach(_513,function(w,i){
w.attr("value",dojo.indexOf(_514,w.value)!=-1);
});
}else{
if(_513[0].multiple){
_513[0].attr("value",_514);
}else{
dojo.forEach(_513,function(w,i){
w.attr("value",_514[i]);
});
}
}
}
},getValues:function $DAqd_(){
dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_getValueAttr:function $DAqe_(){
var obj={};
dojo.forEach(this.getDescendants(),function(_515){
var name=_515.name;
if(!name||_515.disabled){
return;
}
var _516=_515.attr("value");
if(typeof _515.checked=="boolean"){
if(/Radio/.test(_515.declaredClass)){
if(_516!==false){
dojo.setObject(name,_516,obj);
}else{
_516=dojo.getObject(name,false,obj);
if(_516===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_516!==false){
ary.push(_516);
}
}
}else{
var prev=dojo.getObject(name,false,obj);
if(typeof prev!="undefined"){
if(dojo.isArray(prev)){
prev.push(_516);
}else{
dojo.setObject(name,[prev,_516],obj);
}
}else{
dojo.setObject(name,_516,obj);
}
}
});
return obj;
},isValid:function $DAqf_(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_517){
return !_517.disabled&&_517.isValid&&!_517.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function $DAqg_(_518){
},_widgetChange:function $DAqh_(_519){
var _51a=this._lastValidState;
if(!_519||this._lastValidState===undefined){
_51a=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_51a;
}
}else{
if(_519.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_519);
},this);
if(!_519.isValid()&&!_519.attr("disabled")){
this._invalidWidgets.push(_519);
}
_51a=(this._invalidWidgets.length===0);
}
}
if(_51a!==this._lastValidState){
this._lastValidState=_51a;
this.onValidStateChange(_51a);
}
},connectChildren:function $DAqi_(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _51b=this;
var _51c=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_51d){
_51c.push(_51b.connect(_51d,"validate",dojo.hitch(_51b,"_widgetChange",_51d)));
_51c.push(_51b.connect(_51d,"_setDisabledAttr",dojo.hitch(_51b,"_widgetChange",_51d)));
});
this._widgetChange(null);
},startup:function $DAqj_(){
this.inherited(arguments);
this._changeConnections=[];
this.connectChildren();
}});
}
if(!dojo._hasResource["dijit._DialogMixin"]){
dojo._hasResource["dijit._DialogMixin"]=true;
dojo.provide("dijit._DialogMixin");
dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function $DBBA_(_51e){
},onCancel:function $DBBB_(){
},onExecute:function $DBBC_(){
},_onSubmit:function $DBBD_(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function $DBBE_(_51f){
var _520=dijit._getTabNavigable(dojo.byId(_51f));
this._firstFocusItem=_520.lowest||_520.first||_51f;
this._lastFocusItem=_520.last||_520.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.getNodeProp(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_51f,"tabIndex","0");
this._firstFocusItem=_51f;
}
}});
}
if(!dojo._hasResource["dijit.DialogUnderlay"]){
dojo._hasResource["dijit.DialogUnderlay"]=true;
dojo.provide("dijit.DialogUnderlay");
dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function $DA35_(id){
dojo.attr(this.node,"id",id+"_underlay");
},_setClassAttr:function $DA36_(_521){
this.node.className="dijitDialogUnderlay "+_521;
},postCreate:function $DA37_(){
dojo.body().appendChild(this.domNode);
},layout:function $DA38_(){
var is=this.node.style,os=this.domNode.style;
os.display="none";
var _522=dijit.getViewport();
os.top=_522.t+"px";
os.left=_522.l+"px";
is.width=_522.w+"px";
is.height=_522.h+"px";
os.display="block";
},show:function $DA39_(){
this.domNode.style.display="block";
this.layout();
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
},hide:function $DA4A_(){
this.bgIframe.destroy();
this.domNode.style.display="none";
},uninitialize:function $DA4B_(){
if(this.bgIframe){
this.bgIframe.destroy();
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,isLayoutContainer:true,onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),postMixInProperties:function $DAyS_(){
this.inherited(arguments);
var _523=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_523);
this.errorMessage=dojo.string.substitute(this.errorMessage,_523);
if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){
this.isLoaded=true;
}
},buildRendering:function $DAyT_(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},postCreate:function $DAyU_(){
this.domNode.title="";
if(!dojo.attr(this.domNode,"role")){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this.baseClass);
},startup:function $DAyV_(){
if(this._started){
return;
}
var _524=dijit._Contained.prototype.getParent.call(this);
this._childOfLayoutWidget=_524&&_524.isLayoutContainer;
this._needLayout=!this._childOfLayoutWidget;
if(this.isLoaded){
dojo.forEach(this.getChildren(),function(_525){
_525.startup();
});
}
if(this._isShown()||this.preload){
this._onShow();
}
this.inherited(arguments);
},_checkIfSingleChild:function $DAyW_(){
var _526=dojo.query("> *",this.containerNode).filter(function(node){
return node.tagName!=="SCRIPT";
}),_527=_526.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_528=dojo.filter(_527.map(dijit.byNode),function(_529){
return _529&&_529.domNode&&_529.resize;
});
if(_526.length==_527.length&&_528.length==1){
this._singleChild=_528[0];
}else{
delete this._singleChild;
}
dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);
},setHref:function $DAyX_(href){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");
return this.attr("href",href);
},_setHrefAttr:function $DAyY_(href){
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this.href=href;
if(this._created&&(this.preload||this._isShown())){
this._load();
}else{
this._hrefChanged=true;
}
return this.onLoadDeferred;
},setContent:function $DAyZ_(data){
dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");
this.attr("content",data);
},_setContentAttr:function $DAya_(data){
this.href="";
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this._setContent(data||"");
this._isDownloaded=false;
return this.onLoadDeferred;
},_getContentAttr:function $DAyb_(){
return this.containerNode.innerHTML;
},cancel:function $DAyc_(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
this.onLoadDeferred=null;
},uninitialize:function $DAyd_(){
if(this._beingDestroyed){
this.cancel();
}
this.inherited(arguments);
},destroyRecursive:function $DAye_(_52a){
if(this._beingDestroyed){
return;
}
this.inherited(arguments);
},resize:function $DAyf_(_52b,_52c){
if(!this._wasShown){
this._onShow();
}
this._resizeCalled=true;
if(_52b){
dojo.marginBox(this.domNode,_52b);
}
var cn=this.containerNode;
if(cn===this.domNode){
var mb=_52c||{};
dojo.mixin(mb,_52b||{});
if(!("h" in mb)||!("w" in mb)){
mb=dojo.mixin(dojo.marginBox(cn),mb);
}
this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);
}else{
this._contentBox=dojo.contentBox(cn);
}
this._layoutChildren();
},_isShown:function $DAyg_(){
if(this._childOfLayoutWidget){
if(this._resizeCalled&&"open" in this){
return this.open;
}
return this._resizeCalled;
}else{
if("open" in this){
return this.open;
}else{
var node=this.domNode;
return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");
}
}
},_onShow:function $DAyh_(){
if(this.href){
if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){
this.refresh();
}
}else{
if(!this._childOfLayoutWidget&&this._needLayout){
this._layoutChildren();
}
}
this.inherited(arguments);
this._wasShown=true;
},refresh:function $DAyi_(){
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this._load();
return this.onLoadDeferred;
},_load:function $DAyj_(){
this._setContent(this.onDownloadStart(),true);
var self=this;
var _52d={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_52d,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_52d));
hand.addCallback(function(html){
try{
self._isDownloaded=true;
self._setContent(html,false);
self.onDownloadEnd();
}
catch(err){
self._onError("Content",err);
}
delete self._xhrDfd;
return html;
});
hand.addErrback(function(err){
if(!hand.canceled){
self._onError("Download",err);
}
delete self._xhrDfd;
return err;
});
delete this._hrefChanged;
},_onLoadHandler:function $DAyk_(data){
this.isLoaded=true;
try{
this.onLoadDeferred.callback(data);
this.onLoad(data);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);
}
},_onUnloadHandler:function $DAyl_(){
this.isLoaded=false;
try{
this.onUnload();
}
catch(e){
console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);
}
},destroyDescendants:function $DAym_(){
if(this.isLoaded){
this._onUnloadHandler();
}
var _52e=this._contentSetter;
dojo.forEach(this.getChildren(),function(_52f){
if(_52f.destroyRecursive){
_52f.destroyRecursive();
}
});
if(_52e){
dojo.forEach(_52e.parseResults,function(_530){
if(_530.destroyRecursive&&_530.domNode&&_530.domNode.parentNode==dojo.body()){
_530.destroyRecursive();
}
});
delete _52e.parseResults;
}
dojo.html._emptyNode(this.containerNode);
delete this._singleChild;
},_setContent:function $DAyn_(cont,_531){
this.destroyDescendants();
var _532=this._contentSetter;
if(!(_532&&_532 instanceof dojo.html._ContentSetter)){
_532=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _533=this.onContentError(e);
try{
this.containerNode.innerHTML=_533;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _534=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_532,_534);
_532.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_531){
dojo.forEach(this.getChildren(),function(_535){
if(!this.parseOnLoad||_535.getParent){
_535.startup();
}
},this);
this._scheduleLayout();
this._onLoadHandler(cont);
}
},_onError:function $DAyo_(type,err,_536){
this.onLoadDeferred.errback(err);
var _537=this["on"+type+"Error"].call(this,err);
if(_536){
console.error(_536,err);
}else{
if(_537){
this._setContent(_537,true);
}
}
},_scheduleLayout:function $DAyp_(){
if(this._isShown()){
this._layoutChildren();
}else{
this._needLayout=true;
}
},_layoutChildren:function $DAyq_(){
if(this.doLayout){
this._checkIfSingleChild();
}
if(this._singleChild&&this._singleChild.resize){
var cb=this._contentBox||dojo.contentBox(this.containerNode);
this._singleChild.resize({w:cb.w,h:cb.h});
}else{
dojo.forEach(this.getChildren(),function(_538){
if(_538.resize){
_538.resize();
}
});
}
delete this._needLayout;
},onLoad:function $DAyr_(data){
},onUnload:function $DAys_(){
},onDownloadStart:function $DAyt_(){
return this.loadingMessage;
},onContentError:function $DAyu_(_539){
},onDownloadError:function $DAyv_(_53a){
return this.errorMessage;
},onDownloadEnd:function $DAyw_(){
}});
}
if(!dojo._hasResource["dijit.TooltipDialog"]){
dojo._hasResource["dijit.TooltipDialog"]=true;
dojo.provide("dijit.TooltipDialog");
dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n"),postCreate:function $DAvq_(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
this.containerNode.title=this.title;
},orient:function $DAvr_(node,_53b,_53c){
var c=this._currentOrientClass;
if(c){
dojo.removeClass(this.domNode,c);
}
c="dijitTooltipAB"+(_53c.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_53c.charAt(0)=="T"?"Below":"Above");
dojo.addClass(this.domNode,c);
this._currentOrientClass=c;
},onOpen:function $DAvs_(pos){
this.orient(this.domNode,pos.aroundCorner,pos.corner);
this._onShow();
if(this.autofocus){
this._getFocusItems(this.containerNode);
dijit.focus(this._firstFocusItem);
}
},onClose:function $DAvt_(){
this.onHide();
},_onKey:function $DAvu_(evt){
var node=evt.target;
var dk=dojo.keys;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.containerNode);
}
var _53d=(this._firstFocusItem==this._lastFocusItem);
if(evt.charOrCode==dk.ESCAPE){
setTimeout(dojo.hitch(this,"onCancel"),0);
dojo.stopEvent(evt);
}else{
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_53d){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_53d){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
if(evt.charOrCode===dk.TAB){
evt.stopPropagation();
}
}
}
}
}});
}
if(!dojo._hasResource["dijit.Dialog"]){
dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function $DApT_(){
var _53e=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_53e);
this.inherited(arguments);
},postCreate:function $DApU_(){
dojo.style(this.domNode,{display:"none",position:"absolute"});
dojo.body().appendChild(this.domNode);
this.inherited(arguments);
this.connect(this,"onExecute","hide");
this.connect(this,"onCancel","hide");
this._modalconnects=[];
},onLoad:function $DApV_(){
this._position();
this.inherited(arguments);
},_endDrag:function $DApW_(e){
if(e&&e.node&&e.node===this.domNode){
this._relativePosition=dojo.position(e.node);
}
},_setup:function $DApX_(){
var node=this.domNode;
if(this.titleBar&&this.draggable){
this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});
dojo.subscribe("/dnd/move/stop",this,"_endDrag");
}else{
dojo.addClass(node,"dijitDialogFixed");
}
this.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:dojo.hitch(this,function(){
var _53f=dijit._underlay;
if(!_53f){
_53f=dijit._underlay=new dijit.DialogUnderlay(this.underlayAttrs);
}else{
_53f.attr(this.underlayAttrs);
}
var _540=948+dijit._dialogStack.length*2;
dojo.style(dijit._underlay.domNode,"zIndex",_540);
dojo.style(this.domNode,"zIndex",_540+1);
_53f.show();
}),onEnd:dojo.hitch(this,function(){
if(this.autofocus){
this._getFocusItems(this.domNode);
dijit.focus(this._firstFocusItem);
}
})});
this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:dojo.hitch(this,function(){
node.style.display="none";
var ds=dijit._dialogStack;
if(ds.length==0){
dijit._underlay.hide();
}else{
dojo.style(dijit._underlay.domNode,"zIndex",948+ds.length*2);
dijit._underlay.attr(ds[ds.length-1].underlayAttrs);
}
if(this.refocus){
var _541=this._savedFocus;
if(ds.length>0){
var pd=ds[ds.length-1];
if(!dojo.isDescendant(_541.node,pd.domNode)){
pd._getFocusItems(pd.domNode);
_541=pd._firstFocusItem;
}
}
dijit.focus(_541);
}
})});
},uninitialize:function $DApY_(){
var _542=false;
if(this._fadeIn&&this._fadeIn.status()=="playing"){
_542=true;
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
_542=true;
this._fadeOut.stop();
}
if((this.open||_542)&&!dijit._underlay._destroyed){
dijit._underlay.hide();
}
if(this._moveable){
this._moveable.destroy();
}
this.inherited(arguments);
},_size:function $DApZ_(){
this._checkIfSingleChild();
if(this._singleChild){
if(this._singleChildOriginalStyle){
this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;
}
delete this._singleChildOriginalStyle;
}else{
dojo.style(this.containerNode,{width:"auto",height:"auto"});
}
var mb=dojo.marginBox(this.domNode);
var _543=dijit.getViewport();
if(mb.w>=_543.w||mb.h>=_543.h){
var w=Math.min(mb.w,Math.floor(_543.w*0.75)),h=Math.min(mb.h,Math.floor(_543.h*0.75));
if(this._singleChild&&this._singleChild.resize){
this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;
this._singleChild.resize({w:w,h:h});
}else{
dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});
}
}else{
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize();
}
}
},_position:function $DApa_(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode,_544=dijit.getViewport(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_544.l+(p?p.x:(_544.w-bb.w)/2)),t=Math.floor(_544.t+(p?p.y:(_544.h-bb.h)/2));
dojo.style(node,{left:l+"px",top:t+"px"});
}
},_onKey:function $DApb_(evt){
var ds=dijit._dialogStack;
if(ds[ds.length-1]!=this){
return;
}
if(evt.charOrCode){
var dk=dojo.keys;
var node=evt.target;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.domNode);
}
var _545=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_545){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_545){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
while(node){
if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){
if(evt.charOrCode==dk.ESCAPE){
this.onCancel();
}else{
return;
}
}
node=node.parentNode;
}
if(evt.charOrCode!==dk.TAB){
dojo.stopEvent(evt);
}else{
if(!dojo.isOpera){
try{
this._firstFocusItem.focus();
}
catch(e){
}
}
}
}
}
}
},show:function $DApc_(){
if(this.open){
return;
}
if(!this._alreadyInitialized){
this._setup();
this._alreadyInitialized=true;
}
if(this._fadeOut.status()=="playing"){
this._fadeOut.stop();
}
this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));
this._modalconnects.push(dojo.connect(window,"onresize",this,function(){
var _546=dijit.getViewport();
if(!this._oldViewport||_546.h!=this._oldViewport.h||_546.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_546;
}
}));
this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));
dojo.style(this.domNode,{opacity:0,display:""});
this.open=true;
this._onShow();
this._size();
this._position();
dijit._dialogStack.push(this);
this._fadeIn.play();
this._savedFocus=dijit.getFocus(this);
},hide:function $DApd_(){
var ds=dijit._dialogStack;
if(!this._alreadyInitialized||this!=ds[ds.length-1]){
return;
}
if(this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
ds.pop();
this._fadeOut.play();
if(this._scrollConnected){
this._scrollConnected=false;
}
dojo.forEach(this._modalconnects,dojo.disconnect);
this._modalconnects=[];
if(this._relativePosition){
delete this._relativePosition;
}
this.open=false;
this.onHide();
},layout:function $DApe_(){
if(this.domNode.style.display!="none"){
if(dijit._underlay){
dijit._underlay.layout();
}
this._position();
}
},destroy:function $DApf_(){
dojo.forEach(this._modalconnects,dojo.disconnect);
if(this.refocus&&this.open){
setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);
}
this.inherited(arguments);
},_onCloseEnter:function $DApg_(){
dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
},_onCloseLeave:function $DAph_(){
dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
}});
dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});
dijit._dialogStack=[];
}
if(!dojo._hasResource["dijit.form.TextBox"]){
dojo._hasResource["dijit.form.TextBox"]=true;
dojo.provide("dijit.form.TextBox");
dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,templateString:dojo.cache("dijit.form","templates/TextBox.html","<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse'\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\n\t/>\n"),baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function $DAs6_(){
return this.parse(this.attr("displayedValue"),this.constraints);
},_setValueAttr:function $DAs7_(_547,_548,_549){
var _54a;
if(_547!==undefined){
_54a=this.filter(_547);
if(typeof _549!="string"){
if(_54a!==null&&((typeof _54a!="number")||!isNaN(_54a))){
_549=this.filter(this.format(_54a,this.constraints));
}else{
_549="";
}
}
}
if(_549!=null&&_549!=undefined&&((typeof _549)!="number"||!isNaN(_549))&&this.textbox.value!=_549){
this.textbox.value=_549;
}
this.inherited(arguments,[_54a,_548]);
},displayedValue:"",getDisplayedValue:function $DAs8_(){
dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");
return this.attr("displayedValue");
},_getDisplayedValueAttr:function $DAs9_(){
return this.filter(this.textbox.value);
},setDisplayedValue:function $DAtA_(_54b){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");
this.attr("displayedValue",_54b);
},_setDisplayedValueAttr:function $DAtB_(_54c){
if(_54c===null||_54c===undefined){
_54c="";
}else{
if(typeof _54c!="string"){
_54c=String(_54c);
}
}
this.textbox.value=_54c;
this._setValueAttr(this.attr("value"),undefined,_54c);
},format:function $DAtC_(_54d,_54e){
return ((_54d==null||_54d==undefined)?"":(_54d.toString?_54d.toString():_54d));
},parse:function $DAtD_(_54f,_550){
return _54f;
},_refreshState:function $DAtE_(){
},_onInput:function $DAtF_(e){
if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){
switch(e.keyCode){
case dojo.keys.SHIFT:
case dojo.keys.ALT:
case dojo.keys.CTRL:
case dojo.keys.TAB:
return;
}
}
if(this.intermediateChanges){
var _551=this;
setTimeout(function(){
_551._handleOnChange(_551.attr("value"),false);
},0);
}
this._refreshState();
},postCreate:function $DAtG_(){
this.textbox.setAttribute("value",this.textbox.value);
this.inherited(arguments);
if(dojo.isMoz||dojo.isOpera){
this.connect(this.textbox,"oninput",this._onInput);
}else{
this.connect(this.textbox,"onkeydown",this._onInput);
this.connect(this.textbox,"onkeyup",this._onInput);
this.connect(this.textbox,"onpaste",this._onInput);
this.connect(this.textbox,"oncut",this._onInput);
}
},_blankValue:"",filter:function $DAtH_(val){
if(val===null){
return this._blankValue;
}
if(typeof val!="string"){
return val;
}
if(this.trim){
val=dojo.trim(val);
}
if(this.uppercase){
val=val.toUpperCase();
}
if(this.lowercase){
val=val.toLowerCase();
}
if(this.propercase){
val=val.replace(/[^\s]+/g,function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
});
}
return val;
},_setBlurValue:function $DAtI_(){
this._setValueAttr(this.attr("value"),true);
},_onBlur:function $DAtJ_(e){
if(this.disabled){
return;
}
this._setBlurValue();
this.inherited(arguments);
if(this._selectOnClickHandle){
this.disconnect(this._selectOnClickHandle);
}
if(this.selectOnClick&&dojo.isMoz){
this.textbox.selectionStart=this.textbox.selectionEnd=undefined;
}
},_onFocus:function $DAtK_(by){
if(this.disabled||this.readOnly){
return;
}
if(this.selectOnClick&&by=="mouse"){
this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){
this.disconnect(this._selectOnClickHandle);
var _552;
if(dojo.isIE){
var _553=dojo.doc.selection.createRange();
var _554=_553.parentElement();
_552=_554==this.textbox&&_553.text.length==0;
}else{
_552=this.textbox.selectionStart==this.textbox.selectionEnd;
}
if(_552){
dijit.selectInputText(this.textbox);
}
});
}
this._refreshState();
this.inherited(arguments);
},reset:function $DAtL_(){
this.textbox.value="";
this.inherited(arguments);
}});
dijit.selectInputText=function $DAtM_(_555,_556,stop){
var _557=dojo.global;
var _558=dojo.doc;
_555=dojo.byId(_555);
if(isNaN(_556)){
_556=0;
}
if(isNaN(stop)){
stop=_555.value?_555.value.length:0;
}
dijit.focus(_555);
if(_558["selection"]&&dojo.body()["createTextRange"]){
if(_555.createTextRange){
var _559=_555.createTextRange();
with(_559){
collapse(true);
moveStart("character",-99999);
moveStart("character",_556);
moveEnd("character",stop-_556);
select();
}
}
}else{
if(_557["getSelection"]){
if(_555.setSelectionRange){
_555.setSelectionRange(_556,stop);
}
}
}
};
}
if(!dojo._hasResource["dijit.Tooltip"]){
dojo._hasResource["dijit.Tooltip"]=true;
dojo.provide("dijit.Tooltip");
dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n"),postCreate:function $DA02_(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});
this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});
},show:function $DA03_(_55a,_55b,_55c){
if(this.aroundNode&&this.aroundNode===_55b){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_55a;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var pos=dijit.placeOnScreenAroundElement(this.domNode,_55b,dijit.getPopupAroundAlignment((_55c&&_55c.length)?_55c:dijit.Tooltip.defaultPosition,this.isLeftToRight()),dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_55b;
},orient:function $DA04_(node,_55d,_55e){
node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_55d+"-"+_55e];
},_onShow:function $DA05_(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function $DA06_(_55f){
if(this._onDeck&&this._onDeck[1]==_55f){
this._onDeck=null;
}else{
if(this.aroundNode===_55f){
this.fadeIn.stop();
this.isShowingNow=false;
this.aroundNode=null;
this.fadeOut.play();
}else{
}
}
},_onHide:function $DA07_(){
this.domNode.style.cssText="";
if(this._onDeck){
this.show.apply(this,this._onDeck);
this._onDeck=null;
}
}});
dijit.showTooltip=function $DA1Q_(_560,_561,_562){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_560,_561,_562);
};
dijit.hideTooltip=function $DA1R_(_563){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_563);
};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],constructor:function $DA08_(){
this._nodeConnectionsById={};
},_setConnectIdAttr:function $DA09_(_564){
for(var _565 in this._nodeConnectionsById){
this.removeTarget(_565);
}
dojo.forEach(dojo.isArrayLike(_564)?_564:[_564],this.addTarget,this);
},_getConnectIdAttr:function $DA1A_(){
var ary=[];
for(var id in this._nodeConnectionsById){
ary.push(id);
}
return ary;
},addTarget:function $DA1B_(id){
var node=dojo.byId(id);
if(!node){
return;
}
if(node.id in this._nodeConnectionsById){
return;
}
this._nodeConnectionsById[node.id]=[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")];
if(dojo.isIE&&!node.style.zoom){
node.style.zoom=1;
}
},removeTarget:function $DA1C_(node){
var id=node.id||node;
if(id in this._nodeConnectionsById){
dojo.forEach(this._nodeConnectionsById[id],this.disconnect,this);
delete this._nodeConnectionsById[id];
}
},postCreate:function $DA1D_(){
dojo.addClass(this.domNode,"dijitTooltipData");
},startup:function $DA1E_(){
this.inherited(arguments);
var ids=this.connectId;
dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);
},_onTargetMouseEnter:function $DA1F_(e){
this._onHover(e);
},_onTargetMouseLeave:function $DA1G_(e){
this._onUnHover(e);
},_onTargetFocus:function $DA1H_(e){
this._focus=true;
this._onHover(e);
},_onTargetBlur:function $DA1I_(e){
this._focus=false;
this._onUnHover(e);
},_onHover:function $DA1J_(e){
if(!this._showTimer){
var _566=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_566);
}),this.showDelay);
}
},_onUnHover:function $DA1K_(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function $DA1L_(_567){
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_567,this.position);
this._connectNode=_567;
this.onShow(_567,this.position);
},close:function $DA1M_(){
if(this._connectNode){
dijit.hideTooltip(this._connectNode);
delete this._connectNode;
this.onHide();
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
},onShow:function $DA1N_(_568,_569){
},onHide:function $DA1O_(){
},uninitialize:function $DA1P_(){
this.close();
this.inherited(arguments);
}});
dijit.Tooltip.defaultPosition=["after","before"];
}
if(!dojo._hasResource["dijit.form.ValidationTextBox"]){
dojo._hasResource["dijit.form.ValidationTextBox"]=true;
dojo.provide("dijit.form.ValidationTextBox");
dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:dojo.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${nameAttrSetting} type='${type}'\n\t\t/></div\n\t></div\n></div>\n"),baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function $DAq1_(_56a){
return this.regExp;
},state:"",tooltipPosition:[],_setValueAttr:function $DAq2_(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function $DAq3_(_56b,_56c){
return (new RegExp("^(?:"+this.regExpGen(_56c)+")"+(this.required?"":"?")+"$")).test(_56b)&&(!this.required||!this._isEmpty(_56b))&&(this._isEmpty(_56b)||this.parse(_56b,_56c)!==undefined);
},_isValidSubset:function $DAq4_(){
return this.textbox.value.search(this._partialre)==0;
},isValid:function $DAq5_(_56d){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function $DAq6_(_56e){
return /^\s*$/.test(_56e);
},getErrorMessage:function $DAq7_(_56f){
return this.invalidMessage;
},getPromptMessage:function $DAq8_(_570){
return this.promptMessage;
},_maskValidSubsetError:true,validate:function $DAq9_(_571){
var _572="";
var _573=this.disabled||this.isValid(_571);
if(_573){
this._maskValidSubsetError=true;
}
var _574=!_573&&_571&&this._isValidSubset();
var _575=this._isEmpty(this.textbox.value);
if(_575){
this._maskValidSubsetError=true;
}
this.state=(_573||(!this._hasBeenBlurred&&_575)||_574)?"":"Error";
if(this.state=="Error"){
this._maskValidSubsetError=false;
}
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_573?"false":"true");
if(_571){
if(_575){
_572=this.getPromptMessage(true);
}
if(!_572&&(this.state=="Error"||(_574&&!this._maskValidSubsetError))){
_572=this.getErrorMessage(true);
}
}
this.displayMessage(_572);
return _573;
},_message:"",displayMessage:function $DArA_(_576){
if(this._message==_576){
return;
}
this._message=_576;
dijit.hideTooltip(this.domNode);
if(_576){
dijit.showTooltip(_576,this.domNode,this.tooltipPosition);
}
},_refreshState:function $DArB_(){
this.validate(this._focused);
this.inherited(arguments);
},constructor:function $DArC_(){
this.constraints={};
},postMixInProperties:function $DArD_(){
this.inherited(arguments);
this.constraints.locale=this.lang;
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
if(this.invalidMessage=="$_unset_$"){
this.invalidMessage=this.messages.invalidMessage;
}
var p=this.regExpGen(this.constraints);
this.regExp=p;
var _577="";
if(p!=".*"){
this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){
switch(re.charAt(0)){
case "{":
case "+":
case "?":
case "*":
case "^":
case "$":
case "|":
case "(":
_577+=re;
break;
case ")":
_577+="|$)";
break;
default:
_577+="(?:"+re+"|$)";
break;
}
});
}
try{
"".search(_577);
}
catch(e){
_577=this.regExp;
console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);
}
this._partialre="^(?:"+_577+")$";
},_setDisabledAttr:function $DArE_(_578){
this.inherited(arguments);
this._refreshState();
},_setRequiredAttr:function $DArF_(_579){
this.required=_579;
dijit.setWaiState(this.focusNode,"required",_579);
this._refreshState();
},postCreate:function $DArG_(){
if(dojo.isIE){
var s=dojo.getComputedStyle(this.focusNode);
if(s){
var ff=s.fontFamily;
if(ff){
this.focusNode.style.fontFamily=ff;
}
}
}
this.inherited(arguments);
},reset:function $DArH_(){
this._maskValidSubsetError=true;
this.inherited(arguments);
},_onBlur:function $DArI_(){
this.displayMessage("");
this.inherited(arguments);
}});
dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function $DArJ_(){
this.inherited(arguments);
this.nameAttrSetting="";
},serialize:function $DArK_(val,_57a){
return val.toString?val.toString():"";
},toString:function $DArL_(){
var val=this.filter(this.attr("value"));
return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";
},validate:function $DArM_(){
this.valueNode.value=this.toString();
return this.inherited(arguments);
},buildRendering:function $DArN_(){
this.inherited(arguments);
this.valueNode=dojo.place("<input type='hidden'"+(this.name?" name='"+this.name+"'":"")+">",this.textbox,"after");
},reset:function $DArO_(){
this.valueNode.value="";
this.inherited(arguments);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function $DArP_(_57b,_57c){
return ("min" in _57c?(this.compare(_57b,_57c.min)>=0):true)&&("max" in _57c?(this.compare(_57b,_57c.max)<=0):true);
},isInRange:function $DArQ_(_57d){
return this.rangeCheck(this.attr("value"),this.constraints);
},_isDefinitelyOutOfRange:function $DArR_(){
var val=this.attr("value");
var _57e=false;
var _57f=false;
if("min" in this.constraints){
var min=this.constraints.min;
min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);
_57e=(typeof min=="number")&&min<0;
}
if("max" in this.constraints){
var max=this.constraints.max;
max=this.compare(val,((typeof max!="number")||max>0)?max:0);
_57f=(typeof max=="number")&&max>0;
}
return _57e||_57f;
},_isValidSubset:function $DArS_(){
return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();
},isValid:function $DArT_(_580){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_580));
},getErrorMessage:function $DArU_(_581){
var v=this.attr("value");
if(v!==null&&v!==""&&v!==undefined&&!this.isInRange(_581)){
return this.rangeMessage;
}
return this.inherited(arguments);
},postMixInProperties:function $DArV_(){
this.inherited(arguments);
if(!this.rangeMessage){
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
this.rangeMessage=this.messages.rangeMessage;
}
},postCreate:function $DArW_(){
this.inherited(arguments);
if(this.constraints.min!==undefined){
dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);
}
if(this.constraints.max!==undefined){
dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);
}
},_setValueAttr:function $DArX_(_582,_583){
dijit.setWaiState(this.focusNode,"valuenow",_582);
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function $DBNK_(str,_584){
return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){
if(_584&&_584.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function $DBNL_(arr,re,_585){
if(!(arr instanceof Array)){
return re(arr);
}
var b=[];
for(var i=0;i<arr.length;i++){
b.push(re(arr[i]));
}
return dojo.regexp.group(b.join("|"),_585);
};
dojo.regexp.group=function $DBNM_(_586,_587){
return "("+(_587?"?:":"")+_586+")";
};
}
if(!dojo._hasResource["dijit.form.ComboBox"]){
dojo._hasResource["dijit.form.ComboBox"]=true;
dojo.provide("dijit.form.ComboBox");
dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:dojo.cache("dijit.form","templates/ComboBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input ${nameAttrSetting} type=\"text\" autocomplete=\"off\" class='dijitReset'\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t\t/></div\n\t></div\n></div>\n"),baseClass:"dijitComboBox",_getCaretPos:function $DAry_(_588){
var pos=0;
if(typeof (_588.selectionStart)=="number"){
pos=_588.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_588.createTextRange();
tr.move("character",0);
ntr.move("character",0);
try{
ntr.setEndPoint("EndToEnd",tr);
pos=String(ntr.text).replace(/\r/g,"").length;
}
catch(e){
}
}
}
return pos;
},_setCaretPos:function $DArz_(_589,_58a){
_58a=parseInt(_58a);
dijit.selectInputText(_589,_58a,_58a);
},_setDisabledAttr:function $DAr0_(_58b){
this.inherited(arguments);
dijit.setWaiState(this.comboNode,"disabled",_58b);
},_abortQuery:function $DAr1_(){
if(this.searchTimer){
clearTimeout(this.searchTimer);
this.searchTimer=null;
}
if(this._fetchHandle){
if(this._fetchHandle.abort){
this._fetchHandle.abort();
}
this._fetchHandle=null;
}
},_onKeyPress:function $DAr2_(evt){
var key=evt.charOrCode;
if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){
return;
}
var _58c=false;
var _58d="_startSearchFromInput";
var pw=this._popupWidget;
var dk=dojo.keys;
var _58e=null;
this._prev_key_backspace=false;
this._abortQuery();
if(this._isShowingNow){
pw.handleKey(key);
_58e=pw.getHighlightedOption();
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
case dk.PAGE_UP:
case dk.UP_ARROW:
if(!this._isShowingNow){
this._arrowPressed();
_58c=true;
_58d="_startSearchAll";
}else{
this._announceOption(_58e);
}
dojo.stopEvent(evt);
break;
case dk.ENTER:
if(_58e){
if(_58e==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_58e==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this._setBlurValue();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
}
evt.preventDefault();
case dk.TAB:
var _58f=this.attr("displayedValue");
if(pw&&(_58f==pw._messages["previousMessage"]||_58f==pw._messages["nextMessage"])){
break;
}
if(_58e){
this._selectOption();
}
if(this._isShowingNow){
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
if(_58e){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_58c=true;
}
break;
case dk.ESCAPE:
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_backspace=true;
_58c=true;
break;
default:
_58c=typeof key=="string"||key==229;
}
if(_58c){
this.item=undefined;
this.searchTimer=setTimeout(dojo.hitch(this,_58d),1);
}
},_autoCompleteText:function $DAr3_(text){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _590=this.ignoreCase?"toLowerCase":"substr";
if(text[_590](0).indexOf(this.focusNode.value[_590](0))==0){
var cpos=this._getCaretPos(fn);
if((cpos+1)>fn.value.length){
fn.value=text;
dijit.selectInputText(fn,cpos);
}
}else{
fn.value=text;
dijit.selectInputText(fn);
}
},_openResultList:function $DAr4_(_591,_592){
this._fetchHandle=null;
if(this.disabled||this.readOnly||(_592.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_591.length){
this._hideResultList();
return;
}
_592._maxOptions=this._maxOptions;
var _593=this._popupWidget.createOptions(_591,_592,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_592.direction){
if(1==_592.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_592.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}else{
if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_592.query[this.searchAttr])){
this._announceOption(_593[1]);
}
}
},_showResultList:function $DAr5_(){
this._hideResultList();
this._arrowPressed();
this.displayMessage("");
dojo.style(this._popupWidget.domNode,{width:"",height:""});
var best=this.open();
var _594=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_594.h)&&(best.w==_594.w))?"hidden":"auto";
var _595=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_595+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_595,this.domNode.offsetWidth)});
if(_595<this.domNode.offsetWidth){
this._popupWidget.domNode.parentNode.style.left=dojo.position(this.domNode).x+"px";
}
dijit.setWaiState(this.comboNode,"expanded","true");
},_hideResultList:function $DAr6_(){
this._abortQuery();
if(this._isShowingNow){
dijit.popup.close(this._popupWidget);
this._arrowIdle();
this._isShowingNow=false;
dijit.setWaiState(this.comboNode,"expanded","false");
dijit.removeWaiState(this.focusNode,"activedescendant");
}
},_setBlurValue:function $DAr7_(){
var _596=this.attr("displayedValue");
var pw=this._popupWidget;
if(pw&&(_596==pw._messages["previousMessage"]||_596==pw._messages["nextMessage"])){
this._setValueAttr(this._lastValueReported,true);
}else{
if(typeof this.item=="undefined"){
this.item=null;
this.attr("displayedValue",_596);
}else{
if(this.value!=this._lastValueReported){
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
}
this._refreshState();
}
}
},_onBlur:function $DAr8_(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_setItemAttr:function $DAr9_(item,_597,_598){
if(!_598){
_598=this.labelFunc(item,this.store);
}
this.value=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_598;
this.item=item;
dijit.form.ComboBox.superclass._setValueAttr.call(this,this.value,_597,_598);
},_announceOption:function $DAsA_(node){
if(!node){
return;
}
var _599;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_599=node.innerHTML;
this.item=undefined;
this.value="";
}else{
_599=this.labelFunc(node.item,this.store);
this.attr("item",node.item,false,_599);
}
this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));
this._autoCompleteText(_599);
},_selectOption:function $DAsB_(evt){
if(evt){
this._announceOption(evt.target);
}
this._hideResultList();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
},_onArrowMouseDown:function $DAsC_(evt){
if(this.disabled||this.readOnly){
return;
}
dojo.stopEvent(evt);
this.focus();
if(this._isShowingNow){
this._hideResultList();
}else{
this._startSearchAll();
}
},_startSearchAll:function $DAsD_(){
this._startSearch("");
},_startSearchFromInput:function $DAsE_(){
this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));
},_getQueryString:function $DAsF_(text){
return dojo.string.substitute(this.queryExpr,[text]);
},_startSearch:function $DAsG_(key){
if(!this._popupWidget){
var _59a=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_59a});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_59a);
}
var _59b=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_59b[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_59c,_59d){
this.searchTimer=null;
var _59e={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_59c,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function $DAsH_(_59f){
_59d._fetchHandle=null;
console.error("dijit.form.ComboBox: "+_59f);
dojo.hitch(_59d,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_59e,_59d.fetchProperties);
this._fetchHandle=_59d.store.fetch(_59e);
var _5a0=function(_5a1,_5a2){
_5a1.start+=_5a1.count*_5a2;
_5a1.direction=_5a2;
this._fetchHandle=this.store.fetch(_5a1);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_5a0,this._fetchHandle);
},_59b,this),this.searchDelay);
},_setMaxOptions:function $DAsI_(size,_5a3){
this._maxOptions=size;
},_getValueField:function $DAsJ_(){
return this.searchAttr;
},_arrowPressed:function $DAsK_(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.addClass(this.downArrowNode,"dijitArrowButtonActive");
}
},_arrowIdle:function $DAsL_(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.removeClass(this.downArrowNode,"dojoArrowButtonPushed");
}
},compositionend:function $DAsM_(evt){
this._onKeyPress({charOrCode:229});
},constructor:function $DAsN_(){
this.query={};
this.fetchProperties={};
},postMixInProperties:function $DAsO_(){
if(!this.hasDownArrow){
this.baseClass="dijitTextBox";
}
if(!this.store){
var _5a4=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_5a4);
if(!this.value||((typeof _5a4.selectedIndex=="number")&&_5a4.selectedIndex.toString()===this.value)){
var item=this.store.fetchSelectedItem();
if(item){
var _5a5=this._getValueField();
this.value=_5a5!=this.searchAttr?this.store.getValue(item,_5a5):this.labelFunc(item,this.store);
}
}
}
this.inherited(arguments);
},postCreate:function $DAsP_(){
var _5a6=dojo.query("label[for=\""+this.id+"\"]");
if(_5a6.length){
_5a6[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_5a6[0].id);
}
this.inherited(arguments);
},uninitialize:function $DAsQ_(){
if(this._popupWidget&&!this._popupWidget._destroyed){
this._hideResultList();
this._popupWidget.destroy();
}
this.inherited(arguments);
},_getMenuLabelFromItem:function $DAsR_(item){
var _5a7=this.labelAttr?this.store.getValue(item,this.labelAttr):this.labelFunc(item,this.store);
var _5a8=this.labelType;
if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){
_5a7=this.doHighlight(_5a7,this._escapeHtml(this._lastInput));
_5a8="html";
}
return {html:_5a8=="html",label:_5a7};
},doHighlight:function $DAsS_(_5a9,find){
var _5aa="i"+(this.highlightMatch=="all"?"g":"");
var _5ab=this._escapeHtml(_5a9);
find=dojo.regexp.escapeString(find);
var ret=_5ab.replace(new RegExp("(^|\\s)("+find+")",_5aa),"$1<span class=\"dijitComboBoxHighlightMatch\">$2</span>");
return ret;
},_escapeHtml:function $DAsT_(str){
str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
return str;
},open:function $DAsU_(){
this._isShowingNow=true;
return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});
},reset:function $DAsV_(){
this.item=null;
this.inherited(arguments);
},labelFunc:function $DAsW_(item,_5ac){
return _5ac.getValue(item,this.searchAttr).toString();
}});
dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,postMixInProperties:function $DAsX_(){
this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);
this.inherited(arguments);
},_setValueAttr:function $DAsY_(_5ad){
this.value=_5ad;
this.onChange(_5ad);
},onChange:function $DAsZ_(_5ae){
},onPage:function $DAsa_(_5af){
},postCreate:function $DAsb_(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited(arguments);
},onClose:function $DAsc_(){
this._blurOptionNode();
},_createOption:function $DAsd_(item,_5b0){
var _5b1=_5b0(item);
var _5b2=dojo.doc.createElement("li");
dijit.setWaiRole(_5b2,"option");
if(_5b1.html){
_5b2.innerHTML=_5b1.label;
}else{
_5b2.appendChild(dojo.doc.createTextNode(_5b1.label));
}
if(_5b2.innerHTML==""){
_5b2.innerHTML="&nbsp;";
}
_5b2.item=item;
return _5b2;
},createOptions:function $DAse_(_5b3,_5b4,_5b5){
this.previousButton.style.display=(_5b4.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_5b3,function(item,i){
var _5b6=this._createOption(item,_5b5);
_5b6.className="dijitReset dijitMenuItem";
dojo.attr(_5b6,"id",this.id+i);
this.domNode.insertBefore(_5b6,this.nextButton);
},this);
var _5b7=false;
if(_5b4._maxOptions&&_5b4._maxOptions!=-1){
if((_5b4.start+_5b4.count)<_5b4._maxOptions){
_5b7=true;
}else{
if((_5b4.start+_5b4.count)>(_5b4._maxOptions-1)){
if(_5b4.count==_5b3.length){
_5b7=true;
}
}
}
}else{
if(_5b4.count==_5b3.length){
_5b7=true;
}
}
this.nextButton.style.display=_5b7?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
return this.domNode.childNodes;
},clearResultList:function $DAsf_(){
while(this.domNode.childNodes.length>2){
this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);
}
},_onMouseDown:function $DAsg_(evt){
dojo.stopEvent(evt);
},_onMouseUp:function $DAsh_(evt){
if(evt.target===this.domNode){
return;
}else{
if(evt.target==this.previousButton){
this.onPage(-1);
}else{
if(evt.target==this.nextButton){
this.onPage(1);
}else{
var tgt=evt.target;
while(!tgt.item){
tgt=tgt.parentNode;
}
this._setValueAttr({target:tgt},true);
}
}
}
},_onMouseOver:function $DAsi_(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_onMouseOut:function $DAsj_(evt){
if(evt.target===this.domNode){
return;
}
this._blurOptionNode();
},_focusOptionNode:function $DAsk_(node){
if(this._highlighted_option!=node){
this._blurOptionNode();
this._highlighted_option=node;
dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");
}
},_blurOptionNode:function $DAsl_(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");
this._highlighted_option=null;
}
},_highlightNextOption:function $DAsm_(){
var fc=this.domNode.firstChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);
}else{
var ns=this._highlighted_option.nextSibling;
if(ns&&ns.style.display!="none"){
this._focusOptionNode(ns);
}
}
dijit.scrollIntoView(this._highlighted_option);
},highlightFirstOption:function $DAsn_(){
this._focusOptionNode(this.domNode.firstChild.nextSibling);
dijit.scrollIntoView(this._highlighted_option);
},highlightLastOption:function $DAso_(){
this._focusOptionNode(this.domNode.lastChild.previousSibling);
dijit.scrollIntoView(this._highlighted_option);
},_highlightPrevOption:function $DAsp_(){
var lc=this.domNode.lastChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);
}else{
var ps=this._highlighted_option.previousSibling;
if(ps&&ps.style.display!="none"){
this._focusOptionNode(ps);
}
}
dijit.scrollIntoView(this._highlighted_option);
},_page:function $DAsq_(up){
var _5b8=0;
var _5b9=this.domNode.scrollTop;
var _5ba=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_5b8<_5ba){
if(up){
if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){
break;
}
this._highlightPrevOption();
}else{
if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){
break;
}
this._highlightNextOption();
}
var _5bb=this.domNode.scrollTop;
_5b8+=(_5bb-_5b9)*(up?-1:1);
_5b9=_5bb;
}
},pageUp:function $DAsr_(){
this._page(true);
},pageDown:function $DAss_(){
this._page(false);
},getHighlightedOption:function $DAst_(){
var ho=this._highlighted_option;
return (ho&&ho.parentNode)?ho:null;
},handleKey:function $DAsu_(key){
switch(key){
case dojo.keys.DOWN_ARROW:
this._highlightNextOption();
break;
case dojo.keys.PAGE_DOWN:
this.pageDown();
break;
case dojo.keys.UP_ARROW:
this._highlightPrevOption();
break;
case dojo.keys.PAGE_UP:
this.pageUp();
break;
}
}});
dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function $DAsv_(_5bc,_5bd,_5be){
this.item=null;
if(!_5bc){
_5bc="";
}
dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_5bc,_5bd,_5be);
}});
dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function $DAsw_(root){
this.root=root;
dojo.query("> option",root).forEach(function(node){
node.innerHTML=dojo.trim(node.innerHTML);
});
},getValue:function $DAsx_(item,_5bf,_5c0){
return (_5bf=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function $DAsy_(_5c1){
return true;
},getFeatures:function $DAsz_(){
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
},_fetchItems:function $DAs0_(args,_5c2,_5c3){
if(!args.query){
args.query={};
}
if(!args.query.name){
args.query.name="";
}
if(!args.queryOptions){
args.queryOptions={};
}
var _5c4=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_5c5=dojo.query("> option",this.root).filter(function(_5c6){
return (_5c6.innerText||_5c6.textContent||"").match(_5c4);
});
if(args.sort){
_5c5.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));
}
_5c2(_5c5,args);
},close:function $DAs1_(_5c7){
return;
},getLabel:function $DAs2_(item){
return item.innerHTML;
},getIdentity:function $DAs3_(item){
return dojo.attr(item,"value");
},fetchItemByIdentity:function $DAs4_(args){
var item=dojo.query("option[value='"+args.identity+"']",this.root)[0];
args.onItem(item);
},fetchSelectedItem:function $DAs5_(){
var root=this.root,si=root.selectedIndex;
return dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0];
}});
dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);
}
if(!dojo._hasResource["dijit.form.FilteringSelect"]){
dojo._hasResource["dijit.form.FilteringSelect"]=true;
dojo.provide("dijit.form.FilteringSelect");
dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{_isvalid:true,required:true,_lastDisplayedValue:"",isValid:function $DAra_(){
return this._isvalid||(!this.required&&this.attr("displayedValue")=="");
},_callbackSetLabel:function $DArb_(_5c8,_5c9,_5ca){
if((_5c9&&_5c9.query[this.searchAttr]!=this._lastQuery)||(!_5c9&&_5c8.length&&this.store.getIdentity(_5c8[0])!=this._lastQuery)){
return;
}
if(!_5c8.length){
this.valueNode.value="";
dijit.form.TextBox.superclass._setValueAttr.call(this,"",_5ca||(_5ca===undefined&&!this._focused));
this._isvalid=false;
this.validate(this._focused);
this.item=null;
}else{
this.attr("item",_5c8[0],_5ca);
}
},_openResultList:function $DArc_(_5cb,_5cc){
if(_5cc.query[this.searchAttr]!=this._lastQuery){
return;
}
this._isvalid=_5cb.length!=0;
this.validate(true);
dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);
},_getValueAttr:function $DArd_(){
return this.valueNode.value;
},_getValueField:function $DAre_(){
return "value";
},_setValueAttr:function $DArf_(_5cd,_5ce){
if(!this._onChangeActive){
_5ce=null;
}
this._lastQuery=_5cd;
if(_5cd===null||_5cd===""){
this._setDisplayedValueAttr("",_5ce);
return;
}
var self=this;
this.store.fetchItemByIdentity({identity:_5cd,onItem:function $DArg_(item){
self._callbackSetLabel([item],undefined,_5ce);
}});
},_setItemAttr:function $DArh_(item,_5cf,_5d0){
this._isvalid=true;
this.inherited(arguments);
this.valueNode.value=this.value;
this._lastDisplayedValue=this.textbox.value;
},_getDisplayQueryString:function $DAri_(text){
return text.replace(/([\\\*\?])/g,"\\$1");
},_setDisplayedValueAttr:function $DArj_(_5d1,_5d2){
if(!this._created){
_5d2=false;
}
if(this.store){
this._hideResultList();
var _5d3=dojo.clone(this.query);
this._lastQuery=_5d3[this.searchAttr]=this._getDisplayQueryString(_5d1);
this.textbox.value=_5d1;
this._lastDisplayedValue=_5d1;
var _5d4=this;
var _5d5={query:_5d3,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function $DArk_(_5d6,_5d7){
_5d4._fetchHandle=null;
dojo.hitch(_5d4,"_callbackSetLabel")(_5d6,_5d7,_5d2);
},onError:function $DArl_(_5d8){
_5d4._fetchHandle=null;
console.error("dijit.form.FilteringSelect: "+_5d8);
dojo.hitch(_5d4,"_callbackSetLabel")([],undefined,false);
}};
dojo.mixin(_5d5,this.fetchProperties);
this._fetchHandle=this.store.fetch(_5d5);
}
},postMixInProperties:function $DArm_(){
this.inherited(arguments);
this._isvalid=!this.required;
},undo:function $DArn_(){
this.attr("displayedValue",this._lastDisplayedValue);
}});
}
if(!dojo._hasResource["dijit.form._FormSelectWidget"]){
dojo._hasResource["dijit.form._FormSelectWidget"]=true;
dojo.provide("dijit.form._FormSelectWidget");
dojo.declare("dijit.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function $DAtc_(_5d9){
var _5da=_5d9,opts=this.options||[],l=opts.length;
if(_5da===undefined){
return opts;
}
if(dojo.isArray(_5da)){
return dojo.map(_5da,"return this.getOptions(item);",this);
}
if(dojo.isObject(_5d9)){
if(!dojo.some(this.options,function(o,idx){
if(o===_5da||(o.value&&o.value===_5da.value)){
_5da=idx;
return true;
}
return false;
})){
_5da=-1;
}
}
if(typeof _5da=="string"){
for(var i=0;i<l;i++){
if(opts[i].value===_5da){
_5da=i;
break;
}
}
}
if(typeof _5da=="number"&&_5da>=0&&_5da<l){
return this.options[_5da];
}
return null;
},addOption:function $DAtd_(_5db){
if(!dojo.isArray(_5db)){
_5db=[_5db];
}
dojo.forEach(_5db,function(i){
if(i&&dojo.isObject(i)){
this.options.push(i);
}
},this);
this._loadChildren();
},removeOption:function $DAte_(_5dc){
if(!dojo.isArray(_5dc)){
_5dc=[_5dc];
}
var _5dd=this.getOptions(_5dc);
dojo.forEach(_5dd,function(i){
if(i){
this.options=dojo.filter(this.options,function(node,idx){
return (node.value!==i.value);
});
this._removeOptionItem(i);
}
},this);
this._loadChildren();
},updateOption:function $DAtf_(_5de){
if(!dojo.isArray(_5de)){
_5de=[_5de];
}
dojo.forEach(_5de,function(i){
var _5df=this.getOptions(i),k;
if(_5df){
for(k in i){
_5df[k]=i[k];
}
}
},this);
this._loadChildren();
},setStore:function $DAtg_(_5e0,_5e1,_5e2){
var _5e3=this.store;
_5e2=_5e2||{};
if(_5e3!==_5e0){
dojo.forEach(this._notifyConnections||[],dojo.disconnect);
delete this._notifyConnections;
if(_5e0&&_5e0.getFeatures()["dojo.data.api.Notification"]){
this._notifyConnections=[dojo.connect(_5e0,"onNew",this,"_onNewItem"),dojo.connect(_5e0,"onDelete",this,"_onDeleteItem"),dojo.connect(_5e0,"onSet",this,"_onSetItem")];
}
this.store=_5e0;
}
this._onChangeActive=false;
if(this.options&&this.options.length){
this.removeOption(this.options);
}
if(_5e0){
var cb=function(_5e4){
if(this.sortByLabel&&!_5e2.sort&&_5e4.length){
_5e4.sort(dojo.data.util.sorter.createSortFunction([{attribute:_5e0.getLabelAttributes(_5e4[0])[0]}],_5e0));
}
if(_5e2.onFetch){
_5e4=_5e2.onFetch(_5e4);
}
dojo.forEach(_5e4,function(i){
this._addOptionForItem(i);
},this);
this._loadingStore=false;
this.attr("value",(("_pendingValue" in this)?this._pendingValue:_5e1));
delete this._pendingValue;
if(!this.loadChildrenOnOpen){
this._loadChildren();
}else{
this._pseudoLoadChildren(_5e4);
}
this._fetchedWith=opts;
this._lastValueReported=this.multiple?[]:null;
this._onChangeActive=true;
this.onSetStore();
this._handleOnChange(this.value);
};
var opts=dojo.mixin({onComplete:cb,scope:this},_5e2);
this._loadingStore=true;
_5e0.fetch(opts);
}else{
delete this._fetchedWith;
}
return _5e3;
},_setValueAttr:function $DAth_(_5e5,_5e6){
if(this._loadingStore){
this._pendingValue=_5e5;
return;
}
var opts=this.getOptions()||[];
if(!dojo.isArray(_5e5)){
_5e5=[_5e5];
}
dojo.forEach(_5e5,function(i,idx){
if(!dojo.isObject(i)){
i=i+"";
}
if(typeof i==="string"){
_5e5[idx]=dojo.filter(opts,function(node){
return node.value===i;
})[0]||{value:"",label:""};
}
},this);
_5e5=dojo.filter(_5e5,function(i){
return i&&i.value;
});
if(!this.multiple&&(!_5e5[0]||!_5e5[0].value)&&opts.length){
_5e5[0]=opts[0];
}
dojo.forEach(opts,function(i){
i.selected=dojo.some(_5e5,function(v){
return v.value===i.value;
});
});
var val=dojo.map(_5e5,function(i){
return i.value;
}),disp=dojo.map(_5e5,function(i){
return i.label;
});
this.value=this.multiple?val:val[0];
this._setDisplay(this.multiple?disp:disp[0]);
this._updateSelection();
this._handleOnChange(this.value,_5e6);
},_getDisplayedValueAttr:function $DAti_(){
var val=this.attr("value");
if(!dojo.isArray(val)){
val=[val];
}
var ret=dojo.map(this.getOptions(val),function(v){
if(v&&"label" in v){
return v.label;
}else{
if(v){
return v.value;
}
}
return null;
},this);
return this.multiple?ret:ret[0];
},_getValueDeprecated:false,getValue:function $DAtj_(){
return this._lastValue;
},undo:function $DAtk_(){
this._setValueAttr(this._lastValueReported,false);
},_loadChildren:function $DAtl_(){
if(this._loadingStore){
return;
}
dojo.forEach(this._getChildren(),function(_5e7){
_5e7.destroyRecursive();
});
dojo.forEach(this.options,this._addOptionItem,this);
this._updateSelection();
},_updateSelection:function $DAtm_(){
this.value=this._getValueFromOpts();
var val=this.value;
if(!dojo.isArray(val)){
val=[val];
}
if(val&&val[0]){
dojo.forEach(this._getChildren(),function(_5e8){
var _5e9=dojo.some(val,function(v){
return _5e8.option&&(v===_5e8.option.value);
});
dojo.toggleClass(_5e8.domNode,this.baseClass+"SelectedOption",_5e9);
dijit.setWaiState(_5e8.domNode,"selected",_5e9);
},this);
}
this._handleOnChange(this.value);
},_getValueFromOpts:function $DAtn_(){
var opts=this.getOptions()||[];
if(!this.multiple&&opts.length){
var opt=dojo.filter(opts,function(i){
return i.selected;
})[0];
if(opt&&opt.value){
return opt.value;
}else{
opts[0].selected=true;
return opts[0].value;
}
}else{
if(this.multiple){
return dojo.map(dojo.filter(opts,function(i){
return i.selected;
}),function(i){
return i.value;
})||[];
}
}
return "";
},_onNewItem:function $DAto_(item,_5ea){
if(!_5ea||!_5ea.parent){
this._addOptionForItem(item);
}
},_onDeleteItem:function $DAtp_(item){
var _5eb=this.store;
this.removeOption(_5eb.getIdentity(item));
},_onSetItem:function $DAtq_(item){
this.updateOption(this._getOptionObjForItem(item));
},_getOptionObjForItem:function $DAtr_(item){
var _5ec=this.store,_5ed=_5ec.getLabel(item),_5ee=(_5ed?_5ec.getIdentity(item):null);
return {value:_5ee,label:_5ed,item:item};
},_addOptionForItem:function $DAts_(item){
var _5ef=this.store;
if(!_5ef.isItemLoaded(item)){
_5ef.loadItem({item:item,onComplete:function(i){
this._addOptionForItem(item);
},scope:this});
return;
}
var _5f0=this._getOptionObjForItem(item);
this.addOption(_5f0);
},constructor:function $DAtt_(_5f1){
this._oValue=(_5f1||{}).value||null;
},_fillContent:function $DAtu_(){
var opts=this.options;
if(!opts){
opts=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(node){
if(node.getAttribute("type")==="separator"){
return {value:"",label:"",selected:false,disabled:false};
}
return {value:node.getAttribute("value"),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};
},this):[];
}
if(!this.value){
this.value=this._getValueFromOpts();
}else{
if(this.multiple&&typeof this.value=="string"){
this.value=this.value.split(",");
}
}
},postCreate:function $DAtv_(){
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
this.connect(this,"onChange","_updateSelection");
this.connect(this,"startup","_loadChildren");
this._setValueAttr(this.value,null);
},startup:function $DAtw_(){
this.inherited(arguments);
var _5f2=this.store,_5f3={};
dojo.forEach(["query","queryOptions","onFetch"],function(i){
if(this[i]){
_5f3[i]=this[i];
}
delete this[i];
},this);
if(_5f2&&_5f2.getFeatures()["dojo.data.api.Identity"]){
this.store=null;
this.setStore(_5f2,this._oValue,_5f3);
}
},destroy:function $DAtx_(){
dojo.forEach(this._notifyConnections||[],dojo.disconnect);
this.inherited(arguments);
},_addOptionItem:function $DAty_(_5f4){
},_removeOptionItem:function $DAtz_(_5f5){
},_setDisplay:function $DAt0_(_5f6){
},_getChildren:function $DAt1_(){
return [];
},_getSelectedOptionsAttr:function $DAt2_(){
return this.getOptions(this.attr("value"));
},_pseudoLoadChildren:function $DAt3_(_5f7){
},onSetStore:function $DAt4_(){
}});
}
if(!dojo._hasResource["dijit._KeyNavContainer"]){
dojo._hasResource["dijit._KeyNavContainer"]=true;
dojo.provide("dijit._KeyNavContainer");
dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function $DApj_(_5f8,_5f9){
var _5fa=(this._keyNavCodes={});
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_5f8,function(code){
_5fa[code]=prev;
});
dojo.forEach(_5f9,function(code){
_5fa[code]=next;
});
this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus");
},startupKeyNavChildren:function $DApk_(){
dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));
},addChild:function $DApl_(_5fb,_5fc){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_5fb);
},focus:function $DApm_(){
this.focusFirstChild();
},focusFirstChild:function $DApn_(){
var _5fd=this._getFirstFocusableChild();
if(_5fd){
this.focusChild(_5fd);
}
},focusNext:function $DApo_(){
var _5fe=this._getNextFocusableChild(this.focusedChild,1);
this.focusChild(_5fe);
},focusPrev:function $DApp_(){
var _5ff=this._getNextFocusableChild(this.focusedChild,-1);
this.focusChild(_5ff,true);
},focusChild:function $DApq_(_600,last){
if(this.focusedChild&&_600!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
_600.focus(last?"end":"start");
this.focusedChild=_600;
},_startupChild:function $DApr_(_601){
_601.attr("tabIndex","-1");
this.connect(_601,"_onFocus",function(){
_601.attr("tabIndex",this.tabIndex);
});
this.connect(_601,"_onBlur",function(){
_601.attr("tabIndex","-1");
});
},_onContainerFocus:function $DAps_(evt){
if(evt.target!==this.domNode){
return;
}
this.focusFirstChild();
dojo.attr(this.domNode,"tabIndex","-1");
},_onBlur:function $DApt_(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabIndex",this.tabIndex);
}
this.inherited(arguments);
},_onContainerKeypress:function $DApu_(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.charOrCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onChildBlur:function $DApv_(_602){
},_getFirstFocusableChild:function $DApw_(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function $DApx_(_603,dir){
if(_603){
_603=this._getSiblingOfChild(_603,dir);
}
var _604=this.getChildren();
for(var i=0;i<_604.length;i++){
if(!_603){
_603=_604[(dir>0)?0:(_604.length-1)];
}
if(_603.isFocusable()){
return _603;
}
_603=this._getSiblingOfChild(_603,dir);
}
return null;
}});
}
if(!dojo._hasResource["dijit.MenuItem"]){
dojo._hasResource["dijit.MenuItem"]=true;
dojo.provide("dijit.MenuItem");
dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\">\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function $DA0j_(_605){
if(_605&&!("label" in this.params)){
this.attr("label",_605.innerHTML);
}
},postCreate:function $DA0k_(){
dojo.setSelectable(this.domNode,false);
var _606=this.id+"_text";
dojo.attr(this.containerNode,"id",_606);
if(this.accelKeyNode){
dojo.attr(this.accelKeyNode,"id",this.id+"_accel");
_606+=" "+this.id+"_accel";
}
dijit.setWaiState(this.domNode,"labelledby",_606);
},_onHover:function $DA0l_(){
dojo.addClass(this.domNode,"dijitMenuItemHover");
this.getParent().onItemHover(this);
},_onUnhover:function $DA0m_(){
dojo.removeClass(this.domNode,"dijitMenuItemHover");
this.getParent().onItemUnhover(this);
},_onClick:function $DA0n_(evt){
this.getParent().onItemClick(this,evt);
dojo.stopEvent(evt);
},onClick:function $DA0o_(evt){
},focus:function $DA0p_(){
try{
if(dojo.isIE==8){
this.containerNode.focus();
}
dijit.focus(this.focusNode);
}
catch(e){
}
},_onFocus:function $DA0q_(){
this._setSelected(true);
this.getParent()._onItemFocus(this);
this.inherited(arguments);
},_setSelected:function $DA0r_(_607){
dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_607);
},setLabel:function $DA0s_(_608){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_608);
},setDisabled:function $DA0t_(_609){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_609);
},_setDisabledAttr:function $DA0u_(_60a){
this.disabled=_60a;
dojo[_60a?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.focusNode,"disabled",_60a?"true":"false");
},_setAccelKeyAttr:function $DA0v_(_60b){
this.accelKey=_60b;
this.accelKeyNode.style.display=_60b?"":"none";
this.accelKeyNode.innerHTML=_60b;
dojo.attr(this.containerNode,"colSpan",_60b?"1":"2");
}});
}
if(!dojo._hasResource["dijit.PopupMenuItem"]){
dojo._hasResource["dijit.PopupMenuItem"]=true;
dojo.provide("dijit.PopupMenuItem");
dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function $DAw8_(){
if(this.srcNodeRef){
var _60c=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_60c[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function $DAw9_(){
if(this._started){
return;
}
this.inherited(arguments);
if(!this.popup){
var node=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.popup=dijit.byNode(node);
}
dojo.body().appendChild(this.popup.domNode);
this.popup.domNode.style.display="none";
if(this.arrowWrapper){
dojo.style(this.arrowWrapper,"visibility","");
}
dijit.setWaiState(this.focusNode,"haspopup","true");
},destroyDescendants:function $DAxA_(){
if(this.popup){
if(!this.popup._destroyed){
this.popup.destroyRecursive();
}
delete this.popup;
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.CheckedMenuItem"]){
dojo._hasResource["dijit.CheckedMenuItem"]=true;
dojo.provide("dijit.CheckedMenuItem");
dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n"),checked:false,_setCheckedAttr:function $DAvv_(_60d){
dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_60d);
dijit.setWaiState(this.domNode,"checked",_60d);
this.checked=_60d;
},onChange:function $DAvw_(_60e){
},_onClick:function $DAvx_(e){
if(!this.disabled){
this.attr("checked",!this.checked);
this.onChange(this.checked);
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.MenuSeparator"]){
dojo._hasResource["dijit.MenuSeparator"]=true;
dojo.provide("dijit.MenuSeparator");
dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td colspan=\"4\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),postCreate:function $DA1S_(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function $DA1T_(){
return false;
}});
}
if(!dojo._hasResource["dijit.Menu"]){
dojo._hasResource["dijit.Menu"]=true;
dojo.provide("dijit.Menu");
dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function $DBAZ_(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_60f){
_60f.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function $DBAa_(){
},onCancel:function $DBAb_(_610){
},_moveToPopup:function $DBAc_(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}else{
var _611=this._getTopMenu();
if(_611&&_611._isMenuBar){
_611.focusNext();
}
}
},_onPopupHover:function $DBAd_(evt){
if(this.currentPopup&&this.currentPopup._pendingClose_timer){
var _612=this.currentPopup.parentMenu;
if(_612.focusedChild){
_612.focusedChild._setSelected(false);
}
_612.focusedChild=this.currentPopup.from_item;
_612.focusedChild._setSelected(true);
this._stopPendingCloseTimer(this.currentPopup);
}
},onItemHover:function $DBAe_(item){
if(this.isActive){
this.focusChild(item);
if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){
this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);
}
}
if(this.focusedChild){
this.focusChild(item);
}
this._hoveredChild=item;
},_onChildBlur:function $DBAf_(item){
this._stopPopupTimer();
item._setSelected(false);
var _613=item.popup;
if(_613){
this._stopPendingCloseTimer(_613);
_613._pendingClose_timer=setTimeout(function(){
_613._pendingClose_timer=null;
if(_613.parentMenu){
_613.parentMenu.currentPopup=null;
}
dijit.popup.close(_613);
},this.popupDelay);
}
},onItemUnhover:function $DBAg_(item){
if(this.isActive){
this._stopPopupTimer();
}
if(this._hoveredChild==item){
this._hoveredChild=null;
}
},_stopPopupTimer:function $DBAh_(){
if(this.hover_timer){
clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_stopPendingCloseTimer:function $DBAi_(_614){
if(_614._pendingClose_timer){
clearTimeout(_614._pendingClose_timer);
_614._pendingClose_timer=null;
}
},_stopFocusTimer:function $DBAj_(){
if(this._focus_timer){
clearTimeout(this._focus_timer);
this._focus_timer=null;
}
},_getTopMenu:function $DBAk_(){
for(var top=this;top.parentMenu;top=top.parentMenu){
}
return top;
},onItemClick:function $DBAl_(item,evt){
if(item.disabled){
return false;
}
if(typeof this.isShowingNow=="undefined"){
this._markActive();
}
this.focusChild(item);
if(item.popup){
this._openPopup();
}else{
this.onExecute();
item.onClick(evt);
}
},_openPopup:function $DBAm_(){
this._stopPopupTimer();
var _615=this.focusedChild;
if(!_615){
return;
}
var _616=_615.popup;
if(_616.isShowingNow){
return;
}
if(this.currentPopup){
this._stopPendingCloseTimer(this.currentPopup);
dijit.popup.close(this.currentPopup);
}
_616.parentMenu=this;
_616.from_item=_615;
var self=this;
dijit.popup.open({parent:this,popup:_616,around:_615.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function $DBAn_(){
self.focusChild(_615);
self._cleanUp();
_615._setSelected(true);
self.focusedChild=_615;
},onExecute:dojo.hitch(this,"_cleanUp")});
this.currentPopup=_616;
_616.connect(_616.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));
if(_616.focus){
_616._focus_timer=setTimeout(dojo.hitch(_616,function(){
this._focus_timer=null;
this.focus();
}),0);
}
},_markActive:function $DBAo_(){
this.isActive=true;
dojo.addClass(this.domNode,"dijitMenuActive");
dojo.removeClass(this.domNode,"dijitMenuPassive");
},onOpen:function $DBAp_(e){
this.isShowingNow=true;
this._markActive();
},_markInactive:function $DBAq_(){
this.isActive=false;
dojo.removeClass(this.domNode,"dijitMenuActive");
dojo.addClass(this.domNode,"dijitMenuPassive");
},onClose:function $DBAr_(){
this._stopFocusTimer();
this._markInactive();
this.isShowingNow=false;
this.parentMenu=null;
},_closeChild:function $DBAs_(){
this._stopPopupTimer();
if(this.focusedChild){
this.focusedChild._setSelected(false);
this.focusedChild._onUnhover();
this.focusedChild=null;
}
if(this.currentPopup){
dijit.popup.close(this.currentPopup);
this.currentPopup=null;
}
},_onItemFocus:function $DBAt_(item){
if(this._hoveredChild&&this._hoveredChild!=item){
this._hoveredChild._onUnhover();
}
},_onBlur:function $DBAu_(){
this._cleanUp();
this.inherited(arguments);
},_cleanUp:function $DBAv_(){
this._closeChild();
if(typeof this.isShowingNow=="undefined"){
this._markInactive();
}
}});
dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function $DBAw_(){
this._bindings=[];
},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,_contextMenuWithMouse:false,postCreate:function $DBAx_(){
if(this.contextMenuForWindow){
this.bindDomNode(dojo.body());
}else{
dojo.forEach(this.targetNodeIds,this.bindDomNode,this);
}
var k=dojo.keys,l=this.isLeftToRight();
this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;
this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;
this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);
},_onKeyPress:function $DBAy_(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
switch(evt.charOrCode){
case this._openSubMenuKey:
this._moveToPopup(evt);
dojo.stopEvent(evt);
break;
case this._closeSubMenuKey:
if(this.parentMenu){
if(this.parentMenu._isMenuBar){
this.parentMenu.focusPrev();
}else{
this.onCancel(false);
}
}else{
dojo.stopEvent(evt);
}
break;
}
},_iframeContentWindow:function $DBAz_(_617){
var win=dijit.getDocumentWindow(this._iframeContentDocument(_617))||this._iframeContentDocument(_617)["__parent__"]||(_617.name&&dojo.doc.frames[_617.name])||null;
return win;
},_iframeContentDocument:function $DBA0_(_618){
var doc=_618.contentDocument||(_618.contentWindow&&_618.contentWindow.document)||(_618.name&&dojo.doc.frames[_618.name]&&dojo.doc.frames[_618.name].document)||null;
return doc;
},bindDomNode:function $DBA1_(node){
node=dojo.byId(node);
var cn;
if(node.tagName.toLowerCase()=="iframe"){
var _619=node,win=this._iframeContentWindow(_619);
cn=dojo.withGlobal(win,dojo.body);
}else{
cn=(node==dojo.body()?dojo.doc.documentElement:node);
}
var _61a={node:node,iframe:_619};
dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_61a));
var _61b=dojo.hitch(this,function(cn){
return [dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,function(evt){
this._openMyself(evt,cn,_619);
}),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")];
});
_61a.connects=cn?_61b(cn):[];
if(_619){
_61a.onloadHandler=dojo.hitch(this,function(){
var win=this._iframeContentWindow(_619);
cn=dojo.withGlobal(win,dojo.body);
_61a.connects=_61b(cn);
});
if(_619.addEventListener){
_619.addEventListener("load",_61a.onloadHandler,false);
}else{
_619.attachEvent("onload",_61a.onloadHandler);
}
}
},unBindDomNode:function $DBA2_(_61c){
var node;
try{
node=dojo.byId(_61c);
}
catch(e){
return;
}
var _61d="_dijitMenu"+this.id;
if(node&&dojo.hasAttr(node,_61d)){
var bid=dojo.attr(node,_61d)-1,b=this._bindings[bid];
dojo.forEach(b.connects,dojo.disconnect);
var _61e=b.iframe;
if(_61e){
if(_61e.removeEventListener){
_61e.removeEventListener("load",b.onloadHandler,false);
}else{
_61e.detachEvent("onload",b.onloadHandler);
}
}
dojo.removeAttr(node,_61d);
delete this._bindings[bid];
}
},_contextKey:function $DBA3_(e){
this._contextMenuWithMouse=false;
if(e.keyCode==dojo.keys.F10){
dojo.stopEvent(e);
if(e.shiftKey&&e.type=="keydown"){
var _61f={target:e.target,pageX:e.pageX,pageY:e.pageY};
_61f.preventDefault=_61f.stopPropagation=function(){
};
window.setTimeout(dojo.hitch(this,function(){
this._openMyself(_61f);
}),1);
}
}
},_contextMouse:function $DBA4_(e){
this._contextMenuWithMouse=true;
},_openMyself:function $DBA5_(e,node,_620){
if(this.leftClickToOpen&&e.button>0){
return;
}
dojo.stopEvent(e);
var x,y;
if(dojo.isSafari||this._contextMenuWithMouse){
x=e.pageX;
y=e.pageY;
if(_620){
var od=e.target.ownerDocument,ifc=dojo.position(_620,true),win=this._iframeContentWindow(_620),_621=dojo.withGlobal(win,"_docScroll",dojo);
var cs=dojo.getComputedStyle(_620),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_620,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_620,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_620,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_620,cs.borderTopWidth):0);
x+=ifc.x+left-_621.x;
y+=ifc.y+top-_621.y;
}
}else{
var _622=dojo.position(e.target,true);
x=_622.x+10;
y=_622.y+10;
}
var self=this;
var _623=dijit.getFocus(this);
function _624(){
if(self.refocus){
dijit.focus(_623);
}
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:x,y:y,onExecute:_624,onCancel:_624,orient:this.isLeftToRight()?"L":"R"});
this.focus();
this._onBlur=function $DBA7_(){
this.inherited("_onBlur",arguments);
dijit.popup.close(this);
};
},uninitialize:function $DBA6_(){
dojo.forEach(this._bindings,function(b){
if(b){
this.unBindDomNode(b.node);
}
},this);
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.form.Select"]){
dojo._hasResource["dijit.form.Select"]=true;
dojo.provide("dijit.form.Select");
dojo.declare("dijit.form._SelectMenu",dijit.Menu,{buildRendering:function $DAqk_(){
this.inherited(arguments);
var o=(this.menuTableNode=this.domNode);
var n=(this.domNode=dojo.doc.createElement("div"));
if(o.parentNode){
o.parentNode.replaceChild(n,o);
}
dojo.removeClass(o,"dijitMenuTable");
n.className=o.className+" dijitSelectMenu";
o.className="dijitReset dijitMenuTable";
dijit.setWaiRole(o,"listbox");
dijit.setWaiRole(n,"presentation");
n.appendChild(o);
this.tabIndex=null;
},resize:function $DAql_(mb){
if(mb){
dojo.marginBox(this.domNode,mb);
var w=dojo.contentBox(this.domNode).w;
if(dojo.isMoz&&this.domNode.scrollHeight>this.domNode.clientHeight){
w--;
}else{
if(dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)){
w-=16;
}
}
dojo.marginBox(this.menuTableNode,{w:w});
}
}});
dojo.declare("dijit.form.Select",[dijit.form._FormSelectWidget,dijit._HasDropDown],{baseClass:"dijitSelect",templateString:dojo.cache("dijit.form","templates/Select.html","<table class='dijit dijitReset dijitInline dijitLeft'\n\tdojoAttachPoint=\"_buttonNode,tableNode\" cellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" dojoAttachPoint=\"focusNode\"\n\t\t\twaiRole=\"combobox\" waiState=\"haspopup-true\"\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,_popupStateNode\"></span\n\t\t\t><input type=\"hidden\" ${nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" waiState=\"hidden-true\" />\n\t\t</td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"titleNode\" waiRole=\"presentation\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",tooltipPosition:[],emptyLabel:"",_isLoaded:false,_childrenLoaded:false,_fillContent:function $DAqm_(){
this.inherited(arguments);
if(this.options.length&&!this.value&&this.srcNodeRef){
var si=this.srcNodeRef.selectedIndex;
this.value=this.options[si!=-1?si:0].value;
}
this.dropDown=new dijit.form._SelectMenu();
dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu");
},_getMenuItemForOption:function $DAqn_(_625){
if(!_625.value){
return new dijit.MenuSeparator();
}else{
var _626=dojo.hitch(this,"_setValueAttr",_625);
var item=new dijit.MenuItem({option:_625,label:_625.label,onClick:_626,disabled:_625.disabled||false});
dijit.setWaiRole(item.focusNode,"listitem");
return item;
}
},_addOptionItem:function $DAqo_(_627){
if(this.dropDown){
this.dropDown.addChild(this._getMenuItemForOption(_627));
}
},_getChildren:function $DAqp_(){
if(!this.dropDown){
return [];
}
return this.dropDown.getChildren();
},_loadChildren:function $DAqq_(_628){
if(_628===true){
if(this.dropDown){
delete this.dropDown.focusedChild;
}
if(this.options.length){
this.inherited(arguments);
}else{
dojo.forEach(this._getChildren(),function(_629){
_629.destroyRecursive();
});
var item=new dijit.MenuItem({label:"&nbsp;"});
this.dropDown.addChild(item);
}
}else{
this._updateSelection();
}
var len=this.options.length;
this._isLoaded=false;
this._childrenLoaded=true;
if(!this._loadingStore){
this._setValueAttr(this.value);
}
},_setValueAttr:function $DAqr_(_62a){
this.inherited(arguments);
dojo.attr(this.valueNode,"value",this.attr("value"));
},_setDisplay:function $DAqs_(_62b){
this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+(_62b||this.emptyLabel||"&nbsp;")+"</span>";
dijit.setWaiState(this.focusNode,"valuenow",(_62b||this.emptyLabel||"&nbsp;"));
},validate:function $DAqt_(_62c){
var _62d=this.isValid(_62c);
this.state=_62d?"":"Error";
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_62d?"false":"true");
var _62e=_62d?"":this._missingMsg;
if(this._message!==_62e){
this._message=_62e;
dijit.hideTooltip(this.domNode);
if(_62e){
dijit.showTooltip(_62e,this.domNode,this.tooltipPosition);
}
}
return _62d;
},isValid:function $DAqu_(_62f){
return (!this.required||!(/^\s*$/.test(this.value)));
},reset:function $DAqv_(){
this.inherited(arguments);
dijit.hideTooltip(this.domNode);
this.state="";
this._setStateClass();
delete this._message;
},postMixInProperties:function $DAqw_(){
this.inherited(arguments);
this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;
},postCreate:function $DAqx_(){
this.inherited(arguments);
if(this.tableNode.style.width){
dojo.addClass(this.domNode,this.baseClass+"FixedWidth");
}
},isLoaded:function $DAqy_(){
return this._isLoaded;
},loadDropDown:function $DAqz_(_630){
this._loadChildren(true);
this._isLoaded=true;
_630();
},uninitialize:function $DAq0_(_631){
if(this.dropDown&&!this.dropDown._destroyed){
this.dropDown.destroyRecursive(_631);
delete this.dropDown;
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.form.CheckBox"]){
dojo._hasResource["dijit.form.CheckBox"]=true;
dojo.provide("dijit.form.CheckBox");
dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:dojo.cache("dijit.form","templates/CheckBox.html","<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\n\t><input\n\t \t${nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\n/></div>\n"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:dojo.delegate(dijit.form.ToggleButton.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function $DAva_(_632){
this.readOnly=_632;
dojo.attr(this.focusNode,"readOnly",_632);
dijit.setWaiState(this.focusNode,"readonly",_632);
this._setStateClass();
},_setValueAttr:function $DAvb_(_633){
if(typeof _633=="string"){
this.value=_633;
dojo.attr(this.focusNode,"value",_633);
_633=true;
}
if(this._created){
this.attr("checked",_633);
}
},_getValueAttr:function $DAvc_(){
return (this.checked?this.value:false);
},postMixInProperties:function $DAvd_(){
if(this.value==""){
this.value="on";
}
this.checkedAttrSetting=this.checked?"checked":"";
this.inherited(arguments);
},_fillContent:function $DAve_(_634){
},reset:function $DAvf_(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
this.value=this.params.value||"on";
dojo.attr(this.focusNode,"value",this.value);
},_onFocus:function $DAvg_(){
if(this.id){
dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");
}
},_onBlur:function $DAvh_(){
if(this.id){
dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");
}
},_onClick:function $DAvi_(e){
if(this.readOnly){
return false;
}
return this.inherited(arguments);
}});
dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function $DAvj_(_635){
this.inherited(arguments);
if(!this._created){
return;
}
if(_635){
var _636=this;
dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_637){
if(_637.name==_636.name&&_637!=_636.focusNode&&_637.form==_636.focusNode.form){
var _638=dijit.getEnclosingWidget(_637);
if(_638&&_638.checked){
_638.attr("checked",false);
}
}
});
}
},_clicked:function $DAvk_(e){
if(!this.checked){
this.attr("checked",true);
}
}});
}
if(!dojo._hasResource["dojox.layout.dnd.Avatar"]){
dojo._hasResource["dojox.layout.dnd.Avatar"]=true;
dojo.provide("dojox.layout.dnd.Avatar");
dojo.declare("dojox.layout.dnd.Avatar",dojo.dnd.Avatar,{constructor:function $DAMM_(_639,_63a){
this.opacity=_63a||0.9;
},construct:function $DAMN_(){
var _63b=this.manager.source,node=_63b.creator?_63b._normalizedCreator(_63b.getItem(this.manager.nodes[0].id).data,"avatar").node:this.manager.nodes[0].cloneNode(true);
dojo.addClass(node,"dojoDndAvatar");
node.id=dojo.dnd.getUniqueId();
node.style.position="absolute";
node.style.zIndex=1999;
node.style.margin="0px";
node.style.width=dojo.marginBox(_63b.node).w+"px";
dojo.style(node,"opacity",this.opacity);
this.node=node;
},update:function $DAMO_(){
dojo.toggleClass(this.node,"dojoDndAvatarCanDrop",this.manager.canDropFlag);
},_generateText:function $DAMP_(){
}});
}
if(!dojo._hasResource["dojox.layout.dnd.PlottedDnd"]){
dojo._hasResource["dojox.layout.dnd.PlottedDnd"]=true;
dojo.provide("dojox.layout.dnd.PlottedDnd");
dojo.declare("dojox.layout.dnd.PlottedDnd",[dojo.dnd.Source],{GC_OFFSET_X:dojo.dnd.manager().OFFSET_X,GC_OFFSET_Y:dojo.dnd.manager().OFFSET_Y,constructor:function $DALp_(node,_63c){
this.childBoxes=null;
this.dropIndicator=new dojox.layout.dnd.DropIndicator("dndDropIndicator","div");
this.withHandles=_63c.withHandles;
this.handleClasses=_63c.handleClasses;
this.opacity=_63c.opacity;
this.allowAutoScroll=_63c.allowAutoScroll;
this.dom=_63c.dom;
this.singular=true;
this.skipForm=true;
this._over=false;
this.defaultHandleClass="GcDndHandle";
this.isDropped=false;
this._timer=null;
this.isOffset=(_63c.isOffset)?true:false;
this.offsetDrag=(_63c.offsetDrag)?_63c.offsetDrag:{x:0,y:0};
this.hideSource=_63c.hideSource?_63c.hideSource:true;
this._drop=this.dropIndicator.create();
},_calculateCoords:function $DALq_(_63d){
dojo.forEach(this.node.childNodes,function(_63e){
var c=dojo.coords(_63e,true);
_63e.coords={xy:c,w:_63e.offsetWidth/2,h:_63e.offsetHeight/2,mw:c.w};
if(_63d){
_63e.coords.mh=c.h;
}
},this);
},_legalMouseDown:function $DALr_(e){
if(!this.withHandles){
return true;
}
for(var node=(e.target);node&&node!=this.node;node=node.parentNode){
if(dojo.hasClass(node,this.defaultHandleClass)){
return true;
}
}
return false;
},setDndItemSelectable:function $DALs_(node,_63f){
for(var _640=node;_640&&node!=this.node;_640=_640.parentNode){
if(dojo.hasClass(_640,"dojoDndItem")){
dojo.setSelectable(_640,_63f);
return;
}
}
},getDraggedWidget:function $DALt_(node){
var _641=node;
while(_641&&_641.nodeName.toLowerCase()!="body"&&!dojo.hasClass(_641,"dojoDndItem")){
_641=_641.parentNode;
}
return (_641)?dijit.byNode(_641):null;
},isAccepted:function $DALu_(node){
var _642=(node)?node.getAttribute("dndtype"):null;
return (_642&&_642 in this.accept);
},onDndStart:function $DALv_(_643,_644,copy){
this.firstIndicator=(_643==this);
this._calculateCoords(true);
var m=dojo.dnd.manager();
if(_644[0].coords){
this._drop.style.height=_644[0].coords.mh+"px";
dojo.style(m.avatar.node,"width",_644[0].coords.mw+"px");
}else{
this._drop.style.height=m.avatar.node.clientHeight+"px";
}
this.dndNodes=_644;
dojox.layout.dnd.PlottedDnd.superclass.onDndStart.call(this,_643,_644,copy);
if(_643==this&&this.hideSource){
dojo.forEach(_644,function(n){
dojo.style(n,"display","none");
});
}
},onDndCancel:function $DALw_(){
var m=dojo.dnd.manager();
if(m.source==this&&this.hideSource){
var _645=this.getSelectedNodes();
dojo.forEach(_645,function(n){
dojo.style(n,"display","");
});
}
dojox.layout.dnd.PlottedDnd.superclass.onDndCancel.call(this);
this.deleteDashedZone();
},onDndDrop:function $DALx_(_646,_647,copy,_648){
try{
if(!this.isAccepted(_647[0])){
this.onDndCancel();
}else{
if(_646==this&&this._over&&this.dropObject){
this.current=this.dropObject.c;
}
dojox.layout.dnd.PlottedDnd.superclass.onDndDrop.call(this,_646,_647,copy,_648);
this._calculateCoords(true);
}
}
catch(e){
console.warn(e);
}
},onMouseDown:function $DALy_(e){
if(this.current==null){
this.selection={};
}else{
if(this.current==this.anchor){
this.anchor=null;
}
}
if(this.current!==null){
var c=dojo.coords(this.current,true);
this.current.coords={xy:c,w:this.current.offsetWidth/2,h:this.current.offsetHeight/2,mh:c.h,mw:c.w};
this._drop.style.height=this.current.coords.mh+"px";
if(this.isOffset){
if(this.offsetDrag.x==0&&this.offsetDrag.y==0){
var _649=true;
var _64a=dojo.coords(this._getChildByEvent(e));
this.offsetDrag.x=_64a.x-e.pageX;
this.offsetDrag.y=_64a.y-e.clientY;
}
if(this.offsetDrag.y<16&&this.current!=null){
this.offsetDrag.y=this.GC_OFFSET_Y;
}
var m=dojo.dnd.manager();
m.OFFSET_X=this.offsetDrag.x;
m.OFFSET_Y=this.offsetDrag.y;
if(_649){
this.offsetDrag.x=0;
this.offsetDrag.y=0;
}
}
}
if(dojo.dnd.isFormElement(e)){
this.setDndItemSelectable(e.target,true);
}else{
this.containerSource=true;
var _64b=this.getDraggedWidget(e.target);
if(_64b&&_64b.dragRestriction){
}else{
dojox.layout.dnd.PlottedDnd.superclass.onMouseDown.call(this,e);
}
}
},onMouseUp:function $DALz_(e){
dojox.layout.dnd.PlottedDnd.superclass.onMouseUp.call(this,e);
this.containerSource=false;
if(!dojo.isIE&&this.mouseDown){
this.setDndItemSelectable(e.target,true);
}
var m=dojo.dnd.manager();
m.OFFSET_X=this.GC_OFFSET_X;
m.OFFSET_Y=this.GC_OFFSET_Y;
},onMouseMove:function $DAL0_(e){
var m=dojo.dnd.manager();
if(this.isDragging){
var _64c=false;
if(this.current!=null||(this.current==null&&!this.dropObject)){
if(this.isAccepted(m.nodes[0])||this.containerSource){
_64c=this.setIndicatorPosition(e);
}
}
if(this.current!=this.targetAnchor||_64c!=this.before){
this._markTargetAnchor(_64c);
m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));
}
if(this.allowAutoScroll){
this._checkAutoScroll(e);
}
}else{
if(this.mouseDown&&this.isSource){
var _64d=this.getSelectedNodes();
if(_64d.length){
m.startDrag(this,_64d,this.copyState(dojo.isCopyKey(e)));
}
}
if(this.allowAutoScroll){
this._stopAutoScroll();
}
}
},_markTargetAnchor:function $DAL1_(_64e){
if(this.current==this.targetAnchor&&this.before==_64e){
return;
}
this.targetAnchor=this.current;
this.targetBox=null;
this.before=_64e;
},_unmarkTargetAnchor:function $DAL2_(){
if(!this.targetAnchor){
return;
}
this.targetAnchor=null;
this.targetBox=null;
this.before=true;
},setIndicatorPosition:function $DAL3_(e){
var _64f=false;
if(this.current){
if(!this.current.coords||this.allowAutoScroll){
this.current.coords={xy:dojo.coords(this.current,true),w:this.current.offsetWidth/2,h:this.current.offsetHeight/2};
}
_64f=this.horizontal?(e.pageX-this.current.coords.xy.x)<this.current.coords.w:(e.pageY-this.current.coords.xy.y)<this.current.coords.h;
this.insertDashedZone(_64f);
}else{
if(!this.dropObject){
this.insertDashedZone(false);
}
}
return _64f;
},onOverEvent:function $DAL4_(){
this._over=true;
dojox.layout.dnd.PlottedDnd.superclass.onOverEvent.call(this);
if(this.isDragging){
var m=dojo.dnd.manager();
if(!this.current&&!this.dropObject&&this.getSelectedNodes()[0]&&this.isAccepted(m.nodes[0])){
this.insertDashedZone(false);
}
}
},onOutEvent:function $DAL5_(){
this._over=false;
this.containerSource=false;
dojox.layout.dnd.PlottedDnd.superclass.onOutEvent.call(this);
if(this.dropObject){
this.deleteDashedZone();
}
},deleteDashedZone:function $DAL6_(){
this._drop.style.display="none";
var next=this._drop.nextSibling;
while(next!=null){
next.coords.xy.y-=parseInt(this._drop.style.height);
next=next.nextSibling;
}
delete this.dropObject;
},insertDashedZone:function $DAL7_(_650){
if(this.dropObject){
if(_650==this.dropObject.b&&((this.current&&this.dropObject.c==this.current.id)||(!this.current&&!this.dropObject.c))){
return;
}else{
this.deleteDashedZone();
}
}
this.dropObject={n:this._drop,c:this.current?this.current.id:null,b:_650};
if(this.current){
dojo.place(this._drop,this.current,_650?"before":"after");
if(!this.firstIndicator){
var next=this._drop.nextSibling;
while(next!=null){
next.coords.xy.y+=parseInt(this._drop.style.height);
next=next.nextSibling;
}
}else{
this.firstIndicator=false;
}
}else{
this.node.appendChild(this._drop);
}
this._drop.style.display="";
},insertNodes:function $DAL8_(_651,data,_652,_653){
if(this.dropObject){
dojo.style(this.dropObject.n,"display","none");
dojox.layout.dnd.PlottedDnd.superclass.insertNodes.call(this,true,data,true,this.dropObject.n);
this.deleteDashedZone();
}else{
return dojox.layout.dnd.PlottedDnd.superclass.insertNodes.call(this,_651,data,_652,_653);
}
var _654=dijit.byId(data[0].getAttribute("widgetId"));
if(_654){
dojox.layout.dnd._setGcDndHandle(_654,this.withHandles,this.handleClasses);
if(this.hideSource){
dojo.style(_654.domNode,"display","");
}
}
},_checkAutoScroll:function $DAL9_(e){
if(this._timer){
clearTimeout(this._timer);
}
this._stopAutoScroll();
var node=this.dom,y=this._sumAncestorProperties(node,"offsetTop");
if((e.pageY-node.offsetTop+30)>node.clientHeight){
this.autoScrollActive=true;
this._autoScrollDown(node);
}else{
if((node.scrollTop>0)&&(e.pageY-y)<30){
this.autoScrollActive=true;
this._autoScrollUp(node);
}
}
},_autoScrollUp:function $DAMA_(node){
if(this.autoScrollActive&&node.scrollTop>0){
node.scrollTop-=30;
this._timer=setTimeout(dojo.hitch(this,"_autoScrollUp",node),100);
}
},_autoScrollDown:function $DAMB_(node){
if(this.autoScrollActive&&(node.scrollTop<(node.scrollHeight-node.clientHeight))){
node.scrollTop+=30;
this._timer=setTimeout(dojo.hitch(this,"_autoScrollDown",node),100);
}
},_stopAutoScroll:function $DAMC_(){
this.autoScrollActive=false;
},_sumAncestorProperties:function $DAMD_(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _655=0;
while(node){
var val=node[prop];
if(val){
_655+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _655;
}});
dojox.layout.dnd._setGcDndHandle=function $DAMK_(_656,_657,_658,_659){
var cls="GcDndHandle";
if(!_659){
dojo.query(".GcDndHandle",_656.domNode).removeClass(cls);
}
if(!_657){
dojo.addClass(_656.domNode,cls);
}else{
var _65a=false;
for(var i=_658.length-1;i>=0;i--){
var _65b=dojo.query("."+_658[i],_656.domNode)[0];
if(_65b){
_65a=true;
if(_658[i]!=cls){
var _65c=dojo.query("."+cls,_656.domNode);
if(_65c.length==0){
dojo.removeClass(_656.domNode,cls);
}else{
_65c.removeClass(cls);
}
dojo.addClass(_65b,cls);
}
}
}
if(!_65a){
dojo.addClass(_656.domNode,cls);
}
}
};
dojo.declare("dojox.layout.dnd.DropIndicator",null,{constructor:function $DAME_(cn,tag){
this.tag=tag||"div";
this.style=cn||null;
},isInserted:function $DAMF_(){
return (this.node.parentNode&&this.node.parentNode.nodeType==1);
},create:function $DAMG_(){
if(this.node&&this.isInserted()){
return this.node;
}
var h="90px",el=dojo.doc.createElement(this.tag);
if(this.style){
el.className=this.style;
el.style.height=h;
}else{
dojo.style(el,{position:"relative",border:"1px dashed #F60",margin:"2px",height:h});
}
this.node=el;
return el;
},destroy:function $DAMH_(){
if(!this.node||!this.isInserted()){
return;
}
this.node.parentNode.removeChild(this.node);
this.node=null;
}});
dojo.extend(dojo.dnd.Manager,{canDrop:function $DAMI_(flag){
var _65d=this.target&&flag;
if(this.canDropFlag!=_65d){
this.canDropFlag=_65d;
if(this.avatar){
this.avatar.update();
}
}
},makeAvatar:function $DAMJ_(){
return (this.source.declaredClass=="dojox.layout.dnd.PlottedDnd")?new dojox.layout.dnd.Avatar(this,this.source.opacity):new dojo.dnd.Avatar(this);
}});
if(dojo.isIE){
dojox.layout.dnd.handdleIE=[dojo.subscribe("/dnd/start",null,function(){
IEonselectstart=document.body.onselectstart;
document.body.onselectstart=function $DAML_(){
return false;
};
}),dojo.subscribe("/dnd/cancel",null,function(){
document.body.onselectstart=IEonselectstart;
}),dojo.subscribe("/dnd/drop",null,function(){
document.body.onselectstart=IEonselectstart;
})];
dojo.addOnWindowUnload(function(){
dojo.forEach(dojox.layout.dnd.handdleIE,dojo.unsubscribe);
});
}
}
if(!dojo._hasResource["dojox.layout.GridContainer"]){
dojo._hasResource["dojox.layout.GridContainer"]=true;
dojo.provide("dojox.layout.GridContainer");
dojo.experimental("dojox.layout.GridContainer");
dojo.declare("dojox.layout.GridContainer",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained],{templateString:dojo.cache("dojox.layout","resources/GridContainer.html","<div id=\"${id}\" class=\"gridContainer\" dojoAttachPoint=\"containerNode\" tabIndex=\"0\" dojoAttachEvent=\"onkeypress:_selectFocus\">\n\t<table class=\"gridContainerTable\" dojoAttachPoint=\"gridContainerTable\" cellspacing=\"0\" cellpadding=\"0\">\n\t\t<tbody class=\"gridContainerBody\">\n\t\t\t<tr class=\"gridContainerRow\" dojoAttachPoint=\"gridNode\"></tr>\n\t\t</tbody>\n\t</table>\n</div>\n"),isContainer:true,isAutoOrganized:true,isRightFixed:false,isLeftFixed:false,hasResizableColumns:true,nbZones:1,opacity:1,colWidths:[],minColWidth:20,minChildWidth:150,acceptTypes:[],mode:"right",allowAutoScroll:false,timeDisplayPopup:1500,isOffset:false,offsetDrag:{},withHandles:false,handleClasses:[],_draggedWidget:null,_isResized:false,_activeGrip:null,_a11yOn:false,_canDisplayPopup:true,constructor:function $DAM3_(_65e,node){
_65e=_65e||{};
this.acceptTypes=_65e.acceptTypes||["dijit.layout.ContentPane"];
this.offsetDrag=_65e.offsetDrag||_65e.dragOffset||{x:0,y:0};
},postCreate:function $DAM4_(){
this.inherited(arguments);
if(this.nbZones===0){
this.nbZones=1;
}
if(dojo.isIE&&dojo.marginBox(this.gridNode).height){
var _65f=document.createTextNode(" ");
this.gridNode.appendChild(_65f);
}
for(var i=0;i<this.nbZones;i++){
var node=dojo.create("td",{id:this.id+"_dz"+i,className:"gridContainerZone",style:{width:this._getColWidth(i)+"%"}},this.gridNode);
}
},startup:function $DAM5_(){
this.grid=this._createGrid();
this.connect(dojo.global,"onresize","onResized");
this.connect(this,"onDndDrop","_placeGrips");
this.dropHandler=dojo.subscribe("/dnd/drop",this,"_placeGrips");
this._oldwidth=this.domNode.offsetWidth;
if(this.hasResizableColumns){
this._initPlaceGrips();
this._placeGrips();
}
if(this.usepref!==true){
this[(this.isAutoOrganized?"_organizeServices":"_organizeServicesManually")]();
}
for(var j=0;j<this.grid.length;j++){
var dz=this.grid[j];
dojo.forEach(dz.node.childNodes,function(_660){
dz.setItem(_660.id,{data:_660,type:[_660.getAttribute("dndType")]});
});
}
this.inherited(arguments);
},destroy:function $DAM6_(){
for(var i=0;i<this.handleDndStart;i++){
dojo.disconnect(this.handleDndStart[i]);
}
dojo.unsubscribe(this.dropHandler);
this.inherited(arguments);
},resize:function $DAM7_(){
dojo.forEach(this.getChildren(),function(_661){
_661.resize&&_661.resize();
});
},getZones:function $DAM8_(){
return dojo.query(".gridContainerZone",this.containerNode);
},getNewChildren:function $DAM9_(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},getChildren:function $DANA_(){
var _662=dojo.query(".gridContainerZone > [widgetId]",this.containerNode).map(dijit.byNode);
return _662;
},onResized:function $DANB_(){
if(this.hasResizableColumns){
this._placeGrips();
}
},_organizeServices:function $DANC_(){
var nbz=this.nbZones,_663=this.getNewChildren(),nbs=_663.length,res=Math.floor(nbs/nbz),mod=nbs%nbz,i=0;
for(var z=0;z<nbz;z++){
for(var r=0;r<res;r++){
this._insertService(z,i,_663[i],true);
i++;
}
if(mod>0){
try{
this._insertService(z,i,_663[i],true);
i++;
}
catch(e){
console.error("Unable to insert service in grid container",e,_663);
}
mod--;
}else{
if(res===0){
break;
}
}
}
},_organizeServicesManually:function $DAND_(){
var _664=this.getNewChildren();
for(var i=0;i<_664.length;i++){
try{
this._insertService(_664[i].column-1,i,_664[i],true);
}
catch(e){
console.error("Unable to insert service in grid container",e,_664[i]);
}
}
},_insertService:function $DANE_(z,p,_665,_666){
if(_665===undefined){
return;
}
var zone=this.getZones()[z];
var _667=zone.childNodes.length;
if(p===undefined||p>_667){
p=_667;
}
var toto=dojo.place(_665.domNode,zone,p);
_665.domNode.setAttribute("tabIndex",0);
if(!_665.dragRestriction){
dojo.addClass(_665.domNode,"dojoDndItem");
}
if(!_665.domNode.getAttribute("dndType")){
_665.domNode.setAttribute("dndType",_665.declaredClass);
}
dojox.layout.dnd._setGcDndHandle(_665,this.withHandles,this.handleClasses,_666);
if(this.hasResizableColumns){
if(_665.onLoad){
this.connect(_665,"onLoad","_placeGrips");
}
if(_665.onExecError){
this.connect(_665,"onExecError","_placeGrips");
}
if(_665.onUnLoad){
this.connect(_665,"onUnLoad","_placeGrips");
}
}
this._placeGrips();
return _665.id;
},addService:function $DANF_(_668,z,p){
return this.addChild(_668,z,p);
},addChild:function $DANG_(_669,z,p){
_669.domNode.id=_669.id;
if(z<=0){
z=0;
}
var _66a=z||0;
if(p<=0){
p=0;
}
var row=p||0;
var _66b=this._insertService(_66a,row,_669);
if(this._started&&!_669._started){
this.grid[z].setItem(_669.id,{data:_669.domNode,type:[_669.domNode.getAttribute("dndType")]});
_669.startup();
}
return _66b;
},_createGrid:function $DANH_(){
var grid=[];
var i=0;
while(i<this.nbZones){
var _66c=this._createZone(this.getZones()[i]);
if(this.hasResizableColumns&&i!=(this.nbZones-1)){
this._createGrip(_66c);
}
grid.push(_66c);
i++;
}
if(this.hasResizableColumns){
this.handleDndStart=[];
for(var j=0;j<grid.length;j++){
var dz=grid[j];
var self=this;
this.handleDndStart.push(dojo.connect(dz,"onDndStart",dz,function(_66d){
if(_66d==this){
self.handleDndInsertNodes=[];
for(i=0;i<self.grid.length;i++){
self.handleDndInsertNodes.push(dojo.connect(self.grid[i],"insertNodes",self,function(){
self._disconnectDnd();
}));
}
self.handleDndInsertNodes.push(dojo.connect(dz,"onDndCancel",self,self._disconnectDnd));
self.onResized();
}
}));
}
}
return grid;
},_disconnectDnd:function $DANI_(){
dojo.forEach(this.handleDndInsertNodes,dojo.disconnect);
setTimeout(dojo.hitch(this,"onResized"),0);
},_createZone:function $DANJ_(zone){
var dz=new dojox.layout.dnd.PlottedDnd(zone.id,{accept:this.acceptTypes,withHandles:this.withHandles,handleClasses:this.handleClasses,singular:true,hideSource:true,opacity:this.opacity,dom:this.domNode,allowAutoScroll:this.allowAutoScroll,isOffset:this.isOffset,offsetDrag:this.offsetDrag});
this.connect(dz,"insertDashedZone","_placeGrips");
this.connect(dz,"deleteDashedZone","_placeGrips");
return dz;
},_createGrip:function $DANK_(dz){
var grip=document.createElement("div");
grip.className="gridContainerGrip";
grip.setAttribute("tabIndex","0");
var _66e=this;
this.onMouseOver=this.connect(grip,"onmouseover",function(e){
var _66f=false;
for(var i=0;i<_66e.grid.length-1;i++){
if(dojo.hasClass(_66e.grid[i].grip,"gridContainerGripShow")){
_66f=true;
break;
}
}
if(!_66f){
dojo.removeClass(e.target,"gridContainerGrip");
dojo.addClass(e.target,"gridContainerGripShow");
}
});
this.connect(grip,"onmouseout",function(e){
if(!_66e._isResized){
dojo.removeClass(e.target,"gridContainerGripShow");
dojo.addClass(e.target,"gridContainerGrip");
}
});
this.connect(grip,"onmousedown",function(e){
_66e._a11yOn=false;
_66e._activeGrip=e.target;
_66e.resizeColumnOn(e);
});
this.domNode.appendChild(grip);
dz.grip=grip;
},_initPlaceGrips:function $DANL_(){
var dcs=dojo.getComputedStyle(this.domNode);
this._x=parseInt(dcs.paddingLeft);
var _670=parseInt(dcs.paddingTop);
if(dojo.isIE||dojo.getComputedStyle(this.gridContainerTable).borderCollapse!="collapse"){
var ex=dojo._getBorderExtents(this.gridContainerTable);
this._x+=ex.l;
_670+=ex.t;
}
_670+="px";
for(var z=0;z<this.grid.length;z++){
var zone=this.grid[z];
if(zone.grip){
var grip=zone.grip;
if(!dojo.isIE){
zone.pad=dojo._getPadBorderExtents(zone.node).w;
}
grip.style.top=_670;
}
}
},_placeGrips:function $DANM_(){
var _671;
var size=this._x;
dojo.forEach(this.grid,function(zone){
if(zone.grip){
if(_671===undefined){
if(this.allowAutoScroll){
_671=this.gridNode.scrollHeight;
}else{
_671=dojo.contentBox(this.gridNode).h;
}
}
var grip=zone.grip;
size+=dojo[(dojo.isIE?"marginBox":"contentBox")](zone.node).w+(dojo.isIE?0:zone.pad);
dojo.style(grip,{left:size+"px",height:_671+"px"});
}
},this);
},_getZoneByIndex:function $DANN_(n){
return this.grid[(n>=0&&n<this.grid.length?n:0)];
},getIndexZone:function $DANO_(zone){
for(var z=0;z<this.grid.length;z++){
if(this.grid[z].node.id==zone.id){
return z;
}
}
return -1;
},resizeColumnOn:function $DANP_(e){
var k=dojo.keys;
var i;
if(!(this._a11yOn&&e.keyCode!=k.LEFT_ARROW&&e.keyCode!=k.RIGHT_ARROW)){
e.preventDefault();
dojo.body().style.cursor="ew-resize";
this._isResized=true;
this.initX=e.pageX;
var _672=[];
for(i=0;i<this.grid.length;i++){
_672[i]=dojo.contentBox(this.grid[i].node).w;
}
this.oldTabSize=_672;
for(i=0;i<this.grid.length;i++){
if(this._activeGrip==this.grid[i].grip){
this.currentColumn=this.grid[i].node;
this.currentColumnWidth=_672[i];
this.nextColumn=this.currentColumn.nextSibling;
this.nextColumnWidth=_672[i+1];
}
this.grid[i].node.style.width=_672[i]+"px";
}
var _673=function(_674,_675){
var _676=0;
var _677=0;
dojo.forEach(_674,function(_678){
if(_678.nodeType==1){
var _679=dojo.getComputedStyle(_678);
var _67a=(dojo.isIE?_675:parseInt(_679.minWidth));
_677=_67a+parseInt(_679.marginLeft)+parseInt(_679.marginRight);
if(_676<_677){
_676=_677;
}
}
});
return _676;
};
var _67b=_673(this.currentColumn.childNodes,this.minChildWidth);
var _67c=_673(this.nextColumn.childNodes,this.minChildWidth);
var _67d=Math.round((dojo.marginBox(this.gridContainerTable).w*this.minColWidth)/100);
this.currentMinCol=_67b;
this.nextMinCol=_67c;
if(_67d>this.currentMinCol){
this.currentMinCol=_67d;
}
if(_67d>this.nextMinCol){
this.nextMinCol=_67d;
}
if(this._a11yOn){
this.connectResizeColumnMove=this.connect(dojo.doc,"onkeypress","resizeColumnMove");
}else{
this.connectResizeColumnMove=this.connect(dojo.doc,"onmousemove","resizeColumnMove");
this.connectResizeColumnOff=this.connect(document,"onmouseup","resizeColumnOff");
}
}
},resizeColumnMove:function $DANQ_(e){
var d=0;
if(this._a11yOn){
var k=dojo.keys;
switch(e.keyCode){
case k.LEFT_ARROW:
d=-10;
break;
case k.RIGHT_ARROW:
d=10;
break;
}
}else{
e.preventDefault();
d=e.pageX-this.initX;
}
if(d==0){
return;
}
if(!(this.currentColumnWidth+d<this.currentMinCol||this.nextColumnWidth-d<this.nextMinCol)){
this.currentColumnWidth+=d;
this.nextColumnWidth-=d;
this.initX=e.pageX;
this.currentColumn.style["width"]=this.currentColumnWidth+"px";
this.nextColumn.style["width"]=this.nextColumnWidth+"px";
this._activeGrip.style.left=parseInt(this._activeGrip.style.left)+d+"px";
this._placeGrips();
}
if(this._a11yOn){
this.resizeColumnOff(e);
}
},resizeColumnOff:function $DANR_(e){
dojo.body().style.cursor="default";
if(this._a11yOn){
this.disconnect(this.connectResizeColumnMove);
this._a11yOn=false;
}else{
this.disconnect(this.connectResizeColumnMove);
this.disconnect(this.connectResizeColumnOff);
}
var _67e=[];
var _67f=[];
var _680=this.gridContainerTable.clientWidth;
var i;
for(i=0;i<this.grid.length;i++){
var _681=dojo.contentBox(this.grid[i].node);
if(dojo.isIE){
_67e[i]=dojo.marginBox(this.grid[i].node).w;
_67f[i]=_681.w;
}else{
_67e[i]=_681.w;
_67f=_67e;
}
}
var _682=false;
for(i=0;i<_67f.length;i++){
if(_67f[i]!=this.oldTabSize[i]){
_682=true;
break;
}
}
if(_682){
var mul=dojo.isIE?100:10000;
for(i=0;i<this.grid.length;i++){
this.grid[i].node.style.width=Math.round((100*mul*_67e[i])/_680)/mul+"%";
}
this._placeGrips();
}
if(this._activeGrip){
dojo.removeClass(this._activeGrip,"gridContainerGripShow");
dojo.addClass(this._activeGrip,"gridContainerGrip");
}
this._isResized=false;
},setColumns:function $DANS_(_683){
var zone;
if(_683>0){
var _684=this.grid.length-_683;
if(_684>0){
var _685=[];
var _686,end,z,_687,j;
if(this.mode=="right"){
end=(this.isLeftFixed&&this.grid.length>0)?1:0;
_686=this.grid.length-(this.isRightFixed?2:1);
for(z=_686;z>=end;z--){
_687=0;
zone=this.grid[z].node;
for(j=0;j<zone.childNodes.length;j++){
if(zone.childNodes[j].nodeType==1&&!(zone.childNodes[j].id=="")){
_687++;
break;
}
}
if(_687==0){
_685[_685.length]=z;
}
if(_685.length>=_684){
this._deleteColumn(_685);
break;
}
}
if(_685.length<_684){
console.error("Move boxes in first columns, in all tabs before changing the organization of the page");
}
}else{
_686=(this.isLeftFixed&&this.grid.length>0)?1:0;
end=this.grid.length;
if(this.isRightFixed){
end--;
}
for(z=_686;z<end;z++){
_687=0;
zone=this.grid[z].node;
for(j=0;j<zone.childNodes.length;j++){
if(zone.childNodes[j].nodeType==1&&!(zone.childNodes[j].id=="")){
_687++;
break;
}
}
if(_687==0){
_685[_685.length]=z;
}
if(_685.length>=_684){
this._deleteColumn(_685);
break;
}
}
if(_685.length<_684){
console.warn("Move boxes in last columns, in all tabs before changing the organization of the page");
}
}
}else{
if(_684<0){
this._addColumn(Math.abs(_684));
}
}
this._initPlaceGrips();
this._placeGrips();
}
},_addColumn:function $DANT_(_688){
var node;
if(this.hasResizableColumns&&!this.isRightFixed&&this.mode=="right"){
node=this.grid[this.grid.length-1];
this._createGrip(node);
}
for(var i=0;i<_688;i++){
node=dojo.doc.createElement("td");
dojo.addClass(node,"gridContainerZone");
node.id=this.id+"_dz"+this.nbZones;
var dz;
if(this.mode=="right"){
if(this.isRightFixed){
this.grid[this.grid.length-1].node.parentNode.insertBefore(node,this.grid[this.grid.length-1].node);
dz=this._createZone(node);
this.grid.splice(this.grid.length-1,0,dz);
}else{
var zone=this.gridNode.appendChild(node);
dz=this._createZone(node);
this.grid.push(dz);
}
}else{
if(this.isLeftFixed){
(this.grid.length==1)?this.grid[0].node.parentNode.appendChild(node,this.grid[0].node):this.grid[1].node.parentNode.insertBefore(node,this.grid[1].node);
dz=this._createZone(node);
this.grid.splice(1,0,dz);
}else{
this.grid[this.grid.length-this.nbZones].node.parentNode.insertBefore(node,this.grid[this.grid.length-this.nbZones].node);
dz=this._createZone(node);
this.grid.splice(this.grid.length-this.nbZones,0,dz);
}
}
if(this.hasResizableColumns){
var self=this;
var _689=dojo.connect(dz,"onDndStart",dz,function(_68a){
if(_68a==this){
self.handleDndInsertNodes=[];
for(var o=0;o<self.grid.length;o++){
self.handleDndInsertNodes.push(dojo.connect(self.grid[o],"insertNodes",self,function(){
self._disconnectDnd();
}));
}
self.handleDndInsertNodes.push(dojo.connect(dz,"onDndCancel",self,self._disconnectDnd));
self.onResized();
}
});
if(this.mode=="right"){
if(this.isRightFixed){
this.handleDndStart.splice(this.handleDndStart.length-1,0,_689);
}else{
this.handleDndStart.push(_689);
}
}else{
if(this.isLeftFixed){
this.handleDndStart.splice(1,0,_689);
}else{
this.handleDndStart.splice(this.handleDndStart.length-this.nbZones,0,_689);
}
}
this._createGrip(dz);
}
this.nbZones++;
}
this._updateColumnsWidth();
},_deleteColumn:function $DANU_(_68b){
var zone,_68c,_68d;
_68d=0;
for(var i=0;i<_68b.length;i++){
var idx=_68b[i];
if(this.mode=="right"){
zone=this.grid[idx];
}else{
zone=this.grid[idx-_68d];
}
for(var j=0;j<zone.node.childNodes.length;j++){
if(zone.node.childNodes[j].nodeType!=1){
continue;
}
_68c=dijit.byId(zone.node.childNodes[j].id);
for(var x=0;x<this.getChildren().length;x++){
if(this.getChildren()[x]===_68c){
this.getChildren().splice(x,1);
break;
}
}
}
zone.node.parentNode.removeChild(zone.node);
if(this.mode=="right"){
if(this.hasResizableColumns){
dojo.disconnect(this.handleDndStart[idx]);
}
this.grid.splice(idx,1);
}else{
if(this.hasResizableColumns){
dojo.disconnect(this.handleDndStart[idx-_68d]);
}
this.grid.splice(idx-_68d,1);
}
this.nbZones--;
_68d++;
if(zone.grip){
this.domNode.removeChild(zone.grip);
}
}
this._updateColumnsWidth();
},_getColWidth:function $DANV_(idx){
if(idx<this.colWidths.length){
return this.colWidths[idx];
}
var _68e=100;
dojo.forEach(this.colWidths,function(_68f){
_68e-=_68f;
});
return _68e/(this.nbZones-this.colWidths.length);
},_updateColumnsWidth:function $DANW_(){
var zone;
for(var z=0;z<this.grid.length;z++){
this.grid[z].node.style.width=this._getColWidth(z)+"%";
}
},_selectFocus:function $DANX_(_690){
var e=_690.keyCode;
var zone=null;
var _691=dijit.getFocus();
var _692=_691.node;
var k=dojo.keys;
var i,_693,_694,r,z,_695;
var _696=(e==k.UP_ARROW||e==k.LEFT_ARROW)?"lastChild":"firstChild";
var pos=(e==k.UP_ARROW||e==k.LEFT_ARROW)?"previousSibling":"nextSibling";
if(_692==this.containerNode){
switch(e){
case k.DOWN_ARROW:
case k.RIGHT_ARROW:
for(i=0;i<this.gridNode.childNodes.length;i++){
zone=this.gridNode.childNodes[i].firstChild;
_693=false;
while(!_693){
if(zone!=null){
if(zone.style.display!=="none"){
dijit.focus(zone);
dojo.stopEvent(_690);
_693=true;
}else{
zone=zone[pos];
}
}else{
break;
}
}
if(_693){
break;
}
}
break;
case k.UP_ARROW:
case k.LEFT_ARROW:
for(i=this.gridNode.childNodes.length-1;i>=0;i--){
zone=this.gridNode.childNodes[i].lastChild;
_693=false;
while(!_693){
if(zone!=null){
if(zone.style.display!=="none"){
dijit.focus(zone);
dojo.stopEvent(_690);
_693=true;
}else{
zone=zone[pos];
}
}else{
break;
}
}
if(_693){
break;
}
}
break;
}
}else{
if(_692.parentNode.parentNode==this.gridNode){
switch(e){
case k.UP_ARROW:
case k.DOWN_ARROW:
dojo.stopEvent(_690);
var _697=0;
dojo.forEach(_692.parentNode.childNodes,function(_698){
if(_698.style.display!=="none"){
_697++;
}
});
if(_697==1){
return;
}
_693=false;
zone=_692[pos];
while(!_693){
if(zone==null){
zone=_692.parentNode[_696];
if(zone.style.display!=="none"){
_693=true;
}else{
zone=zone[pos];
}
}else{
if(zone.style.display!=="none"){
_693=true;
}else{
zone=zone[pos];
}
}
}
if(_690.shiftKey){
if(dijit.byNode(_692).dragRestriction){
return;
}
_695=_692.getAttribute("dndtype");
_694=false;
for(i=0;i<this.acceptTypes.length;i++){
if(_695==this.acceptTypes[i]){
_694=true;
break;
}
}
if(_694){
var _699=_692.parentNode;
var _69a=_699.firstChild;
var _69b=_699.lastChild;
while(_69a.style.display=="none"||_69b.style.display=="none"){
if(_69a.style.display=="none"){
_69a=_69a.nextSibling;
}
if(_69b.style.display=="none"){
_69b=_69b.previousSibling;
}
}
if(e==k.UP_ARROW){
r=_699.removeChild(_692);
if(r==_69a){
_699.appendChild(r);
}else{
_699.insertBefore(r,zone);
}
r.setAttribute("tabIndex","0");
dijit.focus(r);
}else{
if(_692==_69b){
r=_699.removeChild(_692);
_699.insertBefore(r,zone);
r.setAttribute("tabIndex","0");
dijit.focus(r);
}else{
r=_699.removeChild(zone);
_699.insertBefore(r,_692);
_692.setAttribute("tabIndex","0");
dijit.focus(_692);
}
}
}else{
this._displayPopup();
}
}else{
dijit.focus(zone);
}
break;
case k.RIGHT_ARROW:
case k.LEFT_ARROW:
dojo.stopEvent(_690);
if(_690.shiftKey){
if(dijit.byNode(_692).dragRestriction){
return;
}
z=0;
if(_692.parentNode[pos]==null){
if(e==k.LEFT_ARROW){
z=this.gridNode.childNodes.length-1;
}
}else{
if(_692.parentNode[pos].nodeType==3){
z=this.gridNode.childNodes.length-2;
}else{
for(i=0;i<this.gridNode.childNodes.length;i++){
if(_692.parentNode[pos]==this.gridNode.childNodes[i]){
break;
}
z++;
}
}
}
_695=_692.getAttribute("dndtype");
_694=false;
for(i=0;i<this.acceptTypes.length;i++){
if(_695==this.acceptTypes[i]){
_694=true;
break;
}
}
if(_694){
var _69c=_692.parentNode;
var _69d=dijit.byNode(_692);
r=_69c.removeChild(_692);
var _69e=(e==k.RIGHT_ARROW?0:this.gridNode.childNodes[z].length);
this.addService(_69d,z,_69e);
r.setAttribute("tabIndex","0");
dijit.focus(r);
this._placeGrips();
}else{
this._displayPopup();
}
}else{
var node=_692.parentNode;
while(zone===null){
if(node[pos]!==null&&node[pos].nodeType!==3){
node=node[pos];
}else{
if(pos==="previousSibling"){
node=node.parentNode.childNodes[node.parentNode.childNodes.length-1];
}else{
node=node.parentNode.childNodes[0];
}
}
_693=false;
var _69f=node[_696];
while(!_693){
if(_69f!=null){
if(_69f.style.display!=="none"){
zone=_69f;
_693=true;
}else{
_69f=_69f[pos];
}
}else{
break;
}
}
}
dijit.focus(zone);
}
break;
}
}else{
if(dojo.hasClass(_692,"gridContainerGrip")||dojo.hasClass(_692,"gridContainerGripShow")){
this._activeGrip=_690.target;
this._a11yOn=true;
this.resizeColumnOn(_690);
}
}
}
},_displayPopup:function $DANY_(){
if(this._canDisplayPopup){
var _6a0=dojo.doc.createElement("div");
dojo.addClass(_6a0,"gridContainerPopup");
_6a0.innerHTML="this widget type is not accepted to be moved!";
var _6a1=this.containerNode.appendChild(_6a0);
this._canDisplayPopup=false;
setTimeout(dojo.hitch(this,function(){
this.containerNode.removeChild(_6a1);
dojo.destroy(_6a1);
this._canDisplayPopup=true;
}),this.timeDisplayPopup);
}
}});
dojo.extend(dijit._Widget,{dragRestriction:false,column:"1",group:""});
}
if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.cldr.supplemental.getFirstDayOfWeek=function $DBNQ_(_6a2){
var _6a3={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};
var _6a4=dojo.cldr.supplemental._region(_6a2);
var dow=_6a3[_6a4];
return (dow===undefined)?1:dow;
};
dojo.cldr.supplemental._region=function $DBNR_(_6a5){
_6a5=dojo.i18n.normalizeLocale(_6a5);
var tags=_6a5.split("-");
var _6a6=tags[1];
if(!_6a6){
_6a6={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];
}else{
if(_6a6.length==4){
_6a6=tags[2];
}
}
return _6a6;
};
dojo.cldr.supplemental.getWeekend=function $DBNS_(_6a7){
var _6a8={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};
var _6a9={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};
var _6aa=dojo.cldr.supplemental._region(_6a7);
var _6ab=_6a8[_6aa];
var end=_6a9[_6aa];
if(_6ab===undefined){
_6ab=6;
}
if(end===undefined){
end=0;
}
return {start:_6ab,end:end};
};
}
if(!dojo._hasResource["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function $DBLL_(_6ac){
var _6ad=_6ac.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_6ad==1&&dojo.date.isLeapYear(_6ac)){
return 29;
}
return days[_6ad];
};
dojo.date.isLeapYear=function $DBLM_(_6ae){
var year=_6ae.getFullYear();
return !(year%400)||(!(year%4)&&!!(year%100));
};
dojo.date.getTimezoneName=function $DBLN_(_6af){
var str=_6af.toString();
var tz="";
var _6b0;
var pos=str.indexOf("(");
if(pos>-1){
tz=str.substring(++pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_6b0=str.match(pat))){
tz=_6b0[1];
}else{
str=_6af.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_6b0=str.match(pat))){
tz=_6b0[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function $DBLO_(_6b1,_6b2,_6b3){
_6b1=new Date(+_6b1);
_6b2=new Date(+(_6b2||new Date()));
if(_6b3=="date"){
_6b1.setHours(0,0,0,0);
_6b2.setHours(0,0,0,0);
}else{
if(_6b3=="time"){
_6b1.setFullYear(0,0,0);
_6b2.setFullYear(0,0,0);
}
}
if(_6b1>_6b2){
return 1;
}
if(_6b1<_6b2){
return -1;
}
return 0;
};
dojo.date.add=function $DBLP_(date,_6b4,_6b5){
var sum=new Date(+date);
var _6b6=false;
var _6b7="Date";
switch(_6b4){
case "day":
break;
case "weekday":
var days,_6b8;
var mod=_6b5%5;
if(!mod){
days=(_6b5>0)?5:-5;
_6b8=(_6b5>0)?((_6b5-5)/5):((_6b5+5)/5);
}else{
days=mod;
_6b8=parseInt(_6b5/5);
}
var strt=date.getDay();
var adj=0;
if(strt==6&&_6b5>0){
adj=1;
}else{
if(strt==0&&_6b5<0){
adj=-1;
}
}
var trgt=strt+days;
if(trgt==0||trgt==6){
adj=(_6b5>0)?2:-2;
}
_6b5=(7*_6b8)+days+adj;
break;
case "year":
_6b7="FullYear";
_6b6=true;
break;
case "week":
_6b5*=7;
break;
case "quarter":
_6b5*=3;
case "month":
_6b6=true;
_6b7="Month";
break;
default:
_6b7="UTC"+_6b4.charAt(0).toUpperCase()+_6b4.substring(1)+"s";
}
if(_6b7){
sum["set"+_6b7](sum["get"+_6b7]()+_6b5);
}
if(_6b6&&(sum.getDate()<date.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function $DBLQ_(_6b9,_6ba,_6bb){
_6ba=_6ba||new Date();
_6bb=_6bb||"day";
var _6bc=_6ba.getFullYear()-_6b9.getFullYear();
var _6bd=1;
switch(_6bb){
case "quarter":
var m1=_6b9.getMonth();
var m2=_6ba.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_6bc*4);
_6bd=q2-q1;
break;
case "weekday":
var days=Math.round(dojo.date.difference(_6b9,_6ba,"day"));
var _6be=parseInt(dojo.date.difference(_6b9,_6ba,"week"));
var mod=days%7;
if(mod==0){
days=_6be*5;
}else{
var adj=0;
var aDay=_6b9.getDay();
var bDay=_6ba.getDay();
_6be=parseInt(days/7);
mod=days%7;
var _6bf=new Date(_6b9);
_6bf.setDate(_6bf.getDate()+(_6be*7));
var _6c0=_6bf.getDay();
if(days>0){
switch(true){
case aDay==6:
adj=-1;
break;
case aDay==0:
adj=0;
break;
case bDay==6:
adj=-1;
break;
case bDay==0:
adj=-2;
break;
case (_6c0+mod)>5:
adj=-2;
}
}else{
if(days<0){
switch(true){
case aDay==6:
adj=0;
break;
case aDay==0:
adj=1;
break;
case bDay==6:
adj=2;
break;
case bDay==0:
adj=1;
break;
case (_6c0+mod)<0:
adj=2;
}
}
}
days+=adj;
days-=(_6be*2);
}
_6bd=days;
break;
case "year":
_6bd=_6bc;
break;
case "month":
_6bd=(_6ba.getMonth()-_6b9.getMonth())+(_6bc*12);
break;
case "week":
_6bd=parseInt(dojo.date.difference(_6b9,_6ba,"day")/7);
break;
case "day":
_6bd/=24;
case "hour":
_6bd/=60;
case "minute":
_6bd/=60;
case "second":
_6bd/=1000;
case "millisecond":
_6bd*=_6ba.getTime()-_6b9.getTime();
}
return Math.round(_6bd);
};
}
if(!dojo._hasResource["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
(function(){
function _6c1(_6c2,_6c3,_6c4,_6c5){
return _6c5.replace(/([a-z])\1*/ig,function(_6c6){
var s,pad,c=_6c6.charAt(0),l=_6c6.length,_6c7=["abbr","wide","narrow"];
switch(c){
case "G":
s=_6c3[(l<4)?"eraAbbr":"eraNames"][_6c2.getFullYear()<0?0:1];
break;
case "y":
s=_6c2.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_6c4.fullYear){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_6c2.getMonth()+1)/3);
pad=true;
break;
case "M":
var m=_6c2.getMonth();
if(l<3){
s=m+1;
pad=true;
}else{
var _6c8=["months","format",_6c7[l-3]].join("-");
s=_6c3[_6c8][m];
}
break;
case "w":
var _6c9=0;
s=dojo.date.locale._getWeekOfYear(_6c2,_6c9);
pad=true;
break;
case "d":
s=_6c2.getDate();
pad=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_6c2);
pad=true;
break;
case "E":
var d=_6c2.getDay();
if(l<3){
s=d+1;
pad=true;
}else{
var _6ca=["days","format",_6c7[l-3]].join("-");
s=_6c3[_6ca][d];
}
break;
case "a":
var _6cb=(_6c2.getHours()<12)?"am":"pm";
s=_6c3[_6cb];
break;
case "h":
case "H":
case "K":
case "k":
var h=_6c2.getHours();
switch(c){
case "h":
s=(h%12)||12;
break;
case "H":
s=h;
break;
case "K":
s=(h%12);
break;
case "k":
s=h||24;
break;
}
pad=true;
break;
case "m":
s=_6c2.getMinutes();
pad=true;
break;
case "s":
s=_6c2.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_6c2.getMilliseconds()*Math.pow(10,l-3));
pad=true;
break;
case "v":
case "z":
s=dojo.date.locale._getZone(_6c2,true,_6c4);
if(s){
break;
}
l=4;
case "Z":
var _6cc=dojo.date.locale._getZone(_6c2,false,_6c4);
var tz=[(_6cc<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_6cc)/60),2),dojo.string.pad(Math.abs(_6cc)%60,2)];
if(l==4){
tz.splice(0,0,"GMT");
tz.splice(3,0,":");
}
s=tz.join("");
break;
default:
throw new Error("dojo.date.locale.format: invalid pattern char: "+_6c5);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale._getZone=function $DBNg_(_6cd,_6ce,_6cf){
if(_6ce){
return dojo.date.getTimezoneName(_6cd);
}else{
return _6cd.getTimezoneOffset();
}
};
dojo.date.locale.format=function $DBNh_(_6d0,_6d1){
_6d1=_6d1||{};
var _6d2=dojo.i18n.normalizeLocale(_6d1.locale),_6d3=_6d1.formatLength||"short",_6d4=dojo.date.locale._getGregorianBundle(_6d2),str=[],_6d5=dojo.hitch(this,_6c1,_6d0,_6d4,_6d1);
if(_6d1.selector=="year"){
return _6d6(_6d4["dateFormatItem-yyyy"]||"yyyy",_6d5);
}
var _6d7;
if(_6d1.selector!="date"){
_6d7=_6d1.timePattern||_6d4["timeFormat-"+_6d3];
if(_6d7){
str.push(_6d6(_6d7,_6d5));
}
}
if(_6d1.selector!="time"){
_6d7=_6d1.datePattern||_6d4["dateFormat-"+_6d3];
if(_6d7){
str.push(_6d6(_6d7,_6d5));
}
}
return str.length==1?str[0]:_6d4["dateTimeFormat-"+_6d3].replace(/\{(\d+)\}/g,function(_6d8,key){
return str[key];
});
};
dojo.date.locale.regexp=function $DBNi_(_6d9){
return dojo.date.locale._parseInfo(_6d9).regexp;
};
dojo.date.locale._parseInfo=function $DBNj_(_6da){
_6da=_6da||{};
var _6db=dojo.i18n.normalizeLocale(_6da.locale),_6dc=dojo.date.locale._getGregorianBundle(_6db),_6dd=_6da.formatLength||"short",_6de=_6da.datePattern||_6dc["dateFormat-"+_6dd],_6df=_6da.timePattern||_6dc["timeFormat-"+_6dd],_6e0;
if(_6da.selector=="date"){
_6e0=_6de;
}else{
if(_6da.selector=="time"){
_6e0=_6df;
}else{
_6e0=_6dc["dateTimeFormat-"+_6dd].replace(/\{(\d+)\}/g,function(_6e1,key){
return [_6df,_6de][key];
});
}
}
var _6e2=[],re=_6d6(_6e0,dojo.hitch(this,_6e3,_6e2,_6dc,_6da));
return {regexp:re,tokens:_6e2,bundle:_6dc};
};
dojo.date.locale.parse=function $DBNk_(_6e4,_6e5){
var info=dojo.date.locale._parseInfo(_6e5),_6e6=info.tokens,_6e7=info.bundle,re=new RegExp("^"+info.regexp+"$",info.strict?"":"i"),_6e8=re.exec(_6e4);
if(!_6e8){
return null;
}
var _6e9=["abbr","wide","narrow"],_6ea=[1970,0,1,0,0,0,0],amPm="",_6eb=dojo.every(_6e8,function(v,i){
if(!i){
return true;
}
var _6ec=_6e6[i-1];
var l=_6ec.length;
switch(_6ec.charAt(0)){
case "y":
if(l!=2&&_6e5.strict){
_6ea[0]=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear(),_6ed=year.substring(0,2)*100,_6ee=Math.min(Number(year.substring(2,4))+20,99),num=(v<_6ee)?_6ed+v:_6ed-100+v;
_6ea[0]=num;
}else{
if(_6e5.strict){
return false;
}
_6ea[0]=v;
}
}
break;
case "M":
if(l>2){
var _6ef=_6e7["months-format-"+_6e9[l-3]].concat();
if(!_6e5.strict){
v=v.replace(".","").toLowerCase();
_6ef=dojo.map(_6ef,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_6ef,v);
if(v==-1){
return false;
}
}else{
v--;
}
_6ea[1]=v;
break;
case "E":
case "e":
var days=_6e7["days-format-"+_6e9[l-3]].concat();
if(!_6e5.strict){
v=v.toLowerCase();
days=dojo.map(days,function(d){
return d.toLowerCase();
});
}
v=dojo.indexOf(days,v);
if(v==-1){
return false;
}
break;
case "D":
_6ea[1]=0;
case "d":
_6ea[2]=v;
break;
case "a":
var am=_6e5.am||_6e7.am;
var pm=_6e5.pm||_6e7.pm;
if(!_6e5.strict){
var _6f0=/\./g;
v=v.replace(_6f0,"").toLowerCase();
am=am.replace(_6f0,"").toLowerCase();
pm=pm.replace(_6f0,"").toLowerCase();
}
if(_6e5.strict&&v!=am&&v!=pm){
return false;
}
amPm=(v==pm)?"p":(v==am)?"a":"";
break;
case "K":
if(v==24){
v=0;
}
case "h":
case "H":
case "k":
if(v>23){
return false;
}
_6ea[3]=v;
break;
case "m":
_6ea[4]=v;
break;
case "s":
_6ea[5]=v;
break;
case "S":
_6ea[6]=v;
}
return true;
});
var _6f1=+_6ea[3];
if(amPm==="p"&&_6f1<12){
_6ea[3]=_6f1+12;
}else{
if(amPm==="a"&&_6f1==12){
_6ea[3]=0;
}
}
var _6f2=new Date(_6ea[0],_6ea[1],_6ea[2],_6ea[3],_6ea[4],_6ea[5],_6ea[6]);
if(_6e5.strict){
_6f2.setFullYear(_6ea[0]);
}
var _6f3=_6e6.join(""),_6f4=_6f3.indexOf("d")!=-1,_6f5=_6f3.indexOf("M")!=-1;
if(!_6eb||(_6f5&&_6f2.getMonth()>_6ea[1])||(_6f4&&_6f2.getDate()>_6ea[2])){
return null;
}
if((_6f5&&_6f2.getMonth()<_6ea[1])||(_6f4&&_6f2.getDate()<_6ea[2])){
_6f2=dojo.date.add(_6f2,"hour",1);
}
return _6f2;
};
function _6d6(_6f6,_6f7,_6f8,_6f9){
var _6fa=function(x){
return x;
};
_6f7=_6f7||_6fa;
_6f8=_6f8||_6fa;
_6f9=_6f9||_6fa;
var _6fb=_6f6.match(/(''|[^'])+/g),_6fc=_6f6.charAt(0)=="'";
dojo.forEach(_6fb,function(_6fd,i){
if(!_6fd){
_6fb[i]="";
}else{
_6fb[i]=(_6fc?_6f8:_6f7)(_6fd);
_6fc=!_6fc;
}
});
return _6f9(_6fb.join(""));
};
function _6e3(_6fe,_6ff,_700,_701){
_701=dojo.regexp.escapeString(_701);
if(!_700.strict){
_701=_701.replace(" a"," ?a");
}
return _701.replace(/([a-z])\1*/ig,function(_702){
var s,c=_702.charAt(0),l=_702.length,p2="",p3="";
if(_700.strict){
if(l>1){
p2="0"+"{"+(l-1)+"}";
}
if(l>2){
p3="0"+"{"+(l-2)+"}";
}
}else{
p2="0?";
p3="0{0,2}";
}
switch(c){
case "y":
s="\\d{2,4}";
break;
case "M":
s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";
break;
case "D":
s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";
break;
case "d":
s="[12]\\d|"+p2+"[1-9]|3[01]";
break;
case "w":
s=p2+"[1-9]|[1-4][0-9]|5[0-3]";
break;
case "E":
s="\\S+";
break;
case "h":
s=p2+"[1-9]|1[0-2]";
break;
case "k":
s=p2+"\\d|1[01]";
break;
case "H":
s=p2+"\\d|1\\d|2[0-3]";
break;
case "K":
s=p2+"[1-9]|1\\d|2[0-4]";
break;
case "m":
case "s":
s="[0-5]\\d";
break;
case "S":
s="\\d{"+l+"}";
break;
case "a":
var am=_700.am||_6ff.am||"AM";
var pm=_700.pm||_6ff.pm||"PM";
if(_700.strict){
s=am+"|"+pm;
}else{
s=am+"|"+pm;
if(am!=am.toLowerCase()){
s+="|"+am.toLowerCase();
}
if(pm!=pm.toLowerCase()){
s+="|"+pm.toLowerCase();
}
if(s.indexOf(".")!=-1){
s+="|"+s.replace(/\./g,"");
}
}
s=s.replace(/\./g,"\\.");
break;
default:
s=".*";
}
if(_6fe){
_6fe.push(_702);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _703=[];
dojo.date.locale.addCustomFormats=function $DBNl_(_704,_705){
_703.push({pkg:_704,name:_705});
};
dojo.date.locale._getGregorianBundle=function $DBNm_(_706){
var _707={};
dojo.forEach(_703,function(desc){
var _708=dojo.i18n.getLocalization(desc.pkg,desc.name,_706);
_707=dojo.mixin(_707,_708);
},this);
return _707;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function $DBNn_(item,type,_709,_70a){
var _70b,_70c=dojo.date.locale._getGregorianBundle(_70a),_70d=[item,_709,type];
if(_709=="standAlone"){
var key=_70d.join("-");
_70b=_70c[key];
if(_70b[0]==1){
_70b=undefined;
}
}
_70d[1]="format";
return (_70b||_70c[_70d.join("-")]).concat();
};
dojo.date.locale.isWeekend=function $DBNo_(_70e,_70f){
var _710=dojo.cldr.supplemental.getWeekend(_70f),day=(_70e||new Date()).getDay();
if(_710.end<_710.start){
_710.end+=7;
if(day<_710.start){
day+=7;
}
}
return day>=_710.start&&day<=_710.end;
};
dojo.date.locale._getDayOfYear=function $DBNp_(_711){
return dojo.date.difference(new Date(_711.getFullYear(),0,1,_711.getHours()),_711)+1;
};
dojo.date.locale._getWeekOfYear=function $DBNq_(_712,_713){
if(arguments.length==1){
_713=0;
}
var _714=new Date(_712.getFullYear(),0,1).getDay(),adj=(_714-_713+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_712)+adj-1)/7);
if(_714==_713){
week++;
}
return week;
};
}
if(!dojo._hasResource["dijit.Calendar"]){
dojo._hasResource["dijit.Calendar"]=true;
dojo.provide("dijit.Calendar");
dojo.declare("dijit.Calendar",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dijit","templates/Calendar.html","<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" dojoAttachEvent=\"onkeypress: _onKeyPress\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div class=\"dijitVisible\">\n\t\t\t\t\t<div class=\"dijitPopup dijitMenu dijitMenuPassive dijitHidden\" dojoAttachPoint=\"monthDropDown\" dojoAttachEvent=\"onmouseup: _onMonthSelect, onmouseover: _onMenuHover, onmouseout: _onMenuHover\">\n\t\t\t\t\t\t<div class=\"dijitCalendarMonthLabelTemplate dijitCalendarMonthLabel\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel dijitInline dijitVisible\" dojoAttachEvent=\"onmousedown: _onMonthToggle\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\n"),value:new Date(),datePackage:"dojo.date",dayWidth:"narrow",tabIndex:"0",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{tabIndex:"domNode"}),setValue:function $DAwd_(_715){
dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");
this.attr("value",_715);
},_getValueAttr:function $DAwe_(){
var _716=new this.dateClassObj(this.value);
_716.setHours(0,0,0,0);
if(_716.getDate()<this.value.getDate()){
_716=this.dateFuncObj.add(_716,"hour",1);
}
return _716;
},_setValueAttr:function $DAwf_(_717){
if(!this.value||this.dateFuncObj.compare(_717,this.value)){
_717=new this.dateClassObj(_717);
_717.setHours(1);
this.displayMonth=new this.dateClassObj(_717);
if(!this.isDisabledDate(_717,this.lang)){
this.value=_717;
this.onChange(this.attr("value"));
}
dojo.attr(this.domNode,"aria-label",this.dateLocaleModule.format(_717,{selector:"date",formatLength:"full"}));
this._populateGrid();
}
},_setText:function $DAwg_(node,text){
while(node.firstChild){
node.removeChild(node.firstChild);
}
node.appendChild(dojo.doc.createTextNode(text));
},_populateGrid:function $DAwh_(){
var _718=this.displayMonth;
_718.setDate(1);
var _719=_718.getDay(),_71a=this.dateFuncObj.getDaysInMonth(_718),_71b=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_718,"month",-1)),_71c=new this.dateClassObj(),_71d=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
if(_71d>_719){
_71d-=7;
}
dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_71e,i){
i+=_71d;
var date=new this.dateClassObj(_718),_71f,_720="dijitCalendar",adj=0;
if(i<_719){
_71f=_71b-_719+i+1;
adj=-1;
_720+="Previous";
}else{
if(i>=(_719+_71a)){
_71f=i-_719-_71a+1;
adj=1;
_720+="Next";
}else{
_71f=i-_719+1;
_720+="Current";
}
}
if(adj){
date=this.dateFuncObj.add(date,"month",adj);
}
date.setDate(_71f);
if(!this.dateFuncObj.compare(date,_71c,"date")){
_720="dijitCalendarCurrentDate "+_720;
}
if(this._isSelectedDate(date,this.lang)){
_720="dijitCalendarSelectedDate "+_720;
}
if(this.isDisabledDate(date,this.lang)){
_720="dijitCalendarDisabledDate "+_720;
}
var _721=this.getClassForDate(date,this.lang);
if(_721){
_720=_721+" "+_720;
}
_71e.className=_720+"Month dijitCalendarDateTemplate";
_71e.dijitDateValue=date.valueOf();
var _722=dojo.query(".dijitCalendarDateLabel",_71e)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();
this._setText(_722,text);
},this);
var _723=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang);
this._setText(this.monthLabelNode,_723[_718.getMonth()]);
var y=_718.getFullYear()-1;
var d=new this.dateClassObj();
dojo.forEach(["previous","current","next"],function(name){
d.setFullYear(y++);
this._setText(this[name+"YearLabelNode"],this.dateLocaleModule.format(d,{selector:"year",locale:this.lang}));
},this);
var _724=this;
var _725=function(_726,_727,adj){
_724._connects.push(dijit.typematic.addMouseListener(_724[_726],_724,function(_728){
if(_728>=0){
_724._adjustDisplay(_727,adj);
}
},0.8,500));
};
_725("incrementMonth","month",1);
_725("decrementMonth","month",-1);
_725("nextYearLabelNode","year",1);
_725("previousYearLabelNode","year",-1);
},goToToday:function $DAwi_(){
this.attr("value",new this.dateClassObj());
},constructor:function $DAwj_(args){
var _729=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";
this.dateClassObj=dojo.getObject(_729,false);
this.datePackage=args.datePackage||this.datePackage;
this.dateFuncObj=dojo.getObject(this.datePackage,false);
this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);
},postMixInProperties:function $DAwk_(){
if(isNaN(this.value)){
delete this.value;
}
this.inherited(arguments);
},postCreate:function $DAwl_(){
this.inherited(arguments);
dojo.setSelectable(this.domNode,false);
var _72a=dojo.hitch(this,function(_72b,n){
var _72c=dojo.query(_72b,this.domNode)[0];
for(var i=0;i<n;i++){
_72c.parentNode.appendChild(_72c.cloneNode(true));
}
});
_72a(".dijitCalendarDayLabelTemplate",6);
_72a(".dijitCalendarDateTemplate",6);
_72a(".dijitCalendarWeekTemplate",5);
var _72d=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);
var _72e=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_72f,i){
this._setText(_72f,_72d[(i+_72e)%7]);
},this);
var _730=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang);
_72a(".dijitCalendarMonthLabelTemplate",_730.length-1);
dojo.query(".dijitCalendarMonthLabelTemplate",this.domNode).forEach(function(node,i){
dojo.attr(node,"month",i);
this._setText(node,_730[i]);
dojo.place(node.cloneNode(true),this.monthLabelSpacer);
},this);
var _731=this.value;
this.value=null;
this.attr("value",new this.dateClassObj(_731));
},_onMenuHover:function $DAwm_(e){
dojo.stopEvent(e);
dojo.toggleClass(e.target,"dijitMenuItemHover");
},_adjustDisplay:function $DAwn_(part,_732){
this.displayMonth=this.dateFuncObj.add(this.displayMonth,part,_732);
this._populateGrid();
},_onMonthToggle:function $DAwo_(evt){
dojo.stopEvent(evt);
if(evt.type=="mousedown"){
var _733=dojo.position(this.monthLabelNode);
var dim={width:_733.w+"px",top:-this.displayMonth.getMonth()*_733.h+"px"};
if((dojo.isIE&&dojo.isQuirks)||dojo.isIE<7){
dim.left=-_733.w/2+"px";
}
dojo.style(this.monthDropDown,dim);
this._popupHandler=this.connect(document,"onmouseup","_onMonthToggle");
}else{
this.disconnect(this._popupHandler);
delete this._popupHandler;
}
dojo.toggleClass(this.monthDropDown,"dijitHidden");
dojo.toggleClass(this.monthLabelNode,"dijitVisible");
},_onMonthSelect:function $DAwp_(evt){
this._onMonthToggle(evt);
this.displayMonth.setMonth(dojo.attr(evt.target,"month"));
this._populateGrid();
},_onDayClick:function $DAwq_(evt){
dojo.stopEvent(evt);
for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){
}
if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){
this.attr("value",node.dijitDateValue);
this.onValueSelected(this.attr("value"));
}
},_onDayMouseOver:function $DAwr_(evt){
var node=evt.target;
if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){
dojo.addClass(node,"dijitCalendarHoveredDate");
this._currentNode=node;
}
},_onDayMouseOut:function $DAws_(evt){
if(!this._currentNode){
return;
}
for(var node=evt.relatedTarget;node;){
if(node==this._currentNode){
return;
}
try{
node=node.parentNode;
}
catch(x){
node=null;
}
}
dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");
this._currentNode=null;
},_onKeyPress:function $DAwt_(evt){
var dk=dojo.keys,_734=-1,_735,_736=this.value;
switch(evt.keyCode){
case dk.RIGHT_ARROW:
_734=1;
case dk.LEFT_ARROW:
_735="day";
if(!this.isLeftToRight()){
_734*=-1;
}
break;
case dk.DOWN_ARROW:
_734=1;
case dk.UP_ARROW:
_735="week";
break;
case dk.PAGE_DOWN:
_734=1;
case dk.PAGE_UP:
_735=evt.ctrlKey?"year":"month";
break;
case dk.END:
_736=this.dateFuncObj.add(_736,"month",1);
_735="day";
case dk.HOME:
_736=new Date(_736).setDate(1);
break;
case dk.ENTER:
this.onValueSelected(this.attr("value"));
break;
case dk.ESCAPE:
default:
return;
}
dojo.stopEvent(evt);
if(_735){
_736=this.dateFuncObj.add(_736,_735,_734);
}
this.attr("value",_736);
},onValueSelected:function $DAwu_(date){
},onChange:function $DAwv_(date){
},_isSelectedDate:function $DAww_(_737,_738){
return !this.dateFuncObj.compare(_737,this.value,"date");
},isDisabledDate:function $DAwx_(_739,_73a){
},getClassForDate:function $DAwy_(_73b,_73c){
}});
}
if(!dojo._hasResource["dojox.widget.Calendar"]){
dojo._hasResource["dojox.widget.Calendar"]=true;
dojo.provide("dojox.widget.Calendar");
dojo.experimental("dojox.widget.Calendar");
dojo.declare("dojox.widget._CalendarBase",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:dojo.cache("dojox.widget","Calendar/Calendar.html","<div class=\"dojoxCalendar\">\n    <div tabindex=\"0\" class=\"dojoxCalendarContainer\" style=\"visibility: visible;\" dojoAttachPoint=\"container\">\n\t\t<div style=\"display:none\">\n\t\t\t<div dojoAttachPoint=\"previousYearLabelNode\"></div>\n\t\t\t<div dojoAttachPoint=\"nextYearLabelNode\"></div>\n\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\"></div>\n\t\t</div>\n        <div class=\"dojoxCalendarHeader\">\n            <div>\n                <div class=\"dojoxCalendarDecrease\" dojoAttachPoint=\"decrementMonth\"></div>\n            </div>\n            <div class=\"\">\n                <div class=\"dojoxCalendarIncrease\" dojoAttachPoint=\"incrementMonth\"></div>\n            </div>\n            <div class=\"dojoxCalendarTitle\" dojoAttachPoint=\"header\" dojoAttachEvent=\"onclick: onHeaderClick\">\n            </div>\n        </div>\n        <div class=\"dojoxCalendarBody\" dojoAttachPoint=\"containerNode\"></div>\n        <div class=\"\">\n            <div class=\"dojoxCalendarFooter\" dojoAttachPoint=\"footer\">                        \n            </div>\n        </div>\n    </div>\n</div>\n"),_views:null,useFx:true,widgetsInTemplate:true,value:new Date(),constraints:null,footerFormat:"medium",constructor:function $DAEZ_(){
this._views=[];
},postMixInProperties:function $DAEa_(){
var c=this.constraints;
if(c){
var _73d=dojo.date.stamp.fromISOString;
if(typeof c.min=="string"){
c.min=_73d(c.min);
}
if(typeof c.max=="string"){
c.max=_73d(c.max);
}
}
},postCreate:function $DAEb_(){
this.displayMonth=new Date(this.attr("value"));
var _73e={parent:this,_getValueAttr:dojo.hitch(this,function(){
return new Date(this._internalValue||this.value);
}),_getDisplayMonthAttr:dojo.hitch(this,function(){
return new Date(this.displayMonth);
}),_getConstraintsAttr:dojo.hitch(this,function(){
return this.constraints;
}),getLang:dojo.hitch(this,function(){
return this.lang;
}),isDisabledDate:dojo.hitch(this,this.isDisabledDate),getClassForDate:dojo.hitch(this,this.getClassForDate),addFx:this.useFx?dojo.hitch(this,this.addFx):function(){
}};
dojo.forEach(this._views,function(_73f){
var _740=new _73f(_73e,dojo.create("div"));
this.addChild(_740);
var _741=_740.getHeader();
if(_741){
this.header.appendChild(_741);
dojo.style(_741,"display","none");
}
dojo.style(_740.domNode,"visibility","hidden");
dojo.connect(_740,"onValueSelected",this,"_onDateSelected");
_740.attr("value",this.attr("value"));
},this);
if(this._views.length<2){
dojo.style(this.header,"cursor","auto");
}
this.inherited(arguments);
this._children=this.getChildren();
this._currentChild=0;
var _742=new Date();
this.footer.innerHTML="Today: "+dojo.date.locale.format(_742,{formatLength:this.footerFormat,selector:"date",locale:this.lang});
dojo.connect(this.footer,"onclick",this,"goToToday");
var _743=this._children[0];
dojo.style(_743.domNode,"top","0px");
dojo.style(_743.domNode,"visibility","visible");
var _744=_743.getHeader();
if(_744){
dojo.style(_743.getHeader(),"display","");
}
dojo[_743.useHeader?"removeClass":"addClass"](this.container,"no-header");
_743.onDisplay();
var _745=this;
var _746=function(_747,_748,adj){
dijit.typematic.addMouseListener(_745[_747],_745,function(_749){
if(_749>=0){
_745._adjustDisplay(_748,adj);
}
},0.8,500);
};
_746("incrementMonth","month",1);
_746("decrementMonth","month",-1);
this._updateTitleStyle();
},addFx:function $DAEc_(_74a,_74b){
},_setValueAttr:function $DAEd_(_74c){
if(!_74c["getFullYear"]){
_74c=dojo.date.stamp.fromISOString(_74c+"");
}
if(!this.value||dojo.date.compare(_74c,this.value)){
_74c=new Date(_74c);
this.displayMonth=new Date(_74c);
this._internalValue=_74c;
if(!this.isDisabledDate(_74c,this.lang)&&this._currentChild==0){
this.value=_74c;
this.onChange(_74c);
}
this._children[this._currentChild].attr("value",this.value);
return true;
}
return false;
},isDisabledDate:function $DAEe_(date,_74d){
var c=this.constraints;
var _74e=dojo.date.compare;
return c&&(c.min&&(_74e(c.min,date,"date")>0)||(c.max&&_74e(c.max,date,"date")<0));
},onValueSelected:function $DAEf_(date){
},_onDateSelected:function $DAEg_(date,_74f,_750){
this.displayMonth=date;
this.attr("value",date);
if(!this._transitionVert(-1)){
if(!_74f&&_74f!==0){
_74f=this.attr("value");
}
this.onValueSelected(_74f);
}
},onChange:function $DAEh_(date){
},onHeaderClick:function $DAEi_(e){
this._transitionVert(1);
},goToToday:function $DAEj_(){
this.attr("value",new Date());
this.onValueSelected(this.attr("value"));
},_transitionVert:function $DAEk_(_751){
var _752=this._children[this._currentChild];
var _753=this._children[this._currentChild+_751];
if(!_753){
return false;
}
dojo.style(_753.domNode,"visibility","visible");
var _754=dojo.style(this.containerNode,"height");
_753.attr("value",this.displayMonth);
if(_752.header){
dojo.style(_752.header,"display","none");
}
if(_753.header){
dojo.style(_753.header,"display","");
}
dojo.style(_753.domNode,"top",(_754*-1)+"px");
dojo.style(_753.domNode,"visibility","visible");
this._currentChild+=_751;
var _755=_754*_751;
var _756=0;
dojo.style(_753.domNode,"top",(_755*-1)+"px");
var _757=dojo.animateProperty({node:_752.domNode,properties:{top:_755},onEnd:function $DAEl_(){
dojo.style(_752.domNode,"visibility","hidden");
}});
var _758=dojo.animateProperty({node:_753.domNode,properties:{top:_756},onEnd:function $DAEm_(){
_753.onDisplay();
}});
dojo[_753.useHeader?"removeClass":"addClass"](this.container,"no-header");
_757.play();
_758.play();
_752.onBeforeUnDisplay();
_753.onBeforeDisplay();
this._updateTitleStyle();
return true;
},_updateTitleStyle:function $DAEn_(){
dojo[this._currentChild<this._children.length-1?"addClass":"removeClass"](this.header,"navToPanel");
},_slideTable:function $DAEo_(_759,_75a,_75b){
var _75c=_759.domNode;
var _75d=_75c.cloneNode(true);
var left=dojo.style(_75c,"width");
_75c.parentNode.appendChild(_75d);
dojo.style(_75c,"left",(left*_75a)+"px");
_75b();
var _75e=dojo.animateProperty({node:_75d,properties:{left:left*_75a*-1},duration:500,onEnd:function(){
_75d.parentNode.removeChild(_75d);
}});
var _75f=dojo.animateProperty({node:_75c,properties:{left:0},duration:500});
_75e.play();
_75f.play();
},_addView:function $DAEp_(view){
this._views.push(view);
},getClassForDate:function $DAEq_(_760,_761){
},_adjustDisplay:function $DAEr_(part,_762,_763){
var _764=this._children[this._currentChild];
var _765=this.displayMonth=_764.adjustDate(this.displayMonth,_762);
this._slideTable(_764,_762,function(){
_764.attr("value",_765);
});
}});
dojo.declare("dojox.widget._CalendarView",dijit._Widget,{headerClass:"",useHeader:true,cloneClass:function $DAEs_(_766,n,_767){
var _768=dojo.query(_766,this.domNode)[0];
var i;
if(!_767){
for(i=0;i<n;i++){
_768.parentNode.appendChild(_768.cloneNode(true));
}
}else{
var _769=dojo.query(_766,this.domNode)[0];
for(i=0;i<n;i++){
_768.parentNode.insertBefore(_768.cloneNode(true),_769);
}
}
},_setText:function $DAEt_(node,text){
if(node.innerHTML!=text){
dojo.empty(node);
node.appendChild(dojo.doc.createTextNode(text));
}
},getHeader:function $DAEu_(){
return this.header||(this.header=this.header=dojo.create("span",{"class":this.headerClass}));
},onValueSelected:function $DAEv_(date){
},adjustDate:function $DAEw_(date,_76a){
return dojo.date.add(date,this.datePart,_76a);
},onDisplay:function $DAEx_(){
},onBeforeDisplay:function $DAEy_(){
},onBeforeUnDisplay:function $DAEz_(){
}});
dojo.declare("dojox.widget._CalendarDay",null,{parent:null,constructor:function $DAE0_(){
this._addView(dojox.widget._CalendarDayView);
}});
dojo.declare("dojox.widget._CalendarDayView",[dojox.widget._CalendarView,dijit._Templated],{templateString:dojo.cache("dojox.widget","Calendar/CalendarDay.html","<div class=\"dijitCalendarDayLabels\" style=\"left: 0px;\" dojoAttachPoint=\"dayContainer\">\n\t<div dojoAttachPoint=\"header\">\n\t\t<div dojoAttachPoint=\"monthAndYearHeader\">\n\t\t\t<span dojoAttachPoint=\"monthLabelNode\" class=\"dojoxCalendarMonthLabelNode\"></span>\n\t\t\t<span dojoAttachPoint=\"headerComma\" class=\"dojoxCalendarComma\">,</span>\n\t\t\t<span dojoAttachPoint=\"yearLabelNode\" class=\"dojoxCalendarDayYearLabel\"></span>\n\t\t</div>\n\t</div>\n\t<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"margin: auto;\">\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<td class=\"dijitCalendarDayLabelTemplate\"><div class=\"dijitCalendarDayLabel\"></div></td>\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tbody dojoAttachEvent=\"onclick: _onDayClick\">\n\t\t\t<tr class=\"dijitCalendarWeekTemplate\">\n\t\t\t\t<td class=\"dojoxCalendarNextMonth dijitCalendarDateTemplate\">\n\t\t\t\t\t<div class=\"dijitCalendarDateLabel\"></div>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</div>\n"),datePart:"month",dayWidth:"narrow",postCreate:function $DAE1_(){
this.cloneClass(".dijitCalendarDayLabelTemplate",6);
this.cloneClass(".dijitCalendarDateTemplate",6);
this.cloneClass(".dijitCalendarWeekTemplate",5);
var _76b=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.getLang());
var _76c=dojo.cldr.supplemental.getFirstDayOfWeek(this.getLang());
dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_76d,i){
this._setText(_76d,_76b[(i+_76c)%7]);
},this);
},onDisplay:function $DAE2_(){
if(!this._addedFx){
this._addedFx=true;
this.addFx(".dijitCalendarDateTemplate div",this.domNode);
}
},_onDayClick:function $DAE3_(e){
if(typeof (e.target._date)=="undefined"){
return;
}
var date=new Date(this.attr("displayMonth"));
var p=e.target.parentNode;
var c="dijitCalendar";
var d=dojo.hasClass(p,c+"PreviousMonth")?-1:(dojo.hasClass(p,c+"NextMonth")?1:0);
if(d){
date=dojo.date.add(date,"month",d);
}
date.setDate(e.target._date);
if(this.isDisabledDate(date)){
dojo.stopEvent(e);
return;
}
this.parent._onDateSelected(date);
},_setValueAttr:function $DAE4_(_76e){
this._populateDays();
},_populateDays:function $DAE5_(){
var _76f=new Date(this.attr("displayMonth"));
_76f.setDate(1);
var _770=_76f.getDay();
var _771=dojo.date.getDaysInMonth(_76f);
var _772=dojo.date.getDaysInMonth(dojo.date.add(_76f,"month",-1));
var _773=new Date();
var _774=this.attr("value");
var _775=dojo.cldr.supplemental.getFirstDayOfWeek(this.getLang());
if(_775>_770){
_775-=7;
}
var _776=dojo.date.compare;
var _777=".dijitCalendarDateTemplate";
var _778="dijitCalendarSelectedDate";
var _779=this._lastDate;
var _77a=_779==null||_779.getMonth()!=_76f.getMonth()||_779.getFullYear()!=_76f.getFullYear();
this._lastDate=_76f;
if(!_77a){
dojo.query(_777,this.domNode).removeClass(_778).filter(function(node){
return node.className.indexOf("dijitCalendarCurrent")>-1&&node._date==_774.getDate();
}).addClass(_778);
return;
}
dojo.query(_777,this.domNode).forEach(function(_77b,i){
i+=_775;
var date=new Date(_76f);
var _77c,_77d="dijitCalendar",adj=0;
if(i<_770){
_77c=_772-_770+i+1;
adj=-1;
_77d+="Previous";
}else{
if(i>=(_770+_771)){
_77c=i-_770-_771+1;
adj=1;
_77d+="Next";
}else{
_77c=i-_770+1;
_77d+="Current";
}
}
if(adj){
date=dojo.date.add(date,"month",adj);
}
date.setDate(_77c);
if(!_776(date,_773,"date")){
_77d="dijitCalendarCurrentDate "+_77d;
}
if(!_776(date,_774,"date")&&!_776(date,_774,"month")&&!_776(date,_774,"year")){
_77d=_778+" "+_77d;
}
if(this.isDisabledDate(date,this.getLang())){
_77d=" dijitCalendarDisabledDate "+_77d;
}
var _77e=this.getClassForDate(date,this.getLang());
if(_77e){
_77d+=_77e+" "+_77d;
}
_77b.className=_77d+"Month dijitCalendarDateTemplate";
_77b.dijitDateValue=date.valueOf();
var _77f=dojo.query(".dijitCalendarDateLabel",_77b)[0];
this._setText(_77f,date.getDate());
_77f._date=_77f.parentNode._date=date.getDate();
},this);
var _780=dojo.date.locale.getNames("months","wide","standAlone",this.getLang());
this._setText(this.monthLabelNode,_780[_76f.getMonth()]);
this._setText(this.yearLabelNode,_76f.getFullYear());
}});
dojo.declare("dojox.widget._CalendarMonthYear",null,{constructor:function $DAE6_(){
this._addView(dojox.widget._CalendarMonthYearView);
}});
dojo.declare("dojox.widget._CalendarMonthYearView",[dojox.widget._CalendarView,dijit._Templated],{templateString:dojo.cache("dojox.widget","Calendar/CalendarMonthYear.html","<div class=\"dojoxCal-MY-labels\" style=\"left: 0px;\"\t\n\tdojoAttachPoint=\"myContainer\" dojoAttachEvent=\"onclick: onClick\">\n\t\t<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"margin: auto;\">\n\t\t\t\t<tbody>\n\t\t\t\t\t\t<tr class=\"dojoxCal-MY-G-Template\">\n\t\t\t\t\t\t\t\t<td class=\"dojoxCal-MY-M-Template\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"dojoxCalendarMonthLabel\"></div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td class=\"dojoxCal-MY-M-Template\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"dojoxCalendarMonthLabel\"></div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td class=\"dojoxCal-MY-Y-Template\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"dojoxCalendarYearLabel\"></div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td class=\"dojoxCal-MY-Y-Template\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"dojoxCalendarYearLabel\"></div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t <tr class=\"dojoxCal-MY-btns\">\n\t\t\t\t\t\t \t <td class=\"dojoxCal-MY-btns\" colspan=\"4\">\n\t\t\t\t\t\t \t\t <span class=\"dijitReset dijitInline dijitButtonNode ok-btn\" dojoAttachEvent=\"onclick: onOk\" dojoAttachPoint=\"okBtn\">\n\t\t\t\t\t\t \t \t \t <button\tclass=\"dijitReset dijitStretch dijitButtonContents\">OK</button>\n\t\t\t\t\t\t\t\t </span>\n\t\t\t\t\t\t\t\t <span class=\"dijitReset dijitInline dijitButtonNode cancel-btn\" dojoAttachEvent=\"onclick: onCancel\" dojoAttachPoint=\"cancelBtn\">\n\t\t\t\t\t\t \t \t\t <button\tclass=\"dijitReset dijitStretch dijitButtonContents\">Cancel</button>\n\t\t\t\t\t\t\t\t </span>\n\t\t\t\t\t\t \t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t</tbody>\n\t\t</table>\n</div>\n"),datePart:"year",displayedYears:10,useHeader:false,postCreate:function $DAE7_(){
this.cloneClass(".dojoxCal-MY-G-Template",5,".dojoxCal-MY-btns");
this.monthContainer=this.yearContainer=this.myContainer;
var _781="dojoxCalendarYearLabel";
var _782="dojoxCalendarDecrease";
var _783="dojoxCalendarIncrease";
dojo.query("."+_781,this.myContainer).forEach(function(node,idx){
var _784=_783;
switch(idx){
case 0:
_784=_782;
case 1:
dojo.removeClass(node,_781);
dojo.addClass(node,_784);
break;
}
});
this._decBtn=dojo.query("."+_782,this.myContainer)[0];
this._incBtn=dojo.query("."+_783,this.myContainer)[0];
dojo.query(".dojoxCal-MY-M-Template",this.domNode).filter(function(item){
return item.cellIndex==1;
}).addClass("dojoxCal-MY-M-last");
dojo.connect(this,"onBeforeDisplay",dojo.hitch(this,function(){
this._cachedDate=new Date(this.attr("value").getTime());
this._populateYears(this._cachedDate.getFullYear());
this._populateMonths();
this._updateSelectedMonth();
this._updateSelectedYear();
}));
dojo.connect(this,"_populateYears",dojo.hitch(this,function(){
this._updateSelectedYear();
}));
dojo.connect(this,"_populateMonths",dojo.hitch(this,function(){
this._updateSelectedMonth();
}));
this._cachedDate=this.attr("value");
this._populateYears();
this._populateMonths();
this.addFx(".dojoxCalendarMonthLabel,.dojoxCalendarYearLabel ",this.myContainer);
},_setValueAttr:function $DAE8_(_785){
this._populateYears(_785.getFullYear());
},getHeader:function $DAE9_(){
return null;
},_getMonthNames:function $DAFA_(_786){
this._monthNames=this._monthNames||dojo.date.locale.getNames("months",_786,"standAlone",this.getLang());
return this._monthNames;
},_populateMonths:function $DAFB_(){
var _787=this._getMonthNames("abbr");
dojo.query(".dojoxCalendarMonthLabel",this.monthContainer).forEach(dojo.hitch(this,function(node,cnt){
this._setText(node,_787[cnt]);
}));
var _788=this.attr("constraints");
if(_788){
var date=new Date();
date.setFullYear(this._year);
var min=-1,max=12;
if(_788.min){
var minY=_788.min.getFullYear();
if(minY>this._year){
min=12;
}else{
if(minY==this._year){
min=_788.min.getMonth();
}
}
}
if(_788.max){
var maxY=_788.max.getFullYear();
if(maxY<this._year){
max=-1;
}else{
if(maxY==this._year){
max=_788.max.getMonth();
}
}
}
dojo.query(".dojoxCalendarMonthLabel",this.monthContainer).forEach(dojo.hitch(this,function(node,cnt){
dojo[(cnt<min||cnt>max)?"addClass":"removeClass"](node,"dijitCalendarDisabledDate");
}));
}
var h=this.getHeader();
if(h){
this._setText(this.getHeader(),this.attr("value").getFullYear());
}
},_populateYears:function $DAFC_(year){
var _789=this.attr("constraints");
var _78a=year||this.attr("value").getFullYear();
var _78b=_78a-Math.floor(this.displayedYears/2);
var min=_789&&_789.min?_789.min.getFullYear():_78b-10000;
_78b=Math.max(min,_78b);
this._displayedYear=_78a;
var _78c=dojo.query(".dojoxCalendarYearLabel",this.yearContainer);
var max=_789&&_789.max?_789.max.getFullYear()-_78b:_78c.length;
var _78d="dijitCalendarDisabledDate";
_78c.forEach(dojo.hitch(this,function(node,cnt){
if(cnt<=max){
this._setText(node,_78b+cnt);
dojo.removeClass(node,_78d);
}else{
dojo.addClass(node,_78d);
}
}));
if(this._incBtn){
dojo[max<_78c.length?"addClass":"removeClass"](this._incBtn,_78d);
}
if(this._decBtn){
dojo[min>=_78b?"addClass":"removeClass"](this._decBtn,_78d);
}
var h=this.getHeader();
if(h){
this._setText(this.getHeader(),_78b+" - "+(_78b+11));
}
},_updateSelectedYear:function $DAFD_(){
this._year=String((this._cachedDate||this.attr("value")).getFullYear());
this._updateSelectedNode(".dojoxCalendarYearLabel",dojo.hitch(this,function(node,idx){
return this._year!==null&&node.innerHTML==this._year;
}));
},_updateSelectedMonth:function $DAFE_(){
var _78e=(this._cachedDate||this.attr("value")).getMonth();
this._month=_78e;
this._updateSelectedNode(".dojoxCalendarMonthLabel",function(node,idx){
return idx==_78e;
});
},_updateSelectedNode:function $DAFF_(_78f,_790){
var sel="dijitCalendarSelectedDate";
dojo.query(_78f,this.domNode).forEach(function(node,idx,_791){
dojo[_790(node,idx,_791)?"addClass":"removeClass"](node.parentNode,sel);
});
var _792=dojo.query(".dojoxCal-MY-M-Template div",this.myContainer).filter(function(node){
return dojo.hasClass(node.parentNode,sel);
})[0];
if(!_792){
return;
}
var _793=dojo.hasClass(_792,"dijitCalendarDisabledDate");
dojo[_793?"addClass":"removeClass"](this.okBtn,"dijitDisabled");
},onClick:function $DAFG_(evt){
var _794;
var _795=this;
var sel="dijitCalendarSelectedDate";
function hc(c){
return dojo.hasClass(evt.target,c);
};
if(hc("dijitCalendarDisabledDate")){
dojo.stopEvent(evt);
return false;
}
if(hc("dojoxCalendarMonthLabel")){
_794="dojoxCal-MY-M-Template";
this._month=evt.target.parentNode.cellIndex+(evt.target.parentNode.parentNode.rowIndex*2);
this._cachedDate.setMonth(this._month);
this._updateSelectedMonth();
}else{
if(hc("dojoxCalendarYearLabel")){
_794="dojoxCal-MY-Y-Template";
this._year=Number(evt.target.innerHTML);
this._cachedDate.setYear(this._year);
this._populateMonths();
this._updateSelectedYear();
}else{
if(hc("dojoxCalendarDecrease")){
this._populateYears(this._displayedYear-10);
return true;
}else{
if(hc("dojoxCalendarIncrease")){
this._populateYears(this._displayedYear+10);
return true;
}else{
return true;
}
}
}
}
dojo.stopEvent(evt);
return false;
},onOk:function $DAFH_(evt){
dojo.stopEvent(evt);
if(dojo.hasClass(this.okBtn,"dijitDisabled")){
return false;
}
this.onValueSelected(this._cachedDate);
return false;
},onCancel:function $DAFI_(evt){
dojo.stopEvent(evt);
this.onValueSelected(this.attr("value"));
return false;
}});
dojo.declare("dojox.widget.Calendar2Pane",[dojox.widget._CalendarBase,dojox.widget._CalendarDay,dojox.widget._CalendarMonthYear],{});
dojo.declare("dojox.widget.Calendar",[dojox.widget._CalendarBase,dojox.widget._CalendarDay,dojox.widget._CalendarMonthYear],{});
dojo.declare("dojox.widget.DailyCalendar",[dojox.widget._CalendarBase,dojox.widget._CalendarDay],{});
dojo.declare("dojox.widget.MonthAndYearlyCalendar",[dojox.widget._CalendarBase,dojox.widget._CalendarMonthYear],{});
}
if(!dojo._hasResource["s3w.Core"]){
dojo._hasResource["s3w.Core"]=true;
dojo.provide("s3w.Core");
dojo.declare("s3w.Core",null,{constructor:function $DBHs_(){
this.addIndexOfPrototype();
},addIndexOfPrototype:function $DBHt_(){
if(!Array.indexOf){
Array.indexOf=[].indexOf?function(arr,obj,from){
return arr.indexOf(obj,from);
}:function(arr,obj,from){
var l=arr.length,i=from?parseInt((1*from)+(from<0?l:0),10):0;
i=i<0?0:i;
for(;i<l;i++){
if(i in arr&&arr[i]===obj){
return i;
}
}
return -1;
};
}
},requireStyle:function $DBHu_(_796,_797){
}});
}
if(!dojo._hasResource["s3w.widget.LoadingMask"]){
dojo._hasResource["s3w.widget.LoadingMask"]=true;
dojo.provide("s3w.widget.LoadingMask");
dojo.declare("s3w.widget.LoadingMask",null,{isShown:false,isPopupShown:false,loadingText:"",isNodeCreated:false,isPopupNodeCreated:false,cls:"LoadingMask",popupCls:"LoadingPopup",definedParentNode:false,show:function $DBIZ_(){
if(!this.isShown){
if(!this.isNodeCreated){
var _798=document.createElement("DIV");
_798.setAttribute("id","s3w-loading-icon-container");
dojo.addClass(_798,"LoadingMaskContainer");
var _799=document.createElement("DIV",_798);
_799.setAttribute("id","s3w-loading-icon");
_799.setAttribute("style","");
_799.innerHTML=this.loadingText;
dojo.addClass(_799,this.cls);
_798.appendChild(_799);
if(typeof arguments[0]!="undefined"&&arguments[0]!=null){
this._definedParentNode=true;
dojo.byId(arguments[0]).appendChild(_799);
}else{
window.document.body.appendChild(_798);
}
this.triggerRepositioning();
this.isNodeCreated=true;
}else{
var _799=dojo.byId("s3w-loading-icon");
_799.style.display="block";
}
this.isShown=true;
}
},triggerRepositioning:function $DBIa_(){
var thiz=this;
this._repositionLoadingMask();
if(!this.definedParentNode){
setInterval(function(){
thiz._repositionLoadingMask();
},100);
}
},_repositionLoadingMask:function $DBIb_(){
var _79a=0;
if(dojo.isIE){
_79a=document.documentElement.scrollTop;
}else{
_79a=window.pageYOffset;
}
if(this.isNodeCreated){
var _79b=document.getElementById("s3w-loading-icon");
_79b.style.top=(_79a+5)+"px";
}
if(this.isPopupNodeCreated){
var _79c=document.getElementById("s3w-loading-popup");
_79c.style.top=(_79a+30)+"px";
}
},showPopupMessage:function $DBIc_(_79d){
if(this.isPopupShown){
this.hidePopupMessage();
}
if(!this.isPopupNodeCreated){
var _79e=document.createElement("DIV");
_79e.setAttribute("id","s3w-loading-popup");
dojo.addClass(_79e,this.popupCls);
window.document.body.appendChild(_79e);
_79e.innerHTML=_79d;
this.triggerRepositioning();
this.isPopupNodeCreated=true;
}else{
var _79e=dojo.byId("s3w-loading-popup");
_79e.style.display="block";
_79e.innerHTML=_79d;
}
this.isPopupShown=true;
},hidePopupMessage:function $DBId_(){
if(this.isPopupShown){
var _79f=dojo.byId("s3w-loading-popup");
_79f.style.display="none";
this.isPopupShown=false;
}
},hide:function $DBIe_(){
this.hidePopupMessage();
if(this.isShown){
var _7a0=dojo.byId("s3w-loading-icon");
_7a0.style.display="none";
this.isShown=false;
}
}});
window.LoadingMask=new s3w.widget.LoadingMask();
}
if(!dojo._hasResource["dojox.uuid._base"]){
dojo._hasResource["dojox.uuid._base"]=true;
dojo.provide("dojox.uuid._base");
dojox.uuid.NIL_UUID="00000000-0000-0000-0000-000000000000";
dojox.uuid.version={UNKNOWN:0,TIME_BASED:1,DCE_SECURITY:2,NAME_BASED_MD5:3,RANDOM:4,NAME_BASED_SHA1:5};
dojox.uuid.variant={NCS:"0",DCE:"10",MICROSOFT:"110",UNKNOWN:"111"};
dojox.uuid.assert=function $DAO6_(_7a1,_7a2){
if(!_7a1){
if(!_7a2){
_7a2="An assert statement failed.\n"+"The method dojox.uuid.assert() was called with a 'false' value.\n";
}
throw new Error(_7a2);
}
};
dojox.uuid.generateNilUuid=function $DAO7_(){
return dojox.uuid.NIL_UUID;
};
dojox.uuid.isValid=function $DAO8_(_7a3){
_7a3=_7a3.toString();
var _7a4=(dojo.isString(_7a3)&&(_7a3.length==36)&&(_7a3==_7a3.toLowerCase()));
if(_7a4){
var _7a5=_7a3.split("-");
_7a4=((_7a5.length==5)&&(_7a5[0].length==8)&&(_7a5[1].length==4)&&(_7a5[2].length==4)&&(_7a5[3].length==4)&&(_7a5[4].length==12));
var _7a6=16;
for(var i in _7a5){
var part=_7a5[i];
var _7a7=parseInt(part,_7a6);
_7a4=_7a4&&isFinite(_7a7);
}
}
return _7a4;
};
dojox.uuid.getVariant=function $DAO9_(_7a8){
if(!dojox.uuid._ourVariantLookupTable){
var _7a9=dojox.uuid.variant;
var _7aa=[];
_7aa[0]=_7a9.NCS;
_7aa[1]=_7a9.NCS;
_7aa[2]=_7a9.NCS;
_7aa[3]=_7a9.NCS;
_7aa[4]=_7a9.NCS;
_7aa[5]=_7a9.NCS;
_7aa[6]=_7a9.NCS;
_7aa[7]=_7a9.NCS;
_7aa[8]=_7a9.DCE;
_7aa[9]=_7a9.DCE;
_7aa[10]=_7a9.DCE;
_7aa[11]=_7a9.DCE;
_7aa[12]=_7a9.MICROSOFT;
_7aa[13]=_7a9.MICROSOFT;
_7aa[14]=_7a9.UNKNOWN;
_7aa[15]=_7a9.UNKNOWN;
dojox.uuid._ourVariantLookupTable=_7aa;
}
_7a8=_7a8.toString();
var _7ab=_7a8.charAt(19);
var _7ac=16;
var _7ad=parseInt(_7ab,_7ac);
dojox.uuid.assert((_7ad>=0)&&(_7ad<=16));
return dojox.uuid._ourVariantLookupTable[_7ad];
};
dojox.uuid.getVersion=function $DAPA_(_7ae){
var _7af="dojox.uuid.getVersion() was not passed a DCE Variant UUID.";
dojox.uuid.assert(dojox.uuid.getVariant(_7ae)==dojox.uuid.variant.DCE,_7af);
_7ae=_7ae.toString();
var _7b0=_7ae.charAt(14);
var _7b1=16;
var _7b2=parseInt(_7b0,_7b1);
return _7b2;
};
dojox.uuid.getNode=function $DAPB_(_7b3){
var _7b4="dojox.uuid.getNode() was not passed a TIME_BASED UUID.";
dojox.uuid.assert(dojox.uuid.getVersion(_7b3)==dojox.uuid.version.TIME_BASED,_7b4);
_7b3=_7b3.toString();
var _7b5=_7b3.split("-");
var _7b6=_7b5[4];
return _7b6;
};
dojox.uuid.getTimestamp=function $DAPC_(_7b7,_7b8){
var _7b9="dojox.uuid.getTimestamp() was not passed a TIME_BASED UUID.";
dojox.uuid.assert(dojox.uuid.getVersion(_7b7)==dojox.uuid.version.TIME_BASED,_7b9);
_7b7=_7b7.toString();
if(!_7b8){
_7b8=null;
}
switch(_7b8){
case "string":
case String:
return dojox.uuid.getTimestamp(_7b7,Date).toUTCString();
break;
case "hex":
var _7ba=_7b7.split("-");
var _7bb=_7ba[0];
var _7bc=_7ba[1];
var _7bd=_7ba[2];
_7bd=_7bd.slice(1);
var _7be=_7bd+_7bc+_7bb;
dojox.uuid.assert(_7be.length==15);
return _7be;
break;
case null:
case "date":
case Date:
var _7bf=3394248;
var _7c0=16;
var _7c1=_7b7.split("-");
var _7c2=parseInt(_7c1[0],_7c0);
var _7c3=parseInt(_7c1[1],_7c0);
var _7c4=parseInt(_7c1[2],_7c0);
var _7c5=_7c4&4095;
_7c5<<=16;
_7c5+=_7c3;
_7c5*=4294967296;
_7c5+=_7c2;
var _7c6=_7c5/10000;
var _7c7=60*60;
var _7c8=_7bf;
var _7c9=_7c8*_7c7;
var _7ca=_7c9*1000;
var _7cb=_7c6-_7ca;
var _7cc=new Date(_7cb);
return _7cc;
break;
default:
dojox.uuid.assert(false,"dojox.uuid.getTimestamp was not passed a valid returnType: "+_7b8);
break;
}
};
}
if(!dojo._hasResource["dojox.uuid"]){
dojo._hasResource["dojox.uuid"]=true;
dojo.provide("dojox.uuid");
}
if(!dojo._hasResource["dijit.form.SimpleTextarea"]){
dojo._hasResource["dijit.form.SimpleTextarea"]=true;
dojo.provide("dijit.form.SimpleTextarea");
dojo.declare("dijit.form.SimpleTextarea",dijit.form.TextBox,{baseClass:"dijitTextArea",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templateString:"<textarea ${nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function $DAvl_(){
if(!this.value&&this.srcNodeRef){
this.value=this.srcNodeRef.value;
}
this.inherited(arguments);
},filter:function $DAvm_(_7cd){
if(_7cd){
_7cd=_7cd.replace(/\r/g,"");
}
return this.inherited(arguments);
},postCreate:function $DAvn_(){
this.inherited(arguments);
if(dojo.isIE&&this.cols){
dojo.addClass(this.textbox,"dijitTextAreaCols");
}
},_previousValue:"",_onInput:function $DAvo_(e){
if(this.maxLength){
var _7ce=parseInt(this.maxLength);
var _7cf=this.textbox.value.replace(/\r/g,"");
var _7d0=_7cf.length-_7ce;
if(_7d0>0){
if(e){
dojo.stopEvent(e);
}
var _7d1=this.textbox;
if(_7d1.selectionStart){
var pos=_7d1.selectionStart;
var cr=0;
if(dojo.isOpera){
cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;
}
this.textbox.value=_7cf.substring(0,pos-_7d0-cr)+_7cf.substring(pos-cr);
_7d1.setSelectionRange(pos-_7d0,pos-_7d0);
}else{
if(dojo.doc.selection){
_7d1.focus();
var _7d2=dojo.doc.selection.createRange();
_7d2.moveStart("character",-_7d0);
_7d2.text="";
_7d2.select();
}
}
}
this._previousValue=this.textbox.value;
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.form.Textarea"]){
dojo._hasResource["dijit.form.Textarea"]=true;
dojo.provide("dijit.form.Textarea");
dojo.declare("dijit.form.Textarea",dijit.form.SimpleTextarea,{cols:"",_previousNewlines:0,_strictMode:(dojo.doc.compatMode!="BackCompat"),_getHeight:function $DAro_(_7d3){
var newH=_7d3.scrollHeight;
if(dojo.isIE){
newH+=_7d3.offsetHeight-_7d3.clientHeight-((dojo.isIE<8&&this._strictMode)?dojo._getPadBorderExtents(_7d3).h:0);
}else{
if(dojo.isMoz){
newH+=_7d3.offsetHeight-_7d3.clientHeight;
}else{
if(dojo.isWebKit&&!(dojo.isSafari<4)){
newH+=dojo._getBorderExtents(_7d3).h;
}else{
newH+=dojo._getPadBorderExtents(_7d3).h;
}
}
}
return newH;
},_estimateHeight:function $DArp_(_7d4){
_7d4.style.maxHeight="";
_7d4.style.height="auto";
_7d4.rows=(_7d4.value.match(/\n/g)||[]).length+1;
},_needsHelpShrinking:dojo.isMoz||dojo.isWebKit,_onInput:function $DArq_(){
this.inherited(arguments);
if(this._busyResizing){
return;
}
this._busyResizing=true;
var _7d5=this.textbox;
if(_7d5.scrollHeight&&_7d5.offsetHeight&&_7d5.clientHeight){
var newH=this._getHeight(_7d5)+"px";
if(_7d5.style.height!=newH){
_7d5.style.maxHeight=_7d5.style.height=newH;
}
if(this._needsHelpShrinking){
if(this._setTimeoutHandle){
clearTimeout(this._setTimeoutHandle);
}
this._setTimeoutHandle=setTimeout(dojo.hitch(this,"_shrink"),0);
}
}else{
this._estimateHeight(_7d5);
}
this._busyResizing=false;
},_busyResizing:false,_shrink:function $DArr_(){
this._setTimeoutHandle=null;
if(this._needsHelpShrinking&&!this._busyResizing){
this._busyResizing=true;
var _7d6=this.textbox;
var _7d7=false;
if(_7d6.value==""){
_7d6.value=" ";
_7d7=true;
}
var _7d8=_7d6.scrollHeight;
if(!_7d8){
this._estimateHeight(_7d6);
}else{
var _7d9=_7d6.style.paddingBottom;
var _7da=dojo._getPadExtents(_7d6);
_7da=_7da.h-_7da.t;
_7d6.style.paddingBottom=_7da+1+"px";
var newH=this._getHeight(_7d6)-1+"px";
if(_7d6.style.maxHeight!=newH){
_7d6.style.paddingBottom=_7da+_7d8+"px";
_7d6.scrollTop=0;
_7d6.style.maxHeight=this._getHeight(_7d6)-_7d8+"px";
}
_7d6.style.paddingBottom=_7d9;
}
if(_7d7){
_7d6.value="";
}
this._busyResizing=false;
}
},resize:function $DArs_(){
this._onInput();
},_setValueAttr:function $DArt_(){
this.inherited(arguments);
this.resize();
},postCreate:function $DAru_(){
this.inherited(arguments);
dojo.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});
this.connect(this.textbox,"onscroll",this._onInput);
this.connect(this.textbox,"onresize",this._onInput);
this.connect(this.textbox,"onfocus",this._onInput);
setTimeout(dojo.hitch(this,"resize"),0);
}});
}
if(!dojo._hasResource["s3w.widget.TextArea"]){
dojo._hasResource["s3w.widget.TextArea"]=true;
dojo.provide("s3w.widget.TextArea");
dojo.declare("s3w.widget.TextArea",dijit.form.Textarea,{maxRows:0,_estimateHeight:function $DBIG_(_7db){
_7db.style.maxHeight="";
_7db.style.height="auto";
var _7dc=(_7db.value.match(/\n/g)||[]).length+1;
if(this.maxRows>0&&_7dc>=this.maxRows){
_7db.style.overflow="auto";
return;
}
if((typeof this["rows"]!="undefined"&&this.rows>0)&&this.rows>_7dc){
_7db.rows=this.rows;
_7db.style.overflow="hidden";
}else{
_7db.style.overflow="hidden";
_7db.rows=_7dc;
}
},_onInput:function $DBIH_(){
this.inherited(arguments);
if(this._busyResizing){
return;
}
this._busyResizing=true;
var _7dd=this.textbox;
this._estimateHeight(_7dd);
this._busyResizing=false;
},_shrink:function $DBII_(){
}});
}
if(!dojo._hasResource["s3w.widget.EditInPlace"]){
dojo._hasResource["s3w.widget.EditInPlace"]=true;
if(typeof window.BUTTON_EDITINPLACE_FUNC=="undefined"){
window.BUTTON_EDITINPLACE_FUNC={};
}
if(typeof window.BUTTON_EDITINPLACE_BEFORE_FUNC=="undefined"){
window.BUTTON_EDITINPLACE_BEFORE_FUNC={};
}
if(typeof window.BUTTON_EDITINPLACE_REGISTRY=="undefined"){
window.BUTTON_EDITINPLACE_REGISTRY=[];
}
dojo.provide("s3w.widget.EditInPlace");
dojo.declare("s3w.widget.EditInPlace",null,{domNodeId:"",domNodeEle:null,config:null,editor:null,value:"",editCSSMouseOver:null,editCSSMouseOut:null,clickHandlerRef:null,readCSSMouseOver:null,readCSSMouseOut:null,curBtn:null,init:function $DBHx_(_7de){
_7de=this.prepareConfig(_7de);
this.config=_7de;
this.domNodeId=_7de.targetId;
this.domNodeEle=dojo.byId(this.domNodeId);
this.value=this.config.value;
window.BUTTON_EDITINPLACE_REGISTRY.push(this);
},prepareConfig:function $DBHy_(_7df){
if(typeof _7df["readTpl"]=="undefined"||_7df["readTpl"]==null){
_7df["readTpl"]="{value}";
}
if(typeof _7df["readCls"]=="undefined"||_7df["readCls"]==null){
_7df["readCls"]="";
}
if(typeof _7df["readHoverCls"]=="undefined"||_7df["readHoverCls"]==null){
_7df["readHoverCls"]="";
}
if(typeof _7df["datatype"]=="undefined"||_7df["datatype"]==null){
_7df["datatype"]="text";
}
if(typeof _7df["editTpl"]=="undefined"||_7df["editTpl"]==null){
_7df["editTpl"]="{editor} {buttons}";
}
if(typeof _7df["editCls"]=="undefined"||_7df["editCls"]==null){
_7df["editCls"]="";
}
if(typeof _7df["editHoverCls"]=="undefined"||_7df["editHoverCls"]==null){
_7df["editHoverCls"]="";
}
if(typeof _7df["editorConfig"]=="undefined"||_7df["editorConfig"]==null){
_7df["editorConfig"]={};
}
if(typeof _7df["buttonCls"]=="undefined"||_7df["buttonCls"]==null){
_7df["buttonCls"]="";
}
if(typeof _7df["buttons"]=="undefined"||_7df["buttons"]==null){
_7df["buttons"]=[{html:"Eintragen",type:"submit"},{html:"Abbrechen",type:"cancel"}];
}
if(typeof _7df["hiddenFieldName"]=="undefined"||_7df["hiddenFieldName"]==null){
_7df["hiddenFieldName"]="Studio3w_Form[from]";
}
if(typeof _7df["keyEvent"]=="undefined"||_7df["keyEvent"]==null){
_7df["keyEvent"]=-1;
}
if(typeof _7df["specialKey"]=="undefined"||_7df["specialKey"]==null){
_7df["specialKey"]="alt";
}
return _7df;
},render:function $DBHz_(_7e0){
this.init(_7e0);
this.renderDefaultValue();
this.toggleEditClickHandler();
this.toggleEditKeyHandler();
},renderDefaultValue:function $DBH0_(){
dojo.addClass(this.domNodeEle,"EditInPlaceDefaultValue");
this.renderReadMode();
},toggleEditKeyHandler:function $DBH1_(){
dojo.connect(document,"onkeypress",this,dojo.hitch(this,function(_7e1){
var _7e2=false;
switch(this.config.specialKey){
case "ctrl":
if(_7e1.ctrlKey){
_7e2=true;
}
break;
case "shift":
if(_7e1.shiftKey){
_7e2=true;
}
break;
default:
case "alt":
if(_7e1.altKey){
_7e2=true;
}
break;
}
if(_7e2&&_7e1.charCode==this.config.keyEvent&&this.config.keyEvent!=-1){
if(this.hookCheckKeyEventForInstance(_7e1)){
this.toggleEditMode();
}
}
}));
},hookCheckKeyEventForInstance:function $DBH2_(_7e3){
return true;
},toggleEditClickHandler:function $DBH3_(_7e4){
if(dojo.hasClass(this.domNodeEle,"EditInPlaceClickable")||_7e4){
dojo.disconnect(this.clickHandlerRef);
dojo.removeClass(this.domNodeEle,"EditInPlaceClickable");
}else{
this.clickHandlerRef=dojo.connect(this.domNodeEle,"onclick",dojo.hitch(this,function(evt){
this.toggleEditMode();
}));
dojo.addClass(this.domNodeEle,"EditInPlaceClickable");
}
},toggleEditMode:function $DBH4_(){
if(dojo.hasClass(this.domNodeEle,"EditInPlaceEditMode")){
this.toggleEditClickHandler(false);
this.renderReadMode();
dojo.removeClass(this.domNodeEle,"EditInPlaceEditMode");
}else{
this.toggleEditClickHandler(true);
this.renderEditMode();
dojo.addClass(this.domNodeEle,"EditInPlaceEditMode");
}
},renderEditMode:function $DBH5_(){
if(typeof this.config.readCls!="undefined"){
dojo.removeClass(this.domNodeEle,this.config.readCls);
}
if(typeof this.config.readHoverCls!="undefined"){
dojo.disconnect(this.readCSSMouseOver);
dojo.disconnect(this.readCSSMouseOut);
}
if(typeof this.config.editCls!="undefined"){
dojo.addClass(this.domNodeEle,this.config.editCls);
}
if(typeof this.config.editHoverCls!="undefined"){
this.editCSSMouseOver=dojo.connect(this.domNodeEle,"onmouseover",dojo.hitch(this,function(evt){
dojo.addClass(this.domNodeEle,this.config.editHoverCls);
}));
this.editCSSMouseOut=dojo.connect(this.domNodeEle,"onmouseout",dojo.hitch(this,function(evt){
dojo.removeClass(this.domNodeEle,this.config.editHoverCls);
}));
}
var _7e5=this.config.buttons;
var _7e6="";
for(var i=0;i<_7e5.length;i++){
window.WIDGET_ID_COUNT++;
if(_7e5[i]["type"]==null){
_7e5[i]["type"]="submit";
}
if(_7e5[i]["html"]==null||_7e5[i]["html"].length==0){
alert("FEHLER: EditInPlace enthält Button ohne html-Attribut!");
_7e5[i]["html"]="";
}
_7e5[i]["id"]=_7e5[i]["type"]+"_"+window.WIDGET_ID_COUNT+"_"+this.domNodeId+"_"+new Date().getMilliseconds();
if(_7e5[i]["style"]==null||_7e5[i]["style"].length==0){
_7e5[i]["style"]="";
}
if(_7e5[i]["cls"]==null||_7e5[i]["cls"].length==0){
_7e5[i]["cls"]="submit";
}
if(_7e5[i]["onClick"]==null){
_7e5[i]["onClick"]=function(){
};
}
if(_7e5[i]["onBeforeClick"]==null){
_7e5[i]["onBeforeClick"]=function(){
};
}
_7e5[i].id=_7e5[i].id+"-"+window.WIDGET_ID_COUNT;
_7e6+="<button id='"+_7e5[i].id+"' style='"+_7e5[i].style+"' widgetid='"+_7e5[i].id+"' "+"type='button' editInPlaceType='"+_7e5[i].type+"'"+"dojoType='dijit.form.Button'>"+_7e5[i].html+"</button>";
window.BUTTON_EDITINPLACE_FUNC[_7e5[i].id]=_7e5[i].onClick;
window.BUTTON_EDITINPLACE_BEFORE_FUNC[_7e5[i].id]=_7e5[i].onBeforeClick;
}
_7e6="<div style='"+this.config.buttonCls+"'>"+_7e6+"</div>";
var _7e7=this.config.editTpl;
_7e7=_7e7.replace("{buttons}",_7e6);
_7e7=_7e7.replace("{editor}","<div id='"+this.domNodeId+"_editorWidget'></div>");
this.domNodeEle.innerHTML=_7e7;
dojo.parser.parse(this.domNodeEle);
var _7e8=null;
for(var i=0;i<_7e5.length;i++){
this.curBtn=_7e5[i];
_7e8=dijit.byId(this.curBtn.id);
dojo.connect(_7e8.containerNode.parentNode,"onclick",dojo.hitch(this,function(evt){
var _7e9=evt.originalTarget;
if(typeof _7e9=="undefined"){
_7e9=evt.target.parentNode;
if(dojo.isIE){
_7e9=evt.srcElement;
}
}
var _7ea=_7e9.id.split("_");
_7ea=_7ea[0];
switch(_7ea){
case "reset":
window.BUTTON_EDITINPLACE_BEFORE_FUNC[_7e9.id](evt,dijit.byId(_7e9.id),this);
this.resetForm();
break;
case "submit":
window.BUTTON_EDITINPLACE_BEFORE_FUNC[_7e9.id](evt,dijit.byId(_7e9.id),this);
this.submitForm();
break;
case "cancel":
window.BUTTON_EDITINPLACE_BEFORE_FUNC[_7e9.id](evt,dijit.byId(_7e9.id),this);
this.toggleEditMode();
break;
case "custom":
window.BUTTON_EDITINPLACE_BEFORE_FUNC[_7e9.id](evt,dijit.byId(_7e9.id),this);
window.BUTTON_EDITINPLACE_FUNC[_7e9.id](evt,dijit.byId(_7e9.id),this);
break;
}
dojo.stopEvent(evt);
}));
dojo.addClass(dojo.byId(this.curBtn.id),this.curBtn.cls);
}
var _7eb={};
if(typeof this.config.editorConfig!="undefined"&&this.config.editorConfig!=null){
_7eb=this.config.editorConfig;
}
_7eb["id"]=this.domNodeId+"_"+new Date().getMilliseconds();
_7eb["value"]=this.safeDecodeHTML(this.value);
switch(this.config.datatype){
case "text":
this.editor=new dijit.form.TextBox(_7eb,this.domNodeId+"_editorWidget");
break;
case "textarea":
this.editor=new s3w.widget.TextArea(_7eb,this.domNodeId+"_editorWidget");
break;
case "simpletextarea":
this.editor=new dijit.form.SimpleTextarea(_7eb,this.domNodeId+"_editorWidget");
break;
}
},renderReadMode:function $DBH6_(){
if(typeof this.config.editCls!="undefined"){
dojo.removeClass(this.domNodeEle,this.config.editCls);
}
if(typeof this.config.editHoverCls!="undefined"){
dojo.disconnect(this.editCSSMouseOver);
dojo.disconnect(this.editCSSMouseOut);
}
if(typeof this.config.readCls!="undefined"){
dojo.addClass(this.domNodeEle,this.config.readCls);
}
if(typeof this.config.readHoverCls!="undefined"){
this.readCSSMouseOver=dojo.connect(this.domNodeEle,"onmouseover",dojo.hitch(this,function(evt){
dojo.addClass(this.domNodeEle,this.config.readHoverCls);
}));
this.readCSSMouseOut=dojo.connect(this.domNodeEle,"onmouseout",dojo.hitch(this,function(evt){
dojo.removeClass(this.domNodeEle,this.config.readHoverCls);
}));
}
var _7ec=this.value;
switch(this.config.datatype){
case "text":
case "textarea":
case "simpletextarea":
_7ec=this.convertNewlinesToShow(this.safeDecodeHTML(_7ec));
break;
}
this.domNodeEle.innerHTML=this.config.readTpl.replace("{value}",_7ec);
},resetForm:function $DBH7_(){
switch(this.config.datatype){
case "text":
case "textarea":
case "simpletextarea":
this.editor.attr("value",this.value);
break;
}
},submitForm:function $DBH8_(){
var _7ed=this.editor.getValue();
switch(this.config.datatype){
case "text":
case "textarea":
case "simpletextarea":
_7ed=this.safeEncodeHTML(_7ed);
break;
}
this.value=_7ed;
this.callServer();
},safeDecodeHTML:function $DBH9_(html){
html=html.replace(/\\'/g,"'");
return html;
},safeEncodeHTML:function $DBIA_(html){
html=html.replace(/'/g,"\\'");
return html;
},callServer:function $DBIB_(){
LoadingMask.show();
dojo.xhrPost({url:this.config.url,content:this.preparePostParameters(),handleAs:"json",load:dojo.hitch(this,function(data){
this.toggleEditMode();
LoadingMask.hide();
}),error:function $DBIC_(_7ee,_7ef){
this.toggleEditMode();
LoadingMask.hide();
console.error("HTTP status code: ",_7ef.xhr.status);
return _7ee;
}});
},convertNewlines:function $DBID_(_7f0){
return _7f0.replace(/(\r\n)|(\r)|(\n)/g,"\\n");
},convertNewlinesToShow:function $DBIE_(_7f1){
return _7f1.replace(/(\r\n)|(\r)|(\n)/g,"<br />");
},preparePostParameters:function $DBIF_(){
var _7f2=this.value;
switch(this.config.datatype){
case "textarea":
case "simpletextarea":
_7f2=this.convertNewlines(_7f2);
break;
}
var _7f3="\"{hiddenFieldName}\": '{hiddenFieldValue}', "+"\"{dataFieldName}\": '{value}', "+"\"{entityName}\": {entityId}";
var _7f4=_7f3.replace("{hiddenFieldName}",this.config.hiddenFieldName);
_7f4=_7f4.replace("{hiddenFieldValue}",this.config.hiddenFieldValue);
_7f4=_7f4.replace("{dataFieldName}",this.config.dataFieldName);
_7f4=_7f4.replace("{value}",_7f2);
_7f4=_7f4.replace("{entityName}",this.config.entityName);
_7f4=_7f4.replace("{entityId}",this.config.entityId);
postObj=dojo.fromJson("{"+_7f4+"}");
return postObj;
}});
}
if(!dojo._hasResource["s3w.widget.EditInPlaceParser"]){
dojo._hasResource["s3w.widget.EditInPlaceParser"]=true;
dojo.provide("s3w.widget.EditInPlaceParser");
dojo.declare("s3w.widget.EditInPlaceParser",null,{searchCssClassName:"EditInPlace",parse:function $DBIX_(_7f5){
dojo.forEach(dojo.query("."+this.searchCssClassName,_7f5),dojo.hitch(this,function(_7f6){
if(!dojo.hasClass(_7f6,"EditInPlaceRegistered")){
this.registerEditInPlace(_7f6);
}
}));
},registerEditInPlace:function $DBIY_(_7f7){
var _7f8=_7f7.innerHTML;
var _7f9=new s3w.widget.EditInPlace();
_7f9.render(dojo.fromJson(_7f8));
dojo.addClass(_7f7,"EditInPlaceRegistered");
}});
dojo.addOnLoad(function(){
var _7fa=new s3w.widget.EditInPlaceParser();
_7fa.parse(window.document.body);
});
}
if(!dojo._hasResource["s3w.Bootstrap"]){
dojo._hasResource["s3w.Bootstrap"]=true;
window.WIDGET_ID_COUNT=0;
dojo.provide("s3w.Bootstrap");
dojo.declare("s3w.Bootstrap",null,{constructor:function $DBIv_(){
this._declareNamespaces();
},_declareNamespaces:function $DBIw_(){
dojo.provide("s3w.core");
dojo.provide("s3w.widget");
dojo.provide("s3w.store");
dojo.provide("s3w.remote");
}});
s3w.Bootstrap=new s3w.Bootstrap();
}
if(!dojo._hasResource["singles.core.LinkUtil"]){
dojo._hasResource["singles.core.LinkUtil"]=true;
dojo.provide("singles.core.LinkUtil");
dojo.declare("singles.core.LinkUtil",null,{convertHelpLinks:function $DBC3_(){
dojo.forEach(dojo.query(".openHelp"),dojo.hitch(this,function(el){
dojo.connect(el,"click",dojo.hitch(this,function(e){
singles.core.LinkUtil.openWindowCentered(el.href,"help","height=400,resizable=yes,width=730,scrollbars=yes");
}));
dojo.connect(el,"click",function(e){
e.preventDefault();
});
}));
},openWindowCentered:function $DBC4_(url,_7fb,_7fc){
var _7fd=screen.availWidth;
var _7fe=screen.availHeight;
var _7ff=0;
var _800=0;
var _7fc=_7fc.replace(/ /g,"").toLowerCase().split(",");
newParas=new Array();
for(para in _7fc){
if(typeof (_7fc[para])=="string"){
entry=_7fc[para].split("=");
switch(entry[0]){
case "left":
case "top":
break;
case "width":
_7ff=entry[1];
newParas[newParas.length]=entry[0]+"="+entry[1];
break;
case "height":
_800=entry[1];
newParas[newParas.length]=entry[0]+"="+entry[1];
break;
default:
newParas[newParas.length]=entry[0]+"="+entry[1];
break;
}
}
}
newParas[newParas.length]="left="+(_7fd/2-_7ff/2)+"px";
newParas[newParas.length]="top="+(_7fe/2-_800/2)+"px";
newParas=newParas.join(",");
return window.open(url,_7fb,newParas);
}});
singles.core.LinkUtil=new singles.core.LinkUtil();
}
if(!dojo._hasResource["singles.payment.FormValidator"]){
dojo._hasResource["singles.payment.FormValidator"]=true;
dojo.provide("singles.payment.FormValidator");
dojo.declare("singles.payment.FormValidator",null,{fields:{},complete:false,constructor:function $DBHm_(_801){
this.fields=_801;
for(var id in this.fields){
this.fields[id]["error"]=false;
this.fields[id]["complete"]=false;
dojo.connect(dojo.byId(id),"onkeyup",this,"checkValue");
dojo.connect(dojo.byId(id),"onblur",this,"checkValue");
}
},checkValue:function $DBHn_(e){
var _802;
var _803=this.fields[e.target.id];
var _804=e.target.value;
if("num"===_803.type&&isNaN(_804)){
_802=true;
}else{
_802=false;
}
this.check(_802,e.target);
},checkLength:function $DBHo_(e){
var _805;
var _806=this.fields[e.target.id];
var _807=e.target.value;
if((false!=_806.min)&&(_807.length<_806.min)){
_805=true;
}else{
if((false!=_806.max)&&(_807.length>_806.max)){
_805=true;
}else{
_805=false;
}
}
this.check(_805,e.target);
},check:function $DBHp_(_808,_809){
if(true===_808){
this.fields[_809.id]["error"]=true;
this.fields[_809.id]["complete"]=false;
}else{
this.fields[_809.id]["error"]=false;
this.fields[_809.id]["complete"]=true;
}
var _80a=dojo.query(".message",dojo.query(_809).parents("form")[0])[0];
var _80b=dojo.query("button",dojo.query(_809).parents("form")[0])[0];
this.show(_80a);
this.setSubmit(_80b);
},show:function $DBHq_(_80c){
var _80d=0;
for(var id in this.fields){
if(true===this.fields[id]["error"]){
_80d++;
dojo.addClass(dojo.byId(id),"invalid");
}else{
dojo.removeClass(dojo.byId(id),"invalid");
}
}
if(_80d>0){
dojo.html.set(_80c,"Bitte prüfen Sie Ihre Eingabe in den markierten Feldern.");
}else{
dojo.html.set(_80c,"");
}
},setSubmit:function $DBHr_(_80e){
var _80f=true;
for(var id in this.fields){
if(this.fields[id]["complete"]==false){
_80f=false;
}
}
if(_80f){
dojo.removeAttr(_80e,"disabled");
}else{
_80e.disabled=true;
}
}});
}
if(!dojo._hasResource["singles.Core"]){
dojo._hasResource["singles.Core"]=true;
dojo.provide("singles.Core");
dojo.declare("singles.Core",s3w.Core,{registry:[],idCounter:0,constructor:function $DBC5_(){
},init:function $DBC6_(){
singles.core.LinkUtil.convertHelpLinks();
this._registerOnChangeHandler();
},_registerOnChangeHandler:function $DBC7_(){
dojo.forEach(dojo.query("select.onchangeSubmit"),function(el){
dojo.connect(el,"onchange",function(){
if(""!=this.value){
this.form.submit();
}
});
});
},getUniqueId:function $DBC8_(){
++singles.Core.idCounter;
return singles.Core.idCounter;
}});
singles.Core=new singles.Core();
if(typeof dojo.global.app!="undefined"){
dojo.global.app=dojo.mixin(dojo.global.app,singles.Core);
}else{
dojo.global.app=singles.Core;
}
}
if(!dojo._hasResource["s3w.widget.AbstractDialog"]){
dojo._hasResource["s3w.widget.AbstractDialog"]=true;
dojo.provide("s3w.widget.AbstractDialog");
dojo.declare("s3w.widget.AbstractDialog",dijit.Dialog,{refocus:false,autofocus:false,draggable:true,closable:true,toggleUnderlay:false,_setup:function $DBIf_(){
var node=this.domNode;
if(this.titleBar&&this.draggable){
this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});
dojo.subscribe("/dnd/move/stop",this,"_endDrag");
}else{
dojo.addClass(node,"dijitDialogFixed");
}
var _810={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
var _811=dijit._underlay;
if(!_811){
_811=dijit._underlay=new dijit.DialogUnderlay(_810);
}
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:dojo.hitch(this,function(){
if(this.toggleUnderlay){
_811.attr(_810);
_811.show();
}
}),onEnd:dojo.hitch(this,function(){
if(this.autofocus){
this._getFocusItems(this.domNode);
dijit.focus(this._firstFocusItem);
}
})});
this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:dojo.hitch(this,function(){
node.style.visibility="hidden";
node.style.top="-9999px";
if(this.toggleUnderlay){
dijit._underlay.hide();
}
})});
},layout:function $DBIg_(){
if(this.domNode.style.visibility!="hidden"){
if(this.toggleUnderlay){
dijit._underlay.layout();
}
this._position();
}
}});
}
if(!dojo._hasResource["singles.widget.Dialog"]){
dojo._hasResource["singles.widget.Dialog"]=true;
dojo.provide("singles.widget.Dialog");
dojo.declare("singles.widget.Dialog",s3w.widget.AbstractDialog,{});
}
if(!dojo._hasResource["singles.user.InactiveUserDialog"]){
dojo._hasResource["singles.user.InactiveUserDialog"]=true;
dojo.provide("singles.user.InactiveUserDialog");
dojo.declare("singles.user.InactiveUserDialog",null,{displayEmailChangeDialogToInactiveUser:function $DBGK_(){
dojo.xhrGet({url:BaseURL+"/user/register/email",handleAs:"json",load:function $DBGL_(data){
var _812=new dijit.Dialog({title:"Email-Adresse ändern",content:"<div id=\"emailmessage\"></div>"+data.message,style:"width: 460px"});
dojo.connect(dojo.query("form",_812.domnode)[0],"onsubmit",this,function(e){
dojo.stopEvent(e);
dojo.xhrPost({url:BaseURL+"/user/register/email",handleAs:"json",form:e.currentTarget,load:function $DBGM_(data){
if(data.error==null){
dojo.place("<span style=\"color: green;\">"+data.message+"</span>","emailmessage","only");
}else{
if(data.error==true){
dojo.place("<span style=\"color: red;\">"+data.message+"</span>","emailmessage","only");
}
}
}});
});
_812.show();
}});
},resendAction:function $DBGN_(){
if(_813==true){
setTimeout("reset()",10000);
_813=false;
dojo.xhrGet({url:BaseURL+"/user/register/resendConfirmationEmail",handleAs:"json",load:function $DBGO_(data){
alert(data.message);
}});
}
}});
var _813=true;
function _814(){
_813=true;
};
}
if(!dojo._hasResource["singles.Bootstrap"]){
dojo._hasResource["singles.Bootstrap"]=true;
dojo.provide("singles.Bootstrap");
dojo.declare("singles.Bootstrap",null,{constructor:function $DBFm_(){
this._bootstrapS3wNamespace();
this._declareNamespaces();
},_bootstrapS3wNamespace:function $DBFn_(){
dojo.registerModulePath("s3w","../../../s3w");
dojo.provide("s3w");
},_declareNamespaces:function $DBFo_(){
dojo.provide("singles.core");
dojo.provide("singles.widget");
dojo.provide("singles.store");
dojo.provide("singles.remote");
}});
singles.Bootstrap=new singles.Bootstrap();
}
if(!dojo._hasResource["singles.Admin"]){
dojo._hasResource["singles.Admin"]=true;
dojo.provide("singles.Admin");
dojo.declare("singles.Admin",null,{adminUrl:"/admin/edit_user.php",newAdminUrl:"/admin/user/",lastKeyCode:0,attachedToggleMailEvents:false,sentMail:false,registerKeyStrokes:function $DBBG_(){
dojo.connect(document,"onkeypress",this,function(_815){
var _816=dojo.keys.TAB;
if(_815.keyCode==_816){
this.lastKeyCode=_815.keyCode;
}
var _817=false;
if(this.lastKeyCode==_816&&_815.charCode==113){
_817=true;
this.lastKeyCode=0;
}
if(_817){
_815.preventDefault();
}
});
},activate:function $DBBH_(_818){
dojo.xhrGet({url:this.newAdminUrl+"activate",handleAs:"json",content:{userId:_818},load:function $DBBI_(_819,_81a){
if(null!=_819.error){
alert("Es ist ein Fehler aufgetreten. Der Status wurde nicht geändert.");
return;
}
}});
return;
},lockUser:function $DBBJ_(_81b,_81c){
if(_81b=="lock"){
if(false==confirm("User wirklich komplett sperren?")){
return;
}
}
dojo.xhrPost({url:this.newAdminUrl+"lock",handleAs:"json",content:{userId:_81c,status:_81b},load:function $DBBK_(data){
if(_81b=="lock"){
if(null==data.error){
dojo.byId("adminPanelLockUser").innerHTML="<span class=\"warn\"><b>ja</b></span> <a href=\"javascript:admin.lockUser('unlock', "+_81c+")\">User jetzt entsperren</a>";
}else{
alert("Es ist ein Fehler aufgetreten. Der User wurde nicht gesperrt.");
}
}else{
if(null==data.error){
dojo.byId("adminPanelLockUser").innerHTML="nein <a href=\"javascript:admin.lockUser('lock', "+_81c+")\">User jetzt sperren</a>";
}else{
alert("Es ist ein Fehler aufgetreten. Der User wurde nicht entsperrt.");
}
}
}});
},lockSoft:function $DBBL_(_81d,_81e){
if(_81d=="lock"){
if(false==confirm("User teilsperren? Der User kann sich dann noch einloggen um sein Profil zu ändern, aber die meisten anderen Dienste sind gesperrt.")){
return;
}
}
dojo.xhrPost({url:this.newAdminUrl+"softlock",handleAs:"json",content:{userId:_81e,status:_81d},load:function $DBBM_(data){
if(_81d=="lock"){
if(null==data.error){
dojo.byId("adminPanelLockSoft").innerHTML="<span class=\"warn\"><b>ja</b></span> <a href=\"javascript:admin.lockSoft('unlock', "+_81e+")\">Teilsperrung aufheben</a>";
}else{
alert("Es ist ein Fehler aufgetreten. Der User wurde nicht gesperrt.");
}
}else{
if(null==data.error){
dojo.byId("adminPanelLockSoft").innerHTML="nein <a href=\"javascript:admin.lockSoft('lock', "+_81e+")\">User jetzt teilsperren</a>";
}else{
alert("Es ist ein Fehler aufgetreten. Der User wurde nicht entsperrt.");
}
}
}});
},watchlist:function $DBBN_(_81f,_820){
if(_81f=="add_to_watchlist"){
if(false==confirm("User wirklich auf die Watchlist setzen?")){
return;
}
}
dojo.xhrPost({url:this.newAdminUrl+"addOrDeleteUserFromWatchlist",handleAs:"json",content:{userId:_820,addordelete:_81f},load:function $DBBO_(data){
if(null==data.error){
if(_81f=="add_to_watchlist"){
dojo.byId("adminPanelWatchlist").innerHTML="<span class=\"warn\"><b>ja</b></span> <a href=\"javascript:admin.watchlist('drop_from_watchlist', "+_820+")\">Von der Watchlist nehmen.</a>";
}else{
dojo.byId("adminPanelWatchlist").innerHTML="nein <a href=\"javascript:admin.watchlist('add_to_watchlist', "+_820+")\">Auf die Watchlist setzen.</a>";
}
}else{
alert(data.message);
}
}});
},sendNewPassword:function $DBBP_(_821){
if(confirm("Dem User ein neues Password per E-Mail zuschicken?")){
dojo.xhrPost({url:this.newAdminUrl+"sendnewpassword",handleAs:"json",content:{userId:_821},load:function $DBBQ_(data){
alert(data.message);
},error:function $DBBR_(_822,_823){
alert(_822);
return _822;
}});
}
return;
},assignChecked:function $DBBS_(_824){
dojo.xhrPost({url:this.newAdminUrl+"markchecked",handleAs:"json",content:{userId:_824},load:function $DBBT_(data){
dojo.byId("adminPanelUserChecked").innerHTML=data.message;
},error:function $DBBU_(_825,_826){
alert(_825);
return _825;
}});
return;
},followUpCC:function $DBBV_(_827){
dojo.xhrPost({url:this.newAdminUrl+"followupcc",handleAs:"json",content:{userId:_827,when:"now"},load:function $DBBW_(data){
if(null==data.error){
dojo.destroy("followUpCC");
}else{
alert(data.message);
}
}});
return;
},saveComment:function $DBBX_(){
var _828=dojo.byId("adminComment").value;
var _829=dojo.byId("adminCommentUserId").value;
dojo.xhrPost({url:this.newAdminUrl+"saveComment",handleAs:"json",content:{userId:_829,adminComment:_828},load:function $DBBY_(data){
if(null==data.error){
dojo.byId("responseMessage").innerHTML="<b>Kommentar gespeichert</b>";
}else{
alert("Der Kommentar konnte nicht gespeichert werden!");
dojo.byId("responseMessage").innerHTML="<span class=\"warn\"><b>"+data.message+"</b></span>";
}
dojo.byId("commentSubmit").style.display="none";
dojo.fx.wipeIn({node:"responseMessage",duration:200}).play();
window.setTimeout("dojo.fx.wipeOut({node: \"responseMessage\", duration: 200}).play();",2000);
}});
return false;
},showCommentSubmit:function $DBBZ_(){
dojo.byId("commentSubmit").style.display="block";
},hideCommentSubmit:function $DBBa_(){
dojo.byId("commentSubmit").style.display="none";
},deletePhoto:function $DBBb_(_82a,_82b){
if(confirm("Das Bild "+_82a+" wirklich löschen?")){
dojo.xhrPost({url:this.newAdminUrl+"deletephoto",content:{file:_82a,user:_82b},load:function $DBBc_(data){
if(null==data.error){
dojo.destroy("file_"+_82a+"_"+_82b);
}else{
alert("Bild "+_82a+" konnte nicht gelöscht werden");
}
},error:function $DBBd_(_82c,_82d){
alert(_82c);
return _82c;
}});
}
},assignClickEvents:function $DBBe_(){
dojo.forEach(dojo.query(".openActions"),dojo.hitch(this,function(elem){
dojo.connect(elem,"onclick",this,this.showEventDetail);
}));
dojo.query(".ccTagSwitch").onclick(dojo.hitch(this,this.markChecked));
dojo.forEach(dojo.query(".closeButton"),dojo.hitch(this,function(elem){
dojo.connect(elem,"onclick",this,this.followupEvent);
}));
},showEventDetail:function $DBBf_(row){
dojo.hitch(this,this.startLoadingIcon());
var _82e=row.currentTarget.id.split("_")[1];
if(null!=dojo.byId("eventDetails_"+_82e)){
dojo.hitch(this,this.stopLoadingIcon());
dojo.destroy("eventDetails_"+_82e);
return;
}
dojo.xhrGet({url:"/admin/event/detail/id/"+_82e,handleAs:"json",load:dojo.hitch(this,function(data){
var _82f="<td colspan=\"8\">"+data.result+"</td>";
var _830=dojo.create("tr",{id:"eventDetails_"+_82e,className:"eventDetail"},dojo.byId("event_"+_82e+"_lastRow"),"before");
_830.innerHTML=_82f;
dojo.hitch(this,this.setDeleteIcon(_830,_82e));
dojo.hitch(this,this.setSuspendIcon(_830,_82e));
dojo.query(".viewCommentsOnInitiator",_830).onclick(dojo.hitch(this,this.toggleComment));
dojo.query(".viewCommentsOnEvent",_830).onclick(dojo.hitch(this,this.toggleEventComment));
dojo.query(".mailInitiator",_830).onclick(dojo.hitch(this,this.toggleEmail));
dojo.query(".mailTeam",_830).onclick(dojo.hitch(this,this.toggleTeamEmail));
dojo.query(".closeIcon",_830).onclick(function(e){
dojo.stopEvent(e);
dojo.destroy(_830);
});
dojo.hitch(this,this.stopLoadingIcon());
}),error:dojo.hitch(this,function(_831,_832){
dojo.hitch(this,this.stopLoadingIcon());
return _831;
})});
},markChecked:function $DBBg_(_833){
var _834=_833.currentTarget;
var _835=_834.parentNode.parentNode.id.split("_")[1];
var _836=document.getElementById("event_"+_835).childNodes[5].firstChild.text;
var _837=document.getElementById("eventListChecked").childNodes[3];
var _838=dojo.create("tr");
var _839=document.createAttribute("id");
_839.nodeValue="checkedEvent_"+_835;
_838.setAttributeNode(_839);
var _83a=dojo.create("td");
var _83b=dojo.create("a");
var _839=document.createAttribute("class");
_839.nodeValue="showEventAgain ndOrder";
_83b.setAttributeNode(_839);
var _839=document.createAttribute("href");
_839.nodeValue="javascript:void(0)";
_83b.setAttributeNode(_839);
_83b.appendChild(document.createTextNode(_836));
_83a.appendChild(_83b);
_838.appendChild(_83a);
_837.appendChild(_838);
dojo.forEach(dojo.query(".showEventAgain"),dojo.hitch(this,function(elem){
dojo.connect(elem,"onclick",this,this.undoMarkChecked);
}));
dojo.hitch(this,this.startLoadingIcon());
dojo.stopEvent(_833);
dojo.hitch(this,this.stopLoadingIcon());
dojo.xhrPost({url:"/admin/event/markChecked/id/"+_835,handleAs:"json",load:dojo.hitch(this,function(data){
if(null==data.error){
document.getElementById("event_"+_835).style.display="none";
document.getElementById("event_"+_835+"_secondRow").style.display="none";
document.getElementById("event_"+_835+"_lastRow").style.display="none";
dojo.destroy("eventDetails_"+_835);
}
dojo.hitch(this,this.stopLoadingIcon());
}),error:dojo.hitch(function(_83c,_83d){
dojo.hitch(this,this.stopLoadingIcon());
return _83c;
})});
},undoMarkChecked:function $DBBh_(_83e){
var _83f=_83e.currentTarget.parentNode.parentNode.id.split("_")[1];
var _840=document.getElementById("eventListChecked").childNodes[3];
document.getElementById("event_"+_83f).style.display="";
document.getElementById("event_"+_83f+"_secondRow").style.display="";
document.getElementById("event_"+_83f+"_lastRow").style.display="";
dojo.destroy("checkedEvent_"+_83f);
},followupEvent:function $DBBi_(_841){
var _842=_841.currentTarget.parentNode.parentNode.id.split("_")[1];
dojo.xhrPost({url:"/admin/event/followup",content:{id:_842},handleAs:"json",load:dojo.hitch(this,function(data){
if(null==data.error){
document.getElementById("event_"+_842).style.display="none";
document.getElementById("event_"+_842+"_secondRow").style.display="none";
document.getElementById("event_"+_842+"_lastRow").style.display="none";
dojo.destroy("eventDetails_"+_842);
}
dojo.hitch(this,this.stopLoadingIcon());
}),error:dojo.hitch(function(_843,_844){
dojo.hitch(this,this.stopLoadingIcon());
return _843;
})});
},toggleEventComment:function $DBBj_(_845){
dojo.stopEvent(_845);
var cell=_845.currentTarget.parentNode;
var _846=cell.parentNode.id.split("_")[1];
if(dojo.byId("eventCommentContainer").style.display=="none"){
dojo.fx.wipeIn({node:dojo.byId("eventCommentContainer"),duration:500}).play();
dojo.query("#eventCommentContainer input[type='submit']",cell).onclick(dojo.hitch(this,this.submitComment));
dojo.query("#eventCommentContainer input[type='reset']",cell).onclick(function(e){
dojo.stopEvent(e);
dojo.fx.wipeOut({node:dojo.byId("eventCommentContainer"),duration:500}).play();
});
}else{
dojo.fx.wipeOut({node:dojo.byId("eventCommentContainer"),duration:500}).play();
}
},toggleComment:function $DBBk_(_847){
dojo.stopEvent(_847);
var cell=_847.currentTarget.parentNode;
var _848=cell.parentNode.id.split("_")[1];
if(dojo.byId("commentContainer").style.display=="none"){
dojo.fx.wipeIn({node:dojo.byId("commentContainer"),duration:500}).play();
dojo.query(".addComment",cell).onclick(dojo.hitch(this,this.addComment));
dojo.query("#formComment input[type='submit']",cell).onclick(dojo.hitch(this,this.submitComment));
dojo.query("#formComment input[type='reset']",cell).onclick(function(e){
dojo.stopEvent(e);
dojo.fx.wipeIn({node:dojo.byId("commentContainer"),duration:500}).play();
});
}else{
dojo.fx.wipeOut({node:dojo.byId("commentContainer"),duration:500}).play();
dojo.query(".hideCommentsOnInitiator",cell).attr("class","viewCommentsOnInitiator");
}
},toggleEmail:function $DBBl_(_849){
dojo.stopEvent(_849);
var cell=_849.currentTarget.parentNode;
if(0!=dojo.query(".mailInitiator",cell).length||this.sentMail){
if(this.sentMail){
dojo.fx.wipeIn({node:dojo.byId("mailContainer"),duration:200}).play();
dojo.query(".mailInitiator",cell).attr("class","hideMailInitiator");
this.sentMail=false;
}else{
dojo.fx.wipeIn({node:dojo.byId("mailContainer"),duration:200}).play();
dojo.query(".mailInitiator",cell).attr("class","hideMailInitiator");
}
if(false==this.attachedToggleMailEvents){
dojo.query(".viewMail",cell).onclick(dojo.hitch(this,this.viewMail));
dojo.query(".sendMail",cell).onclick(dojo.hitch(this,this.sendMail));
this.attachedToggleMailEvents=true;
}
}else{
dojo.fx.wipeOut({node:dojo.byId("mailContainer"),duration:200}).play();
dojo.query(".hideMailInitiator",cell).attr("class","mailInitiator");
}
},toggleTeamEmail:function $DBBm_(_84a){
dojo.stopEvent(_84a);
var cell=_84a.currentTarget.parentNode;
if(0!=dojo.query(".mailTeam",cell).length){
dojo.fx.wipeIn({node:dojo.byId("escalationContainer"),duration:200}).play();
dojo.query(".mailTeam",cell).attr("class","hideMailTeam");
dojo.query(".viewMail",cell).onclick(dojo.hitch(this,this.viewMail));
dojo.query(".sendMail",cell).onclick(dojo.hitch(this,this.sendEscalationMail));
}else{
dojo.fx.wipeOut({node:dojo.byId("escalationContainer"),duration:200}).play();
dojo.query(".hideMailTeam",cell).attr("class","mailTeam");
}
},viewMail:function $DBBn_(_84b){
dojo.hitch(this,this.startLoadingIcon());
dojo.stopEvent(_84b);
var form=_84b.currentTarget.parentNode;
var _84c=dojo.query(".mailPreview",form)[0];
if(_84c.style.display!="none"){
dojo.hitch(this,this.stopLoadingIcon());
dojo.fx.wipeOut({node:_84c,duration:500}).play();
return;
}
var _84d=dojo.byId("event_"+form.eventId.value);
var _84e=dojo.query(".ndOrder",_84d)[0].innerHTML;
var _84f=dojo.query(".ndOrder",_84d)[1].innerHTML;
var _850=form.eventId.value;
var _851=dojo.query(".emailSelector",form)[0].value;
dojo.xhrPost({url:"/admin/event/getMailOption",handleAs:"json",content:{eventId:_850,eventName:_84f,userName:_84e,option:_851},load:dojo.hitch(this,function(_852){
if(null==_852.error){
dojo.fx.wipeIn({node:_84c,duration:500}).play();
dojo.query(".mailSubject",form).attr("value",_852.data.subject);
dojo.query(".mailBody",form).attr("innerHTML",_852.data.ascii);
}else{
alert(_852.message);
}
dojo.hitch(this,this.stopLoadingIcon());
}),error:dojo.hitch(this,function(_853,_854){
alert(_853.message);
dojo.hitch(this,this.stopLoadingIcon());
return _853;
})});
},sendMail:function $DBBo_(_855){
dojo.hitch(this,this.startLoadingIcon());
dojo.stopEvent(_855);
var self=this;
var form=_855.currentTarget.parentNode;
dojo.xhrPost({url:"/admin/event/sendMail",handleAs:"json",form:form,load:dojo.hitch(this,function(_856){
dojo.hitch(this,this.stopLoadingIcon());
alert(_856.message);
if(null==_856.error){
self.sentMail=true;
dojo.fx.wipeOut({node:dojo.byId("mailContainer"),duration:200}).play();
dojo.query(".hideMailInitiator",cell).attr("class","mailInitiator");
}
}),error:function $DBBp_(_857,_858){
dojo.hitch(this,this.stopLoadingIcon());
alert(_857.message);
}});
},sendEscalationMail:function $DBBq_(_859){
dojo.hitch(this,this.startLoadingIcon());
dojo.stopEvent(_859);
var form=_859.currentTarget.parentNode;
dojo.xhrPost({url:"/admin/event/sendEscalationMail",handleAs:"json",form:form,load:dojo.hitch(this,function(_85a){
dojo.hitch(this,this.stopLoadingIcon());
alert(_85a.message);
if(null==_85a.error){
dojo.fx.wipeOut({node:dojo.byId("escalationContainerContainer"),duration:500}).play();
dojo.query(".hideMailTeam",form).attr("class","mailTeam");
}
}),error:function $DBBr_(_85b,_85c){
dojo.hitch(this,this.stopLoadingIcon());
alert(_85b.message);
}});
},addComment:function $DBBs_(_85d){
dojo.stopEvent(_85d);
var _85e=dojo.query(".commentBox",_85d.currentTarget.parentNode)[0];
var _85f=dojo.query(".commentSelector",_85d.currentTarget.parentNode)[0].value;
var now=new Date();
_85e.value=now.toLocaleString()+": "+_85f+"\n---\n"+_85e.value;
},submitComment:function $DBBt_(_860){
dojo.hitch(this,this.startLoadingIcon());
dojo.stopEvent(_860);
var form=_860.currentTarget.parentNode;
dojo.xhrPost({url:form.action,handleAs:"json",content:{comment:form.commentBox.value},load:dojo.hitch(this,function(_861){
dojo.hitch(this,this.stopLoadingIcon());
alert("Der Kommentar wurde gespeichert.");
dojo.fx.wipeOut({node:form.parentNode,duration:500}).play();
}),error:dojo.hitch(this,function(_862,_863){
dojo.hitch(this,this.stopLoadingIcon());
alert("Der Kommentar konnte nicht gespeichert werden. Kopiere den Inhalt des Kommentars und prüfe ob er eintragen wurde.");
return _862;
})});
},setDeleteIcon:function $DBBu_(_864,_865){
dojo.query(".deleteIcon",_864).onclick(dojo.hitch(this,function(e){
if(confirm("Das Event wirklich als gelöscht markieren?")){
dojo.hitch(this,this.startLoadingIcon());
dojo.stopEvent(e);
dojo.xhrPost({url:"/admin/event/delete/id/"+_865,handleAs:"json",load:dojo.hitch(this,function(_866){
dojo.hitch(this,this.stopLoadingIcon());
alert(_866.message);
}),error:dojo.hitch(this,function(_867,_868){
dojo.hitch(this,this.stopLoadingIcon());
alert("Konnte Event konnte nicht als gelöscht markieren. Fehlermeldung war: "+_867);
return _867;
})});
}
}));
},setSuspendIcon:function $DBBv_(_869,_86a){
suspendIcon=dojo.query(".suspendIcon",_869);
suspendIcon.onclick(dojo.hitch(this,function(e){
if(confirm("Das Event wirklich sperren?")){
dojo.hitch(this,this.startLoadingIcon());
dojo.stopEvent(e);
dojo.xhrPost({url:"/admin/event/lock/id/"+_86a,handleAs:"json",load:dojo.hitch(this,function(_86b){
dojo.hitch(this,this.stopLoadingIcon());
alert(_86b.message);
}),error:dojo.hitch(this,function(_86c,_86d){
dojo.hitch(this,this.stopLoadingIcon());
alert("Konnte Event nicht sperren. Fehlermeldung war: "+_86c);
return _86c;
})});
}
}));
},startLoadingIcon:function $DBBw_(_86e){
if(null==_86e){
_86e="loadingIcon";
}
dojo.place("<div class=\"loading\" style=\"float:right\">",dojo.byId(_86e));
},stopLoadingIcon:function $DBBx_(){
dojo.forEach(dojo.query(".loading"),function(e){
dojo.destroy(e);
});
},deleteUser:function $DBBy_(_86f){
if(confirm("Nutzer wirklich löschen? DER SCHRITT LÖSCHT DATEN UNWIDERRUFLICH!")){
location.href=this.newAdminUrl+"delete?userId="+_86f;
}
},editMail:function $DBBz_(_870){
dojo.style("adminChangeMail","display","none");
var mail=dojo.byId("adminMail");
var _871=mail.innerHTML;
var form=dojo.create("form",{id:"mailForm",action:""},mail,"replace");
form.innerHTML="<input name=\"mail\" type=\"text\" value=\""+_871+"\" /><input name=\"submit\" class=\"submit\" type=\"submit\" />";
dojo.connect(form,"onsubmit",this,function(e){
dojo.stopEvent(e);
if(form.mail.value==_871){
dojo.create("a",{id:"adminMail",href:"mailto:"+form.mail.value,innerHTML:form.mail.value},form,"replace");
dojo.style("adminChangeMail","display","");
return;
}
dojo.xhrPost({url:this.newAdminUrl+"saveEmail",handleAs:"json",content:{userId:_870},form:form,load:function $DBB0_(data){
if(null==data.error){
dojo.create("a",{id:"adminMail",href:"mailto:"+form.mail.value,innerHTML:form.mail.value},form,"replace");
dojo.style("adminChangeMail","display","");
}else{
alert(data.message);
}
}});
});
},deleteIpBan:function $DBB1_(evt){
banId=evt.currentTarget.id.split("_")[1];
dojo.xhrPost({url:"/admin/user/removeIpBan",handleAs:"json",content:{id:banId},load:function $DBB2_(data){
if(null==data.error){
dojo.destroy(dojo.query("#del_"+banId)[0].parentNode.parentNode);
}else{
alert(data.message);
}
}});
},addToWhitelist:function $DBB3_(_872){
if(confirm("Den Nutzer von weiteren Spamchecks ausnehmen?")){
dojo.xhrPost({url:"/admin/user/addToWhitelist",handleAs:"json",content:{id:_872},load:function $DBB4_(data){
if(null==data.error){
dojo.byId("whitelist").style.display="none";
dojo.byId("dewhitelist").style.display="block";
}else{
alert(data.message);
}
}});
}
return false;
},removeFromWhitelist:function $DBB5_(_873){
if(confirm("Den Nutzer von der PN-Whitelist nehmen?")){
dojo.xhrPost({url:"/admin/user/removeFromWhitelist",handleAs:"json",content:{id:_873},load:function $DBB6_(data){
if(null==data.error){
dojo.byId("whitelist").style.display="block";
dojo.byId("dewhitelist").style.display="none";
}else{
alert(data.message);
}
}});
}
return false;
}});
}
if(!dojo._hasResource["singles.widget.ButtonDialog"]){
dojo._hasResource["singles.widget.ButtonDialog"]=true;
if(typeof window.BUTTON_DIALOG_FUNC=="undefined"){
window.BUTTON_DIALOG_FUNC={};
}
dojo.provide("singles.widget.ButtonDialog");
dojo.declare("singles.widget.ButtonDialog",s3w.widget.AbstractDialog,{buttonStyle:"display:block",curBtn:null,postCreate:function $DBD2_(){
var ret=this.inherited(arguments);
if(typeof this.params["buttons"]!=undefined&&this.params["buttons"]!=null&&this.params["buttons"].length>0){
var _874=this.params.buttons;
var _875="";
for(var i=0;i<_874.length;i++){
window.WIDGET_ID_COUNT++;
if(_874[i]["html"]==null||_874[i]["html"].length==0){
alert("FEHLER: ButtonDialog enthält Button ohne html-Attribut!");
_874[i]["html"]="";
}
if(_874[i]["id"]==null||_874[i]["id"].length==0){
alert("FEHLER: ButtonDialog enthält Button ohne id-Attribut!");
_874[i]["id"]="ButtonDialogButton_???";
}
if(_874[i]["style"]==null||_874[i]["style"].length==0){
_874[i]["style"]="";
}
if(_874[i]["cls"]==null||_874[i]["cls"].length==0){
_874[i]["cls"]="submit";
}
if(_874[i]["onClick"]==null){
_874[i]["onClick"]=function(){
};
}
_874[i].id=_874[i].id+"-"+window.WIDGET_ID_COUNT;
_875+="<button id='"+_874[i].id+"' style='"+_874[i].style+"' widgetid='"+_874[i].id+"' "+"type='button' "+"dojoType='dijit.form.Button'>"+_874[i].html+"</button>";
window.BUTTON_DIALOG_FUNC[_874[i].id]=_874[i].onClick;
}
_875="<div style='"+this.buttonStyle+"'>"+_875+"</div>";
this.attr("content",this.attr("content")+_875);
dojo.parser.parse(this.containerNode);
var _876=null;
for(var i=0;i<_874.length;i++){
this.curBtn=_874[i];
_876=dijit.byId(this.curBtn.id);
dojo.connect(_876.containerNode.parentNode,"onclick",dojo.hitch(this,function(evt){
var _877=evt.originalTarget;
if(typeof _877=="undefined"){
_877=evt.target.parentNode;
if(dojo.isIE){
_877=evt.srcElement;
}
}
window.BUTTON_DIALOG_FUNC[_877.id](evt,dijit.byId(_877.id),this);
}));
dojo.addClass(dojo.byId(this.curBtn.id),this.curBtn.cls);
}
}
return ret;
}});
}
if(!dojo._hasResource["singles.admin.Booking"]){
dojo._hasResource["singles.admin.Booking"]=true;
dojo.provide("singles.admin.Booking");
dojo.declare("singles.admin.Booking",null,{assignDeleteEvents:function $DBDk_(){
dojo.query(".deleteIcon").onclick(dojo.hitch(this,function(e){
dojo.stopEvent(e);
this.deleteOrder(e.currentTarget.parentNode.parentNode.id.split("_")[1]);
}));
dojo.query(".showInfo").onclick(dojo.hitch(this,function(e){
dojo.stopEvent(e);
this.showInfoForm(e.currentTarget.parentNode.parentNode.id.split("_")[1]);
}));
},assignShowStornoEvent:function $DBDl_(){
dojo.query(".showStorno").onchange(function(e){
dojo.stopEvent(e);
if(e.currentTarget.checked){
dojo.query(".hidden").attr("class","show");
}else{
dojo.query(".show").attr("class","hidden");
}
});
},assignShowStornoMailEvent:function $DBDm_(){
dojo.connect(dojo.byId("showmail"),"onclick",this,function(e){
dojo.stopEvent(e);
if(dojo.byId("admindeleteOrder.sendMail").selectedIndex==0){
alert("Bitte auswählen, ob oder welche Mail versandt werden soll!");
dojo.stopEvent(e);
}else{
if(dojo.byId("admindeleteOrder.sendMail").selectedIndex>1){
this.showStornoMail(dojo.query("form[name='admindeleteOrder']")[0]);
}
}
});
},assignExtendPremiumFormEvents:function $DBDn_(){
dojo.connect(dojo.byId("showmail"),"onclick",this,function(e){
dojo.stopEvent(e);
if((0==dojo.byId("adminExtendPremium.packages").selectedIndex&&(0==dojo.byId("adminExtendPremium.number").selectedIndex||0==dojo.byId("adminExtendPremium.unit").selectedIndex)&&(0==dojo.byId("adminExtendPremium.day").selectedIndex||0==dojo.byId("adminExtendPremium.month").selectedIndex||0==dojo.byId("adminExtendPremium.year").selectedIndex))||0==dojo.byId("adminExtendPremium.option").selectedIndex){
alert("Du mußt ein Paket und eine Mail auswählen um diese anzeigen zu lassen.");
dojo.stopEvent(e);
}else{
this.showExtendPremiumMail(dojo.query("form[name='adminExtendPremium']")[0]);
}
});
dojo.query(dojo.byId("adminExtendPremium")).onsubmit(dojo.hitch(this,function(e){
if(0==dojo.byId("adminExtendPremium.packages").selectedIndex&&(0==dojo.byId("adminExtendPremium.number").selectedIndex||0==dojo.byId("adminExtendPremium.unit").selectedIndex)&&(0==dojo.byId("adminExtendPremium.day").selectedIndex||0==dojo.byId("adminExtendPremium.month").selectedIndex||0==dojo.byId("adminExtendPremium.year").selectedIndex)){
alert("Du mußt ein Paket oder einen Zeitraum wählen um zu verlängern.");
dojo.byId("adminExtendPremium.packages").focus();
dojo.stopEvent(e);
}
if(true==dojo.byId("adminExtendPremium.sendMail").checked&&0==dojo.byId("adminExtendPremium.option").selectedIndex){
alert("Du mußt eine Emailvorlage auswählen oder das Häkchen bei \"Mail verschicken\" rausnehmen.");
dojo.byId("adminExtendPremium.option").focus();
dojo.stopEvent(e);
}
}));
},assignSelectDate:function $DBDo_(){
dojo.connect(dojo.byId("bookingDayFrom"),"onchange",this,function(e){
var _878=dojo.byId("bookingDayFrom");
var _879=dojo.byId("bookingDayTo");
_879.selectedIndex=_878.selectedIndex;
});
dojo.connect(dojo.byId("bookingMonthFrom"),"onchange",this,function(e){
var _87a=dojo.byId("bookingMonthFrom");
var _87b=dojo.byId("bookingMonthTo");
_87b.selectedIndex=_87a.selectedIndex;
});
},showInfoForm:function $DBDp_(_87c){
var node=dojo.byId("info_"+_87c);
if(node!=null){
node.parentNode.removeChild(node);
}else{
dojo.xhrPost({url:"/admin/booking/showInfoForm",content:{orderId:_87c},handleAs:"json",load:dojo.hitch(this,function(data){
if(null==data.error){
var _87d=dojo.create("tr",{id:"info_"+_87c},"order_"+_87c,"after");
_87d.innerHTML=data.message;
dojo.query("form",_87d).onsubmit(dojo.hitch(this,function(e){
dojo.stopEvent(e);
this.sendForm(e.currentTarget,_87c);
}));
}else{
alert(data.message);
}
})});
}
},showExtendPremiumMail:function $DBDq_(form){
if(form.mailBody.style.display=="none"){
window.LoadingMask.show("header");
dojo.xhrPost({url:BaseURL+"/admin/booking/showExtendPremiumMail",form:form,handleAs:"json",load:function $DBDr_(data){
if(null==data.error){
form.mailBody.value=data.message;
dojo.fx.wipeIn({node:form.mailBody,duration:300}).play();
window.LoadingMask.hide();
}else{
alert(data.message);
window.LoadingMask.hide();
}
}});
}else{
dojo.fx.wipeOut({node:form.mailBody,duration:300}).play();
}
},showStornoMail:function $DBDs_(form){
if(form.mailBody.style.display=="none"){
window.LoadingMask.show("header");
dojo.xhrPost({url:BaseURL+"/admin/booking/showDeleteOrderMail",form:form,handleAs:"json",load:function $DBDt_(data){
if(null==data.error){
form.mailBody.value=data.message;
dojo.fx.wipeIn({node:form.mailBody,duration:300}).play();
window.LoadingMask.hide();
}else{
alert(data.message);
window.LoadingMask.hide();
}
}});
}else{
dojo.fx.wipeOut({node:form.mailBody,duration:300}).play();
}
},deleteOrder:function $DBDu_(_87e){
var _87f=new singles.widget.ButtonDialog({title:"Buchung stornieren",style:"width: 700px",toggleUnderlay:true,draggable:true,content:"<form name=\"admindeleteOrder\" method=\"post\" accept-charset=\"UTF-8\" id=\"admindeleteOrder\">"+"<input type=\"hidden\" id=\"admindeleteOrder.orderId\" class=\"hidden\" name=\"orderId\" value=\""+_87e+"\" />"+"<div class=\"elementContainer\">"+"<label for=\"admindeleteOrder.sendMail\">Mail verschicken:</label>"+"<select id=\"admindeleteOrder.sendMail\" class=\"select\" name=\"option\">"+"<option value=\"\" selected=\"selected\">-- bitte wählen --</option>"+"<option value=\"0\">keine Mail verschicken</option>"+"<option value=\"10\">Erste Rückbuchung</option>"+"<option value=\"11\">Zweite Rückbuchung</option>"+"</select>"+"<a class=\"ndOrder\" style=\"margin-left:10em\" href=\"\" id=\"showmail\">Mail anzeigen</a>"+"<br />"+"<textarea id=\"admindeleteOrder.mailBody\" name=\"mailBody\" rows=\"25\" cols=\"80\" style=\"display:none;margin-top:2em\"></textarea>"+"</div>"+"<div class=\"elementContainer\">"+"<label for=\"admindeleteOrder.lockUser\">User sperren:</label>"+"<input type=\"checkbox\" id=\"admindeleteOrder.lockUser\" class=\"checkbox\" name=\"admindeleteOrder.lockUser\" value=\"1\" />"+"</div>"+"<div class=\"elementContainer\">"+"<label for=\"admindeleteOrder.reducePremiumTsp\">Zeitstempel zurücksetzen:</label>"+"<input type=\"checkbox\" id=\"admindeleteOrder.reducePremiumTsp\" class=\"checkbox\" name=\"admindeleteOrder.reducePremiumTsp\" value=\"1\" checked=\"checked\" />"+"</div>"+"<div class=\"elementContainer\">"+"<label for=\"admindeleteOrder.autoAdminComment\">Admin-Kommentar:</label>"+"<input type=\"checkbox\" id=\"admindeleteOrder.autoAdminComment\" class=\"checkbox\" name=\"admindeleteOrder.autoAdminComment\" value=\"1\" checked=\"checked\" />"+"</div>"+"</form>"+"<script>var booking = new singles.admin.Booking(); booking.assignShowStornoMailEvent();</script>",buttonStyle:"display:block;margin-bottom:3px",buttons:[{html:"stornieren",onClick:function $DBDv_(evt,_880,_881){
if(dojo.byId("admindeleteOrder.sendMail").value==""){
alert("Bitte auswählen, ob eine Mail verschickt werden soll");
}else{
window.LoadingMask.show("header");
_87f.hide();
dojo.xhrPost({url:"/admin/booking/deleteOrder",content:{orderId:_87e,lockUser:dojo.byId("admindeleteOrder.lockUser").checked?1:0,reducePremiumTsp:dojo.byId("admindeleteOrder.reducePremiumTsp").checked?1:0,sendMail:dojo.byId("admindeleteOrder.sendMail").value,mailBody:dojo.byId("admindeleteOrder.mailBody").checked?1:0,autoAdminComment:dojo.byId("admindeleteOrder.autoAdminComment").checked?1:0},handleAs:"json",load:function $DBDw_(data){
if(null==data.error){
window.location.reload();
}else{
window.LoadingMask.hide();
alert(data.message);
}
}});
}
},id:"forward",style:"float:left;font-size: 1.2em; margin: 0 0.5em 0 0;"},{html:"Abbrechen",onClick:function $DBDx_(evt,_882,_883){
_87f.hide();
},cls:"ndOrder",id:"back",style:"float:left; font-size: 1.2em; margin: 0.5em 0 0 0.5em;"}]});
_87f.show();
},sendForm:function $DBDy_(form,_884){
dojo.xhrPost({url:"/admin/booking/deleteOrder",form:form,handleAs:"json",load:function $DBDz_(data){
if(null==data.error){
dojo.destroy("order_"+_884);
dojo.destroy("info_"+_884);
}else{
alert(data.message);
}
}});
},showDeleteMail:function $DBD0_(_885,_886,_887){
if(_886.style.display=="none"){
dojo.xhrPost({url:"/admin/booking/showDeleteOrderMail",content:{option:_885.value,orderId:_887.value},handleAs:"json",load:function $DBD1_(data){
if(null==data.error){
_886.value=data.message;
dojo.fx.wipeIn({node:_886,duration:300}).play();
}else{
alert(data.message);
}
}});
}else{
dojo.fx.wipeOut({node:_886,duration:300}).play();
}
}});
dojo.global.app.booking=singles.admin.Booking;
}
if(!dojo._hasResource["s3w.widget._ComboBoxMenu"]){
dojo._hasResource["s3w.widget._ComboBoxMenu"]=true;
dojo.provide("s3w.widget._ComboBoxMenu");
dojo.declare("s3w.widget._ComboBoxMenu",dijit.form._ComboBoxMenu,{_highlightPrevOption:function $DBIh_(){
var lc=this.domNode.lastChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);
}else{
var ps=this._highlighted_option.previousSibling;
if(ps&&ps.style.display!="none"){
this._focusOptionNode(ps);
}else{
this.highlightLastOption();
}
}
dijit.scrollIntoView(this._highlighted_option);
},_highlightNextOption:function $DBIi_(){
var fc=this.domNode.firstChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);
}else{
var ns=this._highlighted_option.nextSibling;
if(ns&&ns.style.display!="none"){
this._focusOptionNode(ns);
}else{
this.highlightFirstOption();
}
}
dijit.scrollIntoView(this._highlighted_option);
}});
dojo.provide("s3w.widget.SuggestionField");
dojo.declare("s3w.widget.SuggestionField",dijit.form.ComboBox,{searchDelay:300,queryExpr:"*",_startSearch:function $DBIj_(key){
if(!this._popupWidget){
var _888=this.id+"_popup";
this._popupWidget=new s3w.widget._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_888});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_888);
}
var _889=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_889[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_88a,_88b){
this.searchTimer=null;
var _88c=encodeURIComponent(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));
if(unescape(_88c).length>=3){
this._lastSearchInput=this._lastInput;
this.store.close();
this.store._loadFinished=false;
this.store._jsonFileUrl=this.abstractQueryUrl+_88c;
this.store.fetch();
var _88d={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_88a,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function $DBIk_(_88e){
_88b._fetchHandle=null;
console.error("dijit.form.ComboBox: "+_88e);
dojo.hitch(_88b,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_88d,_88b.fetchProperties);
this._fetchHandle=_88b.store.fetch(_88d);
var _88f=function(_890,_891){
_890.start+=_890.count*_891;
_890.direction=_891;
this._fetchHandle=this.store.fetch(_890);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_88f,this._fetchHandle);
}
},_889,this),this.searchDelay);
},postCreate:function $DBIl_(){
this.inherited(arguments);
this.downArrowNode.style.display="none";
this.focus();
},_openResultList:function $DBIm_(){
this.inherited(arguments);
},_showResultList:function $DBIn_(){
this.inherited(arguments);
}});
}
if(!dojo._hasResource["singles.widget.SuggestionField"]){
dojo._hasResource["singles.widget.SuggestionField"]=true;
dojo.provide("singles.widget.SuggestionField");
dojo.declare("singles.widget.SuggestionField",s3w.widget.SuggestionField,{searchDelay:50,pageSize:10,abstractQueryUrl:"REPLACE_URL_HERE"});
}
if(!dojo._hasResource["singles.admin.BookingUserSearch"]){
dojo._hasResource["singles.admin.BookingUserSearch"]=true;
dojo.provide("singles.admin.BookingUserSearch");
dojo.declare("singles.admin.BookingUserSearch",singles.widget.SuggestionField,{searchDelay:0,abstractQueryUrl:"/user/search/autocomplete/q/",postCreate:function $DBDO_(){
this.inherited(arguments);
this.downArrowNode.style.display="none";
dojo.connect(this.textbox,"onkeypress",dojo.hitch(this,function(evt){
if(evt.keyCode==dojo.keys.ENTER){
if(typeof dojo.byId("usernameSearchForm").submit!="undefined"){
dojo.byId("usernameSearchForm").submit();
}
}
if(evt.keyCode==dojo.keys.TAB){
if(this.nextTabFocusId.length>0){
dojo.stopEvent(evt);
dojo.byId(this.nextTabFocusId).focus();
}
}
}));
this.focus();
},_selectOption:function $DBDP_(evt){
var ret=this.inherited(arguments);
if(typeof dojo.byId("usernameSearchForm").submit!="undefined"){
dojo.byId("usernameSearchForm").submit();
}
return ret;
}});
}
if(!dojo._hasResource["singles.admin.CCEditInPlace"]){
dojo._hasResource["singles.admin.CCEditInPlace"]=true;
dojo.provide("singles.admin.CCEditInPlace");
dojo.declare("singles.admin.CCEditInPlace",s3w.widget.EditInPlace,{hookCheckKeyEventForInstance:function $DBDi_(_892){
var _893=[];
var _894=dojo.query(".userEntry").forEach(function(_895){
if(dojo.style(_895,"display")!="none"){
_893.push(_895);
}
});
var _896=_893[0];
var _897=dojo.query("#"+_896.id+" #"+this.domNodeEle.id).length;
if(_897>0){
return true;
}else{
return false;
}
}});
dojo.provide("singles.admin.CCEditInPlaceParser");
dojo.declare("singles.admin.CCEditInPlaceParser",s3w.widget.EditInPlaceParser,{searchCssClassName:"CCEditInPlace",registerEditInPlace:function $DBDj_(_898){
var _899=_898.innerHTML;
var _89a=new singles.admin.CCEditInPlace();
_89a.render(dojo.fromJson(_899));
dojo.addClass(_898,"EditInPlaceRegistered");
}});
dojo.addOnLoad(function(){
var _89b=new singles.admin.CCEditInPlaceParser();
_89b.parse(window.document.body);
});
}
if(!dojo._hasResource["singles.widget.AbstractDialog"]){
dojo._hasResource["singles.widget.AbstractDialog"]=true;
dojo.provide("singles.widget.AbstractDialog");
dojo.declare("singles.widget.AbstractDialog",s3w.widget.AbstractDialog,{});
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function $DBNO_(name,_89c,_89d){
var c=document.cookie;
if(arguments.length==1){
var _89e=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));
return _89e?decodeURIComponent(_89e[1]):undefined;
}else{
_89d=_89d||{};
var exp=_89d.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_89d.expires=d;
}
if(exp&&exp.toUTCString){
_89d.expires=exp.toUTCString();
}
_89c=encodeURIComponent(_89c);
var _89f=name+"="+_89c,_8a0;
for(_8a0 in _89d){
_89f+="; "+_8a0;
var _8a1=_89d[_8a0];
if(_8a1!==true){
_89f+="="+_8a1;
}
}
document.cookie=_89f;
}
};
dojo.cookie.isSupported=function $DBNP_(){
if(!("cookieEnabled" in navigator)){
this("__djCookieTest__","CookiesAllowed");
navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";
if(navigator.cookieEnabled){
this("__djCookieTest__","",{expires:-1});
}
}
return navigator.cookieEnabled;
};
}
if(!dojo._hasResource["dijit.form.ToggleButton"]){
dojo._hasResource["dijit.form.ToggleButton"]=true;
dojo.provide("dijit.form.ToggleButton");
}
if(!dojo._hasResource["dijit.layout.StackController"]){
dojo._hasResource["dijit.layout.StackController"]=true;
dojo.provide("dijit.layout.StackController");
dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function $DAyx_(){
dijit.setWaiRole(this.domNode,"tablist");
this.pane2button={};
this.pane2handles={};
this.subscribe(this.containerId+"-startup","onStartup");
this.subscribe(this.containerId+"-addChild","onAddChild");
this.subscribe(this.containerId+"-removeChild","onRemoveChild");
this.subscribe(this.containerId+"-selectChild","onSelectChild");
this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress");
},onStartup:function $DAyy_(info){
dojo.forEach(info.children,this.onAddChild,this);
if(info.selected){
this.onSelectChild(info.selected);
}
},destroy:function $DAyz_(){
for(var pane in this.pane2button){
this.onRemoveChild(dijit.byId(pane));
}
this.inherited(arguments);
},onAddChild:function $DAy0_(page,_8a2){
var _8a3=dojo.doc.createElement("span");
this.domNode.appendChild(_8a3);
var cls=dojo.getObject(this.buttonWidget);
var _8a4=new cls({id:this.id+"_"+page.id,label:page.title,showLabel:page.showTitle,iconClass:page.iconClass,closeButton:page.closable,title:page.tooltip},_8a3);
dijit.setWaiState(_8a4.focusNode,"selected","false");
this.pane2handles[page.id]=[this.connect(page,"attr",function(name,_8a5){
if(arguments.length==2){
var _8a6={title:"label",showTitle:"showLabel",iconClass:"iconClass",closable:"closeButton",tooltip:"title"}[name];
if(_8a6){
_8a4.attr(_8a6,_8a5);
}
}
}),this.connect(_8a4,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_8a4,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];
this.addChild(_8a4,_8a2);
this.pane2button[page.id]=_8a4;
page.controlButton=_8a4;
if(!this._currentChild){
_8a4.focusNode.setAttribute("tabIndex","0");
dijit.setWaiState(_8a4.focusNode,"selected","true");
this._currentChild=page;
}
if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){
this._rectifyRtlTabList();
}
},onRemoveChild:function $DAy1_(page){
if(this._currentChild===page){
this._currentChild=null;
}
dojo.forEach(this.pane2handles[page.id],this.disconnect,this);
delete this.pane2handles[page.id];
var _8a7=this.pane2button[page.id];
if(_8a7){
this.removeChild(_8a7);
delete this.pane2button[page.id];
_8a7.destroy();
}
delete page.controlButton;
},onSelectChild:function $DAy2_(page){
if(!page){
return;
}
if(this._currentChild){
var _8a8=this.pane2button[this._currentChild.id];
_8a8.attr("checked",false);
dijit.setWaiState(_8a8.focusNode,"selected","false");
_8a8.focusNode.setAttribute("tabIndex","-1");
}
var _8a9=this.pane2button[page.id];
_8a9.attr("checked",true);
dijit.setWaiState(_8a9.focusNode,"selected","true");
this._currentChild=page;
_8a9.focusNode.setAttribute("tabIndex","0");
var _8aa=dijit.byId(this.containerId);
dijit.setWaiState(_8aa.containerNode,"labelledby",_8a9.id);
},onButtonClick:function $DAy3_(page){
var _8ab=dijit.byId(this.containerId);
_8ab.selectChild(page);
},onCloseButtonClick:function $DAy4_(page){
var _8ac=dijit.byId(this.containerId);
_8ac.closeChild(page);
if(this._currentChild){
var b=this.pane2button[this._currentChild.id];
if(b){
dijit.focus(b.focusNode||b.domNode);
}
}
},adjacent:function $DAy5_(_8ad){
if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){
_8ad=!_8ad;
}
var _8ae=this.getChildren();
var _8af=dojo.indexOf(_8ae,this.pane2button[this._currentChild.id]);
var _8b0=_8ad?1:_8ae.length-1;
return _8ae[(_8af+_8b0)%_8ae.length];
},onkeypress:function $DAy6_(e){
if(this.disabled||e.altKey){
return;
}
var _8b1=null;
if(e.ctrlKey||!e._djpage){
var k=dojo.keys;
switch(e.charOrCode){
case k.LEFT_ARROW:
case k.UP_ARROW:
if(!e._djpage){
_8b1=false;
}
break;
case k.PAGE_UP:
if(e.ctrlKey){
_8b1=false;
}
break;
case k.RIGHT_ARROW:
case k.DOWN_ARROW:
if(!e._djpage){
_8b1=true;
}
break;
case k.PAGE_DOWN:
if(e.ctrlKey){
_8b1=true;
}
break;
case k.DELETE:
if(this._currentChild.closable){
this.onCloseButtonClick(this._currentChild);
}
dojo.stopEvent(e);
break;
default:
if(e.ctrlKey){
if(e.charOrCode===k.TAB){
this.adjacent(!e.shiftKey).onClick();
dojo.stopEvent(e);
}else{
if(e.charOrCode=="w"){
if(this._currentChild.closable){
this.onCloseButtonClick(this._currentChild);
}
dojo.stopEvent(e);
}
}
}
}
if(_8b1!==null){
this.adjacent(_8b1).onClick();
dojo.stopEvent(e);
}
}
},onContainerKeyPress:function $DAy7_(info){
info.e._djpage=info.page;
this.onkeypress(info.e);
}});
dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function $DAy8_(evt){
dijit.setWaiRole((this.focusNode||this.domNode),"tab");
this.inherited(arguments);
},onClick:function $DAy9_(evt){
dijit.focus(this.focusNode);
},onClickCloseButton:function $DAzA_(evt){
evt.stopPropagation();
}});
}
if(!dojo._hasResource["dijit.layout.StackContainer"]){
dojo._hasResource["dijit.layout.StackContainer"]=true;
dojo.provide("dijit.layout.StackContainer");
dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",postCreate:function $DAxM_(){
this.inherited(arguments);
dojo.addClass(this.domNode,"dijitLayoutContainer");
dijit.setWaiRole(this.containerNode,"tabpanel");
this.connect(this.domNode,"onkeypress",this._onKeyPress);
},startup:function $DAxN_(){
if(this._started){
return;
}
var _8b2=this.getChildren();
dojo.forEach(_8b2,this._setupChild,this);
if(this.persist){
this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));
}else{
dojo.some(_8b2,function(_8b3){
if(_8b3.selected){
this.selectedChildWidget=_8b3;
}
return _8b3.selected;
},this);
}
var _8b4=this.selectedChildWidget;
if(!_8b4&&_8b2[0]){
_8b4=this.selectedChildWidget=_8b2[0];
_8b4.selected=true;
}
dojo.publish(this.id+"-startup",[{children:_8b2,selected:_8b4}]);
this.inherited(arguments);
},resize:function $DAxO_(){
var _8b5=this.selectedChildWidget;
if(_8b5&&!this._hasBeenShown){
this._hasBeenShown=true;
this._showChild(_8b5);
}
this.inherited(arguments);
},_setupChild:function $DAxP_(_8b6){
this.inherited(arguments);
dojo.removeClass(_8b6.domNode,"dijitVisible");
dojo.addClass(_8b6.domNode,"dijitHidden");
_8b6.domNode.title="";
},addChild:function $DAxQ_(_8b7,_8b8){
this.inherited(arguments);
if(this._started){
dojo.publish(this.id+"-addChild",[_8b7,_8b8]);
this.layout();
if(!this.selectedChildWidget){
this.selectChild(_8b7);
}
}
},removeChild:function $DAxR_(page){
this.inherited(arguments);
if(this._started){
dojo.publish(this.id+"-removeChild",[page]);
}
if(this._beingDestroyed){
return;
}
if(this._started){
this.layout();
}
if(this.selectedChildWidget===page){
this.selectedChildWidget=undefined;
if(this._started){
var _8b9=this.getChildren();
if(_8b9.length){
this.selectChild(_8b9[0]);
}
}
}
},selectChild:function $DAxS_(page){
page=dijit.byId(page);
if(this.selectedChildWidget!=page){
this._transition(page,this.selectedChildWidget);
this.selectedChildWidget=page;
dojo.publish(this.id+"-selectChild",[page]);
if(this.persist){
dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);
}
}
},_transition:function $DAxT_(_8ba,_8bb){
if(_8bb){
this._hideChild(_8bb);
}
this._showChild(_8ba);
if(_8ba.resize){
if(this.doLayout){
_8ba.resize(this._containerContentBox||this._contentBox);
}else{
_8ba.resize();
}
}
},_adjacent:function $DAxU_(_8bc){
var _8bd=this.getChildren();
var _8be=dojo.indexOf(_8bd,this.selectedChildWidget);
_8be+=_8bc?1:_8bd.length-1;
return _8bd[_8be%_8bd.length];
},forward:function $DAxV_(){
this.selectChild(this._adjacent(true));
},back:function $DAxW_(){
this.selectChild(this._adjacent(false));
},_onKeyPress:function $DAxX_(e){
dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);
},layout:function $DAxY_(){
if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){
this.selectedChildWidget.resize(this._contentBox);
}
},_showChild:function $DAxZ_(page){
var _8bf=this.getChildren();
page.isFirstChild=(page==_8bf[0]);
page.isLastChild=(page==_8bf[_8bf.length-1]);
page.selected=true;
dojo.removeClass(page.domNode,"dijitHidden");
dojo.addClass(page.domNode,"dijitVisible");
page._onShow();
},_hideChild:function $DAxa_(page){
page.selected=false;
dojo.removeClass(page.domNode,"dijitVisible");
dojo.addClass(page.domNode,"dijitHidden");
page.onHide();
},closeChild:function $DAxb_(page){
var _8c0=page.onClose(this,page);
if(_8c0){
this.removeChild(page);
page.destroyRecursive();
}
},destroyDescendants:function $DAxc_(_8c1){
dojo.forEach(this.getChildren(),function(_8c2){
this.removeChild(_8c2);
_8c2.destroyRecursive(_8c1);
},this);
}});
dojo.extend(dijit._Widget,{selected:false,closable:false,iconClass:"",showTitle:true,onClose:function $DAxd_(){
return true;
}});
}
if(!dojo._hasResource["dijit.layout._TabContainerBase"]){
dojo._hasResource["dijit.layout._TabContainerBase"]=true;
dojo.provide("dijit.layout._TabContainerBase");
dojo.declare("dijit.layout._TabContainerBase",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:dojo.cache("dijit.layout","templates/TabContainer.html","<div class=\"dijitTabContainer\">\n\t<div class=\"dijitTabListWrapper\" dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n"),postMixInProperties:function $DAzJ_(){
this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");
this.srcNodeRef&&dojo.style(this.srcNodeRef,"visibility","hidden");
this.inherited(arguments);
},postCreate:function $DAzK_(){
this.inherited(arguments);
this.tablist=this._makeController(this.tablistNode);
if(!this.doLayout){
dojo.addClass(this.domNode,"dijitTabContainerNoLayout");
}
if(this.nested){
dojo.addClass(this.domNode,"dijitTabContainerNested");
dojo.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");
dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");
dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");
}else{
dojo.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"));
}
},_setupChild:function $DAzL_(tab){
dojo.addClass(tab.domNode,"dijitTabPane");
this.inherited(arguments);
},startup:function $DAzM_(){
if(this._started){
return;
}
this.tablist.startup();
this.inherited(arguments);
},layout:function $DAzN_(){
if(!this._contentBox||typeof (this._contentBox.l)=="undefined"){
return;
}
var sc=this.selectedChildWidget;
if(this.doLayout){
var _8c3=this.tabPosition.replace(/-h/,"");
this.tablist.layoutAlign=_8c3;
var _8c4=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_8c3},{domNode:this.containerNode,layoutAlign:"client"}];
dijit.layout.layoutChildren(this.domNode,this._contentBox,_8c4);
this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_8c4[2]);
if(sc&&sc.resize){
sc.resize(this._containerContentBox);
}
}else{
if(this.tablist.resize){
this.tablist.resize({w:dojo.contentBox(this.domNode).w});
}
if(sc&&sc.resize){
sc.resize();
}
}
},destroy:function $DAzO_(){
if(this.tablist){
this.tablist.destroy();
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.layout.TabController"]){
dojo._hasResource["dijit.layout.TabController"]=true;
dojo.provide("dijit.layout.TabController");
dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function $DAzB_(){
if(0>=this.tabPosition.indexOf("-h")){
return;
}
if(!this.pane2button){
return;
}
var _8c5=0;
for(var pane in this.pane2button){
var ow=this.pane2button[pane].innerDiv.scrollWidth;
_8c5=Math.max(_8c5,ow);
}
for(pane in this.pane2button){
this.pane2button[pane].innerDiv.style.width=_8c5+"px";
}
}});
dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:dojo.cache("dijit.layout","templates/_TabButton.html","<div waiRole=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent,focusNode'>\n\t        <img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='iconNode' waiRole=\"presentation\"/>\n\t        <span dojoAttachPoint='containerNode' class='tabLabel'></span>\n\t        <span class=\"closeButton\" dojoAttachPoint='closeNode'\n\t        \t\tdojoAttachEvent='onclick: onClickCloseButton, onmouseenter: _onCloseButtonEnter, onmouseleave: _onCloseButtonLeave'>\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeIcon' class='closeImage' waiRole=\"presentation\"/>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </span>\n        </div>\n    </div>\n</div>\n"),scrollOnFocus:false,postMixInProperties:function $DAzC_(){
if(!this.iconClass){
this.iconClass="dijitTabButtonIcon";
}
},postCreate:function $DAzD_(){
this.inherited(arguments);
dojo.setSelectable(this.containerNode,false);
if(this.iconNode.className=="dijitTabButtonIcon"){
dojo.style(this.iconNode,"width","1px");
}
},startup:function $DAzE_(){
this.inherited(arguments);
var n=this.domNode;
setTimeout(function(){
n.className=n.className;
},1);
},_setCloseButtonAttr:function $DAzF_(disp){
this.closeButton=disp;
dojo.toggleClass(this.innerDiv,"dijitClosable",disp);
this.closeNode.style.display=disp?"":"none";
if(disp){
var _8c6=dojo.i18n.getLocalization("dijit","common");
if(this.closeNode){
dojo.attr(this.closeNode,"title",_8c6.itemClose);
if(dojo.isIE<8){
dojo.attr(this.closeIcon,"title",_8c6.itemClose);
}
}
var _8c6=dojo.i18n.getLocalization("dijit","common");
this._closeMenu=new dijit.Menu({id:this.id+"_Menu",targetNodeIds:[this.domNode]});
this._closeMenu.addChild(new dijit.MenuItem({label:_8c6.itemClose,onClick:dojo.hitch(this,"onClickCloseButton")}));
}else{
if(this._closeMenu){
this._closeMenu.destroyRecursive();
delete this._closeMenu;
}
}
},destroy:function $DAzG_(){
if(this._closeMenu){
this._closeMenu.destroyRecursive();
delete this._closeMenu;
}
this.inherited(arguments);
},_onCloseButtonEnter:function $DAzH_(){
dojo.addClass(this.closeNode,"closeButton-hover");
},_onCloseButtonLeave:function $DAzI_(){
dojo.removeClass(this.closeNode,"closeButton-hover");
}});
}
if(!dojo._hasResource["dijit.layout.ScrollingTabController"]){
dojo._hasResource["dijit.layout.ScrollingTabController"]=true;
dojo.provide("dijit.layout.ScrollingTabController");
dojo.declare("dijit.layout.ScrollingTabController",dijit.layout.TabController,{templateString:dojo.cache("dijit.layout","templates/ScrollingTabController.html","<div class=\"dijitTabListContainer-${tabPosition}\" style=\"visibility:hidden\">\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\" buttonType=\"menuBtn\" buttonClass=\"tabStripMenuButton\"\n\t\t\ttabPosition=\"${tabPosition}\" dojoAttachPoint=\"_menuBtn\" showLabel=false>&darr;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\" buttonType=\"leftBtn\" buttonClass=\"tabStripSlideButtonLeft\"\n\t\t\ttabPosition=\"${tabPosition}\" dojoAttachPoint=\"_leftBtn\" dojoAttachEvent=\"onClick: doSlideLeft\" showLabel=false>&larr;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\" buttonType=\"rightBtn\" buttonClass=\"tabStripSlideButtonRight\"\n\t\t\ttabPosition=\"${tabPosition}\" dojoAttachPoint=\"_rightBtn\" dojoAttachEvent=\"onClick: doSlideRight\" showLabel=false>&rarr;</div>\n\t<div class='dijitTabListWrapper' dojoAttachPoint='tablistWrapper'>\n\t\t<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'\n\t\t\t\tdojoAttachPoint='containerNode' class='nowrapTabStrip'>\n\t\t</div>\n\t</div>\n</div>\n"),useMenu:true,useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{"class":"containerNode"}),postCreate:function $DAzP_(){
this.inherited(arguments);
var n=this.domNode;
this.scrollNode=this.tablistWrapper;
this._initButtons();
if(!this.tabStripClass){
this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";
dojo.addClass(n,"tabStrip-disabled");
}
dojo.addClass(this.tablistWrapper,this.tabStripClass);
},onStartup:function $DAzQ_(){
this.inherited(arguments);
dojo.style(this.domNode,"visibility","visible");
this._postStartup=true;
},onAddChild:function $DAzR_(page,_8c7){
this.inherited(arguments);
var _8c8;
if(this.useMenu){
var _8c9=this.containerId;
_8c8=new dijit.MenuItem({label:page.title,onClick:dojo.hitch(this,function(){
var _8ca=dijit.byId(_8c9);
_8ca.selectChild(page);
})});
this._menuChildren[page.id]=_8c8;
this._menu.addChild(_8c8,_8c7);
}
this.pane2handles[page.id].push(this.connect(this.pane2button[page.id],"attr",function(name,_8cb){
if(this._postStartup){
if(arguments.length==2&&name=="label"){
if(_8c8){
_8c8.attr(name,_8cb);
}
if(this._dim){
this.resize(this._dim);
}
}
}
}));
dojo.style(this.containerNode,"width",(dojo.style(this.containerNode,"width")+200)+"px");
},onRemoveChild:function $DAzS_(page,_8cc){
var _8cd=this.pane2button[page.id];
if(this._selectedTab===_8cd.domNode){
this._selectedTab=null;
}
if(this.useMenu&&page&&page.id&&this._menuChildren[page.id]){
this._menu.removeChild(this._menuChildren[page.id]);
this._menuChildren[page.id].destroy();
delete this._menuChildren[page.id];
}
this.inherited(arguments);
},_initButtons:function $DAzT_(){
this._menuChildren={};
this._btnWidth=0;
this._buttons=dojo.query("> .tabStripButton",this.domNode).filter(function(btn){
if((this.useMenu&&btn==this._menuBtn.domNode)||(this.useSlider&&(btn==this._rightBtn.domNode||btn==this._leftBtn.domNode))){
this._btnWidth+=dojo.marginBox(btn).w;
return true;
}else{
dojo.style(btn,"display","none");
return false;
}
},this);
if(this.useMenu){
this._menu=new dijit.Menu({id:this.id+"_menu",targetNodeIds:[this._menuBtn.domNode],leftClickToOpen:true,refocus:false});
this._supportingWidgets.push(this._menu);
}
},_getTabsWidth:function $DAzU_(){
var _8ce=this.getChildren();
if(_8ce.length){
var _8cf=_8ce[this.isLeftToRight()?0:_8ce.length-1].domNode,_8d0=_8ce[this.isLeftToRight()?_8ce.length-1:0].domNode;
return _8d0.offsetLeft+dojo.style(_8d0,"width")-_8cf.offsetLeft;
}else{
return 0;
}
},_enableBtn:function $DAzV_(_8d1){
var _8d2=this._getTabsWidth();
_8d1=_8d1||dojo.style(this.scrollNode,"width");
return _8d2>0&&_8d1<_8d2;
},resize:function $DAzW_(dim){
if(this.domNode.offsetWidth==0){
return;
}
this._dim=dim;
this.scrollNode.style.height="auto";
this._contentBox=dijit.layout.marginBox2contentBox(this.domNode,{h:0,w:dim.w});
this._contentBox.h=this.scrollNode.offsetHeight;
dojo.contentBox(this.domNode,this._contentBox);
var _8d3=this._enableBtn(this._contentBox.w);
this._buttons.style("display",_8d3?"":"none");
this._leftBtn.layoutAlign="left";
this._rightBtn.layoutAlign="right";
this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";
dijit.layout.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);
if(this._selectedTab){
var w=this.scrollNode,sl=this._convertToScrollLeft(this._getScrollForSelectedTab());
w.scrollLeft=sl;
}
this._setButtonClass(this._getScroll());
},_getScroll:function $DAzX_(){
var sl=(this.isLeftToRight()||dojo.isIE<8||dojo.isQuirks||dojo.isWebKit)?this.scrollNode.scrollLeft:dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width")+(dojo.isIE==8?-1:1)*this.scrollNode.scrollLeft;
return sl;
},_convertToScrollLeft:function $DAzY_(val){
if(this.isLeftToRight()||dojo.isIE<8||dojo.isQuirks||dojo.isWebKit){
return val;
}else{
var _8d4=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");
return (dojo.isIE==8?-1:1)*(val-_8d4);
}
},onSelectChild:function $DAzZ_(page){
var tab=this.pane2button[page.id];
if(!tab||!page){
return;
}
var node=tab.domNode;
if(node!=this._selectedTab){
this._selectedTab=node;
var sl=this._getScroll();
if(sl>node.offsetLeft||sl+dojo.style(this.scrollNode,"width")<node.offsetLeft+dojo.style(node,"width")){
this.createSmoothScroll().play();
}
}
this.inherited(arguments);
},_getScrollBounds:function $DAza_(){
var _8d5=this.getChildren(),_8d6=dojo.style(this.scrollNode,"width"),_8d7=dojo.style(this.containerNode,"width"),_8d8=_8d7-_8d6,_8d9=this._getTabsWidth();
if(_8d5.length&&_8d9>_8d6){
return {min:this.isLeftToRight()?0:_8d5[_8d5.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_8d5[_8d5.length-1].domNode.offsetLeft+dojo.style(_8d5[_8d5.length-1].domNode,"width"))-_8d6:_8d8};
}else{
var _8da=this.isLeftToRight()?0:_8d8;
return {min:_8da,max:_8da};
}
},_getScrollForSelectedTab:function $DAzb_(){
var w=this.scrollNode,n=this._selectedTab,_8db=dojo.style(this.scrollNode,"width"),_8dc=this._getScrollBounds();
var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_8db/2;
pos=Math.min(Math.max(pos,_8dc.min),_8dc.max);
return pos;
},createSmoothScroll:function $DAzc_(x){
if(arguments.length>0){
var _8dd=this._getScrollBounds();
x=Math.min(Math.max(x,_8dd.min),_8dd.max);
}else{
x=this._getScrollForSelectedTab();
}
if(this._anim&&this._anim.status()=="playing"){
this._anim.stop();
}
var self=this,w=this.scrollNode,anim=new dojo._Animation({beforeBegin:function $DAzd_(){
if(this.curve){
delete this.curve;
}
var oldS=w.scrollLeft,newS=self._convertToScrollLeft(x);
anim.curve=new dojo._Line(oldS,newS);
},onAnimate:function $DAze_(val){
w.scrollLeft=val;
}});
this._anim=anim;
this._setButtonClass(x);
return anim;
},_getBtnNode:function $DAzf_(e){
var n=e.target;
while(n&&!dojo.hasClass(n,"tabStripButton")){
n=n.parentNode;
}
return n;
},doSlideRight:function $DAzg_(e){
this.doSlide(1,this._getBtnNode(e));
},doSlideLeft:function $DAzh_(e){
this.doSlide(-1,this._getBtnNode(e));
},doSlide:function $DAzi_(_8de,node){
if(node&&dojo.hasClass(node,"dijitTabBtnDisabled")){
return;
}
var _8df=dojo.style(this.scrollNode,"width");
var d=(_8df*0.75)*_8de;
var to=this._getScroll()+d;
this._setButtonClass(to);
this.createSmoothScroll(to).play();
},_setButtonClass:function $DAzj_(_8e0){
var cls="dijitTabBtnDisabled",_8e1=this._getScrollBounds();
dojo.toggleClass(this._leftBtn.domNode,cls,_8e0<=_8e1.min);
dojo.toggleClass(this._rightBtn.domNode,cls,_8e0>=_8e1.max);
}});
dojo.declare("dijit.layout._ScrollingTabControllerButton",dijit.form.Button,{baseClass:"dijitTab",buttonType:"",buttonClass:"",tabPosition:"top",templateString:dojo.cache("dijit.layout","templates/_ScrollingTabControllerButton.html","<div id=\"${id}-${buttonType}\" class=\"tabStripButton dijitTab ${buttonClass} tabStripButton-${tabPosition}\"\n\t\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\">\n\t<div role=\"presentation\" wairole=\"presentation\" class=\"dijitTabInnerDiv\" dojoattachpoint=\"innerDiv,focusNode\">\n\t\t<div role=\"presentation\" wairole=\"presentation\" class=\"dijitTabContent dijitButtonContents\" dojoattachpoint=\"tabContent\">\n\t\t\t<img src=\"${_blankGif}\"/>\n\t\t\t<span dojoAttachPoint=\"containerNode,titleNode\" class=\"dijitButtonText\"></span>\n\t\t</div>\n\t</div>\n</div>\n"),tabIndex:""});
}
if(!dojo._hasResource["dijit.layout.TabContainer"]){
dojo._hasResource["dijit.layout.TabContainer"]=true;
dojo.provide("dijit.layout.TabContainer");
dojo.declare("dijit.layout.TabContainer",dijit.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function $DAzk_(_8e2){
var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_8e3=dojo.getObject(this.controllerWidget);
return new _8e3({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":cls,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},_8e2);
},postMixInProperties:function $DAzl_(){
this.inherited(arguments);
if(!this.controllerWidget){
this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController";
}
}});
}
if(!dojo._hasResource["singles.admin.UserAdminDialog"]){
dojo._hasResource["singles.admin.UserAdminDialog"]=true;
dojo.provide("singles.admin.UserAdminDialog");
dojo.declare("singles.admin.UserAdminDialog",singles.widget.AbstractDialog,{userId:null,userName:"",commentDomEle:null,callee:null,templateString:dojo.cache("singles.admin","templates/UserAdminDialog.html","<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n    <div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n    <span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n    <span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n        <span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n    </span>\n    </div>\n        <div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\">\n            <table width=\"100%\" height=\"100%\">\n                <tr>\n                    <td width=\"40%\">\n                        <b>Aktion:</b><br />\n                        \n\t\t\t\t\t\t <select style=\"width: 100%\" dojoAttachPoint=\"actionSelectorNode\">   \n\t\t\t\t\t\t      <option value=\"onlyComment\" selected>[*] Nur Admin-Kommentieren</option>         \n\t\t\t\t\t\t      <option value=\"deactProfile\">[1] Profil deaktivieren</option>             \n\t\t\t\t\t\t      <option value=\"lockProfile\">[2] Profil sperren</option>             \n\t\t\t\t\t\t      <option value=\"deleteProfile\">[3] Profil löschen</option>             \n\t\t\t\t\t\t      <option value=\"addToWatchlist\">[4] Zur Watchlist hinzufügen</option>             \n\t\t\t\t\t\t      <option value=\"removeFromWatchlist\">[5] Von der Watchlist nehmen</option>             \n\t\t\t\t\t\t      <option value=\"followup3Days\">[6] Wiedervorlage in 3 Tagen</option>             \n\t\t\t\t\t\t      <option value=\"followupEndOfPremium\">[7] Wiedervorlage am Ende der Premiummitgliedschaft</option>             \n\t\t\t\t\t\t      <option value=\"followupClear\">[8] Wiedervorlage löschen</option>             \n\t\t\t\t\t\t  </select>\n                    </td>\n                    <td width=\"60%\">\n                        <b>Textvorlage: (Auswahl ersetzt bestehende Textnachricht!)</b><br />\n                        \n                        <select style=\"width:100%\" dojoAttachPoint=\"textSelectorNode\">             \n                            <option value=\"\" selected>[*] Eigene Textnachricht</option>                         \n                            <option value=\"requestUpdate\" style=\"background: none repeat scroll 0% 0% rgb(244, 70, 74);\">[1] Benutzer zur Verbesserung des Profils auffordern</option>             \n                            <option value=\"informDelPrivateData\" style=\"background: none repeat scroll 0% 0% orange;\">[2] Benutzer über Entfernung privater Kontaktdaten informieren</option>             \n                            <option value=\"informDelOtherProfileLinks\" style=\"background: none repeat scroll 0% 0% rgb(62, 228, 20);\">[3] Benutzer über Entfernung anderer Profillinks (Lokalisten etc.) informieren</option>             \n                            <option value=\"informDelEmailRequest\" style=\"background: none repeat scroll 0% 0% lightblue;\">[4] Benutzer über Entfernung des Hinweises \"Bitte E-Mail angeben\" informieren</option>                         \n                            <option value=\"informDeactBadQuality\" style=\"background: none repeat scroll 0% 0% yellow;\">[5] Benutzer über Deaktivierung wegen schlechter Profilqualität informieren</option>             \n                            <option value=\"informDeactPrivateData\" style=\"background: none repeat scroll 0% 0% rgb(34, 255, 205);\">[6] Benutzer über Deaktivierung wegen Veröffentlichung privater Kontaktdaten informieren</option>             \n                            <option value=\"informDeactOtherProfileLink\" style=\"background: none repeat scroll 0% 0% pink;\">[7] Benutzer über Deaktivierung wegen Hinweis auf Profil bei Lokalisten etc. informieren</option>             \n                            <option value=\"informDeactEmailRequest\" style=\"background: none repeat scroll 0% 0% rgb(204, 204, 204);\">[8] Benutzer über Deaktivierung wegen der Aufforderung \"Bitte E-Mail angeben\" informieren</option>                         \n                            <option value=\"informLocking\" style=\"background: none repeat scroll 0% 0% rgb(170, 170, 68);\">[9] Benutzer über Sperrung informieren</option>                         \n                            <option value=\"informWatchListAdd\" style=\"background: none repeat scroll 0% 0% rgb(255, 255, 255);\">[10] Auf Watchlist gesetzt</option>                       \n                            <option value=\"informWatchListRemove\" style=\"background: none repeat scroll 0% 0% rgb(255, 255, 255);\">[11] Von Watchlist entfernt</option>                   \n                            <option value=\"justInsertDate\" style=\"background: none repeat scroll 0% 0% rgb(255, 255, 255);\">[12] Nur Datum einfügen</option>                       \n                        </select>\n                    </td>\n                </tr>\n                \n                <tr>\n                    <td colspan=\"2\">\n                        <ul class=\"tabs\">\n                            <li dojoAttachPoint=\"tabButtonComment\" class=\"first selected\">Kommentar</li>\n                            <li dojoAttachPoint=\"tabButtonMail\">E-Mail</li>\n                        </ul>\n                        <div dojoAttachPoint=\"tabCommentContainer\" class=\"admintabContainer\">\n                            <textarea dojoAttachPoint=\"commentTextArea\" style=\"border:none;height:100%;width:100%\"></textarea>\n                        </div>\n                        \n                        <div dojoAttachPoint=\"tabMailContainer\" class=\"admintabContainer\" style=\"display:none\">\n                            <textarea dojoAttachPoint=\"mailTextArea\" style=\"border:none;height:100%;width:100%\"></textarea>\n                        </div>\n                    </td>\n                </tr>\n                \n                <tr>\n                    <td colspan=\"2\">\n                        <div style=\"float:left;padding-top:5px;\">\n\t                        <div style=\"float:left\">\n\t                            <input dojoAttachPoint=\"checkMarkProofed\" type=\"checkbox\" checked> Als geprüft markieren &nbsp;</input>\n\t                        </div>\n\t                        <div style=\"float:left\">\n\t                            <input dojoAttachPoint=\"checkAddComment\" type=\"checkbox\" style=\"float:left\" checked> Kommentar speichern &nbsp;</input>\n\t                        </div>\n\t                        <br clear=\"all\" />\n\t                        <div style=\"float:left\">\n\t                            <input dojoAttachPoint=\"checkSendMail\" type=\"checkbox\" style=\"float:left\"> E-Mail senden &nbsp;</input>\n\t                        </div>\n\t                        <div style=\"float:left\">\n\t                            <input dojoAttachPoint=\"checkRemindThreeDays\" type=\"checkbox\" style=\"float:left\"> Wiedervorlage (3 Tage) &nbsp;</input>\n\t                        </div>\n                        </div>\n                        \n                        \n                        <div style=\"float:right;padding-top:5px;\">\n                            <input dojoAttachPoint=\"buttonOk\" type=\"button\" class=\"submit\" value=\"OK\"></input>\n                        </div>\n                    </td>\n                </tr>\n            </table>\n        </div>\n</div>\n"),mailTemplates:{user_mail_1:dojo.cache("singles.admin","templates/user_mail_1.txt","Hallo [[USERNAME]],\n\ndie MÃ¼nchner Singles legen großen Wert auf Qualität! Deshalb prüfen wir im Sinne unserer Teilnehmer regelmäßig die Profile, um sicherzustellen, dass alle Profile echt und vollständig ausgefüllt sind. Natürlich erhöht ein gut ausgefülltes Profil auch Ihre Chancen, kontaktiert zu werden, vor allem dann, wenn Sie ein Bild von sich in Ihrem Profil haben!\n\nProfil aktualisieren:\nhttps://www.muenchnersingles.de/user/edit/personal\n\nUm das hohe Niveau unserer Seite weiterhin sicherzustellen, sind wir leider dazu gezwungen, unvollständige Profile zu deaktivieren. Bitte prüfen Sie Ihr Profil deshalb innerhalb der nächsten drei Tage und ändern oder ergänzen Sie Ihre Angaben.\n\nVielen Dank für Ihr Verständnis und weiterhin viel Vergnügen\nIhr MÃ¼nchner Singles Team\n"),user_mail_2:dojo.cache("singles.admin","templates/user_mail_2.txt","Hallo [[USERNAME]],\n\nSie haben in Ihrem Profil private Kontaktdaten (E-Mail-Adressen, private Webadressen, ICQ, Skype, usw.) in Feldern veröffentlicht, die dafür nicht vorgesehen sind.\nWir haben diese Informationen deshalb aus Ihrem Profil gelöscht. Wenn Sie diese Kontaktdaten weiterhin mit anderen Premiummitgliedern teilen möchten, geben Sie diese Informationen bitte in den dafür vorgesehenen Feldern ein.\n\nKontaktinformationen teilen:\nhttps://www.muenchnersingles.de/user/edit/contact\n\nVielen Dank für Ihr Verständnis und weiterhin viel Vergnügen\nIhr MÃ¼nchner Singles Team\n"),user_mail_3:dojo.cache("singles.admin","templates/user_mail_3.txt","Hallo [[USERNAME]],\n\nSie haben Verlinkungen zu Profilen bei anderen Communities (Facebook, MySpace, usw.) gesetzt. Dies ist leider nicht erlaubt, deshalb haben wir diese Informationen aus Ihrem Profil gelöscht.\n\nVielen Dank für Ihr Verständnis und weiterhin viel Vergnügen\nIhr MÃ¼nchner Singles Team\n"),user_mail_4:dojo.cache("singles.admin","templates/user_mail_4.txt","Hallo [[USERNAME]],\n\nin Ihrem Profil fordern Sie andere Mitglieder dazu auf, Ihnen eine alternative Kontaktmöglichkeit zu nennen, da Sie mit Ihrer kostenlosen Mitgliedschaft zwar Nachrichten empfangen, aber nicht beantworten können. Die Angabe von alternativen Kontaktmöglichkeiten ist leider nicht gestattet, deshalb haben wir diese Information aus Ihrem Profil gelöscht. Dies ist eine Sicherheitsmaßnahme, um unsere Mitglieder effektiv vor Adresssammlern und Spammern zu schützen.\n\nNur als Premiummitglied können Sie unseren Service unbegrenzt nutzen und ganz einfach und unkompliziert andere MÃ¼nchner Singles kennen lernen.\n\nPremiummitglied werden:\nhttps://www.muenchnersingles.de/premium\n\nWir wünschen Ihnen weiterhin viel Vergnügen bei den MÃ¼nchner Singles\nIhr MÃ¼nchner Singles Team\n"),user_mail_5:dojo.cache("singles.admin","templates/user_mail_5.txt","Hallo [[USERNAME]],\n\nvor einigen Tagen haben wir Sie gebeten, Ihre Profildaten zu überarbeiten. Da Sie unserer Bitte nicht nachgekommen sind, mußten wir Ihr Profil leider deaktivieren.\n\nDas bedeutet, dass Sie andere Mitglieder Ihr Profil nicht mehr sehen können. Sobald Sie Ihr Profil bearbeitet haben, heben wir die Deaktivierung nach einer erneuten Prüfung selbstverständlich gerne wieder auf.\n\nProfil überarbeiten:\nhttps://www.muenchnersingles.de/user/edit/personal\n\nVielen Dank für Ihr Verständnis\nIhr MÃ¼nchner Singles Team\n"),user_mail_6:dojo.cache("singles.admin","templates/user_mail_6.txt","Hallo [[USERNAME]],\n\nda Sie zum wiederholten Male private Kontaktdaten in dafür nicht vorgesehenen Feldern veröffentlicht haben, sind wir leider dazu gezwungen, Ihr Profil zu deaktivieren.\n\nDas bedeutet, dass Sie weder in der Onlineliste noch in den Ergebnislisten der Profilsuche erscheinen und andere Mitglieder Ihr Profil nicht mehr sehen können. Wenn Sie Ihr Profil überarbeitet haben, werden wir die Deaktivierung nach einer erneuten Prüfung selbstverständlich gerne wieder aufheben.\n\nProfil überarbeiten:\nhttps://www.muenchnersingles.de/user/edit/personal\n\nVielen Dank für Ihr Verständnis\nIhr MÃ¼nchner Singles Team\n"),user_mail_7:dojo.cache("singles.admin","templates/user_mail_7.txt","Hallo [[USERNAME]],\n\nSie haben zum wiederholten Male Links auf Ihr Profil bei anderen Communities (Facebook, MySpace, usw.) gesetzt. Deshalb waren wir leider dazu gezwungen, Ihr Profil zu deaktivieren.\n\nDas bedeutet, dass Sie weder in der Onlineliste noch in den Ergebnislisten der Profilsuche erscheinen und andere Mitglieder Ihr Profil nicht mehr sehen können. Wenn Sie Ihr Profil überarbeitet haben, werden wir die Deaktivierung nach einer erneuten Prüfung selbstverständlich gerne wieder aufheben.\n\nProfil überarbeiten:\nhttps://www.muenchnersingles.de/user/edit/personal\n\nVielen Dank für Ihr Verständnis\nIhr MÃ¼nchner Singles Team\n"),user_mail_8:dojo.cache("singles.admin","templates/user_mail_8.txt","Hallo [[USERNAME]],\n\nda Sie zum wiederholten Male andere Benutzer in Ihrem Profil dazu aufgefordert haben, Ihnen alternative Kontaktmöglichkeiten zu nennen, waren wir leider gezwungen, Ihr Profil zu deaktivieren.\n\nDas bedeutet, dass Sie weder in der Onlineliste noch in den Ergebnislisten der Profilsuche erscheinen und andere Mitglieder Ihr Profil nicht mehr sehen können. Wenn Sie Ihr Profil überarbeitet haben, werden wir die Deaktivierung nach einer erneuten Prüfung selbstverständlich gerne wieder aufheben.\n\nProfil überarbeiten:\nhttps://www.muenchnersingles.de/user/edit/personal\n\nVielen Dank für Ihr Verständnis\nMÃ¼nchner Singles Team\n"),user_mail_9:dojo.cache("singles.admin","templates/user_mail_9.txt","Hallo [[USERNAME]],\n\nleider waren wir gezwungen, Ihr Profil aus den Ihnen bekannten Gründen zu sperren. Falls Sie zu der Sperrung Ihres Profils Fragen haben, bitten wir Sie um Kontaktaufnahme per E-Mail.\n\nVielen Dank für Ihr Verständnis\nMÃ¼nchner Singles Team\n")},commentTemplates:{user_comment_1:dojo.cache("singles.admin","templates/user_comment_1.txt","Aufgefordert, die Profildaten zu verbessern\n"),user_comment_2:dojo.cache("singles.admin","templates/user_comment_2.txt","Private Kontaktdaten entfernt\n"),user_comment_3:dojo.cache("singles.admin","templates/user_comment_3.txt","Profillink bei anderen Seiten (Lokalisten, MySpace, studiVZ) entfernt\n"),user_comment_4:dojo.cache("singles.admin","templates/user_comment_4.txt","Aufforderung zum Hinterlassen privater Kontaktdaten entfernt\n"),user_comment_5:dojo.cache("singles.admin","templates/user_comment_5.txt","Deaktivierung wegen schlechtem Profil\n"),user_comment_6:dojo.cache("singles.admin","templates/user_comment_6.txt","Deaktivierung wegen Veröffentlichung privater Kontaktdaten (E-Mail, Website, ICQ, Skype...)\n"),user_comment_7:dojo.cache("singles.admin","templates/user_comment_7.txt","Deaktivierung wegen Hinweis auf Profil bei anderen (kostenlosen) Seiten (Lokalisten, MySpace, studiVZ)\n"),user_comment_8:dojo.cache("singles.admin","templates/user_comment_8.txt","Deaktivierung wegen Aufforderung zum Hinterlassen privater Kontaktdaten\n"),user_comment_9:dojo.cache("singles.admin","templates/user_comment_9.txt","Profilsperrung\n"),user_comment_10:dojo.cache("singles.admin","templates/user_comment_10.txt","Auf Watchlist gesetzt\n"),user_comment_11:dojo.cache("singles.admin","templates/user_comment_11.txt","Von Watchlist entfernt\n")},postCreate:function $DBDD_(){
var ret=this.inherited(arguments);
this.attr("title","Admin-Kommentar ("+this.userName+")");
dojo.style(this.domNode,{width:"850px",height:"550px"});
this._render();
this._init();
return ret;
},_render:function $DBDE_(){
dojo.parser.parse(this.domNode);
dojo.connect(this.tabButtonComment,"onclick",dojo.hitch(this,function(){
this.toggleTab("comment");
}));
dojo.connect(this.tabButtonMail,"onclick",dojo.hitch(this,function(){
this.toggleTab("mail");
}));
dojo.connect(this.buttonOk,"onclick",dojo.hitch(this,function(){
this.doActions();
}));
dojo.connect(this.textSelectorNode,"onchange",dojo.hitch(this,function(){
this.setTextByNumber(this.textSelectorNode.selectedIndex);
}));
},_init:function $DBDF_(){
this.commentTextArea.value=this.commentDomEle.innerHTML;
},show:function $DBDG_(){
var ret=this.inherited(arguments);
dojo.style(this.domNode,{opacity:0,display:"",visibility:"visible"});
return ret;
},toggleTab:function $DBDH_(name){
var _8e4=null;
var _8e5=null;
if(name=="comment"){
dojo.style(this.tabCommentContainer,{"display":"block"});
dojo.style(this.tabMailContainer,{"display":"none"});
dojo.addClass(this.tabButtonComment,"selected");
dojo.removeClass(this.tabButtonMail,"selected");
}else{
dojo.style(this.tabCommentContainer,{"display":"none"});
dojo.style(this.tabMailContainer,{"display":"block"});
dojo.removeClass(this.tabButtonComment,"selected");
dojo.addClass(this.tabButtonMail,"selected");
}
},doActions:function $DBDI_(){
var _8e6="";
var _8e7={};
switch(this.actionSelectorNode.selectedIndex){
case 1:
_8e6="softlock";
_8e7={userId:this.userId};
break;
case 2:
_8e6="lock";
_8e7={userId:this.userId};
break;
case 3:
_8e6="delete";
_8e7={userId:this.userId};
break;
case 4:
_8e6="addordeleteuserfromwatchlist";
_8e7={userId:this.userId,addordelete:"add_to_watchlist"};
break;
case 5:
_8e6="addordeleteuserfromwatchlist";
_8e7={userId:this.userId,addordelete:"remove_from_watchlist"};
break;
case 6:
_8e6="followupcc";
_8e7={userId:this.userId,when:"3days"};
break;
case 7:
_8e6="followupcc";
_8e7={userId:this.userId,when:"endOfPremium"};
break;
case 8:
_8e6="followupcc";
_8e7={userId:this.userId,when:"noFollowup"};
break;
}
if(_8e6.length>0){
console.debug("Call action: "+_8e6);
console.debug("Action params: ");
console.debug(_8e7);
this.callAction(_8e6,_8e7);
}
if(this.checkAddComment.checked==true){
console.debug("save comment");
this.commentDomEle.innerHTML=this.commentTextArea.value;
this.callAction("savecomment",{adminComment:this.commentTextArea.value,userId:this.userId});
}
if(this.checkSendMail.checked==true){
console.debug("send mail");
this.callAction("saveemail",{mail:this.mailTextArea.value,userId:this.userId});
}
if(this.checkRemindThreeDays.checked==true){
this.callAction("followupcc",{userId:this.userId,when:"3days"});
}
var _8e8=null;
if(this.checkMarkProofed.checked==true){
console.debug("attempt to mark proofed");
var _8e9=dojo.query(".userEntry");
var _8ea="";
for(var i=0;i<_8e9.length;i++){
_8ea=_8e9[i].id.split("_");
if(_8ea[1]==this.userId){
console.debug("marking proofed by node: ");
console.debug(_8e9[i]);
this.callee.markChecked(_8e9[i]);
}
}
}
this.hide();
},callAction:function $DBDJ_(_8eb,_8ec){
dojo.xhrPost({url:BaseURL+"/admin/user/"+_8eb,handleAs:"json",content:_8ec,load:dojo.hitch(this,function(data){
if(null==data.error){
}else{
}
}),error:function $DBDK_(_8ed,_8ee){
return _8ed;
}});
},setTextByNumber:function $DBDL_(_8ef){
var _8f0="";
var _8f1=this.commentTemplates["user_comment_"+_8ef];
var _8f2=this.mailTemplates["user_mail_"+_8ef];
if(_8ef==12){
_8f0=this.commentTextArea.value;
this.commentTextArea.value=this.datifyComment(" ")+_8f0;
return;
}
if(_8ef>0){
_8f0=this.commentTextArea.value;
this.commentTextArea.value=this.datifyComment(_8f1)+_8f0;
if(_8ef<10){
this.mailTextArea.value=_8f2;
}
}
},datifyComment:function $DBDM_(_8f3){
var _8f4=new Date();
var d="0"+_8f4.getDate();
var m="0"+(_8f4.getMonth()+1);
var Y=_8f4.getFullYear();
var H="0"+_8f4.getHours();
var i="0"+_8f4.getMinutes();
d=d.substr(d.length-2);
m=m.substr(m.length-2);
H=H.substr(H.length-2);
i=i.substr(i.length-2);
if(_8f3==" "){
return d+"."+m+"."+Y+" "+H+":"+i+"\n----------------------------------------------------\n";
}
var _8f3=d+"."+m+"."+Y+" "+H+":"+i+" "+_8f3;
return _8f3+"\n----------------------------------------------------\n";
},hide:function $DBDN_(){
var ret=this.inherited(arguments);
this.callee.hideCommentAdminField(this.userId);
return ret;
}});
}
if(!dojo._hasResource["singles.admin.User"]){
dojo._hasResource["singles.admin.User"]=true;
if(typeof window.CCTOOL_WINDOW_GROUP=="undefined"||window.CCTOOL_WINDOW_GROUP==null){
window.CCTOOL_WINDOW_GROUP=[];
}
if(typeof window.CCTOOL_WINDOW_REGISTRATION=="undefined"||window.CCTOOL_WINDOW_REGISTRATION==null){
window.CCTOOL_WINDOW_REGISTRATION=[];
}
dojo.provide("singles.admin.User");
dojo.declare("singles.admin.User",null,{maxUserEntryNodes:30,firstVisibleEntry:true,lastTimeStamp:null,laterCheck:[],_userEntryRegistry:[],constructor:function $DBDS_(){
this.assignGlobalEvents();
this.processNewEntries();
},assignGlobalEvents:function $DBDT_(){
dojo.connect(dojo.query("#checkedUser select")[0],"onchange",dojo.hitch(this,function(e){
this.markUnchecked(dojo.query("#checkedUser select")[0][e.currentTarget.selectedIndex]);
}));
dojo.connect(document,"onkeypress",this,function(_8f5){
var _8f6=_8f5.keyChar||_8f5.keyCode;
dojo.every(dojo.query(".userEntry"),dojo.hitch(this,function(elem){
if(elem.style.display!="none"){
element=elem;
id=element.id.split("_")[1];
return false;
}
return true;
}));
if(_8f5.altKey){
switch(_8f6){
case "k":
this.toggleAdminCommentField(id);
break;
case "q":
this.markChecked(element);
break;
case "r":
this.renderReadModeAll();
break;
}
}
});
},processNewEntries:function $DBDU_(){
var _8f7=dojo.query(".userEntry");
var _8f8=null;
var _8f9=false;
for(var i=0;i<_8f7.length;i++){
_8f9=false;
_8f8=_8f7[i];
for(var j=0;j<this._userEntryRegistry.length;j++){
if(this._userEntryRegistry[j]==_8f8.id){
_8f9=true;
}
}
if(!_8f9){
this._processEntry(_8f8.id);
this._userEntryRegistry.push(_8f8.id);
}
}
},_processEntry:function $DBDV_(_8fa){
dojo.parser.parse(_8fa);
var _8fb=new s3w.widget.EditInPlaceParser();
_8fb.searchCssClassName="CCEditInPlace";
_8fb.parse(dojo.byId(_8fa));
dojo.connect(dojo.query(".checkedButton",_8fa)[0],"onclick",dojo.hitch(this,function(e){
this.markChecked(e.currentTarget.parentNode.parentNode.parentNode.parentNode);
}));
dojo.connect(dojo.query(".closeButton",_8fa)[0],"onclick",dojo.hitch(this,function(e){
e.currentTarget.parentNode.parentNode.parentNode.parentNode.style.display="none";
this.getNextUser();
this.laterCheck.push(_8fa);
}));
dojo.connect(dojo.query(".extraProfile",_8fa)[0],"onclick",dojo.hitch(this,function(e){
var tab=e.currentTarget;
var node=dojo.byId("extra_"+tab.name);
if(node.style.display=="none"){
node.style.display="block";
}else{
node.style.display="none";
}
}));
dojo.connect(dojo.query(".showFullAdminCommentLink",_8fa)[0],"onclick",dojo.hitch(this,function(e){
dojo.stopEvent(e);
var _8fc=e.currentTarget.parentNode.parentNode.id.split("_")[1];
this.toggleAdminCommentField(_8fc);
}));
dojo.connect(dojo.query(".adminComment",_8fa)[0],"onclick",dojo.hitch(this,function(e){
dojo.stopEvent(e);
var _8fd=e.currentTarget.parentNode.parentNode.id.split("_")[1];
this.toggleAdminCommentField(_8fd);
}));
},markUnchecked:function $DBDW_(node){
dojo.forEach(dojo.query(".userEntry"),dojo.hitch(this,function(elem){
if(elem.id.split("_")[1]==node.value){
dojo.xhrPost({url:BaseURL+"/admin/user/markUnchecked",content:{userId:node.value},handleAs:"json",load:dojo.hitch(this,function(data){
if(null==data.error){
elem.style.display="block";
this.increaseCounter();
dojo.destroy(node);
this.getNextUser();
}
})});
}
}));
},renderReadModeAll:function $DBDX_(){
for(var i=0;i<window.BUTTON_EDITINPLACE_REGISTRY.length;i++){
window.BUTTON_EDITINPLACE_REGISTRY[i].renderReadMode();
}
},markChecked:function $DBDY_(node){
var _8fe=dojo.query(".basicsContainer .baseProfile .username",node)[0].innerHTML;
var id=node.id.split("_")[1];
var _8ff=node.id.split("_")[2];
dojo.query(".basicsContainer .checkedButton",node)[0].disabled=true;
dojo.xhrPost({url:BaseURL+"/admin/user/markChecked",content:{userId:id,lastChecked:_8ff},handleAs:"json",load:dojo.hitch(this,function(data){
if(null==data.error){
var _900=dojo.query("#checkedUser select")[0];
dojo.place("<option value="+id+">"+_8fe+"</option>",_900,2);
this.decreaseCounter();
_900.selectedIndex=0;
node.style.display="none";
this.getNextUser();
}
dojo.query(".basicsContainer .checkedButton",node)[0].disabled=false;
})});
},getNextUser:function $DBDZ_(){
var _901=0;
var _902=[];
dojo.forEach(dojo.query(".userEntry"),dojo.hitch(this,function(elem){
if(elem.style.display!="none"){
_901++;
}else{
_902.push(elem.id.split("_")[1]);
}
}));
var form=dojo.byId("userType");
dojo.xhrGet({url:BaseURL+"/admin/user/next",content:{type:form.type.value,count:_901,knownUsers:dojo.toJson(_902)},handleAs:"json",load:dojo.hitch(this,function(data){
if(null==data.error){
dojo.forEach(data.message,function(_903){
dojo.place(_903[0],dojo.byId("content"),"last");
});
this.processNewEntries();
this.setCounter(data.message[0][1]);
}else{
if(data.error==true&&_901==0){
while(this.laterCheck.length>0){
dojo.byId(this.laterCheck[0]).style.display="";
this.laterCheck.shift();
}
}
}
})});
},openAdminDialog:function $DBDa_(_904,_905){
var _906=false;
if(window.CCTOOL_WINDOW_REGISTRATION.indexOf(_904)>-1){
if(!window.CCTOOL_WINDOW_GROUP[_904].open){
_906=true;
}
}else{
_906=true;
}
if(_906){
window.CCTOOL_WINDOW_REGISTRATION.push(_904);
var _905=dojo.byId("adminComment_"+_904);
var _907=_905.parentNode.parentNode;
var _908=dojo.query(".ccInfoUsername",_907)[0].innerHTML;
var _909=new singles.admin.UserAdminDialog({userId:_904,commentDomEle:_905,callee:this,userName:_908});
_909.show();
window.CCTOOL_WINDOW_GROUP[_904]=_909;
}
},closeAdminDialog:function $DBDb_(_90a){
try{
window.CCTOOL_WINDOW_GROUP[_90a].hide();
}
catch(e){
}
},hideCommentAdminField:function $DBDc_(_90b){
var _90c=dojo.byId("adminComment_"+_90b);
dojo.style(_90c,"overflow","hidden");
this.closeAdminDialog(_90b);
},toggleAdminCommentField:function $DBDd_(_90d){
var _90e=dojo.byId("adminComment_"+_90d);
if("hidden"==dojo.style(_90e,"overflow")){
dojo.style(_90e,"overflow","scroll");
this.openAdminDialog(_90d,_90e);
}else{
this.hideCommentAdminField(_90d);
}
},getKnownUsers:function $DBDe_(){
var _90f=[];
for(var j=0;j<this._userEntryRegistry.length;j++){
_90f[j]=this._userEntryRegistry[j].split("_")[1];
}
return _90f;
},increaseCounter:function $DBDf_(){
var _910=dojo.byId("userCounter");
_910.innerHTML=parseInt(_910.innerHTML)+1;
},decreaseCounter:function $DBDg_(){
var _911=dojo.byId("userCounter");
_911.innerHTML=parseInt(_911.innerHTML)-1;
},setCounter:function $DBDh_(_912){
var _913=dojo.byId("userCounter");
_913.innerHTML=_912;
}});
}
if(!dojo._hasResource["singles.core.EditInPlace"]){
dojo._hasResource["singles.core.EditInPlace"]=true;
dojo.provide("singles.core.EditInPlace");
dojo.declare("singles.core.EditInPlace",null,{convertable:null,convHandle:null,remoteControls:new Array(),loadingIcon:"/icons/icon_loading.gif",loadingIconPlacement:"after",setLoadingIcon:function $DBCe_(icon){
this.loadingIcon=icon;
return this;
},setLoadingIconPlacement:function $DBCf_(_914){
this.loadingIconPlacement=_914;
return this;
},convert2Form:function $DBCg_(){
dojo.disconnect(this.convHandle);
dojo.style(this.convertable,"display","none");
dojo.global.dependentObj.createEditInPlaceNodes(this);
dojo.forEach(this.remoteControls,function(el){
if(null!=el){
dojo.style(el,"display","none");
}
});
return this;
},doSubmit:function $DBCh_(){
var ns=this.convertable.nextSibling;
while(null!=ns&&ns.nodeName.toLowerCase()!="form"){
ns=ns.nextSibling;
}
if(null==ns){
console.debug("Formular wurde nicht gefunden.");
}else{
var _915=ns;
var _916=document.createElement("img");
dojo.attr(_916,"src",this.loadingIcon);
dojo.attr(_916,"id","loading_"+_915.id);
dojo.place(_916,this.convertable,this.loadingIconPlacement);
dojo.xhrPost({url:_915.action,form:_915,handleAs:"json",handle:dojo.hitch(this,function(data,args){
if(typeof data=="error"){
console.warn("error!",args);
}else{
dojo.fadeOut({node:_915.id,onEnd:dojo.hitch(this,function(){
dojo.byId("loading_"+_915.id).parentNode.removeChild(dojo.byId("loading_"+_915.id));
dojo.byId(_915.id).parentNode.removeChild(dojo.byId(_915.id));
if(typeof data.error!="undefined"&&null!==data.error){
alert(data.error.msg);
}else{
if("function"==typeof dojo.global.dependentObj.handleSuccess){
dojo.global.dependentObj.handleSuccess(this.convertable,data.result);
}else{
this.convertable.innerHTML=data.result;
}
}
this.setConvHandle(this.convertable);
dojo.style(this.convertable,"display","");
dojo.forEach(this.remoteControls,function(el){
if(null!=el){
dojo.style(el,"display","");
}
});
})}).play();
}
})});
}
return this;
},doCancel:function $DBCi_(){
this.convertable.nextSibling.parentNode.removeChild(this.convertable.nextSibling);
dojo.style(this.convertable,"display","");
this.setConvHandle(this.convertable);
dojo.forEach(this.remoteControls,function(el){
if(null!=el){
dojo.style(el,"display","");
}
});
return this;
},setConvertable:function $DBCj_(_917){
this.convertable=_917;
this.setConvHandle(_917);
return this;
},setConvHandle:function $DBCk_(_918){
this.convHandle=dojo.connect(_918,"click",dojo.hitch(this,"convert2Form"));
return this;
},addRemoteControl:function $DBCl_(_919,_91a,_91b){
this.remoteControls[this.remoteControls.length]=_919;
dojo.connect(_919,"click",dojo.hitch(this,"convert2Form"));
dojo.connect(_919,"mouseover",dojo.hitch(this,function(){
dojo.attr(this.convertable.id,"class",_91a);
}));
dojo.connect(_919,"mouseout",dojo.hitch(this,function(){
dojo.attr(this.convertable.id,"class",_91b);
}));
return this;
}});
}
if(!dojo._hasResource["singles.core.Faq"]){
dojo._hasResource["singles.core.Faq"]=true;
dojo.provide("singles.core.Faq");
dojo.declare("singles.core.Faq",null,{loadingIconSource:"/icons/icon_loading.gif",assignWipeEvents:function $DBCo_(){
dojo.forEach(dojo.query(".wiper"),dojo.hitch(this,function(elem){
dojo.connect(elem,"onclick",dojo.hitch(this,function(){
this.wipe(elem);
}));
}));
},assignEditEvents:function $DBCp_(){
var btn=dojo.byId("createNewItemBtn");
if(null!=btn){
dojo.connect(dojo.byId("createNewItemBtn"),"onclick",dojo.hitch(this,"createEditItemBox"));
}
dojo.forEach(dojo.query(".editBtn"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",dojo.hitch(this,function(e){
var _91c=e.currentTarget.parentNode.parentNode.parentNode.id;
this.createEditItemBox(_91c.split("_")[1]);
}));
}));
dojo.forEach(dojo.query(".delBtn"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",dojo.hitch(this,function(e){
var _91d=e.currentTarget.parentNode.parentNode.parentNode.id;
this.deleteItem(_91d,el);
}));
}));
},wipe:function $DBCq_(elem,_91e,_91f){
var _920=null;
if(_91e){
_920=elem;
}else{
_920=elem.parentNode.parentNode.parentNode;
}
var _921=dojo.query(".faqItemAnswer",_920);
var _921=_921[0];
var _922=!this.isItemOpen(_920);
if(_91e){
if(_91f=="close"){
_922=false;
}
}
if(_922){
dojo.fx.wipeIn({node:_921,duration:100}).play();
elem.src="/images/collapse.jpg";
}else{
dojo.fx.wipeOut({node:_921,duration:100}).play();
if(_91e){
var _923=dojo.query(".wiper",elem);
_923[0].src="/images/expand.jpg";
}else{
elem.src="/images/expand.jpg";
}
var _924=dojo.query("#faqItemUpdate",_920);
if(_924.length>0){
_924=_924[0];
_920.removeChild(_920.lastChild);
}
if(!_91e){
if(elem.src.indexOf("/images/expand.jpg")>0&&_921.style.height=="0px"){
setTimeout(function(){
dojo.fx.wipeIn({node:_921,duration:100}).play();
elem.src="/images/collapse.jpg";
},100);
}
}
}
},isItemOpen:function $DBCr_(_925){
var _926=dojo.query(".faqItemAnswer",_925);
var _926=_926[0];
var res=false;
if((typeof dojo.style(_926,"display")=="undefined"||"none"==dojo.style(_926,"display"))){
res=false;
}else{
res=true;
}
if(dojo.query("#faqItemUpdate",_925).length>0){
res=true;
}
return res;
},cancelNewItem:function $DBCs_(){
dojo.byId("content").removeChild(dojo.byId("newItem"));
},createEditItemBox:function $DBCt_(_927){
var _928="newItem";
var _929=dojo.byId("node_"+_927);
var _92a=false;
var thiz=this;
if(_929!=null){
if(this.isItemOpen(_929)){
if(dojo.byId("newItem")){
this.wipe(_929,true,"close");
return;
}
this.wipe(_929,true,"close");
}
}
if(isNaN(_927)){
_927=null;
_92a=true;
}
var _92b="";
if(_92a){
_92b="<div class='faqNewItemHead'>Neue Frage erstellen <input type="+"'button' class='faqNewItemCancelButton' value='Abbrechen' onclick='new singles.core.Faq().cancelNewItem()'></input></div>";
}
var url=document.URL.split("/");
var _92c=url[url.length-1];
var thiz=this;
dojo.xhrGet({url:BaseURL+"/static/faq/requestEditboxForm",handleAs:"json",content:{id:_927,category:_92c},load:dojo.hitch(this,function(data){
if(null==data.error){
var box=null;
if(_92a){
box=dojo.create("div",{id:_928,innerHTML:_92b+data.result},"faqhead","after");
}else{
box=dojo.create("div",{id:_928,innerHTML:_92b+data.result},"node_"+_927,"last");
}
var _92d=dojo.byId("faqItemContainer");
var form=dojo.byId("faqItemUpdate");
if(null!=_927){
dojo.connect(form,"onsubmit",dojo.hitch(this,function(e){
e.preventDefault();
dojo.stopEvent(e);
this.updateItem(form,_927);
return false;
}));
var node=dojo.byId("node_"+_927);
var _92e;
var _92f;
var _930;
var _931;
form.question.value=_930=dojo.trim(dojo.query(".faqItemQuestion",node)[0].innerHTML);
for(_92e=0;_92e<_92d.childNodes.length;++_92e){
if(_92d.childNodes[_92e].childNodes.length>0){
_92f=dojo.query("div",_92d.childNodes[_92e])[0];
if(typeof _92f!="undefined"&&"node_"+_927==_92f.id){
_931=_92f.getAttribute("class");
break;
}
}
}
form.answer.innerHTML=dojo.trim(dojo.query(".faqItemAnswer",node)[0].innerHTML);
for(var i=0;i<form.category.options.length;++i){
if(_92c==form.category.options[i].value){
form.category.selectedIndex=i;
break;
}
}
if(_931=="published"){
form.status.selectedIndex=1;
}else{
form.status.selectedIndex=0;
}
}else{
dojo.connect(form,"onsubmit",dojo.hitch(this,function(e){
e.preventDefault();
dojo.stopEvent(e);
this.saveItem(form);
return false;
}));
}
}else{
}
}),error:function $DBCu_(_932,_933){
return _932;
}});
},updateItem:function $DBCv_(form,_934){
LoadingMask.showPopupMessage("Bitte warten...");
var url=document.URL.split("/");
dojo.xhrPost({url:BaseURL+"/static/faq/updateItem",form:form,content:{id:_934,category:url[url.length-1]},handleAs:"json",load:dojo.hitch(this,function(data){
document.location.reload();
}),error:function $DBCw_(_935,_936){
}});
},saveItem:function $DBCx_(form){
LoadingMask.showPopupMessage("Bitte warten...");
var url=document.URL.split("/");
dojo.xhrPost({url:BaseURL+"/static/faq/newItem",form:form,content:{category:url[url.length-1]},handleAs:"json",load:dojo.hitch(this,function(data){
dojo.destroy(form.parentNode);
var _937=data.result;
dojo.xhrGet({url:BaseURL+"/static/faq/item/id/"+data.result,handleAs:"json",load:dojo.hitch(this,function(data){
document.location.reload();
}),error:function $DBCy_(_938,_939){
console.error("HTTP status code: ",_939.xhr.status);
return _938;
}});
}),error:function $DBCz_(_93a,_93b){
alert("Daten konnten nicht erfolgreich eingetragen werden");
}});
},deleteItem:function $DBC0_(_93c,_93d){
var res=confirm("Sind Sie sicher, dass Sie diesen FAQ-Eintrag löschen möchten?");
var thiz=this;
if(res){
_93d.setAttribute("src",this.loadingIconSource);
dojo.xhrPost({url:BaseURL+"/static/faq/deleteItem",content:{id:_93c.split("_")[1]},handleAs:"json",load:function $DBC1_(data){
if(null==data.error){
dojo.destroy(dojo.byId(_93c));
}else{
alert(data.result);
_93d.setAttribute("src",thiz.iconSource);
}
},error:function $DBC2_(_93e,_93f){
alert("Item konnte nicht gelöscht werden");
_93d.setAttribute("src",thiz.iconSource);
}});
}
}});
}
if(!dojo._hasResource["singles.core.Filter"]){
dojo._hasResource["singles.core.Filter"]=true;
dojo.provide("singles.core.Filter");
dojo.declare("singles.core.Filter",null,{trimById:function $DBCc_(ids){
dojo.map(ids,function(id){
return dojo.byId(id).value=dojo.byId(id).value.replace(/^\s+/,"").replace(/\s+$/,"");
});
},removeWsById:function $DBCd_(ids){
dojo.map(ids,function(id){
return dojo.byId(id).value=dojo.byId(id).value.replace(/\s+/g,"");
});
}});
}
if(!dojo._hasResource["singles.user.UsernameSearch"]){
dojo._hasResource["singles.user.UsernameSearch"]=true;
dojo.provide("singles.user.UsernameSearch");
dojo.declare("singles.user.UsernameSearch",singles.widget.SuggestionField,{searchDelay:0,abstractQueryUrl:"/user/search/autocomplete?q=",nextTabFocusId:"",postCreate:function $DBHS_(){
this.inherited(arguments);
this.downArrowNode.style.display="none";
dojo.connect(this.textbox,"onkeypress",dojo.hitch(this,function(evt){
if(evt.keyCode==dojo.keys.ENTER){
if(typeof dojo.byId("usernameSearch").submit!="undefined"){
dojo.byId("usernameSearch").submit();
}
}
if(evt.keyCode==dojo.keys.TAB){
if(this.nextTabFocusId.length>0){
dojo.stopEvent(evt);
dojo.byId(this.nextTabFocusId).focus();
}
}
}));
this.focus();
},_selectOption:function $DBHT_(evt){
var ret=this.inherited(arguments);
if(typeof dojo.byId("usernameSearch").submit!="undefined"){
dojo.byId("usernameSearch").submit();
}
return ret;
}});
}
if(!dojo._hasResource["singles.core.Suggest"]){
dojo._hasResource["singles.core.Suggest"]=true;
dojo.provide("singles.core.Suggest");
dojo.declare("singles.core.Suggest",null,{suggestionField:null,constructor:function $DBCm_(){
this.suggestionField=new singles.user.UsernameSearch({id:"usernameSearch",name:"username",value:"",store:new dojo.data.ItemFileReadStore({url:"/user/search/autocomplete"}),searchAttr:"name",autoComplete:true},"usernameSearch.username");
}});
}
if(!dojo._hasResource["singles.core.Validate"]){
dojo._hasResource["singles.core.Validate"]=true;
dojo.provide("singles.core.Validate");
dojo.declare("singles.core.Validate",null,{init:function $DBCn_(_940,_941){
this.fldIds=_940;
this.fldNames=_941;
this.errors=[];
for(var i=0;i<_941.length;i++){
this.errors[i]=null;
}
this.checkEmpty=function checkEmpty(ids){
dojo.forEach(ids,function(id){
if(dojo.byId(id).value.length==0){
this.errors[dojo.indexOf(this.fldIds,id)]=this.errors[dojo.indexOf(this.fldIds,id)]||"Bitte "+this.fldNames[dojo.indexOf(this.fldIds,id)]+" ausfüllen";
}
},this);
};
this.checkMinLen=function checkMinLen(ids,_942){
dojo.forEach(ids,function(id){
if(dojo.byId(id).value.length<_942[dojo.indexOf(ids,id)]){
this.errors[dojo.indexOf(this.fldIds,id)]=this.errors[dojo.indexOf(this.fldIds,id)]||this.fldNames[dojo.indexOf(this.fldIds,id)]+" ist zu kurz";
}
},this);
};
this.checkMatch=function checkMatch(id,_943,_944){
if(dojo.byId(id).value.match(_943)==null){
this.errors[dojo.indexOf(this.fldIds,id)]=this.errors[dojo.indexOf(this.fldIds,id)]||_944;
}
};
this.renderErrors=function renderErrors(){
var _945="";
for(var i=0;i<this.errors.length;i++){
if(null!=this.errors[i]){
_945+=this.errors[i]+"\n";
}
}
return _945==""?false:_945;
};
}});
}
if(!dojo._hasResource["singles.event.Initiator"]){
dojo._hasResource["singles.event.Initiator"]=true;
dojo.provide("singles.event.Initiator");
dojo.declare("singles.event.Initiator",null,{toogleAllCommentStatus:"none",init:function $DBCT_(){
this.assignClickEvents();
this.prepareParticipantRows();
},assignClickEvents:function $DBCU_(){
var elem=dojo.byId("showEventSettingsAfterCreateSuccess");
if(elem!=null){
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
dojo.connect(elem,"onclick",dojo.hitch(this,function(){
if(dojo.byId("editSettingsAfterSuccess").style.display=="none"){
dojo.fx.wipeIn({node:"editSettingsAfterSuccess",duration:200}).play();
}else{
dojo.fx.wipeOut({node:"editSettingsAfterSuccess",duration:200}).play();
}
}));
}
var elem=dojo.byId("resetClosingDate");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"resetClosingDate"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
}
dojo.forEach(dojo.query("a.eventConfirmation"),dojo.hitch(this,function(lnk){
dojo.connect(lnk,"onclick",function(e){
e.preventDefault();
});
dojo.connect(lnk,"onclick",dojo.hitch(this,function(){
this.initiatorConfirmation(lnk);
}));
}));
var elem=dojo.byId("checkAllParticipants");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,function(){
dojo.query("#participants .participantCheckbox").forEach(function(e){
e.checked=dojo.byId("checkAllParticipants").checked;
});
}));
}
var elem=dojo.byId("checkAllWaitinglist");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,function(){
dojo.query("#onwaitinglist .participantCheckbox").forEach(function(e){
e.checked=dojo.byId("checkAllWaitinglist").checked;
});
}));
}
var elem=dojo.byId("toogleAllCommentForms");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,function(){
dojo.query(".commentForm").forEach(dojo.hitch(this,function(node){
if(this.toogleAllCommentStatus=="block"){
dojo.style(node,"display","none");
}else{
dojo.style(node,"display","block");
}
}));
this.toogleAllCommentStatus=this.toogleAllCommentStatus=="block"?"none":"block";
}));
}
var elem=dojo.query("#disclaimer input.checkbox")[0];
if(elem!=null){
var node=dojo.query("#disclaimer .description")[0];
if(elem.checked){
dojo.style(node,"display","block");
}else{
dojo.style(node,"display","none");
}
dojo.connect(elem,"onchange",dojo.hitch(this,function(){
if(elem.checked){
dojo.style(node,"display","block");
}else{
dojo.style(node,"display","none");
}
}));
}
},resetClosingDate:function $DBCV_(){
dojo.forEach(dojo.query("#closingDate select"),function(elem){
elem.selectedIndex="";
});
},initiatorConfirmation:function $DBCW_(lnk){
participantId=lnk.id.replace("participant_","");
var _946=dojo.byId("eventConfirmationIcon_"+participantId).src;
dojo.byId("eventConfirmationIcon_"+participantId).src="/icons/icon_loading.gif";
dojo.xhrGet({url:lnk.href,handleAs:"json",load:function $DBCX_(_947,_948){
if(null!==_947.error){
dojo.byId("eventConfirmationIcon_"+participantId).src=_946;
alert(_947.error.msg);
return;
}
if(_947.result.confirmation=="unconfirmed"){
dojo.byId("eventConfirmationIcon_"+_947.result.calendarParticipantId).src="/images/participantUnconfirmed.png";
dojo.byId("eventConfirmationIcon_"+_947.result.calendarParticipantId).title="Diesen Teilnehmer als bestätigt markieren.";
}
if(_947.result.confirmation=="confirmed"){
dojo.byId("eventConfirmationIcon_"+_947.result.calendarParticipantId).src="/images/participantConfirmed.png";
dojo.byId("eventConfirmationIcon_"+_947.result.calendarParticipantId).title="Diesen Teilnehmer als unbestätigt markieren.";
}
var _949=dojo.query("div.eventApproveAllParticipiants");
if(_949.length>0){
if(typeof participantListTable!="undefined"){
participantListTable.reload();
}
if(typeof onWaitingListTable!="undefined"){
onWaitingListTable.reload();
}
}
}});
},prepareParticipantRows:function $DBCY_(){
dojo.forEach(dojo.query(".removeParticipant"),function(lnk){
var _94a=/userId(?:\/|=)(\d+)/.exec(lnk.href)[1];
var _94b=dijit.byId("removeParticipantDialog_"+_94a);
dojo.connect(lnk,"onclick",function(e){
e.preventDefault();
});
dojo.connect(lnk,"onclick",_94b,"show");
});
dojo.forEach(dojo.query(".removeEscort"),function(lnk){
dojo.connect(lnk,"onclick",function(e){
e.preventDefault();
});
dojo.connect(lnk,"onclick",function(){
if(confirm("Diesen Begleiter von der Teilnehmerliste nehmen? "+"Der Teilnehmer, der diesen Begleiter eingetragen "+"hat, wird per E-Mail darüber informiert.")){
location.href=lnk.href;
}
});
});
dojo.forEach(dojo.query(".participantRow"),function(row){
dojo.connect(row,"onmouseover",dojo.hitch(this,function(){
dojo.query("a.showCommentForm",row).forEach(function(e){
e.style.display="block";
});
dojo.query("a.removeParticipant, a.removeEscort",row).forEach(function(e){
e.style.display="block";
});
}));
dojo.connect(row,"onmouseout",dojo.hitch(this,function(){
dojo.query("a.showCommentForm",row).forEach(function(e){
e.style.display="none";
});
dojo.query("a.removeParticipant, a.removeEscort",row).forEach(function(e){
e.style.display="none";
});
}));
dojo.query("a.showCommentForm",row).forEach(function(){
dojo.query("a.showCommentForm",row).forEach(function(lnk){
dojo.connect(lnk,"onclick",function(e){
e.preventDefault();
});
dojo.connect(lnk,"onclick",dojo.hitch(this,function(){
dojo.query(".commentForm",row).forEach(function(node){
if(node.style.display=="block"){
dojo.style(node,"display","none");
}else{
dojo.style(node,"display","block");
}
});
}));
});
});
});
},removeParticipant:function $DBCZ_(_94c,_94d,_94e){
dojo.xhrPost({url:"/event/participant/removeParticipant",content:{userId:_94c,eventId:_94d,comment:_94e},load:function $DBCa_(_94f){
if(null==_94f.error){
dojo.destroy("rowId_"+_94c);
}
},error:function $DBCb_(_950,_951){
console.log(_950);
}});
}});
}
if(!dojo._hasResource["singles.event.Search"]){
dojo._hasResource["singles.event.Search"]=true;
dojo.provide("singles.event.Search");
dojo.declare("singles.event.Search",null,{btns:[],expLinks:[],loadingIcon:"<img style=\"vertical-align:middle\" src=\"/icons/icon_loading.gif\" alt=\"\" />",imgSrcOpen:"/images/expand.jpg",imgSrcClose:"/images/collapse.jpg",cntNotSelected:0,cntSelected:0,extendedSearchPrefix:"eventSearchStandard",assignExpandMultiEvents:function $DBB9_(){
var self=this;
this.expLinks=dojo.query("a.expandableLink");
dojo.forEach(this.expLinks,function(lnk){
dojo.connect(lnk,"click",function(){
self.expandMulti(lnk);
});
dojo.connect(lnk,"click",function(e){
e.preventDefault();
});
});
},expandMulti:function $DBCA_(lnk){
var n=dojo.query("img",lnk)[0];
while(lnk.nodeName.toLowerCase()!="fieldset"){
if(lnk.nodeName.toLowerCase()=="body"){
return;
}
lnk=lnk.parentNode;
}
var _952=lnk;
if(dojo.hasClass(_952,"multicollapsed")){
n.src=this.imgSrcClose;
dojo.removeClass(_952,"multicollapsed");
}else{
n.src=this.imgSrcOpen;
dojo.addClass(_952,"multicollapsed");
}
},assignSelectEvents:function $DBCB_(){
var self=this;
var _953=["district","category"];
dojo.forEach(_953,function(id){
dojo.forEach(dojo.query("#"+self.extendedSearchPrefix+" .multicheckbox[name='"+id+"[]']"),function(item){
dojo.connect(item,"click",function(){
self.handleSelectItem(self.extendedSearchPrefix+"."+id);
});
dojo.connect(item,"click",function(){
self.updateSelCount(self.extendedSearchPrefix+"."+id);
});
});
});
var _954=dojo.query("div.expandables > input");
_954[_954.length]=dojo.byId(this.extendedSearchPrefix+".districtSelect_1");
dojo.forEach(_954,function(_955){
if(_955.id.indexOf("selectNothing")>-1||_955.className.indexOf("deselectAll")>-1){
dojo.connect(_955,"click",function(evt){
var _956=evt.currentTarget;
var area=_956.parentNode;
while(area.getAttribute("class")!="expandables"&&area.nodeName.toLowerCase()!="div"){
area=area.parentNode;
if(area.nodeName.toLowerCase()=="body"){
return;
}
}
area=area.parentNode;
if(_956.checked==true){
var _957=dojo.query("input.multicheckbox",area);
dojo.forEach(_957,function(_958){
_958.checked=false;
});
self.updateSelCount(self.extendedSearchPrefix+"."+area.id.split(".")[1]);
}
});
}
});
},handleSelectAll:function $DBCC_(id){
this.setMultiboxes(id,true);
},handleSelectNothing:function $DBCD_(id){
this.setMultiboxes(id,false);
},handleSelectItem:function $DBCE_(id){
var ids=id.split(".");
this.calcSelected(ids[1]);
var _959=dojo.query("div.expandables input",dojo.byId("fieldset_"+id));
if(this.cntNotSelected==0){
_959[0].checked=true;
return;
}
if(this.cntSelected==0){
if(false==_959[1].checked){
_959[0].checked=true;
}
return;
}
_959[0].checked=false;
},showOptions:function $DBCF_(id){
var lnk=dojo.query(".expandableLink","fieldset_"+this.extendedSearchPrefix+"."+id)[0];
var _95a=dojo.byId("fieldset_"+this.extendedSearchPrefix+"."+id);
var img=dojo.query("img",lnk)[0];
if(dojo.hasClass(_95a,"multicollapsed")){
img.src=this.imgSrcClose;
dojo.removeClass(_95a,"multicollapsed");
}
},updateSelCount:function $DBCG_(id){
var ids=id.split(".");
this.calcSelected(ids[1]);
var _95b=" Element";
if(this.cntSelected>0){
if(this.cntNotSelected==0){
dojo.byId(id+".countSelected").innerHTML="Alle Elemente ausgewählt";
}else{
if(this.cntSelected>1){
_95b+="e";
}
dojo.byId(id+".countSelected").innerHTML=this.cntSelected+_95b+" ausgewählt";
}
}else{
dojo.byId(id+".countSelected").innerHTML="";
}
},calcSelected:function $DBCH_(_95c){
var _95d=0;
var _95e=0;
dojo.forEach(dojo.query("#"+this.extendedSearchPrefix+" .multicheckbox[name^='"+_95c+"']"),function(item){
if(true==item.checked){
_95d+=1;
}else{
_95e+=1;
}
});
this.cntNotSelected=_95e;
this.cntSelected=_95d;
},setMultiboxes:function $DBCI_(id,_95f){
var ids=id.split(",");
dojo.forEach(dojo.query("#"+this.extendedSearchPrefix+" .multicheckbox[name^='"+ids[1]+"']"),function(item){
item.checked=_95f;
});
},assignOnclickReset:function $DBCJ_(){
var thiz=this;
dojo.connect(dojo.byId("resetProfilsearchForm"),"click",dojo.hitch(this,function(e){
dojo.stopEvent(e);
thiz.resetForm();
}));
},resetForm:function $DBCK_(){
var type="extended";
var form=dojo.byId("extendedSearch");
var _960=dijit.byId("usernameSearch");
if(null!=_960){
_960.setValue("");
}
if(null==form){
form=dojo.byId("quickSearch");
type="quick";
}
if(null==form){
return;
}
dojo.xhrPost({url:"/user/search/resetAndResendForm",content:{type:type},handleAs:"json",load:dojo.hitch(this,function(data){
if(null==data.error){
dojo.create("span",{innerHTML:data.result},form,"replace");
if("extended"==type){
this.assignExpandMultiEvents();
this.assignSelectEvents();
}
}else{
}
})});
}});
}
if(!dojo._hasResource["singles.Event"]){
dojo._hasResource["singles.Event"]=true;
dojo.provide("singles.Event");
dojo.declare("singles.Event",null,{eventCreate:function $DBFp_(){
this.init=function $DBF5_(){
this.domIdCity=this.formName+".city";
this.prepareCityField();
dojo.connect(dojo.byId(this.domIdCity),"focus",dojo.hitch(this,"focusCity"));
dojo.connect(dojo.byId(this.domIdCity),"blur",dojo.hitch(this,"blurCity"));
};
this.prepareCityField=function $DBF6_(){
e=dojo.byId(this.domIdCity);
if(e.value==""){
e.value=this.defaultCityName;
}
};
this.focusCity=function $DBF7_(){
e=dojo.byId(this.domIdCity);
if(e.value==this.defaultCityName){
e.value="";
}
};
this.blurCity=function $DBF8_(){
e=dojo.byId(this.domIdCity);
if(""==e.value){
e.value=this.defaultCityName;
}
};
},event:function $DBFq_(){
this.init=function $DBF9_(){
this.assignClickEvents();
};
this.setSelectedTab=function $DBGA_(_961){
dojo.query("#showAllSheetsContainer").style("display","block");
dojo.forEach(dojo.query(".tabs li"),dojo.hitch(this,function(tab){
sheet=tab.id.substr(4).toLowerCase();
if(_961==tab){
if(sheet=="participants"&&dojo.byId("unsubscribed")!=null){
dojo.byId("unsubscribed").style.display="block";
}
dojo.byId(sheet).style.display="block";
dojo.forEach(dojo.query("h3",sheet),function(e){
e.style.display="none";
});
dojo.forEach(dojo.query(".infoboxParticipantStatus"),function(e){
e.style.display="block";
});
dojo.addClass(tab.id,"selected");
activeSheet=sheet;
}else{
if(sheet=="participants"&&dojo.byId("unsubscribed")!=null){
dojo.byId("unsubscribed").style.display="none";
}
dojo.byId(sheet).style.display="none";
dojo.removeClass(tab.id,"selected");
}
}));
};
this.assignClickEvents=function $DBGB_(){
dojo.forEach(dojo.query(".tabs li"),dojo.hitch(this,function(tab){
dojo.connect(tab,"onclick",function(e){
e.preventDefault();
});
dojo.connect(tab,"onclick",dojo.hitch(this,function(){
this.setSelectedTab(tab);
}));
}));
var elem=dojo.byId("subscribe");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"subscribeEvent"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
dojo.connect(elem,"onclick",function(e){
e.stopPropagation();
});
}
var elem=dojo.byId("linkUnsubscribeEvent");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"unsubscribeEvent"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
}
var elem=dojo.byId("linkCreateFavorite");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"createFavorite"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
dojo.connect(elem,"onclick",function(e){
e.stopPropagation();
});
}
var elem=dojo.byId("linkDeleteFavorite");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"deleteFavorite"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
dojo.connect(elem,"onclick",function(e){
e.stopPropagation();
});
}
var elem=dojo.byId("showAllSheets");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"showAllSheets"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
}
dojo.connect(dojo.byId("linkPrintOptions"),"onclick",dojo.hitch(this,"showPrintOptions"));
dojo.connect(dojo.byId("linkPrintOptions"),"onclick",function(e){
e.preventDefault();
});
dojo.connect(dojo.byId("printArrow"),"onclick",dojo.hitch(this,"showPrintOptions"));
var elem=dojo.byId("linkExportOptions");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"showExportOptions"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
dojo.connect(dojo.byId("printArrowExport"),"onclick",dojo.hitch(this,"showExportOptions"));
}
var thiz=this;
dojo.forEach(dojo.query(".participantComment"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
var eip=new singles.core.EditInPlace(this);
dojo.global.dependentObj=thiz;
eip.dependentObj=thiz;
eip.setConvertable(el);
eip.addRemoteControl(dojo.byId(el.id+"_remote"),"editInPlaceOver","participantComment editInPlace");
return this;
}));
};
this.showAllSheets=function $DBGC_(){
dojo.query("#showAllSheetsContainer").style("display","none");
dojo.query(".sheet, .sheetSelected").style("display","block");
dojo.forEach(dojo.query(".eventSheetDesc"),function(e){
e.style.display="block";
});
dojo.forEach(dojo.query(".infoboxParticipantStatus"),function(e){
e.style.display="none";
});
};
this.showPrintOptions=function $DBGD_(){
if(dojo.byId("eventPrintOptions").style.display=="none"){
dojo.byId("printArrow").src="/images/arrowGreyRight.png";
dojo.fx.wipeIn({node:"eventPrintOptions",duration:200}).play();
}else{
dojo.byId("printArrow").src="/images/arrowGreyDown.png";
dojo.fx.wipeOut({node:"eventPrintOptions",duration:200}).play();
}
};
this.showExportOptions=function $DBGE_(){
if(dojo.byId("eventExportOptions")==null){
return;
}
if(dojo.byId("eventExportOptions").style.display=="none"){
dojo.byId("printArrowExport").src="/images/arrowGreyRight.png";
dojo.fx.wipeIn({node:"eventExportOptions",duration:200}).play();
}else{
dojo.byId("printArrowExport").src="/images/arrowGreyDown.png";
dojo.fx.wipeOut({node:"eventExportOptions",duration:200}).play();
}
};
this.createEditInPlaceNodes=function $DBGF_(eip){
var _962=eip.convertable;
formId="participantComment";
var _963=document.createElement("form");
dojo.attr(_963,"name",formId);
dojo.attr(_963,"id",formId);
dojo.attr(_963,"action","/event/initiator/comment");
dojo.attr(_963,"accept-charset","UTF-8");
dojo.attr(_963,"onsubmit",dojo.hitch(eip,function(evt){
evt.preventDefault();
this.doSubmit();
}));
dojo.place(_963,_962,"after");
var from=document.createElement("input");
dojo.attr(from,"type","hidden");
dojo.attr(from,"name","Studio3w_Form[from]");
dojo.attr(from,"value",formId);
var _964=document.createElement("input");
dojo.attr(_964,"type","hidden");
dojo.attr(_964,"name","calendarEventId");
dojo.attr(_964,"value",eip.dependentObj.eventId);
var _965=document.createElement("input");
dojo.attr(_965,"type","hidden");
dojo.attr(_965,"name","calendarParticipantId");
dojo.attr(_965,"value",eip.convertable.id.split("_")[1]);
var _966=document.createElement("input");
dojo.attr(_966,"type","text");
dojo.attr(_966,"name","comment");
dojo.attr(_966,"class","text");
dojo.attr(_966,"value",_962.innerHTML=="[-- Notiz hinzufügen --]"?"":_962.childNodes[0].nodeValue);
var _967=document.createElement("br");
var _968=dojo.create("button",{innerHTML:"<span>Eintragen</span>"});
dojo.attr(_968,"type","button");
dojo.attr(_968,"name","submit");
dojo.attr(_968,"value","Eintragen");
dojo.attr(_968,"class","gold");
dojo.attr(_968,"onclick",dojo.hitch(eip,"doSubmit"));
var _969=dojo.create("button",{innerHTML:"<span>Abbrechen</span>"});
dojo.attr(_969,"type","button");
dojo.attr(_969,"name","cancel");
dojo.attr(_969,"value","Abbrechen");
dojo.attr(_969,"onclick",dojo.hitch(eip,"doCancel"));
dojo.attr(_969,"style","margin: 0 0 5px 5px;");
dojo.place(_966,_963,0);
dojo.place(_967,_963,1);
dojo.place(_968,_963,2);
dojo.place(_969,_963,3);
dojo.place(from,_963,4);
dojo.place(_964,_963,5);
dojo.place(_965,_963,6);
_966.focus();
return this;
};
this.subscribeEvent=function $DBGG_(){
var link=dojo.byId("subscribe").firstChild.nextSibling.id;
if(link.indexOf("premium")!=-1){
e=dojo.byId("linkSubscribeEvent_premium");
location.href=e.href;
}else{
if(link.indexOf("hasidentity")!=-1){
var _96a=new singles.widget.ButtonDialog({title:"Eventanmeldung für Premiummitglieder",style:"width: 350px; height:160px",toggleUnderlay:true,draggable:false,closable:false,content:"Die Anmeldung zu Events ist unseren Premiummitgliedern vorbehalten.<br />Wenn Sie sich zu einem oder mehreren Events anmelden möchten, müssen Sie zuerst eine Premiummitgliedschaft abschließen.",buttonStyle:"display:block;margin-bottom:3px",buttons:[{html:"Jetzt Premiummitglied werden",onClick:function $DBFr_(evt,_96b,_96c){
_96c.hide();
document.location.href=BaseURL+"/payment/payment/";
},id:"forward",style:"float:left;font-size: 1.2em; margin: 0 0.5em 0 0;"},{html:"Abbrechen",onClick:function $DBFs_(evt,_96d,_96e){
_96e.hide();
},cls:"ndOrder",id:"back",style:"float:left; font-size: 1.2em; margin: 0.5em 0 0 0.5em;"}]});
_96a.show();
}else{
var url=document.URL;
url=url.substr(0,url.indexOf("/event"))+url.substr(url.indexOf("/event"));
var _96a=new singles.widget.ButtonDialog({title:"Login",style:"width: 350px; height:160px",toggleUnderlay:true,draggable:false,closable:false,content:"<form action='"+url+"' name='login' method='post' id='login' accept-charset='UTF-8'><input type='hidden' name='comeFromLoginForm' value='1' /><input type='hidden' name='encoding' value='UTF-8' /><input type='hidden' name='Studio3w_Form[from]' value='login' />E-Mail (oder Benutzername)<br class='clearer'><input tabindex='5' type='text' name='username' id='quicklogin.username' class='text' title='Profilname' /><br class='clearer' />Passwort<br class='clearer'><input tabindex='6' type='password' name='password' id='quicklogin.password' class='text' title='Passwort' /><br class='clearer' /><input id='quicklogin.submit' class='submit' tabindex='7' type='submit' name='login' value='Einloggen' style='float: left;'/></form>",buttons:[{html:"Jetzt registrieren",onClick:function $DBFt_(evt,_96f,_970){
document.location.href=BaseURL+"/user/register";
},id:"register",style:"float:left;font-size: 1.2em; margin: 0 0 0 0.5em;"},{html:"Abbrechen",onClick:function $DBFu_(evt,_971,_972){
_972.hide();
},cls:"ndOrder",id:"back",style:"float:left; font-size: 1.2em; margin: 0.5em 0 0 0.5em;"}]});
_96a.show();
}
}
};
this.unsubscribeEvent=function $DBGH_(){
e=dojo.byId("linkUnsubscribeEvent");
message="Möchten Sie sich wirklich vom Event abmelden? Beachten Sie bitte, dass damit auch alle Begleitpersonen vom Event abgemeldet werden.";
if(confirm(message)){
location.href=e.href;
}
return false;
};
this.createFavorite=function $DBGI_(){
LoadingMask.show();
var _973=dojo.byId("linkCreateFavorite");
var link=_973.href;
var id=link.substring(link.indexOf("calendarEventId")+16,link.length);
var thiz=this;
dojo.xhrPost({url:BaseURL+"/event/favorite/create",handleAs:"json",content:{calendarEventId:id},load:function $DBFv_(data){
if(data.success>=0){
var n=dojo.create("li",{innerHTML:"<img id=\"eventFavorite\" src=\"/images/eventFavoriteChecked.png\" alt=\"Sie haben sich dieses Event vorgemerkt.\" title=\"Sie haben sich dieses Event vorgemerkt.\" /><a title=\"Event wieder von den Eventfavoriten entfernen\" id=\"linkDeleteFavorite\" href=\""+BaseURL+"/event/favorite/delete/calendarEventId/"+data.success+"\">(entfernen)</a>"});
_973.parentNode.parentNode.replaceChild(n,_973.parentNode);
var _974=dojo.byId("linkDeleteFavorite");
if(_974!=null){
dojo.connect(_974,"onclick",dojo.hitch(thiz,"deleteFavorite"));
dojo.connect(_974,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_974,"onclick",function(e){
e.stopPropagation();
});
}
LoadingMask.hide();
}else{
LoadingMask.hide();
alert(data.result.msg);
}
},error:function $DBFw_(_975,_976){
LoadingMask.hide();
console.error("HTTP status code: ",_976.xhr.status);
return _975;
}});
};
this.deleteFavorite=function $DBGJ_(){
LoadingMask.show();
var _977=dojo.byId("linkDeleteFavorite");
var link=_977.href;
var id=link.substring(link.indexOf("calendarEventId")+16,link.length);
var thiz=this;
dojo.xhrPost({url:BaseURL+"/event/favorite/delete",handleAs:"json",content:{calendarEventId:id},load:function $DBFx_(data){
if(data.success>=0){
var n=dojo.create("li",{innerHTML:"<a class=\"button\" id=\"linkCreateFavorite\" href=\"\""+BaseURL+"event/favorite/create/calendarEventId/"+data.success+"\"><span>Event merken</span></a>"});
_977.parentNode.parentNode.replaceChild(n,_977.parentNode);
var _978=dojo.byId("linkCreateFavorite");
if(_978!=null){
dojo.connect(_978,"onclick",dojo.hitch(thiz,"createFavorite"));
dojo.connect(_978,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_978,"onclick",function(e){
e.stopPropagation();
});
}
LoadingMask.hide();
}else{
LoadingMask.hide();
alert(data.result.msg);
}
},error:function $DBFy_(_979,_97a){
LoadingMask.hide();
console.error("HTTP status code: ",_97a.xhr.status);
return _979;
}});
};
},assignFavouriteEventDeleteLinkAction:function $DBFz_(){
dojo.forEach(dojo.query(".linkEventDeleteFavorite"),function(_97b){
var _97c=function(_97d){
var _97e=_97d.getAttribute("href");
_97e=_97e.split("/");
_97e=_97e[_97e.length-1];
dojo.xhrPost({url:BaseURL+"/event/favorite/delete",handleAs:"json",content:{calendarEventId:_97e},load:function $DBF0_(data){
if(data.success>=0){
var _97f="event"+_97e;
dojo.fx.wipeOut({node:_97f,onEnd:function(){
LoadingMask.hide();
dojo.destroy(_97f);
var rows=dojo.query("#eventListDiv > div");
var _980=true;
dojo.forEach(rows,function(row){
var trs=dojo.query("table > tbody > tr",row);
dojo.forEach(trs,function(tr){
dojo.removeClass(tr,"odd");
dojo.removeClass(tr,"even");
if(_980){
dojo.addClass(tr,"even");
}else{
dojo.addClass(tr,"odd");
}
});
_980=!_980;
});
}}).play();
}else{
LoadingMask.hide();
}
},error:function $DBF1_(_981,_982){
LoadingMask.hide();
console.error("HTTP status code: ",_982.xhr.status);
return _981;
}});
};
dojo.connect(_97b,"onclick",function(){
_97c(_97b);
});
dojo.connect(_97b,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_97b,"onclick",function(e){
e.stopPropagation();
});
});
},assignCanceledEventDeleteLinkAction:function $DBF2_(){
dojo.forEach(dojo.query(".removeEventIcon"),function(_983){
var _984=function(_985){
var _986=_985.getAttribute("href");
_986=_986.split("/");
_986=_986[_986.length-1];
_986=_986.split("?");
_986=_986[0];
dojo.xhrPost({url:BaseURL+"/event/participant/hidefrommyevents",handleAs:"json",content:{calendarEventId:_986},load:function $DBF3_(data){
if(data.success){
var _987="event"+_986;
dojo.fx.wipeOut({node:_987,onEnd:function(){
LoadingMask.hide();
dojo.destroy(_987);
var rows=dojo.query("#eventListDiv > div");
var _988=true;
dojo.forEach(rows,function(row){
var trs=dojo.query("table > tbody > tr",row);
dojo.forEach(trs,function(tr){
dojo.removeClass(tr,"odd");
dojo.removeClass(tr,"even");
if(_988){
dojo.addClass(tr,"even");
}else{
dojo.addClass(tr,"odd");
}
});
_988=!_988;
});
}}).play();
}else{
LoadingMask.hide();
}
},error:function $DBF4_(_989,_98a){
LoadingMask.hide();
console.error("HTTP status code: ",_98a.xhr.status);
return _989;
}});
};
dojo.connect(_983,"onclick",function(){
_984(_983);
});
dojo.connect(_983,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_983,"onclick",function(e){
e.stopPropagation();
});
});
}});
singles.Event=new singles.Event();
}
if(!dojo._hasResource["singles.event.OrganizerSearch"]){
dojo._hasResource["singles.event.OrganizerSearch"]=true;
dojo.provide("singles.event.OrganizerSearch");
dojo.declare("singles.event.OrganizerSearch",singles.widget.SuggestionField,{searchDelay:50,abstractQueryUrl:"/user/search/autocomplete/q/",_selectOption:function $DBCL_(evt){
var ret=this.inherited(arguments);
dojo.byId("eventSearchInitiator").submit();
return ret;
}});
}
if(!dojo._hasResource["s3w.widget.SortableTable"]){
dojo._hasResource["s3w.widget.SortableTable"]=true;
dojo.provide("s3w.widget.SortableTable");
dojo.declare("s3w.widget.SortableTable",null,{baseUrl:"",domNodeId:null,outputType:"web",typeName:"",entityId:0,firstAlernativeSortType:"DESC",loadingText:"Lade Daten...",firstSort:true,lastRequestHeader:false,render:function $DBIJ_(id,_98b,_98c){
this.domNodeId=id;
this.outputType=_98b;
this.entityId=_98c;
if(arguments.length==4&&typeof arguments[3]!="undefined"&&arguments[3]!=null&&arguments[3].length>0){
this.typeName=arguments[3];
}
dojo.forEach(dojo.query(".SortableTableHeader",dojo.byId(id+"_header")),dojo.hitch(this,"registerHandlerForColumn"));
return this;
},registerHandlerForColumn:function $DBIK_(_98d){
this.createSortButtonNodeForColumn(_98d);
this._registerHandler(_98d);
},_registerHandler:function $DBIL_(_98e){
dojo.connect(_98e,"click",dojo.hitch(this,function(evt){
evt.preventDefault();
this.toggleSortForColumn(_98e);
}));
},createSortButtonNodeForColumn:function $DBIM_(_98f){
_98f.innerHTML+="<div class='SortableTableButtonNode'></div>";
},setHeaderColumnClass:function $DBIN_(_990){
var _991=dojo.query(".SortableTableButtonNode",dojo.byId(_990));
_991=_991[0];
var _992=_990.id;
var _993=this.firstAlernativeSortType;
if(!dojo.hasClass(_991,"SortableTableHeaderASC")&&!dojo.hasClass(_991,"SortableTableHeaderDESC")){
if(_993=="ASC"){
dojo.addClass(_991,"SortableTableHeaderDESC");
}else{
dojo.addClass(_991,"SortableTableHeaderASC");
}
}
if(dojo.hasClass(_991,"SortableTableHeaderDESC")){
dojo.removeClass(_991,"SortableTableHeaderDESC");
dojo.addClass(_991,"SortableTableHeader"+_993);
}else{
dojo.removeClass(_991,"SortableTableHeaderASC");
dojo.addClass(_991,"SortableTableHeader"+_993);
}
return [_993,_992];
},toggleSortForColumn:function $DBIO_(_994){
if(this.firstAlernativeSortType=="ASC"){
this.firstAlernativeSortType="DESC";
}else{
this.firstAlernativeSortType="ASC";
}
var data=this.setHeaderColumnClass(_994);
this.requestResortForTable(data[1],data[0]);
},prepareRequestHeader:function $DBIP_(_995,_996){
return this.lastRequestHeader={entityId:this.entityId,property:_995,direction:_996,output:this.outputType,table:this.typeName};
},requestResortForTable:function $DBIQ_(_997,_998){
var _999=false;
if(arguments.length==3&&typeof arguments[2]!="undefined"&&arguments[2]==true){
_999=true;
}
this.resetSortPositioning(_997,_998,_999);
LoadingMask.show();
dojo.xhrPost({url:this.baseUrl,content:this.prepareRequestHeader(_997,_998),handleAs:"json",load:dojo.hitch(this,function(data){
if(typeof (data.message)=="object"){
var _99a=dojo.create("div",{innerHTML:data.message[1]});
var _99b=dojo.query(".paginationContainer")[0];
dojo.place(_99a,_99b,"replace");
data.message=data.message[0];
}
var _99c=dojo.byId(this.domNodeId);
if(dojo.byId(this.domNodeId).className!=""){
var _99d="class='"+dojo.byId(this.domNodeId).className+"'";
}else{
var _99d="";
}
var _99e=_99c.parentNode;
var _99f=dojo.query("tbody",_99c);
_99c.removeChild(_99f[0]);
var _9a0="<table id='"+this.domNodeId+"' "+_99d+">"+_99c.innerHTML+"<tbody>"+data.message+"</tbody></table>";
var _9a1=document.createElement("div");
_99e.appendChild(_9a1);
_9a1.innerHTML=_9a0;
_99e.replaceChild(_9a1,_99c);
dojo.forEach(dojo.query(".SortableTableHeader",dojo.byId(this.domNodeId+"_header")),dojo.hitch(this,"_registerHandler"));
LoadingMask.hide();
this.postLoadAction();
}),error:function $DBIR_(_9a2,_9a3){
console.error("HTTP status code: ",_9a3.xhr.status);
return _9a2;
}});
},postLoadAction:function $DBIS_(){
},sortBySelect:function $DBIT_(){
var _9a4=dojo.byId(this.domNodeId+"_select");
var _9a5=_9a4.selectedIndex;
_9a5=_9a4.options[_9a5].value;
_9a5=_9a5.split(",");
this.requestResortForTable(_9a5[0],_9a5[1],true);
},resetSortPositioning:function $DBIU_(_9a6,_9a7,_9a8){
var _9a9=dojo.byId(this.domNodeId+"_select");
this.firstAlernativeSortType=_9a7;
if(typeof _9a9!="undefined"&&_9a9!=null){
var _9aa=0;
for(var i=0;i<_9a9.options.length;i++){
if(_9a9.options[i].value.indexOf(_9a6)>-1&&_9a9.options[i].value.indexOf(_9a7)>-1){
_9aa=i;
}
}
_9a9.selectedIndex=_9aa;
}
dojo.forEach(dojo.query(".SortableTableHeader",dojo.byId(this.domNodeId+"_header")),dojo.hitch(this,function(_9ab){
var _9ac=dojo.query(".SortableTableButtonNode",dojo.byId(_9ab));
_9ac=_9ac[0];
if(_9ac.parentNode.id.indexOf(_9a6)==-1){
dojo.removeClass(_9ac,"SortableTableHeaderDESC");
dojo.removeClass(_9ac,"SortableTableHeaderASC");
}else{
if(_9a8){
this.setHeaderColumnClass(_9ab);
}
}
}));
},reload:function $DBIV_(){
if(this.lastRequestHeader==false){
this.prepareRequestHeader("","");
}
this.requestResortForTable(this.lastRequestHeader.property,this.lastRequestHeader.direction);
},presetHeaderClass:function $DBIW_(_9ad,type){
type=type.toUpperCase();
var _9ae=dojo.query("div",dojo.byId(_9ad))[0];
dojo.removeClass(_9ae,"SortableTableHeaderASC");
dojo.removeClass(_9ae,"SortableTableHeaderDESC");
dojo.addClass(_9ae,"SortableTableHeader"+type);
}});
}
if(!dojo._hasResource["singles.event.SortableTable"]){
dojo._hasResource["singles.event.SortableTable"]=true;
dojo.provide("singles.event.SortableTable");
dojo.declare("singles.event.SortableTable",s3w.widget.SortableTable,{baseUrl:BaseURL+"/event/event/participants",firstAlernativeSortType:"DESC",prepareRequestHeader:function $DBB7_(_9af,_9b0){
return this.lastRequestHeader={eventId:this.entityId,property:_9af,direction:_9b0,output:this.outputType,table:this.typeName};
},postLoadAction:function $DBB8_(){
var _9b1=new singles.event.Initiator();
_9b1.init();
var _9b2=new s3w.widget.EditInPlaceParser();
_9b2.parse(window.document.body);
}});
}
if(!dojo._hasResource["singles.event.SortableTableLatest"]){
dojo._hasResource["singles.event.SortableTableLatest"]=true;
dojo.provide("singles.event.SortableTableLatest");
dojo.declare("singles.event.SortableTableLatest",s3w.widget.SortableTable,{baseUrl:BaseURL+"/event/event/latest",firstAlernativeSortType:"ASC",prepareRequestHeader:function $DBCM_(_9b3,_9b4){
return {eventId:this.entityId,property:_9b3,direction:_9b4,output:this.outputType,table:this.typeName};
}});
}
if(!dojo._hasResource["singles.event.List"]){
dojo._hasResource["singles.event.List"]=true;
dojo.provide("singles.event.List");
dojo.declare("singles.event.List",null,{init:function $DBCN_(){
},extendMoreEvents:function $DBCO_(_9b5){
if(dojo.query("."+_9b5)[0].style.display=="none"){
dojo.forEach(dojo.query("."+_9b5),function(el){
dojo.fx.wipeIn({node:el,duration:200}).play();
});
}else{
dojo.forEach(dojo.query("."+_9b5),function(el){
dojo.fx.wipeOut({node:el,duration:500}).play();
});
}
}});
}
if(!dojo._hasResource["singles.mailbox.SearchDialog"]){
dojo._hasResource["singles.mailbox.SearchDialog"]=true;
dojo.provide("singles.mailbox.SearchDialog");
dojo.declare("singles.mailbox.SearchDialog",singles.widget.ButtonDialog,{folders:[],postCreate:function $DBE2_(){
var ret=this.inherited(arguments);
if(typeof this.params["folders"]!="undefined"&&this.params["folders"]!=null){
this.folders=this.params["folders"];
}
if(typeof this.params["contacts"]!="undefined"&&this.params["contacts"]!=null){
this.contacts=this.params["contacts"];
}
return ret;
}});
}
if(!dojo._hasResource["singles.Mailbox"]){
dojo._hasResource["singles.Mailbox"]=true;
dojo.provide("singles.Mailbox");
dojo.declare("singles.Mailbox",null,{_global:dojo.global,loadingIcon:"<img style=\"vertical-align:middle;float:right\" src=\"/icons/icon_loading.gif\" alt=\"\" />",constructor:function $DBFJ_(){
this._global.showUGotNewMessage=singles.Mailbox.showUGotNewMessage;
this._global.extendDivHeight=singles.Mailbox.extendDivHeight;
this.applyUsernameSearchField();
},applyUsernameSearchField:function $DBFK_(){
var _9b6=setInterval(function(){
var _9b7=dojo.byId("usernameSearchMailbox");
if(typeof _9b7!="undefined"&&_9b7!=null){
clearInterval(_9b6);
new singles.user.UsernameSearch({id:"usernameSearch",name:"recipient",value:_9b7.value,store:new dojo.data.ItemFileReadStore({url:"/user/search/autocomplete"}),searchAttr:"name",nextTabFocusId:"subject",autoComplete:true},"usernameSearchMailbox");
}
},100);
},showUGotNewMessage:function $DBFL_(){
document.getElementById("hintBoxDiv").innerHTML=document.getElementById("hintBoxDiv").innerHTML;
var _9b8=document.getElementById("hintContainer");
_9b8.style.display="";
len=_9b8.style.height.toString().length;
hgt=_9b8.style.height.substring(0,len-2);
if(hgt==""){
hgt=0;
}
window.setTimeout("extendDivHeight('hintContainer', "+hgt+", "+250+")",5);
},extendDivHeight:function $DBFM_(dv,_9b9,_9ba){
var _9bb=document.getElementById(dv);
_9bb.style.height=_9b9+"px";
_9b9+=15;
if(_9b9<_9ba){
window.setTimeout("extendDivHeight('"+dv+"', "+_9b9+", "+250+")",5);
}else{
window.setTimeout("document.getElementById(\"hintContainer\").style.display=\"none\"",5000);
_9bb.style.overflow="auto";
if(typeof window.pageYOffset=="number"){
if(window.pageYOffset>200){
document.getElementById("hintContainer").style.top=(window.pageYOffset+250)+"px";
}
}else{
if(typeof document.documentElement.scrollTop=="number"){
if(document.documentElement.scrollTop>200){
document.getElementById("hintContainer").style.top=(document.documentElement.scrollTop+250)+"px";
}
}else{
if(typeof document.body.scrollTop=="number"){
if(document.body.scrollTop>200){
document.getElementById("hintContainer").style.top=(document.body.scrollTop+250)+"px";
}
}
}
}
}
},assignIgnoreEvents:function $DBFN_(){
dojo.forEach(dojo.query(".ignoreMailFromUser"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,function(){
this.ignoreUser(el);
}));
}));
},assignTrashEvents:function $DBFO_(){
dojo.forEach(dojo.query(".trashMsg"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,function(){
this.trashMsg(el,"trash");
}));
}));
dojo.forEach(dojo.query(".deleteMsg"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,function(){
this.trashMsg(el,"delete");
}));
}));
},assignActionEvents:function $DBFP_(){
var form=dojo.byId("messageActions");
if(null!=form){
dojo.connect(form,"onsubmit",dojo.hitch(this,function(e){
dojo.stopEvent(e);
this.handleMsgAction();
}));
}
},assignSelectAllEvents:function $DBFQ_(){
var form=dojo.byId("messageActions");
if(null!=form){
var elem=dojo.byId("m_all");
if(elem!=null){
dojo.connect(elem,"onclick",function(el){
var i;
if(form.elements["m_all"].checked==true){
for(i=0;i<form.length;i++){
form[i].checked=true;
}
}else{
for(i=0;i<form.length;i++){
form[i].checked=false;
}
}
});
}
}
},selectAll:function $DBFR_(){
alert(this);
},trashMsg:function $DBFS_(el,_9bc){
var _9bd=el.id.split("_")[1];
var _9be=el.id.split("_")[2];
var thiz=this;
switch(_9bc){
case "delete":
var _9bf="Diese Nachricht löschen?";
var url=BaseURL+"/mailbox/flag/message";
break;
default:
var _9bf="Diese Nachricht in den Papierkorb verschieben?";
var url=BaseURL+"/mailbox/message/update/format/json";
break;
}
if(false===confirm(_9bf)){
return;
}
dojo.byId(el.id).innerHTML=this.loadingIcon;
dojo.xhrPost({url:url,handleAs:"json",content:{id:_9bd,folder:_9be,type:_9bc,format:"json"},load:function $DBFT_(data){
if(null===data.error){
dojo.forEach(dojo.query("tr.message_"+_9bd),function(el){
el.parentNode.removeChild(el);
});
thiz.refreshFolders();
}else{
alert(data.result.msg);
}
},error:function $DBFU_(_9c0,_9c1){
console.error("HTTP status code: ",_9c1.xhr.status);
return _9c0;
}});
},handleMsgAction:function $DBFV_(){
var form=dojo.byId("messageActions");
var _9c2=form.actions.value;
var url="";
if(typeof _9c2=="number"&&0>_9c2){
alert("Bitte wählen Sie eine Aktion aus");
return;
}
switch(_9c2){
case "delete":
case "read":
case "unread":
url=BaseURL+"/mailbox/flag/message/type/"+_9c2;
break;
case "trash":
url=BaseURL+"/mailbox/move/msg/to/trash";
break;
default:
url=BaseURL+"/mailbox/move/msg/to/"+_9c2;
break;
}
dojo.xhrPost({url:url,handleAs:"json",form:form,load:function $DBFW_(data){
if(null==data.error){
window.location.reload();
}else{
alert(data.msg);
}
}});
},ignoreUser:function $DBFX_(el){
var _9c3=new singles.widget.ButtonDialog({title:"Teilnehmer wirklich ignorieren?",style:"width: 290px; height:85px; text-align: center;",toggleUnderlay:true,draggable:false,closable:false,buttons:[{html:"Teilnehmer ignorieren",onClick:function $DBFY_(evt,_9c4,_9c5){
_9c5.hide();
var _9c6=el.id.split("_")[1];
dojo.xhrPost({url:BaseURL+"/user/ignorelist/add/what/pn",handleAs:"json",content:{id:_9c6},load:function $DBFZ_(data){
var _9c7=new singles.widget.ButtonDialog({title:data.result.msg,style:"width: 250px; height:85px; text-align: center;",toggleUnderlay:true,draggable:false,closable:false,buttons:[{html:"OK",onClick:function $DBFa_(evt,_9c8,_9c9){
_9c9.hide();
},id:"ok",style:"text-align: center;"}]});
_9c7.show();
},error:function $DBFb_(_9ca,_9cb){
alert("Der Teilnehmer konnte aufgrund eines Systemfehlers nicht ignoriert werden.");
console.error("HTTP status code: ",_9cb.xhr.status);
return _9ca;
}});
},id:"back",style:"float:left;font-size: 1.2em;"},{html:"Abbrechen",onClick:function $DBFc_(evt,_9cc,_9cd){
_9cd.hide();
},cls:"ndOrder",id:"back",style:"float:left; font-size: 1.2em; margin: 0.5em 0 0 0.5em;"}]});
_9c3.show();
},assignCreateMessageClickEvents:function $DBFd_(){
var form=dojo.byId("answerForm");
var _9ce=dojo.byId("subject");
dojo.connect(dojo.byId("sendPost"),"onClick",function(e){
if(0==dojo.byId("subject").value.length){
alert("Sie haben keinen Betreff angegeben!");
return false;
}else{
return true;
}
});
},assignReportClickEvents:function $DBFe_(){
var _9cf=dojo.query(".reportMsg")[0];
dojo.connect(_9cf,"onclick",this,function(e){
var _9d0=new singles.widget.ButtonDialog({title:"Nachricht melden",style:"width: 630px; height:270px",toggleUnderlay:true,draggable:false,closable:false,content:"<form action='"+_9cf.href+"' name='mailboxreport' method='post' id='mailboxreport' accept-charset='UTF-8'><input type='hidden' name='Studio3w_Form[from]' value='mailboxreport' /><div class='elementContainer'><label for='mailboxreport.reason'>Melden wegen:</label><select id='mailboxreport.reason' class='select' name='reason'><option value='spam'>Spam</option><option value='belaestigung'>Belästigung</option><option value='beleidigung'>Beleidigung</option><option value='werbung'>Werbung</option><option value='sonstiges'>Sonstiges</option></select></div><div class='elementContainer'><label for='mailboxreport.comment'>Ihr Kommentar (optional):</label><textarea name='comment' id='mailboxreport.comment' class='textarea' cols='45' rows='7'></textarea></div><input type='submit' id='mailboxreport.searchButton' class='submit'  name='searchButton' value='Nachricht melden' style='float: left;'/></form>",buttonStyle:"display:block;margin-bottom:3px",buttons:[{html:"Abbrechen",onClick:function $DBFf_(evt,_9d1,_9d2){
_9d2.hide();
},cls:"ndOrder",id:"back",style:"float:left; font-size: 1.2em; margin: 0.5em 0 0 0.5em;"}]});
_9d0.show();
e.stopPropagation();
dojo.stopEvent(e);
});
},assignSearchClickEvent:function $DBFg_(){
dojo.connect(dojo.byId("mailboxSearchMessage"),"onclick",this,function(e){
var _9d3=new singles.mailbox.SearchDialog({folders:window.folders,contacts:window.contacts,title:"Nachricht suchen",style:"width: 480px;",toggleUnderlay:true,draggable:false,closable:false,content:"<form action='/mailbox/search' name='mailboxsearch' method='get' id='mailboxsearch' accept-charset='UTF-8'>"+"<input type='hidden' name='Studio3w_Form[from]' value='mailboxsearch' /><div class='elementContainer'><label for='mailboxsearch.sucheNach'>Suche nach:</label><input type='text' id='mailboxsearch.sucheNach' class='text' name='sucheNach' value='' /><span id='mailboxsearch.sucheNach_message'></span></div>"+"<div id='extendedSearch' style='display: none;'><div class='elementContainer'><label for='mailboxsearch.folder'>Such in diesem Ordner:</label>"+"<select id='mailboxsearch.folder' class='select' name='folder'><option value='0'>alle Ordner</option></select>"+"</div>"+"<div class='elementContainer' id='searchFromTo'><fieldset class='select'><legend>Suche in Nachrichten:</legend>"+"<ul><li>"+"<select name='fromToChoice' class='select'><option value='von und an'>von und an</option><option value='von'>von</option><option value='an'>an</option></select>"+"<select id='mailboxsearch.contacts' name='usernames' class='select'><option value='alle Teilnehmer'>alle Teilnehmer</option></select>"+"</li></ul>"+"</fieldset></div>"+"<div class='elementContainer'><label for='mailboxsearch.matching'>Die Nachrichten enthalten:</label>"+"<select id='mailboxsearch.matching' class='select' name='matching'>"+"<option value='exact' selected='selected'>genau die gesuchte Wortgruppe</option>"+"<option value='oneof'>eines der gesuchten Wörter</option>"+"<option value='all'>alle der gesuchten Wörter</option>"+"</select>"+"</div></div>"+"<input type='submit' id='mailboxsearch.searchButton' class='submit'  name='searchButton' value='Suchen' style='float: left;' /></form>",buttonStyle:"display:block;margin-bottom:3px",buttons:[{html:"Erweiterte Suche",onClick:function $DBFh_(evt,_9d4,_9d5){
if(dojo.byId("extendedSearch").style.display=="none"){
dojo.fx.wipeIn({node:"extendedSearch",duration:500}).play();
if(dojo.byId("mailboxsearch.folder").firstChild.nextSibling==null){
var _9d6=dojo.byId("mailboxsearch.folder");
for(folder in _9d3.folders){
var _9d7=document.createElement("option");
_9d7.innerHTML=(_9d3.folders[folder][1]);
var atr=document.createAttribute("value");
atr.nodeValue=_9d3.folders[folder][0];
_9d7.setAttributeNode(atr);
_9d6.appendChild(_9d7);
}
var _9d8=dojo.byId("mailboxsearch.contacts");
for(contact in _9d3.contacts){
var _9d7=document.createElement("option");
_9d7.innerHTML=(_9d3.contacts[contact]);
var atr=document.createAttribute("value");
atr.nodeValue=_9d3.contacts[contact];
_9d7.setAttributeNode(atr);
_9d8.appendChild(_9d7);
}
_9d7=false;
}
}else{
dojo.fx.wipeOut({node:"extendedSearch",duration:500}).play();
}
},cls:"ndOrder",id:"back",style:"float:left; font-size: 1.2em; margin: 0.5em 0 0 0.5em;"},{html:"Abbrechen",onClick:function $DBFi_(evt,_9d9,_9da){
_9da.hide();
dojo.query("#extendedSearch").orphan();
},cls:"ndOrder",id:"back",style:"float:left; font-size: 1.2em; margin: 0.5em 0 0 0.5em;"}]});
_9d3.show();
e.stopPropagation();
dojo.stopEvent(e);
});
},refreshFolders:function $DBFj_(){
dojo.xhrPost({url:BaseURL+"/mailbox/index/folders/format/json",handleAs:"json",content:{},load:function $DBFk_(data){
if(null===data.error){
var _9db=dojo.query(".mailboxFolderListElement").orphan();
var _9dc=dojo.query(".mailboxFolderListCount").orphan();
for(var i=data.message[0].length-1;i>=0;i--){
var _9dd=dojo.create("dt",{className:"mailboxFolderListElement"});
var _9de=dojo.place(dojo.create("img",{src:"/images/mailboxFolder.png"}),_9dd,"first");
var link=dojo.place(dojo.create("a",{title:"Es befinden sich "+data.message[0]["mbb_count"]+" Nachrichten im Ordner "+data.message[0][i]["mbb_boxname"],href:"mailbox/index/index/folderId/"+data.message[0][i]["mbb_id"],innerHTML:data.message[0][i]["mbb_boxname"]}),_9dd,"last");
var _9dc=dojo.create("dd",{className:"mailboxFolderListCount",innerHTML:data.message[0][i]["mbb_count"]});
var _9df=dojo.query("#secnav dl")[0];
var link=dojo.place(_9dc,_9df,"first");
var link=dojo.place(_9dd,_9df,"first");
}
}else{
}
},error:function $DBFl_(_9e0,_9e1){
console.error("HTTP status code: ",_9e1.xhr.status);
return _9e0;
}});
}});
if(typeof dojo.global.app=="undefined"||dojo.global.app==null){
dojo.global.app={};
dojo.global.app.mailbox=singles.Mailbox;
}
singles.Mailbox=new singles.Mailbox();
}
if(!dojo._hasResource["singles.mailbox.Bbcode"]){
dojo._hasResource["singles.mailbox.Bbcode"]=true;
dojo.provide("singles.mailbox.Bbcode");
dojo.declare("singles.mailbox.Bbcode",null,{clientPC:navigator.userAgent.toLowerCase(),clientVer:parseInt(navigator.appVersion),imageTag:false,theSelection:false,is_ie:((navigator.userAgent.toLowerCase().indexOf("msie")!=-1)&&(navigator.userAgent.toLowerCase().indexOf("opera")==-1)),is_win:((navigator.userAgent.toLowerCase().indexOf("win")!=-1)||(navigator.userAgent.toLowerCase().indexOf("16bit")!=-1)),b_help:"Text in fett: [b]Text[/b] (alt+b)",l_help:"Text durchstreichen: [s]text[/s]",i_help:"Text in kursiv: [i]Text[/i] (alt+i)",u_help:"Unterstrichener Text: [u]Text[/u] (alt+u)",q_help:"Zitat: [quote]Text[/quote] (alt+q)",a_help:"Alle offenen BBCodes schließen",s_help:"Schriftfarbe: [color=red]Text[/color]",f_help:"Schriftgröße: [size=x-small]Kleiner Text[/size]",bbcode:new Array(),bbtags:new Array("[b]","[/b]","[i]","[/i]","[u]","[/u]","[s]","[/s]","[quote]","[/quote]"),imageTag:false,baseHeight:0,help_message:function $DBEd_(help){
document.getElementById("helptext").value=eval(help+"_help");
},initInsertions:function $DBEe_(){
var _9e2=document.forms[form_name].elements[text_name];
if(is_ie&&typeof (baseHeight)!="number"){
baseHeight=document.selection.createRange().duplicate().boundingHeight;
}
},bbstyle:function $DBEf_(_9e3){
if(_9e3!=-1){
bbfontstyle(bbtags[_9e3],bbtags[_9e3+1]);
}
},bbfontstyle:function $DBEg_(_9e4,_9e5){
theSelection=false;
var _9e6=document.forms[form_name].elements[text_name];
_9e6.focus();
if((clientVer>=4)&&is_ie&&is_win){
theSelection=document.selection.createRange().text;
if(theSelection){
document.selection.createRange().text=_9e4+theSelection+_9e5;
document.forms[form_name].elements[text_name].focus();
theSelection="";
return;
}
}else{
if(document.forms[form_name].elements[text_name].selectionEnd&&(document.forms[form_name].elements[text_name].selectionEnd-document.forms[form_name].elements[text_name].selectionStart>0)){
mozWrap(document.forms[form_name].elements[text_name],_9e4,_9e5);
document.forms[form_name].elements[text_name].focus();
theSelection="";
return;
}
}
var _9e7=getCaretPosition(_9e6).start+_9e4.length;
insert_text(_9e4+_9e5);
if(!isNaN(_9e6.selectionStart)){
_9e6.selectionStart=_9e7;
_9e6.selectionEnd=_9e7;
}else{
if(document.selection){
var _9e8=_9e6.createTextRange();
_9e8.move("character",_9e7);
_9e8.select();
storeCaret(document.forms[form_name].elements[text_name]);
}
}
document.forms[form_name].elements[text_name].focus();
return;
},insert_text:function $DBEh_(text,_9e9,_9ea){
var _9eb;
if(!_9ea){
_9eb=document.forms[form_name].elements[text_name];
}else{
_9eb=opener.document.forms[form_name].elements[text_name];
}
if(_9e9){
text=" "+text+" ";
}
if(!isNaN(_9eb.selectionStart)){
var _9ec=_9eb.selectionStart;
var _9ed=_9eb.selectionEnd;
mozWrap(_9eb,text,"");
_9eb.selectionStart=_9ec+text.length;
_9eb.selectionEnd=_9ed+text.length;
}else{
if(_9eb.createTextRange&&_9eb.caretPos){
if(baseHeight!=_9eb.caretPos.boundingHeight){
_9eb.focus();
storeCaret(_9eb);
}
var _9ee=_9eb.caretPos;
_9ee.text=_9ee.text.charAt(_9ee.text.length-1)==" "?_9ee.text+text+" ":_9ee.text+text;
}else{
storeCaret(document.forms[form_name].elements[text_name]);
}
}
document.forms[form_name].elements[text_name].focus();
},attach_inline:function $DBEi_(_9ef,_9f0){
insert_text("[attachment="+_9ef+"]"+_9f0+"[/attachment]");
document.forms[form_name].elements[text_name].focus();
},addquote:function $DBEj_(_9f1,_9f2){
var _9f3="message_"+_9f1;
var _9f4="";
var _9f5=false;
if(document.all){
_9f5=document.all[_9f3];
}else{
_9f5=document.getElementById(_9f3);
}
if(window.getSelection){
_9f4=window.getSelection().toString();
}else{
if(document.getSelection){
_9f4=document.getSelection();
}else{
if(document.selection){
_9f4=document.selection.createRange().text;
}
}
}
if(_9f4==""||typeof _9f4=="undefined"||_9f4==null){
if(_9f5.innerHTML){
_9f4=_9f5.innerHTML.replace(/<br>/ig,"\n");
_9f4=_9f4.replace(/<br\/>/ig,"\n");
_9f4=_9f4.replace(/&lt\;/ig,"<");
_9f4=_9f4.replace(/&gt\;/ig,">");
_9f4=_9f4.replace(/&amp\;/ig,"&");
}else{
if(document.all){
_9f4=_9f5.innerText;
}else{
if(_9f5.textContent){
_9f4=_9f5.textContent;
}else{
if(_9f5.firstChild.nodeValue){
_9f4=_9f5.firstChild.nodeValue;
}
}
}
}
}
if(_9f4){
insert_text("[quote=\""+_9f2+"\"]"+_9f4+"[/quote]");
}
return;
},mozWrap:function $DBEk_(_9f6,open,_9f7){
var _9f8=_9f6.textLength;
var _9f9=_9f6.selectionStart;
var _9fa=_9f6.selectionEnd;
var _9fb=_9f6.scrollTop;
if(_9fa==1||_9fa==2){
_9fa=_9f8;
}
var s1=(_9f6.value).substring(0,_9f9);
var s2=(_9f6.value).substring(_9f9,_9fa);
var s3=(_9f6.value).substring(_9fa,_9f8);
_9f6.value=s1+open+s2+_9f7+s3;
_9f6.selectionStart=_9fa+open.length+_9f7.length;
_9f6.selectionEnd=_9f6.selectionStart;
_9f6.focus();
_9f6.scrollTop=_9fb;
return;
},storeCaret:function $DBEl_(_9fc){
if(_9fc.createTextRange){
_9fc.caretPos=document.selection.createRange().duplicate();
}
},colorPalette:function $DBEm_(dir,_9fd,_9fe){
var r=0,g=0,b=0;
var _9ff=new Array(6);
_9ff[0]="00";
_9ff[1]="40";
_9ff[2]="80";
_9ff[3]="BF";
_9ff[4]="FF";
document.writeln("<table cellspacing=\"1\" cellpadding=\"0\" border=\"0\">");
for(r=0;r<5;r++){
if(dir=="h"){
document.writeln("<tr>");
}
for(g=0;g<5;g++){
if(dir=="v"){
document.writeln("<tr>");
}
for(b=0;b<5;b++){
color=String(_9ff[r])+String(_9ff[g])+String(_9ff[b]);
document.write("<td bgcolor=\"#"+color+"\">");
document.write("<a href=\"#\" onclick=\"bbfontstyle('[color=#"+color+"]', '[/color]'); return false;\" onmouseover=\"helpline('s');\"  onmouseout=\"helpline('tip');\"><img src=\"/images/spacer.gif\" width=\""+_9fd+"\" height=\""+_9fe+"\" alt=\"#"+color+"\" title=\"#"+color+"\" /></a>");
document.writeln("</td>");
}
if(dir=="v"){
document.writeln("</tr>");
}
}
if(dir=="h"){
document.writeln("</tr>");
}
}
document.writeln("</table>");
},caretPosition:function $DBEn_(){
var _a00=null;
var end=null;
},getCaretPosition:function $DBEo_(_a01){
var _a02=new caretPosition();
if(_a01.selectionStart||_a01.selectionStart==0){
_a02.start=_a01.selectionStart;
_a02.end=_a01.selectionEnd;
}else{
if(document.selection){
var _a03=document.selection.createRange();
var _a04=document.body.createTextRange();
_a04.moveToElementText(_a01);
var _a05;
for(_a05=0;_a04.compareEndPoints("StartToStart",_a03)<0;_a05++){
_a04.moveStart("character",1);
}
_a01.sel_start=_a05;
_a02.start=_a01.sel_start;
_a02.end=_a01.sel_start;
}
}
return _a02;
}});
singles.mailbox.Bbcode=new singles.mailbox.Bbcode();
}
if(!dojo._hasResource["singles.mailbox.Settings"]){
dojo._hasResource["singles.mailbox.Settings"]=true;
dojo.provide("singles.mailbox.Settings");
dojo.declare("singles.mailbox.Settings",null,{assignShowRenameEvents:function $DBEp_(){
dojo.forEach(dojo.query(".renameFolder"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,function(){
var _a06=el.parentNode.parentNode.children[0];
var ta=document.createElement("textarea");
ta.innerHTML=_a06.innerHTML;
var _a07=ta.value;
if(dojo.byId("renameDiv")==null){
dojo.place(dojo.create("div",{id:"renameDiv",style:"position: absolute; margin: -2em 0 0 0; padding: 1em; border: 1px solid #7EABCD; background-color: #fff"}),_a06,"last");
dojo.place(dojo.create("form",{id:"renameForm"}),"renameDiv","first");
dojo.place(dojo.create("input",{id:"renameTextField",value:_a07,type:"text",maxlength:"20"}),"renameForm","last");
dojo.place(dojo.create("input",{id:"renameSave",className:"button",value:"Speichern",type:"button",style:"margin: 0 0 0 0.5em;",onclick:this.renameFolder}),"renameForm","last");
dojo.place(dojo.create("input",{id:"renameCancel",className:"button",value:"Abbrechen",type:"button",style:"margin: 0 0 0 0.5em;",onclick:"dojo.query(\"#renameDiv\").orphan();"}),"renameForm","last");
}
}));
}));
dojo.forEach(dojo.query(".deleteFolder"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,function(){
this.deleteFolder(el);
}));
}));
dojo.forEach(dojo.query(".emptyFolder"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,function(){
this.emptyFolder(el);
}));
}));
},assignNewBoxEvents:function $DBEq_(){
var form=dojo.byId("newFolderForm");
dojo.connect(form.name,"onfocus",function(e){
e.currentTarget.value="";
});
},renameFolder:function $DBEr_(){
var _a08=dojo.byId("renameTextField").value;
var _a09=dojo.byId("renameDiv").parentNode.parentNode.id;
dojo.xhrPost({url:BaseURL+"/mailbox/index/rename/format/json",handleAs:"json",content:{folderId:_a09.split("_")[1],name:_a08},load:function $DBEs_(data){
if(null===data.error){
dojo.byId("renameDiv").parentNode.innerHTML=_a08;
window.singles.Mailbox.refreshFolders();
}else{
alert(data.message);
}
},error:function $DBEt_(_a0a,_a0b){
console.error("HTTP status code: ",_a0b.xhr.status);
return _a0a;
}});
},deleteFolder:function $DBEu_(e1){
var _a0c=e1.parentNode.parentNode;
var name=_a0c.firstChild.nextSibling.innerHTML;
if(false===confirm("Den Ordner \""+name+"\" wirklich löschen?")){
return;
}
dojo.xhrPost({url:BaseURL+"/mailbox/index/delete/format/json",handleAs:"json",content:{folderId:_a0c.id.split("_")[1]},load:function $DBEv_(data){
if(null===data.error){
_a0c.parentNode.removeChild(_a0c);
window.singles.Mailbox.refreshFolders();
}else{
alert(data.message);
}
},error:function $DBEw_(_a0d,_a0e){
console.error("HTTP status code: ",_a0e.xhr.status);
return _a0d;
}});
},emptyFolder:function $DBEx_(e1){
var _a0f=e1.parentNode.parentNode;
var _a10=_a0f.id.split("_")[1];
var _a11=_a0f.id.split("_")[2];
var name=_a0f.firstChild.nextSibling.innerHTML;
var thiz=this;
if(false===confirm("Den Ordner \""+name+"\" wirklich leeren?")){
return;
}
dojo.xhrPost({url:BaseURL+"/mailbox/index/empty/format/json",handleAs:"json",content:{folderId:_a10},load:function $DBEy_(data){
if(null===data.error){
var _a12=dojo.query("#folder_"+_a10+"_"+_a11+" td");
_a12[1].innerHTML=0;
e1.parentNode.removeChild(e1);
window.singles.Mailbox.refreshFolders();
if(_a11==0){
var node=dojo.create("a",{href:"/mailbox/index/delete/folderid/"+_a10,className:"deleteFolder",innerHTML:"<img src=\"/icons/icon_trash.gif\" alt=\"Klicken Sie hier um diesen Ordner zu löschen\" />"});
dojo.place(node,_a12[3],"first");
thiz.assignShowRenameEvents();
}
}else{
alert(data.message);
}
},error:function $DBEz_(_a13,_a14){
console.error("HTTP status code: ",_a14.xhr.status);
return _a13;
}});
}});
}
if(!dojo._hasResource["singles.mailbox.SortableTable"]){
dojo._hasResource["singles.mailbox.SortableTable"]=true;
dojo.provide("singles.mailbox.SortableTable");
dojo.declare("singles.mailbox.SortableTable",s3w.widget.SortableTable,{baseUrl:BaseURL+"/mailbox/index/index/format/json",firstAlernativeSortType:"ASC",prepareRequestHeader:function $DBE0_(_a15,_a16){
console.debug("Preparing request data for mailbox sorting table");
return {folderId:this.entityId,sortField:_a15,sortOrder:_a16,output:this.outputType,resultsPerPage:this.typeName,statusFilter:dojo.byId("postbox"+this.entityId+"_filter").value};
},postLoadAction:function $DBE1_(){
window.singles.Mailbox.assignTrashEvents();
}});
}
if(!dojo._hasResource["singles.Payment"]){
dojo._hasResource["singles.Payment"]=true;
dojo.provide("singles.Payment");
dojo.declare("singles.Payment",null,{rawPreviewTxt:false,init:function $DBEa_(){
var _a17="premiumForm.submitPayment";
dojo.connect(dojo.byId(_a17),"click",dojo.hitch(this,"check"));
dojo.connect(dojo.byId(_a17),"click",function(e){
e.preventDefault();
});
var _a18="linkToggleRightOfObjection";
dojo.connect(dojo.byId(_a18),"click",dojo.hitch(this,"toggleRoo"));
dojo.connect(dojo.byId(_a18),"click",function(e){
e.preventDefault();
});
},check:function $DBEb_(){
dojo.byId("rightOfObjection").style.display="none";
var _a19=["premiumForm.addr_name","premiumForm.bank_code","premiumForm.bank_accountnumber"];
var _a1a=["Kontoinhaber","Bankleitzahl","Kontonummer"];
var _a1b=new singles.core.Filter();
_a1b.removeWsById(["premiumForm.bank_code","premiumForm.bank_accountnumber"]);
var _a1c=new singles.core.Validate();
_a1c.init(_a19,_a1a);
_a1c.checkEmpty(_a19);
_a1c.checkMatch("premiumForm.bank_accountnumber",/^[0-9]+$/,"Die Kontonummer muß aus Ziffern bestehen");
_a1c.checkMatch("premiumForm.bank_code",/^[0-9]{8}$/,"Die Bankleitzahl muß aus 8 Ziffern bestehen");
_a1c.checkMinLen(_a19,[4,8,3]);
var _a1d=_a1c.renderErrors();
if(_a1d!=false){
alert(_a1d);
}else{
if(dojo.byId("premiumForm.addr_name").value.match(/bank|sparkasse/)){
if(!confirm("Klicken Sie auf \"OK\" wenn IHR Name \""+dojo.byId("premiumForm.addr_name").value+"\" lautet. Sollte das der Name Ihrer Bank sein, dann klicken Sie bitte auf \"Abbrechen\" und geben den Namen des Kontoinhabers ein. ")){
dojo.byId("premiumForm.addr_name").value="";
dojo.byId("premiumForm.addr_name").focus();
return;
}
}
document.forms["premiumForm"].submit();
elemFormAppMessages=dojo.byId("formAppMessages");
if(elemFormAppMessages){
elemFormAppMessages.style.display="none";
}
}
},toggleRoo:function $DBEc_(){
dojo.byId("rightOfObjection").style.display=(dojo.byId("rightOfObjection").style.display!="block"?"block":"none");
}});
}
if(!dojo._hasResource["singles.user.AddressSelection"]){
dojo._hasResource["singles.user.AddressSelection"]=true;
dojo.provide("singles.user.AddressSelection");
dojo.declare("singles.user.AddressSelection",null,{formName:"",init:function $DBHc_(_a1e){
this.formName=_a1e;
var self=this;
dojo.connect(dojo.byId(self.formName+".where_1"),"click",function(){
self.selectInside();
});
dojo.connect(dojo.byId(self.formName+".where_2"),"click",function(){
self.selectOutside();
});
dojo.connect(dojo.byId(self.formName+".district"),"focus",function(){
self.selectInside();
});
dojo.connect(dojo.byId(self.formName+".county"),"focus",function(){
self.selectOutside();
});
dojo.connect(dojo.byId(self.formName+".city"),"focus",function(){
self.selectOutside();
});
if(true==dojo.byId(self.formName+".where_1").checked){
this.selectInside();
}
if(true==dojo.byId(self.formName+".where_2").checked){
this.selectOutside();
}
},selectInside:function $DBHd_(){
dojo.fadeIn({node:"addressInside",end:1}).play();
dojo.fadeOut({node:"addressOutside",end:0.5,delay:500}).play();
dojo.byId(this.formName+".where_1").checked=true;
this.clearOutside();
},selectOutside:function $DBHe_(){
dojo.fadeIn({node:"addressOutside",end:1}).play();
dojo.fadeOut({node:"addressInside",end:0.5,delay:500}).play();
dojo.byId(this.formName+".where_2").checked=true;
this.clearInside();
},clearInside:function $DBHf_(){
dojo.byId(this.formName+".district").selectedIndex=null;
dojo.byId(this.formName+".where_1").checked=false;
},clearOutside:function $DBHg_(){
dojo.byId(this.formName+".county").selectedIndex=null;
dojo.byId(this.formName+".city").value="";
dojo.byId(this.formName+".where_2").checked=false;
}});
}
if(!dojo._hasResource["singles.user.Birthdaylist"]){
dojo._hasResource["singles.user.Birthdaylist"]=true;
dojo.provide("singles.user.Birthdaylist");
dojo.declare("singles.user.Birthdaylist",null,{cal_1:null,init:function $DBHh_(){
var elem=dojo.byId("getCal");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"loadCalendar"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
}
},loadCalendar:function $DBHi_(){
var cal=dojo.byId("birthdayCal");
if(this.cal_1!=null){
if(cal.style.display=="none"){
dojo.fx.wipeIn({node:"birthdayCal",duration:500}).play();
}else{
dojo.fx.wipeOut({node:"birthdayCal",duration:500}).play();
}
return;
}
this.createCalendar();
dojo.fx.wipeIn({node:"birthdayCal",duration:500}).play();
},createCalendar:function $DBHj_(){
this.cal_1=new dojox.widget.DailyCalendar({footer:[],onValueSelected:function $DBHk_(val){
dojo.date.locale.format(val,{timePattern:""});
dojo.place("<div class=\"loading\" style=\"float:left;margin:0.3em 0.3em 0 0 \">",dojo.byId("getCal"),"after");
var _a1f=dojo.date.locale.format(val,{datePattern:"MMdd",selector:"date"});
dojo.fx.wipeOut({node:"birthdayCal",duration:500,onEnd:function $DBHl_(){
window.location.href=BaseURL+"/user/birthdaylist?birthday="+_a1f;
}}).play();
return;
}},dojo.byId("birthdayCalInner"));
}});
}
if(!dojo._hasResource["singles.user.Favorite"]){
dojo._hasResource["singles.user.Favorite"]=true;
dojo.provide("singles.user.Favorite");
dojo.declare("singles.user.Favorite",null,{loadingIcon:"<img style=\"vertical-align:middle;float:right\" src=\"/icons/icon_loading.gif\" alt=\"\" />",dndMarked:null,assignClickEvents:function $DBGc_(){
var thiz=this;
dojo.forEach(dojo.query(".userFavoriteComment"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.global.dependentObj=thiz;
var eip=new singles.core.EditInPlace(thiz);
eip.setConvertable(el);
eip.addRemoteControl(dojo.byId(el.id+"_remote"),"editInPlaceOver","light userFavoriteComment editInPlace");
return this;
}));
},assignSortingEvents:function $DBGd_(){
dojo.forEach(dojo.query("#profileFavs .dndTableContainer"),dojo.hitch(this,function(el){
dojo.connect(el,"onmousedown",dojo.hitch(this,function(){
this.dndMouseDown(el);
}));
}));
dojo.forEach(dojo.query("#profileFavs"),dojo.hitch(this,function(el){
dojo.connect(el,"onmouseup",dojo.hitch(this,function(){
this.dndMouseUp(el);
}));
}));
},assignDeleteEvents:function $DBGe_(){
dojo.forEach(dojo.query(".deleteProfileFavorite"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,function(){
this.del(el);
}));
}));
},dndMouseDown:function $DBGf_(el){
var favs=dojo.query(".gridContainerZone")[0].childNodes;
var _a20=0;
dojo.forEach(favs,function(fav,i){
if("dndDropIndicator"==fav.className){
_a20=-1;
}else{
fav.title=i+_a20+1;
}
});
this.dndMarked=el.parentNode.title;
},dndMouseUp:function $DBGg_(el){
var favs=dojo.query(".gridContainerZone")[0].childNodes;
var _a21;
var _a22;
var self=this;
dojo.forEach(favs,function(fav,i,favs){
if("dndDropIndicator"==fav.className){
_a21=(i>0)?i:null;
_a22=(i<(favs.length-1))?i+1:null;
}
});
dojo.xhrPost({url:BaseURL+"/user/favorite/move",handleAs:"json",content:{after:_a21,before:_a22,moveOrder:self.dndMarked}});
setTimeout(function(){
dojo.forEach(dojo.query("#profileFavs tr"),function(el,i){
el.className=(i%2==0)?"even":"odd";
});
},10);
},createEditInPlaceNodes:function $DBGh_(eip){
var _a23=eip.convertable;
formName="userFavoriteComment";
formId=_a23.id+"_form";
var _a24=document.createElement("form");
dojo.attr(_a24,"name",formName);
dojo.attr(_a24,"id",formId);
dojo.attr(_a24,"action","/user/favorite/updatecomment");
dojo.attr(_a24,"accept-charset","UTF-8");
var from=document.createElement("input");
dojo.attr(from,"type","hidden");
dojo.attr(from,"name","Studio3w_Form[from]");
dojo.attr(from,"value",formName);
var _a25=document.createElement("input");
dojo.attr(_a25,"type","hidden");
dojo.attr(_a25,"name","favoriteId");
dojo.attr(_a25,"value",eip.convertable.id.split("_")[1]);
var _a26=document.createElement("textarea");
dojo.attr(_a26,"name","comment");
dojo.attr(_a26,"class","textarea");
dojo.attr(_a26,"rows","6");
dojo.attr(_a26,"cols","67");
if("undefined"==typeof _a23.textContent){
_a26.innerText=_a23.innerText=="[-- Notiz hinzufügen --]"?"":_a23.innerText;
}else{
_a26.textContent=_a23.textContent=="[-- Notiz hinzufügen --]"?"":_a23.textContent;
}
var _a27=document.createElement("br");
var _a28=document.createElement("input");
dojo.attr(_a28,"type","button");
dojo.attr(_a28,"name","submit");
dojo.attr(_a28,"value","Eintragen");
dojo.attr(_a28,"class","submit");
dojo.attr(_a28,"onclick",dojo.hitch(eip,"doSubmit"));
var _a29=document.createElement("input");
dojo.attr(_a29,"type","button");
dojo.attr(_a29,"name","cancel");
dojo.attr(_a29,"value","Abbrechen");
dojo.attr(_a29,"class","button cancel");
dojo.attr(_a29,"onclick",dojo.hitch(eip,"doCancel"));
dojo.place(_a24,_a23,"after");
dojo.place(_a26,_a24,0);
dojo.place(_a27,_a24,1);
dojo.place(_a28,_a24,2);
dojo.place(_a29,_a24,3);
dojo.place(from,_a24,4);
dojo.place(_a25,_a24,5);
_a26.focus();
return this;
},handleSuccess:function $DBGi_(el,_a2a){
el.innerHTML=_a2a.comment;
},del:function $DBGj_(el){
if(false===confirm("Favoriteneintrag wirklich löschen?")){
return;
}
var _a2b=el.id.split("_")[1];
dojo.byId(el.id).innerHTML=this.loadingIcon;
dojo.xhrPost({url:BaseURL+"/user/favorite/delete",handleAs:"json",content:{favId:_a2b},load:function $DBGk_(data){
if(null===data.error){
if(dojo.byId("profileFavoritesHeader")){
var _a2c=dojo.byId("deleteProfileFavorite_"+_a2b).parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
_a2c.parentNode.removeChild(_a2c);
if(0==dojo.query("#profileFavs > table > tbody > tr > td")[0].childNodes.length){
top.location.reload();
}
setTimeout(function(){
dojo.forEach(dojo.query("#profileFavs td > div"),function(el,i){
var _a2d=dojo.query("#"+el.id+" tr")[0];
_a2d.className=(i%2==0)?"odd":"even";
});
},10);
}else{
dojo.forEach(dojo.query("tr.userFavorite_"+_a2b),function(el){
el.parentNode.removeChild(el);
});
if(0==dojo.query("#profileFavorites tbody > tr").length){
top.location.href=top.location.href.replace(/page=\d+/,"");
}
setTimeout(function(){
dojo.forEach(dojo.query("#profileFavorites tr"),function(el,i){
if(i%4==0||(i+1)%4==0){
el.className=el.className.replace(/odd/,"even");
}else{
el.className=el.className.replace(/even/,"odd");
}
});
},10);
}
}else{
alert("Der Favorit konnte nicht gelöscht werden.");
}
},error:function $DBGl_(_a2e,_a2f){
console.error("HTTP status code: ",_a2f.xhr.status);
return _a2e;
}});
}});
dojo.global.app.favorite=singles.user.Favorite;
}
if(!dojo._hasResource["singles.user.Ignorelist"]){
dojo._hasResource["singles.user.Ignorelist"]=true;
dojo.provide("singles.user.Ignorelist");
dojo.declare("singles.user.Ignorelist",null,{loadingIcon:"<img style=\"vertical-align:middle;float:right\" src=\"/icons/icon_loading.gif\" alt=\"\" />",assignUnignoreEvents:function $DBHU_(){
dojo.forEach(dojo.query(".unignoreUser"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,function(){
this.unignore(el);
}));
}));
},unignore:function $DBHV_(el){
var _a30=el.id.split("_")[1];
dojo.byId(el.id).innerHTML=this.loadingIcon;
dojo.xhrPost({url:BaseURL+"/user/ignorelist/unignore",handleAs:"json",content:{unignoreId:_a30},load:function $DBHW_(data){
if(null===data.error){
dojo.forEach(dojo.query("tr#ignore_"+_a30),function(el){
el.parentNode.removeChild(el);
});
if(0==dojo.query("#ignoresTable tbody > tr").length){
top.location.href=top.location.href.replace(/page=\d+/,"");
}
}else{
alert("Der Nutzer konnte nicht entfernt werden.");
}
},error:function $DBHX_(_a31,_a32){
console.error("HTTP status code: ",_a32.xhr.status);
return _a31;
}});
}});
}
if(!dojo._hasResource["singles.user.Login"]){
dojo._hasResource["singles.user.Login"]=true;
dojo.provide("singles.user.Login");
dojo.declare("singles.user.Login",null,{convertibleValueUsername:"Profilname",convertibleValuePassword:"Passwort",domIdUsername:null,domIdPassword:null,init:function $DBGb_(_a33){
this.domIdUsername=_a33+".username";
this.domIdPassword=_a33+".password";
}});
}
if(!dojo._hasResource["singles.user.Onlinelist"]){
dojo._hasResource["singles.user.Onlinelist"]=true;
dojo.provide("singles.user.Onlinelist");
dojo.declare("singles.user.Onlinelist",null,{init:function $DBHY_(){
var _a34=dojo.byId("onlinelist.isFormExtended");
dojo.style("extSettings","display","none");
},assignClickEvents:function $DBHZ_(){
elem=dojo.byId("linkExtend");
dojo.connect(elem,"onclick",dojo.hitch(this,"extend"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
dojo.forEach(dojo.query("#onlinelist ul li input"),dojo.hitch(this,function(elem){
dojo.connect(elem,"onclick",dojo.hitch(this,"submitForm"));
}));
dojo.connect(dojo.byId("onlinelist.order"),"onchange",dojo.hitch(this,"submitForm"));
},extend:function $DBHa_(){
var _a35=dojo.byId("onlinelist.isFormExtended");
if(dojo.byId("extSettings").style.display=="none"){
dojo.style("extSettings","display","block");
dojo.fx.wipeIn({node:"extSettings",duration:100}).play();
dojo.byId("onlinelist.isFormExtended").value="true";
}else{
dojo.fx.wipeOut({node:"extSettings",duration:100}).play();
dojo.byId("onlinelist.isFormExtended").value="false";
}
},submitForm:function $DBHb_(){
if("none"==dojo.byId("extSettings").style.display){
dojo.byId("onlinelist").submit();
dojo.place("<div class=\"loading\" style=\"float:right\">",dojo.byId("linkExtend"),"after");
}
}});
}
if(!dojo._hasResource["singles.user.ProfileEdit"]){
dojo._hasResource["singles.user.ProfileEdit"]=true;
dojo.provide("singles.user.ProfileEdit");
dojo.declare("singles.user.ProfileEdit",null,{assignEvents:function $DBHH_(){
var elem=dojo.byId("markAsWiesnUser");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"markAsWiesnUser"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
dojo.connect(elem,"onclick",function(e){
e.stopPropagation();
});
}
var elem=dojo.byId("unmarkAsWiesnUser");
if(elem!=null){
dojo.connect(elem,"onclick",dojo.hitch(this,"unmarkAsWiesnUser"));
dojo.connect(elem,"onclick",function(e){
e.preventDefault();
});
dojo.connect(elem,"onclick",function(e){
e.stopPropagation();
});
}
dojo.forEach(dojo.query(".editImageDescription"),dojo.hitch(this,"assignEipEvents"));
dojo.forEach(dojo.query(".deletePhoto"),dojo.hitch(this,"assignDeletePhotoEvents"));
return this;
},assignEipEvents:function $DBHI_(el){
var eip=new singles.core.EditInPlace(this);
eip.setConvertable(el);
eip.dependentObj=this;
dojo.global.dependentObj=this;
eip.addRemoteControl(dojo.byId(el.id+"_remote"),"editInPlaceOver","editImageDescription editInPlace");
return this;
},assignDeletePhotoEvents:function $DBHJ_(el){
dojo.connect(el,"click",function(e){
if(true==confirm("Wollen Sie das Bild wirklich löschen?")){
el.form.changeMode.value="deletePhoto";
el.form.submit();
}
});
dojo.connect(el,"click",function(e){
e.preventDefault();
});
},assignNewsletterCheckboxEvents:function $DBHK_(el){
dojo.forEach(dojo.query("#newsletterGroup input"),dojo.hitch(this,function(lnk){
dojo.connect(lnk,"onchange",function(e){
e.preventDefault();
});
dojo.connect(lnk,"onchange",dojo.hitch(this,function(){
this.changeNewsletterSettings(lnk);
}));
}));
},createEditInPlaceNodes:function $DBHL_(eip){
var _a36=eip.convertable;
formId="updatePhotoDescription"+_a36.id;
var _a37=document.createElement("form");
dojo.attr(_a37,"name",formId);
dojo.attr(_a37,"id",formId);
dojo.attr(_a37,"action","/user/photo/updatedescription/filename/"+_a36.id.split("_")[1]);
dojo.attr(_a37,"accept-charset","UTF-8");
dojo.attr(_a37,"class","updatePhotoDescription inplace");
dojo.place(_a37,_a36,"after");
var from=document.createElement("input");
dojo.attr(from,"type","hidden");
dojo.attr(from,"name","Studio3w_Form[from]");
dojo.attr(from,"value",formId);
var _a38=document.createElement("input");
dojo.attr(_a38,"type","text");
dojo.attr(_a38,"name","description");
dojo.attr(_a38,"class","text");
dojo.attr(_a38,"style","width:25.5em");
dojo.attr(_a38,"value",_a36.innerHTML=="[-- Bildbeschreibung hinzufügen --]"?"":_a36.childNodes[0].nodeValue);
var _a39=document.createElement("input");
dojo.attr(_a39,"type","hidden");
dojo.attr(_a39,"name","filename");
dojo.attr(_a39,"value",_a36.id.split("_")[1]);
var _a3a=document.createElement("br");
var _a3b=document.createElement("button");
dojo.attr(_a3b,"type","button");
dojo.attr(_a3b,"name","submit");
dojo.attr(_a3b,"value","Abschicken");
dojo.attr(_a3b,"class","gold");
dojo.attr(_a3b,"onclick",dojo.hitch(eip,"doSubmit"));
_a3b.innerHTML="<span>Abschicken</span>";
var _a3c=document.createElement("button");
dojo.attr(_a3c,"type","button");
dojo.attr(_a3c,"name","cancel");
dojo.attr(_a3c,"value","Abbrechen");
dojo.attr(_a3c,"onclick",dojo.hitch(eip,"doCancel"));
_a3c.innerHTML="<span>Abbrechen</span>";
dojo.place(_a38,_a37,0);
dojo.place(_a39,_a37,1);
dojo.place(_a3a,_a37,2);
dojo.place(_a3b,_a37,3);
dojo.place(_a3c,_a37,4);
dojo.place(from,_a37,5);
_a38.focus();
return this;
},changeNewsletterSettings:function $DBHM_(e){
var _a3d=dojo.query("#newsletterGroup input.multicheckbox");
if(e.id=="editSettingsNewsletter.newsletterSelect_1"){
for(var i=0;i<_a3d.length;i++){
_a3d[i].checked=true;
}
}else{
if(e.id=="editSettingsNewsletter.newsletterSelect_2"){
for(var i=0;i<_a3d.length;i++){
_a3d[i].checked=false;
}
}else{
if(e.name=="newsletter[]"){
var _a3e=0;
dojo.byId("editSettingsNewsletter.newsletterSelect_1").checked=false;
dojo.byId("editSettingsNewsletter.newsletterSelect_2").checked=false;
for(var i=0;i<_a3d.length;i++){
if(_a3d[i].checked==true){
_a3e++;
}else{
if(_a3d[i].checked==false){
_a3e--;
}
}
}
if(_a3e==_a3d.length){
dojo.byId("editSettingsNewsletter.newsletterSelect_1").checked=true;
}else{
if(_a3e==(_a3d.length*-1)){
dojo.byId("editSettingsNewsletter.newsletterSelect_2").checked=true;
}
}
}
}
}
},markAsWiesnUser:function $DBHN_(el){
var thiz=this;
var elem=dojo.byId("markAsWiesnUser");
LoadingMask.show();
dojo.xhrPost({url:BaseURL+"/user/edit/markaswiesnuser",handleAs:"json",load:function $DBHO_(data){
if(null===data.error){
var node=dojo.create("a",{href:"#",id:"unmarkAsWiesnUser",innerHTML:"Als Wiesn-Single abmelden"});
if(elem.className.search(/notUnmarkAsWiesnUser/)!=-1){
elem.parentNode.removeChild(elem);
}else{
elem.parentNode.replaceChild(node,elem);
thiz.assignEvents();
}
LoadingMask.hide();
}else{
LoadingMask.hide();
}
}});
},unmarkAsWiesnUser:function $DBHP_(el){
var thiz=this;
var elem=dojo.byId("unmarkAsWiesnUser");
LoadingMask.show();
dojo.xhrPost({url:BaseURL+"/user/edit/unmarkaswiesnuser",handleAs:"json",load:function $DBHQ_(data){
if(null===data.error){
var node=dojo.create("a",{href:"#",id:"markAsWiesnUser",innerHTML:"<img src=\"/images/cities/muenchen/wiesnsingles_button_2.jpg\" />"});
elem.parentNode.replaceChild(node,elem);
thiz.assignEvents();
LoadingMask.hide();
}else{
LoadingMask.hide();
}
}});
}});
}
if(!dojo._hasResource["singles.user.ProfileFavorite"]){
dojo._hasResource["singles.user.ProfileFavorite"]=true;
dojo.provide("singles.user.ProfileFavorite");
dojo.declare("singles.user.ProfileFavorite",null,{loadingIcon:"<img style=\"vertical-align:middle\" src=\"/icons/icon_loading.gif\" alt=\"\" />",assignAddFavoriteEvents:function $DBGm_(){
dojo.query("button.addFavorite").onclick(dojo.hitch(this,function(e){
dojo.stopEvent(e);
this.addFavorite(e.currentTarget);
}));
},addFavorite:function $DBGn_(btn){
var thiz=this;
var id=btn.id.replace("addFav_","");
var _a3f=btn.parentNode;
_a3f.innerHTML=this.loadingIcon+_a3f.innerHTML;
dojo.xhrPost({url:BaseURL+"/user/favorite/add",content:{id:id},handleAs:"json",load:function $DBGo_(data){
if(null===data.error){
if("replace"==data.result.type){
_a3f.innerHTML=data.result.msg;
}else{
if("info"==data.result.type){
var url=document.URL;
var _a40=new singles.widget.ButtonDialog({title:"Login",style:"width: 350px; height:160px",toggleUnderlay:true,draggable:false,closable:false,content:"<form action='"+url+"' name='login' method='post' id='login' accept-charset='UTF-8'><input type='hidden' name='comeFromLoginForm' value='1' /><input type='hidden' name='encoding' value='UTF-8' /><input type='hidden' name='Studio3w_Form[from]' value='login' />E-Mail (oder Benutzername)<br class='clearer'><input tabindex='5' type='text' name='username' id='quicklogin.username' class='text' title='Profilname' /><br class='clearer' />Passwort<br class='clearer'><input tabindex='6' type='password' name='password' id='quicklogin.password' class='text' title='Passwort' /><br class='clearer' /><button id='quicklogin.submit' class='gold' tabindex='7' type='submit' name='login' value='Einloggen' style='float: left;'><span>Login</span></button></form>"});
_a40.show();
_a3f.removeChild(_a3f.firstChild);
thiz.btns=dojo.query("button.addFavorite");
dojo.forEach(thiz.btns,dojo.hitch(thiz,function(btn){
dojo.connect(btn,"click",function(e){
e.preventDefault();
});
dojo.connect(btn,"click",dojo.hitch(thiz,function(){
thiz.addFavorite(btn);
}));
}));
}
}
}else{
_a3f.innerHTML=_a3f.innerHTML.replace(/^<.*?>/,"");
alert(data.error.msg);
}
},error:function $DBGp_(_a41,_a42){
console.error("HTTP status code: ",_a42.xhr.status);
return _a41;
}});
}});
}
if(!dojo._hasResource["singles.user.ProfileSearch"]){
dojo._hasResource["singles.user.ProfileSearch"]=true;
dojo.provide("singles.user.ProfileSearch");
dojo.declare("singles.user.ProfileSearch",singles.event.Search,{extendedSearchPrefix:"extendedSearch",assignSelectEvents:function $DBHR_(){
var self=this;
var _a43=new Array("county","district","sport","smoking","zodiac","maritalStatus","childrenHave","childrenWanted");
dojo.forEach(_a43,function(id){
dojo.forEach(dojo.query("#"+self.extendedSearchPrefix+" .multicheckbox"),function(item){
if(item.getAttribute("name")==id+"[]"){
dojo.connect(item,"click",function(){
self.handleSelectItem(self.extendedSearchPrefix+"."+id);
});
dojo.connect(item,"click",function(){
self.updateSelCount(self.extendedSearchPrefix+"."+id);
});
}
});
});
var _a44=dojo.query("div.expandables > input");
_a44[_a44.length]=dojo.byId(this.extendedSearchPrefix+".countySelect_1");
_a44[_a44.length]=dojo.byId(this.extendedSearchPrefix+".countySelect_2");
dojo.forEach(_a44,function(_a45){
if(_a45.id.indexOf("selectNothing")>-1||_a45.className.indexOf("deselectAll")>-1){
dojo.connect(_a45,"click",function(evt){
var _a46=evt.currentTarget;
var area=_a46.parentNode;
while(area.getAttribute("class")!="expandables"&&area.nodeName.toLowerCase()!="div"){
area=area.parentNode;
if(area.nodeName.toLowerCase()=="body"){
return;
}
}
area=area.parentNode;
if(_a46.checked==true){
var _a47=dojo.query("input.multicheckbox",area);
dojo.forEach(_a47,function(_a48){
_a48.checked=false;
});
self.updateSelCount(self.extendedSearchPrefix+"."+area.id.split(".")[1]);
}
});
}
});
}});
}
if(!dojo._hasResource["singles.user.SearchPagination"]){
dojo._hasResource["singles.user.SearchPagination"]=true;
dojo.provide("singles.user.SearchPagination");
dojo.declare("singles.user.SearchPagination",null,{init:function $DBHA_(){
var _a49=["sortOrderTop","sortOrderBottom"];
dojo.forEach(_a49,function(el){
dojo.connect(dojo.byId(el),"onchange",function(){
this.form.submit();
});
});
}});
}
if(!dojo._hasResource["singles.user.UsernameCheck"]){
dojo._hasResource["singles.user.UsernameCheck"]=true;
dojo.provide("singles.user.UsernameCheck");
dojo.declare("singles.user.UsernameCheck",null,{formId:null,fieldId:null,ischecking:false,waitForKeySteps:4,waitForKeyTiming:100,currentWaitingStep:0,secondKeyHit:false,waitForKeyInterval:null,lastCheckValue:"",lastCheckEvent:null,init:function $DBGR_(_a4a,_a4b){
var self=this;
self.formId=_a4a;
self.fieldId=_a4b;
var _a4c=dojo.byId(self.formId+"."+self.fieldId);
dojo.connect(_a4c,"onkeyup",function(e){
self.checkUsername(e);
},true);
},proofCheckUsername:function $DBGS_(_a4d){
if(_a4d.keyCode!=dojo.keys.UP_ARROW&&_a4d.keyCode!=dojo.keys.DOWN_ARROW&&_a4d.keyCode!=dojo.keys.RIGHT_ARROW&&_a4d.keyCode!=dojo.keys.LEFT_ARROW){
var self=this;
var _a4e=dojo.byId(self.formId+"."+self.fieldId).value;
if(!this.ischecking&&_a4e.length>=3){
self.requestUsername(_a4e);
}
}
},checkUsername:function $DBGT_(_a4f){
var _a50=dojo.byId(this.formId+"."+this.fieldId).value;
this.lastCheckValue=_a50;
this.lastCheckEvent=_a4f;
var thiz=this;
clearInterval(this.waitForKeyInterval);
if(!this.ischecking&&!this.secondKeyHit){
this.proofCheckUsername(_a4f);
this.secondKeyHit=true;
}else{
this.waitForKeyInterval=setInterval(function(){
thiz.currentWaitingStep++;
thiz.secondKeyHit=true;
if(thiz.waitForKeySteps==thiz.currentWaitingStep){
thiz.secondKeyHit=false;
thiz.currentWaitingStep=0;
thiz.checkUsername(_a4f);
clearInterval(thiz.waitForKeyInterval);
thiz.waitForKeyInterval=null;
}
},this.waitForKeyTiming);
}
},requestUsername:function $DBGU_(_a51){
this.ischecking=true;
var self=this;
if(dojo.byId(self.formId+"."+self.fieldId).value==_a51){
dojo.xhrPost({url:BaseURL+"/user/basic/usernamecheck",handleAs:"json",content:{username:dojo.byId(self.formId+"."+self.fieldId).value,"Studio3w_Form[from]":"usernameForm"},load:function $DBGV_(_a52,_a53){
self.ischecking=false;
var _a54=dojo.byId(self.formId+"."+self.fieldId).value;
if(_a51!=_a54&&_a54.length>=3){
self.checkUsername(self.lastCheckEvent);
}else{
if(_a52.message!=""){
var _a55=(_a52.success?"success":"error");
dojo.byId(self.formId+"."+self.fieldId+"_message").innerHTML="<span class=\""+_a55+"\">"+_a52.message+"</div>";
}
return _a52;
}
},error:function $DBGW_(_a56,_a57){
console.error("HTTP status code: ",_a57.xhr.status);
self.ischecking=false;
return _a56;
}});
}else{
if(_a51.length>=3){
self.checkUsername(self.lastCheckEvent);
}
}
},usernameAvailable:function $DBGX_(_a58){
var _a59=false;
dojo.xhrPost({url:BaseURL+"/user/basic/usernamecheck",handleAs:"json",sync:true,content:{username:_a58},load:function $DBGY_(data){
_a59=data.success;
},error:function $DBGZ_(_a5a,_a5b){
console.error("HTTP status code: ",_a5b.xhr.status);
return _a5a;
}});
return _a59;
}});
}
if(!dojo._hasResource["singles.user.View"]){
dojo._hasResource["singles.user.View"]=true;
window.currentPhoto=null;
dojo.provide("singles.user.View");
dojo.declare("singles.user.View",null,{loadingIcon:"<img id=\"loadingIcon\" style=\"vertical-align:middle\" src=\"/icons/icon_loading.gif\" alt=\"\" />",activeSheet:false,setSelectedTab:function $DBGq_(_a5c){
dojo.forEach(dojo.query(".tabs li",dojo.byId("navigationBox")),function(tab){
sheet=tab.id.substr(4).toLowerCase();
if(_a5c==tab){
dojo.byId(sheet).style.display="block";
dojo.addClass(tab.id,"selected");
activeSheet=sheet;
}else{
dojo.byId(sheet).style.display="none";
dojo.removeClass(tab.id,"selected");
}
});
if(activeSheet=="photos"){
this.preLoadImages();
if(typeof (photo_links)!="undefined"&&typeof (this.instanceShowNextPhoto)=="undefined"){
this.showNextPhoto();
}
}
},assignEvents:function $DBGr_(){
this.clickablePhotos=dojo.query("#thumbs div");
if(1==this.clickablePhotos.length){
dojo.connect(dojo.byId("mainPhoto"),"onclick",dojo.hitch(this,function(){
if(dojo.byId("photos").style.display=="block"){
this.setSelectedTab(dojo.byId("tabsIndex"));
}else{
this.setSelectedTab(dojo.byId("tabsPhotos"));
}
}));
}else{
dojo.connect(dojo.byId("mainPhoto"),"onclick",dojo.hitch(this,function(){
this.setSelectedTab(dojo.byId("tabsPhotos"));
}));
}
dojo.connect(dojo.byId("mainPhoto"),"onmouseover",function(){
dojo.query("#mainPhoto").style("cursor","pointer");
});
dojo.connect(dojo.byId("mainPhoto"),"contextmenu",function(e){
e.preventDefault();
});
dojo.forEach(dojo.query(".tabs li",dojo.byId("navigationBox")),dojo.hitch(this,function(tab){
dojo.connect(tab,"onclick",function(e){
e.preventDefault();
});
dojo.connect(tab,"onclick",dojo.hitch(this,function(){
this.setSelectedTab(tab);
}));
}));
btn=dojo.query("#addFavorite .addFavorite")[0];
if(btn){
dojo.connect(btn,"onclick",function(e){
e.preventDefault();
});
dojo.connect(btn,"onclick",dojo.hitch(this,function(){
this.addFavorite(btn);
}));
}
dojo.forEach(dojo.query(".hideEvent"),dojo.hitch(this,function(_a5d){
dojo.connect(_a5d,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_a5d,"onclick",dojo.hitch(this,function(){
this.hideEventInProfile(_a5d);
}));
}));
dojo.forEach(dojo.query(".showEvent"),dojo.hitch(this,function(_a5e){
dojo.connect(_a5e,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_a5e,"onclick",dojo.hitch(this,function(){
this.showEventInProfile(_a5e);
}));
}));
dojo.forEach(dojo.query("#thumbs div"),function(_a5f){
dojo.connect(_a5f,"contextmenu",function(e){
e.preventDefault();
});
});
},addFavorite:function $DBGs_(btn){
LoadingMask.show();
var id=btn.id.replace("addFav_","");
var _a60=btn.form;
var thiz=this;
dojo.xhrPost({url:BaseURL+"/user/favorite/add",content:{id:id},handleAs:"json",load:function $DBGt_(data){
if(null===data.error){
if("replace"==data.result.type){
_a60.innerHTML=data.result.msg;
}else{
if("info"==data.result.type){
var url=document.URL;
var _a61=new singles.widget.ButtonDialog({title:"Login",style:"width: 350px; height:160px",toggleUnderlay:true,draggable:false,closable:false,content:"<form action='"+url+"' name='login' method='post' id='login' accept-charset='UTF-8'><input type='hidden' name='comeFromLoginForm' value='1' /><input type='hidden' name='encoding' value='UTF-8' /><input type='hidden' name='Studio3w_Form[from]' value='login' />E-Mail (oder Benutzername)<br class='clearer'><input tabindex='5' type='text' name='username' id='quicklogin.username' class='text' title='Profilname' /><br class='clearer' />Passwort<br class='clearer'><input tabindex='6' type='password' name='password' id='quicklogin.password' class='text' title='Passwort' /><br class='clearer' /><input id='quicklogin.submit' class='submit' tabindex='7' type='submit' name='login' value='Einloggen' style='float: left;'/></form>",buttons:[{html:"Jetzt registrieren",onClick:function $DBGu_(evt,_a62,_a63){
document.location.href=BaseURL+"/user/register";
},id:"register",style:"float:left;font-size: 1.2em; margin: 0 0 0 0.5em;"},{html:"Abbrechen",onClick:function $DBGv_(evt,_a64,_a65){
_a65.hide();
},cls:"ndOrder",id:"back",style:"float:left; font-size: 1.2em; margin: 0.5em 0 0 0.5em;"}]});
_a61.show();
btn=dojo.byId("addFavorite.addFavorite");
if(btn){
dojo.connect(btn,"onclick",function(e){
e.preventDefault();
});
dojo.connect(btn,"onclick",dojo.hitch(thiz,function(){
thiz.addFavorite(btn);
}));
}
}
}
LoadingMask.hide();
}else{
alert(data.error.msg);
LoadingMask.hide();
}
},error:function $DBGw_(_a66,_a67){
console.error("HTTP status code: ",_a67.xhr.status);
return _a66;
}});
},showNextPhoto:function $DBGx_(){
countImages=this.clickablePhotos.length;
var _a68=dojo.byId("largePhoto");
this.instanceShowNextPhoto=true;
if(1==countImages){
dojo.connect(dojo.byId("largePhotoContainer"),"onclick",dojo.hitch(this,function(){
this.setSelectedTab(dojo.byId("tabsIndex"));
}));
dojo.connect(dojo.byId("largePhotoContainer"),"onmouseover",function(){
dojo.query("#largePhotoContainer").style("cursor","pointer");
});
dojo.byId("largePhoto").title="Klicken zum schließen";
}else{
if(window.currentPhoto==null){
dojo.connect(dojo.byId("largePhotoContainer"),"onclick",function(){
if(window.currentPhoto==null){
window.currentPhoto=1;
}else{
window.currentPhoto+=1;
if(typeof photo_links[window.currentPhoto]=="undefined"){
window.currentPhoto=0;
}
}
dojo.byId("largePhoto").src=photo_links[window.currentPhoto];
dojo.byId("largePhotoDescription").innerHTML=photo_description[window.currentPhoto];
});
dojo.connect(dojo.byId("mainPhoto"),"onclick",function(){
if(window.currentPhoto==null){
window.currentPhoto=1;
}else{
window.currentPhoto+=1;
if(typeof photo_links[window.currentPhoto]=="undefined"){
window.currentPhoto=0;
}
}
dojo.byId("largePhoto").src=photo_links[window.currentPhoto];
dojo.byId("largePhotoDescription").innerHTML=photo_description[window.currentPhoto];
});
}
dojo.connect(dojo.byId("largePhotoContainer"),"onmouseover",function(){
dojo.query("#largePhotoContainer").style("cursor","pointer");
});
}
dojo.connect(_a68,"click",function(e){
e.preventDefault();
});
},preLoadImages:function $DBGy_(){
var _a69=new Array();
this.clickablePhotos=dojo.query("#thumbs div");
var _a6a=0;
dojo.forEach(this.clickablePhotos,function(_a6b,i){
dojo.connect(_a6b,"click",function(){
dojo.byId("largePhoto").src=_a69[i-1].src;
dojo.byId("largePhotoDescription").innerHTML=photo_description[i-1];
});
_a69[i]=new Image();
_a69[i].src=photo_links[i];
dojo.connect(_a6b,"click",function(e){
e.preventDefault();
});
dojo.connect(_a6b,"contextmenu",function(e){
e.preventDefault();
});
i++;
_a6a++;
});
},preloadLargePhoto:function $DBGz_(_a6c,_a6d){
var _a6e=dojo.byId("largePhoto");
dojo.connect(_a6e,"contextmenu",function(e){
e.preventDefault();
});
_a6e.src=_a6c;
dojo.byId("largePhotoDescription").innerHTML=_a6d;
},hideEventInProfile:function $DBG0_(_a6f){
LoadingMask.show();
var link=_a6f.href;
var id=link.substring(link.indexOf("/id/")+4,link.length);
var thiz=this;
dojo.byId(_a6f).innerHTML=dojo.byId(_a6f).innerHTML;
dojo.xhrPost({url:BaseURL+"/user/edit/hideeventinprofile",handleAs:"json",content:{id:id},load:function $DBG1_(data){
if(data){
var n=dojo.create("span",{innerHTML:"wird nicht angezeigt | <a class=\"showEvent\" href=\""+BaseURL+"user/edit/showeventinprofile/id/"+id+"\" title=\"Dieses Event Ihren Profilbesuchern anzeigen.\">jetzt anzeigen</a>"});
dojo.style(n,"float","right");
_a6f.parentNode.parentNode.replaceChild(n,_a6f.parentNode);
_a6f=n.firstChild;
if(_a6f){
dojo.connect(_a6f,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_a6f,"onclick",dojo.hitch(thiz,function(){
thiz.showEventInProfile(_a6f);
}));
}
dojo.forEach(dojo.query(".showEvent"),dojo.hitch(this,function(_a70){
dojo.connect(_a70,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_a70,"onclick",dojo.hitch(thiz,function(){
this.showEventInProfile(_a70);
}));
}));
LoadingMask.hide();
}else{
LoadingMask.hide();
alert(data.result.msg);
}
},error:function $DBG2_(_a71,_a72){
LoadingMask.hide();
console.error("HTTP status code: ",_a72.xhr.status);
return _a71;
}});
},showEventInProfile:function $DBG3_(_a73){
LoadingMask.show();
var link=_a73.href;
var id=link.substring(link.indexOf("/id/")+4,link.length);
var thiz=this;
dojo.byId(_a73).innerHTML=dojo.byId(_a73).innerHTML;
dojo.xhrPost({url:BaseURL+"/user/edit/showeventinprofile",handleAs:"json",content:{id:id},load:function $DBG4_(data){
if(data){
var n=dojo.create("span",{innerHTML:"wird angezeigt | <a class=\"hideEvent\" href=\""+BaseURL+"user/edit/hideeventinprofile/id/"+id+"\" title=\"Dieses Event Ihren Profilbesuchern NICHT anzeigen.\">jetzt verbergen</a>"});
dojo.style(n,"float","right");
_a73.parentNode.parentNode.replaceChild(n,_a73.parentNode);
_a73=n.firstChild;
if(_a73){
dojo.connect(_a73,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_a73,"onclick",dojo.hitch(thiz,function(){
thiz.hideEventInProfile(_a73);
}));
}
dojo.forEach(dojo.query(".hideEvent"),dojo.hitch(this,function(_a74){
dojo.connect(_a74,"onclick",function(e){
e.preventDefault();
});
dojo.connect(_a74,"onclick",dojo.hitch(thiz,function(){
this.hideEventInProfile(_a74);
}));
}));
LoadingMask.hide();
}else{
LoadingMask.hide();
alert(data.result.msg);
}
},error:function $DBG5_(_a75,_a76){
LoadingMask.hide();
console.error("HTTP status code: ",_a76.xhr.status);
return _a75;
}});
}});
}
if(!dojo._hasResource["singles.user.Visitor"]){
dojo._hasResource["singles.user.Visitor"]=true;
dojo.provide("singles.user.Visitor");
dojo.declare("singles.user.Visitor",null,{loadingIcon:"<img style=\"vertical-align:middle;float:right\" src=\"/icons/icon_loading.gif\" alt=\"\" />",init:function $DBHB_(){
dojo.forEach(dojo.query(".ignoreUser"),dojo.hitch(this,function(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,function(){
this.ignore(el);
}));
}));
el=dojo.byId("changeSetting");
if(el){
dojo.connect(el,"onclick",function(e){
e.preventDefault();
});
dojo.connect(el,"onclick",dojo.hitch(this,"changeSetting"));
}
},ignore:function $DBHC_(el){
if(false===confirm("Soll der Teilnehmer nicht mehr in der Liste angezeigt werden? Der Teilnehmer wird über diesen Schritt nicht infomiert."+" Sie können den Teilnehmer jederzeit wieder anzeigen lassen.")){
return;
}
var _a77=el.id.split("_")[1];
dojo.byId(el.id).innerHTML=this.loadingIcon;
dojo.xhrPost({url:BaseURL+"/user/visitor/ignore",handleAs:"json",content:{ignoreId:_a77},load:function $DBHD_(data){
if(null===data.error){
dojo.forEach(dojo.query("tr.visitor_"+_a77),function(el){
el.parentNode.removeChild(el);
});
dojo.forEach(dojo.query("#visitorsTable tr"),function(el,i){
if(i%2==0){
dojo.delClass(el,"even");
dojo.addClass(el,"odd");
}else{
dojo.delClass(el,"odd");
dojo.addClass(el,"even");
}
});
if(0==dojo.query("#visitorsTable tbody > tr").length){
top.location.href=top.location.href.replace(/page=\d+/,"");
}
}else{
alert("Der Teilnehmer konnte nicht entfernt werden.");
}
},error:function $DBHE_(_a78,_a79){
console.error("HTTP status code: ",_a79.xhr.status);
return _a78;
}});
},resetCounter:function $DBHF_(){
if(confirm("Wollen Sie den Zähler wirklich auf Null zurücksetzen?")){
dojo.xhrGet({url:"/user/visitor/resetviewcounter",handleAs:"json",content:{},load:function $DBHG_(_a7a,_a7b){
if(_a7a.success!==false){
window.location.href="/user/visitor/";
}
}});
}
return this;
}});
}
if(!dojo._hasResource["singles.user.Zodiac"]){
dojo._hasResource["singles.user.Zodiac"]=true;
dojo.provide("singles.user.Zodiac");
dojo.declare("singles.user.Zodiac",null,{init:function $DBGP_(){
var _a7c=dojo.query("#birthday fieldset li select");
var _a7d=new Array(new Array(1,22,12,20,1),new Array(2,21,1,19,2),new Array(3,20,2,20,3),new Array(4,21,3,20,4),new Array(5,21,4,20,5),new Array(6,21,5,21,6),new Array(7,22,6,22,7),new Array(8,23,7,23,8),new Array(9,24,8,23,9),new Array(10,24,9,23,10),new Array(11,24,10,22,11),new Array(12,23,11,21,12));
var self=this;
var _a7e=dojo.connect(_a7c[0],"onchange",function(){
self.changeZodiac(_a7c,_a7d);
});
var _a7f=dojo.connect(_a7c[1],"onchange",function(){
self.changeZodiac(_a7c,_a7d);
});
dojo.connect(dojo.byId("register02.zodiac"),"onchange",function(){
dojo.disconnect(_a7e);
dojo.disconnect(_a7f);
});
},changeZodiac:function $DBGQ_(_a80,_a81){
if(_a80[0].value!=""&&_a80[1].value!=""){
for(var i=0;i<=11;i++){
if((_a80[0].value>=_a81[i][1]&&_a80[1].value==_a81[i][2])||(_a80[0].value<=_a81[i][3]&&_a80[1].value==_a81[i][4])){
document.getElementById("register02.zodiac").options[_a81[i][0]].selected=true;
break;
}
}
}
}});
}
if(!dojo._hasResource["singles.startpage.Onlinelist"]){
dojo._hasResource["singles.startpage.Onlinelist"]=true;
dojo.provide("singles.startpage.Onlinelist");
dojo.declare("singles.startpage.Onlinelist",null,{offset:0,totalPages:1,currentPage:1,constructor:function $DBFC_(){
this.totalPages=arguments[0];
dojo.connect(dojo.byId("fwdBtn"),"onclick",this,"next");
dojo.connect(dojo.byId("backBtn"),"onclick",this,"prev");
this._getData(1,"left");
},next:function $DBFD_(){
this.currentPage++;
this._getData(this.currentPage,"left");
},prev:function $DBFE_(){
this.currentPage--;
this._getData(this.currentPage,"right");
},_getData:function $DBFF_(page,_a82){
dojo.addClass("onlineListContainer","loading");
dojo.removeClass("onlineListBox","left");
dojo.removeClass("onlineListBox","right");
dojo.addClass("onlineListBox",_a82);
dojo.addClass("onlineListBox","hidden");
var self=this;
dojo.xhrGet({url:"/index/index/get-online/offset/"+page,handleAs:"text",load:function $DBFG_(_a83){
var div=dojo.create("div",{"innerHTML":_a83},dojo.byId("onlineListBox"),"only");
dojo.removeClass("onlineListBox",_a82);
dojo.addClass("onlineListBox",(_a82=="left"?"right":"left"));
dojo.removeClass("onlineListBox","hidden");
dojo.removeClass("onlineListContainer","loading");
self._setPager();
},error:function $DBFH_(_a84){
console.debug(_a84);
}});
},_setPager:function $DBFI_(){
if(this.currentPage>1){
dojo.style(dojo.byId("backBtn"),"display","block");
}else{
dojo.style(dojo.byId("backBtn"),"display","none");
}
if(this.currentPage<this.totalPages){
dojo.style(dojo.byId("fwdBtn"),"display","block");
}else{
dojo.style(dojo.byId("fwdBtn"),"display","none");
}
}});
}
if(!dojo._hasResource["singles.startpage.Search"]){
dojo._hasResource["singles.startpage.Search"]=true;
dojo.provide("singles.startpage.Search");
dojo.declare("singles.startpage.Search",null,{constructor:function $DBE8_(){
dojo.connect(dojo.byId("submitSearch"),"onclick",this,"validateSubmit");
dojo.connect(dijit.byId("searchGenderSelect"),"onChange",this,"validateGender");
},validateSubmit:function $DBE9_(e){
dojo.stopEvent(e);
var _a85=false;
if(null==dijit.byId("searchGenderSelect").attr("value")){
tgt=dojo.byId("searchGenderSelect");
dojo.style(tgt,"background","#f9f999 url(/js/source/dojo/dijit/themes/tundra/images/warning.png) no-repeat right center");
_a85=true;
}else{
var _a86=dijit.byId("searchGenderSelect").attr("value").split("_");
var _a87=_a86[0];
var _a88=_a86[1];
}
var _a89="";
for(i=11;i<15;i++){
var _a8a=dijit.byId("interested_"+i).attr("value");
if(_a8a){
_a89+="&meet4[]="+(_a88==1?_a8a:(parseInt(_a8a)+4));
}
}
if(!dijit.byId("age_from").isValid()){
_a85=true;
}else{
var _a8b=dijit.byId("age_from").attr("value");
}
if(!dijit.byId("age_to").isValid()){
_a85=true;
}else{
var _a8c=dijit.byId("age_to").attr("value");
}
if(_a85){
dojo.byId("searchError").innerHTML="Bitte füllen Sie die markierten Felder mit korrenten Werten.";
dojo.removeClass(dojo.byId("searchError"),"hidden");
}else{
dojo.addClass(dojo.byId("searchError"),"hidden");
this.submit(_a87,_a88,_a89,_a8b,_a8c);
}
},submit:function $DBFA_(_a8d,_a8e,_a8f,_a90,_a91){
var link="/user/search/quick?Studio3w_Form[from]=quickSearch&sortOrder=registrationDate&page=1&sex="+_a8d+_a8f+"&age_from="+_a90+"&age_until="+_a91+"&searchType=quick&search=Profile+finden";
window.location.href=link;
},validateGender:function $DBFB_(){
if(null!=dijit.byId("searchGenderSelect").attr("value")){
dojo.style(tgt,"background","");
}
}});
}
if(!dojo._hasResource["s3w.widget.Editor"]){
dojo._hasResource["s3w.widget.Editor"]=true;
dojo.provide("s3w.widget.Editor");
dojo.declare("s3w.widget.Editor",null,{domNodeId:"",domNodeEle:null,config:null,editor:null,value:"",constructor:function $DBIp_(){
configuration=this.prepareConfig(arguments[0]);
this.config=configuration;
this.domNodeId=configuration.targetId;
this.domNodeEle=dojo.byId(this.domNodeId);
this.value=this.domNodeEle.innerHTML;
},prepareConfig:function $DBIq_(_a92){
if(_a92["targetId"]==null||_a92["targetId"].length==0){
alert("FEHLER: targetId muss angegeben sein und zu einem <textarea>-Feld verweisen!");
_a92["targetId"]="";
}
if(_a92["editorSelector"]==null||_a92["editorSelector"].length==0){
alert("FEHLER: editorSelector muss angegeben sein und die CSS-Klasse eines <textarea>-Feldes sein!");
_a92["editorSelector"]="";
}
_a92=this._prepareConfig(_a92);
var _a93={editor_selector:_a92["editorSelector"],theme:"advanced",mode:"none",id:_a92["editorSelector"],plugins:"inlinepopups",theme_advanced_buttons1:"bold,italic,underline,|,undo,redo,|,link,unlink,|,forecolor,removeformat,|,code",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_styles:"Code=codeStyle;Quote=quoteStyle",entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,inline_styles:false,convert_fonts_to_spans:false,language:"de"};
if(typeof _a92.tinymce=="undefined"){
_a92.tinymce=_a93;
}else{
_a92.tinymce=dojo.mixin(_a93,_a92.tinymce);
}
_a92.tinymce=this._prepareTinyMCEConfig(_a92.tinymce);
return _a92;
},_prepareTinyMCEConfig:function $DBIr_(_a94){
return _a94;
},_prepareConfig:function $DBIs_(_a95){
return _a95;
},render:function $DBIt_(){
try{
tinyMCE.init(this.config.tinymce);
}
catch(e){
alert("FEHLER: Editor-Konfiguration ist fehlgeschlagen!");
console.dir(this.config.tinymce);
}
try{
tinyMCE.execCommand("mceToggleEditor",false,this.domNodeId);
}
catch(e){
alert("FEHLER: Editor-Instanziierung fehlgeschlagen!");
}
},getContent:function $DBIu_(){
return tinyMCE.get(this.config.editorSelector).getContent();
}});
}
dojo.i18n._preloadLocalizations("dojo.nls.dojo",["ROOT","de","de-de","en","en-gb","en-us","xx"]);
if(dojo.config.afterOnLoad&&dojo.isBrowser){
window.setTimeout(dojo._loadInit,1000);
}
})();

