
/* Flash - Steuerung */
var frameLast = 'empty';

function controlFlash(movieID, action, frame) {
		if(frameLast != frame) {
			if (document.getElementById) {
				var movieObj = document.getElementById(movieID);
				if (movieObj.PercentLoaded() == 100) {
					frameLast = frame;
					if (action == 'stop') movieObj.StopPlay();
					else if (action == 'play') movieObj.Play();
					else if (action == 'goto') {
						if(!isNaN(frame)) movieObj.TGotoFrame("_level0/", frame);
						else movieObj.TGotoLabel("_level0/", frame);
						movieObj.Play();
					}
				}
			}
		}
	}