function changeActorPic(id, overout) {
    var from = document.getElementById(id).tagName.toLowerCase();
    var idnr = id.substr(4);
    var pfad = document.getElementById('bild'+idnr).src;
    pfad = pfad.substr(0, (pfad.lastIndexOf("/")+1));

    if (overout == true) {
      document.getElementById('name'+idnr).style.color = "#cc6600";
      if (from == 'img') {
        document.getElementById('bild'+idnr).src = pfad + "bild2.jpg";
      }
      if (from == 'a') {
        document.getElementById('bild'+idnr).src = pfad + "bild3.jpg";
      }
    }
    else {
      document.getElementById('name'+idnr).style.color = "#000000";
      document.getElementById('bild'+idnr).src = pfad + "bild1.jpg";

    }
  }
  
function getRect (id){
 
    var top = 0;
    var element = document.getElementById(id);
    while (element && element.tagName != 'BODY')         {
       top  += parseInt( element.offsetTop );
       element = element.offsetParent;
     }
    return top;
}


function getViewport() {
  var width;
  if (document.body.clientWidth) { // iE 5.5
    width = document.body.clientWidth;
  }
  if (window.innerWidth) { //gecko browser, chrome, safari, konqueror
    width = window.innerWidth;
  }
  else if (document.documentElement.clientWidth) { // iE 6,7,8
    width = document.documentElement.clientWidth;
  }

  var height;
  if (document.body.clientHeight) { // iE 5.5
    height = document.body.clientHeight;
  }
  if (window.innerHeight) { //gecko browser, chrome, safari, konqueror
    height = window.innerHeight;
  }
  else if (document.documentElement.clientHeight) { // iE 6,7,8
    height = document.documentElement.clientHeight;
  }
  return (new Array(width,height));
}

/* dazu entsprechen die nutzung
*
* <script type="text/javascript">//<![CDATA[
    if (window.addEventListener)
      window.addEventListener("resize", setBottom, false);
    else
      window.onresize = setBottom; // ie

    function setBottom() {
      var vp = getViewport();
      document.getElementById("contentdiv").style.height = (vp[1]-125) + "px";
    }
  //]]></script>

  */
