var CtrlUp = false;

function init() {
	if (self.parent.frames.length != 0) {
		self.parent.location = document.location;
	}

	if (document.getElementById) {
		document.onkeydown = register;
	}
}

function register(e) {
	var code;
	
	if (!e) var e = window.event;
	
	if (e.keyCode) code = e.keyCode;
	else if (e.which) code = e.which;

	if ((code == 37) && (e.ctrlKey == true)) {
		var destination = document.getElementById('ctrl_left');
		if (destination) location.href = destination.href;
	}

	if ((code == 39) && (e.ctrlKey == true)) {
		var destination = document.getElementById('ctrl_right');
		if (destination) location.href = destination.href;
	}

	if ((code == 38) && (e.ctrlKey == true)) {
		var destination = document.getElementById('ctrl_up');
		if (destination) location.href = destination.href;
	}
}