/* $Revision: 5.3.2 $
 ************************************************************************
 * dw-Mailer eu                        last update 21.01.2010 15:59:14  *
 * ============                                                         *
 * Datei -> /scripts/tooltip.js                                         *
 * Copyright (c) by Wolfgang Dürr                                       *
 * http://www.dw-formmailer.de                               xhtml 1.0  *
 * mailto:webmaster@dw-formmailer.de                                    *
 ************************************************************************
*/
var tt;
var ie=document.all;
var ns=document.getElementById && !document.all;
var sh=false;
var x=-40;
var y=25;
function show_tt(a,b) {
 tt=document.getElementById(b)
 tt.innerHTML="<b>Info</b><br />"+a
 sh=true
 return false
}
function hide_tt(b) {
 sh=false
 tt=document.getElementById(b)
 tt.style.visibility="hidden"
 tt.style.left="-1152px"
}
function body_tt() {
 return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function move_tt(a) {
 if (sh){
  var xx=(ns)?a.pageX : event.clientX+body_tt().scrollLeft;
  var yy=(ns)?a.pageY : event.clientY+body_tt().scrollTop;
  var rt=ie&&!window.opera ? body_tt().clientWidth-event.clientX-x : window.innerWidth-a.clientX-x-20;
  var bt=ie&&!window.opera ? body_tt().clientHeight-event.clientY-y : window.innerHeight-a.clientY-y-20;
  var lt=(x<0)? x*(-1) : -1152;
  if (rt<tt.offsetWidth) tt.style.left=ie? body_tt().scrollLeft+event.clientX-tt.offsetWidth+"px" : window.pageXOffset+a.clientX-tt.offsetWidth+"px";
  else if (xx<lt) tt.style.left="5px";
  else tt.style.left=xx+x+"px";
  if (bt<tt.offsetHeight) tt.style.top=ie? body_tt().scrollTop+event.clientY-tt.offsetHeight-y+"px" : window.pageYOffset+a.clientY-tt.offsetHeight-y+"px";
  else tt.style.top=yy+y+"px";tt.style.visibility="visible";
 }
}
document.write("<style type=\"text/css\">");
document.write("#tt{");
document.write(" background-image:url('../images/info-blue.gif');");
document.write(" background-repeat:no-repeat;");
document.write(" background-position:5px 5px;");
document.write(" position: absolute;");
document.write(" width: 400px;");
document.write(" font-family:Tahoma, Helvetica, sans-serif;");
document.write(" font-size:12px;");
document.write(" color:#000000;");
document.write(" border:1px dashed #81A9E8;");
document.write(" background-color:#F7F7F7;");
document.write(" padding-left:22px;");
document.write(" padding-right:5px;");
document.write(" padding-top:7px;");
document.write(" padding-bottom:5px;");
document.write(" visibility:hidden;");
document.write(" z-index:150;");
document.write("}");
document.write(".dfn {");
document.write(" border-bottom:1px dashed #000080;");
document.write(" cursor:help;");
document.write(" font-style:normal;");
document.write("}");
document.write("<\/style>");
document.write("<div id=\"tt\"><\/div>");
document.onmousemove=move_tt;