
function ShowVideo(vidfile){
var elem = document.getElementById("vidimage");
elem.style.display = 'none';
var videlem = document.getElementById("vidplayer");
videlem.innerHTML = "<OBJECT id='MediaPlayer' width='265' height='197' CLASSID='clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6' \
standby='Loading Microsoft Media Player components ...' type='application/x-oleobject'> \
<PARAM name='enablejavascript' value='true'> \
<param name='windowlessvideo' value='true'> \
<PARAM NAME='wmode' value='Transparent'> \
<PARAM NAME='URL' value='" + vidfile +"'> \
<PARAM NAME='AutoStart' VALUE='true'> \
<PARAM name='PlayCount' value='9999'> \
<PARAM NAME='ShowControls' VALUE='0'> \
<PARAM NAME='ShowAudioControls' VALUE='0'> \
<PARAM NAME='FullScreenMode' VALUE='1'> \
<PARAM NAME='uiMode' VALUE='full'> \
<PARAM name='EnableContextMenu' value='true'> \
<PARAM NAME='Volume' VALUE='50'> \
<embed wmode='Transparent' src='" + vidfile +"' width='265' height='197' hspace='0' vspace='0' autostart='true' filename='" + vidfile +"' name='win_media_player' playcount='9999' > \
</embed></OBJECT>";
//alert(videlem.innerHTML)
}
