var styleCurrent = "discovery";

function show(myElement)
{ 
	if (document.getElementById)
	{
		// default
		var style2 = document.getElementById(myElement).style;
		var styleCurrent2 = document.getElementById(styleCurrent).style;
		styleCurrent2.display = "none";
		style2.display = "block";
	}
	else if (document.all)
	{
		// old msie
		var style2 = document.all[myElement].style;
		var styleCurrent2 = document.all[styleCurrent].style;
		styleCurrent2.display = "none";
		style2.display = "block";
	}
	else if (document.layers)
	{
		// nn4 
		var style2 = document.layers[myElement].style;
		var styleCurrent2 = document.layers[styleCurrent].style;
		styleCurrent2.display = "none";
		style2.display = "block";
	}
	
	styleCurrent = myElement;
}

function toggleExpand(myElement)
{
	if (document.getElementById)
	{
		// default
		var style2 = document.getElementById(myElement).style;
		style2.display = style2.display? "":"block";
	}
	else if (document.all)
	{
		// old msie
		var style2 = document.all[myElement].style;
		style2.display = style2.display? "":"block";
	}
	else if (document.layers)
	{
		// nn4 
		var style2 = document.layers[myElement].style;
		style2.display = style2.display? "":"block";
	}
}

function expandFlexible() {
	if (document.getElementById) {
		var flex = document.getElementById("flexible");
		if  (flex.className == "expanded"){
			flex.className = "";		
		}
		else
		{
			flex.className = "expanded";
		}
	}
}

function spaceManOn(whichSpecialism) {
	if (document.getElementById) {
		specialismBox = document.getElementById(whichSpecialism);
		specialismBox.className+=" over";
	}
}

function spaceManOut(whichSpecialism) {
	if (document.getElementById) {
		specialismBox = document.getElementById(whichSpecialism);
		specialismBox.className = specialismBox.className.replace(" over", "");
	}
}
function popup( mylink, windowname ) {
	if (! window.focus) return true;
	var href;
	if (typeof(mylink) == 'string')
		href=mylink;
	else
		href=mylink.href;
	window.open( href, windowname, 'width=595, height=400, scrollbars=yes' );
	return false;
}