Topic: Loading galleries in different x, y positions

Hi, and hope you can help.

I'm embedding SimpleViewer Pro in a Flash file using AS3 and want to load the default (home gallery) swf at a specific position and all the other galleries in a different position.

The code for the default for the home gallery currently looks like this...

// Fired when gallery has completely loaded. API is now available.
function onGalleryLoaded(e:Event):void
{
    svAPI = Object(svLoader.content).api;
    svAPI.setSize(880,470);
    svLoader.x = 120;
    svLoader.y = 80;

}

Do I need to create 2 functions to achieve this i.e. a function for the home page and a different one for the other galleries or is there another way to do this.

I appreciate your help,
My thanks
Rog