function mainover(obj, which)
{
  if (which == "on")
  {
    obj.style.background = "#464646";
  } else
  {
    obj.style.background = "#000000";
  }
}
function subsubover(obj, which)
{
  if (which == "on")
  {
    obj.style.color = "#464646";
  } else
  {
    obj.style.color = "#000000";
  }
}

function items(code, which, sep)
{
  var thestring = code;
  var cnt = which;
  while (cnt > 0)
  {
    pos = thestring.indexOf(sep);
    if (pos != -1)
    {
      resultstring = thestring.substring(0,pos);
      thestring = thestring.substring(pos+1,thestring.length);
    } else
    {
      resultstring = thestring;
      thestring = "";
    }
    cnt = cnt - 1;
  }
  return resultstring;
}

function languages()
{
  var fulllocation = document.location.href+"";
  pos = fulllocation.lastIndexOf("/");
  if (pos) 
  {
    fulllocation = fulllocation.substr(pos+1,fulllocation.length);
  } else
  {
    fulllocation = "index.html";
  }
  if (fulllocation == "") fulllocation = "index.html";
  var language = items(fulllocation,1,".");
  language = items(language,2,"_");
  if (language == "") language = "en";
  var ext = "."+items(fulllocation,2,".");
  var page = items(fulllocation,1,".");
  page = items(page,1,"_");
  var tabletop = "<table border=0 cellspacing=0 cellpadding=0>\n<tr><td class=languagebar align=right>\n";
  var tablebottom = "</td></tr>\n</table>\n";

  if (page == "index") ext = ".html";
  if (language == "en")
  {
    var english = "<span class=thislanguage>English</span>";
  } else
  {
    var enpage=page+ext;
    var english = "<a href=\""+enpage+"\" class=otherlanguage>English</a>";
  }
  if (language == "de")
  {
    var german = "<span class=thislanguage>Deutsch</span>";
  } else
  {
    var enpage=page+"_de"+ext;
    var german = "<a href=\""+enpage+"\" class=otherlanguage>Deutsch</a>";
  }
  if (language == "fr")
  {
    var french = "<span class=thislanguage>Français</span>";
  } else
  {
    var enpage=page+"_fr"+ext;
    var french = "<a href=\""+enpage+"\" class=otherlanguage>Français</a>";
  }
  if (language == "es")
  {
    var spanish = "<span class=thislanguage>Español</span>";
  } else
  {
    var enpage=page+"_es"+ext;
    var spanish = "<a href=\""+enpage+"\" class=otherlanguage>Español</a>";
  }
  if (language == "po")
  {
    var portugeuse = "<span class=thislanguage>Portugèse</span>";
  } else
  {
    var enpage=page+"_po"+ext;
    var portugeuse = "<a href=\""+enpage+"\" class=otherlanguage>Portugèse</a>";
  }

//  document.write(english+german+spanish+portugeuse);
  document.write(tabletop);
//  document.write(english+german+french+spanish);
  document.write(english+german);
  document.write(tablebottom)
}

function navigation(pagename)
{
  var varnames = "Home|About Us|Company Overview|Objectives|Milestones|The Nexis System|Nexis Plant System|5Stargreen<sup>TM</sup> Panel Products|Nexis Building System|Our Markets|News Room|Press Releases|Industry Related News|Investor Relations|Company Profile|Board of Directors and Management|Corporate Governance|Information Request|Partners|Contact Us";
  var englishnames = "Home|About Us|Company Overview|Objectives|Milestones|The Nexis System|Nexis Plant System|5Stargreen<sup>TM</sup> Panel Products|Nexis Building System|Our Markets|News Room|Press Releases|Industry Related News|Investor Relations|Company Profile|Board of Directors and Management|Corporate Governance|Information Request|Partners|Contact Us";
  var germannames = "Home|Über uns|Firmenüberblick|Unsere Ziele|Meilensteine|Produktpalette|Nexis Plant System|5Stargreen<sup>TM</sup> Paneel-Produktpalette|Nexis Gebäudesystem|Absatzmärkte|News Room|Press Releases|Industry Related News|Investor Relations|Unternehmensprofil|Board of Directors and Management|Grundsätze zur Unternehmensführung|Anfrage|Partner|Kontakt";
  var frenchnames = "Home|About Us|Company Overview|Objectives|Milestones|The Nexis System|Nexis Plant System|5Stargreen<sup>TM</sup> Panel Products|Nexis Building System|Our Markets|News Room|Press Releases|Industry Related News|Investor Relations|Company Profile|Board of Directors and Management|Corporate Governance|Information Request|Partners|Contact Us";
  var spanishnames = "Home|About Us|Company Overview|Objectives|Milestones|The Nexis System|Nexis Plant System|5Stargreen<sup>TM</sup> Panel Products|Nexis Building System|Our Markets|News Room|Press Releases|Industry Related News|Investor Relations|Company Profile|Board of Directors and Management|Corporate Governance|Information Request|Partners|Contact Us";
  var portuguesenames = "Home|About Us|Company Overview|Objectives|Milestones|The Nexis System|Nexis Plant System|5Stargreen<sup>TM</sup> Panel Products|Nexis Building System|Our Markets|News Room|Press Releases|Industry Related News|Investor Relations|Company Profile|Board of Directors and Management|Corporate Governance|Information Request|Partners|Contact Us";

  var names = "";

  var fulllocation = document.location.href+"";
  pos = fulllocation.lastIndexOf("/");
  if (pos) 
  {
    fulllocation = fulllocation.substr(pos+1,fulllocation.length);
  } else
  {
    fulllocation = "index.html";
  }
  if (fulllocation == "") fulllocation = "index.html";
  var language = items(fulllocation,1,".");
  language = items(language,2,"_");
  if (language == "") language = "en";
  if (language == "en")
  {
    names = englishnames;
  } 
  if (language == "de")
  {
    names = germannames;
  } 
  if (language == "fr")
  {
    names = frenchnames;
  }
  if (language == "es")
  {
    names = spanishnames;
  }
  if (language == "po")
  {
    names = portuguesenames;
  }
  //find us in var names
  var cnt = 1;
  do
  {
    varname = items(varnames,cnt,"|");
    if (varname == "") 
    {
      cnt = -1;
      break;
    }
    if (varname == pagename) 
    {
      document.write(items(names,cnt,"|"));
      break;
    }
    cnt++;
  }
  while (1==1);
}
