/*
	Copyright (c) 2004-2007, 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.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(_1,_2,_3){var c=document.cookie;if(arguments.length==1){var _5=c.lastIndexOf(_1+"=");if(_5==-1){return null;}var _6=_5+_1.length+1;var _7=c.indexOf(";",_5+_1.length+1);if(_7==-1){_7=c.length;}return decodeURIComponent(c.substring(_6,_7));}else{_3=_3||{};_2=encodeURIComponent(_2);if(typeof (_3.expires)=="number"){var d=new Date();d.setTime(d.getTime()+(_3.expires*24*60*60*1000));_3.expires=d;}document.cookie=_1+"="+_2+(_3.expires?"; expires="+_3.expires.toUTCString():"")+(_3.path?"; path="+_3.path:"")+(_3.domain?"; domain="+_3.domain:"")+(_3.secure?"; secure":"");return null;}};}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 _9=dojo.global;var _a=dojo.doc;if(_a.selection){return !_a.selection.createRange().text;}else{if(_9.getSelection){var _b=_9.getSelection();if(dojo.isString(_b)){return !_b;}else{return _b.isCollapsed||!_b.toString();}}}},getBookmark:function(){var _c,_d=dojo.doc.selection;if(_d){var _e=_d.createRange();if(_d.type.toUpperCase()=="CONTROL"){_c=_e.length?dojo._toArray(_e):null;}else{_c=_e.getBookmark();}}else{if(dojo.global.getSelection){_d=dojo.global.getSelection();if(_d){var _e=_d.getRangeAt(0);_c=_e.cloneRange();}}else{console.debug("No idea how to store the current selection for this browser!");}}return _c;},moveToBookmark:function(_f){var _10=dojo.doc;if(_10.selection){var _11;if(dojo.isArray(_f)){_11=_10.body.createControlRange();dojo.forEach(_f,_11.addElement);}else{_11=_10.selection.createRange();_11.moveToBookmark(_f);}_11.select();}else{var _12=dojo.global.getSelection&&dojo.global.getSelection();if(_12&&_12.removeAllRanges){_12.removeAllRanges();_12.addRange(_f);}else{console.debug("No idea how to restore selection for this browser!");}}},getFocus:function(_13,_14){return {node:_13&&dojo.isDescendant(dijit._curFocus,_13.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_14||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_14||dojo.global,dijit.getBookmark):null,openedForWindow:_14};},focus:function(_15){if(!_15){return;}var _16="node" in _15?_15.node:_15,_17=_15.bookmark,_18=_15.openedForWindow;if(_16){var _19=(_16.tagName.toLowerCase()=="iframe")?_16.contentWindow:_16;if(_19&&_19.focus){try{_19.focus();}catch(e){}}dijit._onFocusNode(_16);}if(_17&&dojo.withGlobal(_18||dojo.global,dijit.isCollapsed)){if(_18){_18.focus();}try{dojo.withGlobal(_18||dojo.global,moveToBookmark,null,[_17]);}catch(e){}}},_activeStack:[],registerWin:function(_1a){if(!_1a){_1a=window;}dojo.connect(_1a.document,"onmousedown",null,function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var _1c=_1a.document.body||_1a.document.getElementsByTagName("body")[0];if(_1c){if(dojo.isIE){_1c.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});_1c.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{_1c.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);_1c.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}_1c=null;},_onBlurNode:function(_21){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;var w=dijit.getEnclosingWidget(_21);if(w&&w._setStateClass){w._focused=false;w._setStateClass();}if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);},100);},_onTouchNode:function(_23){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _24=[];try{while(_23){if(_23.dijitPopupParent){_23=dijit.byId(_23.dijitPopupParent).domNode;}else{if(_23.tagName&&_23.tagName.toLowerCase()=="body"){if(_23===dojo.body()){break;}_23=dojo.query("iframe").filter(function(_25){return _25.contentDocument.body===_23;})[0];}else{var id=_23.getAttribute&&_23.getAttribute("widgetId");if(id){_24.unshift(id);}_23=_23.parentNode;}}}}catch(e){}dijit._setStack(_24);},_onFocusNode:function(_27){if(_27&&_27.tagName&&_27.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(_27);if(_27==dijit._curFocus){return;}dijit._prevFocus=dijit._curFocus;dijit._curFocus=_27;dojo.publish("focusNode",[_27]);var w=dijit.getEnclosingWidget(_27);if(w&&w._setStateClass){w._focused=true;w._setStateClass();}},_setStack:function(_29){var _2a=dijit._activeStack;dijit._activeStack=_29;for(var _2b=0;_2b<Math.min(_2a.length,_29.length);_2b++){if(_2a[_2b]!=_29[_2b]){break;}}for(var i=_2a.length-1;i>=_2b;i--){var _2d=dijit.byId(_2a[i]);if(_2d){dojo.publish("widgetBlur",[_2d]);if(_2d._onBlur){_2d._onBlur();}}}for(var i=_2b;i<_29.length;i++){var _2d=dijit.byId(_29[i]);if(_2d){dojo.publish("widgetFocus",[_2d]);if(_2d._onFocus){_2d._onFocus();}}}}});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(_2e){if(this._hash[_2e.id]){throw new Error("Tried to register widget with id=="+_2e.id+" but that id is already registered");}this._hash[_2e.id]=_2e;},remove:function(id){delete this._hash[id];},forEach:function(_30){for(var id in this._hash){_30(this._hash[id]);}},filter:function(_32){var res=new dijit.WidgetSet();this.forEach(function(_34){if(_32(_34)){res.add(_34);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_37){return _37.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_38){var id;do{id=_38+"_"+(dijit._widgetTypeCtr[_38]!==undefined?++dijit._widgetTypeCtr[_38]:dijit._widgetTypeCtr[_38]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_3a){_3a.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_3c){return dijit.registry.byId(_3c.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_3d){while(_3d){if(_3d.getAttribute&&_3d.getAttribute("widgetId")){return dijit.registry.byId(_3d.getAttribute("widgetId"));}_3d=_3d.parentNode;}return null;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _3e=dojo.global;var _3f=dojo.doc;var w=0,h=0;if(dojo.isMozilla){var _42,_43,_44,_45;if(_3f.body.clientWidth>_3f.documentElement.clientWidth){_42=_3f.documentElement.clientWidth;_44=_3f.body.clientWidth;}else{_44=_3f.documentElement.clientWidth;_42=_3f.body.clientWidth;}if(_3f.body.clientHeight>_3f.documentElement.clientHeight){_43=_3f.documentElement.clientHeight;_45=_3f.body.clientHeight;}else{_45=_3f.documentElement.clientHeight;_43=_3f.body.clientHeight;}w=(_44>_3e.innerWidth)?_42:_44;h=(_45>_3e.innerHeight)?_43:_45;}else{if(!dojo.isOpera&&_3e.innerWidth){w=_3e.innerWidth;h=_3e.innerHeight;}else{if(dojo.isIE&&_3f.documentElement&&_3f.documentElement.clientHeight){w=_3f.documentElement.clientWidth;h=_3f.documentElement.clientHeight;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _46=dojo._docScroll();return {w:w,h:h,l:_46.x,t:_46.y};};dijit.placeOnScreen=function(_47,pos,_49,_4a){var _4b=dojo.map(_49,function(_4c){return {corner:_4c,pos:pos};});return dijit._place(_47,_4b);};dijit._place=function(_4d,_4e,_4f){var _50=dijit.getViewport();if(!_4d.parentNode||String(_4d.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_4d);}var _51=null;for(var i=0;i<_4e.length;i++){var _53=_4e[i].corner;var pos=_4e[i].pos;if(_4f){_4f(_53);}var _55=_4d.style.display;var _56=_4d.style.visibility;_4d.style.visibility="hidden";_4d.style.display="";var mb=dojo.marginBox(_4d);_4d.style.display=_55;_4d.style.visibility=_56;var _58=(_53.charAt(1)=="L"?pos.x:Math.max(_50.l,pos.x-mb.w)),_59=(_53.charAt(0)=="T"?pos.y:Math.max(_50.t,pos.y-mb.h)),_5a=(_53.charAt(1)=="L"?Math.min(_50.l+_50.w,_58+mb.w):pos.x),_5b=(_53.charAt(0)=="T"?Math.min(_50.t+_50.h,_59+mb.h):pos.y),_5c=_5a-_58,_5d=_5b-_59,_5e=(mb.w-_5c)+(mb.h-_5d);if(_51==null||_5e<_51.overflow){_51={corner:_53,aroundCorner:_4e[i].aroundCorner,x:_58,y:_59,w:_5c,h:_5d,overflow:_5e};}if(_5e==0){break;}}_4d.style.left=_51.x+"px";_4d.style.top=_51.y+"px";return _51;};dijit.placeOnScreenAroundElement=function(_5f,_60,_61,_62){_60=dojo.byId(_60);var _63=_60.style.display;_60.style.display="";var _64=_60.offsetWidth;var _65=_60.offsetHeight;var _66=dojo.coords(_60,true);_60.style.display=_63;var _67=[];for(var _68 in _61){_67.push({aroundCorner:_68,corner:_61[_68],pos:{x:_66.x+(_68.charAt(1)=="L"?0:_64),y:_66.y+(_68.charAt(0)=="T"?0:_65)}});}return dijit._place(_5f,_67,_62);};}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 _6e=[],_6f=1000,_70=1;this.open=function(_71){var _72=_71.popup,_73=_71.orient||{"BL":"TL","TL":"BL"},_74=_71.around,id=(_71.around&&_71.around.id)?(_71.around.id+"_dropdown"):("popup_"+_70++);var _76=dojo.doc.createElement("div");_76.id=id;_76.className="dijitPopup";_76.style.zIndex=_6f+_6e.length;_76.style.visibility="hidden";if(_71.parent){_76.dijitPopupParent=_71.parent.id;}dojo.body().appendChild(_76);_72.domNode.style.display="";_76.appendChild(_72.domNode);var _77=new dijit.BackgroundIframe(_76);var _78=_74?dijit.placeOnScreenAroundElement(_76,_74,_73,_72.orient?dojo.hitch(_72,"orient"):null):dijit.placeOnScreen(_76,_71,_73=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_76.style.visibility="visible";var _79=[];function getTopPopup(){for(var pi=_6e.length-1;pi>0&&_6e[pi].parent===_6e[pi-1].widget;pi--){}return _6e[pi];};_79.push(dojo.connect(_76,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&_71.onCancel){_71.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _7c=getTopPopup();if(_7c&&_7c.onCancel){_7c.onCancel();}}}}));if(_72.onCancel){_79.push(dojo.connect(_72,"onCancel",null,_71.onCancel));}_79.push(dojo.connect(_72,_72.onExecute?"onExecute":"onChange",null,function(){var _7d=getTopPopup();if(_7d&&_7d.onExecute){_7d.onExecute();}}));_6e.push({wrapper:_76,iframe:_77,widget:_72,parent:_71.parent,onExecute:_71.onExecute,onCancel:_71.onCancel,onClose:_71.onClose,handlers:_79});if(_72.onOpen){_72.onOpen(_78);}return _78;};this.close=function(_7e){while(dojo.some(_6e,function(_7f){return _7f.widget==_7e;})){var top=_6e.pop(),_81=top.wrapper,_82=top.iframe,_83=top.widget,_84=top.onClose;if(_83.onClose){_83.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_83||!_83.domNode){return;}dojo.style(_83.domNode,"display","none");dojo.body().appendChild(_83.domNode);_82.destroy();dojo._destroyElement(_81);if(_84){_84();}}};}();dijit._frames=new function(){var _85=[];this.pop=function(){var _86;if(_85.length){_86=_85.pop();_86.style.display="";}else{if(dojo.isIE){var _87="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_86=dojo.doc.createElement(_87);}else{var _86=dojo.doc.createElement("iframe");_86.src="javascript:\"\"";_86.className="dijitBackgroundIframe";}_86.tabIndex=-1;dojo.body().appendChild(_86);}return _86;};this.push=function(_88){_88.style.display="";if(dojo.isIE){_88.style.removeExpression("width");_88.style.removeExpression("height");}_85.push(_88);};}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_8a){if(!_8a.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _8b=dijit._frames.pop();_8a.appendChild(_8b);if(dojo.isIE){_8b.style.setExpression("width","document.getElementById('"+_8a.id+"').offsetWidth");_8b.style.setExpression("height","document.getElementById('"+_8a.id+"').offsetHeight");}this.iframe=_8b;}};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(_8c){if(dojo.isIE){if(dojo.marginBox(_8c.parentNode).h<=_8c.parentNode.scrollHeight){_8c.scrollIntoView(false);}}else{if(dojo.isMozilla){_8c.scrollIntoView(false);}else{var _8d=_8c.parentNode;var _8e=_8d.scrollTop+dojo.marginBox(_8d).h;var _8f=_8c.offsetTop+dojo.marginBox(_8c).h;if(_8e<_8f){_8d.scrollTop+=(_8f-_8e);}else{if(_8d.scrollTop>_8c.offsetTop){_8d.scrollTop-=(_8d.scrollTop-_8c.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 _92=d.isOpera;var maj=Math.floor;var _94={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_92,dj_opera8:maj(_92)==8,dj_opera9:maj(_92)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla};for(var p in _94){if(_94[p]){var _96=dojo.doc.documentElement;if(_96.className){_96.className+=" "+p;}else{_96.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,_98,_99,_9a,obj,_9c,_9d){if(obj!=this._obj){this.stop();this._initialDelay=_9d||500;this._subsequentDelay=_9c||0.9;this._obj=obj;this._evt=evt;this._node=_99;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_98,_9a);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(_9e,_9f,_a0,_a1,_a2,_a3){return [dojo.connect(_9e,"onkeypress",this,function(evt){if(evt.keyCode==_9f.keyCode&&(!_9f.charCode||_9f.charCode==evt.charCode)&&(_9f.ctrlKey===undefined||_9f.ctrlKey==evt.ctrlKey)&&(_9f.altKey===undefined||_9f.altKey==evt.ctrlKey)&&(_9f.shiftKey===undefined||_9f.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_9f,_a0,_9e,_a1,_9f,_a2,_a3);}else{if(dijit.typematic._obj==_9f){dijit.typematic.stop();}}}),dojo.connect(_9e,"onkeyup",this,function(evt){if(dijit.typematic._obj==_9f){dijit.typematic.stop();}})];},addMouseListener:function(_a6,_a7,_a8,_a9,_aa){var dc=dojo.connect;return [dc(_a6,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_a7,_a6,_a8,_a6,_a9,_aa);}),dc(_a6,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_a6,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_a6,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_a6,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_a7,_a6,_a8,_a6,_a9,_aa);setTimeout(dijit.typematic.stop,50);}})];},addListener:function(_b1,_b2,_b3,_b4,_b5,_b6,_b7){return this.addKeyListener(_b2,_b3,_b4,_b5,_b6,_b7).concat(this.addMouseListener(_b1,_b4,_b5,_b6,_b7));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=document.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("dijit","form/templates/blank.gif")+"\");";dojo.body().appendChild(div);function check(){var cs=dojo.getComputedStyle(div);if(cs){var _ba=cs.backgroundImage;var _bb=(cs.borderTopColor==cs.borderRightColor)||(_ba!=null&&(_ba=="none"||_ba=="url(invalid-url:)"));dojo[_bb?"addClass":"removeClass"](dojo.body(),"dijit_a11y");}};check();if(dojo.isIE){setInterval(check,4000);}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(_bc){if(_bc.hasAttribute){return _bc.hasAttribute("role");}else{return _bc.getAttribute("role")?true:false;}},getWaiRole:function(_bd){var _be=_bd.getAttribute("role");if(_be){var _bf=_be.indexOf(":");return _bf==-1?_be:_be.substring(_bf+1);}else{return "";}},setWaiRole:function(_c0,_c1){if(dojo.isFF&&dojo.isFF<3){_c0.setAttribute("role","wairole:"+_c1);}else{_c0.setAttribute("role",_c1);}},removeWaiRole:function(_c2){_c2.removeAttribute("role");},hasWaiState:function(_c3,_c4){if(dojo.isFF&&dojo.isFF<3){return _c3.hasAttributeNS("http://www.w3.org/2005/07/aaa",_c4);}else{if(_c3.hasAttribute){return _c3.hasAttribute("aria-"+_c4);}else{return _c3.getAttribute("aria-"+_c4)?true:false;}}},getWaiState:function(_c5,_c6){if(dojo.isFF&&dojo.isFF<3){return _c5.getAttributeNS("http://www.w3.org/2005/07/aaa",_c6);}else{var _c7=_c5.getAttribute("aria-"+_c6);return _c7?_c7:"";}},setWaiState:function(_c8,_c9,_ca){if(dojo.isFF&&dojo.isFF<3){_c8.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_c9,_ca);}else{_c8.setAttribute("aria-"+_c9,_ca);}},removeWaiState:function(_cb,_cc){if(dojo.isFF&&dojo.isFF<3){_cb.removeAttributeNS("http://www.w3.org/2005/07/aaa",_cc);}else{_cb.removeAttribute("aria-"+_cc);}}});}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.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_cd,_ce){this.create(_cd,_ce);},create:function(_cf,_d0){this.srcNodeRef=dojo.byId(_d0);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_cf){dojo.mixin(this,_cf);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){for(var _d1 in this.attributeMap){var _d2=this[this.attributeMap[_d1]||"domNode"];var _d3=this[_d1];if(typeof _d3!="object"&&(_d3!==""||(_cf&&_cf[_d1]))){switch(_d1){case "class":dojo.addClass(_d2,_d3);break;case "style":if(_d2.style.cssText){_d2.style.cssText+="; "+_d3;}else{_d2.style.cssText=_d3;}break;default:_d2.setAttribute(_d1,_d3);}}}}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(){},destroyRecursive:function(_d4){this.destroyDescendants();this.destroy();},destroy:function(_d5){this.uninitialize();dojo.forEach(this._connects,function(_d6){dojo.forEach(_d6,dojo.disconnect);});this.destroyRendering(_d5);dijit.registry.remove(this.id);},destroyRendering:function(_d7){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(_d8){_d8.destroy();});},uninitialize:function(){return false;},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){var _d9=dojo.query("[widgetId]",this.domNode);return _d9.map(dijit.byNode);},nodesWithKeyClick:["input","button"],connect:function(obj,_db,_dc){var _dd=[];if(_db=="ondijitclick"){var w=this;if(!this.nodesWithKeyClick[obj.nodeName]){_dd.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_dc))?w[_dc](e):_dc.call(w,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_dd.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_dc)?w[_dc](e):_dc.call(w,e);}}));}_db="onclick";}_dd.push(dojo.connect(obj,_db,this,_dc));this._connects.push(_dd);return _dd;},disconnect:function(_e1){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_e1){dojo.forEach(_e1,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(typeof this._ltr=="undefined"){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["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(_e3,_e4,ch,end){var out=String(_e3);if(!ch){ch="0";}while(out.length<_e4){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function(_e8,map,_ea,_eb){return _e8.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_ec,key,_ee){var _ef=dojo.getObject(key,false,map);if(_ee){_ef=dojo.getObject(_ee,false,_eb)(_ef);}if(_ea){_ef=_ea(_ef,key);}return _ef.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.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_f2,_f3){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 _f4=dojo.date.stamp._isoRegExp.exec(_f2);var _f5=null;if(_f4){_f4.shift();_f4[1]&&_f4[1]--;_f4[6]&&(_f4[6]*=1000);if(_f3){_f3=new Date(_f3);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_f6){return _f3["get"+_f6]();}).forEach(function(_f7,_f8){if(_f4[_f8]===undefined){_f4[_f8]=_f7;}});}_f5=new Date(_f4[0]||1970,_f4[1]||0,_f4[2]||0,_f4[3]||0,_f4[4]||0,_f4[5]||0,_f4[6]||0);var _f9=0;var _fa=_f4[7]&&_f4[7].charAt(0);if(_fa!="Z"){_f9=((_f4[8]||0)*60)+(Number(_f4[9])||0);if(_fa!="-"){_f9*=-1;}}if(_fa){_f9-=_f5.getTimezoneOffset();}if(_f9){_f5.setTime(_f5.getTime()+_f9*60000);}}return _f5;};dojo.date.stamp.toISOString=function(_fb,_fc){var _=function(n){return (n<10)?"0"+n:n;};_fc=_fc||{};var _ff=[];var _100=_fc.zulu?"getUTC":"get";var date="";if(_fc.selector!="time"){date=[_fb[_100+"FullYear"](),_(_fb[_100+"Month"]()+1),_(_fb[_100+"Date"]())].join("-");}_ff.push(date);if(_fc.selector!="date"){var time=[_(_fb[_100+"Hours"]()),_(_fb[_100+"Minutes"]()),_(_fb[_100+"Seconds"]())].join(":");var _103=_fb[_100+"Milliseconds"]();if(_fc.milliseconds){time+="."+(_103<100?"0":"")+_(_103);}if(_fc.zulu){time+="Z";}else{if(_fc.selector!="time"){var _104=_fb.getTimezoneOffset();var _105=Math.abs(_104);time+=(_104>0?"-":"+")+_(Math.floor(_105/60))+":"+_(_105%60);}}_ff.push(time);}return _ff.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;function val2type(_107){if(d.isString(_107)){return "string";}if(typeof _107=="number"){return "number";}if(typeof _107=="boolean"){return "boolean";}if(d.isFunction(_107)){return "function";}if(d.isArray(_107)){return "array";}if(_107 instanceof Date){return "date";}if(_107 instanceof d._Url){return "url";}return "object";};function str2obj(_108,type){switch(type){case "string":return _108;case "number":return _108.length?Number(_108):NaN;case "boolean":return typeof _108=="boolean"?_108:!(_108.toLowerCase()=="false");case "function":if(d.isFunction(_108)){_108=_108.toString();_108=d.trim(_108.substring(_108.indexOf("{")+1,_108.length-1));}try{if(_108.search(/[^\w\.]+/i)!=-1){_108=d.parser._nameAnonFunc(new Function(_108),this);}return d.getObject(_108,false);}catch(e){return new Function();}case "array":return _108.split(/\s*,\s*/);case "date":switch(_108){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_108);}case "url":return d.baseUrl+_108;default:return d.fromJson(_108);}};var _10a={};function getClassInfo(_10b){if(!_10a[_10b]){var cls=d.getObject(_10b);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_10b+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _10d=cls.prototype;var _10e={};for(var name in _10d){if(name.charAt(0)=="_"){continue;}var _110=_10d[name];_10e[name]=val2type(_110);}_10a[_10b]={cls:cls,params:_10e};}return _10a[_10b];};this._functionFromScript=function(_111){var _112="";var _113="";var _114=_111.getAttribute("args");if(_114){d.forEach(_114.split(/\s*,\s*/),function(part,idx){_112+="var "+part+" = arguments["+idx+"]; ";});}var _117=_111.getAttribute("with");if(_117&&_117.length){d.forEach(_117.split(/\s*,\s*/),function(part){_112+="with("+part+"){";_113+="}";});}return new Function(_112+_111.innerHTML+_113);};this.instantiate=function(_119){var _11a=[];d.forEach(_119,function(node){if(!node){return;}var type=node.getAttribute("dojoType");if((!type)||(!type.length)){return;}var _11d=getClassInfo(type);var _11e=_11d.cls;var ps=_11e._noScript||_11e.prototype._noScript;var _120={};var _121=node.attributes;for(var name in _11d.params){var item=_121.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _124=item.value;switch(name){case "class":_124=node.className;break;case "style":_124=node.style&&node.style.cssText;}var _125=_11d.params[name];_120[name]=str2obj(_124,_125);}if(!ps){var _126=[],_127=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_128){var _129=_128.getAttribute("event"),type=_128.getAttribute("type"),nf=d.parser._functionFromScript(_128);if(_129){if(type=="dojo/connect"){_126.push({event:_129,func:nf});}else{_120[_129]=nf;}}else{_127.push(nf);}});}var _12b=_11e["markupFactory"];if(!_12b&&_11e["prototype"]){_12b=_11e.prototype["markupFactory"];}var _12c=_12b?_12b(_120,node,_11e):new _11e(_120,node);_11a.push(_12c);var _12d=node.getAttribute("jsId");if(_12d){d.setObject(_12d,_12c);}if(!ps){dojo.forEach(_126,function(_12e){dojo.connect(_12c,_12e.event,null,_12e.func);});dojo.forEach(_127,function(func){func.call(_12c);});}});d.forEach(_11a,function(_130){if(_130&&(_130.startup)&&((!_130.getParent)||(!_130.getParent()))){_130.startup();}});return _11a;};this.parse=function(_131){var list=d.query("[dojoType]",_131);var _133=this.instantiate(list);return _133;};}();(function(){var _134=function(){if(djConfig["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_134);}else{dojo._loaders.unshift(_134);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_135,_136){var jpn="$joinpoint";var nso=(_136||dojo.parser._anon);if(dojo.isIE){var cn=_135["__dojoNameCache"];if(cn&&nso[cn]===_135){return _135["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_135;return ret;};}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,buildRendering:function(){var _13b=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_13b)){var _13d=this.declaredClass,_13e=this;var tstr=dojo.string.substitute(_13b,this,function(_140,key){if(key.charAt(0)=="!"){_140=_13e[key.substr(1)];}if(typeof _140=="undefined"){throw new Error(_13d+" template:"+key);}if(!_140){return "";}return key.charAt(0)=="!"?_140:_140.toString().replace(/"/g,"&quot;");},this);node=dijit._Templated._createNodesFromText(tstr)[0];}else{node=_13b.cloneNode(true);}this._attachTemplateNodes(node);var _142=this.srcNodeRef;if(_142&&_142.parentNode){_142.parentNode.replaceChild(node,_142);}this.domNode=node;if(this.widgetsInTemplate){var _143=dojo.parser.parse(node);this._attachTemplateNodes(_143,function(n,p){return n[p];});}this._fillContent(_142);},_fillContent:function(_146){var dest=this.containerNode;if(_146&&dest){while(_146.hasChildNodes()){dest.appendChild(_146.firstChild);}}},_attachTemplateNodes:function(_148,_149){_149=_149||function(n,p){return n.getAttribute(p);};var _14c=dojo.isArray(_148)?_148:(_148.all||_148.getElementsByTagName("*"));var x=dojo.isArray(_148)?0:-1;for(;x<_14c.length;x++){var _14e=(x==-1)?_148:_14c[x];if(this.widgetsInTemplate&&_149(_14e,"dojoType")){continue;}var _14f=_149(_14e,"dojoAttachPoint");if(_14f){var _150,_151=_14f.split(/\s*,\s*/);while(_150=_151.shift()){if(dojo.isArray(this[_150])){this[_150].push(_14e);}else{this[_150]=_14e;}}}var _152=_149(_14e,"dojoAttachEvent");if(_152){var _153,_154=_152.split(/\s*,\s*/);var trim=dojo.trim;while(_153=_154.shift()){if(_153){var _156=null;if(_153.indexOf(":")!=-1){var _157=_153.split(":");_153=trim(_157[0]);_156=trim(_157[1]);}else{_153=trim(_153);}if(!_156){_156=_153;}this.connect(_14e,_153,_156);}}}var role=_149(_14e,"waiRole");if(role){dijit.setWaiRole(_14e,role);}var _159=_149(_14e,"waiState");if(_159){dojo.forEach(_159.split(/\s*,\s*/),function(_15a){if(_15a.indexOf("-")!=-1){var pair=_15a.split("-");dijit.setWaiState(_14e,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_15c,_15d,_15e){var _15f=dijit._Templated._templateCache;var key=_15d||_15c;var _161=_15f[key];if(_161){return _161;}if(!_15d){_15d=dijit._Templated._sanitizeTemplateString(dojo._getText(_15c));}_15d=dojo.string.trim(_15d);if(_15d.match(/\$\{([^\}]+)\}/g)||_15e){return (_15f[key]=_15d);}else{return (_15f[key]=dijit._Templated._createNodesFromText(_15d)[0]);}};dijit._Templated._sanitizeTemplateString=function(_162){if(_162){_162=_162.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _163=_162.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_163){_162=_163[1];}}else{_162="";}return _162;};if(dojo.isIE){dojo.addOnUnload(function(){var _164=dijit._Templated._templateCache;for(var key in _164){var _166=_164[key];if(!isNaN(_166.nodeType)){dojo._destroyElement(_166);}delete _164[key];}});}(function(){var _167={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 _16a="none";var _16b=text.replace(/^\s+/,"");for(var type in _167){var map=_167[type];if(map.re.test(_16b)){_16a=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_16a];var _16f=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _170=[];while(_16f.firstChild){_170.push(_16f.removeChild(_16f.firstChild));}tn.innerHTML="";return _170;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");(function(){var _171=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_176,obj){var m=_176.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1];if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){var a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}return dojo.colorFromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2,a=[_171(m1,m2,H+1/3)*256,_171(m1,m2,H)*256,_171(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _184=function(c,low,high){c=Number(c);return isNaN(c)?high:c<low?low:c>high?high:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_184(t.r,0,255));t.g=Math.round(_184(t.g,0,255));t.b=Math.round(_184(t.b,0,255));t.a=_184(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.Color.named=dojo.mixin({aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]},dojo.Color.named);}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_18b,_18c,_18d){_18d=dojo.i18n.normalizeLocale(_18d);var _18e=_18d.split("-");var _18f=[_18b,"nls",_18c].join(".");var _190=dojo._loadedModules[_18f];if(_190){var _191;for(var i=_18e.length;i>0;i--){var loc=_18e.slice(0,i).join("_");if(_190[loc]){_191=_190[loc];break;}}if(!_191){_191=_190.ROOT;}if(_191){var _194=function(){};_194.prototype=_191;return new _194();}}throw new Error("Bundle not found: "+_18c+" in "+_18b+" , locale="+_18d);};dojo.i18n.normalizeLocale=function(_195){var _196=_195?_195.toLowerCase():dojo.locale;if(_196=="root"){_196="ROOT";}return _196;};dojo.i18n._requireLocalization=function(_197,_198,_199,_19a){var _19b=dojo.i18n.normalizeLocale(_199);var _19c=[_197,"nls",_198].join(".");var _19d="";if(_19a){var _19e=_19a.split(",");for(var i=0;i<_19e.length;i++){if(_19b.indexOf(_19e[i])==0){if(_19e[i].length>_19d.length){_19d=_19e[i];}}}if(!_19d){_19d="ROOT";}}var _1a0=_19a?_19d:_19b;var _1a1=dojo._loadedModules[_19c];var _1a2=null;if(_1a1){if(djConfig.localizationComplete&&_1a1._built){return;}var _1a3=_1a0.replace(/-/g,"_");var _1a4=_19c+"."+_1a3;_1a2=dojo._loadedModules[_1a4];}if(!_1a2){_1a1=dojo["provide"](_19c);var syms=dojo._getModuleSymbols(_197);var _1a6=syms.concat("nls").join("/");var _1a7;dojo.i18n._searchLocalePath(_1a0,_19a,function(loc){var _1a9=loc.replace(/-/g,"_");var _1aa=_19c+"."+_1a9;var _1ab=false;if(!dojo._loadedModules[_1aa]){dojo["provide"](_1aa);var _1ac=[_1a6];if(loc!="ROOT"){_1ac.push(loc);}_1ac.push(_198);var _1ad=_1ac.join("/")+".js";_1ab=dojo._loadPath(_1ad,null,function(hash){var _1af=function(){};_1af.prototype=_1a7;_1a1[_1a9]=new _1af();for(var j in hash){_1a1[_1a9][j]=hash[j];}});}else{_1ab=true;}if(_1ab&&_1a1[_1a9]){_1a7=_1a1[_1a9];}else{_1a1[_1a9]=_1a7;}if(_19a){return true;}});}if(_19a&&_19b!=_19d){_1a1[_19b.replace(/-/g,"_")]=_1a1[_19d.replace(/-/g,"_")];}};(function(){var _1b1=djConfig.extraLocale;if(_1b1){if(!_1b1 instanceof Array){_1b1=[_1b1];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_1b5,_1b6){req(m,b,_1b5,_1b6);if(_1b5){return;}for(var i=0;i<_1b1.length;i++){req(m,b,_1b1[i],_1b6);}};}})();dojo.i18n._searchLocalePath=function(_1b8,down,_1ba){_1b8=dojo.i18n.normalizeLocale(_1b8);var _1bb=_1b8.split("-");var _1bc=[];for(var i=_1bb.length;i>0;i--){_1bc.push(_1bb.slice(0,i).join("-"));}_1bc.push(false);if(down){_1bc.reverse();}for(var j=_1bc.length-1;j>=0;j--){var loc=_1bc[j]||"ROOT";var stop=_1ba(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_1c1,_1c2){function preload(_1c3){_1c3=dojo.i18n.normalizeLocale(_1c3);dojo.i18n._searchLocalePath(_1c3,true,function(loc){for(var i=0;i<_1c2.length;i++){if(_1c2[i]==loc){dojo["require"](_1c1+"_"+loc);return true;}}return false;});};preload();var _1c6=djConfig.extraLocale||[];for(var i=0;i<_1c6.length;i++){preload(_1c6[i]);}};}if(!dojo._hasResource["dijit.ColorPalette"]){dojo._hasResource["dijit.ColorPalette"]=true;dojo.provide("dijit.ColorPalette");dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated],{defaultTimeout:500,timeoutChangeRate:0.9,palette:"7x10",value:null,_currentFocus:0,_xDim:null,_yDim:null,_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":dojo.moduleUrl("dijit","templates/colors7x10.png"),"3x4":dojo.moduleUrl("dijit","templates/colors3x4.png")},_paletteCoords:{"leftOffset":4,"topOffset":4,"cWidth":20,"cHeight":20},templateString:"<div class=\"dijitInline dijitColorPalette\">\n\t<div class=\"dijitColorPaletteInner\" dojoAttachPoint=\"divNode\" waiRole=\"grid\" tabIndex=\"-1\">\n\t\t<img class=\"dijitColorPaletteUnder\" dojoAttachPoint=\"imageNode\" waiRole=\"presentation\">\n\t</div>\t\n</div>\n",_paletteDims:{"7x10":{"width":"206px","height":"145px"},"3x4":{"width":"86px","height":"64px"}},postCreate:function(){dojo.mixin(this.divNode.style,this._paletteDims[this.palette]);this.imageNode.setAttribute("src",this._imagePaths[this.palette]);var _1c8=this._palettes[this.palette];this.domNode.style.position="relative";this._highlightNodes=[];this.colorNames=dojo.i18n.getLocalization("dojo","colors",this.lang);var url=dojo.moduleUrl("dijit","templates/blank.gif");var _1ca=new dojo.Color(),_1cb=this._paletteCoords;for(var row=0;row<_1c8.length;row++){for(var col=0;col<_1c8[row].length;col++){var _1ce=document.createElement("img");_1ce.src=url;dojo.addClass(_1ce,"dijitPaletteImg");var _1cf=_1c8[row][col],_1d0=_1ca.setColor(dojo.Color.named[_1cf]);_1ce.alt=this.colorNames[_1cf];_1ce.color=_1d0.toHex();var _1d1=_1ce.style;_1d1.color=_1d1.backgroundColor=_1ce.color;dojo.forEach(["Dijitclick","MouseOut","MouseOver","Blur","Focus"],function(_1d2){this.connect(_1ce,"on"+_1d2.toLowerCase(),"_onColor"+_1d2);},this);this.divNode.appendChild(_1ce);_1d1.top=_1cb.topOffset+(row*_1cb.cHeight)+"px";_1d1.left=_1cb.leftOffset+(col*_1cb.cWidth)+"px";_1ce.setAttribute("tabIndex","-1");_1ce.title=this.colorNames[_1cf];dijit.setWaiRole(_1ce,"gridcell");_1ce.index=this._highlightNodes.length;this._highlightNodes.push(_1ce);}}this._highlightNodes[this._currentFocus].tabIndex=0;this._xDim=_1c8[0].length;this._yDim=_1c8.length;var _1d3={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:1,LEFT_ARROW:-1};for(var key in _1d3){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{keyCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _1d5=_1d3[key];return function(_1d6){this._navigateByKey(_1d5,_1d6);};}(),this.timeoutChangeRate,this.defaultTimeout));}},focus:function(){dijit.focus(this._highlightNodes[this._currentFocus]);},onChange:function(_1d7){},_onColorDijitclick:function(evt){var _1d9=evt.currentTarget;if(this._currentFocus!=_1d9.index){this._currentFocus=_1d9.index;dijit.focus(_1d9);}this._selectColor(_1d9);dojo.stopEvent(evt);},_onColorMouseOut:function(evt){dojo.removeClass(evt.currentTarget,"dijitPaletteImgHighlight");},_onColorMouseOver:function(evt){var _1dc=evt.currentTarget;_1dc.tabIndex=0;_1dc.focus();},_onColorBlur:function(evt){dojo.removeClass(evt.currentTarget,"dijitPaletteImgHighlight");evt.currentTarget.tabIndex=-1;this._currentFocus=0;this._highlightNodes[0].tabIndex=0;},_onColorFocus:function(evt){if(this._currentFocus!=evt.currentTarget.index){this._highlightNodes[this._currentFocus].tabIndex=-1;}this._currentFocus=evt.currentTarget.index;dojo.addClass(evt.currentTarget,"dijitPaletteImgHighlight");},_selectColor:function(_1df){this.onChange(this.value=_1df.color);},_navigateByKey:function(_1e0,_1e1){if(_1e1==-1){return;}var _1e2=this._currentFocus+_1e0;if(_1e2<this._highlightNodes.length&&_1e2>-1){var _1e3=this._highlightNodes[_1e2];_1e3.tabIndex=0;_1e3.focus();}}});}if(!dojo._hasResource["dijit._editor.selection"]){dojo._hasResource["dijit._editor.selection"]=true;dojo.provide("dijit._editor.selection");dojo.mixin(dijit._editor.selection,{getType:function(){if(dojo.doc["selection"]){return dojo.doc.selection.type.toLowerCase();}else{var _1e4="text";var oSel;try{oSel=dojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _1e6=oSel.getRangeAt(0);if((_1e6.startContainer==_1e6.endContainer)&&((_1e6.endOffset-_1e6.startOffset)==1)&&(_1e6.startContainer.nodeType!=3)){_1e4="control";}}return _1e4;}},getSelectedText:function(){if(dojo.doc["selection"]){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().text;}else{var _1e7=dojo.global.getSelection();if(_1e7){return _1e7.toString();}}},getSelectedHtml:function(){if(dojo.doc["selection"]){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().htmlText;}else{var _1e8=dojo.global.getSelection();if(_1e8&&_1e8.rangeCount){var frag=_1e8.getRangeAt(0).cloneContents();var div=document.createElement("div");div.appendChild(frag);return div.innerHTML;}return null;}},getSelectedElement:function(){if(this.getType()=="control"){if(dojo.doc["selection"]){var _1eb=dojo.doc.selection.createRange();if(_1eb&&_1eb.item){return dojo.doc.selection.createRange().item(0);}}else{var _1ec=dojo.global.getSelection();return _1ec.anchorNode.childNodes[_1ec.anchorOffset];}}},getParentElement:function(){if(this.getType()=="control"){var p=this.getSelectedElement();if(p){return p.parentNode;}}else{if(dojo.doc["selection"]){return dojo.doc.selection.createRange().parentElement();}else{var _1ee=dojo.global.getSelection();if(_1ee){var node=_1ee.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}},hasAncestorElement:function(_1f0){return (this.getAncestorElement.apply(this,arguments)!=null);},getAncestorElement:function(_1f1){var node=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(node,arguments);},isTag:function(node,tags){if(node&&node.tagName){var _nlc=node.tagName.toLowerCase();for(var i=0;i<tags.length;i++){var _tlc=String(tags[i]).toLowerCase();if(_nlc==_tlc){return _tlc;}}}return "";},getParentOfType:function(node,tags){while(node){if(this.isTag(node,tags).length){return node;}node=node.parentNode;}return null;},remove:function(){var _s=dojo.doc.selection;if(_s){if(_s.type.toLowerCase()!="none"){_s.clear();}return _s;}else{_s=dojo.global.getSelection();_s.deleteFromDocument();return _s;}},selectElementChildren:function(_1fb,_1fc){var _1fd=dojo.global;var _1fe=dojo.doc;_1fb=dojo.byId(_1fb);if(_1fe.selection&&dojo.body().createTextRange){var _1ff=_1fb.ownerDocument.body.createTextRange();_1ff.moveToElementText(_1fb);if(!_1fc){_1ff.select();}}else{if(_1fd["getSelection"]){var _200=_1fd.getSelection();if(_200["setBaseAndExtent"]){_200.setBaseAndExtent(_1fb,0,_1fb,_1fb.innerText.length-1);}else{if(_200["selectAllChildren"]){_200.selectAllChildren(_1fb);}}}}},selectElement:function(_201,_202){var _203=dojo.doc;_201=dojo.byId(_201);if(_203.selection&&dojo.body().createTextRange){try{var _204=dojo.body().createControlRange();_204.addElement(_201);if(!_202){_204.select();}}catch(e){this.selectElementChildren(_201,_202);}}else{if(dojo.global["getSelection"]){var _205=dojo.global.getSelection();if(_205["removeAllRanges"]){var _204=_203.createRange();_204.selectNode(_201);_205.removeAllRanges();_205.addRange(_204);}}}}});}if(!dojo._hasResource["dijit._editor.RichText"]){dojo._hasResource["dijit._editor.RichText"]=true;dojo.provide("dijit._editor.RichText");if(!djConfig["useXDomain"]||djConfig["allowXdRichTextSave"]){if(dojo._postLoad){(function(){var _206=dojo.doc.createElement("textarea");_206.id="dijit._editor.RichText.savedContent";var s=_206.style;s.display="none";s.position="absolute";s.top="-100px";s.left="-100px";s.height="3px";s.width="3px";dojo.body().appendChild(_206);})();}else{try{dojo.doc.write("<textarea id=\"dijit._editor.RichText.savedContent\" "+"style=\"display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;\"></textarea>");}catch(e){}}}dojo.declare("dijit._editor.RichText",[dijit._Widget],{constructor:function(){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this._keyHandlers={};this.contentPreFilters.push(dojo.hitch(this,"_preFixUrlAttributes"));if(dojo.isMoz){this.contentPreFilters.push(this._fixContentForMoz);}this.onLoadDeferred=new dojo.Deferred();},inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,postCreate:function(){dojo.publish("dijit._editor.RichText::init",[this]);this.open();this.setupDefaultShortcuts();},setupDefaultShortcuts:function(){var ctrl=this.KEY_CTRL;var exec=function(cmd,arg){return arguments.length==1?function(){this.execCommand(cmd);}:function(){this.execCommand(cmd,arg);};};this.addKeyHandler("b",ctrl,exec("bold"));this.addKeyHandler("i",ctrl,exec("italic"));this.addKeyHandler("u",ctrl,exec("underline"));this.addKeyHandler("a",ctrl,exec("selectall"));this.addKeyHandler("s",ctrl,function(){this.save(true);});this.addKeyHandler("1",ctrl,exec("formatblock","h1"));this.addKeyHandler("2",ctrl,exec("formatblock","h2"));this.addKeyHandler("3",ctrl,exec("formatblock","h3"));this.addKeyHandler("4",ctrl,exec("formatblock","h4"));this.addKeyHandler("\\",ctrl,exec("insertunorderedlist"));if(!dojo.isIE){this.addKeyHandler("Z",ctrl,exec("redo"));}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _20c=["p","pre","address","h1","h2","h3","h4","h5","h6","ol","div","ul"];var _20d="",_20e,i=0;while((_20e=_20c[i++])){if(_20e.charAt(1)!="l"){_20d+="<"+_20e+"><span>content</span></"+_20e+">";}else{_20d+="<"+_20e+"><li>content</li></"+_20e+">";}}var div=document.createElement("div");div.style.position="absolute";div.style.left="-2000px";div.style.top="-2000px";document.body.appendChild(div);div.innerHTML=_20d;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _212=node.tagName.toLowerCase();this._local2NativeFormatNames[_212]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_212]]=_212;node=node.nextSibling;}document.body.removeChild(div);},open:function(_213){if((!this.onLoadDeferred)||(this.onLoadDeferred.fired>=0)){this.onLoadDeferred=new dojo.Deferred();}if(!this.isClosed){this.close();}dojo.publish("dijit._editor.RichText::open",[this]);this._content="";if((arguments.length==1)&&(_213["nodeName"])){this.domNode=_213;}if((this.domNode["nodeName"])&&(this.domNode.nodeName.toLowerCase()=="textarea")){this.textarea=this.domNode;this.name=this.textarea.name;var html=this._preFilterContent(this.textarea.value);this.domNode=dojo.doc.createElement("div");this.domNode.setAttribute("widgetId",this.id);this.textarea.removeAttribute("widgetId");this.domNode.cssText=this.textarea.cssText;this.domNode.className+=" "+this.textarea.className;dojo.place(this.domNode,this.textarea,"before");var _215=dojo.hitch(this,function(){with(this.textarea.style){display="block";position="absolute";left=top="-1000px";if(dojo.isIE){this.__overflow=overflow;overflow="hidden";}}});if(dojo.isIE){setTimeout(_215,10);}else{_215();}}else{var html=this._preFilterContent(this.getNodeChildrenHtml(this.domNode));this.domNode.innerHTML="";}if(html==""){html="&nbsp;";}var _216=dojo.contentBox(this.domNode);this._oldHeight=_216.h;this._oldWidth=_216.w;this.savedContent=html;if((this.domNode["nodeName"])&&(this.domNode.nodeName=="LI")){this.domNode.innerHTML=" <br>";}this.editingArea=dojo.doc.createElement("div");this.domNode.appendChild(this.editingArea);if(this.name!=""&&(!djConfig["useXDomain"]||djConfig["allowXdRichTextSave"])){var _217=dojo.byId("dijit._editor.RichText.savedContent");if(_217.value!=""){var _218=_217.value.split(this._SEPARATOR),i=0,dat;while((dat=_218[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_218.splice(i,1);break;}}}dojo.connect(window,"onbeforeunload",this,"_saveContent");}this.isClosed=false;if(dojo.isIE||dojo.isSafari||dojo.isOpera){var ifr=this.iframe=dojo.doc.createElement("iframe");ifr.src="javascript:void(0)";this.editorObject=ifr;ifr.style.border="none";ifr.style.width="100%";ifr.frameBorder=0;this.editingArea.appendChild(ifr);this.window=ifr.contentWindow;this.document=this.window.document;this.document.open();this.document.write(this._getIframeDocTxt(html));this.document.close();if(dojo.isIE>=7){if(this.height){ifr.style.height=this.height;}if(this.minHeight){ifr.style.minHeight=this.minHeight;}}else{ifr.style.height=this.height?this.height:this.minHeight;}if(dojo.isIE){this._localizeEditorCommands();}this.onLoad();}else{this._drawIframe(html);}if(this.domNode.nodeName=="LI"){this.domNode.lastChild.style.marginTop="-1.2em";}this.domNode.className+=" RichTextEditable";},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_localizedIframeTitles:null,_getIframeDocTxt:function(html){var _cs=dojo.getComputedStyle(this.domNode);if(!this.height&&!dojo.isMoz){html="<div>"+html+"</div>";}var font=[_cs.fontWeight,_cs.fontSize,_cs.fontFamily].join(" ");var _220=_cs.lineHeight;if(_220.indexOf("px")>=0){_220=parseFloat(_220)/parseFloat(_cs.fontSize);}else{if(_220.indexOf("em")>=0){_220=parseFloat(_220);}else{_220="1.0";}}return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<style>","body,html {","\tbackground:transparent;","\tpadding: 0;","\tmargin: 0;","}","body{","\ttop:0px; left:0px; right:0px;",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tfont:",font,";","\tmin-height:",this.minHeight,";","\tline-height:",_220,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*for FF to show vertical scrollbar*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body>"+html+"</body></html>"].join("");},_drawIframe:function(html){if(!this.iframe){var ifr=this.iframe=dojo.doc.createElement("iframe");var ifrs=ifr.style;ifrs.border="none";ifrs.lineHeight="0";ifrs.verticalAlign="bottom";this.editorObject=this.iframe;this._localizedIframeTitles=dojo.i18n.getLocalization("dijit","Textarea");var _224=dojo.query("label[for=\""+this.id+"\"]");if(_224.length){this._localizedIframeTitles.iframeEditTitle=_224[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;}}this.iframe.style.width=this.inheritWidth?this._oldWidth:"100%";if(this.height){this.iframe.style.height=this.height;}else{this.iframe.height=this._oldHeight;}if(this.textarea){var _225=this.srcNodeRef;}else{var _225=dojo.doc.createElement("div");_225.style.display="none";_225.innerHTML=html;this.editingArea.appendChild(_225);}this.editingArea.appendChild(this.iframe);var _226=false;var _227=this.iframe.contentDocument;_227.open();_227.write(this._getIframeDocTxt(html));_227.close();var _228=dojo.hitch(this,function(){if(!_226){_226=true;}else{return;}if(!this.editNode){try{if(this.iframe.contentWindow){this.window=this.iframe.contentWindow;this.document=this.iframe.contentWindow.document;}else{if(this.iframe.contentDocument){this.window=this.iframe.contentDocument.window;this.document=this.iframe.contentDocument;}}if(!this.document.body){throw "Error";}}catch(e){setTimeout(_228,500);_226=false;return;}dojo._destroyElement(_225);this.document.designMode="on";this.onLoad();}else{dojo._destroyElement(_225);this.editNode.innerHTML=html;this.onDisplayChanged();}this._preDomFilterContent(this.editNode);});_228();},_applyEditingAreaStyleSheets:function(){var _229=[];if(this.styleSheets){_229=this.styleSheets.split(";");this.styleSheets="";}_229=_229.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_229[i++])){var _22d=(new dojo._Url(dojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_22d);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_22d+"\"/>";}return text;},addStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new dojo._Url(dojo.global.location,url)).toString();}if(dojo.indexOf(this.editingAreaStyleSheets,url)>-1){console.debug("dijit._editor.RichText.addStyleSheet: Style sheet "+url+" is already applied to the editing area!");return;}this.editingAreaStyleSheets.push(url);if(this.document.createStyleSheet){this.document.createStyleSheet(url);}else{var head=this.document.getElementsByTagName("head")[0];var _231=this.document.createElement("link");with(_231){rel="stylesheet";type="text/css";href=url;}head.appendChild(_231);}},removeStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new dojo._Url(dojo.global.location,url)).toString();}var _234=dojo.indexOf(this.editingAreaStyleSheets,url);if(_234==-1){console.debug("dijit._editor.RichText.removeStyleSheet: Style sheet "+url+" is not applied to the editing area so it can not be removed!");return;}delete this.editingAreaStyleSheets[_234];dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:false,_mozSettingProps:["styleWithCSS","insertBrOnReturn"],setDisabled:function(_235){if(dojo.isIE||dojo.isSafari||dojo.isOpera){this.editNode.contentEditable=!_235;}else{if(_235){this._mozSettings=[false,this.blockNodeForEnter==="BR"];}this.document.designMode=(_235?"off":"on");if(!_235){dojo.forEach(this._mozSettingProps,function(s,i){this.document.execCommand(s,false,this._mozSettings[i]);},this);}}this.disabled=_235;},_isResized:function(){return false;},onLoad:function(e){this.isLoaded=true;if(this.height||dojo.isMoz){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;}this.editNode.contentEditable=true;this._preDomFilterContent(this.editNode);var _239=this.events.concat(this.captureEvents),i=0,et;while((et=_239[i++])){this.connect(this.document,et.toLowerCase(),et);}if(!dojo.isIE){try{this.document.execCommand("styleWithCSS",false,false);}catch(e2){}}else{this.editNode.style.zoom=1;}if(this.focusOnLoad){this.focus();}this.onDisplayChanged(e);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}},onKeyDown:function(e){if(dojo.isIE){if(e.keyCode===dojo.keys.BACKSPACE&&this.document.selection.type==="Control"){dojo.stopEvent(e);this.execCommand("delete");}else{if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){e.charCode=e.keyCode;this.onKeyPress(e);}}}else{if(dojo.isMoz){if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){this.iframe.contentDocument.title=this._localizedIframeTitles.iframeFocusTitle;this.iframe.focus();dojo.stopEvent(e);}else{if(e.keyCode==dojo.keys.TAB&&e.shiftKey){if(this.toolbar){this.toolbar.focus();}dojo.stopEvent(e);}}}}},onKeyUp:function(e){return;},KEY_CTRL:1,KEY_SHIFT:2,onKeyPress:function(e){var _23f=e.ctrlKey?this.KEY_CTRL:0|e.shiftKey?this.KEY_SHIFT:0;var key=e.keyChar||e.keyCode;if(this._keyHandlers[key]){var _241=this._keyHandlers[key],i=0,h;while((h=_241[i++])){if(_23f==h.modifiers){if(!h.handler.apply(this,arguments)){e.preventDefault();}break;}}}setTimeout(dojo.hitch(this,function(){this.onKeyPressed(e);}),1);},addKeyHandler:function(key,_245,_246){if(!dojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({modifiers:_245||0,handler:_246});},onKeyPressed:function(e){this.onDisplayChanged();},onClick:function(e){this.onDisplayChanged(e);},_onBlur:function(e){var _c=this.getValue(true);if(_c!=this.savedContent){this.onChange(_c);this.savedContent=_c;}if(dojo.isMoz&&this.iframe){this.iframe.contentDocument.title=this._localizedIframeTitles.iframeEditTitle;}},_initialFocus:true,_onFocus:function(e){if((dojo.isMoz)&&(this._initialFocus)){this._initialFocus=false;if(this.editNode.innerHTML.replace(/^\s+|\s+$/g,"")=="&nbsp;"){this.placeCursorAtStart();}}},blur:function(){if(this.iframe){this.window.blur();}else{if(this.editNode){this.editNode.blur();}}},focus:function(){if(this.iframe&&!dojo.isIE){dijit.focus(this.iframe);}else{if(this.editNode&&this.editNode.focus){dijit.focus(this.editNode);}else{console.debug("Have no idea how to focus into the editor!");}}},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){if(!this._updateTimer){if(this._updateTimer){clearTimeout(this._updateTimer);}this._updateTimer=setTimeout(dojo.hitch(this,this.onNormalizedDisplayChanged),this.updateInterval);}},onNormalizedDisplayChanged:function(){this._updateTimer=null;},onChange:function(_24d){},_normalizeCommand:function(cmd){var _24f=cmd.toLowerCase();if(_24f=="formatblock"){if(dojo.isSafari){_24f="heading";}}else{if(_24f=="hilitecolor"&&!dojo.isMoz){_24f="backcolor";}}return _24f;},queryCommandAvailable:function(_250){var ie=1;var _252=1<<1;var _253=1<<2;var _254=1<<3;var _255=1<<4;var _256=dojo.isSafari;function isSupportedBy(_257){return {ie:Boolean(_257&ie),mozilla:Boolean(_257&_252),safari:Boolean(_257&_253),safari420:Boolean(_257&_255),opera:Boolean(_257&_254)};};var _258=null;switch(_250.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":_258=isSupportedBy(_252|ie|_253|_254);break;case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":_258=isSupportedBy(_252|ie|_254|_255);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_258=isSupportedBy(ie);break;case "cut":case "copy":case "paste":_258=isSupportedBy(ie|_252|_255);break;case "inserttable":_258=isSupportedBy(_252|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_258=isSupportedBy(ie|_252);break;default:return false;}return (dojo.isIE&&_258.ie)||(dojo.isMoz&&_258.mozilla)||(dojo.isSafari&&_258.safari)||(_256&&_258.safari420)||(dojo.isOpera&&_258.opera);},execCommand:function(_259,_25a){var _25b;this.focus();_259=this._normalizeCommand(_259);if(_25a!=undefined){if(_259=="heading"){throw new Error("unimplemented");}else{if((_259=="formatblock")&&dojo.isIE){_25a="<"+_25a+">";}}}if(_259=="inserthtml"){_25a=this._preFilterContent(_25a);if(dojo.isIE){var _25c=this.document.selection.createRange();_25c.pasteHTML(_25a);_25c.select();_25b=true;}else{if(dojo.isMoz&&!_25a.length){dojo.withGlobal(this.window,"remove",dijit._editor.selection);_25b=true;}else{_25b=this.document.execCommand(_259,false,_25a);}}}else{if((_259=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isSafari)){var _25d=this.window.getSelection();var a=dojo.withGlobal(this.window,"getAncestorElement",dijit._editor.selection,["a"]);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[a]);_25b=this.document.execCommand("unlink",false,null);}else{if((_259=="hilitecolor")&&(dojo.isMoz)){this.document.execCommand("styleWithCSS",false,true);_25b=this.document.execCommand(_259,false,_25a);this.document.execCommand("styleWithCSS",false,false);}else{if((dojo.isIE)&&((_259=="backcolor")||(_259=="forecolor"))){_25a=arguments.length>1?_25a:null;_25b=this.document.execCommand(_259,false,_25a);}else{_25a=arguments.length>1?_25a:null;if(_25a||_259!="createlink"){_25b=this.document.execCommand(_259,false,_25a);}}}}}this.onDisplayChanged();return _25b;},queryCommandEnabled:function(_25f){_25f=this._normalizeCommand(_25f);if(dojo.isMoz||dojo.isSafari){if(_25f=="unlink"){return dojo.withGlobal(this.window,"hasAncestorElement",dijit._editor.selection,["a"]);}else{if(_25f=="inserttable"){return true;}}}if(dojo.isSafari){if(_25f=="copy"){_25f="cut";}else{if(_25f=="paste"){return true;}}}var elem=(dojo.isIE)?this.document.selection.createRange():this.document;return elem.queryCommandEnabled(_25f);},queryCommandState:function(_261){_261=this._normalizeCommand(_261);return this.document.queryCommandState(_261);},queryCommandValue:function(_262){_262=this._normalizeCommand(_262);if(dojo.isIE&&_262=="formatblock"){return this._local2NativeFormatNames[this.document.queryCommandValue(_262)];}return this.document.queryCommandValue(_262);},placeCursorAtStart:function(){this.focus();var _263=false;if(dojo.isMoz){var _264=this.editNode.firstChild;while(_264){if(_264.nodeType==3){if(_264.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_263=true;dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[_264]);break;}}else{if(_264.nodeType==1){_263=true;dojo.withGlobal(this.window,"selectElementChildren",dijit._editor.selection,[_264]);break;}}_264=_264.nextSibling;}}else{_263=true;dojo.withGlobal(this.window,"selectElementChildren",dijit._editor.selection,[this.editNode]);}if(_263){dojo.withGlobal(this.window,"collapse",dijit._editor.selection,[true]);}},placeCursorAtEnd:function(){this.focus();var _265=false;if(dojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_265=true;dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[last]);break;}}else{if(last.nodeType==1){_265=true;if(last.lastChild){dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[last.lastChild]);}else{dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[last]);}break;}}last=last.previousSibling;}}else{_265=true;dojo.withGlobal(this.window,"selectElementChildren",dijit._editor.selection,[this.editNode]);}if(_265){dojo.withGlobal(this.window,"collapse",dijit._editor.selection,[false]);}},getValue:function(_267){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_267);},setValue:function(html){if(this.textarea&&(this.isClosed||!this.isLoaded)){this.textarea.value=html;}else{html=this._preFilterContent(html);if(this.isClosed){this.domNode.innerHTML=html;this._preDomFilterContent(this.domNode);}else{this.editNode.innerHTML=html;this._preDomFilterContent(this.editNode);}}},replaceValue:function(html){if(this.isClosed){this.setValue(html);}else{if(this.window&&this.window.getSelection&&!dojo.isMoz){this.setValue(html);}else{if(this.window&&this.window.getSelection){html=this._preFilterContent(html);this.execCommand("selectall");if(dojo.isMoz&&!html){html="&nbsp;";}this.execCommand("inserthtml",html);this._preDomFilterContent(this.editNode);}else{if(this.document&&this.document.selection){this.setValue(html);}}}}},_preFilterContent:function(html){var ec=html;dojo.forEach(this.contentPreFilters,function(ef){if(ef){ec=ef(ec);}});return ec;},_preDomFilterContent:function(dom){dom=dom||this.editNode;dojo.forEach(this.contentDomPreFilters,function(ef){if(ef&&dojo.isFunction(ef)){ef(dom);}},this);},_postFilterContent:function(dom,_270){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_270&&dom["cloneNode"]){dom=dom.cloneNode(true);}dojo.forEach(this.contentDomPostFilters,function(ef){dom=ef(dom);});}var ec=this.getNodeChildrenHtml(dom);if(!ec.replace(/^(?:\s|\xA0)+/g,"").replace(/(?:\s|\xA0)+$/g,"").length){ec="";}dojo.forEach(this.contentPostFilters,function(ef){ec=ef(ec);});return ec;},_saveContent:function(e){var _275=dojo.byId("dijit._editor.RichText.savedContent");_275.value+=this._SEPARATOR+this.name+":"+this.getValue();},escapeXml:function(str,_277){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_277){str=str.replace(/'/gm,"&#39;");}return str;},getNodeHtml:function(node){switch(node.nodeType){case 1:var _279="<"+node.tagName.toLowerCase();if(dojo.isMoz){if(node.getAttribute("type")=="_moz"){node.removeAttribute("type");}if(node.getAttribute("_moz_dirty")!=undefined){node.removeAttribute("_moz_dirty");}}var _27a=[];if(dojo.isIE){var s=node.outerHTML;s=s.substr(0,s.indexOf(">"));s=s.replace(/(?:['"])[^"']*\1/g,"");var reg=/([^\s=]+)=/g;var m,key;while((m=reg.exec(s))!=undefined){key=m[1];if(key.substr(0,3)!="_dj"){if(key=="src"||key=="href"){if(node.getAttribute("_djrealurl")){_27a.push([key,node.getAttribute("_djrealurl")]);continue;}}if(key=="class"){_27a.push([key,node.className]);}else{_27a.push([key,node.getAttribute(key)]);}}}}else{var attr,i=0,_281=node.attributes;while((attr=_281[i++])){if(attr.name.substr(0,3)!="_dj"){var v=attr.value;if(attr.name=="src"||attr.name=="href"){if(node.getAttribute("_djrealurl")){v=node.getAttribute("_djrealurl");}}_27a.push([attr.name,v]);}}}_27a.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});i=0;while((attr=_27a[i++])){_279+=" "+attr[0]+"=\""+attr[1]+"\"";}if(node.childNodes.length){_279+=">"+this.getNodeChildrenHtml(node)+"</"+node.tagName.toLowerCase()+">";}else{_279+=" />";}break;case 3:var _279=this.escapeXml(node.nodeValue,true);break;case 8:var _279="<!--"+this.escapeXml(node.nodeValue,true)+"-->";break;default:var _279="Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName;}return _279;},getNodeChildrenHtml:function(dom){var out="";if(!dom){return out;}var _287=dom["childNodes"]||dom;var i=0;var node;while((node=_287[i++])){out+=this.getNodeHtml(node);}return out;},close:function(save,_28b){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _28c=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}if(this.textarea){with(this.textarea.style){position="";left=top="";if(dojo.isIE){overflow=this.__overflow;this.__overflow=null;}}if(save){this.textarea.value=this._content;}else{this.textarea.value=this.savedContent;}dojo._destroyElement(this.domNode);this.domNode=this.textarea;}else{if(save){this.domNode.innerHTML=this._content;}else{this.domNode.innerHTML=this.savedContent;}}dojo.removeClass(this.domNode,"RichTextEditable");this.isClosed=true;this.isLoaded=false;delete this.editNode;if(this.window&&this.window._frameElement){this.window._frameElement=null;}this.window=null;this.document=null;this.editingArea=null;this.editorObject=null;return _28c;},destroyRendering:function(){},destroy:function(){this.destroyRendering();if(!this.isClosed){this.close(false);}this.inherited("destroy",arguments);},_fixContentForMoz:function(html){html=html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2");html=html.replace(/<(\/)?em([ \>])/gi,"<$1i$2");return html;},_srcInImgRegex:/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,_hrefInARegex:/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,_preFixUrlAttributes:function(html){html=html.replace(this._hrefInARegex,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");html=html.replace(this._srcInImgRegex,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");return html;}});}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 _291=dijit.byId(id);return _291.isContainer?_291:null;}}return null;},_getSibling:function(_292){var node=this.domNode;do{node=node[_292+"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(_295,_296){if(_296===undefined){_296="last";}var _297=this.containerNode||this.domNode;if(_296&&typeof _296=="number"){var _298=dojo.query("> [widgetid]",_297);if(_298&&_298.length>=_296){_297=_298[_296-1];_296="after";}}dojo.place(_295.domNode,_297,_296);if(this._started&&!_295._started){_295.startup();}},removeChild:function(_299){var node=_299.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(_29e,dir){var node=_29e.domNode;var _2a1=(dir>0?"nextSibling":"previousSibling");do{node=node[_2a1];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_2a2,_2a3){var _2a4=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_2a2,function(code){_2a4[code]=prev;});dojo.forEach(_2a3,function(code){_2a4[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");if(dojo.isIE){this.connect(this.domNode,"onactivate","_onContainerFocus");this.connect(this.domNode,"ondeactivate","_onContainerBlur");}else{this.connect(this.domNode,"onfocus","_onContainerFocus");this.connect(this.domNode,"onblur","_onContainerBlur");}},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_setTabIndexMinusOne"));},addChild:function(_2a9,_2aa){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._setTabIndexMinusOne(_2a9);},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 _2ab=this._getNextFocusableChild(this.focusedChild,1);if(_2ab.getFocalNodes){this.focusChild(_2ab,_2ab.getFocalNodes()[0]);}else{this.focusChild(_2ab);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _2ac=this._getNextFocusableChild(this.focusedChild,-1);if(_2ac.getFocalNodes){var _2ad=_2ac.getFocalNodes();this.focusChild(_2ac,_2ad[_2ad.length-1]);}else{this.focusChild(_2ac);}},focusChild:function(_2ae,node){if(_2ae){if(this.focusedChild&&_2ae!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_2ae;if(node&&_2ae.focusFocalNode){_2ae.focusFocalNode(node);}else{_2ae.focus();}}},_setTabIndexMinusOne:function(_2b0){if(_2b0.getFocalNodes){dojo.forEach(_2b0.getFocalNodes(),function(node){node.setAttribute("tabIndex",-1);});}else{(_2b0.focusNode||_2b0.domNode).setAttribute("tabIndex",-1);}},_onContainerFocus:function(evt){this.domNode.setAttribute("tabIndex",-1);if(evt.target===this.domNode){this.focusFirstChild();}else{var _2b3=dijit.getEnclosingWidget(evt.target);if(_2b3&&_2b3.isFocusable()){this.focusedChild=_2b3;}}},_onContainerBlur:function(evt){if(this.tabIndex){this.domNode.setAttribute("tabIndex",this.tabIndex);}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.keyCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_2b7){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_2b8,dir){if(_2b8){_2b8=this._getSiblingOfChild(_2b8,dir);}var _2ba=this.getChildren();for(var i=0;i<_2ba.length;i++){if(!_2b8){_2b8=_2ba[(dir>0)?0:(_2ba.length-1)];}if(_2b8.isFocusable()){return _2b8;}_2b8=this._getSiblingOfChild(_2b8,dir);}}});}if(!dojo._hasResource["dijit.Toolbar"]){dojo._hasResource["dijit.Toolbar"]=true;dojo.provide("dijit.Toolbar");dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit dijitToolbar\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",tabIndex:"0",postCreate:function(){this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);},startup:function(){this.startupKeyNavChildren();}});dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\"></div>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Editor"]){dojo._hasResource["dijit.Editor"]=true;dojo.provide("dijit.Editor");dojo.declare("dijit.Editor",dijit._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull"];this._plugins=[];this._editInterval=this.editActionInterval*1000;},postCreate:function(){if(this.customUndo){dojo["require"]("dijit._editor.range");this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);}if(dojo.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}dijit.Editor.superclass.postCreate.apply(this,arguments);this.commands=dojo.i18n.getLocalization("dijit._editor","commands",this.lang);if(!this.toolbar){var _2bc=dojo.doc.createElement("div");dojo.place(_2bc,this.editingArea,"before");this.toolbar=new dijit.Toolbar({},_2bc);}dojo.forEach(this.plugins,this.addPlugin,this);this.onNormalizedDisplayChanged();},destroy:function(){dojo.forEach(this._plugins,function(p){if(p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroy();delete this.toolbar;this.inherited("destroy",arguments);},addPlugin:function(_2be,_2bf){var args=dojo.isString(_2be)?{name:_2be}:_2be;if(!args.setEditor){var o={"args":args,"plugin":null,"editor":this};dojo.publish("dijit.Editor.getPlugin",[o]);if(!o.plugin){var pc=dojo.getObject(args.name);if(pc){o.plugin=new pc(args);}}if(!o.plugin){console.debug("Cannot find plugin",_2be);return;}_2be=o.plugin;}if(arguments.length>1){this._plugins[_2bf]=_2be;}else{this._plugins.push(_2be);}_2be.setEditor(this);if(dojo.isFunction(_2be.setToolbar)){_2be.setToolbar(this.toolbar);}},customUndo:dojo.isIE,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){clearTimeout(this._editTimer);}this._editTimer=setTimeout(dojo.hitch(this,this.endEditing),this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{try{if(this.customUndo){this.endEditing();this._beginEditing();}var r=this.inherited("execCommand",arguments);if(this.customUndo){this._endEditing();}return r;}catch(e){if(dojo.isMoz&&/copy|cut|paste/.test(cmd)){var sub=dojo.string.substitute,_2c7={cut:"X",copy:"C",paste:"V"},_2c8=navigator.userAgent.indexOf("Macintosh")!=-1;alert(sub(this.commands.systemShortcutFF,[this.commands[cmd],sub(this.commands[_2c8?"appleKey":"ctrlKey"],[_2c7[cmd]])]));}return false;}}},queryCommandEnabled:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);}else{return this.inherited("queryCommandEnabled",arguments);}},_changeToStep:function(from,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}if(dojo.isIE){if(dojo.isArray(b)){var tmp=[];dojo.forEach(b,function(n){tmp.push(dijit.range.getNode(n,this.editNode));},this);b=tmp;}}else{var r=dijit.range.create();r.setStart(dijit.range.getNode(b.startContainer,this.editNode),b.startOffset);r.setEnd(dijit.range.getNode(b.endContainer,this.editNode),b.endOffset);b=r;}dojo.withGlobal(this.window,"moveToBookmark",dijit,[b]);},undo:function(){this.endEditing(true);var s=this._steps.pop();if(this._steps.length>0){this.focus();this._changeToStep(s,this._steps[this._steps.length-1]);this._undoedSteps.push(s);this.onDisplayChanged();return true;}return false;},redo:function(){this.endEditing(true);var s=this._undoedSteps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(this._steps[this._steps.length-1],s);this._steps.push(s);this.onDisplayChanged();return true;}return false;},endEditing:function(_2d2){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_2d2);this._inEditing=false;}},_getBookmark:function(){var b=dojo.withGlobal(this.window,dijit.getBookmark);if(dojo.isIE){if(dojo.isArray(b)){var tmp=[];dojo.forEach(b,function(n){tmp.push(dijit.range.getIndex(n,this.editNode).o);},this);b=tmp;}}else{var tmp=dijit.range.getIndex(b.startContainer,this.editNode).o;b={startContainer:tmp,startOffset:b.startOffset,endContainer:b.endContainer===b.startContainer?tmp:dijit.range.getIndex(b.endContainer,this.editNode).o,endOffset:b.endOffset};}return b;},_beginEditing:function(cmd){if(this._steps.length===0){this._steps.push({"text":this.savedContent,"bookmark":this._getBookmark()});}},_endEditing:function(_2d7){var v=this.getValue(true);this._undoedSteps=[];this._steps.push({"text":v,"bookmark":this._getBookmark()});},onKeyDown:function(e){if(!this.customUndo){this.inherited("onKeyDown",arguments);return;}var k=e.keyCode,ks=dojo.keys;if(e.ctrlKey){if(k===90||k===122){dojo.stopEvent(e);this.undo();return;}else{if(k===89||k===121){dojo.stopEvent(e);this.redo();return;}}}this.inherited("onKeyDown",arguments);switch(k){case ks.ENTER:this.beginEditing();break;case ks.BACKSPACE:case ks.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");setTimeout(dojo.hitch(this,this.endEditing),1);}else{this.beginEditing("paste");setTimeout(dojo.hitch(this,this.endEditing),1);}break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<dojo.keys.F1||e.keyCode>dojo.keys.F15)){this.beginEditing();break;}case ks.ALT:this.endEditing();break;case ks.UP_ARROW:case ks.DOWN_ARROW:case ks.LEFT_ARROW:case ks.RIGHT_ARROW:case ks.HOME:case ks.END:case ks.PAGE_UP:case ks.PAGE_DOWN:this.endEditing(true);break;case ks.CTRL:case ks.SHIFT:case ks.TAB:break;}},_onBlur:function(){this.inherited("_onBlur",arguments);this.endEditing(true);},onClick:function(){this.endEditing(true);this.inherited("onClick",arguments);}});dojo.subscribe("dijit.Editor.getPlugin",null,function(o){if(o.plugin){return;}var args=o.args,p;var _p=dijit._editor._Plugin;var name=args.name;switch(name){case "undo":case "redo":case "cut":case "copy":case "paste":case "insertOrderedList":case "insertUnorderedList":case "indent":case "outdent":case "justifyCenter":case "justifyFull":case "justifyLeft":case "justifyRight":case "delete":case "selectAll":case "removeFormat":p=new _p({command:name});break;case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":p=new _p({buttonClass:dijit.form.ToggleButton,command:name});break;case "|":p=new _p({button:new dijit.ToolbarSeparator()});break;case "createLink":p=new dijit._editor.plugins.LinkDialog({command:name});break;case "foreColor":case "hiliteColor":p=new dijit._editor.plugins.TextColor({command:name});break;case "fontName":case "fontSize":case "formatBlock":p=new dijit._editor.plugins.FontChoice({command:name});}o.plugin=p;});}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:"",value:"",name:"",id:"",alt:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),setDisabled:function(_2e1){this.domNode.disabled=this.disabled=_2e1;if(this.focusNode){this.focusNode.disabled=_2e1;}if(_2e1){this._hovering=false;this._active=false;}dijit.setWaiState(this.focusNode||this.domNode,"disabled",_2e1);this._setStateClass();},_onMouse:function(_2e2){var _2e3=_2e2.target;if(_2e3&&_2e3.getAttribute){this.stateModifier=_2e3.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_2e2.type){case "mouseenter":case "mouseover":this._hovering=true;break;case "mouseout":case "mouseleave":this._hovering=false;break;case "mousedown":this._active=true;var self=this;var _2e5=this.connect(dojo.body(),"onmouseup",function(){self._active=false;self._setStateClass();self.disconnect(_2e5);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){if(!("staticClass" in this)){this.staticClass=(this.stateNode||this.domNode).className;}var _2e6=[this.baseClass];function multiply(_2e7){_2e6=_2e6.concat(dojo.map(_2e6,function(c){return c+_2e7;}));};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if((this.stateModifier||!this._focused)&&this._hovering){multiply(this.stateModifier+"Hover");}}}(this.stateNode||this.domNode).className=this.staticClass+" "+_2e6.join(" ");},onChange:function(_2e9){},postCreate:function(){this.setValue(this.value,null);this.setDisabled(this.disabled);this._setStateClass();},setValue:function(_2ea,_2eb){this._lastValue=_2ea;dijit.setWaiState(this.focusNode||this.domNode,"valuenow",this.forWaiValuenow());if(_2eb===undefined){_2eb=true;}if(this._lastValueReported==undefined&&_2eb===null){this._lastValueReported=_2ea;}if((this.intermediateChanges||_2eb)&&((_2ea&&_2ea.toString)?_2ea.toString():_2ea)!==((this._lastValueReported&&this._lastValueReported.toString)?this._lastValueReported.toString():this._lastValueReported)){this._lastValueReported=_2ea;this.onChange(_2ea);}},getValue:function(){return this._lastValue;},undo:function(){this.setValue(this._lastValueReported,false);},_onKeyPress:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){var v=this.getValue();var lv=this._lastValueReported;if((typeof lv!="undefined")&&((v!==null&&v.toString)?v.toString():null)!==lv.toString()){this.undo();dojo.stopEvent(e);return false;}}return true;},forWaiValuenow:function(){return this.getValue();}});}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:"<div class=\"dijit dijitLeft dijitInline dijitButton\"\n\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><div class='dijitRight'\n\t\t><button class=\"dijitStretch dijitButtonNode dijitButtonContents\" dojoAttachPoint=\"focusNode,titleNode\"\n\t\t\ttype=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><span class=\"dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\" \n \t\t\t\t><span class=\"dijitToggleButtonIconChar\">&#10003</span \n\t\t\t></span\n\t\t\t><span class=\"dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\">${label}</span\n\t\t></button\n\t></div\n></div>\n",_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){dojo.stopEvent(e);var _2f1=this._onClick(e)!==false;if(this.type=="submit"&&_2f1){for(var node=this.domNode;node;node=node.parentNode){var _2f3=dijit.byNode(node);if(_2f3&&_2f3._onSubmit){_2f3._onSubmit(e);break;}if(node.tagName.toLowerCase()=="form"){if(!node.onsubmit||node.onsubmit()){node.submit();}break;}}}},postCreate:function(){if(this.showLabel==false){var _2f4="";this.label=this.containerNode.innerHTML;_2f4=dojo.trim(this.containerNode.innerText||this.containerNode.textContent);this.titleNode.title=_2f4;dojo.addClass(this.containerNode,"dijitDisplayNone");}this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_2f7){this.containerNode.innerHTML=this.label=_2f7;if(dojo.isMozilla){var _2f8=dojo.getComputedStyle(this.domNode).display;this.domNode.style.display="none";var _2f9=this;setTimeout(function(){_2f9.domNode.style.display=_2f8;},1);}if(this.showLabel==false){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent);}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<div class=\"dijit dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><div class='dijitRight'>\n\t<button class=\"dijitStretch dijitButtonNode dijitButtonContents\" type=\"${type}\"\n\t\tdojoAttachPoint=\"focusNode,titleNode\" waiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t><div class=\"dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\"></div\n\t\t><span class=\"dijitButtonText\" \tdojoAttachPoint=\"containerNode,popupStateNode\"\n\t\tid=\"${id}_label\">${label}</span\n\t\t><span class='dijitA11yDownArrow'>&#9660;</span>\n\t</button>\n</div></div>\n",_fillContent:function(){if(this.srcNodeRef){var _2fa=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_2fa[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(!this.dropDown){var _2fb=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_2fb);delete this.dropDownContainer;}dojo.body().appendChild(this.dropDown.domNode);this.dropDown.domNode.style.display="none";},_onArrowClick:function(e){if(this.disabled){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _2fe=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_2fe||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){return;}if(e.keyCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.display=="none"){dojo.stopEvent(e);return this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();},_toggleDropDown:function(){if(this.disabled){return;}dijit.focus(this.popupStateNode);var _302=this.dropDown;if(!_302){return false;}if(!_302.isShowingNow){if(_302.href&&!_302.isLoaded){var self=this;var _304=dojo.connect(_302,"onLoad",function(){dojo.disconnect(_304);self._openDropDown();});_302._loadCheck(true);return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _305=this.dropDown;var _306=_305.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_305,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(){_305.domNode.style.width=_306;self.popupStateNode.removeAttribute("popupActive");this._opened=false;}});if(this.domNode.offsetWidth>_305.domNode.offsetWidth){var _308=null;if(!this.isLeftToRight()){_308=_305.domNode.parentNode;var _309=_308.offsetLeft+_308.offsetWidth;}dojo.marginBox(_305.domNode,{w:this.domNode.offsetWidth});if(_308){_308.style.left=_309-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_305.focus){_305.focus();}},_closeDropDown:function(_30a){if(this._opened){dijit.popup.close(this.dropDown);if(_30a){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'\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\">\n\t<tr>\n\t\t<td\tclass=\"dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\ttabIndex=\"${tabIndex}\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\">\n\t\t\t<div class=\"dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\"></div>\n\t\t\t<span class=\"dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\">${label}</span>\n\t\t</td>\n\t\t<td class='dijitReset dijitRight dijitButtonNode dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t><div waiRole=\"presentation\">&#9660;</div>\n\t</td></tr>\n</table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{id:"",name:""}),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);}else{this.connect(node,"onfocus",this._onNodeFocus);}}));},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;},_onBlur:function(evt){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,_clicked:function(evt){this.setChecked(!this.checked);},setChecked:function(_310){this.checked=_310;dijit.setWaiState(this.focusNode||this.domNode,"pressed",this.checked);this._setStateClass();this.onChange(_310);}});}if(!dojo._hasResource["dijit._editor._Plugin"]){dojo._hasResource["dijit._editor._Plugin"]=true;dojo.provide("dijit._editor._Plugin");dojo.declare("dijit._editor._Plugin",null,{constructor:function(args,node){if(args){dojo.mixin(this,args);}},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,queryCommand:null,command:"",commandArg:null,useDefaultCommand:true,buttonClass:dijit.form.Button,updateInterval:200,_initButton:function(){if(this.command.length){var _313=this.editor.commands[this.command];var _314="dijitEditorIcon "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){var _315={label:_313,showLabel:false,iconClass:_314,dropDown:this.dropDown};this.button=new this.buttonClass(_315);}}},updateState:function(){var _e=this.editor;var _c=this.command;if(!_e){return;}if(!_e.isLoaded){return;}if(!_c.length){return;}if(this.button){try{var _318=_e.queryCommandEnabled(_c);this.button.setDisabled(!_318);if(this.button.setChecked){this.button.setChecked(_e.queryCommandState(_c));}}catch(e){console.debug(e);}}},setEditor:function(_319){this.editor=_319;this._initButton();if((this.command.length)&&(!this.editor.queryCommandAvailable(this.command))){if(this.button){this.button.domNode.style.display="none";}}if(this.button&&this.useDefaultCommand){dojo.connect(this.button,"onClick",dojo.hitch(this.editor,"execCommand",this.command,this.commandArg));}dojo.connect(this.editor,"onNormalizedDisplayChanged",this,"updateState");},setToolbar:function(_31a){if(this.button){_31a.addChild(this.button);}}});}if(!dojo._hasResource["dijit._editor.plugins.TextColor"]){dojo._hasResource["dijit._editor.plugins.TextColor"]=true;dojo.provide("dijit._editor.plugins.TextColor");dojo.declare("dijit._editor.plugins.TextColor",dijit._editor._Plugin,{buttonClass:dijit.form.DropDownButton,constructor:function(){this.dropDown=new dijit.ColorPalette();dojo.connect(this.dropDown,"onChange",this,function(_31b){this.editor.execCommand(this.command,_31b);});}});}dojo.i18n._preloadLocalizations("dojo.nls.roxer",["es-es","es","hu","it-it","de","pt-br","pl","fr-fr","zh-cn","pt","en-us","zh","ru","xx","fr","zh-tw","it","cs","en-gb","de-de","ja-jp","ko-kr","ko","en","ROOT","ja"]);
