/*
	Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _1=dojo.doc;if(_1.selection){var s=_1.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _3=dojo.global;var _4=_3.getSelection();if(dojo.isString(_4)){return !_4;}else{return _4.isCollapsed||!_4.toString();}}},getBookmark:function(){var _5,_6=dojo.doc.selection;if(_6){var _7=_6.createRange();if(_6.type.toUpperCase()=="CONTROL"){if(_7.length){_5=[];var i=0,_9=_7.length;while(i<_9){_5.push(_7.item(i++));}}else{_5=null;}}else{_5=_7.getBookmark();}}else{if(window.getSelection){_6=dojo.global.getSelection();if(_6){_7=_6.getRangeAt(0);_5=_7.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _5;},moveToBookmark:function(_a){var _b=dojo.doc;if(_b.selection){var _c;if(dojo.isArray(_a)){_c=_b.body.createControlRange();dojo.forEach(_a,function(n){_c.addElement(n);});}else{_c=_b.selection.createRange();_c.moveToBookmark(_a);}_c.select();}else{var _e=dojo.global.getSelection&&dojo.global.getSelection();if(_e&&_e.removeAllRanges){_e.removeAllRanges();_e.addRange(_a);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_f,_10){return {node:_f&&dojo.isDescendant(dijit._curFocus,_f.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_10||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_10||dojo.global,dijit.getBookmark):null,openedForWindow:_10};},focus:function(_11){if(!_11){return;}var _12="node" in _11?_11.node:_11,_13=_11.bookmark,_14=_11.openedForWindow;if(_12){var _15=(_12.tagName.toLowerCase()=="iframe")?_12.contentWindow:_12;if(_15&&_15.focus){try{_15.focus();}catch(e){}}dijit._onFocusNode(_12);}if(_13&&dojo.withGlobal(_14||dojo.global,dijit.isCollapsed)){if(_14){_14.focus();}try{dojo.withGlobal(_14||dojo.global,dijit.moveToBookmark,null,[_13]);}catch(e){}}},_activeStack:[],registerWin:function(_16){if(!_16){_16=window;}dojo.connect(_16.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var doc=_16.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}doc=null;},_onBlurNode:function(_1d){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_1e){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _1f=[];try{while(_1e){if(_1e.dijitPopupParent){_1e=dijit.byId(_1e.dijitPopupParent).domNode;}else{if(_1e.tagName&&_1e.tagName.toLowerCase()=="body"){if(_1e===dojo.body()){break;}_1e=dijit.getDocumentWindow(_1e.ownerDocument).frameElement;}else{var id=_1e.getAttribute&&_1e.getAttribute("widgetId");if(id){_1f.unshift(id);}_1e=_1e.parentNode;}}}}catch(e){}dijit._setStack(_1f);},_onFocusNode:function(_21){if(!_21){return;}if(_21.nodeType==9){return;}if(_21.nodeType==9){var _22=dijit.getDocumentWindow(_21).frameElement;if(!_22){return;}_21=_22;}dijit._onTouchNode(_21);if(_21==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_21;dojo.publish("focusNode",[_21]);},_setStack:function(_23){var _24=dijit._activeStack;dijit._activeStack=_23;for(var _25=0;_25<Math.min(_24.length,_23.length);_25++){if(_24[_25]!=_23[_25]){break;}}for(var i=_24.length-1;i>=_25;i--){var _27=dijit.byId(_24[i]);if(_27){_27._focused=false;_27._hasBeenBlurred=true;if(_27._onBlur){_27._onBlur();}if(_27._setStateClass){_27._setStateClass();}dojo.publish("widgetBlur",[_27]);}}for(i=_25;i<_23.length;i++){_27=dijit.byId(_23[i]);if(_27){_27._focused=true;if(_27._onFocus){_27._onFocus();}if(_27._setStateClass){_27._setStateClass();}dojo.publish("widgetFocus",[_27]);}}}});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(_28){if(this._hash[_28.id]){throw new Error("Tried to register widget with id=="+_28.id+" but that id is already registered");}this._hash[_28.id]=_28;},remove:function(id){delete this._hash[id];},forEach:function(_2a){for(var id in this._hash){_2a(this._hash[id]);}},filter:function(_2c){var res=new dijit.WidgetSet();this.forEach(function(_2e){if(_2c(_2e)){res.add(_2e);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_31){return _31.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_32){var id;do{id=_32+"_"+(_32 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_32]:dijit._widgetTypeCtr[_32]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_34){_34.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_36){return dijit.registry.byId(_36.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_37){while(_37){if(_37.getAttribute&&_37.getAttribute("widgetId")){return dijit.registry.byId(_37.getAttribute("widgetId"));}_37=_37.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_38){var _39=dojo.style(_38);return (_39.visibility!="hidden")&&(_39.visibility!="collapsed")&&(_39.display!="none")&&(dojo.attr(_38,"type")!="hidden");};dijit.isTabNavigable=function(_3a){if(dojo.hasAttr(_3a,"disabled")){return false;}var _3b=dojo.hasAttr(_3a,"tabindex");var _3c=dojo.attr(_3a,"tabindex");if(_3b&&_3c>=0){return true;}var _3d=_3a.nodeName.toLowerCase();if(((_3d=="a"&&dojo.hasAttr(_3a,"href"))||dijit._tabElements[_3d])&&(!_3b||_3c>=0)){return true;}return false;};dijit._getTabNavigable=function(_3e){var _3f,_40,_41,_42,_43,_44;var _45=function(_46){dojo.query("> *",_46).forEach(function(_47){var _48=dijit._isElementShown(_47);if(_48&&dijit.isTabNavigable(_47)){var _49=dojo.attr(_47,"tabindex");if(!dojo.hasAttr(_47,"tabindex")||_49==0){if(!_3f){_3f=_47;}_40=_47;}else{if(_49>0){if(!_41||_49<_42){_42=_49;_41=_47;}if(!_43||_49>=_44){_44=_49;_43=_47;}}}}if(_48&&_47.nodeName.toUpperCase()!="SELECT"){_45(_47);}});};if(dijit._isElementShown(_3e)){_45(_3e);}return {first:_3f,last:_40,lowest:_41,highest:_43};};dijit.getFirstInTabbingOrder=function(_4a){var _4b=dijit._getTabNavigable(dojo.byId(_4a));return _4b.lowest?_4b.lowest:_4b.first;};dijit.getLastInTabbingOrder=function(_4c){var _4d=dijit._getTabNavigable(dojo.byId(_4c));return _4d.last?_4d.last:_4d.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_4e){this.pairs=[];this.returnWrappers=_4e||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_4f,_50,_51,_52,_53){this.pairs[((_53)?"unshift":"push")]([_4f,_50,_51,_52]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _55=this.pairs[i];if(_55[1].apply(this,arguments)){if((_55[3])||(this.returnWrappers)){return _55[2];}else{return _55[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_56){for(var i=0;i<this.pairs.length;i++){var _58=this.pairs[i];if(_58[0]==_56){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _59=dojo.global;var _5a=dojo.doc;var w=0,h=0;var de=_5a.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _60,_61,_62,_63;var dbw=_5a.body.clientWidth;if(dbw>dew){_60=dew;_62=dbw;}else{_62=dew;_60=dbw;}var dbh=_5a.body.clientHeight;if(dbh>deh){_61=deh;_63=dbh;}else{_63=deh;_61=dbh;}w=(_62>_59.innerWidth)?_60:_62;h=(_63>_59.innerHeight)?_61:_63;}else{if(!dojo.isOpera&&_59.innerWidth){w=_59.innerWidth;h=_59.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _66=dojo._docScroll();return {w:w,h:h,l:_66.x,t:_66.y};};dijit.placeOnScreen=function(_67,pos,_69,_6a){var _6b=dojo.map(_69,function(_6c){return {corner:_6c,pos:pos};});return dijit._place(_67,_6b);};dijit._place=function(_6d,_6e,_6f){var _70=dijit.getViewport();if(!_6d.parentNode||String(_6d.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_6d);}var _71=null;dojo.some(_6e,function(_72){var _73=_72.corner;var pos=_72.pos;if(_6f){_6f(_6d,_72.aroundCorner,_73);}var _75=_6d.style;var _76=_75.display;var _77=_75.visibility;_75.visibility="hidden";_75.display="";var mb=dojo.marginBox(_6d);_75.display=_76;_75.visibility=_77;var _79=(_73.charAt(1)=="L"?pos.x:Math.max(_70.l,pos.x-mb.w)),_7a=(_73.charAt(0)=="T"?pos.y:Math.max(_70.t,pos.y-mb.h)),_7b=(_73.charAt(1)=="L"?Math.min(_70.l+_70.w,_79+mb.w):pos.x),_7c=(_73.charAt(0)=="T"?Math.min(_70.t+_70.h,_7a+mb.h):pos.y),_7d=_7b-_79,_7e=_7c-_7a,_7f=(mb.w-_7d)+(mb.h-_7e);if(_71==null||_7f<_71.overflow){_71={corner:_73,aroundCorner:_72.aroundCorner,x:_79,y:_7a,w:_7d,h:_7e,overflow:_7f};}return !_7f;});_6d.style.left=_71.x+"px";_6d.style.top=_71.y+"px";if(_71.overflow&&_6f){_6f(_6d,_71.aroundCorner,_71.corner);}return _71;};dijit.placeOnScreenAroundNode=function(_80,_81,_82,_83){_81=dojo.byId(_81);var _84=_81.style.display;_81.style.display="";var _85=_81.offsetWidth;var _86=_81.offsetHeight;var _87=dojo.coords(_81,true);_81.style.display=_84;return dijit._placeOnScreenAroundRect(_80,_87.x,_87.y,_85,_86,_82,_83);};dijit.placeOnScreenAroundRectangle=function(_88,_89,_8a,_8b){return dijit._placeOnScreenAroundRect(_88,_89.x,_89.y,_89.width,_89.height,_8a,_8b);};dijit._placeOnScreenAroundRect=function(_8c,x,y,_8f,_90,_91,_92){var _93=[];for(var _94 in _91){_93.push({aroundCorner:_94,corner:_91[_94],pos:{x:x+(_94.charAt(1)=="L"?0:_8f),y:y+(_94.charAt(0)=="T"?0:_90)}});}return dijit._place(_8c,_93,_92);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(_99,_9a,_9b,_9c){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _9f=[],_a0=1000,_a1=1;this.prepare=function(_a2){dojo.body().appendChild(_a2);var s=_a2.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_a4){var _a5=_a4.popup,_a6=_a4.orient||{"BL":"TL","TL":"BL"},_a7=_a4.around,id=(_a4.around&&_a4.around.id)?(_a4.around.id+"_dropdown"):("popup_"+_a1++);var _a9=dojo.doc.createElement("div");dijit.setWaiRole(_a9,"presentation");_a9.id=id;_a9.className="dijitPopup";_a9.style.zIndex=_a0+_9f.length;_a9.style.left=_a9.style.top="0px";_a9.style.visibility="hidden";if(_a4.parent){_a9.dijitPopupParent=_a4.parent.id;}dojo.body().appendChild(_a9);var s=_a5.domNode.style;s.display="";s.visibility="";s.position="";_a9.appendChild(_a5.domNode);var _ab=new dijit.BackgroundIframe(_a9);var _ac=_a7?dijit.placeOnScreenAroundElement(_a9,_a7,_a6,_a5.orient?dojo.hitch(_a5,"orient"):null):dijit.placeOnScreen(_a9,_a4,_a6=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_a9.style.visibility="visible";var _ad=[];var _ae=function(){for(var pi=_9f.length-1;pi>0&&_9f[pi].parent===_9f[pi-1].widget;pi--){}return _9f[pi];};_ad.push(dojo.connect(_a9,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_a4.onCancel){dojo.stopEvent(evt);_a4.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _b1=_ae();if(_b1&&_b1.onCancel){_b1.onCancel();}}}}));if(_a5.onCancel){_ad.push(dojo.connect(_a5,"onCancel",null,_a4.onCancel));}_ad.push(dojo.connect(_a5,_a5.onExecute?"onExecute":"onChange",null,function(){var _b2=_ae();if(_b2&&_b2.onExecute){_b2.onExecute();}}));_9f.push({wrapper:_a9,iframe:_ab,widget:_a5,parent:_a4.parent,onExecute:_a4.onExecute,onCancel:_a4.onCancel,onClose:_a4.onClose,handlers:_ad});if(_a5.onOpen){_a5.onOpen(_ac);}return _ac;};this.close=function(_b3){while(dojo.some(_9f,function(_b4){return _b4.widget==_b3;})){var top=_9f.pop(),_b6=top.wrapper,_b7=top.iframe,_b8=top.widget,_b9=top.onClose;if(_b8.onClose){_b8.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_b8||!_b8.domNode){return;}this.prepare(_b8.domNode);_b7.destroy();dojo._destroyElement(_b6);if(_b9){_b9();}}};}();dijit._frames=new function(){var _ba=[];this.pop=function(){var _bb;if(_ba.length){_bb=_ba.pop();_bb.style.display="";}else{if(dojo.isIE){var _bc=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _bd="<iframe src='"+_bc+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_bb=dojo.doc.createElement(_bd);}else{_bb=dojo.doc.createElement("iframe");_bb.src="javascript:\"\"";_bb.className="dijitBackgroundIframe";}_bb.tabIndex=-1;dojo.body().appendChild(_bb);}return _bb;};this.push=function(_be){_be.style.display="";if(dojo.isIE){_be.style.removeExpression("width");_be.style.removeExpression("height");}_ba.push(_be);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_c0){if(!_c0.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _c1=dijit._frames.pop();_c0.appendChild(_c1);if(dojo.isIE){_c1.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_c0.id+"').offsetWidth");_c1.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_c0.id+"').offsetHeight");}this.iframe=_c1;}};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(_c2){_c2=dojo.byId(_c2);var _c3=_c2.ownerDocument.body;var _c4=_c3.parentNode;if(dojo.isFF==2||_c2==_c3||_c2==_c4){_c2.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _c6=dojo.doc.compatMode!="BackCompat";var _c7=(_c6&&!dojo.isSafari)?_c4:_c3;function addPseudoAttrs(_c8){var _c9=_c8.parentNode;var _ca=_c8.offsetParent;if(_ca==null){_c8=_c7;_ca=_c4;_c9=null;}_c8._offsetParent=(_ca==_c3)?_c7:_ca;_c8._parent=(_c9==_c3)?_c7:_c9;_c8._start={H:_c8.offsetLeft,V:_c8.offsetTop};_c8._scroll={H:_c8.scrollLeft,V:_c8.scrollTop};_c8._renderedSize={H:_c8.offsetWidth,V:_c8.offsetHeight};var bp=dojo._getBorderExtents(_c8);_c8._borderStart={H:bp.l,V:bp.t};_c8._borderSize={H:bp.w,V:bp.h};_c8._clientSize=(_c8._offsetParent==_c4&&dojo.isSafari&&_c6)?{H:_c4.clientWidth,V:_c4.clientHeight}:{H:_c8.clientWidth,V:_c8.clientHeight};_c8._scrollBarSize={V:null,H:null};for(var dir in _c8._scrollBarSize){var _cd=_c8._renderedSize[dir]-_c8._clientSize[dir]-_c8._borderSize[dir];_c8._scrollBarSize[dir]=(_c8._clientSize[dir]>0&&_cd>=15&&_cd<=17)?_cd:0;}_c8._isScrollable={V:null,H:null};for(dir in _c8._isScrollable){var _ce=dir=="H"?"V":"H";_c8._isScrollable[dir]=_c8==_c7||_c8._scroll[dir]||_c8._scrollBarSize[_ce];}};var _cf=_c2;while(_cf!=null){addPseudoAttrs(_cf);var _d0=_cf._parent;if(_d0){_d0._child=_cf;}_cf=_d0;}for(var dir in _c7._renderedSize){_c7._renderedSize[dir]=Math.min(_c7._clientSize[dir],_c7._renderedSize[dir]);}var _d2=_c2;while(_d2!=_c7){_cf=_d2._parent;if(_cf.tagName=="TD"){var _d3=_cf._parent._parent._parent;if(_d3._offsetParent==_d2._offsetParent&&_cf._offsetParent!=_d2._offsetParent){_cf=_d3;}}var _d4=_d2==_c7||(_cf._offsetParent!=_d2._offsetParent);for(dir in _d2._start){var _d5=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_cf._clientSize.H>0){var _d6=_cf.scrollWidth-_cf._clientSize.H;if(_d6>0){_cf._scroll.H-=_d6;}}if(dojo.isIE&&_cf._offsetParent.tagName=="TABLE"){_cf._start[dir]-=_cf._offsetParent._borderStart[dir];_cf._borderStart[dir]=_cf._borderSize[dir]=0;}if(_cf._clientSize[dir]==0){_cf._renderedSize[dir]=_cf._clientSize[dir]=_cf._child._clientSize[dir];if(rtl&&dir=="H"){_cf._start[dir]-=_cf._renderedSize[dir];}}else{_cf._renderedSize[dir]-=_cf._borderSize[dir]+_cf._scrollBarSize[dir];}_cf._start[dir]+=_cf._borderStart[dir];var _d7=_d2._start[dir]-(_d4?0:_cf._start[dir])-_cf._scroll[dir];var _d8=_d7+_d2._renderedSize[dir]-_cf._renderedSize[dir];var _d9,_da=(dir=="H")?"scrollLeft":"scrollTop";var _db=(dir=="H"&&rtl);var _dc=_db?-_d8:_d7;var _dd=_db?-_d7:_d8;if(_dc<=0){_d9=_dc;}else{if(_dd<=0){_d9=0;}else{if(_dc<_dd){_d9=_dc;}else{_d9=_dd;}}}var _de=0;if(_d9!=0){var _df=_cf[_da];_cf[_da]+=_db?-_d9:_d9;_de=_cf[_da]-_df;_d7-=_de;_dd-=_db?-_de:_de;}_cf._renderedSize[dir]=_d2._renderedSize[dir]+_cf._scrollBarSize[dir]-((_cf._isScrollable[dir]&&_dd>0)?_dd:0);_cf._start[dir]+=(_d7>=0||!_cf._isScrollable[dir])?_d7:0;}_d2=_cf;}};}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 _e2=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _e5=d.boxModel.replace(/-/,"");var _e6={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_e2,dj_opera8:maj(_e2)==8,dj_opera9:maj(_e2)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_e6["dj_"+_e5]=true;var _e7=dojo.doc.documentElement;for(var p in _e6){if(_e6[p]){if(_e7.className){_e7.className+=" "+p;}else{_e7.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_e7.className+=" dijitRtl";for(var p in _e6){if(_e6[p]){_e7.className+=" "+p+"-rtl";}}}});})();}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_eb,_ec,_ed,obj,_ef,_f0){if(obj!=this._obj){this.stop();this._initialDelay=_f0||500;this._subsequentDelay=_ef||0.9;this._obj=obj;this._evt=evt;this._node=_ec;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_eb,_ed);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(_f1,_f2,_f3,_f4,_f5,_f6){if(_f2.keyCode){_f2.charOrCode=_f2.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_f2.charCode){_f2.charOrCode=String.fromCharCode(_f2.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_f1,"onkeypress",this,function(evt){if(evt.charOrCode==_f2.charOrCode&&(_f2.ctrlKey===undefined||_f2.ctrlKey==evt.ctrlKey)&&(_f2.altKey===undefined||_f2.altKey==evt.ctrlKey)&&(_f2.shiftKey===undefined||_f2.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_f2,_f3,_f1,_f4,_f2,_f5,_f6);}else{if(dijit.typematic._obj==_f2){dijit.typematic.stop();}}}),dojo.connect(_f1,"onkeyup",this,function(evt){if(dijit.typematic._obj==_f2){dijit.typematic.stop();}})];},addMouseListener:function(_f9,_fa,_fb,_fc,_fd){var dc=dojo.connect;return [dc(_f9,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_fa,_f9,_fb,_f9,_fc,_fd);}),dc(_f9,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_f9,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_f9,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_f9,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_fa,_f9,_fb,_f9,_fc,_fd);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_104,_105,_106,_107,_108,_109,_10a){return this.addKeyListener(_105,_106,_107,_108,_109,_10a).concat(this.addMouseListener(_104,_107,_108,_109,_10a));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _10d=cs.backgroundImage;var _10e=(cs.borderTopColor==cs.borderRightColor)||(_10d!=null&&(_10d=="none"||_10d=="url(invalid-url:)"));dojo[_10e?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _111=this.getWaiRole(elem);if(role){return (_111.indexOf(role)>-1);}else{return (_111.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _115=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_115)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_115+" ").indexOf(" "+role+" ")<0){var _116=dojo.trim(_115.replace(this._XhtmlRoles,""));var _117=dojo.trim(_115.replace(_116,""));dojo.attr(elem,"role",_117+(_117?" ":"")+role);}}},removeWaiRole:function(elem,role){var _11a=dojo.attr(elem,"role");if(!_11a){return;}if(role){var _11b=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_11a+" ").replace(" "+_11b+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_11e){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_11e);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_11e):!!elem.getAttribute("aria-"+_11e);}},getWaiState:function(elem,_120){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_120);}else{var _121=elem.getAttribute("aria-"+_120);return _121?_121:"";}},setWaiState:function(elem,_123,_124){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_123,_124);}else{elem.setAttribute("aria-"+_123,_124);}},removeWaiState:function(elem,_126){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_126);}else{elem.removeAttribute("aria-"+_126);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"connect",function(_127,_128){if(_127&&dojo.isFunction(_127._onConnect)){_127._onConnect(_128);}});dijit._connectOnUseEventHandler=function(_129){};(function(){var _12a={};var _12b=function(dc){if(!_12a[dc]){var r=[];var _12e;var _12f=dojo.getObject(dc).prototype;for(var _130 in _12f){if(dojo.isFunction(_12f[_130])&&(_12e=_130.match(/^_set([a-zA-Z]*)Attr$/))&&_12e[1]){r.push(_12e[1].charAt(0).toLowerCase()+_12e[1].substr(1));}}_12a[dc]=r;}return _12a[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_131,_132){this.create(_131,_132);},create:function(_133,_134){this.srcNodeRef=dojo.byId(_134);this._connects=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_133){this.params=_133;dojo.mixin(this,_133);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _136=function(attr,_138){if((_138.params&&attr in _138.params)||_138[attr]){_138.attr(attr,_138[attr]);}};for(var attr in this.attributeMap){_136(attr,this);}dojo.forEach(_12b(this.declaredClass),function(a){if(!(a in this.attributeMap)){_136(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_13b){this.destroyDescendants(_13b);this.destroy(_13b);},destroy:function(_13c){this.uninitialize();dojo.forEach(this._connects,function(_13d){dojo.forEach(_13d,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_13c);dijit.registry.remove(this.id);},destroyRendering:function(_13f){if(this.bgIframe){this.bgIframe.destroy(_13f);delete this.bgIframe;}if(this.domNode){if(!_13f){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_13f){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_140){dojo.forEach(this.getDescendants(),function(_141){if(_141.destroy){_141.destroy(_140);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_143){if(_143 in this._deferredConnects){var _144=this[this._deferredConnects[_143]||"domNode"];this.connect(_144,_143.toLowerCase(),this[_143]);delete this._deferredConnects[_143];}},_setClassAttr:function(_145){var _146=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_146,this["class"]);this["class"]=_145;dojo.addClass(_146,_145);},_setStyleAttr:function(_147){var _148=this[this.attributeMap["style"]||"domNode"];if(_148.style.cssText){_148.style.cssText+="; "+_147;}else{_148.style.cssText=_147;}this["style"]=_147;},setAttribute:function(attr,_14a){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_14a);},_attrToDom:function(attr,_14c){var _14d=this.attributeMap[attr];dojo.forEach(dojo.isArray(_14d)?_14d:[_14d],function(_14e){var _14f=this[_14e.node||_14e||"domNode"];var type=_14e.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_14c)){_14c=dojo.hitch(this,_14c);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_14f,attr,_14c);break;case "innerHTML":_14f.innerHTML=_14c;break;case "class":dojo.removeClass(_14f,this[attr]);dojo.addClass(_14f,_14c);break;}},this);this[attr]=_14c;},attr:function(name,_152){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _155=this._getAttrNames(name);if(args==2){if(this[_155.s]){return this[_155.s](_152)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_152);}this[name]=_152;}return this;}else{if(this[_155.g]){return this[_155.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_15b,_15c){var d=dojo;var dco=d.hitch(d,"connect",obj);var _15f=[];if(_15b=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_15c);_15f.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE){return m(e);}}));if(d.isFF){_15f.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_15b="onclick";}_15f.push(dco(_15b,this,_15c));this._connects.push(_15f);return _15f;},disconnect:function(_164){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_164){dojo.forEach(_164,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_166,_167){if(_166["declaredClass"]&&_166["addChild"]){_166.addChild(this,_167);}else{dojo.place(this.domNode,_166,_167);}return this;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_171,map,_173,_174){_174=_174||dojo.global;_173=(!_173)?function(v){return v;}:dojo.hitch(_174,_173);return _171.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_176,key,_178){var _179=dojo.getObject(key,false,map);if(_178){_179=dojo.getObject(_178,false,_174).call(_174,_179,key);}return _173(_179,key).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(_17c,_17d){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 _17e=dojo.date.stamp._isoRegExp.exec(_17c);var _17f=null;if(_17e){_17e.shift();if(_17e[1]){_17e[1]--;}if(_17e[6]){_17e[6]*=1000;}if(_17d){_17d=new Date(_17d);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _17d["get"+prop]();}).forEach(function(_181,_182){if(_17e[_182]===undefined){_17e[_182]=_181;}});}_17f=new Date(_17e[0]||1970,_17e[1]||0,_17e[2]||1,_17e[3]||0,_17e[4]||0,_17e[5]||0,_17e[6]||0);var _183=0;var _184=_17e[7]&&_17e[7].charAt(0);if(_184!="Z"){_183=((_17e[8]||0)*60)+(Number(_17e[9])||0);if(_184!="-"){_183*=-1;}}if(_184){_183-=_17f.getTimezoneOffset();}if(_183){_17f.setTime(_17f.getTime()+_183*60000);}}return _17f;};dojo.date.stamp.toISOString=function(_185,_186){var _=function(n){return (n<10)?"0"+n:n;};_186=_186||{};var _189=[];var _18a=_186.zulu?"getUTC":"get";var date="";if(_186.selector!="time"){var year=_185[_18a+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_185[_18a+"Month"]()+1),_(_185[_18a+"Date"]())].join("-");}_189.push(date);if(_186.selector!="date"){var time=[_(_185[_18a+"Hours"]()),_(_185[_18a+"Minutes"]()),_(_185[_18a+"Seconds"]())].join(":");var _18e=_185[_18a+"Milliseconds"]();if(_186.milliseconds){time+="."+(_18e<100?"0":"")+_(_18e);}if(_186.zulu){time+="Z";}else{if(_186.selector!="time"){var _18f=_185.getTimezoneOffset();var _190=Math.abs(_18f);time+=(_18f>0?"-":"+")+_(Math.floor(_190/60))+":"+_(_190%60);}}_189.push(time);}return _189.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _192=d._scopeName+"Type";var qry="["+_192+"]";function val2type(_194){if(d.isString(_194)){return "string";}if(typeof _194=="number"){return "number";}if(typeof _194=="boolean"){return "boolean";}if(d.isFunction(_194)){return "function";}if(d.isArray(_194)){return "array";}if(_194 instanceof Date){return "date";}if(_194 instanceof d._Url){return "url";}return "object";};function str2obj(_195,type){switch(type){case "string":return _195;case "number":return _195.length?Number(_195):NaN;case "boolean":return typeof _195=="boolean"?_195:!(_195.toLowerCase()=="false");case "function":if(d.isFunction(_195)){_195=_195.toString();_195=d.trim(_195.substring(_195.indexOf("{")+1,_195.length-1));}try{if(_195.search(/[^\w\.]+/i)!=-1){_195=d.parser._nameAnonFunc(new Function(_195),this);}return d.getObject(_195,false);}catch(e){return new Function();}case "array":return _195?_195.split(/\s*,\s*/):[];case "date":switch(_195){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_195);}case "url":return d.baseUrl+_195;default:return d.fromJson(_195);}};var _197={};function getClassInfo(_198){if(!_197[_198]){var cls=d.getObject(_198);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_198+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _19a=cls.prototype;var _19b={};for(var name in _19a){if(name.charAt(0)=="_"){continue;}var _19d=_19a[name];_19b[name]=val2type(_19d);}_197[_198]={cls:cls,params:_19b};}return _197[_198];};this._functionFromScript=function(_19e){var _19f="";var _1a0="";var _1a1=_19e.getAttribute("args");if(_1a1){d.forEach(_1a1.split(/\s*,\s*/),function(part,idx){_19f+="var "+part+" = arguments["+idx+"]; ";});}var _1a4=_19e.getAttribute("with");if(_1a4&&_1a4.length){d.forEach(_1a4.split(/\s*,\s*/),function(part){_19f+="with("+part+"){";_1a0+="}";});}return new Function(_19f+_19e.innerHTML+_1a0);};this.instantiate=function(_1a6){var _1a7=[];d.forEach(_1a6,function(node){if(!node){return;}var type=node.getAttribute(_192);if((!type)||(!type.length)){return;}var _1aa=getClassInfo(type);var _1ab=_1aa.cls;var ps=_1ab._noScript||_1ab.prototype._noScript;var _1ad={};var _1ae=node.attributes;for(var name in _1aa.params){var item=_1ae.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _1b1=item.value;switch(name){case "class":_1b1=node.className;break;case "style":_1b1=node.style&&node.style.cssText;}var _1b2=_1aa.params[name];_1ad[name]=str2obj(_1b1,_1b2);}if(!ps){var _1b3=[],_1b4=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_1b5){var _1b6=_1b5.getAttribute("event"),type=_1b5.getAttribute("type"),nf=d.parser._functionFromScript(_1b5);if(_1b6){if(type=="dojo/connect"){_1b3.push({event:_1b6,func:nf});}else{_1ad[_1b6]=nf;}}else{_1b4.push(nf);}});}var _1b8=_1ab["markupFactory"];if(!_1b8&&_1ab["prototype"]){_1b8=_1ab.prototype["markupFactory"];}var _1b9=_1b8?_1b8(_1ad,node,_1ab):new _1ab(_1ad,node);_1a7.push(_1b9);var _1ba=node.getAttribute("jsId");if(_1ba){d.setObject(_1ba,_1b9);}if(!ps){d.forEach(_1b3,function(_1bb){d.connect(_1b9,_1bb.event,null,_1bb.func);});d.forEach(_1b4,function(func){func.call(_1b9);});}});d.forEach(_1a7,function(_1bd){if(_1bd&&_1bd.startup&&!_1bd._started&&(!_1bd.getParent||!_1bd.getParent())){_1bd.startup();}});return _1a7;};this.parse=function(_1be){var list=d.query(qry,_1be);var _1c0=this.instantiate(list);return _1c0;};}();(function(){var _1c1=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_1c1);}else{dojo._loaders.unshift(_1c1);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_1c2,_1c3){var jpn="$joinpoint";var nso=(_1c3||dojo.parser._anon);if(dojo.isIE){var cn=_1c2["__dojoNameCache"];if(cn&&nso[cn]===_1c2){return _1c2["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_1c2;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,_skipNodeCache:false,_stringRepl:function(tmpl){var _1c9=this.declaredClass,_1ca=this;return dojo.string.substitute(tmpl,this,function(_1cb,key){if(key.charAt(0)=="!"){_1cb=_1ca[key.substr(1)];}if(typeof _1cb=="undefined"){throw new Error(_1c9+" template:"+key);}if(_1cb==null){return "";}return key.charAt(0)=="!"?_1cb:_1cb.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _1cd=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_1cd)){node=dijit._Templated._createNodesFromText(this._stringRepl(_1cd))[0];}else{node=_1cd.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _1cf=this.srcNodeRef;if(_1cf&&_1cf.parentNode){_1cf.parentNode.replaceChild(node,_1cf);}if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_1cf);},_fillContent:function(_1d3){var dest=this.containerNode;if(_1d3&&dest){while(_1d3.hasChildNodes()){dest.appendChild(_1d3.firstChild);}}},_attachTemplateNodes:function(_1d5,_1d6){_1d6=_1d6||function(n,p){return n.getAttribute(p);};var _1d9=dojo.isArray(_1d5)?_1d5:(_1d5.all||_1d5.getElementsByTagName("*"));var x=dojo.isArray(_1d5)?0:-1;var _1db={};for(;x<_1d9.length;x++){var _1dc=(x==-1)?_1d5:_1d9[x];if(this.widgetsInTemplate&&_1d6(_1dc,"dojoType")){continue;}var _1dd=_1d6(_1dc,"dojoAttachPoint");if(_1dd){var _1de,_1df=_1dd.split(/\s*,\s*/);while((_1de=_1df.shift())){if(dojo.isArray(this[_1de])){this[_1de].push(_1dc);}else{this[_1de]=_1dc;}}}var _1e0=_1d6(_1dc,"dojoAttachEvent");if(_1e0){var _1e1,_1e2=_1e0.split(/\s*,\s*/);var trim=dojo.trim;while((_1e1=_1e2.shift())){if(_1e1){var _1e4=null;if(_1e1.indexOf(":")!=-1){var _1e5=_1e1.split(":");_1e1=trim(_1e5[0]);_1e4=trim(_1e5[1]);}else{_1e1=trim(_1e1);}if(!_1e4){_1e4=_1e1;}this.connect(_1dc,_1e1,_1e4);}}}var role=_1d6(_1dc,"waiRole");if(role){dijit.setWaiRole(_1dc,role);}var _1e7=_1d6(_1dc,"waiState");if(_1e7){dojo.forEach(_1e7.split(/\s*,\s*/),function(_1e8){if(_1e8.indexOf("-")!=-1){var pair=_1e8.split("-");dijit.setWaiState(_1dc,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1ea,_1eb,_1ec){var _1ed=dijit._Templated._templateCache;var key=_1eb||_1ea;var _1ef=_1ed[key];if(_1ef){if(!_1ef.ownerDocument||_1ef.ownerDocument==dojo.doc){return _1ef;}dojo._destroyElement(_1ef);}if(!_1eb){_1eb=dijit._Templated._sanitizeTemplateString(dojo._getText(_1ea));}_1eb=dojo.string.trim(_1eb);if(_1ec||_1eb.match(/\$\{([^\}]+)\}/g)){return (_1ed[key]=_1eb);}else{return (_1ed[key]=dijit._Templated._createNodesFromText(_1eb)[0]);}};dijit._Templated._sanitizeTemplateString=function(_1f0){if(_1f0){_1f0=_1f0.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1f1=_1f0.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1f1){_1f0=_1f1[1];}}else{_1f0="";}return _1f0;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1f2=dijit._Templated._templateCache;for(var key in _1f2){var _1f4=_1f2[key];if(!isNaN(_1f4.nodeType)){dojo._destroyElement(_1f4);}delete _1f2[key];}});}(function(){var _1f5={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.ownerDocument!=dojo.doc){dojo._destroyElement(tn);tn=undefined;}if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _1f8="none";var _1f9=text.replace(/^\s+/,"");for(var type in _1f5){var map=_1f5[type];if(map.re.test(_1f9)){_1f8=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_1f8];var _1fd=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _1fe=[];while(_1fd.firstChild){_1fe.push(_1fd.removeChild(_1fd.firstChild));}tn.innerHTML="";return _1fe;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_1ff){if(_1ff.reset){_1ff.reset();}});},validate:function(){var _200=false;return dojo.every(dojo.map(this.getDescendants(),function(_201){_201._hasBeenBlurred=true;var _202=_201.disabled||!_201.validate||_201.validate();if(!_202&&!_200){dijit.scrollIntoView(_201.containerNode||_201.domNode);_201.focus();_200=true;}return _202;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_207){if(!_207.name){return;}var _208=map[_207.name]||(map[_207.name]=[]);_208.push(_207);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _20a=map[name],_20b=dojo.getObject(name,false,obj);if(_20b===undefined){continue;}if(!dojo.isArray(_20b)){_20b=[_20b];}if(typeof _20a[0].checked=="boolean"){dojo.forEach(_20a,function(w,i){w.attr("value",dojo.indexOf(_20b,w.value)!=-1);});}else{if(_20a[0]._multiValue){_20a[0].attr("value",_20b);}else{dojo.forEach(_20a,function(w,i){w.attr("value",_20b[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_211){var name=_211.name;if(!name||_211.disabled){return;}var _213=_211.attr("value");if(typeof _211.checked=="boolean"){if(/Radio/.test(_211.declaredClass)){if(_213!==false){dojo.setObject(name,_213,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_213!==false){ary.push(_213);}}}else{dojo.setObject(name,_213,obj);}});return obj;},isValid:function(){this._invalidWidgets=[];return dojo.every(this.getDescendants(),function(_215){var _216=_215.disabled||!_215.isValid||_215.isValid();if(!_216){this._invalidWidgets.push(_215);}return _216;},this);},onValidStateChange:function(_217){},_widgetChange:function(_218){var _219=this._lastValidState;if(!_218||this._lastValidState===undefined){_219=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_219;}}else{if(_218.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_218);},this);if(!_218.isValid()&&!_218.attr("disabled")){this._invalidWidgets.push(_218);}_219=(this._invalidWidgets.length===0);}}if(_219!==this._lastValidState){this._lastValidState=_219;this.onValidStateChange(_219);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _21b=this;var _21c=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_21e){_21c.push(_21b.connect(_21e,"validate",dojo.hitch(_21b,"_widgetChange",_21e)));_21c.push(_21b.connect(_21e,"_setDisabledAttr",dojo.hitch(_21b,"_widgetChange",_21e)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_21f){},onExecute:function(){},_setEncTypeAttr:function(_220){this.encType=_220;dojo.attr(this.domNode,"encType",_220);if(dojo.isIE){this.domNode.encoding=_220;}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.attr("encType",item.value);}}this.inherited(arguments);},onReset:function(e){return true;},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset();}dojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){dojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!dojo._hasResource["myEngine.Multipage"]){dojo._hasResource["myEngine.Multipage"]=true;dojo.provide("myEngine.Multipage");dojo.declare("myEngine.Multipage",null,{id:"",linksClass:"multipage-item-link",linksPrefix:"multipage-item-link-",textsClass:"multipage-item-text",textsPrefix:"multipage-item-text-",property:"fontWeight",activeValue:"bold",pasiveValue:"normal",constructor:function(){this.args=arguments[0];dojo.connect(dojo.byId(this.args.id),"onclick",this,function(e){e.preventDefault();dojo.query("."+(this.args.linksClass||this.linksClass)).style((this.args.property||this.property),(this.args.pasiveValue||this.pasiveValue));dojo.style(dojo.byId(this.args.id),(this.args.property||this.property),(this.args.activeValue||this.activeValue));dojo.query("."+(this.args.textsClass||this.textsClass)).style("display","none");dojo.style(dojo.byId(this.args.id.replace((this.args.linksPrefix||this.linksPrefix),(this.args.textsPrefix||this.textsPrefix))),"display","");});}});}if(!dojo._hasResource["myEngine.OrderForm"]){dojo._hasResource["myEngine.OrderForm"]=true;dojo.provide("myEngine.OrderForm");dojo.declare("myEngine.OrderForm",null,{formId:"",id:"",constructor:function(){this.args=arguments[0];dojo.connect(dojo.byId(this.args.id),"onclick",this,function(e){e.preventDefault();dojo.xhrPost({form:this.args.formId,handleAs:"json",scope:this,handle:function(data,_22b){alert(data.message);if(data.success){dojo.byId(_22b.args.scope.args.formId).reset();}}});});}});}if(!dojo._hasResource["myEngine.ProjectPreview"]){dojo._hasResource["myEngine.ProjectPreview"]=true;dojo.provide("myEngine.ProjectPreview");dojo.declare("myEngine.ProjectPreview",null,{url:"",prefix:"",hrefTpl:"",publicDir:"",offset:1,total:0,connected:false,constructor:function(){this.args=arguments[0];this.offset=this.args.offset;this.load(this.offset);},load:function(_22c){dojo.xhrPost({url:this.args.url,handleAs:"json",content:{"offset":_22c},scope:this,handle:function(json,_22e){_22e.args.scope.total=json.total;if(json.total>0){for(index in json.data){var href=_22e.args.scope.args.hrefTpl.replace("{alias}",json.data[index].alias);if(index=="1"){var src=(_22e.args.scope.args.publicDir+json.data[index].image_180).replace("//","/");var html="<a class=\"bigpic\" href=\""+href+"\"><img src=\""+src+"\" width=\"180\" height=\"135\" alt=\"\" /></a>";dojo.byId(_22e.args.scope.args.prefix+"Description").innerHTML="<a href=\""+href+"\">"+json.data[index].title+"</a><p>"+json.data[index].description+"</p>";}else{var src=(_22e.args.scope.args.publicDir+json.data[index].image_120).replace("//","/");var html="<a href=\""+href+"\"><img src=\""+src+"\" width=\"120\" height=\"90\" alt=\"\" /></a>";}dojo.byId(_22e.args.scope.args.prefix+"Pic-"+index).innerHTML=html;}if(!_22e.args.scope.connected){dojo.connect(dojo.byId(_22e.args.scope.args.prefix+"Previous"),"onclick",_22e.args.scope,function(e){e.preventDefault();if(this.offset==1){this.offset=_22e.args.scope.total;}else{this.offset--;}this.load(_22e.args.scope.offset);});dojo.connect(dojo.byId(_22e.args.scope.args.prefix+"Next"),"onclick",_22e.args.scope,function(e){e.preventDefault();if(this.offset==this.total){this.offset=1;}else{this.offset++;}this.load(this.offset);});_22e.args.scope.connected=true;}}}});}});}