You can see a working example here: http://www.mediamelon.com/MediaMelon/showcase.jsp Upon loading, let the flash player play. Then switch to some other option from the top navigation (orange lines on hover) while the video is playing.

The problem is that on IE and Opera the flash player plays in the background even after i switch to a different player by clicking on the options at the top. Its fine in Firefox/Safari.
Heres a code snippet:
Code:
/* This is the top navigation */
<ul>
<li id="wid1" onClick="expand('widget1','widget2','widget3','widget4');chgclass('wid1');return false">MediaMelon Player</li>
<li id="wid2" onClick="expand('widget2','widget3','widget1','widget4');chgclass('wid2');return false">MediaMelon Player with Ads</li>
<li id="wid3" onClick="expand('widget3','widget1','widget2','widget4');chgclass('wid3');return false">MediaMelon API</li>
<li id="wid4" onClick="expand('widget4','widget1','widget2','widget3');chgclass('wid4');return false">HD Widescreen Player</li>
</ul>

/* One of the flash embed players */
<div id="widget1" style="display:none;"><iframe width='320' height='250' scrolling='no' frameborder='0' src='http://www.mediamelon.com/MediaMelon/PartnerVideo.do?mediaid=1883'></iframe></div>
And the relevant javascript snippet is:
Code:
function divStat(id)
			{
				if(document.all)
				return document.all[id];
				else
				return document.getElementById(id);
			}
function expand(toggle1, toggle2, toggle3, toggle4)
	{
	   divStat(toggle1).style.display='none';
	   divStat(toggle2).style.display='none';
	   divStat(toggle3).style.display='none';
	   divStat(toggle4).style.display='none';
	   divStat(toggle1).style.display='block';
}
Making "display:none" for the div containing flash doesn't stop flash from running in the background even though the div changes.
How do i let the initial flash player (when the "MediaMelon API" option bar is orange in color) stop playing in background on Ie browsers when i choose some other option?

Thanks,

P.S. Dont bother about the other flash players which require installation of plugin. Just make sure that the "MediaMelon API" flash player is playing so that you can understand what the problem is.