function showMovie(hostId, movie, frame) {
    var obj = new unityFlashObject(hostId + "Flash", "/webdata/resources/files/" + movie , 600, 420);
    obj.AddParam("BASE", "/webdata/resources/files/");
    obj.AddParam("allowScriptAccess", "always");
    obj.AddParam("Wmode", "window");
	if (frame) {
	    obj.AddParam("FrameNum", frame);
	}
    obj.Insert(hostId);        
    if (obj.hostElement) {
		obj.hostElement.style.display = '';
		obj.hostElement.style.zIndex= "99";
		obj.hostElement.style.left = "50%";
		obj.hostElement.style.marginLeft = -parseInt(obj.hostElement.offsetWidth / 2) + "px";
		obj.hostElement.style.top = getScrollingPosition()[1] + parseInt((getViewportSize()[1] - obj.hostElement.offsetHeight) / 2) + "px";
    }
	
	var flashMovie = getFlashMovieObject(hostId + "Flash");

	if (frame) {
		flashMovie.GotoFrame(frame);
	}
	flashMovie.Play();
	
	return false;
}

function myVideoFlash_DoFSCommand(command, args) {
	alert(command);
}

function closeMovie() {
	var host = document.getElementById('myVideo');
	
	host.innerHTML = '';
	
	host.style.display = 'none';

}
