var GW = {
	N: false, P:false,
	I: function() {
		document.onkeydown = function(e) {
			var e = e || window.event;
			if (e.keyCode == 39 && GW.N) {
				document.location.href = GW.N;
				GW.K();
				return false;
			}
			if (e.keyCode == 37 && GW.P) {
				document.location.href = GW.P;
				GW.K();
				return false;
			}
			return true;
		}
	},
	K: function() {
		document.onkeydown = function() { };
	},
	IO: function(e) {
		var n = $('arrow_nav');
		var w = e.width;
		var h = e.height;
		n.style.width = (w + 8) + 'px';
		n.style.display = 'block';
		var c = n.getElementsByTagName('div')[0];
		c.style.paddingTop = (h / 2 - 96 / 2 + 4) + 'px';
	},
	tid: 0,
	HN: function(e) {
		this.tid = setTimeout("$('arrow_nav').style.display = 'none'; GW.tid = 0;", 100);
	},
	CHN: function() {
		if (this.tid)
			clearTimeout(this.tid);
	}
}
