function showpic(bildnr)
{
  var new_img = new Image();
  new_img.src = bildnr;
  //document.getElementById("bild").src = bildnr;
  document.getElementById("bild").src = new_img.src;
  if ($.browser.msie) {
     if (new_img.width > 700) document.getElementById("bild").width='700';   else document.getElementById("bild").width=new_img.width;
  }
}

var anz_anzeige = 4;

$(document).ready(function(){
//  if (document.getElementById("bild") > 700) document.getElementById("bild").width='700';
  $('#pfeil_oben').click(function(){
      var x = anz_bilder;
      while (x > 0){
        if ($('.tp'+x).css("display") == "none"){
           //$('.tp'+x).fadeIn();
           $('.tp'+x).animate({ height: 'show', opacity: 'show' }, "fast");
           break;
        }
        x--;
      }
  })

   $('#pfeil_unten').click(function(){
      for (x = 1; x <= (anz_bilder-anz_anzeige); x++){
        if ($('.tp'+x).css("display") != "none"){
           //$('.tp'+x).fadeOut();
           $('.tp'+x).animate({ height: 'hide', opacity: 'hide' }, "fast");
           break;
        }
      }
  })
})