Help with sloppy photo gallery

I have a dynamic photo gallery that I used a tutorial to create but occasionally when you’re trying to scroll over the thumbnails they get stuck and it doesn’t move and you have to move your mouse around a bit. I was hoping someone could help me tidy up my action script.

Heres the site: http://www.duke.edu/~jec23/Frisbee/gallery.html
Heres the code:

function thumbNailScroller() {

// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);//create the scrolling movieclip at a depth of 1000
scroll_speed = 15;
tscroller.onEnterFrame = function(){
//trace("Mouse:"+_root._xmouse+","+_root._ymouse);
//trace("Thumbnail:"+thumbnail_mc._y+"-"+(thumbnail_mc._y+thumbnail_mc._height));
var myPoint:Object = new Object();
myPoint.x = _root._xmouse;
myPoint.y = _root._ymouse + 35;
this.globalToLocal(myPoint);
//trace("MyPoint:"+myPoint.x+","+myPoint.y);
if (myPoint.y>=thumbnail_mc._y && myPoint.y<=(thumbnail_mc._y+thumbnail_mc._height)) {//make sure we're only in the height of the mc

if (myPoint.x>=(hit_right._x)  && thumbnail_mc.hitTest(hit_right)) { //check that our mouse is in the right place and that thumbnail_mc overlaps the boundary so we dont scroll forever

thumbnail_mc._x -= scroll_speed;

} else if (myPoint.x<=(hit_left._x+hit_left._width) && thumbnail_mc.hitTest(hit_left)) { //same thing

thumbnail_mc._x += scroll_speed;

}

} else {

delete tscroller.onEnterFrame;

}

};