rem: function hop_open_float_window(serv, e, x, y) 
add: function hop_open_float_window(serv, e, x, y, inframe) 
context: function hop_open_float_window(serv, e, x, y){    var win    = (e instanceof HTMLDivElement) ? e : document.getElementById(e);    var id     = (e instanceof HTMLDivElement) ? e.id : e;    var h      = document.getElementById(id + "-handle");    var el     = document.getElementById(id + "-content");    var around = id + "-around";    var iframe = id + "-frame";    function change_style() {	win.style.display = "block";	win.style.left = x;	win.style.top  = y;	win.style.zIndex = ++HopDrag.zIndex;    }    function compute_height() {	var shadow_height = 8;	return win.offsetHeight - h.offsetHeight - shadow_height;    }    function start_resize(w, h) {	var id = (win.inFrame) ? iframe : around;	document.getElementById(id).style.display= "none";	el.style.overflow = "auto";	el.style.opacity= 0.8;    }        function resize(w, h) {	el.style.setProperty("height",  compute_height() +"px", "");	el.style.setProperty("overflow",  "auto", "");	    }    function end_resize(w, h) {	var id  = (win.inFrame) ? iframe : around;	var tmp = document.getElementById(id);	var sz  = compute_height() + "px";	tmp.style.display= "block"; 	tmp.style.height = sz;	el.style.height = sz;	el.style.opacity= 1;    }    /* initialize the window */    hop_float_window_init(id, true);        /* Set the resize functions */    win.onResizeStart = start_resize;    win.onResize      = resize;    win.onResizeEnd   = end_resize;//    if (serv == null) {//	change_style();//	return//    }    if (!win.inFrame) {	hop(serv, 	    function( http ) {		if (http.responseText != null) {		    document.getElementById(around).innerHTML = http.responseText;		    hop_js_eval( http );		    change_style();		}	    });    } else {	win.onDragStart = function(x, y) { 	    document.getElementById(iframe).style.display= "none";  	    el.style.setProperty("height", compute_height()+"px", "");	    /* el.style.opacity= 0.8; */	}	win.onDragEnd   = function(x, y) {	    document.getElementById(iframe).style.display= "block"; 	    /* el.style.opacity= 1;  */	}		change_style();		el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " +	    "src='" + serv + "' " + 	    "' height='" + compute_height() + "'></iframe>";    }}
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/44a7a4372c75f39f08ae0e260a69f5a783412465/hop-window.js/buggy/share/hop-window.js