function displayVideo(VideoFileName)
{
	document.write('<object id="player" type="application/x-oleobject" '
	+ ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0"'
	+ " standby='Loading Microsoft Windows Media Player components…'"
	+ ' classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">'
	+ '<param NAME="URL" VALUE="' + VideoFileName + '"><param name="AutoStart" value="True">'
    + '<PARAM NAME="AnimationAtStart" VALUE="-1"><PARAM NAME="AllowScan" VALUE="-1">'
    + '<PARAM NAME="AllowChangeDisplaySize" VALUE="-1"><PARAM NAME="AutoRewind" VALUE="0">'
    + '<PARAM NAME="Balance" VALUE="0"><param name="stretchtofit" value="true">'
    + '<PARAM NAME="BufferingTime" VALUE="5"><PARAM NAME="CaptioningID" VALUE="">'
    + '<PARAM NAME="ClickToPlay" VALUE="-1"><PARAM NAME="CursorType" VALUE="0">'
    + '<PARAM NAME="CurrentPosition" VALUE="-1"><PARAM NAME="CurrentMarker" VALUE="0">'
    + '<PARAM NAME="DefaultFrame" VALUE=""><PARAM NAME="DisplayBackColor" VALUE="0">'
    + '<PARAM NAME="DisplayForeColor" VALUE="16777215"><PARAM NAME="DisplayMode" VALUE="0">'
    + '<PARAM NAME="DisplaySize" VALUE="100"><PARAM NAME="Enabled" VALUE="-1">'
    + '<PARAM NAME="EnableContextMenu" VALUE="0"><PARAM NAME="EnablePositionControls" VALUE="0">'
    + '<PARAM NAME="EnableFullScreenControls" VALUE="1"><PARAM NAME="EnableTracker" VALUE="-1"></object>');	

}

function displayVideoSmall(VideoFileName)
{
	document.write('<object id="player" type="application/x-oleobject" '
	+ ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0"'
	+ " standby='Loading Microsoft Windows Media Player components…'"
	+ ' classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="185" height="225">'
	+ '<param NAME="URL" VALUE="' + VideoFileName + '"><param name="AutoStart" value="False">'
    + '<PARAM NAME="AnimationAtStart" VALUE="-1"><PARAM NAME="AllowScan" VALUE="-1">'
    + '<PARAM NAME="AllowChangeDisplaySize" VALUE="-1"><PARAM NAME="AutoRewind" VALUE="0">'
    + '<PARAM NAME="Balance" VALUE="0"><param name="stretchtofit" value="true">'
    + '<PARAM NAME="BufferingTime" VALUE="5"><PARAM NAME="CaptioningID" VALUE="">'
    + '<PARAM NAME="ClickToPlay" VALUE="-1"><PARAM NAME="CursorType" VALUE="0">'
    + '<PARAM NAME="CurrentPosition" VALUE="-1"><PARAM NAME="CurrentMarker" VALUE="0">'
    + '<PARAM NAME="DefaultFrame" VALUE="0"><PARAM NAME="DisplayBackColor" VALUE="0">'
    + '<PARAM NAME="DisplayForeColor" VALUE="16777215"><PARAM NAME="DisplayMode" VALUE="0">'
    + '<PARAM NAME="DisplaySize" VALUE="100"><PARAM NAME="Enabled" VALUE="-1">'
    + '<PARAM NAME="EnableContextMenu" VALUE="0"><PARAM NAME="EnablePositionControls" VALUE="0">'
    + '<PARAM NAME="EnableFullScreenControls" VALUE="1"><PARAM NAME="EnableTracker" VALUE="-1"></object>');	

}

function getPreviewDefault(attribs, VirDir)
{		
	window.document.open(VirDir +'/video/video.aspx?'+attribs,"Video","top=20,left=20,width=600,height=600,toolbar=0, menubar=0, scrollbars=1")
}

function getPreviewVideo(attribs, VirDir)
{		
	window.document.open(VirDir + '/video/video.aspx?'+attribs,"Video","top=20,left=20,width=600,height=600,toolbar=0, menubar=0, scrollbars=1")
}
