rem: function(param) {  if ( !param ) { return false; } var img = image; if ( !img ) { if ( Xinha.is_ie ) { var sel = editor.getSelection(); var range = editor.createRange(sel); editor._doc.execCommand("insertimage", false, param.f_url); img = range.parentElement();  if ( img.tagName.toLowerCase() != "img" ) { img = img.previousSibling; } } else { img = document.createElement('img'); img.src = param.f_url; editor.insertNodeAtSelection(img); if ( !img.tagName ) {  img = range.startContainer.firstChild; } } } else { img.src = param.f_url; }  for ( var field in param ) { var value = param[field]; switch (field) { case "f_alt": if (value) img.alt = value else img.removeAttribute("alt"); break; case "f_border": if (value) img.border = parseInt(value || "0") else img.removeAttribute("border"); break; case "f_align": if (value) img.align = value else img.removeAttribute("align"); break; case "f_vert": if (value) img.vspace = parseInt(value || "0") else img.removeAttribute("vspace"); break; case "f_horiz": if (value) img.hspace = parseInt(value || "0") else img.removeAttribute("hspace"); break; case "f_width": if (value) img.width = parseInt(value || "0"); else img.removeAttribute("width"); break; case "f_height": if (value) img.height = parseInt(value || "0"); else img.removeAttribute("height"); break; } } }, 
add: Dialog(_3.config.URIs.insert_image,function(_7){ if(!_7){ return false; } var _8=_2; if(!_8){ if(Xinha.is_ie){ var _9=_3.getSelection(); var _a=_3.createRange(_9); _3._doc.execCommand("insertimage",false,_7.f_url); _8=_a.parentElement(); if(_8.tagName.toLowerCase()!="img"){ _8=_8.previousSibling; } }else{ _8=document.createElement("img"); _8.src=_7.f_url; _3.insertNodeAtSelection(_8); if(!_8.tagName){ _8=_a.startContainer.firstChild; } } }else{ _8.src=_7.f_url; } for(var _b in _7){ var _c=_7[_b]; switch(_b){ case "f_alt": if(_c){ _8.alt=_c; }else{ _8.removeAttribute("alt"); } break; case "f_border": if(_c){ _8.border=parseInt(_c||"0"); }else{ _8.removeAttribute("border"); } break; case "f_align": if(_c){ _8.align=_c; }else{ _8.removeAttribute("align"); } break; case "f_vert": if(_c){ _8.vspace=parseInt(_c||"0"); }else{ _8.removeAttribute("vspace"); } break; case "f_horiz": if(_c){ _8.hspace=parseInt(_c||"0"); }else{ _8.removeAttribute("hspace"); } break; case "f_width": if(_c){ _8.width=parseInt(_c||"0"); }else{ _8.removeAttribute("width"); } break; case "f_height": if(_c){ _8.height=parseInt(_c||"0"); }else{ _8.removeAttribute("height"); } break; } } },_4); 
context:     function(param)    {      // user must have pressed Cancel      if ( !param )      {        return false;      }      var img = image;      if ( !img )      {        if ( Xinha.is_ie )        {          var sel = editor.getSelection();          var range = editor.createRange(sel);          editor._doc.execCommand("insertimage", false, param.f_url);          img = range.parentElement();          // wonder if this works...          if ( img.tagName.toLowerCase() != "img" )          {            img = img.previousSibling;          }        }        else        {          img = document.createElement('img');          img.src = param.f_url;          editor.insertNodeAtSelection(img);          if ( !img.tagName )          {            // if the cursor is at the beginning of the document            img = range.startContainer.firstChild;          }        }      }      else      {        img.src = param.f_url;      }      for ( var field in param )      {        var value = param[field];        switch (field)        {          case "f_alt":            if (value)              img.alt = value            else              img.removeAttribute("alt");            break;          case "f_border":            if (value)              img.border = parseInt(value || "0")            else              img.removeAttribute("border");            break;          case "f_align":            if (value)              img.align = value            else              img.removeAttribute("align");            break;          case "f_vert":            if (value)              img.vspace = parseInt(value || "0")            else              img.removeAttribute("vspace");            break;          case "f_horiz":            if (value)              img.hspace = parseInt(value || "0")            else              img.removeAttribute("hspace");            break;          case "f_width":            if (value)              img.width = parseInt(value || "0");            else              img.removeAttribute("width");            break;          case "f_height":            if (value)              img.height = parseInt(value || "0");            else              img.removeAttribute("height");            break;        }      }    },
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/insert_image.js/clean/packages/acs-templating/www/resources/xinha-nightly/modules/InsertImage/insert_image.js