function openWindow(url)
{
	openWindowParam(url, 600, 400);
}
function openWindowParam(url, width, height, samewindow)
{
	window.open(url,samewindow ? 'popup' : '_blank','width=' + width + ',height=' + height + ',left=10,top=10,resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,status=yes,location=yes,directories=no');
}

function Highlight(TD) {
	
	TD.className = 'level1hover';
	TD.getElementsByTagName("A")[0].className = 'level1linkhover';
	
}
function UnHighlight(TD) {

	var allowUnhighlight = true;
	if(navigator.appName == 'Microsoft Internet Explorer')
	{
		// Flicker reduction
		elem = window.document.elementFromPoint( event.x, event.y );
		while(elem != null && elem.tagName != "TD")
		{
			elem = elem.parentElement;
		}
		allowUnhighlight = elem != TD;
	}
	if(allowUnhighlight)
	{
		TD.className = 'level1';
		TD.getElementsByTagName("A")[0].className = 'level1link';
	}
}
function go(TD)
{

	if(typeof(currentContentType) != "undefined")
	{
		try
		{
			window.location=TD.getElementsByTagName("A")[0].href;
		}
		catch(e)
		{ 
			
		}
	}
	else
		window.location=TD.getElementsByTagName("A")[0].href;

	// cancel the event that the location change would do to avoid 2 events firing of a click.
	window.event.returnValue = null;	
}
