function windowsMediaPlayer( strSource )
{
    	var s;
        s+="<div text-align: center;>"
        s="<OBJECT id=winMediaPlayerID ";
        s+="codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 ";
        s+="type=application/x-oleobject height=" + 311 + " ";
        s+="standby=\"Loading Microsoft Windows Media Player components...\" ";
        s+="width=" + 480 + " classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6 ";
        s+="name=winMediaPlayerID>";
        s+="<PARAM NAME=\"URL\" VALUE=\""+strSource+"\"> ";
        s+="<PARAM NAME=\"rate\" VALUE=\"1\">";
        s+="<PARAM NAME=\"balance\" VALUE=\"0\">";
        s+="<PARAM NAME=\"currentPosition\" VALUE=\"0\">";
        s+="<PARAM NAME=\"defaultFrame\" VALUE=\"0\">";
        s+="<PARAM NAME=\"playCount\" VALUE=\"999\">";
        s+="<PARAM NAME=\"CursorType\" VALUE=\"-1\">";
        s+="<PARAM NAME=\"autoStart\" VALUE=\"1\">";
        s+="<PARAM NAME=\"autoplay\" VALUE=\"1\">";
        s+="<PARAM NAME=\"currentMarker\" VALUE=\"0\">";
        s+="<PARAM NAME=\"invokeURLs\" VALUE=\"-1\">";
        s+="<PARAM NAME=\"volume\" VALUE=\"50\">";
        s+="<PARAM NAME=\"mute\" VALUE=\"0\">";
        s+="<PARAM NAME=\"stretchToFit\" VALUE=\"-1\">";
        s+="<PARAM NAME=\"windowlessVideo\" VALUE=\"0\">";
        s+="<PARAM NAME=\"enabled\" VALUE=\"1\">";
        s+="<PARAM NAME=\"fullScreen\" VALUE=\"0\">";
        s+="<PARAM NAME=\"enableContextMenu\" VALUE=\"0\">";
        s+="<PARAM NAME=\"enableErrorDialogs\" VALUE=\"0\"> \n";

        s+="<Embed id='winMediaPlayerIDFF' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows/windowsmedia/download/' filename='"+strSource+"' src='"+strSource+"' Name='winMediaPlayerIDFF' ";
        s+="width='" + 480 + "' ";
        s+="height='" + 311 + "' ";
        s+="AutoSize='1' ";
        s+="AutoStart='1' ";
        s+="AutoPlay='1' ";
        s+="ClickToPlay='1' ";
        s+="DisplaySize='1' ";
        s+="EnableContextMenu='0' ";
        s+="EnableFullScreenControls='1' ";
        s+="EnableTracker='1' ";
        s+="Mute='0' ";
        s+="PlayCount='999' ";
        s+="ShowControls='1' ";
        s+="ShowAudioControls='1' ";
        s+="ShowDisplay='0' ";
        s+="ShowGotoBar='0' ";
        s+="ShowPositionControls='1' ";
        s+="ShowStatusBar='1' ";
        s+="ShowTracker='1'> ";
        s+="</embed> ";
        s+="</OBJECT>";
        s+="</div>"
        document.getElementById("MediaPlayer").innerHTML=s;
}

function flashMediaPlayer( strSource )
{
    var clips = "[ { name: 'ClickToPlay', overlayId: 'play' }, { name: '', url: '"+strSource+"' } ]";
    var flashvars = {
        config: "{ playList: " + clips + ", showPlayList: true,useSmoothing: true, baseURL: '', autoPlay: false, autoBuffering: false, startingBufferLength: 2, bufferLength: 5, loop: false,hideControls: false,initialScale: 'scale', showPlayListButtons: false, useNativeFullScreen: true,controlBarGloss: 'high', controlsOverVideo: 'ease', controlBarBackgroundColor: '0x253133', progressBarColor1: '0xFFFFFF', progressBarColor2: '0x000000', timeDisplayFontColor: '0xFFCC00', noVideoClip: { url: 'uploads/notfound.jpg' },	useHwScaling: false,showMenu: false }"
    };
    var params = {
        allowfullscreen: "true",
        allowScriptAccess: "always",
        wmode: "transparent"
    };
    var attributes = {};
    swfobject.embedSWF("player.swf", "MediaPlayer", "480", "311", "9.0.115", false, flashvars, params, attributes);
    //Playerholder
}

