function jb_doLinks(text) { if( !text ) return text; text = text.replace(/((https?\:\/\/|ftp\:\/\/)|(www\.))(\S+)(\w{2,4})(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi,function(url){ nice = url; if( url.match('^https?:\/\/') ) { nice = nice.replace(/^https?:\/\//i,'') } else url = 'http://'+url; return ''+ nice.replace(/^www./i,'') +''; }); 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(':o', ''); text = text.replace(':O', ''); text = text.replace(':-o', ''); text = text.replace(':-O', ''); text = text.replace(':D', ''); text = text.replace(':-D', ''); return text; } function jb_doReplace(text) { text = jb_doLinks(text); text = jb_doSmileys(text); return text; } var trans_me = 'yo'; var jb_says = 'dice...'; var jb_offlinemsg = 'El usuario está Desconectado.'; var jb_awaymsg = 'El usuario está Ausente.'; var jb_abs_link = 'http://www.viarosario.com/'; var chat_status_array = new Array(); chat_status_array.push('Invisible'); chat_status_array.push('Disponible'); chat_status_array.push('Ausente'); function showchatdiv(obj1) { jQuery("#ch_box_status").toggle(); }