/*
	Copyright (c) 2004-2007, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/


dojo._xdResourceLoaded({depends:[["provide","dojo.fx"],["provide","dojo.fx.Toggler"]],defineResource:function(_1){if(!_1._hasResource["dojo.fx"]){_1._hasResource["dojo.fx"]=true;_1.provide("dojo.fx");_1.provide("dojo.fx.Toggler");_1.fx.chain=function(_2){var _3=_2.shift();var _4=_3;_1.forEach(_2,function(_5){_1.connect(_4,"onEnd",_5,"play");_4=_5;});return _3;};_1.fx.combine=function(_6){var _7=new _1._Animation({curve:[0,1]});if(!_6.length){return _7;}_7.duration=_6[0].duration;_1.forEach(_6,function(_8){_1.forEach(["play","pause","stop"],function(e){if(_8[e]){_1.connect(_7,e,_8,e);}});});return _7;};_1.declare("dojo.fx.Toggler",null,{constructor:function(_a){var _t=this;_1.mixin(_t,_a);_t.node=_a.node;_t._showArgs=_1.mixin({},_a);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=_1.mixin({},_a);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);_1.connect(_t.showAnim,"beforeBegin",_1.hitch(_t.hideAnim,"stop",true));_1.connect(_t.hideAnim,"beforeBegin",_1.hitch(_t.showAnim,"stop",true));},node:null,showFunc:_1.fadeIn,hideFunc:_1.fadeOut,showDuration:200,hideDuration:200,show:function(_c){return this.showAnim.play(_c||0);},hide:function(_d){return this.hideAnim.play(_d||0);}});_1.fx.wipeIn=function(_e){_e.node=_1.byId(_e.node);var _f=_e.node,s=_f.style;var _11=_1.animateProperty(_1.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _12=_1.style(_f,"height");return Math.max(_12,1);}},end:function(){return _f.scrollHeight;}}}},_e));_1.connect(_11,"onEnd",function(){s.height="auto";});return _11;};_1.fx.wipeOut=function(_13){var _14=_13.node=_1.byId(_13.node);var s=_14.style;var _16=_1.animateProperty(_1.mixin({properties:{height:{end:1}}},_13));_1.connect(_16,"beforeBegin",function(){s.overflow="hidden";s.display="";});_1.connect(_16,"onEnd",function(){s.height="auto";s.display="none";});return _16;};_1.fx.slideTo=function(_17){var _18=(_17.node=_1.byId(_17.node));var top=null;var _1a=null;var _1b=(function(n){return function(){var cs=_1.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_1a=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=_1.coords(n,true);top=ret.y;_1a=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_1a+"px";}};})(_18);_1b();var _20=_1.animateProperty(_1.mixin({properties:{top:{end:_17.top||0},left:{end:_17.left||0}}},_17));_1.connect(_20,"beforeBegin",_20,_1b);return _20;};}}});
