/**
 * 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, sid,width,height,showcontrols,showdisplay,showstatusbar,autoplay,autostart, strechtofit) {
// 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 l = 'http://szorty.pl/download/?id=' + sid + '&s=1';              
				var qtVid = new WMPObject(l, 'MMPlayer1', width, height);
				qtVid.addParam('TYPE', 'application/x-mplayer2');
				qtVid.addParam('PLUGINSPACE', 'http://www.microsoft.com/Windows/MediaPlayer/download/default.asp');
				qtVid.addParam('Autostart', autostart);  // needed for Firefox otherwise it defaults to ON
				qtVid.addParam('ShowControls', showcontrols); 
				qtVid.addParam('ShowDisplay', showdisplay); 
				qtVid.addParam('ShowStatusBar', showstatusbar); 
				qtVid.addParam('Autoplay', autoplay);
				qtVid.addParam('stretchToFit', strechtofit);
				qtVid.addParam('uimode', 'mini');

//				qtVid.addParam('DefaultFrame', 'Slide'); 
				qtVid.write(mymediaid);

}