rem: var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); 
add: var win = hop_isHTMLElement( id ) ? id : document.getElementById( id ); 
context: function hop_iwindow_maximize( id ) {   var win = ((id instanceof HTMLElement) ||              (id instanceof Object && id.propertyIsEnumerable( "innerHTML" )))      ? id : document.getElementById( id );   if( win.maximize ) {      win.maximize();   } else {      if( win.maximized ) {	 win.maximized = false;      	 win.el_main.style.width = win.oldwidth;	 win.el_main.style.height = win.oldheight;	 win.style.top = win.oldtop;	 win.style.left = win.oldleft;      } else {	 win.maximized = true;      	 win.oldwidth = win.el_main.style.width;	 win.oldheight = win.el_main.style.height;	 win.oldtop = win.style.top;	 win.oldleft = win.style.left;	 if( win.user_parent ) {	    var p = win.parentNode;	    	    win.el_main.style.width = p.offsetWidth -	       win.el_shadow_box.offsetWidth;	    win.el_main.style.height = p.offsetHeight -	       win.el_shadow_box.offsetHeight;	    win.style.top = hop_element_y( p ) + 1;	    win.style.left = hop_element_x( p ) + 1;	 } else {	    win.el_main.style.width = window.innerWidth -	       win.el_shadow_box.offsetWidth - 2;	    win.el_main.style.height = window.innerHeight -	       win.el_shadow_box.offsetHeight - 2;	    win.style.top = 0;	    win.style.left = 0;	 }      }   }   /* user event */   if( win.onresize ) win.onresize();}
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-iwindow.js/clean/share/hop-iwindow.js