Website navigation issues

I’m literally going insane here. Please help!

I having trouble with the sub navigation in a site I’m putting together. Basically the sub nav buttons should allow the user to change only the content within the page, not the whole page itself. Does that make sense?

Here’s the AS from the buttons frame

profile_btn.onPress = function() {
	_global.nav == "profile""profile_out");

international_btn.onPress = function() {
	_global.nav == "international""profile_out");

leadership_btn.onPress = function() {
	_global.nav == "leadership""profile_out");

vision_btn.onPress = function() {
	_global.nav == "vision""profile_out");

awards_btn.onPress = function() {
	_global.nav == "awards""profile_out");

history_btn.onPress = function() {
	_global.nav == "history""profile_out");

As you can see, depending on which button you press you give a value to the variable called “nav”.
The “profile out” is the outgoing animation for whatever page you are currently on. For this it is the profile page. When you get to the end of the animation you hit this AS.

if   (_global.nav == "vision") {"vision");
else if  (_global.nav == "profile") {"profile");

That’s just a small part of it. But the weird thing is it keeps sending me back to the profile information. It doesn’t even seem to recognize if you’ve clicked on a diferent button. It’s as if that value isn’t being passed on for some reason.