rem: hop(serv, function( http ) { var win = document.getElementById(id); var h   = document.getElementById(id + "-handle"); var el  = document.getElementById(id + "-content");  if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); win.style.display = "block"; Drag.init(h, win); win.style.left = x; win.style.top  = y; win.style.zIndex = ++Drag.zIndex; win.onDragStart = function(x, y) { Drag.opacity = win.style.opacity; win.style.zIndex = ++Drag.zIndex; win.style.opacity = 0.4; } win.onDragEnd = function(x, y) { win.style.opacity = Drag.opacity; } } }); 
add: var win = document.getElementById(id); var h   = document.getElementById(id + "-handle"); var el  = document.getElementById(id + "-content");  function change_style() { win.style.display = "block"; win.style.left = x; win.style.top  = y; win.style.zIndex = ++Drag.zIndex; }  function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; }  if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { var iframe = id + "-frame";  el.style.setProperty("margin", "0", ""); el.style.setProperty("padding", "0", ""); win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; el.style.offsetHeight = 100; } 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='" + "http: "' height='" + compute_height() + "'></iframe>"; } 
context: function hop_open_float_window(serv, id, x, y){   hop(serv,        function( http ) {	   var win = document.getElementById(id);	   var h   = document.getElementById(id + "-handle");	   var el  = document.getElementById(id + "-content");	   	   if (http.responseText != null) {	       el.innerHTML = http.responseText;	       hop_js_eval( http );	       win.style.display = "block";	       Drag.init(h, win);	       win.style.left = x;	       win.style.top  = y;	       win.style.zIndex = ++Drag.zIndex;	       win.onDragStart = function(x, y) {		   Drag.opacity = win.style.opacity;		   win.style.zIndex = ++Drag.zIndex;		   win.style.opacity = 0.4;	       }	       win.onDragEnd = function(x, y) {		   win.style.opacity = Drag.opacity;	       }	   }       });}
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/f407cff01a2b1afdae1bacfe7c1673bba412f8e8/webconf.js/clean/weblets/webconf/webconf.js