function hookEvent(b, a, c) {
	// var window = g_toolbar.win;
	// var document = g_toolbar.win.document;
	if (typeof(b) == "string") {
		b = document.getElementById(b)
	}
	if (b == null) {
		return
	}
	if (b.addEventListener) {
		b.addEventListener(a, c, false)
	} else {
		if (b.attachEvent) {
			b.attachEvent("on" + a, c)
		}
	}
}
function unhookEvent(b, a, c) {
	// var window = g_toolbar.win;
	// var document = g_toolbar.win.document;
	if (typeof(b) == "string") {
		b = document.getElementById(b)
	}
	if (b == null) {
		return
	}
	if (b.removeEventListener) {
		b.removeEventListener(a, c, false)
	} else {
		if (b.detachEvent) {
			b.detachEvent("on" + a, c)
		}
	}
}
