//>>built
define("dojox/fx/text","dojo/_base/lang ./_base dojo/_base/fx dojo/fx dojo/fx/easing dojo/dom dojo/dom-style dojo/_base/html dojo/_base/connect".split(" "),function(B,F,v,E,r,w,q,C,z){var h=B.getObject("dojox.fx.text",!0);h._split=function(a){function e(m){var D=m.nextSibling;if("SPAN"==m.tagName&&1==m.childNodes.length&&3==m.firstChild.nodeType){var A=C.coords(m,!0);x++;q.set(m,{padding:0,margin:0,top:a.crop?"0px":A.t+"px",left:a.crop?"0px":A.l+"px",display:"inline"});m=a.pieceAnimation(m,A,f,x,
y);B.isArray(m)?n=n.concat(m):n[n.length]=m}else m.firstChild&&e(m.firstChild);D&&e(D)}var b=a.node=w.byId(a.node),c=b.style,d=q.getComputedStyle(b),f=C.coords(b,!0);a.duration=a.duration||1E3;a.words=a.words||!1;var g=a.text&&"string"==typeof a.text?a.text:b.innerHTML,l=c.height,k=c.width,n=[];q.set(b,{height:d.height,width:d.width});c=/(<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>)/g;d=a.words?/(<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>)\s*|([^\s<]+\s*)/g:
/(<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>)\s*|([^\s<]\s*)/g;d="string"==typeof a.text?a.text.match(d):b.innerHTML.match(d);for(var p="",y=0,x=0,t=0;t<d.length;t++){var u=d[t];u.match(c)?p+=u:(p+="\x3cspan\x3e"+u+"\x3c/span\x3e",y++)}b.innerHTML=p;e(b.firstChild);c=E.combine(n);z.connect(c,"onEnd",c,function(){b.innerHTML=g;q.set(b,{height:l,width:k})});a.onPlay&&z.connect(c,"onPlay",c,a.onPlay);a.onEnd&&z.connect(c,"onEnd",c,a.onEnd);return c};h.explode=function(a){a.node=
w.byId(a.node);a.distance=a.distance||1;a.duration=a.duration||1E3;a.random=a.random||0;"undefined"==typeof a.fade&&(a.fade=!0);"undefined"==typeof a.sync&&(a.sync=!0);a.random=Math.abs(a.random);a.pieceAnimation=function(e,b,c,d,f){var g=b.h,l=b.w;f=2*a.distance;d=a.duration;var k=parseFloat(e.style.top),n=parseFloat(e.style.left),p=0,y=0,x=0;a.random&&(p=Math.random()*a.random+Math.max(1-a.random,0),f*=p,d*=p,p=a.unhide&&a.sync||!a.unhide&&!a.sync?a.duration-d:0,y=Math.random()-.5,x=Math.random()-
.5);g=(c.h-g)/2-(b.y-c.y);b=(c.w-l)/2-(b.x-c.x);c=Math.sqrt(Math.pow(b,2)+Math.pow(g,2));var t=k-g*f+c*x,u=n-b*f+c*y;b=v.animateProperty({node:e,duration:d,delay:p,easing:a.easing||(a.unhide?r.sinOut:r.circOut),beforeBegin:a.unhide?function(){a.fade&&q.set(e,"opacity",0);e.style.position=a.crop?"relative":"absolute";e.style.top=t+"px";e.style.left=u+"px"}:function(){e.style.position=a.crop?"relative":"absolute"},properties:{top:a.unhide?{start:t,end:k}:{start:k,end:t},left:a.unhide?{start:u,end:n}:
{start:n,end:u}}});return a.fade?(d=v.animateProperty({node:e,duration:d,delay:p,easing:a.fadeEasing||r.quadOut,properties:{opacity:a.unhide?{start:0,end:1}:{end:0}}}),a.unhide?[d,b]:[b,d]):b};return h._split(a)};h.converge=function(a){a.unhide=!0;return h.explode(a)};h.disintegrate=function(a){a.node=w.byId(a.node);a.duration=a.duration||1500;a.distance=a.distance||1.5;a.random=a.random||0;a.fade||(a.fade=!0);var e=Math.abs(a.random);a.pieceAnimation=function(b,c,d,f,g){var l=a.interval||a.duration/
(1.5*g);c=a.duration-g*l;f=Math.random()*g*l*e+Math.max(1-e,0)*(a.reverseOrder||0>a.distance?f*l:(g-f)*l);var k={};a.unhide?(k.top={start:parseFloat(b.style.top)-d.h*a.distance,end:parseFloat(b.style.top)},a.fade&&(k.opacity={start:0,end:1})):(k.top={end:parseFloat(b.style.top)+d.h*a.distance},a.fade&&(k.opacity={end:0}));return v.animateProperty({node:b,duration:c,delay:f,easing:a.easing||(a.unhide?r.sinIn:r.circIn),properties:k,beforeBegin:a.unhide?function(){a.fade&&q.set(b,"opacity",0);b.style.position=
a.crop?"relative":"absolute";b.style.top=k.top.start+"px"}:function(){b.style.position=a.crop?"relative":"absolute"}})};return h._split(a)};h.build=function(a){a.unhide=!0;return h.disintegrate(a)};h.blockFadeOut=function(a){a.node=w.byId(a.node);a.duration=a.duration||1E3;a.random=a.random||0;var e=Math.abs(a.random);a.pieceAnimation=function(b,c,d,f,g){c=a.interval||a.duration/(1.5*g);return v.animateProperty({node:b,duration:a.duration-g*c,delay:Math.random()*g*c*e+Math.max(1-e,0)*(a.reverseOrder?
(g-f)*c:f*c),easing:a.easing||r.sinInOut,properties:{opacity:a.unhide?{start:0,end:1}:{end:0}},beforeBegin:a.unhide?function(){q.set(b,"opacity",0)}:void 0})};return h._split(a)};h.blockFadeIn=function(a){a.unhide=!0;return h.blockFadeOut(a)};h.backspace=function(a){a.node=w.byId(a.node);a.words=!1;a.duration=a.duration||2E3;a.random=a.random||0;var e=Math.abs(a.random),b=10;a.pieceAnimation=function(c,d,f,g,l){d=a.interval||a.duration/(1.5*l);f="textContent"in c?c.textContent:c.innerText;var k=f.match(/\s/g);
"undefined"==typeof a.wordDelay&&(a.wordDelay=2*d);a.unhide||(b=(l-g-1)*d);var n;if(a.fixed)a.unhide&&(n=function(){q.set(c,"opacity",0)});else if(a.unhide){n=function(){c.style.display="none"};var p=function(){c.style.display="inline"}}else p=function(){c.style.display="none"};g=v.animateProperty({node:c,duration:1,delay:b,easing:a.easing||r.sinInOut,properties:{opacity:a.unhide?{start:0,end:1}:{end:0}},beforeBegin:n,onEnd:p});a.unhide&&(l=Math.random()*f.length*d,b+=l*e+Math.max(1-e,0)*d*f.length+
(l*e/2+Math.max(1-e/2,0)*a.wordDelay)*(k&&f.lastIndexOf(k[k.length-1])==f.length-1));return g};return h._split(a)};h.type=function(a){a.unhide=!0;return h.backspace(a)};return h});