/*
function goNoise( noiseId ) {
	if (document.getElementById(noiseId)) {
     	target = document.getElementById(noiseId);
          try {
			target.DoPlay(); //play RealPlayer
		}
		catch (er) {
			target.Play(); //play QT and WMP
		}
     }
}

function stopNoise( noiseId ) {
	if (document.getElementById(noiseId)) {
     	target = document.getElementById(noiseId);
          try {
     		target.DoStop(); //stop realplayer
          }
          catch (er) {
          	target.Stop(); //stop QT and WMP
          	try {
               	target.Rewind(); //rewind QT               	
          	}
               catch (er2) {
               	target.CurrentPosition = 0; //rewind WMP
               }
          }
     }
}*/


function goNoise( noiseId ) {
	if (document.getElementById) {
     	target = document.getElementById(noiseId);
          if (target.DoPlay) {
			target.DoPlay(); //play RealPlayer
		}
		else {
			target.Play(); //play QT and WMP
		}
     }
}

function stopNoise( noiseId ) {
	if (document.getElementById) {
     	target = document.getElementById(noiseId);
          if (target.DoStop) {
     		target.DoStop(); //stop realplayer
          }
          else {
          	target.Stop(); //stop QT and WMP
          	if (target.Rewind) {
               	target.Rewind(); //rewind QT               	
          	}
               else {
               	target.CurrentPosition = 0; //rewind WMP
               }
          }
     }
}
