--- webfm.js	2007-05-09 14:35:05.000000000 +0200
+++ webfm.js.orig	2007-05-06 06:43:06.000000000 +0200
@@ -230,11 +230,7 @@
   // Create the drag container that will show the item while dragging
   WebfmDrag.dragCont = Webfm.ce('div');
   WebfmDrag.dragCont.setAttribute('id','dragCont'); //id for css
-  if( typeof( WebfmDrag.dragCont.style.cssText ) != 'undefined' ) {
-	    WebfmDrag.dragCont.style.cssText = 'position:absolute;display:none;';
-  } else {
-	    WebfmDrag.dragCont.setAttribute('style','position:absolute;display:none;');
-  }
+  WebfmDrag.dragCont.style.cssText = 'position:absolute;display:none;';
   document.body.appendChild(WebfmDrag.dragCont);
 }
 
@@ -244,12 +240,7 @@
   Webfm.oldOnMouseDown = document.onmousedown;
   Webfm.contextMenuDiv = Webfm.ce('div');
   Webfm.contextMenuDiv.setAttribute('id', 'cxtCont');  //id for css
-  if( typeof(  Webfm.contextMenuDiv.style.cssText ) != 'undefined' ) {
-	     Webfm.contextMenuDiv.style.cssText = 'position:absolute;display:none;';
-  } else {
-	     Webfm.contextMenuDiv.setAttribute('style','position:absolute;display:none;');
-  }
-//  Webfm.contextMenuDiv.style.cssText = 'position:absolute;display:none;';
+  Webfm.contextMenuDiv.style.cssText = 'position:absolute;display:none;';
   document.body.appendChild(Webfm.contextMenuDiv);
 }
 
@@ -1175,8 +1166,7 @@
   obj.is_file = ((obj.element.className != 'dirrow') && (obj.element.className.substring(0,4) != 'tree'));
   obj.renInput = Webfm.ce('input');
   obj.renInput.setAttribute('type', 'textfield');
-//  obj.renInput.value = obj.clickO Webfm.contextMenuDivValue;
-  obj.renInput.value = obj.clickObj.Webfm.contextMenuDivValue;
+  obj.renInput.value = obj.clickObj.firstChild.nodeValue;
   //clone input element since Webfm.contextMenuObj isn't destroyed on DOM
   obj.tempInput = obj.renInput.cloneNode(true);
   obj.tempInput.setAttribute('autocomplete','off'); //FF focus bug
@@ -2104,8 +2094,7 @@
 * @param Object inputObj = Reference to HTML element
 * @public
 */
-//getTopPos : function(inputObj) {
-function getTopPos(inputObj) {
+getTopPos : function(inputObj) {
   var returnValue = inputObj.offsetTop;
 
   while((inputObj = inputObj.offsetParent) != null){
@@ -2123,8 +2112,7 @@
 * @param Object inputObj = Reference to HTML element
 * @public
 */
-//getLeftPos : function(inputObj) {
-function getLeftPos(inputObj) {
+getLeftPos : function(inputObj) {
   var returnValue = inputObj.offsetLeft;
 
   while((inputObj = inputObj.offsetParent) != null){
