/**
** This is simple code JavaScript to embed media player on site
** copyright (c) 2007 Marcin ;)
** If you want, you can use this code wherever you like. It's relased under the open source license;
*/
function videoplayer(_source,_width,_height,_id){this.source=_source;this.width=_width;this.height=eval(_height)+70;this.element=document.getElementById(_id);}videoplayer.prototype={showplayer:function(){this.element.innerHTML='<object ID="MediaPlayer" CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." type="application/x-oleobject" width="'+this.width+'" height="'+this.height+'"><param name="filename" value="'+this.source+'" /><param name="autostart" value="true" /><param name="showstatusbar" value="true" /><param name="showcontrols" value="true" /><embed src="'+this.source+'" type="application/x-mplayer2" pluginspage="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" width="'+this.width+'" height="'+this.height+'" autostart="1" showcontrols="1" ></embed></object>';}}