var xmlHttp

function showContent(str)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
/*==============newsupdate====================*/
if (str == "signup")
{
var url="newsupdate/newsupdate.html";
}
else if (str == "newsadmin")
{
var url="newsupdate/admin.html";
}
else if (str == "unsubscribe")
{
var url="newsupdate/unsubscribe.html";
}
/*==============feedback====================*/
else if (str == "feedback")
{
var url="feedback/feedback.html";
}
else if (str == "feedadmin")
{
var url="feedback/admin.html";
}
else if (str == "feedis")
{
var url="feedback/displayfeed.jsp";
}
/*==============SACON====================*/
else if (str == "objectives")
{
var url="sacon/objectives.html";
}
else if (str == "staff")
{
var url="sacon/staff.html";
}
else if (str == "copyright")
{
var url="sacon/copyright.html";
}
/*=============ENVIS===================*/
else if (str == "theme1")
{
var url="envis/theme1.html";
}
else if (str == "theme2")
{
var url="envis/theme2.html";
}
else if (str == "theme3")
{
var url="envis/theme3.html";
}
else if (str == "theme4")
{
var url="envis/theme4.html";
}
else if (str == "theme5")
{
var url="envis/theme5.html";
}
else if (str == "theme6")
{
var url="envis/theme6.html";
}
else if (str == "theme7")
{
var url="envis/theme7.html";
}

/*===================Publication===============*/
else if (str == "newsletters")
{
var url="publication/newsletters.html";
}
else if (str == "reports")
{
var url="publication/reports.html";
}
else if (str == "books")
{
var url="publication/books.html";
}
else if (str == "abstracts")
{
var url="publication/abstracts.html";
}
else if (str == "monographs")
{
var url="publication/monographs.html";
}
else if (str == "pubadmin")
{
var url="publication/admin.html";
}
else if (str == "pubform")
{
var url="publication/publicationsform.html";
}
/*==================This Website=================*/
else if (str == "websiteuse")
{
var url="website/websiteuse.html";
}
else if (str == "accessibility")
{
var url="website/accessibility.html";
}
else if (str == "usability")
{
var url="website/usability.html";
}
else if (str == "sitecredits")
{
var url="website/sitecredits.html";
}
/*======================Biodiversity===================*/
else if (str == "endemics")
{
var url="biodiversity/endemics.html";
}
else if (str == "threatned")
{
var url="biodiversity/threatned.html";
}
else if (str == "prioritization")
{
var url="biodiversity/prioritization.html";
}
/*======================Wetlands=======================*/
else if (str == "guidelines")
{
var url="wetlands/guidelines.html";
}
else if (str == "nationalsites")
{
var url="wetlands/nationalsites.html";
}
else if (str == "ramsarsites")
{
var url="wetlands/ramsarsites.html";
}
else if (str == "wetreports")
{
var url="wetlands/wetreports.html";
}
else if (str == "mangroves")
{
var url="wetlands/mangroves.html";
}
else if (str == "freshwater")
{
var url="wetlands/freshwater.html";
}
/*======================Database======================*/
else if (str == "newsclippings")
{
var url="spatialdata/clippings.html";
}
else if (str == "photogallery")
{
var url="spatialdata/gallery.html";
}
else if (str == "spatialdata")
{
var url="spatialdata/spatialdata.html";
}
else if (str == "spinventory")
{
var url="biodiversity/appendix.html";
}
else if (str == "glossary")
{
var url="glossary/glossary.html";
}
else if (str == "links")
{
var url="spatialdata/links.html";
}
else if (str == "spalogin")
{
var url="spatialdata/spatialdata.html";
}
else if (str == "demo")
{
var url="spatialdata/demo/demo.html";
}
/*======================CEPA==========================*/
else 
{
var url="cepa/wwd2008.html";
}

xmlHttp.onreadystatechange=function()
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("content").innerHTML=xmlHttp.responseText;
}
}
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}


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;
}
