<!------- hide the script from old browsers
 

function define_mov(mov_mstr,h,w,title,time,blur_flag) {
  // mov_mstr - url of the MSTR version of the QT movie
  // h - heigth desired (e.g., 240, 180, . . .) 
  // w - widtth desired (e.g., 320, 240, . . .)
  // title - name of the movie
  // time - length in mm:ss
  // blur_flag - y if close window on blur (default is y, turn off with n)
  var winopt, html;
  var height = (h * 1) + 16; 
  var width = w * 1; 
  //var height = h  + 16; // space for qt control bar
  //var width = w; 
  var bgcolor = "#336699";
  var fc = "#FFFFFF";
  var url = "http://www.mdsg.umd.edu/"; // base url
  var url = "http://www.mdsg.umd.edu/~admin/new_site/"; // base url
  var v_url = url + "videos/"; // video url

  // option - close window when user moves off it (default is to do this)
  var blur_it = " onblur=window.close()"
  if (blur_flag == "n") { blur_it = ""; }

  html = "<!DOCTYPE HTML PUBLIC\ \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n   ";
  html += "  \"http://www.w3.org/TR/html4/loose.dtd\">\n";
  html += "<HTML LANG=\"EN-US\">\n";
  html += "<HEAD>\n";
  html += "<TITLE>Video Journal: " + title + "</TITLE>\n";
  html += "<LINK REL=\"STYLESHEET\" TYPE=\"text/css\" ";
  html += "HREF=\"" + url + "mdsg.css\">\n";
  html += "</HEAD>\n";
  html += "<BODY STYLE=\"background-image:url(" + v_url;
  html += "video_journal_back.gif);\" ";
  html += blur_it + ">\n";
  html += "<DIV ALIGN=\"CENTER\">\n";

  html += "<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"8\" ";
  html += "WIDTH=\"100%\">\n";
  html += "<TR>\n<TD ALIGN=\"CENTER\" VALIGN=\"TOP\">\n";
  html += "<H4>\n<SPAN STYLE=\"color:" + fc + ";\">\n";
  html += "VIDEO JOURNAL\n</SPAN>\n</H4>\n"; 
  html += "<H3 STYLE=\"color:" + fc + ";\">\n";
  html += "<SPAN STYLE=\"font-style:italic;\">";
  html += title + "</SPAN> [" + time + "]\n</H3>\n";

  html += "<OBJECT CLASSID=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\"\n";
  html += "WIDTH=\"" + width + "\" HEIGHT=\"" + height + "\" SCALE=\"TOFIT\"\n"; 
  html += "CODEBASE=\"http://www.apple.com/qtactivex/qtplugin.cab\">\n"; 
  //html += "<PARAM NAME=\"SRC\" VALUE=\"" + mov_mstr + "\">\n"; 
  //html += "<PARAM NAME=\"TYPE\" VALUE=\"video/quicktime\">\n"; 
  //html += "<PARAM NAME=\"AUTOPLAY\" VALUE=\"TRUE\">\n"; 
  //html += "<PARAM NAME=\"CONTROLLER\" VALUE=\"TRUE\">\n"; 
  //html += "<EMBED SRC=\"" + mov_mstr + "\" TYPE=\"video/quicktime\" ";
  //html += "PLUGINPAGE=\"http://www.apple.com/quicktime/download\" \n";
  //html += "HEIGHT=\"" + height + "\" WIDTH=\"" + width + "\" SCALE=\"TOFIT\" "; 
  //html += "TARGET=\"dummy\" CONTROLLER=\"TRUE\" AUTOPLAY=\"TRUE\">\n";
  html += "<PARAM NAME=\"SRC\" VALUE=\"" + mov_mstr + "\">\n"; 
  html += "<PARAM NAME=\"QTSRC\" VALUE=\"" + mov_mstr + "\">\n"; 
  html += "<PARAM NAME=\"HREF\" VALUE=\"" + mov_mstr + "\">\n"; 
  html += "<PARAM NAME=\"AUTOPLAY\" VALUE=\"TRUE\">\n";
  html += "<PARAM NAME=\"CONTROLLER\" VALUE=\"TRUE\">\n";
  html += "<PARAM NAME=\"TYPE\" VALUE=\"video/quicktime\">\n"; 
  html += "<PARAM NAME=\"TARGET\" VALUE=\"myself\">\n";
  html += "<PARAM NAME=\"KIOSKMODE\" VALUE=\"false\">\n";
  html += "<EMBED SRC=\"" + mov_mstr + "\" ";
  html += "QTSRC=\"" + mov_mstr + "\" ";
  html += "HREF=\""  + mov_mstr + "\" ";
  html += "TARGET=\"myself\" CONTROLLER=\"TRUE\" ";
  html += "HEIGHT=\"" + height + "\" WIDTH=\"" + width + "\" SCALE=\"TOFIT\" "; 
  html += "LOOP=\"false\" AUTOPLAY=\"TRUE\" PLUGIN=\"quicktimeplugin\" ";
  html += "TYPE=\"video/quicktime\" CACHE=\"true\" KIOSKMODE=\"TRUE\" ";
  html += "PLUGINPAGE=\"http://www.apple.com/quicktime/download\">\n";
  html += "</embed>\n";
  html += "</OBJECT>\n";
  html += "</TD>\n</TR>\n</TABLE>\n<BR>\n"; 

  html += "<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"8\" ";
  html += "WIDTH=\"100%\">\n";
  html += "<TR>\n"; 
  html += "<TD NOWRAP ALIGN=\"LEFT\" VALIGN=\"MIDDLE\" WIDTH=\"15%\">\n";
  html += "<A STYLE=\"color:" + fc + ";\" ";
  html += "HREF=\"" + v_url + "video_help.html\" TARGET=\"_blank\">";
  html += "help guide</A>\n";
  html += "</TD>\n";
  html += "<TD ALIGN=\"CENTER\" VALIGN=\"MIDDLE\" WIDTH=\"70%\">\n";
  html += "<FORM>\n";
  html += "<INPUT TYPE=\"Button\" value=\"Close Window\" ";
  html += "onClick=\"window.close();\"><BR>\n";
  html += "</FORM>\n"; 
  html += "</TD>\n"; 
  html += "<TD NOWRAP ALIGN=\"RIGHT\" VALIGN=\"MIDDLE\" WIDTH=\"15%\">\n";
  html += "</TD>\n</TR>\n</TABLE>\n"; 

  html += "</DIV>\n";
  html += "</BODY>\n";
  html += "</HTML>\n";
  // adjust height & width so window does not have scrollbars
  height = height + 190;
  if (height == 180) { height += 60; } // 16x9
  if (height == 135) { height += 55; }
  width = width + 160;
  // note: toolbar = yes to allow printing of pop-up window
  winopt = "toolbar=yes,location=yes,directories=yes,menubar=yes,resizable=no,";
  winopt = "toolbar=no,location=no,directories=no,menubar=no,resizable=no,";
  winopt += "scrollbars=yes,width=" + width + ",height=" + height;
  newWin=window.open("","dummy",winopt);
  newWin.document.write(html);
  newWin.document.close();
  return
}

//close off comment to hide this script from old browsers----------->
