/*
	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.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(_1,_2,ch,_4){var _5=String(_1);if(!ch){ch="0";}while(_5.length<_2){if(_4){_5+=ch;}else{_5=ch+_5;}}return _5;};dojo.string.substitute=function(_6,_7,_8,_9){return _6.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_a,_b,_c){var _d=dojo.getObject(_b,false,_7);if(_c){_d=dojo.getObject(_c,false,_9)(_d);}if(_8){_d=_8(_d,_b);}return _d.toString();});};dojo.string.trim=function(_e){_e=_e.replace(/^\s+/,"");for(var i=_e.length-1;i>0;i--){if(/\S/.test(_e.charAt(i))){_e=_e.substring(0,i+1);break;}}return _e;};}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 _10=dojo.global;var _11=dojo.doc;if(_11.selection){return !_11.selection.createRange().text;}else{if(_10.getSelection){var _12=_10.getSelection();if(dojo.isString(_12)){return !_12;}else{return _12.isCollapsed||!_12.toString();}}}},getBookmark:function(){var _13,_14=dojo.doc.selection;if(_14){var _15=_14.createRange();if(_14.type.toUpperCase()=="CONTROL"){_13=_15.length?dojo._toArray(_15):null;}else{_13=_15.getBookmark();}}else{if(dojo.global.getSelection){_14=dojo.global.getSelection();if(_14){var _15=_14.getRangeAt(0);_13=_15.cloneRange();}}else{console.debug("No idea how to store the current selection for this browser!");}}return _13;},moveToBookmark:function(_16){var _17=dojo.doc;if(_17.selection){var _18;if(dojo.isArray(_16)){_18=_17.body.createControlRange();dojo.forEach(_16,_18.addElement);}else{_18=_17.selection.createRange();_18.moveToBookmark(_16);}_18.select();}else{var _19=dojo.global.getSelection&&dojo.global.getSelection();if(_19&&_19.removeAllRanges){_19.removeAllRanges();_19.addRange(_16);}else{console.debug("No idea how to restore selection for this browser!");}}},getFocus:function(_1a,_1b){return {node:_1a&&dojo.isDescendant(dijit._curFocus,_1a.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_1b||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_1b||dojo.global,dijit.getBookmark):null,openedForWindow:_1b};},focus:function(_1c){if(!_1c){return;}var _1d="node" in _1c?_1c.node:_1c,_1e=_1c.bookmark,_1f=_1c.openedForWindow;if(_1d){var _20=(_1d.tagName.toLowerCase()=="iframe")?_1d.contentWindow:_1d;if(_20&&_20.focus){try{_20.focus();}catch(e){}}dijit._onFocusNode(_1d);}if(_1e&&dojo.withGlobal(_1f||dojo.global,dijit.isCollapsed)){if(_1f){_1f.focus();}try{dojo.withGlobal(_1f||dojo.global,moveToBookmark,null,[_1e]);}catch(e){}}},_activeStack:[],registerWin:function(_21){if(!_21){_21=window;}dojo.connect(_21.document,"onmousedown",null,function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var _23=_21.document.body||_21.document.getElementsByTagName("body")[0];if(_23){if(dojo.isIE){_23.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});_23.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{_23.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);_23.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}_23=null;},_onBlurNode:function(_28){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;var w=dijit.getEnclosingWidget(_28);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(_2a){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _2b=[];try{while(_2a){if(_2a.dijitPopupParent){_2a=dijit.byId(_2a.dijitPopupParent).domNode;}else{if(_2a.tagName&&_2a.tagName.toLowerCase()=="body"){if(_2a===dojo.body()){break;}_2a=dojo.query("iframe").filter(function(_2c){return _2c.contentDocument.body===_2a;})[0];}else{var id=_2a.getAttribute&&_2a.getAttribute("widgetId");if(id){_2b.unshift(id);}_2a=_2a.parentNode;}}}}catch(e){}dijit._setStack(_2b);},_onFocusNode:function(_2e){if(_2e&&_2e.tagName&&_2e.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(_2e);if(_2e==dijit._curFocus){return;}dijit._prevFocus=dijit._curFocus;dijit._curFocus=_2e;dojo.publish("focusNode",[_2e]);var w=dijit.getEnclosingWidget(_2e);if(w&&w._setStateClass){w._focused=true;w._setStateClass();}},_setStack:function(_30){var _31=dijit._activeStack;dijit._activeStack=_30;for(var _32=0;_32<Math.min(_31.length,_30.length);_32++){if(_31[_32]!=_30[_32]){break;}}for(var i=_31.length-1;i>=_32;i--){var _34=dijit.byId(_31[i]);if(_34){dojo.publish("widgetBlur",[_34]);if(_34._onBlur){_34._onBlur();}}}for(var i=_32;i<_30.length;i++){var _34=dijit.byId(_30[i]);if(_34){dojo.publish("widgetFocus",[_34]);if(_34._onFocus){_34._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(_35){if(this._hash[_35.id]){throw new Error("Tried to register widget with id=="+_35.id+" but that id is already registered");}this._hash[_35.id]=_35;},remove:function(id){delete this._hash[id];},forEach:function(_37){for(var id in this._hash){_37(this._hash[id]);}},filter:function(_39){var res=new dijit.WidgetSet();this.forEach(function(_3b){if(_39(_3b)){res.add(_3b);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_3e){return _3e.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_3f){var id;do{id=_3f+"_"+(dijit._widgetTypeCtr[_3f]!==undefined?++dijit._widgetTypeCtr[_3f]:dijit._widgetTypeCtr[_3f]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_41){_41.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_43){return dijit.registry.byId(_43.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_44){while(_44){if(_44.getAttribute&&_44.getAttribute("widgetId")){return dijit.registry.byId(_44.getAttribute("widgetId"));}_44=_44.parentNode;}return null;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _45=dojo.global;var _46=dojo.doc;var w=0,h=0;if(dojo.isMozilla){var _49,_4a,_4b,_4c;if(_46.body.clientWidth>_46.documentElement.clientWidth){_49=_46.documentElement.clientWidth;_4b=_46.body.clientWidth;}else{_4b=_46.documentElement.clientWidth;_49=_46.body.clientWidth;}if(_46.body.clientHeight>_46.documentElement.clientHeight){_4a=_46.documentElement.clientHeight;_4c=_46.body.clientHeight;}else{_4c=_46.documentElement.clientHeight;_4a=_46.body.clientHeight;}w=(_4b>_45.innerWidth)?_49:_4b;h=(_4c>_45.innerHeight)?_4a:_4c;}else{if(!dojo.isOpera&&_45.innerWidth){w=_45.innerWidth;h=_45.innerHeight;}else{if(dojo.isIE&&_46.documentElement&&_46.documentElement.clientHeight){w=_46.documentElement.clientWidth;h=_46.documentElement.clientHeight;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _4d=dojo._docScroll();return {w:w,h:h,l:_4d.x,t:_4d.y};};dijit.placeOnScreen=function(_4e,pos,_50,_51){var _52=dojo.map(_50,function(_53){return {corner:_53,pos:pos};});return dijit._place(_4e,_52);};dijit._place=function(_54,_55,_56){var _57=dijit.getViewport();if(!_54.parentNode||String(_54.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_54);}var _58=null;for(var i=0;i<_55.length;i++){var _5a=_55[i].corner;var pos=_55[i].pos;if(_56){_56(_5a);}var _5c=_54.style.display;var _5d=_54.style.visibility;_54.style.visibility="hidden";_54.style.display="";var mb=dojo.marginBox(_54);_54.style.display=_5c;_54.style.visibility=_5d;var _5f=(_5a.charAt(1)=="L"?pos.x:Math.max(_57.l,pos.x-mb.w)),_60=(_5a.charAt(0)=="T"?pos.y:Math.max(_57.t,pos.y-mb.h)),_61=(_5a.charAt(1)=="L"?Math.min(_57.l+_57.w,_5f+mb.w):pos.x),_62=(_5a.charAt(0)=="T"?Math.min(_57.t+_57.h,_60+mb.h):pos.y),_63=_61-_5f,_64=_62-_60,_65=(mb.w-_63)+(mb.h-_64);if(_58==null||_65<_58.overflow){_58={corner:_5a,aroundCorner:_55[i].aroundCorner,x:_5f,y:_60,w:_63,h:_64,overflow:_65};}if(_65==0){break;}}_54.style.left=_58.x+"px";_54.style.top=_58.y+"px";return _58;};dijit.placeOnScreenAroundElement=function(_66,_67,_68,_69){_67=dojo.byId(_67);var _6a=_67.style.display;_67.style.display="";var _6b=_67.offsetWidth;var _6c=_67.offsetHeight;var _6d=dojo.coords(_67,true);_67.style.display=_6a;var _6e=[];for(var _6f in _68){_6e.push({aroundCorner:_6f,corner:_68[_6f],pos:{x:_6d.x+(_6f.charAt(1)=="L"?0:_6b),y:_6d.y+(_6f.charAt(0)=="T"?0:_6c)}});}return dijit._place(_66,_6e,_69);};}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 _75=[],_76=1000,_77=1;this.open=function(_78){var _79=_78.popup,_7a=_78.orient||{"BL":"TL","TL":"BL"},_7b=_78.around,id=(_78.around&&_78.around.id)?(_78.around.id+"_dropdown"):("popup_"+_77++);var _7d=dojo.doc.createElement("div");_7d.id=id;_7d.className="dijitPopup";_7d.style.zIndex=_76+_75.length;_7d.style.visibility="hidden";if(_78.parent){_7d.dijitPopupParent=_78.parent.id;}dojo.body().appendChild(_7d);_79.domNode.style.display="";_7d.appendChild(_79.domNode);var _7e=new dijit.BackgroundIframe(_7d);var _7f=_7b?dijit.placeOnScreenAroundElement(_7d,_7b,_7a,_79.orient?dojo.hitch(_79,"orient"):null):dijit.placeOnScreen(_7d,_78,_7a=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_7d.style.visibility="visible";var _80=[];function getTopPopup(){for(var pi=_75.length-1;pi>0&&_75[pi].parent===_75[pi-1].widget;pi--){}return _75[pi];};_80.push(dojo.connect(_7d,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&_78.onCancel){_78.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _83=getTopPopup();if(_83&&_83.onCancel){_83.onCancel();}}}}));if(_79.onCancel){_80.push(dojo.connect(_79,"onCancel",null,_78.onCancel));}_80.push(dojo.connect(_79,_79.onExecute?"onExecute":"onChange",null,function(){var _84=getTopPopup();if(_84&&_84.onExecute){_84.onExecute();}}));_75.push({wrapper:_7d,iframe:_7e,widget:_79,parent:_78.parent,onExecute:_78.onExecute,onCancel:_78.onCancel,onClose:_78.onClose,handlers:_80});if(_79.onOpen){_79.onOpen(_7f);}return _7f;};this.close=function(_85){while(dojo.some(_75,function(_86){return _86.widget==_85;})){var top=_75.pop(),_88=top.wrapper,_89=top.iframe,_8a=top.widget,_8b=top.onClose;if(_8a.onClose){_8a.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_8a||!_8a.domNode){return;}dojo.style(_8a.domNode,"display","none");dojo.body().appendChild(_8a.domNode);_89.destroy();dojo._destroyElement(_88);if(_8b){_8b();}}};}();dijit._frames=new function(){var _8c=[];this.pop=function(){var _8d;if(_8c.length){_8d=_8c.pop();_8d.style.display="";}else{if(dojo.isIE){var _8e="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_8d=dojo.doc.createElement(_8e);}else{var _8d=dojo.doc.createElement("iframe");_8d.src="javascript:\"\"";_8d.className="dijitBackgroundIframe";}_8d.tabIndex=-1;dojo.body().appendChild(_8d);}return _8d;};this.push=function(_8f){_8f.style.display="";if(dojo.isIE){_8f.style.removeExpression("width");_8f.style.removeExpression("height");}_8c.push(_8f);};}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_91){if(!_91.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _92=dijit._frames.pop();_91.appendChild(_92);if(dojo.isIE){_92.style.setExpression("width","document.getElementById('"+_91.id+"').offsetWidth");_92.style.setExpression("height","document.getElementById('"+_91.id+"').offsetHeight");}this.iframe=_92;}};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(_93){if(dojo.isIE){if(dojo.marginBox(_93.parentNode).h<=_93.parentNode.scrollHeight){_93.scrollIntoView(false);}}else{if(dojo.isMozilla){_93.scrollIntoView(false);}else{var _94=_93.parentNode;var _95=_94.scrollTop+dojo.marginBox(_94).h;var _96=_93.offsetTop+dojo.marginBox(_93).h;if(_95<_96){_94.scrollTop+=(_96-_95);}else{if(_94.scrollTop>_93.offsetTop){_94.scrollTop-=(_94.scrollTop-_93.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 _99=d.isOpera;var maj=Math.floor;var _9b={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_99,dj_opera8:maj(_99)==8,dj_opera9:maj(_99)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla};for(var p in _9b){if(_9b[p]){var _9d=dojo.doc.documentElement;if(_9d.className){_9d.className+=" "+p;}else{_9d.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,_9f,_a0,_a1,obj,_a3,_a4){if(obj!=this._obj){this.stop();this._initialDelay=_a4||500;this._subsequentDelay=_a3||0.9;this._obj=obj;this._evt=evt;this._node=_a0;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_9f,_a1);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(_a5,_a6,_a7,_a8,_a9,_aa){return [dojo.connect(_a5,"onkeypress",this,function(evt){if(evt.keyCode==_a6.keyCode&&(!_a6.charCode||_a6.charCode==evt.charCode)&&(_a6.ctrlKey===undefined||_a6.ctrlKey==evt.ctrlKey)&&(_a6.altKey===undefined||_a6.altKey==evt.ctrlKey)&&(_a6.shiftKey===undefined||_a6.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_a6,_a7,_a5,_a8,_a6,_a9,_aa);}else{if(dijit.typematic._obj==_a6){dijit.typematic.stop();}}}),dojo.connect(_a5,"onkeyup",this,function(evt){if(dijit.typematic._obj==_a6){dijit.typematic.stop();}})];},addMouseListener:function(_ad,_ae,_af,_b0,_b1){var dc=dojo.connect;return [dc(_ad,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_ae,_ad,_af,_ad,_b0,_b1);}),dc(_ad,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_ad,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_ad,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_ad,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_ae,_ad,_af,_ad,_b0,_b1);setTimeout(dijit.typematic.stop,50);}})];},addListener:function(_b8,_b9,_ba,_bb,_bc,_bd,_be){return this.addKeyListener(_b9,_ba,_bb,_bc,_bd,_be).concat(this.addMouseListener(_b8,_bb,_bc,_bd,_be));}};}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 _c1=cs.backgroundImage;var _c2=(cs.borderTopColor==cs.borderRightColor)||(_c1!=null&&(_c1=="none"||_c1=="url(invalid-url:)"));dojo[_c2?"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(_c3){if(_c3.hasAttribute){return _c3.hasAttribute("role");}else{return _c3.getAttribute("role")?true:false;}},getWaiRole:function(_c4){var _c5=_c4.getAttribute("role");if(_c5){var _c6=_c5.indexOf(":");return _c6==-1?_c5:_c5.substring(_c6+1);}else{return "";}},setWaiRole:function(_c7,_c8){if(dojo.isFF&&dojo.isFF<3){_c7.setAttribute("role","wairole:"+_c8);}else{_c7.setAttribute("role",_c8);}},removeWaiRole:function(_c9){_c9.removeAttribute("role");},hasWaiState:function(_ca,_cb){if(dojo.isFF&&dojo.isFF<3){return _ca.hasAttributeNS("http://www.w3.org/2005/07/aaa",_cb);}else{if(_ca.hasAttribute){return _ca.hasAttribute("aria-"+_cb);}else{return _ca.getAttribute("aria-"+_cb)?true:false;}}},getWaiState:function(_cc,_cd){if(dojo.isFF&&dojo.isFF<3){return _cc.getAttributeNS("http://www.w3.org/2005/07/aaa",_cd);}else{var _ce=_cc.getAttribute("aria-"+_cd);return _ce?_ce:"";}},setWaiState:function(_cf,_d0,_d1){if(dojo.isFF&&dojo.isFF<3){_cf.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_d0,_d1);}else{_cf.setAttribute("aria-"+_d0,_d1);}},removeWaiState:function(_d2,_d3){if(dojo.isFF&&dojo.isFF<3){_d2.removeAttributeNS("http://www.w3.org/2005/07/aaa",_d3);}else{_d2.removeAttribute("aria-"+_d3);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_d4,_d5){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 _d6=dojo.date.stamp._isoRegExp.exec(_d4);var _d7=null;if(_d6){_d6.shift();_d6[1]&&_d6[1]--;_d6[6]&&(_d6[6]*=1000);if(_d5){_d5=new Date(_d5);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_d8){return _d5["get"+_d8]();}).forEach(function(_d9,_da){if(_d6[_da]===undefined){_d6[_da]=_d9;}});}_d7=new Date(_d6[0]||1970,_d6[1]||0,_d6[2]||0,_d6[3]||0,_d6[4]||0,_d6[5]||0,_d6[6]||0);var _db=0;var _dc=_d6[7]&&_d6[7].charAt(0);if(_dc!="Z"){_db=((_d6[8]||0)*60)+(Number(_d6[9])||0);if(_dc!="-"){_db*=-1;}}if(_dc){_db-=_d7.getTimezoneOffset();}if(_db){_d7.setTime(_d7.getTime()+_db*60000);}}return _d7;};dojo.date.stamp.toISOString=function(_dd,_de){var _=function(n){return (n<10)?"0"+n:n;};_de=_de||{};var _e1=[];var _e2=_de.zulu?"getUTC":"get";var _e3="";if(_de.selector!="time"){_e3=[_dd[_e2+"FullYear"](),_(_dd[_e2+"Month"]()+1),_(_dd[_e2+"Date"]())].join("-");}_e1.push(_e3);if(_de.selector!="date"){var _e4=[_(_dd[_e2+"Hours"]()),_(_dd[_e2+"Minutes"]()),_(_dd[_e2+"Seconds"]())].join(":");var _e5=_dd[_e2+"Milliseconds"]();if(_de.milliseconds){_e4+="."+(_e5<100?"0":"")+_(_e5);}if(_de.zulu){_e4+="Z";}else{if(_de.selector!="time"){var _e6=_dd.getTimezoneOffset();var _e7=Math.abs(_e6);_e4+=(_e6>0?"-":"+")+_(Math.floor(_e7/60))+":"+_(_e7%60);}}_e1.push(_e4);}return _e1.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(_e9){if(d.isString(_e9)){return "string";}if(typeof _e9=="number"){return "number";}if(typeof _e9=="boolean"){return "boolean";}if(d.isFunction(_e9)){return "function";}if(d.isArray(_e9)){return "array";}if(_e9 instanceof Date){return "date";}if(_e9 instanceof d._Url){return "url";}return "object";};function str2obj(_ea,_eb){switch(_eb){case "string":return _ea;case "number":return _ea.length?Number(_ea):NaN;case "boolean":return typeof _ea=="boolean"?_ea:!(_ea.toLowerCase()=="false");case "function":if(d.isFunction(_ea)){_ea=_ea.toString();_ea=d.trim(_ea.substring(_ea.indexOf("{")+1,_ea.length-1));}try{if(_ea.search(/[^\w\.]+/i)!=-1){_ea=d.parser._nameAnonFunc(new Function(_ea),this);}return d.getObject(_ea,false);}catch(e){return new Function();}case "array":return _ea.split(/\s*,\s*/);case "date":switch(_ea){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_ea);}case "url":return d.baseUrl+_ea;default:return d.fromJson(_ea);}};var _ec={};function getClassInfo(_ed){if(!_ec[_ed]){var cls=d.getObject(_ed);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_ed+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _ef=cls.prototype;var _f0={};for(var _f1 in _ef){if(_f1.charAt(0)=="_"){continue;}var _f2=_ef[_f1];_f0[_f1]=val2type(_f2);}_ec[_ed]={cls:cls,params:_f0};}return _ec[_ed];};this._functionFromScript=function(_f3){var _f4="";var _f5="";var _f6=_f3.getAttribute("args");if(_f6){d.forEach(_f6.split(/\s*,\s*/),function(_f7,idx){_f4+="var "+_f7+" = arguments["+idx+"]; ";});}var _f9=_f3.getAttribute("with");if(_f9&&_f9.length){d.forEach(_f9.split(/\s*,\s*/),function(_fa){_f4+="with("+_fa+"){";_f5+="}";});}return new Function(_f4+_f3.innerHTML+_f5);};this.instantiate=function(_fb){var _fc=[];d.forEach(_fb,function(_fd){if(!_fd){return;}var _fe=_fd.getAttribute("dojoType");if((!_fe)||(!_fe.length)){return;}var _ff=getClassInfo(_fe);var _100=_ff.cls;var ps=_100._noScript||_100.prototype._noScript;var _102={};var _103=_fd.attributes;for(var name in _ff.params){var item=_103.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _106=item.value;switch(name){case "class":_106=_fd.className;break;case "style":_106=_fd.style&&_fd.style.cssText;}var _107=_ff.params[name];_102[name]=str2obj(_106,_107);}if(!ps){var _108=[],_109=[];d.query("> script[type^='dojo/']",_fd).orphan().forEach(function(_10a){var _10b=_10a.getAttribute("event"),_fe=_10a.getAttribute("type"),nf=d.parser._functionFromScript(_10a);if(_10b){if(_fe=="dojo/connect"){_108.push({event:_10b,func:nf});}else{_102[_10b]=nf;}}else{_109.push(nf);}});}var _10d=_100["markupFactory"];if(!_10d&&_100["prototype"]){_10d=_100.prototype["markupFactory"];}var _10e=_10d?_10d(_102,_fd,_100):new _100(_102,_fd);_fc.push(_10e);var _10f=_fd.getAttribute("jsId");if(_10f){d.setObject(_10f,_10e);}if(!ps){dojo.forEach(_108,function(_110){dojo.connect(_10e,_110.event,null,_110.func);});dojo.forEach(_109,function(func){func.call(_10e);});}});d.forEach(_fc,function(_112){if(_112&&(_112.startup)&&((!_112.getParent)||(!_112.getParent()))){_112.startup();}});return _fc;};this.parse=function(_113){var list=d.query("[dojoType]",_113);var _115=this.instantiate(list);return _115;};}();(function(){var _116=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,_116);}else{dojo._loaders.unshift(_116);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_117,_118){var jpn="$joinpoint";var nso=(_118||dojo.parser._anon);if(dojo.isIE){var cn=_117["__dojoNameCache"];if(cn&&nso[cn]===_117){return _117["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_117;return ret;};}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(_11d,_11e){this.create(_11d,_11e);},create:function(_11f,_120){this.srcNodeRef=dojo.byId(_120);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_11f){dojo.mixin(this,_11f);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){for(var attr in this.attributeMap){var _122=this[this.attributeMap[attr]||"domNode"];var _123=this[attr];if(typeof _123!="object"&&(_123!==""||(_11f&&_11f[attr]))){switch(attr){case "class":dojo.addClass(_122,_123);break;case "style":if(_122.style.cssText){_122.style.cssText+="; "+_123;}else{_122.style.cssText=_123;}break;default:_122.setAttribute(attr,_123);}}}}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(_124){this.destroyDescendants();this.destroy();},destroy:function(_125){this.uninitialize();dojo.forEach(this._connects,function(_126){dojo.forEach(_126,dojo.disconnect);});this.destroyRendering(_125);dijit.registry.remove(this.id);},destroyRendering:function(_127){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(_128){_128.destroy();});},uninitialize:function(){return false;},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){var list=dojo.query("[widgetId]",this.domNode);return list.map(dijit.byNode);},nodesWithKeyClick:["input","button"],connect:function(obj,_12b,_12c){var _12d=[];if(_12b=="ondijitclick"){var w=this;if(!this.nodesWithKeyClick[obj.nodeName]){_12d.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_12c))?w[_12c](e):_12c.call(w,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_12d.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_12c)?w[_12c](e):_12c.call(w,e);}}));}_12b="onclick";}_12d.push(dojo.connect(obj,_12b,this,_12c));this._connects.push(_12d);return _12d;},disconnect:function(_131){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_131){dojo.forEach(_131,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["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 _133=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_133)){var _135=this.declaredClass,_136=this;var tstr=dojo.string.substitute(_133,this,function(_138,key){if(key.charAt(0)=="!"){_138=_136[key.substr(1)];}if(typeof _138=="undefined"){throw new Error(_135+" template:"+key);}if(!_138){return "";}return key.charAt(0)=="!"?_138:_138.toString().replace(/"/g,"&quot;");},this);node=dijit._Templated._createNodesFromText(tstr)[0];}else{node=_133.cloneNode(true);}this._attachTemplateNodes(node);var _13a=this.srcNodeRef;if(_13a&&_13a.parentNode){_13a.parentNode.replaceChild(node,_13a);}this.domNode=node;if(this.widgetsInTemplate){var _13b=dojo.parser.parse(node);this._attachTemplateNodes(_13b,function(n,p){return n[p];});}this._fillContent(_13a);},_fillContent:function(_13e){var dest=this.containerNode;if(_13e&&dest){while(_13e.hasChildNodes()){dest.appendChild(_13e.firstChild);}}},_attachTemplateNodes:function(_140,_141){_141=_141||function(n,p){return n.getAttribute(p);};var _144=dojo.isArray(_140)?_140:(_140.all||_140.getElementsByTagName("*"));var x=dojo.isArray(_140)?0:-1;for(;x<_144.length;x++){var _146=(x==-1)?_140:_144[x];if(this.widgetsInTemplate&&_141(_146,"dojoType")){continue;}var _147=_141(_146,"dojoAttachPoint");if(_147){var _148,_149=_147.split(/\s*,\s*/);while(_148=_149.shift()){if(dojo.isArray(this[_148])){this[_148].push(_146);}else{this[_148]=_146;}}}var _14a=_141(_146,"dojoAttachEvent");if(_14a){var _14b,_14c=_14a.split(/\s*,\s*/);var trim=dojo.trim;while(_14b=_14c.shift()){if(_14b){var _14e=null;if(_14b.indexOf(":")!=-1){var _14f=_14b.split(":");_14b=trim(_14f[0]);_14e=trim(_14f[1]);}else{_14b=trim(_14b);}if(!_14e){_14e=_14b;}this.connect(_146,_14b,_14e);}}}var role=_141(_146,"waiRole");if(role){dijit.setWaiRole(_146,role);}var _151=_141(_146,"waiState");if(_151){dojo.forEach(_151.split(/\s*,\s*/),function(_152){if(_152.indexOf("-")!=-1){var pair=_152.split("-");dijit.setWaiState(_146,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_154,_155,_156){var _157=dijit._Templated._templateCache;var key=_155||_154;var _159=_157[key];if(_159){return _159;}if(!_155){_155=dijit._Templated._sanitizeTemplateString(dojo._getText(_154));}_155=dojo.string.trim(_155);if(_155.match(/\$\{([^\}]+)\}/g)||_156){return (_157[key]=_155);}else{return (_157[key]=dijit._Templated._createNodesFromText(_155)[0]);}};dijit._Templated._sanitizeTemplateString=function(_15a){if(_15a){_15a=_15a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _15b=_15a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_15b){_15a=_15b[1];}}else{_15a="";}return _15a;};if(dojo.isIE){dojo.addOnUnload(function(){var _15c=dijit._Templated._templateCache;for(var key in _15c){var _15e=_15c[key];if(!isNaN(_15e.nodeType)){dojo._destroyElement(_15e);}delete _15c[key];}});}(function(){var _15f={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 _162="none";var _163=text.replace(/^\s+/,"");for(var type in _15f){var map=_15f[type];if(map.re.test(_163)){_162=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_162];var _167=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _168=[];while(_167.firstChild){_168.push(_167.removeChild(_167.firstChild));}tn.innerHTML="";return _168;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}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 _16b=dijit.byId(id);return _16b.isContainer?_16b:null;}}return null;},_getSibling:function(_16c){var node=this.domNode;do{node=node[_16c+"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(_16f,_170){if(_170===undefined){_170="last";}var _171=this.containerNode||this.domNode;if(_170&&typeof _170=="number"){var _172=dojo.query("> [widgetid]",_171);if(_172&&_172.length>=_170){_171=_172[_170-1];_170="after";}}dojo.place(_16f.domNode,_171,_170);if(this._started&&!_16f._started){_16f.startup();}},removeChild:function(_173){var node=_173.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(_178,dir){var node=_178.domNode;var _17b=(dir>0?"nextSibling":"previousSibling");do{node=node[_17b];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_17c,_17d){var _17e=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_17c,function(code){_17e[code]=prev;});dojo.forEach(_17d,function(code){_17e[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(_183,_184){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._setTabIndexMinusOne(_183);},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 _185=this._getNextFocusableChild(this.focusedChild,1);if(_185.getFocalNodes){this.focusChild(_185,_185.getFocalNodes()[0]);}else{this.focusChild(_185);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _186=this._getNextFocusableChild(this.focusedChild,-1);if(_186.getFocalNodes){var _187=_186.getFocalNodes();this.focusChild(_186,_187[_187.length-1]);}else{this.focusChild(_186);}},focusChild:function(_188,node){if(_188){if(this.focusedChild&&_188!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_188;if(node&&_188.focusFocalNode){_188.focusFocalNode(node);}else{_188.focus();}}},_setTabIndexMinusOne:function(_18a){if(_18a.getFocalNodes){dojo.forEach(_18a.getFocalNodes(),function(node){node.setAttribute("tabIndex",-1);});}else{(_18a.focusNode||_18a.domNode).setAttribute("tabIndex",-1);}},_onContainerFocus:function(evt){this.domNode.setAttribute("tabIndex",-1);if(evt.target===this.domNode){this.focusFirstChild();}else{var _18d=dijit.getEnclosingWidget(evt.target);if(_18d&&_18d.isFocusable()){this.focusedChild=_18d;}}},_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(_191){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_192,dir){if(_192){_192=this._getSiblingOfChild(_192,dir);}var _194=this.getChildren();for(var i=0;i<_194.length;i++){if(!_192){_192=_194[(dir>0)?0:(_194.length-1)];}if(_192.isFocusable()){return _192;}_192=this._getSiblingOfChild(_192,dir);}}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this._started=true;if(this.getChildren){dojo.forEach(this.getChildren(),function(_196){_196.startup();});}if(!this.getParent||!this.getParent()){this.resize();this.connect(window,"onresize",function(){this.resize();});}},resize:function(args){var node=this.domNode;if(args){dojo.marginBox(node,args);if(args.t){node.style.top=args.t+"px";}if(args.l){node.style.left=args.l+"px";}}var mb=dojo.mixin(dojo.marginBox(node),args||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);this.layout();},layout:function(){}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _19f=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1a2,dim){_1a2.resize?_1a2.resize(dim):dojo.marginBox(_1a2.domNode,dim);dojo.mixin(_1a2,dojo.marginBox(_1a2.domNode));dojo.mixin(_1a2,dim);};dijit.layout.layoutChildren=function(_1a4,dim,_1a6){dim=dojo.mixin({},dim);dojo.addClass(_1a4,"dijitLayoutContainer");_1a6=dojo.filter(_1a6,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_1a6,function(item){return item.layoutAlign=="client";}));dojo.forEach(_1a6,function(_1a9){var elm=_1a9.domNode,pos=_1a9.layoutAlign;var _1ac=elm.style;_1ac.left=dim.l+"px";_1ac.top=dim.t+"px";_1ac.bottom=_1ac.right="auto";dojo.addClass(elm,"dijitAlign"+_19f(pos));if(pos=="top"||pos=="bottom"){size(_1a9,{w:dim.w});dim.h-=_1a9.h;if(pos=="top"){dim.t+=_1a9.h;}else{_1ac.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1a9,{h:dim.h});dim.w-=_1a9.w;if(pos=="left"){dim.l+=_1a9.w;}else{_1ac.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1a9,dim);}}}});};})();}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(_1ad){this.domNode.disabled=this.disabled=_1ad;if(this.focusNode){this.focusNode.disabled=_1ad;}if(_1ad){this._hovering=false;this._active=false;}dijit.setWaiState(this.focusNode||this.domNode,"disabled",_1ad);this._setStateClass();},_onMouse:function(_1ae){var _1af=_1ae.target;if(_1af&&_1af.getAttribute){this.stateModifier=_1af.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_1ae.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 _1b1=this.connect(dojo.body(),"onmouseup",function(){self._active=false;self._setStateClass();self.disconnect(_1b1);});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 _1b2=[this.baseClass];function multiply(_1b3){_1b2=_1b2.concat(dojo.map(_1b2,function(c){return c+_1b3;}));};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+" "+_1b2.join(" ");},onChange:function(_1b5){},postCreate:function(){this.setValue(this.value,null);this.setDisabled(this.disabled);this._setStateClass();},setValue:function(_1b6,_1b7){this._lastValue=_1b6;dijit.setWaiState(this.focusNode||this.domNode,"valuenow",this.forWaiValuenow());if(_1b7===undefined){_1b7=true;}if(this._lastValueReported==undefined&&_1b7===null){this._lastValueReported=_1b6;}if((this.intermediateChanges||_1b7)&&((_1b6&&_1b6.toString)?_1b6.toString():_1b6)!==((this._lastValueReported&&this._lastValueReported.toString)?this._lastValueReported.toString():this._lastValueReported)){this._lastValueReported=_1b6;this.onChange(_1b6);}},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.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._copyKey=navigator.appVersion.indexOf("Macintosh")<0?"ctrlKey":"metaKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id="dojoUnique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);console.debug(b.l,b.t,t.x,t.y,n.scrollLeft,n.scrollTop);b.l+=t.x+n.scrollLeft;b.t+=t.y+n.scrollTop;var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-b.l,ry=e.pageY-b.t,dx=0,dy=0;if(rx>0&&rx<b.w){if(rx<w){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(rx>b.w-w){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(ry>b.h-h){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}}var _1d2=n.scrollLeft,_1d3=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(dx||dy){console.debug(_1d2+", "+_1d3+"\n"+dx+", "+dy+"\n"+n.scrollLeft+", "+n.scrollTop);}if(_1d2!=n.scrollLeft||_1d3!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,_1d9=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo,"stopEvent"),dojo.connect(d,"onselectstart",dojo,"stopEvent"),_1d9];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});},onMouseUp:function(e){if(this.mouseButton==e.button){this.destroy();}},onFirstMove:function(){this.node.style.position="absolute";var m=dojo.marginBox(this.node);m.l-=this.marginBox.l;m.t-=this.marginBox.t;this.marginBox=m;this.host.onFirstMove(this);dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_1e0){this.node=dojo.byId(node);if(!_1e0){_1e0={};}this.handle=_1e0.handle?dojo.byId(_1e0.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_1e0.delay>0?_1e0.delay:0;this.skip=_1e0.skip;this.mover=_1e0.mover?_1e0.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_1e1,node){return new dojo.dnd.Moveable(node,_1e1);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"));this.events.push(dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{new this.mover(this.node,e,this);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);new this.mover(this.node,e,this);}dojo.stopEvent(e);},onMouseUp:function(e){dojo.disconnect(this.events.pop());dojo.disconnect(this.events.pop());},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onMoveStart:function(_1e7){dojo.publish("/dnd/move/start",[_1e7]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_1e8){dojo.publish("/dnd/move/stop",[_1e8]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_1e9){},onMove:function(_1ea,_1eb){this.onMoving(_1ea,_1eb);dojo.marginBox(_1ea.node,_1eb);this.onMoved(_1ea,_1eb);},onMoving:function(_1ec,_1ed){},onMoved:function(_1ee,_1ef){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_1f0,node){return new dojo.dnd.move.constrainedMoveable(node,_1f0);},constructor:function(node,_1f3){if(!_1f3){_1f3={};}this.constraints=_1f3.constraints;this.within=_1f3.within;},onFirstMove:function(_1f4){var c=this.constraintBox=this.constraints.call(this,_1f4),m=_1f4.marginBox;c.r=c.l+c.w-(this.within?m.w:0);c.b=c.t+c.h-(this.within?m.h:0);},onMove:function(_1f7,_1f8){var c=this.constraintBox;_1f8.l=_1f8.l<c.l?c.l:c.r<_1f8.l?c.r:_1f8.l;_1f8.t=_1f8.t<c.t?c.t:c.b<_1f8.t?c.b:_1f8.t;dojo.marginBox(_1f7.node,_1f8);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_1fa,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_1fa);},constructor:function(node,_1fd){var box=_1fd&&_1fd.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_1ff,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_1ff);},constructor:function(node,_202){var area=_202&&_202.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_209){var _20a=function(node,e,_20d){dojo.dnd.Mover.call(this,node,e,_20d);};dojo.extend(_20a,dojo.dnd.Mover.prototype);dojo.extend(_20a,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this),m=this.marginBox;c.r=c.l+c.w-(_209?m.w:0);c.b=c.t+c.h-(_209?m.h:0);}});return _20a;};dojo.dnd.move.boxConstrainedMover=function(box,_216){return dojo.dnd.move.constrainedMover(function(){return box;},_216);};dojo.dnd.move.parentConstrainedMover=function(area,_218){var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_218);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");dojo.fx.chain=function(_21e){var _21f=_21e.shift();var _220=_21f;dojo.forEach(_21e,function(_221){dojo.connect(_220,"onEnd",_221,"play");_220=_221;});return _21f;};dojo.fx.combine=function(_222){var ctr=new dojo._Animation({curve:[0,1]});if(!_222.length){return ctr;}ctr.duration=_222[0].duration;dojo.forEach(_222,function(_224){dojo.forEach(["play","pause","stop"],function(e){if(_224[e]){dojo.connect(ctr,e,_224,e);}});});return ctr;};dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_228){return this.showAnim.play(_228||0);},hide:function(_229){return this.hideAnim.play(_229||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _22e=dojo.style(node,"height");return Math.max(_22e,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_23d,_23e,_23f){_23f=dojo.i18n.normalizeLocale(_23f);var _240=_23f.split("-");var _241=[_23d,"nls",_23e].join(".");var _242=dojo._loadedModules[_241];if(_242){var _243;for(var i=_240.length;i>0;i--){var loc=_240.slice(0,i).join("_");if(_242[loc]){_243=_242[loc];break;}}if(!_243){_243=_242.ROOT;}if(_243){var _246=function(){};_246.prototype=_243;return new _246();}}throw new Error("Bundle not found: "+_23e+" in "+_23d+" , locale="+_23f);};dojo.i18n.normalizeLocale=function(_247){var _248=_247?_247.toLowerCase():dojo.locale;if(_248=="root"){_248="ROOT";}return _248;};dojo.i18n._requireLocalization=function(_249,_24a,_24b,_24c){var _24d=dojo.i18n.normalizeLocale(_24b);var _24e=[_249,"nls",_24a].join(".");var _24f="";if(_24c){var _250=_24c.split(",");for(var i=0;i<_250.length;i++){if(_24d.indexOf(_250[i])==0){if(_250[i].length>_24f.length){_24f=_250[i];}}}if(!_24f){_24f="ROOT";}}var _252=_24c?_24f:_24d;var _253=dojo._loadedModules[_24e];var _254=null;if(_253){if(djConfig.localizationComplete&&_253._built){return;}var _255=_252.replace(/-/g,"_");var _256=_24e+"."+_255;_254=dojo._loadedModules[_256];}if(!_254){_253=dojo["provide"](_24e);var syms=dojo._getModuleSymbols(_249);var _258=syms.concat("nls").join("/");var _259;dojo.i18n._searchLocalePath(_252,_24c,function(loc){var _25b=loc.replace(/-/g,"_");var _25c=_24e+"."+_25b;var _25d=false;if(!dojo._loadedModules[_25c]){dojo["provide"](_25c);var _25e=[_258];if(loc!="ROOT"){_25e.push(loc);}_25e.push(_24a);var _25f=_25e.join("/")+".js";_25d=dojo._loadPath(_25f,null,function(hash){var _261=function(){};_261.prototype=_259;_253[_25b]=new _261();for(var j in hash){_253[_25b][j]=hash[j];}});}else{_25d=true;}if(_25d&&_253[_25b]){_259=_253[_25b];}else{_253[_25b]=_259;}if(_24c){return true;}});}if(_24c&&_24d!=_24f){_253[_24d.replace(/-/g,"_")]=_253[_24f.replace(/-/g,"_")];}};(function(){var _263=djConfig.extraLocale;if(_263){if(!_263 instanceof Array){_263=[_263];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_267,_268){req(m,b,_267,_268);if(_267){return;}for(var i=0;i<_263.length;i++){req(m,b,_263[i],_268);}};}})();dojo.i18n._searchLocalePath=function(_26a,down,_26c){_26a=dojo.i18n.normalizeLocale(_26a);var _26d=_26a.split("-");var _26e=[];for(var i=_26d.length;i>0;i--){_26e.push(_26d.slice(0,i).join("-"));}_26e.push(false);if(down){_26e.reverse();}for(var j=_26e.length-1;j>=0;j--){var loc=_26e[j]||"ROOT";var stop=_26c(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_273,_274){function preload(_275){_275=dojo.i18n.normalizeLocale(_275);dojo.i18n._searchLocalePath(_275,true,function(loc){for(var i=0;i<_274.length;i++){if(_274[i]==loc){dojo["require"](_273+"_"+loc);return true;}}return false;});};preload();var _278=djConfig.extraLocale||[];for(var i=0;i<_278.length;i++){preload(_278[i]);}};}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,"class":"dijitContentPane",postCreate:function(){this.domNode.title="";if(this.preload){this._loadCheck();}var _27a=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_27a);this.errorMessage=dojo.string.substitute(this.errorMessage,_27a);dojo.addClass(this.domNode,this["class"]);},startup:function(){if(this._started){return;}this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}this._loadCheck();this._started=true;},_checkIfSingleChild:function(){var _27b=dojo.query(">",this.containerNode||this.domNode),_27c=_27b.filter("[widgetId]");if(_27b.length==1&&_27c.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_27c[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}this._onLoadHandler();},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited("destroy",arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode||this.domNode,mb=dojo.mixin(dojo.marginBox(node),size||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}},_prepareLoad:function(_282){this.cancel();this.isLoaded=false;this._loadCheck(_282);},_loadCheck:function(_283){var _284=((this.open!==false)&&(this.domNode.style.display!="none"));if(this.href&&(_283||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_284&&!this._xhrDfd)||(!this.isLoaded&&_284&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _286={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_286,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_286);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.setContent.call(self,html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode||this.domNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){cont=match[1];}}node.innerHTML=cont;}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}catch(e){var _28d=this.onContentError(e);try{node.innerHTML=_28d;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_290){var _291=this["on"+type+"Error"].call(this,err);if(_290){console.error(_290,err);}else{if(_291){this._setContent.call(this,_291);}}},_createSubWidgets:function(){var _292=this.containerNode||this.domNode;try{dojo.parser.parse(_292,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_295){},onDownloadError:function(_296){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{action:"",method:"",enctype:"",name:"","accept-charset":"",accept:"",target:"",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",enctype:"","accept-charset":"",accept:"",target:""}),execute:function(_297){},onCancel:function(){},onExecute:function(){},templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onsubmit:_onSubmit' name='${name}' enctype='multipart/form-data'></form>",_onSubmit:function(e){dojo.stopEvent(e);this.onExecute();this.execute(this.getValues());},submit:function(){this.containerNode.submit();},setValues:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_29b){if(!_29b.name){return;}var _29c=map[_29b.name]||(map[_29b.name]=[]);_29c.push(_29b);});for(var name in map){var _29e=map[name],_29f=dojo.getObject(name,false,obj);if(!dojo.isArray(_29f)){_29f=[_29f];}if(_29e[0].setChecked){dojo.forEach(_29e,function(w,i){w.setChecked(dojo.indexOf(_29f,w.value)!=-1);});}else{dojo.forEach(_29e,function(w,i){w.setValue(_29f[i]);});}}},getValues:function(){var obj={};dojo.forEach(this.getDescendants(),function(_2a5){var _2a6=_2a5.getValue?_2a5.getValue():_2a5.value;var name=_2a5.name;if(!name){return;}if(_2a5.setChecked){if(/Radio/.test(_2a5.declaredClass)){if(_2a5.checked){dojo.setObject(name,_2a6,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_2a5.checked){ary.push(_2a6);}}}else{dojo.setObject(name,_2a6,obj);}});return obj;},isValid:function(){return dojo.every(this.getDescendants(),function(_2a9){return !_2a9.isValid||_2a9.isValid();});}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],null);}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class=dijitDialogUnderlayWrapper id='${id}_underlay'><div class=dijitDialogUnderlay dojoAttachPoint='node'></div></div>",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _2aa=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_2aa.t+"px";os.left=_2aa.l+"px";is.width=_2aa.w+"px";is.height=_2aa.h+"px";var _2ad=dijit.getViewport();if(_2aa.w!=_2ad.w){is.width=_2ad.w+"px";}if(_2aa.h!=_2ad.h){is.height=_2ad.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}this._resizeHandler=this.connect(window,"onresize","layout");},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}this.disconnect(this._resizeHandler);},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{templateString:null,templatePath:dojo.moduleUrl("dijit","templates/Dialog.html"),open:false,duration:400,_lastFocusItem:null,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:"titleBar"}),postCreate:function(){dojo.body().appendChild(this.domNode);this.inherited("postCreate",arguments);this.domNode.style.display="none";this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");},onLoad:function(){this._position();this.inherited("onLoad",arguments);},_setup:function(){this._modalconnects=[];if(this.titleBar){this._moveable=new dojo.dnd.Moveable(this.domNode,{handle:this.titleBar});}this._underlay=new dijit.DialogUnderlay();var node=this.domNode;this._fadeIn=dojo.fx.combine([dojo.fadeIn({node:node,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay,"show")})]);this._fadeOut=dojo.fx.combine([dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.display="none";}}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay,"hide")})]);},uninitialize:function(){if(this._underlay){this._underlay.destroy();}},_position:function(){if(dojo.hasClass(dojo.body(),"dojoMove")){return;}var _2af=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _2b1=this.domNode.style;_2b1.left=Math.floor((_2af.l+(_2af.w-mb.w)/2))+"px";_2b1.top=Math.floor((_2af.t+(_2af.h-mb.h)/2))+"px";},_findLastFocus:function(evt){this._lastFocused=evt.target;},_cycleFocus:function(evt){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused;}this.titleBar.focus();},_onKey:function(evt){if(evt.keyCode){var node=evt.target;if(node==this.titleBar&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus();}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.keyCode==dojo.keys.ESCAPE){this.hide();}else{return;}}node=node.parentNode;}if(evt.keyCode!=dojo.keys.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this.titleBar.focus();}catch(e){}}}}}},show:function(){if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(document.documentElement,"onkeypress",this,"_onKey"));var ev=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this._modalconnects.push(dojo.connect(this.containerNode,ev,this,"_findLastFocus"));dojo.style(this.domNode,"opacity",0);this.domNode.style.display="block";this.open=true;this._loadCheck();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);setTimeout(dojo.hitch(this,function(){dijit.focus(this.titleBar);}),50);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];this.connect(this._fadeOut,"onEnd",dojo.hitch(this,function(){dijit.focus(this._savedFocus);}));this.open=false;},layout:function(){if(this.domNode.style.display=="block"){this._underlay.layout();this._position();}}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{title:"",_lastFocusItem:null,templateString:null,templatePath:dojo.moduleUrl("dijit.layout","templates/TooltipDialog.html"),postCreate:function(){this.inherited("postCreate",arguments);this.connect(this.containerNode,"onkeypress","_onKey");var ev=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this.connect(this.containerNode,ev,"_findLastFocus");this.containerNode.title=this.title;},orient:function(_2b8){this.domNode.className="dijitTooltipDialog "+" dijitTooltipAB"+(_2b8.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_2b8.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(pos.corner);this._loadCheck();this.containerNode.focus();},_onKey:function(evt){if(evt.keyCode==dojo.keys.ESCAPE){this.onCancel();}else{if(evt.target==this.containerNode&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus();}dojo.stopEvent(evt);}else{if(evt.keyCode==dojo.keys.TAB){evt.stopPropagation();}}}},_findLastFocus:function(evt){this._lastFocused=evt.target;},_cycleFocus:function(evt){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused;}this.containerNode.focus();}});}if(!dojo._hasResource["dojox.data.dom"]){dojo._hasResource["dojox.data.dom"]=true;dojo.provide("dojox.data.dom");dojo.experimental("dojox.data.dom");dojox.data.dom.createDocument=function(str,_2be){var _2bf=dojo.doc;if(!_2be){_2be="text/xml";}if(str&&(typeof dojo.global["DOMParser"])!=="undefined"){var _2c0=new DOMParser();return _2c0.parseFromString(str,_2be);}else{if((typeof dojo.global["ActiveXObject"])!=="undefined"){var _2c1=["MSXML2","Microsoft","MSXML","MSXML3"];for(var i=0;i<_2c1.length;i++){try{var doc=new ActiveXObject(_2c1[i]+".XMLDOM");if(str){if(doc){doc.async=false;doc.loadXML(str);return doc;}else{console.log("loadXML didn't work?");}}else{if(doc){return doc;}}}catch(e){}}}else{if((_2bf.implementation)&&(_2bf.implementation.createDocument)){if(str){if(_2bf.createElement){var tmp=_2bf.createElement("xml");tmp.innerHTML=str;var _2c5=_2bf.implementation.createDocument("foo","",null);for(var i=0;i<tmp.childNodes.length;i++){_2c5.importNode(tmp.childNodes.item(i),true);}return _2c5;}}else{return _2bf.implementation.createDocument("","",null);}}}}return null;};dojox.data.dom.textContent=function(node,text){if(arguments.length>1){var _2c8=node.ownerDocument||dojo.doc;dojox.data.dom.replaceChildren(node,_2c8.createTextNode(text));return text;}else{if(node.textContent!==undefined){return node.textContent;}var _2c9="";if(node==null){return _2c9;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:_2c9+=dojox.data.dom.textContent(node.childNodes[i]);break;case 3:case 2:case 4:_2c9+=node.childNodes[i].nodeValue;break;default:break;}}return _2c9;}};dojox.data.dom.replaceChildren=function(node,_2cc){var _2cd=[];if(dojo.isIE){for(var i=0;i<node.childNodes.length;i++){_2cd.push(node.childNodes[i]);}}dojox.data.dom.removeChildren(node);for(var i=0;i<_2cd.length;i++){dojo._destroyElement(_2cd[i]);}if(!dojo.isArray(_2cc)){node.appendChild(_2cc);}else{for(var i=0;i<_2cc.length;i++){node.appendChild(_2cc[i]);}}};dojox.data.dom.removeChildren=function(node){var _2d0=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _2d0;};dojox.data.dom.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}};}if(!dojo._hasResource["pb.widget.RichCartDialog"]){dojo._hasResource["pb.widget.RichCartDialog"]=true;dojo.provide("pb.widget.RichCartDialog");dojo.declare("dijit.RichCartDialogUnderlay",[dijit.DialogUnderlay],{templateString:"<div class=dijitDialogUnderlayWrapper id='${id}_underlay'><div class=dijitDialogUnderlay dojoAttachPoint='node' dojoAttachEvent='onclick: _backgroundClose'></div></div>",_backgroundClose:function(evt){dijit.byId("dialog0").close();},layout:function(){var _2d3=dijit.getViewport();var is=this.node.style,os=this.domNode.style;var _2d6=_2d3.w;if(dojo.isSafari){_2d6=(_2d3.w-15);}os.top=_2d3.t+"px";os.left=_2d3.l+"px";is.height=_2d3.h+"px";is.width=_2d6+"px";var _2d7=dijit.getViewport();_2d6=_2d7.w;if(dojo.isSafari){_2d6=(_2d7.w-15);}if(_2d3.w!=_2d7.w){is.width=_2d6+"px";}if(_2d3.h!=_2d7.h){is.height=_2d7.h+"px";}}});dojo.declare("pb.widget.RichCartDialog",[dijit.Dialog],{templatePath:dojo.moduleUrl("pb",_globaltemplateBaseUrl+"RichCartDialog/dojo.cfm"),_lineItemIds:[],_productDatasetLookup:null,_position:function(){var _2d8=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _2da=this.domNode.style;_2da.left=Math.floor((_2d8.l+(_2d8.w-mb.w)/2))+"px";_2da.top="224px";},show:function(){window.scrollTo(0,0);this.inherited(arguments);},_setup:function(){this._modalconnects=[];if(this.titleBar){this._moveable=new dojo.dnd.Moveable(this.domNode,{handle:this.titleBar});}this._underlay=new dijit.RichCartDialogUnderlay();var node=this.domNode;this._fadeIn=dojo.fx.combine([dojo.fadeIn({node:node,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay,"show")})]);this._fadeOut=dojo.fx.combine([dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.display="none";}}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay,"hide")})]);if(cmCreateManualPageviewTag!=undefined){cmCreateManualPageviewTag("ECOMMERCE CONFIRMATION-RICH","Checkout","","","");}},close:function(evt){if(cmCreatePageElementTag!=undefined){cmCreatePageElementTag("Close","Rich add to cart","","","");}if(cmCreateManualLinkClickTag!=undefined){cmCreateManualLinkClickTag("RICH_ADD_TO_CART","rich_close","ECOMMERCE CONFIRMATION-RICH");}this.hide();dojo.publish("/riaCloseEvent",[]);},_handleContinueShoppingClick:function(evt){if(cmCreatePageElementTag!=undefined){cmCreatePageElementTag("Continue","Rich add to cart","","","");}if(cmCreateManualLinkClickTag!=undefined){cmCreateManualLinkClickTag("RICH_ADD_TO_CART","rich_continue","ECOMMERCE CONFIRMATION-RICH");}this.hide();dojo.publish("/riaCloseEvent",[]);},_handlePipCheckoutClick:function(evt){if(cmCreatePageElementTag!=undefined){cmCreatePageElementTag("Checkout","Rich add to cart","","","");}if(cmCreateManualLinkClickTag!=undefined){cmCreateManualLinkClickTag("RICH_ADD_TO_CART","rich_checkout","ECOMMERCE CONFIRMATION-RICH");}},setTotalPrice:function(_2df){this.totalprice.innerHTML="$"+_2df;},setTotalQuantity:function(_2e0){this.skucount.innerHTML=_2e0;},parseSVCAttributesFromXml:function(item){var _2e2;if((item.getElementsByTagName("seqgiftcard"))&&(item.getElementsByTagName("seqgiftcard").length>0)){_2e2=item.getElementsByTagName("seqgiftcard")[0];}else{return null;}var _2e3={"to":"","from":"","message1":"","message2":"","sendTo":""};if(_2e2.getElementsByTagName("to")[0].firstChild){_2e3["to"]=_2e2.getElementsByTagName("to")[0].firstChild.nodeValue;}if(_2e2.getElementsByTagName("from")[0].firstChild){_2e3["from"]=_2e2.getElementsByTagName("from")[0].firstChild.nodeValue;}if(_2e2.getElementsByTagName("messgone")[0].firstChild){_2e3["message1"]=_2e2.getElementsByTagName("messgone")[0].firstChild.nodeValue;}if(_2e2.getElementsByTagName("messgtwo")[0].firstChild){_2e3["message2"]=_2e2.getElementsByTagName("messgtwo")[0].firstChild.nodeValue;}if(_2e2.getElementsByTagName("giftcardnickname")[0].firstChild){_2e3["sendTo"]=_2e2.getElementsByTagName("giftcardnickname")[0].firstChild.nodeValue;}return _2e3;},parseMongramAttributesFromXml:function(item){var _2e5;if((item.getElementsByTagName("monogramseqinfo"))&&(item.getElementsByTagName("monogramseqinfo").length>0)){_2e5=item.getElementsByTagName("monogramseqinfo")[0];}else{return null;}if(!(_2e5.childNodes.length>0)){return null;}var _2e6=_2e5.firstChild.nodeValue;var _2e7=_2e6.split("|");var _2e8={};_2e8["styleLine"]=_2e7[0];_2e8["colorLine"]=_2e7[1];var _2e9=[];for(var i=2;i<_2e7.length;i++){if(_2e7[i]!=""){_2e9[_2e9.length]=_2e7[i];}}_2e8["monogramText"]=_2e9;return _2e8;},renderFromXML:function(xml){var _2ec=xml.getElementsByTagName("totalprice")[0].firstChild.nodeValue;this.setTotalPrice(_2ec);var _2ed=xml.getElementsByTagName("totalquantity")[0].firstChild.nodeValue;this.setTotalQuantity(_2ed);var _2ee=xml.getElementsByTagName("items")[0];if(this._productDatasetLookup==null){this._productDatasetLookup=new ProductDatasetLookup();}for(var i=0;i<this._lineItemIds.length;i++){dijit.byId(this._lineItemIds[i]).destroy();}this._lineItemIds=[];var _2f0=productMap.products.productSet;var _2f1,src,alt,item,_2f5,_2f6,sku,_2f8,_2f9,_2fa,_2fb,_2fc;if((xml.getElementsByTagName("shiptoinfo").length>0)&&xml.getElementsByTagName("shiptoinfo")[0].getElementsByTagName("nickname").length>0){_2fc=xml.getElementsByTagName("shiptoinfo")[0].getElementsByTagName("nickname")[0].firstChild.nodeValue;}for(var i=0;i<_2ee.childNodes.length;i++){item=_2ee.childNodes[i];_2f6=new pb.widget.DialogProductLineItem({});this._lineItemIds[this._lineItemIds.length]=_2f6.id;sku=item.getElementsByTagName("sku")[0].firstChild.nodeValue;_2f6.setSku(sku);this._setSkuImgAttributes(sku,_2f6);_2f5=item.getElementsByTagName("productname")[0].firstChild.nodeValue;_2f6.setTitle(_2f5);_2f8=item.getElementsByTagName("price")[0].firstChild.nodeValue;_2f6.setPrice(_2f8);_2f9=item.getElementsByTagName("quantity")[0].firstChild.nodeValue;_2f6.setQuantity(_2f9);if(item.getElementsByTagName("backorderinfo").length>0){_2fa=item.getElementsByTagName("backorderinfo")[0].firstChild.nodeValue;_2f6.setBackorder(_2fa);}if(item.getElementsByTagName("giftwrapinfo").length>0){_2fb=item.getElementsByTagName("giftwrapinfo")[0].firstChild.nodeValue;_2f6.setGiftWrap(_2fb);}else{_2f6.setGiftWrap("No");}_2f6.setSendTo(_2fc);var _2fd=this.parseMongramAttributesFromXml(item);if(_2fd!=null){_2f6.setMonogram(_2fd);}var _2fe=this.parseSVCAttributesFromXml(item);if(_2fe!=null){_2f6.setSVC(_2fe);}this.itemsHook.appendChild(_2f6.domNode);}},_setSkuImgAttributes:function(sku,_300){try{var _301=productMap.products.productSet;var _302=this._searchDataSetForSkuNode(sku,1,null);if(_302.thumb.src==""){src="";}else{src=_302.thumb.src+"u.jpg";}_300.setImgSrc(src);alt=_302.thumb.alt;_300.setImgAlt(alt);}catch(err){return;}},_searchDataSetForSkuNode:function(sku,_304,_305){var _306=productMap.products.productSet;var node,_308=null;for(var i=0;i<_306.length;i++){_304=1;node=_306[i];if(node.sku&&(node.sku==sku)){_308=node;return _308;}else{if(node["attr"+(_304+1)]){_308=this._searchDataSetForSkuNodeHelper(node["attr"+(_304+1)],sku,_304+1);if(_308!=null){break;}}}}return _308;},_searchDataSetForSkuNodeHelper:function(_30a,sku,_30c){var node,_30e=null;for(var i=0;i<_30a.length;i++){node=_30a[i];if(node.sku&&(node.sku==sku)){_30e=node;break;}else{if(node["attr"+(_30c+1)]){_30e=this._searchDataSetForSkuNodeHelper(node["attr"+(_30c+1)],sku,_30c+1);if(_30e!=null){break;}}}}return _30e;}});}if(!dojo._hasResource["pb.widget.DialogProductLineItem"]){dojo._hasResource["pb.widget.DialogProductLineItem"]=true;dojo.provide("pb.widget.DialogProductLineItem");dojo.declare("pb.widget.DialogProductLineItem",[dijit._Widget,dijit._Templated],{templatePath:dojo.moduleUrl("pb",_globaltemplateBaseUrl+"DialogProductLineItem/dojo.cfm"),setPrice:function(_310){this.price.innerHTML="Price: <span class='dynamic-text'>$"+_310+" each"+"</span><br/>";},setTitle:function(_311){this.title.innerHTML=_311+"<br/>";},setSku:function(sku){this.sku.innerHTML="Item: <span class='dynamic-text'>"+sku+"</span><br/>";},setQuantity:function(_313){this.quantity.innerHTML="Qty: <span class='dynamic-text'>"+_313+"</span><br/>";},setGiftWrap:function(_314){this.giftwrap.innerHTML="Gift Wrap: <span class='dynamic-text'>"+_314+"</span><br/>";},setImgSrc:function(src){this.productImage.src=src;if(src!=""){this.productImage.style["display"]="";}},setImgAlt:function(alt){this.productImage.alt=alt;},setBackorder:function(_317){this.backorder.innerHTML="Available to ship after "+_317;},setSendTo:function(_318){this.sendTo.innerHTML="Ship to: <span class='dynamic-text'>"+_318+"</span><br/>";},setMonogram:function(_319){this.monogram.style["display"]="";var _31a="<span class='dynamic-text'>";_31a+=_319["styleLine"];if((_319["colorLine"]!=undefined)&&(_319["colorLine"]!="")){_31a+=", "+_319["colorLine"];}if(((_319["colorLine"]!=undefined)&&(_319["colorLine"]!=""))||((_319["styleLine"]!=undefined)&&(_319["styleLine"]!=""))){_31a+="<br />";}var _31b=_319["monogramText"];for(var i=0;i<_31b.length;i++){_31a+=_31b[i];if(i!=(_31b.length-1)){_31a+="<br />";}}_31a+="</span>";this.monogramLineItems.innerHTML=_31a;},setSVC:function(_31d){this.setSendTo(_31d["sendTo"]);var _31e=_31d["to"]+_31d["from"]+_31d["message1"]+_31d["message2"];var _31f=dojo.string.trim(_31e).length;if(_31f==0){return;}if(_31d["to"]&&(dojo.string.trim(_31d["to"])!="")){this.svcTo.style["display"]="";this.svcTo.innerHTML="To: <span class='dynamic-text'>"+_31d["to"]+"</span>";}if(_31d["from"]&&(dojo.string.trim(_31d["from"])!="")){this.svcFrom.style["display"]="";this.svcFrom.innerHTML="From: <span class='dynamic-text'>"+_31d["from"]+"</span>";}if(_31d["message1"]&&(dojo.string.trim(_31d["message1"])!="")){this.svcMessageLine1.style["display"]="";this.svcMessageLine1.innerHTML="Message: <span class='dynamic-text'>"+_31d["message1"]+"</span>";}if(dojo.string.trim(_31d["message2"]).length>0){if(_31d["message1"]&&(dojo.string.trim(_31d["message1"])=="")){this.svcMessageLine1.style["display"]="";this.svcMessageLine1.innerHTML="Message: <span class='dynamic-text'> </span>";}this.svcMessageLine2.style["display"]="";this.svcMessageLine2.innerHTML="<span class='dynamic-text'>"+_31d["message2"]+"</span>";}}});}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",templatePath:dojo.moduleUrl("dijit.form","templates/Button.html"),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){dojo.stopEvent(e);var _322=this._onClick(e)!==false;if(this.type=="submit"&&_322){for(var node=this.domNode;node;node=node.parentNode){var _324=dijit.byNode(node);if(_324&&_324._onSubmit){_324._onSubmit(e);break;}if(node.tagName.toLowerCase()=="form"){if(!node.onsubmit||node.onsubmit()){node.submit();}break;}}}},postCreate:function(){if(this.showLabel==false){var _325="";this.label=this.containerNode.innerHTML;_325=dojo.trim(this.containerNode.innerText||this.containerNode.textContent);this.titleNode.title=_325;dojo.addClass(this.containerNode,"dijitDisplayNone");}this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_328){this.containerNode.innerHTML=this.label=_328;if(dojo.isMozilla){var _329=dojo.getComputedStyle(this.domNode).display;this.domNode.style.display="none";var _32a=this;setTimeout(function(){_32a.domNode.style.display=_329;},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",templatePath:dojo.moduleUrl("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var _32b=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_32b[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(!this.dropDown){var _32c=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_32c);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 _32f=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_32f||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 _333=this.dropDown;if(!_333){return false;}if(!_333.isShowingNow){if(_333.href&&!_333.isLoaded){var self=this;var _335=dojo.connect(_333,"onLoad",function(){dojo.disconnect(_335);self._openDropDown();});_333._loadCheck(true);return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _336=this.dropDown;var _337=_336.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_336,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(){_336.domNode.style.width=_337;self.popupStateNode.removeAttribute("popupActive");this._opened=false;}});if(this.domNode.offsetWidth>_336.domNode.offsetWidth){var _339=null;if(!this.isLeftToRight()){_339=_336.domNode.parentNode;var _33a=_339.offsetLeft+_339.offsetWidth;}dojo.marginBox(_336.domNode,{w:this.domNode.offsetWidth});if(_339){_339.style.left=_33a-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_336.focus){_336.focus();}},_closeDropDown:function(_33b){if(this._opened){dijit.popup.close(this.dropDown);if(_33b){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templatePath:dojo.moduleUrl("dijit.form","templates/ComboButton.html"),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(_341){this.checked=_341;dijit.setWaiState(this.focusNode||this.domNode,"pressed",this.checked);this._setStateClass();this.onChange(_341);}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,_started:false,postCreate:function(){dijit.setWaiRole((this.containerNode||this.domNode),"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _342=this.getChildren();dojo.forEach(_342,this._setupChild,this);dojo.some(_342,function(_343){if(_343.selected){this.selectedChildWidget=_343;}return _343.selected;},this);var _344=this.selectedChildWidget;if(!_344&&_342[0]){_344=this.selectedChildWidget=_342[0];_344.selected=true;}if(_344){this._showChild(_344);}dojo.publish(this.id+"-startup",[{children:_342,selected:_344}]);this.inherited("startup",arguments);this._started=true;},_setupChild:function(page){page.domNode.style.display="none";page.domNode.style.position="relative";return page;},addChild:function(_346,_347){dijit._Container.prototype.addChild.apply(this,arguments);_346=this._setupChild(_346);if(this._started){this.layout();dojo.publish(this.id+"-addChild",[_346,_347]);if(!this.selectedChildWidget){this.selectChild(_346);}}},removeChild:function(page){dijit._Container.prototype.removeChild.apply(this,arguments);if(this._beingDestroyed){return;}if(this._started){dojo.publish(this.id+"-removeChild",[page]);this.layout();}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _349=this.getChildren();if(_349.length){this.selectChild(_349[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);}},_transition:function(_34b,_34c){if(_34c){this._hideChild(_34c);}this._showChild(_34b);if(this.doLayout&&_34b.resize){_34b.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_34d){var _34e=this.getChildren();var _34f=dojo.indexOf(_34e,this.selectedChildWidget);_34f+=_34d?1:_34e.length-1;return _34e[_34f%_34e.length];},forward:function(){this.selectChild(this._adjacent(true));},back:function(){this.selectChild(this._adjacent(false));},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._contentBox);}},_showChild:function(page){var _352=this.getChildren();page.isFirstChild=(page==_352[0]);page.isLastChild=(page==_352[_352.length-1]);page.selected=true;page.domNode.style.display="";if(page._loadCheck){page._loadCheck();}if(page.onShow){page.onShow();}},_hideChild:function(page){page.selected=false;page.domNode.style.display="none";if(page.onHide){page.onHide();}},closeChild:function(page){var _355=page.onClose(this,page);if(_355){this.removeChild(page);page.destroy();}},destroy:function(){this._beingDestroyed=true;this.inherited("destroy",arguments);}});dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited("destroy",arguments);},onAddChild:function(page,_358){var _359=document.createElement("span");this.domNode.appendChild(_359);var cls=dojo.getObject(this.buttonWidget);var _35b=new cls({label:page.title,closeButton:page.closable},_359);this.addChild(_35b,_358);this.pane2button[page]=_35b;page.controlButton=_35b;dojo.connect(_35b,"onClick",dojo.hitch(this,"onButtonClick",page));dojo.connect(_35b,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page));if(!this._currentChild){_35b.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}var _35d=this.pane2button[page];if(_35d){_35d.destroy();}this.pane2button[page]=null;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _35f=this.pane2button[this._currentChild];_35f.setChecked(false);_35f.focusNode.setAttribute("tabIndex","-1");}var _360=this.pane2button[page];_360.setChecked(true);this._currentChild=page;_360.focusNode.setAttribute("tabIndex","0");},onButtonClick:function(page){var _362=dijit.byId(this.containerId);_362.selectChild(page);},onCloseButtonClick:function(page){var _364=dijit.byId(this.containerId);_364.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_366){var _367=this.getChildren();var _368=dojo.indexOf(_367,this.pane2button[this._currentChild]);var _369=_366?1:_367.length-1;return _367[(_368+_369)%_367.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _36b=true;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.keyCode){case k.LEFT_ARROW:case k.UP_ARROW:case k.PAGE_UP:_36b=false;case k.RIGHT_ARROW:case k.DOWN_ARROW:case k.PAGE_DOWN:this.adjacent(_36b).onClick();dojo.stopEvent(e);break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.keyCode==k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.keyChar=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited("postCreate",arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",templateString:null,templatePath:dojo.moduleUrl("dijit.layout","templates/TabContainer.html"),postCreate:function(){dijit.layout.TabContainer.superclass.postCreate.apply(this,arguments);this.tablist=new dijit.layout.TabController({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id},this.tablistNode);},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited("_setupChild",arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited("startup",arguments);if(dojo.isSafari){setTimeout(dojo.hitch(this,"layout"),0);}},layout:function(){if(!this.doLayout){return;}var _372=this.tabPosition.replace(/-h/,"");var _373=[{domNode:this.tablist.domNode,layoutAlign:_372},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_373);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_373[1]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){this.tablist.destroy();this.inherited("destroy",arguments);}});dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",postMixInProperties:function(){this["class"]="dijitTabLabels-"+this.tabPosition+(this.doLayout?"":" dijitTabNoLayout");this.inherited("postMixInProperties",arguments);}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templatePath:dojo.moduleUrl("dijit.layout","templates/_TabButton.html"),postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");}else{this.closeButtonNode.style.display="none";}dojo.addClass(this.innerDiv,this.label.replace(" ","-"));this.inherited("postCreate",arguments);dojo.setSelectable(this.containerNode,false);}});}dojo.i18n._preloadLocalizations("dojo.nls.ws_dojo",["xx","ROOT","en","en-us"]);
