I'm having trouble with some script on some movie clips.

It's supposed to cause each of five movie objects to correspond and go to a different named frame when they are clicked. The problem is that regardless of which one is clicked, it always goes to "animation." I tested it out by changing the name of the animation frame. The result was that it then always went to the "publication" frame. It would seem that it goes to the last valid named frame in the script.

Actionscript Code:

Photo_Button.onMouseUp = function() {

Design_Button.onMouseUp = function() {

Drawing_Button.onMouseUp = function() {

Publication_Button.onMouseUp = function() {

Animation_Button.onMouseUp = function() {

Is this just a small syntax or separation I'm missing or am I using the wrong code all together?