/*
	Copyright (c) 2004-2008, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/

/*
	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+"]";function val2type(_19){if(d.isString(_19)){return "string";}if(typeof _19=="number"){return "number";}if(typeof _19=="boolean"){return "boolean";}if(d.isFunction(_19)){return "function";}if(d.isArray(_19)){return "array";}if(_19 instanceof Date){return "date";}if(_19 instanceof d._Url){return "url";}return "object";};function str2obj(_1a,_1b){switch(_1b){case "string":return _1a;case "number":return _1a.length?Number(_1a):NaN;case "boolean":return typeof _1a=="boolean"?_1a:!(_1a.toLowerCase()=="false");case "function":if(d.isFunction(_1a)){_1a=_1a.toString();_1a=d.trim(_1a.substring(_1a.indexOf("{")+1,_1a.length-1));}try{if(_1a.search(/[^\w\.]+/i)!=-1){_1a=d.parser._nameAnonFunc(new Function(_1a),this);}return d.getObject(_1a,false);}catch(e){return new Function();}case "array":return _1a.split(/\s*,\s*/);case "date":switch(_1a){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_1a);}case "url":return d.baseUrl+_1a;default:return d.fromJson(_1a);}};var _1c={};function getClassInfo(_1d){if(!_1c[_1d]){var cls=d.getObject(_1d);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_1d+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _1f=cls.prototype;var _20={};for(var _21 in _1f){if(_21.charAt(0)=="_"){continue;}var _22=_1f[_21];_20[_21]=val2type(_22);}_1c[_1d]={cls:cls,params:_20};}return _1c[_1d];};this._functionFromScript=function(_23){var _24="";var _25="";var _26=_23.getAttribute("args");if(_26){d.forEach(_26.split(/\s*,\s*/),function(_27,idx){_24+="var "+_27+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_24+="with("+_2a+"){";_25+="}";});}return new Function(_24+_23.innerHTML+_25);};this.instantiate=function(_2b){var _2c=[];d.forEach(_2b,function(_2d){if(!_2d){return;}var _2e=_2d.getAttribute(_17);if((!_2e)||(!_2e.length)){return;}var _2f=getClassInfo(_2e);var _30=_2f.cls;var ps=_30._noScript||_30.prototype._noScript;var _32={};var _33=_2d.attributes;for(var _34 in _2f.params){var _35=_33.getNamedItem(_34);if(!_35||(!_35.specified&&(!dojo.isIE||_34.toLowerCase()!="value"))){continue;}var _36=_35.value;switch(_34){case "class":_36=_2d.className;break;case "style":_36=_2d.style&&_2d.style.cssText;}var _37=_2f.params[_34];_32[_34]=str2obj(_36,_37);}if(!ps){var _38=[],_39=[];d.query("> script[type^='dojo/']",_2d).orphan().forEach(function(_3a){var _3b=_3a.getAttribute("event"),_2e=_3a.getAttribute("type"),nf=d.parser._functionFromScript(_3a);if(_3b){if(_2e=="dojo/connect"){_38.push({event:_3b,func:nf});}else{_32[_3b]=nf;}}else{_39.push(nf);}});}var _3d=_30["markupFactory"];if(!_3d&&_30["prototype"]){_3d=_30.prototype["markupFactory"];}var _3e=_3d?_3d(_32,_2d,_30):new _30(_32,_2d);_2c.push(_3e);var _3f=_2d.getAttribute("jsId");if(_3f){d.setObject(_3f,_3e);}if(!ps){d.forEach(_38,function(_40){d.connect(_3e,_40.event,null,_40.func);});d.forEach(_39,function(_41){_41.call(_3e);});}});d.forEach(_2c,function(_42){if(_42&&_42.startup&&!_42._started&&(!_42.getParent||!_42.getParent())){_42.startup();}});return _2c;};this.parse=function(_43){var _44=d.query(qry,_43);var _45=this.instantiate(_44);return _45;};}();(function(){var _46=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,_46);}else{dojo._loaders.unshift(_46);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_47,_48){var jpn="$joinpoint";var nso=(_48||dojo.parser._anon);if(dojo.isIE){var cn=_47["__dojoNameCache"];if(cn&&nso[cn]===_47){return _47["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_47;return ret;};}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 _4d=dojo.global;var _4e=dojo.doc;if(_4e.selection){return !_4e.selection.createRange().text;}else{var _4f=_4d.getSelection();if(dojo.isString(_4f)){return !_4f;}else{return _4f.isCollapsed||!_4f.toString();}}},getBookmark:function(){var _50,_51=dojo.doc.selection;if(_51){var _52=_51.createRange();if(_51.type.toUpperCase()=="CONTROL"){if(_52.length){_50=[];var i=0,len=_52.length;while(i<len){_50.push(_52.item(i++));}}else{_50=null;}}else{_50=_52.getBookmark();}}else{if(window.getSelection){_51=dojo.global.getSelection();if(_51){_52=_51.getRangeAt(0);_50=_52.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _50;},moveToBookmark:function(_55){var _56=dojo.doc;if(_56.selection){var _57;if(dojo.isArray(_55)){_57=_56.body.createControlRange();dojo.forEach(_55,"range.addElement(item)");}else{_57=_56.selection.createRange();_57.moveToBookmark(_55);}_57.select();}else{var _58=dojo.global.getSelection&&dojo.global.getSelection();if(_58&&_58.removeAllRanges){_58.removeAllRanges();_58.addRange(_55);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_59,_5a){return {node:_59&&dojo.isDescendant(dijit._curFocus,_59.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_5a||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_5a||dojo.global,dijit.getBookmark):null,openedForWindow:_5a};},focus:function(_5b){if(!_5b){return;}var _5c="node" in _5b?_5b.node:_5b,_5d=_5b.bookmark,_5e=_5b.openedForWindow;if(_5c){var _5f=(_5c.tagName.toLowerCase()=="iframe")?_5c.contentWindow:_5c;if(_5f&&_5f.focus){try{_5f.focus();}catch(e){}}dijit._onFocusNode(_5c);}if(_5d&&dojo.withGlobal(_5e||dojo.global,dijit.isCollapsed)){if(_5e){_5e.focus();}try{dojo.withGlobal(_5e||dojo.global,dijit.moveToBookmark,null,[_5d]);}catch(e){}}},_activeStack:[],registerWin:function(_60){if(!_60){_60=window;}dojo.connect(_60.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var _62=_60.document.body||_60.document.getElementsByTagName("body")[0];if(_62){if(dojo.isIE){_62.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});_62.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{_62.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);_62.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}_62=null;},_onBlurNode:function(_67){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(_68){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _69=[];try{while(_68){if(_68.dijitPopupParent){_68=dijit.byId(_68.dijitPopupParent).domNode;}else{if(_68.tagName&&_68.tagName.toLowerCase()=="body"){if(_68===dojo.body()){break;}_68=dijit.getDocumentWindow(_68.ownerDocument).frameElement;}else{var id=_68.getAttribute&&_68.getAttribute("widgetId");if(id){_69.unshift(id);}_68=_68.parentNode;}}}}catch(e){}dijit._setStack(_69);},_onFocusNode:function(_6b){if(_6b&&_6b.tagName&&_6b.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(_6b);if(_6b==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_6b;dojo.publish("focusNode",[_6b]);},_setStack:function(_6c){var _6d=dijit._activeStack;dijit._activeStack=_6c;for(var _6e=0;_6e<Math.min(_6d.length,_6c.length);_6e++){if(_6d[_6e]!=_6c[_6e]){break;}}for(var i=_6d.length-1;i>=_6e;i--){var _70=dijit.byId(_6d[i]);if(_70){_70._focused=false;_70._hasBeenBlurred=true;if(_70._onBlur){_70._onBlur();}if(_70._setStateClass){_70._setStateClass();}dojo.publish("widgetBlur",[_70]);}}for(i=_6e;i<_6c.length;i++){_70=dijit.byId(_6c[i]);if(_70){_70._focused=true;if(_70._onFocus){_70._onFocus();}if(_70._setStateClass){_70._setStateClass();}dojo.publish("widgetFocus",[_70]);}}}});dojo.addOnLoad(dijit.registerWin);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_71){if(this._hash[_71.id]){throw new Error("Tried to register widget with id=="+_71.id+" but that id is already registered");}this._hash[_71.id]=_71;},remove:function(id){delete this._hash[id];},forEach:function(_73){for(var id in this._hash){_73(this._hash[id]);}},filter:function(_75){var res=new dijit.WidgetSet();this.forEach(function(_77){if(_75(_77)){res.add(_77);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_7a){return _7a.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_7b){var id;do{id=_7b+"_"+(_7b in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_7b]:dijit._widgetTypeCtr[_7b]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_7d){_7d.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_7f){return dijit.registry.byId(_7f.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_80){while(_80){if(_80.getAttribute&&_80.getAttribute("widgetId")){return dijit.registry.byId(_80.getAttribute("widgetId"));}_80=_80.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_81){var _82=dojo.style(_81);return (_82.visibility!="hidden")&&(_82.visibility!="collapsed")&&(_82.display!="none");};dijit.isTabNavigable=function(_83){if(dojo.hasAttr(_83,"disabled")){return false;}var _84=dojo.hasAttr(_83,"tabindex");var _85=dojo.attr(_83,"tabindex");if(_84&&_85>=0){return true;}var _86=_83.nodeName.toLowerCase();if(((_86=="a"&&dojo.hasAttr(_83,"href"))||dijit._tabElements[_86])&&(!_84||_85>=0)){return true;}return false;};dijit._getTabNavigable=function(_87){var _88,_89,_8a,_8b,_8c,_8d;var _8e=function(_8f){dojo.query("> *",_8f).forEach(function(_90){var _91=dijit._isElementShown(_90);if(_91&&dijit.isTabNavigable(_90)){var _92=dojo.attr(_90,"tabindex");if(!dojo.hasAttr(_90,"tabindex")||_92==0){if(!_88){_88=_90;}_89=_90;}else{if(_92>0){if(!_8a||_92<_8b){_8b=_92;_8a=_90;}if(!_8c||_92>=_8d){_8d=_92;_8c=_90;}}}}if(_91){_8e(_90);}});};if(dijit._isElementShown(_87)){_8e(_87);}return {first:_88,last:_89,lowest:_8a,highest:_8c};};dijit.getFirstInTabbingOrder=function(_93){var _94=dijit._getTabNavigable(dojo.byId(_93));return _94.lowest?_94.lowest:_94.first;};dijit.getLastInTabbingOrder=function(_95){var _96=dijit._getTabNavigable(dojo.byId(_95));return _96.last?_96.last:_96.highest;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _97=dojo.global;var _98=dojo.doc;var w=0,h=0;var de=_98.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _9e,_9f,_a0,_a1;var dbw=_98.body.clientWidth;if(dbw>dew){_9e=dew;_a0=dbw;}else{_a0=dew;_9e=dbw;}var dbh=_98.body.clientHeight;if(dbh>deh){_9f=deh;_a1=dbh;}else{_a1=deh;_9f=dbh;}w=(_a0>_97.innerWidth)?_9e:_a0;h=(_a1>_97.innerHeight)?_9f:_a1;}else{if(!dojo.isOpera&&_97.innerWidth){w=_97.innerWidth;h=_97.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _a4=dojo._docScroll();return {w:w,h:h,l:_a4.x,t:_a4.y};};dijit.placeOnScreen=function(_a5,pos,_a7,_a8){var _a9=dojo.map(_a7,function(_aa){return {corner:_aa,pos:pos};});return dijit._place(_a5,_a9);};dijit._place=function(_ab,_ac,_ad){var _ae=dijit.getViewport();if(!_ab.parentNode||String(_ab.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_ab);}var _af=null;dojo.some(_ac,function(_b0){var _b1=_b0.corner;var pos=_b0.pos;if(_ad){_ad(_ab,_b0.aroundCorner,_b1);}var _b3=_ab.style;var _b4=_b3.display;var _b5=_b3.visibility;_b3.visibility="hidden";_b3.display="";var mb=dojo.marginBox(_ab);_b3.display=_b4;_b3.visibility=_b5;var _b7=(_b1.charAt(1)=="L"?pos.x:Math.max(_ae.l,pos.x-mb.w)),_b8=(_b1.charAt(0)=="T"?pos.y:Math.max(_ae.t,pos.y-mb.h)),_b9=(_b1.charAt(1)=="L"?Math.min(_ae.l+_ae.w,_b7+mb.w):pos.x),_ba=(_b1.charAt(0)=="T"?Math.min(_ae.t+_ae.h,_b8+mb.h):pos.y),_bb=_b9-_b7,_bc=_ba-_b8,_bd=(mb.w-_bb)+(mb.h-_bc);if(_af==null||_bd<_af.overflow){_af={corner:_b1,aroundCorner:_b0.aroundCorner,x:_b7,y:_b8,w:_bb,h:_bc,overflow:_bd};}return !_bd;});_ab.style.left=_af.x+"px";_ab.style.top=_af.y+"px";if(_af.overflow&&_ad){_ad(_ab,_af.aroundCorner,_af.corner);}return _af;};dijit.placeOnScreenAroundElement=function(_be,_bf,_c0,_c1){_bf=dojo.byId(_bf);var _c2=_bf.style.display;_bf.style.display="";var _c3=_bf.offsetWidth;var _c4=_bf.offsetHeight;var _c5=dojo.coords(_bf,true);_bf.style.display=_c2;var _c6=[];for(var _c7 in _c0){_c6.push({aroundCorner:_c7,corner:_c0[_c7],pos:{x:_c5.x+(_c7.charAt(1)=="L"?0:_c3),y:_c5.y+(_c7.charAt(0)=="T"?0:_c4)}});}return dijit._place(_be,_c6,_c1);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i<win.frames.length;i++){fix(win.frames[i]);}};fix(window.top);}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 _cd=[],_ce=1000,_cf=1;this.prepare=function(_d0){dojo.body().appendChild(_d0);var s=_d0.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_d2){var _d3=_d2.popup,_d4=_d2.orient||{"BL":"TL","TL":"BL"},_d5=_d2.around,id=(_d2.around&&_d2.around.id)?(_d2.around.id+"_dropdown"):("popup_"+_cf++);var _d7=dojo.doc.createElement("div");dijit.setWaiRole(_d7,"presentation");_d7.id=id;_d7.className="dijitPopup";_d7.style.zIndex=_ce+_cd.length;_d7.style.visibility="hidden";if(_d2.parent){_d7.dijitPopupParent=_d2.parent.id;}dojo.body().appendChild(_d7);var s=_d3.domNode.style;s.display="";s.visibility="";s.position="";_d7.appendChild(_d3.domNode);var _d9=new dijit.BackgroundIframe(_d7);var _da=_d5?dijit.placeOnScreenAroundElement(_d7,_d5,_d4,_d3.orient?dojo.hitch(_d3,"orient"):null):dijit.placeOnScreen(_d7,_d2,_d4=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_d7.style.visibility="visible";var _db=[];var _dc=function(){for(var pi=_cd.length-1;pi>0&&_cd[pi].parent===_cd[pi-1].widget;pi--){}return _cd[pi];};_db.push(dojo.connect(_d7,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&_d2.onCancel){dojo.stopEvent(evt);_d2.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _df=_dc();if(_df&&_df.onCancel){_df.onCancel();}}}}));if(_d3.onCancel){_db.push(dojo.connect(_d3,"onCancel",null,_d2.onCancel));}_db.push(dojo.connect(_d3,_d3.onExecute?"onExecute":"onChange",null,function(){var _e0=_dc();if(_e0&&_e0.onExecute){_e0.onExecute();}}));_cd.push({wrapper:_d7,iframe:_d9,widget:_d3,parent:_d2.parent,onExecute:_d2.onExecute,onCancel:_d2.onCancel,onClose:_d2.onClose,handlers:_db});if(_d3.onOpen){_d3.onOpen(_da);}return _da;};this.close=function(_e1){while(dojo.some(_cd,function(_e2){return _e2.widget==_e1;})){var top=_cd.pop(),_e4=top.wrapper,_e5=top.iframe,_e6=top.widget,_e7=top.onClose;if(_e6.onClose){_e6.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_e6||!_e6.domNode){return;}this.prepare(_e6.domNode);_e5.destroy();dojo._destroyElement(_e4);if(_e7){_e7();}}};}();dijit._frames=new function(){var _e8=[];this.pop=function(){var _e9;if(_e8.length){_e9=_e8.pop();_e9.style.display="";}else{if(dojo.isIE){var _ea="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_e9=dojo.doc.createElement(_ea);}else{_e9=dojo.doc.createElement("iframe");_e9.src="javascript:\"\"";_e9.className="dijitBackgroundIframe";}_e9.tabIndex=-1;dojo.body().appendChild(_e9);}return _e9;};this.push=function(_eb){_eb.style.display="";if(dojo.isIE){_eb.style.removeExpression("width");_eb.style.removeExpression("height");}_e8.push(_eb);};}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_ed){if(!_ed.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _ee=dijit._frames.pop();_ed.appendChild(_ee);if(dojo.isIE){_ee.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_ed.id+"').offsetWidth");_ee.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_ed.id+"').offsetHeight");}this.iframe=_ee;}};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(_ef){var _f0=_ef.parentNode;var _f1=_f0.scrollTop+dojo.marginBox(_f0).h;var _f2=_ef.offsetTop+dojo.marginBox(_ef).h;if(_f1<_f2){_f0.scrollTop+=(_f2-_f1);}else{if(_f0.scrollTop>_ef.offsetTop){_f0.scrollTop-=(_f0.scrollTop-_ef.offsetTop);}}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _f5=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _f8={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_f5,dj_opera8:maj(_f5)==8,dj_opera9:maj(_f5)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2};for(var p in _f8){if(_f8[p]){var _fa=dojo.doc.documentElement;if(_fa.className){_fa.className+=" "+p;}else{_fa.className=p;}}}})();}if(!dojo._hasResource["dijit._base.bidi"]){dojo._hasResource["dijit._base.bidi"]=true;dojo.provide("dijit._base.bidi");dojo.addOnLoad(function(){if(!dojo._isBodyLtr()){dojo.addClass(dojo.body(),"dijitRtl");}});}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,_fc,_fd,_fe,obj,_100,_101){if(obj!=this._obj){this.stop();this._initialDelay=_101||500;this._subsequentDelay=_100||0.9;this._obj=obj;this._evt=evt;this._node=_fd;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_fc,_fe);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,_103,_104,_105,_106,_107){return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.keyCode==_103.keyCode&&(!_103.charCode||_103.charCode==evt.charCode)&&(_103.ctrlKey===undefined||_103.ctrlKey==evt.ctrlKey)&&(_103.altKey===undefined||_103.altKey==evt.ctrlKey)&&(_103.shiftKey===undefined||_103.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_103,_104,node,_105,_103,_106,_107);}else{if(dijit.typematic._obj==_103){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_103){dijit.typematic.stop();}})];},addMouseListener:function(node,_10b,_10c,_10d,_10e){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_10b,node,_10c,node,_10d,_10e);}),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,_10b,node,_10c,node,_10d,_10e);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_115,_116,_117,_118,_119,_11a,_11b){return this.addKeyListener(_116,_117,_118,_119,_11a,_11b).concat(this.addMouseListener(_115,_118,_119,_11a,_11b));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+dojo.moduleUrl("dojo","resources/blank.gif")+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _11e=cs.backgroundImage;var _11f=(cs.borderTopColor==cs.borderRightColor)||(_11e!=null&&(_11e=="none"||_11e=="url(invalid-url:)"));dojo[_11f?"addClass":"removeClass"](dojo.body(),"dijit_a11y");dojo.body().removeChild(div);}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem){return elem.hasAttribute?elem.hasAttribute("role"):!!elem.getAttribute("role");},getWaiRole:function(elem){var _122=elem.getAttribute("role");if(_122){var _123=_122.indexOf(":");return _123==-1?_122:_122.substring(_123+1);}else{return "";}},setWaiRole:function(elem,role){elem.setAttribute("role",(dojo.isFF&&dojo.isFF<3)?"wairole:"+role:role);},removeWaiRole:function(elem){elem.removeAttribute("role");},hasWaiState:function(elem,_128){if(dojo.isFF&&dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_128);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_128):!!elem.getAttribute("aria-"+_128);}},getWaiState:function(elem,_12a){if(dojo.isFF&&dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_12a);}else{var _12b=elem.getAttribute("aria-"+_12a);return _12b?_12b:"";}},setWaiState:function(elem,_12d,_12e){if(dojo.isFF&&dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_12d,_12e);}else{elem.setAttribute("aria-"+_12d,_12e);}},removeWaiState:function(elem,_130){if(dojo.isFF&&dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_130);}else{elem.removeAttribute("aria-"+_130);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");if(dojo.isSafari){dojo.connect(window,"load",function(){window.resizeBy(1,0);setTimeout(function(){window.resizeBy(-1,0);},10);});}}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_131,_132){this.create(_131,_132);},create:function(_133,_134){this.srcNodeRef=dojo.byId(_134);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_133){this.params=_133;dojo.mixin(this,_133);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){for(var attr in this.attributeMap){var _136=this[attr];if(typeof _136!="object"&&((_136!==""&&_136!==false)||(_133&&_133[attr]))){this.setAttribute(attr,_136);}}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_137){this.destroyDescendants();this.destroy();},destroy:function(_138){this.uninitialize();dojo.forEach(this._connects,function(_139){dojo.forEach(_139,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){w.destroy();});this.destroyRendering(_138);dijit.registry.remove(this.id);},destroyRendering:function(_13b){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe;}if(this.domNode){dojo._destroyElement(this.domNode);delete this.domNode;}if(this.srcNodeRef){dojo._destroyElement(this.srcNodeRef);delete this.srcNodeRef;}},destroyDescendants:function(){dojo.forEach(this.getDescendants(),function(_13c){_13c.destroy();});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_13f){var _140=this[this.attributeMap[attr]||"domNode"];this[attr]=_13f;switch(attr){case "class":dojo.addClass(_140,_13f);break;case "style":if(_140.style.cssText){_140.style.cssText+="; "+_13f;}else{_140.style.cssText=_13f;}break;default:if(/^on[A-Z]/.test(attr)){attr=attr.toLowerCase();}if(typeof _13f=="function"){_13f=dojo.hitch(this,_13f);}dojo.attr(_140,attr,_13f);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_143,_144){var _145=[];if(_143=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){_145.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_144))?this[_144](e):_144.call(this,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_145.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_144)?this[_144](e):_144.call(this,e);}}));}_143="onclick";}_145.push(dojo.connect(obj,_143,this,_144));this._connects.push(_145);return _145;},disconnect:function(_148){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_148){dojo.forEach(_148,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(!("_ltr" in this)){this._ltr=dojo.getComputedStyle(this.domNode).direction!="rtl";}return this._ltr;},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _14c=dijit.byId(id);return _14c.isContainer?_14c:null;}}return null;},_getSibling:function(_14d){var node=this.domNode;do{node=node[_14d+"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");}});dojo.declare("dijit._Container",null,{isContainer:true,addChild:function(_150,_151){if(_151===undefined){_151="last";}var _152=this.containerNode||this.domNode;if(_151&&typeof _151=="number"){var _153=dojo.query("> [widgetid]",_152);if(_153&&_153.length>=_151){_152=_153[_151-1];_151="after";}}dojo.place(_150.domNode,_152,_151);if(this._started&&!_150._started){_150.startup();}},removeChild:function(_154){var node=_154.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||this.domNode).map(dijit.byNode);},hasChildren:function(){var cn=this.containerNode||this.domNode;return !!this._firstElement(cn);},_getSiblingOfChild:function(_159,dir){var node=_159.domNode;var _15c=(dir>0?"nextSibling":"previousSibling");do{node=node[_15c];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_15d,_15e){var _15f=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_15d,function(code){_15f[code]=prev;});dojo.forEach(_15e,function(code){_15f[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(_164,_165){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_164);},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 _166=this._getNextFocusableChild(this.focusedChild,1);if(_166.getFocalNodes){this.focusChild(_166,_166.getFocalNodes()[0]);}else{this.focusChild(_166);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _167=this._getNextFocusableChild(this.focusedChild,-1);if(_167.getFocalNodes){var _168=_167.getFocalNodes();this.focusChild(_167,_168[_168.length-1]);}else{this.focusChild(_167);}},focusChild:function(_169,node){if(_169){if(this.focusedChild&&_169!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_169;if(node&&_169.focusFocalNode){_169.focusFocalNode(node);}else{_169.focus();}}},_startupChild:function(_16b){if(_16b.getFocalNodes){dojo.forEach(_16b.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_16b.focusNode||_16b.domNode;if(_16b.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.keyCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _173=dijit.getEnclosingWidget(evt.target);if(_173&&_173.isFocusable()){this.focusedChild=_173;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_175){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_176,dir){if(_176){_176=this._getSiblingOfChild(_176,dir);}var _178=this.getChildren();for(var i=0;i<_178.length;i++){if(!_176){_176=_178[(dir>0)?0:(_178.length-1)];}if(_176.isFocusable()){return _176;}_176=this._getSiblingOfChild(_176,dir);}return null;}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_17a){_17a.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(window,"onresize",function(){this.resize();});}this.inherited(arguments);},resize:function(args){var node=this.domNode;if(args){dojo.marginBox(node,args);if(args.t){node.style.top=args.t+"px";}if(args.l){node.style.left=args.l+"px";}}var mb=dojo.mixin(dojo.marginBox(node),args||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);this.layout();},layout:function(){}});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 _183=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_186,dim){_186.resize?_186.resize(dim):dojo.marginBox(_186.domNode,dim);dojo.mixin(_186,dojo.marginBox(_186.domNode));dojo.mixin(_186,dim);};dijit.layout.layoutChildren=function(_188,dim,_18a){dim=dojo.mixin({},dim);dojo.addClass(_188,"dijitLayoutContainer");_18a=dojo.filter(_18a,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_18a,function(item){return item.layoutAlign=="client";}));dojo.forEach(_18a,function(_18d){var elm=_18d.domNode,pos=_18d.layoutAlign;var _190=elm.style;_190.left=dim.l+"px";_190.top=dim.t+"px";_190.bottom=_190.right="auto";dojo.addClass(elm,"dijitAlign"+_183(pos));if(pos=="top"||pos=="bottom"){size(_18d,{w:dim.w});dim.h-=_18d.h;if(pos=="top"){dim.t+=_18d.h;}else{_190.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_18d,{h:dim.h});dim.w-=_18d.w;if(pos=="left"){dim.l+=_18d.w;}else{_190.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_18d,dim);}}}});};})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length<size){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function(_196,map,_198,_199){return _196.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_19a,key,_19c){var _19d=dojo.getObject(key,false,map);if(_19c){_19d=dojo.getObject(_19c,false,_199)(_19d);}if(_198){_19d=_198(_19d,key);}return _19d.toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_1a0,_1a1,_1a2){_1a2=dojo.i18n.normalizeLocale(_1a2);var _1a3=_1a2.split("-");var _1a4=[_1a0,"nls",_1a1].join(".");var _1a5=dojo._loadedModules[_1a4];if(_1a5){var _1a6;for(var i=_1a3.length;i>0;i--){var loc=_1a3.slice(0,i).join("_");if(_1a5[loc]){_1a6=_1a5[loc];break;}}if(!_1a6){_1a6=_1a5.ROOT;}if(_1a6){var _1a9=function(){};_1a9.prototype=_1a6;return new _1a9();}}throw new Error("Bundle not found: "+_1a1+" in "+_1a0+" , locale="+_1a2);};dojo.i18n.normalizeLocale=function(_1aa){var _1ab=_1aa?_1aa.toLowerCase():dojo.locale;if(_1ab=="root"){_1ab="ROOT";}return _1ab;};dojo.i18n._requireLocalization=function(_1ac,_1ad,_1ae,_1af){var _1b0=dojo.i18n.normalizeLocale(_1ae);var _1b1=[_1ac,"nls",_1ad].join(".");var _1b2="";if(_1af){var _1b3=_1af.split(",");for(var i=0;i<_1b3.length;i++){if(_1b0.indexOf(_1b3[i])==0){if(_1b3[i].length>_1b2.length){_1b2=_1b3[i];}}}if(!_1b2){_1b2="ROOT";}}var _1b5=_1af?_1b2:_1b0;var _1b6=dojo._loadedModules[_1b1];var _1b7=null;if(_1b6){if(dojo.config.localizationComplete&&_1b6._built){return;}var _1b8=_1b5.replace(/-/g,"_");var _1b9=_1b1+"."+_1b8;_1b7=dojo._loadedModules[_1b9];}if(!_1b7){_1b6=dojo["provide"](_1b1);var syms=dojo._getModuleSymbols(_1ac);var _1bb=syms.concat("nls").join("/");var _1bc;dojo.i18n._searchLocalePath(_1b5,_1af,function(loc){var _1be=loc.replace(/-/g,"_");var _1bf=_1b1+"."+_1be;var _1c0=false;if(!dojo._loadedModules[_1bf]){dojo["provide"](_1bf);var _1c1=[_1bb];if(loc!="ROOT"){_1c1.push(loc);}_1c1.push(_1ad);var _1c2=_1c1.join("/")+".js";_1c0=dojo._loadPath(_1c2,null,function(hash){var _1c4=function(){};_1c4.prototype=_1bc;_1b6[_1be]=new _1c4();for(var j in hash){_1b6[_1be][j]=hash[j];}});}else{_1c0=true;}if(_1c0&&_1b6[_1be]){_1bc=_1b6[_1be];}else{_1b6[_1be]=_1bc;}if(_1af){return true;}});}if(_1af&&_1b0!=_1b2){_1b6[_1b0.replace(/-/g,"_")]=_1b6[_1b2.replace(/-/g,"_")];}};(function(){var _1c6=dojo.config.extraLocale;if(_1c6){if(!_1c6 instanceof Array){_1c6=[_1c6];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_1ca,_1cb){req(m,b,_1ca,_1cb);if(_1ca){return;}for(var i=0;i<_1c6.length;i++){req(m,b,_1c6[i],_1cb);}};}})();dojo.i18n._searchLocalePath=function(_1cd,down,_1cf){_1cd=dojo.i18n.normalizeLocale(_1cd);var _1d0=_1cd.split("-");var _1d1=[];for(var i=_1d0.length;i>0;i--){_1d1.push(_1d0.slice(0,i).join("-"));}_1d1.push(false);if(down){_1d1.reverse();}for(var j=_1d1.length-1;j>=0;j--){var loc=_1d1[j]||"ROOT";var stop=_1cf(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_1d6,_1d7){function preload(_1d8){_1d8=dojo.i18n.normalizeLocale(_1d8);dojo.i18n._searchLocalePath(_1d8,true,function(loc){for(var i=0;i<_1d7.length;i++){if(_1d7[i]==loc){dojo["require"](_1d6+"_"+loc);return true;}}return false;});};preload();var _1db=dojo.config.extraLocale||[];for(var i=0;i<_1db.length;i++){preload(_1db[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,"class":"dijitContentPane",doLayout:"auto",postCreate:function(){this.domNode.title="";if(!this.containerNode){this.containerNode=this.domNode;}if(this.preload){this._loadCheck();}var _1dd=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_1dd);this.errorMessage=dojo.string.substitute(this.errorMessage,_1dd);var _1de=dijit.getWaiRole(this.domNode);if(!_1de){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this["class"]);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _1df=dojo.query(">",this.containerNode||this.domNode),_1e0=_1df.filter("[widgetId]");if(_1df.length==1&&_1e0.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_1e0[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();this._singleChild.resize(this._contentBox||dojo.contentBox(this.containerNode||this.domNode));}}this._onLoadHandler();},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited("destroy",arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode||this.domNode,mb=dojo.mixin(dojo.marginBox(node),size||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}},_prepareLoad:function(_1e6){this.cancel();this.isLoaded=false;this._loadCheck(_1e6);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_1e8){var _1e9=this._isShown();if(this.href&&(_1e8||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_1e9&&!this._xhrDfd)||(!this.isLoaded&&_1e9&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _1eb={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_1eb,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_1eb);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.setContent.call(self,html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode||this.domNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){cont=match[1];}}node.innerHTML=cont;}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}catch(e){var _1f2=this.onContentError(e);try{node.innerHTML=_1f2;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_1f5){var _1f6=this["on"+type+"Error"].call(this,err);if(_1f5){console.error(_1f5,err);}else{if(_1f6){this._setContent.call(this,_1f6);}}},_createSubWidgets:function(){var _1f7=this.containerNode||this.domNode;try{dojo.parser.parse(_1f7,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_1fa){},onDownloadError:function(_1fb){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");(function(){if(dojo.isIE){var _1fc=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _1fd=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;function adjustCssPaths(_1fe,_1ff){if(!_1ff||!_1fe){return;}if(_1fc){_1ff=_1ff.replace(_1fc,function(_200,pre,_202,url,post){return pre+(new dojo._Url(_1fe,"./"+url).toString())+post;});}return _1ff.replace(_1fd,function(_205,_206,_207,_208,_209,_20a){if(_207){return "@import \""+(new dojo._Url(_1fe,"./"+_207).toString())+"\""+_20a;}else{return "url("+(new dojo._Url(_1fe,"./"+_209).toString())+")"+_20a;}});};var _20b=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;function adjustHtmlPaths(_20c,cont){var url=_20c||"./";return cont.replace(_20b,function(tag,_210,name,_212,_213,_214,_215,end){return _210+(name?(name+"="+_212+(new dojo._Url(url,_213).toString())+_212):("style="+_214+adjustCssPaths(url,_215)+_214))+end;});};function secureForInnerHtml(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};function snarfStyles(_218,cont,_21a){_21a.attributes=[];return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_21b,_21c,_21d,_21e,_21f,href){var i,attr=(_21c||_21e||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_21d){i=_21a.push(_218?adjustCssPaths(_218,_21d):_21d);}else{i=_21a.push("@import \""+href+"\";");attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(attr){attr=attr.split(/\s+/);var _223={},tmp;for(var j=0,e=attr.length;j<e;j++){tmp=attr[j].split("=");_223[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_21a.attributes[i-1]=_223;}return "";});};function snarfScripts(cont,_228){_228.code="";function download(src){if(_228.downloadRemote){dojo.xhrGet({url:src,sync:true,load:function(code){_228.code+=code+";";},error:_228.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_22b,_22c,src,code){if(src){download(src);}else{_228.code+=code;}return "";});};function evalInGlobal(code,_230){_230=_230||dojo.doc.body;var n=_230.ownerDocument.createElement("script");n.type="text/javascript";_230.appendChild(n);n.text=code;};dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){this.ioArgs={};this.ioMethod=dojo.xhrGet;this.onLoadDeferred=new dojo.Deferred();this.onUnloadDeferred=new dojo.Deferred();},postCreate:function(){this._setUpDeferreds();dijit.layout.ContentPane.prototype.postCreate.apply(this,arguments);},onExecError:function(e){},setContent:function(data){if(!this._isDownloaded){var _234=this._setUpDeferreds();}dijit.layout.ContentPane.prototype.setContent.apply(this,arguments);return _234;},cancel:function(){if(this._xhrDfd&&this._xhrDfd.fired==-1){this.onUnloadDeferred=null;}dijit.layout.ContentPane.prototype.cancel.apply(this,arguments);},_setUpDeferreds:function(){var _t=this,_236=function(){_t.cancel();};var _237=(_t.onLoadDeferred=new dojo.Deferred());var _238=(_t._nextUnloadDeferred=new dojo.Deferred());return {cancel:_236,addOnLoad:function(func){_237.addCallback(func);},addOnUnload:function(func){_238.addCallback(func);}};},_onLoadHandler:function(){dijit.layout.ContentPane.prototype._onLoadHandler.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();if(this.onUnloadDeferred){this.onUnloadDeferred.callback(true);}dijit.layout.ContentPane.prototype._onUnloadHandler.apply(this,arguments);if(this._nextUnloadDeferred){this.onUnloadDeferred=this._nextUnloadDeferred;}},_onError:function(type,err){dijit.layout.ContentPane.prototype._onError.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.errback(err);}},_prepareLoad:function(_23d){var _23e=this._setUpDeferreds();dijit.layout.ContentPane.prototype._prepareLoad.apply(this,arguments);return _23e;},_setContent:function(cont){var _240=[];if(dojo.isString(cont)){if(this.adjustPaths&&this.href){cont=adjustHtmlPaths(this.href,cont);}if(this.cleanContent){cont=secureForInnerHtml(cont);}if(this.renderStyles||this.cleanContent){cont=snarfStyles(this.href,cont,_240);}if(this.executeScripts){var _t=this,code,_243={downloadRemote:true,errBack:function(e){_t._onError.call(_t,"Exec","Error downloading remote script in \""+_t.id+"\"",e);}};cont=snarfScripts(cont,_243);code=_243.code;}var node=(this.containerNode||this.domNode),pre=post="",walk=0;switch(node.nodeName.toLowerCase()){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);cont=n.childNodes;}}dijit.layout.ContentPane.prototype._setContent.call(this,cont);if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo._destroyElement(this._styleNodes.pop());}}if(this.renderStyles&&_240&&_240.length){this._renderStyles(_240);}if(this.executeScripts&&code){if(this.cleanContent){code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){code=code.replace(/_container_(?!\s*=[^=])/g,dijit._scopeName+".byId('"+this.id+"')");}try{evalInGlobal(code,(this.containerNode||this.domNode));}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}},_renderStyles:function(_249){this._styleNodes=[];var st,att,_24c,doc=this.domNode.ownerDocument;var head=doc.getElementsByTagName("head")[0];for(var i=0,e=_249.length;i<e;i++){_24c=_249[i];att=_249.attributes[i];st=doc.createElement("style");st.setAttribute("type","text/css");for(var x in att){st.setAttribute(x,att[x]);}this._styleNodes.push(st);head.appendChild(st);if(st.styleSheet){st.styleSheet.cssText=_24c;}else{st.appendChild(doc.createTextNode(_24c));}}}});})();}if(!dojo._hasResource["dj.layout.ContentPane"]){dojo._hasResource["dj.layout.ContentPane"]=true;dojo.provide("dj.layout.ContentPane");dojo.declare("dj.layout.ContentPane",dojox.layout.ContentPane,{loadingMessage:"<div id=\"panel\"><div id=\"panelcontent\"></div><div id=\"panelfooter\"></div></div>",scriptHasHooks:true,_downloadExternalContent:function(){var div;var _253=false;if(this.ioArgs.form){div=document.createElement("div");dojo.style(div,"display","none");document.getElementsByTagName("body")[0].appendChild(div);if(dojo.isIE&&dojo.isIE<7){div.innerHTML=this.ioArgs.form.outerHTML;this.ioArgs.form=dojo.query("form",div)[0];}else{div.appendChild(this.ioArgs.form);}_253=true;}this.inherited("_downloadExternalContent",arguments);if(_253){dojo._destroyElement(div);}},submitForm:function(form){if(form.getAttribute("method")&&form.getAttribute("method").toLowerCase()=="post"){this.ioMethod=dojo.xhrPost;}else{this.ioMethod=dojo.xhrGet;}this.ioArgs.form=form;this.href=form.getAttribute("ajaxaction");if(!this.href){this.href=form.getAttribute("action");}this.refresh();this.ioMethod=dojo.xhrGet;this.ioArgs={};}});}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,_skipNodeCache:false,_stringRepl:function(tmpl){var _256=this.declaredClass,_257=this;return dojo.string.substitute(tmpl,this,function(_258,key){if(key.charAt(0)=="!"){_258=_257[key.substr(1)];}if(typeof _258=="undefined"){throw new Error(_256+" template:"+key);}if(!_258){return "";}return key.charAt(0)=="!"?_258:_258.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _25a=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_25a)){node=dijit._Templated._createNodesFromText(this._stringRepl(_25a))[0];}else{node=_25a.cloneNode(true);}this._attachTemplateNodes(node);var _25c=this.srcNodeRef;if(_25c&&_25c.parentNode){_25c.parentNode.replaceChild(node,_25c);}this.domNode=node;if(this.widgetsInTemplate){var cw=this._supportingWidgets=dojo.parser.parse(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_25c);},_fillContent:function(_260){var dest=this.containerNode;if(_260&&dest){while(_260.hasChildNodes()){dest.appendChild(_260.firstChild);}}},_attachTemplateNodes:function(_262,_263){_263=_263||function(n,p){return n.getAttribute(p);};var _266=dojo.isArray(_262)?_262:(_262.all||_262.getElementsByTagName("*"));var x=dojo.isArray(_262)?0:-1;for(;x<_266.length;x++){var _268=(x==-1)?_262:_266[x];if(this.widgetsInTemplate&&_263(_268,"dojoType")){continue;}var _269=_263(_268,"dojoAttachPoint");if(_269){var _26a,_26b=_269.split(/\s*,\s*/);while((_26a=_26b.shift())){if(dojo.isArray(this[_26a])){this[_26a].push(_268);}else{this[_26a]=_268;}}}var _26c=_263(_268,"dojoAttachEvent");if(_26c){var _26d,_26e=_26c.split(/\s*,\s*/);var trim=dojo.trim;while((_26d=_26e.shift())){if(_26d){var _270=null;if(_26d.indexOf(":")!=-1){var _271=_26d.split(":");_26d=trim(_271[0]);_270=trim(_271[1]);}else{_26d=trim(_26d);}if(!_270){_270=_26d;}this.connect(_268,_26d,_270);}}}var role=_263(_268,"waiRole");if(role){dijit.setWaiRole(_268,role);}var _273=_263(_268,"waiState");if(_273){dojo.forEach(_273.split(/\s*,\s*/),function(_274){if(_274.indexOf("-")!=-1){var pair=_274.split("-");dijit.setWaiState(_268,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_276,_277,_278){var _279=dijit._Templated._templateCache;var key=_277||_276;var _27b=_279[key];if(_27b){return _27b;}if(!_277){_277=dijit._Templated._sanitizeTemplateString(dojo._getText(_276));}_277=dojo.string.trim(_277);if(_278||_277.match(/\$\{([^\}]+)\}/g)){return (_279[key]=_277);}else{return (_279[key]=dijit._Templated._createNodesFromText(_277)[0]);}};dijit._Templated._sanitizeTemplateString=function(_27c){if(_27c){_27c=_27c.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _27d=_27c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_27d){_27c=_27d[1];}}else{_27c="";}return _27c;};if(dojo.isIE){dojo.addOnUnload(function(){var _27e=dijit._Templated._templateCache;for(var key in _27e){var _280=_27e[key];if(!isNaN(_280.nodeType)){dojo._destroyElement(_280);}delete _27e[key];}});}(function(){var _281={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _284="none";var _285=text.replace(/^\s+/,"");for(var type in _281){var map=_281[type];if(map.re.test(_285)){_284=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_284];var _289=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _28a=[];while(_289.firstChild){_28a.push(_289.removeChild(_289.firstChild));}tn.innerHTML="";return _28a;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _28b={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _28e=function(_28f){this._index=-1;this._animations=_28f||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_28e,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_291,_292){if(!this._current){this._current=this._animations[this._index=0];}if(!_292&&this._current.status()=="playing"){return this;}var _293=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_294=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_296=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_293);dojo.disconnect(_294);dojo.disconnect(_296);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_29a,_29b){this.pause();var _29c=this.duration*_29a;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_29c){this._current=a;return true;}_29c-=a.duration;return false;});if(this._current){this._current.gotoPercent(_29c/_current.duration,_29b);}return this;},stop:function(_29e){if(this._current){if(_29e){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_28e,_28b);dojo.fx.chain=function(_2a1){return new _28e(_2a1);};var _2a2=function(_2a3){this._animations=_2a3||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_2a3,function(a){var _2a5=a.duration;if(a.delay){_2a5+=a.delay;}if(this.duration<_2a5){this.duration=_2a5;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_2a2,{_doAction:function(_2a7,args){dojo.forEach(this._animations,function(a){a[_2a7].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_2aa,args){var t=this._pseudoAnimation;t[_2aa].apply(t,args);},play:function(_2ad,_2ae){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(_2af,_2b0){var ms=this.duration*_2af;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_2b0);});this._call("gotoProcent",arguments);return this;},stop:function(_2b3){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_2a2,_28b);dojo.fx.combine=function(_2b4){return new _2a2(_2b4);};})();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(_2b7){return this.showAnim.play(_2b7||0);},hide:function(_2b8){return this.hideAnim.play(_2b8||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _2bd=dojo.style(node,"height");return Math.max(_2bd,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["dj.fx.TipScroller"]){dojo._hasResource["dj.fx.TipScroller"]=true;dojo.provide("dj.fx.TipScroller");dojo.declare("dj.fx.TipScroller",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<div>\n\t<div class=\"TipScrollerBox\" dojoAttachPoint=\"faderNode\">\n\t\t<div class=\"TipScrollerContent\" dojoType=\"dijit.layout.ContentPane\" dojoAttachPoint=\"paneNode\">\n\t\t\t<div dojoAttachPoint=\"containerNode\"></div>\n\t\t</div>\n\t</div>\n</div>\n",widgetsInTemplate:true,faderNode:null,paneNode:null,_changeTimer:null,_toggler:null,_index:0,timeout:10000,fadeduration:600,dataUrl:"",text:[],postCreate:function(){var cb=dojo.hitch(this,this.changeText);this._toggler=new dojo.fx.Toggler({node:this.faderNode,showDuration:this.fadeduration,hideDuration:this.fadeduration});dojo.connect(this._toggler.hideAnim,"onEnd",this,function(){this.paneNode.setContent(this.text[this._index]);this._index++;this._index=this._index%this.text.length;this._toggler.show();});dojo.connect(this._toggler.showAnim,"onEnd",this,function(){if(!this._changeTimer){this._changeTimer=setTimeout(dojo.hitch(this,"changeText"),this.timeout);}});if(this.dataUrl){dojo.xhrGet({url:this.dataUrl,handleAs:"json-comment-filtered",timeout:60000,load:dojo.hitch(this,function(_2cd){this.text=_2cd;if(this.text.length&&this.text.length>0){this._changeTimer=setTimeout(dojo.hitch(this,this.changeText),this.timeout);}}),error:function(_2ce,_2cf){console.debug("TipScroller: initialization error");}});}else{if(this.text.length>0){this._changeTimer=setTimeout(dojo.hitch(this,this.changeText),this.timeout);}}},changeText:function(){if(this._changeTimer){clearTimeout(this._changeTimer);delete this._changeTimer;}this._toggler.hide();},uninitialize:function(){if(this._changeTimer){clearTimeout(this._changeTimer);delete this._changeTimer;}}});}if(!dojo._hasResource["dj.Application"]){dojo._hasResource["dj.Application"]=true;dojo.provide("dj.Application");dojo.declare("dj.Application",null,{hookEventsToPane:function(_2d0,node){if(!node){node=_2d0.domNode;}dojo.query("a[ajaxhref]",node).forEach(function(node){dojo.connect(node,"onclick",node,function(evt){dojo.stopEvent(evt);try{pageTracker._trackPageview(node.getAttribute("ajaxhref"));}catch(e){}_2d0.setHref(node.getAttribute("ajaxhref"));});});dojo.query("form[ajaxaction]",node).forEach(function(node){dojo.connect(node,"onsubmit",node,function(evt){dojo.stopEvent(evt);try{pageTracker._trackPageview(node.getAttribute("ajaxaction"));}catch(e){}_2d0.submitForm(node);});});},setupEventHooking:function(_2d6){var _2d7=dijit.byId(_2d6);var _2d8=dojo.hitch(this,"hookEventsToPane");this.hookEventsToPane(_2d7,dojo.doc.documentElement);dojo.connect(_2d7,"onLoad",_2d7,function(){_2d8(this);});},setupVideoHooking:function(_2d9){var _2da=dijit.byId(_2d9);dojo.connect(_2da,"onUnload",_2da,function(){dj.Application.stopVideo();});},_preloadImageList:[],preloadAjaxImages:function(){var i;for(i=0;i<this._preloadImageList.length;i++){var img=new Image();img.src=this._preloadImageList[i];}},connectNavMenu:function(){var w=dijit.byId("nav");if(!w){return false;}dojo.connect(w,"onRequestChange",this,"onNavSelection");},onNavSelection:function(_2de){dijit.byId("contentPane").setHref(_2de);},connectToggleElement:function(){var _2df=false;var _2e0=dijit.byId("radioAdToggle");dojo.connect(dijit.byId("contentPane"),"onUnload",dijit.byId("radioAdToggle"),"hide");var _2e1=function(){if(_2df){return false;}_2df=true;var _2e2=[{div_id:"radio1",radio_name:"Oxidation",mp3_name:"/swf/radio/SHC_2699_60_OXIDATION.mp3"},{div_id:"radio2",radio_name:"Brakes",mp3_name:"/swf/radio/SHC_2699_60_BRAKE.mp3"},{div_id:"radio3",radio_name:"Engine knock",mp3_name:"/swf/radio/SHC_2699_60_KNOCK.mp3"},{div_id:"radio4",radio_name:"Oil sludge",mp3_name:"/swf/radio/SHC_2699_60_SLUDGE.mp3"},{div_id:"radio5",radio_name:"Air filters",mp3_name:"/swf/radio/SHR2699_60_AIR.mp3"},{div_id:"radio6",radio_name:"Grounding kits",mp3_name:"/swf/radio/SHR2699_60_GROUND.mp3"}];for(var x=0;x<_2e2.length;x++){swfobject.embedSWF("/swf/radio/soundPlayer_DJR.swf",_2e2[x].div_id,"400","80","8.0.0",false,_2e2[x],_2e2[x]);}};if(_2e0.showing){_2e1();}else{dojo.connect(_2e0,"onShow",_2e0,_2e1);}}});dojo.mixin(dj.Application,{statics:{instance:null},_playTimer:null,getInstance:function(){if(!dj.Application.statics.instance){dj.Application.statics.instance=new dj.Application();}return dj.Application.statics.instance;},selectedNav:function(_2e4){var w=dijit.byId("nav");dojo.addOnLoad(dojo.hitch(w,"selectItem",_2e4));},playVideo:function(url,_2e7){if(this._playTimer){clearTimeout(this._playTimer);delete this._playTimer;}var swf=dojo.byId("dj_video_flash");if(!swf){return false;}if(swf.nodeName.toLowerCase()!="div"){try{if(swf.PercentLoaded()==100){var _2e9=swf.loadClip(url,_2e7);return true;}}catch(e){console.log("Exception on swf.PercentLoaded");}}if(!this._playTimer){this._playTimer=setTimeout(dojo.hitch(dj.Application,"playVideo",url,_2e7),10);}return false;},stopVideo:function(){if(this._playTimer){clearTimeout(this._playTimer);delete this._playTimer;}var swf=dojo.byId("dj_video_flash");if(swf&&swf.nodeName.toLowerCase()!="div"){try{if(swf&&swf.PercentLoaded()==100){swf.screenDown();return true;}}catch(e){console.log("Exception on swf.PercentLoaded");}}return false;}});dojo.addOnLoad(function(){var app=dj.Application.getInstance();var _2ec=dijit.byId("contentPane");if(_2ec){app.setupEventHooking(_2ec);app.setupVideoHooking(_2ec);}app.preloadAjaxImages();app.connectNavMenu();app.connectToggleElement();});}if(!dojo._hasResource["dj.layout.NavigationItem"]){dojo._hasResource["dj.layout.NavigationItem"]=true;dojo.provide("dj.layout.NavigationItem");dojo.declare("dj.layout.NavigationItem",[dijit._Widget,dijit._Templated,dijit._Contained],{selectedImage:"",deselectedImage:"",ajaxUrl:"",originalHref:"",navName:"default",_selected:false,templateString:"<li dojoAttachPoint=\"liNode\"><a href=\"#\" dojoAttachPoint=\"anchorNode\"><img dojoAttachPoint=\"imgNode\" src=\"${deselectedImage}\"/></a></li>\n",widgetsInTemplate:false,postMixInProperties:function(){this.inherited("postMixInProperties",arguments);if(!this.originalHref){dojo.query("a[href]",this.srcNodeRef).forEach(dojo.hitch(this,function(node){this.originalHref=node.href;}));}},postCreate:function(){this.inherited("postCreate",arguments);this._preloadImages();if(this.originalHref){this.anchorNode.href=this.originalHref;}dojo.connect(this.domNode,"onmouseover",this,"_rollOn");dojo.connect(this.domNode,"onmouseout",this,"_rollOff");},selected:function(){return this._selected;},select:function(){this._setImage(this.selectedImage);this._selected=true;},deselect:function(){this._setImage(this.deselectedImage);this._selected=false;},_rollOn:function(){if(!this.selected()){this._setImage(this.selectedImage);}},_rollOff:function(){if(!this.selected()){this._setImage(this.deselectedImage);}},_setImage:function(_2ee){this.imgNode.src=_2ee;},_preloadImages:function(){this._preloads=new Array();var i=new Image();i.src=this.selectedImage;this._preloads.push(i);i=new Image();i.src=this.deselectedImage;this._preloads.push(i);}});}if(!dojo._hasResource["dj.layout.NavigationMenu"]){dojo._hasResource["dj.layout.NavigationMenu"]=true;dojo.provide("dj.layout.NavigationMenu");dojo.declare("dj.layout.NavigationMenu",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<ul dojoAttachPoint=\"containerNode\"></ul>\n",widgetsInTemplate:false,_navItems:{},_selectedItem:null,startup:function(){this.inherited("startup",arguments);var _2f0=this.getChildren();for(var i=0;i<_2f0.length;i++){this._navItems[_2f0[i].navName]=_2f0[i];dojo.connect(_2f0[i].domNode,"onclick",dojo.hitch(this,"_onItemClicked",_2f0[i]));}},deselect:function(){for(var x in this._navItems){this._navItems[x].deselect();}this._selectedItem=null;},selectItem:function(name){this.deselect();if(this._navItems[name]){this._navItems[name].select();this._selectedItem=name;}},_onItemClicked:function(_2f4,_2f5){dojo.stopEvent(_2f5);_2f4.anchorNode.blur();this.onRequestChange(_2f4.ajaxUrl);this.selectItem(_2f4.navName);},onRequestChange:function(_2f6){}});}if(!dojo._hasResource["dj.layout.Toggle"]){dojo._hasResource["dj.layout.Toggle"]=true;dojo.provide("dj.layout.Toggle");dojo.declare("dj.layout.Toggle",[dijit._Widget,dijit._Templated],{_originalStyle:"",templateString:"<div dojoAttachPoint=\"containerNode\"></div>\n",widgetsInTemplate:false,showing:true,postCreate:function(){this.inherited("postCreate",arguments);this._originalStyle=dojo.style(this.domNode,"display");if(this._originalStyle=="none"){this.showing=false;this._originalStyle="block";}},show:function(){dojo.style(this.domNode,"display",this._originalStyle);this.showing=true;this.onShow();},hide:function(){dojo.style(this.domNode,"display","none");this.showing=false;this.onHide();},onShow:function(){},onHide:function(){}});}dojo.i18n._preloadLocalizations("dojo.nls.dickjohnson",["he","nl","tr","no","ko","el","en","en-gb","ROOT","zh-cn","hu","es","fi-fi","pt-br","fi","he-il","xx","ru","it","fr","cs","de-de","fr-fr","it-it","es-es","ja","da","pl","de","sv","pt","zh-tw","pt-pt","nl-nl","ko-kr","ar","en-us","zh","ja-jp"]);
