
(function($){

    $.fn.emoticonize = function(group) {

        return this.each(function() {

            if (typeof group == 'string') {
                var str = $(this).html();
                
                    if (group == 'messages') {
                        
                            str = str.replace(/\!me\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/follow_me.gif"/>');
                        
                            str = str.replace(/:\)&gt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/15-applause.png"/>');
                        
                            str = str.replace(/:\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/12-smiling.png"/>');
                        
                            str = str.replace(/;\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/13-winking.png"/>');
                        
                            str = str.replace(/:\-h/gi, '<img src="http://static1.rumjack.com/images/emoticons/25-hi.png"/>');
                        
                            str = str.replace(/:\-c/gi, '<img src="http://static1.rumjack.com/images/emoticons/27-messageme.gif"/>');
                        
                            str = str.replace(/\*O&gt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/great_comments.gif"/>');
                        
                            str = str.replace(/\?\?\!/gi, '<img src="http://static1.rumjack.com/images/emoticons/find_how.gif"/>');
                        
                            str = str.replace(/&lt;w&gt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/welcome.gif"/>');
                        
                            str = str.replace(/:\*:/gi, '<img src="http://static1.rumjack.com/images/emoticons/20-thanks.gif"/>');
                        
                            str = str.replace(/8\-\]/gi, '<img src="http://static1.rumjack.com/images/emoticons/26-fabulous.png"/>');
                        
                            str = str.replace(/\*h\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/love_your_hive.gif"/>');
                        
                            str = str.replace(/\*\!\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/hive_more.gif"/>');
                        
                            str = str.replace(/\!xos\!/gi, '<img src="http://static1.rumjack.com/images/emoticons/store.gif"/>');
                        
                            str = str.replace(/\!wishl\!/gi, '<img src="http://static1.rumjack.com/images/emoticons/wishlist.gif"/>');
                        
                            str = str.replace(/\*yes\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/thumbs_up.gif"/>');
                        
                            str = str.replace(/\*no\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/thumbs_down.gif"/>');
                        
                            str = str.replace(/UB\-\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/your_cool.gif"/>');
                        
                            str = str.replace(/\*st\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/like_style.gif"/>');
                        
                            str = str.replace(/&gt;u&lt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/poke.gif"/>');
                        
                            str = str.replace(/8\-\(\)&gt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/best_sites.gif"/>');
                        
                            str = str.replace(/\!you\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/im_a_follower.gif"/>');
                        
                            str = str.replace(/\*xotags\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/love_your_tags.gif"/>');
                        
                            str = str.replace(/\*you\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/shout_out.gif"/>');
                        
                            str = str.replace(/\*me\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/check_out_my_hive.gif"/>');
                        
                            str = str.replace(/\*txtip\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/thanks_for_the_tip.gif"/>');
                        
                            str = str.replace(/\*in\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/community.gif"/>');
                        
                            str = str.replace(/(BM)(\d+)/gi, '<a href="http://www.stylehive.com/bookmark/$2">$1$2</a>');
                        
                            str = str.replace(/(follow me):(\w+)/gi, 'follow me at <br/><div style="margin-left:25px;"><a href="http://www.stylehive.com/follow/$2">http://www.stylehive.com/follow/$2</a></div>');
                        
                    }
                
                    if (group == 'default') {
                        
                            str = str.replace(/:x/gi, '<img src="http://static1.rumjack.com/images/emoticons/1-loveit.gif"/>');
                        
                            str = str.replace(/\^\^/gi, '<img src="http://static1.rumjack.com/images/emoticons/7-hot.gif"/>');
                        
                            str = str.replace(/B\-\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/5-cool.gif"/>');
                        
                            str = str.replace(/:\)&gt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/15-applause.png"/>');
                        
                            str = str.replace(/=\)\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/11-hilarious.gif"/>');
                        
                            str = str.replace(/:\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/12-smiling.png"/>');
                        
                            str = str.replace(/:O/gi, '<img src="http://static1.rumjack.com/images/emoticons/16-surprised.png"/>');
                        
                            str = str.replace(/;\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/13-winking.png"/>');
                        
                            str = str.replace(/\(\+\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/23-totallyagree.png"/>');
                        
                            str = str.replace(/:\-h/gi, '<img src="http://static1.rumjack.com/images/emoticons/25-hi.png"/>');
                        
                            str = str.replace(/\|\-D/gi, '<img src="http://static1.rumjack.com/images/emoticons/21-beautiful.png"/>');
                        
                            str = str.replace(/:\-n/gi, '<img src="http://static1.rumjack.com/images/emoticons/9-soin.png"/>');
                        
                            str = str.replace(/\*8\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/find.gif"/>');
                        
                            str = str.replace(/\?\?\!/gi, '<img src="http://static1.rumjack.com/images/emoticons/find_how.gif"/>');
                        
                            str = str.replace(/\*\!\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/hive_more.gif"/>');
                        
                            str = str.replace(/\?b\?/gi, '<img src="http://static1.rumjack.com/images/emoticons/anyone_buy.gif"/>');
                        
                    }
                
                    if (group == 'forums') {
                        
                            str = str.replace(/\!me\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/follow_me.gif"/>');
                        
                            str = str.replace(/:\)&gt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/15-applause.png"/>');
                        
                            str = str.replace(/:\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/12-smiling.png"/>');
                        
                            str = str.replace(/:O/gi, '<img src="http://static1.rumjack.com/images/emoticons/16-surprised.png"/>');
                        
                            str = str.replace(/;\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/13-winking.png"/>');
                        
                            str = str.replace(/\(\+\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/23-totallyagree.png"/>');
                        
                            str = str.replace(/:\-h/gi, '<img src="http://static1.rumjack.com/images/emoticons/25-hi.png"/>');
                        
                            str = str.replace(/\|\-D/gi, '<img src="http://static1.rumjack.com/images/emoticons/21-beautiful.png"/>');
                        
                            str = str.replace(/:\-n/gi, '<img src="http://static1.rumjack.com/images/emoticons/9-soin.png"/>');
                        
                            str = str.replace(/:\-c/gi, '<img src="http://static1.rumjack.com/images/emoticons/27-messageme.gif"/>');
                        
                            str = str.replace(/\*O&gt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/great_comments.gif"/>');
                        
                            str = str.replace(/&lt;w&gt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/welcome.gif"/>');
                        
                            str = str.replace(/\!:O/gi, '<img src="http://static1.rumjack.com/images/emoticons/19-amazing.gif"/>');
                        
                            str = str.replace(/8\-\]/gi, '<img src="http://static1.rumjack.com/images/emoticons/26-fabulous.png"/>');
                        
                            str = str.replace(/\*\!\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/hive_more.gif"/>');
                        
                            str = str.replace(/\!xos\!/gi, '<img src="http://static1.rumjack.com/images/emoticons/store.gif"/>');
                        
                            str = str.replace(/\!wishl\!/gi, '<img src="http://static1.rumjack.com/images/emoticons/wishlist.gif"/>');
                        
                            str = str.replace(/\*yes\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/thumbs_up.gif"/>');
                        
                            str = str.replace(/\*no\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/thumbs_down.gif"/>');
                        
                            str = str.replace(/UB\-\)/gi, '<img src="http://static1.rumjack.com/images/emoticons/your_cool.gif"/>');
                        
                            str = str.replace(/\*st\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/like_style.gif"/>');
                        
                            str = str.replace(/8\-&gt;/gi, '<img src="http://static1.rumjack.com/images/emoticons/have_you_seen.gif"/>');
                        
                            str = str.replace(/\*in\*/gi, '<img src="http://static1.rumjack.com/images/emoticons/community.gif"/>');
                        
                    }
                
                
	            
	            
	            
                $(this).html(str);
            }
        });
    };
})(jQuery);