var bodyhtml = '
| ' + c19[14] + ' |
| ' + c19[15] + ' |
';
function init1() {
var obj = $("FreeTextBox1_editor").contentWindow;
var obj1 = navigator.appVersion.indexOf("MSIE 5.0") > -1 ? FreeTextBox1_editor.document : obj.document;
obj1.open();
obj1.write("try{if(window.HTMLElement){HTMLElement.prototype.__defineGetter__("outerText",function(){var r=this.ownerDocument.createRange();r.selectNodeContents(this);return r.toString();});}}catch(e){}function killErrors(){return true;}window.onerror = killErrors;" + c13 + "");
obj1.close();
if (!/Opera|Firefox/.test(navigator.userAgent)) {
obj1.body.contentEditable = true;
}
if (navigator.appVersion.indexOf("MSIE") == -1) {
try {
obj1.designMode = "On";
} catch (e) {}
obj1.addEventListener("paste", function(e) {
if (e.clipboardData && e.clipboardData.items && e.clipboardData.items[0].type.indexOf("image") > -1) {
e.preventDefault();
var a = this,
file = e.clipboardData.items[0].getAsFile();
var b = new FileReader();
b.onload = function(e) {
obj1.execCommand("insertImage", false, this.result);
};
b.readAsDataURL(file);
}
});
}
var ooo = logolist.split("|");
for (ww = 0; ww < ooo.length; ww++) {
ooo[ww] = unescape(ooo[ww]);
}
if (v0) $("leftDiv").innerHTML = SetLogo(ooo[0], ooo[1], "left");
if (v1) {
$("rightDiv1").innerHTML = SetLogo(ooo[2], ooo[3], "right");
$("rightLogo").innerHTML = SetLogo(ooo[4], ooo[5], "logo");
}
}
function resizeChatWin() {
$("chatContent").style.height = (geth() - 54 - parseInt($("chatOutput").style.bottom) - ($('pmtdiv').style.display == 'none' ? 0 : 25)) + "px";
$("leftDiv").style.height = (geth() - 54) + "px";
var left = v0 ? $("leftDiv") : null;
var right = v1 ? $("rightDiv") : null;
var center = $("centerMsg");
if (!left) center.style.marginLeft = "0px";
if (!right) center.style.marginRight = "0px";
var bw = getw();
if (bw < 480) {
if (left && left.style.display != "none") {
left.style.display = "none";
center.style.marginLeft = "0px";
}
if (right && right.style.display != "none") {
if (right) right.style.display = "none";
center.style.marginRight = "0px";
}
} else if (bw >= 480 && bw < 770) {
if (left && left.style.display != "none") {
left.style.display = "none";
center.style.marginLeft = "0px";
}
if (right && right.style.display == "none") {
right.style.display = "";
center.style.marginRight = "125px";
}
} else if (bw >= 770) {
if (right && right.style.display == "none") {
right.style.display = "";
center.style.marginRight = "125px";
}
if (left && left.style.display == "none") {
left.style.display = "";
center.style.marginLeft = "170px";
}
}
var _toolsbar1 = $("toolsbar1").style;
if (_toolsbar1.left != "") _toolsbar1.left = (!left || left.style.display == "none" ? "11" : "181") + "px";
if (_toolsbar1.right != "") _toolsbar1.right = (!right || right.style.display == "none" ? "11" : "136") + "px";
}