var fsrStatus = new Array();

function fsrStopAll() {
	// FIXME: Windows Flash plugin will still redraw on top of website although stopped
	fsrStatus = new Array();
	jQuery('embed, object').each(function(){
		//if ((this.IsPlaying != undefined) && (this.IsPlaying != null) && this.IsPlaying()) { // works on Mac
		//if ((typeof this.isPlaying == 'function') && this.IsPlaying()) { // works on IE6 too, but not with Flash plugin
		if (this.IsPlaying()) {
			fsrStatus.push(this);
			this.StopPlay();
		}
	});
}

function fsrResumeAll() {
	for (var i=0; i<fsrStatus.length; i++) {
		fsrStatus[i].Play();
	}
}

