//functions to control flash from html
//jonk 2005-08-30
//http://www.moock.org/webdesign/flash/fscommand/index.html#diagram2
var movieName = "ikeamap";

function thisMovie(movieName) {
  // 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[movieName]
  } else {
    return document[movieName]
  }
}
function playmovie() {
  thisMovie(movieName).Play();
}
function goToFrameOne() {
  thisMovie(movieName).GotoFrame(1);
  thisMovie(movieName).StopPlay();
}
function zoomMe(zoomLevel) {
	thisMovie(movieName).Zoom(zoomLevel);
}
function playMc(theMc,frame) {
	thisMovie(movieName).TGotoFrame(theMc,frame);
}
