// 二次色のクレヨン design 5.2 script
// (C) ビーム 2009
$(function(){

// hide 4th and later adsense div
$('.entry-adsense').each(function(i){
	if ( i >= 3 ) $(this).remove();
});

// compile comment (deprecated spec)
$('.comment-body').each(function(){
	var s = $(this).html();
	s = s.replace(/\[b\](.*?)\[\/b\]/g, '<span style="font-weight:bold">$1</span>');
	s = s.replace(/\[s\](.*?)\[\/s\]/g, '<span style="text-decoration:line-through">$1</span>');
	s = s.replace(/\[big\](.*?)\[\/big\]/g, '<span style="font-size:150%">$1</span>');
	s = s.replace(/\[small\](.*?)\[\/small\]/g, '<span style="font-size:90%">$1</span>');
	s = s.replace(/\[#([A-Fa-f0-9]+?)\](.*?)\[\/#\]/g, '<span style="color:#$1">$2</span>');
	$(this).html(s);
});

});
