var x=0;
var y=0;
var x1=0;
var y1=0;
var xpos=0;
var ypos=0;
var PlanWin=0;

function show()
{
 if ( x<=xpos )
 {
  x = x + x1;
 }
 if ( y<=ypos)
 {
  y = y + y1;
 }

 if (document.layers)
 {
  PlanWin.document.layers["pfeil"].top = y;
  PlanWin.document.layers["pfeil"].left = x;
 }
 if (document.all)
 {
  PlanWin.document.all["pfeil"].style.pixelTop = y;
  PlanWin.document.all["pfeil"].style.pixelLeft = x;
 }

 PlanWin.scrollTo(x-250,y-250)

 if ( x>=xpos && y>=ypos)
 {
  clearTimeout(s);
 }
 else
 {
  s=setTimeout("show()",20);
 }
}

function zeige(x_,y_)
{
  PlanWin=window.open("../map.htm", "planfenster","width=500,height=500,left=320,top=100,scrollbars=yes");

  PlanWin.focus();

  PlanWin.document.write("<img src='../images/map.gif'>");

  if (document.layers)
  {
   PlanWin.document.write("<layer name='pfeil' top=-50 left=100><img src='../images/pfeil.gif'></layer>");
  }

  if (document.all)
  {
   PlanWin.document.write("<div id='pfeil' style='position:absolute;top:-50px;left:50px;width:20px;height:20px'><img src='../images/pfeil.gif'></div>");
  }

  xpos=x_;
  ypos=y_;
  y=-50;
  y1=10;
  x=0;
  x1=10;
  show();
}

