/*
	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.back"]){
dojo._hasResource["dojo.back"]=true;
dojo.provide("dojo.back");
(function(){
var _1=dojo.back;
function _2(){
var h=window.location.hash;
if(h.charAt(0)=="#"){
h=h.substring(1);
}
return dojo.isMozilla?h:decodeURIComponent(h);
};
function _4(h){
if(!h){
h="";
}
window.location.hash=encodeURIComponent(h);
_6=history.length;
};
if(dojo.exists("tests.back-hash")){
_1.getHash=_2;
_1.setHash=_4;
}
var _7=(typeof (window)!=="undefined")?window.location.href:"";
var _8=(typeof (window)!=="undefined")?_2():"";
var _9=null;
var _a=null;
var _b=null;
var _c=null;
var _d=[];
var _e=[];
var _f=false;
var _10=false;
var _6;
function _11(){
var _12=_e.pop();
if(!_12){
return;
}
var _13=_e[_e.length-1];
if(!_13&&_e.length==0){
_13=_9;
}
if(_13){
if(_13.kwArgs["back"]){
_13.kwArgs["back"]();
}else{
if(_13.kwArgs["backButton"]){
_13.kwArgs["backButton"]();
}else{
if(_13.kwArgs["handle"]){
_13.kwArgs.handle("back");
}
}
}
}
_d.push(_12);
};
_1.goBack=_11;
function _14(){
var _15=_d.pop();
if(!_15){
return;
}
if(_15.kwArgs["forward"]){
_15.kwArgs.forward();
}else{
if(_15.kwArgs["forwardButton"]){
_15.kwArgs.forwardButton();
}else{
if(_15.kwArgs["handle"]){
_15.kwArgs.handle("forward");
}
}
}
_e.push(_15);
};
_1.goForward=_14;
function _16(url,_18,_19){
return {"url":url,"kwArgs":_18,"urlHash":_19};
};
function _1a(url){
var _1c=url.split("?");
if(_1c.length<2){
return null;
}else{
return _1c[1];
}
};
function _1d(){
var url=(dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html"))+"?"+(new Date()).getTime();
_f=true;
if(_c){
dojo.isWebKit?_c.location=url:window.frames[_c.name].location=url;
}else{
}
return url;
};
function _1f(){
if(!_10){
var hsl=_e.length;
var _21=_2();
if((_21===_8||window.location.href==_7)&&(hsl==1)){
_11();
return;
}
if(_d.length>0){
if(_d[_d.length-1].urlHash===_21){
_14();
return;
}
}
if((hsl>=2)&&(_e[hsl-2])){
if(_e[hsl-2].urlHash===_21){
_11();
return;
}
}
if(dojo.isSafari&&dojo.isSafari<3){
var _22=history.length;
if(_22>_6){
_14();
}else{
if(_22<_6){
_11();
}
}
_6=_22;
}
}
};
_1.init=function(){
if(dojo.byId("dj_history")){
return;
}
var src=dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html");
document.write("<iframe style=\"border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;\" name=\"dj_history\" id=\"dj_history\" src=\""+src+"\"></iframe>");
};
_1.setInitialState=function(_24){
_9=_16(_7,_24,_8);
};
_1.addToHistory=function(_25){
_d=[];
var _26=null;
var url=null;
if(!_c){
if(dojo.config["useXDomain"]&&!dojo.config["dojoIframeHistoryUrl"]){
console.warn("dojo.back: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html");
}
_c=window.frames["dj_history"];
}
if(!_b){
_b=dojo.create("a",{style:{display:"none"}},dojo.body());
}
if(_25["changeUrl"]){
_26=""+((_25["changeUrl"]!==true)?_25["changeUrl"]:(new Date()).getTime());
if(_e.length==0&&_9.urlHash==_26){
_9=_16(url,_25,_26);
return;
}else{
if(_e.length>0&&_e[_e.length-1].urlHash==_26){
_e[_e.length-1]=_16(url,_25,_26);
return;
}
}
_10=true;
setTimeout(function(){
_4(_26);
_10=false;
},1);
_b.href=_26;
if(dojo.isIE){
url=_1d();
var _28=_25["back"]||_25["backButton"]||_25["handle"];
var tcb=function(_2a){
if(_2()!=""){
setTimeout(function(){
_4(_26);
},1);
}
_28.apply(this,[_2a]);
};
if(_25["back"]){
_25.back=tcb;
}else{
if(_25["backButton"]){
_25.backButton=tcb;
}else{
if(_25["handle"]){
_25.handle=tcb;
}
}
}
var _2b=_25["forward"]||_25["forwardButton"]||_25["handle"];
var tfw=function(_2d){
if(_2()!=""){
_4(_26);
}
if(_2b){
_2b.apply(this,[_2d]);
}
};
if(_25["forward"]){
_25.forward=tfw;
}else{
if(_25["forwardButton"]){
_25.forwardButton=tfw;
}else{
if(_25["handle"]){
_25.handle=tfw;
}
}
}
}else{
if(!dojo.isIE){
if(!_a){
_a=setInterval(_1f,200);
}
}
}
}else{
url=_1d();
}
_e.push(_16(url,_25,_26));
};
_1._iframeLoaded=function(evt,_2f){
var _30=_1a(_2f.href);
if(_30==null){
if(_e.length==1){
_11();
}
return;
}
if(_f){
_f=false;
return;
}
if(_e.length>=2&&_30==_1a(_e[_e.length-2].url)){
_11();
}else{
if(_d.length>0&&_30==_1a(_d[_d.length-1].url)){
_14();
}
}
};
})();
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_32){
return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){
if(_32&&_32.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_36){
if(!(arr instanceof Array)){
return re(arr);
}
var b=[];
for(var i=0;i<arr.length;i++){
b.push(re(arr[i]));
}
return dojo.regexp.group(b.join("|"),_36);
};
dojo.regexp.group=function(_39,_3a){
return "("+(_3a?"?:":"")+_39+")";
};
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function(_3b,_3c,_3d){
var c=document.cookie;
if(arguments.length==1){
var _3f=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(_3b)+"=([^;]*)"));
return _3f?decodeURIComponent(_3f[1]):undefined;
}else{
_3d=_3d||{};
var exp=_3d.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_3d.expires=d;
}
if(exp&&exp.toUTCString){
_3d.expires=exp.toUTCString();
}
_3c=encodeURIComponent(_3c);
var _42=_3b+"="+_3c,_43;
for(_43 in _3d){
_42+="; "+_43;
var _44=_3d[_43];
if(_44!==true){
_42+="="+_44;
}
}
document.cookie=_42;
}
};
dojo.cookie.isSupported=function(){
if(!("cookieEnabled" in navigator)){
this("__djCookieTest__","CookiesAllowed");
navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";
if(navigator.cookieEnabled){
this("__djCookieTest__","",{expires:-1});
}
}
return navigator.cookieEnabled;
};
}
if(!dojo._hasResource["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 _5e=n.scrollLeft,_5f=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_5e!=n.scrollLeft||_5f!=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(_60,e,_62){
this.node=dojo.byId(_60);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=_62,d=_60.ownerDocument,_65=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),_65];
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(_73,_74){
this.node=dojo.byId(_73);
if(!_74){
_74={};
}
this.handle=_74.handle?dojo.byId(_74.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_74.delay>0?_74.delay:0;
this.skip=_74.skip;
this.mover=_74.mover?_74.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(_75,_76){
return new dojo.dnd.Moveable(_76,_75);
},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(_7d){
dojo.publish("/dnd/move/start",[_7d]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_7e){
dojo.publish("/dnd/move/stop",[_7e]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_7f){
},onMove:function(_80,_81){
this.onMoving(_80,_81);
var s=_80.node.style;
s.left=_81.l+"px";
s.top=_81.t+"px";
this.onMoved(_80,_81);
},onMoving:function(_83,_84){
},onMoved:function(_85,_86){
}});
}
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(_87,_88){
return new dojo.dnd.move.constrainedMoveable(_88,_87);
},constructor:function(_89,_8a){
if(!_8a){
_8a={};
}
this.constraints=_8a.constraints;
this.within=_8a.within;
},onFirstMove:function(_8b){
var c=this.constraintBox=this.constraints.call(this,_8b);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_8b.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_8e,_8f){
var c=this.constraintBox,s=_8e.node.style;
s.left=(_8f.l<c.l?c.l:c.r<_8f.l?c.r:_8f.l)+"px";
s.top=(_8f.t<c.t?c.t:c.b<_8f.t?c.b:_8f.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_92,_93){
return new dojo.dnd.move.boxConstrainedMoveable(_93,_92);
},constructor:function(_94,_95){
var box=_95&&_95.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_97,_98){
return new dojo.dnd.move.parentConstrainedMoveable(_98,_97);
},constructor:function(_99,_9a){
var _9b=_9a&&_9a.area;
this.constraints=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_9b=="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(_9b=="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(_9b=="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,_a1){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _a2=function(_a3,e,_a5){
dojo.dnd.Mover.call(this,_a3,e,_a5);
};
dojo.extend(_a2,dojo.dnd.Mover.prototype);
dojo.extend(_a2,{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(_a1){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _a2;
};
dojo.dnd.move.boxConstrainedMover=function(box,_ae){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_ae);
};
dojo.dnd.move.parentConstrainedMover=function(_af,_b0){
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(_af=="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(_af=="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(_af=="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,_b0);
};
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 _b6=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_b7,_b8){
if(!_b8){
_b8={};
}
if(_b8.timeout&&typeof _b8.timeout=="number"&&_b8.timeout>=0){
this.timeout=_b8.timeout;
}
},markupFactory:function(_b9,_ba){
return new dojo.dnd.TimedMoveable(_ba,_b9);
},onMoveStop:function(_bb){
if(_bb._timer){
clearTimeout(_bb._timer);
_b6.call(this,_bb,_bb._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_bc,_bd){
_bc._leftTop=_bd;
if(!_bc._timer){
var _t=this;
_bc._timer=setTimeout(function(){
_bc._timer=null;
_b6.call(_t,_bc,_bc._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(_bf){
var _t=this;
dojo.mixin(_t,_bf);
_t.node=_bf.node;
_t._showArgs=dojo.mixin({},_bf);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},_bf);
_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(_c1){
return this.showAnim.play(_c1||0);
},hide:function(_c2){
return this.hideAnim.play(_c2||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_c4={_fire:function(evt,_c6){
if(this[evt]){
this[evt].apply(this,_c6||[]);
}
return this;
}};
var _c7=function(_c8){
this._index=-1;
this._animations=_c8||[];
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(_c7,{_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(_ca,_cb){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_cb&&this._current.status()=="playing"){
return this;
}
var _cc=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_cd=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_cf=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_cc);
d.disconnect(_cd);
d.disconnect(_cf);
});
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(_d3,_d4){
this.pause();
var _d5=this.duration*_d3;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_d5){
this._current=a;
return true;
}
_d5-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_d5/this._current.duration,_d4);
}
return this;
},stop:function(_d7){
if(this._current){
if(_d7){
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(_c7,_c4);
dojo.fx.chain=function(_da){
return new _c7(_da);
};
var _db=function(_dc){
this._animations=_dc||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_dc,function(a){
var _de=a.duration;
if(a.delay){
_de+=a.delay;
}
if(this.duration<_de){
this.duration=_de;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});
var _df=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
_df._connects.push(d.connect(_df._pseudoAnimation,evt,function(){
_df._fire(evt,arguments);
}));
});
};
d.extend(_db,{_doAction:function(_e1,_e2){
d.forEach(this._animations,function(a){
a[_e1].apply(a,_e2);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_e4,_e5){
var t=this._pseudoAnimation;
t[_e4].apply(t,_e5);
},play:function(_e7,_e8){
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(_e9,_ea){
var ms=this.duration*_e9;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_ea);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_ed){
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(_db,_c4);
dojo.fx.combine=function(_ee){
return new _db(_ee);
};
dojo.fx.wipeIn=function(_ef){
_ef.node=d.byId(_ef.node);
var _f0=_ef.node,s=_f0.style,o;
var _f3=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 _f4=d.style(_f0,"height");
return Math.max(_f4,1);
}
},end:function(){
return _f0.scrollHeight;
}}}},_ef));
d.connect(_f3,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return _f3;
};
dojo.fx.wipeOut=function(_f5){
var _f6=_f5.node=d.byId(_f5.node),s=_f6.style,o;
var _f9=d.animateProperty(d.mixin({properties:{height:{end:1}}},_f5));
d.connect(_f9,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(_f9,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return _f9;
};
dojo.fx.slideTo=function(_fa){
var _fb=_fa.node=d.byId(_fa.node),top=null,_fd=null;
var _fe=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
_fd=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.coords(n,true);
top=ret.y;
_fd=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=_fd+"px";
}
};
})(_fb);
_fe();
var anim=d.animateProperty(d.mixin({properties:{top:_fa.top||0,left:_fa.left||0}},_fa));
d.connect(anim,"beforeBegin",anim,_fe);
return anim;
};
})();
}
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 _104=dojo.doc;
if(_104.selection){
var s=_104.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _106=dojo.global;
var _107=_106.getSelection();
if(dojo.isString(_107)){
return !_107;
}else{
return !_107||_107.isCollapsed||!_107.toString();
}
}
},getBookmark:function(){
var _108,_109=dojo.doc.selection;
if(_109){
var _10a=_109.createRange();
if(_109.type.toUpperCase()=="CONTROL"){
if(_10a.length){
_108=[];
var i=0,len=_10a.length;
while(i<len){
_108.push(_10a.item(i++));
}
}else{
_108=null;
}
}else{
_108=_10a.getBookmark();
}
}else{
if(window.getSelection){
_109=dojo.global.getSelection();
if(_109){
_10a=_109.getRangeAt(0);
_108=_10a.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _108;
},moveToBookmark:function(_10d){
var _10e=dojo.doc;
if(_10e.selection){
var _10f;
if(dojo.isArray(_10d)){
_10f=_10e.body.createControlRange();
dojo.forEach(_10d,function(n){
_10f.addElement(n);
});
}else{
_10f=_10e.selection.createRange();
_10f.moveToBookmark(_10d);
}
_10f.select();
}else{
var _111=dojo.global.getSelection&&dojo.global.getSelection();
if(_111&&_111.removeAllRanges){
_111.removeAllRanges();
_111.addRange(_10d);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(menu,_113){
return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_113||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_113||dojo.global,dijit.getBookmark):null,openedForWindow:_113};
},focus:function(_114){
if(!_114){
return;
}
var node="node" in _114?_114.node:_114,_116=_114.bookmark,_117=_114.openedForWindow;
if(node){
var _118=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_118&&_118.focus){
try{
_118.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_116&&dojo.withGlobal(_117||dojo.global,dijit.isCollapsed)){
if(_117){
_117.focus();
}
try{
dojo.withGlobal(_117||dojo.global,dijit.moveToBookmark,null,[_116]);
}
catch(e){
}
}
},_activeStack:[],registerIframe:function(_119){
dijit.registerWin(_119.contentWindow,_119);
},registerWin:function(_11a,_11b){
dojo.connect(_11a.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_11b||evt.target||evt.srcElement);
});
var doc=_11a.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(_11b||evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(_11b||evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(_11b||evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(_11b||evt.target);
},true);
}
}
doc=null;
},_onBlurNode:function(node){
dijit._prevFocus=dijit._curFocus;
dijit._curFocus=null;
if(dijit._justMouseDowned){
return;
}
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
}
dijit._clearActiveWidgetsTimer=setTimeout(function(){
delete dijit._clearActiveWidgetsTimer;
dijit._setStack([]);
dijit._prevFocus=null;
},100);
},_onTouchNode:function(node){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _124=[];
try{
while(node){
if(node.dijitPopupParent){
node=dijit.byId(node.dijitPopupParent).domNode;
}else{
if(node.tagName&&node.tagName.toLowerCase()=="body"){
if(node===dojo.body()){
break;
}
node=dijit.getDocumentWindow(node.ownerDocument).frameElement;
}else{
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
_124.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_124);
},_onFocusNode:function(node){
if(!node){
return;
}
if(node.nodeType==9){
return;
}
dijit._onTouchNode(node);
if(node==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=node;
dojo.publish("focusNode",[node]);
},_setStack:function(_127){
var _128=dijit._activeStack;
dijit._activeStack=_127;
for(var _129=0;_129<Math.min(_128.length,_127.length);_129++){
if(_128[_129]!=_127[_129]){
break;
}
}
for(var i=_128.length-1;i>=_129;i--){
var _12b=dijit.byId(_128[i]);
if(_12b){
_12b._focused=false;
_12b._hasBeenBlurred=true;
if(_12b._onBlur){
_12b._onBlur();
}
if(_12b._setStateClass){
_12b._setStateClass();
}
dojo.publish("widgetBlur",[_12b]);
}
}
for(i=_129;i<_127.length;i++){
_12b=dijit.byId(_127[i]);
if(_12b){
_12b._focused=true;
if(_12b._onFocus){
_12b._onFocus();
}
if(_12b._setStateClass){
_12b._setStateClass();
}
dojo.publish("widgetFocus",[_12b]);
}
}
}});
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(_12c){
if(this._hash[_12c.id]){
throw new Error("Tried to register widget with id=="+_12c.id+" but that id is already registered");
}
this._hash[_12c.id]=_12c;
},remove:function(id){
delete this._hash[id];
},forEach:function(func){
for(var id in this._hash){
func(this._hash[id]);
}
},filter:function(_130){
var res=new dijit.WidgetSet();
this.forEach(function(_132){
if(_130(_132)){
res.add(_132);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_135){
return _135.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_136){
var id;
do{
id=_136+"_"+(_136 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_136]:dijit._widgetTypeCtr[_136]=0);
}while(dijit.byId(id));
return id;
};
dijit.findWidgets=function(root){
var _139=[];
function _13a(root){
var list=dojo.isIE?root.children:root.childNodes,i=0,node;
while(node=list[i++]){
if(node.nodeType!=1){
continue;
}
var _13f=node.getAttribute("widgetId");
if(_13f){
var _140=dijit.byId(_13f);
_139.push(_140);
}else{
_13a(node);
}
}
};
_13a(root);
return _139;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dojo.forEach(dijit.findWidgets(dojo.body()),function(_141){
if(_141.destroyRecursive){
_141.destroyRecursive();
}else{
if(_141.destroy){
_141.destroy();
}
}
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(node){
return dijit.registry.byId(node.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 _146=dojo.style(elem);
return (_146.visibility!="hidden")&&(_146.visibility!="collapsed")&&(_146.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function(elem){
if(dojo.hasAttr(elem,"disabled")){
return false;
}
var _148=dojo.hasAttr(elem,"tabindex");
var _149=dojo.attr(elem,"tabindex");
if(_148&&_149>=0){
return true;
}
var name=elem.nodeName.toLowerCase();
if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_148||_149>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(root){
var _14c,last,_14e,_14f,_150,_151;
var _152=function(_153){
dojo.query("> *",_153).forEach(function(_154){
var _155=dijit._isElementShown(_154);
if(_155&&dijit.isTabNavigable(_154)){
var _156=dojo.attr(_154,"tabindex");
if(!dojo.hasAttr(_154,"tabindex")||_156==0){
if(!_14c){
_14c=_154;
}
last=_154;
}else{
if(_156>0){
if(!_14e||_156<_14f){
_14f=_156;
_14e=_154;
}
if(!_150||_156>=_151){
_151=_156;
_150=_154;
}
}
}
}
if(_155&&_154.nodeName.toUpperCase()!="SELECT"){
_152(_154);
}
});
};
if(dijit._isElementShown(root)){
_152(root);
}
return {first:_14c,last:last,lowest:_14e,highest:_150};
};
dijit.getFirstInTabbingOrder=function(root){
var _158=dijit._getTabNavigable(dojo.byId(root));
return _158.lowest?_158.lowest:_158.first;
};
dijit.getLastInTabbingOrder=function(root){
var _15a=dijit._getTabNavigable(dojo.byId(root));
return _15a.last?_15a.last:_15a.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_15b){
this.pairs=[];
this.returnWrappers=_15b||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_15d,wrap,_15f,_160){
this.pairs[((_160)?"unshift":"push")]([name,_15d,wrap,_15f]);
},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 _166=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _167=dojo._docScroll();
return {w:_166.clientWidth,h:_166.clientHeight,l:_167.x,t:_167.y};
};
dijit.placeOnScreen=function(node,pos,_16a,_16b){
var _16c=dojo.map(_16a,function(_16d){
var c={corner:_16d,pos:{x:pos.x,y:pos.y}};
if(_16b){
c.pos.x+=_16d.charAt(1)=="L"?_16b.x:-_16b.x;
c.pos.y+=_16d.charAt(0)=="T"?_16b.y:-_16b.y;
}
return c;
});
return dijit._place(node,_16c);
};
dijit._place=function(node,_170,_171){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_170,function(_174){
var _175=_174.corner;
var pos=_174.pos;
if(_171){
_171(node,_174.aroundCorner,_175);
}
var _177=node.style;
var _178=_177.display;
var _179=_177.visibility;
_177.visibility="hidden";
_177.display="";
var mb=dojo.marginBox(node);
_177.display=_178;
_177.visibility=_179;
var _17b=(_175.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_17c=(_175.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_175.charAt(1)=="L"?Math.min(view.l+view.w,_17b+mb.w):pos.x),endY=(_175.charAt(0)=="T"?Math.min(view.t+view.h,_17c+mb.h):pos.y),_17f=endX-_17b,_180=endY-_17c,_181=(mb.w-_17f)+(mb.h-_180);
if(best==null||_181<best.overflow){
best={corner:_175,aroundCorner:_174.aroundCorner,x:_17b,y:_17c,w:_17f,h:_180,overflow:_181};
}
return !_181;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_171){
_171(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_183,_184,_185){
_183=dojo.byId(_183);
var _186=_183.style.display;
_183.style.display="";
var _187=_183.offsetWidth;
var _188=_183.offsetHeight;
var _189=dojo.coords(_183,true);
_183.style.display=_186;
return dijit._placeOnScreenAroundRect(node,_189.x,_189.y,_187,_188,_184,_185);
};
dijit.placeOnScreenAroundRectangle=function(node,_18b,_18c,_18d){
return dijit._placeOnScreenAroundRect(node,_18b.x,_18b.y,_18b.width,_18b.height,_18c,_18d);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_191,_192,_193,_194){
var _195=[];
for(var _196 in _193){
_195.push({aroundCorner:_196,corner:_193[_196],pos:{x:x+(_196.charAt(1)=="L"?0:_191),y:y+(_196.charAt(0)=="T"?0:_192)}});
}
return dijit._place(node,_195,_194);
};
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,_19c,_19d,_19e){
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 _1a1=[],_1a2=1000,_1a3=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 _1a7=args.popup,_1a8=args.orient||{"BL":"TL","TL":"BL"},_1a9=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_1a3++);
var _1ab=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_1a2+_1a1.length,visibility:"hidden"}},dojo.body());
dijit.setWaiRole(_1ab,"presentation");
_1ab.style.left=_1ab.style.top="0px";
if(args.parent){
_1ab.dijitPopupParent=args.parent.id;
}
var s=_1a7.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_1ab.appendChild(_1a7.domNode);
var _1ad=new dijit.BackgroundIframe(_1ab);
var best=_1a9?dijit.placeOnScreenAroundElement(_1ab,_1a9,_1a8,_1a7.orient?dojo.hitch(_1a7,"orient"):null):dijit.placeOnScreen(_1ab,args,_1a8=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_1ab.style.visibility="visible";
var _1af=[];
var _1b0=function(){
for(var pi=_1a1.length-1;pi>0&&_1a1[pi].parent===_1a1[pi-1].widget;pi--){
}
return _1a1[pi];
};
_1af.push(dojo.connect(_1ab,"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 _1b3=_1b0();
if(_1b3&&_1b3.onCancel){
_1b3.onCancel();
}
}
}
}));
if(_1a7.onCancel){
_1af.push(dojo.connect(_1a7,"onCancel",null,args.onCancel));
}
_1af.push(dojo.connect(_1a7,_1a7.onExecute?"onExecute":"onChange",null,function(){
var _1b4=_1b0();
if(_1b4&&_1b4.onExecute){
_1b4.onExecute();
}
}));
_1a1.push({wrapper:_1ab,iframe:_1ad,widget:_1a7,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_1af});
if(_1a7.onOpen){
_1a7.onOpen(best);
}
return best;
};
this.close=function(_1b5){
while(dojo.some(_1a1,function(elem){
return elem.widget==_1b5;
})){
var top=_1a1.pop(),_1b8=top.wrapper,_1b9=top.iframe,_1ba=top.widget,_1bb=top.onClose;
if(_1ba.onClose){
_1ba.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_1ba||!_1ba.domNode){
return;
}
this.prepare(_1ba.domNode);
_1b9.destroy();
dojo.destroy(_1b8);
if(_1bb){
_1bb();
}
}
};
}();
dijit._frames=new function(){
var _1bc=[];
this.pop=function(){
var _1bd;
if(_1bc.length){
_1bd=_1bc.pop();
_1bd.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\");'>";
_1bd=dojo.doc.createElement(html);
}else{
_1bd=dojo.create("iframe");
_1bd.src="javascript:\"\"";
_1bd.className="dijitBackgroundIframe";
}
_1bd.tabIndex=-1;
dojo.body().appendChild(_1bd);
}
return _1bd;
};
this.push=function(_1c0){
_1c0.style.display="none";
if(dojo.isIE){
_1c0.style.removeExpression("width");
_1c0.style.removeExpression("height");
}
_1bc.push(_1c0);
};
}();
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 _1c2=dijit._frames.pop();
node.appendChild(_1c2);
if(dojo.isIE){
_1c2.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_1c2.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_1c2;
}
};
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 _1c8=dojo.isIE>=8&&!_1c9;
var rtl=!ltr&&!_1c8;
var _1cb=body;
var _1c9=doc.compatMode=="BackCompat";
if(_1c9){
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{
_1cb=html;
}
html._offsetHeight=html.clientHeight;
html._offsetWidth=html.clientWidth;
}
function _1cc(_1cd){
var ie=dojo.isIE;
return ((ie<=6||(ie>=7&&_1c9))?false:(dojo.style(_1cd,"position").toLowerCase()=="fixed"));
};
function _1cf(_1d0){
var _1d1=_1d0.parentNode;
var _1d2=_1d0.offsetParent;
if(_1d2==null||_1cc(_1d0)){
_1d2=html;
_1d1=(_1d0==body)?html:null;
}
_1d0._offsetParent=_1d2;
_1d0._parent=_1d1;
var bp=dojo._getBorderExtents(_1d0);
_1d0._borderStart={H:(_1c8&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};
_1d0._borderSize={H:bp.w,V:bp.h};
_1d0._scrolledAmount={H:_1d0.scrollLeft,V:_1d0.scrollTop};
_1d0._offsetSize={H:_1d0._offsetWidth||_1d0.offsetWidth,V:_1d0._offsetHeight||_1d0.offsetHeight};
_1d0._offsetStart={H:(_1c8&&!ltr)?_1d2.clientWidth-_1d0.offsetLeft-_1d0._offsetSize.H:_1d0.offsetLeft,V:_1d0.offsetTop};
_1d0._clientSize={H:_1d0._clientWidth||_1d0.clientWidth,V:_1d0._clientHeight||_1d0.clientHeight};
if(_1d0!=body&&_1d0!=html&&_1d0!=node){
for(var dir in _1d0._offsetSize){
var _1d5=_1d0._offsetSize[dir]-_1d0._clientSize[dir]-_1d0._borderSize[dir];
var _1d6=_1d0._clientSize[dir]>0&&_1d5>0;
if(_1d6){
_1d0._offsetSize[dir]-=_1d5;
if(dojo.isIE&&rtl&&dir=="H"){
_1d0._offsetStart[dir]+=_1d5;
}
}
}
}
};
var _1d7=node;
while(_1d7!=null){
if(_1cc(_1d7)){
node.scrollIntoView(false);
return;
}
_1cf(_1d7);
_1d7=_1d7._parent;
}
if(dojo.isIE&&node._parent){
var _1d8=node._offsetParent;
node._offsetStart.H+=_1d8._borderStart.H;
node._offsetStart.V+=_1d8._borderStart.V;
}
if(dojo.isIE>=7&&_1cb==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){
var _1d9=html.scrollWidth-html._offsetSize.H;
if(_1d9>0){
body._offsetStart.H=-_1d9;
}
}
if(dojo.isIE<=6&&!_1c9){
html._offsetSize.H+=html._borderSize.H;
html._offsetSize.V+=html._borderSize.V;
}
if(rtl&&body._offsetStart&&_1cb==html&&html._scrolledAmount){
var ofs=body._offsetStart.H;
if(ofs<0){
html._scrolledAmount.H+=ofs;
body._offsetStart.H=0;
}
}
_1d7=node;
while(_1d7){
var _1db=_1d7._parent;
if(!_1db){
break;
}
if(_1db.tagName=="TD"){
var _1dc=_1db._parent._parent._parent;
if(_1db!=_1d7._offsetParent&&_1db._offsetParent!=_1d7._offsetParent){
_1db=_1dc;
}
}
var _1dd=_1d7._offsetParent==_1db;
for(var dir in _1d7._offsetStart){
var _1df=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(_1db!=html)&&(_1db!=body)&&(dojo.isIE||dojo.isWebKit)&&_1db._clientSize.H>0&&_1db.scrollWidth>_1db._clientSize.H){
var _1e0=_1db.scrollWidth-_1db._clientSize.H;
if(_1e0>0){
_1db._scrolledAmount.H-=_1e0;
}
}
if(_1db._offsetParent.tagName=="TABLE"){
if(dojo.isIE){
_1db._offsetStart[dir]-=_1db._offsetParent._borderStart[dir];
_1db._borderStart[dir]=_1db._borderSize[dir]=0;
}else{
_1db._offsetStart[dir]+=_1db._offsetParent._borderStart[dir];
}
}
if(dojo.isIE){
_1db._offsetStart[dir]+=_1db._offsetParent._borderStart[dir];
}
var _1e1=_1d7._offsetStart[dir]-_1db._scrolledAmount[dir]-(_1dd?0:_1db._offsetStart[dir])-_1db._borderStart[dir];
var _1e2=_1e1+_1d7._offsetSize[dir]-_1db._offsetSize[dir]+_1db._borderSize[dir];
var _1e3=(dir=="H")?"scrollLeft":"scrollTop";
var _1e4=dir=="H"&&rtl;
var _1e5=_1e4?-_1e2:_1e1;
var _1e6=_1e4?-_1e1:_1e2;
var _1e7=(_1e5*_1e6<=0)?0:Math[(_1e5<0)?"max":"min"](_1e5,_1e6);
if(_1e7!=0){
var _1e8=_1db[_1e3];
_1db[_1e3]+=(_1e4)?-_1e7:_1e7;
var _1e9=_1db[_1e3]-_1e8;
}
if(_1dd){
_1d7._offsetStart[dir]+=_1db._offsetStart[dir];
}
_1d7._offsetStart[dir]-=_1db[_1e3];
}
_1d7._parent=_1db._parent;
_1d7._offsetParent=_1db._offsetParent;
}
_1db=node;
var next;
while(_1db&&_1db.removeAttribute){
next=_1db.parentNode;
_1db.removeAttribute("_offsetParent");
_1db.removeAttribute("_parent");
_1db=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,_1ee=d.isOpera,maj=Math.floor,ff=d.isFF,_1f1=d.boxModel.replace(/-/,""),_1f2={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_1ee,dj_opera8:maj(_1ee)==8,dj_opera9:maj(_1ee)==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};
_1f2["dj_"+_1f1]=true;
for(var p in _1f2){
if(_1f2[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 _1f2){
if(_1f2[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,_1f6,node,_1f8,obj,_1fa,_1fb){
if(obj!=this._obj){
this.stop();
this._initialDelay=_1fb||500;
this._subsequentDelay=_1fa||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_1f6,_1f8);
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,_1fd,_1fe,_1ff,_200,_201){
if(_1fd.keyCode){
_1fd.charOrCode=_1fd.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_1fd.charCode){
_1fd.charOrCode=String.fromCharCode(_1fd.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==_1fd.charOrCode&&(_1fd.ctrlKey===undefined||_1fd.ctrlKey==evt.ctrlKey)&&(_1fd.altKey===undefined||_1fd.altKey==evt.ctrlKey)&&(_1fd.shiftKey===undefined||_1fd.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_1fd,_1fe,node,_1ff,_1fd,_200,_201);
}else{
if(dijit.typematic._obj==_1fd){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_1fd){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_205,_206,_207,_208){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_205,node,_206,node,_207,_208);
}),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,_205,node,_206,node,_207,_208);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_20f,_210,_211,_212,_213,_214,_215){
return this.addKeyListener(_210,_211,_212,_213,_214,_215).concat(this.addMouseListener(_20f,_212,_213,_214,_215));
}};
}
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 _218=cs.backgroundImage;
var _219=(cs.borderTopColor==cs.borderRightColor)||(_218!=null&&(_218=="none"||_218=="url(invalid-url:)"));
dojo[_219?"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 _21c=this.getWaiRole(elem);
return role?(_21c.indexOf(role)>-1):(_21c.length>0);
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _220=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_220)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_220+" ").indexOf(" "+role+" ")<0){
var _221=dojo.trim(_220.replace(this._XhtmlRoles,""));
var _222=dojo.trim(_220.replace(_221,""));
dojo.attr(elem,"role",_222+(_222?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _225=dojo.attr(elem,"role");
if(!_225){
return;
}
if(role){
var _226=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_225+" ").replace(" "+_226+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_229){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_229);
}
return elem.hasAttribute?elem.hasAttribute("aria-"+_229):!!elem.getAttribute("aria-"+_229);
},getWaiState:function(elem,_22b){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_22b);
}
return elem.getAttribute("aria-"+_22b)||"";
},setWaiState:function(elem,_22d,_22e){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_22d,_22e);
}else{
elem.setAttribute("aria-"+_22d,_22e);
}
},removeWaiState:function(elem,_230){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_230);
}else{
elem.removeAttribute("aria-"+_230);
}
}});
}
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(_231,_232){
if(_231&&dojo.isFunction(_231._onConnect)){
_231._onConnect(_232);
}
});
dijit._connectOnUseEventHandler=function(_233){
};
(function(){
var _234={};
var _235=function(dc){
if(!_234[dc]){
var r=[];
var _238;
var _239=dojo.getObject(dc).prototype;
for(var _23a in _239){
if(dojo.isFunction(_239[_23a])&&(_238=_23a.match(/^_set([a-zA-Z]*)Attr$/))&&_238[1]){
r.push(_238[1].charAt(0).toLowerCase()+_238[1].substr(1));
}
}
_234[dc]=r;
}
return _234[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(_23b,_23c){
this.create(_23b,_23c);
},create:function(_23d,_23e){
this.srcNodeRef=dojo.byId(_23e);
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(_23d){
this.params=_23d;
dojo.mixin(this,_23d);
}
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 _240=this.srcNodeRef;
if(_240&&_240.parentNode){
_240.parentNode.replaceChild(this.domNode,_240);
}
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 _241=function(attr,_243){
if((_243.params&&attr in _243.params)||_243[attr]){
_243.attr(attr,_243[attr]);
}
};
for(var attr in this.attributeMap){
_241(attr,this);
}
dojo.forEach(_235(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_241(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_246){
this.destroyDescendants(_246);
this.destroy(_246);
},destroy:function(_247){
this.uninitialize();
dojo.forEach(this._connects,function(_248){
dojo.forEach(_248,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_247);
dijit.registry.remove(this.id);
},destroyRendering:function(_24a){
if(this.bgIframe){
this.bgIframe.destroy(_24a);
delete this.bgIframe;
}
if(this.domNode){
if(_24a){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_24a){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_24b){
dojo.forEach(this.getChildren(),function(_24c){
if(_24c.destroyRecursive){
_24c.destroyRecursive(_24b);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_24e){
if(_24e in this._deferredConnects){
var _24f=this[this._deferredConnects[_24e]||"domNode"];
this.connect(_24f,_24e.toLowerCase(),_24e);
delete this._deferredConnects[_24e];
}
},_setClassAttr:function(_250){
var _251=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_251,this["class"]);
this["class"]=_250;
dojo.addClass(_251,_250);
},_setStyleAttr:function(_252){
var _253=this[this.attributeMap["style"]||"domNode"];
if(dojo.isObject(_252)){
dojo.style(_253,_252);
}else{
if(_253.style.cssText){
_253.style.cssText+="; "+_252;
}else{
_253.style.cssText=_252;
}
}
this["style"]=_252;
},setAttribute:function(attr,_255){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_255);
},_attrToDom:function(attr,_257){
var _258=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_258)?_258:[_258],function(_259){
var _25a=this[_259.node||_259||"domNode"];
var type=_259.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_257)){
_257=dojo.hitch(this,_257);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_25a,attr,_257);
break;
case "innerHTML":
_25a.innerHTML=_257;
break;
case "class":
dojo.removeClass(_25a,this[attr]);
dojo.addClass(_25a,_257);
break;
}
},this);
this[attr]=_257;
},attr:function(name,_25d){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _260=this._getAttrNames(name);
if(args==2){
if(this[_260.s]){
return this[_260.s](_25d)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_25d);
}
this[name]=_25d;
}
return this;
}else{
if(this[_260.g]){
return this[_260.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,_266,_267){
var d=dojo;
var dc=dojo.connect;
var _26a=[];
if(_266=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_267);
_26a.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){
_26a.push(dc(obj,"onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
}
}
_266="onclick";
}
_26a.push(dc(obj,_266,this,_267));
this._connects.push(_26a);
return _26a;
},disconnect:function(_26f){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_26f){
dojo.forEach(_26f,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(_271,_272){
if(_271["declaredClass"]&&_271["addChild"]){
_271.addChild(this,_272);
}else{
dojo.place(this.domNode,_271,_272);
}
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(_27c,map,_27e,_27f){
_27f=_27f||dojo.global;
_27e=(!_27e)?function(v){
return v;
}:dojo.hitch(_27f,_27e);
return _27c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_281,key,_283){
var _284=dojo.getObject(key,false,map);
if(_283){
_284=dojo.getObject(_283,false,_27f).call(_27f,_284,key);
}
return _27e(_284,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(_287,_288){
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 _289=dojo.date.stamp._isoRegExp.exec(_287);
var _28a=null;
if(_289){
_289.shift();
if(_289[1]){
_289[1]--;
}
if(_289[6]){
_289[6]*=1000;
}
if(_288){
_288=new Date(_288);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _288["get"+prop]();
}).forEach(function(_28c,_28d){
if(_289[_28d]===undefined){
_289[_28d]=_28c;
}
});
}
_28a=new Date(_289[0]||1970,_289[1]||0,_289[2]||1,_289[3]||0,_289[4]||0,_289[5]||0,_289[6]||0);
var _28e=0;
var _28f=_289[7]&&_289[7].charAt(0);
if(_28f!="Z"){
_28e=((_289[8]||0)*60)+(Number(_289[9])||0);
if(_28f!="-"){
_28e*=-1;
}
}
if(_28f){
_28e-=_28a.getTimezoneOffset();
}
if(_28e){
_28a.setTime(_28a.getTime()+_28e*60000);
}
}
return _28a;
};
dojo.date.stamp.toISOString=function(_290,_291){
var _=function(n){
return (n<10)?"0"+n:n;
};
_291=_291||{};
var _294=[];
var _295=_291.zulu?"getUTC":"get";
var date="";
if(_291.selector!="time"){
var year=_290[_295+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_290[_295+"Month"]()+1),_(_290[_295+"Date"]())].join("-");
}
_294.push(date);
if(_291.selector!="date"){
var time=[_(_290[_295+"Hours"]()),_(_290[_295+"Minutes"]()),_(_290[_295+"Seconds"]())].join(":");
var _299=_290[_295+"Milliseconds"]();
if(_291.milliseconds){
time+="."+(_299<100?"0":"")+_(_299);
}
if(_291.zulu){
time+="Z";
}else{
if(_291.selector!="time"){
var _29a=_290.getTimezoneOffset();
var _29b=Math.abs(_29a);
time+=(_29a>0?"-":"+")+_(Math.floor(_29b/60))+":"+_(_29b%60);
}
}
_294.push(time);
}
return _294.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _29d=d._scopeName+"Type";
var qry="["+_29d+"]";
var _29f=0,_2a0={};
var _2a1=function(_2a2,_2a3){
var nso=_2a3||_2a0;
if(dojo.isIE){
var cn=_2a2["__dojoNameCache"];
if(cn&&nso[cn]===_2a2){
return cn;
}
}
var name;
do{
name="__"+_29f++;
}while(name in nso);
nso[name]=_2a2;
return name;
};
function _2a7(_2a8){
if(d.isString(_2a8)){
return "string";
}
if(typeof _2a8=="number"){
return "number";
}
if(typeof _2a8=="boolean"){
return "boolean";
}
if(d.isFunction(_2a8)){
return "function";
}
if(d.isArray(_2a8)){
return "array";
}
if(_2a8 instanceof Date){
return "date";
}
if(_2a8 instanceof d._Url){
return "url";
}
return "object";
};
function _2a9(_2aa,type){
switch(type){
case "string":
return _2aa;
case "number":
return _2aa.length?Number(_2aa):NaN;
case "boolean":
return typeof _2aa=="boolean"?_2aa:!(_2aa.toLowerCase()=="false");
case "function":
if(d.isFunction(_2aa)){
_2aa=_2aa.toString();
_2aa=d.trim(_2aa.substring(_2aa.indexOf("{")+1,_2aa.length-1));
}
try{
if(_2aa.search(/[^\w\.]+/i)!=-1){
_2aa=_2a1(new Function(_2aa),this);
}
return d.getObject(_2aa,false);
}
catch(e){
return new Function();
}
case "array":
return _2aa?_2aa.split(/\s*,\s*/):[];
case "date":
switch(_2aa){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_2aa);
}
case "url":
return d.baseUrl+_2aa;
default:
return d.fromJson(_2aa);
}
};
var _2ac={};
function _2ad(_2ae){
if(!_2ac[_2ae]){
var cls=d.getObject(_2ae);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_2ae+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _2b0=cls.prototype;
var _2b1={},_2b2={};
for(var name in _2b0){
if(name.charAt(0)=="_"){
continue;
}
if(name in _2b2){
continue;
}
var _2b4=_2b0[name];
_2b1[name]=_2a7(_2b4);
}
_2ac[_2ae]={cls:cls,params:_2b1};
}
return _2ac[_2ae];
};
this._functionFromScript=function(_2b5){
var _2b6="";
var _2b7="";
var _2b8=_2b5.getAttribute("args");
if(_2b8){
d.forEach(_2b8.split(/\s*,\s*/),function(part,idx){
_2b6+="var "+part+" = arguments["+idx+"]; ";
});
}
var _2bb=_2b5.getAttribute("with");
if(_2bb&&_2bb.length){
d.forEach(_2bb.split(/\s*,\s*/),function(part){
_2b6+="with("+part+"){";
_2b7+="}";
});
}
return new Function(_2b6+_2b5.innerHTML+_2b7);
};
this.instantiate=function(_2bd,_2be){
var _2bf=[];
_2be=_2be||{};
d.forEach(_2bd,function(node){
if(!node){
return;
}
var type=_29d in _2be?_2be[_29d]:node.getAttribute(_29d);
if(!type||!type.length){
return;
}
var _2c2=_2ad(type),_2c3=_2c2.cls,ps=_2c3._noScript||_2c3.prototype._noScript;
var _2c5={},_2c6=node.attributes;
for(var name in _2c2.params){
var item=name in _2be?{value:_2be[name],specified:true}:_2c6.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _2c9=item.value;
switch(name){
case "class":
_2c9="className" in _2be?_2be.className:node.className;
break;
case "style":
_2c9="style" in _2be?_2be.style:(node.style&&node.style.cssText);
}
var _2ca=_2c2.params[name];
if(typeof _2c9=="string"){
_2c5[name]=_2a9(_2c9,_2ca);
}else{
_2c5[name]=_2c9;
}
}
if(!ps){
var _2cb=[],_2cc=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_2cd){
var _2ce=_2cd.getAttribute("event"),type=_2cd.getAttribute("type"),nf=d.parser._functionFromScript(_2cd);
if(_2ce){
if(type=="dojo/connect"){
_2cb.push({event:_2ce,func:nf});
}else{
_2c5[_2ce]=nf;
}
}else{
_2cc.push(nf);
}
});
}
var _2d0=_2c3["markupFactory"];
if(!_2d0&&_2c3["prototype"]){
_2d0=_2c3.prototype["markupFactory"];
}
var _2d1=_2d0?_2d0(_2c5,node,_2c3):new _2c3(_2c5,node);
_2bf.push(_2d1);
var _2d2=node.getAttribute("jsId");
if(_2d2){
d.setObject(_2d2,_2d1);
}
if(!ps){
d.forEach(_2cb,function(_2d3){
d.connect(_2d1,_2d3.event,null,_2d3.func);
});
d.forEach(_2cc,function(func){
func.call(_2d1);
});
}
});
d.forEach(_2bf,function(_2d5){
if(_2d5&&_2d5.startup&&!_2d5._started&&(!_2d5.getParent||!_2d5.getParent())){
_2d5.startup();
}
});
return _2bf;
};
this.parse=function(_2d6){
var list=d.query(qry,_2d6);
var _2d8=this.instantiate(list);
return _2d8;
};
}();
(function(){
var _2d9=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,_2d9);
}else{
dojo._loaders.unshift(_2d9);
}
})();
}
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 _2db=this.declaredClass,_2dc=this;
return dojo.string.substitute(tmpl,this,function(_2dd,key){
if(key.charAt(0)=="!"){
_2dd=dojo.getObject(key.substr(1),false,_2dc);
}
if(typeof _2dd=="undefined"){
throw new Error(_2db+" template:"+key);
}
if(_2dd==null){
return "";
}
return key.charAt(0)=="!"?_2dd:_2dd.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _2df=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_2df)){
node=dojo._toDom(this._stringRepl(_2df));
}else{
node=_2df.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(_2e4){
var dest=this.containerNode;
if(_2e4&&dest){
while(_2e4.hasChildNodes()){
dest.appendChild(_2e4.firstChild);
}
}
},_attachTemplateNodes:function(_2e6,_2e7){
_2e7=_2e7||function(n,p){
return n.getAttribute(p);
};
var _2ea=dojo.isArray(_2e6)?_2e6:(_2e6.all||_2e6.getElementsByTagName("*"));
var x=dojo.isArray(_2e6)?0:-1;
for(;x<_2ea.length;x++){
var _2ec=(x==-1)?_2e6:_2ea[x];
if(this.widgetsInTemplate&&_2e7(_2ec,"dojoType")){
continue;
}
var _2ed=_2e7(_2ec,"dojoAttachPoint");
if(_2ed){
var _2ee,_2ef=_2ed.split(/\s*,\s*/);
while((_2ee=_2ef.shift())){
if(dojo.isArray(this[_2ee])){
this[_2ee].push(_2ec);
}else{
this[_2ee]=_2ec;
}
}
}
var _2f0=_2e7(_2ec,"dojoAttachEvent");
if(_2f0){
var _2f1,_2f2=_2f0.split(/\s*,\s*/);
var trim=dojo.trim;
while((_2f1=_2f2.shift())){
if(_2f1){
var _2f4=null;
if(_2f1.indexOf(":")!=-1){
var _2f5=_2f1.split(":");
_2f1=trim(_2f5[0]);
_2f4=trim(_2f5[1]);
}else{
_2f1=trim(_2f1);
}
if(!_2f4){
_2f4=_2f1;
}
this.connect(_2ec,_2f1,_2f4);
}
}
}
var role=_2e7(_2ec,"waiRole");
if(role){
dijit.setWaiRole(_2ec,role);
}
var _2f7=_2e7(_2ec,"waiState");
if(_2f7){
dojo.forEach(_2f7.split(/\s*,\s*/),function(_2f8){
if(_2f8.indexOf("-")!=-1){
var pair=_2f8.split("-");
dijit.setWaiState(_2ec,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_2fa,_2fb,_2fc){
var _2fd=dijit._Templated._templateCache;
var key=_2fb||_2fa;
var _2ff=_2fd[key];
if(_2ff){
if(!_2ff.ownerDocument||_2ff.ownerDocument==dojo.doc){
return _2ff;
}
dojo.destroy(_2ff);
}
if(!_2fb){
_2fb=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_2fa)));
}
_2fb=dojo.string.trim(_2fb);
if(_2fc||_2fb.match(/\$\{([^\}]+)\}/g)){
return (_2fd[key]=_2fb);
}else{
return (_2fd[key]=dojo._toDom(_2fb));
}
};
dijit._Templated._sanitizeTemplateString=function(_300){
if(_300){
_300=_300.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _301=_300.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_301){
_300=_301[1];
}
}else{
_300="";
}
return _300;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _302=dijit._Templated._templateCache;
for(var key in _302){
var _304=_302[key];
if(!isNaN(_304.nodeType)){
dojo.destroy(_304);
}
delete _302[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(_305){
if(_305.reset){
_305.reset();
}
});
},validate:function(){
var _306=false;
return dojo.every(dojo.map(this.getDescendants(),function(_307){
_307._hasBeenBlurred=true;
var _308=_307.disabled||!_307.validate||_307.validate();
if(!_308&&!_306){
dijit.scrollIntoView(_307.containerNode||_307.domNode);
_307.focus();
_306=true;
}
return _308;
}),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(_30d){
if(!_30d.name){
return;
}
var _30e=map[_30d.name]||(map[_30d.name]=[]);
_30e.push(_30d);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _310=map[name],_311=dojo.getObject(name,false,obj);
if(_311===undefined){
continue;
}
if(!dojo.isArray(_311)){
_311=[_311];
}
if(typeof _310[0].checked=="boolean"){
dojo.forEach(_310,function(w,i){
w.attr("value",dojo.indexOf(_311,w.value)!=-1);
});
}else{
if(_310[0]._multiValue){
_310[0].attr("value",_311);
}else{
dojo.forEach(_310,function(w,i){
w.attr("value",_311[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(_317){
var name=_317.name;
if(!name||_317.disabled){
return;
}
var _319=_317.attr("value");
if(typeof _317.checked=="boolean"){
if(/Radio/.test(_317.declaredClass)){
if(_319!==false){
dojo.setObject(name,_319,obj);
}else{
_319=dojo.getObject(name,false,obj);
if(_319===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_319!==false){
ary.push(_319);
}
}
}else{
dojo.setObject(name,_319,obj);
}
});
return obj;
},isValid:function(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_31b){
return !_31b.disabled&&_31b.isValid&&!_31b.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function(_31c){
},_widgetChange:function(_31d){
var _31e=this._lastValidState;
if(!_31d||this._lastValidState===undefined){
_31e=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_31e;
}
}else{
if(_31d.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_31d);
},this);
if(!_31d.isValid()&&!_31d.attr("disabled")){
this._invalidWidgets.push(_31d);
}
_31e=(this._invalidWidgets.length===0);
}
}
if(_31e!==this._lastValidState){
this._lastValidState=_31e;
this.onValidStateChange(_31e);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _320=this;
var _321=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_323){
_321.push(_320.connect(_323,"validate",dojo.hitch(_320,"_widgetChange",_323)));
_321.push(_320.connect(_323,"_setDisabledAttr",dojo.hitch(_320,"_widgetChange",_323)));
});
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(_324){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function(_325){
var _326=dijit._getTabNavigable(dojo.byId(_325));
this._firstFocusItem=_326.lowest||_326.first||_325;
this._lastFocusItem=_326.last||_326.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_325,"tabindex","0");
this._firstFocusItem=_325;
}
}});
}
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(_328){
this.node.className="dijitDialogUnderlay "+_328;
},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 _32b=dijit.getViewport();
os.top=_32b.t+"px";
os.left=_32b.l+"px";
is.width=_32b.w+"px";
is.height=_32b.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 _32e=dijit.byId(id);
return _32e.isContainer?_32e:null;
}
}
return null;
},_getSibling:function(_32f){
var node=this.domNode;
do{
node=node[_32f+"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(_333,_334){
var _335=this.containerNode;
if(_334&&typeof _334=="number"){
var _336=this.getChildren();
if(_336&&_336.length>=_334){
_335=_336[_334-1].domNode;
_334="after";
}
}
dojo.place(_333.domNode,_335,_334);
if(this._started&&!_333._started){
_333.startup();
}
},removeChild:function(_337){
if(typeof _337=="number"&&_337>0){
_337=this.getChildren()[_337];
}
if(!_337||!_337.domNode){
return;
}
var node=_337.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(_33b){
dojo.forEach(this.getChildren(),function(_33c){
_33c.destroyRecursive(_33b);
});
},_getSiblingOfChild:function(_33d,dir){
var node=_33d.domNode;
var _340=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_340];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_341){
var _342=this.getChildren();
for(var i=0,c;c=_342[i];i++){
if(c==_341){
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(_345){
_345.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this._viewport=dijit.getViewport();
this.connect(dojo.global,"onresize",function(){
var _346=dijit.getViewport();
if(_346.w!=this._viewport.w||_346.h!=this._viewport.h){
this._viewport=_346;
this.resize();
}
});
}
this.inherited(arguments);
},resize:function(_347,_348){
var node=this.domNode;
if(_347){
dojo.marginBox(node,_347);
if(_347.t){
node.style.top=_347.t+"px";
}
if(_347.l){
node.style.left=_347.l+"px";
}
}
var mb=_348||{};
dojo.mixin(mb,_347||{});
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(_350){
dojo.addClass(_350.domNode,this.baseClass+"-child");
if(_350.baseClass){
dojo.addClass(_350.domNode,this.baseClass+"-"+_350.baseClass);
}
},addChild:function(_351,_352){
this.inherited(arguments);
if(this._started){
this._setupChild(_351);
}
},removeChild:function(_353){
dojo.removeClass(_353.domNode,this.baseClass+"-child");
if(_353.baseClass){
dojo.removeClass(_353.domNode,this.baseClass+"-"+_353.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 _359=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_35c,dim){
_35c.resize?_35c.resize(dim):dojo.marginBox(_35c.domNode,dim);
dojo.mixin(_35c,dojo.marginBox(_35c.domNode));
dojo.mixin(_35c,dim);
};
dijit.layout.layoutChildren=function(_35e,dim,_360){
dim=dojo.mixin({},dim);
dojo.addClass(_35e,"dijitLayoutContainer");
_360=dojo.filter(_360,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_360,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_360,function(_363){
var elm=_363.domNode,pos=_363.layoutAlign;
var _366=elm.style;
_366.left=dim.l+"px";
_366.top=dim.t+"px";
_366.bottom=_366.right="auto";
dojo.addClass(elm,"dijitAlign"+_359(pos));
if(pos=="top"||pos=="bottom"){
size(_363,{w:dim.w});
dim.h-=_363.h;
if(pos=="top"){
dim.t+=_363.h;
}else{
_366.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_363,{h:dim.h});
dim.w-=_363.w;
if(pos=="left"){
dim.l+=_363.w;
}else{
_366.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_363,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _367=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,_36b){
if(_36b){
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(_373,node){
dojo.mixin(this,_373||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_367++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_376){
if(undefined!==cont){
this.content=cont;
}
if(_376){
this._mixin(_376);
}
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 _378=this.onContentError(e);
try{
node.innerHTML=_378;
}
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 _37b=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_37b){
cont=_37b[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(_37d){
var _37e={},key;
for(key in _37d){
if(key in _37e){
continue;
}
this[key]=_37d[key];
}
},_parse:function(){
var _380=this.node;
try{
this.parseResults=dojo.parser.parse(_380,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_383){
var _384=this["on"+type+"Error"].call(this,err);
if(_383){
console.error(_383,err);
}else{
if(_384){
dojo.html._setNodeContent(this.node,_384,true);
}
}
}});
dojo.html.set=function(node,cont,_387){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_387){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_387,{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(_389,_38a,_38b){
_38b=dojo.i18n.normalizeLocale(_38b);
var _38c=_38b.split("-");
var _38d=[_389,"nls",_38a].join(".");
var _38e=dojo._loadedModules[_38d];
if(_38e){
var _38f;
for(var i=_38c.length;i>0;i--){
var loc=_38c.slice(0,i).join("_");
if(_38e[loc]){
_38f=_38e[loc];
break;
}
}
if(!_38f){
_38f=_38e.ROOT;
}
if(_38f){
var _392=function(){
};
_392.prototype=_38f;
return new _392();
}
}
throw new Error("Bundle not found: "+_38a+" in "+_389+" , locale="+_38b);
};
dojo.i18n.normalizeLocale=function(_393){
var _394=_393?_393.toLowerCase():dojo.locale;
if(_394=="root"){
_394="ROOT";
}
return _394;
};
dojo.i18n._requireLocalization=function(_395,_396,_397,_398){
var _399=dojo.i18n.normalizeLocale(_397);
var _39a=[_395,"nls",_396].join(".");
var _39b="";
if(_398){
var _39c=_398.split(",");
for(var i=0;i<_39c.length;i++){
if(_399["indexOf"](_39c[i])==0){
if(_39c[i].length>_39b.length){
_39b=_39c[i];
}
}
}
if(!_39b){
_39b="ROOT";
}
}
var _39e=_398?_39b:_399;
var _39f=dojo._loadedModules[_39a];
var _3a0=null;
if(_39f){
if(dojo.config.localizationComplete&&_39f._built){
return;
}
var _3a1=_39e.replace(/-/g,"_");
var _3a2=_39a+"."+_3a1;
_3a0=dojo._loadedModules[_3a2];
}
if(!_3a0){
_39f=dojo["provide"](_39a);
var syms=dojo._getModuleSymbols(_395);
var _3a4=syms.concat("nls").join("/");
var _3a5;
dojo.i18n._searchLocalePath(_39e,_398,function(loc){
var _3a7=loc.replace(/-/g,"_");
var _3a8=_39a+"."+_3a7;
var _3a9=false;
if(!dojo._loadedModules[_3a8]){
dojo["provide"](_3a8);
var _3aa=[_3a4];
if(loc!="ROOT"){
_3aa.push(loc);
}
_3aa.push(_396);
var _3ab=_3aa.join("/")+".js";
_3a9=dojo._loadPath(_3ab,null,function(hash){
var _3ad=function(){
};
_3ad.prototype=_3a5;
_39f[_3a7]=new _3ad();
for(var j in hash){
_39f[_3a7][j]=hash[j];
}
});
}else{
_3a9=true;
}
if(_3a9&&_39f[_3a7]){
_3a5=_39f[_3a7];
}else{
_39f[_3a7]=_3a5;
}
if(_398){
return true;
}
});
}
if(_398&&_399!=_39b){
_39f[_399.replace(/-/g,"_")]=_39f[_39b.replace(/-/g,"_")];
}
};
(function(){
var _3af=dojo.config.extraLocale;
if(_3af){
if(!_3af instanceof Array){
_3af=[_3af];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_3b3,_3b4){
req(m,b,_3b3,_3b4);
if(_3b3){
return;
}
for(var i=0;i<_3af.length;i++){
req(m,b,_3af[i],_3b4);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_3b6,down,_3b8){
_3b6=dojo.i18n.normalizeLocale(_3b6);
var _3b9=_3b6.split("-");
var _3ba=[];
for(var i=_3b9.length;i>0;i--){
_3ba.push(_3b9.slice(0,i).join("-"));
}
_3ba.push(false);
if(down){
_3ba.reverse();
}
for(var j=_3ba.length-1;j>=0;j--){
var loc=_3ba[j]||"ROOT";
var stop=_3b8(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_3bf,_3c0){
function _3c1(_3c2){
_3c2=dojo.i18n.normalizeLocale(_3c2);
dojo.i18n._searchLocalePath(_3c2,true,function(loc){
for(var i=0;i<_3c0.length;i++){
if(_3c0[i]==loc){
dojo["require"](_3bf+"_"+loc);
return true;
}
}
return false;
});
};
_3c1();
var _3c5=dojo.config.extraLocale||[];
for(var i=0;i<_3c5.length;i++){
_3c1(_3c5[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 _3c7=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_3c7);
this.errorMessage=dojo.string.substitute(this.errorMessage,_3c7);
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(_3c8){
_3c8.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 _3c9=dojo.query(">",this.containerNode),_3ca=_3c9.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_3cc=dojo.filter(_3ca.map(dijit.byNode),function(_3cd){
return _3cd&&_3cd.domNode&&_3cd.resize;
});
if(_3c9.length==_3ca.length&&_3cc.length==1){
this._singleChild=_3cc[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(_3d2){
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 _3d9={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_3d9,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_3d9));
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 _3de=this._contentSetter;
dojo.forEach(this.getChildren(),function(_3df){
if(_3df.destroyRecursive){
_3df.destroyRecursive();
}
});
if(_3de){
dojo.forEach(_3de.parseResults,function(_3e0){
if(_3e0.destroyRecursive&&_3e0.domNode&&_3e0.domNode.parentNode==dojo.body()){
_3e0.destroyRecursive();
}
});
delete _3de.parseResults;
}
dojo.html._emptyNode(this.containerNode);
},_setContent:function(cont,_3e2){
this.destroyDescendants();
delete this._singleChild;
var _3e3=this._contentSetter;
if(!(_3e3&&_3e3 instanceof dojo.html._ContentSetter)){
_3e3=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _3e5=this.onContentError(e);
try{
this.containerNode.innerHTML=_3e5;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _3e6=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_3e3,_3e6);
_3e3.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_3e2){
dojo.forEach(this.getChildren(),function(_3e7){
_3e7.startup();
});
if(this.doLayout){
this._checkIfSingleChild();
}
this._scheduleLayout();
this._onLoadHandler(cont);
}
},_onError:function(type,err,_3ea){
var _3eb=this["on"+type+"Error"].call(this,err);
if(_3ea){
console.error(_3ea,err);
}else{
if(_3eb){
this._setContent(_3eb,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(_3ed){
if(_3ed.resize){
_3ed.resize();
}
});
}
delete this._needLayout;
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_3ef){
},onDownloadError:function(_3f0){
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\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
this.containerNode.title=this.title;
},orient:function(node,_3f2,_3f3){
var c=this._currentOrientClass;
if(c){
dojo.removeClass(this.domNode,c);
}
c="dijitTooltipAB"+(_3f3.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_3f3.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 _3f9=(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(!_3f9){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_3f9){
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\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,_fixSizes:true,postMixInProperties:function(){
var _3fa=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_3fa);
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 _3ff={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
var _401=dijit._underlay;
if(!_401){
_401=dijit._underlay=new dijit.DialogUnderlay(_3ff);
}
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){
_401.attr(_3ff);
_401.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 _402=false;
if(this._fadeIn&&this._fadeIn.status()=="playing"){
_402=true;
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
_402=true;
this._fadeOut.stop();
}
if(this.open||_402){
dijit._underlay.hide();
}
if(this._moveable){
this._moveable.destroy();
}
},_size:function(){
var mb=dojo.marginBox(this.domNode);
var _404=dijit.getViewport();
if(mb.w>=_404.w||mb.h>=_404.h){
dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_404.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_404.h*0.75))+"px",overflow:"auto",position:"relative"});
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _406=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_406.l+(p?p.l:(_406.w-mb.w)/2))+"px",top:Math.floor(_406.t+(p?p.t:(_406.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 _40c=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_40c){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_40c){
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 _40d=dijit.getViewport();
if(!this._oldViewport||_40d.h!=this._oldViewport.h||_40d.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_40d;
}
}));
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["dojox.xml.parser"]){
dojo._hasResource["dojox.xml.parser"]=true;
dojo.provide("dojox.xml.parser");
dojox.xml.parser.parse=function(str,_40f){
var _410=dojo.doc;
var doc;
_40f=_40f||"text/xml";
if(str&&dojo.trim(str)&&"DOMParser" in dojo.global){
var _412=new DOMParser();
doc=_412.parseFromString(str,_40f);
var de=doc.documentElement;
var _414="http://www.mozilla.org/newlayout/xml/parsererror.xml";
if(de.nodeName=="parsererror"&&de.namespaceURI==_414){
var _415=de.getElementsByTagNameNS(_414,"sourcetext")[0];
if(!_415){
_415=_415.firstChild.data;
}
throw new Error("Error parsing text "+nativeDoc.documentElement.firstChild.data+" \n"+_415);
}
return doc;
}else{
if("ActiveXObject" in dojo.global){
var ms=function(n){
return "MSXML"+n+".DOMDocument";
};
var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];
dojo.some(dp,function(p){
try{
doc=new ActiveXObject(p);
}
catch(e){
return false;
}
return true;
});
if(str&&doc){
doc.async=false;
doc.loadXML(str);
var pe=doc.parseError;
if(pe.errorCode!==0){
throw new Error("Line: "+pe.line+"\n"+"Col: "+pe.linepos+"\n"+"Reason: "+pe.reason+"\n"+"Error Code: "+pe.errorCode+"\n"+"Source: "+pe.srcText);
}
}
if(doc){
return doc;
}
}else{
if(_410.implementation&&_410.implementation.createDocument){
if(str&&dojo.trim(str)&&_410.createElement){
var tmp=_410.createElement("xml");
tmp.innerHTML=str;
var _41c=_410.implementation.createDocument("foo","",null);
dojo.forEach(tmp.childNodes,function(_41d){
_41c.importNode(_41d,true);
});
return _41c;
}else{
return _410.implementation.createDocument("","",null);
}
}
}
}
return null;
};
dojox.xml.parser.textContent=function(node,text){
if(arguments.length>1){
var _420=node.ownerDocument||dojo.doc;
dojox.xml.parser.replaceChildren(node,_420.createTextNode(text));
return text;
}else{
if(node.textContent!==undefined){
return node.textContent;
}
var _421="";
if(node){
dojo.forEach(node.childNodes,function(_422){
switch(_422.nodeType){
case 1:
case 5:
_421+=dojox.xml.parser.textContent(_422);
break;
case 3:
case 2:
case 4:
_421+=_422.nodeValue;
}
});
}
return _421;
}
};
dojox.xml.parser.replaceChildren=function(node,_424){
var _425=[];
if(dojo.isIE){
dojo.forEach(node.childNodes,function(_426){
_425.push(_426);
});
}
dojox.xml.parser.removeChildren(node);
dojo.forEach(_425,dojo.destroy);
if(!dojo.isArray(_424)){
node.appendChild(_424);
}else{
dojo.forEach(_424,function(_427){
node.appendChild(_427);
});
}
};
dojox.xml.parser.removeChildren=function(node){
var _429=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _429;
};
dojox.xml.parser.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
return null;
};
}
if(!dojo._hasResource["dojox.data.dom"]){
dojo._hasResource["dojox.data.dom"]=true;
dojo.provide("dojox.data.dom");
dojo.deprecated("dojox.data.dom","Use dojox.xml.parser instead.","2.0");
dojox.data.dom.createDocument=function(str,_42c){
dojo.deprecated("dojox.data.dom.createDocument()","Use dojox.xml.parser.parse() instead.","2.0");
try{
return dojox.xml.parser.parse(str,_42c);
}
catch(e){
return null;
}
};
dojox.data.dom.textContent=function(node,text){
dojo.deprecated("dojox.data.dom.textContent()","Use dojox.xml.parser.textContent() instead.","2.0");
if(arguments.length>1){
return dojox.xml.parser.textContent(node,text);
}else{
return dojox.xml.parser.textContent(node);
}
};
dojox.data.dom.replaceChildren=function(node,_430){
dojo.deprecated("dojox.data.dom.replaceChildren()","Use dojox.xml.parser.replaceChildren() instead.","2.0");
dojox.xml.parser.replaceChildren(node,_430);
};
dojox.data.dom.removeChildren=function(node){
dojo.deprecated("dojox.data.dom.removeChildren()","Use dojox.xml.parser.removeChildren() instead.","2.0");
return dojox.xml.parser.removeChildren(node);
};
dojox.data.dom.innerXML=function(node){
dojo.deprecated("dojox.data.dom.innerXML()","Use dojox.xml.parser.innerXML() instead.","2.0");
return dojox.xml.parser.innerXML(node);
};
}
var agt=navigator.userAgent.toLowerCase();
var is_major=parseInt(navigator.appVersion);
var is_minor=parseFloat(navigator.appVersion);
var is_nav=((dojo.isMozilla>0)||(dojo.isSafari>0));
var is_nav6up=is_nav;
var is_firefox=(dojo.isFF>0);
var is_opera=(dojo.isOpera>0);
var is_ie=(dojo.isIE>0);
var is_ie3=(dojo.isIE==3);
var is_ie4=(dojo.isIE==4);
var is_ie5=(dojo.isIE==5);
var is_ie5_5=(dojo.isIE==5.5);
var is_ie5up=(dojo.isIE>=5);
var is_ie5_5up=(dojo.isIE>=5.5);
var is_ie6=(dojo.isIE==6);
var is_ie6up=(dojo.isIE>=6);
var is_ie7=(dojo.isIE==7);
var is_iframe_compliant=(is_ie5up||is_nav6up||is_opera||(dojo.isChrome>0));
var is_win=((agt.indexOf("win")!=-1)||(agt.indexOf("32bit")!=-1));
var is_mac=(agt.indexOf("mac")!=-1);
function activeXCheck(){
document.cookie="ActiveXEnabled=true; path=/";
if(is_ie){
try{
if(window.ActiveXObject){
return new ActiveXObject(getControlPrefix()+".XmlHttp");
}
}
catch(ex){
if(window.XMLHttpRequest==undefined){
document.cookie="ActiveXEnabled=false; path=/";
}
}
}
};
function getControlPrefix(){
if(getControlPrefix.prefix){
return getControlPrefix.prefix;
}
var _433=["MSXML2","Microsoft","MSXML","MSXML3"];
var o,o2;
for(var i=0;i<_433.length;i++){
try{
o=new ActiveXObject(_433[i]+".XmlHttp");
o2=new ActiveXObject(_433[i]+".XmlDom");
return getControlPrefix.prefix=_433[i];
}
catch(ex){
}
}
throw new Error("Could not find an installed XML parser");
};
activeXCheck();
function openPromoWindow(_437,_438){
var _439=(document.cookie.indexOf(_438)==-1);
var _43a=document.cookie.indexOf(_438+"viewed=");
if(_439&&(_43a==-1)){
var _43b=window.open(_437,"SitePromotions","noresizable,noscrollbars,screenX=100, screenY=100,width=310,height=230");
_43b.moveTo(100,100);
}
};
function detectIframeAdobe(_43c,_43d,_43e){
var _43f=createCatalogUrlString(_43c,_43d,_43e);
window.location=_43f;
};
function createCatalogUrlString(_440,_441,_442){
var _443,_444=false;
var _445=false;
if(is_iframe_compliant){
_444=detectAdobe();
}
var _446="?browserCompatable="+is_iframe_compliant+"&adobeCompatable="+_444;
if(detectAdobe(true)){
_445=true;
}
_446=_446+"&toolbar="+_445;
if(_440!=null&&_440!=""){
_446=_446+"&CatPage="+_440;
}
if(_441==null||_441==""){
_443="viewCatalogPDF.shtml"+_446;
var _447=window.location.pathname;
var _448=_447.indexOf("/cgi-bin/");
if(_447.indexOf("wwg")==-1){
if(_448==-1){
_443="/Grainger/wwg/"+_443;
}else{
var _449=_447.indexOf("/",9);
var _44a=_447.substring(_448,_449);
_443=_44a+"/wwg/"+_443;
}
}
}else{
_443=_441+_446;
}
if(_442){
_443="/Grainger/"+_443;
}
return _443;
};
function iframeRefresh(_44b){
if(detectAdobe(true)){
parent.location.reload();
if(_44b!=null){
alert("Please click OK to view the Help Pop-up Window.");
openIt(_44b);
}
}
};
function showPopup(url,_44d,_44e){
var _44f=window.open(url,"childwin","width="+_44d+",height="+_44e+",menubar=no,scrollbars,status=no");
iframeRefresh(_44f);
};
function popUpPositionWidth(_450){
var _451=(_450)/2;
var xMax=screen.width;
var _453=((xMax)/2)-_451;
return _453;
};
function popUpPositionHeight(_454){
var _455=(_454)/2;
yMax=screen.height;
yOffset=((yMax)/2)-_455;
return yOffset;
};
function popWin(url,_457,_458,_459,_45a,_45b,menu,_45d,_45e,_45f){
if(_457==null||_457==""){
_457=400;
}
if(_458==null||_458==""){
_458=400;
}
if(_45a==null||_45a==""){
_45a="no";
}
if(_45b==null||_45b==""){
_45b="no";
}
if(menu==null||menu==""){
menu="no";
}
if(_45d==null||_45d==""){
_45d="no";
}
if(_45e==null||_45e==""){
_45e="no";
}
if(_45f==null||_45f==""){
_45f="childwin";
}
goBack(_459);
if(window.location.pathname.indexOf("PDF")==-1){
popupwindow=window.open(url,_45f,"width="+_457+",height="+_458+",menubar="+menu+",scrollbars,status="+_45e+",toolbar="+_45a+",location="+_45b+",resizable="+_45d);
if(_45f=="mastersetWindow"){
moveX=0;
moveY=0;
if(is_firefox){
moveY=500;
}
openIt(popupwindow,moveX,moveY);
}else{
openIt(popupwindow);
}
}else{
showPopup(url,_457,_458);
}
};
function popWinSurvey(url,_461){
goBack(_461);
popupwindow=window.open(url,"childwin","menubar=no,scrollbars,status=no");
openIt(popupwindow);
};
function openIt(_462,_463,_464){
_462.focus();
if(!_462.opener){
_462.opener=window;
}
if((_463!=null)&&(_464!=null)){
_462.moveTo(_463,_464);
}
};
function goBack(qty){
if(qty!=null&&qty.length>0){
window.history.go(qty);
}
};
function submitSearch(form,obj){
if(!isNullSearch(obj)){
form.submit();
}
};
function isNullSearch(obj){
var _469=obj.value;
_469=_469.replace(/^\s+/,"").replace(/\s+$/,"");
if((_469==null)||(_469=="")){
alert("Please enter text to search.");
return true;
}
return false;
};
function isValidQuantity(obj){
var qty=obj.value;
qty=qty.replace(/^\s+/,"").replace(/\s+$/,"");
if(qty==""||qty=="Qty"){
return true;
}
var _46c=/^[0-9]*$/;
if(_46c.test(qty)==false||parseInt(qty,10)<=0){
alert("You have entered an invalid character in the quantity field for one or more item \nnumbers.  Please double check the quantity field(s) on this page and ensure that\neach one only contains a positive number.");
unlocksubmit();
obj.focus();
return false;
}
return true;
};
function isEmptyItemRow(_46d,_46e){
if((_46e.value.replace(/^(\s)+$/,"")==""||_46e.value.toUpperCase()=="ITEM #")){
return true;
}else{
return false;
}
};
function isValidItemRow(_46f,_470){
if(isValidQuantity(_46f)){
if(_470.value.toUpperCase()=="ITEM #"||_470.value.replace(/^(\s)+$/,"")==""){
alert("Please enter an item number.");
unlocksubmit();
_470.focus();
}else{
if(_46f.value=="Qty"){
_46f.value="";
}
return true;
}
}else{
_46f.focus();
}
return false;
};
function validateSearchQuery(_471){
return (!isNullSearch(_471));
};
var cansubmit=true;
function _submitOnce(){
if(cansubmit){
cansubmit=false;
return true;
}
return false;
};
function unlocksubmit(){
cansubmit=true;
};
unlocksubmit();
function forward(page){
document.location=page;
};
function getElmtRef(_473){
if(!document.getElementById){
return document.all[_473];
}else{
return document.getElementById(_473);
}
};
String.prototype.trim=function(){
var x=this;
x=x.replace(/^\s*(.*)/,"$1");
x=x.replace(/(.*?)\s*$/,"$1");
return x;
};
String.prototype.endsWith=function(){
if(arguments.length!=1){
return true;
}
var s=arguments[0];
if(this.length>=s.length){
return this.substring(this.length-s.length,this.length)==s;
}else{
return false;
}
};
function createCookie(name,_477,days){
if(days){
var date=new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var _47a="; expires="+date.toGMTString();
}else{
var _47a="";
}
document.cookie=name+"="+_477+_47a+"; path=/";
};
function readCookie(name){
var _47c=name+"=";
var ca=document.cookie.split(";");
for(var i=0;i<ca.length;i++){
var c=ca[i];
while(c.charAt(0)==" "){
c=c.substring(1,c.length);
}
if(c.indexOf(_47c)==0){
return c.substring(_47c.length,c.length);
}
}
return null;
};
function eraseCookie(name){
createCookie(name,"",-1);
};
function elipsis(_481,_482){
if(_481&&_482){
_482=parseInt(_482);
var _483;
if(_481.length>_482){
_483="<span title=\""+_481+"\">"+_481.substring(0,_482-4)+"&nbsp;...</span>";
}else{
_483=_481;
}
return _483;
}
return _481;
};
function decodeUrlChars(_484){
return _484.replace(/%22/g,"\"").replace(/%27/g,"'");
};
var cookiesEnabled=true;
function cookieCheck(){
var _485=new Date();
_485.setFullYear(_485.getFullYear()+1);
document.cookie="cookies=true; expires="+_485.toGMTString()+"; path=/";
document.cookie="grainger=true; path=/";
var _486=!(document.cookie.indexOf("grainger=")==-1);
var _487=!(document.cookie.indexOf("cookies=")==-1);
if(!_486||!_487){
cookiesEnabled=false;
}
};
cookieCheck();
function alternateTableRows(_488){
if(document.getElementsByTagName){
var _489=document.getElementById(_488);
var rows=_489.getElementsByTagName("tr");
for(i=0;i<rows.length;i++){
if(i%2!=0){
rows[i].className="trgray";
}
}
}
};
function getBaseApplicationURL(){
var uri=location.protocol+"//"+document.domain+location.pathname;
var _48c=new RegExp("(https*://.*?/(Grainger|gcom_a[0-9]+|cgi-bin/gcom_a[0-9]+))/.*");
return (uri.replace(_48c,"$1"));
};
function callCmSetProduction(){
if(window.location.href.indexOf("www.grainger.com")>-1){
cmSetProduction();
}
};
function replaceMissingImage(_48d,_48e){
_48d.src=_48e;
_48d.onerror="";
return true;
};
function loadJavaScript(_48f){
var _490=document.getElementsByTagName("head").item(0);
var js=document.createElement("script");
js.setAttribute("language","javascript");
js.setAttribute("type","text/javascript");
js.setAttribute("src",_48f);
if(_48f.indexOf("dojo.js")>=0){
js.setAttribute("djConfig","parseOnLoad: true");
}
_490.appendChild(js);
};
function loadCSS(_492){
var _493=document.getElementsByTagName("head").item(0);
var css1=document.createElement("link");
css1.setAttribute("rel","stylesheet");
css1.setAttribute("type","text/css");
css1.setAttribute("href",_492);
_493.appendChild(css1);
};
function submitEnter(_495){
var _496;
if(window.event){
_496=window.event.keyCode;
}else{
if(_495){
_496=_495.which;
}else{
return true;
}
}
if(_496==13){
document.signinForm.submit();
return false;
}else{
return true;
}
};
function enterKeyPressed(_497){
var _498;
if(window.event){
_498=window.event.keyCode;
}else{
if(_497){
_498=_497.which;
}else{
return false;
}
}
if(_498==13){
return true;
}else{
return false;
}
};
function showSignIn(){
var _499=readCookie("ActiveXEnabled");
if(_499=="false"){
window.location=getBaseApplicationURL()+"/wwg/loginOrRegister.shtml";
}
var _49a;
if(window.location.href.indexOf("viewCatalogPDF.shtml")>-1){
_49a="56px";
}else{
_49a="150px";
}
dojo.extend(dijit.Dialog,{_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _49c=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_49c.l+(p?p.l:(_49c.w-mb.w)/2))+"px",top:_49a});
}
}});
var _49f=dijit.byId("signin");
_49f.show();
var _4a0=dojo.byId("loginSubmit");
if(_4a0!=null){
_4a0.onclick=function(){
_4a0.disabled=true;
dojo.byId("signinForm").submit();
return (false);
};
}
document.signinForm.currentPageURL.value=window.location.href;
document.signinForm.userName.focus();
};
var performKeywordSearch=function(form){
if(null!=form.searchQuery&&form.searchQuery.value.length>0){
form.searchQuery.value=form.searchQuery.value.replace(/^\s*|\s*$/g,"");
if(getQueryParam("sst")!=""){
form.sst.value=getQueryParam("sst");
}
if(form.searchQuery.value.length>0){
if(form.Ntt.value.length>0){
form.Ntt.value+="|"+form.searchQuery.value;
}else{
form.Ntt.value=form.searchQuery.value;
}
form.submit();
return (true);
}
}
alert("Please enter a search value.");
return (false);
};
function getQueryParam(key){
var _4a3=window.location.search.substring(1);
var vars=_4a3.split("&");
for(var i=0;i<vars.length;i++){
var _4a6=vars[i].split("=");
if(_4a6[0]==key){
return _4a6[1];
}
}
return "";
};
function searchTypeChange(obj){
if(dojo.byId("mixedviewSearchType").value!=obj.value){
dojo.byId("mixedviewSearchType").value=obj.value;
var _4a8="";
var _4a9="";
if(window.location.href.indexOf("homepage.jsp")!=-1){
_4a8="homepage.jsp";
_4a9="?searchType="+obj.value;
}else{
if(window.location.href.indexOf("start.shtml")!=-1){
_4a8="start.shtml";
_4a9="?searchType="+obj.value;
}else{
if(window.location.href.indexOf("search.shtml")!=-1){
_4a8="search.shtml";
_4a9="?op=search&searchType="+obj.value;
}else{
if(window.location.href.indexOf("/ecatalog/")!=-1){
_4a8="/ecatalog/";
_4a9="N-?op=search&searchType="+obj.value;
}
}
}
}
if(_4a9!=""){
var idx=window.location.href.indexOf(_4a8);
window.location.href=window.location.href.substr(0,idx+_4a8.length)+_4a9;
}
}
};
var containsElement=function(arr,ele){
var _4ad=false,_4ae=0;
while(!_4ad&&_4ae<arr.length){
if(arr[_4ae]==ele){
_4ad=true;
}else{
_4ae++;
}
}
return _4ad;
};
var autoCursor=function(_4af,len,e){
var _4b2=(is_nav)?e.which:e.keyCode;
var _4b3=(is_nav)?[0,8,9]:[0,8,9,16,17,18,37,38,39,40,46];
if(_4af.value.length>=len&&!containsElement(_4b3,_4b2)){
_4af.value=_4af.value.slice(0,len);
var _4b4=getIndex(_4af);
for(var i=(_4b4+1)%_4af.form.length;i!=_4b4;i=++i%_4af.form.length){
try{
_4af.form[i].focus();
break;
}
catch(e){
continue;
}
}
}
return true;
};
var getIndex=function(_4b6){
var _4b7=-1,i=0,_4b9=false;
while(i<_4b6.form.length&&_4b7==-1){
if(_4b6.form[i]==_4b6){
_4b7=i;
}else{
i++;
}
}
return _4b7;
};
var djConfig={parseOnLoad:true,isDebug:false,preventBackButtonFix:false,dojoIframeHistoryUrl:"/dojo/dojo/resources/iframe_history.html"};
function debug(msg){
if(djConfig.isDebug){
console.log(msg);
}
};
function ajaxCall(_4bb,_4bc){
_4bb=_4bb||"POST";
if(_4bb=="POST"){
dojo.xhrPost(_4bc);
}else{
if(_4bb=="GET"){
dojo.xhrGet(_4bc);
}else{
dojo.xhrPost(_4bc);
}
}
};
var defaultBackButtonHandler={handle:function(_4bd){
var _4be=(_4bd.mimetype)?true:false;
if(_4bd.response){
if(_4be){
if(_4bd.load){
_4bd.load("",_4bd.response,"");
}else{
_4bd.handle("",_4bd.response,"");
}
}else{
if(_4bd.load){
_4bd.load(response,"");
}else{
_4bd.handle(response,"");
}
}
}else{
if(_4be){
dojoBind({bindObj:_4bd});
}else{
ajaxCall(_4bd.method,_4bd);
}
}
}};
ApplicationState=function(_4bf,_4c0,_4c1){
this.stateData=_4bf;
this.backButtonHandler=((!_4c0)||_4c0=="")?defaultBackButtonHandler:_4c0;
this.changeUrl=_4c1||(new Date()).getTime();
};
dojo.extend(ApplicationState,{back:function(){
debug("BACK for State Object: "+this.stateData);
this.handleImpl();
},forward:function(){
debug("FORWARD for State Object: "+this.stateData);
this.handleImpl();
},handleImpl:function(){
if(!this.backButtonHandler.handle){
debug("handleBackButton function is not implemented in the backButtonHandler");
}else{
this.backButtonHandler.handle(this.stateData);
}
}});
if(readCookie("debug")){
djConfig.isDebug=true;
}
function isXmlhttpRequestSupported(){
var xhr=null;
try{
xhr=dojo._xhrObj();
}
catch(e){
}
return (!xhr)?false:true;
};
function isAjaxSupported(){
return isXmlhttpRequestSupported();
};
function convertToXhrArgs(_4c3){
var _4c4={url:_4c3.url,content:_4c3.content,form:_4c3.formNode,sync:_4c3.sync||false,error:function(_4c5,_4c6){
return _4c3.error("",_4c5);
},method:_4c3.method,handleAs:getHandleAs(_4c3.mimetype),load:function(_4c7,_4c8){
return _4c3.load("",_4c7,"");
}};
return _4c4;
};
function getHandleAs(_4c9){
_4c9=_4c9||"text/html";
if(_4c9=="text/html"||_4c9=="text/plain"){
return "text";
}
if(_4c9.indexOf("javascript")>0){
return "javascript";
}
if(_4c9.indexOf("xml")>0){
return "xml";
}
return "text";
};
function modifyInputFields(_4ca,_4cb){
var _4cc=document.getElementById(_4ca);
if(_4cc!=null&&_4cc.tagName=="FORM"){
for(var i=0;i<_4cc.length;i++){
var _4ce=_4cc[i];
if(_4ce.tagName=="INPUT"){
if(!_4cb){
_4ce.disabled=true;
}else{
_4ce.disabled=false;
}
}
}
}
};
function processAjaxResponse(_4cf){
debug("ajax response: "+_4cf);
if(_4cf.toLowerCase().indexOf("<ajax-response>")<0){
document.write(_4cf);
document.close();
return;
}
xmlDoc=dojox.data.dom.createDocument(_4cf);
var _4d0=xmlDoc.getElementsByTagName("error");
if(_4d0!=null&&_4d0.length>0){
processErrors(_4d0);
}else{
var _4d1=xmlDoc.getElementsByTagName("field");
processFields(_4d1);
}
};
function processErrors(_4d2){
for(var i=0;i<_4d2.length;i++){
var _4d4=_4d2[i].getAttribute("value");
if(_4d4==null){
if(window.ActiveXObject){
_4d4=_4d2[i].firstChild.nodeValue.trim();
}else{
_4d4=_4d2[i].childNodes[1].nodeValue.trim();
}
}
alert(_4d4);
}
};
function processFields(_4d5){
for(var i=0;i<_4d5.length;i++){
var id=_4d5[i].getAttribute("id");
if(!dojo.byId(id)){
continue;
}
var _4d8=_4d5[i].getAttribute("attribute");
var _4d9=_4d5[i].getAttribute("value");
if(_4d9==null){
if(window.ActiveXObject){
_4d9=_4d5[i].firstChild.nodeValue.trim();
}else{
_4d9=_4d5[i].childNodes[1].nodeValue.trim();
}
}
eval("window.replaceValue = function(value) { dojo.byId('"+id+"')."+_4d8+" = value;}");
replaceValue(_4d9);
if(_4d8=="innerHTML"&&_4d9!=null&&_4d9.length>0){
var node=null;
node=dojo.byId(id);
var _4db=node.getElementsByTagName("script");
for(var j=0;j<_4db.length;j++){
var src=_4db[j].getAttribute("src");
if(src!=null&&src!=""){
if(src.indexOf("dojo.js")<0){
dojo.xhrGet({url:src,handleAs:"javascript",load:function(_4de,_4df){
},sync:true,error:function(_4e0,_4e1){
alert("Error: "+_4e0);
}});
}
}else{
var _4e2="";
if(window.ActiveXObject){
_4e2=_4db[j].text.trim();
}else{
for(var _4e3=0;_4e3<_4db[j].childNodes.length;++_4e3){
_4e2+=_4db[j].childNodes[_4e3].nodeValue.trim();
}
}
eval(_4e2);
}
}
}
}
};
function dojoBind(oArg){
var _4e5=true;
if(oArg.resetTimoutCounter==undefined){
_4e5=true;
}else{
_4e5=oArg.resetTimoutCounter;
}
if(_4e5){
sessionResetCount=0;
}
if(is_ie&&!isXmlhttpRequestSupported()){
var _4e6=true;
if(oArg.showMsg==undefined){
_4e6=true;
}else{
_4e6=oArg.showMsg;
}
if(_4e6){
alert("To complete this action, your Internet Explorer browser must have\r\nActiveX controls enabled.   Please update your browser, use a different\r\nbrowser or contact Customer Care at 1-888-361-8649, 24 hours a day,\r\n7 days a week for assistance.");
}
if(oArg.none!=undefined){
for(var i=0;i<oArg.none.length;i++){
if(dojo.byId(oArg.none[i])){
dojo.byId(oArg.none[i]).style.display="none";
}
}
}
if(oArg.inline!=undefined){
for(var i=0;i<oArg.inline.length;i++){
if(dojo.byId(oArg.inline[i])){
dojo.byId(oArg.inline[i]).style.display="inline";
}
}
}
return -1;
}
oArg.bindObj.sendTransport=true;
ajaxCall(oArg.bindObj.method,convertToXhrArgs(oArg.bindObj));
};
function getCMTargetUrl(_4e8){
_4e8=_4e8||"";
var idx=_4e8.indexOf(location.hostname);
if(idx>0){
idx+=location.hostname.length;
return _4e8.substring(idx);
}else{
return _4e8;
}
};
var cmCreateLinkTag;
var menuSeparator="<span>&nbsp;|&nbsp;</span>";
function createMenuItem(_4ea,_4eb,_4ec){
var _4ed="<span id=\""+_4ea+_4eb+"\">"+"<a id=\""+_4ea+"_Anchor"+_4eb+"\" href=\""+_4ec.absoluteLink+"\" "+"onClick=\"return cmCreateManualLinkClickTag("+"'"+getCMTargetUrl(_4ec.absoluteLink)+"', '"+(_4ec.formatedCMLinkName||"")+"', '"+location.pathname+"');"+"\" "+"target='"+(_4ec.external?"_blank":(_4ec.target||""))+"' "+"name='"+(_4ec.name||"")+"' "+"style='"+(_4ec.style||"")+"' "+"title='"+(_4ec.title||"")+"' "+">"+_4ec.altText+"</a></span>";
return _4ed;
};
function createFooterToolbar(_4ee,_4ef,_4f0,_4f1,_4f2){
var _4f3=document.getElementById(_4f0);
var _4f4="";
for(var i=0;i<_4ef.length;i++){
var _4f6=_4ef[i];
_4f6.pageId=_4f1;
_4f6.community=_4f2;
var menu=createMenuItem("footer_menu",i,_4f6);
if(i>0){
_4f4+=menuSeparator;
}
_4f4+=menu;
}
var logo="";
if(_4ee){
logo="<IMG align=\"left\" src=\""+_4ee+"\" alt=\"Customer Corporate logo\"/>";
}
_4f3.innerHTML=logo+_4f4;
};
function createFooterMenu(_4f9){
var _4fa=_4f9.logoImage||0;
var _4fb=_4f9.menuList;
for(var i=0;i<_4fb.length;i++){
var _4fd=_4fb[i];
var _4fe=_4fd.menuItems;
_4fa=(i==0)?_4fa:0;
createFooterToolbar(_4fa,_4fe,"footerTB"+(i+1),_4fd.pageId,_4fd.community);
}
};
function getProfilePageViewURL(){
return (getBaseApplicationURL()+"/wwg/cmProfilePageView.shtml");
};
function getFirePageViewTagBindArgs(_4ff,_500,_501){
if(_4ff==null||_4ff==""){
_4ff="";
}
if(_501==null||_501==""){
_501="";
}
var uri=getProfilePageViewURL();
var _503={url:uri,content:{name:_4ff,pageid:_500,searchString:_501},method:"POST",mimetype:"text/html",load:function(type,_505,evt){
this.response=_505;
processAjaxResponse(_505);
},error:function(type,_508){
}};
return _503;
};
function firePageViewTag(_509,_50a,_50b,_50c){
if(_50c==null||_50c==""){
resetTimout=true;
}
var _50d=getFirePageViewTagBindArgs(_509,_50a,_50b,_50c);
dojoBind({bindObj:_50d,showMsg:false,resetTimoutCounter:_50c});
};
var sessionResetCount=0;
function handleTimeout(){
if(!is_ie||(is_ie&&isAjaxSupported())){
sessionResetCount++;
if(sessionResetCount==5){
setTimeout("firePageViewTag(\"\", \"sessionTimeout.js\", \"\", false)",4800000);
}else{
setTimeout("firePageViewTag(\"\", \"sessionTimeout.js\", \"\", false);handleTimeout()",3300000);
}
}
};
handleTimeout();
function detectIE(_50e,name){
try{
var yObj=new ActiveXObject(_50e);
if(yObj==null){
return "";
}else{
return name+",";
}
}
catch(e){
return "";
}
};
function detectNS(_511,name){
n="";
if(nse.indexOf(_511)!=-1){
if(navigator.mimeTypes[_511].enabledPlugin!=null){
n=name+",";
}
}
return n;
};
function detectAdobe(_513){
var _514=false;
if(is_ie&&is_win&&!is_opera){
if(_513){
pluginlist=detectIE("AcroPDF.PDF.1","Acrobat Reader");
}else{
pluginlist=detectIE("Adobe.SVGCtl","SVG Viewer")+detectIE("AcroPDF.PDF.1","Acrobat Reader")+detectIE("PDF.PdfCtrl.6","Acrobat Reader")+detectIE("PDF.PdfCtrl.5","Acrobat Reader")+detectIE("PDF.PdfCtrl.1","Acrobat Reader");
}
}
if(!_513&&(is_nav||!is_win||is_opera||(dojo.isChrome>0))){
nse="";
for(var i=0;i<navigator.mimeTypes.length;i++){
nse+=navigator.mimeTypes[i].type.toLowerCase();
}
pluginlist=detectNS("image/svg-xml","SVG Viewer")+detectNS("application/pdf","Acrobat Reader");
}
if(pluginlist.length>0){
pluginlist=pluginlist.substring(0,pluginlist.length-1);
}
if(_513){
if((pluginlist.indexOf("Acrobat Reader")!=-1)){
_514=true;
}
}else{
if((pluginlist.indexOf("Acrobat Reader")!=-1)||(pluginlist.indexOf("SVG Viewer")!=-1)){
_514=true;
}
}
return _514;
};
function createWaitMessage(){
var _516="<div class=\"pleaseWaitSpinner\">"+"<br/><br/><br/><img id=\"waitSpinnerImg\" src=\"/images/spinner-anim.gif\" alt=\"Please wait\" /><br/><br/>"+"Please wait while we process your request.</div>";
var _517=new dijit.Dialog({title:"",content:_516,id:"waitingMessage"});
dojo.body().appendChild(_517.domNode);
_517.startup();
return (_517);
};
function setWaitStatus(_518){
var _519=dijit.byId("waitingMessage");
if(_519==null){
_519=createWaitMessage();
}
cansubmit=true;
if(_518){
dojo.extend(dijit.Dialog,{_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _51b=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_51b.l+(p?p.l:(_51b.w-mb.w)/2))+"px",top:Math.floor(_51b.t+(p?p.t:(_51b.h-mb.h)/3))+"px"});
}
}});
setTimeout("document.images[\"waitSpinnerImg\"].src = \"images/spinner-anim.gif\"",200);
_519.show();
}else{
_519.hide();
}
};
function showWaitingMessage(){
setWaitStatus(true);
};
window.onpageshow=function(evt){
if(evt.persisted){
setWaitStatus(false);
}
};
function setNavigation(){
var _51f="";
var node="";
var _521="";
var _522=0;
var _523=0;
var _524="";
var _525=0;
var _526;
if(document.getElementById("globalMenu")){
_51f=document.getElementById("globalMenu");
for(i=0;i<_51f.childNodes.length;i++){
node=_51f.childNodes[i];
if(node.nodeName=="LI"){
_524=this.className;
if(navigator.appName=="Microsoft Internet Explorer"){
node.onmouseenter=function(){
_524=this.className;
if((_524.indexOf("over")==-1)&&(_524.indexOf("noborder")==-1)){
for(j=0;j<this.childNodes.length;j++){
_521=this.childNodes[j];
if(_521.nodeName=="UL"){
this.className="over";
_522=0;
_523=0;
hideShowSelectBox(findGlobalPosX(_521),findGlobalPosY(_521),_521.offsetWidth,_521.offsetHeight);
var _527=document.getElementById("pdfBodyId");
if(_527!=null){
if(_521.offsetHeight>188){
var _528=_521.offsetHeight-188;
_527.style.marginTop=_528;
}
}
}else{
this.className="single";
}
}
}
};
node.onmouseleave=function(){
this.className=_524;
showAllSelectBoxes();
_525=setTimeout("showAllEmbeds();",10);
var _529=document.getElementById("pdfBodyId");
if(_529!=null){
_529.style.marginTop=0;
}
};
}else{
node.onmouseover=function(){
_524=this.className;
if((_524.indexOf("over")==-1)&&(_524.indexOf("noborder")==-1)){
for(j=0;j<this.childNodes.length;j++){
_521=this.childNodes[j];
if(_521.nodeName=="UL"){
this.className="over";
_522=0;
_523=0;
if(document.getElementsByTagName("iframe").length>0){
clearTimeout(_525);
var _52a=document.getElementById("pdfBodyId");
if(_52a!=null){
if(_521.offsetHeight>188){
var _52b=_521.offsetHeight-188;
_52a.style.marginTop=_52b;
}
}
}
}else{
this.className="single";
}
}
}
};
node.onmouseout=function(){
this.className=_524;
_525=setTimeout("showAllEmbeds();",10);
};
}
}
}
}
};
function findGlobalPosX(obj){
var _52d=0;
if(obj.offsetParent){
while(obj.offsetParent){
_52d+=obj.offsetLeft;
obj=obj.offsetParent;
}
}else{
if(obj.x){
_52d+=obj.x;
}
}
return _52d;
};
function findGlobalPosY(obj){
var _52f=0;
if(obj.offsetParent){
while(obj.offsetParent){
_52f+=obj.offsetTop;
obj=obj.offsetParent;
}
_52f+=1;
}else{
if(obj.y){
_52f+=obj.y;
}
}
return _52f;
};
function hideShowSelectBox(_530,_531,_532,_533){
for(slectLoop2=0;slectLoop2<document.getElementsByTagName("select").length;slectLoop2++){
var _534=findGlobalPosY(document.getElementsByTagName("select")[slectLoop2]);
var _535=findGlobalPosX(document.getElementsByTagName("select")[slectLoop2]);
var _536=document.getElementsByTagName("select")[slectLoop2].offsetWidth;
var _537=document.getElementsByTagName("select")[slectLoop2].offsetHeight;
if((_534<=_531+_533&&_534+_537>=_531)&&((_535<=_530&&_530<=(_536+_535))||((_530<=_535)&&(_530+_532>_535)))){
document.getElementsByTagName("select")[slectLoop2].style.visibility="hidden";
}else{
document.getElementsByTagName("select")[slectLoop2].style.visibility="visible";
}
}
};
function showAllSelectBoxes(){
for(j=0;j<document.getElementsByTagName("select").length;j++){
document.getElementsByTagName("select")[j].style.visibility="visible";
}
};
function hideShowEmbedObj(_538,_539,_53a,_53b){
for(embedLoop=0;embedLoop<document.getElementsByTagName("iframe").length;embedLoop++){
var _53c=findGlobalPosY(document.getElementsByTagName("iframe")[embedLoop]);
var _53d=findGlobalPosX(document.getElementsByTagName("iframe")[embedLoop]);
var _53e=document.getElementsByTagName("iframe")[embedLoop].offsetWidth;
var _53f=document.getElementsByTagName("iframe")[embedLoop].offsetHeight;
var _540=document.getElementById("shimmer");
if(_540!=null){
if((_53c<=_539+_53b&&_53c+_53f>=_539)&&((_53d<=_538&&_538<=(_53e+_53d))||((_538<=_53d)&&(_538+_53a>_53d)))){
_540.style.width=_53a;
_540.style.height=_53b;
_540.style.top=_539;
_540.style.left=_538;
_540.style.display="block";
}
}
}
};
function showAllEmbeds(){
var _541=document.getElementById("pdfBodyId");
if(_541!=null){
_541.style.marginTop=0;
}
};
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(_545,_546){
var _547=[];
function _548(attr,dir){
return function(_54b,_54c){
var a=_546.getValue(_54b,attr);
var b=_546.getValue(_54c,attr);
var _54f=null;
if(_546.comparatorMap){
if(typeof attr!=="string"){
attr=_546.getIdentity(attr);
}
_54f=_546.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;
}
_54f=_54f||dojo.data.util.sorter.basicComparator;
return dir*_54f(a,b);
};
};
var _550;
for(var i=0;i<_545.length;i++){
_550=_545[i];
if(_550.attribute){
var _552=(_550.descending)?-1:1;
_547.push(_548(_550.attribute,_552));
}
}
return function(rowA,rowB){
var i=0;
while(i<_547.length){
var ret=_547[i++](rowA,rowB);
if(ret!==0){
return ret;
}
}
return 0;
};
};
}
if(!dojo._hasResource["dojox.data.QueryReadStore"]){
dojo._hasResource["dojox.data.QueryReadStore"]=true;
dojo.provide("dojox.data.QueryReadStore");
dojo.declare("dojox.data.QueryReadStore",null,{url:"",requestMethod:"get",_className:"dojox.data.QueryReadStore",_items:[],_lastServerQuery:null,_numRows:-1,lastRequestHash:null,doClientPaging:false,doClientSorting:false,_itemsByIdentity:null,_identifier:null,_features:{"dojo.data.api.Read":true,"dojo.data.api.Identity":true},_labelAttr:"label",constructor:function(_557){
dojo.mixin(this,_557);
},getValue:function(item,_559,_55a){
this._assertIsItem(item);
if(!dojo.isString(_559)){
throw new Error(this._className+".getValue(): Invalid attribute, string expected!");
}
if(!this.hasAttribute(item,_559)){
if(_55a){
return _55a;
}
console.log(this._className+".getValue(): Item does not have the attribute '"+_559+"'.");
}
return item.i[_559];
},getValues:function(item,_55c){
this._assertIsItem(item);
var ret=[];
if(this.hasAttribute(item,_55c)){
ret.push(item.i[_55c]);
}
return ret;
},getAttributes:function(item){
this._assertIsItem(item);
var ret=[];
for(var i in item.i){
ret.push(i);
}
return ret;
},hasAttribute:function(item,_562){
return this.isItem(item)&&typeof item.i[_562]!="undefined";
},containsValue:function(item,_564,_565){
var _566=this.getValues(item,_564);
var len=_566.length;
for(var i=0;i<len;i++){
if(_566[i]==_565){
return true;
}
}
return false;
},isItem:function(_569){
if(_569){
return typeof _569.r!="undefined"&&_569.r==this;
}
return false;
},isItemLoaded:function(_56a){
return this.isItem(_56a);
},loadItem:function(args){
if(this.isItemLoaded(args.item)){
return;
}
},fetch:function(_56c){
_56c=_56c||{};
if(!_56c.store){
_56c.store=this;
}
var self=this;
var _56e=function(_56f,_570){
if(_570.onError){
var _571=_570.scope||dojo.global;
_570.onError.call(_571,_56f,_570);
}
};
var _572=function(_573,_574,_575){
var _576=_574.abort||null;
var _577=false;
var _578=_574.start?_574.start:0;
if(self.doClientPaging==false){
_578=0;
}
var _579=_574.count?(_578+_574.count):_573.length;
_574.abort=function(){
_577=true;
if(_576){
_576.call(_574);
}
};
var _57a=_574.scope||dojo.global;
if(!_574.store){
_574.store=self;
}
if(_574.onBegin){
_574.onBegin.call(_57a,_575,_574);
}
if(_574.sort&&self.doClientSorting){
_573.sort(dojo.data.util.sorter.createSortFunction(_574.sort,self));
}
if(_574.onItem){
for(var i=_578;(i<_573.length)&&(i<_579);++i){
var item=_573[i];
if(!_577){
_574.onItem.call(_57a,item,_574);
}
}
}
if(_574.onComplete&&!_577){
var _57d=null;
if(!_574.onItem){
_57d=_573.slice(_578,_579);
}
_574.onComplete.call(_57a,_57d,_574);
}
};
this._fetchItems(_56c,_572,_56e);
return _56c;
},getFeatures:function(){
return this._features;
},close:function(_57e){
},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;
},_xhrFetchHandler:function(data,_582,_583,_584){
data=this._filterResponse(data);
if(data.label){
this._labelAttr=data.label;
}
var _585=data.numRows||-1;
this._items=[];
dojo.forEach(data.items,function(e){
this._items.push({i:e,r:this});
},this);
var _587=data.identifier;
this._itemsByIdentity={};
if(_587){
this._identifier=_587;
var i;
for(i=0;i<this._items.length;++i){
var item=this._items[i].i;
var _58a=item[_587];
if(!this._itemsByIdentity[_58a]){
this._itemsByIdentity[_58a]=item;
}else{
throw new Error(this._className+":  The json data as specified by: ["+this.url+"] is malformed.  Items within the list have identifier: ["+_587+"].  Value collided: ["+_58a+"]");
}
}
}else{
this._identifier=Number;
for(i=0;i<this._items.length;++i){
this._items[i].n=i;
}
}
_585=this._numRows=(_585===-1)?this._items.length:_585;
_583(this._items,_582,_585);
this._numRows=_585;
},_fetchItems:function(_58b,_58c,_58d){
var _58e=_58b.serverQuery||_58b.query||{};
if(!this.doClientPaging){
_58e.start=_58b.start||0;
if(_58b.count){
_58e.count=_58b.count;
}
}
if(!this.doClientSorting){
if(_58b.sort){
var sort=_58b.sort[0];
if(sort&&sort.attribute){
var _590=sort.attribute;
if(sort.descending){
_590="-"+_590;
}
_58e.sort=_590;
}
}
}
if(this.doClientPaging&&this._lastServerQuery!==null&&dojo.toJson(_58e)==dojo.toJson(this._lastServerQuery)){
this._numRows=(this._numRows===-1)?this._items.length:this._numRows;
_58c(this._items,_58b,this._numRows);
}else{
var _591=this.requestMethod.toLowerCase()=="post"?dojo.xhrPost:dojo.xhrGet;
var _592=_591({url:this.url,handleAs:"json-comment-optional",content:_58e});
_592.addCallback(dojo.hitch(this,function(data){
this._xhrFetchHandler(data,_58b,_58c,_58d);
}));
_592.addErrback(function(_594){
_58d(_594,_58b);
});
this.lastRequestHash=new Date().getTime()+"-"+String(Math.random()).substring(2);
this._lastServerQuery=dojo.mixin({},_58e);
}
},_filterResponse:function(data){
return data;
},_assertIsItem:function(item){
if(!this.isItem(item)){
throw new Error(this._className+": Invalid item argument.");
}
},_assertIsAttribute:function(_597){
if(typeof _597!=="string"){
throw new Error(this._className+": Invalid attribute argument ('"+_597+"').");
}
},fetchItemByIdentity:function(_598){
if(this._itemsByIdentity){
var item=this._itemsByIdentity[_598.identity];
if(!(item===undefined)){
if(_598.onItem){
var _59a=_598.scope?_598.scope:dojo.global;
_598.onItem.call(_59a,{i:item,r:this});
}
return;
}
}
var _59b=function(_59c,_59d){
var _59e=_598.scope?_598.scope:dojo.global;
if(_598.onError){
_598.onError.call(_59e,_59c);
}
};
var _59f=function(_5a0,_5a1){
var _5a2=_598.scope?_598.scope:dojo.global;
try{
var item=null;
if(_5a0&&_5a0.length==1){
item=_5a0[0];
}
if(_598.onItem){
_598.onItem.call(_5a2,item);
}
}
catch(error){
if(_598.onError){
_598.onError.call(_5a2,error);
}
}
};
var _5a4={serverQuery:{id:_598.identity}};
this._fetchItems(_5a4,_59f,_59b);
},getIdentity:function(item){
var _5a6=null;
if(this._identifier===Number){
_5a6=item.n;
}else{
_5a6=item.i[this._identifier];
}
return _5a6;
},getIdentityAttributes:function(item){
return [this._identifier];
}});
}
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(_5a8){
this.disabled=_5a8;
dojo.attr(this.focusNode,"disabled",_5a8);
dijit.setWaiState(this.focusNode,"disabled",_5a8);
if(_5a8){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_5a9){
dojo.deprecated("setDisabled("+_5a9+") is deprecated. Use attr('disabled',"+_5a9+") instead.","","2.0");
this.attr("disabled",_5a9);
},_onFocus:function(e){
if(this.scrollOnFocus){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_5ab){
var _5ac=_5ab.currentTarget;
if(_5ac&&_5ac.getAttribute){
this.stateModifier=_5ac.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_5ab.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 _5ad=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_5ad);
});
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 _5ae=this.baseClass.split(" ");
function _5af(_5b0){
_5ae=_5ae.concat(dojo.map(_5ae,function(c){
return c+_5b0;
}),"dijit"+_5b0);
};
if(this.checked){
_5af("Checked");
}
if(this.state){
_5af(this.state);
}
if(this.selected){
_5af("Selected");
}
if(this.disabled){
_5af("Disabled");
}else{
if(this.readOnly){
_5af("ReadOnly");
}else{
if(this._active){
_5af(this.stateModifier+"Active");
}else{
if(this._focused){
_5af("Focused");
}
if(this._hovering){
_5af(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_5b3={};
dojo.forEach(tn.className.split(" "),function(c){
_5b3[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _5b3[c];
});
}
dojo.forEach(_5ae,function(c){
_5b3[c]=true;
});
var _5b7=[];
for(var c in _5b3){
_5b7.push(c);
}
tn.className=_5b7.join(" ");
this._stateClasses=_5ae;
},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(_5bb){
},_onChangeActive:false,_handleOnChange:function(_5bc,_5bd){
this._lastValue=_5bc;
if(this._lastValueReported==undefined&&(_5bd===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_5bc;
}
if((this.intermediateChanges||_5bd||_5bd===undefined)&&((typeof _5bc!=typeof this._lastValueReported)||this.compare(_5bc,this._lastValueReported)!=0)){
this._lastValueReported=_5bc;
if(this._onChangeActive){
this.onChange(_5bc);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_5be){
dojo.deprecated("dijit.form._FormWidget:setValue("+_5be+") is deprecated.  Use attr('value',"+_5be+") instead.","","2.0");
this.attr("value",_5be);
},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(_5c1,_5c2){
this.value=_5c1;
this._handleOnChange(_5c1,_5c2);
},_getValueAttr:function(_5c3){
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.TextBox"]){
dojo._hasResource["dijit.form.TextBox"]=true;
dojo.provide("dijit.form.TextBox");
dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse'\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\n\t/>\n",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function(){
return this.parse(this.attr("displayedValue"),this.constraints);
},_setValueAttr:function(_5c6,_5c7,_5c8){
var _5c9;
if(_5c6!==undefined){
_5c9=this.filter(_5c6);
if(typeof _5c8!="string"){
if(_5c9!==null&&((typeof _5c9!="number")||!isNaN(_5c9))){
_5c8=this.filter(this.format(_5c9,this.constraints));
}else{
_5c8="";
}
}
}
if(_5c8!=null&&_5c8!=undefined&&((typeof _5c8)!="number"||!isNaN(_5c8))&&this.textbox.value!=_5c8){
this.textbox.value=_5c8;
}
this.inherited(arguments,[_5c9,_5c7]);
},displayedValue:"",getDisplayedValue:function(){
dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");
return this.attr("displayedValue");
},_getDisplayedValueAttr:function(){
return this.filter(this.textbox.value);
},setDisplayedValue:function(_5ca){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");
this.attr("displayedValue",_5ca);
},_setDisplayedValueAttr:function(_5cb){
if(_5cb===null||_5cb===undefined){
_5cb="";
}else{
if(typeof _5cb!="string"){
_5cb=String(_5cb);
}
}
this.textbox.value=_5cb;
this._setValueAttr(this.attr("value"),undefined,_5cb);
},format:function(_5cc,_5cd){
return ((_5cc==null||_5cc==undefined)?"":(_5cc.toString?_5cc.toString():_5cc));
},parse:function(_5ce,_5cf){
return _5ce;
},_refreshState:function(){
},_onInput:function(e){
if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){
switch(e.keyCode){
case dojo.keys.SHIFT:
case dojo.keys.ALT:
case dojo.keys.CTRL:
case dojo.keys.TAB:
return;
}
}
if(this.intermediateChanges){
var _5d1=this;
setTimeout(function(){
_5d1._handleOnChange(_5d1.attr("value"),false);
},0);
}
this._refreshState();
},postCreate:function(){
this.textbox.setAttribute("value",this.textbox.value);
this.inherited(arguments);
if(dojo.isMoz||dojo.isOpera){
this.connect(this.textbox,"oninput",this._onInput);
}else{
this.connect(this.textbox,"onkeydown",this._onInput);
this.connect(this.textbox,"onkeyup",this._onInput);
this.connect(this.textbox,"onpaste",this._onInput);
this.connect(this.textbox,"oncut",this._onInput);
}
this._layoutHack();
},_blankValue:"",filter:function(val){
if(val===null){
return this._blankValue;
}
if(typeof val!="string"){
return val;
}
if(this.trim){
val=dojo.trim(val);
}
if(this.uppercase){
val=val.toUpperCase();
}
if(this.lowercase){
val=val.toLowerCase();
}
if(this.propercase){
val=val.replace(/[^\s]+/g,function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
});
}
return val;
},_setBlurValue:function(){
this._setValueAttr(this.attr("value"),true);
},_onBlur:function(e){
if(this.disabled){
return;
}
this._setBlurValue();
this.inherited(arguments);
},_onFocus:function(e){
if(this.disabled){
return;
}
this._refreshState();
this.inherited(arguments);
},reset:function(){
this.textbox.value="";
this.inherited(arguments);
}});
dijit.selectInputText=function(_5d6,_5d7,stop){
var _5d9=dojo.global;
var _5da=dojo.doc;
_5d6=dojo.byId(_5d6);
if(isNaN(_5d7)){
_5d7=0;
}
if(isNaN(stop)){
stop=_5d6.value?_5d6.value.length:0;
}
_5d6.focus();
if(_5da["selection"]&&dojo.body()["createTextRange"]){
if(_5d6.createTextRange){
var _5db=_5d6.createTextRange();
with(_5db){
collapse(true);
moveStart("character",_5d7);
moveEnd("character",stop);
select();
}
}
}else{
if(_5d9["getSelection"]){
var _5dc=_5d9.getSelection();
if(_5d6.setSelectionRange){
_5d6.setSelectionRange(_5d7,stop);
}
}
}
};
}
if(!dojo._hasResource["dijit.Tooltip"]){
dojo._hasResource["dijit.Tooltip"]=true;
dojo.provide("dijit.Tooltip");
dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n",postCreate:function(){
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(_5dd,_5de,_5df){
if(this.aroundNode&&this.aroundNode===_5de){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_5dd;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var _5e0={};
var ltr=this.isLeftToRight();
dojo.forEach((_5df&&_5df.length)?_5df:dijit.Tooltip.defaultPosition,function(pos){
switch(pos){
case "after":
_5e0[ltr?"BR":"BL"]=ltr?"BL":"BR";
break;
case "before":
_5e0[ltr?"BL":"BR"]=ltr?"BR":"BL";
break;
case "below":
_5e0[ltr?"BL":"BR"]=ltr?"TL":"TR";
_5e0[ltr?"BR":"BL"]=ltr?"TR":"TL";
break;
case "above":
default:
_5e0[ltr?"TL":"TR"]=ltr?"BL":"BR";
_5e0[ltr?"TR":"TL"]=ltr?"BR":"BL";
break;
}
});
var pos=dijit.placeOnScreenAroundElement(this.domNode,_5de,_5e0,dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_5de;
},orient:function(node,_5e5,_5e6){
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"}[_5e5+"-"+_5e6];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_5e7){
if(this._onDeck&&this._onDeck[1]==_5e7){
this._onDeck=null;
}else{
if(this.aroundNode===_5e7){
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(_5e8,_5e9,_5ea){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_5e8,_5e9,_5ea);
};
dijit.hideTooltip=function(_5eb){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_5eb);
};
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(_5ef){
this.connect(node,_5ef.toLowerCase(),"_"+_5ef);
},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 _5f5=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_5f5);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_5f7){
_5f7=_5f7||this._connectNodes[0];
if(!_5f7){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_5f7,this.position);
this._connectNode=_5f7;
},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.ValidationTextBox"]){
dojo._hasResource["dijit.form.ValidationTextBox"]=true;
dojo.provide("dijit.form.ValidationTextBox");
dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${nameAttrSetting} type='${type}'\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_5f8){
return this.regExp;
},state:"",tooltipPosition:[],_setValueAttr:function(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function(_5f9,_5fa){
return (new RegExp("^(?:"+this.regExpGen(_5fa)+")"+(this.required?"":"?")+"$")).test(_5f9)&&(!this.required||!this._isEmpty(_5f9))&&(this._isEmpty(_5f9)||this.parse(_5f9,_5fa)!==undefined);
},_isValidSubset:function(){
return this.textbox.value.search(this._partialre)==0;
},isValid:function(_5fb){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function(_5fc){
return /^\s*$/.test(_5fc);
},getErrorMessage:function(_5fd){
return this.invalidMessage;
},getPromptMessage:function(_5fe){
return this.promptMessage;
},_maskValidSubsetError:true,validate:function(_5ff){
var _600="";
var _601=this.disabled||this.isValid(_5ff);
if(_601){
this._maskValidSubsetError=true;
}
var _602=!_601&&_5ff&&this._isValidSubset();
var _603=this._isEmpty(this.textbox.value);
this.state=(_601||(!this._hasBeenBlurred&&_603)||_602)?"":"Error";
if(this.state=="Error"){
this._maskValidSubsetError=false;
}
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_601?"false":"true");
if(_5ff){
if(_603){
_600=this.getPromptMessage(true);
}
if(!_600&&(this.state=="Error"||(_602&&!this._maskValidSubsetError))){
_600=this.getErrorMessage(true);
}
}
this.displayMessage(_600);
return _601;
},_message:"",displayMessage:function(_604){
if(this._message==_604){
return;
}
this._message=_604;
dijit.hideTooltip(this.domNode);
if(_604){
dijit.showTooltip(_604,this.domNode,this.tooltipPosition);
}
},_refreshState:function(){
this.validate(this._focused);
this.inherited(arguments);
},constructor:function(){
this.constraints={};
},postMixInProperties:function(){
this.inherited(arguments);
this.constraints.locale=this.lang;
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
if(this.invalidMessage=="$_unset_$"){
this.invalidMessage=this.messages.invalidMessage;
}
var p=this.regExpGen(this.constraints);
this.regExp=p;
var _606="";
if(p!=".*"){
this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){
switch(re.charAt(0)){
case "{":
case "+":
case "?":
case "*":
case "^":
case "$":
case "|":
case "(":
_606+=re;
break;
case ")":
_606+="|$)";
break;
default:
_606+="(?:"+re+"|$)";
break;
}
});
}
try{
"".search(_606);
}
catch(e){
_606=this.regExp;
console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);
}
this._partialre="^(?:"+_606+")$";
},_setDisabledAttr:function(_608){
this.inherited(arguments);
if(this.valueNode){
this.valueNode.disabled=_608;
}
this._refreshState();
},_setRequiredAttr:function(_609){
this.required=_609;
dijit.setWaiState(this.focusNode,"required",_609);
this._refreshState();
},postCreate:function(){
if(dojo.isIE){
var s=dojo.getComputedStyle(this.focusNode);
if(s){
var ff=s.fontFamily;
if(ff){
this.focusNode.style.fontFamily=ff;
}
}
}
this.inherited(arguments);
},reset:function(){
this._maskValidSubsetError=true;
this.inherited(arguments);
}});
dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){
this.inherited(arguments);
this.nameAttrSetting="";
},serialize:function(val,_60d){
return val.toString?val.toString():"";
},toString:function(){
var val=this.filter(this.attr("value"));
return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";
},validate:function(){
this.valueNode.value=this.toString();
return this.inherited(arguments);
},buildRendering:function(){
this.inherited(arguments);
this.valueNode=dojo.create("input",{style:{display:"none"},type:this.type,name:this.name},this.textbox,"after");
},_setDisabledAttr:function(_60f){
this.inherited(arguments);
dojo.attr(this.valueNode,"disabled",_60f);
},reset:function(){
this.valueNode.value="";
this.inherited(arguments);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_610,_611){
var _612="min" in _611;
var _613="max" in _611;
if(_612||_613){
return (!_612||this.compare(_610,_611.min)>=0)&&(!_613||this.compare(_610,_611.max)<=0);
}
return true;
},isInRange:function(_614){
return this.rangeCheck(this.attr("value"),this.constraints);
},_isDefinitelyOutOfRange:function(){
var val=this.attr("value");
var _616=false;
var _617=false;
if("min" in this.constraints){
var min=this.constraints.min;
val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);
_616=(typeof val=="number")&&val<0;
}
if("max" in this.constraints){
var max=this.constraints.max;
val=this.compare(val,((typeof max!="number")||max>0)?max:0);
_617=(typeof val=="number")&&val>0;
}
return _616||_617;
},_isValidSubset:function(){
return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();
},isValid:function(_61a){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_61a));
},getErrorMessage:function(_61b){
if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_61b)){
return this.rangeMessage;
}
return this.inherited(arguments);
},postMixInProperties:function(){
this.inherited(arguments);
if(!this.rangeMessage){
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
this.rangeMessage=this.messages.rangeMessage;
}
},postCreate:function(){
this.inherited(arguments);
if(this.constraints.min!==undefined){
dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);
}
if(this.constraints.max!==undefined){
dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);
}
},_setValueAttr:function(_61c,_61d){
dijit.setWaiState(this.focusNode,"valuenow",_61c);
this.inherited(arguments);
}});
}
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(_61e){
_61e=_61e||{};
if(!_61e.store){
_61e.store=this;
}
var self=this;
var _620=function(_621,_622){
if(_622.onError){
var _623=_622.scope||dojo.global;
_622.onError.call(_623,_621,_622);
}
};
var _624=function(_625,_626){
var _627=_626.abort||null;
var _628=false;
var _629=_626.start?_626.start:0;
var _62a=(_626.count&&(_626.count!==Infinity))?(_629+_626.count):_625.length;
_626.abort=function(){
_628=true;
if(_627){
_627.call(_626);
}
};
var _62b=_626.scope||dojo.global;
if(!_626.store){
_626.store=self;
}
if(_626.onBegin){
_626.onBegin.call(_62b,_625.length,_626);
}
if(_626.sort){
_625.sort(dojo.data.util.sorter.createSortFunction(_626.sort,self));
}
if(_626.onItem){
for(var i=_629;(i<_625.length)&&(i<_62a);++i){
var item=_625[i];
if(!_628){
_626.onItem.call(_62b,item,_626);
}
}
}
if(_626.onComplete&&!_628){
var _62e=null;
if(!_626.onItem){
_62e=_625.slice(_629,_62a);
}
_626.onComplete.call(_62b,_62e,_626);
}
};
this._fetchItems(_61e,_624,_620);
return _61e;
};
}
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(_62f,_630){
var rxp="^";
var c=null;
for(var i=0;i<_62f.length;i++){
c=_62f.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_62f.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(_630){
return new RegExp(rxp,"mi");
}else{
return new RegExp(rxp,"m");
}
};
}
if(!dojo._hasResource["dijit.form.ComboBox"]){
dojo._hasResource["dijit.form.ComboBox"]=true;
dojo.provide("dijit.form.ComboBox");
dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input ${nameAttrSetting} type=\"text\" autocomplete=\"off\" class='dijitReset'\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitComboBox",_getCaretPos:function(_634){
var pos=0;
if(typeof (_634.selectionStart)=="number"){
pos=_634.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_634.createTextRange();
tr.move("character",0);
ntr.move("character",0);
try{
ntr.setEndPoint("EndToEnd",tr);
pos=String(ntr.text).replace(/\r/g,"").length;
}
catch(e){
}
}
}
return pos;
},_setCaretPos:function(_638,_639){
_639=parseInt(_639);
dijit.selectInputText(_638,_639,_639);
},_setDisabledAttr:function(_63a){
this.inherited(arguments);
dijit.setWaiState(this.comboNode,"disabled",_63a);
},_onKeyPress:function(evt){
var key=evt.charOrCode;
if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){
return;
}
var _63d=false;
var pw=this._popupWidget;
var dk=dojo.keys;
var _640=null;
if(this._isShowingNow){
pw.handleKey(key);
_640=pw.getHighlightedOption();
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow||this._prev_key_esc){
this._arrowPressed();
_63d=true;
}else{
if(_640){
this._announceOption(_640);
}
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.PAGE_UP:
case dk.UP_ARROW:
if(this._isShowingNow){
this._announceOption(_640);
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.ENTER:
if(_640){
if(_640==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_640==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this._setDisplayedValueAttr(this.attr("displayedValue"),true);
}
evt.preventDefault();
case dk.TAB:
var _641=this.attr("displayedValue");
if(pw&&(_641==pw._messages["previousMessage"]||_641==pw._messages["nextMessage"])){
break;
}
if(this._isShowingNow){
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(_640){
pw.attr("value",{target:_640});
}
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(_640){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_63d=true;
}
break;
case dk.ESCAPE:
this._prev_key_backspace=false;
this._prev_key_esc=true;
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_esc=false;
this._prev_key_backspace=true;
_63d=true;
break;
case dk.RIGHT_ARROW:
case dk.LEFT_ARROW:
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
default:
this._prev_key_backspace=false;
this._prev_key_esc=false;
_63d=typeof key=="string";
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_63d){
setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);
}
},_autoCompleteText:function(text){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _644=this.ignoreCase?"toLowerCase":"substr";
if(text[_644](0).indexOf(this.focusNode.value[_644](0))==0){
var cpos=this._getCaretPos(fn);
if((cpos+1)>fn.value.length){
fn.value=text;
dijit.selectInputText(fn,cpos);
}
}else{
fn.value=text;
dijit.selectInputText(fn);
}
},_openResultList:function(_646,_647){
if(this.disabled||this.readOnly||(_647.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_646.length){
this._hideResultList();
return;
}
this.item=null;
var _648=new String(this.store.getValue(_646[0],this.searchAttr));
if(_648&&this.autoComplete&&!this._prev_key_backspace&&(_647.query[this.searchAttr]!="*")){
this.item=_646[0];
this._autoCompleteText(_648);
}
_647._maxOptions=this._maxOptions;
this._popupWidget.createOptions(_646,_647,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_647.direction){
if(1==_647.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_647.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
},_showResultList:function(){
this._hideResultList();
var _649=this._popupWidget.getItems(),_64a=Math.min(_649.length,this.maxListLength);
this._arrowPressed();
this.displayMessage("");
dojo.style(this._popupWidget.domNode,{width:"",height:""});
var best=this.open();
var _64c=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_64c.h)&&(best.w==_64c.w))?"hidden":"auto";
var _64d=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_64d+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_64d,this.domNode.offsetWidth)});
dijit.setWaiState(this.comboNode,"expanded","true");
},_hideResultList:function(){
if(this._isShowingNow){
dijit.popup.close(this._popupWidget);
this._arrowIdle();
this._isShowingNow=false;
dijit.setWaiState(this.comboNode,"expanded","false");
dijit.removeWaiState(this.focusNode,"activedescendant");
}
},_setBlurValue:function(){
var _64e=this.attr("displayedValue");
var pw=this._popupWidget;
if(pw&&(_64e==pw._messages["previousMessage"]||_64e==pw._messages["nextMessage"])){
this._setValueAttr(this._lastValueReported,true);
}else{
this.attr("displayedValue",_64e);
}
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_announceOption:function(node){
if(node==null){
return;
}
var _651;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_651=node.innerHTML;
}else{
_651=this.store.getValue(node.item,this.searchAttr);
}
this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));
this._autoCompleteText(_651);
},_selectOption:function(evt){
var tgt=null;
if(!evt){
evt={target:this._popupWidget.getHighlightedOption()};
}
if(!evt.target){
this.attr("displayedValue",this.attr("displayedValue"));
return;
}else{
tgt=evt.target;
}
if(!evt.noHide){
this._hideResultList();
this._setCaretPos(this.focusNode,this.store.getValue(tgt.item,this.searchAttr).length);
}
this._doSelect(tgt);
},_doSelect:function(tgt){
this.item=tgt.item;
this.attr("value",this.store.getValue(tgt.item,this.searchAttr));
},_onArrowMouseDown:function(evt){
if(this.disabled||this.readOnly){
return;
}
dojo.stopEvent(evt);
this.focus();
if(this._isShowingNow){
this._hideResultList();
}else{
this._startSearch("");
}
},_startSearchFromInput:function(){
this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));
},_getQueryString:function(text){
return dojo.string.substitute(this.queryExpr,[text]);
},_startSearch:function(key){
if(!this._popupWidget){
var _658=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_658});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_658);
}
this.item=null;
var _659=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_659[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_65a,_65b){
var _65c={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_65a,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_65d){
console.error("dijit.form.ComboBox: "+_65d);
dojo.hitch(_65b,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_65c,_65b.fetchProperties);
var _65e=_65b.store.fetch(_65c);
var _65f=function(_660,_661){
_660.start+=_660.count*_661;
_660.direction=_661;
this.store.fetch(_660);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_65f,_65e);
},_659,this),this.searchDelay);
},_setMaxOptions:function(size,_663){
this._maxOptions=size;
},_getValueField:function(){
return this.searchAttr;
},_arrowPressed:function(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.addClass(this.downArrowNode,"dijitArrowButtonActive");
}
},_arrowIdle:function(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.removeClass(this.downArrowNode,"dojoArrowButtonPushed");
}
},compositionend:function(evt){
this._onKeyPress({charCode:-1});
},constructor:function(){
this.query={};
this.fetchProperties={};
},postMixInProperties:function(){
if(!this.hasDownArrow){
this.baseClass="dijitTextBox";
}
if(!this.store){
var _665=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_665);
if(!this.value||((typeof _665.selectedIndex=="number")&&_665.selectedIndex.toString()===this.value)){
var item=this.store.fetchSelectedItem();
if(item){
this.value=this.store.getValue(item,this._getValueField());
}
}
}
this.inherited(arguments);
},postCreate:function(){
var _667=dojo.query("label[for=\""+this.id+"\"]");
if(_667.length){
_667[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_667[0].id);
}
this.inherited(arguments);
},uninitialize:function(){
if(this._popupWidget){
this._hideResultList();
this._popupWidget.destroy();
}
},_getMenuLabelFromItem:function(item){
var _66a=this.store.getValue(item,this.labelAttr||this.searchAttr);
var _66b=this.labelType;
if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){
_66a=this.doHighlight(_66a,this._escapeHtml(this._lastInput));
_66b="html";
}
return {html:_66b=="html",label:_66a};
},doHighlight:function(_66c,find){
var _66e="i"+(this.highlightMatch=="all"?"g":"");
var _66f=this._escapeHtml(_66c);
find=dojo.regexp.escapeString(find);
var ret=_66f.replace(new RegExp("(^|\\s)("+find+")",_66e),"$1<span class=\"dijitComboBoxHighlightMatch\">$2</span>");
return ret;
},_escapeHtml:function(str){
str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
return str;
},open:function(){
this._isShowingNow=true;
return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});
},reset:function(){
this.item=null;
this.inherited(arguments);
}});
dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,postMixInProperties:function(){
this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);
this.inherited(arguments);
},_setValueAttr:function(_672){
this.value=_672;
this.onChange(_672);
},onChange:function(_673){
},onPage:function(_674){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited(arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(item,_676){
var _677=_676(item);
var _678=dojo.doc.createElement("li");
dijit.setWaiRole(_678,"option");
if(_677.html){
_678.innerHTML=_677.label;
}else{
_678.appendChild(dojo.doc.createTextNode(_677.label));
}
if(_678.innerHTML==""){
_678.innerHTML="&nbsp;";
}
_678.item=item;
return _678;
},createOptions:function(_679,_67a,_67b){
this.previousButton.style.display=(_67a.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_679,function(item,i){
var _67e=this._createOption(item,_67b);
_67e.className="dijitReset dijitMenuItem";
dojo.attr(_67e,"id",this.id+i);
this.domNode.insertBefore(_67e,this.nextButton);
},this);
var _67f=false;
if(_67a._maxOptions&&_67a._maxOptions!=-1){
if((_67a.start+_67a.count)<_67a._maxOptions){
_67f=true;
}else{
if((_67a.start+_67a.count)>(_67a._maxOptions-1)){
if(_67a.count==_679.length){
_67f=true;
}
}
}
}else{
if(_67a.count==_679.length){
_67f=true;
}
}
this.nextButton.style.display=_67f?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
},clearResultList:function(){
while(this.domNode.childNodes.length>2){
this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);
}
},getItems:function(){
return this.domNode.childNodes;
},getListLength:function(){
return this.domNode.childNodes.length-2;
},_onMouseDown:function(evt){
dojo.stopEvent(evt);
},_onMouseUp:function(evt){
if(evt.target===this.domNode){
return;
}else{
if(evt.target==this.previousButton){
this.onPage(-1);
}else{
if(evt.target==this.nextButton){
this.onPage(1);
}else{
var tgt=evt.target;
while(!tgt.item){
tgt=tgt.parentNode;
}
this._setValueAttr({target:tgt},true);
}
}
}
},_onMouseOver:function(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_onMouseOut:function(evt){
if(evt.target===this.domNode){
return;
}
this._blurOptionNode();
},_focusOptionNode:function(node){
if(this._highlighted_option!=node){
this._blurOptionNode();
this._highlighted_option=node;
dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");
this._highlighted_option=null;
}
},_highlightNextOption:function(){
var fc=this.domNode.firstChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);
}else{
var ns=this._highlighted_option.nextSibling;
if(ns&&ns.style.display!="none"){
this._focusOptionNode(ns);
}
}
dijit.scrollIntoView(this._highlighted_option);
},highlightFirstOption:function(){
this._focusOptionNode(this.domNode.firstChild.nextSibling);
dijit.scrollIntoView(this._highlighted_option);
},highlightLastOption:function(){
this._focusOptionNode(this.domNode.lastChild.previousSibling);
dijit.scrollIntoView(this._highlighted_option);
},_highlightPrevOption:function(){
var lc=this.domNode.lastChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);
}else{
var ps=this._highlighted_option.previousSibling;
if(ps&&ps.style.display!="none"){
this._focusOptionNode(ps);
}
}
dijit.scrollIntoView(this._highlighted_option);
},_page:function(up){
var _68c=0;
var _68d=this.domNode.scrollTop;
var _68e=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_68c<_68e){
if(up){
if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){
break;
}
this._highlightPrevOption();
}else{
if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){
break;
}
this._highlightNextOption();
}
var _68f=this.domNode.scrollTop;
_68c+=(_68f-_68d)*(up?-1:1);
_68d=_68f;
}
},pageUp:function(){
this._page(true);
},pageDown:function(){
this._page(false);
},getHighlightedOption:function(){
var ho=this._highlighted_option;
return (ho&&ho.parentNode)?ho:null;
},handleKey:function(key){
switch(key){
case dojo.keys.DOWN_ARROW:
this._highlightNextOption();
break;
case dojo.keys.PAGE_DOWN:
this.pageDown();
break;
case dojo.keys.UP_ARROW:
this._highlightPrevOption();
break;
case dojo.keys.PAGE_UP:
this.pageUp();
break;
}
}});
dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_692,_693){
if(!_692){
_692="";
}
dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_692,_693);
}});
dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){
this.root=root;
dojo.query("> option",root).forEach(function(node){
node.innerHTML=dojo.trim(node.innerHTML);
});
},getValue:function(item,_697,_698){
return (_697=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function(_699){
return true;
},getFeatures:function(){
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
},_fetchItems:function(args,_69b,_69c){
if(!args.query){
args.query={};
}
if(!args.query.name){
args.query.name="";
}
if(!args.queryOptions){
args.queryOptions={};
}
var _69d=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_69e=dojo.query("> option",this.root).filter(function(_69f){
return (_69f.innerText||_69f.textContent||"").match(_69d);
});
if(args.sort){
_69e.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));
}
_69b(_69e,args);
},close:function(_6a0){
return;
},getLabel:function(item){
return item.innerHTML;
},getIdentity:function(item){
return dojo.attr(item,"value");
},fetchItemByIdentity:function(args){
var item=dojo.query("option[value='"+args.identity+"']",this.root)[0];
args.onItem(item);
},fetchSelectedItem:function(){
var root=this.root,si=root.selectedIndex;
return dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0];
}});
dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);
}
if(!dojo._hasResource["g_widgets.form.LinksComboBox"]){
dojo._hasResource["g_widgets.form.LinksComboBox"]=true;
dojo.provide("g_widgets.form.LinksComboBox");
dojo.declare("g_widgets.form.LinksComboBox",[dijit.form.ComboBox],{linkSrc:"",formId:"",linkStyle:"",urlRoot:"",_getMenuLabelFromItem:function(item){
if(null!=this.linkStyle&&this.linkStyle.length>0){
return {html:true,label:"<span class=\""+this.linkStyle+"\">"+this.store.getValue(item,this.searchAttr)+"</span>"};
}else{
return (this.inherited(arguments));
}
},_doSelect:function(tgt){
this.item=tgt.item;
var _6a9=this.store.getValue(tgt.item,this.searchAttr);
_6a9=_6a9.replace(/&#(\d+);/g,function(){
return String.fromCharCode(arguments[1]);
});
this.setValue(_6a9,true);
document.location.href=this.urlRoot+this.store.getValue(this.item,this.linkSrc)+((getQueryParam("sst")=="")?"":("&sst="+getQueryParam("sst")));
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
},onChange:function(){
if(this.item==null){
if(null!=this.formId&&this.formId.length>0){
this._hideResultList();
this._arrowIdle();
var _6aa=dojo.byId(this.formId);
_6aa.onsubmit();
}else{
console.error("dijit.form.LinksComboBox: formId is not set on widget");
}
}
}});
}
dojo.i18n._preloadLocalizations("dojo.nls.gcomall",["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"]);
