function getFlashMovieObject(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 SendDataToFlashMovie(VarsToPars)
{
	//alert("VariableToPars : " + VarsToPars);
	var flashMovie=getFlashMovieObject("Boomtown");
	flashMovie.SetVariable("/:VariableToPars", VarsToPars);
}


function refreshFlash(VarsToPars)
{
	//StopFlashMovie();
	SendDataToFlashMovie(VarsToPars);
	//RewindFlashMovie();
	//http://www.permadi.com/tutorial/flashjscommand/
	//PlayFlashMovie();	
}
function openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openWindow(theURL,winName) { //v2.0
  window.open(theURL,winName);
}
