/* 
  Copyright 2007 hkrn <hikarin@users.sourceforge.jp>
   */Img0ch.App.Read.Plugin.Youtube=(function(){var re1_=/<a[^>]+>http:\/\/\w*\.?youtube\.com\/watch\?v=([\w\-]+)<\/a>/;var re2_=/<a[^>]+>http:\/\/\w*\.?youtube\.com\/watch\?v=[\w\-]+<\/a>/;return{"rewrite":function(resno,comment){if(re1_.test(comment)){var videoID=RegExp.$1;comment=comment.replace(re2_,"<object width=425 height=350><param name=movie value=http://www.youtube.com/v/"+videoID+"><embed src=http://www.youtube.com/v/"+videoID+" type=application/x-shockwave-flash width=425 height=350></object><br />");}
return comment;}};})();