rem: } else { 
add: } else { 
context: function BX_scrollToCursor(node){    BX_get_selection();    if (!node)    {        var anchorNode = BX_selection.anchorNode;        var anchorOffset = BX_selection.anchorOffset;        if (BX_selection.isCollapsed)	{            var focusNode = false;        }        else {            var focusNode = BX_selection.focusNode;            var focusOffset = BX_selection.focusOffset;        }    }    else    {        var anchorNode = node;        var anchorOffset = 0;        var focusNode =false;    }    //	var BX_cursor = document.createElement("span");    //	BX_cursor.appendChild(document.createTextNode("|"));    /*    BX_cursor.setAttribute("id","bx_cursor");    	    	BX_insertContent(BX_cursor);    */    if (anchorNode.nodeName == "#text")    {        var cursorNode = anchorNode.parentNode;    }    else    {        var cursorNode = anchorNode;    }    try {var cursorPos = cursorNode.offsetTop + cursorNode.offsetHeight;}    catch(e) { return;}    if (cursorPos == 0)    {        return ;    }    if (cursorPos > (window.innerHeight + window.pageYOffset - 230))    {        window.scrollTo(0,cursorPos - window.innerHeight + 270);    }    /*	else if (cursorPos < window.pageYOffset - 15)    	{    		window.scrollTo(0,cursorPos - 80);    	}*/    //	BX_cursor.parentNode.removeChild(BX_cursor);    BX_selection.collapse(anchorNode,anchorOffset);    if(focusNode && ( anchorNode != focusNode || focusOffset != anchorOffset))    {        BX_selection.extend(focusNode,focusOffset);    }}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js