/*
	Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(_1,_2){return _1.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_2&&_2.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(_4,re,_6){if(!(_4 instanceof Array)){return re(_4);}var b=[];for(var i=0;i<_4.length;i++){b.push(re(_4[i]));}return dojo.regexp.group(b.join("|"),_6);};dojo.regexp.group=function(_9,_a){return "("+(_a?"?:":"")+_9+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(_b,_c,_d){var c=document.cookie;if(arguments.length==1){var _f=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(_b)+"=([^;]*)"));return _f?decodeURIComponent(_f[1]):undefined;}else{_d=_d||{};var exp=_d.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_d.expires=d;}if(exp&&exp.toUTCString){_d.expires=exp.toUTCString();}_c=encodeURIComponent(_c);var _12=_b+"="+_c,_13;for(_13 in _d){_12+="; "+_13;var _14=_d[_13];if(_14!==true){_12+="="+_14;}}document.cookie=_12;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _15=dojo.doc;if(_15.selection){var s=_15.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _17=dojo.global;var _18=_17.getSelection();if(dojo.isString(_18)){return !_18;}else{return _18.isCollapsed||!_18.toString();}}},getBookmark:function(){var _19,_1a=dojo.doc.selection;if(_1a){var _1b=_1a.createRange();if(_1a.type.toUpperCase()=="CONTROL"){if(_1b.length){_19=[];var i=0,len=_1b.length;while(i<len){_19.push(_1b.item(i++));}}else{_19=null;}}else{_19=_1b.getBookmark();}}else{if(window.getSelection){_1a=dojo.global.getSelection();if(_1a){_1b=_1a.getRangeAt(0);_19=_1b.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _19;},moveToBookmark:function(_1e){var _1f=dojo.doc;if(_1f.selection){var _20;if(dojo.isArray(_1e)){_20=_1f.body.createControlRange();dojo.forEach(_1e,function(n){_20.addElement(n);});}else{_20=_1f.selection.createRange();_20.moveToBookmark(_1e);}_20.select();}else{var _22=dojo.global.getSelection&&dojo.global.getSelection();if(_22&&_22.removeAllRanges){_22.removeAllRanges();_22.addRange(_1e);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_23,_24){return {node:_23&&dojo.isDescendant(dijit._curFocus,_23.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_24||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_24||dojo.global,dijit.getBookmark):null,openedForWindow:_24};},focus:function(_25){if(!_25){return;}var _26="node" in _25?_25.node:_25,_27=_25.bookmark,_28=_25.openedForWindow;if(_26){var _29=(_26.tagName.toLowerCase()=="iframe")?_26.contentWindow:_26;if(_29&&_29.focus){try{_29.focus();}catch(e){}}dijit._onFocusNode(_26);}if(_27&&dojo.withGlobal(_28||dojo.global,dijit.isCollapsed)){if(_28){_28.focus();}try{dojo.withGlobal(_28||dojo.global,dijit.moveToBookmark,null,[_27]);}catch(e){}}},_activeStack:[],registerWin:function(_2a){if(!_2a){_2a=window;}dojo.connect(_2a.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var doc=_2a.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}doc=null;},_onBlurNode:function(_31){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_32){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _33=[];try{while(_32){if(_32.dijitPopupParent){_32=dijit.byId(_32.dijitPopupParent).domNode;}else{if(_32.tagName&&_32.tagName.toLowerCase()=="body"){if(_32===dojo.body()){break;}_32=dijit.getDocumentWindow(_32.ownerDocument).frameElement;}else{var id=_32.getAttribute&&_32.getAttribute("widgetId");if(id){_33.unshift(id);}_32=_32.parentNode;}}}}catch(e){}dijit._setStack(_33);},_onFocusNode:function(_35){if(!_35){return;}if(_35.nodeType==9){return;}if(_35.nodeType==9){var _36=dijit.getDocumentWindow(_35).frameElement;if(!_36){return;}_35=_36;}dijit._onTouchNode(_35);if(_35==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_35;dojo.publish("focusNode",[_35]);},_setStack:function(_37){var _38=dijit._activeStack;dijit._activeStack=_37;for(var _39=0;_39<Math.min(_38.length,_37.length);_39++){if(_38[_39]!=_37[_39]){break;}}for(var i=_38.length-1;i>=_39;i--){var _3b=dijit.byId(_38[i]);if(_3b){_3b._focused=false;_3b._hasBeenBlurred=true;if(_3b._onBlur){_3b._onBlur();}if(_3b._setStateClass){_3b._setStateClass();}dojo.publish("widgetBlur",[_3b]);}}for(i=_39;i<_37.length;i++){_3b=dijit.byId(_37[i]);if(_3b){_3b._focused=true;if(_3b._onFocus){_3b._onFocus();}if(_3b._setStateClass){_3b._setStateClass();}dojo.publish("widgetFocus",[_3b]);}}}});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(_3c){if(this._hash[_3c.id]){throw new Error("Tried to register widget with id=="+_3c.id+" but that id is already registered");}this._hash[_3c.id]=_3c;},remove:function(id){delete this._hash[id];},forEach:function(_3e){for(var id in this._hash){_3e(this._hash[id]);}},filter:function(_40){var res=new dijit.WidgetSet();this.forEach(function(_42){if(_40(_42)){res.add(_42);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_45){return _45.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_46){var id;do{id=_46+"_"+(_46 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_46]:dijit._widgetTypeCtr[_46]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_48){_48.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_4a){return dijit.registry.byId(_4a.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_4b){while(_4b){if(_4b.getAttribute&&_4b.getAttribute("widgetId")){return dijit.registry.byId(_4b.getAttribute("widgetId"));}_4b=_4b.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_4c){var _4d=dojo.style(_4c);return (_4d.visibility!="hidden")&&(_4d.visibility!="collapsed")&&(_4d.display!="none")&&(dojo.attr(_4c,"type")!="hidden");};dijit.isTabNavigable=function(_4e){if(dojo.hasAttr(_4e,"disabled")){return false;}var _4f=dojo.hasAttr(_4e,"tabindex");var _50=dojo.attr(_4e,"tabindex");if(_4f&&_50>=0){return true;}var _51=_4e.nodeName.toLowerCase();if(((_51=="a"&&dojo.hasAttr(_4e,"href"))||dijit._tabElements[_51])&&(!_4f||_50>=0)){return true;}return false;};dijit._getTabNavigable=function(_52){var _53,_54,_55,_56,_57,_58;var _59=function(_5a){dojo.query("> *",_5a).forEach(function(_5b){var _5c=dijit._isElementShown(_5b);if(_5c&&dijit.isTabNavigable(_5b)){var _5d=dojo.attr(_5b,"tabindex");if(!dojo.hasAttr(_5b,"tabindex")||_5d==0){if(!_53){_53=_5b;}_54=_5b;}else{if(_5d>0){if(!_55||_5d<_56){_56=_5d;_55=_5b;}if(!_57||_5d>=_58){_58=_5d;_57=_5b;}}}}if(_5c&&_5b.nodeName.toUpperCase()!="SELECT"){_59(_5b);}});};if(dijit._isElementShown(_52)){_59(_52);}return {first:_53,last:_54,lowest:_55,highest:_57};};dijit.getFirstInTabbingOrder=function(_5e){var _5f=dijit._getTabNavigable(dojo.byId(_5e));return _5f.lowest?_5f.lowest:_5f.first;};dijit.getLastInTabbingOrder=function(_60){var _61=dijit._getTabNavigable(dojo.byId(_60));return _61.last?_61.last:_61.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_62){this.pairs=[];this.returnWrappers=_62||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_63,_64,_65,_66,_67){this.pairs[((_67)?"unshift":"push")]([_63,_64,_65,_66]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _69=this.pairs[i];if(_69[1].apply(this,arguments)){if((_69[3])||(this.returnWrappers)){return _69[2];}else{return _69[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_6a){for(var i=0;i<this.pairs.length;i++){var _6c=this.pairs[i];if(_6c[0]==_6a){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _6d=dojo.global;var _6e=dojo.doc;var w=0,h=0;var de=_6e.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _74,_75,_76,_77;var dbw=_6e.body.clientWidth;if(dbw>dew){_74=dew;_76=dbw;}else{_76=dew;_74=dbw;}var dbh=_6e.body.clientHeight;if(dbh>deh){_75=deh;_77=dbh;}else{_77=deh;_75=dbh;}w=(_76>_6d.innerWidth)?_74:_76;h=(_77>_6d.innerHeight)?_75:_77;}else{if(!dojo.isOpera&&_6d.innerWidth){w=_6d.innerWidth;h=_6d.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _7a=dojo._docScroll();return {w:w,h:h,l:_7a.x,t:_7a.y};};dijit.placeOnScreen=function(_7b,pos,_7d,_7e){var _7f=dojo.map(_7d,function(_80){return {corner:_80,pos:pos};});return dijit._place(_7b,_7f);};dijit._place=function(_81,_82,_83){var _84=dijit.getViewport();if(!_81.parentNode||String(_81.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_81);}var _85=null;dojo.some(_82,function(_86){var _87=_86.corner;var pos=_86.pos;if(_83){_83(_81,_86.aroundCorner,_87);}var _89=_81.style;var _8a=_89.display;var _8b=_89.visibility;_89.visibility="hidden";_89.display="";var mb=dojo.marginBox(_81);_89.display=_8a;_89.visibility=_8b;var _8d=(_87.charAt(1)=="L"?pos.x:Math.max(_84.l,pos.x-mb.w)),_8e=(_87.charAt(0)=="T"?pos.y:Math.max(_84.t,pos.y-mb.h)),_8f=(_87.charAt(1)=="L"?Math.min(_84.l+_84.w,_8d+mb.w):pos.x),_90=(_87.charAt(0)=="T"?Math.min(_84.t+_84.h,_8e+mb.h):pos.y),_91=_8f-_8d,_92=_90-_8e,_93=(mb.w-_91)+(mb.h-_92);if(_85==null||_93<_85.overflow){_85={corner:_87,aroundCorner:_86.aroundCorner,x:_8d,y:_8e,w:_91,h:_92,overflow:_93};}return !_93;});_81.style.left=_85.x+"px";_81.style.top=_85.y+"px";if(_85.overflow&&_83){_83(_81,_85.aroundCorner,_85.corner);}return _85;};dijit.placeOnScreenAroundNode=function(_94,_95,_96,_97){_95=dojo.byId(_95);var _98=_95.style.display;_95.style.display="";var _99=_95.offsetWidth;var _9a=_95.offsetHeight;var _9b=dojo.coords(_95,true);_95.style.display=_98;return dijit._placeOnScreenAroundRect(_94,_9b.x,_9b.y,_99,_9a,_96,_97);};dijit.placeOnScreenAroundRectangle=function(_9c,_9d,_9e,_9f){return dijit._placeOnScreenAroundRect(_9c,_9d.x,_9d.y,_9d.width,_9d.height,_9e,_9f);};dijit._placeOnScreenAroundRect=function(_a0,x,y,_a3,_a4,_a5,_a6){var _a7=[];for(var _a8 in _a5){_a7.push({aroundCorner:_a8,corner:_a5[_a8],pos:{x:x+(_a8.charAt(1)=="L"?0:_a3),y:y+(_a8.charAt(0)=="T"?0:_a4)}});}return dijit._place(_a0,_a7,_a6);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(_ad,_ae,_af,_b0){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _b3=[],_b4=1000,_b5=1;this.prepare=function(_b6){dojo.body().appendChild(_b6);var s=_b6.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_b8){var _b9=_b8.popup,_ba=_b8.orient||{"BL":"TL","TL":"BL"},_bb=_b8.around,id=(_b8.around&&_b8.around.id)?(_b8.around.id+"_dropdown"):("popup_"+_b5++);var _bd=dojo.doc.createElement("div");dijit.setWaiRole(_bd,"presentation");_bd.id=id;_bd.className="dijitPopup";_bd.style.zIndex=_b4+_b3.length;_bd.style.left=_bd.style.top="0px";_bd.style.visibility="hidden";if(_b8.parent){_bd.dijitPopupParent=_b8.parent.id;}dojo.body().appendChild(_bd);var s=_b9.domNode.style;s.display="";s.visibility="";s.position="";_bd.appendChild(_b9.domNode);var _bf=new dijit.BackgroundIframe(_bd);var _c0=_bb?dijit.placeOnScreenAroundElement(_bd,_bb,_ba,_b9.orient?dojo.hitch(_b9,"orient"):null):dijit.placeOnScreen(_bd,_b8,_ba=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_bd.style.visibility="visible";var _c1=[];var _c2=function(){for(var pi=_b3.length-1;pi>0&&_b3[pi].parent===_b3[pi-1].widget;pi--){}return _b3[pi];};_c1.push(dojo.connect(_bd,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_b8.onCancel){dojo.stopEvent(evt);_b8.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _c5=_c2();if(_c5&&_c5.onCancel){_c5.onCancel();}}}}));if(_b9.onCancel){_c1.push(dojo.connect(_b9,"onCancel",null,_b8.onCancel));}_c1.push(dojo.connect(_b9,_b9.onExecute?"onExecute":"onChange",null,function(){var _c6=_c2();if(_c6&&_c6.onExecute){_c6.onExecute();}}));_b3.push({wrapper:_bd,iframe:_bf,widget:_b9,parent:_b8.parent,onExecute:_b8.onExecute,onCancel:_b8.onCancel,onClose:_b8.onClose,handlers:_c1});if(_b9.onOpen){_b9.onOpen(_c0);}return _c0;};this.close=function(_c7){while(dojo.some(_b3,function(_c8){return _c8.widget==_c7;})){var top=_b3.pop(),_ca=top.wrapper,_cb=top.iframe,_cc=top.widget,_cd=top.onClose;if(_cc.onClose){_cc.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_cc||!_cc.domNode){return;}this.prepare(_cc.domNode);_cb.destroy();dojo._destroyElement(_ca);if(_cd){_cd();}}};}();dijit._frames=new function(){var _ce=[];this.pop=function(){var _cf;if(_ce.length){_cf=_ce.pop();_cf.style.display="";}else{if(dojo.isIE){var _d0=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _d1="<iframe src='"+_d0+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_cf=dojo.doc.createElement(_d1);}else{_cf=dojo.doc.createElement("iframe");_cf.src="javascript:\"\"";_cf.className="dijitBackgroundIframe";}_cf.tabIndex=-1;dojo.body().appendChild(_cf);}return _cf;};this.push=function(_d2){_d2.style.display="";if(dojo.isIE){_d2.style.removeExpression("width");_d2.style.removeExpression("height");}_ce.push(_d2);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_d4){if(!_d4.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _d5=dijit._frames.pop();_d4.appendChild(_d5);if(dojo.isIE){_d5.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_d4.id+"').offsetWidth");_d5.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_d4.id+"').offsetHeight");}this.iframe=_d5;}};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(_d6){_d6=dojo.byId(_d6);var _d7=_d6.ownerDocument.body;var _d8=_d7.parentNode;if(dojo.isFF==2||_d6==_d7||_d6==_d8){_d6.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _da=dojo.doc.compatMode!="BackCompat";var _db=(_da&&!dojo.isSafari)?_d8:_d7;function addPseudoAttrs(_dc){var _dd=_dc.parentNode;var _de=_dc.offsetParent;if(_de==null){_dc=_db;_de=_d8;_dd=null;}_dc._offsetParent=(_de==_d7)?_db:_de;_dc._parent=(_dd==_d7)?_db:_dd;_dc._start={H:_dc.offsetLeft,V:_dc.offsetTop};_dc._scroll={H:_dc.scrollLeft,V:_dc.scrollTop};_dc._renderedSize={H:_dc.offsetWidth,V:_dc.offsetHeight};var bp=dojo._getBorderExtents(_dc);_dc._borderStart={H:bp.l,V:bp.t};_dc._borderSize={H:bp.w,V:bp.h};_dc._clientSize=(_dc._offsetParent==_d8&&dojo.isSafari&&_da)?{H:_d8.clientWidth,V:_d8.clientHeight}:{H:_dc.clientWidth,V:_dc.clientHeight};_dc._scrollBarSize={V:null,H:null};for(var dir in _dc._scrollBarSize){var _e1=_dc._renderedSize[dir]-_dc._clientSize[dir]-_dc._borderSize[dir];_dc._scrollBarSize[dir]=(_dc._clientSize[dir]>0&&_e1>=15&&_e1<=17)?_e1:0;}_dc._isScrollable={V:null,H:null};for(dir in _dc._isScrollable){var _e2=dir=="H"?"V":"H";_dc._isScrollable[dir]=_dc==_db||_dc._scroll[dir]||_dc._scrollBarSize[_e2];}};var _e3=_d6;while(_e3!=null){addPseudoAttrs(_e3);var _e4=_e3._parent;if(_e4){_e4._child=_e3;}_e3=_e4;}for(var dir in _db._renderedSize){_db._renderedSize[dir]=Math.min(_db._clientSize[dir],_db._renderedSize[dir]);}var _e6=_d6;while(_e6!=_db){_e3=_e6._parent;if(_e3.tagName=="TD"){var _e7=_e3._parent._parent._parent;if(_e7._offsetParent==_e6._offsetParent&&_e3._offsetParent!=_e6._offsetParent){_e3=_e7;}}var _e8=_e6==_db||(_e3._offsetParent!=_e6._offsetParent);for(dir in _e6._start){var _e9=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_e3._clientSize.H>0){var _ea=_e3.scrollWidth-_e3._clientSize.H;if(_ea>0){_e3._scroll.H-=_ea;}}if(dojo.isIE&&_e3._offsetParent.tagName=="TABLE"){_e3._start[dir]-=_e3._offsetParent._borderStart[dir];_e3._borderStart[dir]=_e3._borderSize[dir]=0;}if(_e3._clientSize[dir]==0){_e3._renderedSize[dir]=_e3._clientSize[dir]=_e3._child._clientSize[dir];if(rtl&&dir=="H"){_e3._start[dir]-=_e3._renderedSize[dir];}}else{_e3._renderedSize[dir]-=_e3._borderSize[dir]+_e3._scrollBarSize[dir];}_e3._start[dir]+=_e3._borderStart[dir];var _eb=_e6._start[dir]-(_e8?0:_e3._start[dir])-_e3._scroll[dir];var _ec=_eb+_e6._renderedSize[dir]-_e3._renderedSize[dir];var _ed,_ee=(dir=="H")?"scrollLeft":"scrollTop";var _ef=(dir=="H"&&rtl);var _f0=_ef?-_ec:_eb;var _f1=_ef?-_eb:_ec;if(_f0<=0){_ed=_f0;}else{if(_f1<=0){_ed=0;}else{if(_f0<_f1){_ed=_f0;}else{_ed=_f1;}}}var _f2=0;if(_ed!=0){var _f3=_e3[_ee];_e3[_ee]+=_ef?-_ed:_ed;_f2=_e3[_ee]-_f3;_eb-=_f2;_f1-=_ef?-_f2:_f2;}_e3._renderedSize[dir]=_e6._renderedSize[dir]+_e3._scrollBarSize[dir]-((_e3._isScrollable[dir]&&_f1>0)?_f1:0);_e3._start[dir]+=(_eb>=0||!_e3._isScrollable[dir])?_eb:0;}_e6=_e3;}};}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 _f6=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _f9=d.boxModel.replace(/-/,"");var _fa={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_f6,dj_opera8:maj(_f6)==8,dj_opera9:maj(_f6)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_fa["dj_"+_f9]=true;var _fb=dojo.doc.documentElement;for(var p in _fa){if(_fa[p]){if(_fb.className){_fb.className+=" "+p;}else{_fb.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_fb.className+=" dijitRtl";for(var p in _fa){if(_fa[p]){_fb.className+=" "+p+"-rtl";}}}});})();}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_ff,node,_101,obj,_103,_104){if(obj!=this._obj){this.stop();this._initialDelay=_104||500;this._subsequentDelay=_103||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_ff,_101);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_106,_107,_108,_109,_10a){if(_106.keyCode){_106.charOrCode=_106.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_106.charCode){_106.charOrCode=String.fromCharCode(_106.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_106.charOrCode&&(_106.ctrlKey===undefined||_106.ctrlKey==evt.ctrlKey)&&(_106.altKey===undefined||_106.altKey==evt.ctrlKey)&&(_106.shiftKey===undefined||_106.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_106,_107,node,_108,_106,_109,_10a);}else{if(dijit.typematic._obj==_106){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_106){dijit.typematic.stop();}})];},addMouseListener:function(node,_10e,_10f,_110,_111){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_10e,node,_10f,node,_110,_111);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_10e,node,_10f,node,_110,_111);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_118,_119,_11a,_11b,_11c,_11d,_11e){return this.addKeyListener(_119,_11a,_11b,_11c,_11d,_11e).concat(this.addMouseListener(_118,_11b,_11c,_11d,_11e));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _121=cs.backgroundImage;var _122=(cs.borderTopColor==cs.borderRightColor)||(_121!=null&&(_121=="none"||_121=="url(invalid-url:)"));dojo[_122?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _125=this.getWaiRole(elem);if(role){return (_125.indexOf(role)>-1);}else{return (_125.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _129=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_129)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_129+" ").indexOf(" "+role+" ")<0){var _12a=dojo.trim(_129.replace(this._XhtmlRoles,""));var _12b=dojo.trim(_129.replace(_12a,""));dojo.attr(elem,"role",_12b+(_12b?" ":"")+role);}}},removeWaiRole:function(elem,role){var _12e=dojo.attr(elem,"role");if(!_12e){return;}if(role){var _12f=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_12e+" ").replace(" "+_12f+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_132){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_132);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_132):!!elem.getAttribute("aria-"+_132);}},getWaiState:function(elem,_134){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_134);}else{var _135=elem.getAttribute("aria-"+_134);return _135?_135:"";}},setWaiState:function(elem,_137,_138){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_137,_138);}else{elem.setAttribute("aria-"+_137,_138);}},removeWaiState:function(elem,_13a){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_13a);}else{elem.removeAttribute("aria-"+_13a);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"connect",function(_13b,_13c){if(_13b&&dojo.isFunction(_13b._onConnect)){_13b._onConnect(_13c);}});dijit._connectOnUseEventHandler=function(_13d){};(function(){var _13e={};var _13f=function(dc){if(!_13e[dc]){var r=[];var _142;var _143=dojo.getObject(dc).prototype;for(var _144 in _143){if(dojo.isFunction(_143[_144])&&(_142=_144.match(/^_set([a-zA-Z]*)Attr$/))&&_142[1]){r.push(_142[1].charAt(0).toLowerCase()+_142[1].substr(1));}}_13e[dc]=r;}return _13e[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_145,_146){this.create(_145,_146);},create:function(_147,_148){this.srcNodeRef=dojo.byId(_148);this._connects=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_147){this.params=_147;dojo.mixin(this,_147);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _14a=function(attr,_14c){if((_14c.params&&attr in _14c.params)||_14c[attr]){_14c.attr(attr,_14c[attr]);}};for(var attr in this.attributeMap){_14a(attr,this);}dojo.forEach(_13f(this.declaredClass),function(a){if(!(a in this.attributeMap)){_14a(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_14f){this.destroyDescendants(_14f);this.destroy(_14f);},destroy:function(_150){this.uninitialize();dojo.forEach(this._connects,function(_151){dojo.forEach(_151,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_150);dijit.registry.remove(this.id);},destroyRendering:function(_153){if(this.bgIframe){this.bgIframe.destroy(_153);delete this.bgIframe;}if(this.domNode){if(!_153){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_153){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_154){dojo.forEach(this.getDescendants(),function(_155){if(_155.destroy){_155.destroy(_154);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_157){if(_157 in this._deferredConnects){var _158=this[this._deferredConnects[_157]||"domNode"];this.connect(_158,_157.toLowerCase(),this[_157]);delete this._deferredConnects[_157];}},_setClassAttr:function(_159){var _15a=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_15a,this["class"]);this["class"]=_159;dojo.addClass(_15a,_159);},_setStyleAttr:function(_15b){var _15c=this[this.attributeMap["style"]||"domNode"];if(_15c.style.cssText){_15c.style.cssText+="; "+_15b;}else{_15c.style.cssText=_15b;}this["style"]=_15b;},setAttribute:function(attr,_15e){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_15e);},_attrToDom:function(attr,_160){var _161=this.attributeMap[attr];dojo.forEach(dojo.isArray(_161)?_161:[_161],function(_162){var _163=this[_162.node||_162||"domNode"];var type=_162.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_160)){_160=dojo.hitch(this,_160);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_163,attr,_160);break;case "innerHTML":_163.innerHTML=_160;break;case "class":dojo.removeClass(_163,this[attr]);dojo.addClass(_163,_160);break;}},this);this[attr]=_160;},attr:function(name,_166){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _169=this._getAttrNames(name);if(args==2){if(this[_169.s]){return this[_169.s](_166)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_166);}this[name]=_166;}return this;}else{if(this[_169.g]){return this[_169.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_16f,_170){var d=dojo;var dco=d.hitch(d,"connect",obj);var _173=[];if(_16f=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_170);_173.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE){return m(e);}}));if(d.isFF){_173.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_16f="onclick";}_173.push(dco(_16f,this,_170));this._connects.push(_173);return _173;},disconnect:function(_178){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_178){dojo.forEach(_178,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_17a,_17b){if(_17a["declaredClass"]&&_17a["addChild"]){_17a.addChild(this,_17b);}else{dojo.place(this.domNode,_17a,_17b);}return this;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_185,map,_187,_188){_188=_188||dojo.global;_187=(!_187)?function(v){return v;}:dojo.hitch(_188,_187);return _185.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_18a,key,_18c){var _18d=dojo.getObject(key,false,map);if(_18c){_18d=dojo.getObject(_18c,false,_188).call(_188,_18d,key);}return _187(_18d,key).toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _191=this.declaredClass,_192=this;return dojo.string.substitute(tmpl,this,function(_193,key){if(key.charAt(0)=="!"){_193=_192[key.substr(1)];}if(typeof _193=="undefined"){throw new Error(_191+" template:"+key);}if(_193==null){return "";}return key.charAt(0)=="!"?_193:_193.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _195=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_195)){node=dijit._Templated._createNodesFromText(this._stringRepl(_195))[0];}else{node=_195.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _197=this.srcNodeRef;if(_197&&_197.parentNode){_197.parentNode.replaceChild(node,_197);}if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_197);},_fillContent:function(_19b){var dest=this.containerNode;if(_19b&&dest){while(_19b.hasChildNodes()){dest.appendChild(_19b.firstChild);}}},_attachTemplateNodes:function(_19d,_19e){_19e=_19e||function(n,p){return n.getAttribute(p);};var _1a1=dojo.isArray(_19d)?_19d:(_19d.all||_19d.getElementsByTagName("*"));var x=dojo.isArray(_19d)?0:-1;var _1a3={};for(;x<_1a1.length;x++){var _1a4=(x==-1)?_19d:_1a1[x];if(this.widgetsInTemplate&&_19e(_1a4,"dojoType")){continue;}var _1a5=_19e(_1a4,"dojoAttachPoint");if(_1a5){var _1a6,_1a7=_1a5.split(/\s*,\s*/);while((_1a6=_1a7.shift())){if(dojo.isArray(this[_1a6])){this[_1a6].push(_1a4);}else{this[_1a6]=_1a4;}}}var _1a8=_19e(_1a4,"dojoAttachEvent");if(_1a8){var _1a9,_1aa=_1a8.split(/\s*,\s*/);var trim=dojo.trim;while((_1a9=_1aa.shift())){if(_1a9){var _1ac=null;if(_1a9.indexOf(":")!=-1){var _1ad=_1a9.split(":");_1a9=trim(_1ad[0]);_1ac=trim(_1ad[1]);}else{_1a9=trim(_1a9);}if(!_1ac){_1ac=_1a9;}this.connect(_1a4,_1a9,_1ac);}}}var role=_19e(_1a4,"waiRole");if(role){dijit.setWaiRole(_1a4,role);}var _1af=_19e(_1a4,"waiState");if(_1af){dojo.forEach(_1af.split(/\s*,\s*/),function(_1b0){if(_1b0.indexOf("-")!=-1){var pair=_1b0.split("-");dijit.setWaiState(_1a4,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1b2,_1b3,_1b4){var _1b5=dijit._Templated._templateCache;var key=_1b3||_1b2;var _1b7=_1b5[key];if(_1b7){if(!_1b7.ownerDocument||_1b7.ownerDocument==dojo.doc){return _1b7;}dojo._destroyElement(_1b7);}if(!_1b3){_1b3=dijit._Templated._sanitizeTemplateString(dojo._getText(_1b2));}_1b3=dojo.string.trim(_1b3);if(_1b4||_1b3.match(/\$\{([^\}]+)\}/g)){return (_1b5[key]=_1b3);}else{return (_1b5[key]=dijit._Templated._createNodesFromText(_1b3)[0]);}};dijit._Templated._sanitizeTemplateString=function(_1b8){if(_1b8){_1b8=_1b8.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1b9=_1b8.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1b9){_1b8=_1b9[1];}}else{_1b8="";}return _1b8;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1ba=dijit._Templated._templateCache;for(var key in _1ba){var _1bc=_1ba[key];if(!isNaN(_1bc.nodeType)){dojo._destroyElement(_1bc);}delete _1ba[key];}});}(function(){var _1bd={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(tn&&tn.ownerDocument!=dojo.doc){dojo._destroyElement(tn);tn=undefined;}if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _1c0="none";var _1c1=text.replace(/^\s+/,"");for(var type in _1bd){var map=_1bd[type];if(map.re.test(_1c1)){_1c0=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_1c0];var _1c5=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _1c6=[];while(_1c5.firstChild){_1c6.push(_1c5.removeChild(_1c5.firstChild));}tn.innerHTML="";return _1c6;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _1c7={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _1ca=function(_1cb){this._index=-1;this._animations=_1cb||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_1ca,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_1cd,_1ce){if(!this._current){this._current=this._animations[this._index=0];}if(!_1ce&&this._current.status()=="playing"){return this;}var _1cf=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_1d0=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_1d2=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_1cf);dojo.disconnect(_1d0);dojo.disconnect(_1d2);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_1d6,_1d7){this.pause();var _1d8=this.duration*_1d6;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_1d8){this._current=a;return true;}_1d8-=a.duration;return false;});if(this._current){this._current.gotoPercent(_1d8/this._current.duration,_1d7);}return this;},stop:function(_1da){if(this._current){if(_1da){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_1ca,_1c7);dojo.fx.chain=function(_1dd){return new _1ca(_1dd);};var _1de=function(_1df){this._animations=_1df||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_1df,function(a){var _1e1=a.duration;if(a.delay){_1e1+=a.delay;}if(this.duration<_1e1){this.duration=_1e1;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_1de,{_doAction:function(_1e3,args){dojo.forEach(this._animations,function(a){a[_1e3].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_1e6,args){var t=this._pseudoAnimation;t[_1e6].apply(t,args);},play:function(_1e9,_1ea){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_1eb,_1ec){var ms=this.duration*_1eb;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_1ec);});this._call("gotoPercent",arguments);return this;},stop:function(_1ef){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_1de,_1c7);dojo.fx.combine=function(_1f0){return new _1de(_1f0);};})();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(_1f3){return this.showAnim.play(_1f3||0);},hide:function(_1f4){return this.hideAnim.play(_1f4||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style,o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _1fa=dojo.style(node,"height");return Math.max(_1fa,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.overflow=o;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["music.widget.Carousel"]){dojo._hasResource["music.widget.Carousel"]=true;dojo.provide("music.widget.Carousel");dojo.declare("music.widget.Carousel",[dijit._Widget,dijit._Templated],{templateString:"<div>\n  <div class=\"Carousel\">\n  <div class=\"overlay\"></div>\n    <div class=\"carouselwrap\">\n        <div dojoAttachPoint=\"prevButton\" class=\"prevButton\"></div>\n        <div class=\"carousel\" dojoAttachPoint=\"c1\">\n          <div dojoAttachPoint=\"containerNode\" class=\"carouselscroll\"></div>\n        </div>\n        <div dojoAttachPoint=\"nextButton\" class=\"nextButton\"></div>\n    </div>\n  <div class=\"controls\" dojoAttachPoint=\"controls\"></div>\n  </div>\n</div>\n",widgetsInTemplate:true,isContainer:true,animationMethod:"chain",animG:null,offsetW:null,offsetH:null,newLeft:0,boxMixin:{duration:1000},itemWidth:null,currentIndex:0,scrollMax:null,controlNodes:new Array(),numItems:null,carouselType:"",carouselMode:"",numItemsInView:null,postCreate:function(){dojo.connect(this.nextButton,"onclick",dojo.hitch(this,"slideRight"));dojo.connect(this.prevButton,"onclick",dojo.hitch(this,"slideLeft"));if(this.carouselType.indexOf("controls")!=-1){for(var i=0;i<this.numItems;i++){if(i>0){var span=document.createElement("span");span.setAttribute("class","separator");this.controls.appendChild(span);}var a=document.createElement("a");a.appendChild(document.createTextNode(i+1));a.setAttribute("class","controllink");this.controls.appendChild(a);dojo.connect(a,"onclick",dojo.hitch(this,"slideTo",i));this.controlNodes.push(a);}}this.updateControls();},updateControls:function(_20d){if(!_20d){_20d=0;}if(this.controlNodes.length>this.currentIndex){this.controlNodes[this.currentIndex].setAttribute("class","controllink current");}if(this.controlNodes.length>this.currentIndex){if(_20d!=this.currentIndex){this.controlNodes[_20d].setAttribute("class","controllink");}}dojo.removeClass(this.prevButton,"prevButton");dojo.removeClass(this.nextButton,"nextButton");dojo.removeClass(this.prevButton,"prevButtonDisabled");dojo.removeClass(this.nextButton,"nextButtonDisabled");dojo.addClass(this.prevButton,"prevButton");dojo.addClass(this.nextButton,"nextButton");if(this.currentIndex==0){dojo.removeClass(this.prevButton,"prevButton");dojo.removeClass(this.prevButton,"prevButtonDisabled");dojo.addClass(this.prevButton,"prevButtonDisabled");}else{if((this.currentIndex)==(this.numItems-this.numItemsInView)){dojo.removeClass(this.nextButton,"nextButton");dojo.removeClass(this.nextButton,"nextButtonDisabled");dojo.addClass(this.nextButton,"nextButtonDisabled");}}},setItemWidth:function(w){this.itemWidth=w;this.scrollMax=this.numItems*this.itemWidth;this.containerNode.style.width=this.scrollMax+"px";var _20f=this.containerNode.parentNode.offsetWidth;this.numItemsInView=Math.round(_20f/this.itemWidth);},slideTo:function(to){if(to>this.currentIndex){this.slideRight(false,to-this.currentIndex);}else{if(to<this.currentIndex){this.slideLeft(false,this.currentIndex-to);}}},slideRight:function(e,_212){if(!_212){_212=(this.carouselMode.indexOf("page")!=-1?this.numItemsInView:1);}var dest=(this.currentIndex+_212);var _214=this.numItems-this.numItemsInView;if(dest>_214){_212=_214-this.currentIndex;}if(this.currentIndex+_212<this.numItems){var _215=this.c1.offsetWidth-this.scrollMax;if(this.newLeft>_215){this.newLeft=this.newLeft-(_212*this.itemWidth);this.slide(this.newLeft);var _216=this.currentIndex;this.currentIndex+=_212;this.updateControls(_216);}}},slideLeft:function(e,_218){if(!_218){_218=(this.carouselMode.indexOf("page")!=-1?this.numItemsInView:1);}var dest=(this.currentIndex-_218);if(dest<0){_218=this.currentIndex;}if(this.newLeft<0){this.newLeft=this.newLeft+(_218*this.itemWidth);this.slide(this.newLeft);var _21a=this.currentIndex;this.currentIndex-=_218;this.updateControls(_21a);}},slide:function(_21b){var _21c=dojo.animateProperty({node:this.containerNode,duration:this.boxMixin.duration/2,properties:{left:{end:_21b,unit:"px"}}});this.animG=dojo.fx[this.animationMethod]([_21c]).play();}});}if(!dojo._hasResource["music.widget.CarouselItem"]){dojo._hasResource["music.widget.CarouselItem"]=true;dojo.provide("music.widget.CarouselItem");dojo.declare("music.widget.CarouselItem",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"CarouselItem\">\n  <div class=\"carouselscrollbox\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n",isContainer:true,postCreate:function(){var _21d=dijit.getEnclosingWidget(this.domNode.parentNode);if(!_21d.itemWidth){_21d.setItemWidth(this.containerNode.offsetWidth);}}});}
