function get_nav_page($stream_title)
 {
     global $mvgIP;
     // output sliders for stream navigation:
     $out = '<h3>' . wfMsg('mv_tool_navigate') . ' ' . htmlspecialchars(ucfirst($stream_title)) . '</h3>';
     // normalize stream title:
     $stream_title = str_replace(' ', '_', strtolower($stream_title));
     // get the total length of the stream:
     $stream = new MV_Stream(array('name' => $stream_title));
     // $out.= "sn: ". $stream->name . '<br />';
     $duration = $stream->getDuration();
     // $out.=" duration: $duration";
     $MvOverlay = new MV_Overlay();
     $titleKey = 'mvd_type:' . ucfirst($stream_title) . '/' . $_REQUEST['time_range'];
     $out .= $MvOverlay->get_adjust_disp($titleKey, 'nav');
     $out .= '<input type="button" id="mv_go_nav" value="Go">';
     // set range:
     $this->js_eval = 'var end_time = \'' . htmlspecialchars($duration) . '\';';
     return $out;
 }
 function add_clips_manual()
 {
     global $wgOut, $mvgIP, $mvDefaultSearchVideoPlaybackRes;
     $MV_Overlay = new MV_Overlay();
     // add preview clips space and manual add title
     list($iw, $ih) = explode('x', $mvDefaultSearchVideoPlaybackRes);
     $wgOut->addHTML('<h3>' . wfMsg('mv_add_clip_by_name') . ':</h3>' . '<form id="mv_add_to_seq_form" action="">' . '<div id="mv_seq_manual_embed" style="display:none;position:relative;border:solid thin black;width:' . htmlspecialchars($iw) . 'px;height:' . htmlspecialchars($ih) . 'px;"> </div><br />' . wfMsg('mv_label_stream_name') . ': <input id="mv_add_stream_name" name="mv_add_stream_name" ' . ' size="25" maxlength="65" ' . 'value="">');
     $wgOut->addHTML('<div id="mv_add_stream_name_choices" class="autocomplete"></div>');
     $wgOut->addHTML('<br class="mv_css_form">');
     // get adjustment disp:
     $wgOut->addHTML('<div id="mv_add_adj_cnt" style="display:none;">' . $MV_Overlay->get_adjust_disp('seq', 'seq') . '<input type="button" value="' . wfMsg('mv_seq_add_end') . '"  onClick="mv_add_to_seq();" >' . '<br class="mv_css_form">' . '</div></form>');
 }