if( hop_is_html_element( obj ) ) { 
if( hop_is_html_element( src ) ) { 
function hop_iwindow_open( id, obj, title, klass, width, height, x, y, bg, resizable, parent ) {   var win = document.getElementById( id );   var isnew = false;   klass = klass ? ("hop-window " + klass) : "hop-window";   if( win == null ) {      win = make_hop_iwindow( id, klass, parent );      isnew = true;   } else {      node_style_set( win, "display", "block" );   }   /* start hidden otherwise we loose the border on drag! */   if( bg ) {      win.el_content.bg = bg;      node_style_set( win.el_content, "background", bg );   }   node_style_set( win.el_content, "display", "none" );   if( hop_is_html_element( obj ) ) {      var c = win.el_content.childNodes;      var i = c.length;      while( i > 0 ) {	 i--;	 win.el_content.removeChild( c[ i ] );      }      win.el_content.appendChild( obj );   } else {      var cb = function( html ) {	 if( html ) {	    hop_innerHTML_set( win.el_content, html );		   	    if( !width && !height ) {	       var c = win.el_content.childNodes[ 0 ];	       if( hop_is_html_element( c ) ) {		  var w = node_style_get( c, "width" );		  var h = node_style_get( c, "height" );		  if( w ) node_style_set( win.el_win, "width", w );		  if( h ) node_style_set( win.el_win, "height", h );	       }	    }	 }      };      if( typeof obj == "function" ) {	 hop( obj(), cb );      } else {	 if( (obj instanceof String) || (typeof obj == "string") ) {	    hop( obj, cb );	 } else {	    alert( "*** Hop Error, Illegal `iwindow' content -- " + obj		   + " (" + typeof obj + ")" );	 }      }   }   win.el_title.innerHTML = title ? title : id;   if( isnew ) {      if( x ) node_style_set( win, "left",			      ((typeof x)=="number") ? (x + "px") : x );      if( y ) node_style_set( win, "top",			      ((typeof y) =="number") ? (y + "px") : y );      if( width ) {	 node_style_set( win.el_win, "width",			 ((typeof width) == "number") ? (width + "px") : width );      } else {	 node_style_set( win.el_win, "width", "200px" );      }      if( height ) {	 node_style_set( win.el_win, "height",			 ((typeof height) == "number") ? (height + "px") : height );      } else {	 node_style_set( win.el_win, "height", "200px" );      }            if( win.onresize ) win.onresize();   }   win.resizable = resizable;   node_style_set( win.el_content, "display", "block" );   hop_iwindow_raise( win );   return win;}
4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4636/4b16bb4279488bc1060c71ee3d061f4c75c6ec41/hop-window.js/clean/share/hop-window.js