/*
	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.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_55){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_55&&_55.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_59){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("|"),_59);};dojo.regexp.group=function(_5c,_5d){return "("+(_5d?"?:":"")+_5c+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(_5e,_5f,_60){var c=document.cookie;if(arguments.length==1){var _62=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(_5e)+"=([^;]*)"));return _62?decodeURIComponent(_62[1]):undefined;}else{_60=_60||{};var exp=_60.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_60.expires=d;}if(exp&&exp.toUTCString){_60.expires=exp.toUTCString();}_5f=encodeURIComponent(_5f);var _65=_5e+"="+_5f,_66;for(_66 in _60){_65+="; "+_66;var _67=_60[_66];if(_67!==true){_65+="="+_67;}}document.cookie=_65;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.data.util.filter.patternToRegExp=function(_68,_69){var rxp="^";var c=null;for(var i=0;i<_68.length;i++){c=_68.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_68.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(_69){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_70,_71){var _72=[];function _73(_74,dir){return function(_76,_77){var a=_71.getValue(_76,_74);var b=_71.getValue(_77,_74);var _7a=null;if(_71.comparatorMap){if(typeof _74!=="string"){_74=_71.getIdentity(_74);}_7a=_71.comparatorMap[_74]||dojo.data.util.sorter.basicComparator;}_7a=_7a||dojo.data.util.sorter.basicComparator;return dir*_7a(a,b);};};var _7b;for(var i=0;i<_70.length;i++){_7b=_70[i];if(_7b.attribute){var _7d=(_7b.descending)?-1:1;_72.push(_73(_7b.attribute,_7d));}}return function(_7e,_7f){var i=0;while(i<_72.length){var ret=_72[i++](_7e,_7f);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.data.util.simpleFetch.fetch=function(_82){_82=_82||{};if(!_82.store){_82.store=this;}var _83=this;var _84=function(_85,_86){if(_86.onError){var _87=_86.scope||dojo.global;_86.onError.call(_87,_85,_86);}};var _88=function(_89,_8a){var _8b=_8a.abort||null;var _8c=false;var _8d=_8a.start?_8a.start:0;var _8e=(_8a.count&&(_8a.count!==Infinity))?(_8d+_8a.count):_89.length;_8a.abort=function(){_8c=true;if(_8b){_8b.call(_8a);}};var _8f=_8a.scope||dojo.global;if(!_8a.store){_8a.store=_83;}if(_8a.onBegin){_8a.onBegin.call(_8f,_89.length,_8a);}if(_8a.sort){_89.sort(dojo.data.util.sorter.createSortFunction(_8a.sort,_83));}if(_8a.onItem){for(var i=_8d;(i<_89.length)&&(i<_8e);++i){var _91=_89[i];if(!_8c){_8a.onItem.call(_8f,_91,_8a);}}}if(_8a.onComplete&&!_8c){var _92=null;if(!_8a.onItem){_92=_89.slice(_8d,_8e);}_8a.onComplete.call(_8f,_92,_8a);}};this._fetchItems(_82,_88,_84);return _82;};}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_93){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_93.url;this._jsonData=_93.data;this._datatypeMap=_93.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_94){return dojo.date.stamp.fromISOString(_94);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_93.urlPreventCache!==undefined){this.urlPreventCache=_93.urlPreventCache?true:false;}if(_93.clearOnClose){this.clearOnClose=true;}},url:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,_assertIsItem:function(_95){if(!this.isItem(_95)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_96){if(typeof _96!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(_97,_98,_99){var _9a=this.getValues(_97,_98);return (_9a.length>0)?_9a[0]:_99;},getValues:function(_9b,_9c){this._assertIsItem(_9b);this._assertIsAttribute(_9c);return _9b[_9c]||[];},getAttributes:function(_9d){this._assertIsItem(_9d);var _9e=[];for(var key in _9d){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_9e.push(key);}}return _9e;},hasAttribute:function(_a0,_a1){return this.getValues(_a0,_a1).length>0;},containsValue:function(_a2,_a3,_a4){var _a5=undefined;if(typeof _a4==="string"){_a5=dojo.data.util.filter.patternToRegExp(_a4,false);}return this._containsValue(_a2,_a3,_a4,_a5);},_containsValue:function(_a6,_a7,_a8,_a9){return dojo.some(this.getValues(_a6,_a7),function(_aa){if(_aa!==null&&!dojo.isObject(_aa)&&_a9){if(_aa.toString().match(_a9)){return true;}}else{if(_a8===_aa){return true;}}});},isItem:function(_ab){if(_ab&&_ab[this._storeRefPropName]===this){if(this._arrayOfAllItems[_ab[this._itemNumPropName]]===_ab){return true;}}return false;},isItemLoaded:function(_ac){return this.isItem(_ac);},loadItem:function(_ad){this._assertIsItem(_ad.item);},getFeatures:function(){return this._features;},getLabel:function(_ae){if(this._labelAttr&&this.isItem(_ae)){return this.getValue(_ae,this._labelAttr);}return undefined;},getLabelAttributes:function(_af){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_b0,_b1,_b2){var _b3=this;var _b4=function(_b5,_b6){var _b7=[];var i,key;if(_b5.query){var _ba;var _bb=_b5.queryOptions?_b5.queryOptions.ignoreCase:false;var _bc={};for(key in _b5.query){_ba=_b5.query[key];if(typeof _ba==="string"){_bc[key]=dojo.data.util.filter.patternToRegExp(_ba,_bb);}}for(i=0;i<_b6.length;++i){var _bd=true;var _be=_b6[i];if(_be===null){_bd=false;}else{for(key in _b5.query){_ba=_b5.query[key];if(!_b3._containsValue(_be,key,_ba,_bc[key])){_bd=false;}}}if(_bd){_b7.push(_be);}}_b1(_b7,_b5);}else{for(i=0;i<_b6.length;++i){var _bf=_b6[i];if(_bf!==null){_b7.push(_bf);}}_b1(_b7,_b5);}};if(this._loadFinished){_b4(_b0,this._getItemsArray(_b0.queryOptions));}else{if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_b0,filter:_b4});}else{this._loadInProgress=true;var _c0={url:_b3._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};var _c1=dojo.xhrGet(_c0);_c1.addCallback(function(_c2){try{_b3._getItemsFromLoadedData(_c2);_b3._loadFinished=true;_b3._loadInProgress=false;_b4(_b0,_b3._getItemsArray(_b0.queryOptions));_b3._handleQueuedFetches();}catch(e){_b3._loadFinished=true;_b3._loadInProgress=false;_b2(e,_b0);}});_c1.addErrback(function(_c3){_b3._loadInProgress=false;_b2(_c3,_b0);});var _c4=null;if(_b0.abort){_c4=_b0.abort;}_b0.abort=function(){var df=_c1;if(df&&df.fired===-1){df.cancel();df=null;}if(_c4){_c4.call(_b0);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_b4(_b0,this._getItemsArray(_b0.queryOptions));}catch(e){_b2(e,_b0);}}else{_b2(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_b0);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _c7=this._queuedFetches[i];var _c8=_c7.args;var _c9=_c7.filter;if(_c9){_c9(_c8,this._getItemsArray(_c8.queryOptions));}else{this.fetchItemByIdentity(_c8);}}this._queuedFetches=[];}},_getItemsArray:function(_ca){if(_ca&&_ca.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_cb){if(this.clearOnClose&&(this._jsonFileUrl!=="")){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_cc){var _cd=false;function _ce(_cf){var _d0=((_cf!==null)&&(typeof _cf==="object")&&(!dojo.isArray(_cf)||_cd)&&(!dojo.isFunction(_cf))&&(_cf.constructor==Object||dojo.isArray(_cf))&&(typeof _cf._reference==="undefined")&&(typeof _cf._type==="undefined")&&(typeof _cf._value==="undefined"));return _d0;};var _d1=this;function _d2(_d3){_d1._arrayOfAllItems.push(_d3);for(var _d4 in _d3){var _d5=_d3[_d4];if(_d5){if(dojo.isArray(_d5)){var _d6=_d5;for(var k=0;k<_d6.length;++k){var _d8=_d6[k];if(_ce(_d8)){_d2(_d8);}}}else{if(_ce(_d5)){_d2(_d5);}}}}};this._labelAttr=_cc.label;var i;var _da;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_cc.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){_da=this._arrayOfTopLevelItems[i];if(dojo.isArray(_da)){_cd=true;}_d2(_da);_da[this._rootItemPropName]=true;}var _db={};var key;for(i=0;i<this._arrayOfAllItems.length;++i){_da=this._arrayOfAllItems[i];for(key in _da){if(key!==this._rootItemPropName){var _dd=_da[key];if(_dd!==null){if(!dojo.isArray(_dd)){_da[key]=[_dd];}}else{_da[key]=[null];}}_db[key]=key;}}while(_db[this._storeRefPropName]){this._storeRefPropName+="_";}while(_db[this._itemNumPropName]){this._itemNumPropName+="_";}while(_db[this._reverseRefMap]){this._reverseRefMap+="_";}var _de;var _df=_cc.identifier;if(_df){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_df;for(i=0;i<this._arrayOfAllItems.length;++i){_da=this._arrayOfAllItems[i];_de=_da[_df];var _e0=_de[0];if(!this._itemsByIdentity[_e0]){this._itemsByIdentity[_e0]=_da;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_df+"].  Value collided: ["+_e0+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_df+"].  Value collided: ["+_e0+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){_da=this._arrayOfAllItems[i];_da[this._storeRefPropName]=this;_da[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){_da=this._arrayOfAllItems[i];for(key in _da){_de=_da[key];for(var j=0;j<_de.length;++j){_dd=_de[j];if(_dd!==null&&typeof _dd=="object"){if(_dd._type&&_dd._value){var _e2=_dd._type;var _e3=this._datatypeMap[_e2];if(!_e3){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+_e2+"'");}else{if(dojo.isFunction(_e3)){_de[j]=new _e3(_dd._value);}else{if(dojo.isFunction(_e3.deserialize)){_de[j]=_e3.deserialize(_dd._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_dd._reference){var _e4=_dd._reference;if(!dojo.isObject(_e4)){_de[j]=this._itemsByIdentity[_e4];}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _e6=this._arrayOfAllItems[k];var _e7=true;for(var _e8 in _e4){if(_e6[_e8]!=_e4[_e8]){_e7=false;}}if(_e7){_de[j]=_e6;}}}if(this.referenceIntegrity){var _e9=_de[j];if(this.isItem(_e9)){this._addReferenceToMap(_e9,_da,key);}}}else{if(this.isItem(_dd)){if(this.referenceIntegrity){this._addReferenceToMap(_dd,_da,key);}}}}}}}},_addReferenceToMap:function(_ea,_eb,_ec){},getIdentity:function(_ed){var _ee=this._features["dojo.data.api.Identity"];if(_ee===Number){return _ed[this._itemNumPropName];}else{var _ef=_ed[_ee];if(_ef){return _ef[0];}}return null;},fetchItemByIdentity:function(_f0){var _f1;var _f2;if(!this._loadFinished){var _f3=this;if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_f0});}else{this._loadInProgress=true;var _f4={url:_f3._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};var _f5=dojo.xhrGet(_f4);_f5.addCallback(function(_f6){var _f7=_f0.scope?_f0.scope:dojo.global;try{_f3._getItemsFromLoadedData(_f6);_f3._loadFinished=true;_f3._loadInProgress=false;_f1=_f3._getItemByIdentity(_f0.identity);if(_f0.onItem){_f0.onItem.call(_f7,_f1);}_f3._handleQueuedFetches();}catch(error){_f3._loadInProgress=false;if(_f0.onError){_f0.onError.call(_f7,error);}}});_f5.addErrback(function(_f8){_f3._loadInProgress=false;if(_f0.onError){var _f9=_f0.scope?_f0.scope:dojo.global;_f0.onError.call(_f9,_f8);}});}}else{if(this._jsonData){_f3._getItemsFromLoadedData(_f3._jsonData);_f3._jsonData=null;_f3._loadFinished=true;_f1=_f3._getItemByIdentity(_f0.identity);if(_f0.onItem){_f2=_f0.scope?_f0.scope:dojo.global;_f0.onItem.call(_f2,_f1);}}}}else{_f1=this._getItemByIdentity(_f0.identity);if(_f0.onItem){_f2=_f0.scope?_f0.scope:dojo.global;_f0.onItem.call(_f2,_f1);}}},_getItemByIdentity:function(_fa){var _fb=null;if(this._itemsByIdentity){_fb=this._itemsByIdentity[_fa];}else{_fb=this._arrayOfAllItems[_fa];}if(_fb===undefined){_fb=null;}return _fb;},getIdentityAttributes:function(_fc){var _fd=this._features["dojo.data.api.Identity"];if(_fd===Number){return null;}else{return [_fd];}},_forceLoad:function(){var _fe=this;if(this._jsonFileUrl){var _ff={url:_fe._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,sync:true};var _100=dojo.xhrGet(_ff);_100.addCallback(function(data){try{if(_fe._loadInProgress!==true&&!_fe._loadFinished){_fe._getItemsFromLoadedData(data);_fe._loadFinished=true;}else{if(_fe._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){throw e;}});_100.addErrback(function(_102){throw _102;});}else{if(this._jsonData){_fe._getItemsFromLoadedData(_fe._jsonData);_fe._jsonData=null;_fe._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}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 _103=dojo.doc;if(_103.selection){var s=_103.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _105=dojo.global;var _106=_105.getSelection();if(dojo.isString(_106)){return !_106;}else{return !_106||_106.isCollapsed||!_106.toString();}}},getBookmark:function(){var _107,_108=dojo.doc.selection;if(_108){var _109=_108.createRange();if(_108.type.toUpperCase()=="CONTROL"){if(_109.length){_107=[];var i=0,len=_109.length;while(i<len){_107.push(_109.item(i++));}}else{_107=null;}}else{_107=_109.getBookmark();}}else{if(window.getSelection){_108=dojo.global.getSelection();if(_108){_109=_108.getRangeAt(0);_107=_109.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _107;},moveToBookmark:function(_10c){var _10d=dojo.doc;if(_10d.selection){var _10e;if(dojo.isArray(_10c)){_10e=_10d.body.createControlRange();dojo.forEach(_10c,function(n){_10e.addElement(n);});}else{_10e=_10d.selection.createRange();_10e.moveToBookmark(_10c);}_10e.select();}else{var _110=dojo.global.getSelection&&dojo.global.getSelection();if(_110&&_110.removeAllRanges){_110.removeAllRanges();_110.addRange(_10c);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(menu,_112){return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_112||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_112||dojo.global,dijit.getBookmark):null,openedForWindow:_112};},focus:function(_113){if(!_113){return;}var node="node" in _113?_113.node:_113,_115=_113.bookmark,_116=_113.openedForWindow;if(node){var _117=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_117&&_117.focus){try{_117.focus();}catch(e){}}dijit._onFocusNode(node);}if(_115&&dojo.withGlobal(_116||dojo.global,dijit.isCollapsed)){if(_116){_116.focus();}try{dojo.withGlobal(_116||dojo.global,dijit.moveToBookmark,null,[_115]);}catch(e){}}},_activeStack:[],registerIframe:function(_118){dijit.registerWin(_118.contentWindow,_118);},registerWin:function(_119,_11a){dojo.connect(_119.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_11a||evt.target||evt.srcElement);});var doc=_119.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(_11a||evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(_11a||evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(_11a||evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(_11a||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 _123=[];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){_123.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_123);},_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(_126){var _127=dijit._activeStack;dijit._activeStack=_126;for(var _128=0;_128<Math.min(_127.length,_126.length);_128++){if(_127[_128]!=_126[_128]){break;}}for(var i=_127.length-1;i>=_128;i--){var _12a=dijit.byId(_127[i]);if(_12a){_12a._focused=false;_12a._hasBeenBlurred=true;if(_12a._onBlur){_12a._onBlur();}if(_12a._setStateClass){_12a._setStateClass();}dojo.publish("widgetBlur",[_12a]);}}for(i=_128;i<_126.length;i++){_12a=dijit.byId(_126[i]);if(_12a){_12a._focused=true;if(_12a._onFocus){_12a._onFocus();}if(_12a._setStateClass){_12a._setStateClass();}dojo.publish("widgetFocus",[_12a]);}}}});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(_12b){if(this._hash[_12b.id]){throw new Error("Tried to register widget with id=="+_12b.id+" but that id is already registered");}this._hash[_12b.id]=_12b;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(_12f){var res=new dijit.WidgetSet();this.forEach(function(_131){if(_12f(_131)){res.add(_131);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_134){return _134.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_135){var id;do{id=_135+"_"+(_135 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_135]:dijit._widgetTypeCtr[_135]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(root){var _138=[];function _139(root){var list=dojo.isIE?root.children:root.childNodes,i=0,node;while(node=list[i++]){if(node.nodeType!=1){continue;}var _13e=node.getAttribute("widgetId");if(_13e){var _13f=dijit.byId(_13e);_138.push(_13f);}else{_139(node);}}};_139(root);return _138;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dojo.forEach(dijit.findWidgets(dojo.body()),function(_140){if(_140.destroyRecursive){_140.destroyRecursive();}else{if(_140.destroy){_140.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 _145=dojo.style(elem);return (_145.visibility!="hidden")&&(_145.visibility!="collapsed")&&(_145.display!="none")&&(dojo.attr(elem,"type")!="hidden");};dijit.isTabNavigable=function(elem){if(dojo.hasAttr(elem,"disabled")){return false;}var _147=dojo.hasAttr(elem,"tabindex");var _148=dojo.attr(elem,"tabindex");if(_147&&_148>=0){return true;}var name=elem.nodeName.toLowerCase();if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_147||_148>=0)){return true;}return false;};dijit._getTabNavigable=function(root){var _14b,last,_14d,_14e,_14f,_150;var _151=function(_152){dojo.query("> *",_152).forEach(function(_153){var _154=dijit._isElementShown(_153);if(_154&&dijit.isTabNavigable(_153)){var _155=dojo.attr(_153,"tabindex");if(!dojo.hasAttr(_153,"tabindex")||_155==0){if(!_14b){_14b=_153;}last=_153;}else{if(_155>0){if(!_14d||_155<_14e){_14e=_155;_14d=_153;}if(!_14f||_155>=_150){_150=_155;_14f=_153;}}}}if(_154&&_153.nodeName.toUpperCase()!="SELECT"){_151(_153);}});};if(dijit._isElementShown(root)){_151(root);}return {first:_14b,last:last,lowest:_14d,highest:_14f};};dijit.getFirstInTabbingOrder=function(root){var _157=dijit._getTabNavigable(dojo.byId(root));return _157.lowest?_157.lowest:_157.first;};dijit.getLastInTabbingOrder=function(root){var _159=dijit._getTabNavigable(dojo.byId(root));return _159.last?_159.last:_159.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_15a){this.pairs=[];this.returnWrappers=_15a||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_15c,wrap,_15e,_15f){this.pairs[((_15f)?"unshift":"push")]([name,_15c,wrap,_15e]);},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 _165=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _166=dojo._docScroll();return {w:_165.clientWidth,h:_165.clientHeight,l:_166.x,t:_166.y};};dijit.placeOnScreen=function(node,pos,_169,_16a){var _16b=dojo.map(_169,function(_16c){var c={corner:_16c,pos:{x:pos.x,y:pos.y}};if(_16a){c.pos.x+=_16c.charAt(1)=="L"?_16a.x:-_16a.x;c.pos.y+=_16c.charAt(0)=="T"?_16a.y:-_16a.y;}return c;});return dijit._place(node,_16b);};dijit._place=function(node,_16f,_170){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_16f,function(_173){var _174=_173.corner;var pos=_173.pos;if(_170){_170(node,_173.aroundCorner,_174);}var _176=node.style;var _177=_176.display;var _178=_176.visibility;_176.visibility="hidden";_176.display="";var mb=dojo.marginBox(node);_176.display=_177;_176.visibility=_178;var _17a=(_174.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_17b=(_174.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_174.charAt(1)=="L"?Math.min(view.l+view.w,_17a+mb.w):pos.x),endY=(_174.charAt(0)=="T"?Math.min(view.t+view.h,_17b+mb.h):pos.y),_17e=endX-_17a,_17f=endY-_17b,_180=(mb.w-_17e)+(mb.h-_17f);if(best==null||_180<best.overflow){best={corner:_174,aroundCorner:_173.aroundCorner,x:_17a,y:_17b,w:_17e,h:_17f,overflow:_180};}return !_180;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_170){_170(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundNode=function(node,_182,_183,_184){_182=dojo.byId(_182);var _185=_182.style.display;_182.style.display="";var _186=_182.offsetWidth;var _187=_182.offsetHeight;var _188=dojo.coords(_182,true);_182.style.display=_185;return dijit._placeOnScreenAroundRect(node,_188.x,_188.y,_186,_187,_183,_184);};dijit.placeOnScreenAroundRectangle=function(node,_18a,_18b,_18c){return dijit._placeOnScreenAroundRect(node,_18a.x,_18a.y,_18a.width,_18a.height,_18b,_18c);};dijit._placeOnScreenAroundRect=function(node,x,y,_190,_191,_192,_193){var _194=[];for(var _195 in _192){_194.push({aroundCorner:_195,corner:_192[_195],pos:{x:x+(_195.charAt(1)=="L"?0:_190),y:y+(_195.charAt(0)=="T"?0:_191)}});}return dijit._place(node,_194,_193);};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,_19b,_19c,_19d){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 _1a0=[],_1a1=1000,_1a2=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 _1a6=args.popup,_1a7=args.orient||{"BL":"TL","TL":"BL"},_1a8=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_1a2++);var _1aa=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_1a1+_1a0.length,visibility:"hidden"}},dojo.body());dijit.setWaiRole(_1aa,"presentation");_1aa.style.left=_1aa.style.top="0px";if(args.parent){_1aa.dijitPopupParent=args.parent.id;}var s=_1a6.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_1aa.appendChild(_1a6.domNode);var _1ac=new dijit.BackgroundIframe(_1aa);var best=_1a8?dijit.placeOnScreenAroundElement(_1aa,_1a8,_1a7,_1a6.orient?dojo.hitch(_1a6,"orient"):null):dijit.placeOnScreen(_1aa,args,_1a7=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_1aa.style.visibility="visible";var _1ae=[];var _1af=function(){for(var pi=_1a0.length-1;pi>0&&_1a0[pi].parent===_1a0[pi-1].widget;pi--){}return _1a0[pi];};_1ae.push(dojo.connect(_1aa,"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 _1b2=_1af();if(_1b2&&_1b2.onCancel){_1b2.onCancel();}}}}));if(_1a6.onCancel){_1ae.push(dojo.connect(_1a6,"onCancel",null,args.onCancel));}_1ae.push(dojo.connect(_1a6,_1a6.onExecute?"onExecute":"onChange",null,function(){var _1b3=_1af();if(_1b3&&_1b3.onExecute){_1b3.onExecute();}}));_1a0.push({wrapper:_1aa,iframe:_1ac,widget:_1a6,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_1ae});if(_1a6.onOpen){_1a6.onOpen(best);}return best;};this.close=function(_1b4){while(dojo.some(_1a0,function(elem){return elem.widget==_1b4;})){var top=_1a0.pop(),_1b7=top.wrapper,_1b8=top.iframe,_1b9=top.widget,_1ba=top.onClose;if(_1b9.onClose){_1b9.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_1b9||!_1b9.domNode){return;}this.prepare(_1b9.domNode);_1b8.destroy();dojo.destroy(_1b7);if(_1ba){_1ba();}}};}();dijit._frames=new function(){var _1bb=[];this.pop=function(){var _1bc;if(_1bb.length){_1bc=_1bb.pop();_1bc.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\");'>";_1bc=dojo.doc.createElement(html);}else{_1bc=dojo.create("iframe");_1bc.src="javascript:\"\"";_1bc.className="dijitBackgroundIframe";}_1bc.tabIndex=-1;dojo.body().appendChild(_1bc);}return _1bc;};this.push=function(_1bf){_1bf.style.display="none";if(dojo.isIE){_1bf.style.removeExpression("width");_1bf.style.removeExpression("height");}_1bb.push(_1bf);};}();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 _1c1=dijit._frames.pop();node.appendChild(_1c1);if(dojo.isIE){_1c1.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");_1c1.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}this.iframe=_1c1;}};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 _1c7=dojo.isIE>=8&&!_1c8;var rtl=!ltr&&!_1c7;var _1ca=body;var _1c8=doc.compatMode=="BackCompat";if(_1c8){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{_1ca=html;}html._offsetHeight=html.clientHeight;html._offsetWidth=html.clientWidth;}function _1cb(_1cc){var ie=dojo.isIE;return ((ie<=6||(ie>=7&&_1c8))?false:(dojo.style(_1cc,"position").toLowerCase()=="fixed"));};function _1ce(_1cf){var _1d0=_1cf.parentNode;var _1d1=_1cf.offsetParent;if(_1d1==null||_1cb(_1cf)){_1d1=html;_1d0=(_1cf==body)?html:null;}_1cf._offsetParent=_1d1;_1cf._parent=_1d0;var bp=dojo._getBorderExtents(_1cf);_1cf._borderStart={H:(_1c7&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};_1cf._borderSize={H:bp.w,V:bp.h};_1cf._scrolledAmount={H:_1cf.scrollLeft,V:_1cf.scrollTop};_1cf._offsetSize={H:_1cf._offsetWidth||_1cf.offsetWidth,V:_1cf._offsetHeight||_1cf.offsetHeight};_1cf._offsetStart={H:(_1c7&&!ltr)?_1d1.clientWidth-_1cf.offsetLeft-_1cf._offsetSize.H:_1cf.offsetLeft,V:_1cf.offsetTop};_1cf._clientSize={H:_1cf._clientWidth||_1cf.clientWidth,V:_1cf._clientHeight||_1cf.clientHeight};if(_1cf!=body&&_1cf!=html&&_1cf!=node){for(var dir in _1cf._offsetSize){var _1d4=_1cf._offsetSize[dir]-_1cf._clientSize[dir]-_1cf._borderSize[dir];var _1d5=_1cf._clientSize[dir]>0&&_1d4>0;if(_1d5){_1cf._offsetSize[dir]-=_1d4;if(dojo.isIE&&rtl&&dir=="H"){_1cf._offsetStart[dir]+=_1d4;}}}}};var _1d6=node;while(_1d6!=null){if(_1cb(_1d6)){node.scrollIntoView(false);return;}_1ce(_1d6);_1d6=_1d6._parent;}if(dojo.isIE&&node._parent){var _1d7=node._offsetParent;node._offsetStart.H+=_1d7._borderStart.H;node._offsetStart.V+=_1d7._borderStart.V;}if(dojo.isIE>=7&&_1ca==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){var _1d8=html.scrollWidth-html._offsetSize.H;if(_1d8>0){body._offsetStart.H=-_1d8;}}if(dojo.isIE<=6&&!_1c8){html._offsetSize.H+=html._borderSize.H;html._offsetSize.V+=html._borderSize.V;}if(rtl&&body._offsetStart&&_1ca==html&&html._scrolledAmount){var ofs=body._offsetStart.H;if(ofs<0){html._scrolledAmount.H+=ofs;body._offsetStart.H=0;}}_1d6=node;while(_1d6){var _1da=_1d6._parent;if(!_1da){break;}if(_1da.tagName=="TD"){var _1db=_1da._parent._parent._parent;if(_1da!=_1d6._offsetParent&&_1da._offsetParent!=_1d6._offsetParent){_1da=_1db;}}var _1dc=_1d6._offsetParent==_1da;for(var dir in _1d6._offsetStart){var _1de=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(_1da!=html)&&(_1da!=body)&&(dojo.isIE||dojo.isWebKit)&&_1da._clientSize.H>0&&_1da.scrollWidth>_1da._clientSize.H){var _1df=_1da.scrollWidth-_1da._clientSize.H;if(_1df>0){_1da._scrolledAmount.H-=_1df;}}if(_1da._offsetParent.tagName=="TABLE"){if(dojo.isIE){_1da._offsetStart[dir]-=_1da._offsetParent._borderStart[dir];_1da._borderStart[dir]=_1da._borderSize[dir]=0;}else{_1da._offsetStart[dir]+=_1da._offsetParent._borderStart[dir];}}if(dojo.isIE){_1da._offsetStart[dir]+=_1da._offsetParent._borderStart[dir];}var _1e0=_1d6._offsetStart[dir]-_1da._scrolledAmount[dir]-(_1dc?0:_1da._offsetStart[dir])-_1da._borderStart[dir];var _1e1=_1e0+_1d6._offsetSize[dir]-_1da._offsetSize[dir]+_1da._borderSize[dir];var _1e2=(dir=="H")?"scrollLeft":"scrollTop";var _1e3=dir=="H"&&rtl;var _1e4=_1e3?-_1e1:_1e0;var _1e5=_1e3?-_1e0:_1e1;var _1e6=(_1e4*_1e5<=0)?0:Math[(_1e4<0)?"max":"min"](_1e4,_1e5);if(_1e6!=0){var _1e7=_1da[_1e2];_1da[_1e2]+=(_1e3)?-_1e6:_1e6;var _1e8=_1da[_1e2]-_1e7;}if(_1dc){_1d6._offsetStart[dir]+=_1da._offsetStart[dir];}_1d6._offsetStart[dir]-=_1da[_1e2];}_1d6._parent=_1da._parent;_1d6._offsetParent=_1da._offsetParent;}_1da=node;var next;while(_1da&&_1da.removeAttribute){next=_1da.parentNode;_1da.removeAttribute("_offsetParent");_1da.removeAttribute("_parent");_1da=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,_1ed=d.isOpera,maj=Math.floor,ff=d.isFF,_1f0=d.boxModel.replace(/-/,""),_1f1={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_1ed,dj_opera8:maj(_1ed)==8,dj_opera9:maj(_1ed)==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};_1f1["dj_"+_1f0]=true;for(var p in _1f1){if(_1f1[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 _1f1){if(_1f1[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,_1f5,node,_1f7,obj,_1f9,_1fa){if(obj!=this._obj){this.stop();this._initialDelay=_1fa||500;this._subsequentDelay=_1f9||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_1f5,_1f7);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,_1fc,_1fd,_1fe,_1ff,_200){if(_1fc.keyCode){_1fc.charOrCode=_1fc.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_1fc.charCode){_1fc.charOrCode=String.fromCharCode(_1fc.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==_1fc.charOrCode&&(_1fc.ctrlKey===undefined||_1fc.ctrlKey==evt.ctrlKey)&&(_1fc.altKey===undefined||_1fc.altKey==evt.ctrlKey)&&(_1fc.shiftKey===undefined||_1fc.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_1fc,_1fd,node,_1fe,_1fc,_1ff,_200);}else{if(dijit.typematic._obj==_1fc){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_1fc){dijit.typematic.stop();}})];},addMouseListener:function(node,_204,_205,_206,_207){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_204,node,_205,node,_206,_207);}),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,_204,node,_205,node,_206,_207);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_20e,_20f,_210,_211,_212,_213,_214){return this.addKeyListener(_20f,_210,_211,_212,_213,_214).concat(this.addMouseListener(_20e,_211,_212,_213,_214));}};}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 _217=cs.backgroundImage;var _218=(cs.borderTopColor==cs.borderRightColor)||(_217!=null&&(_217=="none"||_217=="url(invalid-url:)"));dojo[_218?"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 _21b=this.getWaiRole(elem);return role?(_21b.indexOf(role)>-1):(_21b.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _21f=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_21f)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_21f+" ").indexOf(" "+role+" ")<0){var _220=dojo.trim(_21f.replace(this._XhtmlRoles,""));var _221=dojo.trim(_21f.replace(_220,""));dojo.attr(elem,"role",_221+(_221?" ":"")+role);}}},removeWaiRole:function(elem,role){var _224=dojo.attr(elem,"role");if(!_224){return;}if(role){var _225=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_224+" ").replace(" "+_225+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_228){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_228);}return elem.hasAttribute?elem.hasAttribute("aria-"+_228):!!elem.getAttribute("aria-"+_228);},getWaiState:function(elem,_22a){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_22a);}return elem.getAttribute("aria-"+_22a)||"";},setWaiState:function(elem,_22c,_22d){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_22c,_22d);}else{elem.setAttribute("aria-"+_22c,_22d);}},removeWaiState:function(elem,_22f){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_22f);}else{elem.removeAttribute("aria-"+_22f);}}});}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(_230,_231){if(_230&&dojo.isFunction(_230._onConnect)){_230._onConnect(_231);}});dijit._connectOnUseEventHandler=function(_232){};(function(){var _233={};var _234=function(dc){if(!_233[dc]){var r=[];var _237;var _238=dojo.getObject(dc).prototype;for(var _239 in _238){if(dojo.isFunction(_238[_239])&&(_237=_239.match(/^_set([a-zA-Z]*)Attr$/))&&_237[1]){r.push(_237[1].charAt(0).toLowerCase()+_237[1].substr(1));}}_233[dc]=r;}return _233[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(_23a,_23b){this.create(_23a,_23b);},create:function(_23c,_23d){this.srcNodeRef=dojo.byId(_23d);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(_23c){this.params=_23c;dojo.mixin(this,_23c);}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 _23f=this.srcNodeRef;if(_23f&&_23f.parentNode){_23f.parentNode.replaceChild(this.domNode,_23f);}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 _240=function(attr,_242){if((_242.params&&attr in _242.params)||_242[attr]){_242.attr(attr,_242[attr]);}};for(var attr in this.attributeMap){_240(attr,this);}dojo.forEach(_234(this.declaredClass),function(a){if(!(a in this.attributeMap)){_240(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_245){this.destroyDescendants(_245);this.destroy(_245);},destroy:function(_246){this.uninitialize();dojo.forEach(this._connects,function(_247){dojo.forEach(_247,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_246);dijit.registry.remove(this.id);},destroyRendering:function(_249){if(this.bgIframe){this.bgIframe.destroy(_249);delete this.bgIframe;}if(this.domNode){if(_249){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_249){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_24a){dojo.forEach(this.getChildren(),function(_24b){if(_24b.destroyRecursive){_24b.destroyRecursive(_24a);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_24d){if(_24d in this._deferredConnects){var _24e=this[this._deferredConnects[_24d]||"domNode"];this.connect(_24e,_24d.toLowerCase(),_24d);delete this._deferredConnects[_24d];}},_setClassAttr:function(_24f){var _250=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_250,this["class"]);this["class"]=_24f;dojo.addClass(_250,_24f);},_setStyleAttr:function(_251){var _252=this[this.attributeMap["style"]||"domNode"];if(dojo.isObject(_251)){dojo.style(_252,_251);}else{if(_252.style.cssText){_252.style.cssText+="; "+_251;}else{_252.style.cssText=_251;}}this["style"]=_251;},setAttribute:function(attr,_254){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_254);},_attrToDom:function(attr,_256){var _257=this.attributeMap[attr];dojo.forEach(dojo.isArray(_257)?_257:[_257],function(_258){var _259=this[_258.node||_258||"domNode"];var type=_258.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_256)){_256=dojo.hitch(this,_256);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_259,attr,_256);break;case "innerHTML":_259.innerHTML=_256;break;case "class":dojo.removeClass(_259,this[attr]);dojo.addClass(_259,_256);break;}},this);this[attr]=_256;},attr:function(name,_25c){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _25f=this._getAttrNames(name);if(args==2){if(this[_25f.s]){return this[_25f.s](_25c)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_25c);}this[name]=_25c;}return this;}else{if(this[_25f.g]){return this[_25f.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,_265,_266){var d=dojo;var dc=dojo.connect;var _269=[];if(_265=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_266);_269.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){_269.push(dc(obj,"onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));}}_265="onclick";}_269.push(dc(obj,_265,this,_266));this._connects.push(_269);return _269;},disconnect:function(_26e){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_26e){dojo.forEach(_26e,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(_270,_271){if(_270["declaredClass"]&&_270["addChild"]){_270.addChild(this,_271);}else{dojo.place(this.domNode,_270,_271);}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 _274=dijit.byId(id);return _274.isContainer?_274:null;}}return null;},_getSibling:function(_275){var node=this.domNode;do{node=node[_275+"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(_279,_27a){var _27b=this.containerNode;if(_27a&&typeof _27a=="number"){var _27c=this.getChildren();if(_27c&&_27c.length>=_27a){_27b=_27c[_27a-1].domNode;_27a="after";}}dojo.place(_279.domNode,_27b,_27a);if(this._started&&!_279._started){_279.startup();}},removeChild:function(_27d){if(typeof _27d=="number"&&_27d>0){_27d=this.getChildren()[_27d];}if(!_27d||!_27d.domNode){return;}var node=_27d.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(_281){dojo.forEach(this.getChildren(),function(_282){_282.destroyRecursive(_281);});},_getSiblingOfChild:function(_283,dir){var node=_283.domNode;var _286=(dir>0?"nextSibling":"previousSibling");do{node=node[_286];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_287){var _288=this.getChildren();for(var i=0,c;c=_288[i];i++){if(c==_287){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(_28b){_28b.startup();});if(!this.getParent||!this.getParent()){this.resize();this._viewport=dijit.getViewport();this.connect(dojo.global,"onresize",function(){var _28c=dijit.getViewport();if(_28c.w!=this._viewport.w||_28c.h!=this._viewport.h){this._viewport=_28c;this.resize();}});}this.inherited(arguments);},resize:function(_28d,_28e){var node=this.domNode;if(_28d){dojo.marginBox(node,_28d);if(_28d.t){node.style.top=_28d.t+"px";}if(_28d.l){node.style.left=_28d.l+"px";}}var mb=_28e||{};dojo.mixin(mb,_28d||{});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(_296){dojo.addClass(_296.domNode,this.baseClass+"-child");if(_296.baseClass){dojo.addClass(_296.domNode,this.baseClass+"-"+_296.baseClass);}},addChild:function(_297,_298){this.inherited(arguments);if(this._started){this._setupChild(_297);}},removeChild:function(_299){dojo.removeClass(_299.domNode,this.baseClass+"-child");if(_299.baseClass){dojo.removeClass(_299.domNode,this.baseClass+"-"+_299.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 _29f=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_2a2,dim){_2a2.resize?_2a2.resize(dim):dojo.marginBox(_2a2.domNode,dim);dojo.mixin(_2a2,dojo.marginBox(_2a2.domNode));dojo.mixin(_2a2,dim);};dijit.layout.layoutChildren=function(_2a4,dim,_2a6){dim=dojo.mixin({},dim);dojo.addClass(_2a4,"dijitLayoutContainer");_2a6=dojo.filter(_2a6,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_2a6,function(item){return item.layoutAlign=="client";}));dojo.forEach(_2a6,function(_2a9){var elm=_2a9.domNode,pos=_2a9.layoutAlign;var _2ac=elm.style;_2ac.left=dim.l+"px";_2ac.top=dim.t+"px";_2ac.bottom=_2ac.right="auto";dojo.addClass(elm,"dijitAlign"+_29f(pos));if(pos=="top"||pos=="bottom"){size(_2a9,{w:dim.w});dim.h-=_2a9.h;if(pos=="top"){dim.t+=_2a9.h;}else{_2ac.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_2a9,{h:dim.h});dim.w-=_2a9.w;if(pos=="left"){dim.l+=_2a9.w;}else{_2ac.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_2a9,dim);}}}});};})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_2b6,map,_2b8,_2b9){_2b9=_2b9||dojo.global;_2b8=(!_2b8)?function(v){return v;}:dojo.hitch(_2b9,_2b8);return _2b6.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_2bb,key,_2bd){var _2be=dojo.getObject(key,false,map);if(_2bd){_2be=dojo.getObject(_2bd,false,_2b9).call(_2b9,_2be,key);}return _2b8(_2be,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.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _2c1=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,_2c5){if(_2c5){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(_2cd,node){dojo.mixin(this,_2cd||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_2c1++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_2d0){if(undefined!==cont){this.content=cont;}if(_2d0){this._mixin(_2d0);}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 _2d2=this.onContentError(e);try{node.innerHTML=_2d2;}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 _2d5=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_2d5){cont=_2d5[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(_2d7){var _2d8={},key;for(key in _2d7){if(key in _2d8){continue;}this[key]=_2d7[key];}},_parse:function(){var _2da=this.node;try{this.parseResults=dojo.parser.parse(_2da,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_2dd){var _2de=this["on"+type+"Error"].call(this,err);if(_2dd){console.error(_2dd,err);}else{if(_2de){dojo.html._setNodeContent(this.node,_2de,true);}}}});dojo.html.set=function(node,cont,_2e1){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_2e1){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_2e1,{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(_2e3,_2e4,_2e5){_2e5=dojo.i18n.normalizeLocale(_2e5);var _2e6=_2e5.split("-");var _2e7=[_2e3,"nls",_2e4].join(".");var _2e8=dojo._loadedModules[_2e7];if(_2e8){var _2e9;for(var i=_2e6.length;i>0;i--){var loc=_2e6.slice(0,i).join("_");if(_2e8[loc]){_2e9=_2e8[loc];break;}}if(!_2e9){_2e9=_2e8.ROOT;}if(_2e9){var _2ec=function(){};_2ec.prototype=_2e9;return new _2ec();}}throw new Error("Bundle not found: "+_2e4+" in "+_2e3+" , locale="+_2e5);};dojo.i18n.normalizeLocale=function(_2ed){var _2ee=_2ed?_2ed.toLowerCase():dojo.locale;if(_2ee=="root"){_2ee="ROOT";}return _2ee;};dojo.i18n._requireLocalization=function(_2ef,_2f0,_2f1,_2f2){var _2f3=dojo.i18n.normalizeLocale(_2f1);var _2f4=[_2ef,"nls",_2f0].join(".");var _2f5="";if(_2f2){var _2f6=_2f2.split(",");for(var i=0;i<_2f6.length;i++){if(_2f3["indexOf"](_2f6[i])==0){if(_2f6[i].length>_2f5.length){_2f5=_2f6[i];}}}if(!_2f5){_2f5="ROOT";}}var _2f8=_2f2?_2f5:_2f3;var _2f9=dojo._loadedModules[_2f4];var _2fa=null;if(_2f9){if(dojo.config.localizationComplete&&_2f9._built){return;}var _2fb=_2f8.replace(/-/g,"_");var _2fc=_2f4+"."+_2fb;_2fa=dojo._loadedModules[_2fc];}if(!_2fa){_2f9=dojo["provide"](_2f4);var syms=dojo._getModuleSymbols(_2ef);var _2fe=syms.concat("nls").join("/");var _2ff;dojo.i18n._searchLocalePath(_2f8,_2f2,function(loc){var _301=loc.replace(/-/g,"_");var _302=_2f4+"."+_301;var _303=false;if(!dojo._loadedModules[_302]){dojo["provide"](_302);var _304=[_2fe];if(loc!="ROOT"){_304.push(loc);}_304.push(_2f0);var _305=_304.join("/")+".js";_303=dojo._loadPath(_305,null,function(hash){var _307=function(){};_307.prototype=_2ff;_2f9[_301]=new _307();for(var j in hash){_2f9[_301][j]=hash[j];}});}else{_303=true;}if(_303&&_2f9[_301]){_2ff=_2f9[_301];}else{_2f9[_301]=_2ff;}if(_2f2){return true;}});}if(_2f2&&_2f3!=_2f5){_2f9[_2f3.replace(/-/g,"_")]=_2f9[_2f5.replace(/-/g,"_")];}};(function(){var _309=dojo.config.extraLocale;if(_309){if(!_309 instanceof Array){_309=[_309];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_30d,_30e){req(m,b,_30d,_30e);if(_30d){return;}for(var i=0;i<_309.length;i++){req(m,b,_309[i],_30e);}};}})();dojo.i18n._searchLocalePath=function(_310,down,_312){_310=dojo.i18n.normalizeLocale(_310);var _313=_310.split("-");var _314=[];for(var i=_313.length;i>0;i--){_314.push(_313.slice(0,i).join("-"));}_314.push(false);if(down){_314.reverse();}for(var j=_314.length-1;j>=0;j--){var loc=_314[j]||"ROOT";var stop=_312(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_319,_31a){function _31b(_31c){_31c=dojo.i18n.normalizeLocale(_31c);dojo.i18n._searchLocalePath(_31c,true,function(loc){for(var i=0;i<_31a.length;i++){if(_31a[i]==loc){dojo["require"](_319+"_"+loc);return true;}}return false;});};_31b();var _31f=dojo.config.extraLocale||[];for(var i=0;i<_31f.length;i++){_31b(_31f[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 _321=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_321);this.errorMessage=dojo.string.substitute(this.errorMessage,_321);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(!dijit.hasWaiRole(this.domNode)){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(_322){_322.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 _323=dojo.query(">",this.containerNode),_324=_323.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_326=dojo.filter(_324.map(dijit.byNode),function(_327){return _327&&_327.domNode&&_327.resize;});if(_323.length==_324.length&&_326.length==1){this._singleChild=_326[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(_32c){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 _333={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_333,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_333));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 _338=this._contentSetter;dojo.forEach(this.getChildren(),function(_339){if(_339.destroyRecursive){_339.destroyRecursive();}});if(_338){dojo.forEach(_338.parseResults,function(_33a){if(_33a.destroyRecursive&&_33a.domNode&&_33a.domNode.parentNode==dojo.body()){_33a.destroyRecursive();}});delete _338.parseResults;}dojo.html._emptyNode(this.containerNode);},_setContent:function(cont,_33c){this.destroyDescendants();delete this._singleChild;var _33d=this._contentSetter;if(!(_33d&&_33d instanceof dojo.html._ContentSetter)){_33d=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _33f=this.onContentError(e);try{this.containerNode.innerHTML=_33f;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _340=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_33d,_340);_33d.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_33c){dojo.forEach(this.getChildren(),function(_341){_341.startup();});if(this.doLayout){this._checkIfSingleChild();}this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_344){var _345=this["on"+type+"Error"].call(this,err);if(_344){console.error(_344,err);}else{if(_345){this._setContent(_345,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(_347){if(_347.resize){_347.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_349){},onDownloadError:function(_34a){return this.errorMessage;},onDownloadEnd:function(){}});}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 _34c=this.declaredClass,_34d=this;return dojo.string.substitute(tmpl,this,function(_34e,key){if(key.charAt(0)=="!"){_34e=dojo.getObject(key.substr(1),_34d);}if(typeof _34e=="undefined"){throw new Error(_34c+" template:"+key);}if(_34e==null){return "";}return key.charAt(0)=="!"?_34e:_34e.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _350=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_350)){node=dojo._toDom(this._stringRepl(_350));}else{node=_350.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(_355){var dest=this.containerNode;if(_355&&dest){while(_355.hasChildNodes()){dest.appendChild(_355.firstChild);}}},_attachTemplateNodes:function(_357,_358){_358=_358||function(n,p){return n.getAttribute(p);};var _35b=dojo.isArray(_357)?_357:(_357.all||_357.getElementsByTagName("*"));var x=dojo.isArray(_357)?0:-1;for(;x<_35b.length;x++){var _35d=(x==-1)?_357:_35b[x];if(this.widgetsInTemplate&&_358(_35d,"dojoType")){continue;}var _35e=_358(_35d,"dojoAttachPoint");if(_35e){var _35f,_360=_35e.split(/\s*,\s*/);while((_35f=_360.shift())){if(dojo.isArray(this[_35f])){this[_35f].push(_35d);}else{this[_35f]=_35d;}}}var _361=_358(_35d,"dojoAttachEvent");if(_361){var _362,_363=_361.split(/\s*,\s*/);var trim=dojo.trim;while((_362=_363.shift())){if(_362){var _365=null;if(_362.indexOf(":")!=-1){var _366=_362.split(":");_362=trim(_366[0]);_365=trim(_366[1]);}else{_362=trim(_362);}if(!_365){_365=_362;}this.connect(_35d,_362,_365);}}}var role=_358(_35d,"waiRole");if(role){dijit.setWaiRole(_35d,role);}var _368=_358(_35d,"waiState");if(_368){dojo.forEach(_368.split(/\s*,\s*/),function(_369){if(_369.indexOf("-")!=-1){var pair=_369.split("-");dijit.setWaiState(_35d,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_36b,_36c,_36d){var _36e=dijit._Templated._templateCache;var key=_36c||_36b;var _370=_36e[key];if(_370){if(!_370.ownerDocument||_370.ownerDocument==dojo.doc){return _370;}dojo.destroy(_370);}if(!_36c){_36c=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_36b)));}_36c=dojo.string.trim(_36c);if(_36d||_36c.match(/\$\{([^\}]+)\}/g)){return (_36e[key]=_36c);}else{return (_36e[key]=dojo._toDom(_36c));}};dijit._Templated._sanitizeTemplateString=function(_371){if(_371){_371=_371.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _372=_371.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_372){_371=_372[1];}}else{_371="";}return _371;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _373=dijit._Templated._templateCache;for(var key in _373){var _375=_373[key];if(!isNaN(_375.nodeType)){dojo.destroy(_375);}delete _373[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}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(_376,_377,_378){if(this.aroundNode&&this.aroundNode===_377){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_376;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _379={};var ltr=this.isLeftToRight();dojo.forEach((_378&&_378.length)?_378:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_379[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_379[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_379[ltr?"BL":"BR"]=ltr?"TL":"TR";_379[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_379[ltr?"TL":"TR"]=ltr?"BL":"BR";_379[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_377,_379,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_377;},orient:function(node,_37e,_37f){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"}[_37e+"-"+_37f];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_380){if(this._onDeck&&this._onDeck[1]==_380){this._onDeck=null;}else{if(this.aroundNode===_380){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(_381,_382,_383){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_381,_382,_383);};dijit.hideTooltip=function(_384){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_384);};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(_388){this.connect(node,_388.toLowerCase(),"_"+_388);},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 _38e=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_38e);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_390){_390=_390||this._connectNodes[0];if(!_390){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_390,this.position);this._connectNode=_390;},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["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(_393){return this.showAnim.play(_393||0);},hide:function(_394){return this.hideAnim.play(_394||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_396={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _399=function(_39a){this._index=-1;this._animations=_39a||[];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(_399,{_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(_39c,_39d){if(!this._current){this._current=this._animations[this._index=0];}if(!_39d&&this._current.status()=="playing"){return this;}var _39e=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_39f=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_3a1=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_39e);d.disconnect(_39f);d.disconnect(_3a1);});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(_3a5,_3a6){this.pause();var _3a7=this.duration*_3a5;this._current=null;d.some(this._animations,function(a){if(a.duration<=_3a7){this._current=a;return true;}_3a7-=a.duration;return false;});if(this._current){this._current.gotoPercent(_3a7/this._current.duration,_3a6);}return this;},stop:function(_3a9){if(this._current){if(_3a9){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(_399,_396);dojo.fx.chain=function(_3ac){return new _399(_3ac);};var _3ad=function(_3ae){this._animations=_3ae||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_3ae,function(a){var _3b0=a.duration;if(a.delay){_3b0+=a.delay;}if(this.duration<_3b0){this.duration=_3b0;}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(_3ad,{_doAction:function(_3b3,args){d.forEach(this._animations,function(a){a[_3b3].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_3b6,args){var t=this._pseudoAnimation;t[_3b6].apply(t,args);},play:function(_3b9,_3ba){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(_3bb,_3bc){var ms=this.duration*_3bb;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_3bc);});this._call("gotoPercent",arguments);return this;},stop:function(_3bf){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(_3ad,_396);dojo.fx.combine=function(_3c0){return new _3ad(_3c0);};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 _3c6=d.style(node,"height");return Math.max(_3c6,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.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(_3d6){this.disabled=_3d6;dojo.attr(this.focusNode,"disabled",_3d6);dijit.setWaiState(this.focusNode,"disabled",_3d6);if(_3d6){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_3d7){dojo.deprecated("setDisabled("+_3d7+") is deprecated. Use attr('disabled',"+_3d7+") instead.","","2.0");this.attr("disabled",_3d7);},_onFocus:function(e){if(this.scrollOnFocus){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_3d9){var _3da=_3d9.currentTarget;if(_3da&&_3da.getAttribute){this.stateModifier=_3da.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_3d9.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 _3db=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_3db);});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 _3dc=this.baseClass.split(" ");function _3dd(_3de){_3dc=_3dc.concat(dojo.map(_3dc,function(c){return c+_3de;}),"dijit"+_3de);};if(this.checked){_3dd("Checked");}if(this.state){_3dd(this.state);}if(this.selected){_3dd("Selected");}if(this.disabled){_3dd("Disabled");}else{if(this.readOnly){_3dd("ReadOnly");}else{if(this._active){_3dd(this.stateModifier+"Active");}else{if(this._focused){_3dd("Focused");}if(this._hovering){_3dd(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_3e1={};dojo.forEach(tn.className.split(" "),function(c){_3e1[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _3e1[c];});}dojo.forEach(_3dc,function(c){_3e1[c]=true;});var _3e5=[];for(var c in _3e1){_3e5.push(c);}tn.className=_3e5.join(" ");this._stateClasses=_3dc;},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(_3e9){},_onChangeActive:false,_handleOnChange:function(_3ea,_3eb){this._lastValue=_3ea;if(this._lastValueReported==undefined&&(_3eb===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_3ea;}if((this.intermediateChanges||_3eb||_3eb===undefined)&&((typeof _3ea!=typeof this._lastValueReported)||this.compare(_3ea,this._lastValueReported)!=0)){this._lastValueReported=_3ea;if(this._onChangeActive){this.onChange(_3ea);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_3ec){dojo.deprecated("dijit.form._FormWidget:setValue("+_3ec+") is deprecated.  Use attr('value',"+_3ec+") instead.","","2.0");this.attr("value",_3ec);},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(_3ef,_3f0){this.value=_3ef;this._handleOnChange(_3ef,_3f0);},_getValueAttr:function(_3f1){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 _3f7=dijit.byNode(node);if(_3f7&&typeof _3f7._onSubmit=="function"){_3f7._onSubmit(e);break;}}}}},_setValueAttr:function(_3f8){var attr=this.attributeMap.value||"";if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){if(_3f8!=this.value){}}},_fillContent:function(_3fa){if(_3fa&&!("label" in this.params)){this.attr("label",_3fa.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(_3fd){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_3fd);},_setLabelAttr:function(_3fe){this.containerNode.innerHTML=this.label=_3fe;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 _3ff=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_3ff[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _400=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_400);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 _403=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_403||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 _407=this.dropDown;if(!_407){return;}if(!this._opened){if(_407.href&&!_407.isLoaded){var self=this;var _409=dojo.connect(_407,"onLoad",function(){dojo.disconnect(_409);self._openDropDown();});_407.refresh();return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _40a=this.dropDown;var _40b=_40a.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_40a,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(){_40a.domNode.style.width=_40b;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_40a.domNode.offsetWidth){var _40d=null;if(!this.isLeftToRight()){_40d=_40a.domNode.parentNode;var _40e=_40d.offsetLeft+_40d.offsetWidth;}dojo.marginBox(_40a.domNode,{w:this.domNode.offsetWidth});if(_40d){_40d.style.left=_40e-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_40a.focus){_40a.focus();}},_closeDropDown:function(_40f){if(this._opened){dijit.popup.close(this.dropDown);if(_40f){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(_417){this.checked=_417;dojo.attr(this.focusNode||this.domNode,"checked",_417);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_417);this._setStateClass();this._handleOnChange(_417,true);},setChecked:function(_418){dojo.deprecated("setChecked("+_418+") is deprecated. Use attr('checked',"+_418+") instead.","","2.0");this.attr("checked",_418);},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(_419,_41a){var _41b=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_419,function(code){_41b[code]=prev;});dojo.forEach(_41a,function(code){_41b[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(_420,_421){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_420);},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 _422=this._getNextFocusableChild(this.focusedChild,1);if(_422.getFocalNodes){this.focusChild(_422,_422.getFocalNodes()[0]);}else{this.focusChild(_422);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _423=this._getNextFocusableChild(this.focusedChild,-1);if(_423.getFocalNodes){var _424=_423.getFocalNodes();this.focusChild(_423,_424[_424.length-1]);}else{this.focusChild(_423);}},focusChild:function(_425,node){if(_425){if(this.focusedChild&&_425!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_425;if(node&&_425.focusFocalNode){_425.focusFocalNode(node);}else{_425.focus();}}},_startupChild:function(_427){if(_427.getFocalNodes){dojo.forEach(_427.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_427.focusNode||_427.domNode;if(_427.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 _430=dijit.getEnclosingWidget(evt.target);if(_430&&_430.isFocusable()){this.focusedChild=_430;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){dojo.stopEvent(evt);},_onChildBlur:function(_432){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_433,dir){if(_433){_433=this._getSiblingOfChild(_433,dir);}var _435=this.getChildren();for(var i=0;i<_435.length;i++){if(!_433){_433=_435[(dir>0)?0:(_435.length-1)];}if(_433.isFocusable()){return _433;}_433=this._getSiblingOfChild(_433,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(_437){if(_437&&!("label" in this.params)){this.attr("label",_437.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(_43a){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_43a);},setLabel:function(_43b){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_43b);},setDisabled:function(_43c){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_43c);},_setDisabledAttr:function(_43d){this.disabled=_43d;dojo[_43d?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_43d?"true":"false");},_setAccelKeyAttr:function(_43e){this.accelKey=_43e;this.accelKeyNode.style.display=_43e?"":"none";this.accelKeyNode.innerHTML=_43e;dojo.attr(this.containerNode,"colSpan",_43e?"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 _43f=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_43f[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(_441){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_441);dijit.setWaiState(this.domNode,"checked",_441);this.checked=_441;},onChange:function(_442){},_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(_444){_444.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_445){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _447=this._getTopMenu();if(_447&&_447._isMenuBar){_447.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 _44e=this.focusedChild;var _44f=_44e.popup;if(_44f.isShowingNow){return;}_44f.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_44f,around:_44e.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"}),onCancel:function(){dijit.popup.close(_44f);_44e.focus();self.currentPopup=null;},onExecute:dojo.hitch(this,"_onDescendantExecute")});this.currentPopup=_44f;if(_44f.focus){setTimeout(dojo.hitch(_44f,"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(_455){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_455))||dijit.Menu._iframeContentDocument(_455)["__parent__"]||(_455.name&&dojo.doc.frames[_455.name])||null;return win;},_iframeContentDocument:function(_457){var doc=_457.contentDocument||(_457.contentWindow&&_457.contentWindow.document)||(_457.name&&dojo.doc.frames[_457.name]&&dojo.doc.frames[_457.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(_45c){var node=dojo.byId(_45c);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 _466=dojo.coords(e.target,true);x=_466.x+10;y=_466.y+10;}var self=this;var _468=dijit.getFocus(this);function _469(){dijit.focus(_468);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:_469,onCancel:_469,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,_46d){var _46e=dojo.doc.createElement("span");this.domNode.appendChild(_46e);var cls=dojo.getObject(this.buttonWidget);var _470=new cls({label:page.title,closeButton:page.closable},_46e);this.addChild(_470,_46d);this.pane2button[page]=_470;page.controlButton=_470;var _471=[];_471.push(dojo.connect(_470,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_471.push(dojo.connect(_470,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _472=dojo.i18n.getLocalization("dijit","common");var _473=new dijit.Menu({targetNodeIds:[_470.id],id:_470.id+"_Menu"});var _474=new dijit.MenuItem({label:_472.itemClose});_471.push(dojo.connect(_474,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_473.addChild(_474);this.pane2menu[page]=_473;}this.pane2handles[page]=_471;if(!this._currentChild){_470.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 _477=this.pane2button[page];if(_477){_477.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _479=this.pane2button[this._currentChild];_479.attr("checked",false);_479.focusNode.setAttribute("tabIndex","-1");}var _47a=this.pane2button[page];_47a.attr("checked",true);this._currentChild=page;_47a.focusNode.setAttribute("tabIndex","0");var _47b=dijit.byId(this.containerId);dijit.setWaiState(_47b.containerNode,"labelledby",_47a.id);},onButtonClick:function(page){var _47d=dijit.byId(this.containerId);_47d.selectChild(page);},onCloseButtonClick:function(page){var _47f=dijit.byId(this.containerId);_47f.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_481){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_481=!_481;}var _482=this.getChildren();var _483=dojo.indexOf(_482,this.pane2button[this._currentChild]);var _484=_481?1:_482.length-1;return _482[(_483+_484)%_482.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _486=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_486=false;}break;case k.PAGE_UP:if(e.ctrlKey){_486=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_486=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_486=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(_486!==null){this.adjacent(_486).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 _48c=this.getChildren();dojo.forEach(_48c,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_48c,function(_48d){if(_48d.selected){this.selectedChildWidget=_48d;}return _48d.selected;},this);}var _48e=this.selectedChildWidget;if(!_48e&&_48c[0]){_48e=this.selectedChildWidget=_48c[0];_48e.selected=true;}dojo.publish(this.id+"-startup",[{children:_48c,selected:_48e}]);if(_48e){this._showChild(_48e);}this.inherited(arguments);},_setupChild:function(_48f){this.inherited(arguments);dojo.removeClass(_48f.domNode,"dijitVisible");dojo.addClass(_48f.domNode,"dijitHidden");_48f.domNode.title="";return _48f;},addChild:function(_490,_491){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_490,_491]);this.layout();if(!this.selectedChildWidget){this.selectChild(_490);}}},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 _493=this.getChildren();if(_493.length){this.selectChild(_493[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(_495,_496){if(_496){this._hideChild(_496);}this._showChild(_495);if(this.doLayout&&_495.resize){_495.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_497){var _498=this.getChildren();var _499=dojo.indexOf(_498,this.selectedChildWidget);_499+=_497?1:_498.length-1;return _498[_499%_498.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 _49c=this.getChildren();page.isFirstChild=(page==_49c[0]);page.isLastChild=(page==_49c[_49c.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 _49f=page.onClose(this,page);if(_49f){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 _4a0=this.selectedChildWidget.containerNode.style;_4a0.display="";_4a0.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 _4a3=this.selectedChildWidget;var _4a4=0;dojo.forEach(this.getChildren(),function(_4a5){_4a4+=_4a5._buttonWidget.getTitleHeight();});var _4a6=this._contentBox;this._verticalSpace=_4a6.h-_4a4;this._containerContentBox={h:this._verticalSpace,w:_4a6.w};if(_4a3){_4a3.resize(this._containerContentBox);}},_setupChild:function(_4a7){_4a7._buttonWidget=new dijit.layout._AccordionButton({contentWidget:_4a7,title:_4a7.title,id:_4a7.id+"_button",parent:this});dojo.place(_4a7._buttonWidget.domNode,_4a7.domNode,"before");this.inherited(arguments);},removeChild:function(_4a8){_4a8._buttonWidget.destroy();this.inherited(arguments);},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_4a9){return _4a9.declaredClass!="dijit.layout._AccordionButton";});},destroy:function(){dojo.forEach(this.getChildren(),function(_4aa){_4aa._buttonWidget.destroy();});this.inherited(arguments);},_transition:function(_4ab,_4ac){if(this._inTransition){return;}this._inTransition=true;var _4ad=[];var _4ae=this._verticalSpace;if(_4ab){_4ab._buttonWidget.setSelected(true);this._showChild(_4ab);if(this.doLayout&&_4ab.resize){_4ab.resize(this._containerContentBox);}var _4af=_4ab.domNode;dojo.addClass(_4af,"dijitVisible");dojo.removeClass(_4af,"dijitHidden");var _4b0=_4af.style.overflow;_4af.style.overflow="hidden";_4ad.push(dojo.animateProperty({node:_4af,duration:this.duration,properties:{height:{start:1,end:this._getTargetHeight(_4af)}},onEnd:dojo.hitch(this,function(){_4af.style.overflow=_4b0;delete this._inTransition;})}));}if(_4ac){_4ac._buttonWidget.setSelected(false);var _4b1=_4ac.domNode,_4b2=_4b1.style.overflow;_4b1.style.overflow="hidden";_4ad.push(dojo.animateProperty({node:_4b1,duration:this.duration,properties:{height:{start:this._getTargetHeight(_4b1),end:1}},onEnd:function(){dojo.addClass(_4b1,"dijitHidden");dojo.removeClass(_4b1,"dijitVisible");_4b1.style.overflow=_4b2;if(_4ac.onHide){_4ac.onHide();}}}));}dojo.fx.combine(_4ad).play();},_onKeyPress:function(e,_4b4){if(this._inTransition||this.disabled||e.altKey||!(_4b4||e.ctrlKey)){if(this._inTransition){dojo.stopEvent(e);}return;}var k=dojo.keys,c=e.charOrCode;if((_4b4&&(c==k.LEFT_ARROW||c==k.UP_ARROW))||(e.ctrlKey&&c==k.PAGE_UP)){this._adjacent(false)._buttonWidget._onTitleClick();dojo.stopEvent(e);}else{if((_4b4&&(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 _4b7=dojo.attr(this.domNode,"id").replace(" ","_");dojo.attr(this.titleTextNode,"id",_4b7+"_title");dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));},getTitleHeight:function(){return dojo.marginBox(this.titleNode).h;},_onTitleClick:function(){var _4b8=this.getParent();if(!_4b8._inTransition){_4b8.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(_4ba){this.selected=_4ba;dojo[(_4ba?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");dijit.setWaiState(this.focusNode,"expanded",_4ba);dijit.setWaiState(this.focusNode,"selected",_4ba);this.focusNode.setAttribute("tabIndex",_4ba?"0":"-1");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionFocused");},setSelected:function(_4bc){this._setSelectedState(_4bc);if(_4bc){var cw=this.contentWidget;if(cw.onSelected){cw.onSelected();}}}});}if(!dojo._hasResource["dijit.layout.TabController"]){dojo._hasResource["dijit.layout.TabController"]=true;dojo.provide("dijit.layout.TabController");dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _4be=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_4be=Math.max(_4be,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_4be+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span><img class =\"dijitTabButtonSpacer\" src=\"${_blankGif}\" />\n\t        <span class=\"closeButton\" dojoAttachPoint='closeNode'\n\t        \t\tdojoAttachEvent='onclick: onClickCloseButton, onmouseenter: _onCloseButtonEnter, onmouseleave: _onCloseButtonLeave'>\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeIcon' class='closeImage' waiRole=\"presentation\"/>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </span>\n        </div>\n    </div>\n</div>\n",scrollOnFocus:false,postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");var _4c1=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_4c1.itemClose);dojo.attr(this.closeIcon,"title",_4c1.itemClose);}}else{this.closeNode.style.display="none";}this.inherited(arguments);dojo.setSelectable(this.containerNode,false);},_onCloseButtonEnter:function(){dojo.addClass(this.closeNode,"closeButton-hover");},_onCloseButtonLeave:function(){dojo.removeClass(this.closeNode,"closeButton-hover");}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:null,templateString:"<div class=\"dijitTabContainer\">\n\t<div dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n",_controllerWidget:"dijit.layout.TabController",postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.inherited(arguments);},postCreate:function(){this.inherited(arguments);var _4c2=dojo.getObject(this._controllerWidget);this.tablist=new _4c2({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout")},this.tablistNode);if(this.tabStrip){dojo.addClass(this.tablist.domNode,this.baseClass+"Strip");}if(!this.doLayout){dojo.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.domNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this.doLayout){return;}var _4c4=this.tabPosition.replace(/-h/,"");var _4c5=[{domNode:this.tablist.domNode,layoutAlign:_4c4},{domNode:this.tablistSpacer,layoutAlign:_4c4},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_4c5);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_4c5[2]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_4c6){var _4c7={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};var _4c8=dojo.cldr.supplemental._region(_4c6);var dow=_4c7[_4c8];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_4ca){_4ca=dojo.i18n.normalizeLocale(_4ca);var tags=_4ca.split("-");var _4cc=tags[1];if(!_4cc){_4cc={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_4cc.length==4){_4cc=tags[2];}}return _4cc;};dojo.cldr.supplemental.getWeekend=function(_4cd){var _4ce={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};var _4cf={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};var _4d0=dojo.cldr.supplemental._region(_4cd);var _4d1=_4ce[_4d0];var end=_4cf[_4d0];if(_4d1===undefined){_4d1=6;}if(end===undefined){end=0;}return {start:_4d1,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_4d3){var _4d4=_4d3.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_4d4==1&&dojo.date.isLeapYear(_4d3)){return 29;}return days[_4d4];};dojo.date.isLeapYear=function(_4d6){var year=_4d6.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_4d8){var str=_4d8.toString();var tz="";var _4db;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_4db=str.match(pat))){tz=_4db[1];}else{str=_4d8.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_4db=str.match(pat))){tz=_4db[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_4de,_4df,_4e0){_4de=new Date(Number(_4de));_4df=new Date(Number(_4df||new Date()));if(_4e0!=="undefined"){if(_4e0=="date"){_4de.setHours(0,0,0,0);_4df.setHours(0,0,0,0);}else{if(_4e0=="time"){_4de.setFullYear(0,0,0);_4df.setFullYear(0,0,0);}}}if(_4de>_4df){return 1;}if(_4de<_4df){return -1;}return 0;};dojo.date.add=function(date,_4e2,_4e3){var sum=new Date(Number(date));var _4e5=false;var _4e6="Date";switch(_4e2){case "day":break;case "weekday":var days,_4e8;var mod=_4e3%5;if(!mod){days=(_4e3>0)?5:-5;_4e8=(_4e3>0)?((_4e3-5)/5):((_4e3+5)/5);}else{days=mod;_4e8=parseInt(_4e3/5);}var strt=date.getDay();var adj=0;if(strt==6&&_4e3>0){adj=1;}else{if(strt==0&&_4e3<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_4e3>0)?2:-2;}_4e3=(7*_4e8)+days+adj;break;case "year":_4e6="FullYear";_4e5=true;break;case "week":_4e3*=7;break;case "quarter":_4e3*=3;case "month":_4e5=true;_4e6="Month";break;case "hour":case "minute":case "second":case "millisecond":_4e6="UTC"+_4e2.charAt(0).toUpperCase()+_4e2.substring(1)+"s";}if(_4e6){sum["set"+_4e6](sum["get"+_4e6]()+_4e3);}if(_4e5&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_4ed,_4ee,_4ef){_4ee=_4ee||new Date();_4ef=_4ef||"day";var _4f0=_4ee.getFullYear()-_4ed.getFullYear();var _4f1=1;switch(_4ef){case "quarter":var m1=_4ed.getMonth();var m2=_4ee.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_4f0*4);_4f1=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_4ed,_4ee,"day"));var _4f7=parseInt(dojo.date.difference(_4ed,_4ee,"week"));var mod=days%7;if(mod==0){days=_4f7*5;}else{var adj=0;var aDay=_4ed.getDay();var bDay=_4ee.getDay();_4f7=parseInt(days/7);mod=days%7;var _4fc=new Date(_4ed);_4fc.setDate(_4fc.getDate()+(_4f7*7));var _4fd=_4fc.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_4fd+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_4fd+mod)<0:adj=2;}}}days+=adj;days-=(_4f7*2);}_4f1=days;break;case "year":_4f1=_4f0;break;case "month":_4f1=(_4ee.getMonth()-_4ed.getMonth())+(_4f0*12);break;case "week":_4f1=parseInt(dojo.date.difference(_4ed,_4ee,"day")/7);break;case "day":_4f1/=24;case "hour":_4f1/=60;case "minute":_4f1/=60;case "second":_4f1/=1000;case "millisecond":_4f1*=_4ee.getTime()-_4ed.getTime();}return Math.round(_4f1);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function _4fe(_4ff,_500,_501,_502){return _502.replace(/([a-z])\1*/ig,function(_503){var s,pad;var c=_503.charAt(0);var l=_503.length;var _508=["abbr","wide","narrow"];switch(c){case "G":s=_500[(l<4)?"eraAbbr":"eraNames"][_4ff.getFullYear()<0?0:1];break;case "y":s=_4ff.getFullYear();switch(l){case 1:break;case 2:if(!_501){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_4ff.getMonth()+1)/3);pad=true;break;case "M":var m=_4ff.getMonth();if(l<3){s=m+1;pad=true;}else{var _50a=["months","format",_508[l-3]].join("-");s=_500[_50a][m];}break;case "w":var _50b=0;s=dojo.date.locale._getWeekOfYear(_4ff,_50b);pad=true;break;case "d":s=_4ff.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_4ff);pad=true;break;case "E":var d=_4ff.getDay();if(l<3){s=d+1;pad=true;}else{var _50d=["days","format",_508[l-3]].join("-");s=_500[_50d][d];}break;case "a":var _50e=(_4ff.getHours()<12)?"am":"pm";s=_500[_50e];break;case "h":case "H":case "K":case "k":var h=_4ff.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_4ff.getMinutes();pad=true;break;case "s":s=_4ff.getSeconds();pad=true;break;case "S":s=Math.round(_4ff.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_4ff);if(s){break;}l=4;case "Z":var _510=_4ff.getTimezoneOffset();var tz=[(_510<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_510)/60),2),dojo.string.pad(Math.abs(_510)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_502);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_512,_513){_513=_513||{};var _514=dojo.i18n.normalizeLocale(_513.locale);var _515=_513.formatLength||"short";var _516=dojo.date.locale._getGregorianBundle(_514);var str=[];var _518=dojo.hitch(this,_4fe,_512,_516,_513.fullYear);if(_513.selector=="year"){var year=_512.getFullYear();if(_514.match(/^zh|^ja/)){year+="年";}return year;}if(_513.selector!="time"){var _51a=_513.datePattern||_516["dateFormat-"+_515];if(_51a){str.push(_51b(_51a,_518));}}if(_513.selector!="date"){var _51c=_513.timePattern||_516["timeFormat-"+_515];if(_51c){str.push(_51b(_51c,_518));}}var _51d=str.join(" ");return _51d;};dojo.date.locale.regexp=function(_51e){return dojo.date.locale._parseInfo(_51e).regexp;};dojo.date.locale._parseInfo=function(_51f){_51f=_51f||{};var _520=dojo.i18n.normalizeLocale(_51f.locale);var _521=dojo.date.locale._getGregorianBundle(_520);var _522=_51f.formatLength||"short";var _523=_51f.datePattern||_521["dateFormat-"+_522];var _524=_51f.timePattern||_521["timeFormat-"+_522];var _525;if(_51f.selector=="date"){_525=_523;}else{if(_51f.selector=="time"){_525=_524;}else{_525=_523+" "+_524;}}var _526=[];var re=_51b(_525,dojo.hitch(this,_528,_526,_521,_51f));return {regexp:re,tokens:_526,bundle:_521};};dojo.date.locale.parse=function(_529,_52a){var info=dojo.date.locale._parseInfo(_52a);var _52c=info.tokens,_52d=info.bundle;var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");var _52f=re.exec(_529);if(!_52f){return null;}var _530=["abbr","wide","narrow"];var _531=[1970,0,1,0,0,0,0];var amPm="";var _533=dojo.every(_52f,function(v,i){if(!i){return true;}var _536=_52c[i-1];var l=_536.length;switch(_536.charAt(0)){case "y":if(l!=2&&_52a.strict){_531[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _539=year.substring(0,2)*100;var _53a=Math.min(Number(year.substring(2,4))+20,99);var num=(v<_53a)?_539+v:_539-100+v;_531[0]=num;}else{if(_52a.strict){return false;}_531[0]=v;}}break;case "M":if(l>2){var _53c=_52d["months-format-"+_530[l-3]].concat();if(!_52a.strict){v=v.replace(".","").toLowerCase();_53c=dojo.map(_53c,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_53c,v);if(v==-1){return false;}}else{v--;}_531[1]=v;break;case "E":case "e":var days=_52d["days-format-"+_530[l-3]].concat();if(!_52a.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_531[1]=0;case "d":_531[2]=v;break;case "a":var am=_52a.am||_52d.am;var pm=_52a.pm||_52d.pm;if(!_52a.strict){var _542=/\./g;v=v.replace(_542,"").toLowerCase();am=am.replace(_542,"").toLowerCase();pm=pm.replace(_542,"").toLowerCase();}if(_52a.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_531[3]=v;break;case "m":_531[4]=v;break;case "s":_531[5]=v;break;case "S":_531[6]=v;}return true;});var _543=+_531[3];if(amPm==="p"&&_543<12){_531[3]=_543+12;}else{if(amPm==="a"&&_543==12){_531[3]=0;}}var _544=new Date(_531[0],_531[1],_531[2],_531[3],_531[4],_531[5],_531[6]);if(_52a.strict){_544.setFullYear(_531[0]);}var _545=_52c.join("");if(!_533||(_545.indexOf("M")!=-1&&_544.getMonth()!=_531[1])||(_545.indexOf("d")!=-1&&_544.getDate()!=_531[2])){return null;}return _544;};function _51b(_546,_547,_548,_549){var _54a=function(x){return x;};_547=_547||_54a;_548=_548||_54a;_549=_549||_54a;var _54c=_546.match(/(''|[^'])+/g);var _54d=_546.charAt(0)=="'";dojo.forEach(_54c,function(_54e,i){if(!_54e){_54c[i]="";}else{_54c[i]=(_54d?_548:_547)(_54e);_54d=!_54d;}});return _549(_54c.join(""));};function _528(_550,_551,_552,_553){_553=dojo.regexp.escapeString(_553);if(!_552.strict){_553=_553.replace(" a"," ?a");}return _553.replace(/([a-z])\1*/ig,function(_554){var s;var c=_554.charAt(0);var l=_554.length;var p2="",p3="";if(_552.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s="[12]\\d|"+p2+"[1-9]|3[01]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_552.am||_551.am||"AM";var pm=_552.pm||_551.pm||"PM";if(_552.strict){s=am+"|"+pm;}else{s=am+"|"+pm;if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_550){_550.push(_554);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _55c=[];dojo.date.locale.addCustomFormats=function(_55d,_55e){_55c.push({pkg:_55d,name:_55e});};dojo.date.locale._getGregorianBundle=function(_55f){var _560={};dojo.forEach(_55c,function(desc){var _562=dojo.i18n.getLocalization(desc.pkg,desc.name,_55f);_560=dojo.mixin(_560,_562);},this);return _560;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_565,_566){var _567;var _568=dojo.date.locale._getGregorianBundle(_566);var _569=[item,_565,type];if(_565=="standAlone"){var key=_569.join("-");_567=_568[key];if(_567[0]==1){_567=undefined;}}_569[1]="format";return (_567||_568[_569.join("-")]).concat();};dojo.date.locale.displayPattern=function(_56b,_56c){var _56d="GyMdkHmsSEDFwWahKzYeugAZvcL",_56e=dojo.date.locale._getGregorianBundle(_56c).patternChars;return dojo.map(_56b,function(c){var i=_56d.indexOf(c);return i<0?c:_56e.charAt(i);}).join("");};dojo.date.locale.isWeekend=function(_571,_572){var _573=dojo.cldr.supplemental.getWeekend(_572);var day=(_571||new Date()).getDay();if(_573.end<_573.start){_573.end+=7;if(day<_573.start){day+=7;}}return day>=_573.start&&day<=_573.end;};dojo.date.locale._getDayOfYear=function(_575){return dojo.date.difference(new Date(_575.getFullYear(),0,1,_575.getHours()),_575)+1;};dojo.date.locale._getWeekOfYear=function(_576,_577){if(arguments.length==1){_577=0;}var _578=new Date(_576.getFullYear(),0,1).getDay();var adj=(_578-_577+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_576)+adj-1)/7);if(_578==_577){week++;}return week;};}if(!dojo._hasResource["dijit._Calendar"]){dojo._hasResource["dijit._Calendar"]=true;dojo.provide("dijit._Calendar");dojo.declare("dijit._Calendar",[dijit._Widget,dijit._Templated],{templateString:"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitCalendarMonthLabelSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\t\n",value:new Date(),dayWidth:"narrow",setValue:function(_57b){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");this.attr("value",_57b);},_setValueAttr:function(_57c){if(!this.value||dojo.date.compare(_57c,this.value)){_57c=new Date(_57c);_57c.setHours(1);this.displayMonth=new Date(_57c);if(!this.isDisabledDate(_57c,this.lang)){this.onChange(this.value=_57c);}this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _57f=this.displayMonth;_57f.setDate(1);var _580=_57f.getDay();var _581=dojo.date.getDaysInMonth(_57f);var _582=dojo.date.getDaysInMonth(dojo.date.add(_57f,"month",-1));var _583=new Date();var _584=this.value;var _585=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_585>_580){_585-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_586,i){i+=_585;var date=new Date(_57f);var _589,_58a="dijitCalendar",adj=0;if(i<_580){_589=_582-_580+i+1;adj=-1;_58a+="Previous";}else{if(i>=(_580+_581)){_589=i-_580-_581+1;adj=1;_58a+="Next";}else{_589=i-_580+1;_58a+="Current";}}if(adj){date=dojo.date.add(date,"month",adj);}date.setDate(_589);if(!dojo.date.compare(date,_583,"date")){_58a="dijitCalendarCurrentDate "+_58a;}if(!dojo.date.compare(date,_584,"date")){_58a="dijitCalendarSelectedDate "+_58a;}if(this.isDisabledDate(date,this.lang)){_58a="dijitCalendarDisabledDate "+_58a;}var _58c=this.getClassForDate(date,this.lang);if(_58c){_58a=_58c+" "+_58a;}_586.className=_58a+"Month dijitCalendarDateTemplate";_586.dijitDateValue=date.valueOf();var _58d=dojo.query(".dijitCalendarDateLabel",_586)[0];this._setText(_58d,date.getDate());},this);var _58e=dojo.date.locale.getNames("months","wide","standAlone",this.lang);this._setText(this.monthLabelNode,_58e[_57f.getMonth()]);var y=_57f.getFullYear()-1;var d=new Date();dojo.forEach(["previous","current","next"],function(name){d.setFullYear(y++);this._setText(this[name+"YearLabelNode"],dojo.date.locale.format(d,{selector:"year",locale:this.lang}));},this);var _592=this;var _593=function(_594,_595,adj){_592._connects.push(dijit.typematic.addMouseListener(_592[_594],_592,function(_597){if(_597>=0){_592._adjustDisplay(_595,adj);}},0.8,500));};_593("incrementMonth","month",1);_593("decrementMonth","month",-1);_593("nextYearLabelNode","year",1);_593("previousYearLabelNode","year",-1);},goToToday:function(){this.attr("value",new Date());},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _598=dojo.hitch(this,function(_599,n){var _59b=dojo.query(_599,this.domNode)[0];for(var i=0;i<n;i++){_59b.parentNode.appendChild(_59b.cloneNode(true));}});_598(".dijitCalendarDayLabelTemplate",6);_598(".dijitCalendarDateTemplate",6);_598(".dijitCalendarWeekTemplate",5);var _59d=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);var _59e=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_59f,i){this._setText(_59f,_59d[(i+_59e)%7]);},this);var _5a1=dojo.date.locale.getNames("months","wide","standAlone",this.lang);dojo.forEach(_5a1,function(name){var _5a3=dojo.create("div",null,this.monthLabelSpacer);this._setText(_5a3,name);},this);this.value=null;this.attr("value",new Date());},_adjustDisplay:function(part,_5a5){this.displayMonth=dojo.date.add(this.displayMonth,part,_5a5);this._populateGrid();},_onDayClick:function(evt){dojo.stopEvent(evt);for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){}if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){this.attr("value",node.dijitDateValue);this.onValueSelected(this.value);}},_onDayMouseOver:function(evt){var node=evt.target;if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){dojo.addClass(node,"dijitCalendarHoveredDate");this._currentNode=node;}},_onDayMouseOut:function(evt){if(!this._currentNode){return;}for(var node=evt.relatedTarget;node;){if(node==this._currentNode){return;}try{node=node.parentNode;}catch(x){node=null;}}dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");this._currentNode=null;},onValueSelected:function(date){},onChange:function(date){},isDisabledDate:function(_5ae,_5af){},getClassForDate:function(_5b0,_5b1){}});}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(_5b2,_5b3,_5b4){var _5b5;if(_5b2!==undefined){_5b5=this.filter(_5b2);if(typeof _5b4!="string"){if(_5b5!==null&&((typeof _5b5!="number")||!isNaN(_5b5))){_5b4=this.filter(this.format(_5b5,this.constraints));}else{_5b4="";}}}if(_5b4!=null&&_5b4!=undefined&&((typeof _5b4)!="number"||!isNaN(_5b4))&&this.textbox.value!=_5b4){this.textbox.value=_5b4;}this.inherited(arguments,[_5b5,_5b3]);},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(_5b6){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_5b6);},_setDisplayedValueAttr:function(_5b7){if(_5b7===null||_5b7===undefined){_5b7="";}else{if(typeof _5b7!="string"){_5b7=String(_5b7);}}this.textbox.value=_5b7;this._setValueAttr(this.attr("value"),undefined,_5b7);},format:function(_5b8,_5b9){return ((_5b8==null||_5b8==undefined)?"":(_5b8.toString?_5b8.toString():_5b8));},parse:function(_5ba,_5bb){return _5ba;},_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 _5bd=this;setTimeout(function(){_5bd._handleOnChange(_5bd.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();},filter:function(val){if(val===null){return "";}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(_5c2,_5c3,stop){var _5c5=dojo.global;var _5c6=dojo.doc;_5c2=dojo.byId(_5c2);if(isNaN(_5c3)){_5c3=0;}if(isNaN(stop)){stop=_5c2.value?_5c2.value.length:0;}_5c2.focus();if(_5c6["selection"]&&dojo.body()["createTextRange"]){if(_5c2.createTextRange){var _5c7=_5c2.createTextRange();with(_5c7){collapse(true);moveStart("character",_5c3);moveEnd("character",stop);select();}}}else{if(_5c5["getSelection"]){var _5c8=_5c5.getSelection();if(_5c2.setSelectionRange){_5c2.setSelectionRange(_5c3,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(_5c9){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_5ca,_5cb){return (new RegExp("^(?:"+this.regExpGen(_5cb)+")"+(this.required?"":"?")+"$")).test(_5ca)&&(!this.required||!this._isEmpty(_5ca))&&(this._isEmpty(_5ca)||this.parse(_5ca,_5cb)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_5cc){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_5cd){return /^\s*$/.test(_5cd);},getErrorMessage:function(_5ce){return this.invalidMessage;},getPromptMessage:function(_5cf){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_5d0){var _5d1="";var _5d2=this.disabled||this.isValid(_5d0);if(_5d2){this._maskValidSubsetError=true;}var _5d3=!_5d2&&_5d0&&this._isValidSubset();var _5d4=this._isEmpty(this.textbox.value);this.state=(_5d2||(!this._hasBeenBlurred&&_5d4)||_5d3)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_5d2?"false":"true");if(_5d0){if(_5d4){_5d1=this.getPromptMessage(true);}if(!_5d1&&(this.state=="Error"||(_5d3&&!this._maskValidSubsetError))){_5d1=this.getErrorMessage(true);}}this.displayMessage(_5d1);return _5d2;},_message:"",displayMessage:function(_5d5){if(this._message==_5d5){return;}this._message=_5d5;dijit.hideTooltip(this.domNode);if(_5d5){dijit.showTooltip(_5d5,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 _5d7="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_5d7+=re;break;case ")":_5d7+="|$)";break;default:_5d7+="(?:"+re+"|$)";break;}});}try{"".search(_5d7);}catch(e){_5d7=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_5d7+")$";},_setDisabledAttr:function(_5d9){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_5d9;}this._refreshState();},_setRequiredAttr:function(_5da){this.required=_5da;dijit.setWaiState(this.focusNode,"required",_5da);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,_5de){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(_5e0){this.inherited(arguments);dojo.attr(this.valueNode,"disabled",_5e0);},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_5e1,_5e2){var _5e3="min" in _5e2;var _5e4="max" in _5e2;if(_5e3||_5e4){return (!_5e3||this.compare(_5e1,_5e2.min)>=0)&&(!_5e4||this.compare(_5e1,_5e2.max)<=0);}return true;},isInRange:function(_5e5){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _5e7=false;var _5e8=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_5e7=(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);_5e8=(typeof val=="number")&&val>0;}return _5e7||_5e8;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_5eb){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_5eb));},getErrorMessage:function(_5ec){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_5ec)){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(_5ed,_5ee){dijit.setWaiState(this.focusNode,"valuenow",_5ed);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form._DateTimeTextBox"]){dojo._hasResource["dijit.form._DateTimeTextBox"]=true;dojo.provide("dijit.form._DateTimeTextBox");dojo.declare("dijit.form._DateTimeTextBox",dijit.form.RangeBoundTextBox,{regExpGen:dojo.date.locale.regexp,compare:dojo.date.compare,format:function(_5ef,_5f0){if(!_5ef){return "";}return dojo.date.locale.format(_5ef,_5f0);},parse:function(_5f1,_5f2){return dojo.date.locale.parse(_5f1,_5f2)||(this._isEmpty(_5f1)?null:undefined);},serialize:dojo.date.stamp.toISOString,value:new Date(""),popupClass:"",_selector:"",postMixInProperties:function(){this.inherited(arguments);if(!this.value||this.value.toString()==dijit.form._DateTimeTextBox.prototype.value.toString()){this.value=null;}var _5f3=this.constraints;_5f3.selector=this._selector;_5f3.fullYear=true;var _5f4=dojo.date.stamp.fromISOString;if(typeof _5f3.min=="string"){_5f3.min=_5f4(_5f3.min);}if(typeof _5f3.max=="string"){_5f3.max=_5f4(_5f3.max);}},_onFocus:function(evt){this._open();},_setValueAttr:function(_5f6,_5f7,_5f8){this.inherited(arguments);if(this._picker){if(!_5f6){_5f6=new Date();}this._picker.attr("value",_5f6);}},_open:function(){if(this.disabled||this.readOnly||!this.popupClass){return;}var _5f9=this;if(!this._picker){var _5fa=dojo.getObject(this.popupClass,false);this._picker=new _5fa({onValueSelected:function(_5fb){if(_5f9._tabbingAway){delete _5f9._tabbingAway;}else{_5f9.focus();}setTimeout(dojo.hitch(_5f9,"_close"),1);dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_5f9,_5fb,true);},lang:_5f9.lang,constraints:_5f9.constraints,isDisabledDate:function(date){var _5fd=dojo.date.compare;var _5fe=_5f9.constraints;return _5fe&&(_5fe.min&&(_5fd(_5fe.min,date,"date")>0)||(_5fe.max&&_5fd(_5fe.max,date,"date")<0));}});this._picker.attr("value",this.attr("value")||new Date());}if(!this._opened){dijit.popup.open({parent:this,popup:this._picker,around:this.domNode,onCancel:dojo.hitch(this,this._close),onClose:function(){_5f9._opened=false;}});this._opened=true;}dojo.marginBox(this._picker.domNode,{w:this.domNode.offsetWidth});},_close:function(){if(this._opened){dijit.popup.close(this._picker);this._opened=false;}},_onBlur:function(){this._close();if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_5ff,_600){this._setValueAttr(this.parse(_5ff,this.constraints),_600,_5ff);},destroy:function(){if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.focusNode,"onkeypress",this._onKeyPress);},_onKeyPress:function(e){var p=this._picker,dk=dojo.keys;if(p&&this._opened&&p.handleKey){if(p.handleKey(e)===false){return;}}if(this._opened&&e.charOrCode==dk.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){this._close();dojo.stopEvent(e);}else{if(!this._opened&&e.charOrCode==dk.DOWN_ARROW){this._open();dojo.stopEvent(e);}else{if(e.charOrCode===dk.TAB){this._tabbingAway=true;}else{if(this._opened&&(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE)){setTimeout(dojo.hitch(this,function(){dijit.placeOnScreenAroundElement(p.domNode.parentNode,this.domNode,{"BL":"TL","TL":"BL"},p.orient?dojo.hitch(p,"orient"):null);}),1);}}}}}});}if(!dojo._hasResource["dijit.form.DateTextBox"]){dojo._hasResource["dijit.form.DateTextBox"]=true;dojo.provide("dijit.form.DateTextBox");dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitDateTextBox",popupClass:"dijit._Calendar",_selector:"date",value:new Date("")});}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(_604){var pos=0;if(typeof (_604.selectionStart)=="number"){pos=_604.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_604.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(_608,_609){_609=parseInt(_609);dijit.selectInputText(_608,_609,_609);},_setDisabledAttr:function(_60a){this.inherited(arguments);dijit.setWaiState(this.comboNode,"disabled",_60a);},_onKeyPress:function(evt){var key=evt.charOrCode;if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){return;}var _60d=false;var pw=this._popupWidget;var dk=dojo.keys;var _610=null;if(this._isShowingNow){pw.handleKey(key);_610=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:if(!this._isShowingNow||this._prev_key_esc){this._arrowPressed();_60d=true;}else{if(_610){this._announceOption(_610);}}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(_610);}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.ENTER:if(_610){if(_610==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_610==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setDisplayedValueAttr(this.attr("displayedValue"),true);}evt.preventDefault();case dk.TAB:var _611=this.attr("displayedValue");if(pw&&(_611==pw._messages["previousMessage"]||_611==pw._messages["nextMessage"])){break;}if(this._isShowingNow){this._prev_key_backspace=false;this._prev_key_esc=false;if(_610){pw.attr("value",{target:_610});}this._lastQuery=null;this._hideResultList();}break;case " ":this._prev_key_backspace=false;this._prev_key_esc=false;if(_610){dojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_60d=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;_60d=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;_60d=typeof key=="string";}if(this.searchTimer){clearTimeout(this.searchTimer);}if(_60d){setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _614=this.ignoreCase?"toLowerCase":"substr";if(text[_614](0).indexOf(this.focusNode.value[_614](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(_616,_617){if(this.disabled||this.readOnly||(_617.query[this.searchAttr]!=this._lastQuery)){return;}this._popupWidget.clearResultList();if(!_616.length){this._hideResultList();return;}this.item=null;var _618=new String(this.store.getValue(_616[0],this.searchAttr));if(_618&&this.autoComplete&&!this._prev_key_backspace&&(_617.query[this.searchAttr]!="*")){this.item=_616[0];this._autoCompleteText(_618);}_617._maxOptions=this._maxOptions;this._popupWidget.createOptions(_616,_617,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_617.direction){if(1==_617.direction){this._popupWidget.highlightFirstOption();}else{if(-1==_617.direction){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}},_showResultList:function(){this._hideResultList();var _619=this._popupWidget.getItems(),_61a=Math.min(_619.length,this.maxListLength);this._arrowPressed();this.displayMessage("");dojo.style(this._popupWidget.domNode,{width:"",height:""});var best=this.open();var _61c=dojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_61c.h)&&(best.w==_61c.w))?"hidden":"auto";var _61d=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_61d+=16;}dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_61d,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 _61e=this.attr("displayedValue");var pw=this._popupWidget;if(pw&&(_61e==pw._messages["previousMessage"]||_61e==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{this.attr("displayedValue",_61e);}},_onBlur:function(){this._hideResultList();this._arrowIdle();this.inherited(arguments);},_announceOption:function(node){if(node==null){return;}var _621;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_621=node.innerHTML;}else{_621=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(_621);},_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 _628=this.id+"_popup";this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_628});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_628);}this.item=null;var _629=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_629[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_62a,_62b){var _62c={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_62a,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_62d){console.error("dijit.form.ComboBox: "+_62d);dojo.hitch(_62b,"_hideResultList")();},start:0,count:this.pageSize};dojo.mixin(_62c,_62b.fetchProperties);var _62e=_62b.store.fetch(_62c);var _62f=function(_630,_631){_630.start+=_630.count*_631;_630.direction=_631;this.store.fetch(_630);};this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_62f,_62e);},_629,this),this.searchDelay);},_setMaxOptions:function(size,_633){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 _635=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_635);if(!this.value||((typeof _635.selectedIndex=="number")&&_635.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 _637=dojo.query("label[for=\""+this.id+"\"]");if(_637.length){_637[0].id=(this.id+"_label");var cn=this.comboNode;dijit.setWaiState(cn,"labelledby",_637[0].id);}this.inherited(arguments);},uninitialize:function(){if(this._popupWidget){this._hideResultList();this._popupWidget.destroy();}},_getMenuLabelFromItem:function(item){var _63a=this.store.getValue(item,this.labelAttr||this.searchAttr);var _63b=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_63a=this.doHighlight(_63a,this._escapeHtml(this._lastInput));_63b="html";}return {html:_63b=="html",label:_63a};},doHighlight:function(_63c,find){var _63e="i"+(this.highlightMatch=="all"?"g":"");var _63f=this._escapeHtml(_63c);find=dojo.regexp.escapeString(find);var ret=_63f.replace(new RegExp("(^|\\s)("+find+")",_63e),"$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(_642){this.value=_642;this.onChange(_642);},onChange:function(_643){},onPage:function(_644){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited(arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_646){var _647=_646(item);var _648=dojo.doc.createElement("li");dijit.setWaiRole(_648,"option");if(_647.html){_648.innerHTML=_647.label;}else{_648.appendChild(dojo.doc.createTextNode(_647.label));}if(_648.innerHTML==""){_648.innerHTML="&nbsp;";}_648.item=item;return _648;},createOptions:function(_649,_64a,_64b){this.previousButton.style.display=(_64a.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_649,function(item,i){var _64e=this._createOption(item,_64b);_64e.className="dijitReset dijitMenuItem";dojo.attr(_64e,"id",this.id+i);this.domNode.insertBefore(_64e,this.nextButton);},this);var _64f=false;if(_64a._maxOptions&&_64a._maxOptions!=-1){if((_64a.start+_64a.count)<_64a._maxOptions){_64f=true;}else{if((_64a.start+_64a.count)>(_64a._maxOptions-1)){if(_64a.count==_649.length){_64f=true;}}}}else{if(_64a.count==_649.length){_64f=true;}}this.nextButton.style.display=_64f?"":"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 _65c=0;var _65d=this.domNode.scrollTop;var _65e=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_65c<_65e){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 _65f=this.domNode.scrollTop;_65c+=(_65f-_65d)*(up?-1:1);_65d=_65f;}},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(_662,_663){if(!_662){_662="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_662,_663);}});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,_667,_668){return (_667=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_669){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_66b,_66c){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _66d=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_66e=dojo.query("> option",this.root).filter(function(_66f){return (_66f.innerText||_66f.textContent||"").match(_66d);});if(args.sort){_66e.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_66b(_66e,args);},close:function(_670){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["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{_isvalid:true,required:true,_lastDisplayedValue:"",isValid:function(){return this._isvalid||(!this.required&&this.attr("displayedValue")=="");},_callbackSetLabel:function(_677,_678,_679){if((_678&&_678.query[this.searchAttr]!=this._lastQuery)||(!_678&&_677.length&&this.store.getIdentity(_677[0])!=this._lastQuery)){return;}if(!_677.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_679||(_679===undefined&&!this._focused));this._isvalid=false;this.validate(this._focused);this.item=null;}else{this._setValueFromItem(_677[0],_679);}},_openResultList:function(_67a,_67b){if(_67b.query[this.searchAttr]!=this._lastQuery){return;}this._isvalid=_67a.length!=0;this.validate(true);dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValue:function(_67c,_67d,_67e){this.valueNode.value=_67c;dijit.form.FilteringSelect.superclass._setValueAttr.call(this,_67c,_67e,_67d);this._lastDisplayedValue=_67d;},_setValueAttr:function(_67f,_680){if(!this._onChangeActive){_680=null;}this._lastQuery=_67f;if(_67f===null||_67f===""){this._setDisplayedValueAttr("",_680);return;}var self=this;var _682=function(item,_684){if(item){if(self.store.isItemLoaded(item)){self._callbackSetLabel([item],undefined,_684);}else{self.store.loadItem({item:item,onItem:function(_685,_686){self._callbackSetLabel(_685,_686,_684);}});}}else{self._isvalid=false;self.validate(false);}};this.store.fetchItemByIdentity({identity:_67f,onItem:function(item){_682(item,_680);}});},_setValueFromItem:function(item,_689){this._isvalid=true;this.item=item;this._setValue(this.store.getIdentity(item),this.labelFunc(item,this.store),_689);},labelFunc:function(item,_68b){return _68b.getValue(item,this.searchAttr);},_doSelect:function(tgt){this._setValueFromItem(tgt.item,true);},_setDisplayedValueAttr:function(_68d,_68e){if(!this._created){_68e=false;}if(this.store){var _68f=dojo.clone(this.query);this._lastQuery=_68f[this.searchAttr]=_68d.replace(/([\\\*\?])/g,"\\$1");this.textbox.value=_68d;this._lastDisplayedValue=_68d;var _690=this;var _691={query:_68f,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_692,_693){dojo.hitch(_690,"_callbackSetLabel")(_692,_693,_68e);},onError:function(_694){console.error("dijit.form.FilteringSelect: "+_694);dojo.hitch(_690,"_setValue")("",_68d,false);}};dojo.mixin(_691,this.fetchProperties);this.store.fetch(_691);}},postMixInProperties:function(){this.inherited(arguments);this._isvalid=!this.required;},undo:function(){this.attr("displayedValue",this._lastDisplayedValue);}});}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojox.fx.easing"]){dojo._hasResource["dojox.fx.easing"]=true;dojo.provide("dojox.fx.easing");dojo.deprecated("dojox.fx.easing","Upgraded to Core, use dojo.fx.easing instead","2.0");dojox.fx.easing=dojo.fx.easing;}if(!dojo._hasResource["dojox.fx._core"]){dojo._hasResource["dojox.fx._core"]=true;dojo.provide("dojox.fx._core");dojox.fx._Line=function(_6c0,end){this.start=_6c0;this.end=end;var _6c2=dojo.isArray(_6c0),d=(_6c2?[]:end-_6c0);if(_6c2){dojo.forEach(this.start,function(s,i){d[i]=this.end[i]-s;},this);this.getValue=function(n){var res=[];dojo.forEach(this.start,function(s,i){res[i]=(d[i]*n)+s;},this);return res;};}else{this.getValue=function(n){return (d*n)+this.start;};}};}if(!dojo._hasResource["dojox.fx.scroll"]){dojo._hasResource["dojox.fx.scroll"]=true;dojo.provide("dojox.fx.scroll");dojo.experimental("dojox.fx.scroll");dojox.fx.smoothScroll=function(args){if(!args.target){args.target=dojo.coords(args.node,true);}var _6cc=dojo[(dojo.isIE?"isObject":"isFunction")](args["win"].scrollTo);var _6cd=(_6cc)?(function(val){args.win.scrollTo(val[0],val[1]);}):(function(val){args.win.scrollLeft=val[0];args.win.scrollTop=val[1];});var anim=new dojo._Animation(dojo.mixin({beforeBegin:function(){if(this.curve){delete this.curve;}var _6d1=_6cc?dojo._docScroll():{x:args.win.scrollLeft,y:args.win.scrollTop};anim.curve=new dojox.fx._Line([_6d1.x,_6d1.y],[args.target.x,args.target.y]);},onAnimate:_6cd},args));return anim;};}if(!dojo._hasResource["dojox.fx._base"]){dojo._hasResource["dojox.fx._base"]=true;dojo.provide("dojox.fx._base");dojo.mixin(dojox.fx,{anim:dojo.anim,animateProperty:dojo.animateProperty,fadeTo:dojo._fade,fadeIn:dojo.fadeIn,fadeOut:dojo.fadeOut,combine:dojo.fx.combine,chain:dojo.fx.chain,slideTo:dojo.fx.slideTo,wipeIn:dojo.fx.wipeIn,wipeOut:dojo.fx.wipeOut});dojox.fx.sizeTo=function(args){var node=args.node=dojo.byId(args.node);var _6d4=args.method||"chain";if(!args.duration){args.duration=500;}if(_6d4=="chain"){args.duration=Math.floor(args.duration/2);}var top,_6d6,left,_6d8,_6d9,_6da=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);_6d9=parseInt(cs.width);_6da=parseInt(cs.height);_6d8=left-Math.floor((args.width-_6d9)/2);_6d6=top-Math.floor((args.height-_6da)/2);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var _6e0=dojo.animateProperty(dojo.mixin({properties:{height:{start:_6da,end:args.height||0,unit:"px"},top:{start:top,end:_6d6}}},args));var _6e1=dojo.animateProperty(dojo.mixin({properties:{width:{start:_6d9,end:args.width||0,unit:"px"},left:{start:left,end:_6d8}}},args));var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([_6e0,_6e1]);dojo.connect(anim,"beforeBegin",anim,init);return anim;};dojox.fx.slideBy=function(args){var node=args.node=dojo.byId(args.node);var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var _6ec=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));dojo.connect(_6ec,"beforeBegin",_6ec,init);return _6ec;};dojox.fx.crossFade=function(args){if(dojo.isArray(args.nodes)){var _6ee=args.nodes[0]=dojo.byId(args.nodes[0]);var op1=dojo.style(_6ee,"opacity");var _6f0=args.nodes[1]=dojo.byId(args.nodes[1]);var op2=dojo.style(_6f0,"opacity");var _6f2=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:_6ee},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:_6f0},args))]);return _6f2;}else{return false;}};dojox.fx.highlight=function(args){var node=args.node=dojo.byId(args.node);args.duration=args.duration||400;var _6f5=args.color||"#ffff99";var _6f6=dojo.style(node,"backgroundColor");var _6f7=(_6f6=="transparent"||_6f6=="rgba(0, 0, 0, 0)")?_6f6:false;var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_6f5,end:_6f6}}},args));if(_6f7){dojo.connect(anim,"onEnd",anim,function(){node.style.backgroundColor=_6f7;});}return anim;};dojox.fx.wipeTo=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var dir=(args.width?"width":"height");var _6fd=args[dir];var _6fe={};_6fe[dir]={start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s[dir]="1px";s.display="";s.visibility="";return 1;}else{var now=dojo.style(node,dir);return Math.max(now,1);}},end:_6fd,unit:"px"};var anim=dojo.animateProperty(dojo.mixin({properties:_6fe},args));return anim;};}if(!dojo._hasResource["dojox.fx"]){dojo._hasResource["dojox.fx"]=true;dojo.provide("dojox.fx");}if(!dojo._hasResource["dojox.image.ThumbnailPicker"]){dojo._hasResource["dojox.image.ThumbnailPicker"]=true;dojo.provide("dojox.image.ThumbnailPicker");dojo.experimental("dojox.image.ThumbnailPicker");dojo.declare("dojox.image.ThumbnailPicker",[dijit._Widget,dijit._Templated],{imageStore:null,request:null,size:500,thumbHeight:75,thumbWidth:100,useLoadNotifier:false,useHyperlink:false,hyperlinkTarget:"new",isClickable:true,isScrollable:true,isHorizontal:true,autoLoad:true,linkAttr:"link",imageThumbAttr:"imageUrlThumb",imageLargeAttr:"imageUrl",pageSize:20,titleAttr:"title",templateString:"<div dojoAttachPoint=\"outerNode\" class=\"thumbOuter\">\n\t<div dojoAttachPoint=\"navPrev\" class=\"thumbNav thumbClickable\">\n\t  <img src=\"\" dojoAttachPoint=\"navPrevImg\"/>    \n\t</div>\n\t<div dojoAttachPoint=\"thumbScroller\" class=\"thumbScroller\">\n\t  <div dojoAttachPoint=\"thumbsNode\" class=\"thumbWrapper\"></div>\n\t</div>\n\t<div dojoAttachPoint=\"navNext\" class=\"thumbNav thumbClickable\">\n\t  <img src=\"\" dojoAttachPoint=\"navNextImg\"/>  \n\t</div>\n</div>\n",_thumbs:[],_thumbIndex:0,_maxPhotos:0,_loadedImages:{},postCreate:function(){this.widgetid=this.id;this.inherited(arguments);this.pageSize=Number(this.pageSize);this._scrollerSize=this.size-(51*2);var _701=this._sizeProperty=this.isHorizontal?"width":"height";dojo.style(this.outerNode,"textAlign","center");dojo.style(this.outerNode,_701,this.size+"px");dojo.style(this.thumbScroller,_701,this._scrollerSize+"px");if(this.useHyperlink){dojo.subscribe(this.getClickTopicName(),this,function(_702){var _703=_702.index;var url=this.imageStore.getValue(_702.data,this.linkAttr);if(!url){return;}if(this.hyperlinkTarget=="new"){window.open(url);}else{window.location=url;}});}if(this.isClickable){dojo.addClass(this.thumbsNode,"thumbClickable");}this._totalSize=0;this.init();},init:function(){if(this.isInitialized){return false;}var _705=this.isHorizontal?"Horiz":"Vert";dojo.addClass(this.navPrev,"prev"+_705);dojo.addClass(this.navNext,"next"+_705);dojo.addClass(this.thumbsNode,"thumb"+_705);dojo.addClass(this.outerNode,"thumb"+_705);this.navNextImg.setAttribute("src",this._blankGif);this.navPrevImg.setAttribute("src",this._blankGif);this.connect(this.navPrev,"onclick","_prev");this.connect(this.navNext,"onclick","_next");this.isInitialized=true;if(this.isHorizontal){this._offsetAttr="offsetLeft";this._sizeAttr="offsetWidth";this._scrollAttr="scrollLeft";}else{this._offsetAttr="offsetTop";this._sizeAttr="offsetHeight";this._scrollAttr="scrollTop";}this._updateNavControls();if(this.imageStore&&this.request){this._loadNextPage();}return true;},getClickTopicName:function(){return (this.widgetId||this.id)+"/select";},getShowTopicName:function(){return (this.widgetId||this.id)+"/show";},setDataStore:function(_706,_707,_708){this.reset();this.request={query:{},start:_707.start||0,count:_707.count||10,onBegin:dojo.hitch(this,function(_709){this._maxPhotos=_709;})};if(_707.query){dojo.mixin(this.request.query,_707.query);}if(_708){dojo.forEach(["imageThumbAttr","imageLargeAttr","linkAttr","titleAttr"],function(_70a){if(_708[_70a]){this[_70a]=_708[_70a];}},this);}this.request.start=0;this.request.count=this.pageSize;this.imageStore=_706;if(!this.init()){this._loadNextPage();}},reset:function(){this._loadedImages={};dojo.forEach(this._thumbs,function(img){if(img){if(img.parentNode){img.parentNode.removeChild(img);}}});this._thumbs=[];this.isInitialized=false;this._noImages=true;},isVisible:function(_70c){var img=this._thumbs[_70c];if(!img){return false;}var pos=this.isHorizontal?"offsetLeft":"offsetTop";var size=this.isHorizontal?"offsetWidth":"offsetHeight";var _710=this.isHorizontal?"scrollLeft":"scrollTop";var _711=img[pos]-this.thumbsNode[pos];return (_711>=this.thumbScroller[_710]&&_711+img[size]<=this.thumbScroller[_710]+this._scrollerSize);},_next:function(){var pos=this.isHorizontal?"offsetLeft":"offsetTop";var size=this.isHorizontal?"offsetWidth":"offsetHeight";var _714=this.thumbsNode[pos];var _715=this._thumbs[this._thumbIndex];var _716=_715[pos]-_714;var _717=-1,img;for(var i=this._thumbIndex+1;i<this._thumbs.length;i++){img=this._thumbs[i];if(img[pos]-_714+img[size]-_716>this._scrollerSize){this._showThumbs(i);return;}}},_prev:function(){if(this.thumbScroller[this.isHorizontal?"scrollLeft":"scrollTop"]==0){return;}var pos=this.isHorizontal?"offsetLeft":"offsetTop";var size=this.isHorizontal?"offsetWidth":"offsetHeight";var _71c=this._thumbs[this._thumbIndex];var _71d=_71c[pos]-this.thumbsNode[pos];var _71e=-1,img;for(var i=this._thumbIndex-1;i>-1;i--){img=this._thumbs[i];if(_71d-img[pos]>this._scrollerSize){this._showThumbs(i+1);return;}}this._showThumbs(0);},_checkLoad:function(img,_722){dojo.publish(this.getShowTopicName(),[{index:_722}]);this._updateNavControls();this._loadingImages={};this._thumbIndex=_722;if(this.thumbsNode.offsetWidth-img.offsetLeft<(this._scrollerSize*2)){this._loadNextPage();}},_showThumbs:function(_723){_723=Math.min(Math.max(_723,0),this._maxPhotos);if(_723>=this._maxPhotos){return;}var img=this._thumbs[_723];if(!img){return;}var left=img.offsetLeft-this.thumbsNode.offsetLeft;var top=img.offsetTop-this.thumbsNode.offsetTop;var _727=this.isHorizontal?left:top;if((_727>=this.thumbScroller[this._scrollAttr])&&(_727+img[this._sizeAttr]<=this.thumbScroller[this._scrollAttr]+this._scrollerSize)){return;}if(this.isScrollable){var _728=this.isHorizontal?{x:left,y:0}:{x:0,y:top};dojox.fx.smoothScroll({target:_728,win:this.thumbScroller,duration:300,easing:dojo.fx.easing.easeOut,onEnd:dojo.hitch(this,"_checkLoad",img,_723)}).play(10);}else{if(this.isHorizontal){this.thumbScroller.scrollLeft=left;}else{this.thumbScroller.scrollTop=top;}this._checkLoad(img,_723);}},markImageLoaded:function(_729){var _72a=dojo.byId("loadingDiv_"+this.widgetid+"_"+_729);if(_72a){this._setThumbClass(_72a,"thumbLoaded");}this._loadedImages[_729]=true;},_setThumbClass:function(_72b,_72c){if(!this.autoLoad){return;}dojo.addClass(_72b,_72c);},_loadNextPage:function(){if(this._loadInProgress){return;}this._loadInProgress=true;var _72d=this.request.start+(this._noImages?0:this.pageSize);var pos=_72d;while(pos<this._thumbs.length&&this._thumbs[pos]){pos++;}var _72f=function(_730,_731){if(_730&&_730.length){var _732=0;var _733=dojo.hitch(this,function(){if(_732>=_730.length){this._loadInProgress=false;return;}var _734=_732++;this._loadImage(_730[_734],pos+_734,_733);});_733();this._updateNavControls();}else{this._loadInProgress=false;}};var _735=function(){this._loadInProgress=false;};this.request.onComplete=dojo.hitch(this,_72f);this.request.onError=dojo.hitch(this,_735);this.request.start=_72d;this._noImages=false;this.imageStore.fetch(this.request);},_loadImage:function(data,_737,_738){var url=this.imageStore.getValue(data,this.imageThumbAttr);var img=document.createElement("img");var _73b=document.createElement("div");_73b.setAttribute("id","img_"+this.widgetid+"_"+_737);_73b.appendChild(img);img._index=_737;img._data=data;this._thumbs[_737]=_73b;var _73c;if(this.useLoadNotifier){_73c=document.createElement("div");_73c.setAttribute("id","loadingDiv_"+this.widgetid+"_"+_737);this._setThumbClass(_73c,this._loadedImages[_737]?"thumbLoaded":"thumbNotifier");_73b.appendChild(_73c);}var size=dojo.marginBox(this.thumbsNode);var _73e;var _73f;if(this.isHorizontal){_73e=this.thumbWidth;_73f="w";}else{_73e=this.thumbHeight;_73f="h";}size=size[_73f];var sl=this.thumbScroller.scrollLeft,st=this.thumbScroller.scrollTop;dojo.style(this.thumbsNode,this._sizeProperty,(size+_73e+20)+"px");this.thumbScroller.scrollLeft=sl;this.thumbScroller.scrollTop=st;this.thumbsNode.appendChild(_73b);dojo.connect(img,"onload",this,function(){var _742=dojo.marginBox(img)[_73f];this._totalSize+=(Number(_742)+4);dojo.style(this.thumbsNode,this._sizeProperty,this._totalSize+"px");if(this.useLoadNotifier){dojo.style(_73c,"width",(img.width-4)+"px");}dojo.style(_73b,"width",img.width+"px");_738();return false;});dojo.connect(img,"onclick",this,function(evt){dojo.publish(this.getClickTopicName(),[{index:evt.target._index,data:evt.target._data,url:img.getAttribute("src"),largeUrl:this.imageStore.getValue(data,this.imageLargeAttr),title:this.imageStore.getValue(data,this.titleAttr),link:this.imageStore.getValue(data,this.linkAttr)}]);return false;});dojo.addClass(img,"imageGalleryThumb");img.setAttribute("src",url);var _744=this.imageStore.getValue(data,this.titleAttr);if(_744){img.setAttribute("title",_744);}this._updateNavControls();},_updateNavControls:function(){var _745=[];var _746=function(node,add){var fn=add?"addClass":"removeClass";dojo[fn](node,"enabled");dojo[fn](node,"thumbClickable");};var pos=this.isHorizontal?"scrollLeft":"scrollTop";var size=this.isHorizontal?"offsetWidth":"offsetHeight";_746(this.navPrev,(this.thumbScroller[pos]>0));var last=this._thumbs[this._thumbs.length-1];var _74d=(this.thumbScroller[pos]+this._scrollerSize<this.thumbsNode[size]);_746(this.navNext,_74d);}});}if(!dojo._hasResource["dojox.image.Carousel"]){dojo._hasResource["dojox.image.Carousel"]=true;dojo.provide("dojox.image.Carousel");dojo.experimental("dojox.image.Carousel");dojo.declare("dojox.image.Carousel",[dijit._Widget,dijit._Templated],{widgetID:null,imageStore:null,imageNodes:null,imageCount:0,request:null,size:150,ImageArray:null,InterFaceWidth:266,ViewingAreaHeight:110,ImageValignment:"middle",templatePath:"/js/dojo/dojox/image/resources/Carousel.html",header:"",viewLink:"",viewText:"",hitch:"null",init:true,currentImage:0,isMoving:false,postCreate:function(){this.inherited(arguments);this.widgetID=this.id;dojo.style(this.DojoCarouselViewingArea,"opacity","0");this.init();},init:function(){this.connect(this.DojoCarouselNavPrev,"onclick","_prev");this.connect(this.DojoCarouselNavNext,"onclick","_next");this.setDataStore();return true;},update:function(){this.hideNode(this.DojoCarouselLoader);this.setStyles();this.setIDs();this.attachEventhandlers();this.showNode(this.DojoCarouselViewingArea);},setDataStore:function(){this.imageNodes=new dojo.data.ItemFileReadStore({url:this.imageStore});this.imageNodes.fetch({onItem:this.setImage,onComplete:this.update,scope:this});},setImage:function(item,_74f){atitle=this.imageNodes.getValue(item,"title");image=this.imageNodes.getValue(item,"thumb");desc=this.imageNodes.getValue(item,"desc");guid=this.imageNodes.getValue(item,"guid");aclass=this.imageNodes.getValue(item,"class");NewElement=document.createElement("span");NewElement.setAttribute("class","DojoCarouselSpan");var pos=(this.currentImage>1)?300:this.currentImage*150;NewElement.style.left=pos+"px";NewElement.innerHTML="<div guid=\""+guid+"\" class=\"thumbnailWrapper\" style=\"background-image: url("+image+");\" onClick=\""+this.hitch+"('"+guid+"')\" title=\""+desc+"\"><img src=\"/images/_clr.gif\" class=\""+aclass+"\" title=\""+desc+"\" alt=\""+desc+"\" /></div><div class=\"VideoTitle\">"+atitle+"</div>";this.DojoCarouselImageContainer.appendChild(NewElement);this.currentImage++;},setStyles:function(){dojo.style(this.DojoCarouselInterface,"width",this.InterFaceWidth+"px");dojo.style(this.DojoCarouselVerbiage,"width",this.InterFaceWidth-80+"px");dojo.style(this.DojoCarouselViewingArea,"zIndex",2);dojo.style(this.DojoCarouselVerbiage,"zIndex",5);dojo.style(this.DojoCarouselViewingArea,"left",0+"px");dojo.style(this.DojoCarouselVerbiage,"left",40+"px");dojo.style(this.DojoCarouselViewingArea,"top",0+"px");dojo.style(this.DojoCarouselVerbiage,"top",35+"px");dojo.style(this.DojoCarouselViewingArea,"height",this.ViewingAreaHeight+"px");dojo.style(this.DojoCarouselInterface,"height",this.ViewingAreaHeight+35+"px");dojo.style(this.DojoCarouselVerbiage,"textAlign","center");dojo.query("span div",this.DojoCarouselInterface).style("vertialAlign",this.ImageValignment);},setIDs:function(){var _751=this.widgetID;dojo.query("span.DojoCarouselSpan",this.DojoCarouselImageContainer).forEach(function(node,i){dojo.attr(node,"id",_751+"_"+i);});},attachEventhandlers:function(){var _754=this.widgetID;var _755=this.hitch;dojo.query("div.thumbnailWrapper",this.DojoCarouselImageContainer).forEach(function(node,i){dojo.attr(node,"id",_754+"Image_"+i);});},showNode:function(_758){dojo.fadeIn({node:_758,duration:500}).play();},hideNode:function(_759){dojo.fadeOut({node:_759,duration:200}).play();},_next:function(){if((this.currentImage<4)||(this.isMoving)){return;}this.isMoving=true;firstDiv=dojo.byId(this.widgetID+"_0");dupDiv=firstDiv.cloneNode(true);this.DojoCarouselImageContainer.appendChild(dupDiv);dojo.style(dupDiv,"left",300+"px");dojo.attr(dupDiv,"id","tmp");var o=dojo.fx.slideTo({node:this.widgetID+"_0",duration:500,left:-150,top:0});var t=dojo.fx.slideTo({node:this.widgetID+"_1",duration:500,left:0,top:0});var h=dojo.fx.slideTo({node:this.widgetID+"_2",duration:500,left:150,top:0});dojo.connect(o,"onEnd",this,function(){this.DojoCarouselImageContainer.removeChild(dojo.byId(this.widgetID+"_0"));this.update();});dojo.connect(h,"onEnd",this,function(){this.isMoving=false;});o.play();t.play();h.play();},_prev:function(){if((this.currentImage<4)||(this.isMoving)){return;}this.isMoving=true;lastDiv=dojo.byId(this.widgetID+"_"+(this.currentImage-1));dupDiv=lastDiv.cloneNode(true);this.DojoCarouselImageContainer.insertBefore(dupDiv,dojo.byId(this.widgetID+"_0"));this.update();dojo.style(dojo.byId(this.widgetID+"_0"),"left",-150+"px");var o=dojo.fx.slideTo({node:this.widgetID+"_0",duration:500,left:0,top:0});var t=dojo.fx.slideTo({node:this.widgetID+"_1",duration:500,left:150,top:0});var h=dojo.fx.slideTo({node:this.widgetID+"_2",duration:500,left:300,top:0});dojo.connect(o,"onEnd",this,function(){this.isMoving=false;});h.play();t.play();o.play();}});}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 _779=n.scrollLeft,_77a=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_779!=n.scrollLeft||_77a!=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,_780=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),_780];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,_78f){this.node=dojo.byId(node);if(!_78f){_78f={};}this.handle=_78f.handle?dojo.byId(_78f.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_78f.delay>0?_78f.delay:0;this.skip=_78f.skip;this.mover=_78f.mover?_78f.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(_790,node){return new dojo.dnd.Moveable(node,_790);},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(_798){dojo.publish("/dnd/move/start",[_798]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_799){dojo.publish("/dnd/move/stop",[_799]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_79a){},onMove:function(_79b,_79c){this.onMoving(_79b,_79c);var s=_79b.node.style;s.left=_79c.l+"px";s.top=_79c.t+"px";this.onMoved(_79b,_79c);},onMoving:function(_79e,_79f){},onMoved:function(_7a0,_7a1){}});}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(_7a2,node){return new dojo.dnd.move.constrainedMoveable(node,_7a2);},constructor:function(node,_7a5){if(!_7a5){_7a5={};}this.constraints=_7a5.constraints;this.within=_7a5.within;},onFirstMove:function(_7a6){var c=this.constraintBox=this.constraints.call(this,_7a6);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_7a6.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_7a9,_7aa){var c=this.constraintBox,s=_7a9.node.style;s.left=(_7aa.l<c.l?c.l:c.r<_7aa.l?c.r:_7aa.l)+"px";s.top=(_7aa.t<c.t?c.t:c.b<_7aa.t?c.b:_7aa.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_7ad,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_7ad);},constructor:function(node,_7b0){var box=_7b0&&_7b0.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_7b2,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_7b2);},constructor:function(node,_7b5){var area=_7b5&&_7b5.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,_7bc){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _7bd=function(node,e,_7c0){dojo.dnd.Mover.call(this,node,e,_7c0);};dojo.extend(_7bd,dojo.dnd.Mover.prototype);dojo.extend(_7bd,{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(_7bc){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _7bd;};dojo.dnd.move.boxConstrainedMover=function(box,_7c9){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_7c9);};dojo.dnd.move.parentConstrainedMover=function(area,_7cb){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,_7cb);};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 _7d1=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_7d3){if(!_7d3){_7d3={};}if(_7d3.timeout&&typeof _7d3.timeout=="number"&&_7d3.timeout>=0){this.timeout=_7d3.timeout;}},markupFactory:function(_7d4,node){return new dojo.dnd.TimedMoveable(node,_7d4);},onMoveStop:function(_7d6){if(_7d6._timer){clearTimeout(_7d6._timer);_7d1.call(this,_7d6,_7d6._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_7d7,_7d8){_7d7._leftTop=_7d8;if(!_7d7._timer){var _t=this;_7d7._timer=setTimeout(function(){_7d7._timer=null;_7d1.call(_t,_7d7,_7d7._leftTop);},this.timeout);}}});})();}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(_7da){if(_7da.reset){_7da.reset();}});},validate:function(){var _7db=false;return dojo.every(dojo.map(this.getDescendants(),function(_7dc){_7dc._hasBeenBlurred=true;var _7dd=_7dc.disabled||!_7dc.validate||_7dc.validate();if(!_7dd&&!_7db){dijit.scrollIntoView(_7dc.containerNode||_7dc.domNode);_7dc.focus();_7db=true;}return _7dd;}),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(_7e2){if(!_7e2.name){return;}var _7e3=map[_7e2.name]||(map[_7e2.name]=[]);_7e3.push(_7e2);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _7e5=map[name],_7e6=dojo.getObject(name,false,obj);if(_7e6===undefined){continue;}if(!dojo.isArray(_7e6)){_7e6=[_7e6];}if(typeof _7e5[0].checked=="boolean"){dojo.forEach(_7e5,function(w,i){w.attr("value",dojo.indexOf(_7e6,w.value)!=-1);});}else{if(_7e5[0]._multiValue){_7e5[0].attr("value",_7e6);}else{dojo.forEach(_7e5,function(w,i){w.attr("value",_7e6[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(_7ec){var name=_7ec.name;if(!name||_7ec.disabled){return;}var _7ee=_7ec.attr("value");if(typeof _7ec.checked=="boolean"){if(/Radio/.test(_7ec.declaredClass)){if(_7ee!==false){dojo.setObject(name,_7ee,obj);}else{_7ee=dojo.getObject(name,false,obj);if(_7ee===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_7ee!==false){ary.push(_7ee);}}}else{dojo.setObject(name,_7ee,obj);}});return obj;},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(_7f0){return !_7f0.disabled&&_7f0.isValid&&!_7f0.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_7f1){},_widgetChange:function(_7f2){var _7f3=this._lastValidState;if(!_7f2||this._lastValidState===undefined){_7f3=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_7f3;}}else{if(_7f2.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_7f2);},this);if(!_7f2.isValid()&&!_7f2.attr("disabled")){this._invalidWidgets.push(_7f2);}_7f3=(this._invalidWidgets.length===0);}}if(_7f3!==this._lastValidState){this._lastValidState=_7f3;this.onValidStateChange(_7f3);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _7f5=this;var _7f6=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_7f8){_7f6.push(_7f5.connect(_7f8,"validate",dojo.hitch(_7f5,"_widgetChange",_7f8)));_7f6.push(_7f5.connect(_7f8,"_setDisabledAttr",dojo.hitch(_7f5,"_widgetChange",_7f8)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_7f9){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_7fa){var _7fb=dijit._getTabNavigable(dojo.byId(_7fa));this._firstFocusItem=_7fb.lowest||_7fb.first||_7fa;this._lastFocusItem=_7fb.last||_7fb.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_7fa,"tabindex","0");this._firstFocusItem=_7fa;}}});}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(_7fd){this.node.className="dijitDialogUnderlay "+_7fd;},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 _800=dijit.getViewport();os.top=_800.t+"px";os.left=_800.l+"px";is.width=_800.w+"px";is.height=_800.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,_802,_803){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_803.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_803.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 _809=(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(!_809){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_809){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 _80a=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_80a);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 _80f={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};var _811=dijit._underlay;if(!_811){_811=dijit._underlay=new dijit.DialogUnderlay(_80f);}this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){_811.attr(_80f);_811.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 _812=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_812=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_812=true;this._fadeOut.stop();}if(this.open||_812){dijit._underlay.hide();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _814=dijit.getViewport();if(mb.w>=_814.w||mb.h>=_814.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_814.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_814.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _816=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_816.l+(p?p.l:(_816.w-mb.w)/2))+"px",top:Math.floor(_816.t+(p?p.t:(_816.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 _81c=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_81c){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_81c){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 _81d=dijit.getViewport();if(!this._oldViewport||_81d.h!=this._oldViewport.h||_81d.w!=this._oldViewport.w){this.layout();this._oldViewport=_81d;}}));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});if(this._fixSizes){dojo.style(this.containerNode,{width:"auto",height:"auto"});}this.open=true;this._onShow();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){dijit._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);},_onCloseEnter:function(){dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");},_onCloseLeave:function(){dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");}});}if(!dojo._hasResource["dojox.image.Lightbox"]){dojo._hasResource["dojox.image.Lightbox"]=true;dojo.provide("dojox.image.Lightbox");dojo.experimental("dojox.image.Lightbox");dojo.declare("dojox.image.Lightbox",dijit._Widget,{group:"",title:"",href:"",duration:500,_allowPassthru:false,_attachedDialog:null,startup:function(){this.inherited(arguments);var tmp=dijit.byId("dojoxLightboxDialog");if(tmp){this._attachedDialog=tmp;}else{this._attachedDialog=new dojox.image.LightboxDialog({id:"dojoxLightboxDialog"});this._attachedDialog.startup();}if(!this.store){this._addSelf();this.connect(this.domNode,"onclick","_handleClick");}},_addSelf:function(){this._attachedDialog.addImage({href:this.href,title:this.title},this.group||null);},_handleClick:function(e){if(!this._allowPassthru){e.preventDefault();}else{return;}this.show();},show:function(){this._attachedDialog.show(this);},disable:function(){this._allowPassthru=true;},enable:function(){this._allowPassthru=false;}});dojo.declare("dojox.image.LightboxDialog",dijit.Dialog,{title:"",inGroup:null,imgUrl:dijit._Widget.prototype._blankGif,errorMessage:"Image not found.",adjust:true,_groups:{XnoGroupX:[]},errorImg:dojo.moduleUrl("dojox.image","resources/images/warning.png"),_fixSizes:false,templateString:"<div class=\"dojoxLightbox\" dojoAttachPoint=\"containerNode\">\n\t<div style=\"position:relative\">\n\t\t<div dojoAttachPoint=\"imageContainer\" class=\"dojoxLightboxContainer\">\n\t\t\t<img dojoAttachPoint=\"imgNode\" src=\"${imgUrl}\" class=\"dojoxLightboxImage\" alt=\"${title}\">\n\t\t\t<div class=\"dojoxLightboxFooter\" dojoAttachPoint=\"titleNode\">\n\t\t\t\t<div class=\"dijitInline LightboxClose\" dojoAttachPoint=\"closeNode\"></div>\n\t\t\t\t<div class=\"dijitInline LightboxNext\" dojoAttachPoint=\"nextNode\"></div>\t\n\t\t\t\t<div class=\"dijitInline LightboxPrev\" dojoAttachPoint=\"prevNode\"></div>\n\t\t\t\t<div class=\"dojoxLightboxText\"><span dojoAttachPoint=\"textNode\">${title}</span><span dojoAttachPoint=\"groupCount\" class=\"dojoxLightboxGroupText\"></span></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n",startup:function(){this.inherited(arguments);this._animConnects=[];this._clone=dojo.clone(this.imgNode);this.connect(this.nextNode,"onclick","_nextImage");this.connect(this.prevNode,"onclick","_prevImage");this.connect(this.closeNode,"onclick","hide");this._makeAnims();this._vp=dijit.getViewport();return this;},show:function(_820){var _t=this;if(!_t.open){_t.inherited(arguments);this._modalconnects.push(dojo.connect(dojo.global,"onscroll",this,"_position"),dojo.connect(dojo.global,"onresize",this,"_position"),dojo.connect(dojo.body(),"onkeypress",this,"_handleKey"));}if(this._wasStyled){dojo.destroy(_t.imgNode);_t.imgNode=dojo.clone(_t._clone);dojo.place(_t.imgNode,_t.imageContainer,"first");_t._makeAnims();_t._wasStyled=false;}dojo.style(_t.imgNode,"opacity","0");dojo.style(_t.titleNode,"opacity","0");_t._imageReady=false;_t.imgNode.src=_820.href;if((_820.group&&_820!=="XnoGroupX")||_t.inGroup){if(!_t.inGroup){_t.inGroup=_t._groups[(_820.group)];dojo.forEach(_t.inGroup,function(g,i){if(g.href==_820.href){_t._positionIndex=i;}},_t);}if(!_t._positionIndex){_t._positionIndex=0;_t.imgNode.src=_t.inGroup[_t._positionIndex].href;}_t.groupCount.innerHTML=" ("+(_t._positionIndex+1)+" of "+_t.inGroup.length+")";_t.prevNode.style.visibility="visible";_t.nextNode.style.visibility="visible";}else{_t.groupCount.innerHTML="";_t.prevNode.style.visibility="hidden";_t.nextNode.style.visibility="hidden";}_t.textNode.innerHTML=_820.title;if(!_t._imageReady||_t.imgNode.complete===true){_t._imgConnect=dojo.connect(_t.imgNode,"onload",_t,function(){_t._imageReady=true;_t.resizeTo({w:_t.imgNode.width,h:_t.imgNode.height,duration:_t.duration});dojo.disconnect(_t._imgConnect);if(_t._imgError){dojo.disconnect(_t._imgError);}});_t._imgError=dojo.connect(_t.imgNode,"onerror",_t,function(){dojo.disconnect(_t._imgError);_t.imgNode.src=_t.errorImg;_t._imageReady=true;_t.textNode.innerHTML=_t.errorMessage;});if(dojo.isIE){_t.imgNode.src=_t.imgNode.src;}}else{_t.resizeTo({w:_t.imgNode.width,h:_t.imgNode.height,duration:1});}},_nextImage:function(){if(!this.inGroup){return;}if(this._positionIndex+1<this.inGroup.length){this._positionIndex++;}else{this._positionIndex=0;}this._loadImage();},_prevImage:function(){if(this.inGroup){if(this._positionIndex==0){this._positionIndex=this.inGroup.length-1;}else{this._positionIndex--;}this._loadImage();}},_loadImage:function(){this._loadingAnim.play(1);},_prepNodes:function(){this._imageReady=false;this.show({href:this.inGroup[this._positionIndex].href,title:this.inGroup[this._positionIndex].title});},resizeTo:function(size){var _825=((dojo.boxModel=="border-box"))?22:0;if(this.adjust&&(size.h+_825+80>this._vp.h||size.w+_825+50>this._vp.w)){size=this._scaleToFit(size);}var _826=dojox.fx.sizeTo({node:this.containerNode,duration:size.duration||this.duration,width:size.w+_825,height:size.h+30+_825});this.connect(_826,"onEnd","_showImage");_826.play(15);},_showImage:function(){this._showImageAnim.play(1);},_showNav:function(){this._showNavAnim.play(1);},hide:function(){dojo.fadeOut({node:this.titleNode,duration:200,onEnd:dojo.hitch(this,function(){this.imgNode.src=this._blankGif;})}).play(5);this.inherited(arguments);this.inGroup=null;this._positionIndex=null;},addImage:function(_827,_828){var g=_828;if(!_827.href){return;}if(g){if(!this._groups[g]){this._groups[g]=[];}this._groups[g].push(_827);}else{this._groups["XnoGroupX"].push(_827);}},_handleKey:function(e){if(!this.open){return;}var dk=dojo.keys;var key=(e.charCode==dk.SPACE?dk.SPACE:e.keyCode);switch(key){case dk.ESCAPE:this.hide();break;case dk.DOWN_ARROW:case dk.RIGHT_ARROW:case 78:this._nextImage();break;case dk.UP_ARROW:case dk.LEFT_ARROW:case 80:this._prevImage();break;}},_scaleToFit:function(size){var ns={};if(this._vp.h>this._vp.w){ns.w=this._vp.w-70;ns.h=ns.w*(size.h/size.w);}else{ns.h=this._vp.h-80;ns.w=ns.h*(size.w/size.h);}this._wasStyled=true;var s=this.imgNode.style;s.height=ns.h+"px";s.width=ns.w+"px";ns.duration=size.duration;return ns;},_position:function(e){this.inherited(arguments);this._vp=dijit.getViewport();},_makeAnims:function(){dojo.forEach(this._animConnects,dojo.disconnect);this._animConnects=[];this._showImageAnim=dojo.fadeIn({node:this.imgNode,duration:this.duration});this._animConnects.push(dojo.connect(this._showImageAnim,"onEnd",this,"_showNav"));this._loadingAnim=dojo.fx.combine([dojo.fadeOut({node:this.imgNode,duration:175}),dojo.fadeOut({node:this.titleNode,duration:175})]);this._animConnects.push(dojo.connect(this._loadingAnim,"onEnd",this,"_prepNodes"));this._showNavAnim=dojo.fadeIn({node:this.titleNode,duration:225});}});}if(!dojo._hasResource["dojox.xml.parser"]){dojo._hasResource["dojox.xml.parser"]=true;dojo.provide("dojox.xml.parser");dojox.xml.parser.parse=function(str,_832){var _833=dojo.doc;var doc;_832=_832||"text/xml";if(str&&dojo.trim(str)&&"DOMParser" in dojo.global){var _835=new DOMParser();doc=_835.parseFromString(str,_832);var de=doc.documentElement;var _837="http://www.mozilla.org/newlayout/xml/parsererror.xml";if(de.nodeName=="parsererror"&&de.namespaceURI==_837){var _838=de.getElementsByTagNameNS(_837,"sourcetext")[0];if(!_838){_838=_838.firstChild.data;}throw new Error("Error parsing text "+nativeDoc.documentElement.firstChild.data+" \n"+_838);}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(_833.implementation&&_833.implementation.createDocument){if(str&&dojo.trim(str)&&_833.createElement){var tmp=_833.createElement("xml");tmp.innerHTML=str;var _83f=_833.implementation.createDocument("foo","",null);dojo.forEach(tmp.childNodes,function(_840){_83f.importNode(_840,true);});return _83f;}else{return _833.implementation.createDocument("","",null);}}}}return null;};dojox.xml.parser.textContent=function(node,text){if(arguments.length>1){var _843=node.ownerDocument||dojo.doc;dojox.xml.parser.replaceChildren(node,_843.createTextNode(text));return text;}else{if(node.textContent!==undefined){return node.textContent;}var _844="";if(node){dojo.forEach(node.childNodes,function(_845){switch(_845.nodeType){case 1:case 5:_844+=dojox.xml.parser.textContent(_845);break;case 3:case 2:case 4:_844+=_845.nodeValue;}});}return _844;}};dojox.xml.parser.replaceChildren=function(node,_847){var _848=[];if(dojo.isIE){dojo.forEach(node.childNodes,function(_849){_848.push(_849);});}dojox.xml.parser.removeChildren(node);dojo.forEach(_848,dojo.destroy);if(!dojo.isArray(_847)){node.appendChild(_847);}else{dojo.forEach(_847,function(_84a){node.appendChild(_84a);});}};dojox.xml.parser.removeChildren=function(node){var _84c=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _84c;};dojox.xml.parser.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}return null;};}if(!dojo._hasResource["dojox.data.dom"]){dojo._hasResource["dojox.data.dom"]=true;dojo.provide("dojox.data.dom");dojo.deprecated("dojox.data.dom","Use dojox.xml.parser instead.","2.0");dojox.data.dom.createDocument=function(str,_84f){dojo.deprecated("dojox.data.dom.createDocument()","Use dojox.xml.parser.parse() instead.","2.0");try{return dojox.xml.parser.parse(str,_84f);}catch(e){return null;}};dojox.data.dom.textContent=function(node,text){dojo.deprecated("dojox.data.dom.textContent()","Use dojox.xml.parser.textContent() instead.","2.0");if(arguments.length>1){return dojox.xml.parser.textContent(node,text);}else{return dojox.xml.parser.textContent(node);}};dojox.data.dom.replaceChildren=function(node,_853){dojo.deprecated("dojox.data.dom.replaceChildren()","Use dojox.xml.parser.replaceChildren() instead.","2.0");dojox.xml.parser.replaceChildren(node,_853);};dojox.data.dom.removeChildren=function(node){dojo.deprecated("dojox.data.dom.removeChildren()","Use dojox.xml.parser.removeChildren() instead.","2.0");return dojox.xml.parser.removeChildren(node);};dojox.data.dom.innerXML=function(node){dojo.deprecated("dojox.data.dom.innerXML()","Use dojox.xml.parser.innerXML() instead.","2.0");return dojox.xml.parser.innerXML(node);};}if(!dojo._hasResource["dojo_widgets.layout.DynamicDialog"]){dojo._hasResource["dojo_widgets.layout.DynamicDialog"]=true;dojo.provide("dojo_widgets.layout.DynamicDialog");dojo.experimental("dojo_widgets.layout.DynamicDialog");dojo.declare("dojo_widgets.layout.DynamicDialog",[dijit._Widget,dijit._Templated],{widgetID:null,theId:null,title:null,theDialog:null,content:null,button:null,loaded:false,templatePath:"/js/dojo/dojo_widgets/layout/resources/DynamicDialog.html",postCreate:function(){this.inherited(arguments);this.widgetID=this.id;this.theDialog=new dijit.Dialog({id:this.theId,title:this.title}),this.DojoBannerCanvas;this.init(this.theDialog);},startup:function(){this.inherited(arguments);},init:function(_1){dojo.xhrGet({url:this.content,handle:function(_2,_3){if(typeof _2=="error"){console.warn("error!",_3);}else{_1.setContent(_2);dojo.parser.parse(_1);this.loaded=true;}}});return true;}});}if(!dojo._hasResource["dojo_widgets.product.ProductPromotion"]){dojo._hasResource["dojo_widgets.product.ProductPromotion"]=true;dojo.provide("dojo_widgets.product.ProductPromotion");dojo.experimental("dojo_widgets.product.ProductPromotion");dojo.declare("dojo_widgets.product.ProductPromotion",[dijit._Widget],{artistStore:null,artistSelect:null,DojoSearchField:null,DojoSearchSubmit:null,DojoRecordsField:null,SearchURL:null,theDialog:null,postCreate:function(){this.inherited(arguments);dojo.connect(dojo.byId("promotionadd"),"onclick",this,this.selectPromotion);this.productURL=location.pathname.split("/");dojo.connect(dijit.byId("product_promotions_contentPane"),"onload",this,"connectDelete");this.init();},init:function(){this.theDialog=new dijit.Dialog({id:"promotion_add",title:"Product Promotions"}),dojo.byId("promotion_add_dialog");return true;},selectPromotion:function(e){var _2=this;dojo.xhrGet({url:"/services/PromotionAdmin/"+this.productURL[3],handle:function(_3,_4){if(typeof _3=="error"){console.warn("error!",_4);}else{dojo.connect(dojo.byId("PromotionAdmin"),"onsubmit",_2,_2.formSubmit);_2.theDialog.setContent(_3);}}});this.theDialog.show();},formSubmit:function(e){var _6=this;e.preventDefault();var _7=dojo.xhrPost({form:"PromotionAdmin",handleAs:"text",handle:function(_8,_9){if(typeof _8=="error"){console.warn("error!",_9);}else{_6.theDialog.setContent(_8);_6.refreshPane();}}});},connectDelete:function(){var _a=this;dojo.query(".column_Delete a").forEach(function(_b,i){dojo.connect(_b,"onclick",_a,"doDelete");});},doDelete:function(e){dojo.stopEvent(e);hitURL("/services/ProductAdmin/delete/"+e.target.getAttribute("url"));this.refreshPane();},refreshPane:function(){dijit.byId("product_promotions_contentPane").setHref("/services/ProductAdmin/"+this.productURL[3]);this.connectDelete();}});}
dojo.provide("dojo.nls.tattoojohnny_en");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.en");dijit.nls.loading.en={"loadingState":"Loading...","errorState":"Sorry, an error occurred"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.en");dijit.form.nls.validate.en={"rangeMessage":"This value is out of range.","invalidMessage":"The value entered is not valid.","missingMessage":"This value is required."};dojo.provide("dijit.form.nls.ComboBox");dijit.form.nls.ComboBox._built=true;dojo.provide("dijit.form.nls.ComboBox.en");dijit.form.nls.ComboBox.en={"previousMessage":"Previous choices","nextMessage":"More choices"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.en");dijit.nls.common.en={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.en");dijit.nls.common.en={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.en");dijit.nls.common.en={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};
// JavaScript Document
dojo.registerModulePath("dojo_widgets","/js/dojo/dojo_widgets");
dojo.registerModulePath("dojo","/js/dojo/dojo");
dojo.registerModulePath("dijit","/js/dojo/dijit");
dojo.registerModulePath("dojox","/js/dojo/dojox");

// scan page for widgets and instantiate them
dojo.require("dojo.parser");	
dojo.require("dijit.layout.ContentPane");

//Accordion container
dojo.require("dijit.layout.AccordionContainer");
dojo.require("dojox.fx.easing");
dojo.require("dojox.fx.scroll");

// for the Tree
dojo.require("dojo.data.ItemFileReadStore");

// Tooltip
dojo.require("dijit.Tooltip");

// Wishlist
dojo.require("dojo_widgets.wishlist.Wishlist");
dojo.require("dojo_widgets.checkout.Checkout");
dojo.require("dojo_widgets.checkout.Cart");
dojo.require("dojo_widgets.checkout.Shipping");
dojo.require("dojo_widgets.faq.FAQ");

//Search Widget
dojo.require("dojo_widgets.search.Search");

//For Google ECommerce
var ec=false;

dojo.addOnLoad( function() 
  {
  dojo.parser.parse();
  fillJSONContainer( document );
  }
);

deleteIcon = function ( el, form ) {
  if (confirm('Are you sure you want to delete this image?')) {
    var thid = el.id;
    var ahidden = el.previousSibling;
    ahidden.setAttribute("value","true");
    el.parentNode.parentNode.style.display="none";
  }
}

function appendVar( aurl, key, value ) {
  var re = new RegExp(/\?/);
  delim = (re.exec( aurl )) ? "&" : "?";
  if (key == "date") {
  var d = new Date();
    return aurl + delim + "ts=" + d.getTime();
  } else {
    return aurl + delim + key + "=" + value;
  }
}

function getURL( theURL, handler, type, async ) {
   dojo.xhrGet({
      url: theURL,
      handle: handler,
      handleAs: type,
      async: async,
      load: function(type, data, evt){ 
        return data;
      },
      error: function(type, error){},
      mimetype: "text/plain"
  });
}

function hitURL( theURL ) {
   dojo.xhrGet({
      url: theURL,
      async: true,
      load: function(type, data, evt){ 
        
      },
      error: function(type, error){ 
        //alert(dojo.json.serialize(error)); 
       },
       mimetype: "text/plain"
  });
}

// JavaScript Document
getPageURL = function() {
  var query = document.URL.split("/");
  var thestring = '';
  var pattern = /^[a-z0-9\._]+$/;
  for(i=3;i<query.length;i++) {
    if(pattern.exec(query[i])) {
      thestring += query[i] + '/';
    }
  }
  return thestring;
}

function pageScroll() {
	window.scrollBy(0,-80); // horizontal and vertical scroll increments
	scrolldelay = setTimeout('pageScroll()',100); // scrolls every 100 milliseconds
	if (getScrollXY()[1] == 0) {
    stopScroll();
  }
}

function stopScroll() {
  clearTimeout(scrolldelay);
}

function getScrollXY() {
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return [ scrOfX, scrOfY ];
}

function openLink(link) {
  window.open(link);
  return true;
}

/*Dynamically generates a flopup window 
* using these parameters
*   @anid = id of widget (string is appended to "_floatingPane")
*   @title = window titlebar
*   @form = name of contained form, use "false" for no form
*   @href = location of window contents
*   */
function flopUp( args ) {
  
  if (! args.refresh)
    args.refresh = false;
  
  if (! args.refreshargs)
    args.refreshargs = null;
    
  var location = document.createElement("div");
  document.body.appendChild(location);
  href = appendVar(args.href, "date");
	theObject = dijit.byId(args.anid+"_floatingPane");
  
  if (! theObject) {
  	var theObject = new dojo_widgets.layout.HitchPane({
        id:args.anid+"_floatingPane",
    		title:args.title,
    		dockable: false,
    		maxable: false,
    		shadable: true,
    		closable: true,
    		resizable: false,
    		autoSize: args.autoSize,
    		autoSizeNodes: args.autoSizeNodes,
    		onRefresh: args.refresh,
    		onRefreshArgs: args.refreshargs
    },location);
    	
    theObject.startup();
  }
  
  if(args.hitch != null) {
    var hitchArgs = args.hitch.split(":");
  }
	
  if ((hitchArgs) && (hitchArgs[0] == "form")) {
	  hitchForm(hitchArgs[1],args.anid+"_floatingPane",args.href);
	} else if ((hitchArgs) && (hitchArgs[0] == "hitch")) {
	  theObject.setHitch( hitchArgs[1], args.href );
  } else {
    theObject.attr("href",args.href);
  }

}


/*
Utility function to attatch a form 
to the dojo form controller
Unused in this build
 @name = form node id
 @node = form parent node
 @url = url of AJAX Form
*/
var hitchForm = function(name,node,url) {
  console.debug("Hitching form ", name, " to node ", node);
    
  if (url){
  dijit.byId(node).setHref(url);
  }
  dojo.connect(dojo.byId(name),"onsubmit",function(event){formSubmit(event,name,node);});
}

/*
The dojo form controller
will refresh the container div with posted data
*/
var formSubmit = function(e,name,node){
  // prevent the form from actually submitting
	e.preventDefault(); 
	// submit the form in the background	
	dojo.xhrPost({
		form: name,
		handleAs: "text",
		handle: function(data,args){
			if(typeof data == "error"){
				console.warn("error!",args);
			}else{
				// show our response 
				console.log("Successfully posted form ", name);
				try {
          var resultNode = dijit.byId(node);
				} catch(e){
          var resultNode = node;
        }
        resultNode.setContent(data);
        
        try {
          
        } catch (e) {
        
        }
        //Recursively snag forms from post results
        //Deprecated, need to review...
        //snagForms(node);
			}
		}
	});
};

//For the replication of elements
function fillJSONContainer( data ) {
  dojo.query(".styro_container").forEach(function(node,i){
    fillFragments ( node );
  });
  
}

fillFragments = function( anelement ) {
  var base = anelement.childNodes[0].id.split("_");
  var jsondata = anelement.childNodes[0].innerHTML;
  var aform = anelement.childNodes[0].getAttribute("name").split("_");
  var object = dojo.fromJson(jsondata);
  if (object) {
  for (i=0;i<object["items"].length;i++){
    if (i > 0) { 
      uuid = duplicateFragment( base[1], true );
      if (uuid){ 
        var toremove = base[1]+"_";
        var re = new RegExp(base[1]);
        uuid = uuid.replace(re,"");
      }
    } else {
      uuid = "";
    }
    setFragment( aform[2], base[1], uuid, object["items"][i] );
    }
  }
}

setFragment = function ( formName, parentName, uuid, data ) {
  var parentID = parentName + uuid;
  for (key in data) {
    var formElement = document.getElementById( uuid + key );
    //This is an actual Form Element
    if ((formElement) && (formElement.type)) {
      switch (formElement.type) {
        case "text":
        case "hidden":
          formElement.value = data[key];
        break;
        case "select-one":
          setSelect(formElement,data[key]);
        break;
      }
    } else if (formElement) {
      //This is just an HTML Image Element
      if (formElement.src) {
        formElement.src = data[key];
      } else {
        formElement.innerHTML = data[key];
      }
    }
  }
}


setSelect = function (elementNode,aValue) {
  var nodeOptions = elementNode.options;
  for (j=0;j<nodeOptions.length;j++) {
    if (nodeOptions[j].value == aValue) {
      elementNode.selectedIndex = j;
    }
  }
}

duplicateFragment = function ( anid, prefill ) {
  var sourceFrag = document.getElementById( anid );
  if (! sourceFrag) {
    return false;
  }
  var theform = sourceFrag.parentNode;
  
  var thistotal = theform.elements[ anid + '_total'];
  var trackElement = document.getElementById(anid + "_track");
  /* ie this is the first "insert" */
  /* create a form "count" element, and track our inserted objects */
  
  if (! thistotal) {
    var newElement = document.createElement("input");
    newElement.setAttribute("type","hidden");
    newElement.setAttribute("value",1);
    newElement.setAttribute("name",anid + "_total");
    theform.appendChild(newElement);
  }
  
  if (! trackElement) {
    var trackElement = document.createElement("div");
    trackElement.setAttribute("id",anid + "_track");
    trackElement.style.display = "none";
    trackElement.innerHTML = anid;
    theform.appendChild(trackElement);
  }
  
  var theUUID = dojo.dnd.getUniqueId();
  
  var newID = theUUID + "_" + anid ;
  
  var destFrag = sourceFrag.cloneNode(true);
  firstDiv = dojo.query("*",destFrag)[0].parentNode;
  firstDiv.setAttribute("id", newID );
  firstDiv.setAttribute("class", "row" );
  
  //Remove any images that were moved
  dojo.query("img:not(.remove_iterator|.delete_icon)",destFrag).forEach(function(node,i){
    node.setAttribute("src","");
  });
  
  //Remove any images that were moved
  if (! prefill) {
    dojo.query("img.delete_icon",destFrag).forEach(function(node,i){
      node.setAttribute("src","");
    });
  }
  //Update Form Input Elements, If that's what we iterate
  dojo.query("input",destFrag).forEach(function(node,i){
    the_id = node.getAttribute("id");
    node.setAttribute("id",theUUID + "_" + the_id);
  });
  //Update Form Select Elements, If that's what we iterate
  dojo.query("select",destFrag).forEach(function(node,i){
    the_id = node.getAttribute("id");
    node.setAttribute("id",theUUID + "_" + the_id);
  });
  //Update Image Elements, If that's what we iterate
  dojo.query("img:not(.remove_iterator|.delete_icon)",destFrag).forEach(function(node,i){
    the_id = node.getAttribute("id");
    node.setAttribute("id",theUUID + "_" + the_id);
  });
  //Update Simple Span Elements (note, this class is added in the XSL of Styroform), 
  dojo.query("span.display",destFrag).forEach(function(node,i){
    the_id = node.getAttribute("id");
    node.setAttribute("id",theUUID + "_" + the_id );
  });
  //Update Simple Text Elements (note, this class is added in the XSL of Styroform), 
  //It's turned backwards, however
  dojo.query("span.displayselect",destFrag).forEach(function(node,i){
    the_id = node.getAttribute("id");
    node.setAttribute("id",theUUID + "_" + the_id );
  });
  
  theform.elements[anid + "_total"].value++;
  
  //Update the new node with a "remove" icon
  dojo.query("img.remove_iterator",destFrag).forEach(function(node,i){
    the_id = node.getAttribute("id");
    node.setAttribute("src",'/images/Neu/16x16/actions/undo.png');
    node.setAttribute("border",0);
    node.setAttribute("onclick","removeFragment('" + newID+ "')");
  });
  
  trackString = trackElement.innerHTML;
  trackArray = trackString.split(",");
  placeFrag = document.getElementById(trackArray[trackArray.length - 1]);
  dojo.place(destFrag,placeFrag,"after");
  
  trackElement.innerHTML += "," + newID;
  return newID;
}

removeFragment = function ( anid ) {
  var sourceFrag = document.getElementById( anid );
  var theform = sourceFrag.parentNode;
  dojo._destroyElement(sourceFrag);
  rootID = anid.split("_")[1];
  theform.elements[rootID + "_total"].value--;
  trackElement = document.getElementById(rootID + "_track");
  trackString = trackElement.innerHTML;
  var re = new RegExp("," + anid, 'g');
  trackString = trackString.replace(re,'');
  trackElement.innerHTML = trackString;
}

function toggleDiv( divid, parentid ) {
   parentid = (typeof parentid == 'undefined') ? 'null' : parentid;
   if (( ! dojo.style(divid,"display")) || (dojo.style(divid,"display") == "none")) {
    console.log("fading in "+ divid);
    var i = dojo.fadeIn({node : divid});
    dojo.connect(i, "beforeBegin", function(){
		  dojo.style(divid, "opacity", 0);
      dojo.style(divid, "display", "block");
    });
    if (parentid != "null") {
      dojo.connect(i, "onEnd", function(){
  		 dojo.removeClass(parentid,"windowshade_closed");
       dojo.addClass(parentid,"windowshade_open");
      });
    }
    i.play();
   } else {
    console.log("fading out "+ divid);
    var o = dojo.fadeOut({node : divid});
    dojo.connect(o, "onEnd", function(){
		 dojo.style(divid, "opacity", 0);
     dojo.style(divid,"display","none");
     if (parentid != "null") {
        dojo.removeClass(parentid,"windowshade_open");
        dojo.addClass(parentid,"windowshade_closed");
     }
    });
    o.play();
   }
   console.log("done toggling "+ divid);
}

function cipher(x, h) {
	// JavaScript Document
	//var movie = (h==1) ? "tattoo-design-horizontal.swf" : "tattoo-design.swf"
  var movie = "tattooj.swf"
  var flashvars = {};
  var params = {
    scale:"noscale",
    wmode:"opaque",
    bgcolor:"#ffffff"
  };
  var attributes = {
    id: "flashContent"
  };
  
  var loc = x.substr(0,1)+"/" + x.substr(0,2) + "/" + x.substr(0,3) + "/" + x + ".swf";
  swfobject.embedSWF("/images/" + movie+"?p="+x, "tattoodesign", "325", "270", "7.0.0","/swf/expressInstall.swf", flashvars, params, attributes);
  //swfobject.embedSWF("http://beta.tattoojohnny.com/images/data/"+loc, "tattoodesign", "325", "270", "7.0.0","/swf/expressInstall.swf", flashvars, params, attributes);

}

//Disabling the Keyboard
var message="Copying images from Tattoo Johnny has been disabled.";
function noClick(e) {
  if (document.all) {
    if (event.button==2||event.button==3) {
      alert(message);
      return false;
    }
  }
  if (document.layers) {
    if (e.which == 3) {
      alert(message);
      return false;
    }
  }
}
if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=noClick;
// Local Widgets
dojo.require("dojo_widgets.layout.AutoTitlePane");
dojo.require("dojo_widgets.layout.AutoPane");
dojo.require("dojo_widgets.layout.HitchPane");

//Combo Boxes
dojo.require("dijit.form.FilteringSelect");
dojo.require("dijit.form.ComboBox");

dojo.require("dojox.data.dom");

//Date Picker
dojo.require("dijit.form.DateTextBox");

//Product Promotions
dojo.require("dojo_widgets.product.ProductPromotion");

/*
Pull the specific node id from the inline div
If that exists, then looks for any "form" nodes
and attatch them to the dojo form controller
replacing the action with a specific dojo_layout URL
*/
var snagForms = function( node ) {
  var nid=false;
  try {
    if (document.getElementById(node.id).getAttribute("nid")) {
      nid=document.getElementById(node.id).getAttribute("nid");
    } else {
      console.log('Note this nid is not an existing node');
      return false;
    }
    console.debug("Snagging forms in node ", nid);
  }catch(e){
		console.log('Note this is not an existing node');
		return false;
	}
	
  dojo.query("form",node.id).forEach(
    function(aform) {
        console.debug("Discovered form ", aform.id);
        if (nid) {
          var action = dojo.byId(aform.id).getAttribute("action") + '?destination=/dojo_layout/run/node/' + nid;
        } else {
          var action = dojo.byId(aform.id).getAttribute("action") + '?destination=/dojo_layout/run/confirm/null/null';
        }
        console.debug("Setting form action for ", aform.id, "to ", action);
        dojo.byId(aform.id).setAttribute("action",action);
        console.debug("Connecting form ", aform.id);
        dojo.connect(dojo.byId(aform.id),"onsubmit",function(event){formSubmit(event,aform.id,node);});
    }
  
  );
}

function toggleAdmin() {
  var display_status = document.getElementById("wtvr_control").style.display;
  display_status = (display_status == "") ? "none" : display_status;
  if (display_status == "none") {
  document.getElementById("wtvr_control").style.display="block";
  document.getElementById("wtvr_debug").style.display="block";
  } else {
  document.getElementById("wtvr_control").style.display="none";
  document.getElementById("wtvr_debug").style.display="none";
  }
}


//Pass through function
//For legacy Forms
var thisValidator = new FormValidator();

function checkForm(validator,theForm) {
  thisValidator.init( theForm );
  thisValidator.checkForm();
  if ( thisValidator.debug == 0 ) {
    return thisValidator.validated;
	} else {
		if (thisValidator.debug == 2) {
  		console.log("The form " + theForm + " has " + thisValidator.theElementsLength + " elements.");
  	}
    console.info("Total Errors: " + thisValidator.err);
		return false;
	}
}

function setAction(element,action) {
  var theform = element.form;
  var theelement = theform.elements['styroaction'];
  if (! theelement || theelement == 'undefined' ) {
    var formaction = document.createElement("input");
  	formaction.setAttribute("type","hidden");
  	formaction.setAttribute("name","styroaction");
  	formaction.setAttribute("value",action);
  	theform.appendChild(formaction);
	} else {
    theelement.value = action;
  }
}
		
function setEdit(theForm) {
	thisValidator.skipcheck = true;
}

function dropEdit(theForm) {
  //alert("DROPPING");
}

//Class Constructor
function FormValidator() {

}

FormValidator.prototype.init = function( theForm, event ) {
  if(theForm != undefined)
	{
		this.theForm = document.forms[theForm];
		this.theElements = this.theForm.elements;
		this.theElementsLength = this.theElements.length;
	}
	this.err=0;
	this.setValidators();
}

//Debug Levels
// 1 =  Error Every Field
// 2 = Show Name, VREQ, and VTIP

//Class Properties
FormValidator.prototype.skipcheck = false;
FormValidator.prototype.debug = 0;
FormValidator.prototype.vcqk = new Object();
FormValidator.prototype.vcqkloaded = false;
FormValidator.prototype.err = 0;
FormValidator.prototype.selset = 0;
FormValidator.prototype.firsterror = '';
FormValidator.prototype.currentElement = '';
FormValidator.prototype.required = '';
FormValidator.prototype.doval = '';
FormValidator.prototype.gotit = '';
//This is a hack for the dojo Editor Item in Digit 1.2
FormValidator.prototype.editor = null;

FormValidator.prototype.validated = false;

//Class Methods
FormValidator.prototype.thisIE = function () {
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		return true;
	} else {
		return false;
	}
}

FormValidator.prototype.setValidators = function() {
	if (! this.vcqkloaded) {
	  thisParse = new XMLParser;
  	var vdoc = thisParse.getDoc('/xml/StyroformValidators.xml');
  	var validators = vdoc.getElementsByTagName("validator");
  	for(var i = 0; i < validators.length; i++) {
  		var thistype = validators[i].getElementsByTagName("type")[0].firstChild.data;
  		var thisexpr = validators[i].getElementsByTagName("expression")[0].firstChild.data;
  		eval('this.vcqk.' + thistype + '= eval(thisexpr)');
  		//if (this.debug == 2) console.log(thistype + '=' + thisexpr);
  	}
  	this.vcqkloaded = true;
	}
}

FormValidator.prototype.showerrors = function() {
	if (this.theElements['showerrors'].value == 'TRUE') {
		return true;
	} else {
		return false;
	}
}

FormValidator.prototype.checkForm = function() {
  if (this.skipcheck) {
    FormValidator.prototype.validated = true;
  } else {
    //Loop over all form elements
  	for(var i = 0; i < this.theElementsLength; i++) {
  	  this.currentElement = this.theElements[i];
  		if (this.debug == 2) {
    		console.log("Debugging Form Item " + i + "::"+ this.currentElement.type + " -> " + this.currentElement.name);
    	}
  		this.validateItem();
  	}
  	this.setGlobalErrorNotice();
  }
}

FormValidator.prototype.setGlobalErrorNotice = function () {
  if (this.err > 0) {
    if (document.getElementById('errornotice_'+this.theForm.name).className == 'errornotice') {
	  		document.getElementById('errornotice_'+this.theForm.name).className = 'errornotice_visible';
  	}
  	if (document.getElementById('errornotice_'+this.theForm.name).style.display == 'none') {
  		document.getElementById('errornotice_'+this.theForm.name).style.display = 'block';
  	}
  	FormValidator.prototype.validated = false;
	} else {
		FormValidator.prototype.validated = true;
	}
}

FormValidator.prototype.initItem = function () {
  this.required = false;
	this.doval = false;
	this.currentElement.vtip = this.getDocValue("vtip");
	this.currentElement.vskip = this.getDocValue("vskip");
	this.currentElement.vreq = this.getDocValue("vreq");
  //This is a value set PER item for showing CSS Error messages
  this.currentElement.spec = (this.getDocValue("spec") != '') ? this.getDocValue("spec") : "FALSE";
  //This is the Size limitation for textarea
  this.currentElement.asize = this.getDocValue("size");
  if ((this.currentElement.type != 'select-multiple') && (this.currentElement.type != 'select-one')) {
    //this.currentElement.value = this.currentElement.value.trim();
  }
  
  this.currentElement.thisclass = this.getaclass(this.currentElement.className);
	this.currentElement.parentclass = this.getaclass(this.currentElement.parentNode.className);
	this.currentElement.parentparentclass = this.getaclass(this.currentElement.parentNode.parentNode.className);
	this.required = this.currentElement.vreq;
	this.editor = null;
}

FormValidator.prototype.validateItem = function () {
	
  //try {
    this.initItem();
  	
  	if (this.currentElement.vtip != null) {
  		if (this.currentElement.vtip.length > 0) {
  			this.doval = true;
  		}
  	}
  	
  	if (this.debug == 2) {
  		console.info("Name:" + this.currentElement.name + " Required: " + this.currentElement.vreq + " Validation:" + this.currentElement.vtip)
  	}
  	
  	var elementType = this.currentElement.type.replace(/[-]/,"");
  	if (elementType == 'hidden') {
        this.required = 'FALSE';
  		  this.doval = false;
    } else if ((this.currentElement.vreq == 'VNN') && (this.currentElement.value.length > 0)) {
  		  this.required = 'TRUE';
  	} else if ((this.currentElement.vreq == 'VNN') && (this.currentElement.value.length == 0)) {
  	  	this.required = 'TRUE';
  		  this.doval = false;
  	} else if (elementType == 'reset') {
        console.info("Name:" + this.currentElement.name + "( " + this.currentElement.type + " ) has no validation method, skipping...");
        this.required = 'FALSE';
        this.doval = false;
    }
    
  	//If we've told the form to temporarily skip the validation by setting this to other than "false"
  	//Just move past the element, but note this doesn't work for server-side validation
  	if (this.currentElement.vskip != "false") {
      this.required = 'FALSE';
    }
  	
    if ((this.required == 'TRUE') && (! this.currentElement.vtip.substring(0,2) == 'js') && (this.currentElement.type != 'select-multiple') && (this.currentElement.type != 'select-one') && (!this.vcqk[this.currentElement.vtip])) {
  	 if (this.debug == 2) {
      console.error ("No validator for " + this.currentElement.vtip);
  	 }
     this.err++;
     return false;
    }
  	if (this.doval != false) {
  	 if (this.currentElement.vtip.substring(0,2) == 'js') {
  	    var theres = eval(this.currentElement.vtip.replace("js:", ""));
  	    if (this.debug == 2) {
      		console.info("eval of " + this.currentElement.name + " is " + theres);
      	}
  	    if (! theres) {
  			  if (this.currentElement.type == 'checkbox') {
            this.err++;
            this.putErrors();
          } else {
    		    this.createError();
    		  }
        } else {
          this.resetField();
        }
  		} else {
  		  
  		  var thefunction = 'this.validate_'+elementType+'()';
        
        return eval(thefunction);
      }
  	}
  //} catch(e) {
  //  if (this.debug == 2)console.log('error with js validators');
  //  return false;
  //}
}

FormValidator.prototype.validate_ = function() {
   return true;
}

FormValidator.prototype.validate_file = function() {
   if (this.currentElement.vtip.substring(0,2) != 'js') {
		if ((this.currentElement.vtip == 'phoneNumber') || (this.currentElement.vtip == 'phone')){
			this.currentElement.value = this.currentElement.value.replace(/[^\d]/g, "");
			if ((this.currentElement.value.substring(0,1) == 0) || (this.currentElement.value.substring(0,1) == 1)) {
				this.currentElement.value = this.currentElement.value.substring(1,this.currentElement.value.length);
			  }
			}
		var gotIt = this.vcqk[this.currentElement.vtip].exec(this.currentElement.value);
	} else {
		if (eval(this.currentElement.vtip.replace("js:", "")) == 'true') {
			gotIt = true;
		} else {
			gotIt = false;
		}
	}
	if ((! gotIt) || (gotIt == null)) {
		this.createError();
	} else {
		this.resetField();
	}
}

FormValidator.prototype.validate_submit = function() {
   return true;
}

FormValidator.prototype.validate_text = function() {
  
  if (this.currentElement.vtip == 'truncURL') {
	  var initStart = /^http(s)?/.exec(this.currentElement.value);
	  if (initStart != null) {
	    var theval = this.currentElement.value.replace("https://", "");
  	  theval = theval.replace("http://", "");
  	  if (theval == "") {
  	    var gotIt = true;
      } else {
        var gotIt = this.vcqk[this.currentElement.vtip].exec(theval);
      }
    } else {
      var gotIt = false;
    }
  } else if (this.currentElement.vtip.substring(0,2) != 'js') {
    if ((this.currentElement.vtip == 'phoneNumber') || (this.currentElement.vtip == 'phone')){
  		this.currentElement.value = this.currentElement.value.replace(/[^\d]/g, "");
  		if ((this.currentElement.value.substring(0,1) == 0) || (this.currentElement.value.substring(0,1) == 1)) {
			 this.currentElement.value = this.currentElement.value.substring(1,this.currentElement.value.length);
		  }
		}
		var gotIt = this.vcqk[this.currentElement.vtip].exec(this.currentElement.value);
	} else {
		if (eval(this.currentElement.vtip.replace("js:", "")) == 'true') {
			gotIt = true;
		} else {
			gotIt = false;
		}
	}
	if ((! gotIt) || (gotIt == null)) {
		this.createError();
	} else {
	  this.resetField();
	}
}

FormValidator.prototype.validate_textarea = function() {
  //this is a trigger textarea for the validator
  
  if (this.currentElement.name.substring(0,6) == 'editor') {
    //this is the hidden field
    result = this.currentElement.name.replace('editor','');
    if(this.debug == 2) {
		  console.info("hidden field name is "+result);
	  } 
    //this is the dojo element
    editordojo = this.currentElement.name.replace('editor','editordojo');
    
    if(this.debug == 2) {
		  console.log("dojo editor name is "+editordojo);
	  }
    
    this.editor = this.currentElement.name.replace('editor','editorwrapper');
    
    if(this.debug == 2) {
		  console.log("this.editor is "+this.editor + " from " + editordojo);
	  }
	  
    //Get the data from dojo's editor
    var editorObj = dijit.byId(editordojo);
    var vals = editorObj.getValue(false);
    vals = vals.replace("<br>","");
    if(this.debug == 2) {
      console.log('value='+vals);
    }
    //pass the dojo value to the "hidden" but correctly named formelement
    this.theForm.elements[result].value = vals;
  } else {
    vals = this.currentElement.value;
  }
  
  var gotIt = this.vcqk[this.currentElement.vtip].exec(vals.replace(/\n/g,"")); 
  if ((this.currentElement.asize > 0) && (this.currentElement.value.length > this.currentElement.asize)) {
    gotIt = false;
  }
  if ((! gotIt) || (gotIt == null)) {
    this.createError();
	} else {
    this.resetField();
	}
}

FormValidator.prototype.validate_checkbox = function() {
   if (((this.currentElement.vreq == 'TRUE') && (this.fieldCheckCount(this.theElements[this.currentElement.name]) == 0)) || (this.fieldCheckCount(this.theElements[this.currentElement.name]) > this.currentElement.vtip))  {
 		this.err++;
		this.putErrors();
	 } else {
	 	this.resetField();
	}
}

FormValidator.prototype.validate_radio = function() {
	//if (((! this.currentElement.vtip == 0) && (this.fieldChecked(this.theElements[this.currentElement.name]) == this.theElements.vreq)) || (this.theElements.vtip == 0)) {
	if ((this.required == 'TRUE') && (! this.fieldChecked(this.theElements[this.currentElement.name]))){
		this.err++;
		this.putErrors();
	} else {
		this.resetField();
	}
}

FormValidator.prototype.validate_hidden = function() {
	return true;
}

FormValidator.prototype.validate_password = function() {
  //same as Text Field
  this.validate_text();
}

FormValidator.prototype.validate_button = function() {
  return true;
}

FormValidator.prototype.validate_selectone = function() {
	if (this.currentElement.selectedIndex == this.currentElement.vtip) {
		this.createError();
  } else {
  	//this.currentElement.thevalue = document.forms[theForm.name].elements[name].options[document.forms[theForm.name].elements[name].selectedIndex].value
    this.resetField();
  }
}

FormValidator.prototype.validate_selectmultiple = function() {
	var tmp = this.currentElement.vtip.split("|");
  var thevtip = tmp[0];
  var thevtot = tmp[1];
  
  var erra = false;
  var i;
  var count = 0;
  var thesevalues = new Array();
  
  for (i=0; i<this.currentElement.options.length; i++) {
    if (this.currentElement.options[i].selected) {
      thesevalues[count] = this.currentElement.options[i].value;
      count++;
    }
  }
  
  //if one of the selected values = the restricted value
  if (thevtip != 'null') {
    for (value in thesevalues) {
      if ((thesevalues[value] == thevtip) && (this.required == "TRUE")) {
       erra = true;
       break;
      }
    }
  }
  //if the total selected is greater than the total allowed
  //if zero, there is no limit
  if (thevtot != 0) {
    if ((thesevalues.length > thevtot) && (this.required == "TRUE")) {
      erra = true;
    }
  }
  
  if (erra) {
		this.createError();
  } else {
  	//this.currentElement.thevalue = document.forms[theForm.name].elements[name].options[document.forms[theForm.name].elements[name].selectedIndex].value
    this.resetField();
  }
}

FormValidator.prototype.setPhoneValue = function() {
	if (this.currentElement.vtip == 'phoneNumber') {
  		this.currentElement.value = this.currentElement.value.substring(0,3)+ "-" + this.currentElement.value.substring(3,6) + "-" + this.currentElement.value.substring(6,10);
  	}
}

FormValidator.prototype.resetField = function() {
	this.setPhoneValue();
	
  if ((this.currentElement.type == 'checkbox') || (this.currentElement.type == 'radio')) {
		this.currentElement.parentNode.className=this.currentElement.parentclass;
	}
	if (document.getElementById(this.currentElement.name)) {
	  document.getElementById(this.currentElement.name).className = this.currentElement.thisclass;
	}
	if (document.getElementById('error'+this.currentElement.name)) {
    document.getElementById('error'+this.currentElement.name).className = 'errorhidden';
		if (document.getElementById('error'+this.currentElement.name).innerHTML.length > 0) {
			 document.getElementById('error'+this.currentElement.name).innerHTML = '';
		}
	}
	  
	if (this.editor != null) {
	  var theeditor = document.getElementById(this.editor);
    theeditor.style.border = "1px solid #ccc";
    theeditor.style.background = "#fff";
  }
}

FormValidator.prototype.createError = function () {
	// note significant exemption for checkbox type... Not using this function
	if (this.editor != null) {
    var theeditor = document.getElementById(this.editor);
    theeditor.style.border = "1px solid #cc0000";
    theeditor.style.background = "#ffcccc";
  } else {
    this.currentElement.className = this.currentElement.thisclass+'_error';
	}
	
  if (this.required == 'TRUE') {
		this.err++;
		this.selectElement();
		this.putErrors();
	}
}

FormValidator.prototype.pushError = function () {
	this.currentElement.thisclass = this.getaclass(this.currentElement.className);
	this.createError();
	this.err++;
}


FormValidator.prototype.selectElement = function () {
	if (this.selset == 0) {
		if (this.currentElement.type == 'text') {
			this.currentElement.select();
		};
		this.currentElement.focus();
		this.selset = 1;
	}
}

FormValidator.prototype.putErrors = function () {
  if (this.currentElement.value.length == 0) {
		if (this.err == 1) { this.firsterror = this.currentElement.name + ' (required)'; }
		if (this.showerrors() || (this.currentElement.spec != "FALSE")) {document.getElementById('error'+this.currentElement.name).className = 'errormsg_'+this.currentElement.name;}
		if (this.showerrors() || (this.currentElement.spec != "FALSE")) {document.getElementById('error'+this.currentElement.name).innerHTML = (this.currentElement.spec == '') ? '&#160;(required)' : this.currentElement.spec;}
	} else {
    if ((this.currentElement.type == 'checkbox')  || (this.currentElement.type == 'radio')) {
			console.log(this.currentElement.parentNode.className  +' is set to ' +  this.currentElement.parentNode.className+'_error');
			console.log(this.currentElement.parentNode.parentNode.className +' is set to ' + this.currentElement.parentparentclass+'_error');
      this.currentElement.parentNode.className=this.currentElement.parentclass+'_error';
			this.currentElement.parentNode.parentNode.className=this.currentElement.parentparentclass+'_error';
		}
		if (this.err == 1) { this.firsterror = this.currentElement.name + ' (invalid)'; }
		if (this.showerrors() || (this.currentElement.spec != "FALSE")) {document.getElementById('error'+this.currentElement.name).className = 'errormsg_'+this.currentElement.name;}
		if (this.showerrors() || (this.currentElement.spec != "FALSE")) {document.getElementById('error'+this.currentElement.name).innerHTML = (this.currentElement.spec == '') ? '&#160;(check your entry)' : this.currentElement.spec;}
	}
	console.error("Error checking " + this.currentElement.name + " Total Errors:" + this.err);
}

FormValidator.prototype.fieldChecked = function (myradio) {
    isChecked = false;
    if (! myradio.length) {
      if (myradio.checked){ isChecked = myradio.value; } 
    } else {
      for (var i = 0; i < myradio.length; i++) { 
      	if (myradio[i].checked){ isChecked = myradio[i].value; break; } 
      } 
    }
    return isChecked;
}

FormValidator.prototype.fieldCheckCount = function (myradio) {
    var numCheck = 0;
    if (myradio.length) {
	 for (var i = 0; i < myradio.length; i++) { 
    	if (myradio[i].checked){ numCheck++; } } 
    } else if (myradio.checked)  {
		numCheck++;
	}
	return numCheck;
}

FormValidator.prototype.getaclass = function(aclass) {
	parts = aclass.split("_");
	return parts[0];
}

FormValidator.prototype.getDocValue = function(id) {
	if (document.getElementById(id+this.currentElement.name)) {
		return document.getElementById(id+this.currentElement.name).innerHTML;
	} else {
		return "FALSE";
	}
}

FormValidator.prototype.maxChars = function(id) {
  if (this.currentElement.value.length <= id) {
		return true;
	} else {
	  return false;
  }
}

FormValidator.prototype.maxLength = function(event,field,maxChars,text,wipetext)
 {
 event = event || window.event;
 if(window.event)  {keynum = event.keyCode} else if(event.which)  {keynum = event.which}
 if ((keynum != 8) && (field.value.length >= parseInt(maxChars))) {
    text = text.replace(/\$count/, maxChars);
    console.log(text);
    if (field.value.length > parseInt(maxChars)) {
      if (confirm(wipetext)) {
        field.value = '';
      }
    }
    event.returnValue=false;
    return false;
 }
}
//This is a utility function for testing the maxlength of textareas
FormValidator.prototype.miniValidate = function(thefield) {
   this.setValidators();
   this.currentElement = thefield;
   this.initItem();
   this.validate_textarea();
}

// JavaScript Document

function XMLParser(theXMLDoc) {
  try { document.execCommand("BackgroundImageCache",false,true); } catch(e) {}; 
  
	if(theXMLDoc != undefined)
	{
		this.theXMLDoc = theXMLDoc;
	} else {
		return false;
	}
}

XMLParser.prototype.thisIE = function () {
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		return true;
	} else {
		return false;
	}
}

XMLParser.prototype.thisNetscape = function () {
	var browser = navigator.appName;
	if(browser == "Netscape"){
		return true;
	} else {
		return false;
	}
}

XMLParser.prototype.getDoc = function (Doc,returnType,params,method,async) {
	returnType = returnType || "xml";
	method = method || "GET";
	params = params || null;
	async = async || false;
	if(this.thisIE()){
	  var myXMLHTTPRequest = new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		var myXMLHTTPRequest = new XMLHttpRequest();
	}
	myXMLHTTPRequest.open(method, Doc, async);
	if (method == "POST") {
		  myXMLHTTPRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
	    myXMLHTTPRequest.setRequestHeader("Content-length", params.length);
	    myXMLHTTPRequest.setRequestHeader("Connection", "close"); 
	}
	myXMLHTTPRequest.send(params);
	if (myXMLHTTPRequest.status==200) {
		if (returnType == "xml") {
			return myXMLHTTPRequest.responseXML;
		} else {
			return myXMLHTTPRequest.responseText;
		}
	} else if(myXMLHTTPRequest.status==404) {
		alert("Incorrect URL at" + Doc );
		return false;
	} else {
		alert("Error Loading XML");
		return false;
	}
}

function validEmail ( email_val ) {
  var gotIt = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/.exec(email_val);
  if ((! gotIt) || (gotIt == null)) {
		return false;
	} else {
	  return true;
	}
}

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}
/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();