if (typeof(window["touhou"]) == "undefined")
	window["touhou"] = new Object();

if (typeof(touhou["imgHover"]) == "undefined")
{
	touhou["imgHover"] = {
		"onHover": function(item) {
			if (a = item.getAttribute("srcHov"))
				item.src = a;
		},
		"onBlur": function(item) {
			if (a = item.getAttribute("srcOrg"))
				item.src = a;
		}
	};
}

if (typeof(touhou["btnHover"]) == "undefined")
{
	touhou["btnHover"] = {
		"onHover": function(item) {
			css = "";
			if (x = item.getAttribute("xHov"))
				css += -(new Number(x)) + "px";
			else
				css += "0 ";
			if (y = item.getAttribute("yHov"))
				css += -(new Number(y)) + "px";
			else
				css += "0";
			item.style.backgroundPosition = css;
		},
		"onBlur": function(item) {
			css = "";
			if (x = item.getAttribute("xOrg"))
				css += -(new Number(x)) + "px";
			else
				css += "0 ";
			if (y = item.getAttribute("yOrg"))
				css += -(new Number(y)) + "px";
			else
				css += "0";
			item.style.backgroundPosition = css;
		}
	};
}
