/* Copyright (c) 2004-2011, 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 an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ dojo.provide("misys.layer.base");if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_1,_2){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 _3=dojo.date.stamp._isoRegExp.exec(_1),_4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}),function(_6,_7){_3[_7]=_3[_7]||_6;});}_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);if(_3[0]<100){_4.setFullYear(_3[0]||1970);}var _8=0,_9=_3[7]&&_3[7].charAt(0);if(_9!="Z"){_8=((_3[8]||0)*60)+(Number(_3[9])||0);if(_9!="-"){_8*=-1;}}if(_9){_8-=_4.getTimezoneOffset();}if(_8){_4.setTime(_4.getTime()+_8*60000);}}return _4;};dojo.date.stamp.toISOString=function(_a,_b){var _c=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _d=[],_e=_b.zulu?"getUTC":"get",_f="";if(_b.selector!="time"){var _10=_a[_e+"FullYear"]();_f=["0000".substr((_10+"").length)+_10,_c(_a[_e+"Month"]()+1),_c(_a[_e+"Date"]())].join("-");}_d.push(_f);if(_b.selector!="date"){var _11=[_c(_a[_e+"Hours"]()),_c(_a[_e+"Minutes"]()),_c(_a[_e+"Seconds"]())].join(":");var _12=_a[_e+"Milliseconds"]();if(_b.milliseconds){_11+="."+(_12<100?"0":"")+_c(_12);}if(_b.zulu){_11+="Z";}else{if(_b.selector!="time"){var _13=_a.getTimezoneOffset();var _14=Math.abs(_13);_11+=(_13>0?"-":"+")+_c(Math.floor(_14/60))+":"+_c(_14%60);}}_d.push(_11);}return _d.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;function _15(_16){if(d.isString(_16)){return "string";}if(typeof _16=="number"){return "number";}if(typeof _16=="boolean"){return "boolean";}if(d.isFunction(_16)){return "function";}if(d.isArray(_16)){return "array";}if(_16 instanceof Date){return "date";}if(_16 instanceof d._Url){return "url";}return "object";};function _17(_18,_19){switch(_19){case "string":return _18;case "number":return _18.length?Number(_18):NaN;case "boolean":return typeof _18=="boolean"?_18:!(_18.toLowerCase()=="false");case "function":if(d.isFunction(_18)){_18=_18.toString();_18=d.trim(_18.substring(_18.indexOf("{")+1,_18.length-1));}try{if(_18===""||_18.search(/[^\w\.]+/i)!=-1){return new Function(_18);}else{return d.getObject(_18,false)||new Function(_18);}}catch(e){return new Function();}case "array":return _18?_18.split(/\s*,\s*/):[];case "date":switch(_18){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_18);}case "url":return d.baseUrl+_18;default:return d.fromJson(_18);}};var _1a={},_1b={};d.connect(d,"extend",function(){_1b={};});function _1c(cls,_1d){for(var _1e in cls){if(_1e.charAt(0)=="_"){continue;}if(_1e in _1a){continue;}_1d[_1e]=_15(cls[_1e]);}return _1d;};function _1f(_20,_21){var c=_1b[_20];if(!c){var cls=d.getObject(_20),_22=null;if(!cls){return null;}if(!_21){_22=_1c(cls.prototype,{});}c={cls:cls,params:_22};}else{if(!_21&&!c.params){c.params=_1c(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_23,_24){var _25="";var _26="";var _27=(_23.getAttribute(_24+"args")||_23.getAttribute("args"));if(_27){d.forEach(_27.split(/\s*,\s*/),function(_28,idx){_25+="var "+_28+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_25+="with("+_2a+"){";_26+="}";});}return new Function(_25+_23.innerHTML+_26);};this.instantiate=function(_2b,_2c,_2d){var _2e=[],_2c=_2c||{};_2d=_2d||{};var _2f=(_2d.scope||d._scopeName)+"Type",_30="data-"+(_2d.scope||d._scopeName)+"-";d.forEach(_2b,function(obj){if(!obj){return;}var _31,_32,_33,_34,_35,_36;if(obj.node){_31=obj.node;_32=obj.type;_36=obj.fastpath;_33=obj.clsInfo||(_32&&_1f(_32,_36));_34=_33&&_33.cls;_35=obj.scripts;}else{_31=obj;_32=_2f in _2c?_2c[_2f]:_31.getAttribute(_2f);_33=_32&&_1f(_32);_34=_33&&_33.cls;_35=(_34&&(_34._noScript||_34.prototype._noScript)?[]:d.query("> script[type^='dojo/']",_31));}if(!_33){throw new Error("Could not load class '"+_32);}var _37={};if(_2d.defaults){d._mixin(_37,_2d.defaults);}if(obj.inherited){d._mixin(_37,obj.inherited);}if(_36){var _38=_31.getAttribute(_30+"props");if(_38&&_38.length){try{_38=d.fromJson.call(_2d.propsThis,"{"+_38+"}");d._mixin(_37,_38);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_38+"'");}}var _39=_31.getAttribute(_30+"attach-point");if(_39){_37.dojoAttachPoint=_39;}var _3a=_31.getAttribute(_30+"attach-event");if(_3a){_37.dojoAttachEvent=_3a;}dojo.mixin(_37,_2c);}else{var _3b=_31.attributes;for(var _3c in _33.params){var _3d=_3c in _2c?{value:_2c[_3c],specified:true}:_3b.getNamedItem(_3c);if(!_3d||(!_3d.specified&&(!dojo.isIE||_3c.toLowerCase()!="value"))){continue;}var _3e=_3d.value;switch(_3c){case "class":_3e="className" in _2c?_2c.className:_31.className;break;case "style":_3e="style" in _2c?_2c.style:(_31.style&&_31.style.cssText);}var _3f=_33.params[_3c];if(typeof _3e=="string"){_37[_3c]=_17(_3e,_3f);}else{_37[_3c]=_3e;}}}var _40=[],_41=[];d.forEach(_35,function(_42){_31.removeChild(_42);var _43=(_42.getAttribute(_30+"event")||_42.getAttribute("event")),_32=_42.getAttribute("type"),nf=d.parser._functionFromScript(_42,_30);if(_43){if(_32=="dojo/connect"){_40.push({event:_43,func:nf});}else{_37[_43]=nf;}}else{_41.push(nf);}});var _44=_34.markupFactory||_34.prototype&&_34.prototype.markupFactory;var _45=_44?_44(_37,_31,_34):new _34(_37,_31);_2e.push(_45);var _46=(_31.getAttribute(_30+"id")||_31.getAttribute("jsId"));if(_46){d.setObject(_46,_45);}d.forEach(_40,function(_47){d.connect(_45,_47.event,null,_47.func);});d.forEach(_41,function(_48){_48.call(_45);});});if(!_2c._started){d.forEach(_2e,function(_49){if(!_2d.noStart&&_49&&dojo.isFunction(_49.startup)&&!_49._started&&(!_49.getParent||!_49.getParent())){_49.startup();}});}return _2e;};this.parse=function(_4a,_4b){var _4c;if(!_4b&&_4a&&_4a.rootNode){_4b=_4a;_4c=_4b.rootNode;}else{_4c=_4a;}_4b=_4b||{};var _4d=(_4b.scope||d._scopeName)+"Type",_4e="data-"+(_4b.scope||d._scopeName)+"-",_4f=_4e+"type",_50=_4e+"textdir";var _51=[];var _52=(_4c?dojo.byId(_4c):dojo.body()).firstChild;var _53={inherited:(_4b&&_4b.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl",textDir:d.body().getAttribute(_4e+"textdir")||d.doc.documentElement.getAttribute(_4e+"textdir")||""}};var _54;var _55;function _56(_57){if(!_57.inherited){var _58=_57.node,_59=_56(_57.parent);_57.inherited={dir:_58.getAttribute("dir")||_59.dir,lang:_58.getAttribute("lang")||_59.lang,textDir:_58.getAttribute(_50)||_59.textDir};if(typeof _57.inherited.lang=="undefined"){delete _57.inherited.lang;}}return _57.inherited;};while(true){if(!_52){if(!_53||!_53.node){break;}_52=_53.node.nextSibling;_54=_53.scripts;_55=false;_53=_53.parent;continue;}if(_52.nodeType!=1){_52=_52.nextSibling;continue;}if(_54&&_52.nodeName.toLowerCase()=="script"){_5a=_52.getAttribute("type");if(_5a&&/^dojo\/\w/i.test(_5a)){_54.push(_52);}_52=_52.nextSibling;continue;}if(_55){_52=_52.nextSibling;continue;}var _5a,_5b=_52.getAttribute(_4f);if(_5b){_5a=_5b;}else{_5a=_52.getAttribute(_4d);}var _5c=_5b==_5a;var _5d=_52.firstChild;if(!_5a&&(!_5d||(_5d.nodeType==3&&!_5d.nextSibling))){_52=_52.nextSibling;continue;}var _5e={node:_52,scripts:_54,parent:_53};var _5f=_5a&&_1f(_5a,_5c),_60=_5f&&!_5f.cls.prototype._noScript?[]:null;if(_5a){_51.push({"type":_5a,fastpath:_5c,clsInfo:_5f,node:_52,scripts:_60,inherited:_56(_5e)});}_52=_5d;_54=_60;_55=_5f&&_5f.cls.prototype.stopParser&&!(_4b&&_4b.template);_53=_5e;}var _61=_4b&&_4b.template?{template:true}:null;return this.instantiate(_51,_61,_4b);};}();(function(){var _62=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_62);}else{dojo._loaders.unshift(_62);}})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _63=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _64=dojo._docScroll();return {w:_63.clientWidth,h:_63.clientHeight,l:_64.x,t:_64.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_65,pos){try{_65=dojo.byId(_65);var doc=_65.ownerDocument||dojo.doc,_66=doc.body||dojo.body(),_67=doc.documentElement||_66.parentNode,_68=dojo.isIE,_69=dojo.isWebKit;if((!(dojo.isMoz||_68||_69||dojo.isOpera)||_65==_66||_65==_67)&&(typeof _65.scrollIntoView!="undefined")){_65.scrollIntoView(false);return;}var _6a=doc.compatMode=="BackCompat",_6b=(_68>=9&&_65.ownerDocument.parentWindow.frameElement)?((_67.clientHeight>0&&_67.clientWidth>0&&(_66.clientHeight==0||_66.clientWidth==0||_66.clientHeight>_67.clientHeight||_66.clientWidth>_67.clientWidth))?_67:_66):(_6a?_66:_67),_6c=_69?_66:_6b,_6d=_6b.clientWidth,_6e=_6b.clientHeight,rtl=!dojo._isBodyLtr(),_6f=pos||dojo.position(_65),el=_65.parentNode,_70=function(el){return ((_68<=6||(_68&&_6a))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_70(_65)){return;}while(el){if(el==_66){el=_6c;}var _71=dojo.position(el),_72=_70(el);if(el==_6c){_71.w=_6d;_71.h=_6e;if(_6c==_67&&_68&&rtl){_71.x+=_6c.offsetWidth-_71.w;}if(_71.x<0||!_68){_71.x=0;}if(_71.y<0||!_68){_71.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_71.w-=pb.w;_71.h-=pb.h;_71.x+=pb.l;_71.y+=pb.t;var _73=el.clientWidth,_74=_71.w-_73;if(_73>0&&_74>0){_71.w=_73;_71.x+=(rtl&&(_68||el.clientLeft>pb.l))?_74:0;}_73=el.clientHeight;_74=_71.h-_73;if(_73>0&&_74>0){_71.h=_73;}}if(_72){if(_71.y<0){_71.h+=_71.y;_71.y=0;}if(_71.x<0){_71.w+=_71.x;_71.x=0;}if(_71.y+_71.h>_6e){_71.h=_6e-_71.y;}if(_71.x+_71.w>_6d){_71.w=_6d-_71.x;}}var l=_6f.x-_71.x,t=_6f.y-Math.max(_71.y,0),r=l+_6f.w-_71.w,bot=t+_6f.h-_71.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((_68==8&&!_6a)||_68>=9)){s=-s;}_6f.x+=el.scrollLeft;el.scrollLeft+=s;_6f.x-=el.scrollLeft;}if(bot*t>0){_6f.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_6f.y-=el.scrollTop;}el=(el!=_6c)&&!_72&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_65.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_75){if(this._hash[_75.id]){throw new Error("Tried to register widget with id=="+_75.id+" but that id is already registered");}this._hash[_75.id]=_75;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_76,_77){_77=_77||dojo.global;var i=0,id;for(id in this._hash){_76.call(_77,this._hash[id],i++,this._hash);}return this;},filter:function(_78,_79){_79=_79||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_78.call(_79,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_7a;for(id in this._hash){_7a=this._hash[id];if(_7a.declaredClass==cls){res.add(_7a);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_7b,_7c){return dojo.map(this.toArray(),_7b,_7c);},every:function(_7d,_7e){_7e=_7e||dojo.global;var x=0,i;for(i in this._hash){if(!_7d.call(_7e,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_7f,_80){_80=_80||dojo.global;var x=0,i;for(i in this._hash){if(_7f.call(_80,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _81=dijit.registry._hash,_82=dojo.attr,_83=dojo.hasAttr,_84=dojo.style;dijit.byId=function(id){return typeof id=="string"?_81[id]:id;};var _85={};dijit.getUniqueId=function(_86){var id;do{id=_86+"_"+(_86 in _85?++_85[_86]:_85[_86]=0);}while(_81[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_87){var _88=[];function _89(_8a){for(var _8b=_8a.firstChild;_8b;_8b=_8b.nextSibling){if(_8b.nodeType==1){var _8c=_8b.getAttribute("widgetId");if(_8c){var _8d=_81[_8c];if(_8d){_88.push(_8d);}}else{_89(_8b);}}}};_89(_87);return _88;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_8e){if(!_8e._destroyed){if(_8e.destroyRecursive){_8e.destroyRecursive();}else{if(_8e.destroy){_8e.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_8f){return _81[_8f.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_90){while(_90){var id=_90.getAttribute&&_90.getAttribute("widgetId");if(id){return _81[id];}_90=_90.parentNode;}return null;};var _91=(dijit._isElementShown=function(_92){var s=_84(_92);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_82(_92,"type")!="hidden");});dijit.hasDefaultTabStop=function(_93){switch(_93.nodeName.toLowerCase()){case "a":return _83(_93,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _94;try{var _95=_93.contentDocument;if("designMode" in _95&&_95.designMode=="on"){return true;}_94=_95.body;}catch(e1){try{_94=_93.contentWindow.document.body;}catch(e2){return false;}}return _94.contentEditable=="true"||(_94.firstChild&&_94.firstChild.contentEditable=="true");default:return _93.contentEditable=="true";}};var _96=(dijit.isTabNavigable=function(_97){if(_82(_97,"disabled")){return false;}else{if(_83(_97,"tabIndex")){return _82(_97,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_97);}}});dijit._getTabNavigable=function(_98){var _99,_9a,_9b,_9c,_9d,_9e,_9f={};function _a0(_a1){return _a1&&_a1.tagName.toLowerCase()=="input"&&_a1.type&&_a1.type.toLowerCase()=="radio"&&_a1.name&&_a1.name.toLowerCase();};var _a2=function(_a3){dojo.query("> *",_a3).forEach(function(_a4){if((dojo.isIE&&_a4.scopeName!=="HTML")||!_91(_a4)){return;}if(_96(_a4)){var _a5=_82(_a4,"tabIndex");if(!_83(_a4,"tabIndex")||_a5==0){if(!_99){_99=_a4;}_9a=_a4;}else{if(_a5>0){if(!_9b||_a5<_9c){_9c=_a5;_9b=_a4;}if(!_9d||_a5>=_9e){_9e=_a5;_9d=_a4;}}}var rn=_a0(_a4);if(dojo.attr(_a4,"checked")&&rn){_9f[rn]=_a4;}}if(_a4.nodeName.toUpperCase()!="SELECT"){_a2(_a4);}});};if(_91(_98)){_a2(_98);}function rs(_a6){return _9f[_a0(_a6)]||_a6;};return {first:rs(_99),last:rs(_9a),lowest:rs(_9b),highest:rs(_9d)};};dijit.getFirstInTabbingOrder=function(_a7){var _a8=dijit._getTabNavigable(dojo.byId(_a7));return _a8.lowest?_a8.lowest:_a8.first;};dijit.getLastInTabbingOrder=function(_a9){var _aa=dijit._getTabNavigable(dojo.byId(_a9));return _aa.last?_aa.last:_aa.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}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=_c9;i--){_ca=dijit.byId(_c8[i]);if(_ca){_ca._focused=false;_ca.set("focused",false);_ca._hasBeenBlurred=true;if(_ca._onBlur){_ca._onBlur(by);}dojo.publish("widgetBlur",[_ca,by]);}}for(i=_c9;i<_c7.length;i++){_ca=dijit.byId(_c7[i]);if(_ca){_ca._focused=true;_ca.set("focused",true);if(_ca._onFocus){_ca._onFocus(by);}dojo.publish("widgetFocus",[_ca,by]);}}}});dojo.addOnLoad(function(){var _cb=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_cb);_cb=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_cc){this.pairs=[];this.returnWrappers=_cc||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_cd,_ce,_cf,_d0,_d1){this.pairs[((_d1)?"unshift":"push")]([_cd,_ce,_cf,_d0]);},match:function(){for(var i=0;i0&&_10a[pi].parent===_10a[pi-1].widget;pi--){}return _10a[pi];},open:function(args){var _10b=this._stack,_10c=args.popup,_10d=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_10e=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_10b.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_10b[_10b.length-1].widget.domNode))){dijit.popup.close(_10b[_10b.length-1].widget);}var _10f=this._createWrapper(_10c);dojo.attr(_10f,{id:id,style:{zIndex:this._beginZIndex+_10b.length},"class":"dijitPopup "+(_10c.baseClass||_10c["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_10c.bgIframe){_10c.bgIframe=new dijit.BackgroundIframe(_10f);}}var best=_10e?dijit.placeOnScreenAroundElement(_10f,_10e,_10d,_10c.orient?dojo.hitch(_10c,"orient"):null):dijit.placeOnScreen(_10f,args,_10d=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_10f.style.display="";_10f.style.visibility="visible";_10c.domNode.style.visibility="visible";var _110=[];_110.push(dojo.connect(_10f,"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 _111=this.getTopPopup();if(_111&&_111.onCancel){_111.onCancel();}}}}));if(_10c.onCancel){_110.push(dojo.connect(_10c,"onCancel",args.onCancel));}_110.push(dojo.connect(_10c,_10c.onExecute?"onExecute":"onChange",this,function(){var _112=this.getTopPopup();if(_112&&_112.onExecute){_112.onExecute();}}));_10b.push({widget:_10c,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_110});if(_10c.onOpen){_10c.onOpen(best);}return best;},close:function(_113){var _114=this._stack;while((_113&&dojo.some(_114,function(elem){return elem.widget==_113;}))||(!_113&&_114.length)){var top=_114.pop(),_115=top.widget,_116=top.onClose;if(_115.onClose){_115.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_115&&_115.domNode){this.hide(_115);}if(_116){_116();}}}};dijit._frames=new function(){var _117=[];this.pop=function(){var _118;if(_117.length){_118=_117.pop();_118.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="