/**
 * 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["serenity.expander.Tab"]){dojo._hasResource["serenity.expander.Tab"]=true;dojo.provide("serenity.expander.Tab");(function(){dojo.declare("serenity.expander.Tab",[exe.slider.Tab],{_duration:500,_padding:73,_height:null,_minHeight:251,"-chains-":{constructor:"after"},constructor:function(){dojo.connect(dojo.query("a[href=#"+this.getName()+"]")[0],"click",this,function(e){dojo.stopEvent(e);if(this.getState().getByNbr(1)){document.location.hash="";this.getParent().switchStateByAnimation(this,new exe.StyleState([true,false]));}else{dojo.stopEvent(e);location.href=dojo.attr(e.currentTarget,"href");}});},_initAnimations:function(){var _87=this._el,_88=dojo.animateProperty({properties:{opacity:{start:0,end:1}},duration:this._duration,easing:dojo.fx.easing.quadOut,node:_87}),_89=dojo.animateProperty({properties:{opacity:{start:1,end:0}},duration:this._duration,easing:dojo.fx.easing.quadOut,node:_87});var _8a=dojo.query("a[href=#"+this.getName()+"]")[0];var _8b=function(){dojo.style(this.node,"color","");};var _8c={properties:{color:{start:"#000000",end:"#3399CC"}},duration:this._duration,easing:dojo.fx.easing.quadOut,node:_8a,onPlay:function(){dojo.addClass(this.node,"active");},onEnd:_8b};var _8d=function(){dojo.style(this.node,"color","");};var _8e={properties:{color:{start:"#3399CC",end:"#000000"}},duration:this._duration,easing:dojo.fx.easing.quadOut,node:_8a,onEnd:_8d,onStop:_8d,onEnd:function(){dojo.removeClass(this.node,"active");}};var _8f=dojo.animateProperty(_8c);var _90=dojo.animateProperty(_8e);dojo.connect(_90,"onEnd",_8b);var _91={show:dojo.fx.combine([_88,_8f]),hide:dojo.fx.combine([_89,_90])};var _92=function(){dojo.style(this.node,"height","");};dojo.connect(_88,"onEnd",_92);dojo.connect(_88,"onStop",_92);return _91;},getAnimationByState:function(_93){var _94=function(){dojo.removeClass(this,"hidden");};var _95=function(){dojo.addClass(this,"hidden");};var _96=this.getElement();var _97,_98,_99;var _9a=this.getAnimations();var _9b=this.getParent().getCurrent(1);if(_93.getByNbr(1)){var _9c;if(_9b){_9c=_9b.getHeight();}else{_9c=this._minHeight;}var _9d=this.getHeight();dojo.style(this.getElement(),"height",_9c+"px");dojo.addClass(this.getElement(),"hidden");var _99={properties:{height:{start:_9c,end:_9d}},duration:this._duration,easing:dojo.fx.easing.quadOut,node:this.getElement()};_97=dojo.fx.chain([dojo.animateProperty(_99),_9a.show]);dojo.connect(_97,"onPlay",this.getElement(),_94);}else{_97=_9a.hide;var _9c;if(_9b===this){_9c=this.getHeight();var _99={properties:{height:{start:_9c,end:this._minHeight}},duration:this._duration,easing:dojo.fx.easing.quadOut,node:this.getElement()};heightAnimation=dojo.animateProperty(_99);dojo.connect(heightAnimation,"onPlay",this.getElement(),_94);dojo.connect(heightAnimation,"onEnd",this.getElement(),_95);dojo.connect(heightAnimation,"onStop",this.getElement(),_95);_97=dojo.fx.chain([_97,heightAnimation]);}else{dojo.connect(_97,"onPlay",this.getElement(),_94);dojo.connect(_97,"onEnd",this.getElement(),_95);dojo.connect(_97,"onStop",this.getElement(),_95);}}return _97;},getHeight:function(){if(this._height===null){var _9e=dojo.hasClass(this.getElement(),"hidden");if(_9e){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(_9e){dojo.addClass(this.getElement(),"hidden");}}return this._height;}});})();}if(!dojo._hasResource["serenity.Expander"]){dojo._hasResource["serenity.Expander"]=true;dojo.provide("serenity.Expander");(function(){dojo.declare("serenity.Expander",[exe.Slider],{_isShowFirst:false,tabFactory:function(_9f,hz,el,_a0,key,_a1){return new serenity.expander.Tab(_9f,hz,el,_a0,key,_a1);},localStorage:function(key){if(("localStorage" in window)&&window.localStorage!==null){var _a2=arguments[1]||null;if(_a2!=null){localStorage.setItem(key,_a2);}return localStorage.getItem(key)||null;}return null;},resetStyleByAnimation:function(_a3){this.inherited(arguments);var _a4;if(_a4=this.getCurrent(1)){dojo.removeClass(_a4.getElement(),"hidden");}},getCurrentTabName:function(){var _a5,_a6=this.localStorage("expander");if(_a6==null||_a6==""){_a5=this.inherited(arguments);if(_a5==""&&_a6==null){var _a7=this.getChild(0);if(_a7){dojo.addClass(_a7._el,"hidden");this.switchState(_a7,new exe.StyleState([false,true]));}}}else{_a5=_a6;}return _a5;},setCurrent:function(){this.inherited(arguments);var _a8;if(_a8=this.getCurrent(1)){this.localStorage("expander",_a8.getName());}else{this.localStorage("expander","");}}});})();}if(!dojo._hasResource["serenity.faq.Tab"]){dojo._hasResource["serenity.faq.Tab"]=true;dojo.provide("serenity.faq.Tab");(function(){dojo.declare("serenity.faq.Tab",[exe.slider.Tab],{constructor:function(){this._linkEl=dojo.query("a",this.getElement().parentNode)[0];dojo.style(this.getElement(),"oveflow","hidden");dojo.connect(this._linkEl,"onclick",this,this.onClick);},onClick:function(e){dojo.stopEvent(e);var _a9=this.getState().getByNbr(1);this.getParent().switchStateByAnimation(this,new exe.StyleState([_a9,!_a9]));},_initAnimations:function(){var el=this.getElement(),_aa=function(){dojo.removeClass(this.node,"hidden");},_ab=function(){dojo.addClass(this.node,"hidden");},_ac=this._getHiddenElementSize(this.getElement()).h,_ad={properties:{height:{start:0,end:_ac},opacity:{start:0,end:1}},onPlay:_aa,node:el},_ae={properties:{height:{start:_ac,end:0},opacity:{start:1,end:0}},onPlay:_aa,onEnd:_ab,onStop:_ab,node:el},_af=dojo.animateProperty(_ad),_b0=dojo.animateProperty(_ae),_b1=[_af,_b0];return _b1;},getAnimationByState:function(_b2){var _b3=this.getAnimations();return _b3[Number(_b2.getByNbr(1))];}});})();}if(!dojo._hasResource["serenity.Faq"]){dojo._hasResource["serenity.Faq"]=true;dojo.provide("serenity.Faq");(function(){dojo.declare("serenity.Faq",[exe.Slider],{tabFactory:function(_b4,hz,el,_b5,key,_b6){return new serenity.faq.Tab(_b4,hz,el,_b5,key,_b6);},initHashChanger:function(){}});})();}if(!dojo._hasResource["serenity.phone.serenity_phone"]){dojo._hasResource["serenity.phone.serenity_phone"]=true;dojo.provide("serenity.phone.serenity_phone");(function(){var _b7="serenity_phone",_b8="448-65-83";var _b9={get:function(_ba){var _bb=document.cookie.match(new RegExp("(^|;)\\s*"+_ba+"=([^;\\s]*)"));return ((_bb&&_bb.length>=3)?unescape(_bb[2]):null);},set:function(_bc,_bd,_be,_bf,_c0,_c1){if(_be){var _c2=new Date();_c2.setTime(_c2.getTime()+(_be*86400000));}document.cookie=_bc+"="+escape(_bd)+(_be?("; expires="+_c2.toGMTString()):"")+"; path="+(_bf||"/")+(_c0?("; domain="+_c0):"")+(_c1?"; secure":"");},del:function(_c3,_c4,_c5){this.set(_c3,"",-1,_c4,_c5);}};var _c6=function(_c7){var url=window.location.href||"",_c8="",_c9=url.split("?");if(_c9.length==1){return _c8;}_c9[0]="";var _ca=_c9.join("?").substring(1).split("&");dojo.forEach(_ca,function(_cb){var _cc=_cb.split("=");if(_cc[0]==_c7){_c8=_cc[1];}});return _c8;};var _cd=function(_ce){dojo.forEach(dojo.query("."+_b7),function(_cf){_cf.innerHTML="8 (812) "+_ce;});var _d0=dojo.query("#sp_phone")||null;if(_d0&&_d0[0]){_d0[0].value=_ce;}if(("localStorage" in window)&&window.localStorage!==null){var _d1=localStorage.getItem("phone_referer")||null;if(_d1){var _d2=dojo.query("#sp_referer")||null;if(_d2&&_d2[0]){_d2[0].value=decodeURIComponent(_d1);}}}};var _d3="static/js/serenity/phone/serenity_phone",_d4=document.referrer||"",_d5=_c6("utm_source")||"",_d6=["r="+encodeURIComponent(_d4),"u="+encodeURIComponent(_d5)],url="/"+_d3+".php?"+_d6.join("&"),_d7=_b9.get(_b7);if(_d7&&_d7!=""&&_d7!=" "){_cd(_d7);}else{dojo.xhrGet({url:url,preventCache:true,load:function(_d8){if(_d8!=_b8){if(("localStorage" in window)&&window.localStorage!==null){if(_d4!=null){localStorage.setItem("phone_referer",encodeURIComponent(_d4));}}_cd(_d8);var _d9=window.location,_da=(_d9&&_d9.host)?"."+_d9.host.replace("www.",""):null;_b9.set(_b7,_d8,2,"/",_da);}}});}})();}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 _db=navigator.userAgent,_dc=dojo.query("#sp_useragent")||null;if(_dc&&_dc[0]){_dc[0].value=_db;}var _dd="";if(("localStorage" in window)&&window.localStorage!==null){_dd=localStorage.getItem("phone_region");if(typeof _dd!="undefined"){this._updateTitle(_dd);}else{_dd="";}}queryHash=this.getQueryStringParam("phone");if(queryHash!=""&&queryHash=="spb"||queryHash=="msk"){_dd=queryHash;if(("localStorage" in window)&&window.localStorage!==null){localStorage.setItem("phone_region",_dd);this._updateTitle(_dd);var _de=dojo.query("#sp_region")||null;if(_de&&_de[0]){_de[0].value=_dd;}}}if(_dd==null){_dd="";}if(_dd!=""&&_dd!="spb"){dojo.forEach(this._linkEls,dojo.hitch(this,function(_df,key){if(dojo.hasClass(_df,"active")){dojo.removeClass(_df,"active");dojo.addClass(this._telEls[key],"hidden");if(this._addressEls[key]){dojo.addClass(this._addressEls[key],"hidden");}}if(dojo.attr(_df,"data-hash")==_dd){dojo.addClass(_df,"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 _e0=dojo.query("#sp_region")||null;if(_e0&&_e0[0]){_e0[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(_e1){var url=window.location.href||"",_e2="",_e3=url.split("?");if(_e3.length==1){return _e2;}_e3[0]="";var _e4=_e3.join("?").substring(1).split("&");dojo.forEach(_e4,function(_e5){var _e6=_e5.split("=");if(_e6[0]==_e1){_e2=_e6[1];}});return _e2;},_updateTitle:function(_e7){if(typeof document.title=="undefined"){return;}var _e8=document.title;if(_e7=="msk"){document.title=_e8.replace("(Санкт-Петербург)","(Москва)").replace("(Санкт-Петербург, Москва)","(Москва)");}else{if(_e7=="spb"){document.title=_e8.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.Index"]){dojo._hasResource["serenity.layout.Index"]=true;dojo.provide("serenity.layout.Index");(function(){var _e9=function(){var _ea=new exe.StyleState([true,false]);elements=dojo.query(".answer");dojo.forEach(elements,function(el,nbr){faq=new serenity.Faq([el]);});};dojo.addOnLoad(dojo.hitch(this,function(){var _eb=dojo.query("#frontblock > *[id]");if(_eb.length>0){var _ec=new serenity.Expander(_eb);var _ed;setTimeout(function(){if(_ed=_ec.getCurrent(1)){if(_ed.getName()!=="answers-inner"){var div=dojo.byId("answers-inner");dojo.removeClass(div,"hidden");_e9();dojo.addClass(div,"hidden");}else{_e9();}}},200);}}));})();}

