function show(id)
{
	var d = document.getElementById(id);
	for (var i = 1; i <= 5; i++)
	{
		if (document.getElementById('smenu'+i))
		{
			document.getElementById('smenu'+i).style.display='none';
		}
	}
	if (d)
	{
		d.style.display='block';
	}
}

    

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}

function getContent(panel, textfile)
{
     var httpObj = GetXmlHttpObject();
     var strFunction = "getContent.php?textfile=" + textfile;
     window.status = strFunction;
     if (httpObj == null)
     {
       return "You don't have an AJAX compliant browser<br>";
     }

     httpObj.onreadystatechange=function()
     {
      if(httpObj.readyState==4)
      {
       document.getElementById(panel).innerHTML=httpObj.responseText;
      }
     }
     httpObj.open("GET",strFunction,true);
     httpObj.send(null);

}
