// requires CheckPlugin.js
CheckPlugin.reset();
CheckPlugin.pluginName = "Windows Media";
CheckPlugin.activeXControlName = "WMPlayer.OCX.7";
CheckPlugin.version = "7";
CheckPlugin.check();
var blnHasWMV = CheckPlugin.found;
if (!blnHasWMV)
{
	CheckPlugin.reset();
	CheckPlugin.pluginName = "Windows Media";
	CheckPlugin.activeXControlName = "WMPlayer.OCX.9";
	CheckPlugin.version = "9";
	CheckPlugin.check();
	blnHasWMV = CheckPlugin.found;
}
G4_SetCookie('bwmv', blnHasWMV ? 1 : 0);
/**************************************************
WRITE WMV
**************************************************/
function WriteWMV(wmv, img, id, df, width, height, heighte, transparent)
{
	if (blnHasFlash)
	{
		var sdf = df == undefined ? df : '_self';
		
		document.write('<object id="' +id+ '" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="' +width+ '" height="' +height+ '">')
		document.write('<param name="url" value="' +wmv+ '"/>');
		document.write('<param name="defaultFrame" value="' +sdf+ '"/>');
		document.write('<param name="transparentAtStart" value="' +transparent+ '">');
		document.write('<embed type="application/x-mplayer2" transparentAtStart="' +transparent+ '" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="' +wmv+ '" defaultFrame="' +sdf+ '" name="' +id+ '" id="' +id+ '" width="' +width+ '" height="' +heighte+ '" autostart="1" ShowStatusBar="1" mayscript="true"></embed>');		
		document.write('</object>');
	}
	else
	{
		document.write('<a href="http://www.microsoft.com/Windows/MediaPlayer/" title="Get Windows Media Player" target="_blank">');
		document.write('<img src="' +img+ '" width="' +width+ '" height="' +height+ '" alt="Get the latest Version of Windows Media Player" border="0">');
		document.write('</a>');
	}
}