How to fetch id of video from embed code
<p>I have two div I want to fetch the <strong>video id</strong> from embed tag of(div id="main)) through javascript.After that i want to replace that id with the embed code of (div container) </p>

<pre><code> &lt;div id ="container"&gt;


     &lt;object width="550" height="550"&gt;
          &lt;param value="http://www.youtube.com/v/sIFYPQjYhv8&amp;amp;rel=0&amp;amp;color1=0x2b405b&amp;amp;color2=0x6b8ab6&amp;amp;border=1" name="movie"&gt;
         &lt;param value="transparent" name="wmode"&gt;
         &lt;embed width="550" height="550" wmode="transparent" type="application/x-shockwave-flash" src="http://www.youtube.com/v/sIFYPQjYhv8&amp;amp;rel=0&amp;amp;color1=0x2b405b&amp;amp;color2=0x6b8ab6&amp;amp;border=1"&gt;
       &lt;/object&gt;
&lt; /div&gt;

&lt;div id="main"&gt;
&lt;a id="displayText"&gt;
&lt;object width="150" height="150"&gt;
 &lt;param value="http://www.youtube.com/v/sIFYPQjYhv8&amp;amp;rel=0&amp;amp;color1=0x2b405b&amp;amp;color2=0x6b8ab6&amp;amp;border=1" name="movie"&gt;
  &lt;param value="transparent" name="wmode"&gt;
 &lt;embed width="150" height="150" wmode="transparent" type="application/x-shockwave-flash" src="http://www.youtube.com/v/sIFYPQjYhv8&amp;amp;rel=0&amp;amp;color1=0x2b405b&amp;amp;color2=0x6b8ab6&amp;amp;border=1"&gt;&lt;/object&gt;
  &lt;/a&gt;
  &lt;/div&gt;
</code></pre>

<p>Actually I have 5 video in <code>&lt;div id="main"&gt;</code> when I click on any then that viedo should be play <code>&lt;div id ="container"&gt;</code> </p>

<p>Please help 
I shall be very thankful to you
Shalu</p>
