var tmr=null;
var fade=false;
var mov=false;
var txto=0;
var yoff=0;
var started=false;

function init(){
	if(ie||ns){
		mylayer=new Gl_layer(0,-100,10,"");
		if(ie) mylayer.ob.backgroundColor="#95A7B6";
		else mylayer.ob.bgColor="#95A7B6";
		mylayer.ob.borderColor="#FFFFFF";
		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){
		pretxt="<table width=150 cellpadding=1 cellspacing=2 border=0><tr><td class=\"fahne\">&#187;&nbsp;";
		posttxt="</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);
		mov=true
	}
}

function mout(){
	if(ie||ns){
			mylayer.moveTo(-500,-500);
			mov=false;
			clearInterval(tmr);
			txto=0;
		
	}
}
	
function follow(){
	var lleft=0;
	var ltop=0;
	
	if(ie&&(txto<90)){
		txto+=5;
		mylayer.ob.filter="alpha(opacity="+txto+")"
	}
	if((mymouse.x+txtwidth+20)<windowwidth)
		lleft=mymouse.x+5;
	else
		lleft=mymouse.x-(txtwidth+10);
	if((mymouse.y+yoff+txtheight+30)<windowheight+yoff)
		ltop=mymouse.y+yoff+20;
	else
		ltop=mymouse.y+yoff-(txtheight+5);
	mylayer.moveTo(lleft,ltop)
}