/* 
  Copyright 2007-2010 hkrn <hikarin@users.sourceforge.jp>
   */Img0ch.App.Read.Plugin.Nicovideo=(function(){var re1_=/<a[^>]+>http:\/\/w?w?w?\.?nicovideo\.jp\/watch[\/\?]v?=?(\w+)<\/a>/g;return{"rewrite":function(resno,comment){comment=comment.replace(re1_,"<b><a href=\"http://nico.ms/$1"
+"\" onclick=\"Img0ch.App.toggleVideoPlayer('Nicovideo', '$1', '"+resno
+"_nicovideo_$1');return false\">[nicovideo.jp:$1]</a></b><div id=\""+resno
+"_nicovideo_$1\" style=\"display:inline\"></div>","g");return comment;},"toggle":function(videoID,domID){var div=jQuery("#"+domID);if(div.children().size()>1)
div.empty();else{var buffer=[];var writer=document.write;document.write=function(content){buffer.push(content)}
jQuery.getScript("http://ext.nicovideo.jp/thumb_watch/"+videoID,function(){div.append("<br />"+buffer.join(""));document.write=writer;});}}};})();