// The code below contains functions that run Media Player content. The functions
// assemble an OBJECT/EMBED tag string, and then perform a document.write of 
// this string in the calling html document.
//   MP_RunMPContent() - build tags to display MP content.
//
// To call one of these functions, pass all the attributes and values that you would 
// otherwise specify for the object, param, and embed tags in the following form:
//   MP_RunMPContent(
//     "attrName1", "attrValue1"
//     "attrName2", "attrValue2"
//     ...
//     "attrNamen", "attrValuen"
//   )
//

/*
//for my referance... 
Wm 5,6 class id
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"

new 7 and 9 class id
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"

Codebase and TYPE not used after windows media 7 !!!

CODEBASE="http://activex.microsoft.com/activex/
	controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
	
versions: 5- Version=5,1,52,701
		  6- Version=6,4,7,1112

TYPE="application/x-oleobject">
*/

function MP_RunMPContent()
{

//get the version and the proper classid
 var MPversion = MP_GetVersion(arguments);
 var MPclassid = MP_GetClassId(MPversion);
 var MPtype = MP_GetType(MPversion);

	
  MP_GenerateObj
  (  "MP_RunMPContent()", MPclassid, MPversion
   , "http://www.microsoft.com/windows/windowsmedia/download/default.asp"
   , MPtype, arguments
  );
}

	
