From the makevisible() function, add this: [b]stop[/b] = setTimeout("minimize()", 4000); .
Then in the minimize() function add this clearTimeout([b]stop[/b]); as the first statement &#8212; the rest of your code is as follows.