private void Animator(){
        if (framestarttime==0L) framestarttime=System.currentTimeMillis();
        framecurrenttime=System.currentTimeMillis();
        if (framecurrenttime>=framestarttime+frametime){
            framestarttime=framecurrenttime;
            if (mill>0){//..............................................................Animate.mill
                CurrentImage++;
                if (CurrentImage>AnimTo) CurrentImage=AnimFrom;
            }
            if (fadeout==1){//.......................................................Animate.fadout
                CurrentImage++;
                if (CurrentImage>FadeTo) {CurrentImage=image; fadeout=0;}
            }
            if (fadein==1){//........................................................Animate.fadein
                CurrentImage--;
                if (CurrentImage<FadeFrom) {CurrentImage=image; fadein=0;}
            }
        }
    }