rem: function __dlg_init(bottom, win_dim) { if(window.__dlg_init_done) return true;  if(window.opener._editor_skin != "") { var head = document.getElementsByTagName("head")[0]; var link = document.createElement("link"); link.type = "text/css"; link.href = window.opener._editor_url + 'skins/' + window.opener._editor_skin + '/skin.css'; link.rel = "stylesheet"; head.appendChild(link); } window.dialogArguments = opener.Dialog._arguments;  var body        = document.body;  if(win_dim) { window.resizeTo(win_dim.width, win_dim.height); if(win_dim.top && win_dim.left) { window.moveTo(win_dim.left,win_dim.top); } else { if (!Xinha.is_ie) { var x = opener.screenX + (opener.outerWidth - win_dim.width) / 2; var y = opener.screenY + (opener.outerHeight - win_dim.height) / 2; } else { var x =  (self.screen.availWidth - win_dim.width) / 2; var y =  (self.screen.availHeight - win_dim.height) / 2; } window.moveTo(x,y); } } else if (window.sizeToContent) { window.sizeToContent(); window.sizeToContent();   window.addEventListener("unload", __dlg_onclose, true); window.innerWidth = body.offsetWidth + 5; window.innerHeight = body.scrollHeight + 2;  var x = opener.screenX + (opener.outerWidth - window.outerWidth) / 2; var y = opener.screenY + (opener.outerHeight - window.outerHeight) / 2; window.moveTo(x, y); } else { var docElm      = document.documentElement ? document.documentElement : null; var body_height = docElm && docElm.scrollTop ? docElm.scrollHeight : body.scrollHeight;  window.resizeTo(body.scrollWidth, body_height); var ch = docElm && docElm.clientHeight ? docElm.clientHeight : body.clientHeight; var cw = docElm && docElm.clientWidth  ? docElm.clientWidth  : body.clientWidth;  window.resizeBy(body.offsetWidth - cw, body_height - ch); var W = body.offsetWidth; var H = 2 * body_height - ch; var x = (screen.availWidth - W) / 2; var y = (screen.availHeight - H) / 2; window.moveTo(x, y); } Xinha.addDom0Event(document.body, 'keypress', __dlg_close_on_esc); window.__dlg_init_done = true; 
add: function __dlg_init(_9,_a){ __xinha_dlg_init(_a); 
context: function __dlg_init(bottom, win_dim) {  if(window.__dlg_init_done) return true;    if(window.opener._editor_skin != "") {    var head = document.getElementsByTagName("head")[0];    var link = document.createElement("link");    link.type = "text/css";    link.href = window.opener._editor_url + 'skins/' + window.opener._editor_skin + '/skin.css';    link.rel = "stylesheet";    head.appendChild(link);  }	window.dialogArguments = opener.Dialog._arguments;  var body        = document.body;    if(win_dim)  {    window.resizeTo(win_dim.width, win_dim.height);    if(win_dim.top && win_dim.left)    {      window.moveTo(win_dim.left,win_dim.top);    }    else    {      if (!Xinha.is_ie)      {      	var x = opener.screenX + (opener.outerWidth - win_dim.width) / 2;        var y = opener.screenY + (opener.outerHeight - win_dim.height) / 2;      }      else      {//IE does not have window.outer... , so center it on the screen at least        var x =  (self.screen.availWidth - win_dim.width) / 2;        var y =  (self.screen.availHeight - win_dim.height) / 2;	      }      window.moveTo(x,y);    }  }  else if (window.sizeToContent) {		window.sizeToContent();		window.sizeToContent();	// for reasons beyond understanding,					// only if we call it twice we get the					// correct size.		window.addEventListener("unload", __dlg_onclose, true);		window.innerWidth = body.offsetWidth + 5;		window.innerHeight = body.scrollHeight + 2;		// center on parent		var x = opener.screenX + (opener.outerWidth - window.outerWidth) / 2;		var y = opener.screenY + (opener.outerHeight - window.outerHeight) / 2;		window.moveTo(x, y);	} else {		var docElm      = document.documentElement ? document.documentElement : null;    		var body_height = docElm && docElm.scrollTop ? docElm.scrollHeight : body.scrollHeight;    		window.resizeTo(body.scrollWidth, body_height);		var ch = docElm && docElm.clientHeight ? docElm.clientHeight : body.clientHeight;		var cw = docElm && docElm.clientWidth  ? docElm.clientWidth  : body.clientWidth;				window.resizeBy(body.offsetWidth - cw, body_height - ch);		var W = body.offsetWidth;		var H = 2 * body_height - ch;		var x = (screen.availWidth - W) / 2;		var y = (screen.availHeight - H) / 2;		window.moveTo(x, y);	}	Xinha.addDom0Event(document.body, 'keypress', __dlg_close_on_esc);  window.__dlg_init_done = true;}
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/popup.js/buggy/packages/acs-templating/www/resources/xinha-nightly/popups/popup.js