Random Movement Boundries

Question: I have cobbled together some code that takes a bunch of movie clips–the site navigation–and moves them around the Flash movie slowly. Here is the problem: if I wait long enough (say 3 minutes), they end up moving off the stage, never to come back. So is there any way for me the specify that these floating movies stay within a certain area?

Any help would be greatly, greatly appecriated.