function menuOpen(name)
{			
  if(document.all) //IE
  {
    eval("document.all."+name+".style.visibility='visible'");
  }
  else if(document.getElementById) //standards compliant browsers (Netscape 6, IE6, Mozilla)
  {                        
    document.getElementById(name).style.visibility='visible';
  }               		
}
		
function menuClose(name)
{	
  if(document.all) //IE
  {
    eval("document.all."+name+".style.visibility='hidden'");
  }
  else if(document.getElementById) //standards compliant browsers (Netscape 6, IE6, Mozilla)
  {                        
    document.getElementById(name).style.visibility='hidden';
  }               				
}		

function redirect(url) 
{
  document.location.href = location.protocol + "//" + location.hostname + url;
}

function searchOnClick(searchTextbox)
{
  if (searchTextbox.value == "Search") 
  {
		searchTextbox.value = "";
	}
}

function searchOnBlur(searchTextbox) 
{
	if (Trim(searchTextbox.value) == "") 
	{
		searchTextbox.value = "Search";
	}
	else
	{
	  searchTextbox.value = Trim(searchTextbox.value);
	}
}

function Trim(textString)
{
  // delete leading, then trailing, white-space
  textString = textString.replace(/^\s+/, '');
  textString = textString.replace(/\s+$/, '');
  
  return textString;
}