/*
Oeffnen eines extra Fensters zur vergrößerten Darstellung von Bildern
*/


function bild(img_nr, img_gr)
{


  img_width  = 800;
  img_height = 600;


  if(img_gr == 1)
  {
    img_width  = 800;
    img_height = 600;
  }

  if(img_gr == 2)
  {
    img_width  = 450;
    img_height = 600;
  }


  img_url	=	"/images/g_"+img_nr+".jpg"

  wnd = open("",
             "Bildanzeige",
             "width=" + (img_width + 100) + ",height=" + (img_height + 75) +
             ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
             "scrollbars=0,resizable=0,dependent,screenX=0,screenY=0")

  var baseadr = location.href
  var lastsl  = location.href.lastIndexOf("\\")
  if(lastsl >= 0)
    baseadr = baseadr.substring(0, lastsl + 1)
  else
  {
    lastsl = location.href.lastIndexOf("/")
    if(lastsl >= 0)
      baseadr = baseadr.substring(0, lastsl + 1)
  }

  with(wnd.document)
  {
    open("text/html")
    writeln("<HTML>")
    writeln("<HEAD><TITLE>Gartenhof Küsters GmbH</TITLE>")
    writeln("<link href=\"/style/internet.css\" rel=\"stylesheet\" type=\"text/css\">")
    writeln("<style type=\"text/css\">")
    writeln(".bild {width: "+img_width+"px;}")
    writeln(".bild img {width: "+img_width+"px; height: "+img_height+"px; border: none;}")
    writeln("</style></HEAD><BODY>")
    writeln("<div id=\"bildgross\"><div style=\"width:"+img_width+"\">")
    writeln("<h1>Gartenhof Küsters GmbH</h1>")
    writeln("<p class=\"rechts\"><a href=\"javascript:self.close()\">Fenster schliessen</a></p><span class=\"bild\">")
    writeln("<img src=\""+img_url+"\" />")
    writeln("</span>")
    writeln("</div></div>")
    writeln("</BODY></HTML>")
    close()
  }
  wnd.moveTo(0,0);
  wnd.focus()
}




function message(txt){
    window.status = txt;
    
             }
function remove_message(){
    window.status="";
             }


