/*
	@author Robert Johnson 2010

*/

/*
 * @author http://kb2.adobe.com/cps/156/tn_15683.html#exampleas3
 */
function getFlashMovie(movieName) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
};

function sendMessage(movieName, method, params) {
	getFlashMovie(movieName).receiveMessageFromJavascript(method, params);
};

function receiveMessage(method, params) {
	eval(method + "('" + params + "');");
}
