function displayObj(videoUrl) {
var burl = videoUrl;
var bparam = "<param name=\"FileName\" value=\""+burl+"\">";
var bembed = "<embed type=\"application/x-mplayer2\" pluginspage = \"http://www.microsoft.com/Windows/MediaPlayer/\" src=\""
bembed = bembed + burl +"\" align=\"middle\" defaultframe=\"rightFrame\" showstatusbar=true width=\"400\" height=\"390\"></embed>";
document.write('<object id="MediaPlayer1" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft. Windows. Media Player components..." type="application/x-oleobject" align="middle" width="400" height="390">\n');
document.write(bparam);
document.write('\n');
document.write('<param name="TransparentatStart" value="true">\n');
document.write('<param name="AutoStart" value="true">\n');
document.write('<param name="ShowControls" value="1">\n');
document.write(bembed);
document.write('\n');
document.write('</object>\n');
}

function displayObjFlash(videoUrl) {
var burl = "http://www.thetartcart.com"+videoUrl;
document.write('<object type="application/x-shockwave-flash" data="/res/swf/FlowPlayer.swf" width="400" height="390" ID="SWFObject1" VIEWASTEXT>\n');
document.write('\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="movie" value="/res/swf/FlowPlayer.swf" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="scale" value="noScale" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="flashvars" value="config=\{ videoFile: \'' + burl + '\', initialScale: \'fit\'\}"/>\n');
document.write('\n');
document.write('</object>\n');
}

