<!--
//	Titel: popuplist Version 1.1
//	Autor: Scientec Internet Applications + Media GmbH
//	Email: info@scientec.de
//	URL: www.scientec.de
//	Datum: 01.12.2000
//
//	Copyright (c) Scientec Internet Applications + Media GmbH, 2000
//	All rights reserved. Alle Rechte vorbehalten.
//	Dieser Code darf, auch in Auszügen, ausschliesslich nach schriftlicher
//	Zustimmung seitens Scientec verwendet, kopiert
//	oder bearbeitet werden.

//	Layer &ouml;ffnet sich bei Link onMouseover. Feste Position bei onMouseout. Layer schlie&szlig;t sich
//	bei onClick innerhalb des Dokuments oder nach dt

if(NS4) {document.captureEvents(Event.MOUSEMOVE | Event.MOUSEUP)}; 

var dX=4;
var dY=13;
var dt=8000;
var aktiv
document.onmousemove=getMouseXY;
document.onmouseup=hideBox;
popImgPath="/admin/onteam/_grafik/";

function makeLayer(){
   layerString = "<DIV ID='div1' STYLE='position:absolute; left:0px; top:0px; visibility: hidden'></DIV>";

   if (IE4) {
      document.body.insertAdjacentHTML("BeforeEnd",layerString);
    }
    else if (NS4) {
      document.layers['div1'] = new Layer(0);
      document.layers['div1'].visibility = "hidden";
    }
}

function showItemBox(no){
if (popup[no].length != 0){
  if (!NS3 && !IE3 && !(IE4 && !IE5) || NS5)
  {
    var contents ="";
    if (IE4)
    {
      contents += "<TABLE CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\"><TR><TD>";      
    }
    contents += "<TABLE CELLSPACING=\"0\" CELLPADDING=\"1\" BORDER=\"0\" CLASS=\"POPborder\"><TR><TD><TABLE CELLPADDING=\"1\" CELLSPACING=\"0\" BORDER=\"0\">";
    for (var j = 0; j < popup[no].length; j++ )
    {
      if (popupprop[popup[no][j]] == "yes")
      {
        contents += "<TR><TD CLASS=\"POPin\" WIDTH=\"10\" ALIGN=\"CENTER\"><IMG SRC=\""+popImgPath+"nav/arrow_link.gif\" VSPACE=\"4\"></TD><TD WIDTH=\"139\" CLASS=\"POPin\" NOWRAP><A HREF=\""+popuplinks[popup[no][j]]+"\" CLASS=\"POPa\">"+popup[no][j]+"</A></TD></TR>";
      }
      if (popupprop[popup[no][j]] == "out")
      {
        contents += "<TR><TD CLASS=\"POPout\" WIDTH=\"10\" ALIGN=\"CENTER\"><IMG SRC=\""+popImgPath+"nav/arrow_out.gif\" VSPACE=\"4\"></TD><TD WIDTH=\"139\" CLASS=\"POPout\" NOWRAP><A HREF=\""+popuplinks[popup[no][j]]+"\" CLASS=\"POPa\">"+popup[no][j]+"</A></TD></TR>";
      }
      if (popupprop[popup[no][j]] == "no")
      {
        contents += "<TR><TD CLASS=\"POPinX\" WIDTH=\"10\" ALIGN=\"CENTER\"><IMG SRC=\""+popImgPath+"nav/arrow_link.gif\" VSPACE=\"4\"></TD><TD WIDTH=\"139\" CLASS=\"POPinX\" NOWRAP><A HREF=\""+popuplinks[popup[no][j]]+"\" CLASS=\"POPa\">"+popup[no][j]+"</A></TD></TD></TR>";
      }
    }
    if (!NS4&&!NS5)
    {
      contents += "<TR><TD WIDTH=\"149\" ALIGN=\"CENTER\" COLSPAN=\"2\" CLASS=\"POPclose\"><A HREF=\"javascript:void()\" onMouseover=\"hideBox()\"><IMG SRC=\""+popImgPath+"nav/close.gif\" VSPACE=\"2\" HSPACE=\"2\" BORDER=\"0\"></A></TD></TR>";
    }
    contents += "</TABLE></TD></TR></TABLE>";
    if (IE4)
    {
      contents += "</TD><TD BACKGROUND=\""+popImgPath+"layout/chess-v.gif\"><IMG SRC=\""+popImgPath+"misc/0.gif\" WIDTH=\"4\" HEIGHT=\"4\"></TD></TR>";
      contents += "<TR><TD BACKGROUND=\""+popImgPath+"layout/chess-h.gif\"><IMG SRC=\""+popImgPath+"misc/0.gif\" WIDTH=\"4\" HEIGHT=\"4\"></TD><TD><IMG SRC=\""+popImgPath+"layout/chess.gif\" WIDTH=\"4\" HEIGHT=\"4\"></TD></TR></TABLE>";
    }
    FV_writeInLayer('div1',contents);
    FV_setLayerXY('div1',mouseX+dX,mouseY+dY);
    FV_showLayer('div1');	
    if(IE4){document.all['div1'].focus();}
    window.clearTimeout(aktiv);
    aktiv=window.setTimeout("hideBox()",dt);
  }
 }
else hideBox();
}

function hideBox(Ereignis){
	setTimeout("FV_hideLayer('div1')",100);
}

function getMouseXY(Ereignis){
 	if(NS4||NS5){
		mouseX = Ereignis.pageX;
		mouseY = Ereignis.pageY;
	}
	if(IE4){
		mouseX = window.event.clientX+document.body.scrollLeft;
		mouseY = window.event.clientY+document.body.scrollTop;
	}
}

//-->