// Input 0
function openNewWindow(a, b, c) {
	newWindow = window.open(a, b, c)
}
function setActiveStyleSheet(a) {
	var b, c;
	for (b = 0; c = document.getElementsByTagName("link")[b]; b++) {
		if (c.getAttribute("rel").indexOf("style") != -1 && c.getAttribute("title")) {
			c.disabled = true;
			if (c.getAttribute("title") == a) {
				c.disabled = false
			}
		}
	}
}
function getActiveStyleSheet() {
	var a, b;
	for (a = 0; b = document.getElementsByTagName("link")[a]; a++) {
		if (b.getAttribute("rel").indexOf("style") != -1 && b.getAttribute("title") && !b.disabled) {
			return b.getAttribute("title")
		}
	}
	return null
}
function getPreferredStyleSheet() {
	var a, b;
	for (a = 0; b = document.getElementsByTagName("link")[a]; a++) {
		if (b.getAttribute("rel").indexOf("style") != -1 && b.getAttribute("rel").indexOf("alt") == -1 && b.getAttribute("title")) {
			return b.getAttribute("title")
		}
	}
	return null
}
function createCookie(a, b, c) {
	if (c) {
		var d = new Date;
		d.setTime(d.getTime() + c * 24 * 60 * 60 * 1E3);
		c = "; expires=" + d.toGMTString()
	} else {
		c = ""
	}
	document.cookie = a + "=" + b + c + "; path=/"
}
function readCookie(a) {
	a = a + "=";
	for (var b = document.cookie.split(";"), c = 0; c < b.length; c++) {
		for (var d = b[c]; d.charAt(0) == " "; ) {
			d = d.substring(1, d.length)
		}
		if (d.indexOf(a) == 0) {
			return d.substring(a.length, d.length)
		}
	}
	return null
}
window.onload = function () {
	var a = readCookie("style");
	a = a ? a : getPreferredStyleSheet();
	setActiveStyleSheet(a)
};
window.onunload = function () {
	var a = getActiveStyleSheet();
	createCookie("style", a, 365)
};
var cookie = readCookie("style"), title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
function ToggleDivCheckboxes(a, b, c) {
	outerObj = MM_findObj(a);
	for (i = 0; i < outerObj.elements.length; i++) {
		el = outerObj.elements[i];
		if (b != "") {
			if (el.id.substr(el.id.length - 7, el.id.length - 1) == b) {
				el.checked = c
			}
		} else {
			el.checked = c
		}
	}
}
function flvFPW1() {
	var a = arguments, b = a[2].split(","), c = a.length > 3 ? a[3] : false, d = a.length > 4 ? parseInt(a[4]) : 0, k = a.length > 5 ? parseInt(a[5]) : 0, f = 0, g, e, h, l, m, n;
	g = ["width,left," + d, "height,top," + k];
	for (i = 0; i < g.length; i++) {
		e = g[i].split(",");
		l_iTarget = parseInt(e[2]);
		if (l_iTarget > 1 || a[2].indexOf("%") > -1) {
			h = eval("screen." + e[0]);
			for (d = 0; d < b.length; d++) {
				k = b[d].split("=");
				if (k[0] == e[0]) {
					l = parseInt(k[1]);
					if (k[1].indexOf("%") > -1) {
						l = l / 100 * h;
						b[d] = e[0] + "=" + l
					}
				}
				if (k[0] == e[1]) {
					n = parseInt(k[1]);
					m = d
				}
			}
			if (l_iTarget == 2) {
				f = (h - l) / 2;
				m = b.length
			} else {
				if (l_iTarget == 3) {
					f = h - l - n
				}
			}
			b[m] = e[1] + "=" + f
		}
	}
	b = b.join(",");
	a = window.open(a[0], a[1], b);
	c && a.focus();
	document.MM_returnValue = false;
	return a
}
function MM_preloadImages() {
	var a = document;
	if (a.images) {
		if (!a.MM_p) {
			a.MM_p = []
		}
		var b, c = a.MM_p.length, d = MM_preloadImages.arguments;
		for (b = 0; b < d.length; b++) {
			if (d[b].indexOf("#") != 0) {
				a.MM_p[c] = new Image;
				a.MM_p[c++].src = d[b]
			}
		}
	}
}
function MM_swapImgRestore() {
	var a, b, c = document.MM_sr;
	for (a = 0; c && a < c.length && (b = c[a]) && b.oSrc; a++) {
		b.src = b.oSrc
	}
}
function MM_findObj(a, b) {
	var c, d;
	b || (b = document);
	if ((c = a.indexOf("?")) > 0 && parent.frames.length) {
		b = parent.frames[a.substring(c + 1)].document;
		a = a.substring(0, c)
	}
	if (!(d = b[a]) && b.all) {
		d = b.all[a]
	}
	for (c = 0; !d && c < b.forms.length; c++) {
		d = b.forms[c][a]
	}
	for (c = 0; !d && b.layers && c < b.layers.length; c++) {
		d = MM_findObj(a, b.layers[c].document)
	}
	if (!d && b.getElementById) {
		d = b.getElementById(a)
	}
	return d
}
function MM_swapImage() {
	var a, b = 0, c, d = MM_swapImage.arguments;
	document.MM_sr = [];
	for (a = 0; a < d.length - 2; a += 3) {
		if ((c = MM_findObj(d[a])) != null) {
			document.MM_sr[b++] = c;
			if (!c.oSrc) {
				c.oSrc = c.src
			}
			c.src = d[a + 2]
		}
	}
}
function MM_showHideLayers() {
	var a, b, c, d = MM_showHideLayers.arguments;
	for (a = 0; a < d.length - 2; a += 3) {
		if ((c = MM_findObj(d[a])) != null) {
			b = d[a + 2];
			if (c.style) {
				c = c.style;
				b = b == "show" ? "visible" : b == "hide" ? "hidden" : b
			}
			c.visibility = b
		}
	}
}
function MM_reloadPage(a) {
	if (a == true) {
		with (navigator) {
			if (appName == "Netscape" && parseInt(appVersion) == 4) {
				document.MM_pgW = innerWidth;
				document.MM_pgH = innerHeight;
				onresize = MM_reloadPage
			}
		}
	} else {
		if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) {
			location.reload()
		}
	}
}
MM_reloadPage(true);
function MM_changeProp(a, b, c, d) {
	if ((a = MM_findObj(a)) && (c.indexOf("style.") == -1 || a.style)) {
		eval("obj." + c + "='" + d + "'")
	}
}
function MM_validateForm() {
	var a, b, c, d, k, f, g = "", e = MM_validateForm.arguments;
	for (a = 0; a < e.length - 2; a += 3) {
		d = e[a + 2];
		if (val = MM_findObj(e[a])) {
			c = val.name;
			if ((val = val.value) != "") {
				if (d.indexOf("isEmail") != -1) {
					b = val.indexOf("@");
					if (b < 1 || b == val.length - 1) {
						g += "- " + c + " must contain an e-mail address.\n"
					}
				} else {
					if (d != "R") {
						k = parseFloat(val);
						if (isNaN(val)) {
							g += "- " + c + " must contain a number.\n"
						}
						if (d.indexOf("inRange") != -1) {
							b = d.indexOf(":");
							f = d.substring(8, b);
							b = d.substring(b + 1);
							if (k < f || b < k) {
								g += "- " + c + " must contain a number between " + f + " and " + b + ".\n"
							}
						}
					}
				}
			} else {
				if (d.charAt(0) == "R") {
					g += "- " + c + " is required.\n"
				}
			}
		}
	}
	g && alert("The following error(s) occurred:\n" + g);
	document.MM_returnValue = g == ""
}
function MM_goToURL() {
	for (var a = 0; a < MM_goToURL.arguments.length - 1; a += 2) {
		eval(MM_goToURL.arguments[a] + ".location='" + MM_goToURL.arguments[a + 1] + "'")
	}
	document.MM_returnValue = false
}
function MM_openBrWindow(a, b, c) {
	window.open(a, b, c)
}
function close_window() {
	window.close("attach")
}
function ConfirmBox(a, b) {
	if (confirm(a)) {
		location.href = b
	}
}
function MM_popupMsg(a) {
	alert(a)
}
function highlight(a) {
	a.focus();
	a.select()
}
function SelectAll(a) {
	for (i = 0; i < document.ArticleUpdate.elements.length; i++) {
		el = document.ArticleUpdate.elements[i];
		if (el.name == a) {
			el.checked = true
		}
	}
}
function UnSelectAll(a) {
	for (i = 0; i < document.ArticleUpdate.elements.length; i++) {
		el = document.ArticleUpdate.elements[i];
		if (el.name == a) {
			el.checked = false
		}
	}
}
function YY_checkform() {
	var a = YY_checkform.arguments, b = true, c = b = "", d = false, k, f, g, e, h;
	for (h = 1; h < a.length; h += 4) {
		if (a[h + 1].charAt(0) == "#") {
			k = true;
			a[h + 1] = a[h + 1].substring(1)
		} else {
			k = false
		}
		f = MM_findObj(a[h].replace(/\[\d+\]/ig, ""));
		g = MM_findObj(a[h + 1].replace(/\[\d+\]/ig, ""));
		b = f.value;
		e = a[h + 2];
		if (f.type == "text" || f.type == "password" || f.type == "hidden") {
			if (k && b.length == 0) {
				d = true
			}
			if (b.length > 0) {
				if (e == 1) {
					e = a[h + 1].split("_");
					if (isNaN(b) || b < e[0] / 1 || b > e[1] / 1) {
						d = true
					}
				} else {
					if (e == 2) {
						f = /^[\w.=-]+@[\w\.-]+\.[a-zA-Z]{2,4}$/;
						f.test(b) || (d = true)
					} else {
						if (e == 3) {
							e = a[h + 1].split("#");
							if (b = b.match(e[0])) {
								f = b[e[1]] ? b[e[1]] : 1;
								g = b[e[2]] - 1;
								b = b[e[3]];
								e = new Date(b, g, f);
								if (e.getFullYear() != b || e.getDate() != f || e.getMonth() != g) {
									d = true
								}
							} else {
								d = true
							}
						} else {
							if (e == 4) {
								e = a[h + 1].split("#");
								(b = b.match(e[0])) || (d = true)
							} else {
								if (e == 5) {
									if (g.length) {
										g = g[a[h + 1].replace(/(.*\[)|(\].*)/ig, "")]
									}
									g.checked || (d = true)
								} else {
									if (e == 6) {
										if (b != MM_findObj(a[h + 1]).value) {
											d = true
										}
									}
								}
							}
						}
					}
				}
			}
		} else {
			if (!f.type && f.length > 0 && f[0].type == "radio") {
				b = a[h].match(/(.*)\[(\d+)\].*/i);
				o2 = f.length > 1 ? f[b[2]] : f;
				if (e == 1 && o2 && o2.checked && g && g.value.length / 1 == 0) {
					d = true
				}
				if (e == 2) {
					b = false;
					for (g = 0; g < f.length; g++) {
						b = b || f[g].checked
					}
					b || (c += "* " + a[h + 3] + "\n")
				}
			} else {
				if (f.type == "checkbox") {
					if (e == 1 && f.checked == false || e == 2 && f.checked && g && g.value.length / 1 == 0) {
						d = true
					}
				} else {
					if (f.type == "select-one" || f.type == "select-multiple") {
						if (e == 1 && f.selectedIndex / 1 == 0) {
							d = true
						}
					} else {
						if (f.type == "textarea") {
							if (b.length < a[h + 1]) {
								d = true
							}
						}
					}
				}
			}
		}
		if (d) {
			c += "* " + a[h + 3] + "\n";
			d = false
		}
	}
	c != "" && alert("The required information is incomplete or contains errors:\t\t\t\t\t\n\n" + c);
	document.MM_returnValue = c == ""
}
function GetTitle() {
	return document.title
}
function GetURL() {
	return document.URL
}
function MM_jumpMenu(a, b, c) {
	eval(a + ".location='" + b.options[b.selectedIndex].value + "'");
	if (c) {
		b.selectedIndex = 0
	}
}
function addEvent(a, b, c) {
	if (a.addEventListener) {
		a.addEventListener(b, c, false);
		EventCache.add(a, b, c)
	} else {
		if (a.attachEvent) {
			a["e" + b + c] = c;
			a[b + c] = function () {
				a["e" + b + c](window.event)
			};
			a.attachEvent("on" + b, a[b + c]);
			EventCache.add(a, b, c)
		} else {
			a["on" + b] = a["e" + b + c]
		}
	}
}
var EventCache = function () {
	var a = [];
	return { listEvents: a, add: function () {
		a.push(arguments)
	}, flush: function () {
		var b, c;
		for (b = a.length - 1; b >= 0; b -= 1) {
			c = a[b];
			c[0].removeEventListener && c[0].removeEventListener(c[1], c[2], c[3]);
			if (c[1].substring(0, 2) != "on") {
				c[1] = "on" + c[1]
			}
			c[0].detachEvent && c[0].detachEvent(c[1], c[2]);
			c[0][c[1]] = null
		}
	} 
	}
} ();
addEvent(window, "unload", EventCache.flush);
function addLoadEvent(a) {
	var b = window.onload;
	window.onload = typeof window.onload != "function" ? a : function () {
		b();
		a()
	}
}
function getElementsByClass(a, b, c) {
	var d = [];
	if (b == null) {
		b = document
	}
	if (c == null) {
		c = "*"
	}
	b = b.getElementsByTagName(c);
	c = b.length;
	a = RegExp("(^|\\s)" + a + "(\\s|$)");
	for (j = i = 0; i < c; i++) {
		if (a.test(b[i].className)) {
			d[j] = b[i];
			j++
		}
	}
	return d
}
function toggle(a) {
	a = document.getElementById(a);
	a.style.display = a.style.display != "none" ? "none" : ""
}
function insertAfter(a, b, c) {
	a.insertBefore(b, c.nextSibling)
}
Array.prototype.inArray = function (a) {
	var b;
	for (b = 0; b < this.length; b++) {
		if (this[b] === a) {
			return true
		}
	}
	return false
};
function getCookie(a) {
	var b = document.cookie.indexOf(a + "="), c = b + a.length + 1;
	if (!b && a != document.cookie.substring(0, a.length)) {
		return null
	}
	if (b == -1) {
		return null
	}
	a = document.cookie.indexOf(";", c);
	if (a == -1) {
		a = document.cookie.length
	}
	return unescape(document.cookie.substring(c, a))
}
function setCookie(a, b, c, d, k, f) {
	var g = new Date;
	g.setTime(g.getTime());
	if (c) {
		c = c * 1E3 * 60 * 60 * 24
	}
	g = new Date(g.getTime() + c);
	document.cookie = a + "=" + escape(b) + (c ? ";expires=" + g.toGMTString() : "") + (d ? ";path=" + d : "") + (k ? ";domain=" + k : "") + (f ? ";secure" : "")
}
function deleteCookie(a, b, c) {
	if (getCookie(a)) {
		document.cookie = a + "=" + (b ? ";path=" + b : "") + (c ? ";domain=" + c : "") + ";expires=Thu, 01-Jan-1970 00:00:01 GMT"
	}
}
function $() {
	for (var a = [], b = 0; b < arguments.length; b++) {
		var c = arguments[b];
		if (typeof c == "string") {
			c = document.getElementById(c)
		}
		if (arguments.length == 1) {
			return c
		}
		a.push(c)
	}
	return a
}
function showHideWithCheckbox(a, b) {
	$(b).attr("checked") ? $(a).show() : $(a).hide()
}
;
