function qt(n) {
  var flv = n.replace(/\.(mp4|mov|3gp)/, '.flv');
  flv = flv.replace(/ /g, '%20');
  flv = flv.replace(/:/g, '%3a');
  flv = 'http://www.chocopara.tv/surfing/archives/' + flv;
  var swf = 'http://www.chocopara.tv/myflvplayautoplay.swf';
//  var swf = 'myflvplay.swf';

  var w = window.open("#", "qtwin", "width=340,height=300");

w.document.open();
w.document.writeln('<html><head></head><body>');
w.document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="280" id="myflvplay" align="top">');
w.document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
w.document.writeln('<param name="allowFullScreen" value="false" />');
w.document.writeln('<param name="movie" value="' + swf + '" />');
w.document.writeln('<param name="quality" value="high" />');
w.document.writeln('<param name="bgcolor" value="#ffffff" />');
w.document.writeln('<param name="FlashVars" value="url=' + flv + '" />');
w.document.writeln('<embed src="' + swf + '" quality="high" bgcolor="#ffffff" width="320" height="280" name="myflvplay" align="top" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"');
w.document.writeln(' FlashVars="url=' + flv + '" />');
w.document.writeln('</object>');
w.document.writeln('</body></html>');
w.document.close();
w.focus();
}

function qtm(n) {
  qt(n);
}


