//No Translation needed

var selectedFileSys = "none";

var isNS = (navigator.appName == "Netscape");

function clearLeftBar()
{
   if( isNS )
   {
      parent.menu.document.getElementById( "networkmaps" ).className = "component-tree-item";
      parent.menu.document.getElementById( "methodology" ).className = "component-tree-item";
      parent.menu.document.getElementById( "home" ).className = "component-tree-item";
      parent.menu.document.getElementById( "analysis" ).className = "component-tree-item";
      parent.menu.document.getElementById( "data" ).className = "component-tree-item";

      parent.menu.document.getElementById( "dataText" ).className = "component-tree-item";
      parent.menu.document.getElementById( "homeText" ).className = "component-tree-item";
      parent.menu.document.getElementById( "analysisText" ).className = "component-tree-item";
      parent.menu.document.getElementById( "methodologyText" ).className = "component-tree-item";
      parent.menu.document.getElementById( "networkmapsText" ).className = "component-tree-item";
   }
   else
   {
      parent.menu.networkmaps.className = "component-tree-item";
      parent.menu.methodology.className = "component-tree-item";
      parent.menu.home.className = "component-tree-item";
      parent.menu.analysis.className = "component-tree-item";
      parent.menu.data.className = "component-tree-item";

      parent.menu.dataText.className = "component-tree-item";
      parent.menu.homeText.className = "component-tree-item";
      parent.menu.analysisText.className = "component-tree-item";
      parent.menu.methodologyText.className = "component-tree-item";
      parent.menu.networkmapsText.className = "component-tree-item";
   }
}

function setLeftForNetworkMaps()
{
   clearLeftBar();
   if( isNS )
   {
      parent.menu.document.getElementById( "networkmaps" ).className = "component-tree-selection";
      parent.menu.document.getElementById( "networkmapsText" ).className = "component-tree-selection";
   }
   else
   {
      parent.menu.networkmaps.className = "component-tree-selection";
      parent.menu.networkmapsText.className = "component-tree-selection";
   }

}

function setLeftForMethodology()
{
   clearLeftBar();
   if( isNS )
   {
      parent.menu.document.getElementById( "methodology" ).className = "component-tree-selection";
      parent.menu.document.getElementById( "methodologyText" ).className = "component-tree-selection";   
   }
   else
   {
      parent.menu.methodology.className = "component-tree-selection";
      parent.menu.methodologyText.className = "component-tree-selection";   
   }

}

function setLeftForData()
{
   clearLeftBar();
   if( isNS )
   {
      parent.menu.document.getElementById( "data" ).className = "component-tree-selection";
      parent.menu.document.getElementById( "dataText" ).className = "component-tree-selection";   
   }
   else
   {
      parent.menu.data.className = "component-tree-selection";
      parent.menu.dataText.className = "component-tree-selection";   
   }

   //document.all("A").focus();
}

function setLeftForHome()
{
   clearLeftBar();
   if( isNS )
   {
      parent.menu.document.getElementById( "home" ).className = "component-tree-selection";
      parent.menu.document.getElementById( "homeText" ).className = "component-tree-selection";
   }
   else
   {
      parent.menu.home.className = "component-tree-selection";
      parent.menu.homeText.className = "component-tree-selection";
   }

   //comment out the following 2 lines :)
   //alert( "I had too much time :)\n\n I Love you" );
   //alert( "To stop seeing this message, open file mapproject.js and look\n for the line \"comment out the following 2 lines\"" );

}

function setLeftForAnalysis()
{
   clearLeftBar();
   if( isNS )
   {
      parent.menu.document.getElementById( "analysis" ).className = "component-tree-selection";
      parent.menu.document.getElementById( "analysisText" ).className = "component-tree-selection";
   }
   else
   {
      parent.menu.analysis.className = "component-tree-selection";
      parent.menu.analysisText.className = "component-tree-selection";
   }

}

function loadHomePage()
{
   parent.main.location.href = "main.htm";
}

function loadMethodologyPage()
{
   parent.main.location.href = "methodology.htm"
}

function loadNetworkMapsPage()
{
   parent.main.location.href = "networkmaps.htm";
}

function loadAnalysisPage()
{
   parent.main.location.href = "analysis.htm";
}

function loadDataPage()
{
   parent.main.location.href = "data.htm";
}


