
function aBlurListener(e) { // Function in Inner.js also!
	var e = e || window.event;
	var t = e.target || e.srcElement;
	var el = ascendDOM(t, 'a');
	if (el == null) return;
	el.blur();
}

function resize() {
	var cHeight = winHeight() - 115;
	if (cHeight > 0)
		getEl('centerframe').height = cHeight;
	else
		getEl('centerframe').height = 0;
}


function menuTopMouseOver(e) {
	clearTimeout(topMenuTimeoutID);
	var e = e || window.event;
	var t = e.target || e.srcElement;
//	t.style.color = colorMouse; // Save for later use
	if ((t.parentNode) && (t.parentNode.className == 'topMenu'))
		t.style.backgroundImage = 'url(Images/Layout/Menu19Over.jpg)';
	else
		t.style.backgroundImage = 'url(Images/Layout/Menu18Over.jpg)';
	var theChildDiv, theDiv, theID;
	var theChildDivUnderscore, theIDUnderscore;

	theChildDiv = getFront(t.id, '.') + '_' + getEnd(t.id, '.');
	theChildDivUnderscore = theChildDiv + '_';

	for (var i = 0; i < topSubMenuDivs.length; i++) {
		theID = topSubMenuDivs[i];
		theIDUnderscore = theID + '_';
		theDiv = getEl(theID);

		if (theChildDivUnderscore.indexOf(theIDUnderscore) == 0) {
			theDiv.style.visibility = 'visible';
		} else {
			theDiv.style.visibility = 'hidden';
		}
	}
}

function menuTopMouseOutDelay(e) {
	var e = e || window.event;
	var t = e.target || e.srcElement;
//	t.style.color = color;; // Save for later use
	if ((t.parentNode) && (t.parentNode.className == 'topMenu'))
		t.style.backgroundImage = 'url(Images/Layout/Menu19.jpg)';
	else
		t.style.backgroundImage = 'url(Images/Layout/Menu18.jpg)';
	topMenuTimeoutID = setTimeout(function() {menuTopMouseOut(); }, 300);
}

function menuTopMouseOut() {
	for (var i = 0; i < topSubMenuDivs.length; i++) {
		getEl(topSubMenuDivs[i]).style.visibility = 'hidden';
	}
}

function menuTopGoLocation(e) {
	var e = e || window.event;
	var t = e.target || e.srcElement;
	var theArray = eval('window.' + getFront(t.id, '.'));
	var theHref = theArray[getEnd(t.id, '.')][1];
	if (theHref != '') {
		menuTopMouseOut();
//		getEl('title').firstChild.nodeValue = t.headline;
		getEl('title').src = 'Images/Layout/' + t.headline;
		getEl('centerframe').src = theHref;
	}
}

function emailKingoMouseOver(e) {
	var e = e || window.event;
	var t = e.target || e.srcElement;
	if (e.type == 'mouseover')
		getEl('bottombar').style.backgroundImage = 'url(Images/Layout/Menu16BottomOver.jpg)';
	else if (e.type == 'mouseout')
		getEl('bottombar').style.backgroundImage = 'url(Images/Layout/Menu16Bottom.jpg)';
}

