
/************************************************************** 
*
* This is a helper function to look up the document object 
* for the Flash id.  This is necessary for cross-browser 
* compatibility purposes.
*
*
**************************************************************/

function getFlashMovie(movieName) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}

/************************************************************** 
*
*  This function acts as an interface between the HTML and Flash 
*  flash - The id of the Flash embed object
*  str - The name of the method to call in the Flash video player
*
***************************************************************/

function asCall(flash, str) {
	getFlashMovie(flash).sendToActionscript(str);
}

function asMultiCall(flash, str, arg) {

	getFlashMovie(flash).sendToActionscript(str, arg);
	getFlashMovie("music-list").sendToActionscript(str, arg);
}


function asMultiCall2(flash, str, arg, arg2) {

	getFlashMovie(flash).sendToActionscript(str, arg, arg2);
	getFlashMovie("music-list").sendToActionscript(str, arg, arg2);
}
