function FontSizer(baseFontSize, links) {
  this.basefontsize = baseFontSize;
  this.fontsize = baseFontSize;
  this.links = links;
  // w3c - conform?
  this.w3c = (document.getElementById);
  this.ms = (document.all);
}

FontSizer.prototype.sizerInit = function() {
  // w3c - conform?
  this.body = (this.w3c)?document.getElementsByTagName('body')[0].style:document.all.tags('body')[0].style;
  // hide disclaimer
  //document.getElementById("fsdisclaimer").style.display = "none";
  // and run...
  this.getCookie();
  this.sizeTo(this.fontsize);
}

FontSizer.prototype.sizeTo = function(abs) {
  this.fontsize = abs;
  this.body.fontSize = this.fontsize+"px";
  this.setCookie();
}

FontSizer.prototype.grow = function(direction) {
  if ((this.fontsize + direction) > 5) this.fontsize += direction;
  this.body.fontSize = this.fontsize+"px";
  this.setCookie();
}

FontSizer.prototype.reset = function() {
  this.fontsize = this.basefontsize;
  this.body.fontSize = this.fontsize+"px";
  this.setCookie();
}

FontSizer.prototype.setCookie = function() {
  // expires in 5 days
  var exp = new Date();
  var del = exp.getTime() + (5 * 24 * 60 * 60 * 1000);
  exp.setTime(del);
  document.cookie = "fontsize=" + this.fontsize + "; expires=" + exp.toGMTString();;
}

FontSizer.prototype.getCookie = function() {
  if(document.cookie.indexOf("fontsize=") > -1) {
    var s = document.cookie.substr(document.cookie.indexOf("fontsize="));
    var e = (s.indexOf(";") > -1)?s.indexOf(";"):s.length;
    var f = s.substring(s.indexOf("=")+1, e);
    this.fontsize = f * 1.0;
  } else {
    this.fontsize = this.basefontsize;
    this.setCookie();
  }
}

FontSizer.prototype.writeLinks = function() {
  document.write(this.links);
}

// instance
//var fontSizer = new FontSizer(10, "<table class='ts' cellspacing='0' cellpadding='0'><tr><td class='tst'>Choose new text size</td><td class='ts'><a href='javascript:fontSizer.grow(-1);'><img src='images/btn_minus.gif' alt='Minimise text size' width='23' height='23'></a></td><td class='ts'><a href='javascript:fontSizer.reset();'><img src='images/btn_minus.gif' alt='Reset to default text size' width='23' height='23'></a></td><td class='ts'><a href='javascript:fontSizer.grow(+1);'><img src='images/btn_plus.gif' alt='Enlarge text size' width='23' height='23'></a></td></tr></table>");
var fontSizer = new FontSizer(10, "");

function hmenu1_ein(wert)
{
  document.getElementById(wert).style.visibility = "visible";
}

function hmenu1_aus()
{
  if(document.getElementById('mp01')) { document.getElementById('mp01').style.visibility = "hidden"; }
  if(document.getElementById('mp02')) { document.getElementById('mp02').style.visibility = "hidden"; }
  if(document.getElementById('mp03')) { document.getElementById('mp03').style.visibility = "hidden"; }
  if(document.getElementById('mp04')) { document.getElementById('mp04').style.visibility = "hidden"; }
  if(document.getElementById('mp05')) { document.getElementById('mp05').style.visibility = "hidden"; }
  if(document.getElementById('mp06')) { document.getElementById('mp06').style.visibility = "hidden"; }
  if(document.getElementById('mp07')) { document.getElementById('mp07').style.visibility = "hidden"; }
}