function getMouseXY(layerX,layerY,datei) {


var iframe_Y;


document.getElementById('bild').style.width =  layerX + (document.documentElement? "px" : "");
document.getElementById('bild').style.height =  layerY + (document.documentElement? "px" : "");

iframe_X = layerX-1;
iframe_Y = layerY-10;



inhalt = "";

inhalt = inhalt + "<table width='100%' border='0' align='center' cellpadding='2' cellspacing='2' bgcolor='#EFEFEF'>";
inhalt = inhalt + "<tr>";
inhalt = inhalt + "<td align='center' valign='middle' bgcolor='#EFEFEF'><div align='center' class='style'><a href='javascript:;' onMousedown=document.getElementById('bild').style.visibility='hidden' style='color: rgb(102, 102, 102);'>Fenster schliessen</a></div></td>";
inhalt = inhalt + "</tr><tr>";
inhalt = inhalt + "<td align='center' valign='middle' bgcolor='#EFEFEF'><div align='center'><IFRAME SRC='tl_files/time-company/niederlassungen/" + datei + "' BORDER=0 FRAMEBORDER=0 FRAMESPACING=0 WIDTH='" + iframe_X + "' HEIGHT='" + iframe_Y + "'></IFRAME></div></td>";
inhalt = inhalt + "</tr>";
inhalt = inhalt + "</table>";



document.getElementById('bild').style.visibility="visible";

document.getElementById('bild').innerHTML=inhalt;




return true;
}

//  inhalt = inhalt + "<td align='center' valign='middle'><div align='center'><IFRAME SRC='" + datei + "&link_id=" + link_id + "&link_feld=" + link_feld + "&breite_input=" + breite_input + "' BORDER=0 FRAMEBORDER=0 FRAMESPACING=0 WIDTH='" + iframe_X + "' HEIGHT='" + iframe_Y + "'></IFRAME></div></td>";

// 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.onmousedown =	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;
    }

    // display position
    //
    // document.feld.ausg.value    =  "Left = " + xPos + " : Top = " + yPos;

       layer_pos(xPos,yPos);


    // for the dino pass event
    //
    if (document.layers) routeEvent(e);

}


function layer_pos(xPos,yPos)
{

  document.getElementById('bild').style.top =  yPos + (document.documentElement? "px" : "");
  document.getElementById('bild').style.left =  xPos + (document.documentElement? "px" : "");
}



