Basic menu

im trying to make a basic menu that when u click on one of the links it slides out to the right and only one link can be out to the right at once


//code for "about" link
baseRate = 3.5;
about.x=_root.about._x;
about.y=_root.about._y;
difference = targetx-_root.about._x;
rate = difference/baseRate
_root.about._x += rate;
if (_root.services._x > 32){
	targetx = 31.9;
}
else{
	targetx = 80;
}
if (_root.work._x > 32){
	targetx = 31.9;
}
else{
	targetx = 80;
}
if (_root.contact._x > 32){
	targetx = 31.9;
}
else{
	targetx = 80;
}
 
 
gotoAndPlay("move");

problem is it only recognizes one of those if statements (the last one), there a way I can make it check all of them? (.fla file here http://www.taylorstudio.com/cd/index.fla – big)