function sendEvent(typ,prm) { thisMovie("mainPlayer").sendEvent(typ,prm); };
function thisMovie(movieName) {
  if(navigator.appName.indexOf("Microsoft") != -1) {
    return window[movieName];
  } else {
    return document[movieName];
  }
};

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

function xmlUpdate(filepath) {
		//replace ct_player with javascript id of actual player
	  getFlashMovie("mainPlayer").xmlUpdate(filepath);
};