newTube.js: html5-capable embedded YouTube player

Well it's a dirty hack, but someone's got to do it

newTube.js is a small javascript-hack to easily embed html5-video from YouTube.

To use it, just include this script in your document like this:

<script type="text/javascript" src="http://futtta.be/newTube/newTube.js"></script>
and put a link to a youtube-videopage inside a div with id=newTube like this:
<div id="newTube"><a href="http://www.youtube.com/watch?v=Jgi2QatDsrc">Well it's a dirty hack, but someone's got to do it</a></div>

If your browser is not capable of playing h264-video or if you are not enrolled in the YouTube beta, you'll just see the normal Flash-version.

More info on newTube on my blog.