// Register author_comment_highlighting
BloggerExt.author_comment_highlighting = function() {

    if( BloggerExt.isItemMode() ) {
        // try to find profile
        if(BloggerExtOptions.author_comment_highlighting_profile == '') {
            jQuery('.profile-link:first').each(function() {
                    BloggerExtOptions.author_comment_highlighting_profile = jQuery(this).attr('href').split('/')[4];
            });
        }
        if(BloggerExtOptions.author_comment_highlighting_profile != '') {
            var arAuthors = BloggerExtOptions.author_comment_highlighting_profile.split(',');
            jQuery('#comments-block .comment-author').each( function(i) {
                for( var idx in arAuthors) {
                    var author = arAuthors[idx];
                    try{
                        if( ((jQuery(this).find('a:eq(1)').attr('href').split('/'))[4]) == author ) {
                            jQuery(this).next().removeClass().addClass('comment-body-author').css(BloggerExtOptions.author_comment_highlighting_style);
                        }
                    }catch(e){}
                }
            });
        }
    }
};
BloggerExt.register('author_comment_highlighting' ,  {
    author_comment_highlighting: true,
    author_comment_highlighting_version: 0.2,
    author_comment_highlighting_profile: '',
    author_comment_highlighting_style: { 'color': '#C30014', 'font-width': 'bold' }
});

