function openvideo(path, width, height,txtcol) { 
if (!txtcol){
txtcol="white"; 
 }
 xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
        xposition = (screen.width - width) / 2;
        yposition = (screen.height - height) / 2;
    }
    args = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=1,"
    + "scrollbars=0,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

n= window.open('',"tst",args);		
n.focus()
n.document.write('<HTML>\n<HEAD>\n');
n.document.write('<scr');
n.document.write('ipt language="JavaScript">\n');
n.document.write('function openviewer() {\n');
n.document.write('opener.document.location="'+joinpage+'"; self.close();}\n');
n.document.write('</s');
n.document.write('cript>\n');
n.document.write('<title>Video Preview</title>\n');
n.document.write('</HEAD><BODY bgcolor="'+bgrcol+'">\n');
n.document.write('<center><table><tr><td> \n');
n.document.write('<OBJECT ID="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.coam/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" standby="Loading Microsoft Windows Medi Player components..." TYPE="application/x-oleobject">\n');
n.document.write(' <PARAM NAME="FileName" value="mms://wm.shawvideos.drmnetworks.speedera.net/wm.shawvideos.drmnetworks'+mpath+path+'">\n');
n.document.write('<PARAM NAME="AnimationatStart" VALUE="true">\n');
n.document.write('<PARAM NAME="TransparentatStart" VALUE="true">\n');    
n.document.write('<PARAM NAME="AutoStart" VALUE="true">\n');     
n.document.write('<PARAM NAME="ShowControls" VALUE="0">\n');     
n.document.write('<Embed TYPE="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"\n');     
n.document.write(' SRC="mms://wm.shawvideos.drmnetworks.speedera.net/wm.shawvideos.drmnetworks'+mpath+path+'"\n');     
n.document.write('Name=MediaPlayer ShowControls=0 Width=300 Height=200\n');         
n.document.write('</embed></OBJECT></td></tr></table></center>\n');          
n.document.write('<div align="center"><a href="javascript:openviewer()"><b><font face="arial" color="'+txtcol+'">Click Here to see Full Movie</font></b></a></div>\n');     
n.document.write('</body></HTML>\n');
n.document.close(); //Close the Window to additional writes
}
