


// Farben definieren
var ColourBright = '';
var ColourDark   = '';

// Konstanten festlegen
var x = 0;
var xx=10;
var yy=0;
var y = 0;
var showit = 0;


// Browsercheck
// ----------------------------------
ns = (document.layers)? true:false
ie4 = (document.all)? true:false
ie5 = false;
ie5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
ie6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;

if ( (ns) || (ie4) ) {
	if (ns) over = document.popDiv
  if (ie4) over = popDiv.style
  document.onmousemove = mouseMove
  if (ns) document.captureEvents(Event.MOUSEMOVE)
}


function wtl(txt) {
	if (ns) {
		var lll = document.popDiv.document
		lll.write(txt)
		lll.close()
	} else {
		if (ie4) document.all["popDiv"].innerHTML = txt
	}
}


function show(obj) {
	if (ns) obj.visibility = "show"
	else if (ie4) obj.visibility = "visible"
}

function hide(obj) {
	if (ns) obj.visibility = "hide"
	else if (ie4) obj.visibility = "hidden"
}

function moveTo(obj,lx,ly) {
	obj.left = lx
	obj.top = ly
}


function hideItNow() {
	if ( (ns) || (ie4) ) {
		showit = 0;
		hide(over);
	}
}


// Erstelle Popup-Fenster
// ---------------------
function rpopi(text, title) {
	txt = "<TABLE width=100 BORDER=0 CELLPADDING=1 CELLSPACING=0 BGCOLOR=\""
	      +ColourDark
	      +"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=1 CELLSPACING=0><TR><TD><B><FONT face=\"Arial, Helvetica\" size=1 class=\"lt\" color=\""
	      +ColourBright
	      +"\">"+title+"</FONT></B></SPAN></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\""
	      +ColourBright
	      +"\"><TR><TD><SPAN ID=\"thetext2\"><FONT face=\"Arial, Helvetica\" COLOR=\""
	      +ColourDark
	      +"\" size=0 >"
	      +text
	      +"</FONT><SPAN></TD></TR></TABLE></TD></TR></TABLE>"
	wtl(txt);
	display_it();
}


function showItNow(ID) {
	yy=0;
	xx=10;
	rpopi(Msg[ID],Title[ID]);
}


// Anzeige wenn Mouseover
// ---------------
function display_it() {
if ( (ns) || (ie4) ) {
	if (showit == 0) 	{
		moveTo(over,x+xx,y+yy);
		show(over);
		showit = 1;
	}
}
}


// Mousemoves
// -----------------------
function mouseMove(e) {
	if (ns) {x=e.pageX; y=e.pageY;}
	if (ie4) {x=event.x; y=event.y;}
	if (ie5 || ie6) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
	if (showit) {
		moveTo(over,x+xx,y+yy);
	}
}

