/*
	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.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_1,_2){
if(!dojo.date.stamp._isoRegExp){
dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
}
var _3=dojo.date.stamp._isoRegExp.exec(_1);
var _4=null;
if(_3){
_3.shift();
if(_3[1]){
_3[1]--;
}
if(_3[6]){
_3[6]*=1000;
}
if(_2){
_2=new Date(_2);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){
return _2["get"+_5]();
}).forEach(function(_6,_7){
if(_3[_7]===undefined){
_3[_7]=_6;
}
});
}
_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);
var _8=0;
var _9=_3[7]&&_3[7].charAt(0);
if(_9!="Z"){
_8=((_3[8]||0)*60)+(Number(_3[9])||0);
if(_9!="-"){
_8*=-1;
}
}
if(_9){
_8-=_4.getTimezoneOffset();
}
if(_8){
_4.setTime(_4.getTime()+_8*60000);
}
}
return _4;
};
dojo.date.stamp.toISOString=function(_a,_b){
var _=function(n){
return (n<10)?"0"+n:n;
};
_b=_b||{};
var _e=[];
var _f=_b.zulu?"getUTC":"get";
var _10="";
if(_b.selector!="time"){
var _11=_a[_f+"FullYear"]();
_10=["0000".substr((_11+"").length)+_11,_(_a[_f+"Month"]()+1),_(_a[_f+"Date"]())].join("-");
}
_e.push(_10);
if(_b.selector!="date"){
var _12=[_(_a[_f+"Hours"]()),_(_a[_f+"Minutes"]()),_(_a[_f+"Seconds"]())].join(":");
var _13=_a[_f+"Milliseconds"]();
if(_b.milliseconds){
_12+="."+(_13<100?"0":"")+_(_13);
}
if(_b.zulu){
_12+="Z";
}else{
if(_b.selector!="time"){
var _14=_a.getTimezoneOffset();
var _15=Math.abs(_14);
_12+=(_14>0?"-":"+")+_(Math.floor(_15/60))+":"+_(_15%60);
}
}
_e.push(_12);
}
return _e.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _17=d._scopeName+"Type";
var qry="["+_17+"]";
var _19=0,_1a={};
var _1b=function(_1c,_1d){
var nso=_1d||_1a;
if(dojo.isIE){
var cn=_1c["__dojoNameCache"];
if(cn&&nso[cn]===_1c){
return cn;
}
}
var _20;
do{
_20="__"+_19++;
}while(_20 in nso);
nso[_20]=_1c;
return _20;
};
function _21(_22){
if(d.isString(_22)){
return "string";
}
if(typeof _22=="number"){
return "number";
}
if(typeof _22=="boolean"){
return "boolean";
}
if(d.isFunction(_22)){
return "function";
}
if(d.isArray(_22)){
return "array";
}
if(_22 instanceof Date){
return "date";
}
if(_22 instanceof d._Url){
return "url";
}
return "object";
};
function _23(_24,_25){
switch(_25){
case "string":
return _24;
case "number":
return _24.length?Number(_24):NaN;
case "boolean":
return typeof _24=="boolean"?_24:!(_24.toLowerCase()=="false");
case "function":
if(d.isFunction(_24)){
_24=_24.toString();
_24=d.trim(_24.substring(_24.indexOf("{")+1,_24.length-1));
}
try{
if(_24.search(/[^\w\.]+/i)!=-1){
_24=_1b(new Function(_24),this);
}
return d.getObject(_24,false);
}
catch(e){
return new Function();
}
case "array":
return _24?_24.split(/\s*,\s*/):[];
case "date":
switch(_24){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_24);
}
case "url":
return d.baseUrl+_24;
default:
return d.fromJson(_24);
}
};
var _26={};
function _27(_28){
if(!_26[_28]){
var cls=d.getObject(_28);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_28+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _2a=cls.prototype;
var _2b={},_2c={};
for(var _2d in _2a){
if(_2d.charAt(0)=="_"){
continue;
}
if(_2d in _2c){
continue;
}
var _2e=_2a[_2d];
_2b[_2d]=_21(_2e);
}
_26[_28]={cls:cls,params:_2b};
}
return _26[_28];
};
this._functionFromScript=function(_2f){
var _30="";
var _31="";
var _32=_2f.getAttribute("args");
if(_32){
d.forEach(_32.split(/\s*,\s*/),function(_33,idx){
_30+="var "+_33+" = arguments["+idx+"]; ";
});
}
var _35=_2f.getAttribute("with");
if(_35&&_35.length){
d.forEach(_35.split(/\s*,\s*/),function(_36){
_30+="with("+_36+"){";
_31+="}";
});
}
return new Function(_30+_2f.innerHTML+_31);
};
this.instantiate=function(_37,_38){
var _39=[];
_38=_38||{};
d.forEach(_37,function(_3a){
if(!_3a){
return;
}
var _3b=_17 in _38?_38[_17]:_3a.getAttribute(_17);
if(!_3b||!_3b.length){
return;
}
var _3c=_27(_3b),_3d=_3c.cls,ps=_3d._noScript||_3d.prototype._noScript;
var _3f={},_40=_3a.attributes;
for(var _41 in _3c.params){
var _42=_41 in _38?{value:_38[_41],specified:true}:_40.getNamedItem(_41);
if(!_42||(!_42.specified&&(!dojo.isIE||_41.toLowerCase()!="value"))){
continue;
}
var _43=_42.value;
switch(_41){
case "class":
_43="className" in _38?_38.className:_3a.className;
break;
case "style":
_43="style" in _38?_38.style:(_3a.style&&_3a.style.cssText);
}
var _44=_3c.params[_41];
if(typeof _43=="string"){
_3f[_41]=_23(_43,_44);
}else{
_3f[_41]=_43;
}
}
if(!ps){
var _45=[],_46=[];
d.query("> script[type^='dojo/']",_3a).orphan().forEach(function(_47){
var _48=_47.getAttribute("event"),_3b=_47.getAttribute("type"),nf=d.parser._functionFromScript(_47);
if(_48){
if(_3b=="dojo/connect"){
_45.push({event:_48,func:nf});
}else{
_3f[_48]=nf;
}
}else{
_46.push(nf);
}
});
}
var _4a=_3d["markupFactory"];
if(!_4a&&_3d["prototype"]){
_4a=_3d.prototype["markupFactory"];
}
var _4b=_4a?_4a(_3f,_3a,_3d):new _3d(_3f,_3a);
_39.push(_4b);
var _4c=_3a.getAttribute("jsId");
if(_4c){
d.setObject(_4c,_4b);
}
if(!ps){
d.forEach(_45,function(_4d){
d.connect(_4b,_4d.event,null,_4d.func);
});
d.forEach(_46,function(_4e){
_4e.call(_4b);
});
}
});
d.forEach(_39,function(_4f){
if(_4f&&_4f.startup&&!_4f._started&&(!_4f.getParent||!_4f.getParent())){
_4f.startup();
}
});
return _39;
};
this.parse=function(_50){
var _51=d.query(qry,_50);
var _52=this.instantiate(_51);
return _52;
};
}();
(function(){
var _53=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,_53);
}else{
dojo._loaders.unshift(_53);
}
})();
}
if(!dojo._hasResource["dojo.back"]){
dojo._hasResource["dojo.back"]=true;
dojo.provide("dojo.back");
(function(){
var _54=dojo.back;
function _55(){
var h=window.location.hash;
if(h.charAt(0)=="#"){
h=h.substring(1);
}
return dojo.isMozilla?h:decodeURIComponent(h);
};
function _57(h){
if(!h){
h="";
}
window.location.hash=encodeURIComponent(h);
_59=history.length;
};
if(dojo.exists("tests.back-hash")){
_54.getHash=_55;
_54.setHash=_57;
}
var _5a=(typeof (window)!=="undefined")?window.location.href:"";
var _5b=(typeof (window)!=="undefined")?_55():"";
var _5c=null;
var _5d=null;
var _5e=null;
var _5f=null;
var _60=[];
var _61=[];
var _62=false;
var _63=false;
var _59;
function _64(){
var _65=_61.pop();
if(!_65){
return;
}
var _66=_61[_61.length-1];
if(!_66&&_61.length==0){
_66=_5c;
}
if(_66){
if(_66.kwArgs["back"]){
_66.kwArgs["back"]();
}else{
if(_66.kwArgs["backButton"]){
_66.kwArgs["backButton"]();
}else{
if(_66.kwArgs["handle"]){
_66.kwArgs.handle("back");
}
}
}
}
_60.push(_65);
};
_54.goBack=_64;
function _67(){
var _68=_60.pop();
if(!_68){
return;
}
if(_68.kwArgs["forward"]){
_68.kwArgs.forward();
}else{
if(_68.kwArgs["forwardButton"]){
_68.kwArgs.forwardButton();
}else{
if(_68.kwArgs["handle"]){
_68.kwArgs.handle("forward");
}
}
}
_61.push(_68);
};
_54.goForward=_67;
function _69(url,_6b,_6c){
return {"url":url,"kwArgs":_6b,"urlHash":_6c};
};
function _6d(url){
var _6f=url.split("?");
if(_6f.length<2){
return null;
}else{
return _6f[1];
}
};
function _70(){
var url=(dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html"))+"?"+(new Date()).getTime();
_62=true;
if(_5f){
dojo.isWebKit?_5f.location=url:window.frames[_5f.name].location=url;
}else{
}
return url;
};
function _72(){
if(!_63){
var hsl=_61.length;
var _74=_55();
if((_74===_5b||window.location.href==_5a)&&(hsl==1)){
_64();
return;
}
if(_60.length>0){
if(_60[_60.length-1].urlHash===_74){
_67();
return;
}
}
if((hsl>=2)&&(_61[hsl-2])){
if(_61[hsl-2].urlHash===_74){
_64();
return;
}
}
if(dojo.isSafari&&dojo.isSafari<3){
var _75=history.length;
if(_75>_59){
_67();
}else{
if(_75<_59){
_64();
}
}
_59=_75;
}
}
};
_54.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>");
};
_54.setInitialState=function(_77){
_5c=_69(_5a,_77,_5b);
};
_54.addToHistory=function(_78){
_60=[];
var _79=null;
var url=null;
if(!_5f){
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");
}
_5f=window.frames["dj_history"];
}
if(!_5e){
_5e=dojo.create("a",{style:{display:"none"}},dojo.body());
}
if(_78["changeUrl"]){
_79=""+((_78["changeUrl"]!==true)?_78["changeUrl"]:(new Date()).getTime());
if(_61.length==0&&_5c.urlHash==_79){
_5c=_69(url,_78,_79);
return;
}else{
if(_61.length>0&&_61[_61.length-1].urlHash==_79){
_61[_61.length-1]=_69(url,_78,_79);
return;
}
}
_63=true;
setTimeout(function(){
_57(_79);
_63=false;
},1);
_5e.href=_79;
if(dojo.isIE){
url=_70();
var _7b=_78["back"]||_78["backButton"]||_78["handle"];
var tcb=function(_7d){
if(_55()!=""){
setTimeout(function(){
_57(_79);
},1);
}
_7b.apply(this,[_7d]);
};
if(_78["back"]){
_78.back=tcb;
}else{
if(_78["backButton"]){
_78.backButton=tcb;
}else{
if(_78["handle"]){
_78.handle=tcb;
}
}
}
var _7e=_78["forward"]||_78["forwardButton"]||_78["handle"];
var tfw=function(_80){
if(_55()!=""){
_57(_79);
}
if(_7e){
_7e.apply(this,[_80]);
}
};
if(_78["forward"]){
_78.forward=tfw;
}else{
if(_78["forwardButton"]){
_78.forwardButton=tfw;
}else{
if(_78["handle"]){
_78.handle=tfw;
}
}
}
}else{
if(!dojo.isIE){
if(!_5d){
_5d=setInterval(_72,200);
}
}
}
}else{
url=_70();
}
_61.push(_69(url,_78,_79));
};
_54._iframeLoaded=function(evt,_82){
var _83=_6d(_82.href);
if(_83==null){
if(_61.length==1){
_64();
}
return;
}
if(_62){
_62=false;
return;
}
if(_61.length>=2&&_83==_6d(_61[_61.length-2].url)){
_64();
}else{
if(_60.length>0&&_83==_6d(_60[_60.length-1].url)){
_67();
}
}
};
})();
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_85){
return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){
if(_85&&_85.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_89){
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("|"),_89);
};
dojo.regexp.group=function(_8c,_8d){
return "("+(_8d?"?:":"")+_8c+")";
};
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function(_8e,_8f,_90){
var c=document.cookie;
if(arguments.length==1){
var _92=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(_8e)+"=([^;]*)"));
return _92?decodeURIComponent(_92[1]):undefined;
}else{
_90=_90||{};
var exp=_90.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_90.expires=d;
}
if(exp&&exp.toUTCString){
_90.expires=exp.toUTCString();
}
_8f=encodeURIComponent(_8f);
var _95=_8e+"="+_8f,_96;
for(_96 in _90){
_95+="; "+_96;
var _97=_90[_96];
if(_97!==true){
_95+="="+_97;
}
}
document.cookie=_95;
}
};
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["dojox.xml.parser"]){
dojo._hasResource["dojox.xml.parser"]=true;
dojo.provide("dojox.xml.parser");
dojox.xml.parser.parse=function(str,_99){
var _9a=dojo.doc;
var doc;
_99=_99||"text/xml";
if(str&&dojo.trim(str)&&"DOMParser" in dojo.global){
var _9c=new DOMParser();
doc=_9c.parseFromString(str,_99);
var de=doc.documentElement;
var _9e="http://www.mozilla.org/newlayout/xml/parsererror.xml";
if(de.nodeName=="parsererror"&&de.namespaceURI==_9e){
var _9f=de.getElementsByTagNameNS(_9e,"sourcetext")[0];
if(!_9f){
_9f=_9f.firstChild.data;
}
throw new Error("Error parsing text "+nativeDoc.documentElement.firstChild.data+" \n"+_9f);
}
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(_9a.implementation&&_9a.implementation.createDocument){
if(str&&dojo.trim(str)&&_9a.createElement){
var tmp=_9a.createElement("xml");
tmp.innerHTML=str;
var _a6=_9a.implementation.createDocument("foo","",null);
dojo.forEach(tmp.childNodes,function(_a7){
_a6.importNode(_a7,true);
});
return _a6;
}else{
return _9a.implementation.createDocument("","",null);
}
}
}
}
return null;
};
dojox.xml.parser.textContent=function(_a8,_a9){
if(arguments.length>1){
var _aa=_a8.ownerDocument||dojo.doc;
dojox.xml.parser.replaceChildren(_a8,_aa.createTextNode(_a9));
return _a9;
}else{
if(_a8.textContent!==undefined){
return _a8.textContent;
}
var _ab="";
if(_a8){
dojo.forEach(_a8.childNodes,function(_ac){
switch(_ac.nodeType){
case 1:
case 5:
_ab+=dojox.xml.parser.textContent(_ac);
break;
case 3:
case 2:
case 4:
_ab+=_ac.nodeValue;
}
});
}
return _ab;
}
};
dojox.xml.parser.replaceChildren=function(_ad,_ae){
var _af=[];
if(dojo.isIE){
dojo.forEach(_ad.childNodes,function(_b0){
_af.push(_b0);
});
}
dojox.xml.parser.removeChildren(_ad);
dojo.forEach(_af,dojo.destroy);
if(!dojo.isArray(_ae)){
_ad.appendChild(_ae);
}else{
dojo.forEach(_ae,function(_b1){
_ad.appendChild(_b1);
});
}
};
dojox.xml.parser.removeChildren=function(_b2){
var _b3=_b2.childNodes.length;
while(_b2.hasChildNodes()){
_b2.removeChild(_b2.firstChild);
}
return _b3;
};
dojox.xml.parser.innerXML=function(_b4){
if(_b4.innerXML){
return _b4.innerXML;
}else{
if(_b4.xml){
return _b4.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(_b4);
}
}
}
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,_b6){
dojo.deprecated("dojox.data.dom.createDocument()","Use dojox.xml.parser.parse() instead.","2.0");
try{
return dojox.xml.parser.parse(str,_b6);
}
catch(e){
return null;
}
};
dojox.data.dom.textContent=function(_b7,_b8){
dojo.deprecated("dojox.data.dom.textContent()","Use dojox.xml.parser.textContent() instead.","2.0");
if(arguments.length>1){
return dojox.xml.parser.textContent(_b7,_b8);
}else{
return dojox.xml.parser.textContent(_b7);
}
};
dojox.data.dom.replaceChildren=function(_b9,_ba){
dojo.deprecated("dojox.data.dom.replaceChildren()","Use dojox.xml.parser.replaceChildren() instead.","2.0");
dojox.xml.parser.replaceChildren(_b9,_ba);
};
dojox.data.dom.removeChildren=function(_bb){
dojo.deprecated("dojox.data.dom.removeChildren()","Use dojox.xml.parser.removeChildren() instead.","2.0");
return dojox.xml.parser.removeChildren(_bb);
};
dojox.data.dom.innerXML=function(_bc){
dojo.deprecated("dojox.data.dom.innerXML()","Use dojox.xml.parser.innerXML() instead.","2.0");
return dojox.xml.parser.innerXML(_bc);
};
}
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(_c0,_c1,ch,end){
if(!ch){
ch="0";
}
var out=String(_c0),pad=dojo.string.rep(ch,Math.ceil((_c1-out.length)/ch.length));
return end?out+pad:pad+out;
};
dojo.string.substitute=function(_c6,map,_c8,_c9){
_c9=_c9||dojo.global;
_c8=(!_c8)?function(v){
return v;
}:dojo.hitch(_c9,_c8);
return _c6.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_cb,key,_cd){
var _ce=dojo.getObject(key,false,map);
if(_cd){
_ce=dojo.getObject(_cd,false,_c9).call(_c9,_ce,key);
}
return _c8(_ce,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.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(_d4,_d5){
var _d6=[];
function _d7(_d8,dir){
return function(_da,_db){
var a=_d5.getValue(_da,_d8);
var b=_d5.getValue(_db,_d8);
var _de=null;
if(_d5.comparatorMap){
if(typeof _d8!=="string"){
_d8=_d5.getIdentity(_d8);
}
_de=_d5.comparatorMap[_d8]||dojo.data.util.sorter.basicComparator;
}
_de=_de||dojo.data.util.sorter.basicComparator;
return dir*_de(a,b);
};
};
var _df;
for(var i=0;i<_d4.length;i++){
_df=_d4[i];
if(_df.attribute){
var _e1=(_df.descending)?-1:1;
_d6.push(_d7(_df.attribute,_e1));
}
}
return function(_e2,_e3){
var i=0;
while(i<_d6.length){
var ret=_d6[i++](_e2,_e3);
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(_e6){
dojo.mixin(this,_e6);
},getValue:function(_e7,_e8,_e9){
this._assertIsItem(_e7);
if(!dojo.isString(_e8)){
throw new Error(this._className+".getValue(): Invalid attribute, string expected!");
}
if(!this.hasAttribute(_e7,_e8)){
if(_e9){
return _e9;
}
console.log(this._className+".getValue(): Item does not have the attribute '"+_e8+"'.");
}
return _e7.i[_e8];
},getValues:function(_ea,_eb){
this._assertIsItem(_ea);
var ret=[];
if(this.hasAttribute(_ea,_eb)){
ret.push(_ea.i[_eb]);
}
return ret;
},getAttributes:function(_ed){
this._assertIsItem(_ed);
var ret=[];
for(var i in _ed.i){
ret.push(i);
}
return ret;
},hasAttribute:function(_f0,_f1){
return this.isItem(_f0)&&typeof _f0.i[_f1]!="undefined";
},containsValue:function(_f2,_f3,_f4){
var _f5=this.getValues(_f2,_f3);
var len=_f5.length;
for(var i=0;i<len;i++){
if(_f5[i]==_f4){
return true;
}
}
return false;
},isItem:function(_f8){
if(_f8){
return typeof _f8.r!="undefined"&&_f8.r==this;
}
return false;
},isItemLoaded:function(_f9){
return this.isItem(_f9);
},loadItem:function(_fa){
if(this.isItemLoaded(_fa.item)){
return;
}
},fetch:function(_fb){
_fb=_fb||{};
if(!_fb.store){
_fb.store=this;
}
var _fc=this;
var _fd=function(_fe,_ff){
if(_ff.onError){
var _100=_ff.scope||dojo.global;
_ff.onError.call(_100,_fe,_ff);
}
};
var _101=function(_102,_103,_104){
var _105=_103.abort||null;
var _106=false;
var _107=_103.start?_103.start:0;
if(_fc.doClientPaging==false){
_107=0;
}
var _108=_103.count?(_107+_103.count):_102.length;
_103.abort=function(){
_106=true;
if(_105){
_105.call(_103);
}
};
var _109=_103.scope||dojo.global;
if(!_103.store){
_103.store=_fc;
}
if(_103.onBegin){
_103.onBegin.call(_109,_104,_103);
}
if(_103.sort&&_fc.doClientSorting){
_102.sort(dojo.data.util.sorter.createSortFunction(_103.sort,_fc));
}
if(_103.onItem){
for(var i=_107;(i<_102.length)&&(i<_108);++i){
var item=_102[i];
if(!_106){
_103.onItem.call(_109,item,_103);
}
}
}
if(_103.onComplete&&!_106){
var _10c=null;
if(!_103.onItem){
_10c=_102.slice(_107,_108);
}
_103.onComplete.call(_109,_10c,_103);
}
};
this._fetchItems(_fb,_101,_fd);
return _fb;
},getFeatures:function(){
return this._features;
},close:function(_10d){
},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,_111,_112,_113){
data=this._filterResponse(data);
if(data.label){
this._labelAttr=data.label;
}
var _114=data.numRows||-1;
this._items=[];
dojo.forEach(data.items,function(e){
this._items.push({i:e,r:this});
},this);
var _116=data.identifier;
this._itemsByIdentity={};
if(_116){
this._identifier=_116;
var i;
for(i=0;i<this._items.length;++i){
var item=this._items[i].i;
var _119=item[_116];
if(!this._itemsByIdentity[_119]){
this._itemsByIdentity[_119]=item;
}else{
throw new Error(this._className+":  The json data as specified by: ["+this.url+"] is malformed.  Items within the list have identifier: ["+_116+"].  Value collided: ["+_119+"]");
}
}
}else{
this._identifier=Number;
for(i=0;i<this._items.length;++i){
this._items[i].n=i;
}
}
_114=this._numRows=(_114===-1)?this._items.length:_114;
_112(this._items,_111,_114);
this._numRows=_114;
},_fetchItems:function(_11a,_11b,_11c){
var _11d=_11a.serverQuery||_11a.query||{};
if(!this.doClientPaging){
_11d.start=_11a.start||0;
if(_11a.count){
_11d.count=_11a.count;
}
}
if(!this.doClientSorting){
if(_11a.sort){
var sort=_11a.sort[0];
if(sort&&sort.attribute){
var _11f=sort.attribute;
if(sort.descending){
_11f="-"+_11f;
}
_11d.sort=_11f;
}
}
}
if(this.doClientPaging&&this._lastServerQuery!==null&&dojo.toJson(_11d)==dojo.toJson(this._lastServerQuery)){
this._numRows=(this._numRows===-1)?this._items.length:this._numRows;
_11b(this._items,_11a,this._numRows);
}else{
var _120=this.requestMethod.toLowerCase()=="post"?dojo.xhrPost:dojo.xhrGet;
var _121=_120({url:this.url,handleAs:"json-comment-optional",content:_11d});
_121.addCallback(dojo.hitch(this,function(data){
this._xhrFetchHandler(data,_11a,_11b,_11c);
}));
_121.addErrback(function(_123){
_11c(_123,_11a);
});
this.lastRequestHash=new Date().getTime()+"-"+String(Math.random()).substring(2);
this._lastServerQuery=dojo.mixin({},_11d);
}
},_filterResponse:function(data){
return data;
},_assertIsItem:function(item){
if(!this.isItem(item)){
throw new Error(this._className+": Invalid item argument.");
}
},_assertIsAttribute:function(_126){
if(typeof _126!=="string"){
throw new Error(this._className+": Invalid attribute argument ('"+_126+"').");
}
},fetchItemByIdentity:function(_127){
if(this._itemsByIdentity){
var item=this._itemsByIdentity[_127.identity];
if(!(item===undefined)){
if(_127.onItem){
var _129=_127.scope?_127.scope:dojo.global;
_127.onItem.call(_129,{i:item,r:this});
}
return;
}
}
var _12a=function(_12b,_12c){
var _12d=_127.scope?_127.scope:dojo.global;
if(_127.onError){
_127.onError.call(_12d,_12b);
}
};
var _12e=function(_12f,_130){
var _131=_127.scope?_127.scope:dojo.global;
try{
var item=null;
if(_12f&&_12f.length==1){
item=_12f[0];
}
if(_127.onItem){
_127.onItem.call(_131,item);
}
}
catch(error){
if(_127.onError){
_127.onError.call(_131,error);
}
}
};
var _133={serverQuery:{id:_127.identity}};
this._fetchItems(_133,_12e,_12a);
},getIdentity:function(item){
var _135=null;
if(this._identifier===Number){
_135=item.n;
}else{
_135=item.i[this._identifier];
}
return _135;
},getIdentityAttributes:function(item){
return [this._identifier];
}});
}
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 _137=dojo.doc;
if(_137.selection){
var s=_137.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _139=dojo.global;
var _13a=_139.getSelection();
if(dojo.isString(_13a)){
return !_13a;
}else{
return !_13a||_13a.isCollapsed||!_13a.toString();
}
}
},getBookmark:function(){
var _13b,_13c=dojo.doc.selection;
if(_13c){
var _13d=_13c.createRange();
if(_13c.type.toUpperCase()=="CONTROL"){
if(_13d.length){
_13b=[];
var i=0,len=_13d.length;
while(i<len){
_13b.push(_13d.item(i++));
}
}else{
_13b=null;
}
}else{
_13b=_13d.getBookmark();
}
}else{
if(window.getSelection){
_13c=dojo.global.getSelection();
if(_13c){
_13d=_13c.getRangeAt(0);
_13b=_13d.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _13b;
},moveToBookmark:function(_140){
var _141=dojo.doc;
if(_141.selection){
var _142;
if(dojo.isArray(_140)){
_142=_141.body.createControlRange();
dojo.forEach(_140,function(n){
_142.addElement(n);
});
}else{
_142=_141.selection.createRange();
_142.moveToBookmark(_140);
}
_142.select();
}else{
var _144=dojo.global.getSelection&&dojo.global.getSelection();
if(_144&&_144.removeAllRanges){
_144.removeAllRanges();
_144.addRange(_140);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(menu,_146){
return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_146||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_146||dojo.global,dijit.getBookmark):null,openedForWindow:_146};
},focus:function(_147){
if(!_147){
return;
}
var node="node" in _147?_147.node:_147,_149=_147.bookmark,_14a=_147.openedForWindow;
if(node){
var _14b=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_14b&&_14b.focus){
try{
_14b.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_149&&dojo.withGlobal(_14a||dojo.global,dijit.isCollapsed)){
if(_14a){
_14a.focus();
}
try{
dojo.withGlobal(_14a||dojo.global,dijit.moveToBookmark,null,[_149]);
}
catch(e){
}
}
},_activeStack:[],registerIframe:function(_14c){
dijit.registerWin(_14c.contentWindow,_14c);
},registerWin:function(_14d,_14e){
dojo.connect(_14d.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_14e||evt.target||evt.srcElement);
});
var doc=_14d.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(_14e||evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(_14e||evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(_14e||evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(_14e||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 _157=[];
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){
_157.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_157);
},_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(_15a){
var _15b=dijit._activeStack;
dijit._activeStack=_15a;
for(var _15c=0;_15c<Math.min(_15b.length,_15a.length);_15c++){
if(_15b[_15c]!=_15a[_15c]){
break;
}
}
for(var i=_15b.length-1;i>=_15c;i--){
var _15e=dijit.byId(_15b[i]);
if(_15e){
_15e._focused=false;
_15e._hasBeenBlurred=true;
if(_15e._onBlur){
_15e._onBlur();
}
if(_15e._setStateClass){
_15e._setStateClass();
}
dojo.publish("widgetBlur",[_15e]);
}
}
for(i=_15c;i<_15a.length;i++){
_15e=dijit.byId(_15a[i]);
if(_15e){
_15e._focused=true;
if(_15e._onFocus){
_15e._onFocus();
}
if(_15e._setStateClass){
_15e._setStateClass();
}
dojo.publish("widgetFocus",[_15e]);
}
}
}});
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(_15f){
if(this._hash[_15f.id]){
throw new Error("Tried to register widget with id=="+_15f.id+" but that id is already registered");
}
this._hash[_15f.id]=_15f;
},remove:function(id){
delete this._hash[id];
},forEach:function(func){
for(var id in this._hash){
func(this._hash[id]);
}
},filter:function(_163){
var res=new dijit.WidgetSet();
this.forEach(function(_165){
if(_163(_165)){
res.add(_165);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_168){
return _168.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_169){
var id;
do{
id=_169+"_"+(_169 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_169]:dijit._widgetTypeCtr[_169]=0);
}while(dijit.byId(id));
return id;
};
dijit.findWidgets=function(root){
var _16c=[];
function _16d(root){
var list=dojo.isIE?root.children:root.childNodes,i=0,node;
while(node=list[i++]){
if(node.nodeType!=1){
continue;
}
var _172=node.getAttribute("widgetId");
if(_172){
var _173=dijit.byId(_172);
_16c.push(_173);
}else{
_16d(node);
}
}
};
_16d(root);
return _16c;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dojo.forEach(dijit.findWidgets(dojo.body()),function(_174){
if(_174.destroyRecursive){
_174.destroyRecursive();
}else{
if(_174.destroy){
_174.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 _179=dojo.style(elem);
return (_179.visibility!="hidden")&&(_179.visibility!="collapsed")&&(_179.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function(elem){
if(dojo.hasAttr(elem,"disabled")){
return false;
}
var _17b=dojo.hasAttr(elem,"tabindex");
var _17c=dojo.attr(elem,"tabindex");
if(_17b&&_17c>=0){
return true;
}
var name=elem.nodeName.toLowerCase();
if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_17b||_17c>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(root){
var _17f,last,_181,_182,_183,_184;
var _185=function(_186){
dojo.query("> *",_186).forEach(function(_187){
var _188=dijit._isElementShown(_187);
if(_188&&dijit.isTabNavigable(_187)){
var _189=dojo.attr(_187,"tabindex");
if(!dojo.hasAttr(_187,"tabindex")||_189==0){
if(!_17f){
_17f=_187;
}
last=_187;
}else{
if(_189>0){
if(!_181||_189<_182){
_182=_189;
_181=_187;
}
if(!_183||_189>=_184){
_184=_189;
_183=_187;
}
}
}
}
if(_188&&_187.nodeName.toUpperCase()!="SELECT"){
_185(_187);
}
});
};
if(dijit._isElementShown(root)){
_185(root);
}
return {first:_17f,last:last,lowest:_181,highest:_183};
};
dijit.getFirstInTabbingOrder=function(root){
var _18b=dijit._getTabNavigable(dojo.byId(root));
return _18b.lowest?_18b.lowest:_18b.first;
};
dijit.getLastInTabbingOrder=function(root){
var _18d=dijit._getTabNavigable(dojo.byId(root));
return _18d.last?_18d.last:_18d.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_18e){
this.pairs=[];
this.returnWrappers=_18e||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_190,wrap,_192,_193){
this.pairs[((_193)?"unshift":"push")]([name,_190,wrap,_192]);
},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 _199=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _19a=dojo._docScroll();
return {w:_199.clientWidth,h:_199.clientHeight,l:_19a.x,t:_19a.y};
};
dijit.placeOnScreen=function(node,pos,_19d,_19e){
var _19f=dojo.map(_19d,function(_1a0){
var c={corner:_1a0,pos:{x:pos.x,y:pos.y}};
if(_19e){
c.pos.x+=_1a0.charAt(1)=="L"?_19e.x:-_19e.x;
c.pos.y+=_1a0.charAt(0)=="T"?_19e.y:-_19e.y;
}
return c;
});
return dijit._place(node,_19f);
};
dijit._place=function(node,_1a3,_1a4){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_1a3,function(_1a7){
var _1a8=_1a7.corner;
var pos=_1a7.pos;
if(_1a4){
_1a4(node,_1a7.aroundCorner,_1a8);
}
var _1aa=node.style;
var _1ab=_1aa.display;
var _1ac=_1aa.visibility;
_1aa.visibility="hidden";
_1aa.display="";
var mb=dojo.marginBox(node);
_1aa.display=_1ab;
_1aa.visibility=_1ac;
var _1ae=(_1a8.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_1af=(_1a8.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_1a8.charAt(1)=="L"?Math.min(view.l+view.w,_1ae+mb.w):pos.x),endY=(_1a8.charAt(0)=="T"?Math.min(view.t+view.h,_1af+mb.h):pos.y),_1b2=endX-_1ae,_1b3=endY-_1af,_1b4=(mb.w-_1b2)+(mb.h-_1b3);
if(best==null||_1b4<best.overflow){
best={corner:_1a8,aroundCorner:_1a7.aroundCorner,x:_1ae,y:_1af,w:_1b2,h:_1b3,overflow:_1b4};
}
return !_1b4;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_1a4){
_1a4(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_1b6,_1b7,_1b8){
_1b6=dojo.byId(_1b6);
var _1b9=_1b6.style.display;
_1b6.style.display="";
var _1ba=_1b6.offsetWidth;
var _1bb=_1b6.offsetHeight;
var _1bc=dojo.coords(_1b6,true);
_1b6.style.display=_1b9;
return dijit._placeOnScreenAroundRect(node,_1bc.x,_1bc.y,_1ba,_1bb,_1b7,_1b8);
};
dijit.placeOnScreenAroundRectangle=function(node,_1be,_1bf,_1c0){
return dijit._placeOnScreenAroundRect(node,_1be.x,_1be.y,_1be.width,_1be.height,_1bf,_1c0);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_1c4,_1c5,_1c6,_1c7){
var _1c8=[];
for(var _1c9 in _1c6){
_1c8.push({aroundCorner:_1c9,corner:_1c6[_1c9],pos:{x:x+(_1c9.charAt(1)=="L"?0:_1c4),y:y+(_1c9.charAt(0)=="T"?0:_1c5)}});
}
return dijit._place(node,_1c8,_1c7);
};
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,_1cf,_1d0,_1d1){
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 _1d4=[],_1d5=1000,_1d6=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 _1da=args.popup,_1db=args.orient||{"BL":"TL","TL":"BL"},_1dc=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_1d6++);
var _1de=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_1d5+_1d4.length,visibility:"hidden"}},dojo.body());
dijit.setWaiRole(_1de,"presentation");
_1de.style.left=_1de.style.top="0px";
if(args.parent){
_1de.dijitPopupParent=args.parent.id;
}
var s=_1da.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_1de.appendChild(_1da.domNode);
var _1e0=new dijit.BackgroundIframe(_1de);
var best=_1dc?dijit.placeOnScreenAroundElement(_1de,_1dc,_1db,_1da.orient?dojo.hitch(_1da,"orient"):null):dijit.placeOnScreen(_1de,args,_1db=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_1de.style.visibility="visible";
var _1e2=[];
var _1e3=function(){
for(var pi=_1d4.length-1;pi>0&&_1d4[pi].parent===_1d4[pi-1].widget;pi--){
}
return _1d4[pi];
};
_1e2.push(dojo.connect(_1de,"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 _1e6=_1e3();
if(_1e6&&_1e6.onCancel){
_1e6.onCancel();
}
}
}
}));
if(_1da.onCancel){
_1e2.push(dojo.connect(_1da,"onCancel",null,args.onCancel));
}
_1e2.push(dojo.connect(_1da,_1da.onExecute?"onExecute":"onChange",null,function(){
var _1e7=_1e3();
if(_1e7&&_1e7.onExecute){
_1e7.onExecute();
}
}));
_1d4.push({wrapper:_1de,iframe:_1e0,widget:_1da,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_1e2});
if(_1da.onOpen){
_1da.onOpen(best);
}
return best;
};
this.close=function(_1e8){
while(dojo.some(_1d4,function(elem){
return elem.widget==_1e8;
})){
var top=_1d4.pop(),_1eb=top.wrapper,_1ec=top.iframe,_1ed=top.widget,_1ee=top.onClose;
if(_1ed.onClose){
_1ed.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_1ed||!_1ed.domNode){
return;
}
this.prepare(_1ed.domNode);
_1ec.destroy();
dojo.destroy(_1eb);
if(_1ee){
_1ee();
}
}
};
}();
dijit._frames=new function(){
var _1ef=[];
this.pop=function(){
var _1f0;
if(_1ef.length){
_1f0=_1ef.pop();
_1f0.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\");'>";
_1f0=dojo.doc.createElement(html);
}else{
_1f0=dojo.create("iframe");
_1f0.src="javascript:\"\"";
_1f0.className="dijitBackgroundIframe";
}
_1f0.tabIndex=-1;
dojo.body().appendChild(_1f0);
}
return _1f0;
};
this.push=function(_1f3){
_1f3.style.display="none";
if(dojo.isIE){
_1f3.style.removeExpression("width");
_1f3.style.removeExpression("height");
}
_1ef.push(_1f3);
};
}();
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 _1f5=dijit._frames.pop();
node.appendChild(_1f5);
if(dojo.isIE){
_1f5.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_1f5.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_1f5;
}
};
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 _1fb=dojo.isIE>=8&&!_1fc;
var rtl=!ltr&&!_1fb;
var _1fe=body;
var _1fc=doc.compatMode=="BackCompat";
if(_1fc){
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{
_1fe=html;
}
html._offsetHeight=html.clientHeight;
html._offsetWidth=html.clientWidth;
}
function _1ff(_200){
var ie=dojo.isIE;
return ((ie<=6||(ie>=7&&_1fc))?false:(dojo.style(_200,"position").toLowerCase()=="fixed"));
};
function _202(_203){
var _204=_203.parentNode;
var _205=_203.offsetParent;
if(_205==null||_1ff(_203)){
_205=html;
_204=(_203==body)?html:null;
}
_203._offsetParent=_205;
_203._parent=_204;
var bp=dojo._getBorderExtents(_203);
_203._borderStart={H:(_1fb&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};
_203._borderSize={H:bp.w,V:bp.h};
_203._scrolledAmount={H:_203.scrollLeft,V:_203.scrollTop};
_203._offsetSize={H:_203._offsetWidth||_203.offsetWidth,V:_203._offsetHeight||_203.offsetHeight};
_203._offsetStart={H:(_1fb&&!ltr)?_205.clientWidth-_203.offsetLeft-_203._offsetSize.H:_203.offsetLeft,V:_203.offsetTop};
_203._clientSize={H:_203._clientWidth||_203.clientWidth,V:_203._clientHeight||_203.clientHeight};
if(_203!=body&&_203!=html&&_203!=node){
for(var dir in _203._offsetSize){
var _208=_203._offsetSize[dir]-_203._clientSize[dir]-_203._borderSize[dir];
var _209=_203._clientSize[dir]>0&&_208>0;
if(_209){
_203._offsetSize[dir]-=_208;
if(dojo.isIE&&rtl&&dir=="H"){
_203._offsetStart[dir]+=_208;
}
}
}
}
};
var _20a=node;
while(_20a!=null){
if(_1ff(_20a)){
node.scrollIntoView(false);
return;
}
_202(_20a);
_20a=_20a._parent;
}
if(dojo.isIE&&node._parent){
var _20b=node._offsetParent;
node._offsetStart.H+=_20b._borderStart.H;
node._offsetStart.V+=_20b._borderStart.V;
}
if(dojo.isIE>=7&&_1fe==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){
var _20c=html.scrollWidth-html._offsetSize.H;
if(_20c>0){
body._offsetStart.H=-_20c;
}
}
if(dojo.isIE<=6&&!_1fc){
html._offsetSize.H+=html._borderSize.H;
html._offsetSize.V+=html._borderSize.V;
}
if(rtl&&body._offsetStart&&_1fe==html&&html._scrolledAmount){
var ofs=body._offsetStart.H;
if(ofs<0){
html._scrolledAmount.H+=ofs;
body._offsetStart.H=0;
}
}
_20a=node;
while(_20a){
var _20e=_20a._parent;
if(!_20e){
break;
}
if(_20e.tagName=="TD"){
var _20f=_20e._parent._parent._parent;
if(_20e!=_20a._offsetParent&&_20e._offsetParent!=_20a._offsetParent){
_20e=_20f;
}
}
var _210=_20a._offsetParent==_20e;
for(var dir in _20a._offsetStart){
var _212=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(_20e!=html)&&(_20e!=body)&&(dojo.isIE||dojo.isWebKit)&&_20e._clientSize.H>0&&_20e.scrollWidth>_20e._clientSize.H){
var _213=_20e.scrollWidth-_20e._clientSize.H;
if(_213>0){
_20e._scrolledAmount.H-=_213;
}
}
if(_20e._offsetParent.tagName=="TABLE"){
if(dojo.isIE){
_20e._offsetStart[dir]-=_20e._offsetParent._borderStart[dir];
_20e._borderStart[dir]=_20e._borderSize[dir]=0;
}else{
_20e._offsetStart[dir]+=_20e._offsetParent._borderStart[dir];
}
}
if(dojo.isIE){
_20e._offsetStart[dir]+=_20e._offsetParent._borderStart[dir];
}
var _214=_20a._offsetStart[dir]-_20e._scrolledAmount[dir]-(_210?0:_20e._offsetStart[dir])-_20e._borderStart[dir];
var _215=_214+_20a._offsetSize[dir]-_20e._offsetSize[dir]+_20e._borderSize[dir];
var _216=(dir=="H")?"scrollLeft":"scrollTop";
var _217=dir=="H"&&rtl;
var _218=_217?-_215:_214;
var _219=_217?-_214:_215;
var _21a=(_218*_219<=0)?0:Math[(_218<0)?"max":"min"](_218,_219);
if(_21a!=0){
var _21b=_20e[_216];
_20e[_216]+=(_217)?-_21a:_21a;
var _21c=_20e[_216]-_21b;
}
if(_210){
_20a._offsetStart[dir]+=_20e._offsetStart[dir];
}
_20a._offsetStart[dir]-=_20e[_216];
}
_20a._parent=_20e._parent;
_20a._offsetParent=_20e._offsetParent;
}
_20e=node;
var next;
while(_20e&&_20e.removeAttribute){
next=_20e.parentNode;
_20e.removeAttribute("_offsetParent");
_20e.removeAttribute("_parent");
_20e=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,_221=d.isOpera,maj=Math.floor,ff=d.isFF,_224=d.boxModel.replace(/-/,""),_225={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_221,dj_opera8:maj(_221)==8,dj_opera9:maj(_221)==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};
_225["dj_"+_224]=true;
for(var p in _225){
if(_225[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 _225){
if(_225[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,_229,node,_22b,obj,_22d,_22e){
if(obj!=this._obj){
this.stop();
this._initialDelay=_22e||500;
this._subsequentDelay=_22d||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_229,_22b);
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,_230,_231,_232,_233,_234){
if(_230.keyCode){
_230.charOrCode=_230.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_230.charCode){
_230.charOrCode=String.fromCharCode(_230.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==_230.charOrCode&&(_230.ctrlKey===undefined||_230.ctrlKey==evt.ctrlKey)&&(_230.altKey===undefined||_230.altKey==evt.ctrlKey)&&(_230.shiftKey===undefined||_230.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_230,_231,node,_232,_230,_233,_234);
}else{
if(dijit.typematic._obj==_230){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_230){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_238,_239,_23a,_23b){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_238,node,_239,node,_23a,_23b);
}),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,_238,node,_239,node,_23a,_23b);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_242,_243,_244,_245,_246,_247,_248){
return this.addKeyListener(_243,_244,_245,_246,_247,_248).concat(this.addMouseListener(_242,_245,_246,_247,_248));
}};
}
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 _24b=cs.backgroundImage;
var _24c=(cs.borderTopColor==cs.borderRightColor)||(_24b!=null&&(_24b=="none"||_24b=="url(invalid-url:)"));
dojo[_24c?"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 _24f=this.getWaiRole(elem);
return role?(_24f.indexOf(role)>-1):(_24f.length>0);
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _253=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_253)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_253+" ").indexOf(" "+role+" ")<0){
var _254=dojo.trim(_253.replace(this._XhtmlRoles,""));
var _255=dojo.trim(_253.replace(_254,""));
dojo.attr(elem,"role",_255+(_255?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _258=dojo.attr(elem,"role");
if(!_258){
return;
}
if(role){
var _259=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_258+" ").replace(" "+_259+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_25c){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_25c);
}
return elem.hasAttribute?elem.hasAttribute("aria-"+_25c):!!elem.getAttribute("aria-"+_25c);
},getWaiState:function(elem,_25e){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_25e);
}
return elem.getAttribute("aria-"+_25e)||"";
},setWaiState:function(elem,_260,_261){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_260,_261);
}else{
elem.setAttribute("aria-"+_260,_261);
}
},removeWaiState:function(elem,_263){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_263);
}else{
elem.removeAttribute("aria-"+_263);
}
}});
}
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(_264,_265){
if(_264&&dojo.isFunction(_264._onConnect)){
_264._onConnect(_265);
}
});
dijit._connectOnUseEventHandler=function(_266){
};
(function(){
var _267={};
var _268=function(dc){
if(!_267[dc]){
var r=[];
var _26b;
var _26c=dojo.getObject(dc).prototype;
for(var _26d in _26c){
if(dojo.isFunction(_26c[_26d])&&(_26b=_26d.match(/^_set([a-zA-Z]*)Attr$/))&&_26b[1]){
r.push(_26b[1].charAt(0).toLowerCase()+_26b[1].substr(1));
}
}
_267[dc]=r;
}
return _267[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(_26e,_26f){
this.create(_26e,_26f);
},create:function(_270,_271){
this.srcNodeRef=dojo.byId(_271);
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(_270){
this.params=_270;
dojo.mixin(this,_270);
}
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 _273=this.srcNodeRef;
if(_273&&_273.parentNode){
_273.parentNode.replaceChild(this.domNode,_273);
}
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 _274=function(attr,_276){
if((_276.params&&attr in _276.params)||_276[attr]){
_276.attr(attr,_276[attr]);
}
};
for(var attr in this.attributeMap){
_274(attr,this);
}
dojo.forEach(_268(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_274(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_279){
this.destroyDescendants(_279);
this.destroy(_279);
},destroy:function(_27a){
this.uninitialize();
dojo.forEach(this._connects,function(_27b){
dojo.forEach(_27b,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_27a);
dijit.registry.remove(this.id);
},destroyRendering:function(_27d){
if(this.bgIframe){
this.bgIframe.destroy(_27d);
delete this.bgIframe;
}
if(this.domNode){
if(_27d){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_27d){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_27e){
dojo.forEach(this.getChildren(),function(_27f){
if(_27f.destroyRecursive){
_27f.destroyRecursive(_27e);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_281){
if(_281 in this._deferredConnects){
var _282=this[this._deferredConnects[_281]||"domNode"];
this.connect(_282,_281.toLowerCase(),_281);
delete this._deferredConnects[_281];
}
},_setClassAttr:function(_283){
var _284=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_284,this["class"]);
this["class"]=_283;
dojo.addClass(_284,_283);
},_setStyleAttr:function(_285){
var _286=this[this.attributeMap["style"]||"domNode"];
if(dojo.isObject(_285)){
dojo.style(_286,_285);
}else{
if(_286.style.cssText){
_286.style.cssText+="; "+_285;
}else{
_286.style.cssText=_285;
}
}
this["style"]=_285;
},setAttribute:function(attr,_288){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_288);
},_attrToDom:function(attr,_28a){
var _28b=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_28b)?_28b:[_28b],function(_28c){
var _28d=this[_28c.node||_28c||"domNode"];
var type=_28c.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_28a)){
_28a=dojo.hitch(this,_28a);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_28d,attr,_28a);
break;
case "innerHTML":
_28d.innerHTML=_28a;
break;
case "class":
dojo.removeClass(_28d,this[attr]);
dojo.addClass(_28d,_28a);
break;
}
},this);
this[attr]=_28a;
},attr:function(name,_290){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _293=this._getAttrNames(name);
if(args==2){
if(this[_293.s]){
return this[_293.s](_290)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_290);
}
this[name]=_290;
}
return this;
}else{
if(this[_293.g]){
return this[_293.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,_299,_29a){
var d=dojo;
var dc=dojo.connect;
var _29d=[];
if(_299=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_29a);
_29d.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){
_29d.push(dc(obj,"onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
}
}
_299="onclick";
}
_29d.push(dc(obj,_299,this,_29a));
this._connects.push(_29d);
return _29d;
},disconnect:function(_2a2){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_2a2){
dojo.forEach(_2a2,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(_2a4,_2a5){
if(_2a4["declaredClass"]&&_2a4["addChild"]){
_2a4.addChild(this,_2a5);
}else{
dojo.place(this.domNode,_2a4,_2a5);
}
return this;
}});
})();
}
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 _2a8=dijit.byId(id);
return _2a8.isContainer?_2a8:null;
}
}
return null;
},_getSibling:function(_2a9){
var node=this.domNode;
do{
node=node[_2a9+"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(_2ad,_2ae){
var _2af=this.containerNode;
if(_2ae&&typeof _2ae=="number"){
var _2b0=this.getChildren();
if(_2b0&&_2b0.length>=_2ae){
_2af=_2b0[_2ae-1].domNode;
_2ae="after";
}
}
dojo.place(_2ad.domNode,_2af,_2ae);
if(this._started&&!_2ad._started){
_2ad.startup();
}
},removeChild:function(_2b1){
if(typeof _2b1=="number"&&_2b1>0){
_2b1=this.getChildren()[_2b1];
}
if(!_2b1||!_2b1.domNode){
return;
}
var node=_2b1.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(_2b5){
dojo.forEach(this.getChildren(),function(_2b6){
_2b6.destroyRecursive(_2b5);
});
},_getSiblingOfChild:function(_2b7,dir){
var node=_2b7.domNode;
var _2ba=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_2ba];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_2bb){
var _2bc=this.getChildren();
for(var i=0,c;c=_2bc[i];i++){
if(c==_2bb){
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(_2bf){
_2bf.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this._viewport=dijit.getViewport();
this.connect(dojo.global,"onresize",function(){
var _2c0=dijit.getViewport();
if(_2c0.w!=this._viewport.w||_2c0.h!=this._viewport.h){
this._viewport=_2c0;
this.resize();
}
});
}
this.inherited(arguments);
},resize:function(_2c1,_2c2){
var node=this.domNode;
if(_2c1){
dojo.marginBox(node,_2c1);
if(_2c1.t){
node.style.top=_2c1.t+"px";
}
if(_2c1.l){
node.style.left=_2c1.l+"px";
}
}
var mb=_2c2||{};
dojo.mixin(mb,_2c1||{});
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(_2ca){
dojo.addClass(_2ca.domNode,this.baseClass+"-child");
if(_2ca.baseClass){
dojo.addClass(_2ca.domNode,this.baseClass+"-"+_2ca.baseClass);
}
},addChild:function(_2cb,_2cc){
this.inherited(arguments);
if(this._started){
this._setupChild(_2cb);
}
},removeChild:function(_2cd){
dojo.removeClass(_2cd.domNode,this.baseClass+"-child");
if(_2cd.baseClass){
dojo.removeClass(_2cd.domNode,this.baseClass+"-"+_2cd.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 _2d3=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_2d6,dim){
_2d6.resize?_2d6.resize(dim):dojo.marginBox(_2d6.domNode,dim);
dojo.mixin(_2d6,dojo.marginBox(_2d6.domNode));
dojo.mixin(_2d6,dim);
};
dijit.layout.layoutChildren=function(_2d8,dim,_2da){
dim=dojo.mixin({},dim);
dojo.addClass(_2d8,"dijitLayoutContainer");
_2da=dojo.filter(_2da,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_2da,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_2da,function(_2dd){
var elm=_2dd.domNode,pos=_2dd.layoutAlign;
var _2e0=elm.style;
_2e0.left=dim.l+"px";
_2e0.top=dim.t+"px";
_2e0.bottom=_2e0.right="auto";
dojo.addClass(elm,"dijitAlign"+_2d3(pos));
if(pos=="top"||pos=="bottom"){
size(_2dd,{w:dim.w});
dim.h-=_2dd.h;
if(pos=="top"){
dim.t+=_2dd.h;
}else{
_2e0.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_2dd,{h:dim.h});
dim.w-=_2dd.w;
if(pos=="left"){
dim.l+=_2dd.w;
}else{
_2e0.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_2dd,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _2e1=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,_2e5){
if(_2e5){
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(_2ed,node){
dojo.mixin(this,_2ed||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_2e1++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_2f0){
if(undefined!==cont){
this.content=cont;
}
if(_2f0){
this._mixin(_2f0);
}
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 _2f2=this.onContentError(e);
try{
node.innerHTML=_2f2;
}
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 _2f5=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2f5){
cont=_2f5[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(_2f7){
var _2f8={},key;
for(key in _2f7){
if(key in _2f8){
continue;
}
this[key]=_2f7[key];
}
},_parse:function(){
var _2fa=this.node;
try{
this.parseResults=dojo.parser.parse(_2fa,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_2fd){
var _2fe=this["on"+type+"Error"].call(this,err);
if(_2fd){
console.error(_2fd,err);
}else{
if(_2fe){
dojo.html._setNodeContent(this.node,_2fe,true);
}
}
}});
dojo.html.set=function(node,cont,_301){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_301){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_301,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_303,_304,_305){
_305=dojo.i18n.normalizeLocale(_305);
var _306=_305.split("-");
var _307=[_303,"nls",_304].join(".");
var _308=dojo._loadedModules[_307];
if(_308){
var _309;
for(var i=_306.length;i>0;i--){
var loc=_306.slice(0,i).join("_");
if(_308[loc]){
_309=_308[loc];
break;
}
}
if(!_309){
_309=_308.ROOT;
}
if(_309){
var _30c=function(){
};
_30c.prototype=_309;
return new _30c();
}
}
throw new Error("Bundle not found: "+_304+" in "+_303+" , locale="+_305);
};
dojo.i18n.normalizeLocale=function(_30d){
var _30e=_30d?_30d.toLowerCase():dojo.locale;
if(_30e=="root"){
_30e="ROOT";
}
return _30e;
};
dojo.i18n._requireLocalization=function(_30f,_310,_311,_312){
var _313=dojo.i18n.normalizeLocale(_311);
var _314=[_30f,"nls",_310].join(".");
var _315="";
if(_312){
var _316=_312.split(",");
for(var i=0;i<_316.length;i++){
if(_313["indexOf"](_316[i])==0){
if(_316[i].length>_315.length){
_315=_316[i];
}
}
}
if(!_315){
_315="ROOT";
}
}
var _318=_312?_315:_313;
var _319=dojo._loadedModules[_314];
var _31a=null;
if(_319){
if(dojo.config.localizationComplete&&_319._built){
return;
}
var _31b=_318.replace(/-/g,"_");
var _31c=_314+"."+_31b;
_31a=dojo._loadedModules[_31c];
}
if(!_31a){
_319=dojo["provide"](_314);
var syms=dojo._getModuleSymbols(_30f);
var _31e=syms.concat("nls").join("/");
var _31f;
dojo.i18n._searchLocalePath(_318,_312,function(loc){
var _321=loc.replace(/-/g,"_");
var _322=_314+"."+_321;
var _323=false;
if(!dojo._loadedModules[_322]){
dojo["provide"](_322);
var _324=[_31e];
if(loc!="ROOT"){
_324.push(loc);
}
_324.push(_310);
var _325=_324.join("/")+".js";
_323=dojo._loadPath(_325,null,function(hash){
var _327=function(){
};
_327.prototype=_31f;
_319[_321]=new _327();
for(var j in hash){
_319[_321][j]=hash[j];
}
});
}else{
_323=true;
}
if(_323&&_319[_321]){
_31f=_319[_321];
}else{
_319[_321]=_31f;
}
if(_312){
return true;
}
});
}
if(_312&&_313!=_315){
_319[_313.replace(/-/g,"_")]=_319[_315.replace(/-/g,"_")];
}
};
(function(){
var _329=dojo.config.extraLocale;
if(_329){
if(!_329 instanceof Array){
_329=[_329];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_32d,_32e){
req(m,b,_32d,_32e);
if(_32d){
return;
}
for(var i=0;i<_329.length;i++){
req(m,b,_329[i],_32e);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_330,down,_332){
_330=dojo.i18n.normalizeLocale(_330);
var _333=_330.split("-");
var _334=[];
for(var i=_333.length;i>0;i--){
_334.push(_333.slice(0,i).join("-"));
}
_334.push(false);
if(down){
_334.reverse();
}
for(var j=_334.length-1;j>=0;j--){
var loc=_334[j]||"ROOT";
var stop=_332(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_339,_33a){
function _33b(_33c){
_33c=dojo.i18n.normalizeLocale(_33c);
dojo.i18n._searchLocalePath(_33c,true,function(loc){
for(var i=0;i<_33a.length;i++){
if(_33a[i]==loc){
dojo["require"](_339+"_"+loc);
return true;
}
}
return false;
});
};
_33b();
var _33f=dojo.config.extraLocale||[];
for(var i=0;i<_33f.length;i++){
_33b(_33f[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 _341=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_341);
this.errorMessage=dojo.string.substitute(this.errorMessage,_341);
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(_342){
_342.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 _343=dojo.query(">",this.containerNode),_344=_343.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_346=dojo.filter(_344.map(dijit.byNode),function(_347){
return _347&&_347.domNode&&_347.resize;
});
if(_343.length==_344.length&&_346.length==1){
this._singleChild=_346[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(_34c){
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 _353={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_353,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_353));
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 _358=this._contentSetter;
dojo.forEach(this.getChildren(),function(_359){
if(_359.destroyRecursive){
_359.destroyRecursive();
}
});
if(_358){
dojo.forEach(_358.parseResults,function(_35a){
if(_35a.destroyRecursive&&_35a.domNode&&_35a.domNode.parentNode==dojo.body()){
_35a.destroyRecursive();
}
});
delete _358.parseResults;
}
dojo.html._emptyNode(this.containerNode);
},_setContent:function(cont,_35c){
this.destroyDescendants();
delete this._singleChild;
var _35d=this._contentSetter;
if(!(_35d&&_35d instanceof dojo.html._ContentSetter)){
_35d=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _35f=this.onContentError(e);
try{
this.containerNode.innerHTML=_35f;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _360=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_35d,_360);
_35d.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_35c){
dojo.forEach(this.getChildren(),function(_361){
_361.startup();
});
if(this.doLayout){
this._checkIfSingleChild();
}
this._scheduleLayout();
this._onLoadHandler(cont);
}
},_onError:function(type,err,_364){
var _365=this["on"+type+"Error"].call(this,err);
if(_364){
console.error(_364,err);
}else{
if(_365){
this._setContent(_365,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(_367){
if(_367.resize){
_367.resize();
}
});
}
delete this._needLayout;
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_369){
},onDownloadError:function(_36a){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
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(args){
var _t=this;
dojo.mixin(_t,args);
_t.node=args.node;
_t._showArgs=dojo.mixin({},args);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},args);
_t._hideArgs.node=_t.node;
_t._hideArgs.duration=_t.hideDuration;
_t.hideAnim=_t.hideFunc(_t._hideArgs);
dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));
dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));
},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_36d){
return this.showAnim.play(_36d||0);
},hide:function(_36e){
return this.hideAnim.play(_36e||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_370={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _373=function(_374){
this._index=-1;
this._animations=_374||[];
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(_373,{_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(_376,_377){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_377&&this._current.status()=="playing"){
return this;
}
var _378=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_379=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_37b=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_378);
d.disconnect(_379);
d.disconnect(_37b);
});
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(_37f,_380){
this.pause();
var _381=this.duration*_37f;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_381){
this._current=a;
return true;
}
_381-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_381/this._current.duration,_380);
}
return this;
},stop:function(_383){
if(this._current){
if(_383){
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(_373,_370);
dojo.fx.chain=function(_386){
return new _373(_386);
};
var _387=function(_388){
this._animations=_388||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_388,function(a){
var _38a=a.duration;
if(a.delay){
_38a+=a.delay;
}
if(this.duration<_38a){
this.duration=_38a;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});
var self=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
self._connects.push(d.connect(self._pseudoAnimation,evt,function(){
self._fire(evt,arguments);
}));
});
};
d.extend(_387,{_doAction:function(_38d,args){
d.forEach(this._animations,function(a){
a[_38d].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_390,args){
var t=this._pseudoAnimation;
t[_390].apply(t,args);
},play:function(_393,_394){
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(_395,_396){
var ms=this.duration*_395;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_396);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_399){
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(_387,_370);
dojo.fx.combine=function(_39a){
return new _387(_39a);
};
dojo.fx.wipeIn=function(args){
args.node=d.byId(args.node);
var node=args.node,s=node.style,o;
var anim=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 _3a0=d.style(node,"height");
return Math.max(_3a0,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
d.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));
d.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=args.node=d.byId(args.node),top=null,left=null;
var init=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));
d.connect(anim,"beforeBegin",anim,init);
return anim;
};
})();
}
if(!dojo._hasResource["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 _3b1=this.declaredClass,_3b2=this;
return dojo.string.substitute(tmpl,this,function(_3b3,key){
if(key.charAt(0)=="!"){
_3b3=dojo.getObject(key.substr(1),false,_3b2);
}
if(typeof _3b3=="undefined"){
throw new Error(_3b1+" template:"+key);
}
if(_3b3==null){
return "";
}
return key.charAt(0)=="!"?_3b3:_3b3.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _3b5=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_3b5)){
node=dojo._toDom(this._stringRepl(_3b5));
}else{
node=_3b5.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(_3ba){
var dest=this.containerNode;
if(_3ba&&dest){
while(_3ba.hasChildNodes()){
dest.appendChild(_3ba.firstChild);
}
}
},_attachTemplateNodes:function(_3bc,_3bd){
_3bd=_3bd||function(n,p){
return n.getAttribute(p);
};
var _3c0=dojo.isArray(_3bc)?_3bc:(_3bc.all||_3bc.getElementsByTagName("*"));
var x=dojo.isArray(_3bc)?0:-1;
for(;x<_3c0.length;x++){
var _3c2=(x==-1)?_3bc:_3c0[x];
if(this.widgetsInTemplate&&_3bd(_3c2,"dojoType")){
continue;
}
var _3c3=_3bd(_3c2,"dojoAttachPoint");
if(_3c3){
var _3c4,_3c5=_3c3.split(/\s*,\s*/);
while((_3c4=_3c5.shift())){
if(dojo.isArray(this[_3c4])){
this[_3c4].push(_3c2);
}else{
this[_3c4]=_3c2;
}
}
}
var _3c6=_3bd(_3c2,"dojoAttachEvent");
if(_3c6){
var _3c7,_3c8=_3c6.split(/\s*,\s*/);
var trim=dojo.trim;
while((_3c7=_3c8.shift())){
if(_3c7){
var _3ca=null;
if(_3c7.indexOf(":")!=-1){
var _3cb=_3c7.split(":");
_3c7=trim(_3cb[0]);
_3ca=trim(_3cb[1]);
}else{
_3c7=trim(_3c7);
}
if(!_3ca){
_3ca=_3c7;
}
this.connect(_3c2,_3c7,_3ca);
}
}
}
var role=_3bd(_3c2,"waiRole");
if(role){
dijit.setWaiRole(_3c2,role);
}
var _3cd=_3bd(_3c2,"waiState");
if(_3cd){
dojo.forEach(_3cd.split(/\s*,\s*/),function(_3ce){
if(_3ce.indexOf("-")!=-1){
var pair=_3ce.split("-");
dijit.setWaiState(_3c2,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_3d0,_3d1,_3d2){
var _3d3=dijit._Templated._templateCache;
var key=_3d1||_3d0;
var _3d5=_3d3[key];
if(_3d5){
if(!_3d5.ownerDocument||_3d5.ownerDocument==dojo.doc){
return _3d5;
}
dojo.destroy(_3d5);
}
if(!_3d1){
_3d1=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_3d0)));
}
_3d1=dojo.string.trim(_3d1);
if(_3d2||_3d1.match(/\$\{([^\}]+)\}/g)){
return (_3d3[key]=_3d1);
}else{
return (_3d3[key]=dojo._toDom(_3d1));
}
};
dijit._Templated._sanitizeTemplateString=function(_3d6){
if(_3d6){
_3d6=_3d6.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _3d7=_3d6.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_3d7){
_3d6=_3d7[1];
}
}else{
_3d6="";
}
return _3d6;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _3d8=dijit._Templated._templateCache;
for(var key in _3d8){
var _3da=_3d8[key];
if(!isNaN(_3da.nodeType)){
dojo.destroy(_3da);
}
delete _3d8[key];
}
});
}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
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(_3db){
this.disabled=_3db;
dojo.attr(this.focusNode,"disabled",_3db);
dijit.setWaiState(this.focusNode,"disabled",_3db);
if(_3db){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_3dc){
dojo.deprecated("setDisabled("+_3dc+") is deprecated. Use attr('disabled',"+_3dc+") instead.","","2.0");
this.attr("disabled",_3dc);
},_onFocus:function(e){
if(this.scrollOnFocus){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_3de){
var _3df=_3de.currentTarget;
if(_3df&&_3df.getAttribute){
this.stateModifier=_3df.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_3de.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 _3e0=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_3e0);
});
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 _3e1=this.baseClass.split(" ");
function _3e2(_3e3){
_3e1=_3e1.concat(dojo.map(_3e1,function(c){
return c+_3e3;
}),"dijit"+_3e3);
};
if(this.checked){
_3e2("Checked");
}
if(this.state){
_3e2(this.state);
}
if(this.selected){
_3e2("Selected");
}
if(this.disabled){
_3e2("Disabled");
}else{
if(this.readOnly){
_3e2("ReadOnly");
}else{
if(this._active){
_3e2(this.stateModifier+"Active");
}else{
if(this._focused){
_3e2("Focused");
}
if(this._hovering){
_3e2(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_3e6={};
dojo.forEach(tn.className.split(" "),function(c){
_3e6[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _3e6[c];
});
}
dojo.forEach(_3e1,function(c){
_3e6[c]=true;
});
var _3ea=[];
for(var c in _3e6){
_3ea.push(c);
}
tn.className=_3ea.join(" ");
this._stateClasses=_3e1;
},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(_3ee){
},_onChangeActive:false,_handleOnChange:function(_3ef,_3f0){
this._lastValue=_3ef;
if(this._lastValueReported==undefined&&(_3f0===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_3ef;
}
if((this.intermediateChanges||_3f0||_3f0===undefined)&&((typeof _3ef!=typeof this._lastValueReported)||this.compare(_3ef,this._lastValueReported)!=0)){
this._lastValueReported=_3ef;
if(this._onChangeActive){
this.onChange(_3ef);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_3f1){
dojo.deprecated("dijit.form._FormWidget:setValue("+_3f1+") is deprecated.  Use attr('value',"+_3f1+") instead.","","2.0");
this.attr("value",_3f1);
},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(_3f4,_3f5){
this.value=_3f4;
this._handleOnChange(_3f4,_3f5);
},_getValueAttr:function(_3f6){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}else{
if(dojo.isWebKit){
te=document.createEvent("Events");
te.initEvent("keypress",true,true);
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.target.dispatchEvent(te);
}
}
}
}});
}
if(!dojo._hasResource["dijit.form.Button"]){
dojo._hasResource["dijit.form.Button"]=true;
dojo.provide("dijit.form.Button");
dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \n\t\t\t\t></span \n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \n\t\t\t\t\tid=\"${id}_label\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){
if(this.disabled||this.readOnly){
return false;
}
this._clicked();
return this.onClick(e);
},_onButtonClick:function(e){
if(e.type!="click"&&!(this.type=="submit"||this.type=="reset")){
dojo.stopEvent(e);
}
if(this._onClick(e)===false){
e.preventDefault();
}else{
if(this.type=="submit"&&!this.focusNode.form){
for(var node=this.domNode;node.parentNode;node=node.parentNode){
var _3fc=dijit.byNode(node);
if(_3fc&&typeof _3fc._onSubmit=="function"){
_3fc._onSubmit(e);
break;
}
}
}
}
},_setValueAttr:function(_3fd){
var attr=this.attributeMap.value||"";
if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){
if(_3fd!=this.value){
console.debug("Cannot change the value attribute on a Button widget.");
}
}
},_fillContent:function(_3ff){
if(_3ff&&!("label" in this.params)){
this.attr("label",_3ff.innerHTML);
}
},postCreate:function(){
if(this.showLabel==false){
dojo.addClass(this.containerNode,"dijitDisplayNone");
}
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
},onClick:function(e){
return true;
},_clicked:function(e){
},setLabel:function(_402){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_402);
},_setLabelAttr:function(_403){
this.containerNode.innerHTML=this.label=_403;
this._layoutHack();
if(this.showLabel==false&&!this.params.title){
this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");
}
}});
dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" \n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",_fillContent:function(){
if(this.srcNodeRef){
var _404=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_404[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _405=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_405);
delete this.dropDownContainer;
}
dijit.popup.prepare(this.dropDown.domNode);
this.inherited(arguments);
},destroyDescendants:function(){
if(this.dropDown){
this.dropDown.destroyRecursive();
delete this.dropDown;
}
this.inherited(arguments);
},_onArrowClick:function(e){
if(this.disabled||this.readOnly){
return;
}
this._toggleDropDown();
},_onDropDownClick:function(e){
var _408=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;
if(!_408||e.detail!=0||this._seenKeydown){
this._onArrowClick(e);
}
this._seenKeydown=false;
},_onDropDownKeydown:function(e){
this._seenKeydown=true;
},_onDropDownBlur:function(e){
this._seenKeydown=false;
},_onKey:function(e){
if(this.disabled||this.readOnly){
return;
}
if(e.charOrCode==dojo.keys.DOWN_ARROW){
if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){
dojo.stopEvent(e);
this._toggleDropDown();
}
}
},_onBlur:function(){
this._closeDropDown();
this.inherited(arguments);
},_toggleDropDown:function(){
if(this.disabled||this.readOnly){
return;
}
dijit.focus(this.popupStateNode);
var _40c=this.dropDown;
if(!_40c){
return;
}
if(!this._opened){
if(_40c.href&&!_40c.isLoaded){
var self=this;
var _40e=dojo.connect(_40c,"onLoad",function(){
dojo.disconnect(_40e);
self._openDropDown();
});
_40c.refresh();
return;
}else{
this._openDropDown();
}
}else{
this._closeDropDown();
}
},_openDropDown:function(){
var _40f=this.dropDown;
var _410=_40f.domNode.style.width;
var self=this;
dijit.popup.open({parent:this,popup:_40f,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){
self._closeDropDown(true);
},onCancel:function(){
self._closeDropDown(true);
},onClose:function(){
_40f.domNode.style.width=_410;
self.popupStateNode.removeAttribute("popupActive");
self._opened=false;
}});
if(this.domNode.offsetWidth>_40f.domNode.offsetWidth){
var _412=null;
if(!this.isLeftToRight()){
_412=_40f.domNode.parentNode;
var _413=_412.offsetLeft+_412.offsetWidth;
}
dojo.marginBox(_40f.domNode,{w:this.domNode.offsetWidth});
if(_412){
_412.style.left=_413-this.domNode.offsetWidth+"px";
}
}
this.popupStateNode.setAttribute("popupActive","true");
this._opened=true;
if(_40f.focus){
_40f.focus();
}
},_closeDropDown:function(_414){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_414){
this.focus();
}
this._opened=false;
}
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){
this.inherited(arguments);
this._focalNodes=[this.titleNode,this.popupStateNode];
dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){
if(dojo.isIE){
this.connect(node,"onactivate",this._onNodeFocus);
this.connect(node,"ondeactivate",this._onNodeBlur);
}else{
this.connect(node,"onfocus",this._onNodeFocus);
this.connect(node,"onblur",this._onNodeBlur);
}
}));
},focusFocalNode:function(node){
this._focusedNode=node;
dijit.focus(node);
},hasNextFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[1];
},focusNext:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];
dijit.focus(this._focusedNode);
},hasPrevFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[0];
},focusPrev:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];
dijit.focus(this._focusedNode);
},getFocalNodes:function(){
return this._focalNodes;
},_onNodeFocus:function(evt){
this._focusedNode=evt.currentTarget;
var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.addClass(this._focusedNode,fnc);
},_onNodeBlur:function(evt){
var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.removeClass(evt.currentTarget,fnc);
},_onBlur:function(){
this.inherited(arguments);
this._focusedNode=null;
}});
dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){
this.attr("checked",!this.checked);
},_setCheckedAttr:function(_41c){
this.checked=_41c;
dojo.attr(this.focusNode||this.domNode,"checked",_41c);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_41c);
this._setStateClass();
this._handleOnChange(_41c,true);
},setChecked:function(_41d){
dojo.deprecated("setChecked("+_41d+") is deprecated. Use attr('checked',"+_41d+") instead.","","2.0");
this.attr("checked",_41d);
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}
if(!dojo._hasResource["dijit.form.ToggleButton"]){
dojo._hasResource["dijit.form.ToggleButton"]=true;
dojo.provide("dijit.form.ToggleButton");
}
if(!dojo._hasResource["dijit._KeyNavContainer"]){
dojo._hasResource["dijit._KeyNavContainer"]=true;
dojo.provide("dijit._KeyNavContainer");
dojo.declare("dijit._KeyNavContainer",[dijit._Container],{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_41e,_41f){
var _420=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_41e,function(code){
_420[code]=prev;
});
dojo.forEach(_41f,function(code){
_420[code]=next;
});
this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus");
},startupKeyNavChildren:function(){
dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));
},addChild:function(_425,_426){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_425);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
this.focusChild(this._getFirstFocusableChild());
},focusNext:function(){
if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){
this.focusedChild.focusNext();
return;
}
var _427=this._getNextFocusableChild(this.focusedChild,1);
if(_427.getFocalNodes){
this.focusChild(_427,_427.getFocalNodes()[0]);
}else{
this.focusChild(_427);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _428=this._getNextFocusableChild(this.focusedChild,-1);
if(_428.getFocalNodes){
var _429=_428.getFocalNodes();
this.focusChild(_428,_429[_429.length-1]);
}else{
this.focusChild(_428);
}
},focusChild:function(_42a,node){
if(_42a){
if(this.focusedChild&&_42a!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_42a;
if(node&&_42a.focusFocalNode){
_42a.focusFocalNode(node);
}else{
_42a.focus();
}
}
},_startupChild:function(_42c){
if(_42c.getFocalNodes){
dojo.forEach(_42c.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_42c.focusNode||_42c.domNode;
if(_42c.isFocusable()){
dojo.attr(node,"tabindex",-1);
}
this._connectNode(node);
}
},_connectNode:function(node){
this.connect(node,"onfocus","_onNodeFocus");
this.connect(node,"onblur","_onNodeBlur");
},_onContainerFocus:function(evt){
if(evt.target!==this.domNode){
return;
}
this.focusFirstChild();
dojo.removeAttr(this.domNode,"tabIndex");
},_onBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabindex",this.tabIndex);
}
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.charOrCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onNodeFocus:function(evt){
var _435=dijit.getEnclosingWidget(evt.target);
if(_435&&_435.isFocusable()){
this.focusedChild=_435;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
dojo.stopEvent(evt);
},_onChildBlur:function(_437){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_438,dir){
if(_438){
_438=this._getSiblingOfChild(_438,dir);
}
var _43a=this.getChildren();
for(var i=0;i<_43a.length;i++){
if(!_438){
_438=_43a[(dir>0)?0:(_43a.length-1)];
}
if(_438.isFocusable()){
return _438;
}
_438=this._getSiblingOfChild(_438,dir);
}
return null;
}});
}
if(!dojo._hasResource["dijit.MenuItem"]){
dojo._hasResource["dijit.MenuItem"]=true;
dojo.provide("dijit.MenuItem");
dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\">\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_43c){
if(_43c&&!("label" in this.params)){
this.attr("label",_43c.innerHTML);
}
},postCreate:function(){
dojo.setSelectable(this.domNode,false);
dojo.attr(this.containerNode,"id",this.id+"_text");
dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");
},_onHover:function(){
dojo.addClass(this.domNode,"dijitMenuItemHover");
this.getParent().onItemHover(this);
},_onUnhover:function(){
dojo.removeClass(this.domNode,"dijitMenuItemHover");
this.getParent().onItemUnhover(this);
},_onClick:function(evt){
this.getParent().onItemClick(this,evt);
dojo.stopEvent(evt);
},onClick:function(evt){
},focus:function(){
try{
dijit.focus(this.focusNode);
}
catch(e){
}
},_onFocus:function(){
this._setSelected(true);
},_setSelected:function(_43f){
dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_43f);
},setLabel:function(_440){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_440);
},setDisabled:function(_441){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_441);
},_setDisabledAttr:function(_442){
this.disabled=_442;
dojo[_442?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.focusNode,"disabled",_442?"true":"false");
},_setAccelKeyAttr:function(_443){
this.accelKey=_443;
this.accelKeyNode.style.display=_443?"":"none";
this.accelKeyNode.innerHTML=_443;
dojo.attr(this.containerNode,"colSpan",_443?"1":"2");
}});
}
if(!dojo._hasResource["dijit.PopupMenuItem"]){
dojo._hasResource["dijit.PopupMenuItem"]=true;
dojo.provide("dijit.PopupMenuItem");
dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){
if(this.srcNodeRef){
var _444=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_444[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
if(!this.popup){
var node=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.popup=dijit.byNode(node);
}
dojo.body().appendChild(this.popup.domNode);
this.popup.domNode.style.display="none";
if(this.arrowWrapper){
dojo.style(this.arrowWrapper,"visibility","");
}
dijit.setWaiState(this.focusNode,"haspopup","true");
},destroyDescendants:function(){
if(this.popup){
this.popup.destroyRecursive();
delete this.popup;
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.CheckedMenuItem"]){
dojo._hasResource["dijit.CheckedMenuItem"]=true;
dojo.provide("dijit.CheckedMenuItem");
dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n",checked:false,_setCheckedAttr:function(_446){
dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_446);
dijit.setWaiState(this.domNode,"checked",_446);
this.checked=_446;
},onChange:function(_447){
},_onClick:function(e){
if(!this.disabled){
this.attr("checked",!this.checked);
this.onChange(this.checked);
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.MenuSeparator"]){
dojo._hasResource["dijit.MenuSeparator"]=true;
dojo.provide("dijit.MenuSeparator");
dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\">\n\t<td colspan=\"4\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n",postCreate:function(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function(){
return false;
}});
}
if(!dojo._hasResource["dijit.Menu"]){
dojo._hasResource["dijit.Menu"]=true;
dojo.provide("dijit.Menu");
dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_449){
_449.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_44a){
},_moveToPopup:function(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}else{
var _44c=this._getTopMenu();
if(_44c&&_44c._isMenuBar){
_44c.focusNext();
}
}
},onItemHover:function(item){
if(this.isActive){
this.focusChild(item);
if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){
this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);
}
}
},_onChildBlur:function(item){
item._setSelected(false);
dijit.popup.close(item.popup);
this._stopPopupTimer();
},onItemUnhover:function(item){
if(this.isActive){
this._stopPopupTimer();
}
},_stopPopupTimer:function(){
if(this.hover_timer){
clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_getTopMenu:function(){
for(var top=this;top.parentMenu;top=top.parentMenu){
}
return top;
},onItemClick:function(item,evt){
if(item.disabled){
return false;
}
this.focusChild(item);
if(item.popup){
if(!this.is_open){
this._openPopup();
}
}else{
this.onExecute();
item.onClick(evt);
}
},_openPopup:function(){
this._stopPopupTimer();
var _453=this.focusedChild;
var _454=_453.popup;
if(_454.isShowingNow){
return;
}
_454.parentMenu=this;
var self=this;
dijit.popup.open({parent:this,popup:_454,around:_453.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"}),onCancel:function(){
dijit.popup.close(_454);
_453.focus();
self.currentPopup=null;
},onExecute:dojo.hitch(this,"_onDescendantExecute")});
this.currentPopup=_454;
if(_454.focus){
setTimeout(dojo.hitch(_454,"focus"),0);
}
},onOpen:function(e){
this.isShowingNow=true;
},onClose:function(){
this._stopPopupTimer();
this.parentMenu=null;
this.isShowingNow=false;
this.currentPopup=null;
if(this.focusedChild){
this._onChildBlur(this.focusedChild);
this.focusedChild=null;
}
},_onFocus:function(){
this.isActive=true;
dojo.addClass(this.domNode,"dijitMenuActive");
dojo.removeClass(this.domNode,"dijitMenuPassive");
this.inherited(arguments);
},_onBlur:function(){
this.isActive=false;
dojo.removeClass(this.domNode,"dijitMenuActive");
dojo.addClass(this.domNode,"dijitMenuPassive");
this.onClose();
this.inherited(arguments);
},_onDescendantExecute:function(){
this.onClose();
}});
dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){
this._bindings=[];
},templateString:"<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,_contextMenuWithMouse:false,postCreate:function(){
if(this.contextMenuForWindow){
this.bindDomNode(dojo.body());
}else{
dojo.forEach(this.targetNodeIds,this.bindDomNode,this);
}
var k=dojo.keys,l=this.isLeftToRight();
this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;
this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;
this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);
},_onKeyPress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
switch(evt.charOrCode){
case this._openSubMenuKey:
this._moveToPopup(evt);
dojo.stopEvent(evt);
break;
case this._closeSubMenuKey:
if(this.parentMenu){
if(this.parentMenu._isMenuBar){
this.parentMenu.focusPrev();
}else{
this.onCancel(false);
}
}else{
dojo.stopEvent(evt);
}
break;
}
},_iframeContentWindow:function(_45a){
var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_45a))||dijit.Menu._iframeContentDocument(_45a)["__parent__"]||(_45a.name&&dojo.doc.frames[_45a.name])||null;
return win;
},_iframeContentDocument:function(_45c){
var doc=_45c.contentDocument||(_45c.contentWindow&&_45c.contentWindow.document)||(_45c.name&&dojo.doc.frames[_45c.name]&&dojo.doc.frames[_45c.name].document)||null;
return doc;
},bindDomNode:function(node){
node=dojo.byId(node);
var win=dijit.getDocumentWindow(node.ownerDocument);
if(node.tagName.toLowerCase()=="iframe"){
win=this._iframeContentWindow(node);
node=dojo.withGlobal(win,dojo.body);
}
var cn=(node==dojo.body()?dojo.doc:node);
node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);
},unBindDomNode:function(_461){
var node=dojo.byId(_461);
if(node){
var bid=node[this.id]-1,b=this._bindings[bid];
dojo.forEach(b,dojo.disconnect);
delete this._bindings[bid];
}
},_contextKey:function(e){
this._contextMenuWithMouse=false;
if(e.keyCode==dojo.keys.F10){
dojo.stopEvent(e);
if(e.shiftKey&&e.type=="keydown"){
var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};
_e.preventDefault=_e.stopPropagation=function(){
};
window.setTimeout(dojo.hitch(this,function(){
this._openMyself(_e);
}),1);
}
}
},_contextMouse:function(e){
this._contextMenuWithMouse=true;
},_openMyself:function(e){
if(this.leftClickToOpen&&e.button>0){
return;
}
dojo.stopEvent(e);
var x,y;
if(dojo.isSafari||this._contextMenuWithMouse){
x=e.pageX;
y=e.pageY;
}else{
var _46b=dojo.coords(e.target,true);
x=_46b.x+10;
y=_46b.y+10;
}
var self=this;
var _46d=dijit.getFocus(this);
function _46e(){
dijit.focus(_46d);
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:x,y:y,onExecute:_46e,onCancel:_46e,orient:this.isLeftToRight()?"L":"R"});
this.focus();
this._onBlur=function(){
this.inherited("_onBlur",arguments);
dijit.popup.close(this);
};
},uninitialize:function(){
dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.layout.StackController"]){
dojo._hasResource["dijit.layout.StackController"]=true;
dojo.provide("dijit.layout.StackController");
dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){
dijit.setWaiRole(this.domNode,"tablist");
this.pane2button={};
this.pane2handles={};
this.pane2menu={};
this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];
},onStartup:function(info){
dojo.forEach(info.children,this.onAddChild,this);
this.onSelectChild(info.selected);
},destroy:function(){
for(var pane in this.pane2button){
this.onRemoveChild(pane);
}
dojo.forEach(this._subscriptions,dojo.unsubscribe);
this.inherited(arguments);
},onAddChild:function(page,_472){
var _473=dojo.doc.createElement("span");
this.domNode.appendChild(_473);
var cls=dojo.getObject(this.buttonWidget);
var _475=new cls({label:page.title,closeButton:page.closable},_473);
this.addChild(_475,_472);
this.pane2button[page]=_475;
page.controlButton=_475;
var _476=[];
_476.push(dojo.connect(_475,"onClick",dojo.hitch(this,"onButtonClick",page)));
if(page.closable){
_476.push(dojo.connect(_475,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));
var _477=dojo.i18n.getLocalization("dijit","common");
var _478=new dijit.Menu({targetNodeIds:[_475.id],id:_475.id+"_Menu"});
var _479=new dijit.MenuItem({label:_477.itemClose});
_476.push(dojo.connect(_479,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));
_478.addChild(_479);
this.pane2menu[page]=_478;
}
this.pane2handles[page]=_476;
if(!this._currentChild){
_475.focusNode.setAttribute("tabIndex","0");
this._currentChild=page;
}
if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){
this._rectifyRtlTabList();
}
},onRemoveChild:function(page){
if(this._currentChild===page){
this._currentChild=null;
}
dojo.forEach(this.pane2handles[page],dojo.disconnect);
delete this.pane2handles[page];
var menu=this.pane2menu[page];
if(menu){
menu.destroyRecursive();
delete this.pane2menu[page];
}
var _47c=this.pane2button[page];
if(_47c){
_47c.destroy();
delete this.pane2button[page];
}
},onSelectChild:function(page){
if(!page){
return;
}
if(this._currentChild){
var _47e=this.pane2button[this._currentChild];
_47e.attr("checked",false);
_47e.focusNode.setAttribute("tabIndex","-1");
}
var _47f=this.pane2button[page];
_47f.attr("checked",true);
this._currentChild=page;
_47f.focusNode.setAttribute("tabIndex","0");
var _480=dijit.byId(this.containerId);
dijit.setWaiState(_480.containerNode,"labelledby",_47f.id);
},onButtonClick:function(page){
var _482=dijit.byId(this.containerId);
_482.selectChild(page);
},onCloseButtonClick:function(page){
var _484=dijit.byId(this.containerId);
_484.closeChild(page);
var b=this.pane2button[this._currentChild];
if(b){
dijit.focus(b.focusNode||b.domNode);
}
},adjacent:function(_486){
if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){
_486=!_486;
}
var _487=this.getChildren();
var _488=dojo.indexOf(_487,this.pane2button[this._currentChild]);
var _489=_486?1:_487.length-1;
return _487[(_488+_489)%_487.length];
},onkeypress:function(e){
if(this.disabled||e.altKey){
return;
}
var _48b=null;
if(e.ctrlKey||!e._djpage){
var k=dojo.keys;
switch(e.charOrCode){
case k.LEFT_ARROW:
case k.UP_ARROW:
if(!e._djpage){
_48b=false;
}
break;
case k.PAGE_UP:
if(e.ctrlKey){
_48b=false;
}
break;
case k.RIGHT_ARROW:
case k.DOWN_ARROW:
if(!e._djpage){
_48b=true;
}
break;
case k.PAGE_DOWN:
if(e.ctrlKey){
_48b=true;
}
break;
case k.DELETE:
if(this._currentChild.closable){
this.onCloseButtonClick(this._currentChild);
}
dojo.stopEvent(e);
break;
default:
if(e.ctrlKey){
if(e.charOrCode===k.TAB){
this.adjacent(!e.shiftKey).onClick();
dojo.stopEvent(e);
}else{
if(e.charOrCode=="w"){
if(this._currentChild.closable){
this.onCloseButtonClick(this._currentChild);
}
dojo.stopEvent(e);
}
}
}
}
if(_48b!==null){
this.adjacent(_48b).onClick();
dojo.stopEvent(e);
}
}
},onContainerKeyPress:function(info){
info.e._djpage=info.page;
this.onkeypress(info.e);
}});
dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){
dijit.setWaiRole((this.focusNode||this.domNode),"tab");
this.inherited(arguments);
},onClick:function(evt){
dijit.focus(this.focusNode);
},onClickCloseButton:function(evt){
evt.stopPropagation();
}});
}
if(!dojo._hasResource["dijit.layout.StackContainer"]){
dojo._hasResource["dijit.layout.StackContainer"]=true;
dojo.provide("dijit.layout.StackContainer");
dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",_started:false,postCreate:function(){
this.inherited(arguments);
dojo.addClass(this.domNode,"dijitLayoutContainer");
dijit.setWaiRole(this.containerNode,"tabpanel");
this.connect(this.domNode,"onkeypress",this._onKeyPress);
},startup:function(){
if(this._started){
return;
}
var _491=this.getChildren();
dojo.forEach(_491,this._setupChild,this);
if(this.persist){
this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));
}else{
dojo.some(_491,function(_492){
if(_492.selected){
this.selectedChildWidget=_492;
}
return _492.selected;
},this);
}
var _493=this.selectedChildWidget;
if(!_493&&_491[0]){
_493=this.selectedChildWidget=_491[0];
_493.selected=true;
}
dojo.publish(this.id+"-startup",[{children:_491,selected:_493}]);
if(_493){
this._showChild(_493);
}
this.inherited(arguments);
},_setupChild:function(_494){
this.inherited(arguments);
dojo.removeClass(_494.domNode,"dijitVisible");
dojo.addClass(_494.domNode,"dijitHidden");
_494.domNode.title="";
return _494;
},addChild:function(_495,_496){
this.inherited(arguments);
if(this._started){
dojo.publish(this.id+"-addChild",[_495,_496]);
this.layout();
if(!this.selectedChildWidget){
this.selectChild(_495);
}
}
},removeChild:function(page){
this.inherited(arguments);
if(this._beingDestroyed){
return;
}
if(this._started){
dojo.publish(this.id+"-removeChild",[page]);
this.layout();
}
if(this.selectedChildWidget===page){
this.selectedChildWidget=undefined;
if(this._started){
var _498=this.getChildren();
if(_498.length){
this.selectChild(_498[0]);
}
}
}
},selectChild:function(page){
page=dijit.byId(page);
if(this.selectedChildWidget!=page){
this._transition(page,this.selectedChildWidget);
this.selectedChildWidget=page;
dojo.publish(this.id+"-selectChild",[page]);
if(this.persist){
dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);
}
}
},_transition:function(_49a,_49b){
if(_49b){
this._hideChild(_49b);
}
this._showChild(_49a);
if(this.doLayout&&_49a.resize){
_49a.resize(this._containerContentBox||this._contentBox);
}
},_adjacent:function(_49c){
var _49d=this.getChildren();
var _49e=dojo.indexOf(_49d,this.selectedChildWidget);
_49e+=_49c?1:_49d.length-1;
return _49d[_49e%_49d.length];
},forward:function(){
this.selectChild(this._adjacent(true));
},back:function(){
this.selectChild(this._adjacent(false));
},_onKeyPress:function(e){
dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);
},layout:function(){
if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){
this.selectedChildWidget.resize(this._contentBox);
}
},_showChild:function(page){
var _4a1=this.getChildren();
page.isFirstChild=(page==_4a1[0]);
page.isLastChild=(page==_4a1[_4a1.length-1]);
page.selected=true;
dojo.removeClass(page.domNode,"dijitHidden");
dojo.addClass(page.domNode,"dijitVisible");
if(page._onShow){
page._onShow();
}else{
if(page.onShow){
page.onShow();
}
}
},_hideChild:function(page){
page.selected=false;
dojo.removeClass(page.domNode,"dijitVisible");
dojo.addClass(page.domNode,"dijitHidden");
if(page.onHide){
page.onHide();
}
},closeChild:function(page){
var _4a4=page.onClose(this,page);
if(_4a4){
this.removeChild(page);
page.destroyRecursive();
}
},destroy:function(){
this._beingDestroyed=true;
this.inherited(arguments);
}});
dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){
return true;
}});
}
if(!dojo._hasResource["dijit.layout.AccordionPane"]){
dojo._hasResource["dijit.layout.AccordionPane"]=true;
dojo.provide("dijit.layout.AccordionPane");
dojo.declare("dijit.layout.AccordionPane",dijit.layout.ContentPane,{constructor:function(){
dojo.deprecated("dijit.layout.AccordionPane deprecated, use ContentPane instead","","2.0");
},onSelected:function(){
}});
}
if(!dojo._hasResource["dijit.layout.AccordionContainer"]){
dojo._hasResource["dijit.layout.AccordionContainer"]=true;
dojo.provide("dijit.layout.AccordionContainer");
dojo.declare("dijit.layout.AccordionContainer",dijit.layout.StackContainer,{duration:dijit.defaultDuration,_verticalSpace:0,baseClass:"dijitAccordionContainer",postCreate:function(){
this.domNode.style.overflow="hidden";
this.inherited(arguments);
dijit.setWaiRole(this.domNode,"tablist");
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
if(this.selectedChildWidget){
var _4a5=this.selectedChildWidget.containerNode.style;
_4a5.display="";
_4a5.overflow="auto";
this.selectedChildWidget._buttonWidget._setSelectedState(true);
}
},_getTargetHeight:function(node){
var cs=dojo.getComputedStyle(node);
return Math.max(this._verticalSpace-dojo._getPadBorderExtents(node,cs).h,0);
},layout:function(){
var _4a8=this.selectedChildWidget;
var _4a9=0;
dojo.forEach(this.getChildren(),function(_4aa){
_4a9+=_4aa._buttonWidget.getTitleHeight();
});
var _4ab=this._contentBox;
this._verticalSpace=_4ab.h-_4a9;
this._containerContentBox={h:this._verticalSpace,w:_4ab.w};
if(_4a8){
_4a8.resize(this._containerContentBox);
}
},_setupChild:function(_4ac){
_4ac._buttonWidget=new dijit.layout._AccordionButton({contentWidget:_4ac,title:_4ac.title,id:_4ac.id+"_button",parent:this});
dojo.place(_4ac._buttonWidget.domNode,_4ac.domNode,"before");
this.inherited(arguments);
},removeChild:function(_4ad){
_4ad._buttonWidget.destroy();
this.inherited(arguments);
},getChildren:function(){
return dojo.filter(this.inherited(arguments),function(_4ae){
return _4ae.declaredClass!="dijit.layout._AccordionButton";
});
},destroy:function(){
dojo.forEach(this.getChildren(),function(_4af){
_4af._buttonWidget.destroy();
});
this.inherited(arguments);
},_transition:function(_4b0,_4b1){
if(this._inTransition){
return;
}
this._inTransition=true;
var _4b2=[];
var _4b3=this._verticalSpace;
if(_4b0){
_4b0._buttonWidget.setSelected(true);
this._showChild(_4b0);
if(this.doLayout&&_4b0.resize){
_4b0.resize(this._containerContentBox);
}
var _4b4=_4b0.domNode;
dojo.addClass(_4b4,"dijitVisible");
dojo.removeClass(_4b4,"dijitHidden");
var _4b5=_4b4.style.overflow;
_4b4.style.overflow="hidden";
_4b2.push(dojo.animateProperty({node:_4b4,duration:this.duration,properties:{height:{start:1,end:this._getTargetHeight(_4b4)}},onEnd:dojo.hitch(this,function(){
_4b4.style.overflow=_4b5;
delete this._inTransition;
})}));
}
if(_4b1){
_4b1._buttonWidget.setSelected(false);
var _4b6=_4b1.domNode,_4b7=_4b6.style.overflow;
_4b6.style.overflow="hidden";
_4b2.push(dojo.animateProperty({node:_4b6,duration:this.duration,properties:{height:{start:this._getTargetHeight(_4b6),end:1}},onEnd:function(){
dojo.addClass(_4b6,"dijitHidden");
dojo.removeClass(_4b6,"dijitVisible");
_4b6.style.overflow=_4b7;
if(_4b1.onHide){
_4b1.onHide();
}
}}));
}
dojo.fx.combine(_4b2).play();
},_onKeyPress:function(e,_4b9){
if(this._inTransition||this.disabled||e.altKey||!(_4b9||e.ctrlKey)){
if(this._inTransition){
dojo.stopEvent(e);
}
return;
}
var k=dojo.keys,c=e.charOrCode;
if((_4b9&&(c==k.LEFT_ARROW||c==k.UP_ARROW))||(e.ctrlKey&&c==k.PAGE_UP)){
this._adjacent(false)._buttonWidget._onTitleClick();
dojo.stopEvent(e);
}else{
if((_4b9&&(c==k.RIGHT_ARROW||c==k.DOWN_ARROW))||(e.ctrlKey&&(c==k.PAGE_DOWN||c==k.TAB))){
this._adjacent(true)._buttonWidget._onTitleClick();
dojo.stopEvent(e);
}
}
}});
dojo.declare("dijit.layout._AccordionButton",[dijit._Widget,dijit._Templated],{templateString:"<div dojoAttachPoint='titleNode,focusNode' dojoAttachEvent='ondijitclick:_onTitleClick,onkeypress:_onTitleKeyPress,onfocus:_handleFocus,onblur:_handleFocus,onmouseenter:_onTitleEnter,onmouseleave:_onTitleLeave'\n\t\tclass='dijitAccordionTitle' wairole=\"tab\" waiState=\"expanded-false\"\n\t\t><span class='dijitInline dijitAccordionArrow' waiRole=\"presentation\"></span\n\t\t><span class='arrowTextUp' waiRole=\"presentation\">+</span\n\t\t><span class='arrowTextDown' waiRole=\"presentation\">-</span\n\t\t><span waiRole=\"presentation\" dojoAttachPoint='titleTextNode' class='dijitAccordionText'></span>\n</div>\n",attributeMap:dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap),{title:{node:"titleTextNode",type:"innerHTML"}}),baseClass:"dijitAccordionTitle",getParent:function(){
return this.parent;
},postCreate:function(){
this.inherited(arguments);
dojo.setSelectable(this.domNode,false);
this.setSelected(this.selected);
var _4bc=dojo.attr(this.domNode,"id").replace(" ","_");
dojo.attr(this.titleTextNode,"id",_4bc+"_title");
dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));
},getTitleHeight:function(){
return dojo.marginBox(this.titleNode).h;
},_onTitleClick:function(){
var _4bd=this.getParent();
if(!_4bd._inTransition){
_4bd.selectChild(this.contentWidget);
dijit.focus(this.focusNode);
}
},_onTitleEnter:function(){
dojo.addClass(this.focusNode,"dijitAccordionTitle-hover");
},_onTitleLeave:function(){
dojo.removeClass(this.focusNode,"dijitAccordionTitle-hover");
},_onTitleKeyPress:function(evt){
return this.getParent()._onKeyPress(evt,this.contentWidget);
},_setSelectedState:function(_4bf){
this.selected=_4bf;
dojo[(_4bf?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");
dijit.setWaiState(this.focusNode,"expanded",_4bf);
dijit.setWaiState(this.focusNode,"selected",_4bf);
this.focusNode.setAttribute("tabIndex",_4bf?"0":"-1");
},_handleFocus:function(e){
dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionFocused");
},setSelected:function(_4c1){
this._setSelectedState(_4c1);
if(_4c1){
var cw=this.contentWidget;
if(cw.onSelected){
cw.onSelected();
}
}
}});
}
if(!dojo._hasResource["dijit.TitlePane"]){
dojo._hasResource["dijit.TitlePane"]=true;
dojo.provide("dijit.TitlePane");
dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated],{title:"",open:true,duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:"<div class=\"${baseClass}\">\n\t<div dojoAttachEvent=\"onclick:toggle, onkeypress:_onTitleKey, onfocus:_handleFocus, onblur:_handleFocus, onmouseenter:_onTitleEnter, onmouseleave:_onTitleLeave\" tabindex=\"0\"\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode,focusNode\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\n\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\n\t</div>\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n",attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"}}),postCreate:function(){
if(!this.open){
this.hideNode.style.display=this.wipeNode.style.display="none";
}
this._setCss();
dojo.setSelectable(this.titleNode,false);
dijit.setWaiState(this.containerNode,"labelledby",this.titleNode.id);
dijit.setWaiState(this.focusNode,"haspopup","true");
var _4c3=this.hideNode,_4c4=this.wipeNode;
this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){
_4c3.style.display="";
}});
this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){
_4c3.style.display="none";
}});
this.inherited(arguments);
},_setOpenAttr:function(open){
if(this.open!==open){
this.toggle();
}
},_setContentAttr:function(_4c6){
if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){
this.inherited(arguments);
}else{
if(this._wipeIn&&this._wipeIn.status()=="playing"){
this._wipeIn.stop();
}
dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});
this.inherited(arguments);
if(this._wipeIn){
this._wipeIn.play();
}else{
this.hideNode.style.display="";
}
}
},toggle:function(){
dojo.forEach([this._wipeIn,this._wipeOut],function(_4c7){
if(_4c7&&_4c7.status()=="playing"){
_4c7.stop();
}
});
var anim=this[this.open?"_wipeOut":"_wipeIn"];
if(anim){
anim.play();
}else{
this.hideNode.style.display=this.open?"":"none";
}
this.open=!this.open;
this._onShow();
this._setCss();
},_setCss:function(){
var _4c9=["dijitClosed","dijitOpen"];
var _4ca=this.open;
var node=this.titleBarNode||this.focusNode;
dojo.removeClass(node,_4c9[!_4ca+0]);
node.className+=" "+_4c9[_4ca+0];
this.arrowNodeInner.innerHTML=this.open?"-":"+";
},_onTitleKey:function(e){
if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){
this.toggle();
}else{
if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){
this.containerNode.focus();
e.preventDefault();
}
}
},_onTitleEnter:function(){
dojo.addClass(this.focusNode,"dijitTitlePaneTitle-hover");
},_onTitleLeave:function(){
dojo.removeClass(this.focusNode,"dijitTitlePaneTitle-hover");
},_handleFocus:function(e){
dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");
},setTitle:function(_4ce){
dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use attr('title', ...) instead.","","2.0");
this.titleNode.innerHTML=_4ce;
}});
}
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(_4cf){
if(_4cf.reset){
_4cf.reset();
}
});
},validate:function(){
var _4d0=false;
return dojo.every(dojo.map(this.getDescendants(),function(_4d1){
_4d1._hasBeenBlurred=true;
var _4d2=_4d1.disabled||!_4d1.validate||_4d1.validate();
if(!_4d2&&!_4d0){
dijit.scrollIntoView(_4d1.containerNode||_4d1.domNode);
_4d1.focus();
_4d0=true;
}
return _4d2;
}),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(_4d7){
if(!_4d7.name){
return;
}
var _4d8=map[_4d7.name]||(map[_4d7.name]=[]);
_4d8.push(_4d7);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _4da=map[name],_4db=dojo.getObject(name,false,obj);
if(_4db===undefined){
continue;
}
if(!dojo.isArray(_4db)){
_4db=[_4db];
}
if(typeof _4da[0].checked=="boolean"){
dojo.forEach(_4da,function(w,i){
w.attr("value",dojo.indexOf(_4db,w.value)!=-1);
});
}else{
if(_4da[0]._multiValue){
_4da[0].attr("value",_4db);
}else{
dojo.forEach(_4da,function(w,i){
w.attr("value",_4db[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(_4e1){
var name=_4e1.name;
if(!name||_4e1.disabled){
return;
}
var _4e3=_4e1.attr("value");
if(typeof _4e1.checked=="boolean"){
if(/Radio/.test(_4e1.declaredClass)){
if(_4e3!==false){
dojo.setObject(name,_4e3,obj);
}else{
_4e3=dojo.getObject(name,false,obj);
if(_4e3===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_4e3!==false){
ary.push(_4e3);
}
}
}else{
dojo.setObject(name,_4e3,obj);
}
});
return obj;
},isValid:function(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_4e5){
return !_4e5.disabled&&_4e5.isValid&&!_4e5.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function(_4e6){
},_widgetChange:function(_4e7){
var _4e8=this._lastValidState;
if(!_4e7||this._lastValidState===undefined){
_4e8=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_4e8;
}
}else{
if(_4e7.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_4e7);
},this);
if(!_4e7.isValid()&&!_4e7.attr("disabled")){
this._invalidWidgets.push(_4e7);
}
_4e8=(this._invalidWidgets.length===0);
}
}
if(_4e8!==this._lastValidState){
this._lastValidState=_4e8;
this.onValidStateChange(_4e8);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _4ea=this;
var _4eb=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_4ed){
_4eb.push(_4ea.connect(_4ed,"validate",dojo.hitch(_4ea,"_widgetChange",_4ed)));
_4eb.push(_4ea.connect(_4ed,"_setDisabledAttr",dojo.hitch(_4ea,"_widgetChange",_4ed)));
});
this._widgetChange(null);
},startup:function(){
this.inherited(arguments);
this._changeConnections=[];
this.connectChildren();
}});
}
if(!dojo._hasResource["dijit.form.Form"]){
dojo._hasResource["dijit.form.Form"]=true;
dojo.provide("dijit.form.Form");
dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${nameAttrSetting}></form>",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},execute:function(_4ee){
},onExecute:function(){
},_setEncTypeAttr:function(_4ef){
this.encType=_4ef;
dojo.attr(this.domNode,"encType",_4ef);
if(dojo.isIE){
this.domNode.encoding=_4ef;
}
},postCreate:function(){
if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){
var item=this.srcNodeRef.attributes.getNamedItem("encType");
if(item&&!item.specified&&(typeof item.value=="string")){
this.attr("encType",item.value);
}
}
this.inherited(arguments);
},onReset:function(e){
return true;
},_onReset:function(e){
var faux={returnValue:true,preventDefault:function(){
this.returnValue=false;
},stopPropagation:function(){
},currentTarget:e.currentTarget,target:e.target};
if(!(this.onReset(faux)===false)&&faux.returnValue){
this.reset();
}
dojo.stopEvent(e);
return false;
},_onSubmit:function(e){
var fp=dijit.form.Form.prototype;
if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){
dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");
this.onExecute();
this.execute(this.getValues());
}
if(this.onSubmit(e)===false){
dojo.stopEvent(e);
}
},onSubmit:function(e){
return this.isValid();
},submit:function(){
if(!(this.onSubmit()===false)){
this.containerNode.submit();
}
}});
}
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(_4f7,_4f8,_4f9){
if(this.aroundNode&&this.aroundNode===_4f8){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_4f7;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var _4fa={};
var ltr=this.isLeftToRight();
dojo.forEach((_4f9&&_4f9.length)?_4f9:dijit.Tooltip.defaultPosition,function(pos){
switch(pos){
case "after":
_4fa[ltr?"BR":"BL"]=ltr?"BL":"BR";
break;
case "before":
_4fa[ltr?"BL":"BR"]=ltr?"BR":"BL";
break;
case "below":
_4fa[ltr?"BL":"BR"]=ltr?"TL":"TR";
_4fa[ltr?"BR":"BL"]=ltr?"TR":"TL";
break;
case "above":
default:
_4fa[ltr?"TL":"TR"]=ltr?"BL":"BR";
_4fa[ltr?"TR":"TL"]=ltr?"BR":"BL";
break;
}
});
var pos=dijit.placeOnScreenAroundElement(this.domNode,_4f8,_4fa,dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_4f8;
},orient:function(node,_4ff,_500){
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"}[_4ff+"-"+_500];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_501){
if(this._onDeck&&this._onDeck[1]==_501){
this._onDeck=null;
}else{
if(this.aroundNode===_501){
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(_502,_503,_504){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_502,_503,_504);
};
dijit.hideTooltip=function(_505){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_505);
};
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(_509){
this.connect(node,_509.toLowerCase(),"_"+_509);
},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 _50f=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_50f);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_511){
_511=_511||this._connectNodes[0];
if(!_511){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_511,this.position);
this._connectNode=_511;
},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["g_widgets.layout.CachedAccordionPane"]){
dojo._hasResource["g_widgets.layout.CachedAccordionPane"]=true;
dojo.provide("g_widgets.layout.CachedAccordionPane");
dojo.declare("g_widgets.layout.CachedAccordionPane",[dijit.layout.AccordionPane],{setSelected:function(_512){
this._setSelectedState(_512);
if(_512){
this.onSelected();
this._loadCheck(this.refreshOnShow);
}
}});
}
if(!dojo._hasResource["g_widgets.MoreInfoPane"]){
dojo._hasResource["g_widgets.MoreInfoPane"]=true;
dojo.provide("g_widgets.MoreInfoPane");
dojo.declare("g_widgets.MoreInfoPane",[dijit.TitlePane],{expandedTitle:"",controlPaneTitleClass:"",controlPaneControlsClass:"",moreInfoContentClass:"",mouseOverTitleClass:"",templateString:"<div class=\"${baseClass}\">\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\n\t\t\t<div class=\"dijitTitlePaneContentInner ${moreInfoContentClass}\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\n\t<div class=\"moreInfoControlPane\">\n        <div dojoAttachPoint=\"controlPaneControls\" class=\"${controlPaneControlsClass}\" style=\"display: none\"></div>\n        \n        <div dojoAttachEvent=\"onclick:toggle,onkeypress: _onTitleKey,onfocus:_handleFocus,onblur:_handleFocus\" tabindex=\"0\"\n            waiRole=\"button\" class=\"dijitTitlePaneTitle ${controlPaneTitleClass}\" dojoAttachPoint=\"titleBarNode,focusNode\">\n            \n            <div dojoAttachPoint=\"arrowNode\" class=\"dijitInline dijitArrowNode\"><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span></div>\n            <div dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></div>\n        </div>\n    \n        <div class=\"moreInfoReset\" />\n    </div>\n</div>\n",postCreate:function(){
this.inherited(arguments);
var _513=this.controlPaneControls;
dojo.some(dojo.query("div",this.domNode),function(node){
if(dojo.attr(node,"name")=="controlPaneControls"){
_513.innerHTML=node.innerHTML;
dojo.style(_513,"display","block");
dojo.destroy(node);
return (true);
}
});
if(null!=this.mouseOverTitleClass&&this.mouseOverTitleClass.length>0){
dojo.connect(this.titleNode,"onmouseover",dojo.hitch(this,"_onMouseOver"));
dojo.connect(this.titleNode,"onmouseout",dojo.hitch(this,"_onMouseOut"));
}
},toggle:function(){
this.inherited(arguments);
if(this.open&&(null!=this.expandedTitle&&this.expandedTitle.length>0)){
this.setTitle(this.expandedTitle);
}else{
if(!this.open){
this.setTitle(this.title);
}
}
},_onMouseOver:function(){
dojo.addClass(this.titleNode,this.mouseOverTitleClass);
},_onMouseOut:function(){
dojo.removeClass(this.titleNode,this.mouseOverTitleClass);
}});
}
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(_515,_516,_517){
var _518;
if(_515!==undefined){
_518=this.filter(_515);
if(typeof _517!="string"){
if(_518!==null&&((typeof _518!="number")||!isNaN(_518))){
_517=this.filter(this.format(_518,this.constraints));
}else{
_517="";
}
}
}
if(_517!=null&&_517!=undefined&&((typeof _517)!="number"||!isNaN(_517))&&this.textbox.value!=_517){
this.textbox.value=_517;
}
this.inherited(arguments,[_518,_516]);
},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(_519){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");
this.attr("displayedValue",_519);
},_setDisplayedValueAttr:function(_51a){
if(_51a===null||_51a===undefined){
_51a="";
}else{
if(typeof _51a!="string"){
_51a=String(_51a);
}
}
this.textbox.value=_51a;
this._setValueAttr(this.attr("value"),undefined,_51a);
},format:function(_51b,_51c){
return ((_51b==null||_51b==undefined)?"":(_51b.toString?_51b.toString():_51b));
},parse:function(_51d,_51e){
return _51d;
},_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 _520=this;
setTimeout(function(){
_520._handleOnChange(_520.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(_525,_526,stop){
var _528=dojo.global;
var _529=dojo.doc;
_525=dojo.byId(_525);
if(isNaN(_526)){
_526=0;
}
if(isNaN(stop)){
stop=_525.value?_525.value.length:0;
}
_525.focus();
if(_529["selection"]&&dojo.body()["createTextRange"]){
if(_525.createTextRange){
var _52a=_525.createTextRange();
with(_52a){
collapse(true);
moveStart("character",_526);
moveEnd("character",stop);
select();
}
}
}else{
if(_528["getSelection"]){
var _52b=_528.getSelection();
if(_525.setSelectionRange){
_525.setSelectionRange(_526,stop);
}
}
}
};
}
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(_52c){
return this.regExp;
},state:"",tooltipPosition:[],_setValueAttr:function(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function(_52d,_52e){
return (new RegExp("^(?:"+this.regExpGen(_52e)+")"+(this.required?"":"?")+"$")).test(_52d)&&(!this.required||!this._isEmpty(_52d))&&(this._isEmpty(_52d)||this.parse(_52d,_52e)!==undefined);
},_isValidSubset:function(){
return this.textbox.value.search(this._partialre)==0;
},isValid:function(_52f){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function(_530){
return /^\s*$/.test(_530);
},getErrorMessage:function(_531){
return this.invalidMessage;
},getPromptMessage:function(_532){
return this.promptMessage;
},_maskValidSubsetError:true,validate:function(_533){
var _534="";
var _535=this.disabled||this.isValid(_533);
if(_535){
this._maskValidSubsetError=true;
}
var _536=!_535&&_533&&this._isValidSubset();
var _537=this._isEmpty(this.textbox.value);
this.state=(_535||(!this._hasBeenBlurred&&_537)||_536)?"":"Error";
if(this.state=="Error"){
this._maskValidSubsetError=false;
}
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_535?"false":"true");
if(_533){
if(_537){
_534=this.getPromptMessage(true);
}
if(!_534&&(this.state=="Error"||(_536&&!this._maskValidSubsetError))){
_534=this.getErrorMessage(true);
}
}
this.displayMessage(_534);
return _535;
},_message:"",displayMessage:function(_538){
if(this._message==_538){
return;
}
this._message=_538;
dijit.hideTooltip(this.domNode);
if(_538){
dijit.showTooltip(_538,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 _53a="";
if(p!=".*"){
this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){
switch(re.charAt(0)){
case "{":
case "+":
case "?":
case "*":
case "^":
case "$":
case "|":
case "(":
_53a+=re;
break;
case ")":
_53a+="|$)";
break;
default:
_53a+="(?:"+re+"|$)";
break;
}
});
}
try{
"".search(_53a);
}
catch(e){
_53a=this.regExp;
console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);
}
this._partialre="^(?:"+_53a+")$";
},_setDisabledAttr:function(_53c){
this.inherited(arguments);
if(this.valueNode){
this.valueNode.disabled=_53c;
}
this._refreshState();
},_setRequiredAttr:function(_53d){
this.required=_53d;
dijit.setWaiState(this.focusNode,"required",_53d);
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,_541){
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(_543){
this.inherited(arguments);
dojo.attr(this.valueNode,"disabled",_543);
},reset:function(){
this.valueNode.value="";
this.inherited(arguments);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_544,_545){
var _546="min" in _545;
var _547="max" in _545;
if(_546||_547){
return (!_546||this.compare(_544,_545.min)>=0)&&(!_547||this.compare(_544,_545.max)<=0);
}
return true;
},isInRange:function(_548){
return this.rangeCheck(this.attr("value"),this.constraints);
},_isDefinitelyOutOfRange:function(){
var val=this.attr("value");
var _54a=false;
var _54b=false;
if("min" in this.constraints){
var min=this.constraints.min;
val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);
_54a=(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);
_54b=(typeof val=="number")&&val>0;
}
return _54a||_54b;
},_isValidSubset:function(){
return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();
},isValid:function(_54e){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_54e));
},getErrorMessage:function(_54f){
if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_54f)){
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(_550,_551){
dijit.setWaiState(this.focusNode,"valuenow",_550);
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(_552){
_552=_552||{};
if(!_552.store){
_552.store=this;
}
var self=this;
var _554=function(_555,_556){
if(_556.onError){
var _557=_556.scope||dojo.global;
_556.onError.call(_557,_555,_556);
}
};
var _558=function(_559,_55a){
var _55b=_55a.abort||null;
var _55c=false;
var _55d=_55a.start?_55a.start:0;
var _55e=(_55a.count&&(_55a.count!==Infinity))?(_55d+_55a.count):_559.length;
_55a.abort=function(){
_55c=true;
if(_55b){
_55b.call(_55a);
}
};
var _55f=_55a.scope||dojo.global;
if(!_55a.store){
_55a.store=self;
}
if(_55a.onBegin){
_55a.onBegin.call(_55f,_559.length,_55a);
}
if(_55a.sort){
_559.sort(dojo.data.util.sorter.createSortFunction(_55a.sort,self));
}
if(_55a.onItem){
for(var i=_55d;(i<_559.length)&&(i<_55e);++i){
var item=_559[i];
if(!_55c){
_55a.onItem.call(_55f,item,_55a);
}
}
}
if(_55a.onComplete&&!_55c){
var _562=null;
if(!_55a.onItem){
_562=_559.slice(_55d,_55e);
}
_55a.onComplete.call(_55f,_562,_55a);
}
};
this._fetchItems(_552,_558,_554);
return _552;
};
}
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(_563,_564){
var rxp="^";
var c=null;
for(var i=0;i<_563.length;i++){
c=_563.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_563.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(_564){
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(_568){
var pos=0;
if(typeof (_568.selectionStart)=="number"){
pos=_568.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_568.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(_56c,_56d){
_56d=parseInt(_56d);
dijit.selectInputText(_56c,_56d,_56d);
},_setDisabledAttr:function(_56e){
this.inherited(arguments);
dijit.setWaiState(this.comboNode,"disabled",_56e);
},_onKeyPress:function(evt){
var key=evt.charOrCode;
if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){
return;
}
var _571=false;
var pw=this._popupWidget;
var dk=dojo.keys;
var _574=null;
if(this._isShowingNow){
pw.handleKey(key);
_574=pw.getHighlightedOption();
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow||this._prev_key_esc){
this._arrowPressed();
_571=true;
}else{
if(_574){
this._announceOption(_574);
}
}
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(_574);
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.ENTER:
if(_574){
if(_574==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_574==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this._setDisplayedValueAttr(this.attr("displayedValue"),true);
}
evt.preventDefault();
case dk.TAB:
var _575=this.attr("displayedValue");
if(pw&&(_575==pw._messages["previousMessage"]||_575==pw._messages["nextMessage"])){
break;
}
if(this._isShowingNow){
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(_574){
pw.attr("value",{target:_574});
}
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(_574){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_571=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;
_571=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;
_571=typeof key=="string";
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_571){
setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);
}
},_autoCompleteText:function(text){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _578=this.ignoreCase?"toLowerCase":"substr";
if(text[_578](0).indexOf(this.focusNode.value[_578](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(_57a,_57b){
if(this.disabled||this.readOnly||(_57b.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_57a.length){
this._hideResultList();
return;
}
this.item=null;
var _57c=new String(this.store.getValue(_57a[0],this.searchAttr));
if(_57c&&this.autoComplete&&!this._prev_key_backspace&&(_57b.query[this.searchAttr]!="*")){
this.item=_57a[0];
this._autoCompleteText(_57c);
}
_57b._maxOptions=this._maxOptions;
this._popupWidget.createOptions(_57a,_57b,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_57b.direction){
if(1==_57b.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_57b.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
},_showResultList:function(){
this._hideResultList();
var _57d=this._popupWidget.getItems(),_57e=Math.min(_57d.length,this.maxListLength);
this._arrowPressed();
this.displayMessage("");
dojo.style(this._popupWidget.domNode,{width:"",height:""});
var best=this.open();
var _580=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_580.h)&&(best.w==_580.w))?"hidden":"auto";
var _581=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_581+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_581,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 _582=this.attr("displayedValue");
var pw=this._popupWidget;
if(pw&&(_582==pw._messages["previousMessage"]||_582==pw._messages["nextMessage"])){
this._setValueAttr(this._lastValueReported,true);
}else{
this.attr("displayedValue",_582);
}
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_announceOption:function(node){
if(node==null){
return;
}
var _585;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_585=node.innerHTML;
}else{
_585=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(_585);
},_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 _58c=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_58c});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_58c);
}
this.item=null;
var _58d=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_58d[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_58e,_58f){
var _590={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_58e,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_591){
console.error("dijit.form.ComboBox: "+_591);
dojo.hitch(_58f,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_590,_58f.fetchProperties);
var _592=_58f.store.fetch(_590);
var _593=function(_594,_595){
_594.start+=_594.count*_595;
_594.direction=_595;
this.store.fetch(_594);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_593,_592);
},_58d,this),this.searchDelay);
},_setMaxOptions:function(size,_597){
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 _599=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_599);
if(!this.value||((typeof _599.selectedIndex=="number")&&_599.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 _59b=dojo.query("label[for=\""+this.id+"\"]");
if(_59b.length){
_59b[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_59b[0].id);
}
this.inherited(arguments);
},uninitialize:function(){
if(this._popupWidget){
this._hideResultList();
this._popupWidget.destroy();
}
},_getMenuLabelFromItem:function(item){
var _59e=this.store.getValue(item,this.labelAttr||this.searchAttr);
var _59f=this.labelType;
if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){
_59e=this.doHighlight(_59e,this._escapeHtml(this._lastInput));
_59f="html";
}
return {html:_59f=="html",label:_59e};
},doHighlight:function(_5a0,find){
var _5a2="i"+(this.highlightMatch=="all"?"g":"");
var _5a3=this._escapeHtml(_5a0);
find=dojo.regexp.escapeString(find);
var ret=_5a3.replace(new RegExp("(^|\\s)("+find+")",_5a2),"$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(_5a6){
this.value=_5a6;
this.onChange(_5a6);
},onChange:function(_5a7){
},onPage:function(_5a8){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited(arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(item,_5aa){
var _5ab=_5aa(item);
var _5ac=dojo.doc.createElement("li");
dijit.setWaiRole(_5ac,"option");
if(_5ab.html){
_5ac.innerHTML=_5ab.label;
}else{
_5ac.appendChild(dojo.doc.createTextNode(_5ab.label));
}
if(_5ac.innerHTML==""){
_5ac.innerHTML="&nbsp;";
}
_5ac.item=item;
return _5ac;
},createOptions:function(_5ad,_5ae,_5af){
this.previousButton.style.display=(_5ae.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_5ad,function(item,i){
var _5b2=this._createOption(item,_5af);
_5b2.className="dijitReset dijitMenuItem";
dojo.attr(_5b2,"id",this.id+i);
this.domNode.insertBefore(_5b2,this.nextButton);
},this);
var _5b3=false;
if(_5ae._maxOptions&&_5ae._maxOptions!=-1){
if((_5ae.start+_5ae.count)<_5ae._maxOptions){
_5b3=true;
}else{
if((_5ae.start+_5ae.count)>(_5ae._maxOptions-1)){
if(_5ae.count==_5ad.length){
_5b3=true;
}
}
}
}else{
if(_5ae.count==_5ad.length){
_5b3=true;
}
}
this.nextButton.style.display=_5b3?"":"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 _5c0=0;
var _5c1=this.domNode.scrollTop;
var _5c2=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_5c0<_5c2){
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 _5c3=this.domNode.scrollTop;
_5c0+=(_5c3-_5c1)*(up?-1:1);
_5c1=_5c3;
}
},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(_5c6,_5c7){
if(!_5c6){
_5c6="";
}
dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_5c6,_5c7);
}});
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,_5cb,_5cc){
return (_5cb=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function(_5cd){
return true;
},getFeatures:function(){
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
},_fetchItems:function(args,_5cf,_5d0){
if(!args.query){
args.query={};
}
if(!args.query.name){
args.query.name="";
}
if(!args.queryOptions){
args.queryOptions={};
}
var _5d1=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_5d2=dojo.query("> option",this.root).filter(function(_5d3){
return (_5d3.innerText||_5d3.textContent||"").match(_5d1);
});
if(args.sort){
_5d2.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));
}
_5cf(_5d2,args);
},close:function(_5d4){
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 _5dd=this.store.getValue(tgt.item,this.searchAttr);
_5dd=_5dd.replace(/&#(\d+);/g,function(){
return String.fromCharCode(arguments[1]);
});
this.setValue(_5dd,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 _5de=dojo.byId(this.formId);
_5de.onsubmit();
}else{
console.error("dijit.form.LinksComboBox: formId is not set on widget");
}
}
}});
}
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 _5f8=n.scrollLeft,_5f9=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_5f8!=n.scrollLeft||_5f9!=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(node,e,host){
this.node=dojo.byId(node);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=host,d=node.ownerDocument,_5ff=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),_5ff];
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(node,_60e){
this.node=dojo.byId(node);
if(!_60e){
_60e={};
}
this.handle=_60e.handle?dojo.byId(_60e.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_60e.delay>0?_60e.delay:0;
this.skip=_60e.skip;
this.mover=_60e.mover?_60e.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(_60f,node){
return new dojo.dnd.Moveable(node,_60f);
},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(_617){
dojo.publish("/dnd/move/start",[_617]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_618){
dojo.publish("/dnd/move/stop",[_618]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_619){
},onMove:function(_61a,_61b){
this.onMoving(_61a,_61b);
var s=_61a.node.style;
s.left=_61b.l+"px";
s.top=_61b.t+"px";
this.onMoved(_61a,_61b);
},onMoving:function(_61d,_61e){
},onMoved:function(_61f,_620){
}});
}
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(_621,node){
return new dojo.dnd.move.constrainedMoveable(node,_621);
},constructor:function(node,_624){
if(!_624){
_624={};
}
this.constraints=_624.constraints;
this.within=_624.within;
},onFirstMove:function(_625){
var c=this.constraintBox=this.constraints.call(this,_625);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_625.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_628,_629){
var c=this.constraintBox,s=_628.node.style;
s.left=(_629.l<c.l?c.l:c.r<_629.l?c.r:_629.l)+"px";
s.top=(_629.t<c.t?c.t:c.b<_629.t?c.b:_629.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_62c,node){
return new dojo.dnd.move.boxConstrainedMoveable(node,_62c);
},constructor:function(node,_62f){
var box=_62f&&_62f.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_631,node){
return new dojo.dnd.move.parentConstrainedMoveable(node,_631);
},constructor:function(node,_634){
var area=_634&&_634.area;
this.constraints=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(area=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(area=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(area=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
}});
dojo.dnd.move.constrainedMover=function(fun,_63b){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _63c=function(node,e,_63f){
dojo.dnd.Mover.call(this,node,e,_63f);
};
dojo.extend(_63c,dojo.dnd.Mover.prototype);
dojo.extend(_63c,{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(_63b){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _63c;
};
dojo.dnd.move.boxConstrainedMover=function(box,_648){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_648);
};
dojo.dnd.move.parentConstrainedMover=function(area,_64a){
dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");
var fun=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(area=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(area=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(area=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
return dojo.dnd.move.constrainedMover(fun,_64a);
};
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 _650=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_652){
if(!_652){
_652={};
}
if(_652.timeout&&typeof _652.timeout=="number"&&_652.timeout>=0){
this.timeout=_652.timeout;
}
},markupFactory:function(_653,node){
return new dojo.dnd.TimedMoveable(node,_653);
},onMoveStop:function(_655){
if(_655._timer){
clearTimeout(_655._timer);
_650.call(this,_655,_655._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_656,_657){
_656._leftTop=_657;
if(!_656._timer){
var _t=this;
_656._timer=setTimeout(function(){
_656._timer=null;
_650.call(_t,_656,_656._leftTop);
},this.timeout);
}
}});
})();
}
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(_659){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function(_65a){
var _65b=dijit._getTabNavigable(dojo.byId(_65a));
this._firstFocusItem=_65b.lowest||_65b.first||_65a;
this._lastFocusItem=_65b.last||_65b.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_65a,"tabindex","0");
this._firstFocusItem=_65a;
}
}});
}
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(_65d){
this.node.className="dijitDialogUnderlay "+_65d;
},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 _660=dijit.getViewport();
os.top=_660.t+"px";
os.left=_660.l+"px";
is.width=_660.w+"px";
is.height=_660.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.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,_662,_663){
var c=this._currentOrientClass;
if(c){
dojo.removeClass(this.domNode,c);
}
c="dijitTooltipAB"+(_663.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_663.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 _669=(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(!_669){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_669){
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 _66a=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_66a);
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 _66f={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
var _671=dijit._underlay;
if(!_671){
_671=dijit._underlay=new dijit.DialogUnderlay(_66f);
}
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){
_671.attr(_66f);
_671.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 _672=false;
if(this._fadeIn&&this._fadeIn.status()=="playing"){
_672=true;
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
_672=true;
this._fadeOut.stop();
}
if(this.open||_672){
dijit._underlay.hide();
}
if(this._moveable){
this._moveable.destroy();
}
},_size:function(){
var mb=dojo.marginBox(this.domNode);
var _674=dijit.getViewport();
if(mb.w>=_674.w||mb.h>=_674.h){
dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_674.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_674.h*0.75))+"px",overflow:"auto",position:"relative"});
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _676=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_676.l+(p?p.l:(_676.w-mb.w)/2))+"px",top:Math.floor(_676.t+(p?p.t:(_676.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 _67c=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_67c){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_67c){
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 _67d=dijit.getViewport();
if(!this._oldViewport||_67d.h!=this._oldViewport.h||_67d.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_67d;
}
}));
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["g_widgets.DualDialog"]){
dojo._hasResource["g_widgets.DualDialog"]=true;
dojo.provide("g_widgets.DualDialog");
dojo.declare("g_widgets.DualDialog",[dijit.Dialog],{executeScript:"true",refreshFromMeta:"true",isModal:"true",displayTitleBar:"true",_getScripts:function(){
var str=this.containerNode.innerHTML;
var _67f=[];
var _680=this._getScript(str);
var i=0;
while(_680.length>0){
_67f[i++]=_680[0];
_680=this._getScript(_680[1]);
}
return _67f;
},_getScript:function(str){
var _683=[];
if(str==null||dojo.string.trim(str).length==0){
return _683;
}
var idx=str.toLowerCase().indexOf("<script");
if(idx<0){
return _683;
}
str=str.substring(idx);
str=str.substring(str.indexOf(">")+1);
_683[0]=str.substring(0,str.toLowerCase().indexOf("</script"));
_683[1]=str.substring(str.toLowerCase().indexOf("</script")+"</script".length+1);
return _683;
},_executeScript:function(){
if(this.executeScript!="true"){
return;
}
var _685=this._getScripts();
for(var i=0;i<_685.length;i++){
if(_685[i]!=null&&dojo.string.trim(_685[i]).length!=0){
eval(_685[i]);
}
}
},_checkRefreshMeta:function(){
if(this.refreshFromMeta!="true"){
return;
}
var _687=this.containerNode.innerHTML;
if(_687!=null&&_687.indexOf("<meta")>=0&&_687.indexOf("http-equiv")>=0&&_687.indexOf("refresh")>=0){
var meta=this.containerNode.getElementsByTagName("meta");
for(var i=0;i<meta.length;i++){
var _68a=this._getAttributeValue(meta[i],"content");
if(_68a!=""){
var tmp=_68a.split(";");
var _68c=tmp[0];
var url=tmp[1];
window.location.href=url.substring(url.indexOf("=")+1);
}
}
}
},_getAttributeValue:function(_68e,_68f){
var _690=_68e.attributes;
for(var j=0;j<_690.length;j++){
if(_690[j].name==_68f){
return _690[j].value;
}
}
return "";
},show:function(){
this.duration=300;
this.inherited("show",arguments);
if(this.isModal!="true"){
dijit._underlay.hide();
window.onscroll=this._win_onscroll;
}
if(this.displayTitleBar!="true"){
this.hideTitleBar();
}
},_win_onscroll:function(){
dijit._underlay.hide();
},onDownloadEnd:function(){
this._executeScript();
this._checkRefreshMeta();
this.afterLoad();
},afterLoad:function(){
},setTitle:function(_692){
this.titleNode.innerHTML=_692||"";
},hideTitleBar:function(){
this.titleBar.style.display="none";
},showTitleBar:function(){
this.titleBar.style.display="block";
},setsTitleBar:function(_693){
this.titleBar.innerHTML=_693||"";
}});
}
if(!dojo._hasResource["g_widgets.layout.ToggledAccordionContainer"]){
dojo._hasResource["g_widgets.layout.ToggledAccordionContainer"]=true;
dojo.provide("g_widgets.layout.ToggledAccordionContainer");
dojo.declare("g_widgets.layout.ToggledAccordionContainer",[dijit.layout.AccordionContainer],{selectChild:function(_694){
_694=dijit.byId(_694);
if(this.selectedChildWidget==_694){
this.forward();
}else{
this.inherited(arguments);
}
}});
}
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 _695=["MSXML2","Microsoft","MSXML","MSXML3"];
var o,o2;
for(var i=0;i<_695.length;i++){
try{
o=new ActiveXObject(_695[i]+".XmlHttp");
o2=new ActiveXObject(_695[i]+".XmlDom");
return getControlPrefix.prefix=_695[i];
}
catch(ex){
}
}
throw new Error("Could not find an installed XML parser");
};
activeXCheck();
function openPromoWindow(_699,_69a){
var _69b=(document.cookie.indexOf(_69a)==-1);
var _69c=document.cookie.indexOf(_69a+"viewed=");
if(_69b&&(_69c==-1)){
var _69d=window.open(_699,"SitePromotions","noresizable,noscrollbars,screenX=100, screenY=100,width=310,height=230");
_69d.moveTo(100,100);
}
};
function detectIframeAdobe(_69e,_69f,_6a0){
var _6a1=createCatalogUrlString(_69e,_69f,_6a0);
window.location=_6a1;
};
function createCatalogUrlString(_6a2,_6a3,_6a4){
var _6a5,_6a6=false;
var _6a7=false;
if(is_iframe_compliant){
_6a6=detectAdobe();
}
var _6a8="?browserCompatable="+is_iframe_compliant+"&adobeCompatable="+_6a6;
if(detectAdobe(true)){
_6a7=true;
}
_6a8=_6a8+"&toolbar="+_6a7;
if(_6a2!=null&&_6a2!=""){
_6a8=_6a8+"&CatPage="+_6a2;
}
if(_6a3==null||_6a3==""){
_6a5="viewCatalogPDF.shtml"+_6a8;
var _6a9=window.location.pathname;
var _6aa=_6a9.indexOf("/cgi-bin/");
if(_6a9.indexOf("wwg")==-1){
if(_6aa==-1){
_6a5="/Grainger/wwg/"+_6a5;
}else{
var _6ab=_6a9.indexOf("/",9);
var _6ac=_6a9.substring(_6aa,_6ab);
_6a5=_6ac+"/wwg/"+_6a5;
}
}
}else{
_6a5=_6a3+_6a8;
}
if(_6a4){
_6a5="/Grainger/"+_6a5;
}
return _6a5;
};
function iframeRefresh(_6ad){
if(detectAdobe(true)){
parent.location.reload();
if(_6ad!=null){
alert("Please click OK to view the Help Pop-up Window.");
openIt(_6ad);
}
}
};
function showPopup(url,_6af,_6b0){
var _6b1=window.open(url,"childwin","width="+_6af+",height="+_6b0+",menubar=no,scrollbars,status=no");
iframeRefresh(_6b1);
};
function popUpPositionWidth(_6b2){
var _6b3=(_6b2)/2;
var xMax=screen.width;
var _6b5=((xMax)/2)-_6b3;
return _6b5;
};
function popUpPositionHeight(_6b6){
var _6b7=(_6b6)/2;
yMax=screen.height;
yOffset=((yMax)/2)-_6b7;
return yOffset;
};
function popWin(url,_6b9,_6ba,_6bb,_6bc,_6bd,menu,_6bf,_6c0,_6c1){
if(_6b9==null||_6b9==""){
_6b9=400;
}
if(_6ba==null||_6ba==""){
_6ba=400;
}
if(_6bc==null||_6bc==""){
_6bc="no";
}
if(_6bd==null||_6bd==""){
_6bd="no";
}
if(menu==null||menu==""){
menu="no";
}
if(_6bf==null||_6bf==""){
_6bf="no";
}
if(_6c0==null||_6c0==""){
_6c0="no";
}
if(_6c1==null||_6c1==""){
_6c1="childwin";
}
goBack(_6bb);
if(window.location.pathname.indexOf("PDF")==-1){
popupwindow=window.open(url,_6c1,"width="+_6b9+",height="+_6ba+",menubar="+menu+",scrollbars,status="+_6c0+",toolbar="+_6bc+",location="+_6bd+",resizable="+_6bf);
if(_6c1=="mastersetWindow"){
moveX=0;
moveY=0;
if(is_firefox){
moveY=500;
}
openIt(popupwindow,moveX,moveY);
}else{
openIt(popupwindow);
}
}else{
showPopup(url,_6b9,_6ba);
}
};
function popWinSurvey(url,_6c3){
goBack(_6c3);
popupwindow=window.open(url,"childwin","menubar=no,scrollbars,status=no");
openIt(popupwindow);
};
function openIt(_6c4,_6c5,_6c6){
_6c4.focus();
if(!_6c4.opener){
_6c4.opener=window;
}
if((_6c5!=null)&&(_6c6!=null)){
_6c4.moveTo(_6c5,_6c6);
}
};
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 _6cb=obj.value;
_6cb=_6cb.replace(/^\s+/,"").replace(/\s+$/,"");
if((_6cb==null)||(_6cb=="")){
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 _6ce=/^[0-9]*$/;
if(_6ce.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(_6cf,_6d0){
if((_6d0.value.replace(/^(\s)+$/,"")==""||_6d0.value.toUpperCase()=="ITEM #")){
return true;
}else{
return false;
}
};
function isValidItemRow(_6d1,_6d2){
if(isValidQuantity(_6d1)){
if(_6d2.value.toUpperCase()=="ITEM #"||_6d2.value.replace(/^(\s)+$/,"")==""){
alert("Please enter an item number.");
unlocksubmit();
_6d2.focus();
}else{
if(_6d1.value=="Qty"){
_6d1.value="";
}
return true;
}
}else{
_6d1.focus();
}
return false;
};
function validateSearchQuery(_6d3){
return (!isNullSearch(_6d3));
};
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(_6d5){
if(!document.getElementById){
return document.all[_6d5];
}else{
return document.getElementById(_6d5);
}
};
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,_6d9,days){
if(days){
var date=new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var _6dc="; expires="+date.toGMTString();
}else{
var _6dc="";
}
document.cookie=name+"="+_6d9+_6dc+"; path=/";
};
function readCookie(name){
var _6de=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(_6de)==0){
return c.substring(_6de.length,c.length);
}
}
return null;
};
function eraseCookie(name){
createCookie(name,"",-1);
};
function elipsis(_6e3,_6e4){
if(_6e3&&_6e4){
_6e4=parseInt(_6e4);
var _6e5;
if(_6e3.length>_6e4){
_6e5="<span title=\""+_6e3+"\">"+_6e3.substring(0,_6e4-4)+"&nbsp;...</span>";
}else{
_6e5=_6e3;
}
return _6e5;
}
return _6e3;
};
function decodeUrlChars(_6e6){
return _6e6.replace(/%22/g,"\"").replace(/%27/g,"'");
};
var cookiesEnabled=true;
function cookieCheck(){
var _6e7=new Date();
_6e7.setFullYear(_6e7.getFullYear()+1);
document.cookie="cookies=true; expires="+_6e7.toGMTString()+"; path=/";
document.cookie="grainger=true; path=/";
var _6e8=!(document.cookie.indexOf("grainger=")==-1);
var _6e9=!(document.cookie.indexOf("cookies=")==-1);
if(!_6e8||!_6e9){
cookiesEnabled=false;
}
};
cookieCheck();
function alternateTableRows(_6ea){
if(document.getElementsByTagName){
var _6eb=document.getElementById(_6ea);
var rows=_6eb.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 _6ee=new RegExp("(https*://.*?/(Grainger|gcom_a[0-9]+|cgi-bin/gcom_a[0-9]+))/.*");
return (uri.replace(_6ee,"$1"));
};
function callCmSetProduction(){
if(window.location.href.indexOf("www.grainger.com")>-1){
cmSetProduction();
}
};
function replaceMissingImage(_6ef,_6f0){
_6ef.src=_6f0;
_6ef.onerror="";
return true;
};
function loadJavaScript(_6f1){
var _6f2=document.getElementsByTagName("head").item(0);
var js=document.createElement("script");
js.setAttribute("language","javascript");
js.setAttribute("type","text/javascript");
js.setAttribute("src",_6f1);
if(_6f1.indexOf("dojo.js")>=0){
js.setAttribute("djConfig","parseOnLoad: true");
}
_6f2.appendChild(js);
};
function loadCSS(_6f4){
var _6f5=document.getElementsByTagName("head").item(0);
var css1=document.createElement("link");
css1.setAttribute("rel","stylesheet");
css1.setAttribute("type","text/css");
css1.setAttribute("href",_6f4);
_6f5.appendChild(css1);
};
function submitEnter(_6f7){
var _6f8;
if(window.event){
_6f8=window.event.keyCode;
}else{
if(_6f7){
_6f8=_6f7.which;
}else{
return true;
}
}
if(_6f8==13){
document.signinForm.submit();
return false;
}else{
return true;
}
};
function enterKeyPressed(_6f9){
var _6fa;
if(window.event){
_6fa=window.event.keyCode;
}else{
if(_6f9){
_6fa=_6f9.which;
}else{
return false;
}
}
if(_6fa==13){
return true;
}else{
return false;
}
};
function showSignIn(){
var _6fb=readCookie("ActiveXEnabled");
if(_6fb=="false"){
window.location=getBaseApplicationURL()+"/wwg/loginOrRegister.shtml";
}
var _6fc;
if(window.location.href.indexOf("viewCatalogPDF.shtml")>-1){
_6fc="56px";
}else{
_6fc="150px";
}
dojo.extend(dijit.Dialog,{_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _6fe=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_6fe.l+(p?p.l:(_6fe.w-mb.w)/2))+"px",top:_6fc});
}
}});
var _701=dijit.byId("signin");
_701.show();
var _702=dojo.byId("loginSubmit");
if(_702!=null){
_702.onclick=function(){
_702.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 _705=window.location.search.substring(1);
var vars=_705.split("&");
for(var i=0;i<vars.length;i++){
var _708=vars[i].split("=");
if(_708[0]==key){
return _708[1];
}
}
return "";
};
function searchTypeChange(obj){
if(dojo.byId("mixedviewSearchType").value!=obj.value){
dojo.byId("mixedviewSearchType").value=obj.value;
var _70a="";
var _70b="";
if(window.location.href.indexOf("homepage.jsp")!=-1){
_70a="homepage.jsp";
_70b="?searchType="+obj.value;
}else{
if(window.location.href.indexOf("start.shtml")!=-1){
_70a="start.shtml";
_70b="?searchType="+obj.value;
}else{
if(window.location.href.indexOf("search.shtml")!=-1){
_70a="search.shtml";
_70b="?op=search&searchType="+obj.value;
}else{
if(window.location.href.indexOf("/ecatalog/")!=-1){
_70a="/ecatalog/";
_70b="N-?op=search&searchType="+obj.value;
}
}
}
}
if(_70b!=""){
var idx=window.location.href.indexOf(_70a);
window.location.href=window.location.href.substr(0,idx+_70a.length)+_70b;
}
}
};
var containsElement=function(arr,ele){
var _70f=false,_710=0;
while(!_70f&&_710<arr.length){
if(arr[_710]==ele){
_70f=true;
}else{
_710++;
}
}
return _70f;
};
var autoCursor=function(_711,len,e){
var _714=(is_nav)?e.which:e.keyCode;
var _715=(is_nav)?[0,8,9]:[0,8,9,16,17,18,37,38,39,40,46];
if(_711.value.length>=len&&!containsElement(_715,_714)){
_711.value=_711.value.slice(0,len);
var _716=getIndex(_711);
for(var i=(_716+1)%_711.form.length;i!=_716;i=++i%_711.form.length){
try{
_711.form[i].focus();
break;
}
catch(e){
continue;
}
}
}
return true;
};
var getIndex=function(_718){
var _719=-1,i=0,_71b=false;
while(i<_718.form.length&&_719==-1){
if(_718.form[i]==_718){
_719=i;
}else{
i++;
}
}
return _719;
};
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(_71d,_71e){
_71d=_71d||"POST";
if(_71d=="POST"){
dojo.xhrPost(_71e);
}else{
if(_71d=="GET"){
dojo.xhrGet(_71e);
}else{
dojo.xhrPost(_71e);
}
}
};
var defaultBackButtonHandler={handle:function(_71f){
var _720=(_71f.mimetype)?true:false;
if(_71f.response){
if(_720){
if(_71f.load){
_71f.load("",_71f.response,"");
}else{
_71f.handle("",_71f.response,"");
}
}else{
if(_71f.load){
_71f.load(response,"");
}else{
_71f.handle(response,"");
}
}
}else{
if(_720){
dojoBind({bindObj:_71f});
}else{
ajaxCall(_71f.method,_71f);
}
}
}};
ApplicationState=function(_721,_722,_723){
this.stateData=_721;
this.backButtonHandler=((!_722)||_722=="")?defaultBackButtonHandler:_722;
this.changeUrl=_723||(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(_725){
var _726={url:_725.url,content:_725.content,form:_725.formNode,sync:_725.sync||false,error:function(_727,_728){
return _725.error("",_727);
},method:_725.method,handleAs:getHandleAs(_725.mimetype),load:function(_729,_72a){
return _725.load("",_729,"");
}};
return _726;
};
function getHandleAs(_72b){
_72b=_72b||"text/html";
if(_72b=="text/html"||_72b=="text/plain"){
return "text";
}
if(_72b.indexOf("javascript")>0){
return "javascript";
}
if(_72b.indexOf("xml")>0){
return "xml";
}
return "text";
};
function modifyInputFields(_72c,_72d){
var _72e=document.getElementById(_72c);
if(_72e!=null&&_72e.tagName=="FORM"){
for(var i=0;i<_72e.length;i++){
var _730=_72e[i];
if(_730.tagName=="INPUT"){
if(!_72d){
_730.disabled=true;
}else{
_730.disabled=false;
}
}
}
}
};
function processAjaxResponse(_731){
debug("ajax response: "+_731);
if(_731.toLowerCase().indexOf("<ajax-response>")<0){
document.write(_731);
document.close();
return;
}
xmlDoc=dojox.data.dom.createDocument(_731);
var _732=xmlDoc.getElementsByTagName("error");
if(_732!=null&&_732.length>0){
processErrors(_732);
}else{
var _733=xmlDoc.getElementsByTagName("field");
processFields(_733);
}
};
function processErrors(_734){
for(var i=0;i<_734.length;i++){
var _736=_734[i].getAttribute("value");
if(_736==null){
if(window.ActiveXObject){
_736=_734[i].firstChild.nodeValue.trim();
}else{
_736=_734[i].childNodes[1].nodeValue.trim();
}
}
alert(_736);
}
};
function processFields(_737){
for(var i=0;i<_737.length;i++){
var id=_737[i].getAttribute("id");
if(!dojo.byId(id)){
continue;
}
var _73a=_737[i].getAttribute("attribute");
var _73b=_737[i].getAttribute("value");
if(_73b==null){
if(window.ActiveXObject){
_73b=_737[i].firstChild.nodeValue.trim();
}else{
_73b=_737[i].childNodes[1].nodeValue.trim();
}
}
eval("window.replaceValue = function(value) { dojo.byId('"+id+"')."+_73a+" = value;}");
replaceValue(_73b);
if(_73a=="innerHTML"&&_73b!=null&&_73b.length>0){
var node=null;
node=dojo.byId(id);
var _73d=node.getElementsByTagName("script");
for(var j=0;j<_73d.length;j++){
var src=_73d[j].getAttribute("src");
if(src!=null&&src!=""){
if(src.indexOf("dojo.js")<0){
dojo.xhrGet({url:src,handleAs:"javascript",load:function(_740,_741){
},sync:true,error:function(_742,_743){
alert("Error: "+_742);
}});
}
}else{
var _744="";
if(window.ActiveXObject){
_744=_73d[j].text.trim();
}else{
for(var _745=0;_745<_73d[j].childNodes.length;++_745){
_744+=_73d[j].childNodes[_745].nodeValue.trim();
}
}
eval(_744);
}
}
}
}
};
function dojoBind(oArg){
var _747=true;
if(oArg.resetTimoutCounter==undefined){
_747=true;
}else{
_747=oArg.resetTimoutCounter;
}
if(_747){
sessionResetCount=0;
}
if(is_ie&&!isXmlhttpRequestSupported()){
var _748=true;
if(oArg.showMsg==undefined){
_748=true;
}else{
_748=oArg.showMsg;
}
if(_748){
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(_74a){
_74a=_74a||"";
var idx=_74a.indexOf(location.hostname);
if(idx>0){
idx+=location.hostname.length;
return _74a.substring(idx);
}else{
return _74a;
}
};
var cmCreateLinkTag;
var menuSeparator="<span>&nbsp;|&nbsp;</span>";
function createMenuItem(_74c,_74d,_74e){
var _74f="<span id=\""+_74c+_74d+"\">"+"<a id=\""+_74c+"_Anchor"+_74d+"\" href=\""+_74e.absoluteLink+"\" "+"onClick=\"return cmCreateManualLinkClickTag("+"'"+getCMTargetUrl(_74e.absoluteLink)+"', '"+(_74e.formatedCMLinkName||"")+"', '"+location.pathname+"');"+"\" "+"target='"+(_74e.external?"_blank":(_74e.target||""))+"' "+"name='"+(_74e.name||"")+"' "+"style='"+(_74e.style||"")+"' "+"title='"+(_74e.title||"")+"' "+">"+_74e.altText+"</a></span>";
return _74f;
};
function createFooterToolbar(_750,_751,_752,_753,_754){
var _755=document.getElementById(_752);
var _756="";
for(var i=0;i<_751.length;i++){
var _758=_751[i];
_758.pageId=_753;
_758.community=_754;
var menu=createMenuItem("footer_menu",i,_758);
if(i>0){
_756+=menuSeparator;
}
_756+=menu;
}
var logo="";
if(_750){
logo="<IMG align=\"left\" src=\""+_750+"\" alt=\"Customer Corporate logo\"/>";
}
_755.innerHTML=logo+_756;
};
function createFooterMenu(_75b){
var _75c=_75b.logoImage||0;
var _75d=_75b.menuList;
for(var i=0;i<_75d.length;i++){
var _75f=_75d[i];
var _760=_75f.menuItems;
_75c=(i==0)?_75c:0;
createFooterToolbar(_75c,_760,"footerTB"+(i+1),_75f.pageId,_75f.community);
}
};
function getProfilePageViewURL(){
return (getBaseApplicationURL()+"/wwg/cmProfilePageView.shtml");
};
function getFirePageViewTagBindArgs(_761,_762,_763){
if(_761==null||_761==""){
_761="";
}
if(_763==null||_763==""){
_763="";
}
var uri=getProfilePageViewURL();
var _765={url:uri,content:{name:_761,pageid:_762,searchString:_763},method:"POST",mimetype:"text/html",load:function(type,_767,evt){
this.response=_767;
processAjaxResponse(_767);
},error:function(type,_76a){
}};
return _765;
};
function firePageViewTag(_76b,_76c,_76d,_76e){
if(_76e==null||_76e==""){
resetTimout=true;
}
var _76f=getFirePageViewTagBindArgs(_76b,_76c,_76d,_76e);
dojoBind({bindObj:_76f,showMsg:false,resetTimoutCounter:_76e});
};
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(_770,name){
try{
var yObj=new ActiveXObject(_770);
if(yObj==null){
return "";
}else{
return name+",";
}
}
catch(e){
return "";
}
};
function detectNS(_773,name){
n="";
if(nse.indexOf(_773)!=-1){
if(navigator.mimeTypes[_773].enabledPlugin!=null){
n=name+",";
}
}
return n;
};
function detectAdobe(_775){
var _776=false;
if(is_ie&&is_win&&!is_opera){
if(_775){
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(!_775&&(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(_775){
if((pluginlist.indexOf("Acrobat Reader")!=-1)){
_776=true;
}
}else{
if((pluginlist.indexOf("Acrobat Reader")!=-1)||(pluginlist.indexOf("SVG Viewer")!=-1)){
_776=true;
}
}
return _776;
};
function createWaitMessage(){
var _778="<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 _779=new dijit.Dialog({title:"",content:_778,id:"waitingMessage"});
dojo.body().appendChild(_779.domNode);
_779.startup();
return (_779);
};
function setWaitStatus(_77a){
var _77b=dijit.byId("waitingMessage");
if(_77b==null){
_77b=createWaitMessage();
}
cansubmit=true;
if(_77a){
dojo.extend(dijit.Dialog,{_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _77d=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_77d.l+(p?p.l:(_77d.w-mb.w)/2))+"px",top:Math.floor(_77d.t+(p?p.t:(_77d.h-mb.h)/3))+"px"});
}
}});
setTimeout("document.images[\"waitSpinnerImg\"].src = \"images/spinner-anim.gif\"",200);
_77b.show();
}else{
_77b.hide();
}
};
function showWaitingMessage(){
setWaitStatus(true);
};
window.onpageshow=function(evt){
if(evt.persisted){
setWaitStatus(false);
}
};
function setNavigation(){
var _781="";
var node="";
var _783="";
var _784=0;
var _785=0;
var _786="";
var _787=0;
var _788;
if(document.getElementById("globalMenu")){
_781=document.getElementById("globalMenu");
for(i=0;i<_781.childNodes.length;i++){
node=_781.childNodes[i];
if(node.nodeName=="LI"){
_786=this.className;
if(navigator.appName=="Microsoft Internet Explorer"){
node.onmouseenter=function(){
_786=this.className;
if((_786.indexOf("over")==-1)&&(_786.indexOf("noborder")==-1)){
for(j=0;j<this.childNodes.length;j++){
_783=this.childNodes[j];
if(_783.nodeName=="UL"){
this.className="over";
_784=0;
_785=0;
hideShowSelectBox(findGlobalPosX(_783),findGlobalPosY(_783),_783.offsetWidth,_783.offsetHeight);
var _789=document.getElementById("pdfBodyId");
if(_789!=null){
if(_783.offsetHeight>188){
var _78a=_783.offsetHeight-188;
_789.style.marginTop=_78a;
}
}
}else{
this.className="single";
}
}
}
};
node.onmouseleave=function(){
this.className=_786;
showAllSelectBoxes();
_787=setTimeout("showAllEmbeds();",10);
var _78b=document.getElementById("pdfBodyId");
if(_78b!=null){
_78b.style.marginTop=0;
}
};
}else{
node.onmouseover=function(){
_786=this.className;
if((_786.indexOf("over")==-1)&&(_786.indexOf("noborder")==-1)){
for(j=0;j<this.childNodes.length;j++){
_783=this.childNodes[j];
if(_783.nodeName=="UL"){
this.className="over";
_784=0;
_785=0;
if(document.getElementsByTagName("iframe").length>0){
clearTimeout(_787);
var _78c=document.getElementById("pdfBodyId");
if(_78c!=null){
if(_783.offsetHeight>188){
var _78d=_783.offsetHeight-188;
_78c.style.marginTop=_78d;
}
}
}
}else{
this.className="single";
}
}
}
};
node.onmouseout=function(){
this.className=_786;
_787=setTimeout("showAllEmbeds();",10);
};
}
}
}
}
};
function findGlobalPosX(obj){
var _78f=0;
if(obj.offsetParent){
while(obj.offsetParent){
_78f+=obj.offsetLeft;
obj=obj.offsetParent;
}
}else{
if(obj.x){
_78f+=obj.x;
}
}
return _78f;
};
function findGlobalPosY(obj){
var _791=0;
if(obj.offsetParent){
while(obj.offsetParent){
_791+=obj.offsetTop;
obj=obj.offsetParent;
}
_791+=1;
}else{
if(obj.y){
_791+=obj.y;
}
}
return _791;
};
function hideShowSelectBox(_792,_793,_794,_795){
for(slectLoop2=0;slectLoop2<document.getElementsByTagName("select").length;slectLoop2++){
var _796=findGlobalPosY(document.getElementsByTagName("select")[slectLoop2]);
var _797=findGlobalPosX(document.getElementsByTagName("select")[slectLoop2]);
var _798=document.getElementsByTagName("select")[slectLoop2].offsetWidth;
var _799=document.getElementsByTagName("select")[slectLoop2].offsetHeight;
if((_796<=_793+_795&&_796+_799>=_793)&&((_797<=_792&&_792<=(_798+_797))||((_792<=_797)&&(_792+_794>_797)))){
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(_79a,_79b,_79c,_79d){
for(embedLoop=0;embedLoop<document.getElementsByTagName("iframe").length;embedLoop++){
var _79e=findGlobalPosY(document.getElementsByTagName("iframe")[embedLoop]);
var _79f=findGlobalPosX(document.getElementsByTagName("iframe")[embedLoop]);
var _7a0=document.getElementsByTagName("iframe")[embedLoop].offsetWidth;
var _7a1=document.getElementsByTagName("iframe")[embedLoop].offsetHeight;
var _7a2=document.getElementById("shimmer");
if(_7a2!=null){
if((_79e<=_79b+_79d&&_79e+_7a1>=_79b)&&((_79f<=_79a&&_79a<=(_7a0+_79f))||((_79a<=_79f)&&(_79a+_79c>_79f)))){
_7a2.style.width=_79c;
_7a2.style.height=_79d;
_7a2.style.top=_79b;
_7a2.style.left=_79a;
_7a2.style.display="block";
}
}
}
};
function showAllEmbeds(){
var _7a3=document.getElementById("pdfBodyId");
if(_7a3!=null){
_7a3.style.marginTop=0;
}
};
var getOverflow=function(_7a4){
var _7a5=dojo.attr(_7a4,"overflowSize");
if(_7a5==null){
_7a5=dojo.style(_7a4,"width");
}
var _7a6=dojo.query("[gwType=overflowChild]",_7a4);
var _7a7=0;
dojo.forEach(_7a6,function(_7a8){
_7a7+=_7a8.offsetWidth;
});
var _7a9=(_7a7>_7a5);
var ret={"childOverflow":_7a9,"containerWidth":_7a5,"childWidth":_7a7,"overflow":(_7a9?(_7a7-_7a5):0)};
return (ret);
};
var setOverflowRegions=function(_7ab,_7ac){
var loop=true;
for(var r=1;loop;++r){
var _7af=dojo.query("[gwType=overflowRegion][region="+r+"]",_7ab);
var _7b0=0;
var _7b1=0;
dojo.forEach(_7af,function(_7b2){
var _7b3=dojo.attr(_7b2,"minSize");
if(_7b2.offsetWidth>=_7b3){
if(_7b0==0&&_7b1==0){
_7b0=_7b2.offsetWidth;
_7b1=(_7b0-_7ac.overflow>=_7b3?(_7b0-_7ac.overflow):_7b3);
}
dojo.addClass(_7b2,"overflow");
dojo.style(_7b2,{"width":_7b1+"px"});
}
});
_7ac.overflow-=(_7b0-_7b1>=0?_7b0-_7b1:0);
loop=(_7ac.overflow>0&&null!=_7af&&_7af.length>0);
}
};
var processOverflow=function(){
var _7b4=dojo.query("[gwType=overflowContainer]");
dojo.forEach(_7b4,function(node){
var _7b6=getOverflow(node);
if(_7b6.childOverflow){
setOverflowRegions(node,_7b6);
}
});
};
dojo.i18n._preloadLocalizations("dojo.nls.searchall",["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"]);
