function Bilderanzeige(GrafikURL, Breite, Hoehe)
{
Fensteroptionen="toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no";

Grafikfenster=window.open("", "", Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
Grafikfenster.focus();
Grafikfenster.document.open();
with(Grafikfenster)
{
document.write("<html><head>");
document.write("<title>Bilderanzeige</title>");
document.write("</head>");
document.write("<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\">");
document.write("<img border=\"0\" onclick=\"window.close();\" src=\""+ GrafikURL +"\" title=\"Zum Schließen auf das Foto klicken\">");
document.write("</body></html>");
document.body.style.cursor = "pointer";
}
}

function TargetBlank(Adresse) {
NeuFenster = window.open(Adresse, "Zweitfenster");
NeuFenster.focus();
}


// well here it is. the script. use it as you will. or not at all.
// paul, http://www.idontsmoke.co.uk/

if(!document.getElementById) { window.location.href = "http://webstandards.org/upgrade/"; }

window.onload = function(e) {
  if(document.createElement) tooltip.d();
}

tooltip = {

  t: document.createElement("div"),
  c: null,
  g: false,
  
  m: function(e) {
    if(tooltip.g) {
      x = window.event ? event.clientX + document.body.scrollLeft : e.pageX;
      y = window.event ? event.clientY + document.body.scrollTop  : e.pageY;
      tooltip.a(x,y);
    }
  },

  d: function() {
    tooltip.t.setAttribute("id","tooltip");
    document.body.appendChild(tooltip.t);
    a = (document.all) ? document.all : document.getElementsByTagName("*");
    for(var i=0; i<a.length; i++) {
      if(a[i].getAttribute("title")) {
        a[i].setAttribute("text",a[i].getAttribute("title"));
        a[i].removeAttribute("title");
        if(a[i].getAttribute("alt") && a[i].complete) a[i].removeAttribute("alt");
        tooltip.l(a[i],"mouseover",tooltip.s);
        tooltip.l(a[i],"mouseout",tooltip.h);
      } else if(a[i].getAttribute("alt") && a[i].complete) {
        a[i].setAttribute("text",a[i].getAttribute("alt"));
        a[i].removeAttribute("alt");
        tooltip.l(a[i],"mouseover",tooltip.s);
        tooltip.l(a[i],"mouseout",tooltip.h);
      }
    }
    document.onmousemove = tooltip.m;
  },

  s: function(e) {
    d = (window.event) ? window.event.srcElement : e.currentTarget;
    tooltip.t.appendChild(document.createTextNode(d.getAttribute("text")));
    tooltip.c = setTimeout("tooltip.t.style.visibility = 'visible';",500);
    tooltip.g = true;
  },

  h: function(e) {
    tooltip.t.style.visibility = "hidden";
    // thanks to Alexander Shurkayev for helping me optimise this line :-)
    if (tooltip.t.firstChild) tooltip.t.removeChild(tooltip.t.firstChild);
    clearTimeout(tooltip.c);
    tooltip.g = false;
    tooltip.a(-99,-99);
  },

  l: function(o,e,a) {
    if(o.addEventListener) o.addEventListener(e,a,true);
    else if(o.attachEvent) o.attachEvent("on"+e,a);
    else return null;
  },

  a: function(x,y) {
    tooltip.t.style.left = x + 8 + "px";
    tooltip.t.style.top  = y + 8 + "px";
  }

}

// -->







