function cleanupFP9IELeaks() {
  __flash_unloadHandler = function() {};
  __flash_savedUnloadHandler = function() {};
}
if (typeof window.attachEvent != "undefined" && UFO.uaHas("ieWin")) {
  window.attachEvent("onbeforeunload", cleanupFP9IELeaks);
}

var flash_vars = "sid="+sid+"&un="+un+"&pw="+pw+"&regmode=LIVE&rf="+rf;
var FO = { movie:"/swf/home9.swf", width:flash_width, height:flash_height, majorversion:"7", build:"0", name:"homelayout", flashvars:flash_vars, id:"homelayout", swliveconnect:"true" };
UFO.create(FO, "ufo");

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 {
		return document.getElementById(movieName);
	}
}

function SendDataToFlashMovie(movie_name,var_name,var_data) {
     var flashMovie=getFlashMovieObject(movie_name);
     flashMovie.SetVariable(var_name, var_data);
}
