function FlashMovieManager() {
	this.a = [];
	this.movies = new Object();
	this.length = 0;
	FlashMovieManager.o = this;
}
FlashMovieManager.FSC = function(sCmd,a) { if (window[sCmd]) window[sCmd](a) }
FlashMovieManager.prototype.addMovie = function(sMovieName){
	if (sMovieName) {
		this.a[this.a.length] = sMovieName;
		this.length = this.a.length;
	}
};
FlashMovieManager.prototype.initFSC = function() {
	var nL = this.length;
	if (this.length) {
		var bVB = Boolean(document.all && window.ActiveXObject);
		var sN, sSVB='\t<script language="VBScript">\n\ton error resume next\n';
		for (var i=0; i<nL; i++) {
			window[(sN = this.a[i]) + '_DoFSCommand'] = FlashMovieManager.FSC;
			if (bVB) sSVB += '\tSub ' + sN + '_FSCommand(ByVal sCmd, ByVal a)\n\t\tcall ' + sN + '_DoFSCommand(sCmd, a)\n\tend sub\n';
		}
		if (bVB && sSVB.length > 70) {
			sSVB += '\t<\/script>\n';
			document.write(sSVB);
		}
	}
}
FlashMovieManager.prototype.initMovies = function() {
	var i, nL = this.a.length, sMovieName;
	for (i=0; i<nL; i++) {
		sMovieName = this.a[i];
		this.movies[sMovieName] = this._getMovieById(sMovieName);
	}
};
FlashMovieManager.prototype._getMovieById = function(sId) {
	if (document.getElementsByTagName && !document.all) {
		var i, aEmbeds = document.getElementsByTagName('embed'), nL=aEmbeds.length;
		var oEmbed = null, oEmbed_tmp;
		for (i=0; i<nL; i++) {
			oEmbed_tmp = aEmbeds[i];
			if (oEmbed_tmp.getAttribute('name') == sId) {
				oEmbed=oEmbed_tmp;
				break;
			}
		}
		return oEmbed;
	} else return document[sId] || window[sId] || null;
};
FlashMovieManager.prototype.getMovieById = function(sId) {
	return this.movies[sId] || null;
};
FlashMovieManager.prototype.kill = function() {
	var i, nL = this.a.length, sMovieName;
	for (var i=0; i<nL; i++) {
		sMovieName = this.a[i];
		delete this.movies[sMovieName];
		if (document.all) window[sMovieName] = null;
		else document[sMovieName] = null;
	}
}
new FlashMovieManager();