function menuMouseOver(obj)
{
	var link = obj.getElementsByTagName('a')[0];
	link.style.color = '#97be0c';
	obj.style.backgroundImage = 'url(http://www.webalive.nl/documents/graphics/templates/background-menu-selected.jpg)';
}

function menuMouseOut(obj)
{
	var link = obj.getElementsByTagName('a')[0];
	link.style.color = '#747376';
	obj.style.backgroundImage = 'url(http://www.webalive.nl/documents/graphics/templates/background-menu.jpg)';
}

function resizeFrame()
{
	if ( xHeight("center-left")!=0 || xHeight("center-right")!=0)
	{
		var sectionHeight= Math.max(xHeight("center-left"), xHeight("center-right"));
		xHeight("center", sectionHeight+34);
	}
	setQuicklinkPlace();
}

function hideSubMenu()
{
	document.getElementById('header-menu-sub').style.display = 'none';
	document.getElementById('header').style.height = '190px';
	document.getElementById('center-margin-top').style.height = '190px';
	document.getElementById('center').style.minHeight = '444px';
}

function searchKey(evt)
{
	if(window.event) // IE check
		evt = window.event;

	if (evt.keyCode == 13)
	{
		location.href='http://www.webalive.nl/documents/orphan-pages/search-results.xml?lang=nl&search=' + window.document.WebAliveMainForm.search.value;
	}

}

function searchKeyFTS(evt)
{
	if(window.event) // IE check
		evt = window.event;

	if (evt.keyCode == 13)
	{
		doFullTextSearch();
	}

}


//QUICKLINK

function setQuicklinkPlace(name)
{
	document.getElementById('sub-menu-quicklink').style.left = 517 + 'px';
	var o = document.getElementById('sub-menu-quicklink');
	var mt = 0-xHeight("header-menu-container")-28;	
   	o.style.marginTop = mt + 'px';
}

function quicklinkMouseOver(name)
{
	var o = document.getElementById('sub-menu-quicklink');
	var mt = 0-xHeight("header-menu-container")-28;	
   	o.style.marginTop = mt + 'px';
	var sd = o.getElementsByTagName('div')[1];
	if (sd != null)
	{
		o.style.visibility='visible';
	}
}

function quicklinkMouseOut(name)
{
	document.getElementById('sub-menu-quicklink').style.visibility = 'hidden';
}

function quicklinkMouseOutSelected(name)
{
	document.getElementById('sub-menu-quicklink').style.visibility = 'hidden';
}

