My avisynth functions