
function aaObjectAnimation(aaObjectId){aaObjectAnimations[aaObjectId]=this;this.aaObjectId=aaObjectId;this.aaPropertyAnimations=new Array();this.aaPropertyAnimationFirst=null;this.aaEnabled=false;this.aaPreviousAnimation=null;this.aaNextAnimation=null;this.aaContentRefresher=null;this.aaExecuteCode=null
this.aaExecuteAtStep=-1;this.aaStep=0;this.aaForceExecution=false;this.aaEnable=aaObjectAnimationEnable;this.aaAnimate=aaObjectAnimationAnimate;this.aaDisable=aaObjectAnimationDisable;this.aaExecuteCodeNow=aaObjectAnimationExecuteCode;this.aaForceExecuteCode=aaObjectAnimationForceExecuteCode;}
function aaObjectAnimationEnable(){if(this.aaEnabled)return;this.aaPreviousAnimation=null;this.aaNextAnimation=aaObjectAnimationFirst;aaObjectAnimationFirst=this;if(this.aaNextAnimation!=null)this.aaNextAnimation.aaPreviousAnimation=this;this.aaEnabled=true;this.aaStep=0;if(aaObjectAnimationTimer==null)aaObjectAnimationTimer=setInterval('aaPropertyAnimator();',aaVideosInterval);}
function aaObjectAnimationAnimate(){var aaTemp0=this.aaPropertyAnimationFirst;if(aaTemp0==null&&this.aaStep>Math.round(this.aaExecuteAtStep/aaVideosInterval)){this.aaDisable();return;}
while(aaTemp0!=null){if(aaTemp0.aaEnabled)aaTemp0.aaNextStep();else window.alert("Trying to execute a disabled property animation. BUG: means property animation was disabled without ending it!");aaTemp0=aaTemp0.aaNextAnimation;}
this.aaStep++;if(this.aaContentRefresher!=null)eval(this.aaContentRefresher);if(this.aaExecuteCode!=null&&this.aaStep==Math.round(this.aaExecuteAtStep/aaVideosInterval))this.aaExecuteCodeNow();}
function aaObjectAnimationDisable(){if(!this.aaEnabled)return;if(aaObjectAnimationFirst==this)aaObjectAnimationFirst=this.aaNextAnimation;if(this.aaNextAnimation!=null)this.aaNextAnimation.aaPreviousAnimation=this.aaPreviousAnimation;if(this.aaPreviousAnimation!=null)this.aaPreviousAnimation.aaNextAnimation=this.aaNextAnimation;this.aaEnabled=false;this.aaForceExecuteCode();}
function aaObjectAnimationForceExecuteCode(){if(this.aaForceExecution)this.aaExecuteCodeNow();}
function aaObjectAnimationExecuteCode(){var aaTemp0=this.aaExecuteCode;this.aaExecuteCode=null;this.aaExecuteAtStep=-1;if(aaTemp0!=null&&aaTemp0!="")eval(aaTemp0);}
function aaSetPropertyAnimation(aaObjectId,aaProperty,aaValue,aaAnimationCurve,aaOpacityImportance){if(aaObjectAnimations[aaObjectId]==null)aaObjectAnimations[aaObjectId]=new aaObjectAnimation(aaObjectId);if(aaObjectAnimations[aaObjectId].aaPropertyAnimations[aaProperty]==null)
aaObjectAnimations[aaObjectId].aaPropertyAnimations[aaProperty]=new aaPropertyAnimation(aaObjectId,aaProperty,aaObjectAnimations[aaObjectId]);aaObjectAnimations[aaObjectId].aaPropertyAnimations[aaProperty].aaDisable();aaObjectAnimations[aaObjectId].aaPropertyAnimations[aaProperty].aaSetup(aaValue,aaAnimationCurve,0,aaOpacityImportance);aaObjectAnimations[aaObjectId].aaPropertyAnimations[aaProperty].aaEnable();}
function aaAnimateObject(aaObjectId,aaX,aaY,aaW,aaH,aaO,aaContentRefresher,aaExecuteCode,aaExecuteAtStep,aaForceExecution,aaAnimationCurve,aaOpacityImportance){if(aaObjectAnimations[aaObjectId]==null)aaObjectAnimations[aaObjectId]=new aaObjectAnimation(aaObjectId);aaObjectAnimations[aaObjectId].aaDisable();aaObjectAnimations[aaObjectId].aaExecuteCode=aaExecuteCode;aaObjectAnimations[aaObjectId].aaExecuteAtStep=aaExecuteAtStep;aaObjectAnimations[aaObjectId].aaForceExecution=aaForceExecution;aaObjectAnimations[aaObjectId].aaContentRefresher=aaContentRefresher;if(aaX!=null)aaSetPropertyAnimation(aaObjectId,"style.left",aaX,aaAnimationCurve,aaOpacityImportance);if(aaY!=null)aaSetPropertyAnimation(aaObjectId,"style.top",aaY,aaAnimationCurve,aaOpacityImportance);if(aaW!=null)aaSetPropertyAnimation(aaObjectId,"style.width",aaW,aaAnimationCurve,aaOpacityImportance);if(aaH!=null)aaSetPropertyAnimation(aaObjectId,"style.height",aaH,aaAnimationCurve,aaOpacityImportance);if(aaO!=null)aaSetPropertyAnimation(aaObjectId,"style.opacity",aaO,aaAnimationCurve,aaOpacityImportance);aaObjectAnimations[aaObjectId].aaEnable();}
function aaPositionateObject(aaObjectId,aaX,aaY,aaW,aaH,aaO,aaV,aaOpacityImportance){if(aaObjectAnimations[aaObjectId]!=null)aaObjectAnimations[aaObjectId].aaForceExecuteCode();if(aaX!=null)aaStopAndForceProperty(aaObjectId,"style.left",aaX,aaOpacityImportance);if(aaY!=null)aaStopAndForceProperty(aaObjectId,"style.top",aaY,aaOpacityImportance);if(aaW!=null)aaStopAndForceProperty(aaObjectId,"style.width",aaW,aaOpacityImportance);if(aaH!=null)aaStopAndForceProperty(aaObjectId,"style.height",aaH,aaOpacityImportance);if(aaO!=null)aaStopAndForceProperty(aaObjectId,"style.opacity",aaO,aaOpacityImportance);if(aaV!=null){if(aaV==true)aaShowObject(aaObjectId);else aaHideObject(aaObjectId);}}
function aaStopAndForceProperty(aaObjectId,aaProperty,aaValue,aaOpacityImportance){if(aaObjectAnimations[aaObjectId]!=null){if(aaObjectAnimations[aaObjectId].aaPropertyAnimations[aaProperty]!=null)aaObjectAnimations[aaObjectId].aaPropertyAnimations[aaProperty].aaDisable();}
if(aaProperty=="style.opacity")aaSetObjectOpacity(aaObjectId,aaValue,aaOpacityImportance);else eval('document.getElementById("'+aaObjectId+'").'+aaProperty+'='+aaValue+';');}