
/*
neue textlinker.js
r+v versicherung [mp 15.10.2001]
für DOM Unterstützung nach W3 (http://www.w3.org/dom) 
*/

var ie=false;
var n4=false;
var n6=false;
var btx=false;

var obj = "";

if(document.all){
ie=true;     /* MSIE 4 ++ */
obj = "document.all";
}
else
if (document.getElementById){
n6 = true;   /* Netscape 6 */
obj = "document.getElementById";
}
else
if (document.layers || (navigator.appName.indexOf("Netscape") > -1 && navigator.appVersion.substring(0,1)==4)){
n4=true;     /* alter Netscape 4.x */
obj = "document.layers";
browser = "n4";
}
else
btx=true;    /* Exoten */


var welcherLayer="";
function showLayer(which)
{ 
which="textLinker"+which;
welcherLayer=which;
	if(ie)
	{
//	callingY += document.body.scrollTop;
//	callingX += document.body.scrollLeft;
	}
var tmp=objSt(which)+'.visibility = "visible";';
	if(n4)
    tmp+=objSt(which)+'.visibility = "show";';
tmp+=objSt(which)+'.top='+callingY+'+18;';
tmp+=objSt(which)+'.left='+callingX+'-15;';

eval(tmp);
}


function hideLayer(which)
{
which="textLinker"+which;
if(!n4)
tmp=objSt(which)+'.visibility = "hidden";';
else
tmp=objSt(which)+'.visibility = "hide";';
	
eval(tmp);
welcherLayer="";
}


function objSt(item)
{
 if(ie)
 obSt=obj+'.'+item+'.style';
 if(n4)
 obSt=obj+'.'+item;
 if(n6)
 obSt=obj+'("'+item+'").style';
return obSt;
}
function objCont(item,Str)
{
 if(ie)
 obSt=obj+"."+item+".innerHTML='"+Str+"'";
 if(n4)
 {
 Str="<font size=2 face=arial>"+Str;
 obSt=obj+'.'+item;
 obSt+=".document.open();";
 obSt+=obj+'.'+item+".document.write(\""+Str+"</font>\");";
 obSt+=obj+'.'+item+".document.close();";
 }
 if(n6)
 obSt=obj+'("'+item+'").innerHTML="'+Str+'"';
return obSt;
}

function XY_ungeloest(e)
{
	if(!ie)
	{
	 callingX = e.pageX;
	 callingY = e.pageY;
	}
	else
	{
	callingX = window.event.x;
	callingY = window.event.y;
	if (navigator.userAgent.indexOf('MSIE 5')>0) {
	callingY += document.body.scrollTop;
	callingX += document.body.scrollLeft;
	}
	}
LayerZumCursor();
}

if(document.layers)
{
 document.captureEvents(Event.MOUSEMOVE);
}
 document.onmousemove = XY_ungeloest;



function LayerZumCursor()
{
	if(welcherLayer!="")
	{
	eval(objSt(welcherLayer)+'.top='+callingY+'+18;');
	eval(objSt(welcherLayer)+'.left='+callingX+'-15;');
	}
} 

/* /text_linker.js */