
(function($){

    $.fn.emoticonize = function(group) {

        return this.each(function() {

            if (typeof group == 'string') {
                var str = $(this).html();
                
                    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"/>');
                        
                    }
                
                
	            
	            
	            
                $(this).html(str);
            }
        });
    };
})(jQuery);