rem: win.el_handle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_drag( event, win ) }; 
add: hop_add_event_listener( win.el_handle, "mousedown", function( event ) { hop_iwindow_drag( event, win ) } ); 
context: function make_hop_iwindow( id, klass, parent ) {   var win = document.createElement( "div" );   win.id = id;   win.className = klass;   win.name = "hop-iwindow";   var t = "\<TABLE id='" + id + "-main' class='hop-iwindow' \       cellpadding='0' cellspacing='0' border='0'>\  <TR>\    <TD class='hop-iwindow-top' valign='top'>\      <TABLE id='" + id + "-handle' class='hop-iwindow-handle' width='100%'\             cellpadding='0' cellspacing='0' border='0'>\        <TR class='hop-iwindow-handle'>\          <TD class='hop-iwindow-iconify' align='left' onclick='hop_iwindow_iconify( \"" + id + "\" )'>&nbsp;</TD>\          <TD class='hop-iwindow-maximize' align='left' onclick='hop_iwindow_maximize( \"" + id + "\" )'>&nbsp;</TD>\          <TD class='hop-iwindow-up-title'>\            <TABLE class='hop-iwindow-title' width='100%' border='0' cellspacing='0' cellpadding='0'>\              <TR>\                <TD class='hop-iwindow-title-left'>&nbsp;</TD>\                <TD id='" + id + "-title' class='hop-iwindow-title-middle'>title</TD>\                <TD class='hop-iwindow-title-right'>&nbsp;</TD>\              </TR>\            </TABLE>\          </TD> \          <TD class='hop-iwindow-close' align='right' onclick='hop_iwindow_close( \"" + id + "\" )'>&nbsp;</TD>\        </TR>\      </TABLE>\    </TD>\  </TR>\  <TR class='hop-iwindow-body'>\    <TD id='" + id + "-content'  class='hop-iwindow-content' valign='top'>\      <TABLE class='hop-iwindow-body' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>\        <TR>\          <TD id='" + id + "-body' class='hop-iwindow-body' height='100%'></TD>\        </TR>\      </TABLE>\    </TD>\  </TR>\  <TR class='hop-iwindow-bottom'>\    <TD>\      <TABLE width='100%' border='0' cellspacing='0' cellpadding='0'>\        <TR>\          <TD id='" + id + "-resize-left' class='hop-iwindow-bottom-left'>&nbsp;</TD>\          <TD id='" + id + "-resize-middle' class='hop-iwindow-bottom-middle'>&nbsp;</TD>\          <TD id='" + id + "-resize-right' class='hop-iwindow-bottom-right'>&nbsp;</TD>\        </TR>\      </TABLE> \    </TD>\  </TR>\</TABLE>";   win.innerHTML = "\<TABLE class='hop-iwindow-shadow' cellspacing='0' cellpadding='0' border='0'>\  <TR>\    <TD class='hop-iwindow-shadow-nw' rowspan='2' colspan='2'>" + t + "</TD>\    <TD id='" + id + "-shadow-box' class='hop-iwindow-shadow-ne'>&nbsp;</TD>\  </TR>\  <TR>\    <TD class='hop-iwindow-shadow-e'>&nbsp;</TD>\  </TR>\  <TR>\    <TD class='hop-iwindow-shadow-sw'>&nbsp;</TD>\    <TD class='hop-iwindow-shadow-s'>&nbsp;</TD>\    <TD class='hop-iwindow-shadow-se'>&nbsp;</TD>\  </TR>\</TABLE>";   if( parent )      parent.appendChild( win );   else      document.body.appendChild( win );   win.user_parent = (parent && parent != undefined) ? parent : false;      win.el_title = document.getElementById( id + "-title" );   win.el_handle = document.getElementById( id + "-title" );   win.el_resize_left = document.getElementById( id + "-resize-left" );   win.el_resize_middle = document.getElementById( id + "-resize-middle" );   win.el_resize_right = document.getElementById( id + "-resize-right" );   win.el_content = document.getElementById( id + "-content" );   win.el_body = document.getElementById( id + "-body" );   win.el_main = document.getElementById( id + "-main" );   win.el_shadow = win.childNodes[ 0 ];   win.el_shadow_box = document.getElementById( id + "-shadow-box" );   win.el_handle.onmousedown = function( event ) {      if( event == undefined ) event = window.event;      hop_iwindow_drag( event, win )   };   win.el_resize_middle.onmousedown = function( event ) {      if( event == undefined ) event = window.event;      hop_iwindow_resize( event, win, false, true );   };      win.el_resize_right.onmousedown = function( event ) {      if( event == undefined ) event = window.event;      hop_iwindow_resize( event, win, true, true );   };      win.el_resize_left.onmousedown = function( event ) {      if( event == undefined ) event = window.event;      hop_iwindow_resize( event, win, false, false );   };      return win;}
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js