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(){
var _1=dojo.doc;
if(_1.selection){
var s=_1.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _3=dojo.global;
var _4=_3.getSelection();
if(dojo.isString(_4)){
return !_4;
}else{
return _4.isCollapsed||!_4.toString();
}
}
},getBookmark:function(){
var _5,_6=dojo.doc.selection;
if(_6){
var _7=_6.createRange();
if(_6.type.toUpperCase()=="CONTROL"){
if(_7.length){
_5=[];
var i=0,_9=_7.length;
while(i<_9){
_5.push(_7.item(i++));
}
}else{
_5=null;
}
}else{
_5=_7.getBookmark();
}
}else{
if(window.getSelection){
_6=dojo.global.getSelection();
if(_6){
_7=_6.getRangeAt(0);
_5=_7.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _5;
},moveToBookmark:function(_a){
var _b=dojo.doc;
if(_b.selection){
var _c;
if(dojo.isArray(_a)){
_c=_b.body.createControlRange();
dojo.forEach(_a,function(n){
_c.addElement(n);
});
}else{
_c=_b.selection.createRange();
_c.moveToBookmark(_a);
}
_c.select();
}else{
var _e=dojo.global.getSelection&&dojo.global.getSelection();
if(_e&&_e.removeAllRanges){
_e.removeAllRanges();
_e.addRange(_a);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(_f,_10){
return {node:_f&&dojo.isDescendant(dijit._curFocus,_f.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_10||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_10||dojo.global,dijit.getBookmark):null,openedForWindow:_10};
},focus:function(_11){
if(!_11){
return;
}
var _12="node" in _11?_11.node:_11,_13=_11.bookmark,_14=_11.openedForWindow;
if(_12){
var _15=(_12.tagName.toLowerCase()=="iframe")?_12.contentWindow:_12;
if(_15&&_15.focus){
try{
_15.focus();
}
catch(e){
}
}
dijit._onFocusNode(_12);
}
if(_13&&dojo.withGlobal(_14||dojo.global,dijit.isCollapsed)){
if(_14){
_14.focus();
}
try{
dojo.withGlobal(_14||dojo.global,dijit.moveToBookmark,null,[_13]);
}
catch(e){
}
}
},_activeStack:[],registerWin:function(_16){
if(!_16){
_16=window;
}
dojo.connect(_16.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(evt.target||evt.srcElement);
});
var doc=_16.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(evt.target);
},true);
}
}
doc=null;
},_onBlurNode:function(_1d){
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(_1e){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _1f=[];
try{
while(_1e){
if(_1e.dijitPopupParent){
_1e=dijit.byId(_1e.dijitPopupParent).domNode;
}else{
if(_1e.tagName&&_1e.tagName.toLowerCase()=="body"){
if(_1e===dojo.body()){
break;
}
_1e=dijit.getDocumentWindow(_1e.ownerDocument).frameElement;
}else{
var id=_1e.getAttribute&&_1e.getAttribute("widgetId");
if(id){
_1f.unshift(id);
}
_1e=_1e.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_1f);
},_onFocusNode:function(_21){
if(!_21){
return;
}
if(_21.nodeType==9){
return;
}
if(_21.nodeType==9){
var _22=dijit.getDocumentWindow(_21).frameElement;
if(!_22){
return;
}
_21=_22;
}
dijit._onTouchNode(_21);
if(_21==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=_21;
dojo.publish("focusNode",[_21]);
},_setStack:function(_23){
var _24=dijit._activeStack;
dijit._activeStack=_23;
for(var _25=0;_25<Math.min(_24.length,_23.length);_25++){
if(_24[_25]!=_23[_25]){
break;
}
}
for(var i=_24.length-1;i>=_25;i--){
var _27=dijit.byId(_24[i]);
if(_27){
_27._focused=false;
_27._hasBeenBlurred=true;
if(_27._onBlur){
_27._onBlur();
}
if(_27._setStateClass){
_27._setStateClass();
}
dojo.publish("widgetBlur",[_27]);
}
}
for(i=_25;i<_23.length;i++){
_27=dijit.byId(_23[i]);
if(_27){
_27._focused=true;
if(_27._onFocus){
_27._onFocus();
}
if(_27._setStateClass){
_27._setStateClass();
}
dojo.publish("widgetFocus",[_27]);
}
}
}});
dojo.addOnLoad(dijit.registerWin);
}
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={};
},add:function(_28){
if(this._hash[_28.id]){
throw new Error("Tried to register widget with id=="+_28.id+" but that id is already registered");
}
this._hash[_28.id]=_28;
},remove:function(id){
delete this._hash[id];
},forEach:function(_2a){
for(var id in this._hash){
_2a(this._hash[id]);
}
},filter:function(_2c){
var res=new dijit.WidgetSet();
this.forEach(function(_2e){
if(_2c(_2e)){
res.add(_2e);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_31){
return _31.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_32){
var id;
do{
id=_32+"_"+(_32 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_32]:dijit._widgetTypeCtr[_32]=0);
}while(dijit.byId(id));
return id;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.registry.forEach(function(_34){
_34.destroy();
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(_36){
return dijit.registry.byId(_36.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(_37){
while(_37){
if(_37.getAttribute&&_37.getAttribute("widgetId")){
return dijit.registry.byId(_37.getAttribute("widgetId"));
}
_37=_37.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(_38){
var _39=dojo.style(_38);
return (_39.visibility!="hidden")&&(_39.visibility!="collapsed")&&(_39.display!="none")&&(dojo.attr(_38,"type")!="hidden");
};
dijit.isTabNavigable=function(_3a){
if(dojo.hasAttr(_3a,"disabled")){
return false;
}
var _3b=dojo.hasAttr(_3a,"tabindex");
var _3c=dojo.attr(_3a,"tabindex");
if(_3b&&_3c>=0){
return true;
}
var _3d=_3a.nodeName.toLowerCase();
if(((_3d=="a"&&dojo.hasAttr(_3a,"href"))||dijit._tabElements[_3d])&&(!_3b||_3c>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(_3e){
var _3f,_40,_41,_42,_43,_44;
var _45=function(_46){
dojo.query("> *",_46).forEach(function(_47){
var _48=dijit._isElementShown(_47);
if(_48&&dijit.isTabNavigable(_47)){
var _49=dojo.attr(_47,"tabindex");
if(!dojo.hasAttr(_47,"tabindex")||_49==0){
if(!_3f){
_3f=_47;
}
_40=_47;
}else{
if(_49>0){
if(!_41||_49<_42){
_42=_49;
_41=_47;
}
if(!_43||_49>=_44){
_44=_49;
_43=_47;
}
}
}
}
if(_48&&_47.nodeName.toUpperCase()!="SELECT"){
_45(_47);
}
});
};
if(dijit._isElementShown(_3e)){
_45(_3e);
}
return {first:_3f,last:_40,lowest:_41,highest:_43};
};
dijit.getFirstInTabbingOrder=function(_4a){
var _4b=dijit._getTabNavigable(dojo.byId(_4a));
return _4b.lowest?_4b.lowest:_4b.first;
};
dijit.getLastInTabbingOrder=function(_4c){
var _4d=dijit._getTabNavigable(dojo.byId(_4c));
return _4d.last?_4d.last:_4d.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_4e){
this.pairs=[];
this.returnWrappers=_4e||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(_4f,_50,_51,_52,_53){
this.pairs[((_53)?"unshift":"push")]([_4f,_50,_51,_52]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var _55=this.pairs[i];
if(_55[1].apply(this,arguments)){
if((_55[3])||(this.returnWrappers)){
return _55[2];
}else{
return _55[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(_56){
for(var i=0;i<this.pairs.length;i++){
var _58=this.pairs[i];
if(_58[0]==_56){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
}
if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dijit.getViewport=function(){
var _59=dojo.global;
var _5a=dojo.doc;
var w=0,h=0;
var de=_5a.documentElement;
var dew=de.clientWidth,deh=de.clientHeight;
if(dojo.isMozilla){
var _60,_61,_62,_63;
var dbw=_5a.body.clientWidth;
if(dbw>dew){
_60=dew;
_62=dbw;
}else{
_62=dew;
_60=dbw;
}
var dbh=_5a.body.clientHeight;
if(dbh>deh){
_61=deh;
_63=dbh;
}else{
_63=deh;
_61=dbh;
}
w=(_62>_59.innerWidth)?_60:_62;
h=(_63>_59.innerHeight)?_61:_63;
}else{
if(!dojo.isOpera&&_59.innerWidth){
w=_59.innerWidth;
h=_59.innerHeight;
}else{
if(dojo.isIE&&de&&deh){
w=dew;
h=deh;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
var _66=dojo._docScroll();
return {w:w,h:h,l:_66.x,t:_66.y};
};
dijit.placeOnScreen=function(_67,pos,_69,_6a){
var _6b=dojo.map(_69,function(_6c){
return {corner:_6c,pos:pos};
});
return dijit._place(_67,_6b);
};
dijit._place=function(_6d,_6e,_6f){
var _70=dijit.getViewport();
if(!_6d.parentNode||String(_6d.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(_6d);
}
var _71=null;
dojo.some(_6e,function(_72){
var _73=_72.corner;
var pos=_72.pos;
if(_6f){
_6f(_6d,_72.aroundCorner,_73);
}
var _75=_6d.style;
var _76=_75.display;
var _77=_75.visibility;
_75.visibility="hidden";
_75.display="";
var mb=dojo.marginBox(_6d);
_75.display=_76;
_75.visibility=_77;
var _79=(_73.charAt(1)=="L"?pos.x:Math.max(_70.l,pos.x-mb.w)),_7a=(_73.charAt(0)=="T"?pos.y:Math.max(_70.t,pos.y-mb.h)),_7b=(_73.charAt(1)=="L"?Math.min(_70.l+_70.w,_79+mb.w):pos.x),_7c=(_73.charAt(0)=="T"?Math.min(_70.t+_70.h,_7a+mb.h):pos.y),_7d=_7b-_79,_7e=_7c-_7a,_7f=(mb.w-_7d)+(mb.h-_7e);
if(_71==null||_7f<_71.overflow){
_71={corner:_73,aroundCorner:_72.aroundCorner,x:_79,y:_7a,w:_7d,h:_7e,overflow:_7f};
}
return !_7f;
});
_6d.style.left=_71.x+"px";
_6d.style.top=_71.y+"px";
if(_71.overflow&&_6f){
_6f(_6d,_71.aroundCorner,_71.corner);
}
return _71;
};
dijit.placeOnScreenAroundNode=function(_80,_81,_82,_83){
_81=dojo.byId(_81);
var _84=_81.style.display;
_81.style.display="";
var _85=_81.offsetWidth;
var _86=_81.offsetHeight;
var _87=dojo.coords(_81,true);
_81.style.display=_84;
return dijit._placeOnScreenAroundRect(_80,_87.x,_87.y,_85,_86,_82,_83);
};
dijit.placeOnScreenAroundRectangle=function(_88,_89,_8a,_8b){
return dijit._placeOnScreenAroundRect(_88,_89.x,_89.y,_89.width,_89.height,_8a,_8b);
};
dijit._placeOnScreenAroundRect=function(_8c,x,y,_8f,_90,_91,_92){
var _93=[];
for(var _94 in _91){
_93.push({aroundCorner:_94,corner:_91[_94],pos:{x:x+(_94.charAt(1)=="L"?0:_8f),y:y+(_94.charAt(0)=="T"?0:_90)}});
}
return dijit._place(_8c,_93,_92);
};
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(_99,_9a,_9b,_9c){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(doc){
if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
}
if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dijit.popup=new function(){
var _9f=[],_a0=1000,_a1=1;
this.prepare=function(_a2){
dojo.body().appendChild(_a2);
var s=_a2.style;
if(s.display=="none"){
s.display="";
}
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
};
this.open=function(_a4){
var _a5=_a4.popup,_a6=_a4.orient||{"BL":"TL","TL":"BL"},_a7=_a4.around,id=(_a4.around&&_a4.around.id)?(_a4.around.id+"_dropdown"):("popup_"+_a1++);
var _a9=dojo.doc.createElement("div");
dijit.setWaiRole(_a9,"presentation");
_a9.id=id;
_a9.className="dijitPopup";
_a9.style.zIndex=_a0+_9f.length;
_a9.style.left=_a9.style.top="0px";
_a9.style.visibility="hidden";
if(_a4.parent){
_a9.dijitPopupParent=_a4.parent.id;
}
dojo.body().appendChild(_a9);
var s=_a5.domNode.style;
s.display="";
s.visibility="";
s.position="";
_a9.appendChild(_a5.domNode);
var _ab=new dijit.BackgroundIframe(_a9);
var _ac=_a7?dijit.placeOnScreenAroundElement(_a9,_a7,_a6,_a5.orient?dojo.hitch(_a5,"orient"):null):dijit.placeOnScreen(_a9,_a4,_a6=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);
_a9.style.visibility="visible";
var _ad=[];
var _ae=function(){
for(var pi=_9f.length-1;pi>0&&_9f[pi].parent===_9f[pi-1].widget;pi--){
}
return _9f[pi];
};
_ad.push(dojo.connect(_a9,"onkeypress",this,function(evt){
if(evt.charOrCode==dojo.keys.ESCAPE&&_a4.onCancel){
dojo.stopEvent(evt);
_a4.onCancel();
}else{
if(evt.charOrCode===dojo.keys.TAB){
dojo.stopEvent(evt);
var _b1=_ae();
if(_b1&&_b1.onCancel){
_b1.onCancel();
}
}
}
}));
if(_a5.onCancel){
_ad.push(dojo.connect(_a5,"onCancel",null,_a4.onCancel));
}
_ad.push(dojo.connect(_a5,_a5.onExecute?"onExecute":"onChange",null,function(){
var _b2=_ae();
if(_b2&&_b2.onExecute){
_b2.onExecute();
}
}));
_9f.push({wrapper:_a9,iframe:_ab,widget:_a5,parent:_a4.parent,onExecute:_a4.onExecute,onCancel:_a4.onCancel,onClose:_a4.onClose,handlers:_ad});
if(_a5.onOpen){
_a5.onOpen(_ac);
}
return _ac;
};
this.close=function(_b3){
while(dojo.some(_9f,function(_b4){
return _b4.widget==_b3;
})){
var top=_9f.pop(),_b6=top.wrapper,_b7=top.iframe,_b8=top.widget,_b9=top.onClose;
if(_b8.onClose){
_b8.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_b8||!_b8.domNode){
return;
}
this.prepare(_b8.domNode);
_b7.destroy();
dojo._destroyElement(_b6);
if(_b9){
_b9();
}
}
};
}();
dijit._frames=new function(){
var _ba=[];
this.pop=function(){
var _bb;
if(_ba.length){
_bb=_ba.pop();
_bb.style.display="";
}else{
if(dojo.isIE){
var _bc=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";
var _bd="<iframe src='"+_bc+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_bb=dojo.doc.createElement(_bd);
}else{
_bb=dojo.doc.createElement("iframe");
_bb.src="javascript:\"\"";
_bb.className="dijitBackgroundIframe";
}
_bb.tabIndex=-1;
dojo.body().appendChild(_bb);
}
return _bb;
};
this.push=function(_be){
_be.style.display="";
if(dojo.isIE){
_be.style.removeExpression("width");
_be.style.removeExpression("height");
}
_ba.push(_be);
};
}();
if(dojo.isIE<7){
dojo.addOnLoad(function(){
var f=dijit._frames;
dojo.forEach([f.pop()],f.push);
});
}
dijit.BackgroundIframe=function(_c0){
if(!_c0.id){
throw new Error("no id");
}
if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _c1=dijit._frames.pop();
_c0.appendChild(_c1);
if(dojo.isIE){
_c1.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_c0.id+"').offsetWidth");
_c1.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_c0.id+"').offsetHeight");
}
this.iframe=_c1;
}
};
dojo.extend(dijit.BackgroundIframe,{destroy:function(){
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(_c2){
_c2=dojo.byId(_c2);
var _c3=_c2.ownerDocument.body;
var _c4=_c3.parentNode;
if(dojo.isFF==2||_c2==_c3||_c2==_c4){
_c2.scrollIntoView(false);
return;
}
var rtl=!dojo._isBodyLtr();
var _c6=dojo.doc.compatMode!="BackCompat";
var _c7=(_c6&&!dojo.isSafari)?_c4:_c3;
function addPseudoAttrs(_c8){
var _c9=_c8.parentNode;
var _ca=_c8.offsetParent;
if(_ca==null){
_c8=_c7;
_ca=_c4;
_c9=null;
}
_c8._offsetParent=(_ca==_c3)?_c7:_ca;
_c8._parent=(_c9==_c3)?_c7:_c9;
_c8._start={H:_c8.offsetLeft,V:_c8.offsetTop};
_c8._scroll={H:_c8.scrollLeft,V:_c8.scrollTop};
_c8._renderedSize={H:_c8.offsetWidth,V:_c8.offsetHeight};
var bp=dojo._getBorderExtents(_c8);
_c8._borderStart={H:bp.l,V:bp.t};
_c8._borderSize={H:bp.w,V:bp.h};
_c8._clientSize=(_c8._offsetParent==_c4&&dojo.isSafari&&_c6)?{H:_c4.clientWidth,V:_c4.clientHeight}:{H:_c8.clientWidth,V:_c8.clientHeight};
_c8._scrollBarSize={V:null,H:null};
for(var dir in _c8._scrollBarSize){
var _cd=_c8._renderedSize[dir]-_c8._clientSize[dir]-_c8._borderSize[dir];
_c8._scrollBarSize[dir]=(_c8._clientSize[dir]>0&&_cd>=15&&_cd<=17)?_cd:0;
}
_c8._isScrollable={V:null,H:null};
for(dir in _c8._isScrollable){
var _ce=dir=="H"?"V":"H";
_c8._isScrollable[dir]=_c8==_c7||_c8._scroll[dir]||_c8._scrollBarSize[_ce];
}
};
var _cf=_c2;
while(_cf!=null){
addPseudoAttrs(_cf);
var _d0=_cf._parent;
if(_d0){
_d0._child=_cf;
}
_cf=_d0;
}
for(var dir in _c7._renderedSize){
_c7._renderedSize[dir]=Math.min(_c7._clientSize[dir],_c7._renderedSize[dir]);
}
var _d2=_c2;
while(_d2!=_c7){
_cf=_d2._parent;
if(_cf.tagName=="TD"){
var _d3=_cf._parent._parent._parent;
if(_d3._offsetParent==_d2._offsetParent&&_cf._offsetParent!=_d2._offsetParent){
_cf=_d3;
}
}
var _d4=_d2==_c7||(_cf._offsetParent!=_d2._offsetParent);
for(dir in _d2._start){
var _d5=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_cf._clientSize.H>0){
var _d6=_cf.scrollWidth-_cf._clientSize.H;
if(_d6>0){
_cf._scroll.H-=_d6;
}
}
if(dojo.isIE&&_cf._offsetParent.tagName=="TABLE"){
_cf._start[dir]-=_cf._offsetParent._borderStart[dir];
_cf._borderStart[dir]=_cf._borderSize[dir]=0;
}
if(_cf._clientSize[dir]==0){
_cf._renderedSize[dir]=_cf._clientSize[dir]=_cf._child._clientSize[dir];
if(rtl&&dir=="H"){
_cf._start[dir]-=_cf._renderedSize[dir];
}
}else{
_cf._renderedSize[dir]-=_cf._borderSize[dir]+_cf._scrollBarSize[dir];
}
_cf._start[dir]+=_cf._borderStart[dir];
var _d7=_d2._start[dir]-(_d4?0:_cf._start[dir])-_cf._scroll[dir];
var _d8=_d7+_d2._renderedSize[dir]-_cf._renderedSize[dir];
var _d9,_da=(dir=="H")?"scrollLeft":"scrollTop";
var _db=(dir=="H"&&rtl);
var _dc=_db?-_d8:_d7;
var _dd=_db?-_d7:_d8;
if(_dc<=0){
_d9=_dc;
}else{
if(_dd<=0){
_d9=0;
}else{
if(_dc<_dd){
_d9=_dc;
}else{
_d9=_dd;
}
}
}
var _de=0;
if(_d9!=0){
var _df=_cf[_da];
_cf[_da]+=_db?-_d9:_d9;
_de=_cf[_da]-_df;
_d7-=_de;
_dd-=_db?-_de:_de;
}
_cf._renderedSize[dir]=_d2._renderedSize[dir]+_cf._scrollBarSize[dir]-((_cf._isScrollable[dir]&&_dd>0)?_dd:0);
_cf._start[dir]+=(_d7>=0||!_cf._isScrollable[dir])?_d7:0;
}
_d2=_cf;
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo;
var ie=d.isIE;
var _e2=d.isOpera;
var maj=Math.floor;
var ff=d.isFF;
var _e5=d.boxModel.replace(/-/,"");
var _e6={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_e2,dj_opera8:maj(_e2)==8,dj_opera9:maj(_e2)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_e6["dj_"+_e5]=true;
var _e7=dojo.doc.documentElement;
for(var p in _e6){
if(_e6[p]){
if(_e7.className){
_e7.className+=" "+p;
}else{
_e7.className=p;
}
}
}
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
_e7.className+=" dijitRtl";
for(var p in _e6){
if(_e6[p]){
_e7.className+=" "+p+"-rtl";
}
}
}
});
})();
}
if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_eb,_ec,_ed,obj,_ef,_f0){
if(obj!=this._obj){
this.stop();
this._initialDelay=_f0||500;
this._subsequentDelay=_ef||0.9;
this._obj=obj;
this._evt=evt;
this._node=_ec;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_eb,_ed);
this._fireEventAndReload();
}
},stop:function(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function(_f1,_f2,_f3,_f4,_f5,_f6){
if(_f2.keyCode){
_f2.charOrCode=_f2.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_f2.charCode){
_f2.charOrCode=String.fromCharCode(_f2.charCode);
dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}
}
return [dojo.connect(_f1,"onkeypress",this,function(evt){
if(evt.charOrCode==_f2.charOrCode&&(_f2.ctrlKey===undefined||_f2.ctrlKey==evt.ctrlKey)&&(_f2.altKey===undefined||_f2.altKey==evt.ctrlKey)&&(_f2.shiftKey===undefined||_f2.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_f2,_f3,_f1,_f4,_f2,_f5,_f6);
}else{
if(dijit.typematic._obj==_f2){
dijit.typematic.stop();
}
}
}),dojo.connect(_f1,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_f2){
dijit.typematic.stop();
}
})];
},addMouseListener:function(_f9,_fa,_fb,_fc,_fd){
var dc=dojo.connect;
return [dc(_f9,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_fa,_f9,_fb,_f9,_fc,_fd);
}),dc(_f9,"mouseup",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(_f9,"mouseout",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(_f9,"mousemove",this,function(evt){
dojo.stopEvent(evt);
}),dc(_f9,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_fa,_f9,_fb,_f9,_fc,_fd);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_104,_105,_106,_107,_108,_109,_10a){
return this.addKeyListener(_105,_106,_107,_108,_109,_10a).concat(this.addMouseListener(_104,_107,_108,_109,_10a));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.doc.createElement("div");
div.id="a11yTestNode";
div.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().appendChild(div);
var cs=dojo.getComputedStyle(div);
if(cs){
var _10d=cs.backgroundImage;
var _10e=(cs.borderTopColor==cs.borderRightColor)||(_10d!=null&&(_10d=="none"||_10d=="url(invalid-url:)"));
dojo[_10e?"addClass":"removeClass"](dojo.body(),"dijit_a11y");
if(dojo.isIE){
div.outerHTML="";
}else{
dojo.body().removeChild(div);
}
}
}};
if(dojo.isIE||dojo.isMoz){
dojo._loaders.unshift(dijit.wai.onload);
}
dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){
var _111=this.getWaiRole(elem);
if(role){
return (_111.indexOf(role)>-1);
}else{
return (_111.length>0);
}
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _115=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_115)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_115+" ").indexOf(" "+role+" ")<0){
var _116=dojo.trim(_115.replace(this._XhtmlRoles,""));
var _117=dojo.trim(_115.replace(_116,""));
dojo.attr(elem,"role",_117+(_117?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _11a=dojo.attr(elem,"role");
if(!_11a){
return;
}
if(role){
var _11b=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_11a+" ").replace(" "+_11b+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_11e){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_11e);
}else{
return elem.hasAttribute?elem.hasAttribute("aria-"+_11e):!!elem.getAttribute("aria-"+_11e);
}
},getWaiState:function(elem,_120){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_120);
}else{
var _121=elem.getAttribute("aria-"+_120);
return _121?_121:"";
}
},setWaiState:function(elem,_123,_124){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_123,_124);
}else{
elem.setAttribute("aria-"+_123,_124);
}
},removeWaiState:function(elem,_126){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_126);
}else{
elem.removeAttribute("aria-"+_126);
}
}});
}
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(_127,_128){
if(_127&&dojo.isFunction(_127._onConnect)){
_127._onConnect(_128);
}
});
dijit._connectOnUseEventHandler=function(_129){
};
(function(){
var _12a={};
var _12b=function(dc){
if(!_12a[dc]){
var r=[];
var _12e;
var _12f=dojo.getObject(dc).prototype;
for(var _130 in _12f){
if(dojo.isFunction(_12f[_130])&&(_12e=_130.match(/^_set([a-zA-Z]*)Attr$/))&&_12e[1]){
r.push(_12e[1].charAt(0).toLowerCase()+_12e[1].substr(1));
}
}
_12a[dc]=r;
}
return _12a[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",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")),postscript:function(_131,_132){
this.create(_131,_132);
},create:function(_133,_134){
this.srcNodeRef=dojo.byId(_134);
this._connects=[];
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(_133){
this.params=_133;
dojo.mixin(this,_133);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
for(attr in this.params){
this._onConnect(attr);
}
}
if(this.domNode){
this.domNode.setAttribute("widgetId",this.id);
}
this.postCreate();
if(this.srcNodeRef&&!this.srcNodeRef.parentNode){
delete this.srcNodeRef;
}
this._created=true;
},_applyAttributes:function(){
var _136=function(attr,_138){
if((_138.params&&attr in _138.params)||_138[attr]){
_138.attr(attr,_138[attr]);
}
};
for(var attr in this.attributeMap){
_136(attr,this);
}
dojo.forEach(_12b(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_136(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.doc.createElement("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_13b){
this.destroyDescendants(_13b);
this.destroy(_13b);
},destroy:function(_13c){
this.uninitialize();
dojo.forEach(this._connects,function(_13d){
dojo.forEach(_13d,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_13c);
dijit.registry.remove(this.id);
},destroyRendering:function(_13f){
if(this.bgIframe){
this.bgIframe.destroy(_13f);
delete this.bgIframe;
}
if(this.domNode){
if(!_13f){
dojo._destroyElement(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_13f){
dojo._destroyElement(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_140){
dojo.forEach(this.getDescendants(),function(_141){
if(_141.destroy){
_141.destroy(_140);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_143){
if(_143 in this._deferredConnects){
var _144=this[this._deferredConnects[_143]||"domNode"];
this.connect(_144,_143.toLowerCase(),this[_143]);
delete this._deferredConnects[_143];
}
},_setClassAttr:function(_145){
var _146=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_146,this["class"]);
this["class"]=_145;
dojo.addClass(_146,_145);
},_setStyleAttr:function(_147){
var _148=this[this.attributeMap["style"]||"domNode"];
if(_148.style.cssText){
_148.style.cssText+="; "+_147;
}else{
_148.style.cssText=_147;
}
this["style"]=_147;
},setAttribute:function(attr,_14a){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_14a);
},_attrToDom:function(attr,_14c){
var _14d=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_14d)?_14d:[_14d],function(_14e){
var _14f=this[_14e.node||_14e||"domNode"];
var type=_14e.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_14c)){
_14c=dojo.hitch(this,_14c);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_14f,attr,_14c);
break;
case "innerHTML":
_14f.innerHTML=_14c;
break;
case "class":
dojo.removeClass(_14f,this[attr]);
dojo.addClass(_14f,_14c);
break;
}
},this);
this[attr]=_14c;
},attr:function(name,_152){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _155=this._getAttrNames(name);
if(args==2){
if(this[_155.s]){
return this[_155.s](_152)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_152);
}
this[name]=_152;
}
return this;
}else{
if(this[_155.g]){
return this[_155.g]();
}else{
return this[name];
}
}
},_attrPairNames:{},_getAttrNames:function(name){
var apn=this._attrPairNames;
if(apn[name]){
return apn[name];
}
var uc=name.charAt(0).toUpperCase()+name.substr(1);
return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};
},toString:function(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function(){
if(this.containerNode){
var list=dojo.query("[widgetId]",this.containerNode);
return list.map(dijit.byNode);
}else{
return [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_15b,_15c){
var d=dojo;
var dco=d.hitch(d,"connect",obj);
var _15f=[];
if(_15b=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_15c);
_15f.push(dco("onkeydown",this,function(e){
if(!d.isFF&&e.keyCode==d.keys.ENTER){
return m(e);
}else{
if(e.keyCode==d.keys.SPACE){
d.stopEvent(e);
}
}
}),dco("onkeyup",this,function(e){
if(e.keyCode==d.keys.SPACE){
return m(e);
}
}));
if(d.isFF){
_15f.push(dco("onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER){
return m(e);
}
}));
}
}
_15b="onclick";
}
_15f.push(dco(_15b,this,_15c));
this._connects.push(_15f);
return _15f;
},disconnect:function(_164){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_164){
dojo.forEach(_164,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_166,_167){
if(_166["declaredClass"]&&_166["addChild"]){
_166.addChild(this,_167);
}else{
dojo.place(this.domNode,_166,_167);
}
return this;
}});
})();
}
if(!dojo._hasResource["dojo.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.string.rep=function(str,num){
if(num<=0||!str){
return "";
}
var buf=[];
for(;;){
if(num&1){
buf.push(str);
}
if(!(num>>=1)){
break;
}
str+=str;
}
return buf.join("");
};
dojo.string.pad=function(text,size,ch,end){
if(!ch){
ch="0";
}
var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));
return end?out+pad:pad+out;
};
dojo.string.substitute=function(_171,map,_173,_174){
_174=_174||dojo.global;
_173=(!_173)?function(v){
return v;
}:dojo.hitch(_174,_173);
return _171.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_176,key,_178){
var _179=dojo.getObject(key,false,map);
if(_178){
_179=dojo.getObject(_178,false,_174).call(_174,_179,key);
}
return _173(_179,key).toString();
});
};
dojo.string.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.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_17c,_17d){
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 _17e=dojo.date.stamp._isoRegExp.exec(_17c);
var _17f=null;
if(_17e){
_17e.shift();
if(_17e[1]){
_17e[1]--;
}
if(_17e[6]){
_17e[6]*=1000;
}
if(_17d){
_17d=new Date(_17d);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _17d["get"+prop]();
}).forEach(function(_181,_182){
if(_17e[_182]===undefined){
_17e[_182]=_181;
}
});
}
_17f=new Date(_17e[0]||1970,_17e[1]||0,_17e[2]||1,_17e[3]||0,_17e[4]||0,_17e[5]||0,_17e[6]||0);
var _183=0;
var _184=_17e[7]&&_17e[7].charAt(0);
if(_184!="Z"){
_183=((_17e[8]||0)*60)+(Number(_17e[9])||0);
if(_184!="-"){
_183*=-1;
}
}
if(_184){
_183-=_17f.getTimezoneOffset();
}
if(_183){
_17f.setTime(_17f.getTime()+_183*60000);
}
}
return _17f;
};
dojo.date.stamp.toISOString=function(_185,_186){
var _=function(n){
return (n<10)?"0"+n:n;
};
_186=_186||{};
var _189=[];
var _18a=_186.zulu?"getUTC":"get";
var date="";
if(_186.selector!="time"){
var year=_185[_18a+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_185[_18a+"Month"]()+1),_(_185[_18a+"Date"]())].join("-");
}
_189.push(date);
if(_186.selector!="date"){
var time=[_(_185[_18a+"Hours"]()),_(_185[_18a+"Minutes"]()),_(_185[_18a+"Seconds"]())].join(":");
var _18e=_185[_18a+"Milliseconds"]();
if(_186.milliseconds){
time+="."+(_18e<100?"0":"")+_(_18e);
}
if(_186.zulu){
time+="Z";
}else{
if(_186.selector!="time"){
var _18f=_185.getTimezoneOffset();
var _190=Math.abs(_18f);
time+=(_18f>0?"-":"+")+_(Math.floor(_190/60))+":"+_(_190%60);
}
}
_189.push(time);
}
return _189.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _192=d._scopeName+"Type";
var qry="["+_192+"]";
function val2type(_194){
if(d.isString(_194)){
return "string";
}
if(typeof _194=="number"){
return "number";
}
if(typeof _194=="boolean"){
return "boolean";
}
if(d.isFunction(_194)){
return "function";
}
if(d.isArray(_194)){
return "array";
}
if(_194 instanceof Date){
return "date";
}
if(_194 instanceof d._Url){
return "url";
}
return "object";
};
function str2obj(_195,type){
switch(type){
case "string":
return _195;
case "number":
return _195.length?Number(_195):NaN;
case "boolean":
return typeof _195=="boolean"?_195:!(_195.toLowerCase()=="false");
case "function":
if(d.isFunction(_195)){
_195=_195.toString();
_195=d.trim(_195.substring(_195.indexOf("{")+1,_195.length-1));
}
try{
if(_195.search(/[^\w\.]+/i)!=-1){
_195=d.parser._nameAnonFunc(new Function(_195),this);
}
return d.getObject(_195,false);
}
catch(e){
return new Function();
}
case "array":
return _195?_195.split(/\s*,\s*/):[];
case "date":
switch(_195){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_195);
}
case "url":
return d.baseUrl+_195;
default:
return d.fromJson(_195);
}
};
var _197={};
function getClassInfo(_198){
if(!_197[_198]){
var cls=d.getObject(_198);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_198+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _19a=cls.prototype;
var _19b={};
for(var name in _19a){
if(name.charAt(0)=="_"){
continue;
}
var _19d=_19a[name];
_19b[name]=val2type(_19d);
}
_197[_198]={cls:cls,params:_19b};
}
return _197[_198];
};
this._functionFromScript=function(_19e){
var _19f="";
var _1a0="";
var _1a1=_19e.getAttribute("args");
if(_1a1){
d.forEach(_1a1.split(/\s*,\s*/),function(part,idx){
_19f+="var "+part+" = arguments["+idx+"]; ";
});
}
var _1a4=_19e.getAttribute("with");
if(_1a4&&_1a4.length){
d.forEach(_1a4.split(/\s*,\s*/),function(part){
_19f+="with("+part+"){";
_1a0+="}";
});
}
return new Function(_19f+_19e.innerHTML+_1a0);
};
this.instantiate=function(_1a6){
var _1a7=[];
d.forEach(_1a6,function(node){
if(!node){
return;
}
var type=node.getAttribute(_192);
if((!type)||(!type.length)){
return;
}
var _1aa=getClassInfo(type);
var _1ab=_1aa.cls;
var ps=_1ab._noScript||_1ab.prototype._noScript;
var _1ad={};
var _1ae=node.attributes;
for(var name in _1aa.params){
var item=_1ae.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _1b1=item.value;
switch(name){
case "class":
_1b1=node.className;
break;
case "style":
_1b1=node.style&&node.style.cssText;
}
var _1b2=_1aa.params[name];
_1ad[name]=str2obj(_1b1,_1b2);
}
if(!ps){
var _1b3=[],_1b4=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_1b5){
var _1b6=_1b5.getAttribute("event"),type=_1b5.getAttribute("type"),nf=d.parser._functionFromScript(_1b5);
if(_1b6){
if(type=="dojo/connect"){
_1b3.push({event:_1b6,func:nf});
}else{
_1ad[_1b6]=nf;
}
}else{
_1b4.push(nf);
}
});
}
var _1b8=_1ab["markupFactory"];
if(!_1b8&&_1ab["prototype"]){
_1b8=_1ab.prototype["markupFactory"];
}
var _1b9=_1b8?_1b8(_1ad,node,_1ab):new _1ab(_1ad,node);
_1a7.push(_1b9);
var _1ba=node.getAttribute("jsId");
if(_1ba){
d.setObject(_1ba,_1b9);
}
if(!ps){
d.forEach(_1b3,function(_1bb){
d.connect(_1b9,_1bb.event,null,_1bb.func);
});
d.forEach(_1b4,function(func){
func.call(_1b9);
});
}
});
d.forEach(_1a7,function(_1bd){
if(_1bd&&_1bd.startup&&!_1bd._started&&(!_1bd.getParent||!_1bd.getParent())){
_1bd.startup();
}
});
return _1a7;
};
this.parse=function(_1be){
var list=d.query(qry,_1be);
var _1c0=this.instantiate(list);
return _1c0;
};
}();
(function(){
var _1c1=function(){
if(dojo.config["parseOnLoad"]==true){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_1c1);
}else{
dojo._loaders.unshift(_1c1);
}
})();
dojo.parser._anonCtr=0;
dojo.parser._anon={};
dojo.parser._nameAnonFunc=function(_1c2,_1c3){
var jpn="$joinpoint";
var nso=(_1c3||dojo.parser._anon);
if(dojo.isIE){
var cn=_1c2["__dojoNameCache"];
if(cn&&nso[cn]===_1c2){
return _1c2["__dojoNameCache"];
}
}
var ret="__"+dojo.parser._anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.parser._anonCtr++;
}
nso[ret]=_1c2;
return ret;
};
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){
var _1c9=this.declaredClass,_1ca=this;
return dojo.string.substitute(tmpl,this,function(_1cb,key){
if(key.charAt(0)=="!"){
_1cb=_1ca[key.substr(1)];
}
if(typeof _1cb=="undefined"){
throw new Error(_1c9+" template:"+key);
}
if(_1cb==null){
return "";
}
return key.charAt(0)=="!"?_1cb:_1cb.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _1cd=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_1cd)){
node=dijit._Templated._createNodesFromText(this._stringRepl(_1cd))[0];
}else{
node=_1cd.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
var _1cf=this.srcNodeRef;
if(_1cf&&_1cf.parentNode){
_1cf.parentNode.replaceChild(node,_1cf);
}
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(_1cf);
},_fillContent:function(_1d3){
var dest=this.containerNode;
if(_1d3&&dest){
while(_1d3.hasChildNodes()){
dest.appendChild(_1d3.firstChild);
}
}
},_attachTemplateNodes:function(_1d5,_1d6){
_1d6=_1d6||function(n,p){
return n.getAttribute(p);
};
var _1d9=dojo.isArray(_1d5)?_1d5:(_1d5.all||_1d5.getElementsByTagName("*"));
var x=dojo.isArray(_1d5)?0:-1;
var _1db={};
for(;x<_1d9.length;x++){
var _1dc=(x==-1)?_1d5:_1d9[x];
if(this.widgetsInTemplate&&_1d6(_1dc,"dojoType")){
continue;
}
var _1dd=_1d6(_1dc,"dojoAttachPoint");
if(_1dd){
var _1de,_1df=_1dd.split(/\s*,\s*/);
while((_1de=_1df.shift())){
if(dojo.isArray(this[_1de])){
this[_1de].push(_1dc);
}else{
this[_1de]=_1dc;
}
}
}
var _1e0=_1d6(_1dc,"dojoAttachEvent");
if(_1e0){
var _1e1,_1e2=_1e0.split(/\s*,\s*/);
var trim=dojo.trim;
while((_1e1=_1e2.shift())){
if(_1e1){
var _1e4=null;
if(_1e1.indexOf(":")!=-1){
var _1e5=_1e1.split(":");
_1e1=trim(_1e5[0]);
_1e4=trim(_1e5[1]);
}else{
_1e1=trim(_1e1);
}
if(!_1e4){
_1e4=_1e1;
}
this.connect(_1dc,_1e1,_1e4);
}
}
}
var role=_1d6(_1dc,"waiRole");
if(role){
dijit.setWaiRole(_1dc,role);
}
var _1e7=_1d6(_1dc,"waiState");
if(_1e7){
dojo.forEach(_1e7.split(/\s*,\s*/),function(_1e8){
if(_1e8.indexOf("-")!=-1){
var pair=_1e8.split("-");
dijit.setWaiState(_1dc,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_1ea,_1eb,_1ec){
var _1ed=dijit._Templated._templateCache;
var key=_1eb||_1ea;
var _1ef=_1ed[key];
if(_1ef){
if(!_1ef.ownerDocument||_1ef.ownerDocument==dojo.doc){
return _1ef;
}
dojo._destroyElement(_1ef);
}
if(!_1eb){
_1eb=dijit._Templated._sanitizeTemplateString(dojo._getText(_1ea));
}
_1eb=dojo.string.trim(_1eb);
if(_1ec||_1eb.match(/\$\{([^\}]+)\}/g)){
return (_1ed[key]=_1eb);
}else{
return (_1ed[key]=dijit._Templated._createNodesFromText(_1eb)[0]);
}
};
dijit._Templated._sanitizeTemplateString=function(_1f0){
if(_1f0){
_1f0=_1f0.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _1f1=_1f0.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_1f1){
_1f0=_1f1[1];
}
}else{
_1f0="";
}
return _1f0;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _1f2=dijit._Templated._templateCache;
for(var key in _1f2){
var _1f4=_1f2[key];
if(!isNaN(_1f4.nodeType)){
dojo._destroyElement(_1f4);
}
delete _1f2[key];
}
});
}
(function(){
var _1f5={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};
var tn;
dijit._Templated._createNodesFromText=function(text){
if(tn&&tn.ownerDocument!=dojo.doc){
dojo._destroyElement(tn);
tn=undefined;
}
if(!tn){
tn=dojo.doc.createElement("div");
tn.style.display="none";
dojo.body().appendChild(tn);
}
var _1f8="none";
var _1f9=text.replace(/^\s+/,"");
for(var type in _1f5){
var map=_1f5[type];
if(map.re.test(_1f9)){
_1f8=type;
text=map.pre+text+map.post;
break;
}
}
tn.innerHTML=text;
if(tn.normalize){
tn.normalize();
}
var tag={cell:"tr",row:"tbody",section:"table"}[_1f8];
var _1fd=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;
var _1fe=[];
while(_1fd.firstChild){
_1fe.push(_1fd.removeChild(_1fd.firstChild));
}
tn.innerHTML="";
return _1fe;
};
})();
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._Contained",null,{getParent:function(){
for(var p=this.domNode.parentNode;p;p=p.parentNode){
var id=p.getAttribute&&p.getAttribute("widgetId");
if(id){
var _201=dijit.byId(id);
return _201.isContainer?_201:null;
}
}
return null;
},_getSibling:function(_202){
var node=this.domNode;
do{
node=node[_202+"Sibling"];
}while(node&&node.nodeType!=1);
if(!node){
return null;
}
var id=node.getAttribute("widgetId");
return dijit.byId(id);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
},getIndexInParent:function(){
var p=this.getParent();
if(!p||!p.getIndexOfChild){
return -1;
}
return p.getIndexOfChild(this);
}});
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_206,_207){
var _208=this.containerNode;
if(_207&&typeof _207=="number"){
var _209=dojo.query("> [widgetId]",_208);
if(_209&&_209.length>=_207){
_208=_209[_207-1];
_207="after";
}
}
dojo.place(_206.domNode,_208,_207);
if(this._started&&!_206._started){
_206.startup();
}
},removeChild:function(_20a){
if(typeof _20a=="number"&&_20a>0){
_20a=this.getChildren()[_20a];
}
if(!_20a||!_20a.domNode){
return;
}
var node=_20a.domNode;
node.parentNode.removeChild(node);
},_nextElement:function(node){
do{
node=node.nextSibling;
}while(node&&node.nodeType!=1);
return node;
},_firstElement:function(node){
node=node.firstChild;
if(node&&node.nodeType!=1){
node=this._nextElement(node);
}
return node;
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function(){
return !!this._firstElement(this.containerNode);
},destroyDescendants:function(_20e){
dojo.forEach(this.getChildren(),function(_20f){
_20f.destroyRecursive(_20e);
});
},_getSiblingOfChild:function(_210,dir){
var node=_210.domNode;
var _213=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_213];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_214){
var _215=this.getChildren();
for(var i=0,c;c=_215[i];i++){
if(c==_214){
return i;
}
}
return -1;
}});
dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_218,_219){
var _21a=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_218,function(code){
_21a[code]=prev;
});
dojo.forEach(_219,function(code){
_21a[code]=next;
});
this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus");
},startupKeyNavChildren:function(){
dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));
},addChild:function(_21f,_220){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_21f);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
this.focusChild(this._getFirstFocusableChild());
},focusNext:function(){
if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){
this.focusedChild.focusNext();
return;
}
var _221=this._getNextFocusableChild(this.focusedChild,1);
if(_221.getFocalNodes){
this.focusChild(_221,_221.getFocalNodes()[0]);
}else{
this.focusChild(_221);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _222=this._getNextFocusableChild(this.focusedChild,-1);
if(_222.getFocalNodes){
var _223=_222.getFocalNodes();
this.focusChild(_222,_223[_223.length-1]);
}else{
this.focusChild(_222);
}
},focusChild:function(_224,node){
if(_224){
if(this.focusedChild&&_224!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_224;
if(node&&_224.focusFocalNode){
_224.focusFocalNode(node);
}else{
_224.focus();
}
}
},_startupChild:function(_226){
if(_226.getFocalNodes){
dojo.forEach(_226.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_226.focusNode||_226.domNode;
if(_226.isFocusable()){
dojo.attr(node,"tabindex",-1);
}
this._connectNode(node);
}
},_connectNode:function(node){
this.connect(node,"onfocus","_onNodeFocus");
this.connect(node,"onblur","_onNodeBlur");
},_onContainerFocus:function(evt){
if(evt.target===this.domNode){
this.focusFirstChild();
}
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.charOrCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onNodeFocus:function(evt){
dojo.attr(this.domNode,"tabindex",-1);
var _22e=dijit.getEnclosingWidget(evt.target);
if(_22e&&_22e.isFocusable()){
this.focusedChild=_22e;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabindex",this.tabIndex);
}
dojo.stopEvent(evt);
},_onChildBlur:function(_230){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_231,dir){
if(_231){
_231=this._getSiblingOfChild(_231,dir);
}
var _233=this.getChildren();
for(var i=0;i<_233.length;i++){
if(!_231){
_231=_233[(dir>0)?0:(_233.length-1)];
}
if(_231.isFocusable()){
return _231;
}
_231=this._getSiblingOfChild(_231,dir);
}
return null;
}});
}
if(!dojo._hasResource["dijit.layout._LayoutWidget"]){
dojo._hasResource["dijit.layout._LayoutWidget"]=true;
dojo.provide("dijit.layout._LayoutWidget");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){
dojo.addClass(this.domNode,"dijitContainer");
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_235){
_235.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this.connect(dojo.global,"onresize","resize");
}
this.inherited(arguments);
},resize:function(_236,_237){
var node=this.domNode;
if(_236){
dojo.marginBox(node,_236);
if(_236.t){
node.style.top=_236.t+"px";
}
if(_236.l){
node.style.left=_236.l+"px";
}
}
var mb=_237||{};
dojo.mixin(mb,_236||{});
if(!("h" in mb)||!("w" in mb)){
mb=dojo.mixin(dojo.marginBox(node),mb);
}
var cs=dojo.getComputedStyle(node);
var me=dojo._getMarginExtents(node,cs);
var be=dojo._getBorderExtents(node,cs);
var bb=this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)};
var pe=dojo._getPadExtents(node,cs);
this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};
this.layout();
},layout:function(){
},_setupChild:function(_23f){
if(_23f.baseClass){
dojo.addClass(_23f.domNode,this.baseClass+"-"+_23f.baseClass);
}
},addChild:function(_240,_241){
this.inherited(arguments);
if(this._started){
this._setupChild(_240);
}
},removeChild:function(_242){
if(_242.baseClass){
dojo.removeClass(_242.domNode,this.baseClass+"-"+_242.baseClass);
}
this.inherited(arguments);
}});
dijit.layout.marginBox2contentBox=function(node,mb){
var cs=dojo.getComputedStyle(node);
var me=dojo._getMarginExtents(node,cs);
var pb=dojo._getPadBorderExtents(node,cs);
return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};
};
(function(){
var _248=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_24b,dim){
_24b.resize?_24b.resize(dim):dojo.marginBox(_24b.domNode,dim);
dojo.mixin(_24b,dojo.marginBox(_24b.domNode));
dojo.mixin(_24b,dim);
};
dijit.layout.layoutChildren=function(_24d,dim,_24f){
dim=dojo.mixin({},dim);
dojo.addClass(_24d,"dijitLayoutContainer");
_24f=dojo.filter(_24f,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_24f,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_24f,function(_252){
var elm=_252.domNode,pos=_252.layoutAlign;
var _255=elm.style;
_255.left=dim.l+"px";
_255.top=dim.t+"px";
_255.bottom=_255.right="auto";
dojo.addClass(elm,"dijitAlign"+_248(pos));
if(pos=="top"||pos=="bottom"){
size(_252,{w:dim.w});
dim.h-=_252.h;
if(pos=="top"){
dim.t+=_252.h;
}else{
_255.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_252,{h:dim.h});
dim.w-=_252.w;
if(pos=="left"){
dim.l+=_252.w;
}else{
_255.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_252,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,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_256){
this.disabled=_256;
dojo.attr(this.focusNode,"disabled",_256);
dijit.setWaiState(this.focusNode,"disabled",_256);
if(_256){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_257){
dojo.deprecated("setDisabled("+_257+") is deprecated. Use attr('disabled',"+_257+") instead.","","2.0");
this.attr("disabled",_257);
},_scroll:true,_onFocus:function(e){
if(this._scroll){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_259){
var _25a=_259.currentTarget;
if(_25a&&_25a.getAttribute){
this.stateModifier=_25a.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_259.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 _25b=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_25b);
});
break;
}
this._setStateClass();
}
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
dijit.focus(this.focusNode);
},_setStateClass:function(){
var _25c=this.baseClass.split(" ");
function multiply(_25d){
_25c=_25c.concat(dojo.map(_25c,function(c){
return c+_25d;
}),"dijit"+_25d);
};
if(this.checked){
multiply("Checked");
}
if(this.state){
multiply(this.state);
}
if(this.selected){
multiply("Selected");
}
if(this.disabled){
multiply("Disabled");
}else{
if(this.readOnly){
multiply("ReadOnly");
}else{
if(this._active){
multiply(this.stateModifier+"Active");
}else{
if(this._focused){
multiply("Focused");
}
if(this._hovering){
multiply(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_260={};
dojo.forEach(tn.className.split(" "),function(c){
_260[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _260[c];
});
}
dojo.forEach(_25c,function(c){
_260[c]=true;
});
var _264=[];
for(var c in _260){
_264.push(c);
}
tn.className=_264.join(" ");
this._stateClasses=_25c;
},compare:function(val1,val2){
if((typeof val1=="number")&&(typeof val2=="number")){
return (isNaN(val1)&&isNaN(val2))?0:(val1-val2);
}else{
if(val1>val2){
return 1;
}else{
if(val1<val2){
return -1;
}else{
return 0;
}
}
}
},onChange:function(_268){
},_onChangeActive:false,_handleOnChange:function(_269,_26a){
this._lastValue=_269;
if(this._lastValueReported==undefined&&(_26a===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_269;
}
if((this.intermediateChanges||_26a||_26a===undefined)&&((typeof _269!=typeof this._lastValueReported)||this.compare(_269,this._lastValueReported)!=0)){
this._lastValueReported=_269;
if(this._onChangeActive){
this.onChange(_269);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_26b){
dojo.deprecated("dijit.form._FormWidget:setValue("+_26b+") is deprecated.  Use attr('value',"+_26b+") instead.","","2.0");
this.attr("value",_26b);
},getValue:function(){
dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_layoutHack:function(){
if(dojo.isFF==2&&!this._layoutHackHandle){
var node=this.domNode;
var old=node.style.opacity;
node.style.opacity="0.999";
this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){
this._layoutHackHandle=null;
node.style.opacity=old;
}),0);
}
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){
if(dojo.isIE||dojo.isSafari){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_26e,_26f){
this.value=_26e;
this._handleOnChange(_26e,_26f);
},_getValueAttr:function(_270){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_valueChanged:function(){
var v=this.attr("value");
var lv=this._lastValueReported;
return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}else{
if(dojo.isSafari){
te=document.createEvent("Events");
te.initEvent("keypress",true,true);
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.target.dispatchEvent(te);
}
}
}
},_onKeyPress:function(e){
if(e.charOrCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){
this.undo();
dojo.stopEvent(e);
return false;
}else{
if(this.intermediateChanges){
var _276=this;
setTimeout(function(){
_276._handleOnChange(_276.attr("value"),false);
},0);
}
}
return true;
}});
}
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:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"ondijitclick:_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\tname=\"${name}\" type=\"${type}\" 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.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){
if(this.disabled||this.readOnly){
return false;
}
this._clicked();
return this.onClick(e);
},_onButtonClick:function(e){
if(e.type!="click"){
dojo.stopEvent(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 _27a=dijit.byNode(node);
if(_27a&&typeof _27a._onSubmit=="function"){
_27a._onSubmit(e);
break;
}
}
}
}
},_fillContent:function(_27b){
if(_27b&&!("label" in this.params)){
this.attr("label",_27b.innerHTML);
}
},postCreate:function(){
if(this.showLabel==false){
dojo.addClass(this.containerNode,"dijitDisplayNone");
}
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
},onClick:function(e){
return true;
},_clicked:function(e){
},setLabel:function(_27e){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_27e);
},_setLabelAttr:function(_27f){
this.containerNode.innerHTML=this.label=_27f;
this._layoutHack();
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],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\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\ttype=\"${type}\" name=\"${name}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \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(){
if(this.srcNodeRef){
var _280=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_280[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _281=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_281);
delete this.dropDownContainer;
}
dijit.popup.prepare(this.dropDown.domNode);
this.inherited(arguments);
},destroyDescendants:function(){
if(this.dropDown){
this.dropDown.destroyRecursive();
delete this.dropDown;
}
this.inherited(arguments);
},_onArrowClick:function(e){
if(this.disabled||this.readOnly){
return;
}
this._toggleDropDown();
},_onDropDownClick:function(e){
var _284=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;
if(!_284||e.detail!=0||this._seenKeydown){
this._onArrowClick(e);
}
this._seenKeydown=false;
},_onDropDownKeydown:function(e){
this._seenKeydown=true;
},_onDropDownBlur:function(e){
this._seenKeydown=false;
},_onKey:function(e){
if(this.disabled||this.readOnly){
return;
}
if(e.charOrCode==dojo.keys.DOWN_ARROW){
if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){
dojo.stopEvent(e);
this._toggleDropDown();
}
}
},_onBlur:function(){
this._closeDropDown();
this.inherited(arguments);
},_toggleDropDown:function(){
if(this.disabled||this.readOnly){
return;
}
dijit.focus(this.popupStateNode);
var _288=this.dropDown;
if(!_288){
return;
}
if(!this._opened){
if(_288.href&&!_288.isLoaded){
var self=this;
var _28a=dojo.connect(_288,"onLoad",function(){
dojo.disconnect(_28a);
self._openDropDown();
});
_288._loadCheck(true);
return;
}else{
this._openDropDown();
}
}else{
this._closeDropDown();
}
},_openDropDown:function(){
var _28b=this.dropDown;
var _28c=_28b.domNode.style.width;
var self=this;
dijit.popup.open({parent:this,popup:_28b,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){
self._closeDropDown(true);
},onCancel:function(){
self._closeDropDown(true);
},onClose:function(){
_28b.domNode.style.width=_28c;
self.popupStateNode.removeAttribute("popupActive");
self._opened=false;
}});
if(this.domNode.offsetWidth>_28b.domNode.offsetWidth){
var _28e=null;
if(!this.isLeftToRight()){
_28e=_28b.domNode.parentNode;
var _28f=_28e.offsetLeft+_28e.offsetWidth;
}
dojo.marginBox(_28b.domNode,{w:this.domNode.offsetWidth});
if(_28e){
_28e.style.left=_28f-this.domNode.offsetWidth+"px";
}
}
this.popupStateNode.setAttribute("popupActive","true");
this._opened=true;
if(_28b.focus){
_28b.focus();
}
},_closeDropDown:function(_290){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_290){
this.focus();
}
this._opened=false;
}
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<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 dijitButtonContents dijitButtonNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  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></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\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:"",name:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){
this.inherited(arguments);
this._focalNodes=[this.titleNode,this.popupStateNode];
dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){
if(dojo.isIE){
this.connect(node,"onactivate",this._onNodeFocus);
this.connect(node,"ondeactivate",this._onNodeBlur);
}else{
this.connect(node,"onfocus",this._onNodeFocus);
this.connect(node,"onblur",this._onNodeBlur);
}
}));
},focusFocalNode:function(node){
this._focusedNode=node;
dijit.focus(node);
},hasNextFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[1];
},focusNext:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];
dijit.focus(this._focusedNode);
},hasPrevFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[0];
},focusPrev:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];
dijit.focus(this._focusedNode);
},getFocalNodes:function(){
return this._focalNodes;
},_onNodeFocus:function(evt){
this._focusedNode=evt.currentTarget;
var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.addClass(this._focusedNode,fnc);
},_onNodeBlur:function(evt){
var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.removeClass(evt.currentTarget,fnc);
},_onBlur:function(){
this.inherited(arguments);
this._focusedNode=null;
}});
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(evt){
this.attr("checked",!this.checked);
},_setCheckedAttr:function(_298){
this.checked=_298;
dojo.attr(this.focusNode||this.domNode,"checked",_298);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_298);
this._setStateClass();
this._handleOnChange(_298,true);
},setChecked:function(_299){
dojo.deprecated("setChecked("+_299+") is deprecated. Use attr('checked',"+_299+") instead.","","2.0");
this.attr("checked",_299);
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}
if(!dojo._hasResource["dijit.Menu"]){
dojo._hasResource["dijit.Menu"]=true;
dojo.provide("dijit.Menu");
dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){
this._bindings=[];
},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){
if(this.contextMenuForWindow){
this.bindDomNode(dojo.body());
}else{
dojo.forEach(this.targetNodeIds,this.bindDomNode,this);
}
this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_29a){
_29a.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_29b){
},_moveToPopup:function(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}
},_onKeyPress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
switch(evt.charOrCode){
case dojo.keys.RIGHT_ARROW:
this._moveToPopup(evt);
dojo.stopEvent(evt);
break;
case dojo.keys.LEFT_ARROW:
if(this.parentMenu){
this.onCancel(false);
}else{
dojo.stopEvent(evt);
}
break;
}
},onItemHover:function(item){
this.focusChild(item);
if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){
this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);
}
},_onChildBlur:function(item){
dijit.popup.close(item.popup);
item._blur();
this._stopPopupTimer();
},onItemUnhover:function(item){
},_stopPopupTimer:function(){
if(this.hover_timer){
clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_getTopMenu:function(){
for(var top=this;top.parentMenu;top=top.parentMenu){
}
return top;
},onItemClick:function(item,evt){
if(item.disabled){
return false;
}
if(item.popup){
if(!this.is_open){
this._openPopup();
}
}else{
this.onExecute();
item.onClick(evt);
}
},_iframeContentWindow:function(_2a4){
var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_2a4))||dijit.Menu._iframeContentDocument(_2a4)["__parent__"]||(_2a4.name&&dojo.doc.frames[_2a4.name])||null;
return win;
},_iframeContentDocument:function(_2a6){
var doc=_2a6.contentDocument||(_2a6.contentWindow&&_2a6.contentWindow.document)||(_2a6.name&&dojo.doc.frames[_2a6.name]&&dojo.doc.frames[_2a6.name].document)||null;
return doc;
},bindDomNode:function(node){
node=dojo.byId(node);
var win=dijit.getDocumentWindow(node.ownerDocument);
if(node.tagName.toLowerCase()=="iframe"){
win=this._iframeContentWindow(node);
node=dojo.withGlobal(win,dojo.body);
}
var cn=(node==dojo.body()?dojo.doc:node);
node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);
},unBindDomNode:function(_2ab){
var node=dojo.byId(_2ab);
if(node){
var bid=node[this.id]-1,b=this._bindings[bid];
dojo.forEach(b,dojo.disconnect);
delete this._bindings[bid];
}
},_contextKey:function(e){
this._contextMenuWithMouse=false;
if(e.keyCode==dojo.keys.F10){
dojo.stopEvent(e);
if(e.shiftKey&&e.type=="keydown"){
var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};
_e.preventDefault=_e.stopPropagation=function(){
};
window.setTimeout(dojo.hitch(this,function(){
this._openMyself(_e);
}),1);
}
}
},_contextMouse:function(e){
this._contextMenuWithMouse=true;
},_openMyself:function(e){
if(this.leftClickToOpen&&e.button>0){
return;
}
dojo.stopEvent(e);
var x,y;
if(dojo.isSafari||this._contextMenuWithMouse){
x=e.pageX;
y=e.pageY;
}else{
var _2b5=dojo.coords(e.target,true);
x=_2b5.x+10;
y=_2b5.y+10;
}
var self=this;
var _2b7=dijit.getFocus(this);
function closeAndRestoreFocus(){
dijit.focus(_2b7);
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});
this.focus();
this._onBlur=function(){
this.inherited("_onBlur",arguments);
dijit.popup.close(this);
};
},onOpen:function(e){
this.isShowingNow=true;
},onClose:function(){
this._stopPopupTimer();
this.parentMenu=null;
this.isShowingNow=false;
this.currentPopup=null;
if(this.focusedChild){
this._onChildBlur(this.focusedChild);
this.focusedChild=null;
}
},_openPopup:function(){
this._stopPopupTimer();
var _2b9=this.focusedChild;
var _2ba=_2b9.popup;
if(_2ba.isShowingNow){
return;
}
_2ba.parentMenu=this;
var self=this;
dijit.popup.open({parent:this,popup:_2ba,around:_2b9.domNode,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){
dijit.popup.close(_2ba);
_2b9.focus();
self.currentPopup=null;
}});
this.currentPopup=_2ba;
if(_2ba.focus){
_2ba.focus();
}
},uninitialize:function(){
dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);
this.inherited(arguments);
}});
dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",disabled:false,_fillContent:function(_2bc){
if(_2bc&&!("label" in this.params)){
this.attr("label",_2bc.innerHTML);
}
},postCreate:function(){
dojo.setSelectable(this.domNode,false);
dojo.attr(this.containerNode,"id",this.id+"_text");
dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");
},_onHover:function(){
this.getParent().onItemHover(this);
},_onUnhover:function(){
this.getParent().onItemUnhover(this);
},_onClick:function(evt){
this.getParent().onItemClick(this,evt);
dojo.stopEvent(evt);
},onClick:function(evt){
},focus:function(){
dojo.addClass(this.domNode,"dijitMenuItemHover");
try{
dijit.focus(this.focusNode);
}
catch(e){
}
},_blur:function(){
dojo.removeClass(this.domNode,"dijitMenuItemHover");
},setLabel:function(_2bf){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_2bf);
},setDisabled:function(_2c0){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_2c0);
},_setDisabledAttr:function(_2c1){
this.disabled=_2c1;
dojo[_2c1?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.focusNode,"disabled",_2c1?"true":"false");
}});
dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){
if(this.srcNodeRef){
var _2c2=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_2c2[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
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";
dojo.style(this.arrowWrapper,"display","");
dijit.setWaiState(this.focusNode,"haspopup","true");
},destroyDescendants:function(){
if(this.popup){
this.popup.destroyRecursive();
delete this.popup;
}
this.inherited(arguments);
}});
dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function(){
return false;
}});
dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">"+"<div class=\"dijitCheckedMenuItemIconChar\">&#10003;</div>"+"</div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,labelNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",checked:false,_setCheckedAttr:function(_2c4){
dojo.toggleClass(this.iconNode,"dijitCheckedMenuItemIconChecked",_2c4);
dijit.setWaiState(this.domNode,"checked",_2c4);
this.checked=_2c4;
},onChange:function(_2c5){
},_onClick:function(e){
if(!this.disabled){
this.attr("checked",!this.checked);
this.onChange(this.checked);
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_2c7,_2c8,_2c9){
_2c9=dojo.i18n.normalizeLocale(_2c9);
var _2ca=_2c9.split("-");
var _2cb=[_2c7,"nls",_2c8].join(".");
var _2cc=dojo._loadedModules[_2cb];
if(_2cc){
var _2cd;
for(var i=_2ca.length;i>0;i--){
var loc=_2ca.slice(0,i).join("_");
if(_2cc[loc]){
_2cd=_2cc[loc];
break;
}
}
if(!_2cd){
_2cd=_2cc.ROOT;
}
if(_2cd){
var _2d0=function(){
};
_2d0.prototype=_2cd;
return new _2d0();
}
}
throw new Error("Bundle not found: "+_2c8+" in "+_2c7+" , locale="+_2c9);
};
dojo.i18n.normalizeLocale=function(_2d1){
var _2d2=_2d1?_2d1.toLowerCase():dojo.locale;
if(_2d2=="root"){
_2d2="ROOT";
}
return _2d2;
};
dojo.i18n._requireLocalization=function(_2d3,_2d4,_2d5,_2d6){
var _2d7=dojo.i18n.normalizeLocale(_2d5);
var _2d8=[_2d3,"nls",_2d4].join(".");
var _2d9="";
if(_2d6){
var _2da=_2d6.split(",");
for(var i=0;i<_2da.length;i++){
if(_2d7["indexOf"](_2da[i])==0){
if(_2da[i].length>_2d9.length){
_2d9=_2da[i];
}
}
}
if(!_2d9){
_2d9="ROOT";
}
}
var _2dc=_2d6?_2d9:_2d7;
var _2dd=dojo._loadedModules[_2d8];
var _2de=null;
if(_2dd){
if(dojo.config.localizationComplete&&_2dd._built){
return;
}
var _2df=_2dc.replace(/-/g,"_");
var _2e0=_2d8+"."+_2df;
_2de=dojo._loadedModules[_2e0];
}
if(!_2de){
_2dd=dojo["provide"](_2d8);
var syms=dojo._getModuleSymbols(_2d3);
var _2e2=syms.concat("nls").join("/");
var _2e3;
dojo.i18n._searchLocalePath(_2dc,_2d6,function(loc){
var _2e5=loc.replace(/-/g,"_");
var _2e6=_2d8+"."+_2e5;
var _2e7=false;
if(!dojo._loadedModules[_2e6]){
dojo["provide"](_2e6);
var _2e8=[_2e2];
if(loc!="ROOT"){
_2e8.push(loc);
}
_2e8.push(_2d4);
var _2e9=_2e8.join("/")+".js";
_2e7=dojo._loadPath(_2e9,null,function(hash){
var _2eb=function(){
};
_2eb.prototype=_2e3;
_2dd[_2e5]=new _2eb();
for(var j in hash){
_2dd[_2e5][j]=hash[j];
}
});
}else{
_2e7=true;
}
if(_2e7&&_2dd[_2e5]){
_2e3=_2dd[_2e5];
}else{
_2dd[_2e5]=_2e3;
}
if(_2d6){
return true;
}
});
}
if(_2d6&&_2d7!=_2d9){
_2dd[_2d7.replace(/-/g,"_")]=_2dd[_2d9.replace(/-/g,"_")];
}
};
(function(){
var _2ed=dojo.config.extraLocale;
if(_2ed){
if(!_2ed instanceof Array){
_2ed=[_2ed];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_2f1,_2f2){
req(m,b,_2f1,_2f2);
if(_2f1){
return;
}
for(var i=0;i<_2ed.length;i++){
req(m,b,_2ed[i],_2f2);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_2f4,down,_2f6){
_2f4=dojo.i18n.normalizeLocale(_2f4);
var _2f7=_2f4.split("-");
var _2f8=[];
for(var i=_2f7.length;i>0;i--){
_2f8.push(_2f7.slice(0,i).join("-"));
}
_2f8.push(false);
if(down){
_2f8.reverse();
}
for(var j=_2f8.length-1;j>=0;j--){
var loc=_2f8[j]||"ROOT";
var stop=_2f6(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_2fd,_2fe){
function preload(_2ff){
_2ff=dojo.i18n.normalizeLocale(_2ff);
dojo.i18n._searchLocalePath(_2ff,true,function(loc){
for(var i=0;i<_2fe.length;i++){
if(_2fe[i]==loc){
dojo["require"](_2fd+"_"+loc);
return true;
}
}
return false;
});
};
preload();
var _302=dojo.config.extraLocale||[];
for(var i=0;i<_302.length;i++){
preload(_302[i]);
}
};
}
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,baseClass:"dijitStackContainer",_started:false,postCreate:function(){
this.inherited(arguments);
dijit.setWaiRole(this.containerNode,"tabpanel");
this.connect(this.domNode,"onkeypress",this._onKeyPress);
},startup:function(){
if(this._started){
return;
}
var _304=this.getChildren();
dojo.forEach(_304,this._setupChild,this);
dojo.some(_304,function(_305){
if(_305.selected){
this.selectedChildWidget=_305;
}
return _305.selected;
},this);
var _306=this.selectedChildWidget;
if(!_306&&_304[0]){
_306=this.selectedChildWidget=_304[0];
_306.selected=true;
}
if(_306){
this._showChild(_306);
}
dojo.publish(this.id+"-startup",[{children:_304,selected:_306}]);
this.inherited(arguments);
},_setupChild:function(_307){
this.inherited(arguments);
_307.domNode.style.display="none";
_307.domNode.style.position="relative";
_307.domNode.title="";
return _307;
},addChild:function(_308,_309){
this.inherited(arguments);
if(this._started){
dojo.publish(this.id+"-addChild",[_308,_309]);
this.layout();
if(!this.selectedChildWidget){
this.selectChild(_308);
}
}
},removeChild:function(page){
this.inherited(arguments);
if(this._beingDestroyed){
return;
}
if(this._started){
dojo.publish(this.id+"-removeChild",[page]);
this.layout();
}
if(this.selectedChildWidget===page){
this.selectedChildWidget=undefined;
if(this._started){
var _30b=this.getChildren();
if(_30b.length){
this.selectChild(_30b[0]);
}
}
}
},selectChild:function(page){
page=dijit.byId(page);
if(this.selectedChildWidget!=page){
this._transition(page,this.selectedChildWidget);
this.selectedChildWidget=page;
dojo.publish(this.id+"-selectChild",[page]);
}
},_transition:function(_30d,_30e){
if(_30e){
this._hideChild(_30e);
}
this._showChild(_30d);
if(this.doLayout&&_30d.resize){
_30d.resize(this._containerContentBox||this._contentBox);
}
},_adjacent:function(_30f){
var _310=this.getChildren();
var _311=dojo.indexOf(_310,this.selectedChildWidget);
_311+=_30f?1:_310.length-1;
return _310[_311%_310.length];
},forward:function(){
this.selectChild(this._adjacent(true));
},back:function(){
this.selectChild(this._adjacent(false));
},_onKeyPress:function(e){
dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);
},layout:function(){
if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){
this.selectedChildWidget.resize(this._contentBox);
}
},_showChild:function(page){
var _314=this.getChildren();
page.isFirstChild=(page==_314[0]);
page.isLastChild=(page==_314[_314.length-1]);
page.selected=true;
page.domNode.style.display="";
if(page._loadCheck){
page._loadCheck();
}
if(page.onShow){
page.onShow();
}
},_hideChild:function(page){
page.selected=false;
page.domNode.style.display="none";
if(page.onHide){
page.onHide();
}
},closeChild:function(page){
var _317=page.onClose(this,page);
if(_317){
this.removeChild(page);
page.destroyRecursive();
}
},destroy:function(){
this._beingDestroyed=true;
this.inherited(arguments);
}});
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(){
dijit.setWaiRole(this.domNode,"tablist");
this.pane2button={};
this.pane2handles={};
this.pane2menu={};
this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];
},onStartup:function(info){
dojo.forEach(info.children,this.onAddChild,this);
this.onSelectChild(info.selected);
},destroy:function(){
for(var pane in this.pane2button){
this.onRemoveChild(pane);
}
dojo.forEach(this._subscriptions,dojo.unsubscribe);
this.inherited(arguments);
},onAddChild:function(page,_31b){
var _31c=dojo.doc.createElement("span");
this.domNode.appendChild(_31c);
var cls=dojo.getObject(this.buttonWidget);
var _31e=new cls({label:page.title,closeButton:page.closable},_31c);
this.addChild(_31e,_31b);
this.pane2button[page]=_31e;
page.controlButton=_31e;
var _31f=[];
_31f.push(dojo.connect(_31e,"onClick",dojo.hitch(this,"onButtonClick",page)));
if(page.closable){
_31f.push(dojo.connect(_31e,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));
var _320=dojo.i18n.getLocalization("dijit","common");
var _321=new dijit.Menu({targetNodeIds:[_31e.id],id:_31e.id+"_Menu"});
var _322=new dijit.MenuItem({label:_320.itemClose});
_31f.push(dojo.connect(_322,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));
_321.addChild(_322);
this.pane2menu[page]=_321;
}
this.pane2handles[page]=_31f;
if(!this._currentChild){
_31e.focusNode.setAttribute("tabIndex","0");
this._currentChild=page;
}
if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){
this._rectifyRtlTabList();
}
},onRemoveChild:function(page){
if(this._currentChild===page){
this._currentChild=null;
}
dojo.forEach(this.pane2handles[page],dojo.disconnect);
delete this.pane2handles[page];
var menu=this.pane2menu[page];
if(menu){
menu.destroyRecursive();
delete this.pane2menu[page];
}
var _325=this.pane2button[page];
if(_325){
_325.destroy();
delete this.pane2button[page];
}
},onSelectChild:function(page){
if(!page){
return;
}
if(this._currentChild){
var _327=this.pane2button[this._currentChild];
_327.attr("checked",false);
_327.focusNode.setAttribute("tabIndex","-1");
}
var _328=this.pane2button[page];
_328.attr("checked",true);
this._currentChild=page;
_328.focusNode.setAttribute("tabIndex","0");
var _329=dijit.byId(this.containerId);
dijit.setWaiState(_329.containerNode,"labelledby",_328.id);
},onButtonClick:function(page){
var _32b=dijit.byId(this.containerId);
_32b.selectChild(page);
},onCloseButtonClick:function(page){
var _32d=dijit.byId(this.containerId);
_32d.closeChild(page);
var b=this.pane2button[this._currentChild];
if(b){
dijit.focus(b.focusNode||b.domNode);
}
},adjacent:function(_32f){
if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){
_32f=!_32f;
}
var _330=this.getChildren();
var _331=dojo.indexOf(_330,this.pane2button[this._currentChild]);
var _332=_32f?1:_330.length-1;
return _330[(_331+_332)%_330.length];
},onkeypress:function(e){
if(this.disabled||e.altKey){
return;
}
var _334=null;
if(e.ctrlKey||!e._djpage){
var k=dojo.keys;
switch(e.charOrCode){
case k.LEFT_ARROW:
case k.UP_ARROW:
if(!e._djpage){
_334=false;
}
break;
case k.PAGE_UP:
if(e.ctrlKey){
_334=false;
}
break;
case k.RIGHT_ARROW:
case k.DOWN_ARROW:
if(!e._djpage){
_334=true;
}
break;
case k.PAGE_DOWN:
if(e.ctrlKey){
_334=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(_334!==null){
this.adjacent(_334).onClick();
dojo.stopEvent(e);
}
}
},onContainerKeyPress:function(info){
info.e._djpage=info.page;
this.onkeypress(info.e);
}});
dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){
dijit.setWaiRole((this.focusNode||this.domNode),"tab");
this.inherited(arguments);
},onClick:function(evt){
dijit.focus(this.focusNode);
},onClickCloseButton:function(evt){
evt.stopPropagation();
}});
dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){
return true;
}});
}
if(!dojo._hasResource["dijit.layout.TabContainer"]){
dojo._hasResource["dijit.layout.TabContainer"]=true;
dojo.provide("dijit.layout.TabContainer");
dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,templateString:null,templateString:"<div class=\"dijitTabContainer\">\n\t<div 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",_controllerWidget:"dijit.layout.TabController",postMixInProperties:function(){
this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
var _33a=dojo.getObject(this._controllerWidget);
this.tablist=new _33a({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout")},this.tablistNode);
if(this.tabStrip){
dojo.addClass(this.tablist.domNode,this.baseClass+"Strip");
}
},_setupChild:function(tab){
dojo.addClass(tab.domNode,"dijitTabPane");
this.inherited(arguments);
return tab;
},startup:function(){
if(this._started){
return;
}
this.tablist.startup();
this.inherited(arguments);
},layout:function(){
if(!this.doLayout){
return;
}
var _33c=this.tabPosition.replace(/-h/,"");
var _33d=[{domNode:this.tablist.domNode,layoutAlign:_33c},{domNode:this.tablistSpacer,layoutAlign:_33c},{domNode:this.containerNode,layoutAlign:"client"}];
dijit.layout.layoutChildren(this.domNode,this._contentBox,_33d);
this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_33d[2]);
if(this.selectedChildWidget){
this._showChild(this.selectedChildWidget);
if(this.doLayout&&this.selectedChildWidget.resize){
this.selectedChildWidget.resize(this._containerContentBox);
}
}
},destroy:function(){
if(this.tablist){
this.tablist.destroy();
}
this.inherited(arguments);
}});
dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){
if(0>=this.tabPosition.indexOf("-h")){
return;
}
if(!this.pane2button){
return;
}
var _33e=0;
for(var pane in this.pane2button){
var ow=this.pane2button[pane].innerDiv.scrollWidth;
_33e=Math.max(_33e,ow);
}
for(pane in this.pane2button){
this.pane2button[pane].innerDiv.style.width=_33e+"px";
}
}});
dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span><img class =\"dijitTabButtonSpacer\" src=\"${_blankGif}\" />\n\t        <div class=\"dijitInline closeNode\" dojoAttachPoint='closeNode' dojoAttachEvent='onclick:onClickCloseButton'>\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeButtonNode' class='closeImage' dojoAttachEvent='onmouseenter:_onMouse, onmouseleave:_onMouse' stateModifier='CloseButton' waiRole=\"presentation\"/>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </div>\n        </div>\n    </div>\n</div>\n",_scroll:false,postCreate:function(){
if(this.closeButton){
dojo.addClass(this.innerDiv,"dijitClosable");
var _341=dojo.i18n.getLocalization("dijit","common");
if(this.closeNode){
dojo.attr(this.closeNode,"title",_341.itemClose);
dojo.attr(this.closeButtonNode,"title",_341.itemClose);
}
}else{
this.closeNode.style.display="none";
}
this.inherited(arguments);
dojo.setSelectable(this.containerNode,false);
}});
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _342=0;
dojo.html._secureForInnerHtml=function(cont){
return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
};
dojo.html._emptyNode=function(node){
while(node.firstChild){
dojo._destroyElement(node.firstChild);
}
};
dojo.html._setNodeContent=function(node,cont,_347){
if(_347){
dojo.html._emptyNode(node);
}
if(typeof cont=="string"){
var pre="",post="",walk=0,name=node.nodeName.toLowerCase();
switch(name){
case "tr":
pre="<tr>";
post="</tr>";
walk+=1;
case "tbody":
case "thead":
pre="<tbody>"+pre;
post+="</tbody>";
walk+=1;
case "table":
pre="<table>"+pre;
post+="</table>";
walk+=1;
break;
}
if(walk){
var n=node.ownerDocument.createElement("div");
n.innerHTML=pre+cont+post;
do{
n=n.firstChild;
}while(--walk);
dojo.forEach(n.childNodes,function(n){
node.appendChild(n.cloneNode(true));
});
}else{
node.innerHTML=cont;
}
}else{
if(cont.nodeType){
node.appendChild(cont);
}else{
dojo.forEach(cont,function(n){
node.appendChild(n.cloneNode(true));
});
}
}
return node;
};
dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_34f,node){
dojo.mixin(this,_34f||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_342++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_352){
if(undefined!==cont){
this.content=cont;
}
if(_352){
this._mixin(_352);
}
this.onBegin();
this.setContent();
this.onEnd();
return this.node;
},setContent:function(){
var node=this.node;
if(!node){
console.error("setContent given no node");
}
try{
node=dojo.html._setNodeContent(node,this.content);
}
catch(e){
var _354=this.onContentError(e);
try{
node.innerHTML=_354;
}
catch(e){
console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);
}
}
this.node=node;
},empty:function(){
if(this.parseResults&&this.parseResults.length){
dojo.forEach(this.parseResults,function(w){
if(w.destroy){
w.destroy();
}
});
delete this.parseResults;
}
dojo.html._emptyNode(this.node);
},onBegin:function(){
var cont=this.content;
if(dojo.isString(cont)){
if(this.cleanContent){
cont=dojo.html._secureForInnerHtml(cont);
}
if(this.extractContent){
var _357=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_357){
cont=_357[1];
}
}
}
this.empty();
this.content=cont;
return this.node;
},onEnd:function(){
if(this.parseContent){
this._parse();
}
return this.node;
},tearDown:function(){
delete this.parseResults;
delete this.node;
delete this.content;
},onContentError:function(err){
return "Error occured setting content: "+err;
},_mixin:function(_359){
var _35a={},key;
for(key in _359){
if(key in _35a){
continue;
}
this[key]=_359[key];
}
},_parse:function(){
var _35c=this.node;
try{
this.parseResults=dojo.parser.parse(_35c,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_35f){
var _360=this["on"+type+"Error"].call(this,err);
if(_35f){
console.error(_35f,err);
}else{
if(_360){
dojo.html._setNodeContent(this.node,_360,true);
}
}
}});
dojo.html.set=function(node,cont,_363){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_363){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_363,{content:cont,node:node}));
return op.set();
}
};
})();
}
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,_isRealContent:true,postMixInProperties:function(){
this.inherited(arguments);
var _365=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_365);
this.errorMessage=dojo.string.substitute(this.errorMessage,_365);
},buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},postCreate:function(){
this.domNode.title="";
if(!dijit.hasWaiRole(this.domNode)){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
if(this.doLayout!="false"&&this.doLayout!==false){
this._checkIfSingleChild();
if(this._singleChild){
this._singleChild.startup();
}
}
this._loadCheck();
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _366=dojo.query(">",this.containerNode),_367=_366.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_369=dojo.filter(_367.map(dijit.byNode),function(_36a){
return _36a&&_36a.domNode&&_36a.resize;
});
if(_366.length==_367.length&&_369.length==1){
this.isContainer=true;
this._singleChild=_369[0];
}else{
delete this.isContainer;
delete this._singleChild;
}
},refresh:function(){
return this._prepareLoad(true);
},setHref:function(href){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");
return this.attr("href",href);
},_setHrefAttr:function(href){
this.href=href;
if(this._created){
return this._prepareLoad();
}
},setContent:function(data){
dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");
this.attr("content",data);
},_setContentAttr:function(data){
this.href="";
this.cancel();
this._setContent(data||"");
this._isDownloaded=false;
},_getContentAttr:function(){
return this.containerNode.innerHTML;
},cancel:function(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
},destroyRecursive:function(_36f){
if(this._beingDestroyed){
return;
}
this._beingDestroyed=true;
this.inherited(arguments);
},resize:function(size){
dojo.marginBox(this.domNode,size);
var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});
var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize({w:cb.w,h:cb.h});
}
},_prepareLoad:function(_374){
this.cancel();
this.isLoaded=false;
this._loadCheck(_374);
},_isShown:function(){
if("open" in this){
return this.open;
}else{
var node=this.domNode;
return (node.style.display!="none")&&(node.style.visibility!="hidden");
}
},_loadCheck:function(_376){
var _377=this._isShown();
if(this.href&&(_376||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_377&&!this._xhrDfd)||(!this.isLoaded&&_377&&!this._xhrDfd))){
this._downloadExternalContent();
}
},_downloadExternalContent:function(){
this._setContent(this.onDownloadStart(),true);
var self=this;
var _379={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_379,this.ioArgs);
}
var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_379);
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.cancelled){
self._onError("Download",err);
}
delete self._xhrDfd;
return err;
});
},_onLoadHandler:function(data){
this.isLoaded=true;
try{
this.onLoad(data);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onLoad code");
}
},_onUnloadHandler:function(){
this.isLoaded=false;
try{
this.onUnload();
}
catch(e){
console.error("Error "+this.widgetId+" running custom onUnload code");
}
},destroyDescendants:function(){
if(this._isRealContent){
this._onUnloadHandler();
}
var _37e=this._contentSetter;
if(_37e){
_37e.empty();
}else{
this.inherited(arguments);
dojo.html._emptyNode(this.containerNode);
}
},_setContent:function(cont,_380){
this.destroyDescendants();
this._isRealContent=!_380;
var _381=this._contentSetter;
if(!(_381&&_381 instanceof dojo.html._ContentSetter)){
_381=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _383=this.onContentError(e);
try{
this.containerNode.innerHTML=_383;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _384=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_381,_384);
_381.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_380){
if(this.doLayout!="false"&&this.doLayout!==false){
this._checkIfSingleChild();
if(this._singleChild&&this._singleChild.resize){
this._singleChild.startup();
var cb=this._contentBox||dojo.contentBox(this.containerNode);
this._singleChild.resize({w:cb.w,h:cb.h});
}
}
this._onLoadHandler(cont);
}
},_onError:function(type,err,_388){
var _389=this["on"+type+"Error"].call(this,err);
if(_388){
console.error(_388,err);
}else{
if(_389){
this._setContent(_389,true);
}
}
},_createSubWidgets:function(){
try{
dojo.parser.parse(this.containerNode,true);
}
catch(e){
this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));
}
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_38b){
},onDownloadError:function(_38c){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
dojo.provide("dojo.fx.Toggler");
(function(){
var _38d={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _390=function(_391){
this._index=-1;
this._animations=_391||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
dojo.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
dojo.extend(_390,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
dojo.disconnect(this._onAnimateCtx);
dojo.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=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_393,_394){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_394&&this._current.status()=="playing"){
return this;
}
var _395=dojo.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_396=dojo.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_398=dojo.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
dojo.disconnect(_395);
dojo.disconnect(_396);
dojo.disconnect(_398);
});
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=dojo.connect(this._current,"onPause",this,function(arg){
this._fire("onPause",arguments);
dojo.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_39c,_39d){
this.pause();
var _39e=this.duration*_39c;
this._current=null;
dojo.some(this._animations,function(a){
if(a.duration<=_39e){
this._current=a;
return true;
}
_39e-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_39e/this._current.duration,_39d);
}
return this;
},stop:function(_3a0){
if(this._current){
if(_3a0){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=dojo.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
dojo.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
}});
dojo.extend(_390,_38d);
dojo.fx.chain=function(_3a3){
return new _390(_3a3);
};
var _3a4=function(_3a5){
this._animations=_3a5||[];
this._connects=[];
this._finished=0;
this.duration=0;
dojo.forEach(_3a5,function(a){
var _3a7=a.duration;
if(a.delay){
_3a7+=a.delay;
}
if(this.duration<_3a7){
this.duration=_3a7;
}
this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});
dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));
},this);
};
dojo.extend(_3a4,{_doAction:function(_3a9,args){
dojo.forEach(this._animations,function(a){
a[_3a9].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_3ac,args){
var t=this._pseudoAnimation;
t[_3ac].apply(t,args);
},play:function(_3af,_3b0){
this._finished=0;
this._doAction("play",arguments);
this._call("play",arguments);
return this;
},pause:function(){
this._doAction("pause",arguments);
this._call("pause",arguments);
return this;
},gotoPercent:function(_3b1,_3b2){
var ms=this.duration*_3b1;
dojo.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_3b2);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_3b5){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
dojo.forEach(this._connects,dojo.disconnect);
}});
dojo.extend(_3a4,_38d);
dojo.fx.combine=function(_3b6){
return new _3a4(_3b6);
};
})();
dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){
var _t=this;
dojo.mixin(_t,args);
_t.node=args.node;
_t._showArgs=dojo.mixin({},args);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},args);
_t._hideArgs.node=_t.node;
_t._hideArgs.duration=_t.hideDuration;
_t.hideAnim=_t.hideFunc(_t._hideArgs);
dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));
dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));
},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_3b9){
return this.showAnim.play(_3b9||0);
},hide:function(_3ba){
return this.hideAnim.play(_3ba||0);
}});
dojo.fx.wipeIn=function(args){
args.node=dojo.byId(args.node);
var node=args.node,s=node.style,o;
var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){
o=s.overflow;
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _3c0=dojo.style(node,"height");
return Math.max(_3c0,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
dojo.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=dojo.byId(args.node);
var s=node.style;
var o;
var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));
dojo.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
dojo.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=(args.node=dojo.byId(args.node));
var top=null;
var left=null;
var init=(function(n){
return function(){
var cs=dojo.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=dojo.coords(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=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));
dojo.connect(anim,"beforeBegin",anim,init);
return anim;
};
}
if(!dojo._hasResource["dojox.image.LightboxNano"]){
dojo._hasResource["dojox.image.LightboxNano"]=true;
dojo.provide("dojox.image.LightboxNano");
(function(d){
var _3d1=function(){
var _3d2=d.global,_3d3=d.doc,w=0,h=0,de=_3d3.documentElement;
dew=de.clientWidth,deh=de.clientHeight,scroll=d._docScroll();
if(d.isMozilla){
var minw,minh,maxw,maxh,dbw=_3d3.body.clientWidth,dbh=_3d3.body.clientHeight;
if(dbw>dew){
minw=dew;
maxw=dbw;
}else{
maxw=dew;
minw=dbw;
}
if(dbh>deh){
minh=deh;
maxh=dbh;
}else{
maxh=deh;
minh=dbh;
}
w=(maxw>_3d2.innerWidth)?minw:maxw;
h=(maxh>_3d2.innerHeight)?minh:maxh;
}else{
if(_3d2.innerWidth){
w=_3d2.innerWidth;
h=_3d2.innerHeight;
}else{
if(d.isIE&&de&&deh){
w=dew;
h=deh;
}else{
if(d.body().clientWidth){
w=d.body().clientWidth;
h=d.body().clientHeight;
}
}
}
}
return {w:w,h:h,l:scroll.x,t:scroll.y};
};
d.declare("dojox.image.LightboxNano",null,{href:"",duration:500,preloadDelay:5000,_node:null,_start:null,_end:null,_img:null,_bg:null,_onClickEvt:null,_connects:null,_loading:false,_loadingNode:null,constructor:function(p,n){
var _3df=this;
d.mixin(_3df,p);
n=dojo.byId(n);
if(!/a/i.test(n.tagName)){
var a=d.doc.createElement("a");
a.href=_3df.href;
a.className=n.className;
n.className="";
d.place(a,n,"after");
a.appendChild(n);
n=a;
}
d.style(n,{display:"block",position:"relative"});
d.place(_3df._createDiv("dojoxEnlarge"),n);
_3df._node=n;
d.setSelectable(n,false);
_3df._onClickEvt=d.connect(n,"onclick",_3df,"_load");
setTimeout(function(){
(new Image()).src=_3df.href;
_3df._hideLoading();
},_3df.preloadDelay);
},destroy:function(){
var a=this._connects||[];
a.push(this._onClickEvt);
d.forEach(a,function(e){
d.disconnect(e);
});
d._destroyElement(this._node);
},_createDiv:function(_3e3,_3e4){
var e=d.doc.createElement("div");
e.className=_3e3;
d.style(e,{position:"absolute",display:_3e4?"":"none"});
return e;
},_load:function(e){
var _3e7=this;
d.stopEvent(e);
if(!_3e7._loading){
_3e7._loading=true;
_3e7._reset();
var n=d.query("img",_3e7._node)[0],a=d._abs(n,true),c=d.contentBox(n),b=d._getBorderExtents(n),i=d.doc.createElement("img"),ln=_3e7._loadingNode;
if(ln==null){
_3e7._loadingNode=ln=_3e7._createDiv("dojoxLoading",true);
d.place(ln,_3e7._node);
var l=d.marginBox(ln);
d.style(ln,{left:parseInt((c.w-l.w)/2)+"px",top:parseInt((c.h-l.h)/2)+"px"});
}
c.x=a.x-10+b.l;
c.y=a.y-10+b.t;
_3e7._start=c;
_3e7._img=i;
_3e7._connects=[d.connect(i,"onload",_3e7,"_show")];
d.style(i,{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,zIndex:9999999});
d.body().appendChild(i);
i.src=_3e7.href;
}
},_hideLoading:function(){
if(this._loadingNode){
d.style(this._loadingNode,"display","none");
}
this._loadingNode=false;
},_show:function(){
var _3ef=this,vp=_3d1(),w=_3ef._img.width,h=_3ef._img.height,vpw=parseInt((vp.w-20)*0.9),vph=parseInt((vp.h-20)*0.9),dd=d.doc,bg=dd.createElement("div"),ln=_3ef._loadingNode;
if(_3ef._loadingNode){
_3ef._hideLoading();
}
d.style(_3ef._img,{border:"10px solid #fff",visibility:"visible"});
d.style(_3ef._node,"visibility","hidden");
_3ef._loading=false;
_3ef._connects=_3ef._connects.concat([d.connect(dd,"onmousedown",_3ef,"_hide"),d.connect(dd,"onkeypress",_3ef,"_key"),d.connect(window,"onresize",_3ef,"_sizeBg")]);
if(w>vpw){
h=h*vpw/w;
w=vpw;
}
if(h>vph){
w=w*vph/h;
h=vph;
}
_3ef._end={x:(vp.w-20-w)/2+vp.l,y:(vp.h-20-h)/2+vp.t,w:w,h:h};
d.style(bg,{backgroundColor:"#000",opacity:0,position:"absolute",zIndex:9999998});
d.body().appendChild(bg);
_3ef._bg=bg;
_3ef._sizeBg();
d.fx.combine([_3ef._anim(_3ef._img,_3ef._coords(_3ef._start,_3ef._end)),_3ef._anim(bg,{opacity:0.5})]).play();
},_sizeBg:function(){
var dd=d.doc.documentElement;
d.style(this._bg,{top:0,left:0,width:dd.scrollWidth+"px",height:dd.scrollHeight+"px"});
},_key:function(e){
d.stopEvent(e);
this._hide();
},_coords:function(s,e){
return {left:{start:s.x,end:e.x},top:{start:s.y,end:e.y},width:{start:s.w,end:e.w},height:{start:s.h,end:e.h}};
},_hide:function(){
var _3fc=this;
d.forEach(_3fc._connects,function(e){
d.disconnect(e);
});
_3fc._connects=[];
d.fx.combine([_3fc._anim(_3fc._img,_3fc._coords(_3fc._end,_3fc._start),"_reset"),_3fc._anim(_3fc._bg,{opacity:0})]).play();
},_reset:function(){
d.style(this._node,"visibility","visible");
d.forEach([this._img,this._bg],function(n){
d._destroyElement(n);
n=null;
});
this._node.focus();
},_anim:function(node,args,_401){
return d.animateProperty({node:node,duration:this.duration,properties:args,onEnd:_401?d.hitch(this,_401):null});
}});
})(dojo);
}
dojo.i18n._preloadLocalizations("dojo.nls.mydojo",["ROOT","xx","ar","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nl","nl-nl","no","pl","pt","pt-br","pt-pt","ru","sv","tr","zh","zh-tw","zh-cn"]);

