var tmr=null;
var mov=false;
var txto=0;
var yoff=0;
var started=false;

function popup(){
        if(ie||ns){
                mylayer=new Gl_layer(-400,-500,10,"");
                if(ie) mylayer.ob.backgroundColor="#e4f0eb";
                else mylayer.ob.bgColor="#e4f0eb";   //#222255
                mylayer.ob.borderColor="#BB5500";
                mylayer.ob.borderWidth="1px";
                mylayer.ob.borderStyle="solid";
                mymouse=Ms_initmouse();
                started=true
        }
}

function mo(txt){
        if(ie5) yoff=document.body.scrollTop;
        if(ie||ns){
                // Maße des Layers
                pretxt="<table width=100 cellpadding=0 cellspacing=0 border=0><tr><td><div align=\"center\"><b><font color=\"#EFEFEF\" face=\"Verdana\" size=2></b>";
                posttxt="</font></div></td></tr></table>";
                windowheight=Gl_get_window_height();
                windowwidth=Gl_get_window_width();
                mylayer.write(pretxt+txt+posttxt);
                txtheight=mylayer.height;
                txtwidth=mylayer.width;
                if(!mov) tmr=setInterval('follow()',50);    // Fade-in Geschwindigkeit
                mov=true
        }
        window.status="Christine Dosch"
}

function mout(){
        if(ie||ns){
                // koordinaten des layers nach onMouseOut
                mylayer.moveTo(-1000,-1000);
                mov=false;
                clearInterval(tmr);
                txto=0
        }
        window.status=""
}

function follow(){
        var lleft=0;
        var ltop=0;
        // transparenz des layers in %
        if(ie&&(txto<100)){
                txto+=8;
                mylayer.ob.filter="alpha(opacity="+txto+")"
        }
        if((mymouse.x+txtwidth+20)<windowwidth)
                // x-koordinate des layers
                lleft=mymouse.x+30;
        else
                lleft=mymouse.x-(txtwidth+10);
        if((mymouse.y+yoff+txtheight+30)<windowheight+yoff)
                // y-koordinate des layers
                ltop=mymouse.y+yoff+20;
        else
                ltop=mymouse.y+yoff-(txtheight+5);
        mylayer.moveTo(lleft,ltop)
}




function findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document); return x;
}

function showHideLayers() {
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

















