var movieName01 = "hopscotch";
function thisMovie(movieName01) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName01]
  }	else {
    return document[movieName01]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (movieName01) {
  if (typeof(movieName01) != "undefined") {
    return movieName01.PercentLoaded() == 100;
  } else {
    return false;
  }
}

function gohopscotch(theFrame) {
if (movieIsLoaded(thisMovie(movieName01))) {
thisMovie(movieName01).GotoFrame(theFrame);
}
}