Menu problem

i’ve made a menu… its a menu with submenu’s. when you select a menu item it checks or you already selected the item… show it won’t load the submenu again… i think it’s very complicated… and my english isn’t that good so i can’t really explain my problem… so here is my code and i also attached 2 .fla’s 1 for mx and 1 for mx2004


_root.vorige = "leeg";
function action(geklikt){
if(_root.vorige == "leeg"){
showsub(geklikt);
}else if(geklikt == _root.vorige){
}else 
hidesub(geklikt);
}
function hidesub(test){
submen.onEnterFrame = function(){
endx = 40;
speed = 6;
x = endx - this._x;
this._x += x/speed;
trace(x);
if(x>-.3){
trace(test);
showsub(test);
delete this.onEnterFrame;
}
}
}
function showsub(bla){
trace("show");
this.submen.onEnterFrame = function(){
trace("show2");
_root.vorige = bla;
endx = 132;
speed = 6;
x = endx - this._x;
this._x += x/speed;
if(x<.3){
delete this.onEnterFrame;
}
}
}

nobody??

nevermind, i just had to delete a delete this.onEnterFrame…