/* Copyright Jonathan Young 2010 */
function selectMenu( menu )
{
var pName = document.title.toLowerCase();
var aLi = menu.getElementsByTagName("LI");
var anchor;

pName = pName.replace(/amanda allport -> /i, "").replace(/ /g, "");

for ( var i = 0; i< aLi.length; i++ )
  {
  anchor = aLi[i].getElementsByTagName( "A" );
  if ( anchor[0] )
	anchor[0].className= ( anchor[0].innerHTML.toLowerCase().replace(/&amp;/g, "&").replace(/ /g, "").match(pName) == pName )?"currentPage":"";
//	aLi[i].className= ( anchor[0].innerHTML.toLowerCase().replace(/ /g, "").match(pName) == pName )?"currentPage":"";
  }
}

function m_show( ob )
{
m_sh( ob, "inline-block");
}

function m_sh( ob, dis )
{
//	var thumbDiv = ob.getElementsByTagName( "DIV" )[0];
	var thumbDiv;
	
	for ( var childOb in ob.childNodes )
		if (ob.childNodes[childOb].nodeName == "DIV" || ob.childNodes[childOb].nodeName == "UL")
			{
			thumbDiv=ob.childNodes[childOb];
			break;
			}
	if (thumbDiv)
		thumbDiv.style.display = dis;
}

function m_hide( ob )
{
m_sh( ob, "none");
}

function img_height(imgOb)
{
var newImg = new Image();
newImg.src = imgOb.src;
window.status = typeof newImg.height;
return newImg.height<50?newImg.height:200;
}
