Problem with buttons

I have have a couple functions that define a tween class for some buttons. So when you click on the portfolio button it slides down the buttons below it. When you click on a different button such as the about button they all slide back up. Thats where I run into a problem. I have a function that slides them all back up. I need to figure out how to get it to only make then slide back up if they are in the down position. I’m not sure how to do that…the way it is now it runs every time you click on a button other than portfolio…i’m not sure how to do it. I will add the code and the fla files that might help explain what I want to do.

Otherwise here is the code I’m using. I think its really ugly but so far it works. I’m open to suggestions.
Thanks!!

import mx.transitions.Tween;
import mx.transitions.easing.*;

//Portfolio section functions
function portfolio_on() {
    var about_Tw:Tween = new Tween(about_mc, "_y", Regular.easeIn, 140, 245, 5, false);
    var resume_Tw:Tween = new Tween(resume_mc, "_y", Regular.easeIn, 175, 280, 5, false);
    var contact_Tw:Tween = new Tween(contact_mc, "_y", Regular.easeIn, 210, 315, 5, false);
}

function portfolio_off() {
    var about_Tw:Tween = new Tween(about_mc, "_y", Regular.easeIn, 245, 140, 5, false);
    var resume_Tw:Tween = new Tween(resume_mc, "_y", Regular.easeIn, 258, 175, 5, false);
    var contact_Tw:Tween = new Tween(contact_mc, "_y", Regular.easeIn, 315, 210, 5, false);
}

content_mc.loadMovie("portfolio.swf",1);
portfolio_mc.gotoAndStop(2);
var portfolio:Boolean = true;

stop();

//Button script

//portfolio button script
portfolio_mc.onRelease = function() {    
    if (!portfolio) {
        content_mc.loadMovie("portfolio.swf",1);
        portfolio_mc.gotoAndStop(2);
        portfolio = true;
        about = false;
        resume = false;
        contact = false;
        about_mc.gotoAndStop(1);
        resume_mc.gotoAndStop(1);
        contact_mc.gotoAndStop(1);
    } else if (portfolio) {
        portfolio_mc.gotoAndStop(2);
    }
};
portfolio_mc.onRollOver = function() {
    if (!portfolio) {
        portfolio_mc.gotoAndStop(2);
    } else if (portfolio) {
        portfolio_mc.gotoAndStop(2);
    }
};
portfolio_mc.onRollOut = function() {
    if (!portfolio) {
        portfolio_mc.gotoAndStop(1);
    } else if (portfolio) {
        portfolio_mc.gotoAndStop(2);
    }
};

//about button script
about_mc.onRelease = function() {
    if (!about) {
        content_mc.loadMovie("about.swf",1);
        portfolio_off();
        portfolio = false;
        about = true;
        resume = false;
        contact = false;
        portfolio_mc.gotoAndStop(1);
        resume_mc.gotoAndStop(1);
        contact_mc.gotoAndStop(1);
    } else if (about) {
    about_mc.gotoAndStop(2);
    }
};

about_mc.onRollOver = function() {
    if (!about) {
        about_mc.gotoAndStop(2);
    } else if (about) {
        about_mc.gotoAndStop(2);
    }
};
about_mc.onRollOut = function() {
    if (!about) {
        about_mc.gotoAndStop(1);
    } else if (about) {
        about_mc.gotoAndStop(2);
    }
};

//resume button script
resume_mc.onRelease = function() {
    if (!resume) {
        portfolio_off();
        content_mc.loadMovie("resume.swf",1);
        portfolio = false;
        about = false;
        resume = true;
        contact = false;
        portfolio_mc.gotoAndStop(1);
        about_mc.gotoAndStop(1);
        contact_mc.gotoAndStop(1);
    } else if (resume) {
    about_mc.gotoAndStop(2);
    }
};

resume_mc.onRollOver = function() {
    if (!resume) {
        resume_mc.gotoAndStop(2);
    } else if (resume) {
        resume_mc.gotoAndStop(2);
    }
};
resume_mc.onRollOut = function() {
    if (!resume) {
        resume_mc.gotoAndStop(1);
    } else if (resume) {
        resume_mc.gotoAndStop(2);
    }
};

//contact button script
contact_mc.onRelease = function() {
    if (!contact) {
        portfolio_off();
        content_mc.loadMovie("contact.swf",1);
        portfolio = false;
        about = false;
        resume = false;
        contact = true;
        portfolio_mc.gotoAndStop(1);
        about_mc.gotoAndStop(1);
        resume_mc.gotoAndStop(1);
    } else if (contact) {
    contact_mc.gotoAndStop(2);
    }
};

contact_mc.onRollOver = function() {
    if (!contact) {
        contact_mc.gotoAndStop(2);
    } else if (contact) {
        contact_mc.gotoAndStop(2);
    }
};
contact_mc.onRollOut = function() {
    if (!contact) {
        contact_mc.gotoAndStop(1);
    } else if (contact) {
        contact_mc.gotoAndStop(2);
    }
};