var smiley_smiley2image_s = new Array();
var smiley_smiley2image_r = new Array();
smiley_smiley2image_s.push('#\\:-S');
smiley_smiley2image_s.push('#\\:-s');
smiley_smiley2image_s.push('\\(~~\\)');
smiley_smiley2image_s.push('\\*\\*\\=\\=');
smiley_smiley2image_s.push('\\*-\\:\\)');
smiley_smiley2image_s.push('\\/\\:-\\)');
smiley_smiley2image_s.push('0\\:-\\)');
smiley_smiley2image_s.push('3\\:-0');
smiley_smiley2image_s.push('3\\:-O');
smiley_smiley2image_s.push('3\\:-o');
smiley_smiley2image_s.push('\\:\\(\\|\\)');
smiley_smiley2image_s.push('\\:\\)\\>-');
smiley_smiley2image_s.push('\\:-\\(\\(');
smiley_smiley2image_s.push('\\:-\\)\\)');
smiley_smiley2image_s.push('\\:-\\?\\?');
smiley_smiley2image_s.push('\\:-SS');
smiley_smiley2image_s.push('\\:-Ss');
smiley_smiley2image_s.push('\\:-sS');
smiley_smiley2image_s.push('\\:-ss');
smiley_smiley2image_s.push('\\<\\)\\:\\)');
smiley_smiley2image_s.push('\\<\\:-P');
smiley_smiley2image_s.push('\\<\\:-p');
smiley_smiley2image_s.push('\\=\\:-\\)');
smiley_smiley2image_s.push('\\>\\:D\\<');
smiley_smiley2image_s.push('\\>\\:d\\<');
smiley_smiley2image_s.push('@\\};-');
smiley_smiley2image_s.push('O\\:-\\)');
smiley_smiley2image_s.push('\\[-O\\<');
smiley_smiley2image_s.push('\\[-o\\<');
smiley_smiley2image_s.push('\\\\\\:D\\/');
smiley_smiley2image_s.push('\\\\\\:d\\/');
smiley_smiley2image_s.push('\\^\\:\\)\\^');
smiley_smiley2image_s.push('o\\:-\\)');
smiley_smiley2image_s.push('#-O');
smiley_smiley2image_s.push('#-o');
smiley_smiley2image_s.push('\\$-\\)');
smiley_smiley2image_s.push('%%-');
smiley_smiley2image_s.push('%-\\(');
smiley_smiley2image_s.push('\\(%\\)');
smiley_smiley2image_s.push('\\(\\*\\)');
smiley_smiley2image_s.push('\\(-\\:');
smiley_smiley2image_s.push('\\(\\:\\|');
smiley_smiley2image_s.push('\\/\\:\\)');
smiley_smiley2image_s.push('8-\\>');
smiley_smiley2image_s.push('8-X');
smiley_smiley2image_s.push('8-x');
smiley_smiley2image_s.push('8-\\|');
smiley_smiley2image_s.push('8-\\}');
smiley_smiley2image_s.push('\\:\"\\>');
smiley_smiley2image_s.push('\\:\\(\\(');
smiley_smiley2image_s.push('\\:\\)\\)');
smiley_smiley2image_s.push('\\:\\)\\]');
smiley_smiley2image_s.push('\\:-\"');
smiley_smiley2image_s.push('\\:-\\$');
smiley_smiley2image_s.push('\\:-&');
smiley_smiley2image_s.push('\\:-\\(');
smiley_smiley2image_s.push('\\:-\\)');
smiley_smiley2image_s.push('\\:-\\*');
smiley_smiley2image_s.push('\\:-\\/');
smiley_smiley2image_s.push('\\:-\\<');
smiley_smiley2image_s.push('\\:-\\>');
smiley_smiley2image_s.push('\\:-\\?');
smiley_smiley2image_s.push('\\:-@');
smiley_smiley2image_s.push('\\:-B');
smiley_smiley2image_s.push('\\:-D');
smiley_smiley2image_s.push('\\:-J');
smiley_smiley2image_s.push('\\:-L');
smiley_smiley2image_s.push('\\:-O');
smiley_smiley2image_s.push('\\:-P');
smiley_smiley2image_s.push('\\:-S');
smiley_smiley2image_s.push('\\:-W');
smiley_smiley2image_s.push('\\:-X');
smiley_smiley2image_s.push('\\:-\\\\');
smiley_smiley2image_s.push('\\:-b');
smiley_smiley2image_s.push('\\:-c');
smiley_smiley2image_s.push('\\:-d');
smiley_smiley2image_s.push('\\:-h');
smiley_smiley2image_s.push('\\:-j');
smiley_smiley2image_s.push('\\:-l');
smiley_smiley2image_s.push('\\:-o');
smiley_smiley2image_s.push('\\:-p');
smiley_smiley2image_s.push('\\:-s');
smiley_smiley2image_s.push('\\:-t');
smiley_smiley2image_s.push('\\:-w');
smiley_smiley2image_s.push('\\:-x');
smiley_smiley2image_s.push('\\:-\\|');
smiley_smiley2image_s.push('\\:0\\)');
smiley_smiley2image_s.push('\\:@\\)');
smiley_smiley2image_s.push('\\:O\\)');
smiley_smiley2image_s.push('\\:\\^O');
smiley_smiley2image_s.push('\\:\\^o');
smiley_smiley2image_s.push('\\:o\\)');
smiley_smiley2image_s.push(';\\)\\)');
smiley_smiley2image_s.push(';-\\)');
smiley_smiley2image_s.push(';;\\)');
smiley_smiley2image_s.push('\\=\\(\\(');
smiley_smiley2image_s.push('\\=\\)\\)');
smiley_smiley2image_s.push('\\=\\:\\)');
smiley_smiley2image_s.push('\\=D\\>');
smiley_smiley2image_s.push('\\=P~');
smiley_smiley2image_s.push('\\=d\\>');
smiley_smiley2image_s.push('\\=p~');
smiley_smiley2image_s.push('\\>-\\)');
smiley_smiley2image_s.push('\\>\\:\\)');
smiley_smiley2image_s.push('\\>\\:\\/');
smiley_smiley2image_s.push('\\>\\:P');
smiley_smiley2image_s.push('\\>\\:p');
smiley_smiley2image_s.push('@-\\)');
smiley_smiley2image_s.push('B-\\(');
smiley_smiley2image_s.push('B-\\)');
smiley_smiley2image_s.push('I-\\)');
smiley_smiley2image_s.push('L-\\)');
smiley_smiley2image_s.push('O-\\+');
smiley_smiley2image_s.push('O-\\>');
smiley_smiley2image_s.push('O\\=\\>');
smiley_smiley2image_s.push('X-\\(');
smiley_smiley2image_s.push('\\[-\\(');
smiley_smiley2image_s.push('\\[-X');
smiley_smiley2image_s.push('\\[-x');
smiley_smiley2image_s.push('b-\\(');
smiley_smiley2image_s.push('b-\\)');
smiley_smiley2image_s.push('l-\\)');
smiley_smiley2image_s.push('o-\\+');
smiley_smiley2image_s.push('o-\\>');
smiley_smiley2image_s.push('o\\=\\>');
smiley_smiley2image_s.push('x-\\(');
smiley_smiley2image_s.push('\\|-\\)');
smiley_smiley2image_s.push('~\\:\\>');
smiley_smiley2image_s.push('~O\\)');
smiley_smiley2image_s.push('~X\\(');
smiley_smiley2image_s.push('~o\\)');
smiley_smiley2image_s.push('\\(\\:');
smiley_smiley2image_s.push('\\:\\(');
smiley_smiley2image_s.push('\\:\\)');
smiley_smiley2image_s.push('\\:\\*');
smiley_smiley2image_s.push('\\:\\>');
smiley_smiley2image_s.push('\\:D');
smiley_smiley2image_s.push('\\:O');
smiley_smiley2image_s.push('\\:P');
smiley_smiley2image_s.push('\\:X');
smiley_smiley2image_s.push('\\:d');
smiley_smiley2image_s.push('\\:o');
smiley_smiley2image_s.push('\\:p');
smiley_smiley2image_s.push('\\:x');
smiley_smiley2image_s.push('\\:\\|');
smiley_smiley2image_s.push(';\\)');
smiley_smiley2image_s.push('\\=;');
smiley_smiley2image_s.push('X\\(');
smiley_smiley2image_s.push('x\\(');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
smiley_smiley2image_r.push('');
function smiley_convert_text(text) {
var i;
var smiley;
var replacement;
var re = new RegExp("", "i");
for (i=0; i < smiley_smiley2image_s.length; i++) {
smiley = smiley_smiley2image_s[i];
replacement = smiley_smiley2image_r[i];
// smiley = smiley.replace(/([^a-zA-Z0-9])/gi, "\\$1"); // escape everything
re.compile(smiley, "gi");
text = text.replace(re, replacement);
}
return text;
}
function toggleMoreIcons(e) {
var moreIconsDiv = document.getElementById('moreIcons');
var isVisible = (moreIconsDiv.style.display == 'inline');
if (isVisible) {
moreIconsDiv.style.display = 'none';
e.innerHTML = 'more »';
} else {
moreIconsDiv.style.display = 'inline';
e.innerHTML = '« less';
}
}
function appendTextToComment(text) {
var commentArea = document.getElementById('comment');
commentArea.value = commentArea.value + text;
ReloadTextDiv(); }