  
  function changePic(picture,dir_images,titel,pic_width,pic_height,pic_width_small,pic_height_small)
        {
        pic_small = dir_images + "fahrradbuch/small/" + picture;
        document.images.mainpic.src = pic_small;                
        window_width = pic_width + 40;
        window_height = pic_height + 40;
        document.links.mainpic.href = "javascript:picture('http://www.fahrradbuch.de/" + dir_images + "fahrradbuch/large/" + picture + "','Bild gross'," + window_width + "," + window_height + ",'" + titel + "')";
        document.images.mainpic.height = pic_height_small;
        document.images.mainpic.width = pic_width_small;
//        document.images.sh_mr.height = pic_height_small;
//        document.images.sh_lm.width = pic_width_small;
        //alert(pic_height_small);
        }
  
   function picture(pic,beschrieb,breite,hoehe,titel)
     {     
     if(hoehe > breite)
       format = "portrait";
     else
       format = "landscape";
     img_hoehe  = hoehe;
     img_breite = breite;
     if(hoehe > screen.availHeight || breite > 800)
       {
       hoehe  *= 0.9;
       breite *= 0.9;
       img_hoehe  *= 0.9;
       img_breite *= 0.9;
       }
      if(format.indexOf("landscape") > -1)
        {
        hoehe   = Math.floor(hoehe+80);
        breite  = Math.floor(breite+120);
        }
      else
        {
        hoehe   = Math.floor(hoehe+80);
        breite  = Math.floor(breite+80);
        }
        
      PreView = window.open("", "Preview", "toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + breite + ",height=" + hoehe);
      PreView.document.open();
      PreView.document.write("<HTML><HEAD>\n");
      PreView.document.write("<TITLE>" + titel + "</TITLE>\n");
      PreView.document.write("<link rel='stylesheet' type='text/css' href='http://www.fahrradbuch.com/stylesheet.css'>\n");
      PreView.document.write("</HEAD><BODY>\n");
      PreView.document.write("<TABLE WIDTH='100%'>");
      PreView.document.write("  <TR><TD align='center' class='pageHeading' >" + titel + "</TD>\n");
      PreView.document.write("  <TR><TD align='center' ><IMG " + "SRC='" + pic + "'></TD></TR>\n");
      PreView.document.write("  <TR><TD align='center' class='smallText' ><BR/><A HREF='' onClick='self.close()'>Fenster schliessen</A></TD></TR>");
      PreView.document.write("</TABLE>\n");
      PreView.document.write("</BODY></HTML>");
      PreView.document.close();
      }

