User:Cactus.man/Scripts/WikEdStyle.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Customised wikEd variables
var wikEdTextZoom = wikEdTextZoom || 80;

var wikEdText = [];
wikEdText['wikEdLogo alt'] = 'wikEd';
wikEdText['wikEdLogo title'] = 'wikEd v{wikEdProgramVersion} - click to disable';

var wikEdFrameCSS = [];
wikEdFrameCSS['.wikEdLinkName'] = 'color: #00a000; font-weight: boldt;';




/*
  
//
// user configurable variables
//


// user readable texts, copy changes to http://en.wikipedia.org/wiki/User:Cacycle/wikEd_international_en.js, also defined in wikEdDiff.js
var wikEdText = wikEdText || [];

// WikedInitText: define built-in user interface texts
function WikedInitText() {
    WikEdInitObject(wikEdText, {

// logo
        'wikEdLogo alt':               'wikEd',
        'wikEdLogo title':             'wikEd {wikEdProgramVersion} ({wikEdProgramDate}) Click to disable',
        'wikEdLogo error alt':         'wikEd error',
        'wikEdLogo error title':       'Loading error - wikEd {wikEdProgramVersion} ({wikEdProgramDate}) Click to disable',
        'wikEdLogo browser alt':       '(wikEd)',
        'wikEdLogo browser title':     'Browser not supported - wikEd {wikEdProgramVersion} ({wikEdProgramDate})',
        'wikEdLogo disabled alt':      '(wikEd)',
        'wikEdLogo disabled title':    'Disabled - wikEd {wikEdProgramVersion} ({wikEdProgramDate}) Click to enable',

// top jumper
        'wikEdScrollToEdit4 alt':      'Scroll to edit',
        'wikEdScrollToEdit4 title':    'Scroll to edit field',

// button bar grip titles
        'wikEdGripFormat title':       'Formatting buttons (click to hide or show)',
        'wikEdGripCustom1 title':      'Custom buttons (click to hide or show)',
        'wikEdGripFind title':         'Find buttons (click to hide or show)',
        'wikEdGripFix title':          'Fixing buttons (click to hide or show)',
        'wikEdGripCustom2 title':      'Custom buttons (click to hide or show)',
        'wikEdGripControl title':      'wikEd control buttons (click to hide or show)',

// formatting buttons, top row
        'wikEdUndo alt':               'Undo',
        'wikEdUndo title':             'Undo',
        'wikEdRedo alt':               'Redo',
        'wikEdRedo title':             'Redo',
        'wikEdBold title':             'Bold text',
        'wikEdItalic alt':             'Italic',
        'wikEdItalic title':           'Italic text',
        'wikEdUnderline alt':          'Underline',
        'wikEdUnderline title':        'Underline text',
        'wikEdStrikethrough alt':      'Strikethrough',
        'wikEdStrikethrough title':    'Strikethrough text',
        'wikEdNowiki alt':             'Nowiki',
        'wikEdNowiki title':           'Nowiki markup text',
        'wikEdSuperscript alt':        'Superscript',
        'wikEdSuperscript title':      'Superscript text',
        'wikEdSubscript alt':          'Subscript',
        'wikEdSubscript title':        'Subscript text',
        'wikEdRef alt':                'Ref',
        'wikEdRef title':              'In-text reference',
        'wikEdCase alt':               'Case',
        'wikEdCase title':             'Toggle between lowercase, uppercase first, and uppercase',
        'wikEdRedirect alt':           'Redirect',
        'wikEdRedirect title':         'Create redirect, deletes whole text',
        'wikEdUndoAll alt':            'Undo all',
        'wikEdUndoAll title':          'Undo all changes',
        'wikEdRedoAll alt':            'Redo all',
        'wikEdRedoAll title':          'Redo all changes',

// formatting buttons, bottom row
        'wikEdWikiLink alt':           'Link',
        'wikEdWikiLink title':         'Wiki link',
        'wikEdWebLink alt':            'Weblink',
        'wikEdWebLink title':          'External weblink',
        'wikEdHeading alt':            'Heading',
        'wikEdHeading title':          'Increase heading levels (shift-click: decrease)',
        'wikEdBulletList alt':         'Bullet list',
        'wikEdBulletList title':       'Increase bulleted list level (shift-click: decrease)',
        'wikEdNumberList alt':         'Number list',
        'wikEdNumberList title':       'Increase numbered list level (shift-click: decrease)',
        'wikEdIndentList alt':         'Indent list',
        'wikEdIndentList title':       'Increase indention (shift-click: decrease)',
        'wikEdDefinitionList alt':     'Def list',
        'wikEdDefinitionList title':   'Definition list',
        'wikEdImage alt':              'Image',
        'wikEdImage title':            'Image',
        'wikEdTable alt':              'Table',
        'wikEdTable title':            'Table',
        'wikEdReferences alt':         'References',
        'wikEdReferences title':       'References location (shift-click: small Wikipedia style)',
        'wikEdUpdateSyntax alt':       'Syntax',
        'wikEdUpdateSyntax title':     'Update syntax highlighting',
        'wikEdWikify alt':             'Wikify',
        'wikEdWikify title':           'Wikify pasted content',
        'wikEdTextify alt':            'Textify',
        'wikEdTextify title':          'Convert pasted content to plain text',

// find and replace buttons, top row
        'wikEdGetFind alt':            'Get find',
        'wikEdGetFind title':          'Copy selection to find field (shift-click: copy selection to find and to replace field)',
        'wikEdFindAll alt':            'Find all',
        'wikEdFindAll title':          'Find all matches',
        'wikEdFindPrev alt':           'Find prev',
        'wikEdFindPrev title':         'Find previous match',
        'wikEdFindSelect title':       'Select a previous search or jump to a heading',
        'wikEdFindNext alt':           'Find next',
        'wikEdFindNext title':         'Find next match',
        'wikEdUpdown alt':             'Jump up/down',
        'wikEdUpdown title':           'Jump to the top / bottom',
        'wikEdPrevPos alt':            'Jump prev',
        'wikEdPrevPos title':          'Jump to previously changed position',
        'wikEdLastPos alt':            'Jump next',
        'wikEdLastPos title':          'Jump back to last position',

// find and replace buttons, bottom row
        'wikEdClearFind alt':          'Clear find',
        'wikEdClearFind title':        'Clear the find field (to search for selected text)',
        'wikEdReplaceAll alt':         'Replace all',
        'wikEdReplaceAll title':       'Replace all matches in whole text or selection',
        'wikEdReplacePrev alt':        'Replace prev',
        'wikEdReplacePrev title':      'Replace previous match',
        'wikEdReplaceSelect title':    'Select a previous replacement',
        'wikEdReplaceNext alt':        'Replace next',
        'wikEdReplaceNext title':      'Replace next match',
        'wikEdCaseSensitive alt':      'Case sensitive',
        'wikEdCaseSensitive title':    'Search is case sensitive',
        'wikEdRegExp alt':             'RegExp',
        'wikEdRegExp title':           'Search field is a regular expression',
        'wikEdFindAhead alt':          'Find ahead',
        'wikEdFindAhead title':        'Find ahead as you type (case-insensitive non-regexp search)',

// fix buttons, top row
        'wikEdFixBasic alt':           'Fix basic',
        'wikEdFixBasic title':         'Fix blanks and empty lines, also done by other fixing functions',
        'wikEdFixHtml alt':            'Fix html',
        'wikEdFixHtml title':          'Fix html to wikicode',
        'wikEdFixCaps alt':            'Fix caps',
        'wikEdFixCaps title':          'Fix caps in headers and lists',
        'wikEdfixUnicode alt':         'Fix Unicode',
        'wikEdfixUnicode title':       'Fix Unicode character representations',
        'wikEdFixAll alt':             'Fix all',
        'wikEdFixAll title':           'Fix basic, html, capitalization, and Unicode',
        'wikEdFixRegExTypo alt':       'Fix typos',
        'wikEdFixRegExTypo title':     'Fix typos using the AutoWikiBrowser RegExTypoFixer rules',

// fix buttons, bottom row
        'wikEdFixDashes alt':          'Fix dashes',
        'wikEdFixDashes title':        'Fix dashes',
        'wikEdFixPunct alt':           'Fix punctuation',
        'wikEdFixPunct title':         'Fix spaces before punctuation',
        'wikEdFixMath alt':            'Fix math',
        'wikEdFixMath title':          'Fix math',
        'wikEdFixChem alt':            'Fix chem',
        'wikEdFixChem title':          'Fix chemical formulas',
        'wikEdFixUnits alt':           'Fix units',
        'wikEdFixUnits title':         'Fix units',

// wikEd control buttons, top row
        'wikEdRefHide alt':            'Hide <ref>',
        'wikEdRefHide title':          'Toggle <ref> tag hiding',
        'wikEdTextZoom alt':           'Text zoom',
        'wikEdTextZoom title':         'Text zoom cycling (shift-click: reverse)',
        'wikEdClearHistory alt':       'Clear history',
        'wikEdClearHistory title':     'Clear the find, replace, and summary history',
        'wikEdScrollToPreview alt':    'Scroll to preview',
        'wikEdScrollToPreview title':  'Scroll to preview field',
        'wikEdScrollToEdit alt':       'Scroll to edit',
        'wikEdScrollToEdit title':     'Scroll to edit field',

// wikEd control buttons, bottom row
        'wikEdUseWikEd alt':           'Use wikEd',
        'wikEdUseWikEd title':         'Toggle between classic text area and wikEd',
        'wikEdHighlightSyntax alt':    'Syntax',
        'wikEdHighlightSyntax title':  'Toggle automatic syntax highlighting',
        'wikEdSource alt':             'Source',
        'wikEdCloseToolbar title':     'Close the standard non-wikEd toolbar',
        'wikEdCloseToolbar alt':       'Close toolbar',
        'wikEdSource title':           'Show the source code for testing purposes',
        'wikEdUsing alt':              'Using',
        'wikEdUsing title':            'Automatically add \'\'…using wikEd\'\' to summaries',
        'wikEdDiff alt':               'wikEdDiff',
        'wikEdDiff title':             'Toggle automatic improved diff view',
        'wikEdFullScreen alt':         'Fullscreen',
        'wikEdFullScreen title':       'Toggle the fullscreen mode',

// summary buttons
        'wikEdClearSummary alt':       'Clear summary',
        'wikEdClearSummary title':     'Clear the summary field',
        'wikEdSummarySelect title':    'Select a previous summary',
        'wikEdPresetSummary': [
            'copyedit', 'reply', 'article created', 'intro rewrite',
            'linkfix', 'fixing typos', 'removing linkspam', 'reverting test',
            'reverting vandalism', 'formatting source text', '{wikEdUsing}'
        ],
        'wikEdSummaryUsing':           '…using [[en:User:Cacycle/wikEd|wikEd]]',

// submit buttons
        'wikEdLocalPreviewImg alt':    'Preview below',
        'wikEdLocalPreview title':     'Show preview below',
        'wikEdLocalDiffImg alt':       'Changes below',
        'wikEdLocalDiff title':        'Show current changes below',
        'wikEdHelpPageLink':           ' | <a href="http://en.wikipedia.org/wiki/User:Cacycle/wikEd_help" target="helpwindow">wikEd help</a>',

// preview and changes buttons, top
        'wikEdPreview alt':            'Preview',
        'wikEdPreview title':          'Show preview below',
        'wikEdDiffPreview alt':        'Changes',
        'wikEdDiffPreview title':      'Show current changes below',
        'wikEdClose alt':              'Close',
        'wikEdClose title':            'Close preview box',
        'wikEdScrollToPreview2 alt':   'Scroll to preview',
        'wikEdScrollToPreview2 title': 'Scroll to preview field',
        'wikEdScrollToEdit2 alt':      'Scroll to edit',
        'wikEdScrollToEdit2 title':    'Scroll to edit field',

// preview and changes buttons, bottom
        'wikEdPreview2 alt':           'Preview',
        'wikEdPreview2 title':         'Show preview above',
        'wikEdDiffPreview2 alt':       'Changes',
        'wikEdDiffPreview2 title':     'Show current changes above',
        'wikEdClose alt':              'Close',
        'wikEdClose title':            'Close preview box',
        'wikEdScrollToPreview3 alt':   'Scroll to preview',
        'wikEdScrollToPreview3 title': 'Scroll to preview field',
        'wikEdScrollToEdit3 alt':      'Scroll to edit',
        'wikEdScrollToEdit3 title':    'Scroll to edit field',

// formatting functions
        'image filename':              'filename',
        'image width':                 'width',
        'table caption':               'caption',
        'table heading':               'heading',
        'table cell':                  'cell',
        'redirect article link':       'article link',

// fixing functions
        'External links':              'External links',
        'See also':                    'See also',
        'References':                  'References',

// language specific wiki code
        'wikicode Image':              'Image',
        'wikicode Category':           'Category',
        'wikicode Template':           'Template',
        'wikEdReferencesSection':      '\n== References ==\n\n<div class="references-small">\n<references/>\n</div>\n',

// shortened button texts
        'shortenedPreview':            'Preview',
        'shortenedChanges':            'Changes',

// follow link popup
        'followLink':                  '(Ctrl-click)'
    });
}

// use local copies of images for testing (set to true in local copy of edit page), also defined in wikEdDiff.js
if (typeof(wikEdUseLocalImages) == 'undefined') { var wikEdUseLocalImages = false; }

// path to local images for testing, also defined in wikEdDiff.js
var wikEdImagePathLocal = wikEdImagePathLocal || 'file:///D:/wikEd/images/';

// path to images, also defined in wikEdDiff.js
var wikEdImagePath = wikEdImagePath || 'http://upload.wikimedia.org/wikipedia/commons/';

// image filenames, also defined in wikEdDiff.js
var wikEdImage = wikEdImage || [];

// WikedInitImage: define built-in image URLs
function WikedInitImage() {
    WikEdInitImage(wikEdImage, {
        'blank':               '5/51/WikEd_blank.png',
        'bold':                '5/59/WikEd_bold.png',
        'browser':             '0/07/WikEd_disabled.png',
        'bulletList':          '6/62/WikEd_bullet_list.png',
        'case':                'a/aa/WikEd_case.png',
        'caseSensitive':       '0/0d/WikEd_case_sensitive.png',
        'clearFind':           'f/f0/WikEd_clear_find.png',
        'clearHistory':        'c/c8/WikEd_clear_history.png',
        'clearSummary':        '2/2c/WikEd_clear_summary.png',
        'close':               '9/97/WikEd_close.png',
        'closeToolbar':        '1/1d/WikEd_close_toolbar.png',
        'ctrl':                '1/10/WikEd_ctrl.png',
        'definitionList':      'f/f5/WikEd_definition_list.png',
        'diff':                'd/db/WikEd_diff.png',
        'disabled':            '0/07/WikEd_disabled.png',
        'dummy':               'c/c5/WikEd_dummy.png',
        'error':               '3/3e/WikEd_error.png',
        'findAhead':           '3/34/WikEd_find_ahead.png',
        'findAll':             '7/75/WikEd_find_all.png',
        'findNext':            'a/ad/WikEd_find_next.png',
        'findPrev':            'f/f5/WikEd_find_prev.png',
        'fixAll':              '8/86/WikEd_fix_all.png',
        'fixBasic':            '3/30/WikEd_fix_basic.png',
        'fixCaps':             '0/00/WikEd_fix_caps.png',
        'fixUnicode':          'd/d4/WikEd_fix_unicode.png',
        'fixChem':             'e/e7/WikEd_fix_chem.png',
        'fixDash':             'e/e5/WikEd_fix_dash.png',
        'fixHtml':             '0/05/WikEd_fix_html.png',
        'fixMath':             '3/3f/WikEd_fix_math.png',
        'fixPunct':            'd/db/WikEd_fix_punct.png',
        'fixRegExTypo':        '9/94/WikEd_fix_reg-ex-typo.png',
        'fixUnits':            '6/69/WikEd_fix_units.png',
        'textZoom':            '7/71/WikEd_font_size.png',
        'fullScreen':          'd/d3/WikEd_fullscreen.png',
        'getFind':             '9/96/WikEd_get_selection.png',
        'grip':                'a/ad/WikEd_grip.png',
        'heading':             '0/07/WikEd_heading.png',
        'highlightSyntax':     '6/67/WikEd_syntax.png',
        'image':               '3/37/WikEd_image.png',
        'indentList':          '7/7a/WikEd_indent_list.png',
        'italic':              'd/d4/WikEd_italic.png',
        'jumpTopBottom':       '5/5d/WikEd_jump_top_bottom.png',
        'lastPos':             '5/54/WikEd_jump_next.png',
        'logo':                '6/67/WikEd_logo.png',
        'nowiki':              '5/5a/WikEd_nowiki.png',
        'numberList':          '3/3b/WikEd_number_list.png',
        'prevPos':             'c/c7/WikEd_jump_prev.png',
        'preview':             '3/31/WikEd_preview.png',
        'redirect':            'f/fa/WikEd_redirect.png',
        'redo':                'd/d7/WikEd_redo.png',
        'ref':                 'b/ba/WikEd_ref.png',
        'refHide':             '0/0b/WikEd_ref_hide.png',
        'references':          '6/66/WikEd_references.png',
        'redoAll':             '2/2d/WikEd_redo_all.png',
        'regExp':              '6/6a/WikEd_regexp.png',
        'replaceAll':          '2/2a/WikEd_replace_all.png',
        'replaceNext':         'b/b0/WikEd_replace_next.png',
        'replacePrev':         'a/a1/WikEd_replace_prev.png',
        'scrollToEdit':        '1/13/WikEd_align_top.png',
        'scrollToPreview':     '3/37/WikEd_align_preview.png',
        'scrollToEditDown':    'a/a8/WikEd_align_down.png',
        'scrollToPreviewDown': '5/58/WikEd_align_preview_down.png',
        'source':              '0/02/WikEd_source.png',
        'strikethrough':       '0/06/WikEd_strikethrough.png',
        'subscript':           '9/9e/WikEd_subscript.png',
        'superscript':         'b/bf/WikEd_superscript.png',
        'tab':                 'e/e7/WikEd_tab.png',
        'table':               'b/bd/WikEd_table.png',
        'textify':             'c/cd/WikEd_textify.png',
        'underline':           '2/21/WikEd_underline.png',
        'undo':                'e/e6/WikEd_undo.png',
        'undoAll':             '0/08/WikEd_undo_all.png',
        'unknown':             '8/8a/WikEd_unknown.png',
        'updateSyntax':        '6/67/WikEd_syntax.png',
        'useWikEd':            '6/67/WikEd_logo.png',
        'using':               'e/e0/WikEd_using.png',
        'webLink':             '1/16/WikEd_weblink.png',
        'wikEdDiff':           'c/c6/WikEdDiff.png',
        'wikify':              '9/9f/WikEd_wikify.png',
        'wikiLink':            '2/21/WikEd_wikilink.png'
    });
}

// edit-frame css rules
var wikEdFrameCSS = wikEdFrameCSS || [];

// WikedInitFrameCSS: define built-in edit frame css
function WikedInitFrameCSS() {
    WikEdInitObject(wikEdFrameCSS, {

// frame body
        '.wikedFrameBody':    'background: #FFFFFF; margin: 0px; padding: 0.2em; overflow: -moz-scrollbars-vertical; overflow-x: auto; font-family: monospace;',

// syntax highlighting
        '.wikEdBlock':        'background-color: #e8e8e8;',
        '.wikEdBlockTag':     'color: #0000e0;',
        '.wikEdInlineTag':    'color: #0000e0;',
        '.wikEdUnknown':      'background-image: url({wikEdUnknown});',
        '.wikEdSubscript':    'position: relative; top: 0.3em;',
        '.wikEdSuperscript':  'position: relative; top: -0.3em;',
        '.wikEdBold':         'font-weight: bold;',
        '.wikEdRef':          'color: #808080; background-color: #e8e8e8;',
        '.wikEdRefHide':      'color: #c0c0c0;',
        '.wikEdComment':      'background-color: #fff0d0;',
        '.wikEdDel':          'text-decoration: line-through;',
        '.wikEdIns':          'text-decoration: underline;',
        '.wikEdItalic':       'font-style: italic;',
        '.wikEdNowiki':       'background-color: #e8e8e8;',
        '.wikEdRGB':          '',

// horizontal rule
        '.wikEdHR':           'background-color: #d0d0d0;',
        '.wikEdHRInline':     'background-color: #d0d0d0;',

// wiki code
        '.wikEdWiki':         'color: #0000e0;',
        '.wikEdWikiRedir':    'color: #0000e0; background-color: #ffffff; font-weight: bold;',
        '.wikEdMagic':        'color: #0000e0; background-color: #e0e0e0; font-weight: bold;',

// headings
        '.wikEdHeading':      'background-color: #e0e0e0; font-weight: bold;',
        '.wikEdHeadingWp':    'background-color: #d8e0ff; font-weight: bold;',

// tables
        '.wikEdTableBlock':   'background-color: #e8e8e8;',
        '.wikEdTableLine':    'background-color: #e8e8e8;',
        '.wikEdTableTag':     'background-color: #e8e8e8; color: #0000e0;',

// list
        '.wikEdListBlock':    'background-color: #e8e8e8;',
        '.wikEdListLine':     'background-color: #f0f0f0',
        '.wikEdListTag':      'background-color: #e8e8e8; color: #0000e0; font-weight: bold;',

// space-pre
        '.wikEdSpaceBlock':   'background-color: #e8e8e8;',
        '.wikEdSpaceLine':    'background-color: #e8e8e8;',
        '.wikEdSpaceTag':     'color: #0000e0; font-weight: bold;',

// wiki links, images, categories, templates
        '.wikEdLinkTag':      'color: #0000e0;',
        '.wikEdLink':         '',
        '.wikEdImage':        'background-color: #d5ffaa;',
        '.wikEdCat':          'background-color: #d0d8ff;',
        '.wikEdTemplTag':     'color: #0000e0;',
        '.wikEdTempl':        'background-color: #e0e8ff;',

// interlanguage
        '.wikEdInter':        'color: #000000;',
        '.wikEdLinkInter':    'background-color: #c8c8ff;',
        '.wikEdImageInter':   'background-color: #c8c8ff;',
        '.wikEdCatInter':     'background-color: #c8c8ff;',
        '.wikEdTemplInter':   'background-color: #c8c8ff;',

// name
        '.wikEdLinkName':     'color: #f00000; font-weight: bold;',
        '.wikEdImageName':    'color: #000000; font-weight: bold;',
        '.wikEdCatName':      'color: #f00000; font-weight: bold;',
        '.wikEdTemplName':    'color: #f00000; font-weight: bold;',
        '.wikEdURLLink':      'color: #f00000; font-weight: bold;',

// links
        '.wikEdHighlightLink': 'text-decoration: none; color: #909090;',
        ':hover.wikEdHighlightLink': 'text-decoration: underline; color: #909090;',

// pasted html
        '.wikEdPastedHtml':   'background-color: #ffc080;',

// text and parameters
        '.wikEdLinkText':     'color: #000000; font-weight: bold;',
        '.wikEdImageParam':   'color: #0000e0;',
        '.wikEdImageCaption': 'color: #000000;',
        '.wikEdCatText':      'color: #000000;',
        '.wikEdTemplText':    'color: #000000;',
        '.wikEdURLText':      'color: #000000; font-weight: bold;',

// insert wikicode here
        '.wikEdInsertHere':   'background-color: orange; font-style: italic;',

// colors
        '.wikEdColorsLight':  'color: black;',
        '.wikEdColorsDark':   'color: white;',

// invisibles, control chars, and strange spaces
        '.wikEdTab':          'white-space: pre; background-image: url({wikEdTab}); background-position: right bottom; background-repeat: no-repeat;',
        '.wikEdTabPlain':     'white-space: pre;',
        '.wikEdCtrl':         'white-space: pre; background-image: url({wikEdCtrl}); background-position: left center; background-repeat: repeat-x; background-color: white;',
        '.wikEdCtrl:before':  'content: \'\u00a0\'',
        '.wikEdBlank':        'white-space: -moz-pre-wrap; background-image: url({wikEdBlank}); background-position: left center; background-repeat: repeat-x; background-color: white;'
    });
}

// main window css rules
var wikEdMainCSS = wikEdMainCSS || [];

// WikedInitMainCSS: define built-in main window css
function WikedInitMainCSS() {
    WikEdInitObject(wikEdMainCSS, {

// combo input box
        '.wikEdCombo':                 'font-size: smaller; padding-left: 0.1em; padding-right: 0.1em; margin: 0 0.1em 0 0.1em; height: 1.6em; vertical-align: bottom;',

// wikEd button areas

// button bar margins
        '.wikEdButtonBarFormat':       'margin: 0 8px 3px 0; float: left;',
        '.wikEdButtonBarCustom1':      'margin: 0 8px 3px 0; float: left;',
        '.wikEdButtonBarFind':         'margin: 0 8px 3px 0; float: left;',
        '.wikEdButtonBarFix':          'margin: 0 8px 3px 0; float: left;',
        '.wikEdButtonBarCustom2':      'margin: 0 8px 3px 0; float: left;',
        '.wikEdButtonBarControl':      'margin: 0 0 3px 0; float: right;',
        '.wikEdButtonBarPreview':      'margin: 0 0 0.15em 0.6em; float: right;',
        '.wikEdButtonBarPreviewFull':  'margin: -0.2em 0 0 0.6em; float: right;',
        '.wikEdButtonBarPreview2':     'margin: 0.2em 0 0.4em 0; float: right;',
        '.wikEdButtonBarJump':         'margin: 0 0 0 0.6em; float: right;',

// button bar inner wrapper: border (hidden: invisible)
        '.wikedButtonBarInnerWrapperVisible':   'border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;',
        '.wikedButtonBarInnerWrapperHidden':    '',

// button bar grip wrapper: invisible (hidden: border)
        '.wikedButtonBarGripWrapperVisible':    'float: left;',
        '.wikedButtonBarGripWrapperHidden':     'float: left; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;',

// button bar buttons wrapper: invisible (hidden: border)
        '.wikedButtonBarButtonsWrapperVisible': 'float: left; background: #d4d0cc; ',
        '.wikedButtonBarButtonsWrapperHidden':  'float: left; background: #d4d0cc; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0; z-index: 4;',

// button bar grip
        '.wikedButtonBarGrip':         'background: #d4d0cc; padding: 0; background-image: url({wikEdGrip}); background-repeat: repeat-y; cursor: pointer;',

// button bar buttons
        '.wikEdButtonsFormat':         'background: #d4d0cc; padding: 2px 2px 0 0px;',
        '.wikEdButtonsCustom1':        'background: #d4d0cc; padding: 2px 2px 0 0px;',
        '.wikEdButtonsFind':           'background: #d4d0cc; padding: 0px 2px 0 0px;',
        '.wikEdButtonsFix':            'background: #d4d0cc; padding: 2px 2px 0 0px;',
        '.wikEdButtonsCustom2':        'background: #d4d0cc; padding: 2px 2px 0 0px;',
        '.wikEdButtonsControl':        'background: #d4d0cc; padding: 2px 2px 0 1px;',

        '.wikEdButtonsPreview':        'background: #d4d0cc; padding: 2px; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;',
        '.wikEdButtonsPreviewFull':    'background: #d4d0cc; padding: 2px; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;',
        '.wikEdButtonsPreview2':       'background: #d4d0cc; padding: 2px; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;',
        '.wikEdButtonsJump':           'background: #d4d0cc; padding: 2px; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;',

// wikEd buttons
        '.wikEdButton':                'vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #d4d0cc; border: 1px #d4d0cc solid; cursor: pointer;',
        '.wikEdButton:hover':          'background: #e4e0dd; border: 1px outset; cursor: pointer;',
        '.wikEdButton:active':         'background: #e4e0dc; border: 1px inset;  cursor: pointer;',
        '.wikEdButtonSolo':            'vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #d4d0cc; border: 1px #d4d0cc solid; cursor: pointer;',
        '.wikEdButtonSolo:hover':      'background: #e4e0dd; border: 1px outset; cursor: pointer;',
        '.wikEdButtonChecked':         'vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ccc8c3; border: 1px solid; border-color: black white white black; cursor: pointer;',
        '.wikEdButtonUnchecked':       'vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ddd8d3; border: 1px solid; border-color: white black black white; cursor: pointer;',
        '.wikEdButtonPressed':         'vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ccc8c3; border: 1px solid; border-color: black white white black; cursor: wait;',
        '.wikEdButtonInactive':        'vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #c0c0c0; border: 1px #b0b0b0 solid; cursor: not-allowed',
        '.wikEdLocalPreview':          'vertical-align: top; margin: 0 0.33em 0 0.15em; padding: 0;',
        '.wikEdLocalDiff':             'vertical-align: top; margin: 0 0.33em 0 -0.18em; padding: 0;',
        '.wikEdButtonDummy':           'vertical-align: text-top; margin: 1px 2px; padding: 1px; background: #d4d0cc;',

// preview box
        '.wikEdPreviewBoxOuter':       'clear: both; margin: 0; border-width: 1px; border-style: solid; border-color: #808080 #d0d0d0 #d0d0d0 #808080;',
        '.wikEdPreviewBox':            'background-color: #faf8f6; padding: 5px; border-width: 1px; border-style: solid; border-color: #404040 #ffffff #ffffff #404040;',

// find field
        '.wikEdFindComboInput':        'position: relative; padding: 0; margin: 0 0.2em; font-style: normal; white-space: nowrap;',
        '#wikEdFindText':              'height: 1.4em; font-family: monospace; padding: 0; margin: 0; position: absolute; width: 170px; left: 0; top: 0; z-index: 2;',
        '#wikEdFindSelect':            'height: 1.5em; font-family: monospace; padding: 0; margin: 0; position: relative; border: none; vertical-align: baseline; z-index: 1;',

// replace field
        '.wikEdReplaceComboInput':     'position: relative; padding: 0; margin: 0 0.2em; font-style: normal; white-space: nowrap;',
        '#wikEdReplaceText':           'height: 1.4em; font-family: monospace; padding: 0; margin: 0; position: absolute; width: 170px; left: 0; top: 0; z-index: 2;',
        '#wikEdReplaceSelect':         'height: 1.5em; font-family: monospace; padding: 0; margin: 0; position: relative; border: none; vertical-align: baseline; z-index: 1;',

// summary field
        '.wikEdSummaryComboInput':     'position: relative; white-space: nowrap; margin: 0 0 0 0.1em;',
        '.wikEdSummaryText':           'padding: 0; margin: 0; position: absolute; left: 0; top: 0; z-index: 2;',
        '.wikEdSummarySelect':         'border: none; padding: 0; margin: 0; position: relative; vertical-align: middle; z-index: 1;',

// space around submit buttons
        '.editButtons':                'margin: 0;',

// frame
        '.wikEdFrameOuter':            'width: 100%; margin: 0; border-width: 1px; border-style: solid; border-color: #808080 #d0d0d0 #d0d0d0 #808080;',
        '.wikEdFrameInner':            'padding: 0; border-width: 1px; border-style: solid; border-color: #404040 #ffffff #ffffff #404040;',
        '.wikEdFrame':                 'width: 100%; padding: 0; margin: 0; border: none;',

// summary
        '.wikEdSummaryWrapper':        'margin: 0 0 0.4em 0;',
        '.wikEdSummaryWrapperTop':     'margin: 0.1em 0 0.4em 0;',
        '#wpSummaryLabel':             'margin: 0 0.2em 0 0;',
        '.editOptions':                'position: relative; top: 0.1em;',
        '.wikEdClearSummaryForm':      'display: inline;',
        '.wikEdClearSummary':          'vertical-align: middle; margin: 0 0.1em 0 0.5em; padding: 0 0 0.2em 0;',

// input wrapper
        '.wikEdInputWrapper':          'z-index: 100; clear: both; margin-top: 0.5em;',
        '.wikEdInputWrapperFull':      'position: fixed; top: 0; left: 0; right: 0; padding: 4px; background: white; z-index: 100;',

// other wrappers
        '.wikEdToolbarWrapper':        'margin: 0 0 0.25em 0;',
        '.wikEdTextareaWrapper':       'margin: 0 0 0.35em 0;',
        '.wikEdFrameWrapper':          'margin: 0 0 0.35em 0;',
        '.wikEdConsoleWrapper':        '',
        '.wikEdButtonsWrapper':        '',
        '.wikEdSummaryInputWrapper':   'display: inline; white-space: nowrap;',
        '.wikEdSummaryOptions':        'display: inline;',
        '.wikEdSubmitWrapper':         'margin: 0 0 0.25em 0;',
        '.wikEdSubmitButtonsWrapper':  '',
        '.wikEdLocalPrevWrapper':      '',
        '.wikEdInsertWrapper':         '',

// various
        '.wikEdEditOptions':           'display: inline; vertical-align: baseline; margin-right: 0.75em; white-space: nowrap;',
        '.wikEdEditHelp':              'vertical-align: baseline; margin-right: 0.5em; white-space: nowrap;',
        '#editpage-specialchars':      'clear: both;'
    });
}

// buttons (id, class, popup title, image src, width, height, alt text, onClick and parameters)
var wikEdButton = wikEdButton || [];

// WikedInitButton: define built-in buttons (id, class, popup title, image src, width, height, alt text, onClick and parameters)
function WikedInitButton() {
    WikEdInitObject(wikEdButton, {

// format top
         1: ['wikEdUndo',             'wikEdButtonInactive',  wikEdText['wikEdUndo title'],             wikEdImage['undo'],                '16', '16', wikEdText['wikEdUndo alt'],             'javascript:WikEdEditButton(this, this.id);' ],
         2: ['wikEdRedo',             'wikEdButtonInactive',  wikEdText['wikEdRedo title'],             wikEdImage['redo'],                '16', '16', wikEdText['wikEdRedo alt'],             'javascript:WikEdEditButton(this, this.id);' ],
         3: ['wikEdBold',             'wikEdButton',          wikEdText['wikEdBold title'],             wikEdImage['bold'],                '16', '16', wikEdText['wikEdBold alt'],             'javascript:WikEdEditButton(this, this.id);' ],
         4: ['wikEdItalic',           'wikEdButton',          wikEdText['wikEdItalic title'],           wikEdImage['italic'],              '16', '16', wikEdText['wikEdItalic alt'],           'javascript:WikEdEditButton(this, this.id);' ],
         5: ['wikEdUnderline',        'wikEdButton',          wikEdText['wikEdUnderline title'],        wikEdImage['underline'],           '16', '16', wikEdText['wikEdUnderline alt'],        'javascript:WikEdEditButton(this, this.id);' ],
         6: ['wikEdStrikethrough',    'wikEdButton',          wikEdText['wikEdStrikethrough title'],    wikEdImage['strikethrough'],       '16', '16', wikEdText['wikEdStrikethrough alt'],    'javascript:WikEdEditButton(this, this.id);' ],
         7: ['wikEdNowiki',           'wikEdButton',          wikEdText['wikEdNowiki title'],           wikEdImage['nowiki'],              '16', '16', wikEdText['wikEdNowiki alt'],           'javascript:WikEdEditButton(this, this.id);' ],
         8: ['wikEdSuperscript',      'wikEdButton',          wikEdText['wikEdSuperscript title'],      wikEdImage['superscript'],         '16', '16', wikEdText['wikEdSuperscript alt'],      'javascript:WikEdEditButton(this, this.id);' ],
         9: ['wikEdSubscript',        'wikEdButton',          wikEdText['wikEdSubscript title'],        wikEdImage['subscript'],           '16', '16', wikEdText['wikEdSubscript alt'],        'javascript:WikEdEditButton(this, this.id);' ],
        10: ['wikEdRef',              'wikEdButton',          wikEdText['wikEdRef title'],              wikEdImage['ref'],                 '16', '16', wikEdText['wikEdRef alt'],              'javascript:WikEdEditButton(this, this.id);' ],
        12: ['wikEdCase',             'wikEdButton',          wikEdText['wikEdCase title'],             wikEdImage['case'],                '16', '16', wikEdText['wikEdCase alt'],             'javascript:WikEdEditButton(this, this.id);' ],
        25: ['wikEdRedirect',         'wikEdButton',          wikEdText['wikEdRedirect title'],         wikEdImage['redirect'],            '16', '16', wikEdText['wikEdRedirect alt'],         'javascript:WikEdEditButton(this, this.id);' ],
        13: ['wikEdUndoAll',          'wikEdButton',          wikEdText['wikEdUndoAll title'],          wikEdImage['undoAll'],             '16', '16', wikEdText['wikEdUndoAll alt'],          'javascript:WikEdEditButton(this, this.id);' ],
        14: ['wikEdRedoAll',          'wikEdButtonInactive',  wikEdText['wikEdRedoAll title'],          wikEdImage['redoAll'],             '16', '16', wikEdText['wikEdRedoAll alt'],          'javascript:WikEdEditButton(this, this.id);' ],

// format bottom
        15: ['wikEdWikiLink',         'wikEdButton',          wikEdText['wikEdWikiLink title'],         wikEdImage['wikiLink'],            '16', '16', wikEdText['wikEdWikiLink alt'],         'javascript:WikEdEditButton(this, this.id);' ],
        16: ['wikEdWebLink',          'wikEdButton',          wikEdText['wikEdWebLink title'],          wikEdImage['webLink'],             '16', '16', wikEdText['wikEdWebLink alt'],          'javascript:WikEdEditButton(this, this.id);' ],
        17: ['wikEdHeading',          'wikEdButton',          wikEdText['wikEdHeading title'],          wikEdImage['heading'],             '16', '16', wikEdText['wikEdHeading alt'],          'if (!event.shiftKey) { javascript:WikEdEditButton(this, \'wikEdIncreaseHeading\'); } else { javascript:WikEdEditButton(this, \'wikEdDecreaseHeading\'); }' ],
        19: ['wikEdBulletList',       'wikEdButton',          wikEdText['wikEdBulletList title'],       wikEdImage['bulletList'],          '16', '16', wikEdText['wikEdBulletList alt'],       'if (!event.shiftKey) { javascript:WikEdEditButton(this, \'wikEdIncreaseBulletList\'); } else { javascript:WikEdEditButton(this, \'wikEdDecreaseBulletList\'); }' ],
        20: ['wikEdNumberList',       'wikEdButton',          wikEdText['wikEdNumberList title'],       wikEdImage['numberList'],          '16', '16', wikEdText['wikEdNumberList alt'],       'if (!event.shiftKey) { javascript:WikEdEditButton(this, \'wikEdIncreaseNumberList\'); } else { javascript:WikEdEditButton(this, \'wikEdDecreaseNumberList\'); }' ],
        21: ['wikEdIndentList',       'wikEdButton',          wikEdText['wikEdIndentList title'],       wikEdImage['indentList'],          '16', '16', wikEdText['wikEdIndentList alt'],       'if (!event.shiftKey) { javascript:WikEdEditButton(this, \'wikEdIncreaseIndentList\'); } else { javascript:WikEdEditButton(this, \'wikEdDecreaseIndentList\'); }' ],
        22: ['wikEdDefinitionList',   'wikEdButton',          wikEdText['wikEdDefinitionList title'],   wikEdImage['definitionList'],      '16', '16', wikEdText['wikEdDefinitionList alt'],   'javascript:WikEdEditButton(this, this.id);' ],
        23: ['wikEdImage',            'wikEdButton',          wikEdText['wikEdImage title'],            wikEdImage['image'],               '16', '16', wikEdText['wikEdImage alt'],            'javascript:WikEdEditButton(this, this.id);' ],
        24: ['wikEdTable',            'wikEdButton',          wikEdText['wikEdTable title'],            wikEdImage['table'],               '16', '16', wikEdText['wikEdTable alt'],            'javascript:WikEdEditButton(this, this.id);' ],
        11: ['wikEdReferences',       'wikEdButton',          wikEdText['wikEdReferences title'],       wikEdImage['references'],          '16', '16', wikEdText['wikEdReferences alt'],       'if (!event.shiftKey) { javascript:WikEdEditButton(this, this.id); } else { javascript:WikEdEditButton(this, \'wikEdReferencesSection\'); }' ],
        26: ['wikEdWikify',           'wikEdButton',          wikEdText['wikEdWikify title'],           wikEdImage['wikify'],              '16', '16', wikEdText['wikEdWikify alt'],           'javascript:WikEdEditButton(this, this.id);' ],
        27: ['wikEdTextify',          'wikEdButton',          wikEdText['wikEdTextify title'],          wikEdImage['textify'],             '16', '16', wikEdText['wikEdTextify alt'],          'javascript:WikEdEditButton(this, this.id);' ],
        28: ['wikEdUpdateSyntax',     'wikEdButton',          wikEdText['wikEdUpdateSyntax title'],     wikEdImage['updateSyntax'],        '16', '16', wikEdText['wikEdUpdateSyntax alt'],     'javascript:WikEdEditButton(this, this.id);' ],

// control top
        77: ['wikEdRefHide',          'wikEdButtonUnchecked', wikEdText['wikEdRefHide title'],          wikEdImage['refHide'],             '16', '16', wikEdText['wikEdRefHide alt'],          'javascript:WikEdButton(this, this.id, true);' ],
        29: ['wikEdTextZoom',         'wikEdButton',          wikEdText['wikEdTextZoom title'],         wikEdImage['textZoom'],            '16', '16', wikEdText['wikEdTextZoom alt'],         'if (!event.shiftKey) { javascript:WikEdButton(this, \'wikEdTextZoomDown\'); } else { javascript:WikEdButton(this, \'wikEdTextZoomUp\'); }' ],
        30: ['wikEdClearHistory',     'wikEdButton',          wikEdText['wikEdClearHistory title'],     wikEdImage['clearHistory'],        '16', '16', wikEdText['wikEdClearHistory alt'],     'javascript:WikEdButton(this, this.id);' ],
        31: ['wikEdScrollToPreview',  'wikEdButton',          wikEdText['wikEdScrollToPreview title'],  wikEdImage['scrollToPreviewDown'], '16', '16', wikEdText['wikEdScrollToPreview alt'],  'javascript:WikEdButton(this, this.id);' ],
        32: ['wikEdScrollToEdit',     'wikEdButton',          wikEdText['wikEdScrollToEdit title'],     wikEdImage['scrollToEditDown'],    '16', '16', wikEdText['wikEdScrollToEdit alt'],     'javascript:WikEdButton(this, this.id);' ],

// control bottom
        33: ['wikEdUseWikEd',         'wikEdButtonChecked',   wikEdText['wikEdUseWikEd title'],         wikEdImage['useWikEd'],            '16', '16', wikEdText['wikEdUseWikEd alt'],         'javascript:WikEdButton(this, this.id, true);' ],
        34: ['wikEdHighlightSyntax',  'wikEdButtonUnchecked', wikEdText['wikEdHighlightSyntax title'],  wikEdImage['highlightSyntax'],     '16', '16', wikEdText['wikEdHighlightSyntax alt'],  'javascript:WikEdButton(this, this.id, true);' ],
        35: ['wikEdSource',           'wikEdButton',          wikEdText['wikEdSource title'],           wikEdImage['source'],              '16', '16', wikEdText['wikEdSource alt'],           'javascript:WikEdEditButton(this, this.id);' ],
        75: ['wikEdCloseToolbar',     'wikEdButtonUnchecked', wikEdText['wikEdCloseToolbar title'],     wikEdImage['closeToolbar'],        '16', '16', wikEdText['wikEdCloseToolbar alt'],     'javascript:WikEdButton(this, this.id, true);' ],
        36: ['wikEdUsing',            'wikEdButtonUnchecked', wikEdText['wikEdUsing title'],            wikEdImage['using'],               '16', '16', wikEdText['wikEdUsing alt'],            'javascript:WikEdButton(this, this.id, true);' ],
        37: ['wikEdFullScreen',       'wikEdButtonUnchecked', wikEdText['wikEdFullScreen title'],       wikEdImage['fullScreen'],          '16', '16', wikEdText['wikEdFullScreen alt'],       'javascript:WikEdButton(this, this.id, true);' ],

// find top
        38: ['wikEdGetFind',          'wikEdButton',          wikEdText['wikEdGetFind title'],          wikEdImage['getFind'],             '16', '16', wikEdText['wikEdGetFind alt'],          'if (!event.shiftKey) { javascript:WikEdEditButton(this, this.id); } else { javascript:WikEdEditButton(this, \'wikEdGetFindReplace\'); }' ],
        39: ['wikEdFindAll',          'wikEdButton',          wikEdText['wikEdFindAll title'],          wikEdImage['findAll'],             '16', '16', wikEdText['wikEdFindAll alt'],          'javascript:WikEdEditButton(this, this.id);' ],
        40: ['wikEdFindPrev',         'wikEdButton',          wikEdText['wikEdFindPrev title'],         wikEdImage['findPrev'],            '16', '16', wikEdText['wikEdFindPrev alt'],         'javascript:WikEdEditButton(this, this.id);' ],
        41: ['wikEdFindNext',         'wikEdButton',          wikEdText['wikEdFindNext title'],         wikEdImage['findNext'],            '16', '16', wikEdText['wikEdFindNext alt'],         'javascript:WikEdEditButton(this, this.id);' ],
        42: ['wikEdUpdown',           'wikEdButton',          wikEdText['wikEdUpdown title'],           wikEdImage['jumpTopBottom'],       '16', '16', wikEdText['wikEdUpdown alt'],           'javascript:WikEdEditButton(this, this.id);' ],
        43: ['wikEdPrevPos',          'wikEdButtonInactive',  wikEdText['wikEdPrevPos title'],          wikEdImage['prevPos'],             '16', '16', wikEdText['wikEdPrevPos alt'],          'javascript:WikEdEditButton(this, this.id);' ],
        44: ['wikEdLastPos',          'wikEdButtonInactive',  wikEdText['wikEdLastPos title'],          wikEdImage['lastPos'],             '16', '16', wikEdText['wikEdLastPos alt'],          'javascript:WikEdEditButton(this, this.id);' ],

// find bottom
        45: ['wikEdClearFind',        'wikEdButton',          wikEdText['wikEdClearFind title'],        wikEdImage['clearFind'],           '16', '16', wikEdText['wikEdClearFind alt'],        'javascript:WikEdButton(this, this.id);' ],
        46: ['wikEdReplaceAll',       'wikEdButton',          wikEdText['wikEdReplaceAll title'],       wikEdImage['replaceAll'],          '16', '16', wikEdText['wikEdReplaceAll alt'],       'javascript:WikEdEditButton(this, this.id);' ],
        47: ['wikEdReplacePrev',      'wikEdButton',          wikEdText['wikEdReplacePrev title'],      wikEdImage['replacePrev'],         '16', '16', wikEdText['wikEdReplacePrev alt'],      'javascript:WikEdEditButton(this, this.id);' ],
        48: ['wikEdReplaceNext',      'wikEdButton',          wikEdText['wikEdReplaceNext title'],      wikEdImage['replaceNext'],         '16', '16', wikEdText['wikEdReplaceNext alt'],      'javascript:WikEdEditButton(this, this.id);' ],
        49: ['wikEdCaseSensitive',    'wikEdButtonUnchecked', wikEdText['wikEdCaseSensitive title'],    wikEdImage['caseSensitive'],       '16', '16', wikEdText['wikEdCaseSensitive alt'],    'javascript:WikEdButton(this, this.id, true);' ],
        50: ['wikEdRegExp',           'wikEdButtonUnchecked', wikEdText['wikEdRegExp title'],           wikEdImage['regExp'],              '16', '16', wikEdText['wikEdRegExp alt'],           'javascript:WikEdButton(this, this.id, true);' ],
        51: ['wikEdFindAhead',        'wikEdButtonUnchecked', wikEdText['wikEdFindAhead title'],        wikEdImage['findAhead'],           '16', '16', wikEdText['wikEdFindAhead alt'],        'javascript:WikEdButton(this, this.id, true);' ],

// fix top
        52: ['wikEdFixBasic',         'wikEdButton',          wikEdText['wikEdFixBasic title'],         wikEdImage['fixBasic'],            '16', '16', wikEdText['wikEdFixBasic alt'],         'javascript:WikEdEditButton(this, this.id);' ],
        53: ['wikEdFixHtml',          'wikEdButton',          wikEdText['wikEdFixHtml title'],          wikEdImage['fixHtml'],             '16', '16', wikEdText['wikEdFixHtml alt'],          'javascript:WikEdEditButton(this, this.id);' ],
        54: ['wikEdFixCaps',          'wikEdButton',          wikEdText['wikEdFixCaps title'],          wikEdImage['fixCaps'],             '16', '16', wikEdText['wikEdFixCaps alt'],          'javascript:WikEdEditButton(this, this.id);' ],
        55: ['wikEdfixUnicode',       'wikEdButton',          wikEdText['wikEdfixUnicode title'],       wikEdImage['fixUnicode'],          '16', '16', wikEdText['wikEdfixUnicode alt'],       'javascript:WikEdEditButton(this, this.id);' ],
        56: ['wikEdFixAll',           'wikEdButton',          wikEdText['wikEdFixAll title'],           wikEdImage['fixAll'],              '16', '16', wikEdText['wikEdFixAll alt'],           'javascript:WikEdEditButton(this, this.id);' ],
        57: ['wikEdFixRegExTypo',     'wikEdButton',          wikEdText['wikEdFixRegExTypo title'],     wikEdImage['fixRegExTypo'],        '16', '16', wikEdText['wikEdFixRegExTypo alt'],     'javascript:WikEdEditButton(this, this.id);' ],

// fix bottom
        58: ['wikEdFixDashes',        'wikEdButton',          wikEdText['wikEdFixDashes title'],        wikEdImage['fixDash'],             '16', '16', wikEdText['wikEdFixDashes alt'],        'javascript:WikEdEditButton(this, this.id);' ],
        59: ['wikEdFixPunct',         'wikEdButton',          wikEdText['wikEdFixPunct title'],         wikEdImage['fixPunct'],            '16', '16', wikEdText['wikEdFixPunct alt'],         'javascript:WikEdEditButton(this, this.id);' ],
        60: ['wikEdFixMath',          'wikEdButton',          wikEdText['wikEdFixMath title'],          wikEdImage['fixMath'],             '16', '16', wikEdText['wikEdFixMath alt'],          'javascript:WikEdEditButton(this, this.id);' ],
        61: ['wikEdFixChem',          'wikEdButton',          wikEdText['wikEdFixChem title'],          wikEdImage['fixChem'],             '16', '16', wikEdText['wikEdFixChem alt'],          'javascript:WikEdEditButton(this, this.id);' ],
        62: ['wikEdFixUnits',         'wikEdButton',          wikEdText['wikEdFixUnits title'],         wikEdImage['fixUnits'],            '16', '16', wikEdText['wikEdFixUnits alt'],         'javascript:WikEdEditButton(this, this.id);' ],

// preview top
        63: ['wikEdPreview',          'wikEdButton',          wikEdText['wikEdPreview title'],          wikEdImage['preview'],             '16', '16', wikEdText['wikEdPreview alt'],          'javascript:WikEdButton(this, this.id);' ],
        64: ['wikEdDiffPreview',      'wikEdButton',          wikEdText['wikEdDiffPreview title'],      wikEdImage['diff'],                '16', '16', wikEdText['wikEdDiffPreview alt'],      'javascript:WikEdButton(this, this.id);' ],
        65: ['wikEdClose',            'wikEdButton',          wikEdText['wikEdClose title'],            wikEdImage['close'],               '16', '16', wikEdText['wikEdClose alt'],            'javascript:WikEdButton(this, this.id);' ],
        66: ['wikEdScrollToPreview2', 'wikEdButton',          wikEdText['wikEdScrollToPreview2 title'], wikEdImage['scrollToPreviewDown'], '16', '16', wikEdText['wikEdScrollToPreview2 alt'], 'javascript:WikEdButton(this, this.id);' ],
        67: ['wikEdScrollToEdit2',    'wikEdButton',          wikEdText['wikEdScrollToEdit2 title'],    wikEdImage['scrollToEdit'],        '16', '16', wikEdText['wikEdScrollToEdit2 alt'],    'javascript:WikEdButton(this, this.id);' ],

// preview bottom
        68: ['wikEdPreview2',         'wikEdButton',          wikEdText['wikEdPreview2 title'],         wikEdImage['preview'],             '16', '16', wikEdText['wikEdPreview2 alt'],         'javascript:WikEdButton(this, this.id);' ],
        69: ['wikEdDiffPreview2',     'wikEdButton',          wikEdText['wikEdDiffPreview2 title'],     wikEdImage['diff'],                '16', '16', wikEdText['wikEdDiff2Preview alt'],     'javascript:WikEdButton(this, this.id);' ],
        70: ['wikEdClose2',           'wikEdButton',          wikEdText['wikEdClose2 title'],           wikEdImage['close'],               '16', '16', wikEdText['wikEdClose2 alt'],           'javascript:WikEdButton(this, this.id);' ],
        71: ['wikEdScrollToPreview3', 'wikEdButton',          wikEdText['wikEdScrollToPreview3 title'], wikEdImage['scrollToPreview'],     '16', '16', wikEdText['wikEdScrollToPreview3 alt'], 'javascript:WikEdButton(this, this.id);' ],
        72: ['wikEdScrollToEdit3',    'wikEdButton',          wikEdText['wikEdScrollToEdit3 title'],    wikEdImage['scrollToEdit'],        '16', '16', wikEdText['wikEdScrollToEdit3 alt'],    'javascript:WikEdButton(this, this.id);' ],

// jump
        78: ['wikEdDiff',             'wikEdButtonUnchecked', wikEdText['wikEdDiff title'],             wikEdImage['wikEdDiff'],           '16', '16', wikEdText['wikEdDiff alt'],             'javascript:WikEdButton(this, this.id, true);' ],
        74: ['wikEdScrollToEdit4',    'wikEdButtonSolo',      wikEdText['wikEdScrollToEdit4 title'],    wikEdImage['scrollToEditDown'],    '16', '16', wikEdText['wikEdScrollToEdit4 alt'],    'javascript:WikEdButton(this, this.id);' ],

// dummy
        76: ['wikEdDummy',            'wikEdButtonDummy',     '',                                       wikEdImage['dummy'],               '16', '16', '',                                     '' ]
    });
}

// button bars (id, class, button numbers)
var wikEdButtonBar = wikEdButtonBar || [];

// WikedInitButtonBar: define built-in button bars (id outer, class outer, id inner, class inner, height, grip title, button numbers)
function WikedInitButtonBar() {
    WikEdInitObject(wikEdButtonBar, {
        'format':    ['wikEdButtonBarFormat',    'wikEdButtonBarFormat',    'wikEdButtonsFormat',    'wikEdButtonsFormat',    44, wikEdText['wikEdGripFormat title'],  [1,2,3,4,5,6,7,8,9,10,12,25,13,14,'br',15,16,17,19,20,21,22,23,24,11,76,26,27,28] ],
        'custom1':   ['wikEdButtonBarCustom1',   'wikEdButtonBarCustom1',   'wikEdButtonsCustom1',   'wikEdButtonsCustom1',   44, wikEdText['wikEdGripCustom1 title'], [ ] ],
        'find':      ['wikEdButtonBarFind',      'wikEdButtonBarFind',      'wikEdButtonsFind',      'wikEdButtonsFind',      44, wikEdText['wikEdGripFind title'],    [38,39,40,'find',41,42,43,44,'br',45,46,47,'replace',48,49,50,51] ],
        'fix':       ['wikEdButtonBarFix',       'wikEdButtonBarFix',       'wikEdButtonsFix',       'wikEdButtonsFix',       44, wikEdText['wikEdGripFix title'],     [52,53,54,55,56,57,'br',58,59,60,61,62] ],
        'custom2':   ['wikEdButtonBarCustom2',   'wikEdButtonBarCustom2',   'wikEdButtonsCustom2',   'wikEdButtonsCustom2',   44, wikEdText['wikEdGripCustom2 title'], [ ] ],
        'control':   ['wikEdButtonBarControl',   'wikEdButtonBarControl',   'wikEdButtonsControl',   'wikEdButtonsControl',   44, wikEdText['wikEdGripControl title'], [77,29,30,31,32,'br',33,34,35,75,36,78,37] ],
        'preview':   ['wikEdButtonBarPreview',   'wikEdButtonBarPreview',   'wikEdButtonsPreview',   'wikEdButtonsPreview',    0, null,                                [63,64,65,66,67] ],
        'preview2':  ['wikEdButtonBarPreview2',  'wikEdButtonBarPreview2',  'wikEdButtonsPreview2',  'wikEdButtonsPreview2',   0, null,                                [68,69,70,71,72] ],
        'jump':      ['wikEdButtonBarJump',      'wikEdButtonBarJump',      'wikEdButtonsJump',      'wikEdButtonsJump',       0, null,                                [74] ]
    });
}

// history length for find, replace, and summary fields
var wikEdHistoryLength = wikEdHistoryLength || [];
wikEdHistoryLength['find'] = 10;
wikEdHistoryLength['replace'] = 10;
wikEdHistoryLength['summary'] = 10;

// presets for combo input fields dropdown options, {wikEdUsing} appends a link to this script
var wikEdComboPresetOptions = wikEdComboPresetOptions || [];
wikEdComboPresetOptions['summary'] = wikEdComboPresetOptions['summary'] || wikEdText['wikEdPresetSummary'];

// text for summary link to this script
var wikEdSummaryUsing = wikEdSummaryUsing || wikEdText['wikEdSummaryUsing'];

// expiration time span for permanent cookies in seconds
var wikEdCookieExpireSec = wikEdCookieExpireSec || (30 * 24 * 60 * 60);

// find ahead as you type checkbox preset
if (typeof(wikEdHighlightSyntaxPreset) == 'undefined') { var wikEdFindAheadSelected = true; }

// highlight syntax preset
var wikEdHighlightSyntaxPreset = wikEdHighlightSyntaxPreset || true;

// enable wikEd preset
if (typeof(wikEdUseWikEdPreset) == 'undefined') { var wikEdUseWikEdPreset = true; }

// add '...using wikEd' to summary preset (set to true by single-session cookie wikEdSummaryUsing)
if (typeof(wikEdUsingPreset) == 'undefined') { var wikEdUsingPreset = false; }

// wikEdDiff preset
if (typeof(wikEdDiffPreset) == 'undefined') { var wikEdDiffPreset = false; }

// fullscreen mode preset
if (typeof(wikEdFullScreenModePreset) == 'undefined') { var wikEdFullScreenModePreset = false; }

// show MediaWiki toolbar preset
if (typeof(wikEdCloseToolbarPreset) == 'undefined') { var wikEdCloseToolbarPreset = false; }

// hide ref tags preset
if (typeof(wikEdRefHidePreset) == 'undefined') { var wikEdRefHidePreset = false; }

// initial text zoom for edit window (percentage)
var wikEdTextZoom = wikEdTextZoom || 100;

// remove invisible syntax highlighting comments after closing tag
if (typeof(wikEdRemoveHighlightComments) == 'undefined') { var wikEdRemoveHighlightComments = true; }

// show the text-to-source button for testing purposes
if (typeof(wikEdShowSourceButton) == 'undefined') { var wikEdShowSourceButton = false; }

// show the using-wiked button
if (typeof(wikEdShowUsingButton) == 'undefined') { var wikEdShowUsingButton = false; }

// the wikEd help page link to be displayed after the editing help link, an empty string disables the link
var wikEdHelpPageLink = wikEdHelpPageLink || wikEdText['wikEdHelpPageLink'];

// display the wikEd button bars on top of the edit box
if (typeof(wikEdButtonsOnTop) == 'undefined') { var wikEdButtonsOnTop = true; }

// enable external diff script
if (typeof(wikEdLoadDiffScript) == 'undefined') { var wikEdLoadDiffScript = true; }

// diff script URL
var wikEdDiffScriptSrc = wikEdDiffScriptSrc || 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js&action=raw&ctype=text/javascript';

// enable external wikEdDiff script
if (typeof(wikEdLoadDiff) == 'undefined') { var wikEdLoadDiff = true; }

// wikEdDiff script URL, also defined in wikEdDiff.js
var wikEdDiffSrc = wikEdDiffSrc || 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js&action=raw&ctype=text/javascript';

// enable external InstaView script
if (typeof(wikEdLoadInstaView) == 'undefined') { var wikEdLoadInstaView = true; }

// InstaView script URL
var wikEdInstaViewSrc = wikEdInstaViewSrc || 'http://en.wikipedia.org/w/index.php?title=User:Pilaf/include/instaview.js&action=raw&ctype=text/javascript';

// enable external RegExTypoFix script
if (typeof(wikEdLoadRegExTypoFix) == 'undefined') { var wikEdLoadRegExTypoFix = false; }

// RegExTypoFix script URL
var wikEdRegExTypoFixSrc = wikEdRegExTypoFixSrc || 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdTypoFix.js&action=raw&ctype=text/javascript';

// enable RegExTypoFix (http://en.wikipedia.org/wiki/User:Mboverload/RegExTypoFix), needs User:Cacycle/wikEdTypoFix.js or translation
if (typeof(wikEdRegExTypoFix) == 'undefined') { var wikEdRegExTypoFix = true; }

// enable highlighting as links
if (typeof(wikEdFollowHighlightedLinks) == 'undefined') { var wikEdFollowHighlightedLinks = false; }

// skip the browser detection to run wikEd under IE and Opera
if (typeof(wikEdSkipBrowserTest) == 'undefined') { var wikEdSkipBrowserTest = false; }

// set the button bar grip width in px
var wikEdButtonBarGripWidth = wikEdButtonBarGripWidth || 8;

// enable local preview (Pilaf's InstaView)
if (typeof(wikEdUseLocalPreview) == 'undefined') { var wikEdUseLocalPreview = true; }

// allow ajax requests from local copy for testing, also defined in wikEdDiff.js
if (typeof(wikEdAllowLocalAjax) == 'undefined') { var wikEdAllowLocalAjax = false; }

// enable server preview (Ajax)
if (typeof(wikEdUseAjaxPreview) == 'undefined') { var wikEdUseAjaxPreview = true; }

// enable auto update (Ajax)
if (typeof(wikEdAutoUpdate) == 'undefined') { var wikEdAutoUpdate = true; }

// hours between update check
var wikEdAutoUpdateHours = wikEdAutoUpdateHours || 20;

// auto update version url (ajax)
var wikEdAutoUpdateUrl = wikEdAutoUpdateUrl || 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd_current_version&action=raw&maxage=0';

// show complete unshortened article text for local diff, also defined in wikEdDiff.js
if (typeof(wikEdFullDiff) == 'undefined') { var wikEdFullDiff = false; }

// make links ctrl-clickable
if (typeof(wikEdFollowLinks) == 'undefined') { var wikEdFollowLinks = true; }

// correct tab order between check boxes and submit buttons
if (typeof(wikEdSubmitTabOrder) == 'undefined') { var wikEdSubmitTabOrder = false; }

//
// end of user configurable variables
//
  
*/