function atoonmouseover(n) {
	n.style.cursor = "pointer";
	n.style.textDecoration = "underline";
	n.style.color = "#CC0033"
}
function atoonmouseout(n) {
	n.style.cursor = "default";
	n.style.textDecoration = "none";
	n.style.color = "black"
}
var tools = new
function() {
	var n = [];
	return n.dom = new
	function() {
		var n = [];
		return n.isReady = !1,
		n.isFunction = function(n) {
			return Object.prototype.toString.call(n) === "[object Function]"
		},
		n.Ready = function(t) {
			n.initReady();
			n.isFunction(t) && (n.isReady ? t() : n.push(t))
		},
		n.fireReady = function() {
			var t, i, r;
			if (!n.isReady) {
				for (n.isReady = !0, t = 0, i = n.length; t < i; t++) r = n[t],
				r();
				n.length = 0
			}
		},
		n.initReady = function() {
			document.addEventListener ? document.addEventListener("DOMContentLoaded",
			function() {
				document.removeEventListener("DOMContentLoaded", arguments.callee, !1);
				n.fireReady()
			},
			!1) : document.getElementById && (document.write('<script id="ie-domReady" defer=\'defer\'src="//:"><\/script>'), document.getElementById("ie-domReady").onreadystatechange = function() {
				this.readyState === "complete" && (n.fireReady(), this.onreadystatechange = null, this.parentNode.removeChild(this))
			})
		},
		n
	},
	n.eventActions = new
	function() {
		var n = [];
		return n.add = function(t, i, r) {
			r.$$guid || (r.$$guid = n.guid++);
			t.events || (t.events = {});
			var u = t.events[i];
			u || (u = t.events[i] = {},
			t["on" + i] && (u[0] = t["on" + i]));
			u[r.$$guid] = r;
			t["on" + i] = n.handle
		},
		n.guid = 1,
		n.remove = function(n, t, i) {
			n.events && n.events[t] && delete n.events[t][i.$$guid]
		},
		n.handle = function(n) {
			var t, i;
			n = n || window.event;
			t = this.events[n.type];
			for (i in t) this.$$handleEvent = t[i],
			this.$$handleEvent(n)
		},
		n
	},
	n.ajax = new
	function() {
		var n = [];
		return n.createXMLHTTPRequest = function() {
			var n = !1;
			try {
				n = new ActiveXObject("Msxml2.XMLHTTP")
			} catch(t) {
				try {
					n = new ActiveXObject("Microsoft.XMLHTTP")
				} catch(i) {
					n = !1
				}
			}
			return n || typeof XMLHttpRequest == "undefined" || (n = new XMLHttpRequest, n.overrideMimeType && n.overrideMimeType("text/xml")),
			n
		},
		n.Get = function(t) {
			var e = t.type,
			o = t.url,
			u = t.async,
			r = t.dataType,
			f = t.success,
			i;
			e == null && (e = "get"); (u == null || typeof u != "boolean") && (u = !0);
			r == null && (r = "text");
			typeof r == "string" && (r = r.toLowerCase());
			i = n.createXMLHTTPRequest();
			i.open(e, o, u);
			i.onreadystatechange = function() {
				if (i.readyState == 4 && (i.status >= 200 && i.status < 300 || i.status == 304) && f != null) switch (r) {
				case "text":
					f(i.responseText);
					break;
				case "xml":
					f(i.responseXML);
					break;
				case "json":
					var n;
					n = JSON.parse ? JSON.parse(i.responseText) : eval("(" + i.responseText + ")");
					f(n)
				}
			};
			i.send(null)
		},
		n.Post = function(t) {
			var o = t.type,
			r, e, u, i;
			o == null && (o = "POST");
			var s = t.url,
			h = t.data,
			f = t.async; (f == null || typeof f != "boolean") && (f = !0);
			r = t.dataType;
			r == null ? r = "text": typeof r == "string" && (r = r.toLowerCase());
			e = t.encode;
			e == null && (e = "UTF-8");
			u = t.success;
			i = n.createXMLHTTPRequest();
			i.open(o, s, f);
			i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=" + e);
			i.setRequestHeader("If-Modified-Since", "0");
			i.onreadystatechange = function() {
				if (i.readyState == 4 && (i.status >= 200 && i.status < 300 || i.status == 304) && u != null) switch (r) {
				case "text":
					u(i.responseText);
					break;
				case "xml":
					u(i.responseXML);
					break;
				case "json":
					var n;
					n = JSON.parse ? JSON.parse(i.responseText) : eval("(" + i.responseText + ")");
					u(n)
				}
			};
			i.send(h)
		},
		n
	},
	n.position = new
	function() {
		var n = [];
		return n.getPositionById = function(n) {
			var t = document.getElementById(n),
			i = t.clientWidth,
			r = t.clientHeight,
			u = t.scrollLeft,
			f = t.scrollTop;
			return {
				top: f,
				left: u,
				height: r,
				width: i
			}
		},
		n.getPosition = function() {
			var n = document.documentElement.clientWidth || document.body.clientWidth,
			t = document.documentElement.clientHeight || document.body.clientHeight,
			i = document.documentElement.scrollLeft || document.body.scrollLeft,
			r = document.documentElement.scrollTop || document.body.scrollTop;
			return {
				top: r,
				left: i,
				height: t,
				width: n
			}
		},
		n.calcXY = function(n, t, i) {
			var r, u;
			switch (i) {
			case "top":
			case "top left":
				r = n.offsetLeft;
				u = n.offsetTop - t.offsetHeight;
				break;
			case "top right":
				r = n.offsetLeft + n.offsetWidth - t.offsetWidth;
				u = n.offsetTop - t.offsetHeight;
				break;
			case "top center":
				r = n.offsetLeft + (n.offsetWidth - t.offsetWidth) / 2;
				u = n.offsetTop - t.offsetHeight;
				break;
			case "right":
				r = n.offsetLeft + n.offsetWidth;
				u = n.offsetTop;
				break;
			case "right top":
				r = n.offsetLeft + n.offsetWidth;
				u = n.offsetTop - t.offsetHeight;
				break;
			case "right center":
				r = n.offsetLeft + n.offsetWidth;
				u = n.offsetTop - t.offsetHeight / 2;
				break;
			case "right bottom":
				r = n.offsetLeft + n.offsetWidth;
				u = n.offsetTop + n.offsetHeight;
				break;
			case "bottom":
			case "bottom left":
				r = n.offsetLeft;
				u = n.offsetTop + n.offsetHeight;
				break;
			case "bottom right":
				r = n.offsetLeft + n.offsetWidth - t.offsetWidth;
				u = n.offsetTop + n.offsetHeight;
				break;
			case "bottom center":
				r = n.offsetLeft + (n.offsetWidth - t.offsetWidth) / 2;
				u = n.offsetTop + n.offsetHeight;
				break;
			case "left":
				r = n.offsetLeft - t.offsetWidth;
				u = n.offsetTop;
				break;
			case "left top":
				r = n.offsetLeft - t.offsetWidth;
				u = n.offsetTop - t.offsetHeight;
				break;
			case "left center":
				r = n.offsetLeft - t.offsetWidth;
				u = n.offsetTop - t.offsetHeight / 2;
				break;
			case "left bottom":
				r = n.offsetLeft - t.offsetWidth;
				u = n.offsetTop + n.offsetHeight;
				break;
			default:
				r = 0;
				u = 0
			}
			return {
				X: r,
				Y: u
			}
		},
		n
	},
	
	n.tagActions = new
	function() {
		var n = [];
		return n.addLinkTag = function(n) {
			var t = document.createElement("link"),
			i;
			t.type = "text/css";
			t.rel = "stylesheet";
			t.href = n;
			i = document.getElementsByTagName("head")[0];
			i.appendChild(t)
		},
		n.addStyleTag = function(n) {
			var t = document.createElement("style"),
			i;
			t.type = "text/css";
			try {
				t.appendChild(document.createTextNode(n))
			} catch(r) {
				t.styleSheet.cssText = n
			}
			i = document.getElementsByTagName("head")[0];
			i.appendChild(t)
		},
		n.addScriptTag = function(n, t) {
			var i = document.createElement("script"),
			r;
			i.type = "text/javascript";
			i.language = "javascript";
			i.src = n;
			typeof t == "boolean" && (i.async = t);
			r = document.getElementsByTagName("head")[0];
			r.appendChild(i)
		},
		n
	},
	n.addFavorite = function() {
		if (document.all) try {
			window.external.addFavorite(window.location.href, document.title)
		} catch(n) {
			alert("加入收藏失败，请使用Ctrl+D进行添加")
		} else window.sidebar ? window.sidebar.addPanel(document.title, window.location.href, "") : alert("加入收藏失败，请使用Ctrl+D进行添加")
	},
	n.textPrompt = new
	function() {
		var t = [];
		return t.init = function(t) {
			function u(t) {
				var i = [],
				u,
				r;
				if (t.name != "" ? i = n.elements.get.byTagName("input", document.getElementsByName(t.name)[0] || document.getElementsByTagName("body")[0]) : t.className != "" && (i = n.elements.get.byClass(t.className, document.getElementsByTagName("body")[0], "input")), i.length <= 0) {
					for (t.name = "form1", u = document.getElementsByName(t.name) || [], r = 0; r < u.length; r++) if (i = n.elements.get.byTagName("input", u[r] || document.getElementsByTagName("body")[0]), i.length > 0) break;
					i.length <= 0 && (t.className = "live800TextPrompt", i = n.elements.get.byClass(t.className, document.getElementsByTagName("body")[0], "input"))
				}
				return i.length <= 0 && (i = n.elements.get.byTagName("input", document.getElementsByTagName("body")[0])),
				i
			}
			function f(t, i) {
				for (var u, r = 0; r < i.length; r++) u = document.createElement("label"),
				u.style.cssText = "position:absolute;margin-left:3px;margin-top:3px;color:" + t.color + ";z-index:1;display:inline-block; overflow:hidden;",
				u.innerText = i[r].getAttribute("placeholder"),
				i[r].parentNode.insertBefore(u, i[r]),
				n.eventActions.add(u, "click",
				function() {
					var t = n.elements.get.byNextNode(this);
					this.style.display = "none";
					t.focus()
				})
			}
			function e(t, i) {
				for (var r = 0; r < i.length; r++) n.eventActions.add(i[r], "focus",
				function() {
					var i = n.elements.get.byPreviousNode(this);
					i.style.display = "none";
					i.style.color = t.focusTextColor
				}),
				n.eventActions.add(i[r], "blur",
				function() {
					if (this.value == "") {
						var i = n.elements.get.byPreviousNode(this);
						i.style.display = "inline-block";
						i.style.color = t.blurTextColor
					}
				})
			}
			function o(t, i) {
				for (var u, r = 0; r < i.length; r++) u = i[r],
				u.defaultValue = u.getAttribute("placeholder"),
				u.value = u.defaultValue,
				n.eventActions.add(i[r], "focus",
				function() {
					t.focus(this, t)
				}),
				n.eventActions.add(i[r], "blur",
				function() {
					t.blur(this, t)
				})
			}
			var s = document.createElement("input"),
			i,
			r;
			typeof s.placeholder == "undefined" && (t = t || {},
			i = new
			function() {
				var e = t.name || "",
				o = t.className || "live800TextPrompt",
				s = t.color || "gray",
				h = t.blurTextColor || "gray",
				c = t.focusTextColor || "black",
				f = t.auto,
				n, i, r, u;
				return (f == null || typeof f != "boolean") && (f = !1),
				n = t.isLabel,
				(n == null || typeof n != "boolean") && (n = !0),
				i = t.blur,
				(i == null || typeof i != "function") && (i = function(n, t) {
					n.value == "" && (n.value = n.defaultValue, n.style.color = t.blurTextColor)
				}),
				r = t.focus,
				(r == null || typeof r != "function") && (r = function(n, t) {
					n.value == n.defaultValue && (n.value = "", n.style.color = t.focusTextColor)
				}),
				u = t.only,
				(u == null || typeof u != "boolean") && (u = !1),
				{
					name: e,
					className: o,
					color: s,
					blurTextColor: h,
					focusTextColor: c,
					blur: i,
					focus: r,
					only: u,
					auto: f,
					isLabel: n
				}
			},
			r = u(i), i.isLabel ? (f(i, r), e(i, r)) : o(i, r))
		},
		t
	},
	n.highCurrentUrl = new
	function(n) {
		n = n || {};
		var t = new
		function() {
			var t = n.className || "hover",
			i = n.urls || $("ul:first li"),
			r = n.ref || "ref",
			u = n.urlstr || window.location.href,
			f = n.urlstatus || !1;
			return {
				className: t,
				urls: i,
				ref: r,
				urlstr: u,
				urlstatus: f
			}
		};
		t.urls.each(function() { (t.urlstr + "/").indexOf($(this).attr(t.ref)) > -1 && $(this).attr(t.ref) !== "" ? ($(this).addClass(t.className), t.urlstatus = !0) : $(this).removeClass(t.className)
		});
		t.urlstatus || t.urls.eq(0).addClass(t.className)
	},
	n
};
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.4
*
* Requires: 1.2.2+
*/
(function(n) {
	function i(t) {
		var i = t || window.event,
		e = [].slice.call(arguments, 1),
		r = 0,
		f = 0,
		u = 0;
		return t = n.event.fix(i),
		t.type = "mousewheel",
		t.wheelDelta && (r = t.wheelDelta / 120),
		t.detail && (r = -t.detail / 3),
		u = r,
		i.axis !== undefined && i.axis === i.HORIZONTAL_AXIS && (u = 0, f = -1 * r),
		i.wheelDeltaY !== undefined && (u = i.wheelDeltaY / 120),
		i.wheelDeltaX !== undefined && (f = i.wheelDeltaX / -120),
		e.unshift(t, r, f, u),
		n.event.handle.apply(this, e)
	}
	var t = ["DOMMouseScroll", "mousewheel"];
	n.event.special.mousewheel = {
		setup: function() {
			if (this.addEventListener) for (var n = t.length; n;) this.addEventListener(t[--n], i, !1);
			else this.onmousewheel = i
		},
		teardown: function() {
			if (this.removeEventListener) for (var n = t.length; n;) this.removeEventListener(t[--n], i, !1);
			else this.onmousewheel = null
		}
	};
	n.fn.extend({
		mousewheel: function(n) {
			return n ? this.bind("mousewheel", n) : this.trigger("mousewheel")
		},
		unmousewheel: function(n) {
			return this.unbind("mousewheel", n)
		}
	})
})(jQuery)
