                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

if(!window.__td){window.__MT=100;window.__ti=0;window.__td=[];window.__td.length=__MT;window.__noTrace=false;}
if(typeof vp=="undefined"){var vp={};}
if(typeof vp.ui=="undefined"){throw new Error("Animation library cannot be run without vp.ui being loaded.");}
vp.ui.animation=function ui_animation(){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}};var animationThunk=function pv_animationThunk(elem,percent,animation)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
return function(){animation.animateElement(elem,percent);};};vp.ui.animation.showAnimation=function ui_animation_showAnimation(elem,animation,duration,numFrames)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var timeStep=duration/(numFrames-1);var milliTime=0;for(var i=0;i<numFrames;i++)
{var percent=i/(numFrames-1);var thunk=animationThunk(elem,percent,animation);setTimeout(thunk,milliTime);milliTime+=timeStep;}};vp.ui.animation.Position=function ui_animation_Position(left,top)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.left=left;this.top=top;};vp.ui.animation.Dimension=function ui_animation_Dimension(width,height)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.width=width;this.height=height;};vp.ui.animation.MoveAnimation=function ui_animation_MoveAnimation(startPos,endPos)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.startPos=startPos;this.endPos=endPos;this.ChildAnimation={animateElement:function(elem,percentTime){}};this.animateElement=function pb_this_animateElement(elem,percentTime)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.ChildAnimation.animateElement(elem,percentTime);var diffs=[endPos.left-startPos.left,endPos.top-startPos.top];vp.ui.moveTo(elem,startPos.left+diffs[0]*percentTime,startPos.top+diffs[1]*percentTime);};};vp.ui.animation.GrowAnimation=function ui_animation_GrowAnimation(startDim,endDim)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.startDim=startDim;this.endDim=endDim;this.ChildAnimation={animateElement:function(elem,percentTime){}};this.animateElement=function pb_this_animateElement(elem,percentTime)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.ChildAnimation.animateElement(elem,percentTime);var diffs=[endDim.width-startDim.width,endDim.height-startDim.height];vp.ui.resizeTo(elem,startDim.width+diffs[0]*percentTime,startDim.height+diffs[1]*percentTime);};};vp.ui.animation.FadeAnimation=function ui_animation_FadeAnimation(startAlpha,endAlpha)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.startAlpha=startAlpha;this.endAlpha=endAlpha;this.ChildAnimation={animateElement:function(elem,percentTime){}};this.animateElement=function pb_this_animateElement(elem,percentTime)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.ChildAnimation.animateElement(elem,percentTime);var diff=endAlpha-startAlpha;vp.ui.setOpacity(elem,startAlpha+diff*percentTime);};};