/**
 * myWMPlayer v1.0: Javascript function that works with WMPObject.js and is used to build the object.
 * Derived by www.webado.net  from the original by by Kovan Abdulla of www.imetasoft.com.
 *
 * WMPbject is (c) 2006 Kovan Abdulla  and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 *
 * For all usage credits must remain intact.
 */

function myWMPlayer (mymediaid,myfile,width,height,showcontrols,showdisplay,showstatusbar,autoplay,autostart) {
// on input height of movie needs to be increased by 144px for the full controls - width stays the same
// audio player only needs a hight from 45px to 145px depending on options
				var qtVid = new WMPObject(myfile, 'MMPlayer1', width, height);
				qtVid.addParam('TYPE', 'application/x-mplayer2');
				qtVid.addParam('PLUGINSPACE', 'http://www.microsoft.com/Windows/MediaPlayer/download/default.asp');
				qtVid.addParam('ShowControls', showcontrols); 
				qtVid.addParam('ShowDisplay', showdisplay); 
				qtVid.addParam('ShowStatusBar', showstatusbar); 
				qtVid.addParam('Autoplay', autoplay); 
 				qtVid.addParam('Autostart', autostart); // needed for Firefox; set equal to autoplay
				qtVid.addParam('DefaultFrame', 'Slide'); 
				qtVid.write(mymediaid);

}