function NewWindow(mypage,w,h,scroll) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	win = window.open(mypage,"popup","height="+h+",width="+w+",top="+TopPosition+",left="+LeftPosition+",fullscreen=0,location=0,menubar=0,resizable=0,scrollbars="+scroll+",status=1,titlebar=0,toolbar=0")
}

function getFlashMovie(movieName) {
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function OutFlash(movie) {
	var flashMovie=getFlashMovie(movie);
	flashMovie.Rewind();
}

function OverFlash(movie) {
	var flashMovie=getFlashMovie(movie);
	var currentFrame=flashMovie.TGetProperty("/", 2);
	var nextFrame=parseInt(currentFrame);
	if (nextFrame>=3)
		nextFrame=2;
	flashMovie.GotoFrame(nextFrame);		
}
