Scrolling Panel Sticky and not working properly

Hi

I have a website that uses a scrolling thumbnail panel, code shown below.

You can see the page here: (click on tranquility mattresses)
http://www.idahobeds.co.uk/home.html

The swf that contains the panel is loaded into the main swf and this is where the problem comes from. The panel is sticky and sometimes doesn’t spring into life properly.

If I access the swf on its own (without loading into the main swf) it scrolls fine.

Is there any way I can improve this?

My code currently looks like this:-

Thanks


stop();

//Scrolling Panel Actions
var home:MovieClip = panelStroke_mc;
//Scrolling Panel Actions
panelMovie_mc.onRollOver = panelOver;

function panelOver() {
   this.onEnterFrame = scrollPanel;
   delete this.onRollOver;
}

var b = panelStroke_mc.getBounds(home);

function scrollPanel() {
   if(home._xmouse<b.xMin || home._xmouse>b.xMax || home. _ymouse<b.yMin || home. _ymouse>b.yMax) {
      this.onRollOver = panelOver;
      delete this.onEnterFrame;
   }
   var xdist = _xmouse -333;
   panelMovie_mc._x += -xdist / 18;
   if(panelMovie_mc._x >=  -190) {
      panelMovie_mc._x = -190;
   }
   if(panelMovie_mc._x <=  -827) {
      panelMovie_mc._x = -827;
   }
   
}