Colorbox wont play.

I have the strangest problem. I am using colorbox a jquery plugin to open a modal window. Click Here

The plugin will work only when i put this on my code <div id="webcam"></div>. Bellow you will find the javascript code i use to call the id='webcam' i use it so the user could take a photo with his/hers camera.