

function showPLayer_song(link, w, h)

{

	var height = h;

	var width = w;

	var e = link.split('.'); e = e[e.length-1];



	var WMP7;

	try

	{

		if ( navigator.appName != "Netscape" )

		{

			WMP7 = new ActiveXObject('WMPlayer.OCX');

		}

	}

	catch (error)

	{

		;

	}

	var HTML = '';



	// Windows Media Player 7 Code

	if ( WMP7 )

	{

	HTML +=  ('<OBJECT id="MediaPlayer" height="'+height+'" width="'+width+'" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" VIEWASTEXT>');

	HTML +=  ('<PARAM NAME="URL" VALUE="'+link+'">');

	HTML +=  ('<PARAM NAME="rate" VALUE="1">');

	HTML +=  ('<PARAM NAME="balance" VALUE="0">');

	HTML +=  ('<PARAM NAME="currentPosition" VALUE="0">');

	HTML +=  ('<PARAM NAME="defaultFrame" VALUE="">');

	HTML +=  ('<PARAM NAME="playCount" VALUE="999">');

	HTML +=  ('<PARAM NAME="autoStart" VALUE="0">');

	HTML +=  ('<PARAM NAME="currentMarker" VALUE="0">');

	HTML +=  ('<PARAM NAME="invokeURLs" VALUE="-1">');

	HTML +=  ('<PARAM NAME="baseURL" VALUE="">');

	HTML +=  ('<PARAM NAME="mute" VALUE="0">');

	HTML +=  ('<PARAM NAME="uiMode" VALUE="full">');

	HTML +=  ('<PARAM NAME="stretchToFit" VALUE="0">');

	HTML +=  ('<PARAM NAME="windowlessVideo" VALUE="1">');

	HTML +=  ('<PARAM NAME="enabled" VALUE="-1">');

	HTML +=  ('<PARAM NAME="enableContextMenu" VALUE="0">');

	HTML +=  ('<PARAM NAME="fullScreen" VALUE="1">');

	HTML +=  ('<PARAM NAME="SAMIStyle" VALUE="">');

	HTML +=  ('<PARAM NAME="SAMILang" VALUE="">');

	HTML +=  ('<PARAM NAME="SAMIFilename" VALUE="">');

	HTML +=  ('<PARAM NAME="captioningID" VALUE="">');

	HTML +=  ('<PARAM NAME="Volume" VALUE="100">');

	HTML +=  ('</OBJECT>');

	}



	// Windows Media Player 6.4 Code

	else

	{

	HTML +=  ('<OBJECT id="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ');

	HTML +=  ('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" ');

	HTML +=  ('width="'+width+'" " height="'+height+'"');

	HTML +=  ('standby="Loading Microsoft Windows Media Player components..." ');

	HTML +=  ('type="application/x-oleobject" VIEWASTEXT> ');

	HTML +=  ('<PARAM NAME="FileName"           VALUE="'+link+'">');

	HTML +=  ('<PARAM NAME="fullScreen"           VALUE="1">');

	HTML +=  ('<PARAM NAME="TransparentAtStart" Value="false">');

	HTML +=  ('<PARAM NAME="AutoStart"          Value="false">');

	HTML +=  ('<PARAM NAME="AnimationatStart"   Value="false">');

	HTML +=  ('<PARAM NAME="ShowControls"       Value="false">');

	HTML +=  ('<PARAM NAME="ShowDisplay"	 value ="false">');

	HTML +=  ('<PARAM NAME="playCount" VALUE="999">');

	HTML +=  ('<PARAM NAME="displaySize" 	 Value="0">');

	HTML +=  ('<PARAM NAME="Volume" VALUE="100">');

	HTML +=  ('<Embed type="application/x-mplayer2" ');

	HTML +=  ('pluginspage= ');

	HTML +=  ('"http://www.microsoft.com/Windows/MediaPlayer/" ');

	HTML +=  ('src="'+link+'" ');

	HTML +=  ('Name=MediaPlayer ');

	HTML +=  ('transparentAtStart=0 ');

	HTML +=  ('autostart=1 ');

	HTML +=  ('playcount=999 ');

	HTML +=  ('volume=100');

	HTML +=  ('animationAtStart=0 ');

	HTML +=  ('width="'+width+'"  height="'+height+'"');	

	HTML +=  ('displaySize=0></embed> ');

	HTML +=  ('</OBJECT> ');

	}	

		

	return HTML;	

}


