function openCentered( destURL, winName, width, height )
{
	var leftOffset = ( screen.width - width ) / 2;
	var topOffset = ( screen.height - height ) / 2;

	var winHandle = window.open( destURL, winName, 'statusbar=0,toolbar=0,width=' + width + ",height=" + height + ",top=" + topOffset + ",left=" + leftOffset + "'" );
}

function switchLanguage()
{
	var langEl = document.getElementById( 'langSelector' );
	var theLink = langEl.options[langEl.selectedIndex].value;
	document.location = theLink;
}

function toggleList( elID )
{
	var el = document.getElementById( elID );
	var elDisplay = el.style.display;

	if ( ( elDisplay == 'none' ) || ( elDisplay == '' )  )
	{
		el.style.display = 'block';
	}else
	{
		el.style.display = 'none';
	}
}