Onclick play embedded video

I wrote this to trigger the video when an image is clicked, but it doesnt work. Any help?


<head>
<style>
#movie {}
#img {}
</style>
</head>
<body>
 
<embed type="application/x-vlc-plugin" name="VLC" target="mymovie.webm" id="movie" > </embed>
<img src=myimage.jpg" id="img" />
 
<script>
  var v = document.getElementById("movie");
  var i = document.getElementById("img");
  i.onclick = function() {
     v.play();
};
</script>
</body>

As far as i can see javascript doesn’t support the .[B]play/B method but i did find the source to a script that looks to be working perfectly.

http://snipplr.com/view/2384/javascript--play-sound-ie--ff/