// pms_video-player.js
// Used to setup functions that will pass information from JavaScript to the Flash Players.

// Functions that can be called from the HTML to talk to the Flash.
function newMovie(whatVideoId) {
	thisMovie("vista_player").newMovieSWF(whatVideoId);
	//alert("complete: newMovie");
}

function setMovieTitle(whatTitle) {
	thisMovie("vista_player").movieTitleSWF(whatTitle);
	//alert("complete: setMovieTitle");
}

// Select ONLY the video player, different method for DOM from IE.
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1 || window.attachEvent) {
		return window[movieName];
	}
	else {
		return document[movieName];
	}
}
