Problems with Event.RESIZE

I have some little problems with my gallery, this is my code for resizing images proportionally and it works fine:

http://pastie.org/375319

what i wanted to ask is how can i do something (add some event listeners) at the end of this process, Event.RESIZE?
Because if i put something in this function*** resizing*** it will get proccesed immediately, i want it to be processed when the browser window stops being resized!
Is is possible?