function getFlash() {
	var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
  return InternetExplorer ? window.movie : window.document.movie;
}

function flashPassVar(varname,value){
	var obj=getFlash();
  obj.SetVariable(varname, value);
}

var tmrCheckFlash;
function flashRedirectAfterPlay( destURL ) {
	tmrCheckFlash = setInterval('flashCheckFinishedPlaying(\''+destURL+'\');', 1000);
}

function flashCheckFinishedPlaying( destURL ) {
	var obj=getFlash();
	if(!obj.isPlaying()) {
		location.href=destURL;
	}
}

