/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;
dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";
dojo.dnd.getCopyKeyState=function(e){
return e[dojo.dnd._copyKey];
};
dojo.dnd._uniqueId=0;
dojo.dnd.getUniqueId=function(){
var id;
do{
id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);
}while(dojo.byId(id));
return id;
};
dojo.dnd._empty={};
dojo.dnd.isFormElement=function(e){
var t=e.target;
if(t.nodeType==3){
t=t.parentNode;
}
return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;
};
dojo.dnd._lmb=dojo.isIE?1:0;
dojo.dnd._isLmbPressed=dojo.isIE?function(e){
return e.button&1;
}:function(e){
return e.button===0;
};
}
if(!dojo._hasResource["dojo.dnd.autoscroll"]){
dojo._hasResource["dojo.dnd.autoscroll"]=true;
dojo.provide("dojo.dnd.autoscroll");
dojo.dnd.getViewport=function(){
var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();
if(dojo.isMozilla){
return {w:dd.clientWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&w.innerWidth){
return {w:w.innerWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&dd&&dd.clientWidth){
return {w:dd.clientWidth,h:dd.clientHeight};
}else{
if(b.clientWidth){
return {w:b.clientWidth,h:b.clientHeight};
}
}
}
}
return null;
};
dojo.dnd.V_TRIGGER_AUTOSCROLL=32;
dojo.dnd.H_TRIGGER_AUTOSCROLL=32;
dojo.dnd.V_AUTOSCROLL_VALUE=16;
dojo.dnd.H_AUTOSCROLL_VALUE=16;
dojo.dnd.autoScroll=function(e){
var v=dojo.dnd.getViewport(),dx=0,dy=0;
if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
}else{
if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=dojo.dnd.H_AUTOSCROLL_VALUE;
}
}
if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
}else{
if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=dojo.dnd.V_AUTOSCROLL_VALUE;
}
}
window.scrollBy(dx,dy);
};
dojo.dnd._validNodes={"div":1,"p":1,"td":1};
dojo.dnd._validOverflow={"auto":1,"scroll":1};
dojo.dnd.autoScrollNodes=function(e){
for(var n=e.target;n;){
if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){
var s=dojo.getComputedStyle(n);
if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){
var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);
var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;
if(dojo.isWebKit||dojo.isOpera){
rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;
}
if(rx>0&&rx<b.w){
if(rx<w){
dx=-w;
}else{
if(rx>b.w-w){
dx=w;
}
}
}
if(ry>0&&ry<b.h){
if(ry<h){
dy=-h;
}else{
if(ry>b.h-h){
dy=h;
}
}
}
var _1a=n.scrollLeft,_1b=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_1a!=n.scrollLeft||_1b!=n.scrollTop){
return;
}
}
}
try{
n=n.parentNode;
}
catch(x){
n=null;
}
}
dojo.dnd.autoScroll(e);
};
}
if(!dojo._hasResource["dojo.dnd.Mover"]){
dojo._hasResource["dojo.dnd.Mover"]=true;
dojo.provide("dojo.dnd.Mover");
dojo.declare("dojo.dnd.Mover",null,{constructor:function(_1c,e,_1e){
this.node=dojo.byId(_1c);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=_1e,d=_1c.ownerDocument,_21=dojo.connect(d,"onmousemove",this,"onFirstMove");
this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_21];
if(h&&h.onMoveStart){
h.onMoveStart(this);
}
},onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox;
this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});
dojo.stopEvent(e);
},onMouseUp:function(e){
if(dojo.isWebKit&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){
this.destroy();
}
dojo.stopEvent(e);
},onFirstMove:function(){
var s=this.node.style,l,t,h=this.host;
switch(s.position){
case "relative":
case "absolute":
l=Math.round(parseFloat(s.left));
t=Math.round(parseFloat(s.top));
break;
default:
s.position="absolute";
var m=dojo.marginBox(this.node);
var b=dojo.doc.body;
var bs=dojo.getComputedStyle(b);
var bm=dojo._getMarginBox(b,bs);
var bc=dojo._getContentBox(b,bs);
l=m.l-(bc.l-bm.l);
t=m.t-(bc.t-bm.t);
break;
}
this.marginBox.l=l-this.marginBox.l;
this.marginBox.t=t-this.marginBox.t;
if(h&&h.onFirstMove){
h.onFirstMove(this);
}
dojo.disconnect(this.events.pop());
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
var h=this.host;
if(h&&h.onMoveStop){
h.onMoveStop(this);
}
this.events=this.node=this.host=null;
}});
}
if(!dojo._hasResource["dojo.dnd.Moveable"]){
dojo._hasResource["dojo.dnd.Moveable"]=true;
dojo.provide("dojo.dnd.Moveable");
dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_2f,_30){
this.node=dojo.byId(_2f);
if(!_30){
_30={};
}
this.handle=_30.handle?dojo.byId(_30.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_30.delay>0?_30.delay:0;
this.skip=_30.skip;
this.mover=_30.mover?_30.mover:dojo.dnd.Mover;
this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];
},markupFactory:function(_31,_32){
return new dojo.dnd.Moveable(_32,_31);
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
this.events=this.node=this.handle=null;
},onMouseDown:function(e){
if(this.skip&&dojo.dnd.isFormElement(e)){
return;
}
if(this.delay){
this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));
this._lastX=e.pageX;
this._lastY=e.pageY;
}else{
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseMove:function(e){
if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){
this.onMouseUp(e);
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseUp:function(e){
for(var i=0;i<2;++i){
dojo.disconnect(this.events.pop());
}
dojo.stopEvent(e);
},onSelectStart:function(e){
if(!this.skip||!dojo.dnd.isFormElement(e)){
dojo.stopEvent(e);
}
},onDragDetected:function(e){
new this.mover(this.node,e,this);
},onMoveStart:function(_39){
dojo.publish("/dnd/move/start",[_39]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_3a){
dojo.publish("/dnd/move/stop",[_3a]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_3b){
},onMove:function(_3c,_3d){
this.onMoving(_3c,_3d);
var s=_3c.node.style;
s.left=_3d.l+"px";
s.top=_3d.t+"px";
this.onMoved(_3c,_3d);
},onMoving:function(_3f,_40){
},onMoved:function(_41,_42){
}});
}
if(!dojo._hasResource["dojo.dnd.move"]){
dojo._hasResource["dojo.dnd.move"]=true;
dojo.provide("dojo.dnd.move");
dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){
},within:false,markupFactory:function(_43,_44){
return new dojo.dnd.move.constrainedMoveable(_44,_43);
},constructor:function(_45,_46){
if(!_46){
_46={};
}
this.constraints=_46.constraints;
this.within=_46.within;
},onFirstMove:function(_47){
var c=this.constraintBox=this.constraints.call(this,_47);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_47.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_4a,_4b){
var c=this.constraintBox,s=_4a.node.style;
s.left=(_4b.l<c.l?c.l:c.r<_4b.l?c.r:_4b.l)+"px";
s.top=(_4b.t<c.t?c.t:c.b<_4b.t?c.b:_4b.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_4e,_4f){
return new dojo.dnd.move.boxConstrainedMoveable(_4f,_4e);
},constructor:function(_50,_51){
var box=_51&&_51.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_53,_54){
return new dojo.dnd.move.parentConstrainedMoveable(_54,_53);
},constructor:function(_55,_56){
var _57=_56&&_56.area;
this.constraints=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_57=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_57=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_57=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
}});
dojo.dnd.move.constrainedMover=function(fun,_5d){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _5e=function(_5f,e,_61){
dojo.dnd.Mover.call(this,_5f,e,_61);
};
dojo.extend(_5e,dojo.dnd.Mover.prototype);
dojo.extend(_5e,{onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;
l=l<c.l?c.l:c.r<l?c.r:l;
t=t<c.t?c.t:c.b<t?c.b:t;
this.host.onMove(this,{l:l,t:t});
},onFirstMove:function(){
dojo.dnd.Mover.prototype.onFirstMove.call(this);
var c=this.constraintBox=fun.call(this);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(_5d){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _5e;
};
dojo.dnd.move.boxConstrainedMover=function(box,_6a){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_6a);
};
dojo.dnd.move.parentConstrainedMover=function(_6b,_6c){
dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");
var fun=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_6b=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_6b=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_6b=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
return dojo.dnd.move.constrainedMover(fun,_6c);
};
dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}
if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
(function(){
var _72=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_73,_74){
if(!_74){
_74={};
}
if(_74.timeout&&typeof _74.timeout=="number"&&_74.timeout>=0){
this.timeout=_74.timeout;
}
},markupFactory:function(_75,_76){
return new dojo.dnd.TimedMoveable(_76,_75);
},onMoveStop:function(_77){
if(_77._timer){
clearTimeout(_77._timer);
_72.call(this,_77,_77._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_78,_79){
_78._leftTop=_79;
if(!_78._timer){
var _t=this;
_78._timer=setTimeout(function(){
_78._timer=null;
_72.call(_t,_78,_78._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["dojo.fx.Toggler"]){
dojo._hasResource["dojo.fx.Toggler"]=true;
dojo.provide("dojo.fx.Toggler");
dojo.declare("dojo.fx.Toggler",null,{constructor:function(_7b){
var _t=this;
dojo.mixin(_t,_7b);
_t.node=_7b.node;
_t._showArgs=dojo.mixin({},_7b);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},_7b);
_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(_7d){
return this.showAnim.play(_7d||0);
},hide:function(_7e){
return this.hideAnim.play(_7e||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_80={_fire:function(evt,_82){
if(this[evt]){
this[evt].apply(this,_82||[]);
}
return this;
}};
var _83=function(_84){
this._index=-1;
this._animations=_84||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
d.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
d.extend(_83,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
d.disconnect(this._onAnimateCtx);
d.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;
if(this._index+1==this._animations.length){
this._fire("onEnd");
}else{
this._current=this._animations[++this._index];
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_86,_87){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_87&&this._current.status()=="playing"){
return this;
}
var _88=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_89=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_8b=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_88);
d.disconnect(_89);
d.disconnect(_8b);
});
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=d.connect(this._current,"onPause",this,function(arg){
this._fire("onPause",arguments);
d.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_8f,_90){
this.pause();
var _91=this.duration*_8f;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_91){
this._current=a;
return true;
}
_91-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_91/this._current.duration,_90);
}
return this;
},stop:function(_93){
if(this._current){
if(_93){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=d.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
d.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
}});
d.extend(_83,_80);
dojo.fx.chain=function(_96){
return new _83(_96);
};
var _97=function(_98){
this._animations=_98||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_98,function(a){
var _9a=a.duration;
if(a.delay){
_9a+=a.delay;
}
if(this.duration<_9a){
this.duration=_9a;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});
var _9b=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
_9b._connects.push(d.connect(_9b._pseudoAnimation,evt,function(){
_9b._fire(evt,arguments);
}));
});
};
d.extend(_97,{_doAction:function(_9d,_9e){
d.forEach(this._animations,function(a){
a[_9d].apply(a,_9e);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_a0,_a1){
var t=this._pseudoAnimation;
t[_a0].apply(t,_a1);
},play:function(_a3,_a4){
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(_a5,_a6){
var ms=this.duration*_a5;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_a6);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_a9){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
d.forEach(this._connects,dojo.disconnect);
}});
d.extend(_97,_80);
dojo.fx.combine=function(_aa){
return new _97(_aa);
};
dojo.fx.wipeIn=function(_ab){
_ab.node=d.byId(_ab.node);
var _ac=_ab.node,s=_ac.style,o;
var _af=d.animateProperty(d.mixin({properties:{height:{start:function(){
o=s.overflow;
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _b0=d.style(_ac,"height");
return Math.max(_b0,1);
}
},end:function(){
return _ac.scrollHeight;
}}}},_ab));
d.connect(_af,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return _af;
};
dojo.fx.wipeOut=function(_b1){
var _b2=_b1.node=d.byId(_b1.node),s=_b2.style,o;
var _b5=d.animateProperty(d.mixin({properties:{height:{end:1}}},_b1));
d.connect(_b5,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(_b5,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return _b5;
};
dojo.fx.slideTo=function(_b6){
var _b7=_b6.node=d.byId(_b6.node),top=null,_b9=null;
var _ba=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
_b9=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.coords(n,true);
top=ret.y;
_b9=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=_b9+"px";
}
};
})(_b7);
_ba();
var _bf=d.animateProperty(d.mixin({properties:{top:_b6.top||0,left:_b6.left||0}},_b6));
d.connect(_bf,"beforeBegin",_bf,_ba);
return _bf;
};
})();
}
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 _c0=dojo.doc;
if(_c0.selection){
var s=_c0.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _c2=dojo.global;
var _c3=_c2.getSelection();
if(dojo.isString(_c3)){
return !_c3;
}else{
return !_c3||_c3.isCollapsed||!_c3.toString();
}
}
},getBookmark:function(){
var _c4,_c5=dojo.doc.selection;
if(_c5){
var _c6=_c5.createRange();
if(_c5.type.toUpperCase()=="CONTROL"){
if(_c6.length){
_c4=[];
var i=0,len=_c6.length;
while(i<len){
_c4.push(_c6.item(i++));
}
}else{
_c4=null;
}
}else{
_c4=_c6.getBookmark();
}
}else{
if(window.getSelection){
_c5=dojo.global.getSelection();
if(_c5){
_c6=_c5.getRangeAt(0);
_c4=_c6.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _c4;
},moveToBookmark:function(_c9){
var _ca=dojo.doc;
if(_ca.selection){
var _cb;
if(dojo.isArray(_c9)){
_cb=_ca.body.createControlRange();
dojo.forEach(_c9,function(n){
_cb.addElement(n);
});
}else{
_cb=_ca.selection.createRange();
_cb.moveToBookmark(_c9);
}
_cb.select();
}else{
var _cd=dojo.global.getSelection&&dojo.global.getSelection();
if(_cd&&_cd.removeAllRanges){
_cd.removeAllRanges();
_cd.addRange(_c9);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(_ce,_cf){
return {node:_ce&&dojo.isDescendant(dijit._curFocus,_ce.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_cf||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_cf||dojo.global,dijit.getBookmark):null,openedForWindow:_cf};
},focus:function(_d0){
if(!_d0){
return;
}
var _d1="node" in _d0?_d0.node:_d0,_d2=_d0.bookmark,_d3=_d0.openedForWindow;
if(_d1){
var _d4=(_d1.tagName.toLowerCase()=="iframe")?_d1.contentWindow:_d1;
if(_d4&&_d4.focus){
try{
_d4.focus();
}
catch(e){
}
}
dijit._onFocusNode(_d1);
}
if(_d2&&dojo.withGlobal(_d3||dojo.global,dijit.isCollapsed)){
if(_d3){
_d3.focus();
}
try{
dojo.withGlobal(_d3||dojo.global,dijit.moveToBookmark,null,[_d2]);
}
catch(e){
}
}
},_activeStack:[],registerIframe:function(_d5){
dijit.registerWin(_d5.contentWindow,_d5);
},registerWin:function(_d6,_d7){
dojo.connect(_d6.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_d7||evt.target||evt.srcElement);
});
var doc=_d6.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(_d7||evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(_d7||evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(_d7||evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(_d7||evt.target);
},true);
}
}
doc=null;
},_onBlurNode:function(_de){
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(_df){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _e0=[];
try{
while(_df){
if(_df.dijitPopupParent){
_df=dijit.byId(_df.dijitPopupParent).domNode;
}else{
if(_df.tagName&&_df.tagName.toLowerCase()=="body"){
if(_df===dojo.body()){
break;
}
_df=dijit.getDocumentWindow(_df.ownerDocument).frameElement;
}else{
var id=_df.getAttribute&&_df.getAttribute("widgetId");
if(id){
_e0.unshift(id);
}
_df=_df.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_e0);
},_onFocusNode:function(_e2){
if(!_e2){
return;
}
if(_e2.nodeType==9){
return;
}
dijit._onTouchNode(_e2);
if(_e2==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=_e2;
dojo.publish("focusNode",[_e2]);
},_setStack:function(_e3){
var _e4=dijit._activeStack;
dijit._activeStack=_e3;
for(var _e5=0;_e5<Math.min(_e4.length,_e3.length);_e5++){
if(_e4[_e5]!=_e3[_e5]){
break;
}
}
for(var i=_e4.length-1;i>=_e5;i--){
var _e7=dijit.byId(_e4[i]);
if(_e7){
_e7._focused=false;
_e7._hasBeenBlurred=true;
if(_e7._onBlur){
_e7._onBlur();
}
if(_e7._setStateClass){
_e7._setStateClass();
}
dojo.publish("widgetBlur",[_e7]);
}
}
for(i=_e5;i<_e3.length;i++){
_e7=dijit.byId(_e3[i]);
if(_e7){
_e7._focused=true;
if(_e7._onFocus){
_e7._onFocus();
}
if(_e7._setStateClass){
_e7._setStateClass();
}
dojo.publish("widgetFocus",[_e7]);
}
}
}});
dojo.addOnLoad(function(){
dijit.registerWin(window);
});
}
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(_e8){
if(this._hash[_e8.id]){
throw new Error("Tried to register widget with id=="+_e8.id+" but that id is already registered");
}
this._hash[_e8.id]=_e8;
},remove:function(id){
delete this._hash[id];
},forEach:function(_ea){
for(var id in this._hash){
_ea(this._hash[id]);
}
},filter:function(_ec){
var res=new dijit.WidgetSet();
this.forEach(function(_ee){
if(_ec(_ee)){
res.add(_ee);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_f1){
return _f1.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_f2){
var id;
do{
id=_f2+"_"+(_f2 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_f2]:dijit._widgetTypeCtr[_f2]=0);
}while(dijit.byId(id));
return id;
};
dijit.findWidgets=function(_f4){
var _f5=[];
function _f6(_f7){
var _f8=dojo.isIE?_f7.children:_f7.childNodes,i=0,_fa;
while(_fa=_f8[i++]){
if(_fa.nodeType!=1){
continue;
}
var _fb=_fa.getAttribute("widgetId");
if(_fb){
var _fc=dijit.byId(_fb);
_f5.push(_fc);
}else{
_f6(_fa);
}
}
};
_f6(_f4);
return _f5;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dojo.forEach(dijit.findWidgets(dojo.body()),function(_fd){
if(_fd.destroyRecursive){
_fd.destroyRecursive();
}else{
if(_fd.destroy){
_fd.destroy();
}
}
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(_ff){
return dijit.registry.byId(_ff.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(node){
while(node){
if(node.getAttribute&&node.getAttribute("widgetId")){
return dijit.registry.byId(node.getAttribute("widgetId"));
}
node=node.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(elem){
var _102=dojo.style(elem);
return (_102.visibility!="hidden")&&(_102.visibility!="collapsed")&&(_102.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function(elem){
if(dojo.hasAttr(elem,"disabled")){
return false;
}
var _104=dojo.hasAttr(elem,"tabindex");
var _105=dojo.attr(elem,"tabindex");
if(_104&&_105>=0){
return true;
}
var name=elem.nodeName.toLowerCase();
if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_104||_105>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(root){
var _108,last,_10a,_10b,_10c,_10d;
var _10e=function(_10f){
dojo.query("> *",_10f).forEach(function(_110){
var _111=dijit._isElementShown(_110);
if(_111&&dijit.isTabNavigable(_110)){
var _112=dojo.attr(_110,"tabindex");
if(!dojo.hasAttr(_110,"tabindex")||_112==0){
if(!_108){
_108=_110;
}
last=_110;
}else{
if(_112>0){
if(!_10a||_112<_10b){
_10b=_112;
_10a=_110;
}
if(!_10c||_112>=_10d){
_10d=_112;
_10c=_110;
}
}
}
}
if(_111&&_110.nodeName.toUpperCase()!="SELECT"){
_10e(_110);
}
});
};
if(dijit._isElementShown(root)){
_10e(root);
}
return {first:_108,last:last,lowest:_10a,highest:_10c};
};
dijit.getFirstInTabbingOrder=function(root){
var _114=dijit._getTabNavigable(dojo.byId(root));
return _114.lowest?_114.lowest:_114.first;
};
dijit.getLastInTabbingOrder=function(root){
var _116=dijit._getTabNavigable(dojo.byId(root));
return _116.last?_116.last:_116.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_117){
this.pairs=[];
this.returnWrappers=_117||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_119,wrap,_11b,_11c){
this.pairs[((_11c)?"unshift":"push")]([name,_119,wrap,_11b]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
}
if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dijit.getViewport=function(){
var _122=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _123=dojo._docScroll();
return {w:_122.clientWidth,h:_122.clientHeight,l:_123.x,t:_123.y};
};
dijit.placeOnScreen=function(node,pos,_126,_127){
var _128=dojo.map(_126,function(_129){
var c={corner:_129,pos:{x:pos.x,y:pos.y}};
if(_127){
c.pos.x+=_129.charAt(1)=="L"?_127.x:-_127.x;
c.pos.y+=_129.charAt(0)=="T"?_127.y:-_127.y;
}
return c;
});
return dijit._place(node,_128);
};
dijit._place=function(node,_12c,_12d){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_12c,function(_130){
var _131=_130.corner;
var pos=_130.pos;
if(_12d){
_12d(node,_130.aroundCorner,_131);
}
var _133=node.style;
var _134=_133.display;
var _135=_133.visibility;
_133.visibility="hidden";
_133.display="";
var mb=dojo.marginBox(node);
_133.display=_134;
_133.visibility=_135;
var _137=(_131.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_138=(_131.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_131.charAt(1)=="L"?Math.min(view.l+view.w,_137+mb.w):pos.x),endY=(_131.charAt(0)=="T"?Math.min(view.t+view.h,_138+mb.h):pos.y),_13b=endX-_137,_13c=endY-_138,_13d=(mb.w-_13b)+(mb.h-_13c);
if(best==null||_13d<best.overflow){
best={corner:_131,aroundCorner:_130.aroundCorner,x:_137,y:_138,w:_13b,h:_13c,overflow:_13d};
}
return !_13d;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_12d){
_12d(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_13f,_140,_141){
_13f=dojo.byId(_13f);
var _142=_13f.style.display;
_13f.style.display="";
var _143=_13f.offsetWidth;
var _144=_13f.offsetHeight;
var _145=dojo.coords(_13f,true);
_13f.style.display=_142;
return dijit._placeOnScreenAroundRect(node,_145.x,_145.y,_143,_144,_140,_141);
};
dijit.placeOnScreenAroundRectangle=function(node,_147,_148,_149){
return dijit._placeOnScreenAroundRect(node,_147.x,_147.y,_147.width,_147.height,_148,_149);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_14d,_14e,_14f,_150){
var _151=[];
for(var _152 in _14f){
_151.push({aroundCorner:_152,corner:_14f[_152],pos:{x:x+(_152.charAt(1)=="L"?0:_14d),y:y+(_152.charAt(0)=="T"?0:_14e)}});
}
return dijit._place(node,_151,_150);
};
dijit.placementRegistry=new dojo.AdapterRegistry();
dijit.placementRegistry.register("node",function(n,x){
return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";
},dijit.placeOnScreenAroundNode);
dijit.placementRegistry.register("rect",function(n,x){
return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;
},dijit.placeOnScreenAroundRectangle);
dijit.placeOnScreenAroundElement=function(node,_158,_159,_15a){
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 _15d=[],_15e=1000,_15f=1;
this.prepare=function(node){
var s=node.style;
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
if(s.display=="none"){
s.display="";
}
dojo.body().appendChild(node);
};
this.open=function(args){
var _163=args.popup,_164=args.orient||{"BL":"TL","TL":"BL"},_165=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_15f++);
var _167=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_15e+_15d.length,visibility:"hidden"}},dojo.body());
dijit.setWaiRole(_167,"presentation");
_167.style.left=_167.style.top="0px";
if(args.parent){
_167.dijitPopupParent=args.parent.id;
}
var s=_163.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_167.appendChild(_163.domNode);
var _169=new dijit.BackgroundIframe(_167);
var best=_165?dijit.placeOnScreenAroundElement(_167,_165,_164,_163.orient?dojo.hitch(_163,"orient"):null):dijit.placeOnScreen(_167,args,_164=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_167.style.visibility="visible";
var _16b=[];
var _16c=function(){
for(var pi=_15d.length-1;pi>0&&_15d[pi].parent===_15d[pi-1].widget;pi--){
}
return _15d[pi];
};
_16b.push(dojo.connect(_167,"onkeypress",this,function(evt){
if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){
dojo.stopEvent(evt);
args.onCancel();
}else{
if(evt.charOrCode===dojo.keys.TAB){
dojo.stopEvent(evt);
var _16f=_16c();
if(_16f&&_16f.onCancel){
_16f.onCancel();
}
}
}
}));
if(_163.onCancel){
_16b.push(dojo.connect(_163,"onCancel",null,args.onCancel));
}
_16b.push(dojo.connect(_163,_163.onExecute?"onExecute":"onChange",null,function(){
var _170=_16c();
if(_170&&_170.onExecute){
_170.onExecute();
}
}));
_15d.push({wrapper:_167,iframe:_169,widget:_163,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_16b});
if(_163.onOpen){
_163.onOpen(best);
}
return best;
};
this.close=function(_171){
while(dojo.some(_15d,function(elem){
return elem.widget==_171;
})){
var top=_15d.pop(),_174=top.wrapper,_175=top.iframe,_176=top.widget,_177=top.onClose;
if(_176.onClose){
_176.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_176||!_176.domNode){
return;
}
this.prepare(_176.domNode);
_175.destroy();
dojo.destroy(_174);
if(_177){
_177();
}
}
};
}();
dijit._frames=new function(){
var _178=[];
this.pop=function(){
var _179;
if(_178.length){
_179=_178.pop();
_179.style.display="";
}else{
if(dojo.isIE){
var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";
var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_179=dojo.doc.createElement(html);
}else{
_179=dojo.create("iframe");
_179.src="javascript:\"\"";
_179.className="dijitBackgroundIframe";
}
_179.tabIndex=-1;
dojo.body().appendChild(_179);
}
return _179;
};
this.push=function(_17c){
_17c.style.display="none";
if(dojo.isIE){
_17c.style.removeExpression("width");
_17c.style.removeExpression("height");
}
_178.push(_17c);
};
}();
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _17e=dijit._frames.pop();
node.appendChild(_17e);
if(dojo.isIE){
_17e.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_17e.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_17e;
}
};
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(node){
try{
node=dojo.byId(node);
var doc=dojo.doc;
var body=dojo.body();
var html=body.parentNode;
if((!(dojo.isFF>=3||dojo.isIE||dojo.isWebKit)||node==body||node==html)&&(typeof node.scrollIntoView=="function")){
node.scrollIntoView(false);
return;
}
var ltr=dojo._isBodyLtr();
var _184=dojo.isIE>=8&&!_185;
var rtl=!ltr&&!_184;
var _187=body;
var _185=doc.compatMode=="BackCompat";
if(_185){
html._offsetWidth=html._clientWidth=body._offsetWidth=body.clientWidth;
html._offsetHeight=html._clientHeight=body._offsetHeight=body.clientHeight;
}else{
if(dojo.isWebKit){
body._offsetWidth=body._clientWidth=html.clientWidth;
body._offsetHeight=body._clientHeight=html.clientHeight;
}else{
_187=html;
}
html._offsetHeight=html.clientHeight;
html._offsetWidth=html.clientWidth;
}
function _188(_189){
var ie=dojo.isIE;
return ((ie<=6||(ie>=7&&_185))?false:(dojo.style(_189,"position").toLowerCase()=="fixed"));
};
function _18b(_18c){
var _18d=_18c.parentNode;
var _18e=_18c.offsetParent;
if(_18e==null||_188(_18c)){
_18e=html;
_18d=(_18c==body)?html:null;
}
_18c._offsetParent=_18e;
_18c._parent=_18d;
var bp=dojo._getBorderExtents(_18c);
_18c._borderStart={H:(_184&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};
_18c._borderSize={H:bp.w,V:bp.h};
_18c._scrolledAmount={H:_18c.scrollLeft,V:_18c.scrollTop};
_18c._offsetSize={H:_18c._offsetWidth||_18c.offsetWidth,V:_18c._offsetHeight||_18c.offsetHeight};
_18c._offsetStart={H:(_184&&!ltr)?_18e.clientWidth-_18c.offsetLeft-_18c._offsetSize.H:_18c.offsetLeft,V:_18c.offsetTop};
_18c._clientSize={H:_18c._clientWidth||_18c.clientWidth,V:_18c._clientHeight||_18c.clientHeight};
if(_18c!=body&&_18c!=html&&_18c!=node){
for(var dir in _18c._offsetSize){
var _191=_18c._offsetSize[dir]-_18c._clientSize[dir]-_18c._borderSize[dir];
var _192=_18c._clientSize[dir]>0&&_191>0;
if(_192){
_18c._offsetSize[dir]-=_191;
if(dojo.isIE&&rtl&&dir=="H"){
_18c._offsetStart[dir]+=_191;
}
}
}
}
};
var _193=node;
while(_193!=null){
if(_188(_193)){
node.scrollIntoView(false);
return;
}
_18b(_193);
_193=_193._parent;
}
if(dojo.isIE&&node._parent){
var _194=node._offsetParent;
node._offsetStart.H+=_194._borderStart.H;
node._offsetStart.V+=_194._borderStart.V;
}
if(dojo.isIE>=7&&_187==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){
var _195=html.scrollWidth-html._offsetSize.H;
if(_195>0){
body._offsetStart.H=-_195;
}
}
if(dojo.isIE<=6&&!_185){
html._offsetSize.H+=html._borderSize.H;
html._offsetSize.V+=html._borderSize.V;
}
if(rtl&&body._offsetStart&&_187==html&&html._scrolledAmount){
var ofs=body._offsetStart.H;
if(ofs<0){
html._scrolledAmount.H+=ofs;
body._offsetStart.H=0;
}
}
_193=node;
while(_193){
var _197=_193._parent;
if(!_197){
break;
}
if(_197.tagName=="TD"){
var _198=_197._parent._parent._parent;
if(_197!=_193._offsetParent&&_197._offsetParent!=_193._offsetParent){
_197=_198;
}
}
var _199=_193._offsetParent==_197;
for(var dir in _193._offsetStart){
var _19b=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(_197!=html)&&(_197!=body)&&(dojo.isIE||dojo.isWebKit)&&_197._clientSize.H>0&&_197.scrollWidth>_197._clientSize.H){
var _19c=_197.scrollWidth-_197._clientSize.H;
if(_19c>0){
_197._scrolledAmount.H-=_19c;
}
}
if(_197._offsetParent.tagName=="TABLE"){
if(dojo.isIE){
_197._offsetStart[dir]-=_197._offsetParent._borderStart[dir];
_197._borderStart[dir]=_197._borderSize[dir]=0;
}else{
_197._offsetStart[dir]+=_197._offsetParent._borderStart[dir];
}
}
if(dojo.isIE){
_197._offsetStart[dir]+=_197._offsetParent._borderStart[dir];
}
var _19d=_193._offsetStart[dir]-_197._scrolledAmount[dir]-(_199?0:_197._offsetStart[dir])-_197._borderStart[dir];
var _19e=_19d+_193._offsetSize[dir]-_197._offsetSize[dir]+_197._borderSize[dir];
var _19f=(dir=="H")?"scrollLeft":"scrollTop";
var _1a0=dir=="H"&&rtl;
var _1a1=_1a0?-_19e:_19d;
var _1a2=_1a0?-_19d:_19e;
var _1a3=(_1a1*_1a2<=0)?0:Math[(_1a1<0)?"max":"min"](_1a1,_1a2);
if(_1a3!=0){
var _1a4=_197[_19f];
_197[_19f]+=(_1a0)?-_1a3:_1a3;
var _1a5=_197[_19f]-_1a4;
}
if(_199){
_193._offsetStart[dir]+=_197._offsetStart[dir];
}
_193._offsetStart[dir]-=_197[_19f];
}
_193._parent=_197._parent;
_193._offsetParent=_197._offsetParent;
}
_197=node;
var next;
while(_197&&_197.removeAttribute){
next=_197.parentNode;
_197.removeAttribute("_offsetParent");
_197.removeAttribute("_parent");
_197=next;
}
}
catch(error){
console.error("scrollIntoView: "+error);
node.scrollIntoView(false);
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo,html=d.doc.documentElement,ie=d.isIE,_1aa=d.isOpera,maj=Math.floor,ff=d.isFF,_1ad=d.boxModel.replace(/-/,""),_1ae={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_1aa,dj_opera8:maj(_1aa)==8,dj_opera9:maj(_1aa)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_1ae["dj_"+_1ad]=true;
for(var p in _1ae){
if(_1ae[p]){
if(html.className){
html.className+=" "+p;
}else{
html.className=p;
}
}
}
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
html.className+=" dijitRtl";
for(var p in _1ae){
if(_1ae[p]){
html.className+=" "+p+"-rtl";
}
}
}
});
})();
}
if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=(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,_1b2,node,_1b4,obj,_1b6,_1b7){
if(obj!=this._obj){
this.stop();
this._initialDelay=_1b7||500;
this._subsequentDelay=_1b6||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_1b2,_1b4);
this._fireEventAndReload();
}
},stop:function(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function(node,_1b9,_1ba,_1bb,_1bc,_1bd){
if(_1b9.keyCode){
_1b9.charOrCode=_1b9.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_1b9.charCode){
_1b9.charOrCode=String.fromCharCode(_1b9.charCode);
dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}
}
return [dojo.connect(node,"onkeypress",this,function(evt){
if(evt.charOrCode==_1b9.charOrCode&&(_1b9.ctrlKey===undefined||_1b9.ctrlKey==evt.ctrlKey)&&(_1b9.altKey===undefined||_1b9.altKey==evt.ctrlKey)&&(_1b9.shiftKey===undefined||_1b9.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_1b9,_1ba,node,_1bb,_1b9,_1bc,_1bd);
}else{
if(dijit.typematic._obj==_1b9){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_1b9){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_1c1,_1c2,_1c3,_1c4){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_1c1,node,_1c2,node,_1c3,_1c4);
}),dc(node,"mouseup",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mouseout",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mousemove",this,function(evt){
dojo.stopEvent(evt);
}),dc(node,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_1c1,node,_1c2,node,_1c3,_1c4);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_1cb,_1cc,_1cd,_1ce,_1cf,_1d0,_1d1){
return this.addKeyListener(_1cc,_1cd,_1ce,_1cf,_1d0,_1d1).concat(this.addMouseListener(_1cb,_1ce,_1cf,_1d0,_1d1));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());
var cs=dojo.getComputedStyle(div);
if(cs){
var _1d4=cs.backgroundImage;
var _1d5=(cs.borderTopColor==cs.borderRightColor)||(_1d4!=null&&(_1d4=="none"||_1d4=="url(invalid-url:)"));
dojo[_1d5?"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 _1d8=this.getWaiRole(elem);
return role?(_1d8.indexOf(role)>-1):(_1d8.length>0);
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _1dc=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_1dc)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_1dc+" ").indexOf(" "+role+" ")<0){
var _1dd=dojo.trim(_1dc.replace(this._XhtmlRoles,""));
var _1de=dojo.trim(_1dc.replace(_1dd,""));
dojo.attr(elem,"role",_1de+(_1de?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _1e1=dojo.attr(elem,"role");
if(!_1e1){
return;
}
if(role){
var _1e2=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_1e1+" ").replace(" "+_1e2+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_1e5){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1e5);
}
return elem.hasAttribute?elem.hasAttribute("aria-"+_1e5):!!elem.getAttribute("aria-"+_1e5);
},getWaiState:function(elem,_1e7){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1e7);
}
return elem.getAttribute("aria-"+_1e7)||"";
},setWaiState:function(elem,_1e9,_1ea){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_1e9,_1ea);
}else{
elem.setAttribute("aria-"+_1e9,_1ea);
}
},removeWaiState:function(elem,_1ec){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_1ec);
}else{
elem.removeAttribute("aria-"+_1ec);
}
}});
}
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(_1ed,_1ee){
if(_1ed&&dojo.isFunction(_1ed._onConnect)){
_1ed._onConnect(_1ee);
}
});
dijit._connectOnUseEventHandler=function(_1ef){
};
(function(){
var _1f0={};
var _1f1=function(dc){
if(!_1f0[dc]){
var r=[];
var _1f4;
var _1f5=dojo.getObject(dc).prototype;
for(var _1f6 in _1f5){
if(dojo.isFunction(_1f5[_1f6])&&(_1f4=_1f6.match(/^_set([a-zA-Z]*)Attr$/))&&_1f4[1]){
r.push(_1f4[1].charAt(0).toLowerCase()+_1f4[1].substr(1));
}
}
_1f0[dc]=r;
}
return _1f0[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(_1f7,_1f8){
this.create(_1f7,_1f8);
},create:function(_1f9,_1fa){
this.srcNodeRef=dojo.byId(_1fa);
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(_1f9){
this.params=_1f9;
dojo.mixin(this,_1f9);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
var _1fc=this.srcNodeRef;
if(_1fc&&_1fc.parentNode){
_1fc.parentNode.replaceChild(this.domNode,_1fc);
}
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 _1fd=function(attr,_1ff){
if((_1ff.params&&attr in _1ff.params)||_1ff[attr]){
_1ff.attr(attr,_1ff[attr]);
}
};
for(var attr in this.attributeMap){
_1fd(attr,this);
}
dojo.forEach(_1f1(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_1fd(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_202){
this.destroyDescendants(_202);
this.destroy(_202);
},destroy:function(_203){
this.uninitialize();
dojo.forEach(this._connects,function(_204){
dojo.forEach(_204,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_203);
dijit.registry.remove(this.id);
},destroyRendering:function(_206){
if(this.bgIframe){
this.bgIframe.destroy(_206);
delete this.bgIframe;
}
if(this.domNode){
if(_206){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_206){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_207){
dojo.forEach(this.getChildren(),function(_208){
if(_208.destroyRecursive){
_208.destroyRecursive(_207);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_20a){
if(_20a in this._deferredConnects){
var _20b=this[this._deferredConnects[_20a]||"domNode"];
this.connect(_20b,_20a.toLowerCase(),_20a);
delete this._deferredConnects[_20a];
}
},_setClassAttr:function(_20c){
var _20d=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_20d,this["class"]);
this["class"]=_20c;
dojo.addClass(_20d,_20c);
},_setStyleAttr:function(_20e){
var _20f=this[this.attributeMap["style"]||"domNode"];
if(dojo.isObject(_20e)){
dojo.style(_20f,_20e);
}else{
if(_20f.style.cssText){
_20f.style.cssText+="; "+_20e;
}else{
_20f.style.cssText=_20e;
}
}
this["style"]=_20e;
},setAttribute:function(attr,_211){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_211);
},_attrToDom:function(attr,_213){
var _214=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_214)?_214:[_214],function(_215){
var _216=this[_215.node||_215||"domNode"];
var type=_215.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_213)){
_213=dojo.hitch(this,_213);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_216,attr,_213);
break;
case "innerHTML":
_216.innerHTML=_213;
break;
case "class":
dojo.removeClass(_216,this[attr]);
dojo.addClass(_216,_213);
break;
}
},this);
this[attr]=_213;
},attr:function(name,_219){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _21c=this._getAttrNames(name);
if(args==2){
if(this[_21c.s]){
return this[_21c.s](_219)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_219);
}
this[name]=_219;
}
return this;
}else{
if(this[_21c.g]){
return this[_21c.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 [];
}
},getChildren:function(){
if(this.containerNode){
return dijit.findWidgets(this.containerNode);
}else{
return [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_222,_223){
var d=dojo;
var dc=dojo.connect;
var _226=[];
if(_222=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_223);
_226.push(dc(obj,"onkeydown",this,function(e){
if(!d.isFF&&e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}else{
if(e.keyCode==d.keys.SPACE){
d.stopEvent(e);
}
}
}),dc(obj,"onkeyup",this,function(e){
if(e.keyCode==d.keys.SPACE&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
if(d.isFF){
_226.push(dc(obj,"onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
}
}
_222="onclick";
}
_226.push(dc(obj,_222,this,_223));
this._connects.push(_226);
return _226;
},disconnect:function(_22b){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_22b){
dojo.forEach(_22b,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(_22d,_22e){
if(_22d["declaredClass"]&&_22d["addChild"]){
_22d.addChild(this,_22e);
}else{
dojo.place(this.domNode,_22d,_22e);
}
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(_238,map,_23a,_23b){
_23b=_23b||dojo.global;
_23a=(!_23a)?function(v){
return v;
}:dojo.hitch(_23b,_23a);
return _238.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_23d,key,_23f){
var _240=dojo.getObject(key,false,map);
if(_23f){
_240=dojo.getObject(_23f,false,_23b).call(_23b,_240,key);
}
return _23a(_240,key).toString();
});
};
dojo.string.trim=String.prototype.trim?dojo.trim:function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_243,_244){
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 _245=dojo.date.stamp._isoRegExp.exec(_243);
var _246=null;
if(_245){
_245.shift();
if(_245[1]){
_245[1]--;
}
if(_245[6]){
_245[6]*=1000;
}
if(_244){
_244=new Date(_244);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _244["get"+prop]();
}).forEach(function(_248,_249){
if(_245[_249]===undefined){
_245[_249]=_248;
}
});
}
_246=new Date(_245[0]||1970,_245[1]||0,_245[2]||1,_245[3]||0,_245[4]||0,_245[5]||0,_245[6]||0);
var _24a=0;
var _24b=_245[7]&&_245[7].charAt(0);
if(_24b!="Z"){
_24a=((_245[8]||0)*60)+(Number(_245[9])||0);
if(_24b!="-"){
_24a*=-1;
}
}
if(_24b){
_24a-=_246.getTimezoneOffset();
}
if(_24a){
_246.setTime(_246.getTime()+_24a*60000);
}
}
return _246;
};
dojo.date.stamp.toISOString=function(_24c,_24d){
var _=function(n){
return (n<10)?"0"+n:n;
};
_24d=_24d||{};
var _250=[];
var _251=_24d.zulu?"getUTC":"get";
var date="";
if(_24d.selector!="time"){
var year=_24c[_251+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_24c[_251+"Month"]()+1),_(_24c[_251+"Date"]())].join("-");
}
_250.push(date);
if(_24d.selector!="date"){
var time=[_(_24c[_251+"Hours"]()),_(_24c[_251+"Minutes"]()),_(_24c[_251+"Seconds"]())].join(":");
var _255=_24c[_251+"Milliseconds"]();
if(_24d.milliseconds){
time+="."+(_255<100?"0":"")+_(_255);
}
if(_24d.zulu){
time+="Z";
}else{
if(_24d.selector!="time"){
var _256=_24c.getTimezoneOffset();
var _257=Math.abs(_256);
time+=(_256>0?"-":"+")+_(Math.floor(_257/60))+":"+_(_257%60);
}
}
_250.push(time);
}
return _250.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _259=d._scopeName+"Type";
var qry="["+_259+"]";
var _25b=0,_25c={};
var _25d=function(_25e,_25f){
var nso=_25f||_25c;
if(dojo.isIE){
var cn=_25e["__dojoNameCache"];
if(cn&&nso[cn]===_25e){
return cn;
}
}
var name;
do{
name="__"+_25b++;
}while(name in nso);
nso[name]=_25e;
return name;
};
function _263(_264){
if(d.isString(_264)){
return "string";
}
if(typeof _264=="number"){
return "number";
}
if(typeof _264=="boolean"){
return "boolean";
}
if(d.isFunction(_264)){
return "function";
}
if(d.isArray(_264)){
return "array";
}
if(_264 instanceof Date){
return "date";
}
if(_264 instanceof d._Url){
return "url";
}
return "object";
};
function _265(_266,type){
switch(type){
case "string":
return _266;
case "number":
return _266.length?Number(_266):NaN;
case "boolean":
return typeof _266=="boolean"?_266:!(_266.toLowerCase()=="false");
case "function":
if(d.isFunction(_266)){
_266=_266.toString();
_266=d.trim(_266.substring(_266.indexOf("{")+1,_266.length-1));
}
try{
if(_266.search(/[^\w\.]+/i)!=-1){
_266=_25d(new Function(_266),this);
}
return d.getObject(_266,false);
}
catch(e){
return new Function();
}
case "array":
return _266?_266.split(/\s*,\s*/):[];
case "date":
switch(_266){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_266);
}
case "url":
return d.baseUrl+_266;
default:
return d.fromJson(_266);
}
};
var _268={};
function _269(_26a){
if(!_268[_26a]){
var cls=d.getObject(_26a);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_26a+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _26c=cls.prototype;
var _26d={},_26e={};
for(var name in _26c){
if(name.charAt(0)=="_"){
continue;
}
if(name in _26e){
continue;
}
var _270=_26c[name];
_26d[name]=_263(_270);
}
_268[_26a]={cls:cls,params:_26d};
}
return _268[_26a];
};
this._functionFromScript=function(_271){
var _272="";
var _273="";
var _274=_271.getAttribute("args");
if(_274){
d.forEach(_274.split(/\s*,\s*/),function(part,idx){
_272+="var "+part+" = arguments["+idx+"]; ";
});
}
var _277=_271.getAttribute("with");
if(_277&&_277.length){
d.forEach(_277.split(/\s*,\s*/),function(part){
_272+="with("+part+"){";
_273+="}";
});
}
return new Function(_272+_271.innerHTML+_273);
};
this.instantiate=function(_279,_27a){
var _27b=[];
_27a=_27a||{};
d.forEach(_279,function(node){
if(!node){
return;
}
var type=_259 in _27a?_27a[_259]:node.getAttribute(_259);
if(!type||!type.length){
return;
}
var _27e=_269(type),_27f=_27e.cls,ps=_27f._noScript||_27f.prototype._noScript;
var _281={},_282=node.attributes;
for(var name in _27e.params){
var item=name in _27a?{value:_27a[name],specified:true}:_282.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _285=item.value;
switch(name){
case "class":
_285="className" in _27a?_27a.className:node.className;
break;
case "style":
_285="style" in _27a?_27a.style:(node.style&&node.style.cssText);
}
var _286=_27e.params[name];
if(typeof _285=="string"){
_281[name]=_265(_285,_286);
}else{
_281[name]=_285;
}
}
if(!ps){
var _287=[],_288=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_289){
var _28a=_289.getAttribute("event"),type=_289.getAttribute("type"),nf=d.parser._functionFromScript(_289);
if(_28a){
if(type=="dojo/connect"){
_287.push({event:_28a,func:nf});
}else{
_281[_28a]=nf;
}
}else{
_288.push(nf);
}
});
}
var _28c=_27f["markupFactory"];
if(!_28c&&_27f["prototype"]){
_28c=_27f.prototype["markupFactory"];
}
var _28d=_28c?_28c(_281,node,_27f):new _27f(_281,node);
_27b.push(_28d);
var _28e=node.getAttribute("jsId");
if(_28e){
d.setObject(_28e,_28d);
}
if(!ps){
d.forEach(_287,function(_28f){
d.connect(_28d,_28f.event,null,_28f.func);
});
d.forEach(_288,function(func){
func.call(_28d);
});
}
});
d.forEach(_27b,function(_291){
if(_291&&_291.startup&&!_291._started&&(!_291.getParent||!_291.getParent())){
_291.startup();
}
});
return _27b;
};
this.parse=function(_292){
var list=d.query(qry,_292);
var _294=this.instantiate(list);
return _294;
};
}();
(function(){
var _295=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,_295);
}else{
dojo._loaders.unshift(_295);
}
})();
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){
var _297=this.declaredClass,_298=this;
return dojo.string.substitute(tmpl,this,function(_299,key){
if(key.charAt(0)=="!"){
_299=dojo.getObject(key.substr(1),false,_298);
}
if(typeof _299=="undefined"){
throw new Error(_297+" template:"+key);
}
if(_299==null){
return "";
}
return key.charAt(0)=="!"?_299:_299.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _29b=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_29b)){
node=dojo._toDom(this._stringRepl(_29b));
}else{
node=_29b.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function(_2a0){
var dest=this.containerNode;
if(_2a0&&dest){
while(_2a0.hasChildNodes()){
dest.appendChild(_2a0.firstChild);
}
}
},_attachTemplateNodes:function(_2a2,_2a3){
_2a3=_2a3||function(n,p){
return n.getAttribute(p);
};
var _2a6=dojo.isArray(_2a2)?_2a2:(_2a2.all||_2a2.getElementsByTagName("*"));
var x=dojo.isArray(_2a2)?0:-1;
for(;x<_2a6.length;x++){
var _2a8=(x==-1)?_2a2:_2a6[x];
if(this.widgetsInTemplate&&_2a3(_2a8,"dojoType")){
continue;
}
var _2a9=_2a3(_2a8,"dojoAttachPoint");
if(_2a9){
var _2aa,_2ab=_2a9.split(/\s*,\s*/);
while((_2aa=_2ab.shift())){
if(dojo.isArray(this[_2aa])){
this[_2aa].push(_2a8);
}else{
this[_2aa]=_2a8;
}
}
}
var _2ac=_2a3(_2a8,"dojoAttachEvent");
if(_2ac){
var _2ad,_2ae=_2ac.split(/\s*,\s*/);
var trim=dojo.trim;
while((_2ad=_2ae.shift())){
if(_2ad){
var _2b0=null;
if(_2ad.indexOf(":")!=-1){
var _2b1=_2ad.split(":");
_2ad=trim(_2b1[0]);
_2b0=trim(_2b1[1]);
}else{
_2ad=trim(_2ad);
}
if(!_2b0){
_2b0=_2ad;
}
this.connect(_2a8,_2ad,_2b0);
}
}
}
var role=_2a3(_2a8,"waiRole");
if(role){
dijit.setWaiRole(_2a8,role);
}
var _2b3=_2a3(_2a8,"waiState");
if(_2b3){
dojo.forEach(_2b3.split(/\s*,\s*/),function(_2b4){
if(_2b4.indexOf("-")!=-1){
var pair=_2b4.split("-");
dijit.setWaiState(_2a8,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_2b6,_2b7,_2b8){
var _2b9=dijit._Templated._templateCache;
var key=_2b7||_2b6;
var _2bb=_2b9[key];
if(_2bb){
if(!_2bb.ownerDocument||_2bb.ownerDocument==dojo.doc){
return _2bb;
}
dojo.destroy(_2bb);
}
if(!_2b7){
_2b7=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_2b6)));
}
_2b7=dojo.string.trim(_2b7);
if(_2b8||_2b7.match(/\$\{([^\}]+)\}/g)){
return (_2b9[key]=_2b7);
}else{
return (_2b9[key]=dojo._toDom(_2b7));
}
};
dijit._Templated._sanitizeTemplateString=function(_2bc){
if(_2bc){
_2bc=_2bc.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _2bd=_2bc.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2bd){
_2bc=_2bd[1];
}
}else{
_2bc="";
}
return _2bc;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _2be=dijit._Templated._templateCache;
for(var key in _2be){
var _2c0=_2be[key];
if(!isNaN(_2c0.nodeType)){
dojo.destroy(_2c0);
}
delete _2be[key];
}
});
}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if(!dojo._hasResource["dijit.form._FormMixin"]){
dojo._hasResource["dijit.form._FormMixin"]=true;
dojo.provide("dijit.form._FormMixin");
dojo.declare("dijit.form._FormMixin",null,{reset:function(){
dojo.forEach(this.getDescendants(),function(_2c1){
if(_2c1.reset){
_2c1.reset();
}
});
},validate:function(){
var _2c2=false;
return dojo.every(dojo.map(this.getDescendants(),function(_2c3){
_2c3._hasBeenBlurred=true;
var _2c4=_2c3.disabled||!_2c3.validate||_2c3.validate();
if(!_2c4&&!_2c2){
dijit.scrollIntoView(_2c3.containerNode||_2c3.domNode);
_2c3.focus();
_2c2=true;
}
return _2c4;
}),function(item){
return item;
});
},setValues:function(val){
dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");
return this.attr("value",val);
},_setValueAttr:function(obj){
var map={};
dojo.forEach(this.getDescendants(),function(_2c9){
if(!_2c9.name){
return;
}
var _2ca=map[_2c9.name]||(map[_2c9.name]=[]);
_2ca.push(_2c9);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _2cc=map[name],_2cd=dojo.getObject(name,false,obj);
if(_2cd===undefined){
continue;
}
if(!dojo.isArray(_2cd)){
_2cd=[_2cd];
}
if(typeof _2cc[0].checked=="boolean"){
dojo.forEach(_2cc,function(w,i){
w.attr("value",dojo.indexOf(_2cd,w.value)!=-1);
});
}else{
if(_2cc[0]._multiValue){
_2cc[0].attr("value",_2cd);
}else{
dojo.forEach(_2cc,function(w,i){
w.attr("value",_2cd[i]);
});
}
}
}
},getValues:function(){
dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_getValueAttr:function(){
var obj={};
dojo.forEach(this.getDescendants(),function(_2d3){
var name=_2d3.name;
if(!name||_2d3.disabled){
return;
}
var _2d5=_2d3.attr("value");
if(typeof _2d3.checked=="boolean"){
if(/Radio/.test(_2d3.declaredClass)){
if(_2d5!==false){
dojo.setObject(name,_2d5,obj);
}else{
_2d5=dojo.getObject(name,false,obj);
if(_2d5===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_2d5!==false){
ary.push(_2d5);
}
}
}else{
dojo.setObject(name,_2d5,obj);
}
});
return obj;
},isValid:function(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_2d7){
return !_2d7.disabled&&_2d7.isValid&&!_2d7.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function(_2d8){
},_widgetChange:function(_2d9){
var _2da=this._lastValidState;
if(!_2d9||this._lastValidState===undefined){
_2da=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_2da;
}
}else{
if(_2d9.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_2d9);
},this);
if(!_2d9.isValid()&&!_2d9.attr("disabled")){
this._invalidWidgets.push(_2d9);
}
_2da=(this._invalidWidgets.length===0);
}
}
if(_2da!==this._lastValidState){
this._lastValidState=_2da;
this.onValidStateChange(_2da);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _2dc=this;
var _2dd=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_2df){
_2dd.push(_2dc.connect(_2df,"validate",dojo.hitch(_2dc,"_widgetChange",_2df)));
_2dd.push(_2dc.connect(_2df,"_setDisabledAttr",dojo.hitch(_2dc,"_widgetChange",_2df)));
});
this._widgetChange(null);
},startup:function(){
this.inherited(arguments);
this._changeConnections=[];
this.connectChildren();
}});
}
if(!dojo._hasResource["dijit._DialogMixin"]){
dojo._hasResource["dijit._DialogMixin"]=true;
dojo.provide("dijit._DialogMixin");
dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_2e0){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function(_2e1){
var _2e2=dijit._getTabNavigable(dojo.byId(_2e1));
this._firstFocusItem=_2e2.lowest||_2e2.first||_2e1;
this._lastFocusItem=_2e2.last||_2e2.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_2e1,"tabindex","0");
this._firstFocusItem=_2e1;
}
}});
}
if(!dojo._hasResource["dijit.DialogUnderlay"]){
dojo._hasResource["dijit.DialogUnderlay"]=true;
dojo.provide("dijit.DialogUnderlay");
dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){
dojo.attr(this.node,"id",id+"_underlay");
},_setClassAttr:function(_2e4){
this.node.className="dijitDialogUnderlay "+_2e4;
},postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
},layout:function(){
var is=this.node.style,os=this.domNode.style;
os.display="none";
var _2e7=dijit.getViewport();
os.top=_2e7.t+"px";
os.left=_2e7.l+"px";
is.width=_2e7.w+"px";
is.height=_2e7.h+"px";
os.display="block";
},show:function(){
this.domNode.style.display="block";
this.layout();
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="block";
}
},hide:function(){
this.domNode.style.display="none";
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="none";
}
},uninitialize:function(){
if(this.bgIframe){
this.bgIframe.destroy();
}
}});
}
if(!dojo._hasResource["dijit._Contained"]){
dojo._hasResource["dijit._Contained"]=true;
dojo.provide("dijit._Contained");
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 _2ea=dijit.byId(id);
return _2ea.isContainer?_2ea:null;
}
}
return null;
},_getSibling:function(_2eb){
var node=this.domNode;
do{
node=node[_2eb+"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);
}});
}
if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_2ef,_2f0){
var _2f1=this.containerNode;
if(_2f0&&typeof _2f0=="number"){
var _2f2=this.getChildren();
if(_2f2&&_2f2.length>=_2f0){
_2f1=_2f2[_2f0-1].domNode;
_2f0="after";
}
}
dojo.place(_2ef.domNode,_2f1,_2f0);
if(this._started&&!_2ef._started){
_2ef.startup();
}
},removeChild:function(_2f3){
if(typeof _2f3=="number"&&_2f3>0){
_2f3=this.getChildren()[_2f3];
}
if(!_2f3||!_2f3.domNode){
return;
}
var node=_2f3.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(_2f7){
dojo.forEach(this.getChildren(),function(_2f8){
_2f8.destroyRecursive(_2f7);
});
},_getSiblingOfChild:function(_2f9,dir){
var node=_2f9.domNode;
var _2fc=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_2fc];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_2fd){
var _2fe=this.getChildren();
for(var i=0,c;c=_2fe[i];i++){
if(c==_2fd){
return i;
}
}
return -1;
}});
}
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(_301){
_301.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this._viewport=dijit.getViewport();
this.connect(dojo.global,"onresize",function(){
var _302=dijit.getViewport();
if(_302.w!=this._viewport.w||_302.h!=this._viewport.h){
this._viewport=_302;
this.resize();
}
});
}
this.inherited(arguments);
},resize:function(_303,_304){
var node=this.domNode;
if(_303){
dojo.marginBox(node,_303);
if(_303.t){
node.style.top=_303.t+"px";
}
if(_303.l){
node.style.left=_303.l+"px";
}
}
var mb=_304||{};
dojo.mixin(mb,_303||{});
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(_30c){
dojo.addClass(_30c.domNode,this.baseClass+"-child");
if(_30c.baseClass){
dojo.addClass(_30c.domNode,this.baseClass+"-"+_30c.baseClass);
}
},addChild:function(_30d,_30e){
this.inherited(arguments);
if(this._started){
this._setupChild(_30d);
}
},removeChild:function(_30f){
dojo.removeClass(_30f.domNode,this.baseClass+"-child");
if(_30f.baseClass){
dojo.removeClass(_30f.domNode,this.baseClass+"-"+_30f.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 _315=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_318,dim){
_318.resize?_318.resize(dim):dojo.marginBox(_318.domNode,dim);
dojo.mixin(_318,dojo.marginBox(_318.domNode));
dojo.mixin(_318,dim);
};
dijit.layout.layoutChildren=function(_31a,dim,_31c){
dim=dojo.mixin({},dim);
dojo.addClass(_31a,"dijitLayoutContainer");
_31c=dojo.filter(_31c,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_31c,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_31c,function(_31f){
var elm=_31f.domNode,pos=_31f.layoutAlign;
var _322=elm.style;
_322.left=dim.l+"px";
_322.top=dim.t+"px";
_322.bottom=_322.right="auto";
dojo.addClass(elm,"dijitAlign"+_315(pos));
if(pos=="top"||pos=="bottom"){
size(_31f,{w:dim.w});
dim.h-=_31f.h;
if(pos=="top"){
dim.t+=_31f.h;
}else{
_322.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_31f,{h:dim.h});
dim.w-=_31f.w;
if(pos=="left"){
dim.l+=_31f.w;
}else{
_322.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_31f,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _323=0;
dojo.html._secureForInnerHtml=function(cont){
return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
};
dojo.html._emptyNode=dojo.empty;
dojo.html._setNodeContent=function(node,cont,_327){
if(_327){
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(_32f,node){
dojo.mixin(this,_32f||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_323++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_332){
if(undefined!==cont){
this.content=cont;
}
if(_332){
this._mixin(_332);
}
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 _334=this.onContentError(e);
try{
node.innerHTML=_334;
}
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 _337=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_337){
cont=_337[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(_339){
var _33a={},key;
for(key in _339){
if(key in _33a){
continue;
}
this[key]=_339[key];
}
},_parse:function(){
var _33c=this.node;
try{
this.parseResults=dojo.parser.parse(_33c,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_33f){
var _340=this["on"+type+"Error"].call(this,err);
if(_33f){
console.error(_33f,err);
}else{
if(_340){
dojo.html._setNodeContent(this.node,_340,true);
}
}
}});
dojo.html.set=function(node,cont,_343){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_343){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_343,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_345,_346,_347){
_347=dojo.i18n.normalizeLocale(_347);
var _348=_347.split("-");
var _349=[_345,"nls",_346].join(".");
var _34a=dojo._loadedModules[_349];
if(_34a){
var _34b;
for(var i=_348.length;i>0;i--){
var loc=_348.slice(0,i).join("_");
if(_34a[loc]){
_34b=_34a[loc];
break;
}
}
if(!_34b){
_34b=_34a.ROOT;
}
if(_34b){
var _34e=function(){
};
_34e.prototype=_34b;
return new _34e();
}
}
throw new Error("Bundle not found: "+_346+" in "+_345+" , locale="+_347);
};
dojo.i18n.normalizeLocale=function(_34f){
var _350=_34f?_34f.toLowerCase():dojo.locale;
if(_350=="root"){
_350="ROOT";
}
return _350;
};
dojo.i18n._requireLocalization=function(_351,_352,_353,_354){
var _355=dojo.i18n.normalizeLocale(_353);
var _356=[_351,"nls",_352].join(".");
var _357="";
if(_354){
var _358=_354.split(",");
for(var i=0;i<_358.length;i++){
if(_355["indexOf"](_358[i])==0){
if(_358[i].length>_357.length){
_357=_358[i];
}
}
}
if(!_357){
_357="ROOT";
}
}
var _35a=_354?_357:_355;
var _35b=dojo._loadedModules[_356];
var _35c=null;
if(_35b){
if(dojo.config.localizationComplete&&_35b._built){
return;
}
var _35d=_35a.replace(/-/g,"_");
var _35e=_356+"."+_35d;
_35c=dojo._loadedModules[_35e];
}
if(!_35c){
_35b=dojo["provide"](_356);
var syms=dojo._getModuleSymbols(_351);
var _360=syms.concat("nls").join("/");
var _361;
dojo.i18n._searchLocalePath(_35a,_354,function(loc){
var _363=loc.replace(/-/g,"_");
var _364=_356+"."+_363;
var _365=false;
if(!dojo._loadedModules[_364]){
dojo["provide"](_364);
var _366=[_360];
if(loc!="ROOT"){
_366.push(loc);
}
_366.push(_352);
var _367=_366.join("/")+".js";
_365=dojo._loadPath(_367,null,function(hash){
var _369=function(){
};
_369.prototype=_361;
_35b[_363]=new _369();
for(var j in hash){
_35b[_363][j]=hash[j];
}
});
}else{
_365=true;
}
if(_365&&_35b[_363]){
_361=_35b[_363];
}else{
_35b[_363]=_361;
}
if(_354){
return true;
}
});
}
if(_354&&_355!=_357){
_35b[_355.replace(/-/g,"_")]=_35b[_357.replace(/-/g,"_")];
}
};
(function(){
var _36b=dojo.config.extraLocale;
if(_36b){
if(!_36b instanceof Array){
_36b=[_36b];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_36f,_370){
req(m,b,_36f,_370);
if(_36f){
return;
}
for(var i=0;i<_36b.length;i++){
req(m,b,_36b[i],_370);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_372,down,_374){
_372=dojo.i18n.normalizeLocale(_372);
var _375=_372.split("-");
var _376=[];
for(var i=_375.length;i>0;i--){
_376.push(_375.slice(0,i).join("-"));
}
_376.push(false);
if(down){
_376.reverse();
}
for(var j=_376.length-1;j>=0;j--){
var loc=_376[j]||"ROOT";
var stop=_374(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_37b,_37c){
function _37d(_37e){
_37e=dojo.i18n.normalizeLocale(_37e);
dojo.i18n._searchLocalePath(_37e,true,function(loc){
for(var i=0;i<_37c.length;i++){
if(_37c[i]==loc){
dojo["require"](_37b+"_"+loc);
return true;
}
}
return false;
});
};
_37d();
var _381=dojo.config.extraLocale||[];
for(var i=0;i<_381.length;i++){
_37d(_381[i]);
}
};
}
if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,postMixInProperties:function(){
this.inherited(arguments);
var _383=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_383);
this.errorMessage=dojo.string.substitute(this.errorMessage,_383);
if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){
this.isLoaded=true;
}
},buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},postCreate:function(){
this.domNode.title="";
if(!dojo.attr(this.domNode,"role")){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
if(this.isLoaded){
dojo.forEach(this.getChildren(),function(_384){
_384.startup();
});
if(this.doLayout){
this._checkIfSingleChild();
}
if(!this._singleChild||!dijit._Contained.prototype.getParent.call(this)){
this._scheduleLayout();
}
}
this._loadCheck();
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _385=dojo.query(">",this.containerNode),_386=_385.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_388=dojo.filter(_386.map(dijit.byNode),function(_389){
return _389&&_389.domNode&&_389.resize;
});
if(_385.length==_386.length&&_388.length==1){
this._singleChild=_388[0];
}else{
delete this._singleChild;
}
},setHref:function(href){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");
return this.attr("href",href);
},_setHrefAttr:function(href){
this.cancel();
this.href=href;
if(this._created&&(this.preload||this._isShown())){
return this.refresh();
}else{
this._hrefChanged=true;
}
},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;
},uninitialize:function(){
if(this._beingDestroyed){
this.cancel();
}
},destroyRecursive:function(_38e){
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});
}
},_isShown:function(){
if("open" in this){
return this.open;
}else{
var node=this.domNode;
return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");
}
},_onShow:function(){
if(this._needLayout){
this._layoutChildren();
}
this._loadCheck();
if(this.onShow){
this.onShow();
}
},_loadCheck:function(){
if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){
delete this._hrefChanged;
this.refresh();
}
},refresh:function(){
this.cancel();
this._setContent(this.onDownloadStart(),true);
var self=this;
var _395={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_395,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_395));
hand.addCallback(function(html){
try{
self._isDownloaded=true;
self._setContent(html,false);
self.onDownloadEnd();
}
catch(err){
self._onError("Content",err);
}
delete self._xhrDfd;
return html;
});
hand.addErrback(function(err){
if(!hand.canceled){
self._onError("Download",err);
}
delete self._xhrDfd;
return err;
});
},_onLoadHandler:function(data){
this.isLoaded=true;
try{
this.onLoad(data);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);
}
},_onUnloadHandler:function(){
this.isLoaded=false;
try{
this.onUnload();
}
catch(e){
console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);
}
},destroyDescendants:function(){
if(this.isLoaded){
this._onUnloadHandler();
}
var _39a=this._contentSetter;
dojo.forEach(this.getChildren(),function(_39b){
if(_39b.destroyRecursive){
_39b.destroyRecursive();
}
});
if(_39a){
dojo.forEach(_39a.parseResults,function(_39c){
if(_39c.destroyRecursive&&_39c.domNode&&_39c.domNode.parentNode==dojo.body()){
_39c.destroyRecursive();
}
});
delete _39a.parseResults;
}
dojo.html._emptyNode(this.containerNode);
},_setContent:function(cont,_39e){
this.destroyDescendants();
delete this._singleChild;
var _39f=this._contentSetter;
if(!(_39f&&_39f instanceof dojo.html._ContentSetter)){
_39f=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _3a1=this.onContentError(e);
try{
this.containerNode.innerHTML=_3a1;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _3a2=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_39f,_3a2);
_39f.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_39e){
dojo.forEach(this.getChildren(),function(_3a3){
_3a3.startup();
});
if(this.doLayout){
this._checkIfSingleChild();
}
this._scheduleLayout();
this._onLoadHandler(cont);
}
},_onError:function(type,err,_3a6){
var _3a7=this["on"+type+"Error"].call(this,err);
if(_3a6){
console.error(_3a6,err);
}else{
if(_3a7){
this._setContent(_3a7,true);
}
}
},_scheduleLayout:function(){
if(this._isShown()){
this._layoutChildren();
}else{
this._needLayout=true;
}
},_layoutChildren:function(){
if(this._singleChild&&this._singleChild.resize){
var cb=this._contentBox||dojo.contentBox(this.containerNode);
this._singleChild.resize({w:cb.w,h:cb.h});
}else{
dojo.forEach(this.getChildren(),function(_3a9){
if(_3a9.resize){
_3a9.resize();
}
});
}
delete this._needLayout;
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_3ab){
},onDownloadError:function(_3ac){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
if(!dojo._hasResource["dijit.TooltipDialog"]){
dojo._hasResource["dijit.TooltipDialog"]=true;
dojo.provide("dijit.TooltipDialog");
dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\r\n</div>\r\n",postCreate:function(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
this.containerNode.title=this.title;
},orient:function(node,_3ae,_3af){
var c=this._currentOrientClass;
if(c){
dojo.removeClass(this.domNode,c);
}
c="dijitTooltipAB"+(_3af.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_3af.charAt(0)=="T"?"Below":"Above");
dojo.addClass(this.domNode,c);
this._currentOrientClass=c;
},onOpen:function(pos){
this.orient(this.domNode,pos.aroundCorner,pos.corner);
this._onShow();
if(this.autofocus){
this._getFocusItems(this.containerNode);
dijit.focus(this._firstFocusItem);
}
},_onKey:function(evt){
var node=evt.target;
var dk=dojo.keys;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.containerNode);
}
var _3b5=(this._firstFocusItem==this._lastFocusItem);
if(evt.charOrCode==dk.ESCAPE){
this.onCancel();
dojo.stopEvent(evt);
}else{
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_3b5){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_3b5){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
if(evt.charOrCode===dk.TAB){
evt.stopPropagation();
}
}
}
}
}});
}
if(!dojo._hasResource["dijit.Dialog"]){
dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,_fixSizes:true,postMixInProperties:function(){
var _3b6=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_3b6);
this.inherited(arguments);
},postCreate:function(){
dojo.style(this.domNode,{visibility:"hidden",position:"absolute",display:"",top:"-9999px"});
dojo.body().appendChild(this.domNode);
this.inherited(arguments);
this.connect(this,"onExecute","hide");
this.connect(this,"onCancel","hide");
this._modalconnects=[];
},onLoad:function(){
this._position();
this.inherited(arguments);
},_endDrag:function(e){
if(e&&e.node&&e.node===this.domNode){
var vp=dijit.getViewport();
var p=e._leftTop||dojo.coords(e.node,true);
this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};
}
},_setup:function(){
var node=this.domNode;
if(this.titleBar&&this.draggable){
this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});
dojo.subscribe("/dnd/move/stop",this,"_endDrag");
}else{
dojo.addClass(node,"dijitDialogFixed");
}
var _3bb={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
var _3bd=dijit._underlay;
if(!_3bd){
_3bd=dijit._underlay=new dijit.DialogUnderlay(_3bb);
}
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){
_3bd.attr(_3bb);
_3bd.show();
},onEnd:dojo.hitch(this,function(){
if(this.autofocus){
this._getFocusItems(this.domNode);
dijit.focus(this._firstFocusItem);
}
})});
this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){
node.style.visibility="hidden";
node.style.top="-9999px";
dijit._underlay.hide();
}});
},uninitialize:function(){
var _3be=false;
if(this._fadeIn&&this._fadeIn.status()=="playing"){
_3be=true;
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
_3be=true;
this._fadeOut.stop();
}
if(this.open||_3be){
dijit._underlay.hide();
}
if(this._moveable){
this._moveable.destroy();
}
},_size:function(){
var mb=dojo.marginBox(this.domNode);
var _3c0=dijit.getViewport();
if(mb.w>=_3c0.w||mb.h>=_3c0.h){
dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_3c0.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_3c0.h*0.75))+"px",overflow:"auto",position:"relative"});
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _3c2=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_3c2.l+(p?p.l:(_3c2.w-mb.w)/2))+"px",top:Math.floor(_3c2.t+(p?p.t:(_3c2.h-mb.h)/2))+"px"});
}
},_onKey:function(evt){
if(evt.charOrCode){
var dk=dojo.keys;
var node=evt.target;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.domNode);
}
var _3c8=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_3c8){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_3c8){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
while(node){
if(node==this.domNode){
if(evt.charOrCode==dk.ESCAPE){
this.onCancel();
}else{
return;
}
}
node=node.parentNode;
}
if(evt.charOrCode!==dk.TAB){
dojo.stopEvent(evt);
}else{
if(!dojo.isOpera){
try{
this._firstFocusItem.focus();
}
catch(e){
}
}
}
}
}
}
},show:function(){
if(this.open){
return;
}
if(!this._alreadyInitialized){
this._setup();
this._alreadyInitialized=true;
}
if(this._fadeOut.status()=="playing"){
this._fadeOut.stop();
}
this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));
this._modalconnects.push(dojo.connect(window,"onresize",this,function(){
var _3c9=dijit.getViewport();
if(!this._oldViewport||_3c9.h!=this._oldViewport.h||_3c9.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_3c9;
}
}));
this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));
dojo.style(this.domNode,{opacity:0,visibility:""});
if(this._fixSizes){
dojo.style(this.containerNode,{width:"auto",height:"auto"});
}
this.open=true;
this._onShow();
this._size();
this._position();
this._fadeIn.play();
this._savedFocus=dijit.getFocus(this);
},hide:function(){
if(!this._alreadyInitialized){
return;
}
if(this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
this._fadeOut.play();
if(this._scrollConnected){
this._scrollConnected=false;
}
dojo.forEach(this._modalconnects,dojo.disconnect);
this._modalconnects=[];
if(this.refocus){
this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));
}
if(this._relativePosition){
delete this._relativePosition;
}
this.open=false;
},layout:function(){
if(this.domNode.style.visibility!="hidden"){
dijit._underlay.layout();
this._position();
}
},destroy:function(){
dojo.forEach(this._modalconnects,dojo.disconnect);
if(this.refocus&&this.open){
setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);
}
this.inherited(arguments);
},_onCloseEnter:function(){
dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
},_onCloseLeave:function(){
dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
}});
}
if(!dojo._hasResource["dijit.Tooltip"]){
dojo._hasResource["dijit.Tooltip"]=true;
dojo.provide("dijit.Tooltip");
dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\n",postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});
this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});
},show:function(_3ca,_3cb,_3cc){
if(this.aroundNode&&this.aroundNode===_3cb){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_3ca;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var _3cd={};
var ltr=this.isLeftToRight();
dojo.forEach((_3cc&&_3cc.length)?_3cc:dijit.Tooltip.defaultPosition,function(pos){
switch(pos){
case "after":
_3cd[ltr?"BR":"BL"]=ltr?"BL":"BR";
break;
case "before":
_3cd[ltr?"BL":"BR"]=ltr?"BR":"BL";
break;
case "below":
_3cd[ltr?"BL":"BR"]=ltr?"TL":"TR";
_3cd[ltr?"BR":"BL"]=ltr?"TR":"TL";
break;
case "above":
default:
_3cd[ltr?"TL":"TR"]=ltr?"BL":"BR";
_3cd[ltr?"TR":"TL"]=ltr?"BR":"BL";
break;
}
});
var pos=dijit.placeOnScreenAroundElement(this.domNode,_3cb,_3cd,dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_3cb;
},orient:function(node,_3d2,_3d3){
node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_3d2+"-"+_3d3];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_3d4){
if(this._onDeck&&this._onDeck[1]==_3d4){
this._onDeck=null;
}else{
if(this.aroundNode===_3d4){
this.fadeIn.stop();
this.isShowingNow=false;
this.aroundNode=null;
this.fadeOut.play();
}else{
}
}
},_onHide:function(){
this.domNode.style.cssText="";
if(this._onDeck){
this.show.apply(this,this._onDeck);
this._onDeck=null;
}
}});
dijit.showTooltip=function(_3d5,_3d6,_3d7){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_3d5,_3d6,_3d7);
};
dijit.hideTooltip=function(_3d8){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_3d8);
};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(ids){
this._connectNodes=[];
this.connectId=dojo.isArrayLike(ids)?ids:[ids];
dojo.forEach(this.connectId,function(id){
var node=dojo.byId(id);
if(node){
this._connectNodes.push(node);
dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_3dc){
this.connect(node,_3dc.toLowerCase(),"_"+_3dc);
},this);
if(dojo.isIE){
node.style.zoom=1;
}
}
},this);
},postCreate:function(){
dojo.addClass(this.domNode,"dijitTooltipData");
},_onMouseEnter:function(e){
this._onHover(e);
},_onMouseLeave:function(e){
this._onUnHover(e);
},_onFocus:function(e){
this._focus=true;
this._onHover(e);
this.inherited(arguments);
},_onBlur:function(e){
this._focus=false;
this._onUnHover(e);
this.inherited(arguments);
},_onHover:function(e){
if(!this._showTimer){
var _3e2=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_3e2);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_3e4){
_3e4=_3e4||this._connectNodes[0];
if(!_3e4){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_3e4,this.position);
this._connectNode=_3e4;
},close:function(){
if(this._connectNode){
dijit.hideTooltip(this._connectNode);
delete this._connectNode;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
},uninitialize:function(){
this.close();
}});
dijit.Tooltip.defaultPosition=["after","before"];
}
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,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),postMixInProperties:function(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},_setDisabledAttr:function(_3e5){
this.disabled=_3e5;
dojo.attr(this.focusNode,"disabled",_3e5);
dijit.setWaiState(this.focusNode,"disabled",_3e5);
if(_3e5){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_3e6){
dojo.deprecated("setDisabled("+_3e6+") is deprecated. Use attr('disabled',"+_3e6+") instead.","","2.0");
this.attr("disabled",_3e6);
},_onFocus:function(e){
if(this.scrollOnFocus){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_3e8){
var _3e9=_3e8.currentTarget;
if(_3e9&&_3e9.getAttribute){
this.stateModifier=_3e9.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_3e8.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 _3ea=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_3ea);
});
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 _3eb=this.baseClass.split(" ");
function _3ec(_3ed){
_3eb=_3eb.concat(dojo.map(_3eb,function(c){
return c+_3ed;
}),"dijit"+_3ed);
};
if(this.checked){
_3ec("Checked");
}
if(this.state){
_3ec(this.state);
}
if(this.selected){
_3ec("Selected");
}
if(this.disabled){
_3ec("Disabled");
}else{
if(this.readOnly){
_3ec("ReadOnly");
}else{
if(this._active){
_3ec(this.stateModifier+"Active");
}else{
if(this._focused){
_3ec("Focused");
}
if(this._hovering){
_3ec(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_3f0={};
dojo.forEach(tn.className.split(" "),function(c){
_3f0[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _3f0[c];
});
}
dojo.forEach(_3eb,function(c){
_3f0[c]=true;
});
var _3f4=[];
for(var c in _3f0){
_3f4.push(c);
}
tn.className=_3f4.join(" ");
this._stateClasses=_3eb;
},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(_3f8){
},_onChangeActive:false,_handleOnChange:function(_3f9,_3fa){
this._lastValue=_3f9;
if(this._lastValueReported==undefined&&(_3fa===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_3f9;
}
if((this.intermediateChanges||_3fa||_3fa===undefined)&&((typeof _3f9!=typeof this._lastValueReported)||this.compare(_3f9,this._lastValueReported)!=0)){
this._lastValueReported=_3f9;
if(this._onChangeActive){
this.onChange(_3f9);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_3fb){
dojo.deprecated("dijit.form._FormWidget:setValue("+_3fb+") is deprecated.  Use attr('value',"+_3fb+") instead.","","2.0");
this.attr("value",_3fb);
},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.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:""}),postCreate:function(){
if(dojo.isIE||dojo.isWebKit){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_3fe,_3ff){
this.value=_3fe;
this._handleOnChange(_3fe,_3ff);
},_getValueAttr:function(_400){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){
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.isWebKit){
te=document.createEvent("Events");
te.initEvent("keypress",true,true);
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.target.dispatchEvent(te);
}
}
}
}});
}
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\"\r\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\r\n\t><span class=\"dijitReset dijitRight dijitInline\"\r\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \r\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \r\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \r\n\t\t\t\t></span \r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \r\n\t\t\t\t\tid=\"${id}_label\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\r\n\t\t\t\t></span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",attributeMap:dojo.delegate(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"&&!(this.type=="submit"||this.type=="reset")){
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 _406=dijit.byNode(node);
if(_406&&typeof _406._onSubmit=="function"){
_406._onSubmit(e);
break;
}
}
}
}
},_setValueAttr:function(_407){
var attr=this.attributeMap.value||"";
if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){
if(_407!=this.value){
console.debug("Cannot change the value attribute on a Button widget.");
}
}
},_fillContent:function(_409){
if(_409&&!("label" in this.params)){
this.attr("label",_409.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(_40c){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_40c);
},_setLabelAttr:function(_40d){
this.containerNode.innerHTML=this.label=_40d;
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\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\r\n\t><span class='dijitReset dijitRight dijitInline'\r\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \r\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\r\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \r\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" \r\n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \r\n\t\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",_fillContent:function(){
if(this.srcNodeRef){
var _40e=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_40e[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _40f=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_40f);
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 _412=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;
if(!_412||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 _416=this.dropDown;
if(!_416){
return;
}
if(!this._opened){
if(_416.href&&!_416.isLoaded){
var self=this;
var _418=dojo.connect(_416,"onLoad",function(){
dojo.disconnect(_418);
self._openDropDown();
});
_416.refresh();
return;
}else{
this._openDropDown();
}
}else{
this._closeDropDown();
}
},_openDropDown:function(){
var _419=this.dropDown;
var _41a=_419.domNode.style.width;
var self=this;
dijit.popup.open({parent:this,popup:_419,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(){
_419.domNode.style.width=_41a;
self.popupStateNode.removeAttribute("popupActive");
self._opened=false;
}});
if(this.domNode.offsetWidth>_419.domNode.offsetWidth){
var _41c=null;
if(!this.isLeftToRight()){
_41c=_419.domNode.parentNode;
var _41d=_41c.offsetLeft+_41c.offsetWidth;
}
dojo.marginBox(_419.domNode,{w:this.domNode.offsetWidth});
if(_41c){
_41c.style.left=_41d-this.domNode.offsetWidth+"px";
}
}
this.popupStateNode.setAttribute("popupActive","true");
this._opened=true;
if(_419.focus){
_419.focus();
}
},_closeDropDown:function(_41e){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_41e){
this.focus();
}
this._opened=false;
}
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\r\n\t\t></td\r\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\tstateModifier=\"DownArrow\"\r\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",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(_426){
this.checked=_426;
dojo.attr(this.focusNode||this.domNode,"checked",_426);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_426);
this._setStateClass();
this._handleOnChange(_426,true);
},setChecked:function(_427){
dojo.deprecated("setChecked("+_427+") is deprecated. Use attr('checked',"+_427+") instead.","","2.0");
this.attr("checked",_427);
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}
if(!dojo._hasResource["dojox.fx._core"]){
dojo._hasResource["dojox.fx._core"]=true;
dojo.provide("dojox.fx._core");
dojox.fx._Line=function(_428,end){
this.start=_428;
this.end=end;
var _42a=dojo.isArray(_428),d=(_42a?[]:end-_428);
if(_42a){
dojo.forEach(this.start,function(s,i){
d[i]=this.end[i]-s;
},this);
this.getValue=function(n){
var res=[];
dojo.forEach(this.start,function(s,i){
res[i]=(d[i]*n)+s;
},this);
return res;
};
}else{
this.getValue=function(n){
return (d*n)+this.start;
};
}
};
}
if(!dojo._hasResource["dojox.fx.scroll"]){
dojo._hasResource["dojox.fx.scroll"]=true;
dojo.provide("dojox.fx.scroll");
dojo.experimental("dojox.fx.scroll");
dojox.fx.smoothScroll=function(args){
if(!args.target){
args.target=dojo.coords(args.node,true);
}
var _434=dojo[(dojo.isIE?"isObject":"isFunction")](args["win"].scrollTo);
var _435=(_434)?(function(val){
args.win.scrollTo(val[0],val[1]);
}):(function(val){
args.win.scrollLeft=val[0];
args.win.scrollTop=val[1];
});
var anim=new dojo._Animation(dojo.mixin({beforeBegin:function(){
if(this.curve){
delete this.curve;
}
var _439=_434?dojo._docScroll():{x:args.win.scrollLeft,y:args.win.scrollTop};
anim.curve=new dojox.fx._Line([_439.x,_439.y],[args.target.x,args.target.y]);
},onAnimate:_435},args));
return anim;
};
}
if(!dojo._hasResource["dojo.fx.easing"]){
dojo._hasResource["dojo.fx.easing"]=true;
dojo.provide("dojo.fx.easing");
dojo.fx.easing={linear:function(n){
return n;
},quadIn:function(n){
return Math.pow(n,2);
},quadOut:function(n){
return n*(n-2)*-1;
},quadInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,2)/2;
}
return -1*((--n)*(n-2)-1)/2;
},cubicIn:function(n){
return Math.pow(n,3);
},cubicOut:function(n){
return Math.pow(n-1,3)+1;
},cubicInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,3)/2;
}
n-=2;
return (Math.pow(n,3)+2)/2;
},quartIn:function(n){
return Math.pow(n,4);
},quartOut:function(n){
return -1*(Math.pow(n-1,4)-1);
},quartInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,4)/2;
}
n-=2;
return -1/2*(Math.pow(n,4)-2);
},quintIn:function(n){
return Math.pow(n,5);
},quintOut:function(n){
return Math.pow(n-1,5)+1;
},quintInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,5)/2;
}
n-=2;
return (Math.pow(n,5)+2)/2;
},sineIn:function(n){
return -1*Math.cos(n*(Math.PI/2))+1;
},sineOut:function(n){
return Math.sin(n*(Math.PI/2));
},sineInOut:function(n){
return -1*(Math.cos(Math.PI*n)-1)/2;
},expoIn:function(n){
return (n==0)?0:Math.pow(2,10*(n-1));
},expoOut:function(n){
return (n==1)?1:(-1*Math.pow(2,-10*n)+1);
},expoInOut:function(n){
if(n==0){
return 0;
}
if(n==1){
return 1;
}
n=n*2;
if(n<1){
return Math.pow(2,10*(n-1))/2;
}
--n;
return (-1*Math.pow(2,-10*n)+2)/2;
},circIn:function(n){
return -1*(Math.sqrt(1-Math.pow(n,2))-1);
},circOut:function(n){
n=n-1;
return Math.sqrt(1-Math.pow(n,2));
},circInOut:function(n){
n=n*2;
if(n<1){
return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);
}
n-=2;
return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);
},backIn:function(n){
var s=1.70158;
return Math.pow(n,2)*((s+1)*n-s);
},backOut:function(n){
n=n-1;
var s=1.70158;
return Math.pow(n,2)*((s+1)*n+s)+1;
},backInOut:function(n){
var s=1.70158*1.525;
n=n*2;
if(n<1){
return (Math.pow(n,2)*((s+1)*n-s))/2;
}
n-=2;
return (Math.pow(n,2)*((s+1)*n+s)+2)/2;
},elasticIn:function(n){
if(n==0||n==1){
return n;
}
var p=0.3;
var s=p/4;
n=n-1;
return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);
},elasticOut:function(n){
if(n==0||n==1){
return n;
}
var p=0.3;
var s=p/4;
return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;
},elasticInOut:function(n){
if(n==0){
return 0;
}
n=n*2;
if(n==2){
return 1;
}
var p=0.3*1.5;
var s=p/4;
if(n<1){
n-=1;
return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));
}
n-=1;
return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;
},bounceIn:function(n){
return (1-dojo.fx.easing.bounceOut(1-n));
},bounceOut:function(n){
var s=7.5625;
var p=2.75;
var l;
if(n<(1/p)){
l=s*Math.pow(n,2);
}else{
if(n<(2/p)){
n-=(1.5/p);
l=s*Math.pow(n,2)+0.75;
}else{
if(n<(2.5/p)){
n-=(2.25/p);
l=s*Math.pow(n,2)+0.9375;
}else{
n-=(2.625/p);
l=s*Math.pow(n,2)+0.984375;
}
}
}
return l;
},bounceInOut:function(n){
if(n<0.5){
return dojo.fx.easing.bounceIn(n*2)/2;
}
return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;
}};
}
if(!dojo._hasResource["dojox.image.ThumbnailPicker"]){
dojo._hasResource["dojox.image.ThumbnailPicker"]=true;
dojo.provide("dojox.image.ThumbnailPicker");
dojo.experimental("dojox.image.ThumbnailPicker");
dojo.declare("dojox.image.ThumbnailPicker",[dijit._Widget,dijit._Templated],{imageStore:null,request:null,size:500,thumbHeight:75,thumbWidth:100,useLoadNotifier:false,useHyperlink:false,hyperlinkTarget:"new",isClickable:true,isScrollable:true,isHorizontal:true,autoLoad:true,linkAttr:"link",imageThumbAttr:"imageUrlThumb",imageLargeAttr:"imageUrl",pageSize:20,titleAttr:"title",templateString:"<div dojoAttachPoint=\"outerNode\" class=\"thumbOuter\">\r\n\t<div dojoAttachPoint=\"navPrev\" class=\"thumbNav thumbClickable\">\r\n\t</div>\r\n\t<div dojoAttachPoint=\"thumbScroller\" class=\"thumbScroller\">\r\n\t  <div dojoAttachPoint=\"thumbsNode\" class=\"thumbWrapper\"></div>\r\n\t</div>\r\n\t<div dojoAttachPoint=\"navNext\" class=\"thumbNav thumbClickable\">\r\n\t</div>\r\n</div>\r\n",_thumbs:[],_thumbIndex:0,_maxPhotos:0,_loadedImages:{},postCreate:function(){
this.widgetid=this.id;
this.inherited(arguments);
this.pageSize=Number(this.pageSize);
this._scrollerSize=this.size-(51*2);
var _465=this._sizeProperty=this.isHorizontal?"width":"height";
dojo.style(this.outerNode,"textAlign","center");
dojo.style(this.outerNode,_465,this.size+"px");
dojo.style(this.thumbScroller,_465,this._scrollerSize+"px");
if(this.useHyperlink){
dojo.subscribe(this.getClickTopicName(),this,function(_466){
var _467=_466.index;
var url=this.imageStore.getValue(_466.data,this.linkAttr);
if(!url){
return;
}
if(this.hyperlinkTarget=="new"){
window.open(url);
}else{
window.location=url;
}
});
}
if(this.isClickable){
dojo.addClass(this.thumbsNode,"thumbClickable");
}
this._totalSize=0;
this.init();
},init:function(){
if(this.isInitialized){
return false;
}
var _469=this.isHorizontal?"Horiz":"Vert";
dojo.addClass(this.navPrev,"prev"+_469);
dojo.addClass(this.navNext,"next"+_469);
dojo.addClass(this.thumbsNode,"thumb"+_469);
dojo.addClass(this.outerNode,"thumb"+_469);
this.connect(this.navPrev,"onclick","_prev");
this.connect(this.navNext,"onclick","_next");
this.isInitialized=true;
if(this.isHorizontal){
this._offsetAttr="offsetLeft";
this._sizeAttr="offsetWidth";
this._scrollAttr="scrollLeft";
}else{
this._offsetAttr="offsetTop";
this._sizeAttr="offsetHeight";
this._scrollAttr="scrollTop";
}
this._updateNavControls();
if(this.imageStore&&this.request){
this._loadNextPage();
}
return true;
},getClickTopicName:function(){
return (this.widgetId||this.id)+"/select";
},getShowTopicName:function(){
return (this.widgetId||this.id)+"/show";
},setDataStore:function(_46a,_46b,_46c){
this.reset();
this.request={query:{},start:_46b.start||0,count:_46b.count||10,onBegin:dojo.hitch(this,function(_46d){
this._maxPhotos=_46d;
})};
if(_46b.query){
dojo.mixin(this.request.query,_46b.query);
}
if(_46c){
dojo.forEach(["imageThumbAttr","imageLargeAttr","linkAttr","titleAttr"],function(_46e){
if(_46c[_46e]){
this[_46e]=_46c[_46e];
}
},this);
}
this.request.start=0;
this.request.count=this.pageSize;
this.imageStore=_46a;
if(!this.init()){
this._loadNextPage();
}
},reset:function(){
this._loadedImages={};
dojo.forEach(this._thumbs,function(img){
if(img){
if(img.parentNode){
img.parentNode.removeChild(img);
}
}
});
this._thumbs=[];
this.isInitialized=false;
this._noImages=true;
},isVisible:function(_470){
var img=this._thumbs[_470];
if(!img){
return false;
}
var pos=this.isHorizontal?"offsetLeft":"offsetTop";
var size=this.isHorizontal?"offsetWidth":"offsetHeight";
var _474=this.isHorizontal?"scrollLeft":"scrollTop";
var _475=img[pos]-this.thumbsNode[pos];
return (_475>=this.thumbScroller[_474]&&_475+img[size]<=this.thumbScroller[_474]+this._scrollerSize);
},_next:function(){
var pos=this.isHorizontal?"offsetLeft":"offsetTop";
var size=this.isHorizontal?"offsetWidth":"offsetHeight";
var _478=this.thumbsNode[pos];
var _479=this._thumbs[this._thumbIndex];
var _47a=_479[pos]-_478;
var _47b=-1,img;
for(var i=this._thumbIndex+1;i<this._thumbs.length;i++){
img=this._thumbs[i];
if(img[pos]-_478+img[size]-_47a>this._scrollerSize){
this._showThumbs(i);
return;
}
}
},_prev:function(){
if(this.thumbScroller[this.isHorizontal?"scrollLeft":"scrollTop"]==0){
return;
}
var pos=this.isHorizontal?"offsetLeft":"offsetTop";
var size=this.isHorizontal?"offsetWidth":"offsetHeight";
var _480=this._thumbs[this._thumbIndex];
var _481=_480[pos]-this.thumbsNode[pos];
var _482=-1,img;
for(var i=this._thumbIndex-1;i>-1;i--){
img=this._thumbs[i];
if(_481-img[pos]>this._scrollerSize){
this._showThumbs(i+1);
return;
}
}
this._showThumbs(0);
},_checkLoad:function(img,_486){
dojo.publish(this.getShowTopicName(),[{index:_486}]);
this._updateNavControls();
this._loadingImages={};
this._thumbIndex=_486;
if(this.thumbsNode.offsetWidth-img.offsetLeft<(this._scrollerSize*2)){
this._loadNextPage();
}
},_showThumbs:function(_487){
_487=Math.min(Math.max(_487,0),this._maxPhotos);
if(_487>=this._maxPhotos){
return;
}
var img=this._thumbs[_487];
if(!img){
return;
}
var left=img.offsetLeft-this.thumbsNode.offsetLeft;
var top=img.offsetTop-this.thumbsNode.offsetTop;
var _48b=this.isHorizontal?left:top;
if((_48b>=this.thumbScroller[this._scrollAttr])&&(_48b+img[this._sizeAttr]<=this.thumbScroller[this._scrollAttr]+this._scrollerSize)){
return;
}
if(this.isScrollable){
var _48c=this.isHorizontal?{x:left,y:0}:{x:0,y:top};
dojox.fx.smoothScroll({target:_48c,win:this.thumbScroller,duration:300,easing:dojo.fx.easing.easeOut,onEnd:dojo.hitch(this,"_checkLoad",img,_487)}).play(10);
}else{
if(this.isHorizontal){
this.thumbScroller.scrollLeft=left;
}else{
this.thumbScroller.scrollTop=top;
}
this._checkLoad(img,_487);
}
},markImageLoaded:function(_48d){
var _48e=dojo.byId("loadingDiv_"+this.widgetid+"_"+_48d);
if(_48e){
this._setThumbClass(_48e,"thumbLoaded");
}
this._loadedImages[_48d]=true;
},_setThumbClass:function(_48f,_490){
if(!this.autoLoad){
return;
}
dojo.addClass(_48f,_490);
},_loadNextPage:function(){
if(this._loadInProgress){
return;
}
this._loadInProgress=true;
var _491=this.request.start+(this._noImages?0:this.pageSize);
var pos=_491;
while(pos<this._thumbs.length&&this._thumbs[pos]){
pos++;
}
var _493=function(_494,_495){
if(_494&&_494.length){
var _496=0;
var _497=dojo.hitch(this,function(){
if(_496>=_494.length){
this._loadInProgress=false;
return;
}
var _498=_496++;
this._loadImage(_494[_498],pos+_498,_497);
});
_497();
this._updateNavControls();
}else{
this._loadInProgress=false;
}
};
var _499=function(){
this._loadInProgress=false;
console.debug("Error getting items");
};
this.request.onComplete=dojo.hitch(this,_493);
this.request.onError=dojo.hitch(this,_499);
this.request.start=_491;
this._noImages=false;
this.imageStore.fetch(this.request);
},_loadImage:function(data,_49b,_49c){
var url=this.imageStore.getValue(data,this.imageThumbAttr);
var img=document.createElement("img");
var _49f=document.createElement("div");
_49f.setAttribute("id","img_"+this.widgetid+"_"+_49b);
_49f.appendChild(img);
img._index=_49b;
img._data=data;
this._thumbs[_49b]=_49f;
var _4a0;
if(this.useLoadNotifier){
_4a0=document.createElement("div");
_4a0.setAttribute("id","loadingDiv_"+this.widgetid+"_"+_49b);
this._setThumbClass(_4a0,this._loadedImages[_49b]?"thumbLoaded":"thumbNotifier");
_49f.appendChild(_4a0);
}
var size=dojo.marginBox(this.thumbsNode);
var _4a2;
var _4a3;
if(this.isHorizontal){
_4a2=this.thumbWidth;
_4a3="w";
}else{
_4a2=this.thumbHeight;
_4a3="h";
}
size=size[_4a3];
var sl=this.thumbScroller.scrollLeft,st=this.thumbScroller.scrollTop;
dojo.style(this.thumbsNode,this._sizeProperty,(size+_4a2+20)+"px");
this.thumbScroller.scrollLeft=sl;
this.thumbScroller.scrollTop=st;
this.thumbsNode.appendChild(_49f);
dojo.connect(img,"onload",this,function(){
var _4a6=dojo.marginBox(img)[_4a3];
this._totalSize+=(Number(_4a6)+4);
dojo.style(this.thumbsNode,this._sizeProperty,this._totalSize+"px");
if(this.useLoadNotifier){
dojo.style(_4a0,"width",(img.width-4)+"px");
}
dojo.style(_49f,"width",img.width+"px");
_49c();
return false;
});
dojo.connect(img,"onclick",this,function(evt){
dojo.publish(this.getClickTopicName(),[{index:evt.target._index,data:evt.target._data,url:img.getAttribute("src"),largeUrl:this.imageStore.getValue(data,this.imageLargeAttr),title:this.imageStore.getValue(data,this.titleAttr),link:this.imageStore.getValue(data,this.linkAttr)}]);
return false;
});
dojo.addClass(img,"imageGalleryThumb");
img.setAttribute("src",url);
var _4a8=this.imageStore.getValue(data,this.titleAttr);
if(_4a8){
img.setAttribute("title",_4a8);
}
this._updateNavControls();
},_updateNavControls:function(){
var _4a9=[];
var _4aa=function(node,add){
var fn=add?"addClass":"removeClass";
dojo[fn](node,"enabled");
dojo[fn](node,"thumbClickable");
};
var pos=this.isHorizontal?"scrollLeft":"scrollTop";
var size=this.isHorizontal?"offsetWidth":"offsetHeight";
_4aa(this.navPrev,(this.thumbScroller[pos]>0));
var last=this._thumbs[this._thumbs.length-1];
var _4b1=(this.thumbScroller[pos]+this._scrollerSize<this.thumbsNode[size]);
_4aa(this.navNext,_4b1);
}});
}
if(!dojo._hasResource["dojox.image.SlideShow"]){
dojo._hasResource["dojox.image.SlideShow"]=true;
dojo.provide("dojox.image.SlideShow");
dojo.declare("dojox.image.SlideShow",[dijit._Widget,dijit._Templated],{imageHeight:375,imageWidth:500,title:"",titleTemplate:"${title} <span class=\"slideShowCounterText\">(${current} of ${total})</span>",noLink:false,loop:true,hasNav:true,images:[],pageSize:20,autoLoad:true,autoStart:false,fixedHeight:false,imageStore:null,linkAttr:"link",imageLargeAttr:"imageUrl",titleAttr:"title",slideshowInterval:3,templateString:"<div dojoAttachPoint=\"outerNode\" class=\"slideShowWrapper\">\r\n\t<div style=\"position:relative;\" dojoAttachPoint=\"innerWrapper\">\r\n\t\t<div class=\"slideShowNav\" dojoAttachEvent=\"onclick: _handleClick\">\r\n\t\t\t<div class=\"dijitInline slideShowTitle\" dojoAttachPoint=\"titleNode\">${title}</div>\r\n\t\t</div>\r\n\t\t<div dojoAttachPoint=\"navNode\" class=\"slideShowCtrl\" dojoAttachEvent=\"onclick: _handleClick\">\r\n\t\t\t<span dojoAttachPoint=\"navPrev\" class=\"slideShowCtrlPrev\"></span>\r\n\t\t\t<span dojoAttachPoint=\"navPlay\" class=\"slideShowCtrlPlay\"></span>\r\n\t\t\t<span dojoAttachPoint=\"navNext\" class=\"slideShowCtrlNext\"></span>\r\n\t\t</div>\r\n\t\t<div dojoAttachPoint=\"largeNode\" class=\"slideShowImageWrapper\"></div>\t\t\r\n\t\t<div dojoAttachPoint=\"hiddenNode\" class=\"slideShowHidden\"></div>\r\n\t</div>\r\n</div>\r\n",_imageCounter:0,_tmpImage:null,_request:null,postCreate:function(){
this.inherited(arguments);
var img=document.createElement("img");
img.setAttribute("width",this.imageWidth);
img.setAttribute("height",this.imageHeight);
if(this.hasNav){
dojo.connect(this.outerNode,"onmouseover",this,function(evt){
try{
this._showNav();
}
catch(e){
}
});
dojo.connect(this.outerNode,"onmouseout",this,function(evt){
try{
this._hideNav(evt);
}
catch(e){
}
});
}
this.outerNode.style.width=this.imageWidth+"px";
img.setAttribute("src",this._blankGif);
var _4b5=this;
this.largeNode.appendChild(img);
this._tmpImage=this._currentImage=img;
this._fitSize(true);
this._loadImage(0,dojo.hitch(this,"showImage",0));
this._calcNavDimensions();
},setDataStore:function(_4b6,_4b7,_4b8){
this.reset();
var _4b9=this;
this._request={query:{},start:_4b7.start||0,count:_4b7.count||this.pageSize,onBegin:function(_4ba,_4bb){
_4b9.maxPhotos=_4ba;
}};
if(_4b7.query){
dojo.mixin(this._request.query,_4b7.query);
}
if(_4b8){
dojo.forEach(["imageLargeAttr","linkAttr","titleAttr"],function(_4bc){
if(_4b8[_4bc]){
this[_4bc]=_4b8[_4bc];
}
},this);
}
var _4bd=function(_4be){
_4b9.maxPhotos=_4be.length;
_4b9.showImage(_4b7.start||0);
_4b9._request.onComplete=null;
if(_4b9.autoStart){
_4b9.toggleSlideShow();
}
};
this.imageStore=_4b6;
this._request.onComplete=_4bd;
this._request.start=0;
this.imageStore.fetch(this._request);
},reset:function(){
while(this.largeNode.firstChild){
this.largeNode.removeChild(this.largeNode.firstChild);
}
this.largeNode.appendChild(this._tmpImage);
while(this.hiddenNode.firstChild){
this.hiddenNode.removeChild(this.hiddenNode.firstChild);
}
dojo.forEach(this.images,function(img){
if(img&&img.parentNode){
img.parentNode.removeChild(img);
}
});
this.images=[];
this.isInitialized=false;
this._imageCounter=0;
},isImageLoaded:function(_4c0){
return this.images&&this.images.length>_4c0&&this.images[_4c0];
},moveImageLoadingPointer:function(_4c1){
this._imageCounter=_4c1;
},destroy:function(){
if(this._slideId){
this._stop();
}
this.inherited(arguments);
},showNextImage:function(_4c2,_4c3){
if(_4c2&&this._timerCancelled){
return false;
}
if(this.imageIndex+1>=this.maxPhotos){
if(_4c2&&(this.loop||_4c3)){
this.imageIndex=-1;
}else{
if(this._slideId){
this._stop();
}
return false;
}
}
this.showImage(this.imageIndex+1,dojo.hitch(this,function(){
if(_4c2){
this._startTimer();
}
}));
return true;
},toggleSlideShow:function(){
if(this._slideId){
this._stop();
}else{
dojo.toggleClass(this.domNode,"slideShowPaused");
this._timerCancelled=false;
if(this.images[this.imageIndex]&&this.images[this.imageIndex]._img.complete){
var _4c4=this.showNextImage(true,true);
if(!_4c4){
this._stop();
}
}else{
var idx=this.imageIndex;
var _4c6=dojo.subscribe(this.getShowTopicName(),dojo.hitch(this,function(info){
setTimeout(dojo.hitch(this,function(){
if(info.index==idx){
var _4c8=this.showNextImage(true,true);
if(!_4c8){
this._stop();
}
dojo.unsubscribe(_4c6);
}
}),this.slideshowInterval*1000);
}));
dojo.publish(this.getShowTopicName(),[{index:idx,title:"",url:""}]);
}
}
},getShowTopicName:function(){
return (this.widgetId||this.id)+"/imageShow";
},getLoadTopicName:function(){
return (this.widgetId?this.widgetId:this.id)+"/imageLoad";
},showImage:function(_4c9,_4ca){
if(!_4ca&&this._slideId){
this.toggleSlideShow();
}
var _4cb=this;
var _4cc=this.largeNode.getElementsByTagName("div");
this.imageIndex=_4c9;
var _4cd=function(){
if(_4cb.images[_4c9]){
while(_4cb.largeNode.firstChild){
_4cb.largeNode.removeChild(_4cb.largeNode.firstChild);
}
dojo.style(_4cb.images[_4c9],"opacity",0);
_4cb.largeNode.appendChild(_4cb.images[_4c9]);
_4cb._currentImage=_4cb.images[_4c9]._img;
_4cb._fitSize();
var _4ce=function(a,b,c){
var img=_4cb.images[_4c9].firstChild;
if(img.tagName.toLowerCase()!="img"){
img=img.firstChild;
}
var _4d3=img.getAttribute("title")||"";
if(_4cb._navShowing){
_4cb._showNav(true);
}
dojo.publish(_4cb.getShowTopicName(),[{index:_4c9,title:_4d3,url:img.getAttribute("src")}]);
if(_4ca){
_4ca(a,b,c);
}
_4cb._setTitle(_4d3);
};
dojo.fadeIn({node:_4cb.images[_4c9],duration:300,onEnd:_4ce}).play();
}else{
_4cb._loadImage(_4c9,function(){
dojo.publish(_4cb.getLoadTopicName(),[_4c9]);
_4cb.showImage(_4c9,_4ca);
});
}
};
if(_4cc&&_4cc.length>0){
dojo.fadeOut({node:_4cc[0],duration:300,onEnd:function(){
_4cb.hiddenNode.appendChild(_4cc[0]);
_4cd();
}}).play();
}else{
_4cd();
}
},_fitSize:function(_4d4){
if(!this.fixedHeight||_4d4){
var _4d5=(this._currentImage.height+(this.hasNav?20:0));
dojo.style(this.innerWrapper,"height",_4d5+"px");
return;
}
dojo.style(this.largeNode,"paddingTop",this._getTopPadding()+"px");
},_getTopPadding:function(){
if(!this.fixedHeight){
return 0;
}
return (this.imageHeight-this._currentImage.height)/2;
},_loadNextImage:function(){
if(!this.autoLoad){
return;
}
while(this.images.length>=this._imageCounter&&this.images[this._imageCounter]){
this._imageCounter++;
}
this._loadImage(this._imageCounter);
},_loadImage:function(_4d6,_4d7){
if(this.images[_4d6]||!this._request){
return;
}
var _4d8=_4d6-(_4d6%this.pageSize);
this._request.start=_4d8;
this._request.onComplete=function(_4d9){
var diff=_4d6-_4d8;
if(_4d9&&_4d9.length>diff){
_4db(_4d9[diff]);
}else{
}
};
var _4dc=this;
var _4db=function(item){
var url=_4dc.imageStore.getValue(item,_4dc.imageLargeAttr);
var img=new Image();
var div=document.createElement("div");
div._img=img;
var link=_4dc.imageStore.getValue(item,_4dc.linkAttr);
if(!link||_4dc.noLink){
div.appendChild(img);
}else{
var a=document.createElement("a");
a.setAttribute("href",link);
a.setAttribute("target","_blank");
div.appendChild(a);
a.appendChild(img);
}
div.setAttribute("id",_4dc.id+"_imageDiv"+_4d6);
dojo.connect(img,"onload",function(){
_4dc._fitImage(img);
div.setAttribute("width",_4dc.imageWidth);
div.setAttribute("height",_4dc.imageHeight);
dojo.publish(_4dc.getLoadTopicName(),[_4d6]);
setTimeout(_4dc._loadNextImage,1);
if(_4d7){
_4d7();
}
});
_4dc.hiddenNode.appendChild(div);
var _4e3=document.createElement("div");
dojo.addClass(_4e3,"slideShowTitle");
div.appendChild(_4e3);
_4dc.images[_4d6]=div;
img.setAttribute("src",url);
var _4e4=_4dc.imageStore.getValue(item,_4dc.titleAttr);
if(_4e4){
img.setAttribute("title",_4e4);
}
};
this.imageStore.fetch(this._request);
},_stop:function(){
if(this._slideId){
clearTimeout(this._slideId);
}
this._slideId=null;
this._timerCancelled=true;
dojo.removeClass(this.domNode,"slideShowPaused");
},_prev:function(){
if(this.imageIndex<1){
return;
}
this.showImage(this.imageIndex-1);
},_next:function(){
this.showNextImage();
},_startTimer:function(){
var id=this.id;
this._slideId=setTimeout(function(){
dijit.byId(id).showNextImage(true);
},this.slideshowInterval*1000);
},_calcNavDimensions:function(){
dojo.style(this.navNode,"position","absolute");
dojo.style(this.navNode,"top","-10000px");
dojo._setOpacity(this.navNode,99);
this.navPlay._size=dojo.marginBox(this.navPlay);
this.navPrev._size=dojo.marginBox(this.navPrev);
this.navNext._size=dojo.marginBox(this.navNext);
dojo._setOpacity(this.navNode,0);
dojo.style(this.navNode,"position","");
dojo.style(this.navNode,"top","");
},_setTitle:function(_4e6){
this.titleNode.innerHTML=dojo.string.substitute(this.titleTemplate,{title:_4e6,current:1+this.imageIndex,total:this.maxPhotos||""});
},_fitImage:function(img){
var _4e8=img.width;
var _4e9=img.height;
if(_4e8>this.imageWidth){
_4e9=Math.floor(_4e9*(this.imageWidth/_4e8));
img.height=_4e9;
img.width=_4e8=this.imageWidth;
}
if(_4e9>this.imageHeight){
_4e8=Math.floor(_4e8*(this.imageHeight/_4e9));
img.height=this.imageHeight;
img.width=_4e8;
}
},_handleClick:function(e){
switch(e.target){
case this.navNext:
this._next();
break;
case this.navPrev:
this._prev();
break;
case this.navPlay:
this.toggleSlideShow();
break;
}
},_showNav:function(_4eb){
if(this._navShowing&&!_4eb){
return;
}
dojo.style(this.navNode,"marginTop","0px");
dojo.style(this.navPlay,"marginLeft","0px");
var _4ec=dojo.marginBox(this.outerNode);
var _4ed=this._currentImage.height-this.navPlay._size.h-10+this._getTopPadding();
if(_4ed>this._currentImage.height){
_4ed+=10;
}
dojo[this.imageIndex<1?"addClass":"removeClass"](this.navPrev,"slideShowCtrlHide");
dojo[this.imageIndex+1>=this.maxPhotos?"addClass":"removeClass"](this.navNext,"slideShowCtrlHide");
var _4ee=this;
if(this._navAnim){
this._navAnim.stop();
}
if(this._navShowing){
return;
}
this._navAnim=dojo.fadeIn({node:this.navNode,duration:300,onEnd:function(){
_4ee._navAnim=null;
}});
this._navAnim.play();
this._navShowing=true;
},_hideNav:function(e){
if(!e||!this._overElement(this.outerNode,e)){
var _4f0=this;
if(this._navAnim){
this._navAnim.stop();
}
this._navAnim=dojo.fadeOut({node:this.navNode,duration:300,onEnd:function(){
_4f0._navAnim=null;
}});
this._navAnim.play();
this._navShowing=false;
}
},_overElement:function(_4f1,e){
if(typeof (dojo)=="undefined"){
return false;
}
_4f1=dojo.byId(_4f1);
var m={x:e.pageX,y:e.pageY};
var bb=dojo._getBorderBox(_4f1);
var absl=dojo.coords(_4f1,true);
var left=absl.x;
return (m.x>=left&&m.x<=(left+bb.w)&&m.y>=absl.y&&m.y<=(top+bb.h));
}});
}
if(!dojo._hasResource["dojox.image.Gallery"]){
dojo._hasResource["dojox.image.Gallery"]=true;
dojo.provide("dojox.image.Gallery");
dojo.experimental("dojox.image.Gallery");
dojo.declare("dojox.image.Gallery",[dijit._Widget,dijit._Templated],{imageHeight:375,imageWidth:500,pageSize:dojox.image.SlideShow.prototype.pageSize,autoLoad:true,linkAttr:"link",imageThumbAttr:"imageUrlThumb",imageLargeAttr:"imageUrl",titleAttr:"title",slideshowInterval:3,templateString:"<div dojoAttachPoint=\"outerNode\" class=\"imageGalleryWrapper\">\r\n\t<div dojoAttachPoint=\"thumbPickerNode\"></div>\r\n\t<div dojoAttachPoint=\"slideShowNode\"></div>\r\n</div>\r\n",postCreate:function(){
this.widgetid=this.id;
this.inherited(arguments);
this.thumbPicker=new dojox.image.ThumbnailPicker({linkAttr:this.linkAttr,imageLargeAttr:this.imageLargeAttr,imageThumbAttr:this.imageThumbAttr,titleAttr:this.titleAttr,useLoadNotifier:true,size:this.imageWidth},this.thumbPickerNode);
this.slideShow=new dojox.image.SlideShow({imageHeight:this.imageHeight,imageWidth:this.imageWidth,autoLoad:this.autoLoad,linkAttr:this.linkAttr,imageLargeAttr:this.imageLargeAttr,titleAttr:this.titleAttr,slideshowInterval:this.slideshowInterval,pageSize:this.pageSize},this.slideShowNode);
var _4f7=this;
dojo.subscribe(this.slideShow.getShowTopicName(),function(_4f8){
_4f7.thumbPicker._showThumbs(_4f8.index);
});
dojo.subscribe(this.thumbPicker.getClickTopicName(),function(evt){
_4f7.slideShow.showImage(evt.index);
});
dojo.subscribe(this.thumbPicker.getShowTopicName(),function(evt){
_4f7.slideShow.moveImageLoadingPointer(evt.index);
});
dojo.subscribe(this.slideShow.getLoadTopicName(),function(_4fb){
_4f7.thumbPicker.markImageLoaded(_4fb);
});
this._centerChildren();
},setDataStore:function(_4fc,_4fd,_4fe){
this.thumbPicker.setDataStore(_4fc,_4fd,_4fe);
this.slideShow.setDataStore(_4fc,_4fd,_4fe);
},reset:function(){
this.slideShow.reset();
this.thumbPicker.reset();
},showNextImage:function(_4ff){
this.slideShow.showNextImage();
},toggleSlideshow:function(){
this.slideShow.toggleSlideshow();
},showImage:function(_500,_501){
this.slideShow.showImage(_500,_501);
},_centerChildren:function(){
var _502=dojo.marginBox(this.thumbPicker.outerNode);
var _503=dojo.marginBox(this.slideShow.outerNode);
var diff=(_502.w-_503.w)/2;
if(diff>0){
dojo.style(this.slideShow.outerNode,"marginLeft",diff+"px");
}else{
if(diff<0){
dojo.style(this.thumbPicker.outerNode,"marginLeft",(diff*-1)+"px");
}
}
}});
}
if(!dojo._hasResource["dojo.data.util.filter"]){
dojo._hasResource["dojo.data.util.filter"]=true;
dojo.provide("dojo.data.util.filter");
dojo.data.util.filter.patternToRegExp=function(_505,_506){
var rxp="^";
var c=null;
for(var i=0;i<_505.length;i++){
c=_505.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_505.charAt(i);
break;
case "*":
rxp+=".*";
break;
case "?":
rxp+=".";
break;
case "$":
case "^":
case "/":
case "+":
case ".":
case "|":
case "(":
case ")":
case "{":
case "}":
case "[":
case "]":
rxp+="\\";
default:
rxp+=c;
}
}
rxp+="$";
if(_506){
return new RegExp(rxp,"mi");
}else{
return new RegExp(rxp,"m");
}
};
}
if(!dojo._hasResource["dojo.data.util.sorter"]){
dojo._hasResource["dojo.data.util.sorter"]=true;
dojo.provide("dojo.data.util.sorter");
dojo.data.util.sorter.basicComparator=function(a,b){
var r=-1;
if(a===null){
a=undefined;
}
if(b===null){
b=undefined;
}
if(a==b){
r=0;
}else{
if(a>b||a==null){
r=1;
}
}
return r;
};
dojo.data.util.sorter.createSortFunction=function(_50d,_50e){
var _50f=[];
function _510(attr,dir){
return function(_513,_514){
var a=_50e.getValue(_513,attr);
var b=_50e.getValue(_514,attr);
var _517=null;
if(_50e.comparatorMap){
if(typeof attr!=="string"){
attr=_50e.getIdentity(attr);
}
_517=_50e.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;
}
_517=_517||dojo.data.util.sorter.basicComparator;
return dir*_517(a,b);
};
};
var _518;
for(var i=0;i<_50d.length;i++){
_518=_50d[i];
if(_518.attribute){
var _51a=(_518.descending)?-1:1;
_50f.push(_510(_518.attribute,_51a));
}
}
return function(rowA,rowB){
var i=0;
while(i<_50f.length){
var ret=_50f[i++](rowA,rowB);
if(ret!==0){
return ret;
}
}
return 0;
};
};
}
if(!dojo._hasResource["dojo.data.util.simpleFetch"]){
dojo._hasResource["dojo.data.util.simpleFetch"]=true;
dojo.provide("dojo.data.util.simpleFetch");
dojo.data.util.simpleFetch.fetch=function(_51f){
_51f=_51f||{};
if(!_51f.store){
_51f.store=this;
}
var self=this;
var _521=function(_522,_523){
if(_523.onError){
var _524=_523.scope||dojo.global;
_523.onError.call(_524,_522,_523);
}
};
var _525=function(_526,_527){
var _528=_527.abort||null;
var _529=false;
var _52a=_527.start?_527.start:0;
var _52b=(_527.count&&(_527.count!==Infinity))?(_52a+_527.count):_526.length;
_527.abort=function(){
_529=true;
if(_528){
_528.call(_527);
}
};
var _52c=_527.scope||dojo.global;
if(!_527.store){
_527.store=self;
}
if(_527.onBegin){
_527.onBegin.call(_52c,_526.length,_527);
}
if(_527.sort){
_526.sort(dojo.data.util.sorter.createSortFunction(_527.sort,self));
}
if(_527.onItem){
for(var i=_52a;(i<_526.length)&&(i<_52b);++i){
var item=_526[i];
if(!_529){
_527.onItem.call(_52c,item,_527);
}
}
}
if(_527.onComplete&&!_529){
var _52f=null;
if(!_527.onItem){
_52f=_526.slice(_52a,_52b);
}
_527.onComplete.call(_52c,_52f,_527);
}
};
this._fetchItems(_51f,_525,_521);
return _51f;
};
}
if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){
dojo._hasResource["dojo.data.ItemFileReadStore"]=true;
dojo.provide("dojo.data.ItemFileReadStore");
dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_530){
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._jsonFileUrl=_530.url;
this._jsonData=_530.data;
this._datatypeMap=_530.typeMap||{};
if(!this._datatypeMap["Date"]){
this._datatypeMap["Date"]={type:Date,deserialize:function(_531){
return dojo.date.stamp.fromISOString(_531);
}};
}
this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
this._itemsByIdentity=null;
this._storeRefPropName="_S";
this._itemNumPropName="_0";
this._rootItemPropName="_RI";
this._reverseRefMap="_RRM";
this._loadInProgress=false;
this._queuedFetches=[];
if(_530.urlPreventCache!==undefined){
this.urlPreventCache=_530.urlPreventCache?true:false;
}
if(_530.clearOnClose){
this.clearOnClose=true;
}
},url:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,_assertIsItem:function(item){
if(!this.isItem(item)){
throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");
}
},_assertIsAttribute:function(_533){
if(typeof _533!=="string"){
throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");
}
},getValue:function(item,_535,_536){
var _537=this.getValues(item,_535);
return (_537.length>0)?_537[0]:_536;
},getValues:function(item,_539){
this._assertIsItem(item);
this._assertIsAttribute(_539);
return item[_539]||[];
},getAttributes:function(item){
this._assertIsItem(item);
var _53b=[];
for(var key in item){
if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){
_53b.push(key);
}
}
return _53b;
},hasAttribute:function(item,_53e){
return this.getValues(item,_53e).length>0;
},containsValue:function(item,_540,_541){
var _542=undefined;
if(typeof _541==="string"){
_542=dojo.data.util.filter.patternToRegExp(_541,false);
}
return this._containsValue(item,_540,_541,_542);
},_containsValue:function(item,_544,_545,_546){
return dojo.some(this.getValues(item,_544),function(_547){
if(_547!==null&&!dojo.isObject(_547)&&_546){
if(_547.toString().match(_546)){
return true;
}
}else{
if(_545===_547){
return true;
}
}
});
},isItem:function(_548){
if(_548&&_548[this._storeRefPropName]===this){
if(this._arrayOfAllItems[_548[this._itemNumPropName]]===_548){
return true;
}
}
return false;
},isItemLoaded:function(_549){
return this.isItem(_549);
},loadItem:function(_54a){
this._assertIsItem(_54a.item);
},getFeatures:function(){
return this._features;
},getLabel:function(item){
if(this._labelAttr&&this.isItem(item)){
return this.getValue(item,this._labelAttr);
}
return undefined;
},getLabelAttributes:function(item){
if(this._labelAttr){
return [this._labelAttr];
}
return null;
},_fetchItems:function(_54d,_54e,_54f){
var self=this;
var _551=function(_552,_553){
var _554=[];
var i,key;
if(_552.query){
var _557;
var _558=_552.queryOptions?_552.queryOptions.ignoreCase:false;
var _559={};
for(key in _552.query){
_557=_552.query[key];
if(typeof _557==="string"){
_559[key]=dojo.data.util.filter.patternToRegExp(_557,_558);
}
}
for(i=0;i<_553.length;++i){
var _55a=true;
var _55b=_553[i];
if(_55b===null){
_55a=false;
}else{
for(key in _552.query){
_557=_552.query[key];
if(!self._containsValue(_55b,key,_557,_559[key])){
_55a=false;
}
}
}
if(_55a){
_554.push(_55b);
}
}
_54e(_554,_552);
}else{
for(i=0;i<_553.length;++i){
var item=_553[i];
if(item!==null){
_554.push(item);
}
}
_54e(_554,_552);
}
};
if(this._loadFinished){
_551(_54d,this._getItemsArray(_54d.queryOptions));
}else{
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_54d,filter:_551});
}else{
this._loadInProgress=true;
var _55d={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};
var _55e=dojo.xhrGet(_55d);
_55e.addCallback(function(data){
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
_551(_54d,self._getItemsArray(_54d.queryOptions));
self._handleQueuedFetches();
}
catch(e){
self._loadFinished=true;
self._loadInProgress=false;
_54f(e,_54d);
}
});
_55e.addErrback(function(_560){
self._loadInProgress=false;
_54f(_560,_54d);
});
var _561=null;
if(_54d.abort){
_561=_54d.abort;
}
_54d.abort=function(){
var df=_55e;
if(df&&df.fired===-1){
df.cancel();
df=null;
}
if(_561){
_561.call(_54d);
}
};
}
}else{
if(this._jsonData){
try{
this._loadFinished=true;
this._getItemsFromLoadedData(this._jsonData);
this._jsonData=null;
_551(_54d,this._getItemsArray(_54d.queryOptions));
}
catch(e){
_54f(e,_54d);
}
}else{
_54f(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_54d);
}
}
}
},_handleQueuedFetches:function(){
if(this._queuedFetches.length>0){
for(var i=0;i<this._queuedFetches.length;i++){
var _564=this._queuedFetches[i];
var _565=_564.args;
var _566=_564.filter;
if(_566){
_566(_565,this._getItemsArray(_565.queryOptions));
}else{
this.fetchItemByIdentity(_565);
}
}
this._queuedFetches=[];
}
},_getItemsArray:function(_567){
if(_567&&_567.deep){
return this._arrayOfAllItems;
}
return this._arrayOfTopLevelItems;
},close:function(_568){
if(this.clearOnClose&&(this._jsonFileUrl!=="")){
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._itemsByIdentity=null;
this._loadInProgress=false;
this._queuedFetches=[];
}
},_getItemsFromLoadedData:function(_569){
var _56a=false;
function _56b(_56c){
var _56d=((_56c!==null)&&(typeof _56c==="object")&&(!dojo.isArray(_56c)||_56a)&&(!dojo.isFunction(_56c))&&(_56c.constructor==Object||dojo.isArray(_56c))&&(typeof _56c._reference==="undefined")&&(typeof _56c._type==="undefined")&&(typeof _56c._value==="undefined"));
return _56d;
};
var self=this;
function _56f(_570){
self._arrayOfAllItems.push(_570);
for(var _571 in _570){
var _572=_570[_571];
if(_572){
if(dojo.isArray(_572)){
var _573=_572;
for(var k=0;k<_573.length;++k){
var _575=_573[k];
if(_56b(_575)){
_56f(_575);
}
}
}else{
if(_56b(_572)){
_56f(_572);
}
}
}
}
};
this._labelAttr=_569.label;
var i;
var item;
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=_569.items;
for(i=0;i<this._arrayOfTopLevelItems.length;++i){
item=this._arrayOfTopLevelItems[i];
if(dojo.isArray(item)){
_56a=true;
}
_56f(item);
item[this._rootItemPropName]=true;
}
var _578={};
var key;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
if(key!==this._rootItemPropName){
var _57a=item[key];
if(_57a!==null){
if(!dojo.isArray(_57a)){
item[key]=[_57a];
}
}else{
item[key]=[null];
}
}
_578[key]=key;
}
}
while(_578[this._storeRefPropName]){
this._storeRefPropName+="_";
}
while(_578[this._itemNumPropName]){
this._itemNumPropName+="_";
}
while(_578[this._reverseRefMap]){
this._reverseRefMap+="_";
}
var _57b;
var _57c=_569.identifier;
if(_57c){
this._itemsByIdentity={};
this._features["dojo.data.api.Identity"]=_57c;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
_57b=item[_57c];
var _57d=_57b[0];
if(!this._itemsByIdentity[_57d]){
this._itemsByIdentity[_57d]=item;
}else{
if(this._jsonFileUrl){
throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_57c+"].  Value collided: ["+_57d+"]");
}else{
if(this._jsonData){
throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_57c+"].  Value collided: ["+_57d+"]");
}
}
}
}
}else{
this._features["dojo.data.api.Identity"]=Number;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
item[this._storeRefPropName]=this;
item[this._itemNumPropName]=i;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
_57b=item[key];
for(var j=0;j<_57b.length;++j){
_57a=_57b[j];
if(_57a!==null&&typeof _57a=="object"){
if(_57a._type&&_57a._value){
var type=_57a._type;
var _580=this._datatypeMap[type];
if(!_580){
throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");
}else{
if(dojo.isFunction(_580)){
_57b[j]=new _580(_57a._value);
}else{
if(dojo.isFunction(_580.deserialize)){
_57b[j]=_580.deserialize(_57a._value);
}else{
throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
}
}
}
}
if(_57a._reference){
var _581=_57a._reference;
if(!dojo.isObject(_581)){
_57b[j]=this._itemsByIdentity[_581];
}else{
for(var k=0;k<this._arrayOfAllItems.length;++k){
var _583=this._arrayOfAllItems[k];
var _584=true;
for(var _585 in _581){
if(_583[_585]!=_581[_585]){
_584=false;
}
}
if(_584){
_57b[j]=_583;
}
}
}
if(this.referenceIntegrity){
var _586=_57b[j];
if(this.isItem(_586)){
this._addReferenceToMap(_586,item,key);
}
}
}else{
if(this.isItem(_57a)){
if(this.referenceIntegrity){
this._addReferenceToMap(_57a,item,key);
}
}
}
}
}
}
}
},_addReferenceToMap:function(_587,_588,_589){
},getIdentity:function(item){
var _58b=this._features["dojo.data.api.Identity"];
if(_58b===Number){
return item[this._itemNumPropName];
}else{
var _58c=item[_58b];
if(_58c){
return _58c[0];
}
}
return null;
},fetchItemByIdentity:function(_58d){
var item;
var _58f;
if(!this._loadFinished){
var self=this;
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_58d});
}else{
this._loadInProgress=true;
var _591={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};
var _592=dojo.xhrGet(_591);
_592.addCallback(function(data){
var _594=_58d.scope?_58d.scope:dojo.global;
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
item=self._getItemByIdentity(_58d.identity);
if(_58d.onItem){
_58d.onItem.call(_594,item);
}
self._handleQueuedFetches();
}
catch(error){
self._loadInProgress=false;
if(_58d.onError){
_58d.onError.call(_594,error);
}
}
});
_592.addErrback(function(_595){
self._loadInProgress=false;
if(_58d.onError){
var _596=_58d.scope?_58d.scope:dojo.global;
_58d.onError.call(_596,_595);
}
});
}
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
item=self._getItemByIdentity(_58d.identity);
if(_58d.onItem){
_58f=_58d.scope?_58d.scope:dojo.global;
_58d.onItem.call(_58f,item);
}
}
}
}else{
item=this._getItemByIdentity(_58d.identity);
if(_58d.onItem){
_58f=_58d.scope?_58d.scope:dojo.global;
_58d.onItem.call(_58f,item);
}
}
},_getItemByIdentity:function(_597){
var item=null;
if(this._itemsByIdentity){
item=this._itemsByIdentity[_597];
}else{
item=this._arrayOfAllItems[_597];
}
if(item===undefined){
item=null;
}
return item;
},getIdentityAttributes:function(item){
var _59a=this._features["dojo.data.api.Identity"];
if(_59a===Number){
return null;
}else{
return [_59a];
}
},_forceLoad:function(){
var self=this;
if(this._jsonFileUrl){
var _59c={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,sync:true};
var _59d=dojo.xhrGet(_59c);
_59d.addCallback(function(data){
try{
if(self._loadInProgress!==true&&!self._loadFinished){
self._getItemsFromLoadedData(data);
self._loadFinished=true;
}else{
if(self._loadInProgress){
throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");
}
}
}
catch(e){
console.log(e);
throw e;
}
});
_59d.addErrback(function(_59f){
throw _59f;
});
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
}
}
}});
dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);
}
dojo.i18n._preloadLocalizations("dojo.nls.2wheelchicago",["ROOT","ar","ca","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","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
