function jb_doLinks(text) { if( !text ) return text; if(text.match(/Download Link: /i)) { text = text.replace(/((https?\:\/\/|ftp\:\/\/)|(www\.))(\S+)(\w{2,4})(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi,function(url){ if(!url.match('^https?:\/\/')) url = 'http://'+url; var txt=''; txt += 'Click Here'; txt += ''; return txt; }); } else { text = text.replace(/((https?\:\/\/|ftp\:\/\/)|(www\.))(\S+)(\w{2,4})(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi,function(url){ if(!url.match('^https?:\/\/')) url = 'http://'+url; return ''+ url +''; }); } return text; } function jb_doSmileys(text) { text = text.replace(':)', ''); text = text.replace(':-)', ''); text = text.replace(':(', ''); text = text.replace(':-(', ''); text = text.replace(';)', ''); text = text.replace(';-)', ''); text = text.replace(';(', ''); text = text.replace('B-)', ''); text = text.replace('B)', ''); text = text.replace(':D', ''); text = text.replace(':-D', ''); text = text.replace(':o', ''); text = text.replace(':O', ''); text = text.replace(':-o', ''); text = text.replace(':-O', ''); return text; } function jb_doReplace(text) { text = jb_doLinks(text); text = jb_doSmileys(text); return text; } var trans_me = 'me'; var jb_says = 'says...'; var jb_offlinemsg = 'The user is Offline.'; var jb_awaymsg = 'The user is Away.'; var jb_abs_link = 'http://hjem.asle-helseth.com/Joomla/'; var jb_self_id = '0'; var chat_status_array = new Array(); chat_status_array.push('Invisible'); chat_status_array.push('Available'); chat_status_array.push('Away'); var chat_config_array = new Array(); chat_config_array.push('1'); chat_config_array.push(''); chat_config_array.push(''); function showchatdiv(obj1) { jQuery("#ch_box_status").toggle(); }