add: onMoreFewer(); 
context: function Startup(){  if (!InitEditorShell())    return;  doSetOKCancel(onOK, null);  // Create dialog object to store controls for easy access  dialog = new Object;  dialog.srcInput          = document.getElementById( "srcInput" );  dialog.altTextInput      = document.getElementById( "altTextInput" );  dialog.MoreFewerButton   = document.getElementById( "MoreFewerButton" );  dialog.MoreSection       = document.getElementById( "MoreSection" );  dialog.customsizeRadio   = document.getElementById( "customsizeRadio" );  dialog.originalsizeRadio = document.getElementById( "originalsizeRadio" );  dialog.constrainCheckbox = document.getElementById( "constrainCheckbox" );  dialog.widthInput        = document.getElementById( "widthInput" );  dialog.heightInput       = document.getElementById( "heightInput" );  dialog.widthUnitsSelect  = document.getElementById( "widthUnitsSelect" );  dialog.heightUnitsSelect = document.getElementById( "heightUnitsSelect" );  dialog.imagelrInput      = document.getElementById( "imageleftrightInput" );  dialog.imagetbInput      = document.getElementById( "imagetopbottomInput" );  dialog.border            = document.getElementById( "border" );  dialog.alignTypeSelect   = document.getElementById( "alignTypeSelect" );  dialog.editImageMap      = document.getElementById( "editImageMap" );  dialog.removeImageMap    = document.getElementById( "removeImageMap" );    // Another version of button just for this dialog -- on same line as "More Properties"  dialog.AdvancedEditButton2 = document.getElementById( "AdvancedEditButton2" );  // Set SeeMore bool to the OPPOSITE of the current state,  //   which is automatically saved by using the 'persist="more"'   //   attribute on the MoreFewerButton button  //   onMoreFewer will toggle the state and redraw the dialog  SeeMore = (dialog.MoreFewerButton.getAttribute("more") != "1");  onMoreFewer();  // Get a single selected image element  var tagName = "img"  imageElement = editorShell.GetSelectedElement(tagName);  if (imageElement)   {    // We found an element and don't need to insert one    insertNew = false;  }   else  {    insertNew = true;    // We don't have an element selected,     //  so create one with default attributes    imageElement = editorShell.CreateElementWithDefaults(tagName);    if( !imageElement )    {      dump("Failed to get selected element or create a new one!\n");      window.close();    }    }  // Make a copy to use for AdvancedEdit  globalElement = imageElement.cloneNode(false);    // Initialize all widgets with image attributes  InitDialog();    dialog.srcInput.focus();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/24a09371b809765acfcb129441fb6f120a955cb6/EdImageProps.js/buggy/editor/ui/dialogs/content/EdImageProps.js