var pb_Link;
pb_Link = 'ags';

function changeContentProducts(link, lang) {
  var sText;

  clearNaviClasses();

  if(pb_Link == link) {
    if (lang == 'de') {
      if(link == 'ags') {
        self.location.href = 'index.php/agsbaureihe.html';      
      }
      if(link == 'chpp') {
        self.location.href = 'index.php/bhkws.html';
      }
      if(link == 'indsolution') {
        self.location.href = 'index.php/individuelleanlagenloesungen.html';      
      }
      
    } else {
      if(link == 'ags') {
        self.location.href = 'index.php/agsrange.html';      
      }
      if(link == 'chpp') {
        self.location.href = 'index.php/chps.html';
      }
      if(link == 'indsolution') {
        self.location.href = 'index.php/individualapplications.html';      
      }   
    }
    return null;
  }	

  pb_Link = link;

  if(lang == 'de') {
    if(link == 'ags') {
       sText = 'Im Leistungsbereich zwischen 42kVA und 3250 kVA bieten wir unseren Kunden ein lückenloses Programm an schlüsselfertigen Komplettlösungen zur Stromerzeugung. Diese hochwertigen Kleinkraftwerke werden ausschließlich mit Motoren namhafter internationaler Hersteller ausgestattet...<br /><br /><a href="index.php/agsbaureihe.html"> Weitere Informationen zu unserer AGS Baureihe</a>';
    } 

    if(link == 'chpp') {
      sText = 'Die Nutzung regenerativer Energieträger ist derzeit hochaktuell. Es vereint gleichzeitig die Schonung unseres Klimas und die Unabhängigkeit von endlichen Ressourcen. Biogas spielt dabei eine führende Rolle,  da es von Wind und Sonne unabhängig ist. Des Weiteren fördert der Staat den Bau von Biogasanlagen und hat durch die gesetzliche Festschreibung der Einspeisevergütung die Stromerzeugung noch attraktiver gemacht...<br /><br /><a href="index.php/bhkws.html">Weitere Informationen zu unseren Blockheizkraftwerken</a>';
    }

    if(link == 'indsolution') {
      sText = 'Die Errichtung von komplexen Notstromanlagen – sowie internationale Großprojekte werden von unseren Technikern und Ingenieuren immer individuell betreut. Bereits im Vorfeld stehen wir Ihnen gerne beratend und unterstützend zur Seite. Dabei profitieren Sie von unseren zahlreichen Erfahrungen im weltweiten Projektgeschäft. Nach Klärung der Ausgangssituation erarbeiten wir am Rechner eine Lösung für genau Ihren spezifischen Anwendungsfall...<br /><br /><a href="index.php/individuelleanlagenloesungen.html">Weitere Informationen zu Individuellen Anlagenlösungen</a>';
    }
  } else {
    if(link == 'ags') {
       sText = 'We provide our customers with a complete range of all-in-one solutions for power generation within a spectrum of 42kVA and 3250kVA. These high-class power stations are only equipped by engines of famous international manufacturers...<br /><br /><a href="index.php/agsrange.html">Further information regarding AGS series.</a>';
    } 

    if(link == 'chpp') {
      sText = 'Usage of renewable energy sources is currently highly topical. This topic joins climate protection and independence of limited resources at the same time. Biogas plays a leading role due to the fact that it is independent from wind and sun. Furthermore the government supports constructions of biogas plants and made them more attractive by the legal assurance of compensation for electricity fed into the grid...<br /><br /><a href="index.php/chps.html">Further information regarding CHP.</a>';
    }

    if(link == 'indsolution') {
      sText = 'Construction of complex emergency generator sets - as well as international major projects are always individually supervised by our technicians and engineers. Already before we will provide competent supports and advices. By doing so you will profit from our numerous experiences regarding worldwide project business. After clarification of the initial situation we will develop an individual solution at the computer for exactly your application...<br /><br /><a href="index.php/individualapplications.html">Further information regarding individual applications.</a>';
    }

    if(link =='laser') {
       sText = 'Laser';
    }
  }

  document.getElementById('pb_text').innerHTML = sText;
  document.getElementById(link).className = 'active';
}

function clearNaviClasses() {
  document.getElementById('ags').className = '';
  document.getElementById('chpp').className = '';
  document.getElementById('indsolution').className = '';
}
