// movomoki information linole

function tn_id(a) {
	if (a in tn_ab) {
		return tn_ab[a];
	}
	return tn_ab[a] = navigator.userAgent.toLowerCase().indexOf(a) != -1;
}
var tn_ab = {};
var tn_4d = {Oa:function (a) {
	return a.document.body.scrollTop;
}, Pa:function (a) {
	return a.document.documentElement.scrollTop;
}, Ia:function (a) {
	return a.pageYOffset;
}};
var tn_3d = {Oa:function (a) {
	return a.document.body.scrollLeft;
}, Pa:function (a) {
	return a.document.documentElement.scrollLeft;
}, Ia:function (a) {
	return a.pageXOffset;
}};
function tn_1b(a, b) {
	try {
		if (!window.opera && "compatMode" in a.document && a.document.compatMode == "CSS1Compat") {
			return b.Pa(a);
		} else {
			if (tn_id("msie") && !window.opera) {
				return b.Oa(a);
			}
		}
	}
	catch (c) {
	}
	return b.Ia(a);
}
function tn__d(a) {
	return document.getElementById(a);
}
function tn_0d(a) {
	return document.all[a];
}
var tn_Zd = document.getElementById ? tn__d : tn_0d;
function tn_$d(a) {
	try {
		if (window.parent != window && window.parent.log) {
			window.parent.log(window.name + "::" + a);
			return;
		}
	}
	catch (b) {
	}
	var c = tn_Zd("log");
	if (c) {
		var d = "<p class=logentry><span class=logdate>" + new Date + "</span><span class=logmsg>" + a + "</span></p>";
		c.innerHTML = d + c.innerHTML;
	} else {
		window.status = a;
	}
}
function tn_(a, b, c) {
	this.x = a;
	this.y = b;
	this.coordinateFrame = c || null;
}
tn_.prototype.toString = function () {
	return "[P " + this.x + "," + this.y + "]";
};
tn_.prototype.clone = function () {
	return new tn_(this.x, this.y, this.coordinateFrame);
};
function tn_ld(a, b) {
	this.dx = a;
	this.dy = b;
}
tn_ld.prototype.toString = function () {
	return "[D " + this.dx + "," + this.dy + "]";
};
function tn_X(a, b, c, d, e) {
	this.x = a;
	this.y = b;
	this.w = c;
	this.h = d;
	this.coordinateFrame = e || null;
}
tn_X.prototype.contains = function (a) {
	return this.x <= a.x && a.x < this.x + this.w && this.y <= a.y && a.y < this.y + this.h;
};
tn_X.prototype.toString = function () {
	return "[R " + this.w + "x" + this.h + "+" + this.x + "+" + this.y + "]";
};
tn_X.prototype.clone = function () {
	return new tn_X(this.x, this.y, this.w, this.h, this.coordinateFrame);
};
function tn_Vc(a) {
	function b(k) {
		for (var g = a.offsetParent; g && g.offsetParent; g = g.offsetParent) {
			if (g.scrollLeft) {
				k.x -= g.scrollLeft;
			}
			if (g.scrollTop) {
				k.y -= g.scrollTop;
			}
		}
	}
	var c;
	if (a.ownerDocument && a.ownerDocument.parentWindow) {
		c = a.ownerDocument.parentWindow;
	} else {
		c = window;
	}
	if (a.ownerDocument && a.ownerDocument.getBoxObjectFor) {
		var d = a.ownerDocument.getBoxObjectFor(a), e = new tn_X(d.x, d.y, d.width, d.height, c);
		b(e);
		return e;
	}
	if (a.getBoundingClientRect) {
		var f = a.getBoundingClientRect();
		return new tn_X(f.left + tn_1b(c, tn_3d), f.top + tn_1b(c, tn_4d), f.right - f.left, f.bottom - f.top, c);
	}
	var h = 0, i = 0;
	for (var j = a; j.offsetParent; j = j.offsetParent) {
		h += j.offsetLeft;
		i += j.offsetTop;
	}
	var e = new tn_X(h, i, a.offsetWidth, a.offsetHeight, c);
	b(e);
	return e;
}
var tn_3 = (function () {
	var a = [" ", "\u0120", -1, "!", "\u0120", -1, "\u0120", "\u0120", 0, "\u0121", "\u0120", -1, "\u0121", "\u0120|\u0121", 0, "\u0122", "\u0120|\u0121", -1, "\u0120", "[\u0120]", 0, "\u0121", "[\u0120]", -1, "\u0121", "[\u0120\u0121]", 0, "\u0122", "[\u0120\u0121]", -1, "\u0121", "[\u0120-\u0121]", 0, "\u0122", "[\u0120-\u0121]", -1];
	for (var b = 0; b < a.length; b += 3) {
		if (a[b].search(new RegExp(a[b + 1])) != a[b + 2]) {
			return false;
		}
	}
	return true;
})(), tn_Ua = "([ \t\r\n]+)?=([ \t\r\n]+)?", tn_Fc = "&#[0-9]+;|&#x[0-9a-fA-F]+;", tn_Fd = "[ \t\r\n]+version" + tn_Ua + "(\"1\\.0\"|'1\\.0')", tn_Bd = tn_3 ? "A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u0131\u0134-\u013e\u0141-\u0148\u014a-\u017e\u0180-\u01c3\u01cd-\u01f0\u01f4-\u01f5\u01fa-\u0217\u0250-\u02a8\u02bb-\u02c1\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03ce\u03d0-\u03d6\u03da\u03dc\u03de\u03e0\u03e2-\u03f3\u0401-\u040c\u040e-\u044f\u0451-\u045c\u045e-\u0481\u0490-\u04c4\u04c7-\u04c8\u04cb-\u04cc\u04d0-\u04eb\u04ee-\u04f5\u04f8-\u04f9\u0531-\u0556\u0559\u0561-\u0586\u05d0-\u05ea\u05f0-\u05f2\u0621-\u063a\u0641-\u064a\u0671-\u06b7\u06ba-\u06be\u06c0-\u06ce\u06d0-\u06d3\u06d5\u06e5-\u06e6\u0905-\u0939\u093d\u0958-\u0961\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8b\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ae0\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b36-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb5\u0bb7-\u0bb9\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c60-\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cde\u0ce0-\u0ce1\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d28\u0d2a-\u0d39\u0d60-\u0d61\u0e01-\u0e2e\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eae\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0f40-\u0f47\u0f49-\u0f69\u10a0-\u10c5\u10d0-\u10f6\u1100\u1102-\u1103\u1105-\u1107\u1109\u110b-\u110c\u110e-\u1112\u113c\u113e\u1140\u114c\u114e\u1150\u1154-\u1155\u1159\u115f-\u1161\u1163\u1165\u1167\u1169\u116d-\u116e\u1172-\u1173\u1175\u119e\u11a8\u11ab\u11ae-\u11af\u11b7-\u11b8\u11ba\u11bc-\u11c2\u11eb\u11f0\u11f9\u1e00-\u1e9b\u1ea0-\u1ef9\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2126\u212a-\u212b\u212e\u2180-\u2182\u3041-\u3094\u30a1-\u30fa\u3105-\u312c\uac00-\ud7a3" : "A-Za-z", tn_Dd = tn_3 ? "\u4e00-\u9fa5\u3007\u3021-\u3029" : "", tn_yc = tn_3 ? "\u0300-\u0345\u0360-\u0361\u0483-\u0486\u0591-\u05a1\u05a3-\u05b9\u05bb-\u05bd\u05bf\u05c1-\u05c2\u05c4\u064b-\u0652\u0670\u06d6-\u06dc\u06dd-\u06df\u06e0-\u06e4\u06e7-\u06e8\u06ea-\u06ed\u0901-\u0903\u093c\u093e-\u094c\u094d\u0951-\u0954\u0962-\u0963\u0981-\u0983\u09bc\u09be\u09bf\u09c0-\u09c4\u09c7-\u09c8\u09cb-\u09cd\u09d7\u09e2-\u09e3\u0a02\u0a3c\u0a3e\u0a3f\u0a40-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a70-\u0a71\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0b01-\u0b03\u0b3c\u0b3e-\u0b43\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b82-\u0b83\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c82-\u0c83\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0d02-\u0d03\u0d3e-\u0d43\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0f18-\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86-\u0f8b\u0f90-\u0f95\u0f97\u0f99-\u0fad\u0fb1-\u0fb7\u0fb9\u20d0-\u20dc\u20e1\u302a-\u302f\u3099\u309a" : "", tn_zc = tn_3 ? "0-9\u0660-\u0669\u06f0-\u06f9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be7-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29" : "0-9", tn_Ac = tn_3 ? "\xb7\u02d0\u02d1\u0387\u0640\u0e46\u0ec6\u3005\u3031-\u3035\u309d-\u309e\u30fc-\u30fe" : "", tn_Ta = tn_Bd + tn_Dd, tn_Ed = tn_Ta + tn_zc + "\\._:" + tn_yc + tn_Ac + "-", tn_wb = "[" + tn_Ta + "_:][" + tn_Ed + "]*", tn_Cd = "&" + tn_wb + ";", tn_Bc = tn_Cd + "|" + tn_Fc, tn_Ad = "\"(([^<&\"]|" + tn_Bc + ")*)\"|'(([^<&']|" + tn_Bc + ")*)'", tn_zd = "(" + tn_wb + ")" + tn_Ua + "(" + tn_Ad + ")", tn_Md = "[ \t\r\n]+version" + tn_Ua + "(\"1\\.1\"|'1\\.1')", tn_Dc = tn_3 ? ":A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd" : ":A-Z_a-z", tn_Kd = tn_Dc + (tn_3 ? "\\.0-9\xb7\u0300-\u036f\u203f-\u2040-" : "\\.0-9-"), tn_xb = "[" + tn_Dc + "][" + tn_Kd + "]*", tn_Jd = "&" + tn_xb + ";", tn_Ec = tn_Jd + "|" + tn_Fc, tn_Id = "\"(([^<&\"]|" + tn_Ec + ")*)\"|'(([^<&']|" + tn_Ec + ")*)'", tn_Gd = "(" + tn_xb + ")" + tn_Ua + "(" + tn_Id + ")", tn_Nd = tn_Ta + tn_zc + "\\._" + tn_yc + tn_Ac + "-", tn_yb = "[" + tn_Ta + "_][" + tn_Nd + "]*";
function tn_bd(a) {
}
function tn_l(a) {
	if (!a) {
		tn_L("Assertion failed");
	}
}
function tn_ma(a, b) {
	var c = a.indexOf(b);
	if (c == -1) {
		return [a];
	}
	var d = [];
	d.push(a.substr(0, c));
	while (c != -1) {
		var e = a.indexOf(b, c + 1);
		if (e != -1) {
			d.push(a.substr(c + 1, e - c - 1));
		} else {
			d.push(a.substr(c + 1));
		}
		c = e;
	}
	return d;
}
function tn_9a(a, b) {
	if (b.nodeType == 3) {
		return tn_V(a, b.nodeValue);
	} else {
		if (b.nodeType == 4) {
			return tn_Za(a, b.nodeValue);
		} else {
			if (b.nodeType == 1) {
				var c = tn_ka(a, b.nodeName);
				for (var d = 0; d < b.attributes.length; ++d) {
					var e = b.attributes[d], f = e.nodeName, h = e.nodeValue;
					tn_la(c, f, h);
				}
				for (var i = b.firstChild; i; i = i.nextSibling) {
					var j = arguments.callee(a, i);
					tn_v(c, j);
				}
				return c;
			} else {
				return tn_za(a, b.nodeName);
			}
		}
	}
}
function tn_da() {
	this.keys = [];
}
tn_da.prototype.size = function () {
	return this.keys.length;
};
tn_da.prototype.add = function (a, b) {
	var c = b || 1;
	if (!this.contains(a)) {
		this[":" + a] = c;
		this.keys.push(a);
	}
};
tn_da.prototype.remove = function (a) {
	if (this.contains(a)) {
		delete this[":" + a];
		tn__c(this.keys, a, true);
	}
};
tn_da.prototype.contains = function (a) {
	return typeof this[":" + a] != "undefined";
};
tn_da.prototype.map = function (a) {
	for (var b = 0; b < this.keys.length; ++b) {
		var c = this.keys[b];
		a.call(this, c, this[":" + c]);
	}
};
tn_da.prototype.clear = function () {
	for (var a = 0; a < this.keys.length; ++a) {
		delete this[":" + this.keys[a]];
	}
	this.keys.length = 0;
};
function tn_He(a, b) {
	for (var c = 0; c < a.length; ++c) {
		b.call(this, a[c], c);
	}
}
function tn_Uc(a, b) {
	var c = [];
	for (var d = 0; d < a.length; ++d) {
		c.push(b(a[d]));
	}
	return c;
}
function tn_0c(a) {
	for (var b = 0; b < a.length / 2; ++b) {
		var c = a[b], d = a.length - b - 1;
		a[b] = a[d];
		a[d] = c;
	}
}
function tn__c(a, b, c) {
	var d = 0;
	for (var e = 0; e < a.length; ++e) {
		if (a[e] === b || c && a[e] == b) {
			a.splice(e--, 1);
			d++;
		}
	}
	return d;
}
function tn_Ic(a, b) {
	for (var c = 0; c < b.length; ++c) {
		a.push(b[c]);
	}
}
function tn_G(a) {
	if (!a) {
		return "";
	}
	var b = "";
	if (a.nodeType == 3 || a.nodeType == 4 || a.nodeType == 2) {
		b += a.nodeValue;
	} else {
		if (a.nodeType == 1 || a.nodeType == 9 || a.nodeType == 11) {
			for (var c = 0; c < a.childNodes.length; ++c) {
				b += arguments.callee(a.childNodes[c]);
			}
		}
	}
	return b;
}
function tn_$c(a, b) {
	var c = [];
	tn_Ze(a, c, b);
	return c.join("");
}
function tn_Ze(a, b, c) {
	if (a.nodeType == 3) {
		b.push(tn_9c(a.nodeValue));
	} else {
		if (a.nodeType == 4) {
			if (c) {
				b.push(a.nodeValue);
			} else {
				b.push("<![CDATA[" + a.nodeValue + "]]>");
			}
		} else {
			if (a.nodeType == 8) {
				b.push("<!--" + a.nodeValue + "-->");
			} else {
				if (a.nodeType == 1) {
					b.push("<" + tn_Mb(a));
					for (var d = 0; d < a.attributes.length; ++d) {
						var e = a.attributes[d];
						if (e && e.nodeName && e.nodeValue) {
							b.push(" " + tn_Mb(e) + "=\"" + tn_9c(e.nodeValue).replace(/\"/g, "&quot;") + "\"");
						}
					}
					if (a.childNodes.length == 0) {
						b.push("/>");
					} else {
						b.push(">");
						for (var d = 0; d < a.childNodes.length; ++d) {
							arguments.callee(a.childNodes[d], b, c);
						}
						b.push("</" + tn_Mb(a) + ">");
					}
				} else {
					if (a.nodeType == 9 || a.nodeType == 11) {
						for (var d = 0; d < a.childNodes.length; ++d) {
							arguments.callee(a.childNodes[d], b, c);
						}
					}
				}
			}
		}
	}
}
function tn_Mb(a) {
	if (a.prefix && a.nodeName.indexOf(a.prefix + ":") != 0) {
		return a.prefix + ":" + a.nodeName;
	} else {
		return a.nodeName;
	}
}
function tn_9c(a) {
	return ("" + a).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
}
function tn_Xe(a) {
	if (a.nodeType == 9) {
		return a;
	} else {
		return a.ownerDocument;
	}
}
function tn_Y(a, b) {
	return a.getAttribute(b);
}
function tn_la(a, b, c) {
	return a.setAttribute(b, c);
}
function tn_0a(a, b) {
	return a.removeAttribute(b);
}
function tn_v(a, b) {
	return a.appendChild(b);
}
function tn_Nc(a, b) {
	return a.removeChild(b);
}
function tn_Eb(a) {
	return tn_Nc(a.parentNode, a);
}
function tn_V(a, b) {
	return a.createTextNode(b);
}
function tn_ka(a, b) {
	return a.createElement(b);
}
function tn_Za(a, b) {
	return a.createCDATASection(b);
}
function tn_za(a, b) {
	return a.createComment(b);
}
function tn__a(a) {
	return a.createDocumentFragment();
}
function tn_L(a) {
	if (typeof Error != "undefined") {
		throw new Error(a || "Assertion Failed");
	} else {
		throw a;
	}
}
function tn_Nb(a) {
	var b = tn_ma(a, "&"), c = b[0];
	for (var d = 1; d < b.length; ++d) {
		var e = b[d].indexOf(";");
		if (e == -1) {
			c += b[d];
			continue;
		}
		var f = b[d].substring(0, e), h = b[d].substring(e + 1), i;
		switch (f) {
		  case "lt":
			i = "<";
			break;
		  case "gt":
			i = ">";
			break;
		  case "amp":
			i = "&";
			break;
		  case "quot":
			i = "\"";
			break;
		  case "apos":
			i = "'";
			break;
		  case "nbsp":
			i = String.fromCharCode(160);
			break;
		  default:
			var j = tn_ka(window.document, "span");
			j.innerHTML = "&" + f + "; ";
			i = j.childNodes[0].nodeValue.charAt(0);
		}
		c += i + h;
	}
	return c;
}
var tn_Cc = new RegExp("^(" + tn_wb + ")"), tn_xc = new RegExp(tn_zd, "g"), tn_Ld = new RegExp("^(" + tn_xb + ")"), tn_Hd = new RegExp(tn_Gd, "g");
function tn_Ye(a) {
	var b = /\/$/, c, d;
	if (a.match(/^<\?xml/)) {
		if (a.search(new RegExp(tn_Fd)) == 5) {
			c = tn_Cc;
			d = tn_xc;
		} else {
			if (a.search(new RegExp(tn_Md)) == 5) {
				c = tn_Ld;
				d = tn_Hd;
			} else {
				alert("VersionInfo is missing, or unknown version number.");
			}
		}
	} else {
		c = tn_Cc;
		d = tn_xc;
	}
	var e = new tn_H, f = e, h = [], i = f;
	h.push(i);
	var j = "", k = tn_ma(a, "<");
	for (var g = 1; g < k.length; ++g) {
		var l = tn_ma(k[g], ">"), m = l[0], q = tn_Nb(l[1] || "");
		if (j) {
			var n = k[g].indexOf(j);
			if (n != -1) {
				var o = k[g].substring(0, n);
				i.nodeValue += "<" + o;
				h.pop();
				i = h[h.length - 1];
				q = k[g].substring(n + j.length);
				j = "";
			} else {
				i.nodeValue += "<" + k[g];
				q = null;
			}
		} else {
			if (m.indexOf("![CDATA[") == 0) {
				var r = "![CDATA[".length, n = k[g].indexOf("]]>");
				if (n != -1) {
					var o = k[g].substring(r, n), p = tn_Za(e, o);
					tn_v(i, p);
				} else {
					var o = k[g].substring(r);
					q = null;
					var p = tn_Za(e, o);
					tn_v(i, p);
					i = p;
					h.push(p);
					j = "]]>";
				}
			} else {
				if (m.indexOf("!--") == 0) {
					var r = "!--".length, n = k[g].indexOf("-->");
					if (n != -1) {
						var o = k[g].substring(r, n), p = tn_za(e, o);
						tn_v(i, p);
					} else {
						var o = k[g].substring(r);
						q = null;
						var p = tn_za(e, o);
						tn_v(i, p);
						i = p;
						h.push(p);
						j = "-->";
					}
				} else {
					if (m.charAt(0) == "/") {
						h.pop();
						i = h[h.length - 1];
					} else {
						if (m.charAt(0) == "?") {
						} else {
							if (m.charAt(0) == "!") {
							} else {
								var x = m.match(b), v = c.exec(m)[1], p = tn_ka(e, v), y;
								while (y = d.exec(m)) {
									var s = tn_Nb(y[5] || y[7] || "");
									tn_la(p, y[1], s);
								}
								tn_v(i, p);
								if (!x) {
									i = p;
									h.push(p);
								}
							}
						}
					}
				}
			}
		}
		if (q && i != f) {
			tn_v(i, tn_V(e, q));
		}
	}
	return f;
}
function tn_Fb(a, b, c) {
	var d;
	if (b) {
		d = b.call(null, a);
		if (typeof d == "boolean" && !d) {
			return false;
		}
	}
	for (var e = a.firstChild; e; e = e.nextSibling) {
		if (e.nodeType == 1) {
			d = arguments.callee.call(this, e, b, c);
			if (typeof d == "boolean" && !d) {
				return false;
			}
		}
	}
	if (c) {
		d = c.call(null, a);
		if (typeof d == "boolean" && !d) {
			return false;
		}
	}
}
function tn_e(a, b, c, d) {
	this.attributes = [];
	this.childNodes = [];
	tn_e.init.call(this, a, b, c, d);
}
tn_e.init = function (a, b, c, d) {
	this.nodeType = a - 0;
	this.nodeName = "" + b;
	this.nodeValue = "" + c;
	this.ownerDocument = d;
	this.firstChild = null;
	this.lastChild = null;
	this.nextSibling = null;
	this.previousSibling = null;
	this.parentNode = null;
};
tn_e.Aa = [];
tn_e.recycle = function (a) {
	if (!a) {
		return;
	}
	if (a.constructor == tn_H) {
		tn_e.recycle(a.documentElement);
		return;
	}
	if (a.constructor != this) {
		return;
	}
	tn_e.Aa.push(a);
	for (var b = 0; b < a.attributes.length; ++b) {
		tn_e.recycle(a.attributes[b]);
	}
	for (var c = 0; c < a.childNodes.length; ++c) {
		tn_e.recycle(a.childNodes[c]);
	}
	a.attributes.length = 0;
	a.childNodes.length = 0;
	tn_e.init.call(a, 0, "", "", null);
};
tn_e.create = function (a, b, c, d) {
	if (tn_e.Aa.length > 0) {
		var e = tn_e.Aa.pop();
		tn_e.init.call(e, a, b, c, d);
		return e;
	} else {
		return new tn_e(a, b, c, d);
	}
};
tn_e.prototype.appendChild = function (a) {
	if (this.childNodes.length == 0) {
		this.firstChild = a;
	}
	a.previousSibling = this.lastChild;
	a.nextSibling = null;
	if (this.lastChild) {
		this.lastChild.nextSibling = a;
	}
	a.parentNode = this;
	this.lastChild = a;
	this.childNodes.push(a);
};
tn_e.prototype.replaceChild = function (a, b) {
	if (b == a) {
		return;
	}
	for (var c = 0; c < this.childNodes.length; ++c) {
		if (this.childNodes[c] == b) {
			this.childNodes[c] = a;
			var d = b.parentNode;
			b.parentNode = null;
			a.parentNode = d;
			d = b.previousSibling;
			b.previousSibling = null;
			a.previousSibling = d;
			if (a.previousSibling) {
				a.previousSibling.nextSibling = a;
			}
			d = b.nextSibling;
			b.nextSibling = null;
			a.nextSibling = d;
			if (a.nextSibling) {
				a.nextSibling.previousSibling = a;
			}
			if (this.firstChild == b) {
				this.firstChild = a;
			}
			if (this.lastChild == b) {
				this.lastChild = a;
			}
			break;
		}
	}
};
tn_e.prototype.insertBefore = function (a, b) {
	if (b == a) {
		return;
	}
	if (b.parentNode != this) {
		return;
	}
	if (a.parentNode) {
		a.parentNode.removeChild(a);
	}
	var c = [];
	for (var d = 0; d < this.childNodes.length; ++d) {
		var e = this.childNodes[d];
		if (e == b) {
			c.push(a);
			a.parentNode = this;
			a.previousSibling = b.previousSibling;
			b.previousSibling = a;
			if (a.previousSibling) {
				a.previousSibling.nextSibling = a;
			}
			a.nextSibling = b;
			if (this.firstChild == b) {
				this.firstChild = a;
			}
		}
		c.push(e);
	}
	this.childNodes = c;
};
tn_e.prototype.removeChild = function (a) {
	var b = [];
	for (var c = 0; c < this.childNodes.length; ++c) {
		var d = this.childNodes[c];
		if (d != a) {
			b.push(d);
		} else {
			if (d.previousSibling) {
				d.previousSibling.nextSibling = d.nextSibling;
			}
			if (d.nextSibling) {
				d.nextSibling.previousSibling = d.previousSibling;
			}
			if (this.firstChild == d) {
				this.firstChild = d.nextSibling;
			}
			if (this.lastChild == d) {
				this.lastChild = d.previousSibling;
			}
		}
	}
	this.childNodes = b;
};
tn_e.prototype.hasAttributes = function () {
	return this.attributes.length > 0;
};
tn_e.prototype.setAttribute = function (a, b) {
	for (var c = 0; c < this.attributes.length; ++c) {
		if (this.attributes[c].nodeName == a) {
			this.attributes[c].nodeValue = "" + b;
			return;
		}
	}
	this.attributes.push(tn_e.create(2, a, b, this));
};
tn_e.prototype.getAttribute = function (a) {
	for (var b = 0; b < this.attributes.length; ++b) {
		if (this.attributes[b].nodeName == a) {
			return this.attributes[b].nodeValue;
		}
	}
	return null;
};
tn_e.prototype.removeAttribute = function (a) {
	var b = [];
	for (var c = 0; c < this.attributes.length; ++c) {
		if (this.attributes[c].nodeName != a) {
			b.push(this.attributes[c]);
		}
	}
	this.attributes = b;
};
tn_e.prototype.getElementsByTagName = function (a) {
	var b = [];
	tn_Fb(this, function (c) {
		if (c.nodeName == a) {
			b.push(c);
		}
	}, null);
	return b;
};
tn_e.prototype.getElementById = function (a) {
	var b = null;
	tn_Fb(this, function (c) {
		if (c.getAttribute("id") == a) {
			b = c;
			return false;
		}
	}, null);
	return b;
};
function tn_H() {
	tn_e.call(this, 9, "#document", null, null);
	this.documentElement = null;
}
tn_H.prototype = new tn_e(9, "#document");
tn_H.prototype.clear = function () {
	tn_e.recycle(this.documentElement);
	this.documentElement = null;
};
tn_H.prototype.appendChild = function (a) {
	tn_e.prototype.appendChild.call(this, a);
	this.documentElement = this.childNodes[0];
};
tn_H.prototype.createElement = function (a) {
	return tn_e.create(1, a, null, this);
};
tn_H.prototype.createDocumentFragment = function () {
	return tn_e.create(11, "#document-fragment", null, this);
};
tn_H.prototype.createTextNode = function (a) {
	return tn_e.create(3, "#text", a, this);
};
tn_H.prototype.createAttribute = function (a) {
	return tn_e.create(2, a, null, this);
};
tn_H.prototype.createComment = function (a) {
	return tn_e.create(8, "#comment", a, this);
};
tn_H.prototype.createCDATASection = function (a) {
	return tn_e.create(4, "#cdata-section", a, this);
};
function tn_Ke(a, b) {
	tn_5a(new tn_W(a, b), b);
}
function tn_5a(a, b) {
	var c = tn_Y(b, "select");
	if (c) {
		tn_0a(b, "select");
		tn_Le(a, b, c);
		return;
	}
	var d = tn_Y(b, "display");
	if (d) {
		if (tn_4a(d, a).d()) {
			tn_0a(b, "display");
		} else {
			tn_Eb(b);
			return;
		}
	}
	var e = tn_Y(b, "values");
	if (e) {
		tn_0a(b, "values");
		tn_Me(a, b, e);
	}
	var f = tn_Y(b, "transclude");
	if (f) {
		var h = tn_Je(f, b.ownerDocument);
		if (h) {
			b.parentNode.replaceChild(h, b);
			tn_5a(a, h);
		} else {
			tn_Eb(b);
		}
		tn_e.recycle(b);
		return;
	}
	var i = tn_Y(b, "content");
	if (i) {
		tn_0a(b, "content");
		tn_Ie(a, b, i);
	} else {
		var j = [];
		for (var k = 0; k < b.childNodes.length; ++k) {
			if (b.childNodes[k].nodeType == 1) {
				j.push(b.childNodes[k]);
			}
		}
		for (var k = 0; k < j.length; ++k) {
			tn_5a(a, j[k]);
		}
	}
}
function tn_Le(a, b, c) {
	var d = c.split(/;/), e = tn_4a(d[0], a).c();
	if (e.length > 0) {
		var f = [];
		for (var h = 1; h < e.length; ++h) {
			var i = tn_9a(b.ownerDocument, b);
			f.push(i);
			b.parentNode.insertBefore(i, b);
		}
		f.push(b);
		var j = [];
		for (var k = 1; k < d.length; ++k) {
			var g = d[k], l = 0, m;
			if (g.charAt(l) == "#") {
				m = "number";
				l++;
			} else {
				m = "text";
			}
			var q;
			if (g.charAt(l) == "-") {
				q = "descending";
				l++;
			} else {
				q = "ascending";
			}
			var n = tn_Ja(d[k].substr(l));
			j.push({expr:n, type:m, order:q});
		}
		var o = a.clone(e[0], 0, e);
		tn_dd(o, j);
		for (var h = 0; h < o.t(); ++h) {
			if (o.nodelist[h].nodeType == 1) {
				tn_5a(o.clone(o.nodelist[h], h), f[h]);
			}
		}
	} else {
		tn_Eb(b);
	}
}
function tn_Me(a, b, c) {
	var d = c.split(/;/);
	for (var e = 0; e < d.length; ++e) {
		var f = d[e].indexOf(":");
		if (f < 0) {
			continue;
		}
		var h = d[e].substr(0, f), i = tn_4a(d[e].substr(f + 1), a);
		if (h.charAt(0) == "$") {
			a.xa(h.substr(1), i);
		} else {
			if (h) {
				tn_la(b, h, i.a());
			}
		}
	}
}
function tn_Ie(a, b, c) {
	while (b.firstChild) {
		tn_Nc(b, b.firstChild);
	}
	var d = tn_4a(c, a);
	if (d.type == "node-set") {
		for (var e = 0; e < d.value.length; ++e) {
			var f = d.value[e];
			if (f.nodeType == 1) {
				for (var h = f.firstChild; h; h = h.nextSibling) {
					var i = tn_9a(b.ownerDocument, h);
					tn_v(b, i);
				}
			} else {
				if (f.nodeType == 2) {
					var j = tn_V(b.ownerDocument, f.nodeValue);
					tn_v(b, j);
				}
			}
		}
	} else {
		var j = tn_V(b.ownerDocument, d.a());
		tn_v(b, j);
	}
}
function tn_4a(a, b) {
	var c = tn_Ja(a), d = c.evaluate(b);
	return d;
}
function tn_Je(a, b) {
	var c = b.getElementById(a);
	if (c) {
		var d = tn_9a(b, c);
		return d;
	} else {
		return null;
	}
}
function tn_Ja(a) {
	tn_2e();
	var b = tn_$a[a];
	if (b) {
		return b;
	}
	if (a.match(/^(\$|@)?\w+$/i)) {
		var c = tn_we(a);
		tn_$a[a] = c;
		return c;
	}
	if (a.match(/^\w+(\/\w+)*$/i)) {
		var c = tn_xe(a);
		tn_$a[a] = c;
		return c;
	}
	var d = a, e = [], f = null, h = null, i = false, j = 0, k = 0, g = 0;
	while (!i) {
		j++;
		a = a.replace(/^\s*/, "");
		h = f;
		f = null;
		var l = null, m = "";
		for (var q = 0; q < tn_Ka.length; ++q) {
			var n = tn_Ka[q].re.exec(a);
			k++;
			if (n && n.length > 0 && n[0].length > m.length) {
				l = tn_Ka[q];
				m = n[0];
				break;
			}
		}
		if (l && (l == tn_pb || l == tn_sb || l == tn_mb || l == tn_ub) && (!h || h.tag == tn_nb || h.tag == tn_ea || h.tag == tn_4 || h.tag == tn_ob || h.tag == tn_qb)) {
			l = tn_ga;
		}
		if (l) {
			a = a.substr(m.length);
			f = {tag:l, match:m, prec:l.prec ? l.prec : 0, expr:new tn_uc(m)};
		} else {
			i = true;
		}
		while (tn_3e(e, f)) {
			g++;
			tn_bd("stack: " + tn_Kb(e));
		}
	}
	tn_bd("stack: " + tn_Kb(e));
	if (e.length != 1) {
		tn_L("XPath parse error " + d + ":\n" + tn_Kb(e));
	}
	var n = e[0].expr;
	tn_$a[d] = n;
	return n;
}
var tn_$a = {};
function tn_3e(a, b) {
	var c = null;
	if (a.length > 0) {
		var d = a[a.length - 1], e = tn_oa[d.tag.key];
		if (e) {
			for (var f = 0; f < e.length; ++f) {
				var h = e[f], i = tn_1e(a, h[1]);
				if (i.length) {
					c = {tag:h[0], rule:h, match:i};
					c.prec = tn_ad(c);
					break;
				}
			}
		}
	}
	var j;
	if (c && (!b || c.prec > b.prec || b.tag.left && c.prec >= b.prec)) {
		for (var f = 0; f < c.match.matchlength; ++f) {
			a.pop();
		}
		var k = tn_Uc(c.match, function (g) {
			return g.expr;
		});
		c.expr = c.rule[3].apply(null, k);
		a.push(c);
		j = true;
	} else {
		if (b) {
			a.push(b);
		}
		j = false;
	}
	return j;
}
function tn_1e(a, b) {
	var c = a.length, d = b.length, e, f, h = [];
	h.matchlength = 0;
	var i = 0;
	for (e = d - 1, f = c - 1; e >= 0 && f >= 0; --e, f -= i) {
		i = 0;
		var j = [];
		if (b[e] == tn_Oa) {
			e -= 1;
			h.push(j);
			while (f - i >= 0 && a[f - i].tag == b[e]) {
				j.push(a[f - i]);
				i += 1;
				h.matchlength += 1;
			}
		} else {
			if (b[e] == tn_$b) {
				e -= 1;
				h.push(j);
				while (f - i >= 0 && i < 2 && a[f - i].tag == b[e]) {
					j.push(a[f - i]);
					i += 1;
					h.matchlength += 1;
				}
			} else {
				if (b[e] == tn_ac) {
					e -= 1;
					h.push(j);
					if (a[f].tag == b[e]) {
						while (f - i >= 0 && a[f - i].tag == b[e]) {
							j.push(a[f - i]);
							i += 1;
							h.matchlength += 1;
						}
					} else {
						return [];
					}
				} else {
					if (a[f].tag == b[e]) {
						h.push(a[f]);
						i += 1;
						h.matchlength += 1;
					} else {
						return [];
					}
				}
			}
		}
		tn_0c(j);
		j.expr = tn_Uc(j, function (k) {
			return k.expr;
		});
	}
	tn_0c(h);
	if (e == -1) {
		return h;
	} else {
		return [];
	}
}
function tn_ed(a) {
	return a.prec || 2;
}
function tn_ad(a) {
	var b = 0;
	if (a.rule) {
		if (a.rule.length >= 3 && a.rule[2] >= 0) {
			b = a.rule[2];
		} else {
			for (var c = 0; c < a.rule[1].length; ++c) {
				var d = tn_ed(a.rule[1][c]);
				b = Math.max(b, d);
			}
		}
	} else {
		if (a.tag) {
			b = tn_ed(a.tag);
		} else {
			if (a.length) {
				for (var e = 0; e < a.length; ++e) {
					var d = tn_ad(a[e]);
					b = Math.max(b, d);
				}
			}
		}
	}
	return b;
}
function tn_Kb(a) {
	var b = "";
	for (var c = 0; c < a.length; ++c) {
		if (b) {
			b += "\n";
		}
		b += a[c].tag.label;
	}
	return b;
}
function tn_W(a, b, c, d, e) {
	this.node = a;
	this.stylesheet = b || null;
	this.position = c || 0;
	this.nodelist = d || [a];
	this.variables = {};
	this.parent = e || null;
	if (e) {
		this.root = e.root;
	} else {
		if (this.node.nodeType == 9) {
			this.root = a;
		} else {
			this.root = a.ownerDocument;
		}
	}
}
tn_W.prototype.clone = function (a, b, c) {
	return new tn_W(a || this.node, this.stylesheet, typeof b != "undefined" ? b : this.position, c || this.nodelist, this);
};
tn_W.prototype.xa = function (a, b) {
	this.variables[a] = b;
};
tn_W.prototype.N = function (a) {
	if (typeof this.variables[a] != "undefined") {
		return this.variables[a];
	} else {
		if (this.parent) {
			return this.parent.N(a);
		} else {
			return null;
		}
	}
};
tn_W.prototype.mb = function (a) {
	this.node = this.nodelist[a];
	this.position = a;
};
tn_W.prototype.t = function () {
	return this.nodelist.length;
};
function tn_t(a) {
	this.value = a;
	this.type = "string";
}
tn_t.prototype.a = function () {
	return this.value;
};
tn_t.prototype.d = function () {
	return this.value.length > 0;
};
tn_t.prototype.b = function () {
	return this.value - 0;
};
tn_t.prototype.c = function () {
	tn_L(this);
};
function tn_q(a) {
	this.value = a;
	this.type = "boolean";
}
tn_q.prototype.a = function () {
	return "" + this.value;
};
tn_q.prototype.d = function () {
	return this.value;
};
tn_q.prototype.b = function () {
	return this.value ? 1 : 0;
};
tn_q.prototype.c = function () {
	tn_L(this);
};
function tn_s(a) {
	this.value = a;
	this.type = "number";
}
tn_s.prototype.a = function () {
	return "" + this.value;
};
tn_s.prototype.d = function () {
	return !(!this.value);
};
tn_s.prototype.b = function () {
	return this.value - 0;
};
tn_s.prototype.c = function () {
	tn_L(this);
};
function tn_x(a) {
	this.value = a;
	this.type = "node-set";
}
tn_x.prototype.a = function () {
	if (this.value.length == 0) {
		return "";
	} else {
		return tn_G(this.value[0]);
	}
};
tn_x.prototype.d = function () {
	return this.value.length > 0;
};
tn_x.prototype.b = function () {
	return this.a() - 0;
};
tn_x.prototype.c = function () {
	return this.value;
};
function tn_uc(a) {
	this.value = a;
}
tn_uc.prototype.evaluate = function () {
	return new tn_t(this.value);
};
function tn_P() {
	this.absolute = false;
	this.rootExpr = null;
	this.steps = [];
}
tn_P.prototype.l = function (a) {
	this.steps.push(a);
};
tn_P.prototype.ta = function (a) {
	this.steps.unshift(a);
};
tn_P.prototype.evaluate = function (a) {
	var b;
	if (this.rootExpr) {
		b = this.rootExpr.evaluate(a).c();
	} else {
		if (this.absolute) {
			b = [a.root];
		} else {
			b = [a.node];
		}
	}
	var c = [];
	for (var d = 0; d < b.length; ++d) {
		var e = b[d];
		tn_8c(c, this.steps, 0, e, a);
	}
	return new tn_x(c);
};
function tn_8c(a, b, c, d, e) {
	var f = b[c], h = e.clone(d), i = f.evaluate(h).c();
	for (var j = 0; j < i.length; ++j) {
		if (c == b.length - 1) {
			a.push(i[j]);
		} else {
			tn_8c(a, b, c + 1, i[j], e);
		}
	}
}
function tn_M(a, b, c) {
	this.axis = a;
	this.nodetest = b;
	this.predicate = c || [];
}
tn_M.prototype.Da = function (a) {
	this.predicate.push(a);
};
tn_M.prototype.evaluate = function (a) {
	var b = a.node, c = [];
	if (this.axis == tn_p.ANCESTOR_OR_SELF) {
		c.push(b);
		for (var d = b.parentNode; d; d = d.parentNode) {
			c.push(d);
		}
	} else {
		if (this.axis == tn_p.ANCESTOR) {
			for (var d = b.parentNode; d; d = d.parentNode) {
				c.push(d);
			}
		} else {
			if (this.axis == tn_p.ATTRIBUTE) {
				tn_Ic(c, b.attributes);
			} else {
				if (this.axis == tn_p.CHILD) {
					tn_Ic(c, b.childNodes);
				} else {
					if (this.axis == tn_p.DESCENDANT_OR_SELF) {
						c.push(b);
						tn_Ob(c, b);
					} else {
						if (this.axis == tn_p.DESCENDANT) {
							tn_Ob(c, b);
						} else {
							if (this.axis == tn_p.FOLLOWING) {
								for (var d = b; d; d = d.parentNode) {
									for (var e = d.nextSibling; e; e = e.nextSibling) {
										c.push(e);
										tn_Ob(c, e);
									}
								}
							} else {
								if (this.axis == tn_p.FOLLOWING_SIBLING) {
									for (var d = b.nextSibling; d; d = d.nextSibling) {
										c.push(d);
									}
								} else {
									if (this.axis == tn_p.NAMESPACE) {
										tn_L("not implemented: axis namespace");
									} else {
										if (this.axis == tn_p.PARENT) {
											if (b.parentNode) {
												c.push(b.parentNode);
											}
										} else {
											if (this.axis == tn_p.PRECEDING) {
												for (var d = b; d; d = d.parentNode) {
													for (var e = d.previousSibling; e; e = e.previousSibling) {
														c.push(e);
														tn_0e(c, e);
													}
												}
											} else {
												if (this.axis == tn_p.PRECEDING_SIBLING) {
													for (var d = b.previousSibling; d; d = d.previousSibling) {
														c.push(d);
													}
												} else {
													if (this.axis == tn_p.SELF) {
														c.push(b);
													} else {
														tn_L("ERROR -- NO SUCH AXIS: " + this.axis);
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
	var f = c;
	c = [];
	for (var h = 0; h < f.length; ++h) {
		var d = f[h];
		if (this.nodetest.evaluate(a.clone(d, h, f)).d()) {
			c.push(d);
		}
	}
	for (var h = 0; h < this.predicate.length; ++h) {
		var f = c;
		c = [];
		for (var i = 0; i < f.length; ++i) {
			var d = f[i];
			if (this.predicate[h].evaluate(a.clone(d, i, f)).d()) {
				c.push(d);
			}
		}
	}
	return new tn_x(c);
};
function tn_sa() {
	this.value = new tn_q(true);
}
tn_sa.prototype.evaluate = function (a) {
	return this.value;
};
function tn_5b() {
}
tn_5b.prototype.evaluate = function (a) {
	return new tn_q(a.node.nodeType == 1 || a.node.nodeType == 2);
};
function tn_7b() {
}
tn_7b.prototype.evaluate = function (a) {
	return new tn_q(a.node.nodeType == 3);
};
function tn_4b() {
}
tn_4b.prototype.evaluate = function (a) {
	return new tn_q(a.node.nodeType == 8);
};
function tn_hb(a) {
	this.target = a;
}
tn_hb.prototype.evaluate = function (a) {
	return new tn_q(a.node.nodeType == 7 && (!this.target || a.node.nodeName == this.target));
};
function tn_6b(a) {
	this.regex = new RegExp("^" + a + ":");
	this.nsprefix = a;
}
tn_6b.prototype.evaluate = function (a) {
	var b = a.node;
	return new tn_q(this.regex.test(b.nodeName));
};
function tn_ta(a) {
	this.name = a;
}
tn_ta.prototype.evaluate = function (a) {
	var b = a.node;
	return new tn_q(b.nodeName == this.name);
};
function tn_9b(a) {
	this.expr = a;
}
tn_9b.prototype.evaluate = function (a) {
	var b = this.expr.evaluate(a);
	if (b.type == "number") {
		return new tn_q(a.position == b.b() - 1);
	} else {
		return new tn_q(b.d());
	}
};
function tn_ra(a) {
	this.name = a;
	this.args = [];
}
tn_ra.prototype.ea = function (a) {
	this.args.push(a);
};
tn_ra.prototype.evaluate = function (a) {
	var b = "" + this.name.value, c = this.xpathfunctions[b];
	if (c) {
		return c.call(this, a);
	} else {
		return new tn_q(false);
	}
};
tn_ra.prototype.xpathfunctions = {last:function (a) {
	tn_l(this.args.length == 0);
	return new tn_s(a.t());
}, position:function (a) {
	tn_l(this.args.length == 0);
	return new tn_s(a.position + 1);
}, count:function (a) {
	tn_l(this.args.length == 1);
	var b = this.args[0].evaluate(a);
	return new tn_s(b.c().length);
}, id:function (a) {
	tn_l(this.args.length == 1);
	var b = this.args[0].evaluate(a), c = [], d;
	if (b.type == "node-set") {
		d = [];
		var e = b.c();
		for (var f = 0; f < e.length; ++f) {
			var h = tn_G(e[f]).split(/\s+/);
			for (var i = 0; i < h.length; ++i) {
				d.push(h[i]);
			}
		}
	} else {
		d = b.a().split(/\s+/);
	}
	var j = a.node.ownerDocument;
	for (var f = 0; f < d.length; ++f) {
		var k = j.getElementById(d[f]);
		if (k) {
			c.push(k);
		}
	}
	return new tn_x(c);
}, "local-name":function (a) {
	tn_L("not implmented yet: XPath function local-name()");
}, "namespace-uri":function (a) {
	tn_L("not implmented yet: XPath function namespace-uri()");
}, name:function (a) {
	tn_l(this.args.length == 1 || this.args.length == 0);
	var b;
	if (this.args.length == 0) {
		b = [a.node];
	} else {
		b = this.args[0].evaluate(a).c();
	}
	if (b.length == 0) {
		return new tn_t("");
	} else {
		return new tn_t(b[0].nodeName);
	}
}, string:function (a) {
	tn_l(this.args.length == 1 || this.args.length == 0);
	if (this.args.length == 0) {
		return new tn_t((new tn_x([a.node])).a());
	} else {
		return new tn_t(this.args[0].evaluate(a).a());
	}
}, concat:function (a) {
	var b = "";
	for (var c = 0; c < this.args.length; ++c) {
		b += this.args[c].evaluate(a).a();
	}
	return new tn_t(b);
}, document:function (a) {
	var b = this.args[0].evaluate(a).a();
	if (b === "" && a.stylesheet) {
		return new tn_x([a.stylesheet]);
	}
	tn_L("Can't resolve uri in document(\"" + b + "\")");
}, "starts-with":function (a) {
	tn_l(this.args.length == 2);
	var b = this.args[0].evaluate(a).a(), c = this.args[1].evaluate(a).a();
	return new tn_q(b.indexOf(c) == 0);
}, contains:function (a) {
	tn_l(this.args.length == 2);
	var b = this.args[0].evaluate(a).a(), c = this.args[1].evaluate(a).a();
	return new tn_q(b.indexOf(c) != -1);
}, "substring-before":function (a) {
	tn_l(this.args.length == 2);
	var b = this.args[0].evaluate(a).a(), c = this.args[1].evaluate(a).a(), d = b.indexOf(c), e;
	if (d == -1) {
		e = "";
	} else {
		e = b.substr(0, d);
	}
	return new tn_t(e);
}, "substring-after":function (a) {
	tn_l(this.args.length == 2);
	var b = this.args[0].evaluate(a).a(), c = this.args[1].evaluate(a).a(), d = b.indexOf(c), e;
	if (d == -1) {
		e = "";
	} else {
		e = b.substr(d + c.length);
	}
	return new tn_t(e);
}, substring:function (a) {
	tn_l(this.args.length == 2 || this.args.length == 3);
	var b = this.args[0].evaluate(a).a(), c = this.args[1].evaluate(a).b(), d;
	if (this.args.length == 2) {
		var e = Math.max(0, Math.round(c) - 1);
		d = b.substr(e);
	} else {
		var f = this.args[2].evaluate(a).b(), h = Math.round(c) - 1, e = Math.max(0, h), i = Math.round(f) - Math.max(0, -h);
		d = b.substr(e, i);
	}
	return new tn_t(d);
}, "string-length":function (a) {
	var b;
	if (this.args.length > 0) {
		b = this.args[0].evaluate(a).a();
	} else {
		b = (new tn_x([a.node])).a();
	}
	return new tn_s(b.length);
}, "normalize-space":function (a) {
	var b;
	if (this.args.length > 0) {
		b = this.args[0].evaluate(a).a();
	} else {
		b = (new tn_x([a.node])).a();
	}
	b = b.replace(/^\s*/, "").replace(/\s*$/, "").replace(/\s+/g, " ");
	return new tn_t(b);
}, translate:function (a) {
	tn_l(this.args.length == 3);
	var b = this.args[0].evaluate(a).a(), c = this.args[1].evaluate(a).a(), d = this.args[2].evaluate(a).a();
	for (var e = 0; e < c.length; ++e) {
		b = b.replace(new RegExp(c.charAt(e), "g"), d.charAt(e));
	}
	return new tn_t(b);
}, "boolean":function (a) {
	tn_l(this.args.length == 1);
	return new tn_q(this.args[0].evaluate(a).d());
}, not:function (a) {
	tn_l(this.args.length == 1);
	var b = !this.args[0].evaluate(a).d();
	return new tn_q(b);
}, "true":function (a) {
	tn_l(this.args.length == 0);
	return new tn_q(true);
}, "false":function (a) {
	tn_l(this.args.length == 0);
	return new tn_q(false);
}, lang:function (a) {
	tn_l(this.args.length == 1);
	var b = this.args[0].evaluate(a).a(), c, d = a.node;
	while (d && d != d.parentNode) {
		c = d.getAttribute("xml:lang");
		if (c) {
			break;
		}
		d = d.parentNode;
	}
	if (!c) {
		return new tn_q(false);
	} else {
		var e = new RegExp("^" + b + "$", "i");
		return new tn_q(e.test(c) || e.test(c.replace(/_.*$/, "")));
	}
}, number:function (a) {
	tn_l(this.args.length == 1 || this.args.length == 0);
	if (this.args.length == 1) {
		return new tn_s(this.args[0].evaluate(a).b());
	} else {
		return new tn_s((new tn_x([a.node])).b());
	}
}, sum:function (a) {
	tn_l(this.args.length == 1);
	var b = this.args[0].evaluate(a).c(), c = 0;
	for (var d = 0; d < b.length; ++d) {
		c += tn_G(b[d]) - 0;
	}
	return new tn_s(c);
}, floor:function (a) {
	tn_l(this.args.length == 1);
	var b = this.args[0].evaluate(a).b();
	return new tn_s(Math.floor(b));
}, ceiling:function (a) {
	tn_l(this.args.length == 1);
	var b = this.args[0].evaluate(a).b();
	return new tn_s(Math.ceil(b));
}, round:function (a) {
	tn_l(this.args.length == 1);
	var b = this.args[0].evaluate(a).b();
	return new tn_s(Math.round(b));
}, "ext-join":function (a) {
	tn_l(this.args.length == 2);
	var b = this.args[0].evaluate(a).c(), c = this.args[1].evaluate(a).a(), d = "";
	for (var e = 0; e < b.length; ++e) {
		if (d) {
			d += c;
		}
		d += tn_G(b[e]);
	}
	return new tn_t(d);
}, "ext-if":function (a) {
	tn_l(this.args.length == 3);
	if (this.args[0].evaluate(a).d()) {
		return this.args[1].evaluate(a);
	} else {
		return this.args[2].evaluate(a);
	}
}, "ext-cardinal":function (a) {
	tn_l(this.args.length >= 1);
	var b = this.args[0].evaluate(a).b(), c = [];
	for (var d = 0; d < b; ++d) {
		c.push(a.node);
	}
	return new tn_x(c);
}};
function tn_wc(a, b) {
	this.expr1 = a;
	this.expr2 = b;
}
tn_wc.prototype.evaluate = function (a) {
	var b = this.expr1.evaluate(a).c(), c = this.expr2.evaluate(a).c(), d = b.length;
	for (var e = 0; e < c.length; ++e) {
		var f = c[e], h = false;
		for (var i = 0; i < d; ++i) {
			if (b[i] == f) {
				h = true;
				i = d;
			}
		}
		if (!h) {
			b.push(f);
		}
	}
	return new tn_x(b);
};
function tn_jb(a, b) {
	this.filter = a;
	this.rel = b;
}
tn_jb.prototype.evaluate = function (a) {
	var b = this.filter.evaluate(a).c(), c = [];
	for (var d = 0; d < b.length; ++d) {
		var e = this.rel.evaluate(a.clone(b[d], d, b)).c();
		for (var f = 0; f < e.length; ++f) {
			c.push(e[f]);
		}
	}
	return new tn_x(c);
};
function tn_0b(a, b) {
	this.expr = a;
	this.predicate = b;
}
tn_0b.prototype.evaluate = function (a) {
	var b = this.expr.evaluate(a).c();
	for (var c = 0; c < this.predicate.length; ++c) {
		var d = b;
		b = [];
		for (var e = 0; e < d.length; ++e) {
			var f = d[e];
			if (this.predicate[c].evaluate(a.clone(f, e, d)).d()) {
				b.push(f);
			}
		}
	}
	return new tn_x(b);
};
function tn_vc(a) {
	this.expr = a;
}
tn_vc.prototype.evaluate = function (a) {
	return new tn_s(-this.expr.evaluate(a).b());
};
function tn_bb(a, b, c) {
	this.expr1 = a;
	this.expr2 = c;
	this.op = b;
}
tn_bb.prototype.evaluate = function (a) {
	var b;
	switch (this.op.value) {
	  case "or":
		b = new tn_q(this.expr1.evaluate(a).d() || this.expr2.evaluate(a).d());
		break;
	  case "and":
		b = new tn_q(this.expr1.evaluate(a).d() && this.expr2.evaluate(a).d());
		break;
	  case "+":
		b = new tn_s(this.expr1.evaluate(a).b() + this.expr2.evaluate(a).b());
		break;
	  case "-":
		b = new tn_s(this.expr1.evaluate(a).b() - this.expr2.evaluate(a).b());
		break;
	  case "*":
		b = new tn_s(this.expr1.evaluate(a).b() * this.expr2.evaluate(a).b());
		break;
	  case "mod":
		b = new tn_s(this.expr1.evaluate(a).b() % this.expr2.evaluate(a).b());
		break;
	  case "div":
		b = new tn_s(this.expr1.evaluate(a).b() / this.expr2.evaluate(a).b());
		break;
	  case "=":
		b = this.compare(a, function (c, d) {
			return c == d;
		});
		break;
	  case "!=":
		b = this.compare(a, function (c, d) {
			return c != d;
		});
		break;
	  case "<":
		b = this.compare(a, function (c, d) {
			return c < d;
		});
		break;
	  case "<=":
		b = this.compare(a, function (c, d) {
			return c <= d;
		});
		break;
	  case ">":
		b = this.compare(a, function (c, d) {
			return c > d;
		});
		break;
	  case ">=":
		b = this.compare(a, function (c, d) {
			return c >= d;
		});
		break;
	  default:
		tn_L("BinaryExpr.evaluate: " + this.op.value);
	}
	return b;
};
tn_bb.prototype.compare = function (a, b) {
	var c = this.expr1.evaluate(a), d = this.expr2.evaluate(a), e;
	if (c.type == "node-set" && d.type == "node-set") {
		var f = c.c(), h = d.c();
		e = false;
		for (var i = 0; i < f.length; ++i) {
			for (var j = 0; j < h.length; ++j) {
				if (b(tn_G(f[i]), tn_G(h[j]))) {
					e = true;
					j = h.length;
					i = f.length;
				}
			}
		}
	} else {
		if (c.type == "node-set" || d.type == "node-set") {
			if (c.type == "number") {
				var k = c.b(), g = d.c();
				e = false;
				for (var l = 0; l < g.length; ++l) {
					var m = tn_G(g[l]) - 0;
					if (b(k, m)) {
						e = true;
						break;
					}
				}
			} else {
				if (d.type == "number") {
					var g = c.c(), k = d.b();
					e = false;
					for (var l = 0; l < g.length; ++l) {
						var m = tn_G(g[l]) - 0;
						if (b(m, k)) {
							e = true;
							break;
						}
					}
				} else {
					if (c.type == "string") {
						var k = c.a(), g = d.c();
						e = false;
						for (var l = 0; l < g.length; ++l) {
							var m = tn_G(g[l]);
							if (b(k, m)) {
								e = true;
								break;
							}
						}
					} else {
						if (d.type == "string") {
							var g = c.c(), k = d.a();
							e = false;
							for (var l = 0; l < g.length; ++l) {
								var m = tn_G(g[l]);
								if (b(m, k)) {
									e = true;
									break;
								}
							}
						} else {
							e = b(c.d(), d.d());
						}
					}
				}
			}
		} else {
			if (c.type == "boolean" || d.type == "boolean") {
				e = b(c.d(), d.d());
			} else {
				if (c.type == "number" || d.type == "number") {
					e = b(c.b(), d.b());
				} else {
					e = b(c.a(), d.a());
				}
			}
		}
	}
	return new tn_q(!(!e));
};
function tn_3b(a) {
	this.value = a;
}
tn_3b.prototype.evaluate = function (a) {
	return new tn_t(this.value);
};
function tn_ib(a) {
	this.value = a;
}
tn_ib.prototype.evaluate = function (a) {
	return new tn_s(this.value);
};
function tn_vb(a) {
	this.name = a;
}
tn_vb.prototype.evaluate = function (a) {
	return a.N(this.name);
};
function tn_N(a) {
	return a;
}
function tn_ee(a, b) {
	b.absolute = true;
	return b;
}
function tn_fe(a, b) {
	b.absolute = true;
	b.ta(tn_9(a.value));
	return b;
}
function tn_ge(a) {
	var b = new tn_P;
	b.l(tn_9("."));
	b.absolute = true;
	return b;
}
function tn_he(a) {
	var b = new tn_P;
	b.absolute = true;
	b.l(tn_9(a.value));
	return b;
}
function tn_ie(a) {
	var b = new tn_P;
	b.l(a);
	return b;
}
function tn_je(a, b, c) {
	a.l(c);
	return a;
}
function tn_ke(a, b, c) {
	a.l(tn_9(b.value));
	return a;
}
function tn_le(a, b, c) {
	var d = new tn_P;
	d.rootExpr = a;
	d.l(c);
	return d;
}
function tn_ye(a) {
	return tn_9(a.value);
}
function tn_ze(a) {
	return tn_9(a.value);
}
function tn_Ae(a, b, c) {
	return new tn_M(a.value, c);
}
function tn_Be(a, b) {
	return new tn_M("attribute", b);
}
function tn_Ce(a) {
	return new tn_M("child", a);
}
function tn_De(a, b) {
	a.Da(b);
	return a;
}
function tn_9(a) {
	switch (a) {
	  case "//":
		return new tn_M("descendant-or-self", new tn_sa);
	  case ".":
		return new tn_M("self", new tn_sa);
	  case "..":
		return new tn_M("parent", new tn_sa);
	}
}
function tn_me(a) {
	return new tn_5b;
}
function tn_ne(a, b, c) {
	return new tn_6b(a.value);
}
function tn_oe(a) {
	return new tn_ta(a.value);
}
function tn_pe(a, b) {
	var c = a.value.replace(/\s*\($/, "");
	switch (c) {
	  case "node":
		return new tn_sa;
	  case "text":
		return new tn_7b;
	  case "comment":
		return new tn_4b;
	  case "processing-instruction":
		return new tn_hb("");
	}
}
function tn_qe(a, b, c) {
	var d = a.replace(/\s*\($/, "");
	if (d != "processing-instruction") {
		tn_L(d);
	}
	return new tn_hb(b.value);
}

function tn_ue(a, b, c, d, e) {
	return new tn_9b(b);
}
function tn_ve(a, b, c) {
	return b;
}
function tn_ce(a, b, c) {
	return new tn_ra(a);
}
function tn_de(a, b, c, d, e) {
	var f = new tn_ra(a);
	f.ea(c);
	for (var h = 0; h < d.length; ++h) {
		f.ea(d[h]);
	}
	return f;
}
function tn_ae(a, b) {
	return b;
}
function tn_Fe(a, b, c) {
	return new tn_wc(a, c);
}
function tn_se(a, b, c) {
	return new tn_jb(a, c);
}
function tn_te(a, b, c) {
	c.ta(tn_9(b.value));
	return new tn_jb(a, c);
}
function tn_be(a, b) {
	if (b.length > 0) {
		return new tn_0b(a, b);
	} else {
		return a;
	}
}
function tn_Ee(a, b) {
	return new tn_vc(b);
}
function tn_F(a, b, c) {
	return new tn_bb(a, b, c);
}
function tn_Tc(a) {
	var b = a.value.substring(1, a.value.length - 1);
	return new tn_3b(b);
}
function tn_re(a) {
	return new tn_ib(a.value);
}
function tn_Ge(a, b) {
	return new tn_vb(b.value);
}
function tn_we(a) {
	if (a.charAt(0) == "$") {
		return new tn_vb(a.substr(1));
	} else {
		if (a.charAt(0) == "@") {
			var b = new tn_ta(a.substr(1)), c = new tn_M("attribute", b), d = new tn_P;
			d.l(c);
			return d;
		} else {
			if (a.match(/^[0-9]+$/)) {
				return new tn_ib(a);
			} else {
				var b = new tn_ta(a), c = new tn_M("child", b), d = new tn_P;
				d.l(c);
				return d;
			}
		}
	}
}
function tn_xe(a) {
	var b = tn_ma(a, "/"), c = new tn_P;
	for (var d = 0; d < b.length; ++d) {
		var e = new tn_ta(b[d]), f = new tn_M("child", e);
		c.l(f);
	}
	return c;
}
var tn_p = {ANCESTOR_OR_SELF:"ancestor-or-self", ANCESTOR:"ancestor", ATTRIBUTE:"attribute", CHILD:"child", DESCENDANT_OR_SELF:"descendant-or-self", DESCENDANT:"descendant", FOLLOWING_SIBLING:"following-sibling", FOLLOWING:"following", NAMESPACE:"namespace", PARENT:"parent", PRECEDING_SIBLING:"preceding-sibling", PRECEDING:"preceding", SELF:"self"}, tn__e = [tn_p.ANCESTOR_OR_SELF, tn_p.ANCESTOR, tn_p.ATTRIBUTE, tn_p.CHILD, tn_p.DESCENDANT_OR_SELF, tn_p.DESCENDANT, tn_p.FOLLOWING_SIBLING, tn_p.FOLLOWING, tn_p.NAMESPACE, tn_p.PARENT, tn_p.PRECEDING_SIBLING, tn_p.PRECEDING, tn_p.SELF].join("|"), tn_sc = {label:"|", prec:17, re:/^\|/}, tn_ea = {label:"//", prec:19, re:/^\/\//}, tn_4 = {label:"/", prec:30, re:/^\//}, tn_ob = {label:"::", prec:20, re:/^::/}, tn_ec = {label:":", prec:1000, re:/^:/}, tn_bc = {label:"[axis]", re:new RegExp("^(" + tn__e + ")")}, tn_Ra = {label:"(", prec:34, re:/^\(/}, tn_fa = {label:")", re:/^\)/}, tn_gc = {label:"..", prec:34, re:/^\.\./}, tn_hc = {label:".", prec:34, re:/^\./}, tn_nb = {label:"@", prec:34, re:/^@/}, tn_fc = {label:",", re:/^,/}, tn_ub = {label:"or", prec:10, re:/^or\b/}, tn_mb = {label:"and", prec:11, re:/^and\b/}, tn_ic = {label:"=", prec:12, re:/^=/}, tn_qc = {label:"!=", prec:12, re:/^!=/}, tn_jc = {label:">=", prec:13, re:/^>=/}, tn_kc = {label:">", prec:13, re:/^>/}, tn_lc = {label:"<=", prec:13, re:/^<=/}, tn_oc = {label:"<", prec:13, re:/^</}, tn_tc = {label:"+", prec:14, re:/^\+/, left:true}, tn_rb = {label:"-", prec:14, re:/^\-/, left:true}, tn_pb = {label:"div", prec:15, re:/^div\b/, left:true}, tn_sb = {label:"mod", prec:15, re:/^mod\b/, left:true}, tn_dc = {label:"[", prec:32, re:/^\[/}, tn_cc = {label:"]", re:/^\]/}, tn_qb = {label:"$", re:/^\$/}, tn_pc = {label:"[ncname]", re:new RegExp("^" + tn_yb)}, tn_Qa = {label:"*", prec:15, re:/^\*/, left:true}, tn_mc = {label:"[litq]", prec:20, re:/^'[^\']*'/}, tn_nc = {label:"[litqq]", prec:20, re:/^"[^\"]*"/}, tn_rc = {label:"[number]", prec:35, re:/^\d+(\.\d*)?/}, tn_ga = {label:"[qname]", re:new RegExp("^(" + tn_yb + ":)?" + tn_yb)}, tn_tb = {label:"[nodetest-start]", re:/^(processing-instruction|comment|text|node)\(/}, tn_Ka = [tn_ea, tn_4, tn_gc, tn_hc, tn_ob, tn_ec, tn_bc, tn_tb, tn_Ra, tn_fa, tn_dc, tn_cc, tn_nb, tn_fc, tn_ub, tn_mb, tn_qc, tn_ic, tn_jc, tn_kc, tn_lc, tn_oc, tn_tc, tn_rb, tn_Qa, tn_sc, tn_sb, tn_pb, tn_mc, tn_nc, tn_rc, tn_ga, tn_pc, tn_qb], tn_Wa = {label:"LocationPath"}, tn_I = {label:"RelativeLocationPath"}, tn_ha = {label:"AbsoluteLocationPath"}, tn_J = {label:"Step"}, tn_S = {label:"NodeTest"}, tn_Xa = {label:"Predicate"}, tn_wa = {label:"Literal"}, tn_c = {label:"Expr"}, tn_T = {label:"PrimaryExpr"}, tn_Bb = {label:"Variablereference"}, tn_Ab = {label:"Number"}, tn_Va = {label:"FunctionCall"}, tn_zb = {label:"ArgumentRemainder"}, tn_5 = {label:"PathExpr"}, tn_xa = {label:"UnionExpr"}, tn_va = {label:"FilterExpr"}, tn_Od = {label:"Digits"}, tn_cd = [tn_Wa, tn_I, tn_ha, tn_J, tn_S, tn_Xa, tn_wa, tn_c, tn_T, tn_Bb, tn_Ab, tn_Va, tn_zb, tn_5, tn_xa, tn_va, tn_Od], tn_$b = {label:"?"}, tn_Oa = {label:"*"}, tn_ac = {label:"+"}, tn_Pb = [[tn_Wa, [tn_I], 18, tn_N], [tn_Wa, [tn_ha], 18, tn_N], [tn_ha, [tn_4, tn_I], 18, tn_ee], [tn_ha, [tn_ea, tn_I], 18, tn_fe], [tn_ha, [tn_4], 0, tn_ge], [tn_ha, [tn_ea], 0, tn_he], [tn_I, [tn_J], 31, tn_ie], [tn_I, [tn_I, tn_4, tn_J], 31, tn_je], [tn_I, [tn_I, tn_ea, tn_J], 31, tn_ke], [tn_I, [tn_T, tn_4, tn_J], 31, tn_le], [tn_J, [tn_hc], 33, tn_ye], [tn_J, [tn_gc], 33, tn_ze], [tn_J, [tn_bc, tn_ob, tn_S], 33, tn_Ae], [tn_J, [tn_nb, tn_S], 33, tn_Be], [tn_J, [tn_S], 33, tn_Ce], [tn_J, [tn_J, tn_Xa], 33, tn_De], [tn_S, [tn_Qa], 33, tn_me], [tn_S, [tn_pc, tn_ec, tn_Qa], 33, tn_ne], [tn_S, [tn_ga], 33, tn_oe], [tn_S, [tn_tb, tn_fa], 33, tn_pe], [tn_S, [tn_tb, tn_wa, tn_fa], 33, tn_qe], [tn_Xa, [tn_dc, tn_c, tn_cc], 33, tn_ue], [tn_T, [tn_Bb], 33, tn_N], [tn_T, [tn_Ra, tn_c, tn_fa], 33, tn_ve], [tn_T, [tn_wa], 30, tn_N], [tn_T, [tn_Ab], 30, tn_N], [tn_T, [tn_Va], 30, tn_N], [tn_Va, [tn_ga, tn_Ra, tn_fa], -1, tn_ce], [tn_Va, [tn_ga, tn_Ra, tn_c, tn_zb, tn_Oa, tn_fa], -1, tn_de], [tn_zb, [tn_fc, tn_c], -1, tn_ae], [tn_xa, [tn_5], 20, tn_N], [tn_xa, [tn_xa, tn_sc, tn_5], 20, tn_Fe], [tn_5, [tn_Wa], 20, tn_N], [tn_5, [tn_va], 19, tn_N], [tn_5, [tn_va, tn_4, tn_I], 20, tn_se], [tn_5, [tn_va, tn_ea, tn_I], 20, tn_te], [tn_va, [tn_T, tn_Xa, tn_Oa], 20, tn_be], [tn_c, [tn_T], 16, tn_N], [tn_c, [tn_xa], 16, tn_N], [tn_c, [tn_rb, tn_c], -1, tn_Ee], [tn_c, [tn_c, tn_ub, tn_c], -1, tn_F], [tn_c, [tn_c, tn_mb, tn_c], -1, tn_F], [tn_c, [tn_c, tn_ic, tn_c], -1, tn_F], [tn_c, [tn_c, tn_qc, tn_c], -1, tn_F], [tn_c, [tn_c, tn_oc, tn_c], -1, tn_F], [tn_c, [tn_c, tn_lc, tn_c], -1, tn_F], [tn_c, [tn_c, tn_kc, tn_c], -1, tn_F], [tn_c, [tn_c, tn_jc, tn_c], -1, tn_F], [tn_c, [tn_c, tn_tc, tn_c], -1, tn_F, true], [tn_c, [tn_c, tn_rb, tn_c], -1, tn_F, true], [tn_c, [tn_c, tn_Qa, tn_c], -1, tn_F, true], [tn_c, [tn_c, tn_pb, tn_c], -1, tn_F, true], [tn_c, [tn_c, tn_sb, tn_c], -1, tn_F, true], [tn_wa, [tn_mc], -1, tn_Tc], [tn_wa, [tn_nc], -1, tn_Tc], [tn_Ab, [tn_rc], -1, tn_re], [tn_Bb, [tn_qb, tn_ga], 200, tn_Ge]], tn_oa = [];
function tn_2e() {
	if (tn_oa.length) {
		return;
	}
	tn_Pb.sort(function (i, j) {
		var k = i[1].length, g = j[1].length;
		if (k < g) {
			return 1;
		} else {
			if (k > g) {
				return -1;
			} else {
				return 0;
			}
		}
	});
	var a = 1;
	for (var b = 0; b < tn_cd.length; ++b) {
		tn_cd[b].key = a++;
	}
	for (b = 0; b < tn_Ka.length; ++b) {
		tn_Ka[b].key = a++;
	}
	function c(i, j, k) {
		if (!i[j]) {
			i[j] = [];
		}
		i[j].push(k);
	}
	for (b = 0; b < tn_Pb.length; ++b) {
		var d = tn_Pb[b], e = d[1];
		for (var f = e.length - 1; f >= 0; --f) {
			if (e[f] == tn_ac) {
				c(tn_oa, e[f - 1].key, d);
				break;
			} else {
				if (e[f] == tn_Oa || e[f] == tn_$b) {
					c(tn_oa, e[f - 1].key, d);
					--f;
				} else {
					c(tn_oa, e[f].key, d);
					break;
				}
			}
		}
	}
	var h = 0;
	tn_He(tn_oa, function (i) {
		if (i) {
			h += i.length;
		}
	});
}
function tn_Ob(a, b) {
	for (var c = b.firstChild; c; c = c.nextSibling) {
		a.push(c);
		arguments.callee(a, c);
	}
}
function tn_0e(a, b) {
	for (var c = b.lastChild; c; c = c.previousSibling) {
		a.push(c);
		arguments.callee(a, c);
	}
}
function tn_dd(a, b) {
	if (b.length == 0) {
		return;
	}
	var c = [];
	for (var d = 0; d < a.t(); ++d) {
		var e = a.nodelist[d], f = {node:e, key:[]}, h = a.clone(e, 0, [e]);
		for (var i = 0; i < b.length; ++i) {
			var j = b[i], k = j.expr.evaluate(h), g;
			if (j.type == "text") {
				g = k.a();
			} else {
				if (j.type == "number") {
					g = k.b();
				}
			}
			f.key.push({value:g, order:j.order});
		}
		f.key.push({value:d, order:"ascending"});
		c.push(f);
	}
	c.sort(tn_4e);
	var l = [];
	for (var d = 0; d < c.length; ++d) {
		l.push(c[d].node);
	}
	a.nodelist = l;
	a.mb(0);
}
function tn_4e(a, b) {
	for (var c = 0; c < a.key.length; ++c) {
		var d = a.key[c].order == "descending" ? -1 : 1;
		if (a.key[c].value > b.key[c].value) {
			return +1 * d;
		} else {
			if (a.key[c].value < b.key[c].value) {
				return -1 * d;
			}
		}
	}
	return 0;
}
function tn_1(a, b) {
	var c = tn_Ja(a), d = c.evaluate(b);
	return d;
}
function tn_af(a, b) {
	var c = tn__a(new tn_H);
	tn_Rb(new tn_W(a, b), b, c);
	var d = tn_$c(c);
	return d;
}
function tn_Rb(a, b, c) {
	var d = tn_Xe(c), e = b.nodeName.split(/:/);
	if (e.length == 1 || e[0] != "xsl") {
		tn_$e(a, b, c, d);
	} else {
		switch (e[1]) {
		  case "apply-imports":
			alert("not implemented: " + e[1]);
			break;
		  case "apply-templates":
			var f = tn_y(b, "select"), h;
			if (f) {
				h = tn_1(f, a).c();
			} else {
				h = a.node.childNodes;
			}
			var i = a.clone(h[0], 0, h);
			tn_hd(i, b);
			tn_gd(i, b);
			var j = tn_y(b, "mode"), k = b.ownerDocument.documentElement, g = [];
			for (var l = 0; l < k.childNodes.length; ++l) {
				var m = k.childNodes[l];
				if (m.nodeType == 1 && m.nodeName == "xsl:template" && m.getAttribute("mode") == j) {
					g.push(m);
				}
			}
			for (var q = 0; q < i.t(); ++q) {
				var n = i.nodelist[q];
				for (var l = 0; l < g.length; ++l) {
					tn_Rb(i.clone(n, q), g[l], c);
				}
			}
			break;
		  case "attribute":
			var o = tn_y(b, "name"), r = tn_Qb(o, a), p = tn__a(d);
			tn_B(a, b, p);
			var x = tn_G(p);
			tn_la(c, r, x);
			break;
		  case "attribute-set":
			alert("not implemented: " + e[1]);
			break;
		  case "call-template":
			var r = tn_y(b, "name"), k = b.ownerDocument.documentElement, v = a.clone();
			tn_hd(v, b);
			for (var l = 0; l < k.childNodes.length; ++l) {
				var m = k.childNodes[l];
				if (m.nodeType == 1 && m.nodeName == "xsl:template" && tn_Y(m, "name") == r) {
					tn_B(v, m, c);
					break;
				}
			}
			break;
		  case "choose":
			tn_5e(a, b, c);
			break;
		  case "comment":
			var p = tn__a(d);
			tn_B(a, b, p);
			var y = tn_G(p), s = tn_za(d, y);
			c.appendChild(s);
			break;
		  case "copy":
			var p = tn_fd(c, a.node, d);
			if (p) {
				tn_B(a, b, p);
			}
			break;
		  case "copy-of":
			var f = tn_y(b, "select"), x = tn_1(f, a);
			if (x.type == "node-set") {
				var h = x.c();
				for (var l = 0; l < h.length; ++l) {
					tn_6e(c, h[l], d);
				}
			} else {
				var p = tn_V(d, x.a());
				tn_v(c, p);
			}
			break;
		  case "decimal-format":
			alert("not implemented: " + e[1]);
			break;
		  case "element":
			var o = tn_y(b, "name"), r = tn_Qb(o, a), p = tn_ka(d, r);
			tn_v(c, p);
			tn_B(a, b, p);
			break;
		  case "fallback":
			alert("not implemented: " + e[1]);
			break;
		  case "for-each":
			tn_7e(a, b, c);
			break;
		  case "if":
			var z = tn_y(b, "test"), A = tn_1(z, a);
			if (A != null && A.d()) {
				tn_B(a, b, c);
			}
			break;
		  case "import":
			alert("not implemented: " + e[1]);
			break;
		  case "include":
			alert("not implemented: " + e[1]);
			break;
		  case "key":
			alert("not implemented: " + e[1]);
			break;
		  case "message":
			alert("not implemented: " + e[1]);
			break;
		  case "namespace-alias":
			alert("not implemented: " + e[1]);
			break;
		  case "number":
			alert("not implemented: " + e[1]);
			break;
		  case "otherwise":
			alert("error if here: " + e[1]);
			break;
		  case "output":
			break;
		  case "preserve-space":
			break;
		  case "processing-instruction":
			alert("not implemented: " + e[1]);
			break;
		  case "sort":
			break;
		  case "strip-space":
			alert("not implemented: " + e[1]);
			break;
		  case "stylesheet":
		  case "transform":
			tn_B(a, b, c);
			break;
		  case "template":
			var t = tn_y(b, "match");
			if (t && tn_8e(t, a)) {
				tn_B(a, b, c);
			}
			break;
		  case "text":
			var C = tn_G(b), p = tn_V(d, C);
			c.appendChild(p);
			break;
		  case "value-of":
			var f = tn_y(b, "select"), x = tn_1(f, a).a(), p = tn_V(d, x);
			c.appendChild(p);
			break;
		  case "param":
			tn_Sb(a, b, false);
			break;
		  case "variable":
			tn_Sb(a, b, true);
			break;
		  case "when":
			alert("error if here: " + e[1]);
			break;
		  case "with-param":
			alert("error if here: " + e[1]);
			break;
		  default:
			alert("error if here: " + e[1]);
			break;
		}
	}
}
function tn_hd(a, b) {
	for (var c = 0; c < b.childNodes.length; ++c) {
		var d = b.childNodes[c];
		if (d.nodeType == 1 && d.nodeName == "xsl:with-param") {
			tn_Sb(a, d, true);
		}
	}
}
function tn_gd(a, b) {
	var c = [];
	for (var d = 0; d < b.childNodes.length; ++d) {
		var e = b.childNodes[d];
		if (e.nodeType == 1 && e.nodeName == "xsl:sort") {
			var f = tn_y(e, "select"), h = tn_Ja(f), i = tn_y(e, "data-type") || "text", j = tn_y(e, "order") || "ascending";
			c.push({expr:h, type:i, order:j});
		}
	}
	tn_dd(a, c);
}
function tn_Sb(a, b, c) {
	var d = tn_y(b, "name"), e = tn_y(b, "select"), f;
	if (b.childNodes.length > 0) {
		var h = tn__a(b.ownerDocument);
		tn_B(a, b, h);
		f = new tn_x([h]);
	} else {
		if (e) {
			f = tn_1(e, a);
		} else {
			f = new tn_t("");
		}
	}
	if (c || !a.N(d)) {
		a.xa(d, f);
	}
}
function tn_5e(a, b, c) {
	for (var d = 0; d < b.childNodes.length; ++d) {
		var e = b.childNodes[d];
		if (e.nodeType != 1) {
			continue;
		} else {
			if (e.nodeName == "xsl:when") {
				var f = tn_y(e, "test");
				if (tn_1(f, a).d()) {
					tn_B(a, e, c);
					break;
				}
			} else {
				if (e.nodeName == "xsl:otherwise") {
					tn_B(a, e, c);
					break;
				}
			}
		}
	}
}
function tn_7e(a, b, c) {
	var d = tn_y(b, "select"), e = tn_1(d, a).c(), f = a.clone(e[0], 0, e);
	tn_gd(f, b);
	for (var h = 0; h < f.t(); ++h) {
		var i = f.nodelist[h];
		tn_B(f.clone(i, h), b, c);
	}
}
function tn_B(a, b, c) {
	var d = a.clone();
	for (var e = 0; e < b.childNodes.length; ++e) {
		tn_Rb(d, b.childNodes[e], c);
	}
}
function tn_$e(a, b, c, d) {
	if (b.nodeType == 3) {
		if (tn_9e(b)) {
			var e = tn_V(d, b.nodeValue);
			tn_v(c, e);
		}
	} else {
		if (b.nodeType == 1) {
			var e = tn_ka(d, b.nodeName);
			for (var f = 0; f < b.attributes.length; ++f) {
				var h = b.attributes[f];
				if (h) {
					var i = h.nodeName, j = tn_Qb(h.nodeValue, a);
					tn_la(e, i, j);
				}
			}
			tn_v(c, e);
			tn_B(a, b, e);
		} else {
			tn_B(a, b, c);
		}
	}
}
function tn_9e(a) {
	if (!a.nodeValue.match(/^\s*$/)) {
		return true;
	}
	var b = a.parentNode;
	if (b.nodeName == "xsl:text") {
		return true;
	}
	while (b && b.nodeType == 1) {
		var c = tn_Y(b, "xml:space");
		if (c) {
			if (c == "default") {
				return false;
			} else {
				if (c == "preserve") {
					return true;
				}
			}
		}
		b = b.parentNode;
	}
	return false;
}
function tn_Qb(a, b) {
	var c = tn_ma(a, "{");
	if (c.length == 1) {
		return a;
	}
	var d = "";
	for (var e = 0; e < c.length; ++e) {
		var f = tn_ma(c[e], "}");
		if (f.length != 2) {
			d += c[e];
			continue;
		}
		var h = tn_1(f[0], b).a();
		d += h + f[1];
	}
	return d;
}
function tn_y(a, b) {
	var c = tn_Y(a, b);
	if (c) {
		return tn_Nb(c);
	} else {
		return c;
	}
}
function tn_6e(a, b, c) {
	if (b.nodeType == 11 || b.nodeType == 9) {
		for (var d = 0; d < b.childNodes.length; ++d) {
			arguments.callee(a, b.childNodes[d], c);
		}
	} else {
		var e = tn_fd(a, b, c);
		if (e) {
			for (var d = 0; d < b.attributes.length; ++d) {
				arguments.callee(e, b.attributes[d], c);
			}
			for (var d = 0; d < b.childNodes.length; ++d) {
				arguments.callee(e, b.childNodes[d], c);
			}
		}
	}
}
function tn_fd(a, b, c) {
	if (b.nodeType == 1) {
		var d = tn_ka(c, b.nodeName);
		tn_v(a, d);
		return d;
	}
	if (b.nodeType == 3) {
		var d = tn_V(c, b.nodeValue);
		tn_v(a, d);
	} else {
		if (b.nodeType == 4) {
			var d = tn_Za(c, b.nodeValue);
			tn_v(a, d);
		} else {
			if (b.nodeType == 8) {
				var d = tn_za(c, b.nodeValue);
				tn_v(a, d);
			} else {
				if (b.nodeType == 2) {
					tn_la(a, b.nodeName, b.nodeValue);
				}
			}
		}
	}
	return null;
}
function tn_8e(a, b) {
	var c = tn_Ja(a), d;
	if (c.steps && !c.absolute && c.steps.length == 1 && c.steps[0].axis == "child" && c.steps[0].predicate.length == 0) {
		d = c.steps[0].nodetest.evaluate(b).d();
	} else {
		d = false;
		var e = b.node;
		while (!d && e) {
			var f = c.evaluate(b.clone(e, 0, [e])).c();
			for (var h = 0; h < f.length; ++h) {
				if (f[h] == b.node) {
					d = true;
					break;
				}
			}
			e = e.parentNode;
		}
	}
	return d;
}
function tn_Ca(a, b) {
	window[a] = b;
}
tn_Ca("nxslProcess", tn_Ke);
tn_Ca("xmlParse", tn_Ye);
tn_Ca("xsltProcess", tn_af);
tn_Ca("xmlText", tn_$c);
tn_Ca("xmlImportNode", tn_9a);
function tn_gb(a, b, c) {
	this.name = a;
	if (typeof b == "string") {
		var d = tn_u("div", null);
		tn_Qe(d, b);
		b = d;
	}
	this.contentElem = b;
	b.style.zIndex = 9500;
	this.onclick = c;
}
function tn_d() {
	this.U = new tn_X(0, 0, 0, 0);
	this.T = tn_n.ZERO;
	this.g = [];
	this.m = [];
	this.$ = [];
	this.za = [];
	this.s = 0;
	this.q = 0;
	this.n = this.fa(tn_n.ZERO);
	this.e = {};
	this.na = false;
	this.da = false;
	this.ca = false;
	this.ya = new tn_(8, 8);
	this.Q = "ltr";
}
tn_d.prototype.create = function (a, b) {
	var c = this.e, d = tn_7(c, a, [["iw_nw", 6, 6, 0, 0], ["iw_ne", 6, 6, 0, 0], ["iw_xtap", 32, 21, 0, 0], ["iw_xtap_l", 32, 21, 0, 0], ["iw_xtap_u", 32, 21, 0, 0], ["iw_xtap_ul", 32, 21, 0, 0], ["iw_xtap_rd", 21, 32, 0, 0], ["iw_xtap_ld", 21, 32, 0, 0], ["iw_n", 628, 6, 0, 0, "iw_n1"], ["iw_n", 628, 6, 0, 0, "iw_n2"], ["iw_w", 6, 598, 0, 0], ["iw_e", 6, 598, 0, 0], ["iw_s0", 628, 6, 0, 0, "iw_s1"], ["iw_s0", 628, 6, 0, 0, "iw_s2"], ["iw_c", 628, 598, 0, 0], ["iw_sw0", 6, 6, 0, 0, "iw_sw"], ["iw_se0", 6, 6, 0, 0, "iw_se"]]);
	tn_1c(d);
	this.i = d;
	var e = tn_7(c, b, [["iws_nw", 8, 8, 0, 0], ["iws_ne", 8, 8, 0, 0], ["iws_sw", 8, 8, 0, 0], ["iws_se", 8, 8, 0, 0], ["iws_tap", 37, 16, 0, 0], ["iws_tap_l", 32, 16, 0, 0], ["iws_tap_u", 37, 26, 0, 0], ["iws_tap_ul", 32, 26, 0, 0], ["iws_tap_rd", 16, 37, 0, 0], ["iws_tap_ld", 26, 37, 0, 0], ["iws_n", 628, 8, 0, 0, "iws_n1"], ["iws_n", 628, 8, 0, 0, "iws_n2"], ["iws_w", 8, 598, 0, 0], ["iws_e", 8, 598, 0, 0], ["iws_s", 628, 8, 0, 0, "iws_s1"], ["iws_s", 628, 8, 0, 0, "iws_s2"], ["iws_c", 628, 598, 0, 0], ["iws_tab_dl", 8, 28, 0, 0], ["iws_tab_dr", 14, 28, 0, 0], ["iws_tab_l", 8, 28, 0, 0], ["iws_tab_r", 14, 28, 0, 0]]);
	tn_a(c.iws_tab_dl);
	tn_a(c.iws_tab_dr);
	tn_a(c.iws_tab_l);
	tn_a(c.iws_tab_r);
	tn_1c(e);
	this.k = e;
	var f = new tn_n(10, 10), h = tn_2a(tn_3a("close", true), d, tn_.ORIGIN, f);
	h.style.zIndex = 10000;
	this.e.close = h;
	tn_K(h, "pointer");
	tn_Aa(h, this, this.Wa);
	var i = tn_2a(tn_3a("maximize", true), d, tn_.ORIGIN, f);
	i.style.zIndex = 10000;
	tn_na(i);
	tn_K(i, "pointer");
	tn_Aa(i, this, this.maximize);
	this.e.maximize = i;
	var j = tn_2a(tn_3a("restore", true), d, tn_.ORIGIN, f);
	j.style.zIndex = 10001;
	tn_na(j);
	tn_K(j, "pointer");
	tn_Aa(j, this, this.restore);
	this.e.restore = j;
	tn_E(d, tn_qa, this, this.ia);
	tn_E(d, tn_pa, this, this.Ka);
	tn_E(d, tn_2, this, this.ia);
	tn_E(d, tn_nd, this, tn_Ga);
	tn_E(d, tn_ud, this, tn_Ga);
	tn_E(d, tn_vd, this, tn_Ga);
	this.nb();
	this.hide();
};
tn_d.prototype.remove = function () {
	tn_$(this.k);
	tn_$(this.i);
};
tn_d.prototype.Ca = function (a) {
	if (a) {
		tn_h(this.e.maximize);
		tn_h(this.e.restore);
	} else {
		tn_a(this.e.maximize);
		tn_a(this.e.restore);
	}
};
tn_d.prototype.Z = function (a) {
	this.e.close.style.visibility = a ? "visible" : "hidden";
};
tn_d.prototype.kb = function (a) {
	if (a === true || a === "rtl") {
		this.Q = "rtl";
	} else {
		this.Q = "ltr";
	}
};
tn_d.prototype.Ua = function (a) {
	this.na = a;
};
tn_d.prototype.Va = function (a) {
	this.A = a;
};
tn_d.prototype.Ba = function (a) {
	this.da = a;
};
tn_d.prototype.W = function (a, b) {
	if (!a.getClientRects) {
		return this.X(tn_Vc(a));
	}
	var c = this.z(), d = this.e, e = c.width, f = c.height, h = window.innerWidth || document.body.scrollWidth, i = document.documentElement.scrollLeft || window.scrollX || document.body.scrollLeft, j = document.documentElement.scrollTop || window.scrollY || document.body.scrollTop;
	tn_a(d.iw_xtap);
	tn_a(d.iw_xtap_l);
	tn_a(d.iw_xtap_u);
	tn_a(d.iw_xtap_ul);
	tn_a(d.iw_xtap_ld);
	tn_a(d.iw_xtap_rd);
	tn_a(d.iws_tap);
	tn_a(d.iws_tap_l);
	tn_a(d.iws_tap_u);
	tn_a(d.iws_tap_ul);
	tn_a(d.iws_tap_ld);
	tn_a(d.iws_tap_rd);
	var k, g, l = 0, m = 0, q = 0, n, o, r, p, x, v, y, s = a.getClientRects(), z = tn_Vc(a), A = s[0].top - z.y;
	for (var t = 0; t < s.length; ++t) {
		if (t > 0 && s[t].bottom == s[t - 1].bottom) {
			if (s[t].left == s[t - 1].right) {
				s[t].left = s[t - 1].left;
				s[t].top = tn_Q(s[t].top, s[t - 1].top);
			} else {
				if (s[t].right == s[t - 1].left) {
					s[t].right = s[t - 1].right;
					s[t].top = tn_Q(s[t].top, s[t - 1].top);
				}
			}
		}
		if (!p || s[t].left <= p.left) {
			p = s[t];
		}
		if (!x || s[t].right >= x.right) {
			x = s[t];
		}
		if (!v || s[t].top <= v.top) {
			v = s[t];
		}
		if (!y || s[t].bottom >= y.bottom) {
			y = s[t];
		}
	}
	var C = p.left - z.x, u, B, E, G = 0;
	if (this.ca && 21 + e + 6 + 12 + x.right < h) {
		o = true;
		k = d.iw_xtap_ld;
		g = d.iws_tap_ld;
		u = x;
		this.I = 0;
	} else {
		if (this.ca && 18 + e + 21 < p.left) {
			r = true;
			k = d.iw_xtap_rd;
			g = d.iws_tap_rd;
			q = 5;
			u = p;
			this.I = 6 + e + 21;
		} else {
			if (this.da && 21 + f + 6 + 12 + (tn_f(this.g) > 1 ? 20 : 0) > z.y - (this.A ? j : 0)) {
				k = d.iw_xtap_u;
				g = d.iws_tap_u;
				n = true;
				m = 32;
				l = 0;
				u = y;
			} else {
				k = d.iw_xtap;
				g = d.iws_tap;
				m = 32;
				l = 0;
				u = v;
			}
			if (tn_r((u.left + u.right) / 2) + 32 + 6 + 12 > h) {
				if (k == d.iw_xtap_u) {
					k = d.iw_xtap_ul;
					g = d.iws_tap_ul;
				} else {
					k = d.iw_xtap_l;
					g = d.iws_tap_l;
				}
				q = 5;
				l = 32;
				m = 0;
			}
			B = tn_r((e - 32) / 2);
			if (this.na || this.A) {
				if (B + 6 + 12 + l > tn_r((u.left + u.right) / 2)) {
					var D = tn_r((u.left + u.right) / 2) - (this.A ? 0 : i) - 6 - 12 - l;
					if (D < 0) {
						G = tn_Q(-D, tn_r((u.left + u.right) / 2));
						D = 0;
					}
					B = D;
				} else {
					if (tn_r((u.left + u.right) / 2) - l + e - B + 6 + 12 > h) {
						if (n) {
							k = d.iw_xtap_ul;
							g = d.iws_tap_ul;
						} else {
							k = d.iw_xtap_l;
							g = d.iws_tap_l;
						}
						q = 5;
						l = 32;
						m = 0;
						var D = tn_r((u.left + u.right) / 2) - (this.A ? 0 : i) - l + e + 6 + 12 - h;
						if (D > e - 32) {
							G = tn_i(e - 32 - D, -tn_r((u.left + u.right) / 2) + (this.A ? 0 : i));
							D = e - 32;
						}
						B = D;
					}
				}
			}
			E = e - 32 - B;
			this.I = 6 + B + l;
		}
	}
	tn_h(k);
	tn_h(g);
	var I = this.T = b || tn_n.ZERO, J = this.I - G, L = o || r ? 6 : (n ? 0 : this.ja().height + (tn_f(this.g) > 1 ? 20 : 0));
	J -= I.width;
	L -= I.height;
	var F = new tn_((o ? u.right : (r ? u.left : tn_r((u.left + u.right) / 2))) - J - C, (o || r ? tn_r((u.top + u.bottom) / 2) : (n ? u.bottom : u.top)) - L - A);
	this.Hb = F;
	tn_b(this.i, F);
	tn_b(this.k, F);
	this.U = undefined;
	this.oa = a;
	return this.sa(o, r, n, B, E, k, g, q);
};
tn_d.prototype.X = function (a, b) {
	var c = this.z(), d = this.e, e = c.width, f = c.height, h = document.body.scrollWidth, i = document.documentElement.scrollLeft || window.scrollX || document.body.scrollLeft, j = document.documentElement.scrollTop || window.scrollY || document.body.scrollTop;
	tn_a(d.iw_xtap);
	tn_a(d.iw_xtap_l);
	tn_a(d.iw_xtap_u);
	tn_a(d.iw_xtap_ul);
	tn_a(d.iw_xtap_ld);
	tn_a(d.iw_xtap_rd);
	tn_a(d.iws_tap);
	tn_a(d.iws_tap_l);
	tn_a(d.iws_tap_u);
	tn_a(d.iws_tap_ul);
	tn_a(d.iws_tap_ld);
	tn_a(d.iws_tap_rd);
	var k, g, l = 0, m = 0, q = 0, n, o, r, p, x, v = 0, y = this.ca;
	if (y && 21 + e + 6 + 12 + a.x + a.w < i + h) {
		o = true;
		k = d.iw_xtap_ld;
		g = d.iws_tap_ld;
	} else {
		if (y && 18 + e + 21 + i < a.x) {
			r = true;
			k = d.iw_xtap_rd;
			g = d.iws_tap_rd;
			q = 5;
		} else {
			if (this.da && 21 + f + 6 + 12 + (tn_f(this.g) > 1 ? 20 : 0) + (this.A ? j : 0) > a.y) {
				k = d.iw_xtap_u;
				g = d.iws_tap_u;
				m = 32;
				l = 0;
				n = true;
			} else {
				k = d.iw_xtap;
				g = d.iws_tap;
				m = 32;
				l = 0;
			}
			if (a.x + a.w / 2 + 32 + 6 + 12 > i + h) {
				if (k == d.iw_xtap_u) {
					k = d.iw_xtap_ul;
					g = d.iws_tap_ul;
				} else {
					k = d.iw_xtap_l;
					g = d.iws_tap_l;
				}
				q = 5;
				l = 32;
				m = 0;
			}
			p = tn_r((e - 32) / 2);
			if (this.na) {
				if (p + 6 + 12 + l + i > a.x + tn_r(a.w / 2)) {
					var s = a.x + tn_r(a.w / 2) - 6 - 12 - l - i;
					if (s < 0) {
						v = tn_Q(-s, tn_r(a.w / 2));
						s = 0;
					}
					p = s;
				} else {
					if (a.x + tn_r(a.w / 2) - l + e - p + 6 + 12 > i + h) {
						if (n) {
							k = d.iw_xtap_ul;
							g = d.iws_tap_ul;
						} else {
							k = d.iw_xtap_l;
							g = d.iws_tap_l;
						}
						q = 5;
						l = 32;
						m = 0;
						var s = a.x + tn_r(a.w / 2) - l + e + 6 + 12 - h - i;
						if (s > e - 32) {
							v = tn_i(e - 32 - s, -tn_r(a.w / 2));
							s = e - 32;
						}
						p = s;
					}
				}
			}
			x = e - 32 - p;
		}
	}
	tn_h(k);
	tn_h(g);
	this.I = o ? 0 : (r ? 6 + e + 21 : 6 + p + l);
	var z = this.T = b || tn_n.ZERO, A = this.I - v, t = o || r ? 6 : (n ? 0 : this.ja().height + (tn_f(this.g) > 1 ? 20 : 0));
	A -= z.width;
	t -= z.height;
	var C = new tn_(a.x + (o ? a.w : (r ? 0 : a.w / 2)) - A, a.y + (o || r ? a.h / 2 : (n ? a.h : 0)) - t);
	this.Hb = C;
	tn_b(this.i, C);
	tn_b(this.k, C);
	this.U = a;
	this.oa = undefined;
	return this.sa(o, r, n, p, x, k, g, q);
};
tn_d.prototype.sa = function (a, b, c, d, e, f, h, i) {
	var j = !(a || b || c);
	this.aa = f;
	this.Y = h;
	var k = this.z(), g = this.e, l = k.width, m = k.height, q = tn_f(this.g) > 1 ? this.s : 0;
	if (c) {
		tn_k(g.iw_n1, tn_i(d, 0));
		tn_k(g.iw_n2, tn_i(e, 0));
		tn_k(g.iw_s1, l - q);
		tn_k(g.iw_s2, 0);
		tn_k(g.iws_n1, tn_i(d, 0));
		tn_k(g.iws_n2, tn_i(e, 0));
		tn_k(g.iws_s1, l - q);
		tn_k(g.iws_s2, 0);
	} else {
		if (j) {
			tn_k(g.iw_n1, l - q);
			tn_k(g.iw_n2, 0);
			tn_k(g.iw_s1, tn_i(d, 0));
			tn_k(g.iw_s2, tn_i(e, 0));
			tn_k(g.iws_n1, l - q);
			tn_k(g.iws_n2, 0);
			tn_k(g.iws_s1, tn_i(d, 0));
			tn_k(g.iws_s2, tn_i(e, 0));
		} else {
			tn_k(g.iw_n1, l);
			tn_k(g.iw_n2, 0);
			tn_k(g.iw_s1, l - q);
			tn_k(g.iw_s2, 0);
			tn_k(g.iws_n1, l);
			tn_k(g.iws_n2, 0);
			tn_k(g.iws_s1, l - q);
			tn_k(g.iws_s2, 0);
		}
	}
	tn_Fa(g.iw_c, k);
	if (a) {
		tn_z(g.iw_w, tn_i(m - 32, 0));
		tn_z(g.iw_e, tn_i(m, 32));
		tn_z(g.iws_w, tn_i(m - 32, 0));
		tn_z(g.iws_e, tn_i(m, 32));
	} else {
		if (b) {
			tn_z(g.iw_e, tn_i(m - 32, 0));
			tn_z(g.iw_w, tn_i(m, 32));
			tn_z(g.iws_e, tn_i(m - 32, 0));
			tn_z(g.iws_w, tn_i(m, 32));
		} else {
			tn_z(g.iw_w, m);
			tn_z(g.iw_e, m);
			tn_z(g.iws_w, m);
			tn_z(g.iws_e, m);
		}
	}
	var n = a ? 15 : 0, o = n + 5 - 2, r = n + 6, p = r + 5, x = r + l, v = x + 5, y = a ? 0 : (b ? x : r + d), s = y + i, z = y + 32, A = z + 5, t = c ? 15 : (!a && !b && tn_f(this.g) > 1 ? 20 : 0), C = t + 5 - 2, u = t + 6, B = u + 5, E = u + (a || b ? tn_i(m, 32) : m), G = E + 5, D = c || a || b ? E : 0, I = D + 5 - (c || a || b ? 0 : 2), J = c || a || b ? E + 6 - 1 : 0, L = new tn_(r, E), F = new tn_(p, G), M = new tn_(r, t), Z = new tn_(p, C);
	tn_b(g.iw_nw, new tn_(n, t));
	tn_b(g.iws_nw, new tn_(o, C));
	if (j) {
		tn_b(g.iw_n1, new tn_(r + q, t));
		tn_b(g.iws_n1, new tn_(p + q, C));
		tn_b(g.iw_s1, L);
		tn_b(g.iws_s1, F);
		tn_b(g.iw_s2, new tn_(z, E));
		tn_b(g.iws_s2, new tn_(A, G));
		tn_a(g.iws_tab_dl);
		tn_a(g.iws_tab_dr);
		tn_h(g.iws_tab_l);
		tn_h(g.iws_tab_r);
		tn_b(g.iws_tab_l, new tn_(o, I));
		tn_b(g.iws_tab_r, new tn_(p + q - 14, I));
	} else {
		tn_b(g.iw_n1, M);
		tn_b(g.iws_n1, Z);
		tn_b(g.iw_s2, L);
		tn_b(g.iws_s2, F);
		tn_b(g.iw_s1, new tn_(r + q, E));
		tn_b(g.iws_s1, new tn_(p + q, G));
		tn_h(g.iws_tab_dl);
		tn_h(g.iws_tab_dr);
		tn_a(g.iws_tab_l);
		tn_a(g.iws_tab_r);
		tn_b(g.iws_tab_dl, new tn_(o, I));
		tn_b(g.iws_tab_dr, new tn_(p + q - 14, I));
	}
	if (c) {
		tn_b(g.iw_n2, new tn_(z, t));
		tn_b(g.iws_n2, new tn_(A, C));
	} else {
		tn_b(g.iw_n2, M);
		tn_b(g.iws_n2, Z);
	}
	tn_b(g.iw_ne, new tn_(x, t));
	tn_b(g.iws_ne, new tn_(v, C));
	tn_b(g.iw_w, new tn_(n, u + (a ? 32 : 0)));
	tn_b(g.iws_w, new tn_(o, B + (a ? 32 : 0)));
	tn_b(g.iw_c, new tn_(r, u));
	tn_b(g.iws_c, new tn_(p, B));
	tn_k(g.iw_c, x - r);
	tn_z(g.iw_c, E - u);
	tn_k(g.iws_c, v - p);
	tn_z(g.iws_c, G - B);
	tn_b(g.iw_e, new tn_(x, u + (b ? 32 : 0)));
	tn_b(g.iws_e, new tn_(v, B + (b ? 32 : 0)));
	tn_b(g.iw_sw, new tn_(n, E));
	tn_b(g.iws_sw, new tn_(o, G));
	tn_b(g.iw_se, new tn_(x, E));
	tn_b(g.iws_se, new tn_(v, G));
	if (a) {
		tn_b(f, new tn_(0, u));
		tn_b(h, new tn_(0, u));
	} else {
		if (b) {
			tn_b(f, new tn_(x, u));
			tn_b(h, new tn_(v, u));
		} else {
			if (c) {
				tn_b(f, new tn_(y, 0));
				tn_b(h, new tn_(s, 0));
			} else {
				tn_b(f, new tn_(y, E));
				tn_b(h, new tn_(s, G));
			}
		}
	}
	var S;
	if (this.Q == "rtl") {
		S = 0 + r;
	} else {
		S = x - 14 + 0;
	}
	var $ = u - 0;
	tn_b(g.close, new tn_(S, $));
	if (g.close.style.visibility != "hidden") {
		if (this.Q == "rtl") {
			S += 16;
		} else {
			S -= 16;
		}
	}
	var aa = new tn_(S, $);
	tn_b(g.maximize, aa);
	tn_b(g.restore, aa);
	this.ya = new tn_(n + 8, t + 8);
	for (var H = 0; H < tn_f(this.m); H++) {
		var ba = this.m[H];
		tn_b(ba, this.ya);
	}
	if (tn_f(this.g) < 2) {
		tn_a(g.iws_tab_l);
		tn_a(g.iws_tab_r);
		tn_a(g.iws_tab_dl);
		tn_a(g.iws_tab_dr);
		tn_h(g.iw_sw);
		tn_h(g.iws_sw);
		tn_h(g.iw_nw);
		tn_h(g.iws_nw);
	} else {
		if (j) {
			tn_a(g.iw_nw);
			tn_a(g.iws_nw);
			tn_h(g.iw_sw);
			tn_h(g.iws_sw);
		} else {
			tn_a(g.iw_sw);
			tn_a(g.iws_sw);
			tn_h(g.iw_nw);
			tn_h(g.iws_nw);
		}
		for (var H = 0; H < tn_f(this.g); ++H) {
			var T = this.g[H], w = T.images, X = T.textWidth, P = T.labelNode, Y = P.style, N;
			if (H > 0) {
				N = this.za[H - 1];
			}
			tn_a(w.iw_tabback_dl);
			tn_a(w.iw_tabback_dm);
			tn_a(w.iw_tabback_dr);
			tn_a(w.iw_tabback_l);
			tn_a(w.iw_tabback_m);
			tn_a(w.iw_tabback_r);
			tn_a(w.iw_tab_dl);
			tn_a(w.iw_tab_dm);
			tn_a(w.iw_tab_dr);
			tn_a(w.iw_tab_l);
			tn_a(w.iw_tab_m);
			tn_a(w.iw_tab_r);
			tn_a(w.iws_tab_m);
			tn_a(w.iws_tab_dm);
			if (N) {
				tn_a(N.iws_tab_do);
				tn_a(N.iws_tab_o);
			} else {
				tn_a(w.iw_tab_1l);
				tn_a(w.iw_tab_1dl);
				tn_a(w.iw_tabback_1l);
				tn_a(w.iw_tabback_1dl);
				tn_a(w.iws_tab_1l);
				tn_a(w.iws_tab_1dl);
			}
			var K, O, Q, V, R, U = this.i.style.zIndex;
			if (j) {
				if (this.q == H) {
					if (H == 0) {
						K = w.iw_tab_1l;
					} else {
						K = w.iw_tab_l;
					}
					O = w.iw_tab_m;
					Q = w.iw_tab_r;
					++U;
				} else {
					if (H == 0) {
						K = w.iw_tabback_1l;
					} else {
						K = w.iw_tabback_l;
					}
					O = w.iw_tabback_m;
					Q = w.iw_tabback_r;
				}
				V = w.iws_tab_m;
				if (N) {
					R = N.iws_tab_o;
				}
				Y.paddingTop = tn_o(4);
				Y.paddingBottom = tn_o(0);
			} else {
				if (this.q == H) {
					if (H == 0) {
						K = w.iw_tab_1dl;
					} else {
						K = w.iw_tab_dl;
					}
					O = w.iw_tab_dm;
					Q = w.iw_tab_dr;
					++U;
				} else {
					if (H == 0) {
						K = w.iw_tabback_1dl;
					} else {
						K = w.iw_tabback_dl;
					}
					O = w.iw_tabback_dm;
					Q = w.iw_tabback_dr;
				}
				V = w.iws_tab_dm;
				if (N) {
					R = N.iws_tab_do;
				}
				Y.paddingTop = tn_o(4);
				Y.paddingBottom = "";
			}
			tn_h(K);
			tn_h(O);
			tn_h(Q);
			tn_h(V);
			var W = T.offset + (H == 0 ? 6 : 11);
			tn_b(K, new tn_(n + T.offset, D));
			tn_b(O, new tn_(n + W, D));
			tn_k(O, X);
			tn_b(V, new tn_(o + 2 + W, I));
			tn_k(V, X);
			tn_b(Q, new tn_(n + W + X, D));
			if (R) {
				tn_h(R);
				tn_b(R, new tn_(o + W - 14 + 2, I));
				if (!R.parentNode) {
					tn_6(this.k, R);
				}
			}
			K.style.zIndex = U;
			O.style.zIndex = U;
			Q.style.zIndex = U;
			var ca = X + 2 + 3;
			tn_k(P, ca);
			tn_b(P, new tn_(n + W - 2, J));
			tn_h(P);
			P.style.zIndex = U + 1;
			if (!P.parentNode && T.textWidth > 0) {
				tn_6(this.i, P);
			}
		}
	}
};
tn_d.prototype.J = function () {
	if (this.oa) {
		this.W(this.oa, this.T);
	} else {
		if (this.U) {
			this.X(this.U, this.T);
		}
	}
};
tn_d.prototype.z = function () {
	return new tn_n(tn_i(this.n.width, this.s), this.n.height);
};
tn_d.prototype.reset = function (a, b, c, d, e) {
	this.C(c, b, e);
	this.X(a, d);
	this.show();
	tn_na(this.e.restore);
};
tn_d.prototype.hide = function () {
	if (this.aa) {
		tn_a(this.aa);
	}
	if (this.Y) {
		tn_a(this.Y);
	}
	tn_a(this.i);
	tn_a(this.k);
};
tn_d.prototype.show = function () {
	if (this.Ta()) {
		tn_h(this.i);
		tn_h(this.k);
		if (this.aa) {
			tn_h(this.aa);
		}
		if (this.Y) {
			tn_h(this.Y);
		}
	}
};
tn_d.prototype.nb = function () {
	this.Ib = true;
};
tn_d.prototype.Ta = function () {
	return this.i.style.display == "none";
};
tn_d.prototype.ib = function (a) {
	if (a == this.q) {
		return;
	}
	this.wa(a);
	var b = this.m;
	tn_Da(b, tn_a);
	tn_h(b[a]);
	var c = this;
	window.setTimeout(function () {
		c.J();
	}, 0);
};
tn_d.prototype.Wa = function () {
	tn_w(this, tn_Wb);
};
tn_d.prototype.maximize = function (a) {
	if (this.R) {
		return;
	}
	tn_w(this, tn_rd);
	tn_7c(this.e.restore);
	this.pb = this.n;
	this.Gb = this.g;
	this.Fb = this.q;
	this.B = this.B || new tn_n(628, 598);
	var b = new tn_n(4 + this.B.width, 4 + this.B.height);
	if (tn_g.j()) {
		b.width += 1;
	}
	this.ma(b, a);
};
tn_d.prototype.restore = function (a) {
	if (!this.R) {
		return;
	}
	tn_w(this, tn_xd);
	tn_na(this.e.restore);
	this.C(this.B, this.Gb, this.Fb);
	this.wb = this.pb;
	this.ma(this.pb, a);
};
tn_d.prototype.ma = function (a, b) {
	this.la = new tn_ua(b === true ? 1 : 10);
	this.O = this.n;
	this.Na = a;
	this.ga();
};
tn_d.prototype.ga = function () {
	var a = this.la.next();
	if (this.la.more()) {
		tn_Xc(this, this.ga, 10);
	}
	var b = this.O.width + (this.Na.width - this.O.width) * a, c = this.O.height + (this.Na.height - this.O.height) * a;
	this.V(new tn_n(b, c));
	this.J();
	this.rb();
	if (!this.la.more()) {
		this.Ma();
	}
};
tn_d.prototype.Ma = function () {
	if (!this.R) {
		this.R = true;
		tn_w(this, tn_Zb);
		this.C(this.B, this.yb, this.xb);
	} else {
		this.R = false;
		tn_w(this, tn__b);
	}
};
tn_d.prototype.V = function (a) {
	var b = this.n = this.fa(a);
	return b;
};
tn_d.prototype.Ka = function (a) {
	if (tn_g.type == 1) {
		tn_Ya(a);
	} else {
		var b = tn_Zc(a, this.i);
		if (b.y <= this.ka()) {
			tn_Ya(a);
		}
	}
};
tn_d.prototype.ia = function (a) {
	if (tn_g.type == 1) {
		tn_Ga(a);
	} else {
		var b = tn_Zc(a, this.i);
		if (b.y <= this.ka()) {
			a.cancelDrag = true;
		}
	}
};
tn_d.prototype.ka = function () {
	return this.z().height + 12;
};
tn_d.prototype.ja = function () {
	var a = this.z();
	return new tn_n(a.width + 12, a.height + 21 + 6);
};
tn_d.prototype.C = function (a, b, c) {
	this.Fa();
	this.wb = a;
	var d = new tn_n(4 + a.width, 4 + a.height);
	if (tn_g.j()) {
		d.width += 1;
	}
	var e = this.V(d), f = [];
	this.g = f;
	var h = c || 0, i = new tn_n(e.width + -4, e.height + -4), j = this.ya, k = this.m = [];
	for (var g = 0; g < tn_f(b); g++) {
		var l = tn_u("div", this.i, j, i);
		tn_Yc(l);
		if (g != h) {
			tn_a(l);
		}
		l.style.zIndex = 10;
		tn_6(l, b[g].contentElem);
		k.push(l);
	}
	if (tn_f(b) > 1) {
		var m = [];
		this.Ra();
		for (var g = 0; g < tn_f(b); ++g) {
			var q = {images:b[g].images || {}, textWidth:b[g].textWidth || 0, offset:b[g].offset || 0, name:b[g].name, contentElem:b[g].contentElem, onclick:b[g].onclick}, n = q.images;
			tn_7(n, this.i, [["iw_tabback_dl", 11, 26, 0, 0], ["iw_tabback_dm", 1, 26, 0, 0], ["iw_tabback_dr", 14, 26, 0, 0], ["iw_tabback_l", 11, 26, 0, 0], ["iw_tabback_m", 1, 26, 0, 0], ["iw_tabback_r", 14, 26, 0, 0], ["iw_tab_dl", 11, 26, 0, 0], ["iw_tab_dm", 1, 26, 0, 0], ["iw_tab_dr", 14, 26, 0, 0], ["iw_tab_l", 11, 26, 0, 0], ["iw_tab_m", 1, 26, 0, 0], ["iw_tab_r", 14, 26, 0, 0]]);
			tn_7(n, this.k, [["iws_tab_dm", 1, 28, 0, 0], ["iws_tab_m", 1, 28, 0, 0]]);
			function o(y, s) {
				tn_a(s);
				y.$.push(s);
			}
			if (g == 0) {
				tn_7(n, this.i, [["iw_tab_1dl", 6, 26, 0, 0], ["iw_tab_1l", 6, 26, 0, 0], ["iw_tabback_1dl", 6, 26, 0, 0], ["iw_tabback_1l", 6, 26, 0, 0]]);
				tn_7(n, this.k, [["iws_tab_1dl", 8, 28, 0, 0], ["iws_tab_1l", 8, 28, 0, 0]]);
				o(this, n.iw_tab_1dl);
				o(this, n.iw_tab_1l);
				o(this, n.iw_tabback_1dl);
				o(this, n.iw_tabback_1l);
				o(this, n.iws_tab_1dl);
				o(this, n.iws_tab_1l);
			}
			o(this, n.iw_tabback_dl);
			o(this, n.iw_tabback_dm);
			o(this, n.iw_tabback_dr);
			o(this, n.iw_tabback_l);
			o(this, n.iw_tabback_m);
			o(this, n.iw_tabback_r);
			o(this, n.iw_tab_dl);
			o(this, n.iw_tab_dm);
			o(this, n.iw_tab_dr);
			o(this, n.iw_tab_l);
			o(this, n.iw_tab_m);
			o(this, n.iw_tab_r);
			o(this, n.iws_tab_dm);
			o(this, n.iws_tab_m);
			var r = document.createElement("div");
			q.labelNode = r;
			tn_z(r, 20);
			var p = r.style;
			tn_Yc(r);
			p.fontWeight = "bold";
			p.fontFamily = "Arial,sans-serif";
			p.fontSize = tn_o(12);
			p.textAlign = "center";
			p.display = "inline";
			tn_3c(r);
			tn_ia(q.name, r);
			(function (y, s, z, A) {
				tn_Aa(A, y, function () {
					y.ib(s);
					if (z) {
						z();
					}
				});
			})(this, g, b[g].onclick, r);
			this.$.push(r);
			m.push(r);
			this.g.push(q);
			if (g > 0) {
				var x = {};
				tn_7(x, this.k, [["iws_tab_do", 14, 28, 0, 0], ["iws_tab_o", 14, 28, 0, 0]]);
				o(this, x.iws_tab_do);
				o(this, x.iws_tab_o);
				this.za.push(x);
			}
		}
		var v = this;
		tn_Ib(m, function (y) {
			var s;
			if (tn_f(y) == tn_f(f)) {
				for (var z = 0; z < tn_f(y); ++z) {
					var A = s = f[z];
					if (y[z].width != 0) {
						A.textWidth = tn_i(0, y[z].width - 2 - 3);
					}
					tn_h(A.labelNode);
					tn_6(v.i, A.labelNode);
					if (z > 0) {
						var t = f[z - 1];
						A.offset = t.offset + t.textWidth + (z == 1 ? 6 : 11) + 14 - 11;
					}
				}
				v.s = s.offset + s.textWidth + +14 + 11 - 6;
				if (v.s + 30 > e.width) {
					v.V(new tn_n(v.s + 30, e.height));
					var C = new tn_n(v.s + 30 + -4, e.height + -4);
					for (var z = 0; z < tn_f(v.m); ++z) {
						tn_Fa(v.m[z], C);
					}
				}
			}
			v.wa(h);
			v.J();
		});
	} else {
		var q = {images:b[0].images || {}, textWidth:b[0].textWidth || 0, offset:b[0].offset || 0, name:b[0].name, contentElem:b[0].contentElem, onclick:b[0].onclick};
		this.g.push(q);
		this.J();
	}
};
tn_d.prototype.rb = function () {
	var a = new tn_n(this.n.width + -4, this.n.height + -4);
	for (var b = 0; b < tn_f(this.m); b++) {
		var c = this.m[b];
		tn_Fa(c, a);
	}
};
tn_d.prototype.lb = function (a, b, c) {
	this.B = a;
	this.yb = b;
	this.xb = c;
	tn_7c(this.e.maximize);
};
tn_d.prototype.Fa = function () {
	var a = this.m;
	tn_Da(a, tn_$);
	tn_Hc(a);
	var b = this.$;
	tn_Da(b, tn_$);
	tn_Hc(b);
	this.q = 0;
};
tn_d.prototype.fa = function (a) {
	return new tn_n(tn_i(a.width, 32), tn_i(a.height, 0));
};
tn_d.prototype.Ra = function () {
	this.$ = [];
	this.za = [];
	this.s = 0;
};
tn_d.prototype.wa = function (a) {
	tn_3c(this.g[this.q].labelNode);
	this.q = a;
	tn_Te(this.g[a].labelNode);
};
function tn_Te(a) {
	var b = a.style;
	b.color = "";
	b.textDecoration = "";
	tn_K(a, "");
}
function tn_3c(a) {
	var b = a.style;
	b.color = "#0000cc";
	b.textDecoration = "underline";
	tn_K(a, "pointer");
}
function tn_7(a, b, c) {
	var d = tn_u("div", b);
	for (var e = 0; e < tn_f(c); e++) {
		var f = c[e], h = new tn_n(f[1], f[2]), i = new tn_(f[3], f[4]), j = tn_3a(f[0]), k = tn_2a(j, d, i, h, true, true);
		a[f[5] || f[0]] = k;
	}
	return d;
}
function tn_Ne(a, b, c) {
	tn_Ib([a], function (d) {
		b(d[0]);
	}, c);
}
function tn_Ib(a, b, c) {
	var d = c || screen.width, e = tn_u("div", window.document.body, new tn_(-screen.width, -screen.height), new tn_n(d, screen.height)), f = [];
	for (var h = 0; h < tn_f(a); h++) {
		var i = tn_u("div", e, tn_.ORIGIN);
		tn_6(i, a[h]);
		f.push(i);
	}
	window.setTimeout(function () {
		var j = [], k = new tn_n(0, 0);
		for (var g = 0; g < tn_f(f); g++) {
			var l = f[g], m = new tn_n(l.offsetWidth, l.offsetHeight);
			j.push(m);
			l.removeChild(a[g]);
			tn_$(l);
			k.width = tn_i(k.width, m.width);
			k.height = tn_i(k.height, m.height);
		}
		tn_$(e);
		f = null;
		b(j, k);
	}, 0);
}
function tn_2a(a, b, c, d, e, f, h) {
	var i;
	if (e && tn_g.type == 1) {
		i = tn_u("div", b, c, d);
		i.style.overflow = "hidden";
		if (d && f) {
			i.sizingMethod = "scale";
		}
		var j = tn_u("img", i);
		tn_na(j);
		tn_8(j, tn_Xb, tn_6d);
	} else {
		i = tn_u("img", b, c, d);
		if (h) {
			tn_8(i, tn_Xb, tn_5d);
		}
	}
	if (h) {
		i.hideAndTrackLoading = true;
	}
	tn_Lc(i);
	if (tn_g.type == 1) {
		i.galleryImg = "no";
	}
	i.style.border = tn_o(0);
	i.style.padding = tn_o(0);
	i.style.margin = tn_o(0);
	i.oncontextmenu = tn_Pd;
	tn_7d(i, a);
	return i;
}
function tn_6d() {
	var a = this.parentNode;
	a.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=" + (a.sizingMethod ? a.sizingMethod : "crop") + ",src=\"" + this.src + "\")";
	if (a.hideAndTrackLoading) {
		a.loaded = true;
	}
}
function tn_7d(a, b) {
	if (a.tagName == "DIV") {
		a.firstChild.src = b;
		a.src = b;
		if (a.hideAndTrackLoading) {
			a.style.filter = "";
			a.loaded = false;
		}
	} else {
		if (a.hideAndTrackLoading && b != tn_Sa) {
			if (b != tn_Sa) {
				a.loaded = false;
				a.pendingSrc = b;
			} else {
				a.pendingSrc = null;
			}
			a.src = tn_Sa;
		} else {
			a.src = b;
		}
	}
}
function tn_5d() {
	var a = this;
	if (a.src == tn_Sa && a.pendingSrc) {
		a.src = a.pendingSrc;
		a.pendingSrc = null;
	} else {
		a.loaded = true;
	}
}
function tn_3a(a, b) {
	return tn_Pa + a + (b ? ".gif" : ".png");
}
var tn_Pa = "http://images.movo.tv/movo_tv/moki/", tn_Sa = tn_Pa + "transparent.png";
var tn_2b = Number.MAX_VALUE;
var tn_2 = "click", tn_nd = "contextmenu", tn_pa = "dblclick";
var tn_Xb = "load", tn_qa = "mousedown", tn_sd = "mousemove", tn_td = "mouseout", tn_Ma = "mouseup", tn_ud = "mousewheel", tn_vd = "DOMMouseScroll";
var tn_yd = "unload";
var tn_Wb = "closeclick", tn_rd = "maximizeclick", tn_xd = "restoreclick", tn_Zb = "maximizeend", tn__b = "restoreend";
var tn_qd = "dragstart", tn_od = "drag", tn_pd = "dragend", tn_wd = "move", tn_md = "clearlisteners";
var tn_Yb = "logclick";
var tn_Xd = false;
function tn_C() {
	this.f = [];
}
function tn_Wc() {
}
tn_C.instance = function (a) {
	if (!a) {
		a = window;
	}
	if (!a.gEventListenerPool) {
		a.gEventListenerPool = new tn_C;
	}
	return a.gEventListenerPool;
};
tn_C.remove = function (a) {
	tn_C.instance(tn_Ea(a)).gb(a);
};
tn_C.prototype.gb = function (a) {
	var b = this.f.pop(), c = a.La();
	if (c < this.f.length) {
		this.f[c] = b;
		b.K(c);
	}
	a.K(-1);
};
tn_C.push = function (a) {
	tn_C.instance(tn_Ea(a)).db(a);
};
tn_C.prototype.db = function (a) {
	this.f.push(a);
	a.K(this.f.length - 1);
};
tn_C.prototype.clear = function () {
	for (var a = 0; a < this.f.length; ++a) {
		this.f[a].K(-1);
	}
	this.f = [];
};
function tn_Gb(a, b, c) {
	var d = new tn_R(a, b, c, 0);
	tn_C.push(d);
	return d;
}
function tn_Ba(a) {
	a.remove();
	tn_C.remove(a);
}
function tn_Wd(a) {
	tn_w(a, tn_md);
	tn_Da(tn_Qc(a), function (b) {
		b.remove();
		tn_C.remove(b);
	});
}
function tn_Qc(a, b) {
	var c = [], d = a.__e_;
	if (d) {
		if (b) {
			if (d[b]) {
				tn_Cb(c, d[b]);
			}
		} else {
			tn_Yd(d, function (e, f) {
				tn_Cb(c, f);
			});
		}
	}
	return c;
}
function tn_Rc(a, b, c) {
	var d = null, e = a.__e_;
	if (e) {
		d = e[b];
		if (!d) {
			d = [];
			if (c) {
				e[b] = d;
			}
		}
	} else {
		d = [];
		if (c) {
			a.__e_ = {};
			a.__e_[b] = d;
		}
	}
	return d;
}
function tn_w(a, b) {
	var c = [];
	tn_Cb(c, arguments, 2);
	tn_Da(tn_Qc(a, b), function (d) {
		if (tn_Xd) {
			d.apply(a, c);
		} else {
			try {
				d.apply(a, c);
			}
			catch (e) {
			}
		}
	});
}
function tn_8(a, b, c) {
	var d;
	if (tn_g.type == 2 && b == tn_pa) {
		a["on" + b] = c;
		d = new tn_R(a, b, c, 3);
	} else {
		if (a.addEventListener) {
			a.addEventListener(b, c, false);
			d = new tn_R(a, b, c, 1);
		} else {
			if (a.attachEvent) {
				var e = tn_Vd(a, c);
				a.attachEvent("on" + b, e);
				d = new tn_R(a, b, e, 2);
			} else {
				a["on" + b] = c;
				d = new tn_R(a, b, c, 3);
			}
		}
	}
	var f = tn_Ea(a);
	if (a != f || b != tn_yd) {
		tn_C.push(d);
	}
	return d;
}
function tn_E(a, b, c, d) {
	var e = tn_1a(c, d);
	return tn_8(a, b, e);
}
function tn_Aa(a, b, c) {
	tn_E(a, tn_2, b, c);
	if (tn_g.type == 1) {
		tn_E(a, tn_pa, b, c);
	}
}
function tn_1a(a, b) {
	return function (c) {
		if (!c) {
			c = window.event;
		}
		if (c && !c.target) {
			c.target = c.srcElement;
		}
		b.call(a, c, this);
	};
}
function tn_Vd(a, b) {
	return function () {
		return b.apply(a, arguments);
	};
}
function tn_R(a, b, c, d) {
	tn_l(a);
	tn_l(typeof c == "function");
	var e = this;
	e.p = a;
	e.M = b;
	e.P = c;
	e.Eb = d;
	e.Qa = -1;
	tn_2c(e, a);
	tn_Rc(a, b, true).push(e);
}
tn_R.prototype.remove = function () {
	var a = this;
	switch (a.Eb) {
	  case 1:
		a.p.removeEventListener(a.M, a.P, false);
		break;
	  case 2:
		a.p.detachEvent("on" + a.M, a.P);
		break;
	  case 3:
		a.p["on" + a.M] = null;
		break;
	}
	tn__c(tn_Rc(a.p, a.M), a);
	a.p = null;
	a.P = null;
	a.remove = tn_Wc;
	a.apply = tn_Wc;
};
tn_R.prototype.La = function () {
	return this.Qa;
};
tn_R.prototype.K = function (a) {
	this.Qa = a;
};
tn_R.prototype.apply = function (a, b) {
	return this.P.apply(a, b);
};
function tn_Pc(a) {
	tn_Fb(a, tn_Wd);
}
function tn_Ya(a) {
	if (a.type == tn_2) {
		tn_w(document, tn_Yb, a);
	}
	if (tn_g.type == 1) {
		window.event.cancelBubble = true;
		window.event.returnValue = false;
	} else {
		a.preventDefault();
		a.stopPropagation();
	}
}
function tn_Ga(a) {
	if (a.type == tn_2) {
		tn_w(document, tn_Yb, a);
	}
	if (tn_g.type == 1) {
		window.event.cancelBubble = true;
	} else {
		a.stopPropagation();
	}
}
function tn_Pd(a) {
	if (tn_g.type == 1) {
		window.event.returnValue = false;
	} else {
		a.preventDefault();
	}
}
var tn_g, tn_Tb = ["opera", "msie", "safari", "firefox", "mozilla"];
var tn_8b = ["x11;", "macintosh", "windows"];
function tn_Ub(a) {
	this.type = -1;
	this.os = -1;
	this.version = 0;
	this.revision = 0;
	var a = a.toLowerCase();
	for (var b = 0; b < tn_f(tn_Tb); b++) {
		var c = tn_Tb[b];
		if (a.indexOf(c) != -1) {
			this.type = b;
			var d = new RegExp(c + "[ /]?([0-9]+(.[0-9]+)?)");
			if (d.exec(a) != null) {
				this.version = parseFloat(RegExp.$1);
			}
			break;
		}
	}
	for (var b = 0; b < tn_f(tn_8b); b++) {
		var c = tn_8b[b];
		if (a.indexOf(c) != -1) {
			this.os = b;
			break;
		}
	}
	if (this.type == 4 || this.type == 3) {
		if (/\brv:\s*(\d+\.\d+)/.exec(a)) {
			this.revision = parseFloat(RegExp.$1);
		}
	}
}
tn_Ub.prototype.j = function () {
	return this.type == 3 || this.type == 4;
};
tn_g = new tn_Ub(navigator.userAgent);
var tn_ca = "windo";
function tn_u(a, b, c, d, e) {
	var f = tn_Jb(b).createElement(a);
	if (c) {
		tn_b(f, c);
	}
	if (d) {
		tn_Fa(f, d);
	}
	if (b && !e) {
		tn_6(b, f);
		if (b[tn_ca]) {
			f[tn_ca] = b[tn_ca];
		}
	}
	return f;
}
function tn_ia(a, b) {
	var c = tn_Jb(b).createTextNode(a);
	if (b) {
		tn_6(b, c);
	}
	return c;
}
function tn_Jb(a) {
	return (a ? a.ownerDocument : null) || document;
}
function tn_o(a) {
	return tn_r(a) + "px";
}
function tn_Oc(a) {
	return a + "em";
}
function tn_b(a, b) {
	var c = a.style;
	c.position = "absolute";
	c.left = tn_o(b.x);
	c.top = tn_o(b.y);
}
function tn_Fa(a, b) {
	var c = a.style;
	c.width = tn_o(b.width);
	c.height = tn_o(b.height);
}
function tn_k(a, b) {
	a.style.width = tn_o(b);
}
function tn_z(a, b) {
	a.style.height = tn_o(b);
}
function tn_a(a) {
	a.style.display = "none";
}
function tn_h(a) {
	a.style.display = "";
}
function tn_na(a) {
	a.style.visibility = "hidden";
}
function tn_7c(a) {
	a.style.visibility = "";
}
function tn_Oe(a) {
	a.style.position = "absolute";
}
function tn_Yc(a) {
	tn_Se(a, "hidden");
}
function tn_Se(a, b) {
	a.style.overflow = b;
}
var tn_Q = Math.min, tn_i = Math.max;
var tn_r = Math.round, tn_Gc = Math.abs;
function tn_K(a, b) {
	try {
		a.style.cursor = b;
	}
	catch (c) {
		if (b == "pointer") {
			tn_K(a, "hand");
		}
	}
}
function tn_1c(a) {
	tn_Ud(a, "gmnoscreen");
	tn_Sd(a, "gmnoprint");
}
function tn_Sc(a) {
	return typeof a != "undefined";
}
function tn_Hb(a) {
	return typeof a == "number";
}
function tn_Xc(a, b, c) {
	return window.setTimeout(function () {
		b.apply(a);
	}, c);
}
function tn_2d(a) {
	if (tn_g.type == 2) {
		return new tn_(a.pageX - self.pageXOffset, a.pageY - self.pageYOffset);
	} else {
		return new tn_(a.clientX, a.clientY);
	}
}
function tn_1d(a) {
	var b = a.target || a.srcElement;
	if (b.nodeType == 3) {
		b = b.parentNode;
	}
	return b;
}
function tn_6(a, b) {
	a.appendChild(b);
}
function tn_$(a) {
	if (a.parentNode) {
		a.parentNode.removeChild(a);
		tn_Pc(a);
	}
}
function tn_Qd(a) {
	var b;
	while (b = a.firstChild) {
		tn_Pc(b);
		a.removeChild(b);
	}
}
function tn_Qe(a, b) {
	if (a.innerHTML != b) {
		tn_Qd(a);
		a.innerHTML = b;
	}
}
function tn_Lc(a) {
	if (tn_g.j()) {
		a.style.MozUserSelect = "none";
	} else {
		a.unselectable = "on";
		a.onselectstart = tn_Pe;
	}
}
function tn_Da(a, b) {
	var c = tn_f(a);
	for (var d = 0; d < c; ++d) {
		b(a[d], d);
	}
}
function tn_Yd(a, b, c) {
	for (var d in a) {
		if (c || !a.hasOwnProperty || a.hasOwnProperty(d)) {
			b(d, a[d]);
		}
	}
}
function tn_Cb(a, b, c, d) {
	var e = c || 0, f = d || tn_f(b);
	for (var h = e; h < f; ++h) {
		a.push(b[h]);
	}
}
function tn_Pe() {
	return false;
}
function tn_Re(a, b) {
	if (tn_g.type == 1) {
		a.style.filter = "alpha(opacity=" + tn_r(b * 100) + ")";
	} else {
		a.style.opacity = b;
	}
}
function tn_Rd(a, b, c) {
	var d = tn_u("div", a, b, c);
	d.style.backgroundColor = "black";
	tn_Re(d, 0.35);
	return d;
}
function tn_U(a, b) {
	var c = tn_Jb(a);
	if (a.currentStyle) {
		var d = tn_Jc(b);
		return a.currentStyle[d];
	} else {
		if (c.defaultView && c.defaultView.getComputedStyle) {
			var e = c.defaultView.getComputedStyle(a, "");
			return e ? e.getPropertyValue(b) : "";
		} else {
			var d = tn_Jc(b);
			return a.style[d];
		}
	}
}
var tn_Vb = "__mapsBaseCssDummy__";
function tn_ya(a, b, c) {
	var d = c ? c : tn_U(a, b);
	if (tn_Hb(d)) {
		return d;
	} else {
		if (isNaN(parseInt(d, 10))) {
			return d;
		} else {
			if (tn_f(d) > 2 && d.substring(tn_f(d) - 2) == "px") {
				return parseInt(d, 10);
			} else {
				var e = a.ownerDocument.getElementById(tn_Vb);
				if (!e) {
					var e = tn_u("div", a, new tn_(0, 0), new tn_n(0, 0));
					e.id = tn_Vb;
					tn_na(e);
				} else {
					a.parentNode.appendChild(e);
				}
				e.style.width = "0px";
				e.style.width = d;
				return e.offsetWidth;
			}
		}
	}
}
var tn_jd = "border-left-width", tn_kd = "border-top-width";
function tn_ja(a) {
	return new tn_n(tn_Kc(a, tn_jd), tn_Kc(a, tn_kd));
}
function tn_Kc(a, b) {
	var c = tn_U(a, b);
	if (isNaN(parseInt(c, 10))) {
		return 0;
	}
	return tn_ya(a, b, c);
}
function tn_Jc(a) {
	return a.replace(/-(\w)/g, function (b, c) {
		return ("" + c).toUpperCase();
	});
}
function tn_f(a) {
	return a.length;
}
function tn_Hc(a) {
	a.length = 0;
}
function tn_9d(a) {
	var b = false;
	if (a && typeof a == "object") {
		if (typeof Window == "function") {
			b = a instanceof Window;
		} else {
			b = typeof a.navigator == "object" && typeof a.history == "object" && typeof a.document == "object";
		}
	}
	return b;
}
function tn_Ea(a) {
	var b;
	if (tn_9d(a)) {
		b = a;
	} else {
		b = a && a[tn_ca] ? a[tn_ca] : window;
	}
	return b;
}
function tn_2c(a, b) {
	var c = tn_Ea(b);
	a[tn_ca] = c;
	return c;
}
tn_.ORIGIN = new tn_(0, 0);
tn_.prototype.toString = function () {
	return "(" + this.x + ", " + this.y + ")";
};
function tn_n(a, b) {
	this.width = a;
	this.height = b;
}
tn_n.ZERO = new tn_n(0, 0);
tn_n.prototype.toString = function () {
	return "(" + this.width + ", " + this.height + ")";
};
function tn_ba(a) {
	this.minX = (this.minY = tn_2b);
	this.maxX = (this.maxY = -tn_2b);
	var b = arguments;
	if (a && tn_f(a)) {
		for (var c = 0; c < tn_f(a); c++) {
			this.extend(a[c]);
		}
	} else {
		if (tn_f(b) >= 4) {
			this.minX = b[0];
			this.minY = b[1];
			this.maxX = b[2];
			this.maxY = b[3];
		}
	}
}
tn_ba.prototype.min = function () {
	return new tn_(this.minX, this.minY);
};
tn_ba.prototype.max = function () {
	return new tn_(this.maxX, this.maxY);
};
tn_ba.prototype.toString = function () {
	return "(" + this.min() + ", " + this.max() + ")";
};
tn_ba.prototype.extend = function (a) {
	var b = this;
	b.minX = tn_Q(b.minX, a.x);
	b.maxX = tn_i(b.maxX, a.x);
	b.minY = tn_Q(b.minY, a.y);
	b.maxY = tn_i(b.maxY, a.y);
};
tn_ba.intersection = function (a, b) {
	return new tn_ba([new tn_(tn_i(a.minX, b.minX), tn_i(a.minY, b.minY)), new tn_(tn_Q(a.maxX, b.maxX), tn_Q(a.maxY, b.maxY))]);
};
function tn_Mc(a) {
	return a.className ? "" + a.className : "";
}
function tn_Sd(a, b) {
	var c = tn_Mc(a);
	if (c) {
		var d = c.split(/\s+/), e = false;
		for (var f = 0; f < tn_f(d); ++f) {
			if (d[f] == b) {
				e = true;
				break;
			}
		}
		if (!e) {
			d.push(b);
		}
		a.className = d.join(" ");
	} else {
		a.className = b;
	}
}
function tn_Ud(a, b) {
	var c = tn_Mc(a);
	if (!c || c.indexOf(b) == -1) {
		return;
	}
	var d = c.split(/\s+/);
	for (var e = 0; e < tn_f(d); ++e) {
		if (d[e] == b) {
			d.splice(e--, 1);
		}
	}
	a.className = d.join(" ");
}
tn_$d = function (a) {
};
function tn_kb() {
}
tn_kb.monitor = function (a, b, c, d, e) {
};
tn_kb.monitorAll = function (a, b, c) {
};
tn_kb.dump = function () {
};
function tn_D() {
	var a = tn_u("div", document.body), b = a.style;
	b.position = "absolute";
	b.left = tn_o(7);
	b.bottom = tn_o(4);
	b.zIndex = 10000;
	var c = tn_Rd(a, new tn_(2, 2)), d = tn_u("div", a);
	b = d.style;
	b.position = "relative";
	b.zIndex = 1;
	b.fontFamily = "Verdana,Arial,sans-serif";
	b.fontSize = "small";
	b.border = "1px solid black";
	var e = [["Clear", this.clear], ["Close", this.close]], f = tn_u("div", d);
	b = f.style;
	b.position = "relative";
	b.zIndex = 2;
	b.backgroundColor = "#979797";
	b.color = "white";
	b.fontSize = "85%";
	b.padding = tn_o(2);
	tn_K(f, "default");
	tn_Lc(f);
	tn_ia("Log", f);
	for (var h = 0; h < tn_f(e); h++) {
		var i = e[h];
		tn_ia(" - ", f);
		var j = tn_u("span", f);
		j.style.textDecoration = "underline";
		tn_ia(i[0], j);
		tn_Aa(j, this, i[1]);
		tn_K(j, "pointer");
	}
	tn_E(f, tn_qa, this, this.Ga);
	var k = tn_u("div", d);
	b = k.style;
	b.backgroundColor = "white";
	b.width = tn_Oc(80);
	b.height = tn_Oc(10);
	if (tn_g.j()) {
		b.overflow = "-moz-scrollbars-vertical";
	} else {
		b.overflow = "auto";
	}
	tn_8(k, tn_qa, tn_Ga);
	this.S = k;
	this.o = a;
	this.k = c;
}
tn_D.instance = function () {
	var a = tn_D.p;
	if (!a) {
		a = new tn_D;
		tn_D.p = a;
	}
	return a;
};
tn_D.prototype.write = function (a, b) {
	var c = this.Ha();
	if (b) {
		c = tn_u("span", c);
		c.style.color = b;
	}
	tn_ia(a, c);
	this.hb();
};
tn_D.prototype.clear = function () {
	this.S.innerHTML = "";
};
tn_D.prototype.close = function () {
	tn_$(this.o);
};
tn_D.prototype.Ga = function (a) {
	if (!this.tb) {
		this.tb = new tn_j(this.o);
		this.o.style.bottom = "";
	}
};
tn_D.prototype.Ha = function () {
	var a = tn_u("div", this.S), b = a.style;
	b.fontSize = "85%";
	b.borderBottom = "1px solid silver";
	b.paddingBottom = tn_o(2);
	var c = tn_u("div", a);
	c.style.color = "gray";
	c.style.fontSize = "75%";
	tn_ia(this.qb(), c);
	return a;
};
tn_D.prototype.hb = function () {
	this.S.scrollTop = this.S.scrollHeight;
	this.ob();
};
tn_D.prototype.qb = function () {
	var a = new Date;
	return this.H(a.getHours(), 2) + ":" + this.H(a.getMinutes(), 2) + ":" + this.H(a.getSeconds(), 2) + ":" + this.H(a.getMilliseconds(), 3);
};
tn_D.prototype.H = function (a, b) {
	var c = a.toString();
	while (tn_f(c) < b) {
		c = "0" + c;
	}
	return c;
};
tn_D.prototype.ob = function () {
	tn_Fa(this.k, new tn_n(this.o.offsetWidth, this.o.offsetHeight));
};
function tn_j(a, b) {
	if (!tn_j.vb) {
		tn_j.ub();
	}
	var c = tn_2c(this, a);
	b = b || {};
	this.F = b.draggableCursor || tn_j.F;
	this.v = b.draggingCursor || tn_j.v;
	this.r = a;
	this.o = b.container;
	this.bb = b.left;
	this.cb = b.top;
	this.D = false;
	this.u = new tn_(0, 0);
	this.G = false;
	this.L = new tn_(0, 0);
	this.zb = tn_1a(this, this.$a);
	this.Ab = tn_1a(this, this.pa);
	this.Cb = tn_1a(this, this.qa);
	if (tn_g.j()) {
		tn_E(c, tn_td, this, this.ab);
	}
	this.f = [];
	this.eb(a);
}
tn_j.ub = function () {
	var a, b;
	if (tn_g.j()) {
		a = "-moz-grab";
		b = "-moz-grabbing";
	} else {
		a = "url(" + tn_Pa + "openhand.cur), default";
		b = "url(" + tn_Pa + "closedhand.cur), move";
	}
	this.F = this.F || a;
	this.v = this.v || b;
	this.vb = true;
};
tn_j.getDraggingCursor = function () {
	return tn_j.v;
};
tn_j.ua = function (a) {
	this.F = a;
};
tn_j.va = function (a) {
	this.v = a;
};
tn_j.prototype.ua = tn_j.ua;
tn_j.prototype.va = tn_j.va;
tn_j.prototype.eb = function (a) {
	for (var b = 0; b < tn_f(this.f); ++b) {
		tn_Ba(this.f[b]);
	}
	if (this.ra) {
		tn_K(this.r, this.ra);
	}
	this.r = a;
	this.ha = null;
	this.f = [];
	if (!a) {
		return;
	}
	tn_Oe(a);
	this.moveTo(tn_Hb(this.bb) ? this.bb : a.offsetLeft, tn_Hb(this.cb) ? this.cb : a.offsetTop);
	this.ha = a.setCapture ? a : tn_Ea(a);
	this.f.push(tn_8(a, tn_qa, this.zb));
	this.f.push(tn_E(a, tn_Ma, this, this.Ya));
	this.f.push(tn_E(a, tn_2, this, this.Xa));
	this.f.push(tn_E(a, tn_pa, this, this.Za));
	this.ra = a.style.cursor;
	this.ba();
};
tn_j.prototype.moveTo = function (a, b) {
	a = tn_r(a);
	b = tn_r(b);
	if (this.left != a || this.top != b) {
		this.left = a;
		this.top = b;
		var c = this.r.style;
		c.left = tn_o(a);
		c.top = tn_o(b);
		tn_w(this, tn_wd);
	}
};
tn_j.prototype.Za = function (a) {
	tn_w(this, tn_pa, a);
};
tn_j.prototype.Xa = function (a) {
	if (this.D && !a.cancelDrag) {
		tn_w(this, tn_2, a);
	}
};
tn_j.prototype.Ya = function (a) {
	if (this.D) {
		tn_w(this, tn_Ma, a);
	}
};
tn_j.prototype.$a = function (a) {
	tn_w(this, tn_qa, a);
	if (a.cancelDrag) {
		return;
	}
	if (!this.Sa(a)) {
		return;
	}
	this.jb(a);
	this.Ea(a);
	tn_Ya(a);
};
tn_j.prototype.pa = function (a) {
	if (!this.G) {
		return;
	}
	if (tn_g.os == 0) {
		if (a == null) {
			return;
		}
		if (this.dragDisabled) {
			this.savedMove = {};
			this.savedMove.clientX = a.clientX;
			this.savedMove.clientY = a.clientY;
			return;
		}
		tn_Xc(this, function () {
			this.dragDisabled = false;
			this.pa(this.savedMove);
		}, 30);
		this.dragDisabled = true;
		this.savedMove = null;
	}
	var b = this.left + (a.clientX - this.u.x), c = this.top + (a.clientY - this.u.y), d = 0, e = 0, f = this.o;
	if (f) {
		var h = this.r, i = tn_i(0, tn_Q(b, f.offsetWidth - h.offsetWidth));
		d = i - b;
		b = i;
		var j = tn_i(0, tn_Q(c, f.offsetHeight - h.offsetHeight));
		e = j - c;
		c = j;
	}
	this.moveTo(b, c);
	this.u.x = a.clientX + d;
	this.u.y = a.clientY + e;
	tn_w(this, tn_od, a);
};
tn_j.prototype.qa = function (a) {
	this.fb();
	this.Ja(a);
	var b = (new Date).getTime();
	if (b - this.sb <= 500 && tn_Gc(this.L.x - a.clientX) <= 2 && tn_Gc(this.L.y - a.clientY) <= 2) {
		tn_w(this, tn_2, a);
	}
};
tn_j.prototype.ab = function (a) {
	if (!a.relatedTarget && this.G) {
		this.qa(a);
	}
};
tn_j.prototype.enabled = function () {
	return !this.D;
};
tn_j.prototype.ba = function () {
	var a;
	if (this.G) {
		a = this.v;
	} else {
		if (this.D) {
			a = this.ra;
		} else {
			a = this.F;
		}
	}
	tn_K(this.r, a);
};
tn_j.prototype.Sa = function (a) {
	var b = a.button == 0 || a.button == 1;
	if (this.D || !b) {
		tn_Ya(a);
		return false;
	}
	return true;
};
tn_j.prototype.jb = function (a) {
	this.u.x = a.clientX;
	this.u.y = a.clientY;
	if (this.r.setCapture) {
		this.r.setCapture();
	}
	this.sb = (new Date).getTime();
	this.L.x = a.clientX;
	this.L.y = a.clientY;
};
tn_j.prototype.fb = function () {
	if (document.releaseCapture) {
		document.releaseCapture();
	}
};
tn_j.prototype.Ea = function (a) {
	this.G = true;
	this.Bb = tn_8(this.ha, tn_sd, this.Ab);
	this.Db = tn_8(this.ha, tn_Ma, this.Cb);
	tn_w(this, tn_qd, a);
	this.ba();
};
tn_j.prototype.Ja = function (a) {
	this.G = false;
	tn_Ba(this.Bb);
	tn_Ba(this.Db);
	tn_w(this, tn_Ma, a);
	tn_w(this, tn_pd, a);
	this.ba();
};
var tn_cb = "overflow", tn_La = "position", tn_eb = "visible", tn_db = "static", tn_Na = "BODY";
function tn_Db(a, b) {
	var c = new tn_(0, 0);
	while (a && a != b) {
		if (a.nodeName == tn_Na) {
			tn_Td(c, a);
		}
		var d = tn_ja(a);
		c.x += d.width;
		c.y += d.height;
		if (a.nodeName != tn_Na || !tn_g.j()) {
			c.x += a.offsetLeft;
			c.y += a.offsetTop;
		}
		if (tn_g.j() && tn_g.revision >= 1.8 && a.offsetParent && a.offsetParent.nodeName != tn_Na && tn_U(a.offsetParent, tn_cb) != tn_eb) {
			var d = tn_ja(a.offsetParent);
			c.x += d.width;
			c.y += d.height;
		}
		if (a.offsetParent) {
			c.x -= a.offsetParent.scrollLeft;
			c.y -= a.offsetParent.scrollTop;
		}
		if (tn_g.type != 1 && tn_8d(a)) {
			if (tn_g.j()) {
				c.x -= self.pageXOffset;
				c.y -= self.pageYOffset;
				var e = tn_ja(a.offsetParent.parentNode);
				c.x += e.width;
				c.y += e.height;
			}
			break;
		}
		if (tn_g.type == 2 && a.offsetParent) {
			var d = tn_ja(a.offsetParent);
			c.x -= d.width;
			c.y -= d.height;
		}
		a = a.offsetParent;
	}
	if (tn_g.type == 1 && !b && document.documentElement) {
		c.x += document.documentElement.clientLeft;
		c.y += document.documentElement.clientTop;
	}
	if (b && a == null) {
		var f = tn_Db(b);
		return new tn_(c.x - f.x, c.y - f.y);
	} else {
		return c;
	}
}
function tn_8d(a) {
	if (a.offsetParent && a.offsetParent.nodeName == tn_Na && tn_U(a.offsetParent, tn_La) == tn_db) {
		if (tn_g.type == 0 && tn_U(a, tn_La) != tn_db) {
			return true;
		} else {
			if (tn_g.type != 0 && tn_U(a, tn_La) == "absolute") {
				return true;
			}
		}
	}
	return false;
}
function tn_Td(a, b) {
	var c = false;
	if (tn_g.j()) {
		c = tn_U(b, tn_cb) != tn_eb && tn_U(b.parentNode, tn_cb) != tn_eb;
		var d = tn_U(b, tn_La) != tn_db;
		if (d || c) {
			a.x += tn_ya(b, "margin-left");
			a.y += tn_ya(b, "margin-top");
			var e = tn_ja(b.parentNode);
			a.x += e.width;
			a.y += e.height;
		}
		if (d) {
			a.x += tn_ya(b, "left");
			a.y += tn_ya(b, "top");
		}
	}
	if ((tn_g.j() || tn_g.type == 1) && document.compatMode != "BackCompat" || c) {
		if (self.pageYOffset) {
			a.x -= self.pageXOffset;
			a.y -= self.pageYOffset;
		} else {
			a.x -= document.documentElement.scrollLeft;
			a.y -= document.documentElement.scrollTop;
		}
	}
}
function tn_Zc(a, b) {
	if (tn_Sc(a.offsetX)) {
		var c = tn_1d(a), d = tn_Db(c, b), e = new tn_(a.offsetX, a.offsetY);
		if (tn_g.type == 2) {
			var f = tn_ja(c);
			e.x -= f.width;
			e.y -= f.height;
		}
		return new tn_(d.x + e.x, d.y + e.y);
	} else {
		if (tn_Sc(a.clientX)) {
			var h = tn_2d(a), i = tn_Db(b);
			return new tn_(h.x - i.x, h.y - i.y);
		} else {
			return tn_.ORIGIN;
		}
	}
}
function tn_ua(a) {
	this.ticks = a;
	this.tick = 0;
}
tn_ua.prototype.reset = function () {
	this.tick = 0;
};
tn_ua.prototype.next = function () {
	this.tick++;
	var a = Math.PI * (this.tick / this.ticks - 0.5);
	return (Math.sin(a) + 1) / 2;
};
tn_ua.prototype.more = function () {
	return this.tick < this.ticks;
};
tn_ua.prototype.extend = function () {
	if (this.tick > this.ticks / 3) {
		this.tick = tn_r(this.ticks / 3);
	}
};
var tn_fb = "movo-feedback-frame", tn_m, tn_A = null, tn_aa, tn_8a, tn_7a, tn_type, tn_srcid,tn_srcLan='zh', tn_rownm=0, tn_6a = false, tn_Ia = false, tn_0 = false, tn__ = false, tn_Z = {};
tn_Z.right = "left";
tn_Z.left = "right";
tn_Z.ltr = "rtl";
tn_Z.rtl = "ltr";
function tn_Lb(a) {
	return a.substring(0, 1).toUpperCase() + a.substring(1);
}
var _intlStrings = {_originalText:"Original Text:", _interfaceDirection:"ltr", _interfaceAlign:"left", _spid:"" ,_coid:"", _suggestTranslation:"Suggest a translation", _submit:"Submit", _feedbackUrl:"http://space.movo.tv/movo/moki!saveMokiContext.do", _suggestThanks:"Thank you for helping us improve the quality of our translations."};
function tn_lb(a) {
	if (a.nodeType == 3) {
		return a.nodeValue;
	} else {
		if (a.nodeType == 1) {
			var b = new String;
			for (var c = 0; c < a.childNodes.length; ++c) {
				b += tn_lb(a.childNodes[c]);
			}
			return b;
		} else {
			return undefined;
		}
	}
}
function _setupIW() {
	if (tn_6a) {
		return;
	}
	tn_m = new tn_d;
	tn_aa = document.createElement("div");
	tn_aa.id = "movo-infowindow";
	tn_8a = document.createElement("span");
	tn_aa.onmouseover = tn_We;
	tn_aa.onmouseout = tn_Ha;
	document.body.appendChild(tn_8a);
	document.body.appendChild(tn_aa);
	var a = document.createElement("div");
	document.body.appendChild(a);
	tn_a(a);
	a.innerHTML = "<iframe id=\"" + tn_fb + "\" name=\"" + tn_fb + "\"></iframe>";
	tn_m.create(tn_aa, tn_8a);
	tn_aa.firstChild.style.zIndex = 9000;
	tn_8a.firstChild.style.zIndex = 8999;
	tn_m.Z(true);
	tn_m.Ua(true);
	tn_m.Va(true);
	tn_m.Ba(true);
	tn_m.Ca(false);
	tn_m.kb(_intlStrings._interfaceDirection);
	tn_Gb(tn_m, tn_Wb, function () {
		tn_Ha(true);
		if (tn__) {
			tn_5c(false);
		}
	});
	tn_6a = true;
}
var tn_O = null;
function tn_We() {
	tn_Ia = true;
	tn_6c(tn_A);
}
function tn_6c(a) {
	if (!a) {
		return;
	}
	if (tn_O !== null) {
		window.clearTimeout(tn_O);
		tn_O = null;
	}
	if (tn_0) {
		return;
	}
	if (tn_A == a) {
		if (tn__) {
			return;
		}
		tn_7a = tn_A.style.backgroundColor;
		tn_A.style.backgroundColor = "#E6ECF9";
		return;
	}
	if (tn__) {
		tn_m.restore(true);
		tn__ = false;
	}
	var b, c;
	for (var d = 0; d < a.childNodes.length; ++d) {
		if (a.childNodes[d].className == "movo-src-text") {
			b = a.childNodes[d].cloneNode(true);
			c = a.cloneNode(true);
			c.removeChild(c.childNodes[d]);
			b.className = "movo-src-active-text";
			break;
		}
	}
	if (!b) {
		return;
	}
	tn_m.Z(true);
	tn_7a = a.style.backgroundColor;
	a.style.backgroundColor = "#E6ECF9";
	var e = document.createElement("div"), f = document.createElement("div"), h = document.createElement("img"), i = document.createElement("div");
	i.appendChild(h);
	h.width = 78;
	h.height = 11;
	h.border = 0;
	h.style.padding = "0 5px 15px 0";
	h.style.border = "0px solid black";
	i.style.margin = "0px";
	i.style.marginBottom = "-17px";
	i.style.padding = "0px";
	i.style.textAlign = tn_Z[_intlStrings._interfaceAlign];
	h.src = "http://images.movo.tv/movo_tv/moki/moki_logo.gif";
	h.style["margin" + tn_Lb(_intlStrings._interfaceAlign)] = "6px";
	h.style["margin" + tn_Lb(tn_Z[_intlStrings._interfaceAlign])] = tn_o(18);
	e.appendChild(i);
	e.appendChild(f);
	f.appendChild(document.createTextNode(_intlStrings._originalText));
	f.style.color = "#A0A0A0";
	f.style.direction = _intlStrings._interfaceDirection;
	f.style.textAlign = _intlStrings._interfaceAlign;
	f.style.fontSize = "smaller";
	f.style.minHeight = "17px";
	f.style.fontFamily = "arial,sans-serif";
	f.style["margin" + tn_Lb(tn_Z[_intlStrings._interfaceAlign])] = tn_o(72);
	e.appendChild(b);
	e.style.zIndex = 10000;
	
	var j = e.cloneNode(true), k = document.createElement("div");
	k.appendChild(j);
	var g = document.createElement("div"), l = document.createElement("span"), m = document.createElement("div");
	m.style.direction = _intlStrings._interfaceDirection;
	m.style.textAlign = _intlStrings._interfaceAlign;
	m.style.marginTop = tn_o(10);
	g.appendChild(m);
	var q = document.createElement("img");
	q.src = "http://images.movo.tv/movo_tv/moki/moki_+.gif";
	q.width = 9;
	q.height = 9;
	q.border = 0;
	q.style.border = "none";
	m.appendChild(q);
	m.appendChild(document.createTextNode(" "));
	m.appendChild(l);
	l.appendChild(document.createTextNode(_intlStrings._suggestTranslation));
	l.style.direction = _intlStrings._interfaceDirection;
	l.style.textAlign = _intlStrings._interfaceAlign;
	l.style.color = "#77c";
	l.style.textDecoration = "underline";
	l.style.fontFamily = "arial,sans-serif";
	l.style.fontSize = "smaller";
	m.onclick = tn_Ve;
	tn_K(l, "pointer");
	e.appendChild(g);
	var n = document.createElement("div"), o = document.createElement("div"), r = document.createElement("span");
	o.style.direction = _intlStrings._interfaceDirection;
	o.style.textAlign = _intlStrings._interfaceAlign;
	o.style.marginTop = tn_o(10);
	o.style.marginBottom = tn_o(6);
	n.appendChild(o);
	var p = document.createElement("img");
	p.src = "http://images.movo.tv/movo_tv/moki/moki_-.gif";
	p.width = 9;
	p.height = 9;
	p.border = 0;
	p.style.border = "none";
	o.appendChild(p);
	o.appendChild(document.createTextNode(" "));
	o.appendChild(r);
	r.appendChild(document.createTextNode(_intlStrings._suggestTranslation));
	r.style.direction = _intlStrings._interfaceDirection;
	r.style.textAlign = _intlStrings._interfaceAlign;
	r.style.color = "#77c";
	r.style.textDecoration = "underline";
	r.style.fontFamily = "arial,sans-serif";
	r.style.fontSize = "smaller";
	o.onclick = function () {
		tn_5c(true);
	};
	tn_K(r, "pointer");
	var x = document.createElement("div"), v = document.createElement("form");
	v.style.marginBottom = "0px";
	v.style.paddingBottom = "0px";
	v.target = tn_fb;
	v.method = "post";
	v.action = _intlStrings._feedbackUrl;
	x.appendChild(v);
	var z = tn_lb(b), A = document.createElement("input");
	A.type = "hidden";
	A.value = z;
	A.name = "srcContext";
	v.appendChild(A);
	
	var uu1 = document.createElement("input");
	uu1.name = "sourceId";
	uu1.type = "hidden";
	uu1.value = tn_srcid;
	v.appendChild(uu1);
	
	var uu2 = document.createElement("input");
	uu2.name = "srcLan";
	uu2.type = "hidden";
	uu2.value = tn_srcLan;
	v.appendChild(uu2);
	
	var uu3 = document.createElement("input");
	uu3.name = "type";
	uu3.type = "hidden";
	uu3.value = tn_type;
	v.appendChild(uu3);
	
	var uu4 = document.createElement("input");
	uu4.name = "lineNum";
	uu4.type = "hidden";
	uu4.value = tn_rownm;
	v.appendChild(uu4);
	
	var uu5 = document.createElement("input");
	uu5.name = "spid";
	uu5.type = "hidden";
	var spid=_intlStrings._spid
	uu5.value = spid;
	v.appendChild(uu5);
	
    var uu6 = document.createElement("input");
	uu6.name = "coid";
	uu6.type = "hidden";
	var coid=_intlStrings._coid
	uu6.value = coid;
	v.appendChild(uu6);
	
	var C = document.createElement("input");
	C.name = "u";
	C.type = "hidden";
	var u = document.createElement("input");
	u.name = "oe";
	u.type = "hidden";
	var B = window.location.href, E = B.indexOf("u=");
	if (E > -1) {
		alert('a');
		v.appendChild(C);
		var G = B.indexOf("&", E + 2);
		if (G == -1) {
			C.value = window.unescape(B.substring(E + 2));
		} else {
			C.value = window.unescape(B.substring(E + 2, G));
		}
	}
	if (document.charset) {
		u.value = document.charset;
		v.appendChild(u);
	} else {
		if (document.characterSet) {
			u.value = document.characterSet;
			v.appendChild(u);
		} else {
			var D = B.indexOf("oe=");
			if (D > -1) {
				v.appendChild(u);
				var G = B.indexOf("&", D + 3);
				if (G == -1) {
					u.value = window.unescape(B.substring(D + 3));
				} else {
					u.value = window.unescape(B.substring(D + 3, G));
				}
			}
		}
	}
	
	var I = document.createElement("textarea");
	I.rows = 3;
	I.name = "mokiContext";
	var goalcontext = tn_lb(c);
	I.value = goalcontext;
	v.appendChild(I);
	
	
	var J = document.createElement("div");
	J.style.direction = _intlStrings._interfaceDirection;
	J.style.textAlign = tn_Z[_intlStrings._interfaceAlign];
	J.style.marginTop = tn_o(6);
	J.style.marginBottom = "0px";
	v.appendChild(J);
	var L = document.createElement("input");
	L.type = "submit";
	L.value = _intlStrings._submit;
	J.appendChild(L);
	var F = document.createElement("div");
	F.appendChild(document.createElement("hr"));
	F.appendChild(document.createTextNode(_intlStrings._suggestThanks));
	F.style.direction = _intlStrings._interfaceDirection;
	F.style.textAlign = _intlStrings._interfaceAlign;
	F.style.fontFamily = "arial,sans-serif";
	F.style.fontSize = "smaller";
	F.style.overflow = "auto";
	F.style.marginTop = "10px";
	tn_a(F);
	n.appendChild(x);
	k.appendChild(n);
	k.appendChild(F);
	v.onsubmit = function () {
		window.setTimeout(function () {
			tn_a(n);
			tn_h(F);
		}, 1);
		tn_0 = false;
		return true;
	};
	tn_A = a;
	tn_Ib([k, e], function (M) {
		I.style.width = tn_o(M[0].width);
		tn_m.hide();
		tn_m.C(M[1], [new tn_gb(_intlStrings._originalText, e)]);
		tn_m.lb(M[0], [new tn_gb(_intlStrings._originalText, k)]);
		tn_m.W(tn_A);
		tn_m.Z(true);
		tn_m.show();
	}, (document.width || document.body.scrollWidth) / 2);
}
function tn_Ue(a, b, c, d, e) {
	tn_type       = b;
	tn_srcid      = d;    
	tn_srcLan     = e;
	tn_rownm      = c;
	if (!tn_6a) {
		return;
	}
	tn_Ia = true;
	if (tn_0) {
		return;
	}
	if (tn_O !== null) {
		window.clearTimeout(tn_O);
		tn_O = null;
	}
	if (tn_A == a) {
		tn_7a = tn_A.style.backgroundColor;
		tn_A.style.backgroundColor = "#E6ECF9";
		return;
	}
	tn_O = window.setTimeout(function () {
		tn_6c(a);
	}, 500);
}
function tn_Ha(a) {
	if (!tn_6a) {
		return;
	}
	if (a !== true) {
		tn_Ia = false;
	}
	if (tn_0) {
		return;
	}
	if (tn_A && tn_A.style) {
		tn_A.style.backgroundColor = tn_7a;
	}
	if (tn_O) {
		window.clearTimeout(tn_O);
		tn_O = null;
	}
	if (a !== true) {
		tn_O = window.setTimeout(tn_4c, 250);
	} else {
		tn_4c();
	}
}
function tn_4c() {
	if (tn_0) {
		return;
	}
	tn_m.hide();
	if (tn__) {
		tn_m.restore(true);
		tn__ = false;
	}
	tn_A = null;
}
function tn_Ve() {
	tn_0 = true;
	tn__ = true;
	var a = tn_Gb(tn_m, tn_Zb, function () {
		tn_Ba(a);
	});
	tn_m.maximize();
}
function tn_5c(a) {
	var b = tn_Gb(tn_m, tn__b, function () {
		tn_Ba(b);
		tn__ = false;
		if (a) {
			window.setTimeout(function () {
				tn_0 = false;
				if (!tn_Ia) {
					tn_Ha(true);
				}
			}, 500);
		} else {
			tn_0 = false;
			if (!tn_Ia) {
				tn_Ha(true);
			}
		}
	});
	tn_m.restore();
}
var _tipon = tn_Ue, _tipoff = tn_Ha;

