/*
/* Funktionen zur Kurzhilfe
/*
/********************************************************/
var mouseX = 500;
var mouseY = 400;
// find out if ie runs in quirks mode
//
var docEl = (
             typeof document.compatMode != "undefined" && 
             document.compatMode        != "BackCompat"
            )? "documentElement" : "body";

// register event
// capture it for nc 4x (ok it's a dino)
//
function init_mousemove() {
    if(document.layers) document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = dpl_mouse_pos;
}

function dpl_mouse_pos(e) {

    // position where mousemove fired
    //
    var xPos    =  e? e.pageX : window.event.x;
	var yPos    =  e? e.pageY : window.event.y;

	
	// for ie add scroll position
	//
	if (document.all && !document.captureEvents) {
	    xPos    += document[docEl].scrollLeft;
	    yPos    += document[docEl].scrollTop;
    }
    
	mouseX = xPos;
	if (mouseX > 800) {
		mouseX = 700;
	}
	mouseY = yPos;
	if (mouseY > 500) {
		mouseY = 400;
	}
    // for the dino pass event
    //
    if (document.layers) routeEvent(e);
}
//function Position(Ereignis) {
//	if (Ereignis && Ereignis.screenX) {
//		mouseX = Ereignis.screenX;
//		if (mouseX > 800) {
//			mouseX = 700;
//		}
//		mouseY = Ereignis.screenY;
//		if (mouseY > 500) {
//			mouseY = 400;
//		}
//	}
//}
//document.onmousedown = Position;

function showinfo (stichwort) {
	var width = 400;
	var height = 250;
	var infoFenster = open('/cgi-bin/elwoms.pl?l=/stichwort.html&wort='+stichwort, 'Info', 'width='+width+',height='+height+',left='+mouseX+',top='+mouseY+',directories=no,location=no,menubar=no,personalbar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
	if (infoFenster != null) {
		if (infoFenster.opener == null) {
			infoFenster.opener = self;
		}
	}
	infoFenster.focus();
}
function shortinfo (stichwort) {
	this.title = shortinfotext(stichwort);
}

