/*
	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.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var _3=0;if(a>b||typeof a==="undefined"||a===null){_3=1;}else{if(a<b||typeof b==="undefined"||b===null){_3=-1;}}return _3;};dojo.data.util.sorter.createSortFunction=function(_4,_5){var _6=[];function createSortFunction(_7,_8){return function(_9,_a){var a=_5.getValue(_9,_7);var b=_5.getValue(_a,_7);var _d=null;if(_5.comparatorMap){if(typeof _7!=="string"){_7=_5.getIdentity(_7);}_d=_5.comparatorMap[_7]||dojo.data.util.sorter.basicComparator;}_d=_d||dojo.data.util.sorter.basicComparator;return _8*_d(a,b);};};for(var i=0;i<_4.length;i++){sortAttribute=_4[i];if(sortAttribute.attribute){var _f=(sortAttribute.descending)?-1:1;_6.push(createSortFunction(sortAttribute.attribute,_f));}}return function(_10,_11){var i=0;while(i<_6.length){var ret=_6[i++](_10,_11);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.data.util.simpleFetch.fetch=function(_14){_14=_14||{};if(!_14.store){_14.store=this;}var _15=this;var _16=function(_17,_18){if(_18.onError){var _19=_18.scope||dojo.global;_18.onError.call(_19,_17,_18);}};var _1a=function(_1b,_1c){var _1d=_1c.abort||null;var _1e=false;var _1f=_1c.start?_1c.start:0;var _20=_1c.count?(_1f+_1c.count):_1b.length;_1c.abort=function(){_1e=true;if(_1d){_1d.call(_1c);}};var _21=_1c.scope||dojo.global;if(!_1c.store){_1c.store=_15;}if(_1c.onBegin){_1c.onBegin.call(_21,_1b.length,_1c);}if(_1c.sort){_1b.sort(dojo.data.util.sorter.createSortFunction(_1c.sort,_15));}if(_1c.onItem){for(var i=_1f;(i<_1b.length)&&(i<_20);++i){var _23=_1b[i];if(!_1e){_1c.onItem.call(_21,_23,_1c);}}}if(_1c.onComplete&&!_1e){var _24=null;if(!_1c.onItem){_24=_1b.slice(_1f,_20);}_1c.onComplete.call(_21,_24,_1c);}};this._fetchItems(_14,_1a,_16);return _14;};}if(!dojo._hasResource["dojo.io.script"]){dojo._hasResource["dojo.io.script"]=true;dojo.provide("dojo.io.script");dojo.io.script={get:function(_25){var dfd=this._makeScriptDeferred(_25);var _27=dfd.ioArgs;dojo._ioAddQueryToUrl(_27);this.attach(_27.id,_27.url);dojo._ioWatch(dfd,this._validCheck,this._ioCheck,this._resHandle);return dfd;},attach:function(id,url){var _2a=dojo.doc.createElement("script");_2a.type="text/javascript";_2a.src=url;_2a.id=id;dojo.doc.getElementsByTagName("head")[0].appendChild(_2a);},remove:function(id){dojo._destroyElement(dojo.byId(id));if(this["jsonp_"+id]){delete this["jsonp_"+id];}},_makeScriptDeferred:function(_2c){var dfd=dojo._ioSetArgs(_2c,this._deferredCancel,this._deferredOk,this._deferredError);var _2e=dfd.ioArgs;_2e.id="dojoIoScript"+(this._counter++);_2e.canDelete=false;if(_2c.callbackParamName){_2e.query=_2e.query||"";if(_2e.query.length>0){_2e.query+="&";}_2e.query+=_2c.callbackParamName+"=dojo.io.script.jsonp_"+_2e.id+"._jsonpCallback";_2e.canDelete=true;dfd._jsonpCallback=this._jsonpCallback;this["jsonp_"+_2e.id]=dfd;}return dfd;},_deferredCancel:function(dfd){dfd.canceled=true;if(dfd.ioArgs.canDelete){dojo.io.script._deadScripts.push(dfd.ioArgs.id);}},_deferredOk:function(dfd){if(dfd.ioArgs.canDelete){dojo.io.script._deadScripts.push(dfd.ioArgs.id);}if(dfd.ioArgs.json){return dfd.ioArgs.json;}else{return dfd.ioArgs;}},_deferredError:function(_31,dfd){if(dfd.ioArgs.canDelete){if(_31.dojoType=="timeout"){dojo.io.script.remove(dfd.ioArgs.id);}else{dojo.io.script._deadScripts.push(dfd.ioArgs.id);}}console.debug("dojo.io.script error",_31);return _31;},_deadScripts:[],_counter:1,_validCheck:function(dfd){var _34=dojo.io.script;var _35=_34._deadScripts;if(_35&&_35.length>0){for(var i=0;i<_35.length;i++){_34.remove(_35[i]);}dojo.io.script._deadScripts=[];}return true;},_ioCheck:function(dfd){if(dfd.ioArgs.json){return true;}var _38=dfd.ioArgs.args.checkString;if(_38&&eval("typeof("+_38+") != 'undefined'")){return true;}return false;},_resHandle:function(dfd){if(dojo.io.script._ioCheck(dfd)){dfd.callback(dfd);}else{dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));}},_jsonpCallback:function(_3a){this.ioArgs.json=_3a;}};}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_3b,_3c){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 _3d=dojo.date.stamp._isoRegExp.exec(_3b);var _3e=null;if(_3d){_3d.shift();_3d[1]&&_3d[1]--;_3d[6]&&(_3d[6]*=1000);if(_3c){_3c=new Date(_3c);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_3f){return _3c["get"+_3f]();}).forEach(function(_40,_41){if(_3d[_41]===undefined){_3d[_41]=_40;}});}_3e=new Date(_3d[0]||1970,_3d[1]||0,_3d[2]||0,_3d[3]||0,_3d[4]||0,_3d[5]||0,_3d[6]||0);var _42=0;var _43=_3d[7]&&_3d[7].charAt(0);if(_43!="Z"){_42=((_3d[8]||0)*60)+(Number(_3d[9])||0);if(_43!="-"){_42*=-1;}}if(_43){_42-=_3e.getTimezoneOffset();}if(_42){_3e.setTime(_3e.getTime()+_42*60000);}}return _3e;};dojo.date.stamp.toISOString=function(_44,_45){var _=function(n){return (n<10)?"0"+n:n;};_45=_45||{};var _48=[];var _49=_45.zulu?"getUTC":"get";var _4a="";if(_45.selector!="time"){_4a=[_44[_49+"FullYear"](),_(_44[_49+"Month"]()+1),_(_44[_49+"Date"]())].join("-");}_48.push(_4a);if(_45.selector!="date"){var _4b=[_(_44[_49+"Hours"]()),_(_44[_49+"Minutes"]()),_(_44[_49+"Seconds"]())].join(":");var _4c=_44[_49+"Milliseconds"]();if(_45.milliseconds){_4b+="."+(_4c<100?"0":"")+_(_4c);}if(_45.zulu){_4b+="Z";}else{if(_45.selector!="time"){var _4d=_44.getTimezoneOffset();var _4e=Math.abs(_4d);_4b+=(_4d>0?"-":"+")+_(Math.floor(_4e/60))+":"+_(_4e%60);}}_48.push(_4b);}return _48.join("T");};}if(!dojo._hasResource["dojox.data.FlickrStore"]){dojo._hasResource["dojox.data.FlickrStore"]=true;dojo.provide("dojox.data.FlickrStore");dojo.declare("dojox.data.FlickrStore",null,{constructor:function(_4f){if(_4f&&_4f.label){this.label=_4f.label;}},_flickrUrl:"http://api.flickr.com/services/feeds/photos_public.gne",_storeRef:"_S",label:"title",_assertIsItem:function(_50){if(!this.isItem(_50)){throw new Error("dojox.data.FlickrStore: a function was passed an item argument that was not an item");}},_assertIsAttribute:function(_51){if(typeof _51!=="string"){throw new Error("dojox.data.FlickrStore: a function was passed an attribute argument that was not an attribute name string");}},getFeatures:function(){return {"dojo.data.api.Read":true};},getValue:function(_52,_53){var _54=this.getValues(_52,_53);if(_54){return _54[0];}return undefined;},getAttributes:function(_55){return ["title","description","author","datePublished","dateTaken","imageUrl","imageUrlSmall","imageUrlMedium","tags","link"];},hasAttribute:function(_56,_57){if(this.getValue(_56,_57)){return true;}return false;},isItemLoaded:function(_58){return this.isItem(_58);},loadItem:function(_59){},getLabel:function(_5a){return this.getValue(_5a,this.label);},getLabelAttributes:function(_5b){return [this.label];},containsValue:function(_5c,_5d,_5e){var _5f=this.getValues(_5c,_5d);for(var i=0;i<_5f.length;i++){if(_5f[i]===_5e){return true;}}return false;},getValues:function(_61,_62){this._assertIsItem(_61);this._assertIsAttribute(_62);if(_62==="title"){return [this._unescapeHtml(_61.title)];}else{if(_62==="author"){return [this._unescapeHtml(_61.author)];}else{if(_62==="datePublished"){return [dojo.date.stamp.fromISOString(_61.published)];}else{if(_62==="dateTaken"){return [dojo.date.stamp.fromISOString(_61.date_taken)];}else{if(_62==="imageUrlSmall"){return [_61.media.m.replace(/_m\./,"_s.")];}else{if(_62==="imageUrl"){return [_61.media.m.replace(/_m\./,".")];}else{if(_62==="imageUrlMedium"){return [_61.media.m];}else{if(_62==="link"){return [_61.link];}else{if(_62==="tags"){return _61.tags.split(" ");}else{if(_62==="description"){return [this._unescapeHtml(_61.description)];}}}}}}}}}}return undefined;},isItem:function(_63){if(_63&&_63[this._storeRef]===this){return true;}return false;},close:function(_64){},_fetchItems:function(_65,_66,_67){if(!_65.query){_65.query={};}var _68={format:"json",tagmode:"any"};if(_65.query.tags){_68.tags=_65.query.tags;}if(_65.query.tagmode){_68.tagmode=_65.query.tagmode;}if(_65.query.userid){_68.id=_65.query.userid;}if(_65.query.userids){_68.ids=_65.query.userids;}if(_65.query.lang){_68.lang=_65.query.lang;}var _69=this;var _6a=null;var _6b={url:this._flickrUrl,preventCache:true,content:_68};var _6c=function(_6d){if(_6a!==null){dojo.disconnect(_6a);}_66(_69._processFlickrData(_6d),_65);};_6a=dojo.connect("jsonFlickrFeed",_6c);var _6e=dojo.io.script.get(_6b);_6e.addErrback(function(_6f){dojo.disconnect(_6a);_67(_6f,_65);});},_processFlickrData:function(_70){var _71=[];if(_70.items){_71=_70.items;for(var i=0;i<_70.items.length;i++){var _73=_70.items[i];_73[this._storeRef]=this;}}return _71;},_unescapeHtml:function(str){str=str.replace(/&amp;/gm,"&").replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,"\"");str=str.replace(/&#39;/gm,"'");return str;}});dojo.extend(dojox.data.FlickrStore,dojo.data.util.simpleFetch);if(!jsonFlickrFeed){var jsonFlickrFeed=function(_75){};}}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 _8d=n.scrollLeft,_8e=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(dx||dy){console.debug(_8d+", "+_8e+"\n"+dx+", "+dy+"\n"+n.scrollLeft+", "+n.scrollTop);}if(_8d!=n.scrollLeft||_8e!=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(_8f,e,_91){this.node=dojo.byId(_8f);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_91,d=_8f.ownerDocument,_94=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"),_94];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(_9a,_9b){this.node=dojo.byId(_9a);if(!_9b){_9b={};}this.handle=_9b.handle?dojo.byId(_9b.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_9b.delay>0?_9b.delay:0;this.skip=_9b.skip;this.mover=_9b.mover?_9b.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.connect(this.node,"onselectstart",this,"onSelectStart")];},markupFactory:function(_9c,_9d){return new dojo.dnd.Moveable(_9d,_9c);},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(_a2){dojo.publish("/dnd/move/start",[_a2]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_a3){dojo.publish("/dnd/move/stop",[_a3]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_a4){},onMove:function(_a5,_a6){this.onMoving(_a5,_a6);dojo.marginBox(_a5.node,_a6);this.onMoved(_a5,_a6);},onMoving:function(_a7,_a8){},onMoved:function(_a9,_aa){}});}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(_ab,_ac){return new dojo.dnd.move.constrainedMoveable(_ac,_ab);},constructor:function(_ad,_ae){if(!_ae){_ae={};}this.constraints=_ae.constraints;this.within=_ae.within;},onFirstMove:function(_af){var c=this.constraintBox=this.constraints.call(this,_af),m=_af.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(_b2,_b3){var c=this.constraintBox;_b3.l=_b3.l<c.l?c.l:c.r<_b3.l?c.r:_b3.l;_b3.t=_b3.t<c.t?c.t:c.b<_b3.t?c.b:_b3.t;dojo.marginBox(_b2.node,_b3);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_b5,_b6){return new dojo.dnd.move.boxConstrainedMoveable(_b6,_b5);},constructor:function(_b7,_b8){var box=_b8&&_b8.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_ba,_bb){return new dojo.dnd.move.parentConstrainedMoveable(_bb,_ba);},constructor:function(_bc,_bd){var _be=_bd&&_bd.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_be=="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(_be=="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(_be=="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,_c4){var _c5=function(_c6,e,_c8){dojo.dnd.Mover.call(this,_c6,e,_c8);};dojo.extend(_c5,dojo.dnd.Mover.prototype);dojo.extend(_c5,{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-(_c4?m.w:0);c.b=c.t+c.h-(_c4?m.h:0);}});return _c5;};dojo.dnd.move.boxConstrainedMover=function(box,_d1){return dojo.dnd.move.constrainedMover(function(){return box;},_d1);};dojo.dnd.move.parentConstrainedMover=function(_d2,_d3){var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_d2=="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(_d2=="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(_d2=="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,_d3);};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(_d9){var _da=_d9.shift();var _db=_da;dojo.forEach(_d9,function(_dc){dojo.connect(_db,"onEnd",_dc,"play");_db=_dc;});return _da;};dojo.fx.combine=function(_dd){var ctr=new dojo._Animation({curve:[0,1]});if(!_dd.length){return ctr;}ctr.duration=_dd[0].duration;dojo.forEach(_dd,function(_df){dojo.forEach(["play","pause","stop"],function(e){if(_df[e]){dojo.connect(ctr,e,_df,e);}});});return ctr;};dojo.declare("dojo.fx.Toggler",null,{constructor:function(_e1){var _t=this;dojo.mixin(_t,_e1);_t.node=_e1.node;_t._showArgs=dojo.mixin({},_e1);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},_e1);_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(_e3){return this.showAnim.play(_e3||0);},hide:function(_e4){return this.hideAnim.play(_e4||0);}});dojo.fx.wipeIn=function(_e5){_e5.node=dojo.byId(_e5.node);var _e6=_e5.node,s=_e6.style;var _e8=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 _e9=dojo.style(_e6,"height");return Math.max(_e9,1);}},end:function(){return _e6.scrollHeight;}}}},_e5));dojo.connect(_e8,"onEnd",function(){s.height="auto";});return _e8;};dojo.fx.wipeOut=function(_ea){var _eb=_ea.node=dojo.byId(_ea.node);var s=_eb.style;var _ed=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},_ea));dojo.connect(_ed,"beforeBegin",function(){s.overflow="hidden";s.display="";});dojo.connect(_ed,"onEnd",function(){s.height="auto";s.display="none";});return _ed;};dojo.fx.slideTo=function(_ee){var _ef=(_ee.node=dojo.byId(_ee.node));var top=null;var _f1=null;var _f2=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_f1=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;_f1=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_f1+"px";}};})(_ef);_f2();var _f7=dojo.animateProperty(dojo.mixin({properties:{top:{end:_ee.top||0},left:{end:_ee.left||0}}},_ee));dojo.connect(_f7,"beforeBegin",_f7,_f2);return _f7;};}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 _f8=dojo.global;var _f9=dojo.doc;if(_f9.selection){return !_f9.selection.createRange().text;}else{if(_f8.getSelection){var _fa=_f8.getSelection();if(dojo.isString(_fa)){return !_fa;}else{return _fa.isCollapsed||!_fa.toString();}}}},getBookmark:function(){var _fb,_fc=dojo.doc.selection;if(_fc){var _fd=_fc.createRange();if(_fc.type.toUpperCase()=="CONTROL"){_fb=_fd.length?dojo._toArray(_fd):null;}else{_fb=_fd.getBookmark();}}else{if(dojo.global.getSelection){_fc=dojo.global.getSelection();if(_fc){var _fd=_fc.getRangeAt(0);_fb=_fd.cloneRange();}}else{console.debug("No idea how to store the current selection for this browser!");}}return _fb;},moveToBookmark:function(_fe){var _ff=dojo.doc;if(_ff.selection){var _100;if(dojo.isArray(_fe)){_100=_ff.body.createControlRange();dojo.forEach(_fe,_100.addElement);}else{_100=_ff.selection.createRange();_100.moveToBookmark(_fe);}_100.select();}else{var _101=dojo.global.getSelection&&dojo.global.getSelection();if(_101&&_101.removeAllRanges){_101.removeAllRanges();_101.addRange(_fe);}else{console.debug("No idea how to restore selection for this browser!");}}},getFocus:function(menu,_103){return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_103||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_103||dojo.global,dijit.getBookmark):null,openedForWindow:_103};},focus:function(_104){if(!_104){return;}var node="node" in _104?_104.node:_104,_106=_104.bookmark,_107=_104.openedForWindow;if(node){var _108=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_108&&_108.focus){try{_108.focus();}catch(e){}}dijit._onFocusNode(node);}if(_106&&dojo.withGlobal(_107||dojo.global,dijit.isCollapsed)){if(_107){_107.focus();}try{dojo.withGlobal(_107||dojo.global,moveToBookmark,null,[_106]);}catch(e){}}},_activeStack:[],registerWin:function(_109){if(!_109){_109=window;}dojo.connect(_109.document,"onmousedown",null,function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var body=_109.document.body||_109.document.getElementsByTagName("body")[0];if(body){if(dojo.isIE){body.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});body.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{body.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);body.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}body=null;},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;var w=dijit.getEnclosingWidget(node);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(node){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _113=[];try{while(node){if(node.dijitPopupParent){node=dijit.byId(node.dijitPopupParent).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.query("iframe").filter(function(_114){return _114.contentDocument.body===node;})[0];}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){_113.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_113);},_onFocusNode:function(node){if(node&&node.tagName&&node.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}dijit._prevFocus=dijit._curFocus;dijit._curFocus=node;dojo.publish("focusNode",[node]);var w=dijit.getEnclosingWidget(node);if(w&&w._setStateClass){w._focused=true;w._setStateClass();}},_setStack:function(_118){var _119=dijit._activeStack;dijit._activeStack=_118;for(var _11a=0;_11a<Math.min(_119.length,_118.length);_11a++){if(_119[_11a]!=_118[_11a]){break;}}for(var i=_119.length-1;i>=_11a;i--){var _11c=dijit.byId(_119[i]);if(_11c){dojo.publish("widgetBlur",[_11c]);if(_11c._onBlur){_11c._onBlur();}}}for(var i=_11a;i<_118.length;i++){var _11c=dijit.byId(_118[i]);if(_11c){dojo.publish("widgetFocus",[_11c]);if(_11c._onFocus){_11c._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(_11d){if(this._hash[_11d.id]){throw new Error("Tried to register widget with id=="+_11d.id+" but that id is already registered");}this._hash[_11d.id]=_11d;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(_121){var res=new dijit.WidgetSet();this.forEach(function(_123){if(_121(_123)){res.add(_123);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_126){return _126.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_127){var id;do{id=_127+"_"+(dijit._widgetTypeCtr[_127]!==undefined?++dijit._widgetTypeCtr[_127]:dijit._widgetTypeCtr[_127]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_129){_129.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(node){while(node){if(node.getAttribute&&node.getAttribute("widgetId")){return dijit.registry.byId(node.getAttribute("widgetId"));}node=node.parentNode;}return null;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _12d=dojo.global;var _12e=dojo.doc;var w=0,h=0;if(dojo.isMozilla){var minw,minh,maxw,maxh;if(_12e.body.clientWidth>_12e.documentElement.clientWidth){minw=_12e.documentElement.clientWidth;maxw=_12e.body.clientWidth;}else{maxw=_12e.documentElement.clientWidth;minw=_12e.body.clientWidth;}if(_12e.body.clientHeight>_12e.documentElement.clientHeight){minh=_12e.documentElement.clientHeight;maxh=_12e.body.clientHeight;}else{maxh=_12e.documentElement.clientHeight;minh=_12e.body.clientHeight;}w=(maxw>_12d.innerWidth)?minw:maxw;h=(maxh>_12d.innerHeight)?minh:maxh;}else{if(!dojo.isOpera&&_12d.innerWidth){w=_12d.innerWidth;h=_12d.innerHeight;}else{if(dojo.isIE&&_12e.documentElement&&_12e.documentElement.clientHeight){w=_12e.documentElement.clientWidth;h=_12e.documentElement.clientHeight;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _135=dojo._docScroll();return {w:w,h:h,l:_135.x,t:_135.y};};dijit.placeOnScreen=function(node,pos,_138,_139){var _13a=dojo.map(_138,function(_13b){return {corner:_13b,pos:pos};});return dijit._place(node,_13a);};dijit._place=function(node,_13d,_13e){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;for(var i=0;i<_13d.length;i++){var _142=_13d[i].corner;var pos=_13d[i].pos;if(_13e){_13e(_142);}var _144=node.style.display;var _145=node.style.visibility;node.style.visibility="hidden";node.style.display="";var mb=dojo.marginBox(node);node.style.display=_144;node.style.visibility=_145;var _147=(_142.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_148=(_142.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_142.charAt(1)=="L"?Math.min(view.l+view.w,_147+mb.w):pos.x),endY=(_142.charAt(0)=="T"?Math.min(view.t+view.h,_148+mb.h):pos.y),_14b=endX-_147,_14c=endY-_148,_14d=(mb.w-_14b)+(mb.h-_14c);if(best==null||_14d<best.overflow){best={corner:_142,aroundCorner:_13d[i].aroundCorner,x:_147,y:_148,w:_14b,h:_14c,overflow:_14d};}if(_14d==0){break;}}node.style.left=best.x+"px";node.style.top=best.y+"px";return best;};dijit.placeOnScreenAroundElement=function(node,_14f,_150,_151){_14f=dojo.byId(_14f);var _152=_14f.style.display;_14f.style.display="";var _153=_14f.offsetWidth;var _154=_14f.offsetHeight;var _155=dojo.coords(_14f,true);_14f.style.display=_152;var _156=[];for(var _157 in _150){_156.push({aroundCorner:_157,corner:_150[_157],pos:{x:_155.x+(_157.charAt(1)=="L"?0:_153),y:_155.y+(_157.charAt(0)=="T"?0:_154)}});}return dijit._place(node,_156,_151);};}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 _15d=[],_15e=1000,_15f=1;this.open=function(args){var _161=args.popup,_162=args.orient||{"BL":"TL","TL":"BL"},_163=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_15f++);var _165=dojo.doc.createElement("div");_165.id=id;_165.className="dijitPopup";_165.style.zIndex=_15e+_15d.length;_165.style.visibility="hidden";if(args.parent){_165.dijitPopupParent=args.parent.id;}dojo.body().appendChild(_165);_161.domNode.style.display="";_165.appendChild(_161.domNode);var _166=new dijit.BackgroundIframe(_165);var best=_163?dijit.placeOnScreenAroundElement(_165,_163,_162,_161.orient?dojo.hitch(_161,"orient"):null):dijit.placeOnScreen(_165,args,_162=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_165.style.visibility="visible";var _168=[];function getTopPopup(){for(var pi=_15d.length-1;pi>0&&_15d[pi].parent===_15d[pi-1].widget;pi--){}return _15d[pi];};_168.push(dojo.connect(_165,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&args.onCancel){args.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _16b=getTopPopup();if(_16b&&_16b.onCancel){_16b.onCancel();}}}}));if(_161.onCancel){_168.push(dojo.connect(_161,"onCancel",null,args.onCancel));}_168.push(dojo.connect(_161,_161.onExecute?"onExecute":"onChange",null,function(){var _16c=getTopPopup();if(_16c&&_16c.onExecute){_16c.onExecute();}}));_15d.push({wrapper:_165,iframe:_166,widget:_161,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_168});if(_161.onOpen){_161.onOpen(best);}return best;};this.close=function(_16d){while(dojo.some(_15d,function(elem){return elem.widget==_16d;})){var top=_15d.pop(),_170=top.wrapper,_171=top.iframe,_172=top.widget,_173=top.onClose;if(_172.onClose){_172.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_172||!_172.domNode){return;}dojo.style(_172.domNode,"display","none");dojo.body().appendChild(_172.domNode);_171.destroy();dojo._destroyElement(_170);if(_173){_173();}}};}();dijit._frames=new function(){var _174=[];this.pop=function(){var _175;if(_174.length){_175=_174.pop();_175.style.display="";}else{if(dojo.isIE){var html="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_175=dojo.doc.createElement(html);}else{var _175=dojo.doc.createElement("iframe");_175.src="javascript:\"\"";_175.className="dijitBackgroundIframe";}_175.tabIndex=-1;dojo.body().appendChild(_175);}return _175;};this.push=function(_177){_177.style.display="";if(dojo.isIE){_177.style.removeExpression("width");_177.style.removeExpression("height");}_174.push(_177);};}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _17a=dijit._frames.pop();node.appendChild(_17a);if(dojo.isIE){_17a.style.setExpression("width","document.getElementById('"+node.id+"').offsetWidth");_17a.style.setExpression("height","document.getElementById('"+node.id+"').offsetHeight");}this.iframe=_17a;}};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(node){if(dojo.isIE){if(dojo.marginBox(node.parentNode).h<=node.parentNode.scrollHeight){node.scrollIntoView(false);}}else{if(dojo.isMozilla){node.scrollIntoView(false);}else{var _17c=node.parentNode;var _17d=_17c.scrollTop+dojo.marginBox(_17c).h;var _17e=node.offsetTop+dojo.marginBox(node).h;if(_17d<_17e){_17c.scrollTop+=(_17e-_17d);}else{if(_17c.scrollTop>node.offsetTop){_17c.scrollTop-=(_17c.scrollTop-node.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 _181=d.isOpera;var maj=Math.floor;var _183={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_181,dj_opera8:maj(_181)==8,dj_opera9:maj(_181)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla};for(var p in _183){if(_183[p]){var html=dojo.doc.documentElement;if(html.className){html.className+=" "+p;}else{html.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,_187,node,_189,obj,_18b,_18c){if(obj!=this._obj){this.stop();this._initialDelay=_18c||500;this._subsequentDelay=_18b||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_187,_189);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,_18e,_18f,_190,_191,_192){return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.keyCode==_18e.keyCode&&(!_18e.charCode||_18e.charCode==evt.charCode)&&(_18e.ctrlKey===undefined||_18e.ctrlKey==evt.ctrlKey)&&(_18e.altKey===undefined||_18e.altKey==evt.ctrlKey)&&(_18e.shiftKey===undefined||_18e.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_18e,_18f,node,_190,_18e,_191,_192);}else{if(dijit.typematic._obj==_18e){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_18e){dijit.typematic.stop();}})];},addMouseListener:function(node,_196,_197,_198,_199){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_196,node,_197,node,_198,_199);}),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,_196,node,_197,node,_198,_199);setTimeout(dijit.typematic.stop,50);}})];},addListener:function(_1a0,_1a1,_1a2,_1a3,_1a4,_1a5,_1a6){return this.addKeyListener(_1a1,_1a2,_1a3,_1a4,_1a5,_1a6).concat(this.addMouseListener(_1a0,_1a3,_1a4,_1a5,_1a6));}};}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 _1a9=cs.backgroundImage;var _1aa=(cs.borderTopColor==cs.borderRightColor)||(_1a9!=null&&(_1a9=="none"||_1a9=="url(invalid-url:)"));dojo[_1aa?"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(elem){if(elem.hasAttribute){return elem.hasAttribute("role");}else{return elem.getAttribute("role")?true:false;}},getWaiRole:function(elem){var _1ad=elem.getAttribute("role");if(_1ad){var _1ae=_1ad.indexOf(":");return _1ae==-1?_1ad:_1ad.substring(_1ae+1);}else{return "";}},setWaiRole:function(elem,role){if(dojo.isFF&&dojo.isFF<3){elem.setAttribute("role","wairole:"+role);}else{elem.setAttribute("role",role);}},removeWaiRole:function(elem){elem.removeAttribute("role");},hasWaiState:function(elem,_1b3){if(dojo.isFF&&dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1b3);}else{if(elem.hasAttribute){return elem.hasAttribute("aria-"+_1b3);}else{return elem.getAttribute("aria-"+_1b3)?true:false;}}},getWaiState:function(elem,_1b5){if(dojo.isFF&&dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1b5);}else{var _1b6=elem.getAttribute("aria-"+_1b5);return _1b6?_1b6:"";}},setWaiState:function(elem,_1b8,_1b9){if(dojo.isFF&&dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_1b8,_1b9);}else{elem.setAttribute("aria-"+_1b8,_1b9);}},removeWaiState:function(elem,_1bb){if(dojo.isFF&&dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_1bb);}else{elem.removeAttribute("aria-"+_1bb);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_1bc,_1bd){this.create(_1bc,_1bd);},create:function(_1be,_1bf){this.srcNodeRef=dojo.byId(_1bf);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_1be){dojo.mixin(this,_1be);}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 _1c1=this[this.attributeMap[attr]||"domNode"];var _1c2=this[attr];if(typeof _1c2!="object"&&(_1c2!==""||(_1be&&_1be[attr]))){switch(attr){case "class":dojo.addClass(_1c1,_1c2);break;case "style":if(_1c1.style.cssText){_1c1.style.cssText+="; "+_1c2;}else{_1c1.style.cssText=_1c2;}break;default:_1c1.setAttribute(attr,_1c2);}}}}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(_1c3){this.destroyDescendants();this.destroy();},destroy:function(_1c4){this.uninitialize();dojo.forEach(this._connects,function(_1c5){dojo.forEach(_1c5,dojo.disconnect);});this.destroyRendering(_1c4);dijit.registry.remove(this.id);},destroyRendering:function(_1c6){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(_1c7){_1c7.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,_1ca,_1cb){var _1cc=[];if(_1ca=="ondijitclick"){var w=this;if(!this.nodesWithKeyClick[obj.nodeName]){_1cc.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_1cb))?w[_1cb](e):_1cb.call(w,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_1cc.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_1cb)?w[_1cb](e):_1cb.call(w,e);}}));}_1ca="onclick";}_1cc.push(dojo.connect(obj,_1ca,this,_1cb));this._connects.push(_1cc);return _1cc;},disconnect:function(_1d0){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1d0){dojo.forEach(_1d0,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(typeof this._ltr=="undefined"){this._ltr=dojo.getComputedStyle(this.domNode).direction!="rtl";}return this._ltr;},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length<size){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function(_1d7,map,_1d9,_1da){return _1d7.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1db,key,_1dd){var _1de=dojo.getObject(key,false,map);if(_1dd){_1de=dojo.getObject(_1dd,false,_1da)(_1de);}if(_1d9){_1de=_1d9(_1de,key);}return _1de.toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;function val2type(_1e2){if(d.isString(_1e2)){return "string";}if(typeof _1e2=="number"){return "number";}if(typeof _1e2=="boolean"){return "boolean";}if(d.isFunction(_1e2)){return "function";}if(d.isArray(_1e2)){return "array";}if(_1e2 instanceof Date){return "date";}if(_1e2 instanceof d._Url){return "url";}return "object";};function str2obj(_1e3,type){switch(type){case "string":return _1e3;case "number":return _1e3.length?Number(_1e3):NaN;case "boolean":return typeof _1e3=="boolean"?_1e3:!(_1e3.toLowerCase()=="false");case "function":if(d.isFunction(_1e3)){_1e3=_1e3.toString();_1e3=d.trim(_1e3.substring(_1e3.indexOf("{")+1,_1e3.length-1));}try{if(_1e3.search(/[^\w\.]+/i)!=-1){_1e3=d.parser._nameAnonFunc(new Function(_1e3),this);}return d.getObject(_1e3,false);}catch(e){return new Function();}case "array":return _1e3.split(/\s*,\s*/);case "date":switch(_1e3){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_1e3);}case "url":return d.baseUrl+_1e3;default:return d.fromJson(_1e3);}};var _1e5={};function getClassInfo(_1e6){if(!_1e5[_1e6]){var cls=d.getObject(_1e6);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_1e6+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _1e8=cls.prototype;var _1e9={};for(var name in _1e8){if(name.charAt(0)=="_"){continue;}var _1eb=_1e8[name];_1e9[name]=val2type(_1eb);}_1e5[_1e6]={cls:cls,params:_1e9};}return _1e5[_1e6];};this._functionFromScript=function(_1ec){var _1ed="";var _1ee="";var _1ef=_1ec.getAttribute("args");if(_1ef){d.forEach(_1ef.split(/\s*,\s*/),function(part,idx){_1ed+="var "+part+" = arguments["+idx+"]; ";});}var _1f2=_1ec.getAttribute("with");if(_1f2&&_1f2.length){d.forEach(_1f2.split(/\s*,\s*/),function(part){_1ed+="with("+part+"){";_1ee+="}";});}return new Function(_1ed+_1ec.innerHTML+_1ee);};this.instantiate=function(_1f4){var _1f5=[];d.forEach(_1f4,function(node){if(!node){return;}var type=node.getAttribute("dojoType");if((!type)||(!type.length)){return;}var _1f8=getClassInfo(type);var _1f9=_1f8.cls;var ps=_1f9._noScript||_1f9.prototype._noScript;var _1fb={};var _1fc=node.attributes;for(var name in _1f8.params){var item=_1fc.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _1ff=item.value;switch(name){case "class":_1ff=node.className;break;case "style":_1ff=node.style&&node.style.cssText;}var _200=_1f8.params[name];_1fb[name]=str2obj(_1ff,_200);}if(!ps){var _201=[],_202=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_203){var _204=_203.getAttribute("event"),type=_203.getAttribute("type"),nf=d.parser._functionFromScript(_203);if(_204){if(type=="dojo/connect"){_201.push({event:_204,func:nf});}else{_1fb[_204]=nf;}}else{_202.push(nf);}});}var _206=_1f9["markupFactory"];if(!_206&&_1f9["prototype"]){_206=_1f9.prototype["markupFactory"];}var _207=_206?_206(_1fb,node,_1f9):new _1f9(_1fb,node);_1f5.push(_207);var _208=node.getAttribute("jsId");if(_208){d.setObject(_208,_207);}if(!ps){dojo.forEach(_201,function(_209){dojo.connect(_207,_209.event,null,_209.func);});dojo.forEach(_202,function(func){func.call(_207);});}});d.forEach(_1f5,function(_20b){if(_20b&&(_20b.startup)&&((!_20b.getParent)||(!_20b.getParent()))){_20b.startup();}});return _1f5;};this.parse=function(_20c){var list=d.query("[dojoType]",_20c);var _20e=this.instantiate(list);return _20e;};}();(function(){var _20f=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,_20f);}else{dojo._loaders.unshift(_20f);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_210,_211){var jpn="$joinpoint";var nso=(_211||dojo.parser._anon);if(dojo.isIE){var cn=_210["__dojoNameCache"];if(cn&&nso[cn]===_210){return _210["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_210;return ret;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,_skipNodeCache:false,buildRendering:function(){var _216=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_216)){var _218=this.declaredClass,_219=this;var tstr=dojo.string.substitute(_216,this,function(_21b,key){if(key.charAt(0)=="!"){_21b=_219[key.substr(1)];}if(typeof _21b=="undefined"){throw new Error(_218+" template:"+key);}if(!_21b){return "";}return key.charAt(0)=="!"?_21b:_21b.toString().replace(/"/g,"&quot;");},this);node=dijit._Templated._createNodesFromText(tstr)[0];}else{node=_216.cloneNode(true);}this._attachTemplateNodes(node);var _21d=this.srcNodeRef;if(_21d&&_21d.parentNode){_21d.parentNode.replaceChild(node,_21d);}this.domNode=node;if(this.widgetsInTemplate){var _21e=dojo.parser.parse(node);this._attachTemplateNodes(_21e,function(n,p){return n[p];});}this._fillContent(_21d);},_fillContent:function(_221){var dest=this.containerNode;if(_221&&dest){while(_221.hasChildNodes()){dest.appendChild(_221.firstChild);}}},_attachTemplateNodes:function(_223,_224){_224=_224||function(n,p){return n.getAttribute(p);};var _227=dojo.isArray(_223)?_223:(_223.all||_223.getElementsByTagName("*"));var x=dojo.isArray(_223)?0:-1;for(;x<_227.length;x++){var _229=(x==-1)?_223:_227[x];if(this.widgetsInTemplate&&_224(_229,"dojoType")){continue;}var _22a=_224(_229,"dojoAttachPoint");if(_22a){var _22b,_22c=_22a.split(/\s*,\s*/);while(_22b=_22c.shift()){if(dojo.isArray(this[_22b])){this[_22b].push(_229);}else{this[_22b]=_229;}}}var _22d=_224(_229,"dojoAttachEvent");if(_22d){var _22e,_22f=_22d.split(/\s*,\s*/);var trim=dojo.trim;while(_22e=_22f.shift()){if(_22e){var _231=null;if(_22e.indexOf(":")!=-1){var _232=_22e.split(":");_22e=trim(_232[0]);_231=trim(_232[1]);}else{_22e=trim(_22e);}if(!_231){_231=_22e;}this.connect(_229,_22e,_231);}}}var role=_224(_229,"waiRole");if(role){dijit.setWaiRole(_229,role);}var _234=_224(_229,"waiState");if(_234){dojo.forEach(_234.split(/\s*,\s*/),function(_235){if(_235.indexOf("-")!=-1){var pair=_235.split("-");dijit.setWaiState(_229,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_237,_238,_239){var _23a=dijit._Templated._templateCache;var key=_238||_237;var _23c=_23a[key];if(_23c){return _23c;}if(!_238){_238=dijit._Templated._sanitizeTemplateString(dojo._getText(_237));}_238=dojo.string.trim(_238);if(_238.match(/\$\{([^\}]+)\}/g)||_239){return (_23a[key]=_238);}else{return (_23a[key]=dijit._Templated._createNodesFromText(_238)[0]);}};dijit._Templated._sanitizeTemplateString=function(_23d){if(_23d){_23d=_23d.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _23e=_23d.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_23e){_23d=_23e[1];}}else{_23d="";}return _23d;};if(dojo.isIE){dojo.addOnUnload(function(){var _23f=dijit._Templated._templateCache;for(var key in _23f){var _241=_23f[key];if(!isNaN(_241.nodeType)){dojo._destroyElement(_241);}_23f[key]=null;}});}(function(){var _242={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 _245="none";var _246=text.replace(/^\s+/,"");for(var type in _242){var map=_242[type];if(map.re.test(_246)){_245=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_245];var _24a=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _24b=[];while(_24a.firstChild){_24b.push(_24a.removeChild(_24a.firstChild));}tn.innerHTML="";return _24b;};})();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 _24e=dijit.byId(id);return _24e.isContainer?_24e:null;}}return null;},_getSibling:function(_24f){var node=this.domNode;do{node=node[_24f+"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(_252,_253){if(_253===undefined){_253="last";}var _254=this.containerNode||this.domNode;if(_253&&typeof _253=="number"){var _255=dojo.query("> [widgetid]",_254);if(_255&&_255.length>=_253){_254=_255[_253-1];_253="after";}}dojo.place(_252.domNode,_254,_253);if(this._started&&!_252._started){_252.startup();}},removeChild:function(_256){var node=_256.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(_25b,dir){var node=_25b.domNode;var _25e=(dir>0?"nextSibling":"previousSibling");do{node=node[_25e];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_25f,_260){var _261=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_25f,function(code){_261[code]=prev;});dojo.forEach(_260,function(code){_261[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(_266,_267){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._setTabIndexMinusOne(_266);},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 _268=this._getNextFocusableChild(this.focusedChild,1);if(_268.getFocalNodes){this.focusChild(_268,_268.getFocalNodes()[0]);}else{this.focusChild(_268);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _269=this._getNextFocusableChild(this.focusedChild,-1);if(_269.getFocalNodes){var _26a=_269.getFocalNodes();this.focusChild(_269,_26a[_26a.length-1]);}else{this.focusChild(_269);}},focusChild:function(_26b,node){if(_26b){if(this.focusedChild&&_26b!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_26b;if(node&&_26b.focusFocalNode){_26b.focusFocalNode(node);}else{_26b.focus();}}},_setTabIndexMinusOne:function(_26d){if(_26d.getFocalNodes){dojo.forEach(_26d.getFocalNodes(),function(node){node.setAttribute("tabIndex",-1);});}else{(_26d.focusNode||_26d.domNode).setAttribute("tabIndex",-1);}},_onContainerFocus:function(evt){this.domNode.setAttribute("tabIndex",-1);if(evt.target===this.domNode){this.focusFirstChild();}else{var _270=dijit.getEnclosingWidget(evt.target);if(_270&&_270.isFocusable()){this.focusedChild=_270;}}},_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(_274){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_275,dir){if(_275){_275=this._getSiblingOfChild(_275,dir);}var _277=this.getChildren();for(var i=0;i<_277.length;i++){if(!_275){_275=_277[(dir>0)?0:(_277.length-1)];}if(_275.isFocusable()){return _275;}_275=this._getSiblingOfChild(_275,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(_279){_279.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 _282=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_285,dim){_285.resize?_285.resize(dim):dojo.marginBox(_285.domNode,dim);dojo.mixin(_285,dojo.marginBox(_285.domNode));dojo.mixin(_285,dim);};dijit.layout.layoutChildren=function(_287,dim,_289){dim=dojo.mixin({},dim);dojo.addClass(_287,"dijitLayoutContainer");_289=dojo.filter(_289,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_289,function(item){return item.layoutAlign=="client";}));dojo.forEach(_289,function(_28c){var elm=_28c.domNode,pos=_28c.layoutAlign;var _28f=elm.style;_28f.left=dim.l+"px";_28f.top=dim.t+"px";_28f.bottom=_28f.right="auto";dojo.addClass(elm,"dijitAlign"+_282(pos));if(pos=="top"||pos=="bottom"){size(_28c,{w:dim.w});dim.h-=_28c.h;if(pos=="top"){dim.t+=_28c.h;}else{_28f.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_28c,{h:dim.h});dim.w-=_28c.w;if(pos=="left"){dim.l+=_28c.w;}else{_28f.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_28c,dim);}}}});};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_290,_291,_292){_292=dojo.i18n.normalizeLocale(_292);var _293=_292.split("-");var _294=[_290,"nls",_291].join(".");var _295=dojo._loadedModules[_294];if(_295){var _296;for(var i=_293.length;i>0;i--){var loc=_293.slice(0,i).join("_");if(_295[loc]){_296=_295[loc];break;}}if(!_296){_296=_295.ROOT;}if(_296){var _299=function(){};_299.prototype=_296;return new _299();}}throw new Error("Bundle not found: "+_291+" in "+_290+" , locale="+_292);};dojo.i18n.normalizeLocale=function(_29a){var _29b=_29a?_29a.toLowerCase():dojo.locale;if(_29b=="root"){_29b="ROOT";}return _29b;};dojo.i18n._requireLocalization=function(_29c,_29d,_29e,_29f){var _2a0=dojo.i18n.normalizeLocale(_29e);var _2a1=[_29c,"nls",_29d].join(".");var _2a2="";if(_29f){var _2a3=_29f.split(",");for(var i=0;i<_2a3.length;i++){if(_2a0.indexOf(_2a3[i])==0){if(_2a3[i].length>_2a2.length){_2a2=_2a3[i];}}}if(!_2a2){_2a2="ROOT";}}var _2a5=_29f?_2a2:_2a0;var _2a6=dojo._loadedModules[_2a1];var _2a7=null;if(_2a6){if(djConfig.localizationComplete&&_2a6._built){return;}var _2a8=_2a5.replace(/-/g,"_");var _2a9=_2a1+"."+_2a8;_2a7=dojo._loadedModules[_2a9];}if(!_2a7){_2a6=dojo["provide"](_2a1);var syms=dojo._getModuleSymbols(_29c);var _2ab=syms.concat("nls").join("/");var _2ac;dojo.i18n._searchLocalePath(_2a5,_29f,function(loc){var _2ae=loc.replace(/-/g,"_");var _2af=_2a1+"."+_2ae;var _2b0=false;if(!dojo._loadedModules[_2af]){dojo["provide"](_2af);var _2b1=[_2ab];if(loc!="ROOT"){_2b1.push(loc);}_2b1.push(_29d);var _2b2=_2b1.join("/")+".js";_2b0=dojo._loadPath(_2b2,null,function(hash){var _2b4=function(){};_2b4.prototype=_2ac;_2a6[_2ae]=new _2b4();for(var j in hash){_2a6[_2ae][j]=hash[j];}});}else{_2b0=true;}if(_2b0&&_2a6[_2ae]){_2ac=_2a6[_2ae];}else{_2a6[_2ae]=_2ac;}if(_29f){return true;}});}if(_29f&&_2a0!=_2a2){_2a6[_2a0.replace(/-/g,"_")]=_2a6[_2a2.replace(/-/g,"_")];}};(function(){var _2b6=djConfig.extraLocale;if(_2b6){if(!_2b6 instanceof Array){_2b6=[_2b6];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_2ba,_2bb){req(m,b,_2ba,_2bb);if(_2ba){return;}for(var i=0;i<_2b6.length;i++){req(m,b,_2b6[i],_2bb);}};}})();dojo.i18n._searchLocalePath=function(_2bd,down,_2bf){_2bd=dojo.i18n.normalizeLocale(_2bd);var _2c0=_2bd.split("-");var _2c1=[];for(var i=_2c0.length;i>0;i--){_2c1.push(_2c0.slice(0,i).join("-"));}_2c1.push(false);if(down){_2c1.reverse();}for(var j=_2c1.length-1;j>=0;j--){var loc=_2c1[j]||"ROOT";var stop=_2bf(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_2c6,_2c7){function preload(_2c8){_2c8=dojo.i18n.normalizeLocale(_2c8);dojo.i18n._searchLocalePath(_2c8,true,function(loc){for(var i=0;i<_2c7.length;i++){if(_2c7[i]==loc){dojo["require"](_2c6+"_"+loc);return true;}}return false;});};preload();var _2cb=djConfig.extraLocale||[];for(var i=0;i<_2cb.length;i++){preload(_2cb[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 _2cd=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_2cd);this.errorMessage=dojo.string.substitute(this.errorMessage,_2cd);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 _2ce=dojo.query(">",this.containerNode||this.domNode),_2cf=_2ce.filter("[widgetId]");if(_2ce.length==1&&_2cf.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_2cf[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(_2d5){this.cancel();this.isLoaded=false;this._loadCheck(_2d5);},_loadCheck:function(_2d6){var _2d7=((this.open!==false)&&(this.domNode.style.display!="none"));if(this.href&&(_2d6||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_2d7&&!this._xhrDfd)||(!this.isLoaded&&_2d7&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _2d9={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_2d9,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_2d9);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 _2e0=this.onContentError(e);try{node.innerHTML=_2e0;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_2e3){var _2e4=this["on"+type+"Error"].call(this,err);if(_2e3){console.error(_2e3,err);}else{if(_2e4){this._setContent.call(this,_2e4);}}},_createSubWidgets:function(){var _2e5=this.containerNode||this.domNode;try{dojo.parser.parse(_2e5,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(_2e8){},onDownloadError:function(_2e9){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(_2ea){},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(_2ee){if(!_2ee.name){return;}var _2ef=map[_2ee.name]||(map[_2ee.name]=[]);_2ef.push(_2ee);});for(var name in map){var _2f1=map[name],_2f2=dojo.getObject(name,false,obj);if(!dojo.isArray(_2f2)){_2f2=[_2f2];}if(_2f1[0].setChecked){dojo.forEach(_2f1,function(w,i){w.setChecked(dojo.indexOf(_2f2,w.value)!=-1);});}else{dojo.forEach(_2f1,function(w,i){w.setValue(_2f2[i]);});}}},getValues:function(){var obj={};dojo.forEach(this.getDescendants(),function(_2f8){var _2f9=_2f8.getValue?_2f8.getValue():_2f8.value;var name=_2f8.name;if(!name){return;}if(_2f8.setChecked){if(/Radio/.test(_2f8.declaredClass)){if(_2f8.checked){dojo.setObject(name,_2f9,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_2f8.checked){ary.push(_2f9);}}}else{dojo.setObject(name,_2f9,obj);}});return obj;},isValid:function(){return dojo.every(this.getDescendants(),function(_2fc){return !_2fc.isValid||_2fc.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 _2fd=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_2fd.t+"px";os.left=_2fd.l+"px";is.width=_2fd.w+"px";is.height=_2fd.h+"px";var _300=dijit.getViewport();if(_2fd.w!=_300.w){is.width=_300.w+"px";}if(_2fd.h!=_300.h){is.height=_300.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,templateString:"<div class=\"dijitDialog\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\" tabindex=\"0\" waiRole=\"dialog\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\">${title}</span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: hide\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n\t<span dojoAttachPoint=\"tabEnd\" dojoAttachEvent=\"onfocus:_cycleFocus\" tabindex=\"0\"></span>\r\n</div>\r\n",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 _302=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _304=this.domNode.style;_304.left=Math.floor((_302.l+(_302.w-mb.w)/2))+"px";_304.top=Math.floor((_302.t+(_302.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,templateString:"<div class=\"dijitTooltipDialog\" >\r\n\t<div class=\"dijitTooltipContainer\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"0\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<span dojoAttachPoint=\"tabEnd\" tabindex=\"0\" dojoAttachEvent=\"focus:_cycleFocus\"></span>\r\n\t<div class=\"dijitTooltipConnector\" ></div>\r\n</div>\r\n",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(_30b){this.domNode.className="dijitTooltipDialog "+" dijitTooltipAB"+(_30b.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_30b.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.fx._base"]){dojo._hasResource["dojox.fx._base"]=true;dojo.provide("dojox.fx._base");dojox.fx.chain=dojo.fx.chain;dojox.fx.combine=dojo.fx.combine;dojox.fx.wipeIn=dojo.fx.wipeIn;dojox.fx.wipeOut=dojo.fx.wipeOut;dojox.fx.slideTo=dojo.fx.slideTo;dojox.fx.sizeTo=function(args){var node=(args.node=dojo.byId(args.node));var _312=dojo.getComputedStyle;var _313=args.method||"chain";if(_313=="chain"){args.duration=Math.floor(args.duration/2);}var top,_315,left,_317,_318,_319=null;var init=(function(){var _31b=node;return function(){var pos=_312(_31b).position;top=(pos=="absolute"?node.offsetTop:parseInt(_312(node).top)||0);left=(pos=="absolute"?node.offsetLeft:parseInt(_312(node).left)||0);_318=parseInt(dojo.style(node,"width"));_319=parseInt(dojo.style(node,"height"));_317=left-Math.floor((args.width-_318)/2);_315=top-Math.floor((args.height-_319)/2);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(_31b,true);top=ret.y;left=ret.x;_31b.style.position="absolute";_31b.style.top=top+"px";_31b.style.left=left+"px";}};})();init();var _31e=dojo.animateProperty(dojo.mixin({properties:{height:{start:_319,end:args.height||0,unit:"px"},top:{start:top,end:_315}}},args));var _31f=dojo.animateProperty(dojo.mixin({properties:{width:{start:_318,end:args.width||0,unit:"px"},left:{start:left,end:_317}}},args));var anim=dojo.fx[((args.method=="combine")?"combine":"chain")]([_31e,_31f]);dojo.connect(anim,"beforeBegin",anim,init);return anim;};dojox.fx.slideBy=function(args){var node=(args.node=dojo.byId(args.node));var _323=dojo.getComputedStyle;var top=null;var left=null;var init=(function(){var _327=node;return function(){var pos=_323(_327,"position");top=(pos=="absolute"?node.offsetTop:parseInt(_323(node,"top"))||0);left=(pos=="absolute"?node.offsetLeft:parseInt(_323(node,"left"))||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(_327,true);top=ret.y;left=ret.x;_327.style.position="absolute";_327.style.top=top+"px";_327.style.left=left+"px";}};})();init();var _32a=dojo.animateProperty(dojo.mixin({properties:{top:{end:top+(args.top||0)},left:{end:left+(args.left||0)}}},args));dojo.connect(_32a,"beforeBegin",_32a,init);return _32a;};dojox.fx.crossFade=function(args){if(dojo.isArray(args.nodes)){var _32c=args.nodes[0]=dojo.byId(args.nodes[0]);var op1=dojo.style(_32c,"opacity");var _32e=args.nodes[1]=dojo.byId(args.nodes[1]);var op2=dojo.style(_32e,"opacity");var _330=dojo.fx.combine([dojo[((op1==0)?"fadeIn":"fadeOut")](dojo.mixin({node:_32c},args)),dojo[((op1==0)?"fadeOut":"fadeIn")](dojo.mixin({node:_32e},args))]);return _330;}else{return false;}};dojox.fx.highlight=function(args){var node=(args.node=dojo.byId(args.node));args.duration=args.duration||400;var _333=args.color||"#ffff99";var _334=dojo.style(node,"backgroundColor");var _335=(_334=="transparent"||_334=="rgba(0, 0, 0, 0)");var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_333,end:_334}}},args));dojo.connect(anim,"onEnd",anim,function(){if(_335){node.style.backgroundColor="transparent";}});return anim;};}if(!dojo._hasResource["dojox.fx"]){dojo._hasResource["dojox.fx"]=true;dojo.provide("dojox.fx");}if(!dojo._hasResource["dojox.image.Lightbox"]){dojo._hasResource["dojox.image.Lightbox"]=true;dojo.provide("dojox.image.Lightbox");dojo.experimental("dojox.image.Lightbox");dojo.declare("dojox.image.Lightbox",dijit._Widget,{group:"",title:"",href:"",duration:500,_allowPassthru:false,_attachedDialog:null,startup:function(){this.inherited("startup",arguments);var tmp=dijit.byId("dojoxLightboxDialog");if(tmp){this._attachedDialog=tmp;}else{this._attachedDialog=new dojox.image._LightboxDialog({id:"dojoxLightboxDialog"});this._attachedDialog.startup();}if(!this.store){this._addSelf();this.connect(this.domNode,"onclick","_handleClick");}},_addSelf:function(){this._attachedDialog.addImage({href:this.href,title:this.title},this.group||null);},_handleClick:function(e){if(!this._allowPassthru){e.preventDefault();}else{return;}this.show();},show:function(){this._attachedDialog.show(this);},disable:function(){this._allowPassthru=true;},enable:function(){this._allowPassthru=false;}});dojo.declare("dojox.image._LightboxDialog",dijit.Dialog,{title:"",inGroup:null,imgUrl:"",_groups:{XnoGroupX:[]},_imageReady:false,templateString:"<div class=\"dojoxLightbox\" dojoAttachPoint=\"containerNode\">\r\n\t<div style=\"position:relative\">\r\n\t\t<div dojoAttachPoint=\"imageContainer\" class=\"dojoxLightboxContainer\">\r\n\t\t\t<img dojoAttachPoint=\"imgNode\" src=\"${imgUrl}\" class=\"dojoxLightboxImage\" alt=\"${title}\">\r\n\t\t\t<div class=\"dojoxLightboxFooter\" dojoAttachPoint=\"titleNode\">\r\n\t\t\t\t<div class=\"dijitInline LightboxClose\" dojoAttachPoint=\"closeNode\"></div>\r\n\t\t\t\t<div class=\"dijitInline LightboxNext\" dojoAttachPoint=\"nextNode\"></div>\t\r\n\t\t\t\t<div class=\"dijitInline LightboxPrev\" dojoAttachPoint=\"prevNode\"></div>\r\n\r\n\t\t\t\t<div class=\"dojoxLightboxText\"><span dojoAttachPoint=\"textNode\">${title}</span><span dojoAttachPoint=\"groupCount\" class=\"dojoxLightboxGroupText\"></span></div>\r\n\t\t\t</div>\r\n\t\t</div>\t\r\n\t\t\r\n\t</div>\r\n</div>\r\n",startup:function(){this.inherited("startup",arguments);dojo.connect(document.documentElement,"onkeypress",this,"_handleKey");this.connect(window,"onresize","_position");this.connect(this.nextNode,"onclick","_nextImage");this.connect(this.prevNode,"onclick","_prevImage");this.connect(this.closeNode,"onclick","hide");},show:function(_339){dojo.style(this.imgNode,"opacity","0");dojo.style(this.titleNode,"opacity","0");if(!this.open){this.inherited("show",arguments);}this._imageReady=false;this.imgNode.src=_339.href;if((_339.group&&!(_339=="XnoGroupX"))||this.inGroup){if(!this.inGroup){this.inGroup=this._groups[(_339.group)];var i=0;dojo.forEach(this.inGroup,function(g){if(g.href==_339.href){this._positionIndex=i;}i++;},this);}if(!this._positionIndex){this._positionIndex=0;this.imgNode.src=this.inGroup[this._positionIndex].href;}this.groupCount.innerHTML=" ("+(this._positionIndex+1)+" of "+this.inGroup.length+")";this.prevNode.style.visibility="visible";this.nextNode.style.visibility="visible";}else{this.groupCount.innerHTML="";this.prevNode.style.visibility="hidden";this.nextNode.style.visibility="hidden";}this.textNode.innerHTML=_339.title;if(!this._imageReady||this.imgNode.complete===true){this._imgConnect=dojo.connect(this.imgNode,"onload",this,function(){this._imageReady=true;this.resizeTo({w:this.imgNode.width,h:this.imgNode.height,duration:this.duration});dojo.disconnect(this._imgConnect);});if(dojo.isIE){this.imgNode.src=this.imgNode.src;}}else{this.resizeTo({w:this.imgNode.width,h:this.imgNode.height,duration:1});}},_nextImage:function(){if(this._positionIndex+1<this.inGroup.length){this._positionIndex++;}else{this._positionIndex=0;}this._loadImage();},_prevImage:function(){if(this._positionIndex==0){this._positionIndex=this.inGroup.length-1;}else{this._positionIndex--;}this._loadImage();},_loadImage:function(){var _33c=dojo.fx.combine([dojo.fadeOut({node:this.imgNode,duration:(this.duration/2)}),dojo.fadeOut({node:this.titleNode,duration:(this.duration/2)})]);this.connect(_33c,"onEnd","_prepNodes");_33c.play(10);},_prepNodes:function(){this._imageReady=false;this.show({href:this.inGroup[this._positionIndex].href,title:this.inGroup[this._positionIndex].title});},resizeTo:function(size){var _33e=dojox.fx.sizeTo({node:this.containerNode,duration:size.duration||this.duration,width:size.w,height:size.h+30});this.connect(_33e,"onEnd","_showImage");_33e.play(this.duration);},_showImage:function(){dojo.fadeIn({node:this.imgNode,duration:this.duration,onEnd:dojo.hitch(this,"_showNav")}).play(75);},_showNav:function(){dojo.fadeIn({node:this.titleNode,duration:200}).play(25);},hide:function(){dojo.fadeOut({node:this.titleNode,duration:200}).play(25);this.inherited("hide",arguments);this.inGroup=null;this._positionIndex=null;},addImage:function(_33f,_340){var g=_340;if(!_33f.href){return;}if(g){if(this._groups[(g)]){this._groups[(g)].push(_33f);}else{this._groups[(g)]=[(_33f)];}}else{this._groups["XnoGroupX"].push(_33f);}},_handleKey:function(e){if(!this.open){return;}var key=(e.charCode==dojo.keys.SPACE?dojo.keys.SPACE:e.keyCode);switch(key){case dojo.keys.ESCAPE:this.hide();break;case dojo.keys.DOWN_ARROW:case dojo.keys.RIGHT_ARROW:case 78:this._nextImage();break;case dojo.keys.UP_ARROW:case dojo.keys.LEFT_ARROW:case 80:this._prevImage();break;}}});}dojo.i18n._preloadLocalizations("dojo.nls.fedojo",["es-es","es","hu","it-it","de","pt-br","pl","fr-fr","zh-cn","pt","en-us","zh","ru","xx","fr","zh-tw","it","cs","en-gb","de-de","ja-jp","ko-kr","ko","en","ROOT","ja"]);
