var step = 0;
var browser = navigator.userAgent;
//var baseURL = 'http://aswww01.amedick-sommer.int/projekte_internet/schmid-stiftung/';
var baseURL = 'http://www.schmid-stiftung.de/';

function schriftgroesse(wert, sid) {	
  step = parseInt(wert);
  switch (step) {
    case 1: skal='100%';
      document.getElementById('schrift_plus').style.visibility = 'visible';
      document.getElementById('schrift_minus').style.visibility = 'hidden';
    break;
    case 2: skal='120%';
      document.getElementById('schrift_plus').style.visibility = 'visible';
      document.getElementById('schrift_minus').style.visibility = 'visible';
    break;
    case 3: skal='140%';
      document.getElementById('schrift_plus').style.visibility = 'hidden';
      document.getElementById('schrift_minus').style.visibility = 'visible';
    break;
    default: skal='100%';
      document.getElementById('schrift_plus').style.visibility = 'visible';
      document.getElementById('schrift_minus').style.visibility = 'hidden';
      step = 1;
    break;
  }
  // Schriftgröße des Body ändern
  //document.getElementsByTagName('body')[0].style.fontSize=skal;
  // Session updaten
  var url = baseURL+'inc/setfontsize.php?sid='+sid+'&fs=' + step; 
  new Ajax.Request(url, { method: 'get', asynchronous: false, onSuccess: function(transport) {location.reload()}});
}

