slideshow image, video with jquery cycle
<p>I am trying to create slideshow with image and video.  the slideshow is running, 
but  when video is running, slideshow go to the next slide, because jquery timeout..
I want the video finished first before go to the next slide, even the video need 5 minutes for running.</p>

<p>Any one can help me ? </p>

<p>this is the script..</p>

<pre><code>&lt;head&gt;
&lt;script src="js/jquery-1.4.4.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery.cycle.all.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function(){
$('#myslides').cycle({
    fit: 1, pause: 2
});
});
&lt;/script&gt;




&lt;link rel="stylesheet" href="css/style.css" type="text/css" media="screen" /&gt;

&lt;/head&gt;
&lt;body&gt;

&lt;?php

  echo " &lt; table border=0 align=center width=1280 bgcolor=#FA9C56 CLASS='deepsea' &gt;";
  echo "&lt; tr height=65&gt;&lt;td&gt;&lt;img src=images/logo.png width=50 height=50 border=0&gt;&lt; /td&gt;
  &lt; td align=left width=100%&gt;&lt; font class=fakultas&gt;&lt; font color=#F3F60F&gt;&lt; strong&gt;Fakultas Ilmu Sosial &amp; Politik &lt; /strong&gt;&lt;/ font&gt;&lt; /td&gt;&lt; /tr&gt;";
  echo "&lt; /table&gt;";
?&gt;
&lt; div id="myslides"&gt;
&lt; ?php

include "config/koneksi.php";
$tanggalku = date("Y-m-d");

$cek_query= mysql_query("SELECT * FROM pengumuman a JOIN pengumuman_detail b ON     a.id_pengumuman=b.id_pengumuman and     deadline_pengumuman &gt; '$tanggalku'");

while ($rs=mysql_fetch_array($cek_query))
{


  echo "&lt; table border=0 align=center width=1200&gt;";

  echo "&lt; tr&gt;";
  echo "&lt; td align=center  width=100%&gt;";
  echo "&lt; font class=judul&gt;&lt;font color=#111111&gt;&lt;strong&gt;".$rs[judul_pengumuman]."    &lt;/strong&gt;&lt; /font&gt;";
  echo "&lt; /td&gt;";
  echo "&lt; /tr&gt;";
  echo "&lt; tr&gt;";
  echo "&lt; td width=1200&gt;";  
  echo '&lt; tr&gt;&lt; td&gt;&lt; hr class="style2"&gt;&lt; /td&gt;&lt; /tr&gt;';
  echo "&lt; /td&gt;";
  echo "&lt; /tr&gt;";

  echo "&lt; tr&gt;";

  if ( $rs[status]=='F')
  {
  echo "&lt; td  align=center&gt;";
  echo "&lt; img src='foto/".$rs[file_upload]."'  border=2 &gt;";
  echo "&lt; /td&gt;";
  }
  elseif ( $rs[status]=='V')
  {
   echo "&lt; td  align=center&gt;";
  ?&gt;

        &lt; OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=331 CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject"&gt;
        &lt;  PARAM NAME="FileName" VALUE="video-filename.wmv"&gt;
    &lt;  PARAM name="ShowControls" VALUE="true"&gt;
    &lt;  param name="ShowStatusBar" value="true"&gt;
    &lt;  PARAM name="ShowDisplay" VALUE="true"&gt;
    &lt;  PARAM name="autostart" VALUE="true"&gt;
    &lt;  EMBED TYPE="application/x-mplayer2" SRC="ABBG.avi" NAME="MediaPlayer" WIDTH=820 HEIGHT=451 ShowControls="0" 
    ShowStatusBar="1" ShowDisplay="1" autostart="1"&gt; &lt;/EMBED&gt;
    &lt;/OBJECT&gt; 

  &lt; ?php
        echo "&lt; /td&gt;";
  }
  else
  {
  echo "&lt; td width=1200 align=center&gt;";
  echo " ".$rs[isi_pengumuman_detail]."";
  echo "&lt; /td&gt;";
  }


  echo "&lt; /tr&gt;";


  echo "&lt; /table&gt;";
}

?&gt;


&lt;/div&gt;
</code></pre>
