// preload images
if ( document.getElementById('illustration') ) {
  var image1 = new Image();
  image1.src = 'askos/images_askos/Pinguin_grosse_Spalte.jpg';
  image1.src = 'askos/images_askos/Pinguin_Laptop.jpg';
  image1.src = 'askos/images_askos/Pinguin_Spalte.jpg';
  image1.src = 'askos/images_askos/Pinguin_Eisscholle.jpg';
  image1.src = 'askos/images_askos/Pinguin_Ei.jpg';
}

function change_illustration(new_illustration) {
  var illustration=document.getElementById('illustration');
  if ( illustration ) {
    illustration.src=new_illustration;
  }
}

function display_standard() {
  change_illustration('askos/images_askos/Pinguin_grosse_Spalte.jpg');
  if ( document.getElementById('tdtextarea') ) {
    var p1=document.createElement('p');
    p1.appendChild(document.createTextNode('Wir haben immer die richtige Lösung für Sie!'));
    var p2=document.createElement('p');
    p2.appendChild(document.createTextNode('ASKOS besteht seit 1999, ist ein Pool hochqualifizierter Fachkräfte und bietet Ihnen flexible und breitgefächerte Leistungen.'));
    var p3=document.createElement('p');
    p3.appendChild(document.createTextNode('Wir beraten Sie gerne!'));
    var div=document.createElement('div');
    div.setAttribute('id','divtextarea');
    div.appendChild(p1);
    div.appendChild(p2);
    div.appendChild(p3);
    document.getElementById('tdtextarea').replaceChild(div,document.getElementById('divtextarea'));
    return true;
  }
  return false;
}

function display_programmierung() {
  change_illustration('askos/images_askos/Pinguin_Laptop.jpg');
  if ( document.getElementById('tdtextarea') ) {
    var p1=document.createElement('p');
    p1.appendChild(document.createTextNode('Wir entwickeln anwenderspezifische Software in'));
    var p2=document.createElement('p');
    p2.appendChild(document.createTextNode('Java - Javascript - PHP - C - C++ - Perl - R - Shell - SQL - Fortran'));
    var p3=document.createElement('p');
    p3.appendChild(document.createTextNode('Fragen Sie uns!'));
    var div=document.createElement('div');
    div.setAttribute('id','divtextarea');
    div.appendChild(p1);
    div.appendChild(p2);
    div.appendChild(p3);
    document.getElementById('tdtextarea').replaceChild(div,document.getElementById('divtextarea'));
    return true;
  }
  return false;
}

function display_webdesign() {
  change_illustration('askos/images_askos/Pinguin_Spalte.jpg');
  if ( document.getElementById('tdtextarea') ) {
    var p1=document.createElement('p');
    p1.appendChild(document.createTextNode('Gelangen Sie schnell, einfach und ohne großen Aufwand zu Ihrer eigenen Homepage.'));
    var p2=document.createElement('p');
    p2.appendChild(document.createTextNode('Wir erstellen eine neue Homepage für Sie oder gestalten Ihren bestehenden Netzauftritt.'));
    var p3=document.createElement('p');
    p3.appendChild(document.createTextNode('Fragen Sie uns nach einem konkreten Angebot!'));
    var div=document.createElement('div');
    div.setAttribute('id','divtextarea');
    div.appendChild(p1);
    div.appendChild(p2);
    div.appendChild(p3);
    document.getElementById('tdtextarea').replaceChild(div,document.getElementById('divtextarea'));
    return true;
  }
  return false;
}

function display_statistik() {
  change_illustration('askos/images_askos/Pinguin_Eisscholle.jpg');
  if ( document.getElementById('tdtextarea') ) {
    var p1=document.createElement('p');
    p1.appendChild(document.createTextNode('"Zu völllig unübersehbaren Auswirkungen mit unter Umständen schweren Fehlern in der empirischen Forschungsparaxis führt die naive \'theoriefreie\' Anwendung statistischer Verfahren auf Beobachtungsdaten, eine Vorgangsweise, die durch die Verfügbarkeit statistischer Programmpakete am PC verführerisch nahegelegt wird und entsprechend weit verbreitet ist." (Prof. Dr. Bernhard Rüger)'));
    var div=document.createElement('div');
    div.setAttribute('id','divtextarea');
    div.appendChild(p1);
    document.getElementById('tdtextarea').replaceChild(div,document.getElementById('divtextarea'));
    return true;
  }
  return false;
}

function display_medical() {
  change_illustration('askos/images_askos/Pinguin_Ei.jpg');
  if ( document.getElementById('tdtextarea') ) {
    var p1=document.createElement('p');
    p1.appendChild(document.createTextNode('Wir lesen Ihre medizinischen Daten ein, erstellen ein Konzept zu deren Auswertung, machen die Statistik, erstellen Tabellen, Grafiken und Dokumentation.'));
    var p2=document.createElement('p');
    p2.appendChild(document.createTextNode('Fragen Sie uns nach einem konkreten Angebot!'));
    var div=document.createElement('div');
    div.setAttribute('id','divtextarea');
    div.appendChild(p1);
    div.appendChild(p2);
    document.getElementById('tdtextarea').replaceChild(div,document.getElementById('divtextarea'));
    return true;
  }
  return false;
}
