add: debug( "ny=" + ny + "\n" ); 
context: function hop_iwindow_drag( event, win ) {   var dx = event.clientX - hop_element_x( win );   var dy = event.clientY - hop_element_y( win );   var ocursor = win.el_handle.style.cursor;   hop_iwindow_raise( win );      win.el_main.style.height = win.el_main.offsetHeight;   win.el_main.style.width = win.el_main.offsetWidth;   win.el_body.style.visibility = "hidden";   win.el_handle.style.cursor = "move";   document.onmousemove = function( event ) {      if( event == undefined ) event = window.event;      var nx = (event.clientX - dx);      var ny = (event.clientY - dy);      if( win.user_parent ) {	 var p = win.parentNode;	 var px = hop_element_x( p );	 var py = hop_element_y( p );      	 if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) {	    win.style.left = nx;	 }	 if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) {	    win.style.top = ny;	 }      } else {	 if( nx > 0 ) win.style.left = nx;	 if( ny > 0 ) win.style.top = ny;      }   }   document.onmouseup = function( event ) {      if( event == undefined ) event = window.event;      document.onmousemove = false;      win.el_handle.style.cursor = ocursor;      win.el_body.style.visibility = "visible";      /* user event */      if( win.ondrag ) win.ondrag();   }      event.preventDefault();   event.stopPropagation();}
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/8c102c7a0b72750adc05ada33b02d7131b37b364/hop-iwindow.js/buggy/share/hop-iwindow.js