//----------------------------
var x = 0;
var y = 0;
var active = false;
var links = 150;
var oben = 15;

var ns4 = (document.layers) ? true : false;
var ie4 = (document.all) ? true : false;
var ie5 = false;
if (ie4 && navigator.userAgent.indexOf('MSIE') > 0) ie5 = true;
if(ns4 || ie4)
{
 document.onmousemove = mouseMove;
 if (ns4) document.captureEvents(Event.MOUSEMOVE);
}

function helpon(html_text)
{
 if(ns4)
 {
  document.flyinghelp_ns.document.open();
  document.flyinghelp_ns.document.write( html_text );
  document.flyinghelp_ns.document.close();
  document.flyinghelp_ns.left = x - links;
  document.flyinghelp_ns.top = y + oben;
  document.flyinghelp_ns.visibility = "show";
  document.flyinghelp_ns.style.zIndex = 100;
  active = true;
 }
 else if(ie4)
 {
  document.all["flyinghelp_ie"].innerHTML = html_text;
  document.all["flyinghelp_ie"].style.left = x - links;
  document.all["flyinghelp_ie"].style.top = y + oben;
  document.all["flyinghelp_ie"].style.visibility = "visible";
  document.all["flyinghelp_ie"].style.zIndex = 100;
  active = true;
 }
}
function helpon1(text)
{
 if(text != "" && (ns4 || ie4))
 {
  helpon( "<table border=0 cellspacing=0 cellpadding=1 bgcolor=#000000><tr><td><table border=0 cellspacing=0 cellpadding=2 bgcolor=#E6E6E6 width='100%'><tr><td align=center><font face='Verdana,Arial' size=1>&nbsp;" + text2 + "&nbsp;</font></td></tr></table></td></tr></table>" );
 }
}
function helpon120(text1, text2)
{
 if(text1 != "" && text2 != "" && (ns4 || ie4))
 {
  helpon( "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#000000 width=120><tr><td><table border=0 cellspacing=1 cellpadding=1 width='100%'><tr><td align=center bgcolor=#C0C0C0><font face='Verdana,Arial' size=1><b>" + text1 + "</b></font></td></tr><tr><td align=left bgcolor=#E6E6E6><font face='Verdana,Arial' size=1>" + text2 + "</font></td></tr></table></td></tr></table>" );
 }
}
function helpon2(text1, text2)
{
 if(text1 != "" && text2 != "" && (ns4 || ie4))
 {
  helpon( "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#000000 width=300><tr><td><table border=0 cellspacing=1 cellpadding=1 width='100%'><tr><td align=center bgcolor=#C0C0C0><font face='Verdana,Arial' size=1><b>" + text1 + "</b></font></td></tr><tr><td align=left bgcolor=#E6E6E6><font face='Verdana,Arial' size=1>" + text2 + "</font></td></tr></table></td></tr></table>" );
 }
}
function helpon5(text1, text2)
{
 if(text1 != "" && text2 != "" && (ns4 || ie4))
 {
  helpon( "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#000000 width=500><tr><td><table border=0 cellspacing=1 cellpadding=1 width='100%'><tr><td align=center bgcolor=#C0C0C0><font face='Verdana,Arial' size=1><b>" + text1 + "</b></font></td></tr><tr><td align=left bgcolor=#E6E6E6><font face='Verdana,Arial' size=1>" + text2 + "</font></td></tr></table></td></tr></table>" );
 }
}

function popup(text1,text2,groesse,links,oben,farbe1,farbe2,farbe3)
{

if (farbe1 == false){farbe1 = "000000";}
if (farbe2 == false){farbe2 = "C0C0C0";}
if (farbe3 == false){farbe3 = "E6E6E6";}

 if(text1 != "" && text2 != "" && (ns4 || ie4))
 {
  helpon( "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#"+farbe1+" width="+groesse+"><tr><td><table border=0 cellspacing=1 cellpadding=1 width='100%'><tr><td align=center bgcolor=#"+farbe2+"><font face='Verdana,Arial' size=1><b>" + text1 + "</b></font></td></tr><tr><td align=left bgcolor=#"+farbe3+"><font face='Verdana,Arial' size=1>" + text2 + "</font></td></tr></table></td></tr></table>" );
 }
}


function helpoff()
{
 if(ns4) document.flyinghelp_ns.visibility = "hide";
 else if(ie4) document.all["flyinghelp_ie"].style.visibility = "hidden";
 active = false;
}
function mouseMove(e)
{

 if(ns4)
 {
  x = e.pageX;
  y = e.pageY;
 }
 else if(ie5)
 {
  x = event.x + document.body.scrollLeft;
  y = event.y + document.body.scrollTop;
 }
 else if(ie4)
 {
  x = event.x;
  y = event.y;
 }
 if(active)
 {
  if(ns4)
  {
   document.flyinghelp_ns.left = x - links;
   document.flyinghelp_ns.top = y + oben;
  }
 else if(ie4)
  {
   document.all["flyinghelp_ie"].style.left = x - links;
   document.all["flyinghelp_ie"].style.top = y + oben;
  }
 }
}
