// ------------------------------------------------
//            Januar 2004, Jens Frühauf
//
//            j e n s @ e a r l y . d e
//
// ------------------------------------------------


	ta="<br><img src=\"img/blank.gif\" width=1 height=5><br><table cellpadding=1 cellspacing=0 border=0"+ 
	   "width=100% bgcolor=\"#e5e5e5\"><tr><td align=right><font face=\"Verdana,Arial,Helvetica\" "+ 
	   "class=\"lt\" size=-1>";
  	te="&nbsp;</td></tr></table>";

	var x = 0;
	var xx=-100;
	var yy=0;
	var y = 0;
	var showit = 0;

    // Welchen Broser haben wir denn...
    // ----------------------------------
    ns = (document.layers)? true:false
    ie4 = (document.all)? true:false
    ie5 = false;
    if (ie4) {
   	if (navigator.userAgent.indexOf('MSIE 5')>0) {
    		ie5 = true;
    	}
    }

    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 hideit() {
    	if ( (ns) || (ie4) ) {
    		showit = 0;
    		hide(over);
    	}
    }


    // Popup zusammenbasteln
    // ---------------------
    function rpopi(text, title, partner) {
    	txt = "<TABLE WIDTH=380 BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#000077\">" + 
    	      "<TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0><TR><TD>" +
    	      "<SPAN ID=\"thetext\"><B><FONT face=\"Arial, Helvetica\" size=-1 class=\"lt\" color=\"#ffffff\">" +
    	      title+"</FONT></B></SPAN></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=5"+ 
    	      "CELLSPACING=0 BGCOLOR=\"#ffffff\"><TR><TD><SPAN ID=\"thetext2\"><FONT class=\"p2\"><B>"+
    	      text+"</B><BR>Ansprechpartner: "+partner+"</FONT><SPAN></TD></TR></TABLE></TD></TR></TABLE>"
       	wtl(txt);
    	display_it();
    }


	function popi(i,yn) {
		yy=yn+10;
		xx=-150;
		rpopi(text[i],title[i],partner[i]);
    }


    // ...und jetzt anzeigen
    // ---------------
    function display_it() {
    	if ( (ns) || (ie4) ) {
    		if (showit == 0) 	{
    			moveTo(over,x+xx,y+yy);
    			show(over);
    			showit = 1;
    		}
    	}
    }


    // Auf mousemoves reagieren
    // -----------------------
    function mouseMove(e) {
    	if (ns) {x=e.pageX; y=e.pageY;}
    	if (ie4) {x=event.x; y=event.y;}
    	if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
    	if (showit) {
    		moveTo(over,x+xx,y+yy);
    	}
    }
