Added attachEvent, and onVideoComplete.