Adding fancy border to Scotty's image gallery

I’m encountering a weird glitch when I try to use a more complex image border: the image container and the text caption both jump into place at the last moment. A bad effect. All I’ve done is add two more variables, “w2” and “w3” to the code:


            var w = container._width+spacing, h = container._height+spacing;
            var w2 = container._width+space2, h2 = container._height+space2;
            var w3 = container._width+space3, h3 = container._height+space3;
            border.resizeMe(w, h, id);
            border2.resizeMe(w2, h2, id);
            border3.resizeMe(w3, h3, id);

The effect can be see here:
http://www.tornedgedesign.com/_test/kirupa/multi_borders.html

The only way I can find to keep the border shapes in correct proportion is to create 3 different border clips and apply the “resizeMe” easing function to each of them.

Files are here - thanks for any help:
http://www.tornedgedesign.com/_test/kirupa/multi_borders.zip