External JPG preloader bar

Hey there guys. My latest endeavor is coming along great, but this thing has got my stumped. You can view it here, http://www.idevisedesign.com/kyj/ta
Click on a link, and wait. A template should pop up. I wanna know how to add a preloader bar to that, and how to have it fade in. here is the code for the fade in;


this.createEmptyMovieClip("myImage", 1);
myImage._x = 275;
myImage._y = 68;
myImage._alpha = 0;
myImage.loadMovie("[http://www.idevisedesign.com/kyj/ta/webhosting.jpg](http://www.idevisedesign.com/kyj/ta/webhosting.jpg)");
while (myImage._alpha<100) {
 myImage._xscale += 10;
}
stop;

i have no idea why this isnt working. Any help is appreciated. Thanks guys,
Mith