Gallery Help? Rollover and fade in functions

Hey all!
I found this XML gallery a few days ago and am trying to add a few custom touches to it.
I’m trying to get these functions to work with the thumbnails and main images…

myImage.onRollOver = function() {
setColor(this);
};
myImage.onRollOut = function() {
returnColor(this);
};
function setColor(target) {
target.onEnterFrame = function() {
target.brightness += 10;
my_color = new Color(target);
myColorTransform = new Object();
myColorTransform = {ra:‘100’, rb:target.brightness, ga:‘100’, gb:target.brightness, ba:‘100’, bb:target.brightness, aa:‘100’, ab:‘0’};
my_color.setTransform(myColorTransform);
if (target.brightness>=60) {
delete target.onEnterFrame;
}
};
}
function returnColor(target) {
target.onEnterFrame = function() {
var my_color;
var myColorTransform;
target.brightness -= 10;
my_color = new Color(target);
myColorTransform = new Object();
myColorTransform = {ra:‘100’, rb:target.brightness, ga:‘100’, gb:target.brightness, ba:‘100’, bb:target.brightness, aa:‘100’, ab:‘0’};
my_color.setTransform(myColorTransform);
if (target.brightness<=0) {
delete target.onEnterFrame;
}
};
}

(where myimage is the temp name of the nonexistent movieclip)

Basically, I’m just trying to get the thumbnails to execute the setcolor on rollover and the returncolor on rollout. here are the files…
www.thepixelsink.com/other/cool.zip

any help would be greatly appreciated! thanks a bunch