/**
 * Copyright 2010-2011 Serenity LLC
 */
if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(_1){var _2=this;dojo.mixin(_2,_1);_2.node=_1.node;_2._showArgs=dojo.mixin({},_1);_2._showArgs.node=_2.node;_2._showArgs.duration=_2.showDuration;_2.showAnim=_2.showFunc(_2._showArgs);_2._hideArgs=dojo.mixin({},_1);_2._hideArgs.node=_2.node;_2._hideArgs.duration=_2.hideDuration;_2.hideAnim=_2.hideFunc(_2._hideArgs);dojo.connect(_2.showAnim,"beforeBegin",dojo.hitch(_2.hideAnim,"stop",true));dojo.connect(_2.hideAnim,"beforeBegin",dojo.hitch(_2.showAnim,"stop",true));},show:function(_3){return this.showAnim.play(_3||0);},hide:function(_4){return this.hideAnim.play(_4||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_5={_fire:function(_6,_7){if(this[_6]){this[_6].apply(this,_7||[]);}return this;}};var _8=function(_9){this._index=-1;this._animations=_9||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_8,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.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=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_a,_b){if(!this._current){this._current=this._animations[this._index=0];}if(!_b&&this._current.status()=="playing"){return this;}var _c=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_d=d.connect(this._current,"onBegin",this,function(_e){this._fire("onBegin",arguments);}),_f=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_c);d.disconnect(_d);d.disconnect(_f);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_10,_11){this.pause();var _12=this.duration*_10;this._current=null;d.some(this._animations,function(a){if(a.duration<=_12){this._current=a;return true;}_12-=a.duration;return false;});if(this._current){this._current.gotoPercent(_12/this._current.duration,_11);}return this;},stop:function(_13){if(this._current){if(_13){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_8,_5);dojo.fx.chain=function(_14){return new _8(_14);};var _15=function(_16){this._animations=_16||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_16,function(a){var _17=a.duration;if(a.delay){_17+=a.delay;}if(this.duration<_17){this.duration=_17;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var _18=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){_18._connects.push(d.connect(_18._pseudoAnimation,evt,function(){_18._fire(evt,arguments);}));});};d.extend(_15,{_doAction:function(_19,_1a){d.forEach(this._animations,function(a){a[_19].apply(a,_1a);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_1b,_1c){var t=this._pseudoAnimation;t[_1b].apply(t,_1c);},play:function(_1d,_1e){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(_1f,_20){var ms=this.duration*_1f;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_20);});this._call("gotoPercent",arguments);return this;},stop:function(_21){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_15,_5);dojo.fx.combine=function(_22){return new _15(_22);};dojo.fx.wipeIn=function(_23){var _24=_23.node=d.byId(_23.node),s=_24.style,o;var _25=d.animateProperty(d.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 _26=d.style(_24,"height");return Math.max(_26,1);}},end:function(){return _24.scrollHeight;}}}},_23));d.connect(_25,"onEnd",function(){s.height="auto";s.overflow=o;});return _25;};dojo.fx.wipeOut=function(_27){var _28=_27.node=d.byId(_27.node),s=_28.style,o;var _29=d.animateProperty(d.mixin({properties:{height:{end:1}}},_27));d.connect(_29,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(_29,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _29;};dojo.fx.slideTo=function(_2a){var _2b=_2a.node=d.byId(_2a.node),top=null,_2c=null;var _2d=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_2c=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;_2c=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_2c+"px";}};})(_2b);_2d();var _2e=d.animateProperty(d.mixin({properties:{top:_2a.top||0,left:_2a.left||0}},_2a));d.connect(_2e,"beforeBegin",_2e,_2d);return _2e;};})();}if(!dojo._hasResource["exe.Container"]){dojo._hasResource["exe.Container"]=true;dojo.provide("exe.Container");(function(){dojo.declare("exe.Container",null,{_childs:[],_current:[],constructor:function(){this._childs=[];this._current=[];},getChilds:function(){return this._childs;},getChild:function(_2f){return this._childs[_2f];},setChild:function(_30,_31){this._childs[_31]=_30;},addChild:function(_32){this._childs[this._childs.length]=_32;},setChilds:function(_33){dojo.forEach(_33,dojo.hitch(this,function(_34,_35){this.setChild(_34,_35);}));},setParent:function(_36){this._parent=_36;},getParent:function(){return this._parent;},findBy:function(_37,_38){var _37="get"+_37.charAt(0).toUpperCase()+_37.substring(1,_37.length);if(this.getChilds()){return dojo.filter(this.getChilds(),function(_39){return dojo.exists(_37,_39)&&_38===_39[_37]();});}}});})();}if(!dojo._hasResource["exe.StyleState"]){dojo._hasResource["exe.StyleState"]=true;dojo.provide("exe.StyleState");(function(){dojo.declare("exe.StyleState",null,{_state:[],constructor:function(_3a){this._state=[];dojo.forEach(_3a,function(val,key){this.setByNbr(key,val);},this);},getMaxNbr:function(){return dojo.indexOf(this._state,true,null,true);},setByNbr:function(nbr,_3b){_3b=Boolean(_3b);nbr=Number(nbr);this._state[nbr]=_3b;var _3c=this.getMaxNbr();if(_3c!=0){if(_3c==-1){this._state[0]=true;}else{this._state[0]=false;}}},getByNbr:function(nbr){return this._state[Number(nbr)];},reset:function(){dojo.forEach(function(val,key){this.setByNbr(key,false);});},isEqual:function(_3d){var _3e=true;dojo.forEach(this._state,function(val,key){if(_3e){_3e=val===_3d.getByNbr(key);}},this);return _3e;}});})();}if(!dojo._hasResource["exe.container.animation.Item"]){dojo._hasResource["exe.container.animation.Item"]=true;dojo.provide("exe.container.animation.Item");(function(){dojo.declare("exe.container.animation.Item",null,{_state:null,_animations:{},constructor:function(_3f,_40){if(dojo.isObject(_40)){this.setAnimations(_40);}else{this._animations=[];}if(!_3f){this._state=this.getNullState();}this._state=_3f;},getState:function(){return this._state;},setState:function(_41){this._state=_41;},setAnimations:function(_42){this._animations=_42;},getAnimationByState:function(){},getAnimations:function(){return this._animations;},getNullState:function(){return new exe.StyleState([true,false]);}});})();}if(!dojo._hasResource["exe.container.Animation"]){dojo._hasResource["exe.container.Animation"]=true;dojo.provide("exe.container.Animation");(function(){dojo.declare("exe.container.Animation",[exe.Container,exe.container.animation.Item],{_isChainAnimation:true,switchStateByAnimation:function(_43,_44){this.stopCurrentAnimation();var _45=_43.getState();if(!_45.isEqual(_44)){var _46;if(_46=this.getChildAnimationByState(_43,_44)){_46.play();this.constructor.prototype.currentAnimation=_46;}_43.setState(_44);}},stopCurrentAnimation:function(){var _47;if(_47=this.constructor.prototype.currentAnimation){if(_47.status()=="playing"){_47.stop(true);this.resetStyleByAnimation(_47);}delete this.constructor.prototype.currentAnimation;}},switchState:function(_48,_49){this.stopCurrentAnimation();var _4a;if(_4a=this.getChildAnimationByState(_48,_49)){this.resetStyleByAnimation(_4a);}_48.setState(_49);},getChildAnimationByState:function(_4b,_4c){this._tempAnimation=_4b.getAnimationByState(_4c);this._tempAnimations=[];var _4d;var val;for(_4d=1;typeof (val=_4c.getByNbr(_4d))==="boolean";_4d++){var _4e=this.getCurrent(_4d);if(val){this.setCurrent(_4b,_4d);}else{if(_4b===this.getCurrent(_4d)){this.setCurrent(null,_4d);}}var _4f=_4b.getState();if(_4f.getByNbr(_4d)!==val){if(_4e){if(_4b!==_4e){var _50=dojo.clone(_4e.getState());_50.setByNbr(_4d,!val);var _51;if(_51=_4e.getAnimationByState(_50)){this._tempAnimations[this._tempAnimations.length]=_51;}_4e.setState(_50);}}}}if(this._tempAnimations){if(this._tempAnimations.length>0){var _52;if(this._tempAnimations.length>1){_52=dojo.fx.combine(this._tempAnimations);}else{_52=this._tempAnimations[0];}if(this._tempAnimation){if(this._isChainAnimation){this._tempAnimation=dojo.fx.chain([_52,this._tempAnimation]);}else{this._tempAnimation=dojo.fx.combine([_52,this._tempAnimation]);}}else{this._tempAnimation=_52;}}delete this._tempAnimations;}var _53=this._tempAnimation;delete this._tempAnimation;return _53;},setCurrent:function(_54,id){if(id){this._current[id]=_54;}else{this._current=_54;}},getCurrent:function(id){if(id){return this._current[id];}else{return this._current;}},resetStyleByAnimation:function(_55){if(_55.onAnimate){_55.onAnimate();}if(_55.onPlay){_55.onPlay();}if(_55.node){var el=_55.node;for(attr in _55.properties){var _56=_55.properties[attr];dojo.style(el,attr,_56.end+(attr!="opacity"&&attr!="color"&&attr!="backgroundColor"?_56.units||"px":""));}}else{if(_55._animations){dojo.forEach(_55._animations,function(_57){this.resetStyleByAnimation(_57);},this);}}if(_55.onEnd){_55.onEnd();}},setStyleByAnimationProperties:function(el,_58,_59){for(attr in _58){var _5a=_58[attr];dojo.style(el,attr,_5a[_59?"start":"end"]);}},addChild:function(_5b){var _5c=_5b.getState();_5b.setState(_5b.getNullState());this.switchState(_5b,_5c);this._childs[this._childs.length]=_5b;},addChilds:function(_5d){dojo.forEach(_5d,function(_5e){this.addChild(_5e);},this);}});})();}if(!dojo._hasResource["exe.slider.Tab"]){dojo._hasResource["exe.slider.Tab"]=true;dojo.provide("exe.slider.Tab");(function(){dojo.declare("exe.slider.Tab",[exe.container.animation.Item],{_nbr:null,_animations:null,constructor:function(){this._el=arguments[2];this._parent=arguments[3];this._nbr=arguments[4];this._name=arguments[5];},setNbr:function(nbr){this._nbr=nbr;},getNbr:function(){return this._nbr;},getName:function(){return this._name;},getElement:function(){return this._el;},getParent:function(){return this._parent;},_getHiddenElementSize:function(_5f){var _60=dojo.hasClass(_5f,"hidden");if(_60){dojo.removeClass(_5f,"hidden");}var _61=dojo.marginBox(_5f);if(_60){dojo.addClass(_5f,"hidden");}return _61;},getAnimations:function(){if(!this._animations){this._animations=this._initAnimations();}return this._animations;},setAnimations:function(_62){this._animations=_62;},_initAnimations:function(){return [];}});})();}if(!dojo._hasResource["dojo.hash"]){dojo._hasResource["dojo.hash"]=true;dojo.provide("dojo.hash");(function(){dojo.hash=function(_63,_64){if(!arguments.length){return _65();}if(_63.charAt(0)=="#"){_63=_63.substring(1);}if(_64){_66(_63);}else{location.href="#"+_63;}return _63;};var _67=null,_68=null,_69=dojo.config.hashPollFrequency||100;function _6a(str,_6b){var i=str.indexOf(_6b);return (i>=0)?str.substring(i+1):"";};function _65(){return _6a(location.href,"#");};function _6c(){dojo.publish("/dojo/hashchange",[_65()]);};function _6d(){if(_65()===_67){return;}_67=_65();_6c();};function _66(_6e){if(_68){if(_68.isTransitioning()){setTimeout(dojo.hitch(null,_66,_6e),_69);return;}var _6f=_68.iframe.location.href;var _70=_6f.indexOf("?");_68.iframe.location.replace(_6f.substring(0,_70)+"?"+_6e);return;}location.replace("#"+_6e);_6d();};function _71(){var ifr=document.createElement("iframe"),_72="dojo-hash-iframe",_73=dojo.config.dojoBlankHtmlUrl||dojo.moduleUrl("dojo","resources/blank.html");ifr.id=_72;ifr.src=_73+"?"+_65();ifr.style.display="none";document.body.appendChild(ifr);this.iframe=dojo.global[_72];var _74,_75,_76,_77,_78,_79=this.iframe.location;function _7a(){_67=_65();_74=_78?_67:_6a(_79.href,"?");_75=false;_76=null;};this.isTransitioning=function(){return _75;};this.pollLocation=function(){if(!_78){try{var _7b=_6a(_79.href,"?");if(document.title!=_77){_77=this.iframe.document.title=document.title;}}catch(e){_78=true;}}var _7c=_65();if(_75&&_67===_7c){if(_78||_7b===_76){_7a();_6c();}else{setTimeout(dojo.hitch(this,this.pollLocation),0);return;}}else{if(_67===_7c&&(_78||_74===_7b)){}else{if(_67!==_7c){_67=_7c;_75=true;_76=_7c;ifr.src=_73+"?"+_76;_78=false;setTimeout(dojo.hitch(this,this.pollLocation),0);return;}else{if(!_78){location.href="#"+_79.search.substring(1);_7a();_6c();}}}}setTimeout(dojo.hitch(this,this.pollLocation),_69);};_7a();setTimeout(dojo.hitch(this,this.pollLocation),_69);};dojo.addOnLoad(function(){if("onhashchange" in dojo.global&&(!dojo.isIE||(dojo.isIE>=8&&document.compatMode!="BackCompat"))){dojo.connect(dojo.global,"onhashchange",_6c);}else{if(document.addEventListener){_67=_65();setInterval(_6d,_69);}else{if(document.attachEvent){_68=new _71();}}}});})();}if(!dojo._hasResource["exe.Slider"]){dojo._hasResource["exe.Slider"]=true;dojo.provide("exe.Slider");(function(){dojo.declare("exe.Slider",[exe.container.Animation],{_isShowFirst:true,constructor:function(_7d){dojo.forEach(_7d,function(el,key){var _7e;var id;if(id=dojo.attr(el,"id")){_7e=id;}else{_7e=String(key);}var _7f=new exe.StyleState([true,false]);var tab=this.tabFactory(_7f,null,el,this,key,_7e);this.addChild(tab);},this);this.initCurrentTab();this.initHashChanger();},tabFactory:function(_80,hz,el,_81,key,_82){return new exe.slider.Tab(_80,hz,el,_81,key,_82);},initHashChanger:function(){dojo.subscribe("/dojo/hashchange",this,this.hashChanged);},hashChanged:function(_83){if(_83===""){this.initCurrentTab(true);}else{var tab;if(tab=this.findBy("name",_83)[0]){var old=this.getCurrent(1);if(old===tab){this.switchState(tab,new exe.StyleState([false,true]));}else{this.switchStateByAnimation(tab,new exe.StyleState([false,true]));}}}},initCurrentTab:function(_84){var _85=this.getCurrentTabName();var _86;if((_86=this.findBy("name",_85)[0])||((this._isShowFirst||_84)&&(_86=this.getChilds()[0]))){state=new exe.StyleState([false,true]);if(_84){this.switchStateByAnimation(_86,state);}else{setTimeout(dojo.hitch(this,function(){this.switchState(_86,state);}),1);}}},getCurrentTabName:function(){return location.hash.replace(/#/i,"");}});})();}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojo.NodeList-manipulate"]){dojo._hasResource["dojo.NodeList-manipulate"]=true;dojo.provide("dojo.NodeList-manipulate");(function(){function _87(_88){var _89="",ch=_88.childNodes;for(var i=0,n;n=ch[i];i++){if(n.nodeType!=8){if(n.nodeType==1){_89+=_87(n);}else{_89+=n.nodeValue;}}}return _89;};function _8a(_8b){while(_8b.childNodes[0]&&_8b.childNodes[0].nodeType==1){_8b=_8b.childNodes[0];}return _8b;};function _8c(_8d,_8e){if(typeof _8d=="string"){_8d=dojo._toDom(_8d,(_8e&&_8e.ownerDocument));if(_8d.nodeType==11){_8d=_8d.childNodes[0];}}else{if(_8d.nodeType==1&&_8d.parentNode){_8d=_8d.cloneNode(false);}}return _8d;};dojo.extend(dojo.NodeList,{_placeMultiple:function(_8f,_90){var nl2=typeof _8f=="string"||_8f.nodeType?dojo.query(_8f):_8f;var _91=[];for(var i=0;i<nl2.length;i++){var _92=nl2[i];var _93=this.length;for(var j=_93-1,_94;_94=this[j];j--){if(i>0){_94=this._cloneNode(_94);_91.unshift(_94);}if(j==_93-1){dojo.place(_94,_92,_90);}else{_92.parentNode.insertBefore(_94,_92);}_92=_94;}}if(_91.length){_91.unshift(0);_91.unshift(this.length-1);Array.prototype.splice.apply(this,_91);}return this;},innerHTML:function(_95){if(arguments.length){return this.addContent(_95,"only");}else{return this[0].innerHTML;}},text:function(_96){if(arguments.length){for(var i=0,_97;_97=this[i];i++){if(_97.nodeType==1){dojo.empty(_97);_97.appendChild(_97.ownerDocument.createTextNode(_96));}}return this;}else{var _98="";for(i=0;_97=this[i];i++){_98+=_87(_97);}return _98;}},val:function(_99){if(arguments.length){var _9a=dojo.isArray(_99);for(var _9b=0,_9c;_9c=this[_9b];_9b++){var _9d=_9c.nodeName.toUpperCase();var _9e=_9c.type;var _9f=_9a?_99[_9b]:_99;if(_9d=="SELECT"){var _a0=_9c.options;for(var i=0;i<_a0.length;i++){var opt=_a0[i];if(_9c.multiple){opt.selected=(dojo.indexOf(_99,opt.value)!=-1);}else{opt.selected=(opt.value==_9f);}}}else{if(_9e=="checkbox"||_9e=="radio"){_9c.checked=(_9c.value==_9f);}else{_9c.value=_9f;}}}return this;}else{_9c=this[0];if(!_9c||_9c.nodeType!=1){return undefined;}_99=_9c.value||"";if(_9c.nodeName.toUpperCase()=="SELECT"&&_9c.multiple){_99=[];_a0=_9c.options;for(i=0;i<_a0.length;i++){opt=_a0[i];if(opt.selected){_99.push(opt.value);}}if(!_99.length){_99=null;}}return _99;}},append:function(_a1){return this.addContent(_a1,"last");},appendTo:function(_a2){return this._placeMultiple(_a2,"last");},prepend:function(_a3){return this.addContent(_a3,"first");},prependTo:function(_a4){return this._placeMultiple(_a4,"first");},after:function(_a5){return this.addContent(_a5,"after");},insertAfter:function(_a6){return this._placeMultiple(_a6,"after");},before:function(_a7){return this.addContent(_a7,"before");},insertBefore:function(_a8){return this._placeMultiple(_a8,"before");},remove:dojo.NodeList.prototype.orphan,wrap:function(_a9){if(this[0]){_a9=_8c(_a9,this[0]);for(var i=0,_aa;_aa=this[i];i++){var _ab=this._cloneNode(_a9);if(_aa.parentNode){_aa.parentNode.replaceChild(_ab,_aa);}var _ac=_8a(_ab);_ac.appendChild(_aa);}}return this;},wrapAll:function(_ad){if(this[0]){_ad=_8c(_ad,this[0]);this[0].parentNode.replaceChild(_ad,this[0]);var _ae=_8a(_ad);for(var i=0,_af;_af=this[i];i++){_ae.appendChild(_af);}}return this;},wrapInner:function(_b0){if(this[0]){_b0=_8c(_b0,this[0]);for(var i=0;i<this.length;i++){var _b1=this._cloneNode(_b0);this._wrap(dojo._toArray(this[i].childNodes),null,this._NodeListCtor).wrapAll(_b1);}}return this;},replaceWith:function(_b2){_b2=this._normalize(_b2,this[0]);for(var i=0,_b3;_b3=this[i];i++){this._place(_b2,_b3,"before",i>0);_b3.parentNode.removeChild(_b3);}return this;},replaceAll:function(_b4){var nl=dojo.query(_b4);var _b5=this._normalize(this,this[0]);for(var i=0,_b6;_b6=nl[i];i++){this._place(_b5,_b6,"before",i>0);_b6.parentNode.removeChild(_b6);}return this;},clone:function(){var ary=[];for(var i=0;i<this.length;i++){ary.push(this._cloneNode(this[i]));}return this._wrap(ary,this,this._NodeListCtor);}});if(!dojo.NodeList.prototype.html){dojo.NodeList.prototype.html=dojo.NodeList.prototype.innerHTML;}})();}if(!dojo._hasResource["serenity.slider.Tab"]){dojo._hasResource["serenity.slider.Tab"]=true;dojo.provide("serenity.slider.Tab");(function(){dojo.declare("serenity.slider.Tab",[exe.slider.Tab],{_duration:500,_linksEffectDuration:100,_divEl:null,_linkEl:null,_height:null,_headerEl:null,constructor:function(){this._headerEl=dojo.query("div.title",this._el.parentNode)[this.getNbr()];var _b7=dojo.query("#command a[href=#"+this.getName()+"]");if(typeof _b7[0]!="undefined"){this._linkEl=_b7[0];dojo.connect(this._linkEl,"onclick",this,function(e){dojo.stopEvent(e);var _b8=dojo.attr(e.currentTarget,"href");if(location.hash!==_b8){location.href=_b8;}});}if(this._headerEl){dojo.addClass(this._headerEl,"hidden");}},_initAnimations:function(){var _b9=dojo.coords(this._el.parentNode);var _ba=function(){dojo.addClass(this.node,"hidden");};var _bb=dojo.marginBox(this._el.parentNode).w;var _bc=function(){dojo.removeClass(this.node,"hidden");dojo.style(this.node,{"position":"absolute"});};var end=function(){dojo.style(this.node,{"position":"relative"});};var _bd=243;var _be={onPlay:_bc,onEnd:_ba,onStop:_ba,properties:{left:{start:0,end:-_bb-_bd}},duration:this._duration,easing:dojo.fx.easing.quadOut};_be.properties.left.start=-_bb-_bd;_be.properties.left.end=0;_be.onEnd=end;_be.onStop=_ba;var _bf=dojo.clone(_be);_bf.node=this._el;var _c0=dojo.animateProperty(_bf);_be.properties.left.start=_bb+_bd;_be.properties.left.end=0;var _bf=dojo.clone(_be);_bf.node=this._el;var _c1=dojo.animateProperty(_bf);var _bc=function(){dojo.removeClass(this.node,"hidden");};var _ba=function(){dojo.addClass(this.node,"hidden");};var _c2=function(){var _c3=this.getCurrent(1);if(_c3){var _c4=this.getChilds();if(_c3.getNbr()==0){if(this._prevListHref!==null){dojo.addClass(this.prevLink,"prevpage");}}if(_c3.getNbr()==(_c4.length-1)){if(this._nextListHref!==null){dojo.addClass(this.nextLink,"nextpage");}}}};dojo.connect(_c0,"onEnd",this.getParent(),_c2);dojo.connect(_c0,"onStop",this.getParent(),_c2);dojo.connect(_c1,"onEnd",this.getParent(),_c2);dojo.connect(_c1,"onStop",this.getParent(),_c2);var _c5={leftShow:_c0,rightShow:_c1};var _c6=this._headerEl;if(_c6){var _c7=dojo.query("h2",_c6)[0];var _c8=function(){dojo.removeClass(this.node.parentNode,"hidden");};var _c9=function(){dojo.addClass(this.node.parentNode,"hidden");};var _be={onPlay:_c8,properties:{opacity:{start:0.2,end:1}},duration:this._duration,easing:dojo.fx.easing.quadOut};var _bf=dojo.clone(_be);_bf.node=_c7;var _ca=dojo.animateProperty(_bf);var _bf=dojo.clone(_be);_bf.properties.opacity.start=1;_bf.properties.opacity.end=0.2;_bf.node=_c7;_bf.onEnd=_c9;_bf.onStop=_c9;var _cb=dojo.animateProperty(_bf);_c5.titleHide=_cb;_c5.titleShow=_ca;}var _cc=this._linkEl;if(_cc!==null){var _cd="#3399CC";var _ce=function(){dojo.style(this.node.parentNode.childNodes[1],"color","");};if(!this._divEl){var _cf=dojo.doc.createElement("div");this._divEl=_cf;dojo.style(_cf,{backgroundColor:_cd,marginBottom:"-23px",height:"23px",width:dojo.style(_cc,"width")+(dojo.isIE?"":14)+"px",marginLeft:"-6px",position:"absolute",zIndex:-1});dojo.addClass(_cf,"hidden");new dojo.NodeList(_cc).before(_cf);}var _be={properties:{color:{start:"#FFFFFF",end:"#000000"}},duration:this._linksEffectDuration};var _bf=dojo.clone(_be);_bf.node=_cc;var _d0=dojo.animateProperty(_bf);addActiveClass=function(){dojo.addClass(this.node,"active");};var _d1=function(){dojo.removeClass(this.node,"active");};var _d2={properties:{opacity:{start:0,end:1}},duration:this._linksEffectDuration};var _d3=dojo.clone(_d2);_d3.onEnd=_d3.onPlay=_bc;_d3.node=this._divEl;_d0=dojo.fx.combine([_d0,dojo.animateProperty(_d3)]);_bf.properties.color.end=_bf.properties.color.start;_bf.properties.color.start="#000000";var _bf=dojo.clone(_be);_bf.node=_cc;var _d4=dojo.animateProperty(_bf);var _d3=dojo.clone(_d2);_d3.properties.opacity.start=1;_d3.properties.opacity.end=0;_d3.onStop=_d3.onEnd=_ba;_d3.node=this._divEl;dojo.connect(_d4,"onEnd",_ce);_d4=dojo.fx.combine([_d4,dojo.animateProperty(_d3)]);_c5.linkShow=_d0;_c5.linkHide=_d4;}return _c5;},hide:function(){dojo.addClass(this._el,"hidden");},getAnimationByState:function(_d5){var _d6=this.getElement();if(current=this._parent.getCurrent(1)){currentElement=current.getElement();}else{current=this;}var _d7=null;var _d8=this.getAnimations();if(_d5.getByNbr(1)){var _d9=current.getNbr()<this.getNbr();if(_d9){_d7=_d8.rightShow;}else{_d7=_d8.leftShow;}var _da=function(){var _db;if(_db=this.getParent()._tempCurrent){_db.hide();}dojo.style(this.getElement(),{"position":"","zIndex":""});};dojo.connect(_d7,"onPlay",this,function(){var _dc;if(_dc=this.getParent()._tempCurrent){dojo.style(_dc.getElement(),{"position":"absolute","zIndex":""});}dojo.style(this.getElement(),{"zIndex":1});});dojo.connect(_d7,"onStop",this,_da);dojo.connect(_d7,"onEnd",this,_da);if(current!==this){var _dd=current.getHeight(),_de=this.getHeight();if(_dd<_de){dojo.connect(_d7,"onPlay",this,function(){dojo.style(dojo.byId("maintable"),"height",this.getHeight()+51+"px");});}else{dojo.connect(_d7,"onPlay",[this.getElement(),_dd],function(){dojo.style(this[0],"height",this[1]+"px");});dojo.connect(_d7,"onPlay",current,function(){dojo.style(dojo.byId("maintable"),"height",this.getHeight()+51+"px");});}if(_dd!==_de){var _df={properties:{height:{start:_dd,end:_de}}};dojo.connect(_d7,"onPlay",this.getParent(),function(){this.positionLinks();});if(_dd<_de){_df.node=currentElement;var _e0=dojo.animateProperty(_df);_d7=dojo.fx.chain([_e0,_d7]);}else{dojo.connect(_d7,"onPlay",[this.getElement(),_dd],function(){dojo.style(this[0],"height",this[1]+"px");});_df.node=this.getElement();var _e0=dojo.animateProperty(_df);_d7=dojo.fx.chain([_d7,_e0]);}dojo.connect(_e0,"onPlay",function(){dojo.style(dojo.byId("maintable"),"height","");});}}var _e1=[_d7];if(typeof _d8.titleShow!=="undefined"){var _e2=_d8.titleShow;_e2=dojo.fx.chain([current.getAnimations().titleHide,_e2]);_e1[_e1.length]=_e2;}if(typeof _d8.linkHide!=="undefined"){var _e3=_d8.linkShow;var _e4;if(_e4=current.getAnimations().linkHide){_e3=dojo.fx.chain([_e4,_e3]);}_e1[_e1.length]=_e3;}if(_e1.length>1){_d7=dojo.fx.combine(_e1);}}return _d7;},getHeight:function(){if(this._height===null){var _e5=dojo.hasClass(this.getElement(),"hidden");if(_e5){dojo.removeClass(this.getElement(),"hidden");}dojo.style(this.getElement(),"height","");this._height=dojo.marginBox(this.getElement()).h;if(this._height<this._minHeight){this._height=this._minHeight;}if(_e5){dojo.addClass(this.getElement(),"hidden");}}return this._height;}});})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.window.getBox=function(){var _e6=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _e7=dojo._docScroll();return {w:_e6.clientWidth,h:_e6.clientHeight,l:_e7.x,t:_e7.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_e8,pos){try{_e8=dojo.byId(_e8);var doc=_e8.ownerDocument||dojo.doc,_e9=doc.body||dojo.body(),_ea=doc.documentElement||_e9.parentNode,_eb=dojo.isIE,_ec=dojo.isWebKit;if((!(dojo.isMoz||_eb||_ec||dojo.isOpera)||_e8==_e9||_e8==_ea)&&(typeof _e8.scrollIntoView!="undefined")){_e8.scrollIntoView(false);return;}var _ed=doc.compatMode=="BackCompat",_ee=_ed?_e9:_ea,_ef=_ec?_e9:_ee,_f0=_ee.clientWidth,_f1=_ee.clientHeight,rtl=!dojo._isBodyLtr(),_f2=pos||dojo.position(_e8),el=_e8.parentNode,_f3=function(el){return ((_eb<=6||(_eb&&_ed))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_f3(_e8)){return;}while(el){if(el==_e9){el=_ef;}var _f4=dojo.position(el),_f5=_f3(el);if(el==_ef){_f4.w=_f0;_f4.h=_f1;if(_ef==_ea&&_eb&&rtl){_f4.x+=_ef.offsetWidth-_f4.w;}if(_f4.x<0||!_eb){_f4.x=0;}if(_f4.y<0||!_eb){_f4.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_f4.w-=pb.w;_f4.h-=pb.h;_f4.x+=pb.l;_f4.y+=pb.t;}if(el!=_ef){var _f6=el.clientWidth,_f7=_f4.w-_f6;if(_f6>0&&_f7>0){_f4.w=_f6;if(_eb&&rtl){_f4.x+=_f7;}}_f6=el.clientHeight;_f7=_f4.h-_f6;if(_f6>0&&_f7>0){_f4.h=_f6;}}if(_f5){if(_f4.y<0){_f4.h+=_f4.y;_f4.y=0;}if(_f4.x<0){_f4.w+=_f4.x;_f4.x=0;}if(_f4.y+_f4.h>_f1){_f4.h=_f1-_f4.y;}if(_f4.x+_f4.w>_f0){_f4.w=_f0-_f4.x;}}var l=_f2.x-_f4.x,t=_f2.y-Math.max(_f4.y,0),r=l+_f2.w-_f4.w,bot=t+_f2.h-_f4.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_f2.x+=el.scrollLeft;el.scrollLeft+=(_eb>=8&&!_ed&&rtl)?-s:s;_f2.x-=el.scrollLeft;}if(bot*t>0){_f2.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_f2.y-=el.scrollTop;}el=(el!=_ef)&&!_f5&&el.parentNode;}}catch(error){_e8.scrollIntoView(false);}};}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={};this.length=0;},add:function(_f8){if(this._hash[_f8.id]){throw new Error("Tried to register widget with id=="+_f8.id+" but that id is already registered");}this._hash[_f8.id]=_f8;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_f9,_fa){_fa=_fa||dojo.global;var i=0,id;for(id in this._hash){_f9.call(_fa,this._hash[id],i++,this._hash);}return this;},filter:function(_fb,_fc){_fc=_fc||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_fb.call(_fc,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_fd;for(id in this._hash){_fd=this._hash[id];if(_fd.declaredClass==cls){res.add(_fd);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_fe,_ff){return dojo.map(this.toArray(),_fe,_ff);},every:function(func,_100){_100=_100||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_100,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_101){_101=_101||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_101,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_102=dojo.hasAttr,_103=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _104={};dijit.getUniqueId=function(_105){var id;do{id=_105+"_"+(_105 in _104?++_104[_105]:_104[_105]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _106=[];function _107(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _108=node.getAttribute("widgetId");if(_108){_106.push(hash[_108]);}else{_107(node);}}}};_107(root);return _106;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_109){if(!_109._destroyed){if(_109.destroyRecursive){_109.destroyRecursive();}else{if(_109.destroy){_109.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(node){return hash[node.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;};var _10a=(dijit._isElementShown=function(elem){var s=_103(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(attr(elem,"type")!="hidden");});dijit.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _102(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){try{return elem.contentDocument.designMode=="on";}catch(err){return false;}}else{if(dojo.isWebKit){var doc=elem.contentDocument,body=doc&&doc.body;return body&&body.contentEditable=="true";}else{try{doc=elem.contentWindow.document;body=doc&&doc.body;return body&&body.firstChild&&body.firstChild.contentEditable=="true";}catch(e){return false;}}}default:return elem.contentEditable=="true";}};var _10b=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_102(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _10c,last,_10d,_10e,_10f,_110;var _111=function(_112){dojo.query("> *",_112).forEach(function(_113){if((dojo.isIE&&_113.scopeName!=="HTML")||!_10a(_113)){return;}if(_10b(_113)){var _114=attr(_113,"tabIndex");if(!_102(_113,"tabIndex")||_114==0){if(!_10c){_10c=_113;}last=_113;}else{if(_114>0){if(!_10d||_114<_10e){_10e=_114;_10d=_113;}if(!_10f||_114>=_110){_110=_114;_10f=_113;}}}}if(_113.nodeName.toUpperCase()!="SELECT"){_111(_113);}});};if(_10a(root)){_111(root);}return {first:_10c,last:last,lowest:_10d,highest:_10f};};dijit.getFirstInTabbingOrder=function(root){var _115=dijit._getTabNavigable(dojo.byId(root));return _115.lowest?_115.lowest:_115.first;};dijit.getLastInTabbingOrder=function(root){var _116=dijit._getTabNavigable(dojo.byId(root));return _116.last?_116.last:_116.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}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(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{}}return bm;},moveToBookmark:function(_117){var _118=dojo.doc,mark=_117.mark;if(mark){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var r=mark;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{}}else{if(_118.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_118.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_118.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_119){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_119||dojo.global,dijit.getBookmark),openedForWindow:_119};},focus:function(_11a){if(!_11a){return;}var node="node" in _11a?_11a.node:_11a,_11b=_11a.bookmark,_11c=_11a.openedForWindow,_11d=_11b?_11b.isCollapsed:false;if(node){var _11e=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_11e&&_11e.focus){try{_11e.focus();}catch(e){}}dijit._onFocusNode(node);}if(_11b&&dojo.withGlobal(_11c||dojo.global,dijit.isCollapsed)&&!_11d){if(_11c){_11c.focus();}try{dojo.withGlobal(_11c||dojo.global,dijit.moveToBookmark,null,[_11b]);}catch(e2){}}},_activeStack:[],registerIframe:function(_11f){return dijit.registerWin(_11f.contentWindow,_11f);},unregisterIframe:function(_120){dijit.unregisterWin(_120);},registerWin:function(_121,_122){var _123=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_122||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_121.document.documentElement:_121.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_123);var _124=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_122||evt.srcElement);}else{dijit._onTouchNode(_122||evt.srcElement);}};doc.attachEvent("onactivate",_124);var _125=function(evt){dijit._onBlurNode(_122||evt.srcElement);};doc.attachEvent("ondeactivate",_125);return function(){doc.detachEvent("onmousedown",_123);doc.detachEvent("onactivate",_124);doc.detachEvent("ondeactivate",_125);doc=null;};}else{doc.addEventListener("mousedown",_123,true);var _126=function(evt){dijit._onFocusNode(_122||evt.target);};doc.addEventListener("focus",_126,true);var _127=function(evt){dijit._onBlurNode(_122||evt.target);};doc.addEventListener("blur",_127,true);return function(){doc.removeEventListener("mousedown",_123,true);doc.removeEventListener("focus",_126,true);doc.removeEventListener("blur",_127,true);doc=null;};}}},unregisterWin:function(_128){_128&&_128();},_onBlurNode:function(node){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(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _129=[];try{while(node){var _12a=dojo.attr(node,"dijitPopupParent");if(_12a){node=dijit.byId(_12a).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_12b=id&&dijit.byId(id);if(_12b&&!(by=="mouse"&&_12b.get("disabled"))){_129.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_129,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_12c,by){var _12d=dijit._activeStack;dijit._activeStack=_12c;for(var _12e=0;_12e<Math.min(_12d.length,_12c.length);_12e++){if(_12d[_12e]!=_12c[_12e]){break;}}var _12f;for(var i=_12d.length-1;i>=_12e;i--){_12f=dijit.byId(_12d[i]);if(_12f){_12f._focused=false;_12f._hasBeenBlurred=true;if(_12f._onBlur){_12f._onBlur(by);}dojo.publish("widgetBlur",[_12f,by]);}}for(i=_12e;i<_12c.length;i++){_12f=dijit.byId(_12c[i]);if(_12f){_12f._focused=true;if(_12f._onFocus){_12f._onFocus(by);}dojo.publish("widgetFocus",[_12f,by]);}}}});dojo.addOnLoad(function(){var _130=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_130);_130=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_131){this.pairs=[];this.returnWrappers=_131||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_132,wrap,_133,_134){this.pairs[((_134)?"unshift":"push")]([name,_132,wrap,_133]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){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(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_135,_136){var _137=dojo.map(_135,function(_138){var c={corner:_138,pos:{x:pos.x,y:pos.y}};if(_136){c.pos.x+=_138.charAt(1)=="L"?_136.x:-_136.x;c.pos.y+=_138.charAt(0)=="T"?_136.y:-_136.y;}return c;});return dijit._place(node,_137);};dijit._place=function(node,_139,_13a){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_139,function(_13b){var _13c=_13b.corner;var pos=_13b.pos;if(_13a){_13a(node,_13b.aroundCorner,_13c);}var _13d=node.style;var _13e=_13d.display;var _13f=_13d.visibility;_13d.visibility="hidden";_13d.display="";var mb=dojo.marginBox(node);_13d.display=_13e;_13d.visibility=_13f;var _140=Math.max(view.l,_13c.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_141=Math.max(view.t,_13c.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_13c.charAt(1)=="L"?(_140+mb.w):pos.x),endY=Math.min(view.t+view.h,_13c.charAt(0)=="T"?(_141+mb.h):pos.y),_142=endX-_140,_143=endY-_141,_144=(mb.w-_142)+(mb.h-_143);if(best==null||_144<best.overflow){best={corner:_13c,aroundCorner:_13b.aroundCorner,x:_140,y:_141,w:_142,h:_143,overflow:_144};}return !_144;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_13a){_13a(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundNode=function(node,_145,_146,_147){_145=dojo.byId(_145);var _148=_145.style.display;_145.style.display="";var _149=dojo.position(_145,true);_145.style.display=_148;return dijit._placeOnScreenAroundRect(node,_149.x,_149.y,_149.w,_149.h,_146,_147);};dijit.placeOnScreenAroundRectangle=function(node,_14a,_14b,_14c){return dijit._placeOnScreenAroundRect(node,_14a.x,_14a.y,_14a.width,_14a.height,_14b,_14c);};dijit._placeOnScreenAroundRect=function(node,x,y,_14d,_14e,_14f,_150){var _151=[];for(var _152 in _14f){_151.push({aroundCorner:_152,corner:_14f[_152],pos:{x:x+(_152.charAt(1)=="L"?0:_14d),y:y+(_152.charAt(0)=="T"?0:_14e)}});}return dijit._place(node,_151,_150);};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(node,_153,_154,_155){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_156,_157){var _158={};dojo.forEach(_156,function(pos){switch(pos){case "after":_158[_157?"BR":"BL"]=_157?"BL":"BR";break;case "before":_158[_157?"BL":"BR"]=_157?"BR":"BL";break;case "below":_158[_157?"BL":"BR"]=_157?"TL":"TR";_158[_157?"BR":"BL"]=_157?"TR":"TL";break;case "above":default:_158[_157?"TL":"TR"]=_157?"BL":"BR";_158[_157?"TR":"TL"]=_157?"BR":"BL";break;}});return _158;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,moveOffScreen:function(node){var _159=node.parentNode;if(!_159||!dojo.hasClass(_159,"dijitPopup")){_159=dojo.create("div",{"class":"dijitPopup",style:{visibility:"hidden",top:"-9999px"}},dojo.body());dijit.setWaiRole(_159,"presentation");_159.appendChild(node);}var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";dojo.style(_159,{visibility:"hidden",top:"-9999px"});},getTopPopup:function(){var _15a=this._stack;for(var pi=_15a.length-1;pi>0&&_15a[pi].parent===_15a[pi-1].widget;pi--){}return _15a[pi];},open:function(args){var _15b=this._stack,_15c=args.popup,_15d=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_15e=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);var _15f=_15c.domNode.parentNode;if(!_15f||!dojo.hasClass(_15f,"dijitPopup")){this.moveOffScreen(_15c.domNode);_15f=_15c.domNode.parentNode;}dojo.attr(_15f,{id:id,style:{zIndex:this._beginZIndex+_15b.length},"class":"dijitPopup "+(_15c.baseClass||_15c["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){var _160=_15f.childNodes[1];if(!_160){_160=new dijit.BackgroundIframe(_15f);}}var best=_15e?dijit.placeOnScreenAroundElement(_15f,_15e,_15d,_15c.orient?dojo.hitch(_15c,"orient"):null):dijit.placeOnScreen(_15f,args,_15d=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_15f.style.visibility="visible";_15c.domNode.style.visibility="visible";var _161=[];_161.push(dojo.connect(_15f,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _162=this.getTopPopup();if(_162&&_162.onCancel){_162.onCancel();}}}}));if(_15c.onCancel){_161.push(dojo.connect(_15c,"onCancel",args.onCancel));}_161.push(dojo.connect(_15c,_15c.onExecute?"onExecute":"onChange",this,function(){var _163=this.getTopPopup();if(_163&&_163.onExecute){_163.onExecute();}}));_15b.push({wrapper:_15f,iframe:_160,widget:_15c,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_161});if(_15c.onOpen){_15c.onOpen(best);}return best;},close:function(_164){var _165=this._stack;while(dojo.some(_165,function(elem){return elem.widget==_164;})){var top=_165.pop(),_166=top.wrapper,_167=top.iframe,_168=top.widget,_169=top.onClose;if(_168.onClose){_168.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_168&&_168.domNode){this.moveOffScreen(_168.domNode);}else{dojo.destroy(_166);}if(_169){_169();}}}};dijit._frames=new function(){var _16a=[];this.pop=function(){var _16b;if(_16a.length){_16b=_16a.pop();_16b.style.display="";}else{if(dojo.isIE){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_16b=dojo.doc.createElement(html);}else{_16b=dojo.create("iframe");_16b.src="javascript:\"\"";_16b.className="dijitBackgroundIframe";dojo.style(_16b,"opacity",0.1);}_16b.tabIndex=-1;dijit.setWaiRole(_16b,"presentation");}return _16b;};this.push=function(_16c){_16c.style.display="none";_16a.push(_16c);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _16d=dijit._frames.pop();node.appendChild(_16d);if(dojo.isIE<7){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_16d,{width:"100%",height:"100%"});}this.iframe=_16d;}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe&&dojo.isIE<7){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}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,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_16e=d.isOpera,maj=Math.floor,ff=d.isFF,_16f=d.boxModel.replace(/-/,""),_170={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_16e,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_170["dj_"+_16f]=true;var _171="";for(var clz in _170){if(_170[clz]){_171+=clz+" ";}}html.className=d.trim(html.className+" "+_171);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _172="dj_rtl dijitRtl "+_171.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_172);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}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=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_173,node,_174,obj,_175,_176,_177){if(obj!=this._obj){this.stop();this._initialDelay=_176||500;this._subsequentDelay=_175||0.9;this._minDelay=_177||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_173,_174);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},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,_178,_179,_17a,_17b,_17c,_17d){if(_178.keyCode){_178.charOrCode=_178.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_178.charCode){_178.charOrCode=String.fromCharCode(_178.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==_178.charOrCode&&(_178.ctrlKey===undefined||_178.ctrlKey==evt.ctrlKey)&&(_178.altKey===undefined||_178.altKey==evt.altKey)&&(_178.metaKey===undefined||_178.metaKey==(evt.metaKey||false))&&(_178.shiftKey===undefined||_178.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_179,node,_17a,_178,_17b,_17c,_17d);}else{if(dijit.typematic._obj==_178){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_178){dijit.typematic.stop();}})];},addMouseListener:function(node,_17e,_17f,_180,_181,_182){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_17e,node,_17f,node,_180,_181,_182);}),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){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_17e,node,_17f,node,_180,_181,_182);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_183,_184,_185,_186,_187,_188,_189,_18a){return this.addKeyListener(_184,_185,_186,_187,_188,_189,_18a).concat(this.addMouseListener(_183,_186,_187,_188,_189,_18a));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",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());var cs=dojo.getComputedStyle(div);if(cs){var _18b=cs.backgroundImage;var _18c=(cs.borderTopColor==cs.borderRightColor)||(_18b!=null&&(_18b=="none"||_18b=="url(invalid-url:)"));dojo[_18c?"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 _18d=this.getWaiRole(elem);return role?(_18d.indexOf(role)>-1):(_18d.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _18e=dojo.attr(elem,"role")||"";if(!this._XhtmlRoles.test(_18e)){dojo.attr(elem,"role",role);}else{if((" "+_18e+" ").indexOf(" "+role+" ")<0){var _18f=dojo.trim(_18e.replace(this._XhtmlRoles,""));var _190=dojo.trim(_18e.replace(_18f,""));dojo.attr(elem,"role",_190+(_190?" ":"")+role);}}},removeWaiRole:function(elem,role){var _191=dojo.attr(elem,"role");if(!_191){return;}if(role){var t=dojo.trim((" "+_191+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_192){return elem.hasAttribute?elem.hasAttribute("aria-"+_192):!!elem.getAttribute("aria-"+_192);},getWaiState:function(elem,_193){return elem.getAttribute("aria-"+_193)||"";},setWaiState:function(elem,_194,_195){elem.setAttribute("aria-"+_194,_195);},removeWaiState:function(elem,_196){elem.removeAttribute("aria-"+_196);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_197,_198){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 _199=dojo.date.stamp._isoRegExp.exec(_197),_19a=null;if(_199){_199.shift();if(_199[1]){_199[1]--;}if(_199[6]){_199[6]*=1000;}if(_198){_198=new Date(_198);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _198["get"+prop]();}),function(_19b,_19c){_199[_19c]=_199[_19c]||_19b;});}_19a=new Date(_199[0]||1970,_199[1]||0,_199[2]||1,_199[3]||0,_199[4]||0,_199[5]||0,_199[6]||0);if(_199[0]<100){_19a.setFullYear(_199[0]||1970);}var _19d=0,_19e=_199[7]&&_199[7].charAt(0);if(_19e!="Z"){_19d=((_199[8]||0)*60)+(Number(_199[9])||0);if(_19e!="-"){_19d*=-1;}}if(_19e){_19d-=_19a.getTimezoneOffset();}if(_19d){_19a.setTime(_19a.getTime()+_19d*60000);}}return _19a;};dojo.date.stamp.toISOString=function(_19f,_1a0){var _1a1=function(n){return (n<10)?"0"+n:n;};_1a0=_1a0||{};var _1a2=[],_1a3=_1a0.zulu?"getUTC":"get",date="";if(_1a0.selector!="time"){var year=_19f[_1a3+"FullYear"]();date=["0000".substr((year+"").length)+year,_1a1(_19f[_1a3+"Month"]()+1),_1a1(_19f[_1a3+"Date"]())].join("-");}_1a2.push(date);if(_1a0.selector!="date"){var time=[_1a1(_19f[_1a3+"Hours"]()),_1a1(_19f[_1a3+"Minutes"]()),_1a1(_19f[_1a3+"Seconds"]())].join(":");var _1a4=_19f[_1a3+"Milliseconds"]();if(_1a0.milliseconds){time+="."+(_1a4<100?"0":"")+_1a1(_1a4);}if(_1a0.zulu){time+="Z";}else{if(_1a0.selector!="time"){var _1a5=_19f.getTimezoneOffset();var _1a6=Math.abs(_1a5);time+=(_1a5>0?"-":"+")+_1a1(Math.floor(_1a6/60))+":"+_1a1(_1a6%60);}}_1a2.push(time);}return _1a2.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function _1a7(_1a8){if(d.isString(_1a8)){return "string";}if(typeof _1a8=="number"){return "number";}if(typeof _1a8=="boolean"){return "boolean";}if(d.isFunction(_1a8)){return "function";}if(d.isArray(_1a8)){return "array";}if(_1a8 instanceof Date){return "date";}if(_1a8 instanceof d._Url){return "url";}return "object";};function _1a9(_1aa,type){switch(type){case "string":return _1aa;case "number":return _1aa.length?Number(_1aa):NaN;case "boolean":return typeof _1aa=="boolean"?_1aa:!(_1aa.toLowerCase()=="false");case "function":if(d.isFunction(_1aa)){_1aa=_1aa.toString();_1aa=d.trim(_1aa.substring(_1aa.indexOf("{")+1,_1aa.length-1));}try{if(_1aa===""||_1aa.search(/[^\w\.]+/i)!=-1){return new Function(_1aa);}else{return d.getObject(_1aa,false)||new Function(_1aa);}}catch(e){return new Function();}case "array":return _1aa?_1aa.split(/\s*,\s*/):[];case "date":switch(_1aa){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_1aa);}case "url":return d.baseUrl+_1aa;default:return d.fromJson(_1aa);}};var _1ab={};dojo.connect(dojo,"extend",function(){_1ab={};});function _1ac(_1ad){if(!_1ab[_1ad]){var cls=d.getObject(_1ad);if(!cls){return null;}var _1ae=cls.prototype;var _1af={},_1b0={};for(var name in _1ae){if(name.charAt(0)=="_"){continue;}if(name in _1b0){continue;}var _1b1=_1ae[name];_1af[name]=_1a7(_1b1);}_1ab[_1ad]={cls:cls,params:_1af};}return _1ab[_1ad];};this._functionFromScript=function(_1b2){var _1b3="";var _1b4="";var _1b5=_1b2.getAttribute("args");if(_1b5){d.forEach(_1b5.split(/\s*,\s*/),function(part,idx){_1b3+="var "+part+" = arguments["+idx+"]; ";});}var _1b6=_1b2.getAttribute("with");if(_1b6&&_1b6.length){d.forEach(_1b6.split(/\s*,\s*/),function(part){_1b3+="with("+part+"){";_1b4+="}";});}return new Function(_1b3+_1b2.innerHTML+_1b4);};this.instantiate=function(_1b7,_1b8,args){var _1b9=[],dp=dojo.parser;_1b8=_1b8||{};args=args||{};d.forEach(_1b7,function(obj){if(!obj){return;}var node,type,_1ba,_1bb,_1bc;if(obj.node){node=obj.node;type=obj.type;_1ba=obj.clsInfo||(type&&_1ac(type));_1bb=_1ba&&_1ba.cls;_1bc=obj.scripts;}else{node=obj;type=dp._attrName in _1b8?_1b8[dp._attrName]:node.getAttribute(dp._attrName);_1ba=type&&_1ac(type);_1bb=_1ba&&_1ba.cls;_1bc=(_1bb&&(_1bb._noScript||_1bb.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_1ba){throw new Error("Could not load class '"+type);}var _1bd={},_1be=node.attributes;if(args.defaults){dojo.mixin(_1bd,args.defaults);}if(obj.inherited){dojo.mixin(_1bd,obj.inherited);}for(var name in _1ba.params){var item=name in _1b8?{value:_1b8[name],specified:true}:_1be.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _1bf=item.value;switch(name){case "class":_1bf="className" in _1b8?_1b8.className:node.className;break;case "style":_1bf="style" in _1b8?_1b8.style:(node.style&&node.style.cssText);}var _1c0=_1ba.params[name];if(typeof _1bf=="string"){_1bd[name]=_1a9(_1bf,_1c0);}else{_1bd[name]=_1bf;}}var _1c1=[],_1c2=[];d.forEach(_1bc,function(_1c3){node.removeChild(_1c3);var _1c4=_1c3.getAttribute("event"),type=_1c3.getAttribute("type"),nf=d.parser._functionFromScript(_1c3);if(_1c4){if(type=="dojo/connect"){_1c1.push({event:_1c4,func:nf});}else{_1bd[_1c4]=nf;}}else{_1c2.push(nf);}});var _1c5=_1bb.markupFactory||_1bb.prototype&&_1bb.prototype.markupFactory;var _1c6=_1c5?_1c5(_1bd,node,_1bb):new _1bb(_1bd,node);_1b9.push(_1c6);var _1c7=node.getAttribute("jsId");if(_1c7){d.setObject(_1c7,_1c6);}d.forEach(_1c1,function(_1c8){d.connect(_1c6,_1c8.event,null,_1c8.func);});d.forEach(_1c2,function(func){func.call(_1c6);});});if(!_1b8._started){d.forEach(_1b9,function(_1c9){if(!args.noStart&&_1c9&&_1c9.startup&&!_1c9._started&&(!_1c9.getParent||!_1c9.getParent())){_1c9.startup();}});}return _1b9;};this.parse=function(_1ca,args){var root;if(!args&&_1ca&&_1ca.rootNode){args=_1ca;root=args.rootNode;}else{root=_1ca;}var _1cb=this._attrName;function scan(_1cc,list){var _1cd=dojo.clone(_1cc.inherited);dojo.forEach(["dir","lang"],function(name){var val=_1cc.node.getAttribute(name);if(val){_1cd[name]=val;}});var _1ce=_1cc.scripts;var _1cf=!_1cc.clsInfo||!_1cc.clsInfo.cls.prototype.stopParser;for(var _1d0=_1cc.node.firstChild;_1d0;_1d0=_1d0.nextSibling){if(_1d0.nodeType==1){var type=_1cf&&_1d0.getAttribute(_1cb);if(type){var _1d1={"type":type,clsInfo:_1ac(type),node:_1d0,scripts:[],inherited:_1cd};list.push(_1d1);scan(_1d1,list);}else{if(_1ce&&_1d0.nodeName.toLowerCase()=="script"){type=_1d0.getAttribute("type");if(type&&/^dojo\//i.test(type)){_1ce.push(_1d0);}}else{if(_1cf){scan({node:_1d0,inherited:_1cd},list);}}}}}};var list=[];scan({node:root?dojo.byId(root):dojo.body(),inherited:(args&&args.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl"}},list);return this.instantiate(list,null,args);};}();(function(){var _1d2=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_1d2);}else{dojo._loaders.unshift(_1d2);}})();}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"_connect",function(_1d3,_1d4){if(_1d3&&dojo.isFunction(_1d3._onConnect)){_1d3._onConnect(_1d4);}});dijit._connectOnUseEventHandler=function(_1d5){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _1d6=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_1d6);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_1d6);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _1d7={},_1d8=function(_1d9){var dc=_1d9.declaredClass;if(!_1d7[dc]){var r=[],_1da,_1db=_1d9.constructor.prototype;for(var _1dc in _1db){if(dojo.isFunction(_1db[_1dc])&&(_1da=_1dc.match(/^_set([a-zA-Z]*)Attr$/))&&_1da[1]){r.push(_1da[1].charAt(0).toLowerCase()+_1da[1].substr(1));}}_1d7[dc]=r;}return _1d7[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",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")).toString(),postscript:function(_1dd,_1de){this.create(_1dd,_1de);},create:function(_1df,_1e0){this.srcNodeRef=dojo.byId(_1e0);this._connects=[];this._subscribes=[];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(_1df){this.params=_1df;dojo.mixin(this,_1df);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _1e1=this.srcNodeRef;if(_1e1&&_1e1.parentNode){_1e1.parentNode.replaceChild(this.domNode,_1e1);}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 _1e2=function(attr,_1e3){if((_1e3.params&&attr in _1e3.params)||_1e3[attr]){_1e3.set(attr,_1e3[attr]);}};for(var attr in this.attributeMap){_1e2(attr,this);}dojo.forEach(_1d8(this),function(a){if(!(a in this.attributeMap)){_1e2(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){if(this.baseClass){var _1e4=this.baseClass.split(" ");if(!this.isLeftToRight()){_1e4=_1e4.concat(dojo.map(_1e4,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_1e4);}},startup:function(){this._started=true;},destroyRecursive:function(_1e5){this._beingDestroyed=true;this.destroyDescendants(_1e5);this.destroy(_1e5);},destroy:function(_1e6){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_1e7){dfe(_1e7,d.disconnect);});dfe(this._subscribes,function(_1e8){dun(_1e8);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_1e6);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_1e9){if(this.bgIframe){this.bgIframe.destroy(_1e9);delete this.bgIframe;}if(this.domNode){if(_1e9){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_1e9){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_1ea){dojo.forEach(this.getChildren(),function(_1eb){if(_1eb.destroyRecursive){_1eb.destroyRecursive(_1ea);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_1ec){if(_1ec in this._deferredConnects){var _1ed=this[this._deferredConnects[_1ec]||"domNode"];this.connect(_1ed,_1ec.toLowerCase(),_1ec);delete this._deferredConnects[_1ec];}},_setClassAttr:function(_1ee){var _1ef=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_1ef,this["class"]);this["class"]=_1ee;dojo.addClass(_1ef,_1ee);},_setStyleAttr:function(_1f0){var _1f1=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_1f0)){dojo.style(_1f1,_1f0);}else{if(_1f1.style.cssText){_1f1.style.cssText+="; "+_1f0;}else{_1f1.style.cssText=_1f0;}}this.style=_1f0;},setAttribute:function(attr,_1f2){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_1f2);},_attrToDom:function(attr,_1f3){var _1f4=this.attributeMap[attr];dojo.forEach(dojo.isArray(_1f4)?_1f4:[_1f4],function(_1f5){var _1f6=this[_1f5.node||_1f5||"domNode"];var type=_1f5.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_1f3)){_1f3=dojo.hitch(this,_1f3);}var _1f7=_1f5.attribute?_1f5.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_1f6,_1f7,_1f3);break;case "innerText":_1f6.innerHTML="";_1f6.appendChild(dojo.doc.createTextNode(_1f3));break;case "innerHTML":_1f6.innerHTML=_1f3;break;case "class":dojo.removeClass(_1f6,this[attr]);dojo.addClass(_1f6,_1f3);break;}},this);this[attr]=_1f3;},attr:function(name,_1f8){if(dojo.config.isDebug){var _1f9=arguments.callee._ach||(arguments.callee._ach={}),_1fa=(arguments.callee.caller||"unknown caller").toString();if(!_1f9[_1fa]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_1fa,"","2.0");_1f9[_1fa]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},get:function(name){var _1fb=this._getAttrNames(name);return this[_1fb.g]?this[_1fb.g]():this[name];},set:function(name,_1fc){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _1fd=this._getAttrNames(name);if(this[_1fd.s]){var _1fe=this[_1fd.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_1fc);}var _1ff=this[name];this[name]=_1fc;}return _1fe||this;},_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(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},nodesWithKeyClick:["input","button"],connect:function(obj,_200,_201){var d=dojo,dc=d._connect,_202=[];if(_200=="ondijitclick"){if(dojo.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_201);_202.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;e.preventDefault();}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}_200="onclick";}_202.push(dc(obj,_200,this,_201));this._connects.push(_202);return _202;},disconnect:function(_203){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_203){dojo.forEach(_203,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_204,_205){var d=dojo,_206=d.subscribe(_204,this,_205);this._subscribes.push(_206);return _206;},unsubscribe:function(_207){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_207){dojo.unsubscribe(_207);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_208,_209){if(_208.declaredClass&&_208.addChild){_208.addChild(this,_209);}else{dojo.place(this.domNode,_208,_209);}return this;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}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(_20a,map,_20b,_20c){_20c=_20c||dojo.global;_20b=_20b?dojo.hitch(_20c,_20b):function(v){return v;};return _20a.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_20d,key,_20e){var _20f=dojo.getObject(key,false,map);if(_20e){_20f=dojo.getObject(_20e,false,_20c).call(_20c,_20f,key);}return _20b(_20f,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.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.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");(function(){var _210={};dojo.cache=function(_211,url,_212){if(typeof _211=="string"){var _213=dojo.moduleUrl(_211,url);}else{_213=_211;_212=url;}var key=_213.toString();var val=_212;if(_212!=undefined&&!dojo.isString(_212)){val=("value" in _212?_212.value:undefined);}var _214=_212&&_212.sanitize?true:false;if(typeof val=="string"){val=_210[key]=_214?dojo.cache._sanitize(val):val;}else{if(val===null){delete _210[key];}else{if(!(key in _210)){val=dojo._getText(key);_210[key]=_214?dojo.cache._sanitize(val):val;}val=_210[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _215=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_215){val=_215[1];}}else{val="";}return val;};})();}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];},_stringRepl:function(tmpl){var _216=this.declaredClass,_217=this;return dojo.string.substitute(tmpl,this,function(_218,key){if(key.charAt(0)=="!"){_218=dojo.getObject(key.substr(1),false,_217);}if(typeof _218=="undefined"){throw new Error(_216+" template:"+key);}if(_218==null){return "";}return key.charAt(0)=="!"?_218:_218.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _219=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_219)){node=dojo._toDom(this._stringRepl(_219));if(node.nodeType!=1){throw new Error("Invalid template: "+_219);}}else{node=_219.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _21a=dojo.parser,qry,attr;if(_21a._query!="[dojoType]"){qry=_21a._query;attr=_21a._attrName;_21a._query="[dojoType]";_21a._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}}));if(qry){_21a._query=qry;_21a._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_21b){var dest=this.containerNode;if(_21b&&dest){while(_21b.hasChildNodes()){dest.appendChild(_21b.firstChild);}}},_attachTemplateNodes:function(_21c,_21d){_21d=_21d||function(n,p){return n.getAttribute(p);};var _21e=dojo.isArray(_21c)?_21c:(_21c.all||_21c.getElementsByTagName("*"));var x=dojo.isArray(_21c)?0:-1;for(;x<_21e.length;x++){var _21f=(x==-1)?_21c:_21e[x];if(this.widgetsInTemplate&&_21d(_21f,"dojoType")){continue;}var _220=_21d(_21f,"dojoAttachPoint");if(_220){var _221,_222=_220.split(/\s*,\s*/);while((_221=_222.shift())){if(dojo.isArray(this[_221])){this[_221].push(_21f);}else{this[_221]=_21f;}this._attachPoints.push(_221);}}var _223=_21d(_21f,"dojoAttachEvent");if(_223){var _224,_225=_223.split(/\s*,\s*/);var trim=dojo.trim;while((_224=_225.shift())){if(_224){var _226=null;if(_224.indexOf(":")!=-1){var _227=_224.split(":");_224=trim(_227[0]);_226=trim(_227[1]);}else{_224=trim(_224);}if(!_226){_226=_224;}this.connect(_21f,_224,_226);}}}var role=_21d(_21f,"waiRole");if(role){dijit.setWaiRole(_21f,role);}var _228=_21d(_21f,"waiState");if(_228){dojo.forEach(_228.split(/\s*,\s*/),function(_229){if(_229.indexOf("-")!=-1){var pair=_229.split("-");dijit.setWaiState(_21f,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_22a){delete this[_22a];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_22b,_22c,_22d){var _22e=dijit._Templated._templateCache;var key=_22c||_22b;var _22f=_22e[key];if(_22f){try{if(!_22f.ownerDocument||_22f.ownerDocument==dojo.doc){return _22f;}}catch(e){}dojo.destroy(_22f);}if(!_22c){_22c=dojo.cache(_22b,{sanitize:true});}_22c=dojo.string.trim(_22c);if(_22d||_22c.match(/\$\{([^\}]+)\}/g)){return (_22e[key]=_22c);}else{var node=dojo._toDom(_22c);if(node.nodeType!=1){throw new Error("Invalid template: "+_22c);}return (_22e[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _230=dijit._Templated._templateCache;for(var key in _230){var _231=_230[key];if(typeof _231=="object"){dojo.destroy(_231);}delete _230[key];}});}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._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_232,_233){var _234=this.containerNode;if(_233&&typeof _233=="number"){var _235=this.getChildren();if(_235&&_235.length>=_233){_234=_235[_233-1].domNode;_233="after";}}dojo.place(_232.domNode,_234,_233);if(this._started&&!_232._started){_232.startup();}},removeChild:function(_236){if(typeof _236=="number"&&_236>0){_236=this.getChildren()[_236];}if(_236){var node=_236.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_237){dojo.forEach(this.getChildren(),function(_238){_238.destroyRecursive(_237);});},_getSiblingOfChild:function(_239,dir){var node=_239.domNode,_23a=(dir>0?"nextSibling":"previousSibling");do{node=node[_23a];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_23b){return dojo.indexOf(this.getChildren(),_23b);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_23c){_23c.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _23d=dijit.getEnclosingWidget(this.domNode.parentNode);return _23d&&_23d.isContainer?_23d:null;},_getSibling:function(_23e){var node=this.domNode;do{node=node[_23e+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}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],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");this.inherited(arguments);},startup:function(){if(this._started){return;}this.inherited(arguments);var _23f=this.getParent&&this.getParent();if(!(_23f&&_23f.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_240,_241){var node=this.domNode;if(_240){dojo.marginBox(node,_240);if(_240.t){node.style.top=_240.t+"px";}if(_240.l){node.style.left=_240.l+"px";}}var mb=_241||{};dojo.mixin(mb,_240||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_242){dojo.addClass(_242.domNode,this.baseClass+"-child");if(_242.baseClass){dojo.addClass(_242.domNode,this.baseClass+"-"+_242.baseClass);}},addChild:function(_243,_244){this.inherited(arguments);if(this._started){this._setupChild(_243);}},removeChild:function(_245){dojo.removeClass(_245.domNode,this.baseClass+"-child");if(_245.baseClass){dojo.removeClass(_245.domNode,this.baseClass+"-"+_245.baseClass);}this.inherited(arguments);}});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 _246=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_247,dim){_247.resize?_247.resize(dim):dojo.marginBox(_247.domNode,dim);dojo.mixin(_247,dojo.marginBox(_247.domNode));dojo.mixin(_247,dim);};dijit.layout.layoutChildren=function(_248,dim,_249){dim=dojo.mixin({},dim);dojo.addClass(_248,"dijitLayoutContainer");_249=dojo.filter(_249,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_249,function(item){return item.layoutAlign=="client";}));dojo.forEach(_249,function(_24a){var elm=_24a.domNode,pos=_24a.layoutAlign;var _24b=elm.style;_24b.left=dim.l+"px";_24b.top=dim.t+"px";_24b.bottom=_24b.right="auto";dojo.addClass(elm,"dijitAlign"+_246(pos));if(pos=="top"||pos=="bottom"){size(_24a,{w:dim.w});dim.h-=_24a.h;if(pos=="top"){dim.t+=_24a.h;}else{_24b.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_24a,{h:dim.h});dim.w-=_24a.w;if(pos=="left"){dim.l+=_24a.w;}else{_24b.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_24a,dim);}}}});};})();}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},postCreate:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);this.connect(this,"set",function(name,_24c){if(arguments.length>=2&&{disabled:true,readOnly:true,checked:true,selected:true}[name]){this._setStateClass();}});dojo.forEach(["_onFocus","_onBlur"],function(ap){this.connect(this,ap,"_setStateClass");},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_24d){if(!this.disabled){switch(_24d.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseleave":case "mouseout":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _24e=this.connect(dojo.body(),"onmouseup",function(){this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_24e);});break;}this._setStateClass();}},_setStateClass:function(){var _24f=this.baseClass.split(" ");function _250(_251){_24f=_24f.concat(dojo.map(_24f,function(c){return c+_251;}),"dijit"+_251);};if(!this.isLeftToRight()){_250("Rtl");}if(this.checked){_250("Checked");}if(this.state){_250(this.state);}if(this.selected){_250("Selected");}if(this.disabled){_250("Disabled");}else{if(this.readOnly){_250("ReadOnly");}else{if(this._active){_250("Active");}else{if(this._hovering){_250("Hover");}}}}if(this._focused){_250("Focused");}var tn=this.stateNode||this.domNode,_252={};dojo.forEach(tn.className.split(" "),function(c){_252[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _252[c];});}dojo.forEach(_24f,function(c){_252[c]=true;});var _253=[];for(var c in _252){_253.push(c);}tn.className=_253.join(" ");this._stateClasses=_24f;},_trackMouseState:function(node,_254){var _255=false,_256=false,_257=false;var self=this,cn=dojo.hitch(this,"connect",node);function _258(){var _259=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_254+"Hover",_255&&!_256&&!_259);dojo.toggleClass(node,_254+"Active",_256&&!_259);dojo.toggleClass(node,_254+"Focused",_257&&!_259);};cn("onmouseenter",function(){_255=true;_258();});cn("onmouseleave",function(){_255=false;_256=false;_258();});cn("onmousedown",function(){_256=true;_258();});cn("onmouseup",function(){_256=false;_258();});cn("onfocus",function(){_257=true;_258();});cn("onblur",function(){_257=false;_258();});this.connect(this,"set",function(name,_25a){if(name=="disabled"||name=="readOnly"){_258();}});}});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_25b){this.disabled=_25b;dojo.attr(this.focusNode,"disabled",_25b);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_25b);}dijit.setWaiState(this.focusNode,"disabled",_25b);if(_25b){this._hovering=false;this._active=false;var _25c="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_25c)?_25c:[_25c],function(_25d){var node=this[_25d];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}},setDisabled:function(_25e){dojo.deprecated("setDisabled("+_25e+") is deprecated. Use set('disabled',"+_25e+") instead.","","2.0");this.set("disabled",_25e);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_25f){},_onChangeActive:false,_handleOnChange:function(_260,_261){this._lastValue=_260;if(this._lastValueReported==undefined&&(_261===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_260;}if((this.intermediateChanges||_261||_261===undefined)&&((typeof _260!=typeof this._lastValueReported)||this.compare(_260,this._lastValueReported)!=0)){this._lastValueReported=_260;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_260);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_262){dojo.deprecated("dijit.form._FormWidget:setValue("+_262+") is deprecated.  Use set('value',"+_262+") instead.","","2.0");this.set("value",_262);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&this.isFocusable()){var _263=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_263);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_264){this.readOnly=_264;dojo.attr(this.focusNode,"readOnly",_264);dijit.setWaiState(this.focusNode,"readonly",_264);},postCreate:function(){this.inherited(arguments);if(dojo.isIE){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_265,_266){this.value=_265;this._handleOnChange(_265,_266);},_getValueAttr:function(){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _267=this.domNode;var _268=_267.parentNode;var _269=_267.firstChild||_267;var _26a=_269.style.filter;var _26b=this;while(_268&&_268.clientHeight==0){(function ping(){var _26c=_26b.connect(_268,"onscroll",function(e){_26b.disconnect(_26c);_269.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_269.style.filter=_26a;},0);});})();_268=_268.parentNode;}}}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}if(!dojo._hasResource["serenity.Slider"]){dojo._hasResource["serenity.Slider"]=true;dojo.provide("serenity.Slider");(function(){dojo.declare("serenity.Slider",[exe.Slider],{_linksPadding:250,_duration:500,_currentTop:null,_nextListHref:null,_prevListHref:null,_showNextPageLink:false,_showPrevPageLink:false,_linksEffectDuration:300,"-chains-":{constructor:"manual"},constructor:function(_26d){this.initNumbers();this.inherited(arguments);setTimeout(dojo.hitch(this,function(){this.initLinks();this.initCurrentTabLinks(null,true);this.initKeys();if(this.sessionStorage("scroll")){if(dojo.contentBox(dojo.body()).h<=800){var _26e=this.getCurrent(1)._headerEl;_26e.parentNode.parentNode.scrollIntoView();}this.sessionStorage("scroll",null);}}),200);},sessionStorage:function(key){if(("sessionStorage" in window)&&window.sessionStorage!==null){var _26f=arguments[1]||null;if(_26f!=null){sessionStorage.setItem(key,_26f);}return sessionStorage.getItem(key)||null;}return null;},initNumbers:function(){var _270=dojo.query("#min-width div.title"),_271=_270.length,h2s=[];if(dojo.query(".numerable").length>0){dojo.forEach(_270,function(el){var h2=dojo.query("h2",el)[0];if(!h2){h2=document.createElement("h2");el.appendChild(h2);}h2s[h2s.length]=h2;});dojo.forEach(h2s,function(_272,key){dojo.attr(_272,"innerHTML",dojo.attr(_272,"innerHTML")+" <span class=\"role\">"+(key+1)+"/"+_271+".</span>");});}},tabFactory:function(_273,hz,el,_274,key,name){return new serenity.slider.Tab(_273,hz,el,_274,key,name);},initKeys:function(){dojo.connect(document,"keypress",this,"onKeyPress");},onKeyPress:function(e){if(e.keyCode==39){this.next();}else{if(e.keyCode==37){this.prev();}}},next:function(){var _275=this.getChilds(),_276=this.getCurrent(1).getNbr();if(_276!=_275.length-1){location.hash=this.getChild(_276+1).getName();}else{if(this._nextListHref){this.sessionStorage("scroll",1);location.href=this._nextListHref;}}},prev:function(){var _277=this.getChilds(),_278=this.getCurrent(1).getNbr();if(_278!=0){location.hash=this.getChild(_278-1).getName();}else{if(this._prevListHref){this.sessionStorage("scroll",1);location.href=this._prevListHref;}}},initLinks:function(){this.nextLink=dojo.byId("nextlist");dojo.style(this.nextLink,{"display":"block"});if(this.nextLink.href!==""){this._nextListHref=this.nextLink.href;}dojo.connect(this.nextLink,"onclick",this,function(e){if(dojo.hasClass(e.currentTarget,"nextpage")){this.sessionStorage("scroll",1);}else{dojo.stopEvent(e);if(dojo.hasClass(e.currentTarget,"active")){location.href=dojo.attr(e.currentTarget,"href");}}});this.prevLink=dojo.byId("prevlist");dojo.style(this.prevLink,"display","block");if(this.prevLink.href!==""){this._prevListHref=this.prevLink.href;}this._prevLinkSpan=dojo.query("span",this.prevLink)[0];this._nextLinkSpan=dojo.query("span",this.nextLink)[0];dojo.connect(this.prevLink,"onclick",this,function(e){if(dojo.hasClass(e.currentTarget,"prevpage")){this.sessionStorage("scroll",1);}else{dojo.stopEvent(e);if(dojo.hasClass(e.currentTarget,"active")){location.href=dojo.attr(e.currentTarget,"href");}}});dojo.connect(window,"onresize",this,function(e){this.positionLinks();});dojo.connect(window,"onscroll",this,function(e){this.positionLinks();});this.positionLinks(true);if(this.sessionStorage("portfolioisvisited")==null){this.sessionStorage("portfolioisvisited",true);this.playLinksEffects();}},playLinksEffects:function(){var _279={node:this.nextLink,properties:{opacity:{start:1,end:0}},duration:this._linksEffectDuration};var _27a={node:this.nextLink,properties:{opacity:{start:0,end:1}},duration:this._linksEffectDuration};var _27b=dojo.animateProperty(_279);_27b=dojo.fx.chain([_27b,dojo.animateProperty(_27a)]);_27b=dojo.fx.chain([_27b,dojo.animateProperty(_279)]);_27b=dojo.fx.chain([_27b,dojo.animateProperty(_27a)]);_27b.play();},positionLinks:function(_27c){var _27d=0,_27e=dojo.coords(dojo.query("article section:not(.hidden)")[0]),_27f=dijit.getViewport(),_280=_27e.h-this._linksPadding,_281=dojo.query(".title")[0],_282=dojo.query(".wrapper:first")[0];if(_282){_27d+=dojo.marginBox(_282).h;}if(_281){_27d+=exe.slider.Tab.prototype._getHiddenElementSize(_281).h;}var top=_27f.h/2-_27d+_27f.t;if(top<this._linksPadding){top=this._linksPadding;}else{if(top>_280){top=_280;}}var _283={top:{end:top}};_283.top.start=exe.slider.Tab.prototype._getHiddenElementSize(this._prevLinkSpan).t;if(this._postionLinksAnim){this._postionLinksAnim.stop();}this._postionLinksAnim=dojo.fx.combine([dojo.animateProperty({properties:_283,duration:this._duration,easing:dojo.fx.easing.quadOut,node:this._prevLinkSpan}),dojo.animateProperty({properties:_283,duration:this._duration,easing:dojo.fx.easing.quadOut,node:this._nextLinkSpan})]);if(_27c){this.resetStyleByAnimation(this._postionLinksAnim);}else{this._postionLinksAnim.play();}},resetStyleByAnimation:function(){this.inherited(arguments);var _284;if(_284=this.getCurrent(1)){dojo.removeClass(_284.getElement(),"hidden");}},initCurrentTabLinks:function(_285,_286){if(!_285){_285=this.getCurrent(1);}if(_285){childs=this.getChilds();if(_285.getNbr()===0||childs.length===1){if(_286){dojo.removeClass(this.prevLink,"active");}if(this._prevListHref===null){dojo.removeClass(this.prevLink,"active");}else{dojo.attr(this.prevLink,"href",this._prevListHref);if(_286){dojo.addClass(this.prevLink,"prevpage");}}}else{if(childs.length!==1){dojo.removeClass(this.prevLink,"prevpage");dojo.addClass(this.prevLink,"active");dojo.attr(this.prevLink,"href","#"+childs[_285.getNbr()-1].getName());}}if(_285.getNbr()==(childs.length-1)){if(_286){dojo.removeClass(this.nextLink,"active");}if(this._nextListHref===null){dojo.removeClass(this.nextLink,"active");}else{dojo.attr(this.nextLink,"href",this._nextListHref);if(_286){dojo.addClass(this.nextLink,"nextpage");}}}else{if(childs.length!==1){dojo.removeClass(this.nextLink,"nextpage");dojo.addClass(this.nextLink,"active");dojo.attr(this.nextLink,"href","#"+childs[_285.getNbr()+1].getName());}}}},getChildAnimationByState:function(_287,_288){this._tempCurrent=this.getCurrent(1);var _289=this.inherited(arguments);return _289;},hashChanged:function(_28a){if(_28a=="last"){_28a=this.getChild(this.getChilds().length-1).getName();}if(tab=this.findBy("name",_28a)[0]){this.initCurrentTabLinks(tab);}this.inherited(arguments);},getCurrentTabName:function(){var hash=location.hash.replace(/#/i,"");if(hash=="last"){hash=this.getChild(this.getChilds().length-1).getName();}return hash;}});})();}if(!dojo._hasResource["serenity.phone.serenity_phone"]){dojo._hasResource["serenity.phone.serenity_phone"]=true;dojo.provide("serenity.phone.serenity_phone");(function(){var _28b="serenity_phone",_28c="448-65-83";var _28d={get:function(name){var _28e=document.cookie.match(new RegExp("(^|;)\\s*"+name+"=([^;\\s]*)"));return ((_28e&&_28e.length>=3)?unescape(_28e[2]):null);},set:function(name,_28f,days,path,_290,_291){if(days){var date=new Date();date.setTime(date.getTime()+(days*86400000));}document.cookie=name+"="+escape(_28f)+(days?("; expires="+date.toGMTString()):"")+"; path="+(path||"/")+(_290?("; domain="+_290):"")+(_291?"; secure":"");},del:function(name,path,_292){this.set(name,"",-1,path,_292);}};var _293=function(name){var url=window.location.href||"",_294="",_295=url.split("?");if(_295.length==1){return _294;}_295[0]="";var _296=_295.join("?").substring(1).split("&");dojo.forEach(_296,function(_297){var _298=_297.split("=");if(_298[0]==name){_294=_298[1];}});return _294;};var _299=function(_29a){dojo.forEach(dojo.query("."+_28b),function(_29b){_29b.innerHTML="8 (812) "+_29a;});var _29c=dojo.query("#sp_phone")||null;if(_29c&&_29c[0]){_29c[0].value=_29a;}if(("localStorage" in window)&&window.localStorage!==null){var _29d=localStorage.getItem("phone_referer")||null;if(_29d){var _29e=dojo.query("#sp_referer")||null;if(_29e&&_29e[0]){_29e[0].value=decodeURIComponent(_29d);}}}};var _29f="static/js/serenity/phone/serenity_phone",_2a0=document.referrer||"",_2a1=_293("utm_source")||"",_2a2=["r="+encodeURIComponent(_2a0),"u="+encodeURIComponent(_2a1)],url="/"+_29f+".php?"+_2a2.join("&"),_2a3=_28d.get(_28b);if(_2a3&&_2a3!=""&&_2a3!=" "){_299(_2a3);}else{dojo.xhrGet({url:url,preventCache:true,load:function(data){if(data!=_28c){if(("localStorage" in window)&&window.localStorage!==null){if(_2a0!=null){localStorage.setItem("phone_referer",encodeURIComponent(_2a0));}}_299(data);var _2a4=window.location,host=(_2a4&&_2a4.host)?"."+_2a4.host.replace("www.",""):null;_28d.set(_28b,data,2,"/",host);}}});}})();}if(!dojo._hasResource["serenity.PhoneChanger"]){dojo._hasResource["serenity.PhoneChanger"]=true;dojo.provide("serenity.PhoneChanger");(function(){dojo.declare("serenity.PhoneChanger",null,{_telEls:null,_linkEls:null,_currentEl:null,constructor:function(el){this.initEvents();},initEvents:function(){this._linkEls=dojo.query(".righthalf.adr .ajaxphone a");this._telEls=dojo.query(".righthalf.adr .tel");this._addressEls=dojo.query(".righthalf.adr .street-address");var _2a5=navigator.userAgent,_2a6=dojo.query("#sp_useragent")||null;if(_2a6&&_2a6[0]){_2a6[0].value=_2a5;}var hash="";if(("localStorage" in window)&&window.localStorage!==null){hash=localStorage.getItem("phone_region");if(typeof hash!="undefined"){this._updateTitle(hash);}else{hash="";}}queryHash=this.getQueryStringParam("phone");if(queryHash!=""&&queryHash=="spb"||queryHash=="msk"){hash=queryHash;if(("localStorage" in window)&&window.localStorage!==null){localStorage.setItem("phone_region",hash);this._updateTitle(hash);var _2a7=dojo.query("#sp_region")||null;if(_2a7&&_2a7[0]){_2a7[0].value=hash;}}}if(hash==null){hash="";}if(hash!=""&&hash!="spb"){dojo.forEach(this._linkEls,dojo.hitch(this,function(_2a8,key){if(dojo.hasClass(_2a8,"active")){dojo.removeClass(_2a8,"active");dojo.addClass(this._telEls[key],"hidden");if(this._addressEls[key]){dojo.addClass(this._addressEls[key],"hidden");}}if(dojo.attr(_2a8,"data-hash")==hash){dojo.addClass(_2a8,"active");dojo.removeClass(this._telEls[key],"hidden");if(this._addressEls[key]){dojo.removeClass(this._addressEls[key],"hidden");}}}));}dojo.forEach(this._linkEls,dojo.hitch(this,function(el,key){if(dojo.hasClass(el,"active")){this._currentEl=key;}dojo.connect(el,"onclick",[this,key],function(e){dojo.stopEvent(e);if(("localStorage" in window)&&window.localStorage!==null){localStorage.setItem("phone_region",dojo.attr(this[0]._linkEls[this[1]],"data-hash"));this[0]._updateTitle(localStorage.getItem("phone_region"));var _2a9=dojo.query("#sp_region")||null;if(_2a9&&_2a9[0]){_2a9[0].value=localStorage.getItem("phone_region");}}this[0].setCurrent(this[1]);});}));},setCurrent:function(key){dojo.removeClass(this._linkEls[this._currentEl],"active");dojo.addClass(this._linkEls[key],"active");dojo.addClass(this._telEls[this._currentEl],"hidden");dojo.removeClass(this._telEls[key],"hidden");if(this._addressEls[this._currentEl]){dojo.addClass(this._addressEls[this._currentEl],"hidden");}if(this._addressEls[key]){dojo.removeClass(this._addressEls[key],"hidden");}this._currentEl=key;},getQueryStringParam:function(name){var url=window.location.href||"",_2aa="",_2ab=url.split("?");if(_2ab.length==1){return _2aa;}_2ab[0]="";var _2ac=_2ab.join("?").substring(1).split("&");dojo.forEach(_2ac,function(_2ad){var _2ae=_2ad.split("=");if(_2ae[0]==name){_2aa=_2ae[1];}});return _2aa;},_updateTitle:function(hash){if(typeof document.title=="undefined"){return;}var _2af=document.title;if(hash=="msk"){document.title=_2af.replace("(Санкт-Петербург)","(Москва)").replace("(Санкт-Петербург, Москва)","(Москва)");}else{if(hash=="spb"){document.title=_2af.replace("(Москва)","(Санкт-Петербург)").replace("(Санкт-Петербург, Москва)","(Санкт-Петербург)");}}}});})();}if(!dojo._hasResource["serenity.layout.PhoneChanger"]){dojo._hasResource["serenity.layout.PhoneChanger"]=true;dojo.provide("serenity.layout.PhoneChanger");(function(){new serenity.PhoneChanger();})();}if(!dojo._hasResource["serenity.layout.Slider"]){dojo._hasResource["serenity.layout.Slider"]=true;dojo.provide("serenity.layout.Slider");(function(){dojo.addOnLoad(function(){var _2b0=dojo.query("#content article section");if(_2b0.length>0){var _2b1=new serenity.Slider(_2b0);}});})();}

