﻿// JScript File

        
function getPositionLeft(This){
var el = This;var pL = 0;
while(el){pL+=el.offsetLeft;el=el.offsetParent;}
return pL
}

function getPositionTop(This){
var el = This;var pT = 0;
while(el){pT+=el.offsetTop;el=el.offsetParent;}
return pT
}


function showtooltip(event,tolltipid,divid,kurzel){
var Ex, Ey;
var scrollPosy;
    if (typeof window.pageYOffset != 'undefined') {
       scrollPosy = window.pageYOffset;
    }
    else if (typeof document.compatMode != 'undefined' &&
         document.compatMode != 'BackCompat') {
       scrollPosy = document.documentElement.scrollTop;
    }
    else if (typeof document.body != 'undefined') {
       scrollPosy = document.body.scrollTop;
    }
var scrollPosx;
    if (typeof window.pageXOffset != 'undefined') {
       scrollPosx = window.pageXOffset;
    }
    else if (typeof document.compatMode != 'undefined' &&
         document.compatMode != 'BackCompat') {
       scrollPosx = document.documentElement.scrollLeft;
    }
    else if (typeof document.body != 'undefined') {
       scrollPosx = document.body.scrollLeft;
    }
if(document.all) // nur für IE
{
    Ex = window.event.x + scrollPosx;
    Ey = window.event.y + scrollPosy;
}
else
{
    Ex = event.pageX;
    Ey = event.pageY;
}
document.getElementById(tolltipid).style.left = eval(Ex)+5 + 'px';
document.getElementById(tolltipid).style.top = eval(Ey)-25 + 'px';
document.getElementById(tolltipid).style.display = 'inline';
document.getElementById(tolltipid).innerHTML =kurzel;
}

function notooltip(tolltipid){
document.getElementById(tolltipid).style.left = '-100px';
document.getElementById(tolltipid).style.top = '-100px';
document.getElementById(tolltipid).style.display = 'none';
}






