// JavaScript Document

function showMenu(ref) {
	hideAll();
	document.getElementById('nv' + ref).src = 'images/nav' + ref + '_b.jpg';
	if (ref != 2) {
		document.getElementById('navBlock' + ref).style.visibility = 'visible';
	}
}

function hideAll() {
	for (var i=0;i<6;i++) {
		document.getElementById('nv' + i).src = 'images/nav' + i + '_a.jpg';
		document.getElementById('navBlock' + i).style.visibility = 'hidden';
	}
}

window.onload = init;
function init() {
	if (window.Event) {
	document.captureEvents(Event.MOUSEMOVE);
	}
	document.onmousemove = getCursorXY;
}

function getCursorXY(e) {
	var y = (window.Event) ? e.pageY : event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
	if (y >= 300) {
		hideAll();
	}
}


