i have a script you can download it from here: http://www.4shared.com/rar/XoaJijx5/var_pass.html
the problem is in the index.html & scripts.js, look at and give me the change
i write a comments in the two files to let know what i need
i need to pass the hidden input value to scripts.js and store it in var and echo it in the id url of youtube
the problem in index.html:
<div id="player"><input type="hidden" name="youtube-id" value="uyeJXKfAcpc" /></div>
All of your code needs to be in $(document).ready function.. Like this: