rem: editor._popupDialog( "plugin: if ( !obj ) { return false; }  var bodys = editor._doc.getElementsByTagName("body"); var body = bodys[0];  function getElement(x) { var result = editor._doc.getElementById(x); if (!result) { result = editor._doc.createElement("div"); result.id = x; result.innerHTML = x; body.appendChild(result); } if (result.style) result.removeAttribute("style"); return result; }  var content = getElement("content"); var menu1 = getElement("menu1"); var menu2 = getElement("menu2"); var menu3 = getElement("menu3"); switch (obj["templ"]) { case "1": menu1.style.position = "absolute"; menu1.style.right = "0px"; menu1.style.width = "28%"; menu1.style.backgroundColor = "#e1ddd9"; menu1.style.padding = "2px 20px"; content.style.position = "absolute"; content.style.left = "0px"; content.style.width = "70%"; content.style.backgroundColor = "#fff"; menu2.style.visibility = "hidden"; menu3.style.visibility = "hidden"; break; case "2": menu1.style.position = "absolute"; menu1.style.left = "0px"; menu1.style.width = "28%"; menu1.style.height = "100%"; menu1.style.backgroundColor = "#e1ddd9"; content.style.position = "absolute"; content.style.right = "0px"; content.style.width = "70%"; content.style.backgroundColor = "#fff"; menu2.style.visibility = "hidden"; menu3.style.visibility = "hidden"; break case "3": menu1.style.position = "absolute"; menu1.style.left = "0px"; menu1.style.width = "28%"; menu1.style.backgroundColor = "#e1ddd9"; menu2.style.position = "absolute"; menu2.style.right = "0px"; menu2.style.width = "28%"; menu2.style.backgroundColor = "#e1ddd9"; content.style.position = "absolute"; content.style.right = "30%"; content.style.width = "60%"; content.style.backgroundColor = "#fff"; menu3.style.visibility = "hidden"; break } }, null); 
add: _7._popupDialog("plugin: if(!_8){ return false; } var _9=_7._doc.getElementsByTagName("body"); var _a=_9[0]; function getElement(x){ var _c=_7._doc.getElementById(x); if(!_c){ _c=_7._doc.createElement("div"); _c.id=x; _c.innerHTML=x; _a.appendChild(_c); } if(_c.style){ _c.removeAttribute("style"); } return _c; } var _d=getElement("content"); var _e=getElement("menu1"); var _f=getElement("menu2"); var _10=getElement("menu3"); switch(_8["templ"]){ case "1": _e.style.position="absolute"; _e.style.right="0px"; _e.style.width="28%"; _e.style.backgroundColor="#e1ddd9"; _e.style.padding="2px 20px"; _d.style.position="absolute"; _d.style.left="0px"; _d.style.width="70%"; _d.style.backgroundColor="#fff"; _f.style.visibility="hidden"; _10.style.visibility="hidden"; break; case "2": _e.style.position="absolute"; _e.style.left="0px"; _e.style.width="28%"; _e.style.height="100%"; _e.style.backgroundColor="#e1ddd9"; _d.style.position="absolute"; _d.style.right="0px"; _d.style.width="70%"; _d.style.backgroundColor="#fff"; _f.style.visibility="hidden"; _10.style.visibility="hidden"; break; case "3": _e.style.position="absolute"; _e.style.left="0px"; _e.style.width="28%"; _e.style.backgroundColor="#e1ddd9"; _f.style.position="absolute"; _f.style.right="0px"; _f.style.width="28%"; _f.style.backgroundColor="#e1ddd9"; _d.style.position="absolute"; _d.style.right="30%"; _d.style.width="60%"; _d.style.backgroundColor="#fff"; _10.style.visibility="hidden"; break; } },null); 
context:   editor._popupDialog( "plugin://Template/template", function( obj ) {    if ( !obj ) {//user must have pressed Cancel      return false;    }    var bodys = editor._doc.getElementsByTagName("body");    var body = bodys[0];  function getElement(x) {    var result = editor._doc.getElementById(x);    if (!result) {      result = editor._doc.createElement("div");      result.id = x;      result.innerHTML = x;      body.appendChild(result);    }    if (result.style)      result.removeAttribute("style");    return result;  }      var content = getElement("content");    var menu1 = getElement("menu1");    var menu2 = getElement("menu2");    var menu3 = getElement("menu3");    switch (obj["templ"]) {	    case "1": menu1.style.position = "absolute";                menu1.style.right = "0px";                menu1.style.width = "28%";                menu1.style.backgroundColor = "#e1ddd9";                menu1.style.padding = "2px 20px";                content.style.position = "absolute";                content.style.left = "0px";                content.style.width = "70%";                content.style.backgroundColor = "#fff";                menu2.style.visibility = "hidden";                menu3.style.visibility = "hidden";                break;      case "2": menu1.style.position = "absolute";                menu1.style.left = "0px";                menu1.style.width = "28%";                menu1.style.height = "100%";                menu1.style.backgroundColor = "#e1ddd9";                content.style.position = "absolute";                content.style.right = "0px";                content.style.width = "70%";                content.style.backgroundColor = "#fff";                menu2.style.visibility = "hidden";                menu3.style.visibility = "hidden";                break      case "3": menu1.style.position = "absolute";                menu1.style.left = "0px";                menu1.style.width = "28%";                menu1.style.backgroundColor = "#e1ddd9";                menu2.style.position = "absolute";                menu2.style.right = "0px";                menu2.style.width = "28%";                menu2.style.backgroundColor = "#e1ddd9";                content.style.position = "absolute";                content.style.right = "30%";                content.style.width = "60%";                content.style.backgroundColor = "#fff";                menu3.style.visibility = "hidden";                break    }  }, null);
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/template.js/buggy/packages/acs-templating/www/resources/xinha-nightly/plugins/Template/template.js