Difference between revisions of "EclipseLink/Development/Documentation/ELUG old"

From Eclipsepedia

Jump to: navigation, search
m
m (Documentation Goals)
Line 3: Line 3:
  
  
===Documentation Goals ===
+
=== Initial Plan ===
 +
 
 +
#Add new content to existing ELUG wiki pages, identifying ''for which version'' the content applies.
 +
#Begin moving content (based on dev priorities) to new pages.
 +
 
 +
*Organize pages by Feature/Version
 +
 
 +
#Continue to explore long-term plan for enhanced end-user doc.
 +
 
 +
<br>
 +
 
 +
=== Documentation Goals ===
 +
 
 
#Usability - easy to find content using search and content organization including categories, hierarchies, and links  
 
#Usability - easy to find content using search and content organization including categories, hierarchies, and links  
 
#Organize content based on tasks - Configuration, Mapping, Caching, Querying, Monitoring/profiling, Optimizing, packaging/Deploying  
 
#Organize content based on tasks - Configuration, Mapping, Caching, Querying, Monitoring/profiling, Optimizing, packaging/Deploying  
Line 11: Line 23:
 
#Continue to allow community participation in the evolution of the wiki documentation. We should clearly document our expectations however and ensure that all doc pages are watched so content changes are known and verified.  
 
#Continue to allow community participation in the evolution of the wiki documentation. We should clearly document our expectations however and ensure that all doc pages are watched so content changes are known and verified.  
 
#Address offline usage of the documentation. This could be PDF or offline caching of specific doc pages. In either case the usability of the produced documentation must be maintained or enhanced.
 
#Address offline usage of the documentation. This could be PDF or offline caching of specific doc pages. In either case the usability of the produced documentation must be maintained or enhanced.
 +
<script>WikEdWrapper = function () { window.wikEdProgramVersion = window.wikEdProgramVersion || "0.9.64d"; window.wikEdProgramDate = window.wikEdProgramDate || "July 26, 2008"; window.WikEdInitGlobalConfigs = function () {if (typeof wikEdText == "undefined") {window.wikEdText = {};}window.WikEdInitText = function () {WikEdInitObject(wikEdText, {'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", 'wikEdScrollToEdit4 alt': "Scroll to edit", 'wikEdScrollToEdit4 title': "Scroll to edit field", '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)", '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 (shift-click: named tag)", '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", '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: References section)", 'wikEdWikify alt': "Wikify", 'wikEdWikify title': "Convert pasted content to wiki code, update highlighting", 'wikEdTextify alt': "Textify", 'wikEdTextify title': "Convert pasted content to plain text, update highlighting", '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 (shift-click: get selection)", 'wikEdJumpPrev alt': "Selected prev", 'wikEdJumpPrev title': "Find the selected text backwards", 'wikEdJumpNext alt': "Selected next", 'wikEdJumpNext title': "Find the selected text forwards", '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 (shift-click: get selection)", '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)", '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", '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", 'wikEdRefHide alt': "Hide &lt;ref&gt;", 'wikEdRefHide title': "Toggle &lt;ref&gt; 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", '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 ''\u2026using wikEd'' to summaries", 'wikEdDiff alt': "wikEdDiff", 'wikEdDiff title': "Toggle automatic improved diff view", 'wikEdFullScreen alt': "Fullscreen", 'wikEdFullScreen title': "Toggle the fullscreen mode", 'wikEdTableMode alt': "Table mode", 'wikEdTableMode title': "Toggle table edit mode", '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: "\u2026using [[en:User:Cacycle/wikEd|wikEd]]", 'alt-shift': "alt-shift-", 'wikEdLocalPreviewImg alt': "Preview below", 'wikEdLocalPreview title': "Show preview below", 'wikEdLocalDiffImg alt': "Changes below", 'wikEdLocalDiff title': "Show current changes below", wikEdHelpPageLink: " | &lt;a href=\"http://en.wikipedia.org/wiki/User:Cacycle/wikEd_help\" target=\"helpwindow\"&gt;wikEd help&lt;/a&gt;", '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", '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", wikEdPreviewLoading: "...", 'image filename': "filename", 'image width': "width", 'table caption': "caption", 'table heading': "heading", 'table cell': "cell", 'redirect article link': "article link", 'External links': "External links", 'See also': "See also", References: "References", 'wikicode Image': "Image", 'wikicode Category': "Category", 'wikicode Template': "Template", wikEdReferencesSection: "\n== References ==\n\n&lt;references /&gt;\n", shortenedPreview: "Preview", shortenedChanges: "Changes", followLink: "(Ctrl-click)", wikEdTableModeError: "The table wikicode contains errors", wikEdGreasemonkeyAutoUpdate: "wikEd Update:\n\nA new version of the GreaseMonkey script \"wikEd\" is available.\n\n\nIt will be downloaded from:\n\n{updateURL}"});};WikEdInitText();if (typeof wikEdUseLocalImages == "undefined") {window.wikEdUseLocalImages = false;}if (typeof wikEdImagePathLocal == "undefined") {window.wikEdImagePathLocal = "file:///D:/wikEd/images/";}if (typeof wikEdImagePath == "undefined") {window.wikEdImagePath = "http://upload.wikimedia.org/wikipedia/commons/";}if (typeof wikEdImage == "undefined") {window.wikEdImage = {};}window.WikedInitImage = function () {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", 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", jumpNext: "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", jumpPrev: "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", tableMode: "0/00/WikEd_table_edit.png", tableBG: "8/8a/WikEd_unknown.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", 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"});};if (typeof wikEdFrameCSS == "undefined") {window.wikEdFrameCSS = {};}window.WikedInitFrameCSS = function () {WikEdInitObject(wikEdFrameCSS, {'.wikedFrameBody': "background: #FFFFFF; margin: 0px; padding: 0.2em; overflow: -moz-scrollbars-vertical; overflow-x: auto; font-family: monospace;", '.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': "", '.wikEdHR': "background-color: #d0d0d0;", '.wikEdHRInline': "background-color: #d0d0d0;", '.wikEdWiki': "color: #0000e0;", '.wikEdWikiRedir': "color: #0000e0; background-color: #ffffff; font-weight: bold;", '.wikEdMagic': "color: #0000e0; background-color: #e0e0e0; font-weight: bold;", '.wikEdHeading': "background-color: #e0e0e0; font-weight: bold;", '.wikEdHeadingWp': "background-color: #d8e0ff; font-weight: bold;", '.wikEdTableBlock': "background-color: #e8e8e8;", '.wikEdTableLine': "background-color: #e8e8e8;", '.wikEdTableTag': "background-color: #e8e8e8; color: #0000e0;", '.wikEdListBlock': "background-color: #e8e8e8;", '.wikEdListLine': "background-color: #f0f0f0", '.wikEdListTag': "background-color: #e8e8e8; color: #0000e0; font-weight: bold;", '.wikEdSpaceBlock': "background-color: #e8e8e8;", '.wikEdSpaceLine': "background-color: #e8e8e8;", '.wikEdSpaceTag': "color: #0000e0; font-weight: bold;", '.wikEdLinkTag': "color: #0000e0;", '.wikEdLink': "", '.wikEdImage': "background-color: #d5ffaa;", '.wikEdCat': "background-color: #d0d8ff;", '.wikEdTemplTag': "color: #0000e0;", '.wikEdTempl': "background-color: #e0e8ff;", '.wikEdInter': "color: #000000;", '.wikEdLinkInter': "background-color: #c8c8ff;", '.wikEdImageInter': "background-color: #c8c8ff;", '.wikEdCatInter': "background-color: #c8c8ff;", '.wikEdTemplInter': "background-color: #c8c8ff;", '.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;", '.wikEdHighlightLink': "text-decoration: none; color: #909090;", ':hover.wikEdHighlightLink': "text-decoration: underline; color: #909090;", '.wikEdPastedHtml': "background-color: #ffc080;", '.wikEdLinkText': "color: #000000; font-weight: bold;", '.wikEdImageParam': "color: #0000e0;", '.wikEdImageCaption': "color: #000000;", '.wikEdCatText': "color: #000000;", '.wikEdTemplText': "color: #000000;", '.wikEdURLText': "color: #000000; font-weight: bold;", '.wikEdTableEdit': "border: solid black; border-width: 1px 1px 0 0; background-color: red; background-image: url('" + wikEdImage.tableBG + "'); border-collapse: separate; border-spacing: 0;", '.wikEdTableEdit td': "border: solid black; border-width: 0 0 1px 1px; background-color: white;", '.wikEdTableEdit th': "border: solid black; border-width: 0 0 1px 1px; background-color: lightgrey; font-weight: bold;", '.wikEdTableEdit tr': "background-color: lightgrey; font-weight: bold;", '.wikEdInsertHere': "background-color: orange; font-style: italic;", '.wikEdColorsLight': "color: black;", '.wikEdColorsDark': "color: white;", '.wikEdTab': "white-space: pre; background-image: url({wikEdTab}); background-position: bottom right; background-repeat: no-repeat;", '.wikEdTabPlain': "white-space: pre;", '.wikEdCtrl': "white-space: pre; background-image: url({wikEdCtrl}); background-position: center center; background-repeat: no-repeat; margin: 0 1px;", '.wikEdCtrl:before': "content: '\xA0'", '.wikEdBlank': "white-space: -moz-pre-wrap; background-image: url({wikEdBlank}); background-position: bottom left; background-repeat: no-repeat; margin: 0 1px; padding: 0 1px;"});};if (typeof wikEdMainCSS == "undefined") {window.wikEdMainCSS = {};}window.WikedInitMainCSS = function () {WikEdInitObject(wikEdMainCSS, {'.wikEdLogo': "margin-left: 0.5em;", '.wikEdLogoFallBack': "float: right;", '.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;", '.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;", '.wikedButtonBarInnerWrapperVisible': "border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;", '.wikedButtonBarInnerWrapperHidden': "", '.wikedButtonBarGripWrapperVisible': "float: left;", '.wikedButtonBarGripWrapperHidden': "float: left; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;", '.wikedButtonBarButtonsWrapperVisible': "float: left; background: #d4d0cc; ", '.wikedButtonBarButtonsWrapperHidden': "float: left; background: #d4d0cc; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0; z-index: 4;", '.wikedButtonBarGrip': "background: #d4d0cc; padding: 0; background-image: url({wikEdGrip}); background-repeat: repeat-y; cursor: pointer;", '.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;", '.wikEdButton': "vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #d4d0cc; border: 1px #d4d0cc solid !important; cursor: pointer;", '.wikEdButton:hover': "background: #e4e0dd; border: 1px outset !important; cursor: pointer;", '.wikEdButton:active': "background: #e4e0dc; border: 1px inset !important; cursor: pointer;", '.wikEdButtonSolo': "vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #d4d0cc; border: 1px #d4d0cc solid !important; cursor: pointer;", '.wikEdButtonSolo:hover': "background: #e4e0dd; border: 1px outset !important; cursor: pointer;", '.wikEdButtonChecked': "vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ccc8c3; border: 1px solid !important; border-color: black white white black !important; cursor: pointer;", '.wikEdButtonUnchecked': "vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ddd8d3; border: 1px solid !important; border-color: white black black white !important; cursor: pointer;", '.wikEdButtonPressed': "vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ccc8c3; border: 1px solid !important; border-color: black white white black !important; cursor: wait;", '.wikEdButtonInactive': "vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #c0c0c0; border: 1px #b0b0b0 solid !important; 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;", '.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;", '.wikEdFindComboInput': "position: relative; padding: 0; margin: 0 0.2em; white-space: nowrap; top: 0; vertical-align: bottom;", '#wikEdFindText': "vertical-align: 0%; font-family: monospace; padding: 0; margin: 0; position: absolute; z-index: 2; -moz-box-sizing: content-box; left: 0; top: 1px; height: 14px; width: 170px;", '#wikEdFindSelect': "vertical-align: 0%; font-family: monospace; padding: 0; margin: 0; position: relative; z-index: 1; -moz-box-sizing: content-box; left: 0; top: 0px; height: 18px; border: none;", '.wikEdReplaceComboInput': "position: relative; padding: 0; margin: 0 0.2em; white-space: nowrap; top: 0; vertical-align: bottom;", '#wikEdReplaceText': "vertical-align: 0%; font-family: monospace; padding: 0; margin: 0; position: absolute; z-index: 2; -moz-box-sizing: content-box; left: 0; top: 1px; height: 14px; width: 170px;", '#wikEdReplaceSelect': "vertical-align: 0%; font-family: monospace; padding: 0; margin: 0; position: relative; z-index: 1; -moz-box-sizing: content-box; left: 0; top: 0px; height: 18px; border: none; ", '.wikEdSummaryComboInput': "position: relative; padding: 0; margin: 0 0 0 0.1em; white-space: nowrap; top: 0; vertical-align: text-bottom;", '.wikEdSummaryText': "vertical-align: 0%; padding: 0; margin: 0; position: absolute; z-index: 2; -moz-box-sizing: content-box; left: 0; top: 0px; height: 18px; width: auto;", '.wikEdSummarySelect': "vertical-align: 0%; padding: 0; margin: 0; position: relative; z-index: 1; -moz-box-sizing: content-box; left: 0; top: 1px; height: 21px; border: none;", '.editButtons': "margin: 0;", '.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;", '.wikEdSummaryWrapper': "margin: 0 0 0.4em 0; width: 100%", '.wikEdSummaryWrapperTop': "margin: 0.1em 0 0.4em 0; width: 100%", '#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;", '.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;", '.wikEdToolbarWrapper': "margin: 0 0 0.25em 0;", '.wikEdCaptchaWrapper': "", '.wikEdDebugWrapper': "margin: 0 0 0.35em 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': ";", '.wikEdSubmitButtonsWrapper': "", '.wikEdLocalPrevWrapper': "margin: 0.5em 0 0 0;", '.wikEdInsertWrapper': "", '.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;"});};if (typeof wikEdButton == "undefined") {window.wikEdButton = {};}window.WikedInitButton = function () {WikEdInitObject(wikEdButton, {1: ["wikEdUndo", "wikEdButtonInactive", wikEdText['wikEdUndo title'], wikEdImage.undo, "16", "16", wikEdText['wikEdUndo alt'], "javascript:WikEdEditButton(obj, objId);"], 2: ["wikEdRedo", "wikEdButtonInactive", wikEdText['wikEdRedo title'], wikEdImage.redo, "16", "16", wikEdText['wikEdRedo alt'], "javascript:WikEdEditButton(obj, objId);"], 3: ["wikEdBold", "wikEdButton", wikEdText['wikEdBold title'], wikEdImage.bold, "16", "16", wikEdText['wikEdBold alt'], "javascript:WikEdEditButton(obj, objId);"], 4: ["wikEdItalic", "wikEdButton", wikEdText['wikEdItalic title'], wikEdImage.italic, "16", "16", wikEdText['wikEdItalic alt'], "javascript:WikEdEditButton(obj, objId);"], 5: ["wikEdUnderline", "wikEdButton", wikEdText['wikEdUnderline title'], wikEdImage.underline, "16", "16", wikEdText['wikEdUnderline alt'], "javascript:WikEdEditButton(obj, objId);"], 6: ["wikEdStrikethrough", "wikEdButton", wikEdText['wikEdStrikethrough title'], wikEdImage.strikethrough, "16", "16", wikEdText['wikEdStrikethrough alt'], "javascript:WikEdEditButton(obj, objId);"], 7: ["wikEdNowiki", "wikEdButton", wikEdText['wikEdNowiki title'], wikEdImage.nowiki, "16", "16", wikEdText['wikEdNowiki alt'], "javascript:WikEdEditButton(obj, objId);"], 8: ["wikEdSuperscript", "wikEdButton", wikEdText['wikEdSuperscript title'], wikEdImage.superscript, "16", "16", wikEdText['wikEdSuperscript alt'], "javascript:WikEdEditButton(obj, objId);"], 9: ["wikEdSubscript", "wikEdButton", wikEdText['wikEdSubscript title'], wikEdImage.subscript, "16", "16", wikEdText['wikEdSubscript alt'], "javascript:WikEdEditButton(obj, objId);"], 10: ["wikEdRef", "wikEdButton", wikEdText['wikEdRef title'], wikEdImage.ref, "16", "16", wikEdText['wikEdRef alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdRef'); } else { javascript:WikEdEditButton(obj, 'wikEdRefNamed'); }"], 12: ["wikEdCase", "wikEdButton", wikEdText['wikEdCase title'], wikEdImage.case, "16", "16", wikEdText['wikEdCase alt'], "javascript:WikEdEditButton(obj, objId);"], 25: ["wikEdRedirect", "wikEdButton", wikEdText['wikEdRedirect title'], wikEdImage.redirect, "16", "16", wikEdText['wikEdRedirect alt'], "javascript:WikEdEditButton(obj, objId);"], 13: ["wikEdUndoAll", "wikEdButton", wikEdText['wikEdUndoAll title'], wikEdImage.undoAll, "16", "16", wikEdText['wikEdUndoAll alt'], "javascript:WikEdEditButton(obj, objId);"], 14: ["wikEdRedoAll", "wikEdButtonInactive", wikEdText['wikEdRedoAll title'], wikEdImage.redoAll, "16", "16", wikEdText['wikEdRedoAll alt'], "javascript:WikEdEditButton(obj, objId);"], 15: ["wikEdWikiLink", "wikEdButton", wikEdText['wikEdWikiLink title'], wikEdImage.wikiLink, "16", "16", wikEdText['wikEdWikiLink alt'], "javascript:WikEdEditButton(obj, objId);"], 16: ["wikEdWebLink", "wikEdButton", wikEdText['wikEdWebLink title'], wikEdImage.webLink, "16", "16", wikEdText['wikEdWebLink alt'], "javascript:WikEdEditButton(obj, objId);"], 17: ["wikEdHeading", "wikEdButton", wikEdText['wikEdHeading title'], wikEdImage.heading, "16", "16", wikEdText['wikEdHeading alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdIncreaseHeading'); } else { javascript:WikEdEditButton(obj, 'wikEdDecreaseHeading'); }"], 19: ["wikEdBulletList", "wikEdButton", wikEdText['wikEdBulletList title'], wikEdImage.bulletList, "16", "16", wikEdText['wikEdBulletList alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdIncreaseBulletList'); } else { javascript:WikEdEditButton(obj, 'wikEdDecreaseBulletList'); }"], 20: ["wikEdNumberList", "wikEdButton", wikEdText['wikEdNumberList title'], wikEdImage.numberList, "16", "16", wikEdText['wikEdNumberList alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdIncreaseNumberList'); } else { javascript:WikEdEditButton(obj, 'wikEdDecreaseNumberList'); }"], 21: ["wikEdIndentList", "wikEdButton", wikEdText['wikEdIndentList title'], wikEdImage.indentList, "16", "16", wikEdText['wikEdIndentList alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdIncreaseIndentList'); } else { javascript:WikEdEditButton(obj, 'wikEdDecreaseIndentList'); }"], 22: ["wikEdDefinitionList", "wikEdButton", wikEdText['wikEdDefinitionList title'], wikEdImage.definitionList, "16", "16", wikEdText['wikEdDefinitionList alt'], "javascript:WikEdEditButton(obj, objId);"], 23: ["wikEdImage", "wikEdButton", wikEdText['wikEdImage title'], wikEdImage.image, "16", "16", wikEdText['wikEdImage alt'], "javascript:WikEdEditButton(obj, objId);"], 24: ["wikEdTable", "wikEdButton", wikEdText['wikEdTable title'], wikEdImage.table, "16", "16", wikEdText['wikEdTable alt'], "javascript:WikEdEditButton(obj, objId);"], 11: ["wikEdReferences", "wikEdButton", wikEdText['wikEdReferences title'], wikEdImage.references, "16", "16", wikEdText['wikEdReferences alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, objId); } else { javascript:WikEdEditButton(obj, 'wikEdReferencesSection'); }"], 26: ["wikEdWikify", "wikEdButton", wikEdText['wikEdWikify title'], wikEdImage.wikify, "16", "16", wikEdText['wikEdWikify alt'], "javascript:WikEdEditButton(obj, objId);"], 27: ["wikEdTextify", "wikEdButton", wikEdText['wikEdTextify title'], wikEdImage.textify, "16", "16", wikEdText['wikEdTextify alt'], "javascript:WikEdEditButton(obj, objId);"], 77: ["wikEdRefHide", "wikEdButtonUnchecked", wikEdText['wikEdRefHide title'], wikEdImage.refHide, "16", "16", wikEdText['wikEdRefHide alt'], "javascript:WikEdButton(obj, objId, true);"], 29: ["wikEdTextZoom", "wikEdButton", wikEdText['wikEdTextZoom title'], wikEdImage.textZoom, "16", "16", wikEdText['wikEdTextZoom alt'], "if (!eventShiftKey) { javascript:WikEdButton(obj, 'wikEdTextZoomDown'); } else { javascript:WikEdButton(obj, 'wikEdTextZoomUp'); }"], 30: ["wikEdClearHistory", "wikEdButton", wikEdText['wikEdClearHistory title'], wikEdImage.clearHistory, "16", "16", wikEdText['wikEdClearHistory alt'], "javascript:WikEdButton(obj, objId);"], 31: ["wikEdScrollToPreview", "wikEdButton", wikEdText['wikEdScrollToPreview title'], wikEdImage.scrollToPreviewDown, "16", "16", wikEdText['wikEdScrollToPreview alt'], "javascript:WikEdButton(obj, objId);"], 32: ["wikEdScrollToEdit", "wikEdButton", wikEdText['wikEdScrollToEdit title'], wikEdImage.scrollToEditDown, "16", "16", wikEdText['wikEdScrollToEdit alt'], "javascript:WikEdButton(obj, objId);"], 33: ["wikEdUseWikEd", "wikEdButtonChecked", wikEdText['wikEdUseWikEd title'], wikEdImage.useWikEd, "16", "16", wikEdText['wikEdUseWikEd alt'], "javascript:WikEdButton(obj, objId, true);"], 34: ["wikEdHighlightSyntax", "wikEdButtonUnchecked", wikEdText['wikEdHighlightSyntax title'], wikEdImage.highlightSyntax, "16", "16", wikEdText['wikEdHighlightSyntax alt'], "javascript:WikEdButton(obj, objId, true);"], 35: ["wikEdSource", "wikEdButton", wikEdText['wikEdSource title'], wikEdImage.source, "16", "16", wikEdText['wikEdSource alt'], "javascript:WikEdEditButton(obj, objId);"], 75: ["wikEdCloseToolbar", "wikEdButtonUnchecked", wikEdText['wikEdCloseToolbar title'], wikEdImage.closeToolbar, "16", "16", wikEdText['wikEdCloseToolbar alt'], "javascript:WikEdButton(obj, objId, true);"], 36: ["wikEdUsing", "wikEdButtonUnchecked", wikEdText['wikEdUsing title'], wikEdImage.using, "16", "16", wikEdText['wikEdUsing alt'], "javascript:WikEdButton(obj, objId, true);"], 37: ["wikEdFullScreen", "wikEdButtonUnchecked", wikEdText['wikEdFullScreen title'], wikEdImage.fullScreen, "16", "16", wikEdText['wikEdFullScreen alt'], "javascript:WikEdButton(obj, objId, true);"], 79: ["wikEdTableMode", "wikEdButtonUnchecked", wikEdText['wikEdTableMode title'], wikEdImage.tableMode, "16", "16", wikEdText['wikEdTableMode alt'], "javascript:WikEdButton(obj, objId, true);"], 39: ["wikEdFindAll", "wikEdButton", wikEdText['wikEdFindAll title'], wikEdImage.findAll, "16", "16", wikEdText['wikEdFindAll alt'], "javascript:WikEdEditButton(obj, objId);"], 40: ["wikEdFindPrev", "wikEdButton", wikEdText['wikEdFindPrev title'], wikEdImage.findPrev, "16", "16", wikEdText['wikEdFindPrev alt'], "javascript:WikEdEditButton(obj, objId);"], 41: ["wikEdFindNext", "wikEdButton", wikEdText['wikEdFindNext title'], wikEdImage.findNext, "16", "16", wikEdText['wikEdFindNext alt'], "if (eventShiftKey) { javascript:WikEdEditButton(obj, objId, 'shift'); } else { javascript:WikEdEditButton(obj, objId); }"], 43: ["wikEdJumpPrev", "wikEdButton", wikEdText['wikEdJumpPrev title'], wikEdImage.jumpPrev, "16", "16", wikEdText['wikEdJumpPrev alt'], "javascript:WikEdEditButton(obj, objId);"], 44: ["wikEdJumpNext", "wikEdButton", wikEdText['wikEdJumpNext title'], wikEdImage.jumpNext, "16", "16", wikEdText['wikEdJumpNext alt'], "javascript:WikEdEditButton(obj, objId);"], 46: ["wikEdReplaceAll", "wikEdButton", wikEdText['wikEdReplaceAll title'], wikEdImage.replaceAll, "16", "16", wikEdText['wikEdReplaceAll alt'], "javascript:WikEdEditButton(obj, objId);"], 47: ["wikEdReplacePrev", "wikEdButton", wikEdText['wikEdReplacePrev title'], wikEdImage.replacePrev, "16", "16", wikEdText['wikEdReplacePrev alt'], "javascript:WikEdEditButton(obj, objId);"], 48: ["wikEdReplaceNext", "wikEdButton", wikEdText['wikEdReplaceNext title'], wikEdImage.replaceNext, "16", "16", wikEdText['wikEdReplaceNext alt'], "if (eventShiftKey) { javascript:WikEdEditButton(obj, objId, 'shift'); } else { javascript:WikEdEditButton(obj, objId); }"], 49: ["wikEdCaseSensitive", "wikEdButtonUnchecked", wikEdText['wikEdCaseSensitive title'], wikEdImage.caseSensitive, "16", "16", wikEdText['wikEdCaseSensitive alt'], "javascript:WikEdButton(obj, objId, true);"], 50: ["wikEdRegExp", "wikEdButtonUnchecked", wikEdText['wikEdRegExp title'], wikEdImage.regExp, "16", "16", wikEdText['wikEdRegExp alt'], "javascript:WikEdButton(obj, objId, true);"], 51: ["wikEdFindAhead", "wikEdButtonUnchecked", wikEdText['wikEdFindAhead title'], wikEdImage.findAhead, "16", "16", wikEdText['wikEdFindAhead alt'], "javascript:WikEdButton(obj, objId, true);"], 52: ["wikEdFixBasic", "wikEdButton", wikEdText['wikEdFixBasic title'], wikEdImage.fixBasic, "16", "16", wikEdText['wikEdFixBasic alt'], "javascript:WikEdEditButton(obj, objId);"], 53: ["wikEdFixHtml", "wikEdButton", wikEdText['wikEdFixHtml title'], wikEdImage.fixHtml, "16", "16", wikEdText['wikEdFixHtml alt'], "javascript:WikEdEditButton(obj, objId);"], 54: ["wikEdFixCaps", "wikEdButton", wikEdText['wikEdFixCaps title'], wikEdImage.fixCaps, "16", "16", wikEdText['wikEdFixCaps alt'], "javascript:WikEdEditButton(obj, objId);"], 55: ["wikEdfixUnicode", "wikEdButton", wikEdText['wikEdfixUnicode title'], wikEdImage.fixUnicode, "16", "16", wikEdText['wikEdfixUnicode alt'], "javascript:WikEdEditButton(obj, objId);"], 56: ["wikEdFixAll", "wikEdButton", wikEdText['wikEdFixAll title'], wikEdImage.fixAll, "16", "16", wikEdText['wikEdFixAll alt'], "javascript:WikEdEditButton(obj, objId);"], 57: ["wikEdFixRegExTypo", "wikEdButton", wikEdText['wikEdFixRegExTypo title'], wikEdImage.fixRegExTypo, "16", "16", wikEdText['wikEdFixRegExTypo alt'], "javascript:WikEdEditButton(obj, objId);"], 58: ["wikEdFixDashes", "wikEdButton", wikEdText['wikEdFixDashes title'], wikEdImage.fixDash, "16", "16", wikEdText['wikEdFixDashes alt'], "javascript:WikEdEditButton(obj, objId);"], 59: ["wikEdFixPunct", "wikEdButton", wikEdText['wikEdFixPunct title'], wikEdImage.fixPunct, "16", "16", wikEdText['wikEdFixPunct alt'], "javascript:WikEdEditButton(obj, objId);"], 60: ["wikEdFixMath", "wikEdButton", wikEdText['wikEdFixMath title'], wikEdImage.fixMath, "16", "16", wikEdText['wikEdFixMath alt'], "javascript:WikEdEditButton(obj, objId);"], 61: ["wikEdFixChem", "wikEdButton", wikEdText['wikEdFixChem title'], wikEdImage.fixChem, "16", "16", wikEdText['wikEdFixChem alt'], "javascript:WikEdEditButton(obj, objId);"], 62: ["wikEdFixUnits", "wikEdButton", wikEdText['wikEdFixUnits title'], wikEdImage.fixUnits, "16", "16", wikEdText['wikEdFixUnits alt'], "javascript:WikEdEditButton(obj, objId);"], 65: ["wikEdClose", "wikEdButton", wikEdText['wikEdClose title'], wikEdImage.close, "16", "16", wikEdText['wikEdClose alt'], "javascript:WikEdButton(obj, objId);"], 66: ["wikEdScrollToPreview2", "wikEdButton", wikEdText['wikEdScrollToPreview2 title'], wikEdImage.scrollToPreviewDown, "16", "16", wikEdText['wikEdScrollToPreview2 alt'], "javascript:WikEdButton(obj, objId);"], 67: ["wikEdScrollToEdit2", "wikEdButton", wikEdText['wikEdScrollToEdit2 title'], wikEdImage.scrollToEdit, "16", "16", wikEdText['wikEdScrollToEdit2 alt'], "javascript:WikEdButton(obj, objId);"], 70: ["wikEdClose2", "wikEdButton", wikEdText['wikEdClose2 title'], wikEdImage.close, "16", "16", wikEdText['wikEdClose2 alt'], "javascript:WikEdButton(obj, objId);"], 71: ["wikEdScrollToPreview3", "wikEdButton", wikEdText['wikEdScrollToPreview3 title'], wikEdImage.scrollToPreview, "16", "16", wikEdText['wikEdScrollToPreview3 alt'], "javascript:WikEdButton(obj, objId);"], 72: ["wikEdScrollToEdit3", "wikEdButton", wikEdText['wikEdScrollToEdit3 title'], wikEdImage.scrollToEdit, "16", "16", wikEdText['wikEdScrollToEdit3 alt'], "javascript:WikEdButton(obj, objId);"], 78: ["wikEdDiff", "wikEdButtonUnchecked", wikEdText['wikEdDiff title'], wikEdImage.wikEdDiff, "16", "16", wikEdText['wikEdDiff alt'], "javascript:WikEdButton(obj, objId, true);"], 74: ["wikEdScrollToEdit4", "wikEdButtonSolo", wikEdText['wikEdScrollToEdit4 title'], wikEdImage.scrollToEditDown, "16", "16", wikEdText['wikEdScrollToEdit4 alt'], "javascript:WikEdButton(obj, objId);"], 76: ["wikEdDummy", "wikEdButtonDummy", "", wikEdImage.dummy, "16", "16", "", ""]});};if (typeof wikEdButtonKey == "undefined") {window.wikEdButtonKey = {};}window.WikedInitButtonKey = function () {WikEdInitObject(wikEdButtonKey, {26: ["b", 66], 27: ["o", 79], 67: ["g", 71], 72: ["g", 71], 74: ["g", 71], 32: ["g", 71]});};if (typeof wikEdButtonBar == "undefined") {window.wikEdButtonBar = {};}window.WikedInitButtonBar = function () {WikEdInitObject(wikEdButtonBar, {format: ["wikEdButtonBarFormat", "wikEdButtonBarFormat", "wikEdButtonsFormat", "wikEdButtonsFormat", 44, wikEdText['wikEdGripFormat title'], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, "br", 15, 16, 17, 19, 20, 21, 22, 23, 24, 11, 25, 26, 27]], custom1: ["wikEdButtonBarCustom1", "wikEdButtonBarCustom1", "wikEdButtonsCustom1", "wikEdButtonsCustom1", 44, wikEdText['wikEdGripCustom1 title'], []], find: ["wikEdButtonBarFind", "wikEdButtonBarFind", "wikEdButtonsFind", "wikEdButtonsFind", 44, wikEdText['wikEdGripFind title'], [39, 40, "find", 41, 76, 43, 44, "br", 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, 79, "br", 33, 34, 35, 75, 36, 78, 37]], preview: ["wikEdButtonBarPreview", "wikEdButtonBarPreview", "wikEdButtonsPreview", "wikEdButtonsPreview", 0, null, [66, 67, 65]], preview2: ["wikEdButtonBarPreview2", "wikEdButtonBarPreview2", "wikEdButtonsPreview2", "wikEdButtonsPreview2", 0, null, [71, 72, 70]], jump: ["wikEdButtonBarJump", "wikEdButtonBarJump", "wikEdButtonsJump", "wikEdButtonsJump", 0, null, [74]]});};if (typeof wikEdHistoryLength == "undefined") {window.wikEdHistoryLength = {};}wikEdHistoryLength.find = 10;wikEdHistoryLength.replace = 10;wikEdHistoryLength.summary = 10;if (typeof wikEdComboPresetOptions == "undefined") {window.wikEdComboPresetOptions = {};}if (typeof wikEdComboPresetOptions.summary == "undefined") {window.wikEdComboPresetOptions.summary = wikEdText.wikEdPresetSummary;}if (typeof wikEdSummaryUsing == "undefined") {window.wikEdSummaryUsing = wikEdText.wikEdSummaryUsing;}if (typeof wikEdCookieExpireSec == "undefined") {window.wikEdCookieExpireSec = 2592000;}if (typeof wikEdDisabledPreset == "undefined") {window.wikEdDisabledPreset = false;}if (typeof wikEdFindAheadSelected == "undefined") {window.wikEdFindAheadSelected = true;}if (typeof wikEdHighlightSyntaxPreset == "undefined") {window.wikEdHighlightSyntaxPreset = true;}if (typeof wikEdUseWikEdPreset == "undefined") {window.wikEdUseWikEdPreset = true;}if (typeof wikEdUsingPreset == "undefined") {window.wikEdUsingPreset = false;}if (typeof wikEdScrollToEdit == "undefined") {window.wikEdScrollToEdit = true;}if (typeof wikEdDiffPreset == "undefined") {window.wikEdDiffPreset = false;}if (typeof wikEdFullScreenModePreset == "undefined") {window.wikEdFullScreenModePreset = false;}if (typeof wikEdCloseToolbarPreset == "undefined") {window.wikEdCloseToolbarPreset = false;}if (typeof wikEdRefHidePreset == "undefined") {window.wikEdRefHidePreset = false;}if (typeof wikEdTextZoom == "undefined") {window.wikEdTextZoom = 100;}if (typeof wikEdRemoveHighlightComments == "undefined") {window.wikEdRemoveHighlightComments = true;}if (typeof wikEdShowSourceButton == "undefined") {window.wikEdShowSourceButton = false;}if (typeof wikEdShowUsingButton == "undefined") {window.wikEdShowUsingButton = false;}if (typeof wikEdHelpPageLink == "undefined") {window.wikEdHelpPageLink = wikEdText.wikEdHelpPageLink;}if (typeof wikEdLoadDiffScript == "undefined") {window.wikEdLoadDiffScript = true;}if (typeof wikEdLoadDiff == "undefined") {window.wikEdLoadDiff = true;}if (typeof wikEdLoadInstaView == "undefined") {window.wikEdLoadInstaView = true;}if (typeof wikEdRegExTypoFixURL == "undefined") {window.wikEdRegExTypoFixURL = "http://en.wikipedia.org/w/index.php?title=Wikipedia:AutoWikiBrowser/Typos&amp;action=raw";}if (typeof wikEdRegExTypoFix == "undefined") {window.wikEdRegExTypoFix = false;}if (typeof wikEdFollowHighlightedLinks == "undefined") {window.wikEdFollowHighlightedLinks = false;}if (typeof wikEdSkipBrowserTest == "undefined") {window.wikEdSkipBrowserTest = false;}if (typeof wikEdButtonBarGripWidth == "undefined") {window.wikEdButtonBarGripWidth = 8;}if (typeof wikEdUseLocalPreview == "undefined") {window.wikEdUseLocalPreview = true;}if (typeof wikEdAllowLocalAjax == "undefined") {window.wikEdAllowLocalAjax = false;}if (typeof wikEdUseAjaxPreview == "undefined") {window.wikEdUseAjaxPreview = true;}if (typeof wikEdAutoUpdate == "undefined") {window.wikEdAutoUpdate = true;}if (typeof wikEdAutoUpdateHours == "undefined") {window.wikEdAutoUpdateHours = 20;}if (typeof wikEdAutoUpdateHoursGM == "undefined") {window.wikEdAutoUpdateHoursGM = 40;}if (typeof wikEdAutoUpdateUrl == "undefined") {window.wikEdAutoUpdateUrl = "http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd_current_version&amp;action=raw&amp;maxage=0";}if (typeof wikEdAutoUpdateScriptUrl == "undefined") {window.wikEdAutoUpdateScriptUrl = "http://en.wikipedia.org/w/index.php?action=raw&amp;ctype=text/javascript&amp;title=User:Cacycle/wikEd.user.js";}if (typeof wikEdFullDiff == "undefined") {window.wikEdFullDiff = false;}if (typeof wikEdFollowLinks == "undefined") {window.wikEdFollowLinks = true;}if (typeof wikEdSubmitTabOrder == "undefined") {window.wikEdSubmitTabOrder = false;}if (typeof wikEdWikifyTableParameters == "undefined") {window.wikEdWikifyTableParameters = "";}if (typeof wikEdNoRearrange == "undefined") {window.wikEdNoRearrange = false;}if (typeof wikEdFixPunctFrench == "undefined") {window.wikEdFixPunctFrench = false;}if (typeof wikEdSetupHook == "undefined") {window.wikEdSetupHook = [];}if (typeof wikEdOnHook == "undefined") {window.wikEdOnHook = [];}if (typeof wikEdOffHook == "undefined") {window.wikEdOffHook = [];}if (typeof wikEdTextareaHook == "undefined") {window.wikEdTextareaHook = [];}if (typeof wikEdFrameHook == "undefined") {window.wikEdFrameHook = [];}if (typeof wikEdCustomEditFormId == "undefined") {window.wikEdCustomEditFormId = "";}if (typeof wikEdCustomTextAreaId == "undefined") {window.wikEdCustomTextAreaId = "";}if (typeof wikEdCustomSaveButtonId == "undefined") {window.wikEdCustomSaveButtonId = "";}if (typeof wikEdShowTableModeButton == "undefined") {window.wikEdShowTableModeButton = false;}return;}; if (typeof wikEdDiffScriptSrc == "undefined") { window.wikEdDiffScriptSrc = "http://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js&amp;action=raw&amp;ctype=text/javascript"; } if (typeof wikEdDiffSrc == "undefined") { window.wikEdDiffSrc = "http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js&amp;action=raw&amp;ctype=text/javascript"; } if (typeof wikEdInstaViewSrc == "undefined") { window.wikEdInstaViewSrc = "http://en.wikipedia.org/w/index.php?title=User:Pilaf/include/instaview.js&amp;action=raw&amp;ctype=text/javascript"; } if (typeof wikEdGadget == "undefined") { window.wikEdGadget = null; } window.WikEdInitGlobals = function () {window.wikEdTurnedOn = null;window.wikEdDisabled = null;window.wikEdUpload = null;window.wikEdFieldHist = [];window.wikEdSavedName = [];window.wikEdInputElement = [];window.wikEdSelectElement = [];window.wikEdCheckMarker = [];window.wikEdCheckMarker[true] = "\u2666";window.wikEdCheckMarker[false] = "\u25CA";window.wikEdFrameDOMCache = null;window.wikEdOrigVersion = "";window.wikEdLastVersion = null;window.wikEdLogo = null;window.wikEdLogoList = null;window.wikEdDebug = null;window.wikEdTextarea = null;window.wikEdEditForm = null;window.wikEdFrame = null;window.wikEdFrameBody = null;window.wikEdFrameDocument = null;window.wikEdFrameWindow = null;window.wikEdInputWrapper = null;window.wikEdToolbarWrapper = null;window.wikEdCaptchaWrapper = null;window.wikEdDebugWrapper = null;window.wikEdTextareaWrapper = null;window.wikEdFrameWrapper = null;window.wikEdConsoleWrapper = null;window.wikEdButtonsWrapper = null;window.wikEdSummaryWrapper = null;window.wikEdSummaryInputWrapper = null;window.wikEdSummaryOptions = null;window.wikEdSubmitWrapper = null;window.wikEdSubmitButtonsWrapper = null;window.wikEdLocalPrevWrapper = null;window.wikEdInsertWrapper = null;window.wikEdButtonBarFormat = null;window.wikEdButtonBarCustom1 = null;window.wikEdButtonBarFind = null;window.wikEdButtonBarFix = null;window.wikEdButtonBarCustom2 = null;window.wikEdButtonBarControl = null;window.wikEdButtonBarPreview = null;window.wikEdButtonBarPreview2 = null;window.wikEdButtonBarJump = null;window.wikEdPreviewBox = null;window.wikEdClearSummary = null;window.wikEdClearSummaryImg = null;window.wikEdCaseSensitive = null;window.wikEdRegExp = null;window.wikEdFindAhead = null;window.wikEdFindText = null;window.wikEdReplaceText = null;window.wikEdSummaryText = null;window.wikEdSummarySelect = null;window.wikEdSummaryTextWidth = null;window.wikEdEditOptions = null;window.wikEdEditHelp = null;window.wikEdSaveButton = null;window.wikEdPreviewButton = null;window.wikEdLDiffButton = null;window.wikEdLocalPreview = null;window.wikEdLocalDiff = null;window.wikEdDiffPreviewButton = null;window.wikEdSummaryLabel = null;window.wikEdGetGlobalNode = null;window.wikEdEditButtonHandler = {};window.wikEdTextareaHeight = null;window.wikEdClearSummaryWidth = null;window.wikEdFullScreenMode = false;window.wikEdAddNewSection = null;window.wikEdBrowserNotSupported = null;window.wikEdFrameScrollTop = null;window.wikEdTextareaUpdated = null;window.wikEdPreviewIsAjax = null;window.wikEdButtonKeyCode = [];window.wikEdFollowLinkIdNo = 0;window.wikEdFollowLinkHash = {};if (typeof wikEdWikiGlobals == "undefined") {window.wikEdWikiGlobals = [];}window.wikEdDirection = null;window.WikEdInsertTagsOriginal = null;window.WikEdInsertAtCursorOriginal = null;window.wikEdRefHide = null;window.wikEdUsing = null;window.wikEdUseWikEd = null;window.wikEdCloseToolbar = null;window.wikEdHighlightSyntax = null;window.wikEdDiff = null;window.wikEdTableMode = null;window.wikEdControlCharsStr = "";window.wikEdSupportedChars = null;window.wikEdSpecialChars = null;window.wikEdProblemChars = null;window.wikEdControlChars = null;window.wikEdStrangeSpaces = null;window.wikEdTypoRulesFind = [];window.wikEdTypoRulesReplace = [];window.wikEdDebugTimer = [];window.wikEdServer = "";window.wikEdArticlePath = "";window.wikEdScript = "";window.wikEdScriptPath = "";window.wikEdScriptName = "";return;}; if (typeof wikEdExternalScripts == "undefined") { window.wikEdExternalScripts = null; } if (typeof wikEdStartup == "undefined") { window.wikEdStartup = false; } if (typeof wikEdPageLoaded == "undefined") { window.wikEdPageLoaded = false; } if (typeof wikEdBrowserName == "undefined") { window.wikEdBrowserName = ""; } if (typeof wikEdBrowserFlavor == "undefined") { window.wikEdBrowserFlavor = ""; } if (typeof wikEdBrowserVersion == "undefined") { window.wikEdBrowserVersion = 0; } if (typeof wikEdMSIE == "undefined") { window.wikEdMSIE = false; } if (typeof wikEdMozilla == "undefined") { window.wikEdMozilla = false; } if (typeof wikEdOpera == "undefined") { window.wikEdOpera = false; } if (typeof wikEdSafari == "undefined") { window.wikEdSafari = null; } if (typeof wikEdGreasemonkey == "undefined") { window.wikEdGreasemonkey = null; } if (typeof wikEdGreasemonkeyToBody == "undefined") { window.wikEdGreasemonkeyToBody = null; } if (typeof wikEdMediaWikiSkinIds == "undefined") { window.wikEdMediaWikiSkinIds = {monobook: ["p-personal", true, true, ["column-content", "content", "bodyContent", "siteSub", "contentSub", "column-one", "p-cactions", "p-personal"]], pinkwich5: ["p-personal", true, true, ["column-content", "content", "bodycontent", "sitesub", "contentSub", "column-one", "p-cactions", "p-personal"]], standard: ["quickbar", false, true, ["content", "topbar", "article", "footer", "pagestats", "quickbar"]], nostalgia: ["topbar", false, true, ["content", "topbar", "specialpages", "article", "footer"]], cologneblue: ["quickbar", false, true, ["content", "topbar", "sitetitle", "sitesub", "article", "footer", "quickbar"]], modern: ["p-personal", true, true, ["mw_header", "mw_main", "mw_contentwrapper"]], monaco: ["wikia_header", true, true, ["headerMenuHub", "background_strip", "siteSub", "contentSub", "monaco_footer"]], quartz: ["welcome", false, true, ["articleWrapper", "bodyContent", "siteSub", "contentSub", "sidebar"]], searchwikia: ["header-li-buttons", false, true, ["header", "header-container", "header-go-button", "article-container", "article", "article-text"]], cavendish: ["nav", false, true, ["internal", "container", "header", "contentTop", "mBody", "side", "nav", "mainContent", "siteSub", "contentSub"]], devmo: ["personal", false, true, ["developer-mozilla-org", "container", "header", "navigation", "bar", "personal", "page", "sidebar", "sidebarslideup", "contentTop", "siteSub", "contentSub"]], gumax: ["gumax-p-navigation", false, true, ["gumax-header", "gumax-content-body"]], mediawiki: ["", false, false, ["mediawiki"]]}; } if (typeof wikEdSkinLogo == "undefined") { window.wikEdSkinLogo = ""; } if (typeof wikEdRearrange == "undefined") { window.wikEdRearrange = false; } if (typeof wikEdLogoToList == "undefined") { window.wikEdLogoToList = false; } if (typeof wikEdSkin == "undefined") { window.wikEdSkin = ""; } window.WikEdInitObject = function (array, preset) {for (var key in preset) {if (typeof key != "string") {continue;}if (array[key] == null) {array[key] = preset[key];}}return;}; window.WikEdInitImage = function (array, preset) {for (var key in preset) {if (typeof key != "string") {continue;}if (array[key] == null) {if (wikEdUseLocalImages == true) {array[key] = wikEdImagePathLocal + preset[key].replace(/^[0-9a-f]+\/[0-9a-f]+\//, "");} else {array[key] = wikEdImagePath + preset[key];}}}return;}; window.WikEdStartup = function () {if (wikEdStartup == true) {return;}wikEdStartup = true;window.WED = WikEdDebug;var agent = navigator.userAgent.match(/(Firefox|Netscape|SeaMonkey|IceWeasel|IceCat|Minefield|BonEcho|GranParadiso)\W+(\d+\.\d+)/i);if (agent != null) {wikEdMozilla = true;wikEdBrowserName = "Mozilla";wikEdBrowserFlavor = agent[1];wikEdBrowserVersion = parseFloat(agent[2]);} else {var agent = navigator.userAgent.match(/(MSIE)\W+(\d+\.\d+)/i);if (agent != null) {wikEdBrowserName = "MSIE";wikEdBrowserVersion = parseFloat(agent[2]);wikEdMSIE = true;}var agent = navigator.userAgent.match(/(Opera)\W+(\d+\.\d*)/i);if (agent != null) {wikEdBrowserName = "Opera";wikEdBrowserVersion = parseFloat(agent[2]);wikEdOpera = true;wikEdMSIE = false;}if (wikEdBrowserName == "") {agent = navigator.userAgent.match(/(Safari)\W+(\d+\.\d*)/i);if (agent != null) {wikEdBrowserName = "Safari";wikEdBrowserVersion = parseFloat(agent[2]);wikEdSafari = true;}}}WikEdAddEventListener(window, "load", WikEdSetup, false);return;}; window.WikEdSetup = function () {WikEdRemoveEventListener(window, "load", WikEdSetup, false);if (document.getElementById("wikEdSetupFlag") != null) {return;}if (wikEdExternalScripts == null) {wikEdExternalScripts = [];var pageScripts = document.getElementsByTagName("script");for (var i = 0; i &lt; pageScripts.length; i++) {var scriptSrc = pageScripts[i].src;var nameMatch = scriptSrc.match(/\btitle=([^&amp;]*)/);if (nameMatch == null) {nameMatch = scriptSrc.match(/\/([^\/]*?)($|\?)/);}if (nameMatch != null) {var scriptName = nameMatch[1];if (scriptName != "") {if (scriptName == "diff.js" &amp;&amp; (scriptSrc != wikEdDiffScriptSrc)) {continue;}wikEdExternalScripts[scriptName] = true;}}}}if (typeof GM_getValue == "function") {if (wikEdExternalScripts['wikEd.js'] == true) {wikEdGreasemonkey = false;return;} else {wikEdGreasemonkey = true;}} else {window.GM_log = window.WikEdDebug;}if (wikEdGadget == null) {if (wikEdExternalScripts['MediaWiki:Gadget-wikEd.js'] == true) {wikEdGadget = true;}}var flag = document.createElement("span");flag.id = "wikEdSetupFlag";flag.style.display = "none";flag.style.visibility = "hidden";document.body.appendChild(flag);for (var skin in wikEdMediaWikiSkinIds) {var logoElement = wikEdMediaWikiSkinIds[skin][0];var logoToList = wikEdMediaWikiSkinIds[skin][1];var rearrange = wikEdMediaWikiSkinIds[skin][2];var skinIds = wikEdMediaWikiSkinIds[skin][3];if (typeof logoElement != "string") {continue;}for (var i = 0; i &lt; skinIds.length; i++) {if (document.getElementById(skinIds[i]) == null) {break;}}if (i == skinIds.length) {wikEdSkinLogo = logoElement;wikEdSkin = skin;wikEdRearrange = rearrange;wikEdLogoToList = logoToList;break;}}if (wikEdSkin == "") {return;}WikEdInitGlobalConfigs();if (wikEdNoRearrange != false) {wikEdRearrange = false;}WikEdInitGlobals();var variable = ["wgServer", "wgTitle", "wgCanonicalNamespace", "wgArticlePath", "wgScript", "wgScriptPath", "wgUserName", "wgCurRevisionId", "wgScript"];for (var i = 0; i &lt; variable.length; i++) {wikEdWikiGlobals[variable[i]] = WikEdGetGlobal(variable[i]);}WikEdAutoUpdate();WikedInitImage();if (wikEdLogo == null) {wikEdLogo = document.createElement("img");wikEdLogo.id = "wikEdLogoImg";if (wikEdLogoToList == true) {wikEdLogoList = document.createElement("li");wikEdLogoList.id = "wikEdLogoList";wikEdLogoList.appendChild(wikEdLogo);var personalTools = document.getElementById(wikEdSkinLogo);if (personalTools != null) {personalTools.getElementsByTagName("ul")[0].appendChild(wikEdLogoList);wikEdLogo.className = "wikEdLogo";}}if (wikEdLogo.className == "") {if (wikEdSkinLogo != "") {document.getElementById(wikEdSkinLogo).appendChild(wikEdLogo);wikEdLogo.className = "wikEdLogo";} else {document.body.insertBefore(wikEdLogo, document.body.firstChild);wikEdLogo.className = "wikEdLogoFallBack";}}WikEdAddEventListener(wikEdLogo, "click", WikEdMainSwitch, true);}wikEdPageLoaded = true;var head = document.getElementsByTagName("head")[0];if (wikEdLoadDiffScript == true &amp;&amp; (wikEdExternalScripts['diff.js'] == null)) {if (typeof WDiffString == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffScriptSrc;head.appendChild(script);}wikEdExternalScripts['diff.js'] = true;}if (wikEdLoadDiff == true &amp;&amp; (wikEdExternalScripts['wikEdDiff.js'] == null)) {if (typeof WikEdDiff == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffSrc;head.appendChild(script);}wikEdExternalScripts['wikEdDiff.js'] = true;}wikEdDisabled = WikEdGetSavedSetting("wikEdDisabled", wikEdDisabledPreset);if (wikEdDisabled == true) {wikEdUseWikEd = false;WikEdSetLogo();return;}WikEdTurnOn(wikEdScrollToEdit);return;}; window.WikEdTurnOn = function (scrollToEdit) {if (wikEdTurnedOn == true) {return;}WikEdSetLogo("error");if (wikEdSkipBrowserTest == false) {if (navigator.appName == null) {wikEdBrowserNotSupported = true;} else {var origin = navigator.appName.match(/Netscape/i);if (origin == null || (origin == "")) {wikEdBrowserNotSupported = true;}var generation = navigator.appVersion.match(/\d+(\.\d+)/);if (generation == null || (generation[0] &lt; 5)) {wikEdBrowserNotSupported = true;}var geckoDate = navigator.userAgent.match(/\bGecko\/(\d+)/i);if (geckoDate != null) {if (geckoDate[1] != "" &amp;&amp; (geckoDate[1] &lt; 20050000)) {wikEdBrowserNotSupported = true;}}}}if (wikEdBrowserName == "Mozilla") {if (wikEdBrowserFlavor == "Firefox" &amp;&amp; wikEdBrowserVersion &lt; 1.5 || wikEdBrowserFlavor == "Netscape" &amp;&amp; wikEdBrowserVersion &lt; 8 || wikEdBrowserFlavor == "SeaMonkey" &amp;&amp; (wikEdBrowserVersion &lt; 1)) {wikEdBrowserNotSupported = true;}} else if (wikEdBrowserName == "MSIE" &amp;&amp; (wikEdBrowserVersion &lt; 7)) {wikEdBrowserNotSupported = true;} else if (wikEdBrowserName == "Opera" &amp;&amp; (wikEdBrowserVersion &lt; 9)) {wikEdBrowserNotSupported = true;} else if (wikEdBrowserName == "Safari" &amp;&amp; (wikEdBrowserVersion &lt; 500)) {wikEdBrowserNotSupported = true;} else {wikEdBrowserNotSupported = true;}if (wikEdBrowserNotSupported == true &amp;&amp; (wikEdSkipBrowserTest == false)) {WikEdSetLogo("browser");return;}if (wikEdCustomEditFormId != "") {wikEdEditForm = document.getElementById(wikEdCustomEditFormId);}if (wikEdCustomTextAreaId != "") {wikEdTextarea = document.getElementById(wikEdCustomTextAreaId);}if (wikEdCustomSaveButtonId != "") {wikEdSaveButton = document.getElementById(wikEdCustomwikEdSaveButtonId);}if (wikEdTextarea == null) {wikEdTextarea = document.getElementsByName("wpTextbox1")[0];}if (wikEdEditForm == null) {wikEdEditForm = document.getElementById("editform");}if (wikEdSaveButton == null) {wikEdSaveButton = document.getElementById("wpSave");}if (wikEdTextarea == null) {wikEdEditForm = document.getElementsByName("createbox")[0];wikEdTextarea = document.getElementsByName("free_text")[0];}if (wikEdTextarea == null || wikEdEditForm == null || (wikEdSaveButton == null)) {wikEdTextarea = document.getElementsByName("wpUploadDescription")[0];wikEdEditForm = document.getElementById("upload");wikEdSaveButton = document.getElementsByName("wpUpload")[0];if (wikEdTextarea == null || wikEdEditForm == null || (wikEdSaveButton == null)) {WikEdSetLogo();return;}wikEdUpload = true;wikEdRearrange = false;}WikedInitFrameCSS();WikedInitMainCSS();WikedInitButton();WikedInitButtonKey();WikedInitButtonBar();WikEdInitUnicode();if (/(\?|&amp;)section=new\b/.test(window.location.search) == true) {wikEdAddNewSection = true;}var head = document.getElementsByTagName("head")[0];if (wikEdGreasemonkey == false &amp;&amp; wikEdLoadInstaView == true &amp;&amp; (wikEdExternalScripts['instaview.js'] == null)) {if (typeof InstaView == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdInstaViewSrc;head.appendChild(script);}wikEdExternalScripts['instaview.js'] = true;} else if (wikEdGreasemonkey == false || (wikEdLoadInstaView != true)) {wikEdUseLocalPreview = false;}wikEdTextareaHeight = wikEdTextarea.offsetHeight;wikEdOrigVersion = wikEdTextarea.value;var mainStyle = new WikEdStyleSheet;var rules = "";for (var ruleName in wikEdMainCSS) {var ruleStyle = wikEdMainCSS[ruleName];if (typeof ruleStyle != "string") {continue;}ruleStyle = ruleStyle.replace(/\{wikEdGrip\}/g, wikEdImage.grip);rules += ruleName + " {" + ruleStyle + "}\n";}mainStyle.addRules(rules);wikEdUsing = WikEdGetSavedSetting("wikEdSummaryUsing", wikEdUsingPreset);wikEdUseWikEd = !WikEdGetSavedSetting("wikEdUseClassic", !wikEdUseWikEdPreset);wikEdHighlightSyntax = !WikEdGetSavedSetting("wikEdSyntaxOff", !wikEdHighlightSyntaxPreset);wikEdFullScreenMode = WikEdGetSavedSetting("wikEdFullscreen", wikEdFullScreenModePreset);wikEdCloseToolbar = WikEdGetSavedSetting("wikEdCloseToolbar", wikEdCloseToolbarPreset);wikEdRefHide = WikEdGetSavedSetting("wikEdRefHide", wikEdRefHidePreset);wikEdDiff = WikEdGetSavedSetting("wikEdDiff", wikEdDiffPreset);wikEdTableMode = false;if (wikEdUpload == true || (window.location.search.match(/(\?|&amp;)action=submit\b/) != null)) {wikEdFullScreenMode = false;}if (/\.js$/.test(wikEdWikiGlobals.wgTitle) == true) {if (wikEdWikiGlobals.wgCanonicalNamespace != "User_talk" &amp;&amp; (wikEdWikiGlobals.wgCanonicalNamespace != "Talk")) {if (wikEdOrigVersion.length &gt; 20000) {wikEdUseWikEd = false;} else {wikEdHighlightSyntax = false;}}}var styleFrameBody;var styleFrameWrapperPosition;var styleFrameWrapperVisibility;var styleDebugWrapperPosition;var styleDebugWrapperVisibility;var styleTextareaWrapperPosition;var styleTextareaWrapperVisibility;if (wikEdUseWikEd == true) {styleFrameBody = "style=\"display: block;\" ";styleFrameWrapperPosition = "static";styleFrameWrapperVisibility = "visible";styleTextareaWrapperPosition = "absolute";styleTextareaWrapperVisibility = "hidden";} else {styleFrameBody = "style=\"display: none;\" ";styleFrameWrapperPosition = "absolute";styleFrameWrapperVisibility = "hidden";styleTextareaWrapperPosition = "static";styleTextareaWrapperVisibility = "visible";}var inputWrapperClass;if (wikEdFullScreenMode == true) {inputWrapperClass = "wikEdInputWrapperFull";} else {inputWrapperClass = "wikEdInputWrapper";}wikEdInputWrapper = document.createElement("div");wikEdInputWrapper.id = "wikEdInputWrapper";wikEdInputWrapper.className = inputWrapperClass;wikEdTextarea.parentNode.insertBefore(wikEdInputWrapper, wikEdTextarea);wikEdToolbarWrapper = document.createElement("div");wikEdToolbarWrapper.id = "wikEdToolbarWrapper";wikEdToolbarWrapper.className = "wikEdToolbarWrapper";wikEdInputWrapper.appendChild(wikEdToolbarWrapper);if (wikEdRearrange == true) {wikEdCaptchaWrapper = document.createElement("div");wikEdCaptchaWrapper.id = "wikEdCaptchaWrapper";wikEdCaptchaWrapper.className = "wikEdCaptchaWrapper";wikEdInputWrapper.appendChild(wikEdCaptchaWrapper);}wikEdDebugWrapper = document.createElement("div");wikEdDebugWrapper.id = "wikEdDebugWrapper";wikEdDebugWrapper.className = "wikEdDebugWrapper";wikEdDebugWrapper.style.position = "static";wikEdDebugWrapper.style.visibility = "hidden";wikEdInputWrapper.appendChild(wikEdDebugWrapper);wikEdTextareaWrapper = document.createElement("div");wikEdTextareaWrapper.id = "wikEdTextareaWrapper";wikEdTextareaWrapper.className = "wikEdTextareaWrapper";wikEdTextareaWrapper.style.position = styleTextareaWrapperPosition;wikEdTextareaWrapper.style.visibility = styleTextareaWrapperVisibility;wikEdInputWrapper.appendChild(wikEdTextareaWrapper);wikEdFrameWrapper = document.createElement("div");wikEdFrameWrapper.id = "wikEdFrameWrapper";wikEdFrameWrapper.className = "wikEdFrameWrapper";wikEdFrameWrapper.style.position = styleFrameWrapperPosition;wikEdFrameWrapper.style.visibility = styleFrameWrapperVisibility;wikEdInputWrapper.appendChild(wikEdFrameWrapper);if (wikEdRearrange == true) {wikEdConsoleWrapper = document.createElement("div");wikEdConsoleWrapper.id = "wikEdConsoleWrapper";wikEdConsoleWrapper.className = "wikEdConsoleWrapper";wikEdInputWrapper.appendChild(wikEdConsoleWrapper);}wikEdButtonsWrapper = document.createElement("div");wikEdButtonsWrapper.id = "wikEdButtonsWrapper";wikEdButtonsWrapper.className = "wikEdButtonsWrapper";wikEdInputWrapper.insertBefore(wikEdButtonsWrapper, wikEdTextareaWrapper);if (wikEdRearrange == true) {wikEdSummaryWrapper = document.createElement("div");wikEdSummaryWrapper.id = "wikEdSummaryWrapper";if (wikEdAddNewSection == true) {wikEdSummaryWrapper.className = "wikEdSummaryWrapperTop";wikEdInputWrapper.insertBefore(wikEdSummaryWrapper, wikEdFrameWrapper);} else {wikEdSummaryWrapper.className = "wikEdSummaryWrapper";wikEdConsoleWrapper.appendChild(wikEdSummaryWrapper);}wikEdSummaryInputWrapper = document.createElement("div");wikEdSummaryInputWrapper.id = "wikEdSummaryInputWrapper";wikEdSummaryInputWrapper.className = "wikEdSummaryInputWrapper";wikEdSummaryWrapper.appendChild(wikEdSummaryInputWrapper);wikEdSummaryOptions = document.createElement("div");wikEdSummaryOptions.id = "wikEdSummaryOptions";wikEdSummaryOptions.className = "wikEdSummaryOptions";wikEdSummaryWrapper.appendChild(wikEdSummaryOptions);wikEdSubmitWrapper = document.createElement("div");wikEdSubmitWrapper.id = "wikEdSubmitWrapper";wikEdSubmitWrapper.className = "wikEdSubmitWrapper";wikEdConsoleWrapper.appendChild(wikEdSubmitWrapper);wikEdSubmitButtonsWrapper = document.createElement("div");wikEdSubmitButtonsWrapper.id = "wikEdSubmitButtonsWrapper";wikEdSubmitButtonsWrapper.className = "wikEdSubmitButtonsWrapper";wikEdSubmitWrapper.appendChild(wikEdSubmitButtonsWrapper);}wikEdLocalPrevWrapper = document.createElement("div");wikEdLocalPrevWrapper.id = "wikEdLocalPrevWrapper";wikEdLocalPrevWrapper.className = "wikEdLocalPrevWrapper";wikEdLocalPrevWrapper.style.display = "none";if (wikEdRearrange == true) {wikEdInputWrapper.appendChild(wikEdLocalPrevWrapper);} else {wikEdSaveButton.parentNode.appendChild(wikEdLocalPrevWrapper);}if (wikEdRearrange == true) {wikEdInsertWrapper = document.createElement("div");wikEdInsertWrapper.id = "wikEdInsertWrapper";wikEdInsertWrapper.className = "wikEdInsertWrapper";wikEdInputWrapper.appendChild(wikEdInsertWrapper);}if (wikEdRearrange == true) {wikEdEditForm.insertBefore(wikEdInputWrapper, wikEdEditForm.firstChild);}if (typeof wikEdDiffTable == "object") {if (wikEdDiffTable != null &amp;&amp; (wikEdDiff == true)) {if (typeof WikEdDiff == "function") {WikEdDiff();}}}var wpToolbar = document.getElementById("toolbar");if (wikEdCloseToolbar == true) {wikEdToolbarWrapper.style.display = "none";} else {wikEdToolbarWrapper.style.display = "block";}if (wpToolbar != null) {wikEdToolbarWrapper.appendChild(wpToolbar);}if (wikEdUpload != true) {var node = wikEdInputWrapper.nextSibling;while (node != null) {if (node == wikEdTextarea) {break;}var nextNode = node.nextSibling;wikEdCaptchaWrapper.appendChild(node);node = nextNode;}}if (wpToolbar != null) {if (wpToolbar.getElementsByTagName("IMG").length == 0) {if (typeof mwSetupToolbar == "function") {mwSetupToolbar();WikEdRemoveEventListener(window, "load", mwSetupToolbar, false);}}}var wpSummary = document.getElementsByName("wpSummary");if (wpSummary.length &gt; 0) {wikEdEditOptions = wpSummary[0].parentNode;wikEdEditOptions.className = "wikEdEditOptions";}if (wikEdRearrange == true) {wikEdSummaryLabel = document.getElementById("wpSummaryLabel");if (wikEdSummaryLabel != null) {wikEdSummaryInputWrapper.appendChild(wikEdSummaryLabel);}wikEdSummaryText = document.getElementsByName("wpSummary")[0];wikEdSummaryInputWrapper.appendChild(wikEdSummaryText);}if (wikEdRearrange == true) {var copywarn = document.getElementById("editpage-copywarn");if (copywarn != null) {wikEdInputWrapper.parentNode.insertBefore(copywarn, wikEdInputWrapper.nextSibling);}}if (wikEdRearrange == true) {var wpEditButtons = wikEdSaveButton.parentNode;wikEdSubmitWrapper.insertBefore(wpEditButtons, wikEdSubmitButtonsWrapper);}wikEdDiffPreviewButton = document.getElementById("wpDiff");wikEdPreviewButton = document.getElementById("wpPreview");if (wikEdRearrange == true) {if (wikEdDiffPreviewButton != null) {wikEdDiffPreviewButton.parentNode.insertBefore(wikEdEditOptions, wikEdDiffPreviewButton.nextSibling);var node = wikEdEditOptions.firstChild;while (node != null) {if (node.tagName != null) {if (node.tagName == "BR") {node.parentNode.removeChild(node);break;}}node = node.nextSibling;}if (wikEdSubmitTabOrder == true) {var wpMinoredit = document.getElementById("wpMinoredit");var wpWatchthis = document.getElementById("wpWatchthis");if (wpMinoredit != null &amp;&amp; (wpWatchthis != null)) {var tabIndex = [];tabIndex.push(wpMinoredit.tabIndex, wpWatchthis.tabIndex, wikEdSaveButton.tabIndex, wikEdPreviewButton.tabIndex, wikEdDiffPreviewButton.tabIndex);wikEdSaveButton.tabIndex = tabIndex.shift();wikEdPreviewButton.tabIndex = tabIndex.shift();wikEdDiffPreviewButton.tabIndex = tabIndex.shift();wpMinoredit.tabIndex = tabIndex.shift();wpWatchthis.tabIndex = tabIndex.shift();}}}}wikEdDebug = document.createElement("textarea");wikEdDebug.rows = 20;wikEdDebug.style.display = "none";wikEdDebugWrapper.appendChild(wikEdDebug);wikEdTextareaWrapper.appendChild(wikEdTextarea);var html = "";html += "&lt;div id=\"wikEdFrameOuter\" class=\"wikEdFrameOuter\"&gt;";html += "&lt;div id=\"wikEdFrameInner\" class=\"wikEdFrameInner\"&gt;";html += "&lt;iframe id=\"wikEdFrame\" class=\"wikEdFrame\" name=\"wikEdFrame\" style=\"height: " + wikEdTextareaHeight + "px;\"&gt;&lt;/iframe&gt;";html += "&lt;/div&gt;";html += "&lt;/div&gt;";wikEdFrameWrapper.innerHTML = html;wikEdInputWrapper.insertBefore(wikEdTextareaWrapper, wikEdFrameWrapper);html = "";html += "&lt;html id=\"wikEdFrameHtml\"&gt;&lt;head&gt;&lt;/head&gt;";if (wikEdMozilla == true) {html += "&lt;body id=\"wikEdFrameBody\" class=\"wikedFrameBody\"" + styleFrameBody + "onload=\"window.document.designMode = 'on'; window.document.execCommand('styleWithCSS', false, false);\"&gt;";} else {html += "&lt;body id=\"wikEdFrameBody\" class=\"wikedFrameBody\"" + styleFrameBody + "&gt;";}html += "&lt;/body&gt;&lt;/html&gt;";wikEdFrame = document.getElementById("wikEdFrame");wikEdFrameWindow = wikEdFrame.contentWindow;wikEdFrameDocument = wikEdFrameWindow.document;if (wikEdMozilla == false) {wikEdFrameDocument.designMode = "on";}wikEdFrameDocument.open();wikEdFrameDocument.write(html);wikEdFrameDocument.close();wikEdFrameBody = wikEdFrameDocument.body;wikEdButtonBarFormat = MakeButtonBar(wikEdButtonBar.format);wikEdButtonsWrapper.appendChild(wikEdButtonBarFormat);wikEdButtonBarControl = MakeButtonBar(wikEdButtonBar.control);wikEdButtonsWrapper.appendChild(wikEdButtonBarControl);if (wikEdButtonBar.custom1[6].length &gt; 0) {wikEdButtonBarCustom1 = MakeButtonBar(wikEdButtonBar.custom1);wikEdButtonsWrapper.appendChild(wikEdButtonBarCustom1);}wikEdButtonBarFind = MakeButtonBar(wikEdButtonBar.find);wikEdButtonsWrapper.appendChild(wikEdButtonBarFind);wikEdButtonBarFix = MakeButtonBar(wikEdButtonBar.fix);wikEdButtonsWrapper.appendChild(wikEdButtonBarFix);if (wikEdButtonBar.custom2[6].length &gt; 0) {wikEdButtonBarCustom2 = MakeButtonBar(wikEdButtonBar.custom2);wikEdButtonsWrapper.appendChild(wikEdButtonBarCustom2);}var br = document.createElement("br");br.style.clear = "both";wikEdButtonsWrapper.appendChild(br);wikEdCaseSensitive = document.getElementById("wikEdCaseSensitive");wikEdRegExp = document.getElementById("wikEdRegExp");wikEdFindAhead = document.getElementById("wikEdFindAhead");wikEdFindText = document.getElementById("wikEdFindText");wikEdReplaceText = document.getElementById("wikEdReplaceText");wikEdButtonBarPreview = MakeButtonBar(wikEdButtonBar.preview);if (wikEdRearrange == true) {wikEdSubmitWrapper.insertBefore(wikEdButtonBarPreview, wikEdSubmitWrapper.firstChild);}if (wikEdLocalPrevWrapper != null) {var div = document.createElement("div");div.id = "wikEdPreviewBoxOuter";div.className = "wikEdPreviewBoxOuter";wikEdLocalPrevWrapper.appendChild(div);wikEdPreviewBox = document.createElement("div");wikEdPreviewBox.id = "wikEdPreviewBox";wikEdPreviewBox.className = "wikEdPreviewBox";div.appendChild(wikEdPreviewBox);wikEdButtonBarPreview2 = MakeButtonBar(wikEdButtonBar.preview2);wikEdLocalPrevWrapper.appendChild(wikEdButtonBarPreview2);}var wikiPreview = document.getElementById("wikiPreview");if (wikiPreview != null) {if (wikiPreview.firstChild != null) {wikEdButtonBarJump = MakeButtonBar(wikEdButtonBar.jump);wikiPreview.insertBefore(wikEdButtonBarJump, wikiPreview.firstChild);}}if (wikEdInsertWrapper != null) {var wpSpecialchars = document.getElementById("editpage-specialchars");if (wpSpecialchars != null) {wikEdInsertWrapper.appendChild(wpSpecialchars);}}wikEdLocalPreview = document.createElement("button");wikEdLocalPreview.id = "wikEdLocalPreview";wikEdLocalPreview.title = wikEdText['wikEdLocalPreview title'];wikEdLocalPreview.className = "wikEdLocalPreview";var localPreviewImg = document.createElement("img");localPreviewImg.id = "wikEdLocalPreviewImg";localPreviewImg.src = wikEdImage.preview;localPreviewImg.alt = wikEdText['wikEdLocalPreviewImg alt'];localPreviewImg.title = wikEdText['wikEdLocalPreviewImg title'];wikEdLocalPreview.appendChild(localPreviewImg);if (wikEdPreviewButton != null) {wikEdPreviewButton.parentNode.insertBefore(wikEdLocalPreview, wikEdPreviewButton.nextSibling);} else {wikEdSaveButton.parentNode.insertBefore(wikEdLocalPreview, wikEdSaveButton.nextSibling);}if (wikEdDiffPreviewButton != null) {wikEdLocalDiff = document.createElement("button");wikEdLocalDiff.id = "wikEdLocalDiff";wikEdLocalDiff.title = wikEdText['wikEdLocalDiff title'];wikEdLocalDiff.className = "wikEdLocalDiff";var localDiffImg = document.createElement("img");localDiffImg.id = "wikEdLocalDiffImg";localDiffImg.src = wikEdImage.diff;localDiffImg.alt = wikEdText['wikEdLocalDiffImg alt'];localDiffImg.title = wikEdText['wikEdLocalDiffImg title'];wikEdLocalDiff.appendChild(localDiffImg);wikEdDiffPreviewButton.parentNode.insertBefore(wikEdLocalDiff, wikEdDiffPreviewButton.nextSibling);}WikEdButton(document.getElementById("wikEdDiff"), "wikEdDiff", null, wikEdDiff);WikEdButton(document.getElementById("wikEdRefHide"), "wikEdRefHide", null, wikEdRefHide);WikEdButton(document.getElementById("wikEdHighlightSyntax"), "wikEdHighlightSyntax", null, wikEdHighlightSyntax);WikEdButton(document.getElementById("wikEdUseWikEd"), "wikEdUseWikEd", null, wikEdUseWikEd);WikEdButton(document.getElementById("wikEdCloseToolbar"), "wikEdCloseToolbar", null, wikEdCloseToolbar);WikEdButton(document.getElementById("wikEdFullScreen"), "wikEdFullScreen", null, wikEdFullScreenMode);WikEdButton(document.getElementById("wikEdUsing"), "wikEdUsing", null, wikEdUsing);WikEdButton(document.getElementById("wikEdCaseSensitive"), "wikEdCaseSensitive", null, false);WikEdButton(document.getElementById("wikEdRegExp"), "wikEdRegExp", null, false);WikEdButton(document.getElementById("wikEdFindAhead"), "wikEdFindAhead", null, wikEdFindAheadSelected);WikEdButton(document.getElementById("wikEdClose"), "wikEdClose", null, false, "wikEdButton");WikEdButton(document.getElementById("wikEdClose2"), "wikEdClose2", null, false, "wikEdButton");WikEdButton(document.getElementById("wikEdTableMode"), "wikEdTableMode", null, wikEdTableMode);document.getElementById("wikEdFixRegExTypo").style.display = "none";if (wikEdSummaryText != null) {var clearSummaryForm = document.createElement("form");clearSummaryForm.id = "wikEdClearSummaryForm";clearSummaryForm.className = "wikEdClearSummaryForm";wikEdSummaryText.parentNode.insertBefore(clearSummaryForm, wikEdSummaryText);wikEdClearSummary = document.createElement("button");wikEdClearSummary.id = "wikEdClearSummary";wikEdClearSummary.className = "wikEdClearSummary";wikEdClearSummary.alt = wikEdText['wikEdClearSummary alt'];wikEdClearSummary.title = wikEdText['wikEdClearSummary title'];wikEdClearSummary.style.height = (wikEdSummaryText.clientHeight + 1) + "px";clearSummaryForm.appendChild(wikEdClearSummary);wikEdClearSummaryImg = document.createElement("img");wikEdClearSummaryImg.id = "wikEdClearSummaryImg";wikEdClearSummaryImg.src = wikEdImage.clearSummary;wikEdClearSummaryImg.alt = "Clear summary";wikEdClearSummary.appendChild(wikEdClearSummaryImg);wikEdClearSummaryWidth = wikEdClearSummary.offsetWidth;var summaryComboInput = document.createElement("span");summaryComboInput.id = "wikEdSummaryComboInput";summaryComboInput.className = "wikEdSummaryComboInput";summaryComboInput = wikEdSummaryText.parentNode.insertBefore(summaryComboInput, wikEdSummaryText);wikEdSummaryText = wikEdSummaryText.parentNode.removeChild(wikEdSummaryText);wikEdSummaryText.className = "wikEdSummaryText";wikEdSummaryTextWidth = wikEdSummaryWrapper.offsetWidth - wikEdSummaryInputWrapper.offsetWidth;if (wikEdSummaryTextWidth &lt; 150) {wikEdSummaryTextWidth = 150;}wikEdSummaryText.style.width = wikEdSummaryTextWidth + "px";wikEdSummarySelect = document.createElement("select");wikEdSummarySelect.id = "wikEdSummarySelect";wikEdSummarySelect.className = "wikEdSummarySelect";summaryComboInput.appendChild(wikEdSummaryText);summaryComboInput.appendChild(wikEdSummarySelect);}if (wikEdPreviewButton != null) {wikEdPreviewButton.value = wikEdText.shortenedPreview;}if (wikEdDiffPreviewButton != null) {wikEdDiffPreviewButton.value = wikEdText.shortenedChanges;}wikEdFieldHist.find = [];wikEdSavedName.find = "wikEdFindHistory";wikEdInputElement.find = new Object(wikEdFindText);wikEdSelectElement.find = new Object(document.getElementById("wikEdFindSelect"));wikEdSelectElement.find.title = wikEdText['wikEdFindSelect title'];wikEdFieldHist.replace = [];wikEdSavedName.replace = "wikEdReplaceHistory";wikEdInputElement.replace = new Object(wikEdReplaceText);wikEdSelectElement.replace = new Object(document.getElementById("wikEdReplaceSelect"));wikEdSelectElement.replace.title = wikEdText['wikEdReplaceSelect title'];if (wikEdSummaryInputWrapper != null) {wikEdFieldHist.summary = [];wikEdSavedName.summary = "wikEdSummaryHistory";wikEdInputElement.summary = new Object(wikEdSummaryText);wikEdSelectElement.summary = new Object(document.getElementById("wikEdSummarySelect"));wikEdSelectElement.summary.title = wikEdText['wikEdSummarySelect title'];}WikEdResizeComboInput("find");WikEdResizeComboInput("replace");WikEdResizeComboInput("summary");WikEdButtonBarInit(wikEdButtonBarFormat);WikEdButtonBarInit(wikEdButtonBarControl);if (wikEdButtonBarCustom1 != null) {WikEdButtonBarInit(wikEdButtonBarCustom1);}WikEdButtonBarInit(wikEdButtonBarFind);WikEdButtonBarInit(wikEdButtonBarFix);if (wikEdButtonBarCustom2 != null) {WikEdButtonBarInit(wikEdButtonBarCustom2);}if (wikEdUseWikEd == true) {WikEdSetEditArea(true, true);} else {WikEdSetEditArea(false, true);}if (wikEdRearrange == true) {if (wikEdHelpPageLink != "" &amp;&amp; (wikEdHelpPageLink != null)) {var editHelpParent = wikEdDiffPreviewButton;while (editHelpParent != null) {if (editHelpParent.tagName == "SPAN") {break;}editHelpParent = editHelpParent.nextSibling;}if (editHelpParent != null) {var editHelp = editHelpParent.lastChild;while (editHelp != null) {if (editHelp.tagName == "A") {break;}editHelp = editHelp.previousSibling;}if (editHelp != null) {wikEdHelpSpan = document.createElement("span");wikEdHelpSpan.id = "wikEdHelpSpan";wikEdHelpSpan.className = "wikEdHelpSpan";wikEdHelpSpan.innerHTML = wikEdHelpPageLink;editHelpParent.insertBefore(wikEdHelpSpan, editHelp.nextSibling);wikEdEditHelp = wikEdHelpSpan.parentNode;wikEdEditHelp.id = "wikEdEditHelp";wikEdEditHelp.className = "wikEdEditHelp";}}}}wikEdFrameBody.style.fontSize = parseInt(wikEdTextZoom) + "%";wikEdDirection = WikEdGetStyle(document.body, "direction");wikEdFrameBody.style.direction = wikEdDirection;var frameStyle = new WikEdStyleSheet(wikEdFrameDocument);var rules = "";for (var ruleName in wikEdFrameCSS) {var ruleStyle = wikEdFrameCSS[ruleName];if (typeof ruleStyle != "string") {continue;}ruleStyle = ruleStyle.replace(/\{wikEdUnknown\}/g, wikEdImage.unknown);ruleStyle = ruleStyle.replace(/\{wikEdTab\}/g, wikEdImage.tab);ruleStyle = ruleStyle.replace(/\{wikEdCtrl\}/g, wikEdImage.ctrl);ruleStyle = ruleStyle.replace(/\{wikEdBlank\}/g, wikEdImage.blank);ruleStyle = ruleStyle.replace(/\{wikEdGrip\}/g, wikEdImage.grip);rules += ruleName + " {" + ruleStyle + "}\n";}frameStyle.addRules(rules);if (wikEdUseWikEd == true) {window.WikEdUpdateFrame();}for (var buttonId in wikEdEditButtonHandler) {if (typeof wikEdEditButtonHandler[buttonId] != "string") {continue;}var buttonObj = document.getElementById(buttonId);if (buttonObj != null) {WikEdAddEventListener(buttonObj, "click", WikEdEditButtonHandler, true);}}WikEdAddEventListener(wikEdClearSummaryImg, "load", WikEdShrinkSummaryHandler, true);WikEdAddEventListener(window, "resize", WikEdResizeSummaryHandler, true);WikEdAddEventListener(wikEdFrameDocument, "keydown", WikEdKeyFrameHandler, true);WikEdAddEventListener(wikEdFrameDocument, "keyup", WikEdKeyFrameHandler, true);WikEdAddEventListener(wikEdFrameDocument, "keypress", WikEdKeyFrameHandler, true);WikEdAddEventListener(wikEdFrameDocument, "mouseup", WikEdKeyFrameHandler, true);WikEdAddEventListener(wikEdFrameDocument, "keydown", WikEdShiftAltHandler, true);WikEdAddEventListener(document, "keydown", WikEdShiftAltHandler, true);WikEdAddEventListener(wikEdFindText, "keyup", WikEdFindAhead, true);WikEdAddEventListener(wikEdSaveButton, "click", WikEdSaveButtonHandler, true);WikEdAddEventListener(wikEdPreviewButton, "click", WikEdPreviewButtonHandler, true);WikEdAddEventListener(wikEdDiffPreviewButton, "click", wikEdDiffPreviewButtonHandler, true);WikEdAddEventListener(wikEdLocalPreview, "click", WikEdLocalPreviewHandler, true);WikEdAddEventListener(wikEdLocalDiff, "click", WikEdLocalDiffHandler, true);WikEdAddEventListener(window, "pagehide", WikEdUnloadHandler, false);WikEdAddEventListener(wikEdButtonBarFormat.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);WikEdAddEventListener(wikEdButtonBarControl.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);if (wikEdButtonBarCustom1 != null) {if (wikEdButtonBarCustom1.firstChild.firstChild != null) {WikEdAddEventListener(wikEdButtonBarCustom1.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);}}WikEdAddEventListener(wikEdButtonBarFind.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);WikEdAddEventListener(wikEdButtonBarFix.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);if (wikEdButtonBarCustom2 != null) {if (wikEdButtonBarCustom2.firstChild.firstChild != null) {WikEdAddEventListener(wikEdButtonBarCustom2.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);}}WikEdAddEventListener(wikEdSummarySelect, "change", function () {WikEdChangeComboInput("summary");}, false);WikEdAddEventListener(wikEdSummarySelect, "focus", function () {WikEdSetComboOptions("summary");}, false);WikEdAddEventListener(wikEdSelectElement.find, "change", function () {WikEdChangeComboInput("find");}, false);WikEdAddEventListener(wikEdSelectElement.find, "focus", function () {WikEdSetComboOptions("find");}, false);WikEdAddEventListener(wikEdSelectElement.replace, "change", function () {WikEdChangeComboInput("replace");}, false);WikEdAddEventListener(wikEdSelectElement.replace, "focus", function () {WikEdSetComboOptions("replace");}, false);WikEdAddEventListener(wikEdClearSummary, "click", WikEdClearSummaryHandler, true);WikEdAddEventListener(wikEdFindText, "focus", WikEdFindReplaceHandler, true);WikEdAddEventListener(wikEdReplaceText, "focus", WikEdFindReplaceHandler, true);WikEdAddEventListener(wikEdFindText, "keydown", WikEdFindReplaceHandler, true);WikEdAddEventListener(wikEdReplaceText, "keydown", WikEdFindReplaceHandler, true);if (scrollToEdit != false) {if (window.location.search.match(/(\?|&amp;)action=submit\b/) == null) {window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper) - 2);}if (wikEdUseWikEd == true) {wikEdFrameWindow.focus();} else {if (wikEdMSIE == true) {} else {wikEdTextarea.setSelectionRange(0, 0);}wikEdTextarea.focus();}}if (wikEdWikiGlobals.wgServer != null) {wikEdServer = wikEdWikiGlobals.wgServer;}if (wikEdWikiGlobals.wgArticlePath != null) {wikEdArticlePath = wikEdWikiGlobals.wgArticlePath;}if (wikEdWikiGlobals.wgScriptPath != null) {wikEdScriptPath = wikEdWikiGlobals.wgScriptPath;}if (wikEdWikiGlobals.wgScript != null) {wikEdScript = wikEdWikiGlobals.wgScript;}wikEdArticlePath = wikEdArticlePath.replace(wikEdServer, "");wikEdScriptPath = wikEdScriptPath.replace(wikEdServer, "");wikEdArticlePath = wikEdArticlePath.replace(/\$1$/, "");wikEdScriptPath = wikEdScriptPath.replace(/\/?$/, "/");wikEdScriptName = wikEdScript.replace(wikEdScriptPath, "");wikEdServer = wikEdServer.replace(/(\W)/g, "\\$1");wikEdArticlePath = wikEdArticlePath.replace(/(\W)/g, "\\$1");wikEdScript = wikEdScript.replace(/(\W)/g, "\\$1");wikEdScriptPath = wikEdScriptPath.replace(/(\W)/g, "\\$1");wikEdScriptName = wikEdScriptName.replace(/(\W)/g, "\\$1");if (wikEdFullScreenMode == true) {WikEdFullScreen(wikEdFullScreenMode, true);}if (typeof insertTags == "function") {if (WikEdInsertTagsOriginal == null) {WikEdInsertTagsOriginal = insertTags;}insertTags = window.WikEdInsertTags;}if (typeof insertAtCursor == "function") {if (WikEdInsertAtCursorOriginal == null) {WikEdInsertAtCursorOriginal = insertAtCursor;}insertAtCursor = window.WikEdInsertAtCursor;}WikEdSetLogo();wikEdTurnedOn = true;WikEdLoadTypoFixRules();WikEdExecuteHook(wikEdSetupHook);return;}; window.WikEdAutoUpdate = function () {if (/(\?|&amp;)action=/.test(window.location.search) == true) {return;}if (wikEdAutoUpdate != true) {return;}var lastCheckStr = WikEdGetPersistent("wikEdAutoUpdate");var lastCheckDate = new Date(lastCheckStr);if (isNaN(lastCheckDate.valueOf()) == true) {WikEdSetPersistent("wikEdAutoUpdate", "January 1, 1970", 0, "/");return;}var currentDate = new Date;var diffHours = (currentDate - lastCheckDate) / 1000 / 60 / 60;if (wikEdGreasemonkey == true) {if (diffHours &lt; wikEdAutoUpdateHoursGM) {return;}} else if (diffHours &lt; wikEdAutoUpdateHours) {return;}WikEdSetPersistent("wikEdAutoUpdate", currentDate.toUTCString(), 0, "/");WikEdAjaxRequest("GET", wikEdAutoUpdateUrl, null, null, null, null, function (ajax) {var html = ajax.responseText;var ver = wikEdProgramVersion.match(/(\d+)\.(\d+)\.(\d+)(\w?)/);if (ver == null) {return;}var currentVersion = ((Number(ver[1]) * 1000 + Number(ver[2])) * 1000 + Number(ver[3])) * 100 + (ver[4] + "0").charCodeAt(0);var ver = html.match(/(\d+)\.(\d+)\.(\d+)(\w?)/);if (ver == null) {return;}var newVersion = ((Number(ver[1]) * 1000 + Number(ver[2])) * 1000 + Number(ver[3])) * 100 + (ver[4] + "0").charCodeAt(0);if (currentVersion &gt;= newVersion) {return;}if (wikEdGreasemonkey == true) {var updatePopup = wikEdText.wikEdGreasemonkeyAutoUpdate;updatePopup = updatePopup.replace(/\{updateURL\}/g, wikEdAutoUpdateUrl);alert(updatePopup);window.location.href = wikEdAutoUpdateScriptUrl;} else {window.location.reload(true);}});return;}; window.WikEdLoadTypoFixRules = function () {if (wikEdRegExTypoFix == true &amp;&amp; (wikEdTypoRulesFind.length == 0)) {WikEdAjaxRequest("GET", wikEdRegExTypoFixURL, null, null, null, null, function (ajax) {var rulesTxt = ajax.responseText;var regExp = new RegExp("^&lt;Typo +word=\"(.+?)\" +find=\"(.+?)\" +replace=\"(.+?)\" +/&gt;", "gim");while ((regExpMatch = regExp.exec(rulesTxt)) != null) {var regExpFind;try {regExpFind = new RegExp(regExpMatch[2], "gim");} catch (err) {continue;}wikEdTypoRulesFind.push(regExpFind);wikEdTypoRulesReplace.push(regExpMatch[3]);}if (wikEdTypoRulesFind.length &gt; 0) {document.getElementById("wikEdFixRegExTypo").style.display = "inline";}return;});}return;}; window.WikEdEditButtonHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}var obj;if (event.currentTarget != null) {obj = event.currentTarget;} else {obj = event.srcElement;}objId = obj.id;eventShiftKey = event.shiftKey;eval(wikEdEditButtonHandler[objId]);return;}; window.WikEdShrinkSummaryHandler = function (event) {var diffWidth = wikEdClearSummary.offsetWidth - wikEdClearSummaryWidth;if (typeof wikEdInputElement.summary.clientLeft == "undefined") {wikEdInputElement.summary.style.width = (wikEdInputElement.summary.clientWidth - diffWidth) + "px";wikEdSelectElement.summary.style.width = (wikEdSelectElement.summary.clientWidth - diffWidth) + "px";} else {wikEdInputElement.summary.style.width = (wikEdInputElement.summary.clientWidth - diffWidth) + "px";wikEdSelectElement.summary.style.width = (wikEdSelectElement.summary.clientWidth - diffWidth + 3) + "px";}wikEdClearSummaryWidth = wikEdClearSummary.offsetWidth;return;}; window.WikEdResizeSummaryHandler = function (event) {WikEdResizeSummary();return;}; window.WikEdUnloadHandler = function (event) {if (wikEdUseWikEd == true) {if (wikEdTextareaUpdated != true) {WikEdUpdateTextarea();}}return;}; window.WikEdSaveButtonHandler = function (event) {WikEdRemoveEventListener(wikEdSaveButton, "click", WikEdSaveButtonHandler, true);if (wikEdUseWikEd == true) {WikEdUpdateTextarea();wikEdTextareaUpdated = true;}var text = wikEdSummaryText.value;text = text.replace(/^[, ]+/, "");text = text.replace(/[, ]+$/, "");WikEdAddToHistory("summary");if (wikEdUsing == true &amp;&amp; (text != "")) {if (text.lastIndexOf(wikEdSummaryUsing) &lt; 0) {if (wikEdAddNewSection != true) {text += " " + wikEdSummaryUsing;}}}wikEdSummaryText.value = text;wikEdSaveButton.click();WikEdAddEventListener(wikEdSaveButton, "click", WikEdSaveButtonHandler, true);return;}; window.WikEdPreviewButtonHandler = function (event) {if (wikEdUseWikEd == true) {WikEdUpdateTextarea();wikEdTextareaUpdated = true;}return;}; window.wikEdDiffPreviewButtonHandler = function (event) {if (wikEdFullScreenMode == true) {WikEdFullScreen(false);}if (wikEdUseWikEd == true) {WikEdUpdateTextarea();wikEdTextareaUpdated = true;}return;}; window.WikEdFollowLinkHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}if (event.ctrlKey == true) {var linkId = event.currentTarget.id;if (linkId != null) {var linkUrl = wikEdFollowLinkHash[linkId];if (linkUrl != null) {event.stopPropagation();window.open(linkUrl);window.focus();}}}return;}; window.WikEdLocalPreviewHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.preventDefault();WikEdButton(wikEdLocalPreview, "wikEdLocalPreview");return;}; window.WikEdLocalDiffHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.preventDefault();WikEdButton(wikEdLocalDiff, "wikEdLocalDiff");return;}; window.WikEdButtonBarGripHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.stopPropagation();var grip = event.target;var gripWrapper = grip.parentNode;var buttonsWrapper = gripWrapper.nextSibling;var buttons = buttonsWrapper.firstChild;var barInnerWrapper = gripWrapper.parentNode;var bar = barInnerWrapper.parentNode;if (event.type == "click") {buttonsWrapper.style.position = "static";if (buttonsWrapper.minimized != true) {barInnerWrapper.className = "wikedButtonBarInnerWrapperHidden";gripWrapper.className = "wikedButtonBarGripWrapperHidden";buttonsWrapper.className = "wikedButtonBarButtonsWrapperHidden";buttonsWrapper.widthOriginal = buttonsWrapper.offsetWidth;buttonsWrapper.style.display = "none";buttonsWrapper.minimized = true;WikEdAddEventListener(grip, "mouseover", WikEdButtonBarGripHandler, false);WikEdSetPersistent(bar.id + "Hidden", "1", 0, "/");} else {barInnerWrapper.className = "wikedButtonBarInnerWrapperVisible";gripWrapper.className = "wikedButtonBarGripWrapperVisible";buttonsWrapper.className = "wikedButtonBarButtonsWrapperVisible";buttonsWrapper.style.display = "block";buttonsWrapper.minimized = false;WikEdRemoveEventListener(grip, "mouseover", WikEdButtonBarGripHandler, false);WikEdSetPersistent(bar.id + "Hidden", "0", 0, "/");}} else if (event.type == "mouseover") {if (buttonsWrapper.minimized == true) {WikEdAddEventListener(bar, "mouseout", WikEdButtonBarHandler, false);if (bar.offsetParent.clientWidth &gt; grip.offsetLeft + grip.offsetWidth + buttonsWrapper.widthOriginal) {buttonsWrapper.style.left = (grip.offsetLeft + grip.offsetWidth) + "px";} else {buttonsWrapper.style.left = (gripWrapper.offsetLeft - buttonsWrapper.widthOriginal) + "px";}buttonsWrapper.style.top = gripWrapper.offsetTop + "px";buttonsWrapper.style.position = "absolute";buttonsWrapper.style.display = "block";}}return;}; window.WikEdButtonBarHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.stopPropagation();var bar = event.currentTarget;var barInnerWrapper = bar.firstChild;var gripWrapper = barInnerWrapper.firstChild;var grip = gripWrapper.firstChild;var buttonsWrapper = gripWrapper.nextSibling;var buttons = buttonsWrapper.firstChild;if (event.type == "mouseout") {if (buttonsWrapper.minimized == true) {if ((event.target == grip || event.target == gripWrapper) &amp;&amp; event.relatedTarget != gripWrapper &amp;&amp; event.relatedTarget != buttonsWrapper &amp;&amp; event.relatedTarget != buttons &amp;&amp; event.relatedTarget.parentNode != buttons || ((event.target.parentNode.parentNode == buttons || event.target.parentNode == buttons || event.target == buttons || event.target == buttonsWrapper) &amp;&amp; event.relatedTarget.parentNode.parentNode != buttons &amp;&amp; event.relatedTarget.parentNode != buttons &amp;&amp; event.relatedTarget != buttons &amp;&amp; event.relatedTarget != buttonsWrapper &amp;&amp; event.relatedTarget != gripWrapper &amp;&amp; event.relatedTarget != grip)) {WikEdRemoveEventListener(bar, "mouseout", WikEdButtonBarHandler, false);buttonsWrapper.style.display = "none";buttonsWrapper.style.position = "static";}}}return;}; window.WikEdClearSummaryHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.preventDefault();if (/^\/\* .*? \*\/ *$/.test(wikEdSummaryText.value)) {wikEdSummaryText.value = "";} else {wikEdSummaryText.value = wikEdSummaryText.value.replace(/^((\/\* .*? \*\/ *)?).*()/, function (p, p1, p2) {if (p1.length &gt; 0) {p1 = p1 + " ";}return p1;});}wikEdSummaryText.focus();return;}; window.WikEdFindReplaceHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}if (event.type == "keydown") {if (event.keyCode == 9) {if (event.target == wikEdFindText) {event.preventDefault();WikEdRemoveEventListener(wikEdReplaceText, "focus", WikEdFindReplaceHandler, true);wikEdReplaceText.focus();WikEdAddEventListener(wikEdReplaceText, "focus", WikEdFindReplaceHandler, true);} else if (event.target == wikEdReplaceText) {event.preventDefault();WikEdRemoveEventListener(wikEdFindText, "focus", WikEdFindReplaceHandler, true);wikEdFindText.focus();WikEdAddEventListener(wikEdFindText, "focus", WikEdFindReplaceHandler, true);}}} else if (event.type == "focus") {if (wikEdMSIE == true) {} else {event.target.setSelectionRange(0, this.textLength);}}return;}; window.WikEdSetLogo = function (state) {if (state == "error") {wikEdLogo.src = wikEdImage.error;wikEdLogo.alt = wikEdText['wikEdLogo error alt'];wikEdLogo.title = wikEdText['wikEdLogo error title'];} else if (state == "browser") {wikEdLogo.src = wikEdImage.browser;wikEdLogo.alt = wikEdText['wikEdLogo browser alt'];wikEdLogo.title = wikEdText['wikEdLogo browser title'];} else {if (wikEdDisabled == true) {wikEdLogo.src = wikEdImage.disabled;wikEdLogo.alt = wikEdText['wikEdLogo disabled alt'];wikEdLogo.title = wikEdText['wikEdLogo disabled title'];} else {wikEdLogo.src = wikEdImage.logo;wikEdLogo.alt = wikEdText['wikEdLogo alt'];wikEdLogo.title = wikEdText['wikEdLogo title'];}}var version = wikEdProgramVersion;if (wikEdGadget == true) {version += " G";} else if (wikEdGreasemonkey == true) {version += " GM";} else if (wikEdGreasemonkeyToBody == true) {version += " GM";}wikEdLogo.title = wikEdLogo.title.replace(/\{wikEdProgramVersion\}/g, version);wikEdLogo.title = wikEdLogo.title.replace(/\{wikEdProgramDate\}/g, wikEdProgramDate);return;}; window.MakeButtonBar = function (bar) {var barId = bar[0];var barClass = bar[1];var buttonsId = bar[2];var buttonsClass = bar[3];var barHeight = bar[4];var gripTitle = bar[5];var buttonNumbers = bar[6];var buttons = "";for (var property in buttonNumbers) {if (typeof buttonNumbers[property] != "string" &amp;&amp; (typeof buttonNumbers[property] != "number")) {continue;}var buttonNo = buttonNumbers[property];switch (buttonNo) {case "br":buttons += "&lt;br /&gt;";break;case "find":buttons += "&lt;span class=\"wikEdFindComboInput\" id=\"wikEdFindComboInput\"&gt;";buttons += "&lt;input class=\"wikEdCombo\" id=\"wikEdFindText\" type=\"text\" value=\"\"&gt;";buttons += "&lt;select class=\"wikEdCombo\" id=\"wikEdFindSelect\"&gt;";buttons += "&lt;/select&gt;";buttons += "&lt;/span&gt;";break;case "replace":buttons += "&lt;span class=\"wikEdReplaceComboInput\" id=\"wikEdReplaceComboInput\"&gt;";buttons += "&lt;input class=\"wikEdCombo\" id=\"wikEdReplaceText\" type=\"text\" value=\"\"&gt;";buttons += "&lt;select class=\"wikEdCombo\" id=\"wikEdReplaceSelect\"&gt;";buttons += "&lt;/select&gt;";buttons += "&lt;/span&gt;";break;default:var currButton = wikEdButton[buttonNo];if (typeof currButton != "object") {alert("Loading error: The button \"" + buttonNumbers[property] + "\" is not defined.");}if (currButton[0] == "wikEdSource" &amp;&amp; (wikEdShowSourceButton != true)) {break;} else if (currButton[0] == "wikEdUsing" &amp;&amp; (wikEdShowUsingButton != true)) {break;} else if (currButton[0] == "wikEdTableMode" &amp;&amp; (wikEdShowTableModeButton != true)) {break;}var accessKey = "";if (wikEdButtonKey[buttonNo] != null) {accessKey = " [" + wikEdText['alt-shift'] + wikEdButtonKey[buttonNo][0] + "]";wikEdButtonKeyCode[wikEdButtonKey[buttonNo][1]] = currButton[0];}buttons += "&lt;img id=\"" + currButton[0] + "\" class=\"" + currButton[1] + "\" title=\"" + currButton[2] + accessKey + "\" src=\"" + currButton[3] + "\" width=\"" + currButton[4] + "\" height=\"" + currButton[5] + "\" alt=\"" + currButton[6] + "\"&gt;";wikEdEditButtonHandler[currButton[0]] = currButton[7];}}var div = document.createElement("div");div.id = barId;div.className = barClass;var buttonsStyle = "";if (barHeight &gt; 0) {buttonsStyle = " style=\"height: " + barHeight + "px;\"";}var html = "";if (gripTitle != null) {var gripStyle = "width: " + wikEdButtonBarGripWidth + "px; ";if (barHeight &gt; 0) {gripStyle += "height: " + barHeight + "px; ";}if (gripStyle.length &gt; 0) {gripStyle = " style=\"" + gripStyle + "\"";}html += "&lt;div class=\"wikedButtonBarInnerWrapperVisible\" style=\"height: " + barHeight + "px;\"&gt;";html += "&lt;div class=\"wikedButtonBarGripWrapperVisible\"&gt;";html += "&lt;div class=\"wikedButtonBarGrip\"" + gripStyle + " title=\"" + gripTitle + "\"&gt;";html += "&amp;nbsp;";html += "&lt;/div&gt;";html += "&lt;/div&gt;";html += "&lt;div class=\"wikedButtonBarButtonsWrapperVisible\"" + buttonsStyle + "&gt;";html += "&lt;div id=\"" + buttonsId + "\" class=\"" + buttonsClass + "\" style=\"\"&gt;";html += buttons;html += "&lt;/div&gt;";html += "&lt;/div&gt;";html += "&lt;/div&gt;";} else {html += "&lt;div id=\"" + buttonsId + "\" class=\"" + buttonsClass + "\"" + buttonsStyle + "\"&gt;";html += buttons;html += "&lt;/div&gt;";}div.innerHTML = html;return div;}; window.WikEdButtonBarInit = function (bar) {if (WikEdGetPersistent(bar.id + "Hidden") == "1") {var barInnerWrapper = bar.firstChild;var gripWrapper = barInnerWrapper.firstChild;var grip = gripWrapper.firstChild;var buttonsWrapper = gripWrapper.nextSibling;var buttons = buttonsWrapper.firstChild;barInnerWrapper.className = "wikedButtonBarInnerWrapperHidden";gripWrapper.className = "wikedButtonBarGripWrapperHidden";buttonsWrapper.className = "wikedButtonBarButtonsWrapperHidden";buttonsWrapper.widthOriginal = buttonsWrapper.offsetWidth;buttonsWrapper.style.display = "none";buttonsWrapper.minimized = true;WikEdAddEventListener(grip, "mouseover", WikEdButtonBarGripHandler, true);}return;}; window.WikEdSetEditArea = function (useFrame, notFrame) {if (useFrame == true) {wikEdTextareaWrapper.style.position = "absolute";wikEdTextareaWrapper.style.visibility = "hidden";wikEdTextarea.style.display = "none";if (notFrame != true) {wikEdFrameWrapper.style.position = "static";wikEdFrameWrapper.style.visibility = "visible";wikEdFrameBody.style.display = "block";}if (document.getElementById("toolbar") != null) {if (wikEdCloseToolbar == true) {wikEdToolbarWrapper.style.display = "none";} else {wikEdToolbarWrapper.style.display = "block";}}wikEdButtonBarFormat.style.display = "block";if (wikEdButtonBarCustom1 != null) {wikEdButtonBarCustom1.style.display = "block";}wikEdButtonBarFind.style.display = "block";wikEdButtonBarFix.style.display = "block";if (wikEdButtonBarCustom2 != null) {wikEdButtonBarCustom2.style.display = "block";}wikEdButtonBarControl.style.display = "block";} else {if (notFrame != true) {wikEdFrameWrapper.style.position = "absolute";wikEdFrameWrapper.style.visibility = "hidden";}wikEdTextareaWrapper.style.position = "static";wikEdTextareaWrapper.style.visibility = "visible";wikEdTextarea.style.display = "block";if (document.getElementById("toolbar") != null) {wikEdToolbarWrapper.style.display = "block";}wikEdButtonBarFormat.style.display = "none";if (wikEdButtonBarCustom1 != null) {wikEdButtonBarCustom1.style.display = "none";}wikEdButtonBarFind.style.display = "none";wikEdButtonBarFix.style.display = "none";if (wikEdButtonBarCustom2 != null) {wikEdButtonBarCustom2.style.display = "none";}wikEdButtonBarControl.style.display = "block";}return;}; window.WikEdButton = function (buttonObj, buttonId, toggleButton, setButton, classButton, doButton) {if (buttonObj != null) {if (buttonObj.className == "wikEdButtonInactive") {return;}buttonObj.style.cursor = "wait";if (setButton != null) {if (setButton == false) {buttonObj.setAttribute("checked", false);if (classButton == null) {buttonObj.className = "wikEdButtonUnchecked";}} else {buttonObj.setAttribute("checked", true);if (classButton == null) {buttonObj.className = "wikEdButtonChecked";}}} else if (classButton != null) {buttonObj.className = classButton;}if (toggleButton != null) {if (toggleButton == true) {if (WikEdGetAttribute(buttonObj, "checked") == "true") {buttonObj.setAttribute("checked", false);buttonObj.className = "wikEdButtonUnchecked";} else {buttonObj.setAttribute("checked", true);buttonObj.className = "wikEdButtonChecked";}}}}var focusFrame = false;if (setButton == null &amp;&amp; classButton == null || (doButton == true)) {WikEdRemoveElements(["script", "object", "applet", "embed"]);switch (buttonId) {case "wikEdHighlightSyntax":if (WikEdGetAttribute(buttonObj, "checked") == "true") {wikEdHighlightSyntax = true;WikEdSetPersistent("wikEdSyntaxOff", "0", 0, "/");} else {wikEdHighlightSyntax = false;WikEdSetPersistent("wikEdSyntaxOff", "1", 0, "/");}WikEdEditButton(null, "wikEdUpdateAll", {keepSel: false});break;case "wikEdTableMode":if (WikEdGetAttribute(buttonObj, "checked") != "true") {wikEdTableMode = false;} else {var obj = {};WikEdGetText(obj, "whole");var plain = obj.whole.plain;plain = plain.replace(/&lt;!--(.|\n)*?--&gt;/g, "");plain = plain.replace(/&lt;nowiki\b[^&gt;]*&gt;(.|\n)*?&lt;\/nowiki\s*&gt;/g, "");plain = plain.replace(/&lt;pre\b[^&gt;]*&gt;(.|\n)*?&lt;\/pre\s*&gt;/g, "");var lines = plain.split("\n");var tableCount = 0;var tableError = false;for (var i = 0; i &lt; lines.length; i++) {var line = lines[i];if (line.match(/^\{\|/) != null) {tableCount++;} else if (line.match(/^\|\}/) != null) {tableCount--;if (tableCount &lt; 0) {tableError = true;break;}}}if (tableCount &gt; 0) {tableError = true;}if (tableError == true) {wikEdTableMode = false;alert(wikEdText.wikEdTableModeError);WikEdButton(buttonObj, buttonId, null, false);break;}wikEdTableMode = true;}WikEdEditButton(null, "wikEdUpdateAll");break;case "wikEdScrollToPreview":case "wikEdScrollToPreview2":case "wikEdScrollToPreview3":window.scroll(0, WikEdGetOffsetTop(wikEdSaveButton));focusFrame = true;break;case "wikEdScrollToEdit":case "wikEdScrollToEdit2":case "wikEdScrollToEdit3":case "wikEdScrollToEdit4":window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper));focusFrame = true;break;case "wikEdTextZoomDown":wikEdTextZoom = wikEdTextZoom / 1.2;if (wikEdTextZoom &lt; 69.44444444444446) {wikEdTextZoom = 144;}wikEdFrameBody.style.fontSize = parseInt(wikEdTextZoom) + "%";focusFrame = true;break;case "wikEdTextZoomUp":wikEdTextZoom = wikEdTextZoom * 1.2;if (wikEdTextZoom &gt; 144) {wikEdTextZoom = 69.44444444444446;}wikEdFrameBody.style.fontSize = parseInt(wikEdTextZoom) + "%";focusFrame = true;break;case "wikEdLocalPreview":if (wikEdFullScreenMode == true) {WikEdFullScreen(false);}if (wikEdUseWikEd == true) {WikEdUpdateTextarea();}WikEdScrollToPreview();wikEdPreviewBox.innerHTML = wikEdText.wikEdPreviewLoading;wikEdLocalPrevWrapper.style.display = "block";wikEdPreviewIsAjax = false;if (wikEdUseAjaxPreview == true) {var boundary = "--(fR*3briuStOum6#v)--";var postData = wikEdTextarea.value;postData = "--" + boundary + "\nContent-Disposition: form-data; name=\"wpTextbox1\"\n\n" + postData + "\n--" + boundary;var formAction;if (wikEdUpload == true) {formAction = wikEdWikiGlobals.wgServer + wikEdWikiGlobals.wgScript + "?title=wikEdUploadPreview&amp;action=submit";} else {formAction = wikEdEditForm.action;}WikEdAjaxRequest("POST", formAction + "&amp;live", "Content-Type", "multipart/form-data; boundary=" + boundary, postData, "text/html", function (ajax) {wikEdPreviewIsAjax = true;var html = ajax.responseText;html = html.replace(/&amp;lt;/g, "&lt;");html = html.replace(/&amp;gt;/g, "&gt;");html = html.replace(/&amp;amp;/g, "&amp;");html = html.replace(/&amp;quot;/g, "\"");html = html.replace(/&amp;apos;/g, "'");html = html.replace(/(&lt;preview&gt;)&lt;h2&gt;.*?&lt;\/h2&gt;(.|\n)*?&lt;div class=\'previewnote\'&gt;(.|\n)*?&lt;\/div&gt;/, "$1");wikEdPreviewBox.innerHTML = html;});}if (wikEdUseLocalPreview == true &amp;&amp; (typeof InstaView == "object")) {InstaView.conf.user.name = wikEdWikiGlobals.wgUserName;var instaView = InstaView.convert(wikEdTextarea.value);if (wikEdPreviewIsAjax != true) {wikEdPreviewBox.innerHTML = instaView;}}focusFrame = true;break;case "wikEdLocalDiff":if (typeof WDiffString != "function") {break;}if (wikEdFullScreenMode == true) {WikEdFullScreen(false);}if (wikEdUseWikEd == true) {WikEdUpdateTextarea();}WikEdScrollToPreview();var diffText = WDiffString(wikEdOrigVersion, wikEdTextarea.value);if (wikEdFullDiff != true) {diffText = WDiffShortenOutput(diffText);}wikEdPreviewBox.innerHTML = diffText;wikEdLocalPrevWrapper.style.display = "block";break;case "wikEdDiff":if (WikEdGetAttribute(buttonObj, "checked") != "true") {wikEdDiff = false;WikEdSetPersistent("wikEdDiff", "0", 0, "/");if (typeof wikEdDiffDiv == "object") {if (wikEdDiffDiv != null) {wikEdDiffDiv.style.display = "none";}}window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper));} else {wikEdDiff = true;WikEdSetPersistent("wikEdDiff", "1", 0, "/");if (typeof wikEdDiffDiv == "object") {if (wikEdDiffDiv != null) {wikEdDiffDiv.style.display = "block";window.scroll(0, WikEdGetOffsetTop(wikEdDiffDiv));WikEdDiff();}}}focusFrame = true;break;case "wikEdClose":case "wikEdClose2":window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper));wikEdLocalPrevWrapper.style.display = "none";focusFrame = true;break;case "wikEdUseWikEd":if (WikEdGetAttribute(buttonObj, "checked") == "true") {WikEdUpdateFrame();WikEdSetEditArea(true);wikEdUseWikEd = true;WikEdSetPersistent("wikEdUseClassic", "0", 0, "/");WikEdExecuteHook(wikEdFrameHook);} else {WikEdUpdateTextarea();WikEdSetEditArea(false);wikEdUseWikEd = false;WikEdSetPersistent("wikEdUseClassic", "1", 0, "/");WikEdExecuteHook(wikEdTextareaHook);}break;case "wikEdUsing":if (WikEdGetAttribute(buttonObj, "checked") == "true") {wikEdUsing = true;WikEdSetPersistent("wikEdSummaryUsing", "1", 0, "/");} else {wikEdUsing = false;WikEdSetPersistent("wikEdSummaryUsing", "0", 0, "/");}break;case "wikEdRefHide":if (WikEdGetAttribute(buttonObj, "checked") == "true") {wikEdRefHide = true;WikEdSetPersistent("wikEdRefHide", "1", 0, "/");} else {wikEdRefHide = false;WikEdSetPersistent("wikEdRefHide", "0", 0, "/");}if (wikEdUseWikEd == true) {WikEdEditButton(null, "wikEdWikify", {whole: true});}break;case "wikEdCloseToolbar":if (WikEdGetAttribute(buttonObj, "checked") == "true") {wikEdCloseToolbar = true;if (document.getElementById("toolbar") != null) {wikEdToolbarWrapper.style.display = "none";}WikEdSetPersistent("wikEdCloseToolbar", "1", 0, "/");} else {wikEdCloseToolbar = false;if (document.getElementById("toolbar") != null) {wikEdToolbarWrapper.style.display = "block";}WikEdSetPersistent("wikEdCloseToolbar", "0", 0, "/");}if (wikEdFullScreenMode == true) {WikEdFullScreen(wikEdFullScreenMode);}break;case "wikEdCaseSensitive":break;case "wikEdRegExp":break;case "wikEdFindAhead":break;case "wikEdFullScreen":if (wikEdRearrange == true) {if (WikEdGetAttribute(buttonObj, "checked") == "true") {WikEdFullScreen(true);WikEdSetPersistent("wikEdFullscreen", "1", 0, "/");} else {WikEdFullScreen(false);WikEdSetPersistent("wikEdFullscreen", "0", 0, "/");}}break;case "wikEdClearHistory":WikEdClearHistory("find");WikEdClearHistory("replace");WikEdClearHistory("summary");focusFrame = true;break;case "wikEdPlaceholder":break;default:;}}wikEdFrameDOMCache = null;if (buttonObj != null) {buttonObj.style.cursor = "pointer";}if (wikEdUseWikEd == true &amp;&amp; (focusFrame == true)) {wikEdFrameWindow.focus();}return;}; window.WikEdEditButton = function (buttonObj, buttonId, parameters, CustomHandler) {if (buttonObj != null) {if (buttonObj.className == "wikEdButtonInactive") {return;}}WikEdRemoveElements(["script", "object", "applet", "embed", "textarea"]);var obj = {};obj.changed = {};switch (buttonId) {case "wikEdUndo":case "wikEdRedo":case "wikEdUndoAll":case "wikEdRedoAll":WikEdGetText(obj, "whole");obj.changed = obj.whole;break;case "wikEdBold":case "wikEdItalic":case "wikEdUnderline":case "wikEdStrikethrough":case "wikEdNowiki":case "wikEdSuperscript":case "wikEdSubscript":case "wikEdWikiLink":case "wikEdWebLink":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.cursor;}}break;case "wikEdRef":case "wikEdRefNamed":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {obj.changed = obj.cursor;}break;case "wikEdReferences":case "wikEdReferencesSection":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {obj.changed = obj.cursor;}break;case "wikEdCase":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.cursor;}}break;case "wikEdDecreaseHeading":case "wikEdIncreaseHeading":case "wikEdIncreaseBulletList":case "wikEdDecreaseBulletList":case "wikEdIncreaseNumberList":case "wikEdDecreaseNumberList":case "wikEdIncreaseIndentList":case "wikEdDecreaseIndentList":case "wikEdDefinitionList":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {WikEdGetText(obj, "selectionLine");obj.changed = obj.selectionLine;} else {WikEdGetText(obj, "focusLine");if (obj.focusLine.plain != "") {obj.changed = obj.focusLine;} else {obj.changed = obj.cursor;}}break;case "wikEdImage":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {WikEdGetText(obj, "selectionWord");obj.changed = obj.selectionWord;} else {obj.changed = obj.cursor;}break;case "wikEdTable":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {WikEdGetText(obj, "selectionLine");obj.changed = obj.selectionLine;} else {WikEdGetText(obj, "focusLine");obj.changed = obj.cursor;}break;case "wikEdWikify":if (parameters == "whole") {WikEdGetText(obj, "whole");obj.changed = obj.whole;} else {WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole");obj.changed = obj.whole;}}break;case "wikEdTextify":WikEdGetText(obj, "selection", false);if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole", false);obj.changed = obj.whole;}break;case "wikEdRedirect":WikEdGetText(obj, "whole, selection, cursor");if (obj.selection.plain == "") {WikEdGetText(obj, "selectionWord");}obj.changed = obj.whole;break;case "wikEdFindPrev":case "wikEdFindNext":case "wikEdJumpPrev":case "wikEdJumpNext":case "wikEdReplacePrev":case "wikEdReplaceNext":case "wikEdFindAll":WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.cursor;}}break;case "wikEdReplaceAll":WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole");obj.changed = obj.whole;}break;case "wikEdFixBasic":case "wikEdfixUnicode":case "wikEdFixAll":case "wikEdFixHtml":case "wikEdFixRegExTypo":WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole");obj.changed = obj.whole;}break;case "wikEdFixPunct":case "wikEdFixMath":case "wikEdFixUnits":case "wikEdFixDashes":case "wikEdFixCaps":case "wikEdFixChem":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusLine");if (obj.focusPara.plain != "") {obj.changed = obj.focusLine;} else {obj.changed = obj.cursor;}}break;WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.cursor;}}break;case "wikEdSource":WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole");obj.changed = obj.whole;}break;case "wikEdInsertTags":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.selection;}}break;case "wikEdUpdateAll":WikEdGetText(obj, "whole");obj.changed = obj.whole;break;default:WikEdGetText(obj, "cursor");obj.changed = obj.cursor;break;}if (obj.changed == null) {wikEdFrameWindow.focus();if (buttonObj != null) {if (buttonObj.className != "wikEdButtonInactive") {buttonObj.className = "wikEdButton";}}return;}var highlightSyntax = wikEdHighlightSyntax;var selectChanged = true;var selectChangedText = "";switch (buttonId) {case "wikEdUndo":if (wikEdLastVersion == null) {wikEdLastVersion = obj.changed.plain;}WikEdFrameExecCommand("undo");if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}obj.changed.range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);obj.changed.plain = null;obj.changed.keepSel = true;break;case "wikEdRedo":WikEdFrameExecCommand("redo");if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}obj.changed.range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);obj.changed.plain = null;obj.changed.keepSel = true;break;case "wikEdBold":if (/\'\'\'([^\'].*?)\'\'\'/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/\'\'\'([^\'].*?)\'\'\'/g, "$1");} else {obj.changed.plain = "'''" + obj.changed.plain + "'''";obj.changed.plain = obj.changed.plain.replace(/(\'\'\')( *)(.*?)( *)(\'\'\')/, "$2$1$3$5$4");}obj.changed.plain = obj.changed.plain.replace(/\'{6,}/g, "'''''");obj.changed.keepSel = true;break;case "wikEdItalic":if (/(\'{3,})\'\'([^\'].*?)\'\'(\'{3,})/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/(\'{3,})\'\'([^\'].*?)\'\'(\'{3,})/g, "$1$2$3");} else if (/(^|[^\'])\'\'([^\'].*?)\'\'([^\']|$)/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/(^|[^\'])\'\'([^\'].*?)\'\'([^\']|$)/g, "$1$2$3");} else {obj.changed.plain = "''" + obj.changed.plain + "''";obj.changed.plain = obj.changed.plain.replace(/(\'\')( *)(.*?)( *)(\'\')/, "$2$1$3$5$4");}obj.changed.plain = obj.changed.plain.replace(/\'{6,}/g, "'''''");obj.changed.keepSel = true;break;case "wikEdUnderline":if (/&amp;lt;u&amp;gt;(.*?)&amp;lt;\/u&amp;gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&amp;lt;u&amp;gt;(.*?)&amp;lt;\/u&amp;gt;/gi, "$1");} else {obj.changed.plain = "&amp;lt;u&amp;gt;" + obj.changed.plain + "&amp;lt;/u&amp;gt;";obj.changed.plain = obj.changed.plain.replace(/(&amp;lt;u&amp;gt;)( *)(.*?)( *)(&amp;lt;\/u&amp;gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdStrikethrough":if (/&amp;lt;s&amp;gt;(.*?)&amp;lt;\/s&amp;gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&amp;lt;s&amp;gt;(.*?)&amp;lt;\/s&amp;gt;/gi, "$1");} else {obj.changed.plain = "&amp;lt;s&amp;gt;" + obj.changed.plain + "&amp;lt;/s&amp;gt;";obj.changed.plain = obj.changed.plain.replace(/(&amp;lt;s&amp;gt;)( *)(.*?)( *)(&amp;lt;\/s&amp;gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdNowiki":if (/&amp;lt;nowiki&amp;gt;(.*?)&amp;lt;\/nowiki&amp;gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&amp;lt;nowiki&amp;gt;(.*?)&amp;lt;\/nowiki&amp;gt;/gi, "$1");} else {obj.changed.plain = "&amp;lt;nowiki&amp;gt;" + obj.changed.plain + "&amp;lt;/nowiki&amp;gt;";obj.changed.plain = obj.changed.plain.replace(/(&amp;lt;nowiki&amp;gt;)( *)(.*?)( *)(&amp;lt;\/nowiki&amp;gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdSuperscript":obj.changed.plain = obj.changed.plain.replace(/^(\s*)&amp;lt;sub&amp;gt;(.*?)&amp;lt;\/sub&amp;gt;(\s*)$/, "$1$2$3");if (/&amp;lt;sup&amp;gt;(.*?)&amp;lt;\/sup&amp;gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&amp;lt;sup&amp;gt;(.*?)&amp;lt;\/sup&amp;gt;/gi, "$1");} else {obj.changed.plain = "&amp;lt;sup&amp;gt;" + obj.changed.plain + "&amp;lt;/sup&amp;gt;";obj.changed.plain = obj.changed.plain.replace(/(&amp;lt;sup&amp;gt;)( *)(.*?)( *)(&amp;lt;\/sup&amp;gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdSubscript":obj.changed.plain = obj.changed.plain.replace(/^(\s*)&amp;lt;sup&amp;gt;(.*?)&amp;lt;\/sup&amp;gt;(\s*)$/, "$1$2$3");if (/&amp;lt;sub&amp;gt;(.*?)&amp;lt;\/sub&amp;gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&amp;lt;sub&amp;gt;(.*?)&amp;lt;\/sub&amp;gt;/gi, "$1");} else {obj.changed.plain = "&amp;lt;sub&amp;gt;" + obj.changed.plain + "&amp;lt;/sub&amp;gt;";obj.changed.plain = obj.changed.plain.replace(/(&amp;lt;sub&amp;gt;)( *)(.*?)( *)(&amp;lt;\/sub&amp;gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdRef":case "wikEdRefNamed":if (obj.changed.plain == "") {if (buttonId == "wikEdRef") {obj.changed.plain = "&amp;lt;ref /&amp;gt;";} else {obj.changed.plain = "&amp;lt;ref name=\"\"/&amp;gt;";}} else if (/&amp;lt;ref( name=\"\")? ?\/&amp;gt;/i.test(obj.changed.plain)) {obj.changed.plain = "";} else if (/&amp;lt;ref( name=\"\")?&amp;gt;(.*?)&amp;lt;\/ref&amp;gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&amp;lt;ref( name=\"\")?&amp;gt;(.*?)&amp;lt;\/ref&amp;gt;/gi, "$2");} else {if (buttonId == "wikEdRef") {obj.changed.plain = "&amp;lt;ref&amp;gt;" + obj.changed.plain + "&amp;lt;/ref&amp;gt;";} else {obj.changed.plain = "&amp;lt;ref name=\"\"&amp;gt;" + obj.changed.plain + "&amp;lt;/ref&amp;gt;";}obj.changed.plain = obj.changed.plain.replace(/(&amp;lt;ref( name=\"\")?&amp;gt;)( *)(.*?)( *)(&amp;lt;\/ref&amp;gt;)/, "$3$1$4$6$5");}obj.changed.keepSel = true;break;case "wikEdReferences":case "wikEdReferencesSection":var ref = wikEdText.wikEdReferencesSection;ref = ref.replace(/&lt;/g, "&amp;lt;");ref = ref.replace(/&gt;/g, "&amp;gt;");var refEscaped = ref;refEscaped = refEscaped.replace(/([^\w\s\;\&amp;])/g, "\\$1");refEscaped = refEscaped.replace(/^\n|\n$/g, "\\n*");refEscaped = refEscaped.replace(/(\n)/g, "\\n");var regExp = new RegExp(refEscaped, "gi");if (buttonId == "wikEdReferences") {if (obj.changed.plain == "") {obj.changed.plain = "&amp;lt;references/&amp;gt;";} else if (regExp.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(regExp, "");} else if (/&amp;lt;references ?\/&amp;gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&amp;lt;references ?\/&amp;gt;/gi, "");} else {obj.changed = obj.cursor;obj.changed.plain = "&amp;lt;references/&amp;gt;";}} else {if (obj.changed.plain == "") {obj.changed.plain = ref;} else if (regExp.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(regExp, "");} else if (/&amp;lt;references ?\/&amp;gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&amp;lt;references ?\/&amp;gt;/gi, "");} else {obj.changed = obj.cursor;obj.changed.plain = ref;}}obj.changed.keepSel = true;break;case "wikEdCase":if (obj.changed.plain == "") {obj.changed.plain = null;} else {var plain = obj.changed.plain;plain = plain.replace(/&amp;gt;/g, "&gt;");plain = plain.replace(/&amp;lt;/g, "&lt;");plain = plain.replace(/&amp;amp;/g, "&amp;");if (plain.toUpperCase() == plain) {plain = plain.toLowerCase();} else if (plain.toLowerCase() == plain) {plain = plain.replace(/\b([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9])([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\']*)/g, function (p, p1, p2) {return p1.toUpperCase() + p2.toLowerCase();});} else {plain = plain.toUpperCase();}plain = plain.replace(/&amp;/g, "&amp;amp;");plain = plain.replace(/&lt;/g, "&amp;lt;");plain = plain.replace(/&gt;/g, "&amp;gt;");obj.changed.plain = plain;}obj.changed.keepSel = true;break;case "wikEdUndoAll":if (wikEdLastVersion == null) {wikEdLastVersion = obj.changed.plain;}obj.changed.plain = wikEdOrigVersion;obj.changed.plain = obj.changed.plain.replace(/&amp;/g, "&amp;amp;");obj.changed.plain = obj.changed.plain.replace(/&gt;/g, "&amp;gt;");obj.changed.plain = obj.changed.plain.replace(/&lt;/g, "&amp;lt;");break;case "wikEdRedoAll":if (wikEdLastVersion != null) {obj.changed.plain = wikEdLastVersion;}break;case "wikEdWikiLink":if (/\[\[(.*?)\]\]/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/\[\[(.*?)\]\]/g, "$1");} else {obj.changed.plain = "[[" + obj.changed.plain + "]]";obj.changed.plain = obj.changed.plain.replace(/(\[\[)( *)(.*?)( *)(\]\])/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdWebLink":if (/\[(.*?)\]/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/\[(.*?)\]/g, "$1");} else {obj.changed.plain = "[" + obj.changed.plain + "]";obj.changed.plain = obj.changed.plain.replace(/(\[)( *)(.*?)( *)(\])/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdDecreaseHeading":obj.changed.plain = obj.changed.plain.replace(/(^|\n)=(=+) *([^\n]*?) *=+(?=\n|$)/g, "$1$2 $3 $2");obj.changed.plain = obj.changed.plain.replace(/(^|\n)=(?!=) *([^\n]*?) *=+(?=\n|$)/g, "$1$2");obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=+) *([^\n]*?) *=+(?=\n|$)/g, "$1$2 $3 $2");obj.changed.keepSel = true;break;case "wikEdIncreaseHeading":obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=+) *([^\n]*?) *=+(?=\n|$)/g, "$1=$2 $3 $2=");if (/\n/.test(obj.changed.plain) == false) {obj.changed.plain = obj.changed.plain.replace(/(^|\n)([^=\n\s][^\n]*?)(?=\n|$)/g, "$1== $2 ==");}obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=+) *([^\n]*?) *=+(?=\n|$)/g, "$1$2 $3 $2");obj.changed.keepSel = true;break;case "wikEdIncreaseBulletList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^ *([\*\#\:\;]*) *()/g, "*$1 ");return p1;});obj.changed.keepSel = true;break;case "wikEdDecreaseBulletList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^[\*\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdIncreaseNumberList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^ *([\*\#\:\;]*) *()/g, "#$1 ");return p1;});obj.changed.keepSel = true;break;case "wikEdDecreaseNumberList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^[\*\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdIncreaseIndentList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^ *([\*\#\:\;]*) *()/g, ":$1 ");return p1;});obj.changed.keepSel = true;break;case "wikEdDecreaseIndentList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^[\*\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdDefinitionList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^ *([^\s\;]+) *()/g, "; $1 : ");return p1;});break;case "wikEdImage":if (obj.changed.plain != "") {obj.changed.plain = "[[Image:&lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['image filename'] + "&lt;/span&gt;|thumb|&lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['image width'] + "&lt;/span&gt;px|" + obj.changed.plain + "]]";} else {obj.changed.plain = "[[Image:&lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['image filename'] + "&lt;/span&gt;|thumb|&lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['image width'] + "&lt;/span&gt;px|&lt;span class=\"wikEdInsertHere\"&gt; &lt;/span&gt;]]";if (obj.focusWord != null) {if (obj.focusWord.plain != "") {obj.changed.plain = " " + obj.changed.plain + " ";}}}break;case "wikEdTable":if (obj.changed.plain != "") {obj.changed.plain = obj.changed.plain.replace(/(^|\n) *()/g, "\n|-\n| ");obj.changed.plain = obj.changed.plain.replace(/^\n\|\-\n/, "\n{| class=\"wikitable\"\n");obj.changed.plain = obj.changed.plain.replace(/$/g, "\n|}\n");} else {obj.changed.plain = "\n{| class=\"wikitable\"\n|+ &lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['table caption'] + "&lt;/span&gt;\n! &lt;span class=\"wikEdinserthere\"&gt;" + wikEdText['table heading'] + "&lt;/span&gt; !! &lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['table heading'] + "&lt;/span&gt;\n|-\n| &lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['table cell'] + "&lt;/span&gt; || &lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['table cell'] + "&lt;/span&gt;\n|-\n| &lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['table cell'] + "&lt;/span&gt; || &lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['table cell'] + "&lt;/span&gt;\n|}\n";if (obj.focusLine.plain != "") {obj.changed.plain = "\n" + obj.changed.plain + "\n";}}break;case "wikEdWikify":break;case "wikEdTextify":WikEdTextify(obj.changed);break;case "wikEdRedirect":var linkTarget;if (obj.selection.plain != "") {linkTarget = obj.selection.plain;} else if (obj.selectionWord.plain != "") {linkTarget = obj.selectionWord.plain;} else {linkTarget = "&lt;span class=\"wikEdInsertHere\"&gt;" + wikEdText['redirect article link'] + "&lt;/span&gt;";}linkTarget = linkTarget.replace(/\|.*()/, "");linkTarget = linkTarget.replace(/^(=+|\'+|&lt;[^&gt;]*&gt;|\s+|\[)+(.*?)(=+|\'+|&lt;[^&gt;]*&gt;|\s+|\])+$/g, "$2");linkTarget = linkTarget.replace(/\s+/g, " ");linkTarget = linkTarget.replace(/^\s+|\s+$/g, "");obj.changed.plain = "#REDIRECT [[" + linkTarget + "]]";if (wikEdInputElement.summary != null) {if (obj.selection.plain != "" || (obj.selectionWord.plain != "")) {wikEdInputElement.summary.value = wikEdInputElement.summary.value.replace(/#REDIRECT( \[\[[^\]]*\]\])?(, *)?/g, "");wikEdInputElement.summary.value = WikEdAppendToSummary(wikEdInputElement.summary.value, "#REDIRECT [[" + linkTarget + "]]");} else {wikEdInputElement.summary.value = WikEdAppendToSummary(wikEdInputElement.summary.value, "#REDIRECT");}}selectChanged = false;break;case "wikEdFindPrev":case "wikEdFindNext":case "wikEdJumpPrev":case "wikEdJumpNext":case "wikEdReplacePrev":case "wikEdReplaceNext":case "wikEdFindAll":case "wikEdReplaceAll":var findText;obj.changed.plain = obj.changed.plain.replace(/&amp;lt;/g, "&lt;");obj.changed.plain = obj.changed.plain.replace(/&amp;gt;/g, "&gt;");obj.changed.plain = obj.changed.plain.replace(/&amp;amp;/g, "&amp;");if (parameters == "shift" &amp;&amp; (buttonId == "wikEdFindNext" || buttonId == "wikEdReplaceNext")) {if (/\n/.test(obj.changed.plain) == false) {if (buttonId == "wikEdFindNext") {wikEdInputElement.find.value = obj.changed.plain;} else {wikEdInputElement.replace.value = obj.changed.plain;}obj.changed.keepSel = true;obj.changed.plain = null;break;}}if (buttonId == "wikEdJumpPrev" || (buttonId == "wikEdJumpNext")) {findText = obj.changed.plain;if (obj.selection.plain == "") {obj.changed.keepSel = true;obj.changed.plain = null;break;}} else {if (wikEdInputElement.find.value != "") {findText = wikEdInputElement.find.value;} else {obj.changed.plain = null;break;}}var regExpChecked = WikEdGetAttribute(wikEdRegExp, "checked");var caseSensitiveChecked = WikEdGetAttribute(wikEdCaseSensitive, "checked");if (regExpChecked == "false") {findText = findText.replace(/\n/g, "");findText = findText.replace(/\s/g, " ");}var replaceText = wikEdInputElement.replace.value;var regExpFind;var regExpFlags = "g";if (caseSensitiveChecked == "false") {regExpFlags += "i";}if (regExpChecked == "false" || buttonId == "wikEdJumpPrev" || (buttonId == "wikEdJumpNext")) {regExpFind = new RegExp(findText.replace(/([\\^\$\*\+\?\.\(\)\[\]\{\}\:\=\!\|\,\-])/g, "\\$1"), regExpFlags);} else {try {regExpFind = new RegExp(findText, regExpFlags);} catch (err) {return;}replaceText = replaceText.replace(/((^|[^\\])(\\\\)*)\\n/g, "$1\n");}var replacedFlag = false;if (buttonId == "wikEdReplaceAll") {if (regExpFind.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(regExpFind, replaceText);replacedFlag = true;} else {obj.changed.plain = null;}} else if (buttonId == "wikEdReplacePrev" || (buttonId == "wikEdReplaceNext")) {if (regExpFind.test(obj.selection.plain)) {var replaced = obj.selection.plain.replace(regExpFind, replaceText);if (obj.changed.plain != replaced) {obj.changed.plain = replaced;replacedFlag = true;} else {obj.changed.plain = null;}} else {obj.changed.plain = null;}} else if (buttonId == "wikEdFindNext" || buttonId == "wikEdFindPrev" || buttonId == "wikEdJumpNext" || (buttonId == "wikEdJumpPrev")) {obj.changed.plain = null;}if (buttonId == "wikEdFindNext" || buttonId == "wikEdFindPrev" || buttonId == "wikEdJumpNext" || buttonId == "wikEdJumpPrev" || buttonId == "wikEdReplaceNext" || buttonId == "wikEdReplacePrev" || (buttonId == "wikEdFindAll")) {if (replacedFlag == false) {var backwards = false;if (buttonId == "wikEdFindPrev" || buttonId == "wikEdJumpPrev" || (buttonId == "wikEdReplacePrev")) {backwards = true;}var caseSensitive = false;if (caseSensitiveChecked == "true") {caseSensitive = true;}if (buttonId == "wikEdFindAll") {var found;var foundRanges = [];WikEdRemoveAllRanges(obj.sel);var range = document.createRange();range.setStartBefore(wikEdFrameBody.firstChild);range.collapse(true);range = obj.sel.addRange(range);var scrollTop = wikEdFrameBody.scrollTop;do {if (regExpChecked == "true") {found = WikEdFind(obj, findText, caseSensitive, false, false, regExpFind);} else {found = WikEdFind(obj, findText, caseSensitive, false, false, null);}if (found == true) {foundRanges.push(obj.changed.range.cloneRange());}} while (found == true);if (regExpChecked == "false") {wikEdFrameBody.scrollTop = scrollTop;}WikEdRemoveAllRanges(obj.sel);for (range in foundRanges) {obj.sel.addRange(foundRanges[range]);}obj.changed.plain = null;} else {if (regExpChecked == "true") {WikEdFind(obj, findText, caseSensitive, backwards, true, regExpFind);} else {WikEdFind(obj, findText, caseSensitive, backwards, true, null);selectChanged = false;}}}}if (obj.changed.plain != null) {obj.changed.plain = obj.changed.plain.replace(/&amp;/g, "&amp;amp;");obj.changed.plain = obj.changed.plain.replace(/&lt;/g, "&amp;lt;");obj.changed.plain = obj.changed.plain.replace(/&gt;/g, "&amp;gt;");}if (buttonId == "wikEdFindPrev" || buttonId == "wikEdFindNext" || (buttonId == "wikEdFindAll")) {WikEdAddToHistory("find");}if (buttonId == "wikEdReplacePrev" || buttonId == "wikEdReplaceNext" || (buttonId == "wikEdReplaceAll")) {WikEdAddToHistory("find");WikEdAddToHistory("replace");}obj.changed.keepSel = true;break;case "wikEdFixBasic":WikEdFixBasic(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixPunct":WikEdFixPunct(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixMath":WikEdFixMath(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixChem":WikEdFixChem(obj.changed);obj.changed.keepSel = true;break;case "wikEdfixUnicode":WikEdFixUnicode(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixUnits":WikEdFixUnits(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixDashes":WikEdFixDashes(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixHtml":WikEdFixHTML(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixRegExTypo":if (wikEdRegExTypoFix == true &amp;&amp; (wikEdTypoRulesFind.length &gt; 0)) {WikEdFixTypos(obj.changed);} else {obj.changed.plain = null;}obj.changed.keepSel = true;break;case "wikEdFixCaps":WikEdFixCaps(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixAll":WikEdFixAll(obj.changed);obj.changed.keepSel = true;break;case "wikEdSource":obj.changed.plain = obj.changed.code;obj.changed.plain = obj.changed.plain.replace(/(&lt;(br|p)\b[^&gt;]*&gt;)/g, "$1\n");obj.changed.plain = obj.changed.plain.replace(/&amp;/g, "&amp;amp;");obj.changed.plain = obj.changed.plain.replace(/&lt;/g, "&amp;lt;");obj.changed.plain = obj.changed.plain.replace(/&gt;/g, "&amp;gt;");highlightSyntax = false;break;case "wikEdInsertTags":var tagOpen = parameters[0] || "";var tagClose = parameters[1] || "";var sampleText = parameters[2] || "";tagOpen = tagOpen.replace(/&amp;/g, "&amp;amp;");tagOpen = tagOpen.replace(/&lt;/g, "&amp;lt;");tagOpen = tagOpen.replace(/&gt;/g, "&amp;gt;");tagClose = tagClose.replace(/&amp;/g, "&amp;amp;");tagClose = tagClose.replace(/&lt;/g, "&amp;lt;");tagClose = tagClose.replace(/&gt;/g, "&amp;gt;");tagsampleText = sampleText.replace(/&amp;/g, "&amp;amp;");tagsampleText = sampleText.replace(/&lt;/g, "&amp;lt;");tagsampleText = sampleText.replace(/&gt;/g, "&amp;gt;");if (tagOpen.length &gt; 0 &amp;&amp; tagClose.length == 0 &amp;&amp; (sampleText.length == 0)) {obj.changed = obj.cursor;obj.changed.plain = tagOpen;} else if (obj.changed.plain == "" &amp;&amp; (sampleText.length &gt; 0)) {obj.changed.plain = tagOpen + sampleText + tagClose;selectChangedText = sampleText;obj.changed.keepSel = true;} else {obj.changed.plain = tagOpen + obj.changed.plain + tagClose;}break;case "wikEdUpdateAll":obj.changed.keepSel = true;if (parameters != null) {if (parameters.keepSel == false) {obj.changed.keepSel = false;}}break;default:if (CustomHandler != null) {CustomHandler(obj);} else {alert("Unknown edit function '" + buttonId + "'");}break;}if (obj.changed.plain == null) {if (buttonId != "wikEdFindAll") {WikEdRemoveAllRanges(obj.sel);obj.sel.addRange(obj.changed.range);if (selectChanged != false) {if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}var plainText = obj.sel.getRangeAt(obj.sel.rangeCount - 1).cloneContents().textContent;if (plainText.length &gt; 0) {plainText = plainText.replace(/\n/g, "");obj.changed.range.collapse(false);wikEdFrameWindow.find(plainText, true, true, false, false, false, false);}}}} else {if (buttonId != "wikEdUndo" &amp;&amp; buttonId != "wikEdRedo" &amp;&amp; (buttonId != "wikEdUndoAll")) {wikEdLastVersion = null;}obj.html = obj.changed.plain;if (highlightSyntax == true) {if (obj.changed.from == "whole") {obj.whole = true;}WikEdHighlightSyntax(obj);} else {obj.html = obj.html.replace(/(\t)/g, "&lt;span class=\"wikEdTabPlain\"&gt;$1&lt;/span&gt;&lt;!--wikEdTabPlain--&gt;");}obj.html = obj.html.replace(/ /g, "&amp;nbsp; ");obj.html = obj.html.replace(/ /g, "&amp;nbsp; ");obj.html = obj.html.replace(/\n/g, "&lt;br /&gt;");WikEdRemoveAllRanges(obj.sel);obj.sel.addRange(obj.changed.range);var scrollTop;if (obj.changed.from == "whole") {scrollTop = wikEdFrameBody.scrollTop;}if (obj.html != "") {WikEdFrameExecCommand("inserthtml", obj.html);} else if (obj.sel.isCollapsed == false) {WikEdFrameExecCommand("delete");}if (obj.changed.from == "whole") {WikEdRemoveAllRanges(obj.sel);wikEdFrameBody.scrollTop = scrollTop;var range = document.createRange();range.setStartBefore(wikEdFrameBody.firstChild);range.setEndAfter(wikEdFrameBody.lastChild);obj.sel.addRange(range);selectChanged = false;}if (selectChanged != false) {if (selectChangedText == "") {var div = document.createElement("div");div.innerHTML = obj.changed.plain;selectChangedText = div.textContent;}if (selectChangedText.length &gt; 0) {selectChangedText = selectChangedText.replace(/\n/g, "");wikEdFrameWindow.find(selectChangedText, true, true, false, false, false, false);}}}if (obj.changed.keepSel != true &amp;&amp; obj.changed.from != "whole" || obj.changed.keepSel == false || buttonId == "wikEdRedirect" || (buttonId == "wikEdWikify" &amp;&amp; parameters == "whole")) {if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);} else {obj.sel.getRangeAt(obj.sel.rangeCount - 1).collapse(false);}}if (buttonObj != null) {if (buttonObj.className != "wikEdButtonInactive") {buttonObj.className = "wikEdButton";}buttonObj.style.cursor = "auto";}WikEdInactiveButtons();wikEdFrameDOMCache = null;if (wikEdUseWikEd == true) {wikEdFrameWindow.focus();}if (highlightSyntax == true &amp;&amp; (obj.changed.plain != null)) {WikEdFollowLinks();}return;}; window.WikEdScrollToPreview = function () {var scrollOffset = window.pageYOffset;var inputOffset = WikEdGetOffsetTop(wikEdInputWrapper);var textareaOffset = WikEdGetOffsetTop(wikEdTextareaWrapper);var submitOffset = WikEdGetOffsetTop(wikEdSaveButton);if (scrollOffset &gt; submitOffset) {window.scroll(0, submitOffset);} else if (scrollOffset &gt; (submitOffset - textareaOffset) / 3 * 2 + textareaOffset) {window.scroll(0, submitOffset);} else if (scrollOffset &gt; textareaOffset) {window.scroll(0, textareaOffset);} else {window.scroll(0, inputOffset);}return;}; window.WikEdFollowLinks = function () {if (wikEdFollowLinks == true) {for (var linkId in wikEdFollowLinkHash) {if (typeof wikEdFollowLinkHash[linkId] != "string") {continue;}var linkSpan = wikEdFrameDocument.getElementById(linkId);if (linkSpan != null) {WikEdAddEventListener(linkSpan, "click", WikEdFollowLinkHandler, true);}}}return;}; window.WikEdGetText = function (obj, whichFragment, wikify) {if (obj.sel == null) {obj.sel = WikEdGetSelection();}if (obj.cursor == null) {obj.cursor = {from: "cursor", keepSel: null, plain: ""};obj.cursor.range = document.createRange();obj.cursor.range.setStart(obj.sel.focusNode, obj.sel.focusOffset);obj.cursor.range.setEnd(obj.sel.focusNode, obj.sel.focusOffset);}if (obj.whole == null) {if (/whole|selectionWord|selectionLine|selectionPara|focusWord|focusLine|focusPara/.test(whichFragment) == true) {obj.whole = {plainArray: [], plainNode: [], plainStart: [], from: "whole", keepSel: null};obj.whole.range = document.createRange();obj.whole.range.setStartBefore(wikEdFrameBody.firstChild);obj.whole.range.setEndAfter(wikEdFrameBody.lastChild);WikEdGetInnerHTML(obj.whole, wikEdFrameBody);obj.whole.code = obj.whole.html;WikEdRemoveHighlightingWikify(obj.whole, wikify);obj.whole.plain = obj.whole.html;obj.whole.plain = obj.whole.plain.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/g, "\n");obj.whole.plain = obj.whole.plain.replace(/\u00a0/g, " ");}}if (obj.selection == null) {if (/selection\b|selectionWord|selectionLine|selectionPara/.test(whichFragment) == true) {obj.selection = {from: "selection", keepSel: null};if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}obj.selection.range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);var documentFragment = obj.selection.range.cloneContents();WikEdGetInnerHTML(obj.selection, documentFragment);obj.selection.code = obj.selection.html;WikEdRemoveHighlightingWikify(obj.selection, wikify);obj.selection.plain = obj.selection.html;obj.selection.plain = obj.selection.plain.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/g, "\n");obj.selection.plain = obj.selection.plain.replace(/\u00a0/g, " ");}}if (obj.focusWord == null) {if (/focusWord|focusLine|focusPara/.test(whichFragment) == true) {obj.focusWord = {from: "focusWord", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};obj.focusLine = {from: "focusLine", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};obj.focusPara = {from: "focusPara", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};WikEdFindBoundaries(obj.focusWord, obj.focusLine, obj.focusPara, obj.whole, obj.cursor);var documentFragment = obj.focusWord.range.cloneContents();WikEdGetInnerHTML(obj.focusWord, documentFragment);obj.focusWord.code = obj.focusWord.html;WikEdRemoveHighlightingWikify(obj.focusWord, wikify);obj.focusWord.plain = obj.focusWord.html;obj.focusWord.plain = obj.focusWord.plain.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/g, "\n");obj.focusWord.plain = obj.focusWord.plain.replace(/\u00a0/g, " ");var documentFragment = obj.focusLine.range.cloneContents();WikEdGetInnerHTML(obj.focusLine, documentFragment);obj.focusLine.code = obj.focusLine.html;WikEdRemoveHighlightingWikify(obj.focusLine, wikify);obj.focusLine.plain = obj.focusLine.html;obj.focusLine.plain = obj.focusLine.plain.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/g, "\n");obj.focusLine.plain = obj.focusLine.plain.replace(/\u00a0/g, " ");var documentFragment = obj.focusPara.range.cloneContents();WikEdGetInnerHTML(obj.focusPara, documentFragment);obj.focusPara.code = obj.focusPara.html;WikEdRemoveHighlightingWikify(obj.focusPara, wikify);obj.focusPara.plain = obj.focusPara.html;obj.focusPara.plain = obj.focusPara.plain.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/g, "\n");obj.focusPara.plain = obj.focusPara.plain.replace(/\u00a0/g, " ");}}if (obj.selectionWord == null) {if (/selectionWord|selectionLine|selectionPara/.test(whichFragment) == true) {obj.selectionWord = {from: "selectionWord", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};obj.selectionLine = {from: "selectionLine", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};obj.selectionPara = {from: "selectionPara", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};WikEdFindBoundaries(obj.selectionWord, obj.selectionLine, obj.selectionPara, obj.whole, obj.selection);var documentFragment = obj.selectionWord.range.cloneContents();WikEdGetInnerHTML(obj.selectionWord, documentFragment);obj.selectionWord.code = obj.selectionWord.html;WikEdRemoveHighlightingWikify(obj.selectionWord, wikify);obj.selectionWord.plain = obj.selectionWord.html;obj.selectionWord.plain = obj.selectionWord.plain.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/g, "\n");obj.selectionWord.plain = obj.selectionWord.plain.replace(/\u00a0/g, " ");var documentFragment = obj.selectionLine.range.cloneContents();WikEdGetInnerHTML(obj.selectionLine, documentFragment);obj.selectionLine.code = obj.selectionLine.html;WikEdRemoveHighlightingWikify(obj.selectionLine, wikify);obj.selectionLine.plain = obj.selectionLine.html;obj.selectionLine.plain = obj.selectionLine.plain.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/g, "\n");obj.selectionLine.plain = obj.selectionLine.plain.replace(/\u00a0/g, " ");var documentFragment = obj.selectionPara.range.cloneContents();WikEdGetInnerHTML(obj.selectionPara, documentFragment);obj.selectionPara.code = obj.selectionPara.html;WikEdRemoveHighlightingWikify(obj.selectionPara, wikify);obj.selectionPara.plain = obj.selectionPara.html;obj.selectionPara.plain = obj.selectionPara.plain.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/g, "\n");obj.selectionPara.plain = obj.selectionPara.plain.replace(/\u00a0/g, " ");}}return;}; window.WikEdFind = function (obj, findText, caseSensitive, backwards, wrap, regExp) {if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}var range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);var found = false;obj.changed.range = document.createRange();if (regExp == null) {found = wikEdFrameWindow.find(findText, caseSensitive, backwards, wrap, false, true, false);if (found == true) {range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);}obj.changed.range = range.cloneRange();} else {if (obj.plainArray === undefined) {WikEdParseDOM(obj, wikEdFrameBody);}var regExpMatch = [];if (backwards == false) {regExpMatch = regExp.exec(obj.plain);regExp.lastIndex = obj.plainFocus;regExpMatch = regExp.exec(obj.plain);obj.plainFocus = regExp.lastIndex;if (wrap == true &amp;&amp; (regExpMatch == null)) {regExp.lastIndex = 0;regExpMatch = regExp.exec(obj.plain);}} else {var regExpMatchNext;do {regExpMatch = regExpMatchNext;regExpMatchNext = regExp.exec(obj.plain);if (regExpMatchNext == null) {break;}} while (regExpMatchNext.index &lt; obj.plainAnchor);if (wrap == true &amp;&amp; (regExpMatch == null)) {do {regExpMatch = regExpMatchNext;regExpMatchNext = regExp.exec(obj.plain);} while (regExpMatchNext != null);}}if (regExpMatch != null) {found = true;var i = 0;while (obj.plainStart[i + 1] &lt;= regExpMatch.index &amp;&amp; (obj.plainStart[i + 1] != null)) {i++;}var j = i;while (obj.plainStart[j + 1] &lt;= regExpMatch.index + regExpMatch[0].length &amp;&amp; (obj.plainStart[j + 1] != null)) {j++;}obj.changed.range.setStart(obj.plainNode[i], regExpMatch.index - obj.plainStart[i]);obj.changed.range.setEnd(obj.plainNode[j], regExpMatch.index + regExpMatch[0].length - obj.plainStart[j]);}}return found;}; window.WikEdTextify = function (obj) {obj.plain = obj.html;obj.plain = obj.plain.replace(/\n/g, " ");obj.plain = obj.plain.replace(/&lt;(style|script|object|applet|embed)\b[^&gt;]*&gt;.*?&lt;\/\1&gt;/g, "");obj.plain = obj.plain.replace(/&lt;br\b[^&gt;]*&gt; *()/g, "\n");obj.plain = obj.plain.replace(/(&lt;(blockquote|center|div|p|pre|gallery)\b[^&gt;]*&gt;)[\s\u0000]+/gi, "$1");obj.plain = obj.plain.replace(/[\s\u0000]+(&lt;\/(blockquote|center|div|p|pre|gallery)&gt;)/gi, "$1");var isRemove = [];obj.plain = obj.plain.replace(/(&lt;(\/?)pre\b([^&gt;]*)&gt;)/g, function (p, p1, p2, p3) {if (p2 == "") {if (/\bclass=\"wikEd\w+\"/.test(p3)) {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});obj.plain = obj.plain.replace(/&lt;\/?(address|blockquote|center|div|hr|isindex|p|pre)\b[^&gt;]*&gt;/g, "\0\0");obj.plain = obj.plain.replace(/[\s|\u0000]*(^|\n|\u0000)[\s|\u0000]*&lt;h[1-6]\b[^&gt;]*&gt;(.*?)&lt;\/h[1-6]&gt;[\s|\u0000]*()/g, "\0\0$2\0\0");obj.plain = obj.plain.replace(/&lt;\/?(dir|dl|menu|ol|ul)\b[^&gt;]*&gt;/g, "\0");obj.plain = obj.plain.replace(/&lt;\/(dd|dt|li)&gt;/g, "\0");obj.plain = obj.plain.replace(/&lt;\/?(select|textarea)\b[^&gt;]*&gt;/g, "\0");obj.plain = obj.plain.replace(/&lt;\/(option|legend|optgroup)&gt;/g, "\0");if (wikEdTableMode == true) {obj.plain = obj.plain.replace(/(&lt;table\b)([^&gt;]*)(&gt;)/gi, function (p, p1, p2, p3) {if (p2.match(/\bclass=/)) {p2 = p2.replace(/\bclass\s*=\s*([\'\"]?)[^&lt;&gt;\'\"\n]*?\2/g, "class=\"wikEdTableEdit\"");} else {p2 = " class=\"wikEdTableEdit\"";}return p1 + p2 + p3;});obj.plain = obj.plain.replace(/[\s\u0000]*(&lt;table\b[^&gt;]*&gt;)/g, "\0\0$1");obj.plain = obj.plain.replace(/(&lt;\/table&gt;)[\s\u0000]*()/g, "$1\0");obj.plain = obj.plain.replace(/&lt;(\/?(table|caption|tr|th|td)\b[^&gt;]*)&gt;/g, "\x01$1\x02");} else if (wikEdTableMode == false) {obj.plain = obj.plain.replace(/&lt;\/?(table|caption)\b[^&gt;]*&gt;/g, "\0");obj.plain = obj.plain.replace(/&lt;\/(tr|th|td)&gt;/g, "\0");}obj.plain = obj.plain.replace(/&lt;[^&gt;]*&gt;/g, "");obj.plain = obj.plain.replace(/\u0001/g, "&lt;");obj.plain = obj.plain.replace(/\u0002/g, "&gt;");obj.plain = obj.plain.replace(/[ \t\u00a0]+(\u0000)/g, "$1");obj.plain = obj.plain.replace(/(\u0000)[ \t\u00a0]+/g, "$1");obj.plain = obj.plain.replace(/\u0000+\n/g, "\n");obj.plain = obj.plain.replace(/\n\u0000+/g, "\n");obj.plain = obj.plain.replace(/\n*\u0000(\u0000|\n)+/g, "\n\n");obj.plain = obj.plain.replace(/\u0000/g, "\n");obj.plain = obj.plain.replace(/(&lt;\/table&gt;\n)\n+/g, "$1");if (obj.from == "whole") {obj.plain = obj.plain.replace(/^\s+|\s+$/g, "");}return;}; window.WikEdInactiveButtons = function () {if (wikEdFrameDocument.queryCommandEnabled("undo") == true) {document.getElementById("wikEdUndo").className = "wikEdButton";document.getElementById("wikEdUndoAll").className = "wikEdButton";} else {document.getElementById("wikEdUndo").className = "wikEdButtonInactive";document.getElementById("wikEdUndoAll").className = "wikEdButtonInactive";}if (wikEdFrameDocument.queryCommandEnabled("redo") == true) {document.getElementById("wikEdRedo").className = "wikEdButton";} else {document.getElementById("wikEdRedo").className = "wikEdButtonInactive";}if (wikEdLastVersion != null) {document.getElementById("wikEdRedoAll").className = "wikEdButton";} else {document.getElementById("wikEdRedoAll").className = "wikEdButtonInactive";}return;}; window.WikEdFixBasic = function (obj) {obj.plain = obj.plain.replace(/\u00a0/g, " ");obj.plain = obj.plain.replace(/ *\t[ \t]*()/g, " ");obj.plain = obj.plain.replace(/(\t| |&amp;nbsp;)+\n/g, "\n");obj.plain = obj.plain.replace(/\n( |&amp;nbsp;|\t)+\n/g, "\n\n");obj.plain = obj.plain.replace(/(^|\n)+(=+) *([^\n]*?) *(=+)(?=(\n|$))/g, function (p, p1, p2, p3, p4) {p3 = p3.replace(/\'{2,}/g, "");return "\n\n" + p2 + " " + p3 + " " + p2 + "\n\n";});var regExp = new RegExp("\\n=+ " + wikEdText['External links'] + "? =+\\n", "gi");obj.plain = obj.plain.replace(regExp, "\n== " + wikEdText['External links'] + " ==\n");regExp = new RegExp("\\n=+ " + wikEdText['See also'] + " =+\\n", "gi");obj.plain = obj.plain.replace(regExp, "\n== " + wikEdText['See also'] + " ==\n");regExp = new RegExp("\\n=+ " + wikEdText.References + "? =+\\n", "gi");obj.plain = obj.plain.replace(regExp, "\n== " + wikEdText.References + " ==\n");obj.plain = obj.plain.replace(/(^|\n)([\*\#\:\;]+|\{\||\|\-|\|\}|\|) *()/g, "$1$2 ");obj.plain = obj.plain.replace(/ +\n/g, "\n");obj.plain = obj.plain.replace(/\n+(\{\|)/g, "\n\n$1");obj.plain = obj.plain.replace(/(\n\|\}([^\}]|$)) *([^\n]*)[\n|$]+/g, "$1\n\n$3\n\n");obj.plain = obj.plain.replace(/(^|\n)([^\*\#\:\;\n][^\n]*)(?=\n[\*\#\:\;])/g, "$1$2\n\n");obj.plain = obj.plain.replace(/(^|\n)([\*\#\:\;][^\n]*?)(?=\n[^\*\#\:\;\n])/g, "$1$2\n\n");var lines = obj.plain.split("\n");obj.plain = "";var tableflag = false;for (var i = 0; i &lt; lines.length; i++) {var line = lines[i];if (/^ /.test(line) == false) {if (line.match(/^(\{\||\!|\|[^}])/) != null) {tableflag = true;} else if (line.match(/^\|\}/) != null) {tableflag = false;}if (tableflag == true) {line = line.replace(/ *\|\| *()/g, " || ");}if (!tableflag) {var regExp = new RegExp("^(\\[\\[" + wikEdText['wikicode Image'] + ":.*?\\]\\])", "ig");line = line.replace(regExp, "\n$1");regExp = new RegExp("(\\[\\[" + wikEdText['wikicode Image'] + ":.*?(\\[\\[.*?\\]\\].*?)*\\]\\])$", "ig");line = line.replace(regExp, "$1\n");line = line.replace(/^(\{\{.*?\}\})/g, "\n$1");line = line.replace(/(\{\{.*?\}\})$/g, "$1\n");}}obj.plain += line;if (i &lt; lines.length - 1) {obj.plain += "\n";}}obj.plain = obj.plain.replace(/\[\[(.*?)(\|.*?)?\]\]/g, function (p, p1, p2) {p1 = p1.replace(/_/g, " ");return "[[" + p1 + p2 + "]]";});obj.plain = obj.plain.replace(/\[\[ *([^\n]*?) *\]\]/g, "[[$1]]");obj.plain = obj.plain.replace(/\[ *([^\n]*?) *\]/g, "[$1]");obj.plain = obj.plain.replace(/ +\| +\]\]/g, "|]]");obj.plain = obj.plain.replace(/ +\| +\}\}/g, "|}}");obj.plain = obj.plain.replace(/\n(=+ [^\n]*? =+\n)\n+(\{\{.*?\}\})/g, "\n$1$2");obj.plain = obj.plain.replace(/(&amp;lt;!--) *([^\n]*?) *(--&amp;gt;)/g, "$1 $2 $3");var regExp = new RegExp("( |\\n)*(\\[\\[" + wikEdText['wikicode Category'] + ":[^\\n]*?\\]\\])( |\\n)*", "gi");obj.plain = obj.plain.replace(regExp, "\n\n$2\n\n");regExp = new RegExp("(\\[\\[category:[^\\n]*?\\]\\])\\n*(?=\\[\\[" + wikEdText['wikicode Category'] + ":[^\\n]*?\\]\\])", "gi");obj.plain = obj.plain.replace(regExp, "$1\n");obj.plain = obj.plain.replace(/\n{3,}/g, "\n\n");obj.plain = obj.plain.replace(/^\n+/, "");obj.plain = obj.plain.replace(/\n{2,}$/, "\n");return;}; window.WikEdFixPunct = function (obj) {WikEdFixBasic(obj);if (wikEdFixPunctFrench == true) {obj.plain = obj.plain.replace(/(«) */g, "$1 ");obj.plain = obj.plain.replace(/ *(»)/g, " $1");obj.plain = obj.plain.replace(/([a-zA-Z_À-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\]\}\)]) *([\.\,])(?=([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\[\{\(\s]|$))/g, "$1$2 ");obj.plain = obj.plain.replace(/([a-zA-Z_À-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\]\}\)]) *([\:\;\?\!])/g, "$1 $2 ");} else {obj.plain = obj.plain.replace(/([a-zA-Z_À-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\]\}\)]) *([\.\,\:\;])(?=([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\[\{\(\s]|$))/g, "$1$2 ");}obj.plain = obj.plain.replace(/ +$/g, "");obj.plain = obj.plain.replace(/ +\n/g, "\n");obj.plain = obj.plain.replace(/ {2,}/g, " ");return;}; window.WikEdFixUnicode = function (obj) {for (var i = 0; i &lt; wikEdSupportedChars.length; i++) {var replaceChar = String.fromCharCode(parseInt(wikEdSupportedChars[i][0], 16));var regExpStr = "&amp;amp;#0*" + parseInt(wikEdSupportedChars[i][0], 16) + ";|";regExpStr += "&amp;amp;#x0*" + wikEdSupportedChars[i][0] + ";";var regExp = new RegExp(regExpStr, "gi");obj.plain = obj.plain.replace(regExp, replaceChar);regExpStr = "&amp;amp;" + wikEdSupportedChars[i][1] + ";";regExp = new RegExp(regExpStr, "g");obj.plain = obj.plain.replace(regExp, replaceChar);}for (var i = 0; i &lt; wikEdProblemChars.length; i++) {replaceChar = "&amp;amp;" + wikEdProblemChars[i][1] + ";";regExpStr = "&amp;amp;#0*" + parseInt(wikEdProblemChars[i][0], 16) + ";|";regExpStr += "&amp;amp;#x0*" + wikEdProblemChars[i][0] + ";";regExp = new RegExp(regExpStr, "gi");obj.plain = obj.plain.replace(regExp, replaceChar);regExpStr = "\\u" + wikEdProblemChars[i][0];regExp = new RegExp(regExpStr, "g");obj.plain = obj.plain.replace(regExp, replaceChar);}for (var i = 0; i &lt; wikEdSpecialChars.length; i++) {var replaceChar = "&amp;amp;" + wikEdSpecialChars[i][1] + ";";var regExpStr = "&amp;amp;#0*" + parseInt(wikEdSpecialChars[i][0], 16) + ";|";regExpStr += "&amp;amp;#x0*" + wikEdSpecialChars[i][0] + ";";var regExp = new RegExp(regExpStr, "gi");obj.plain = obj.plain.replace(regExp, replaceChar);regExpStr = "\\u" + wikEdSpecialChars[i][0];var regExp = new RegExp(regExpStr, "g");obj.plain = obj.plain.replace(regExp, replaceChar);}obj.plain = obj.plain.replace(/\u2028/g, "\n");obj.plain = obj.plain.replace(/\u2029/g, "\n\n");return;}; window.WikEdFixMath = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/(.*?)((&amp;lt;math(\b.*?)&amp;gt;.*?&amp;lt;\/math&amp;gt;)|$)/gi, function (p, p1, p2) {p1 = p1.replace(/&amp;plus;/g, "+");p1 = p1.replace(/&amp;minus;/g, "\u2212");p1 = p1.replace(/&amp;middot;/g, "\xB7");p1 = p1.replace(/([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\,\{])-(\d)/g, "$1\u2212$2");p1 = p1.replace(/(\d *)x( *\d)/g, "$1\xD7$2");p1 = p1.replace(/(\d*\.?\d+)\^(\u2212?\d+\.?\d*)/g, "$1&amp;lt;sup&amp;gt;$2&amp;lt;/sup&amp;gt;");p1 = p1.replace(/([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9])\^(\u2212?\d+\.?\d*) /g, "$1&amp;lt;sup&amp;gt;$2&amp;lt;/sup&amp;gt;");p1 = p1.replace(/( |\d)\+\/(-|\u2212)( |\d)/g, "$1\xB1$3");p1 = p1.replace(/(\u00b9|&amp;sup1;)/g, "&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;");p1 = p1.replace(/(\u00b2|&amp;sup2;)/g, "&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;");p1 = p1.replace(/(\u00b3|&amp;sup3;)/g, "&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;");return p1 + p2;});return;}; window.WikEdFixChem = function (obj) {WikEdFixBasic(obj);var realElements = "H|He|Li|Be|B|C|N|O|F|Ne|Na|Mg|Al|Si|P|S|Cl|Ar|K|Ca|Sc|Ti|V|Cr|Mn|Fe|Co|Ni|Cu|Zn|Ga|Ge|As|Se|Br|Kr|Rb|Sr|Y|Zr|Nb|Mo|Tc|Ru|Rh|Pd|Ag|Cd|In|Sn|Sb|Te|I|Xe|Cs|Ba|Hf|Ta|W|Re|Os|Ir|Pt|Au|Hg|Tl|Pb|Bi|Po|At|Rn|Fr|Ra|Rf|Db|Sg|Bh|Hs|Mt|Ds|Rg|La|Ce|Pr|Nd|Pm|Sm|Eu|Gd|Tb|Dy|Ho|Er|Tm|Yb|Lu|Ac|Th|Pa|U|Np|Pu|Am|Cm|Bk|Cf|Es|Fm|Md|No|Lr";var pseudoElements = "|Me|Et|Pr|Bu|e";obj.plain = obj.plain.replace(/(^|[^a-z])h2o([^a-z]|$)/g, "$1H2O$2");obj.plain = obj.plain.replace(/(^|[^a-z])h3o+/g, "$1H3O+");obj.plain = obj.plain.replace(/(^|[^a-z])oh-/g, "$1OH+");var regExp = new RegExp("(^|[^a-zA-Z])(" + realElements.toLowerCase() + pseudoElements.toLowerCase() + ")([^a-zA-Z]|$)", "g");obj.plain = obj.plain.replace(regExp, function (p, p1, p2, p3) {if (p2 != "e") {p2 = p2.substr(0, 1).toUpperCase() + p2.substr(1).toLowerCase();}return p1 + p2 + p3;});obj.plain = obj.plain.replace(/&amp;plus;/g, "+");obj.plain = obj.plain.replace(/&amp;minus;/g, "\u2212");obj.plain = obj.plain.replace(/&amp;middot;/g, "\xB7");regExp = new RegExp("(" + realElements + pseudoElements + "|\\))(\\d*(\\+|-|\\u2212))", "g");obj.plain = obj.plain.replace(regExp, function (p, p1, p2, p3) {p2 = p2.replace(/-/g, "\u2212");return p1 + "&amp;lt;sup&amp;gt;" + p2 + "&amp;lt;/sup&amp;gt;";});regExp = new RegExp("(" + realElements + pseudoElements + "|\\))(\\d+)", "g");obj.plain = obj.plain.replace(regExp, "$1&amp;lt;sub&amp;gt;$2&amp;lt;/sub&amp;gt;");regExp = new RegExp("(\\d+) *(\\(|" + realElements + pseudoElements + ")", "g");obj.plain = obj.plain.replace(regExp, "$1$2");obj.plain = obj.plain.replace(/ *-+&amp;gt; *()/g, " \u2192 ");obj.plain = obj.plain.replace(/ *&amp;lt;-+ *()/g, " \u2190 ");obj.plain = obj.plain.replace(/ *(&amp;lt;==+&amp;gt;|&amp;hdarr;|&amp;harr;|\u21cc|\u2190 *\u2192) *()/g, " &lt;=&gt; ");obj.plain = obj.plain.replace(/([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|\)|&amp;gt;) +(-|\u2212) +([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|\()/g, "$1 \u2212 $3");return;}; window.WikEdFixUnits = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/&amp;amp;deg;|&amp;amp;#00b0;/g, "\xB0");obj.plain = obj.plain.replace(/&amp;amp;#00b5;|&amp;amp;mu;|&amp;amp;micro;/g, "\xB5");obj.plain = obj.plain.replace(/&amp;amp;Omega;|&amp;amp;#8486;/g, "\u03A9");obj.plain = obj.plain.replace(/( *\/ *|\d *)(Y|yotta|Z|zetta|E|exa|P|peta|T|tera|G|giga|M|mega|k|kilo|K|h|hecto|da|deca|d|deci|c|centi|m|mill?i|micro|u|µ|n|nano|p|pico|f|femto|a|atto|z|zepto|y|yocto|mibi|mebi|)(gramm?s?|g|metres?|meters?|m|amperes?|Amperes?|amps?|Amps?|A|Angstroms?|Angströms?|Å|Kelvins?|kelvins?|K|moles?|Moles?|mol|candelas?|cd|rad|Ci|sr|Hert?z|hert?z|Hz|newtons?|Newtons?|N|Joules?|joules?|J|watts?|Watts?|W|pascals?|Pascals?|Pa|lm|lx|C|volts?|Volts?|V|O|Farads?|F|Wb|T|H|S|bequerels?|Bequerels?|Bq|Gy|Sv|kat|centigrades?|°C|decibels?|db|dB|M|ohms?|Ohms?|\u03a9|sec|seconds?|s|minutes?|min|hour?|h|bits?|Bits?|bit|bytes?|Bytes?|B|bps|Bps)(?=[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, function (p, p1, p2, p3) {p1 = p1.replace(/ *\/ *()/g, "/");p1 = p1.replace(/(\d) *()/g, "$1 ");p2 = p2.replace(/yotta/g, "Y");p2 = p2.replace(/zetta/g, "Z");p2 = p2.replace(/exa/g, "E");p2 = p2.replace(/peta/g, "P");p2 = p2.replace(/tera/g, "T");p2 = p2.replace(/giga/g, "G");p2 = p2.replace(/mega/g, "M");p2 = p2.replace(/kilo/g, "k");p2 = p2.replace(/K/g, "k");p2 = p2.replace(/hecto/g, "h");p2 = p2.replace(/deca/g, "da");p2 = p2.replace(/deci/g, "d");p2 = p2.replace(/centi/g, "c");p2 = p2.replace(/mill?i/g, "m");p2 = p2.replace(/micro|u/g, "\xB5");p2 = p2.replace(/nano/g, "n");p2 = p2.replace(/pico/g, "p");p2 = p2.replace(/femto/g, "f");p2 = p2.replace(/atto/g, "a");p2 = p2.replace(/zepto/g, "z");p2 = p2.replace(/yocto/g, "y");p2 = p2.replace(/mibi/g, "mebi");p3 = p3.replace(/gramm?s?/g, "g");p3 = p3.replace(/metres?|meters?/g, "m");p3 = p3.replace(/amperes?|Amperes?|amps?|Amps?/g, "A");p3 = p3.replace(/Angstroms?|Angströms?/g, "\xC5");p3 = p3.replace(/Kelvins?|kelvins?/g, "K");p3 = p3.replace(/moles?|Moles?/g, "mol");p3 = p3.replace(/candelas?/g, "cd");p3 = p3.replace(/Hert?z|hert?z/g, "Hz");p3 = p3.replace(/newtons?|Newtons?/g, "N");p3 = p3.replace(/Joules?|joules?/g, "J");p3 = p3.replace(/watts?|Watts?/g, "W");p3 = p3.replace(/pascals?|Pascals?/g, "Pa");p3 = p3.replace(/volts?|Volts?/g, "V");p3 = p3.replace(/ohms?|Ohms?/g, "\u03A9");p3 = p3.replace(/bequerels?|Bequerels?/g, "Bq");p3 = p3.replace(/Farads?/g, "F");p3 = p3.replace(/bits?|Bits?/g, "bit");p3 = p3.replace(/bytes?|Bytes?/g, "B");p3 = p3.replace(/sec|seconds?/g, "s");p3 = p3.replace(/minutes?/g, "min");p3 = p3.replace(/hours?/g, "h");p3 = p3.replace(/sec|seconds?/g, "s");p3 = p3.replace(/bps/g, "bit/s");p3 = p3.replace(/Bps/g, "B/s");return p1 + p2 + p3;});obj.plain = obj.plain.replace(/ K(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " k$1$2");obj.plain = obj.plain.replace(/ m(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " M$1$2");obj.plain = obj.plain.replace(/ g(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " G$1$2");obj.plain = obj.plain.replace(/ t(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " T$1$2");obj.plain = obj.plain.replace(/ e(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " E$1$2");return;}; window.WikEdFixDashes = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/&amp;amp;mdash;/g, "\u2014");obj.plain = obj.plain.replace(/&amp;amp;ndash;/g, "\u2013");obj.plain = obj.plain.replace(/&amp;amp;minus;/g, "\u2212");obj.plain = obj.plain.replace(/([a-zA-Z\'\"�\]\}\)])( |&amp;amp;nbsp;)*�( |&amp;amp;nbsp;)*([a-zA-Z\'\"�\[\{\(])/g, "$1\u2014$4");obj.plain = obj.plain.replace(/([a-zA-Z\'\"�\]\}\)])( |&amp;amp;nbsp;)*--( |&amp;amp;nbsp;)*([a-zA-Z\'\"�\[\{\(])/g, "$1 \u2013 $4");obj.plain = obj.plain.replace(/([a-zA-Z\'\"�\]\&gt;] ) *(\u2212|�)(\d)/g, "$1\u2212$3");obj.plain = obj.plain.replace(/([a-zA-Z\'\"�\]\}])( |&amp;amp;nbsp;)*(\u2212|�)( |&amp;amp;nbsp;)*([a-zA-Z\'\"�\[\{])/g, "$1 \u2013 $5");obj.plain = obj.plain.replace(/(^|[ \(\|])(\d\d(\d\d)?)(\u2212|-|�)(\d\d)(\u2212|-|�)(\d\d(\d\d)?)([ \)\}\|,.;�]|$)/gm, "$1$2\u2013$5\u2013$7$9");return;}; window.WikEdFixHTML = function (obj) {WikEdFixBasic(obj);obj.html = obj.plain;obj.html = obj.html.replace(/\n/g, "&lt;br /&gt;");WikEdRemoveHighlighting(obj);obj.html = obj.html.replace(/&amp;lt;(\/?\w.*?)&amp;gt;/g, "&lt;$1&gt;");WikEdWikifyHTML(obj, true);obj.html = obj.html.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/g, "\n");obj.html = obj.html.replace(/&lt;/g, "&amp;lt;");obj.html = obj.html.replace(/&gt;/g, "&amp;gt;");obj.plain = obj.html;return;}; window.WikEdFixCaps = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/^([\*\#\:\;]+[ \'\"]*('+|\&amp;\w+\;|&amp;lt;[^\n]*?&amp;gt;|\{\{.*?\}\}[^\n]*|\d|[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\n])*)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\d].*?)?$/gm, function (p, p1, p2, p3) {if (p3.match(/^(http|ftp|alpha|beta|gamma|delta|epsilon|kappa|lambda|$)/) == null) {p3 = p3.substr(0, 1).toUpperCase() + p3.substr(1);}return p1 + p3;});obj.plain = obj.plain.replace(/^([\*\#\:\;]+[ \'\"]*\[\[)([^\n]*?)(\]\])/gm, function (p, p1, p2, p3) {p2 = p2.replace(/^((\&amp;\w+\;|[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|\d)*)([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9_].*)$/, function (p, p1, p2, p3) {if (p3.match(/^(http|ftp|alpha|beta|gamma|delta|epsilon|kappa|lambda)/) == null) {p3 = p3.substr(0, 1).toUpperCase() + p3.substr(1);}return p1 + p3;});p2 = p2.replace(/(\| *(\&amp;\w+\;|&amp;lt;[^\n]*?&amp;gt;|[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|\d)*)([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9_].*)$/, function (p, p1, p2, p3) {if (p3.match(/^(http|ftp|alpha|beta|gamma|delta|epsilon|kappa|lambda)/) == null) {p3 = p3.substr(0, 1).toUpperCase() + p3.substr(1);}return p1 + p3;});return p1 + p2 + p3;});obj.plain = obj.plain.replace(/^(=+ (\&amp;\w+\;|&amp;lt;[^\n]*?&amp;gt;|\d|[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\n])*)([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9_].*? =+)$/gm, function (p, p1, p2, p3) {if (p3.match(/^(http|ftp|alpha|beta|gamma|delta|epsilon|kappa|lambda)/) == null) {p3 = p3.substr(0, 1).toUpperCase() + p3.substr(1);}return p1 + p3;});regExp = new RegExp("(\\[\\[)" + wikEdText['wikicode Image'] + ":([\\w\xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9])([^\\n]*\\]\\])", "igm");obj.plain = obj.plain.replace(regExp, function (p, p1, p2, p3) {return p1 + wikEdText['wikicode Image'] + ":" + p2.toUpperCase() + p3;});return;}; window.WikEdFixTypos = function (obj) {WikEdFixBasic(obj);var fragment = [];var nextPos = 0;var regExp = new RegExp("{{\\s*lang\\s*\\|(.|\\n)*?}}", "g");while ((regExpMatch = regExp.exec(obj.plain)) != null) {fragment.push(obj.plain.substring(nextPos, regExpMatch.index));fragment.push(regExpMatch[0]);nextPos = regExp.lastIndex;}fragment.push(obj.plain.substring(nextPos));for (var i = 0; i &lt; wikEdTypoRulesFind.length; i++) {for (var j = 0; j &lt; fragment.length; j = j + 2) {fragment[j] = fragment[j].replace(wikEdTypoRulesFind[i], wikEdTypoRulesReplace[i]);}}obj.plain = fragment.join("");return;}; window.WikEdFixAll = function (obj) {WikEdFixBasic(obj);WikEdFixUnicode(obj);WikEdFixHTML(obj);WikEdFixCaps(obj);return;}; window.WikEdRemoveElements = function (tagNameArray) {for (var property in tagNameArray) {if (tagNameArray[property] != "string") {continue;}var elementArray = wikEdFrameDocument.getElementsByTagName(tagNameArray[property]);for (var i = 0; i &lt; elementArray.length; i++) {elementArray[i].parentNode.removeChild(elementArray[i]);}}return;}; window.WikEdFindBoundaries = function (word, line, para, whole, selection) {var startNode = selection.range.startContainer;var startNodeOffset = selection.range.startOffset;var endNode = selection.range.endContainer;var endNodeOffset = selection.range.endOffset;if (startNode.nodeType == 1) {startNode = startNode.childNodes[startNodeOffset];startNodeOffset = 0;}if (endNode.nodeType == 1) {endNode = endNode.childNodes[endNodeOffset];endNodeOffset = 0;}var startNodeIndex;var endNodeIndex;for (var i = 0; i &lt; whole.plainNode.length; i++) {if (startNode == whole.plainNode[i]) {startNodeIndex = i;}if (endNode == whole.plainNode[i]) {endNodeIndex = i;break;}}var foundWord = false;var foundLine = false;var foundPara = false;var regExp = new RegExp(".*[^\\w\\-\xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9]", "g");var plainPrev = "";var plain = "";for (var i = startNodeIndex; i &gt;= 0; i--) {plainPrev = plain;plain = whole.plainArray[i];plain = plain.replace(/&amp;amp;/g, "&amp;");plain = plain.replace(/&amp;lt;/g, "&lt;");plain = plain.replace(/&amp;gt;/g, "&gt;");if (plainPrev == "\n" &amp;&amp; (plain == "\n")) {para.range.setStartAfter(whole.plainNode[i + 1]);foundPara = true;break;} else if (plain == "\n") {if (foundWord == false) {word.range.setStartAfter(whole.plainNode[i]);foundWord = true;}if (foundLine == false) {line.range.setStartAfter(whole.plainNode[i]);foundLine = true;}} else if (foundWord == false) {if (i == startNodeIndex) {plain = plain.substr(0, startNodeOffset);}regExp.lastIndex = 0;if (regExp.exec(plain) != null) {word.range.setStart(whole.plainNode[i], regExp.lastIndex);foundWord = true;}}}if (foundPara == false) {para.range.setStartBefore(whole.plainNode[0]);}if (foundLine == false) {line.range.setStartBefore(whole.plainNode[0]);}if (foundWord == false) {word.range.setStartBefore(whole.plainNode[0]);}regExp = new RegExp("[^\\w\\-\xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9]", "g");foundWord = false;foundLine = false;foundPara = false;plain = "";for (var i = endNodeIndex; i &lt; whole.plainArray.length; i++) {plainPrev = plain;plain = whole.plainArray[i];plain = plain.replace(/&amp;amp;/g, "&amp;");plain = plain.replace(/&amp;lt;/g, "&lt;");plain = plain.replace(/&amp;gt;/g, "&gt;");if (plainPrev == "\n" &amp;&amp; (plain == "\n")) {para.range.setEndBefore(whole.plainNode[i]);foundPara = true;break;} else if (plain == "\n") {if (foundWord == false) {word.range.setEndBefore(whole.plainNode[i]);foundWord = true;}line.range.setEndBefore(whole.plainNode[i]);foundLine = true;} else if (foundWord == false) {if (i == endNodeIndex) {regExp.lastIndex = endNodeOffset;} else {regExp.lastIndex = 0;}var regExpArray = regExp.exec(plain);if (regExpArray != null) {word.range.setEnd(whole.plainNode[i], regExpArray.index);foundWord = true;}}}if (foundPara == false) {para.range.setEndAfter(whole.plainNode[whole.plainArray.length - 1]);}if (foundLine == false) {line.range.setEndAfter(whole.plainNode[whole.plainArray.length - 1]);}if (foundWord == false) {word.range.setEndAfter(whole.plainNode[whole.plainArray.length - 1]);}return;}; window.WikEdRemoveHighlightingWikify = function (obj, wikify) {if (obj.html != "" || (wikify == true)) {WikEdRemoveHighlighting(obj);if (obj.htmlCode == true &amp;&amp; (wikify != false)) {WikEdWikifyHTML(obj, false);}}return;}; window.WikEdWikifyHTML = function (obj, relaxed) {var regExpStr;var regExp;var regExpMatch;obj.html = obj.html.replace(/&lt;(style)\b[^&gt;]*&gt;.*?&lt;\/\1&gt;/gi, "");obj.html = obj.html.replace(/&lt;span[^&gt;]*class=\"editsection\"[^&gt;]*&gt;.*?&lt;\/span&gt;\s*()/gi, "");obj.html = obj.html.replace(/&lt;span\b[^&gt;]*\bclass=\"mw-headline\"[^&gt;]*&gt;(.*?)&lt;\/span&gt;\s*()/g, "$1");obj.html = obj.html.replace(/&lt;h3\b[^&gt;]*\bid=\"siteSub\"[^&gt;]*&gt;.*?&lt;\/h3&gt;\s*()/g, "");obj.html = obj.html.replace(/&lt;div\b[^&gt;]*\bid=\"contentSub\"[^&gt;]*&gt;.*?&lt;\/div&gt;\s*()/g, "");obj.html = obj.html.replace(/&lt;div\b[^&gt;]*\bid=\"jump-to-nav\"[^&gt;]*&gt;.*?&lt;\/div&gt;\s*()/g, "");obj.html = obj.html.replace(/&lt;table\b[^&gt;]*?\bid=\"toc\"[^&gt;]*&gt;.*?&lt;\/table&gt;\s*()/g, "");obj.html = obj.html.replace(/&lt;div\b[^&gt;]*?\bclass=\"printfooter\"[^&gt;]*&gt;[^&lt;&gt;\"]+\"&lt;a\b[^&gt;]*&gt;[^&lt;]+&lt;\/a&gt;\"&lt;\/div&gt;\s*()/g, "");regExp = /&lt;div\b[^&gt;]*\bid=\"catlinks\"[^&gt;]*&gt;(.*?)&lt;\/div&gt;\s*()/g;while (regExp.test(obj.html) == true) {obj.html = obj.html.replace(regExp, "$1");}regExp = /&lt;p\b[^&gt;]*?\bclass=\"catlinks\"[^&gt;]*&gt;(.*?)&lt;a\b[^&gt;]*&gt;[^&lt;&gt;]+&lt;\/a&gt;: (.*?)&lt;\/p&gt;/g;while (regExp.test(obj.html) == true) {obj.html = obj.html.replace(regExp, "$1$2");}obj.html = obj.html.replace(/\s*&lt;p [^&gt;]*&gt;\s*&lt;!--\[if !supportLists\]--&gt;.*?&lt;!--\[endif\]--&gt;\s*(.*?)\s*&lt;\/p&gt;\s*()/g, "* $1\n");var footnotes = {};obj.html = obj.html.replace(/&lt;div\b[^&gt;]* id="ftn(\d+)"[^&gt;]*&gt;\s*&lt;p class="MsoFootnoteText"&gt;\s*&lt;a(.|\n)*?&lt;\/a&gt;((.|\n)*?)&lt;\/p&gt;\s*&lt;\/div&gt;/g, function (p, p1, p2, p3) {footnotes[p1] = p3.replace(/^(\s|&lt;br\b[^&gt;]*&gt;)|(\s|&lt;br\b[^&gt;]*&gt;)$/g, "");return "";});obj.html = obj.html.replace(/&lt;a\b[^&gt;]* name="_ftnref(\d+)"[^&gt;]*&gt;(.|\n)*?&lt;!--\[endif\]--&gt;\s*&lt;\/span&gt;\s*&lt;\/span&gt;\s*&lt;\/a&gt;/g, function (p, p1) {var ref = "&amp;lt;ref name=\"footnote_" + p1 + "\"&amp;gt;" + footnotes[p1] + "&amp;lt;/ref&amp;gt;";return ref;});obj.html = obj.html.replace(/&lt;!--\[if !supportFootnotes\]--&gt;(\s|&lt;br\b[^&gt;]*&gt;)*&lt;hr\b[^&gt;]*&gt;\s*&lt;!--\[endif\]--&gt;(\s|&lt;br\b[^&gt;]*&gt;)*/g, "");obj.html = obj.html.replace(/(&lt;v:imagedata\b[^&gt;]*? src="[^"&gt;]*?[\\\/]clip_image\d+(\.\w+)"[^&gt;]*? o:title="([^"&gt;]*)"[^&gt;]*&gt;(.|\s)*?&lt;img\b[^&gt;]*? src="[^"&gt;]*?[\\\/])clip_image\d+\.\w+("[^&gt;]*&gt;)/g, "$1$3$2$5");obj.html = obj.html.replace(/&lt;(span|div|p)\b *(.*?) *\/?&gt;/gi, function (p, p1, p2) {return "&lt;" + p1 + WikEdSanitizeAttributes(p1, p2, relaxed) + "&gt;";});var isRemove = [];obj.html = obj.html.replace(/(&lt;(\/?)span\b([^&gt;]*)&gt;)/gi, function (p, p1, p2, p3) {if (p2 == "") {if (p3 == "") {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});var isRemove = [];obj.html = obj.html.replace(/(&lt;(\/?)p\b([^&gt;]*)&gt;)/gi, function (p, p1, p2, p3) {if (p2 == "") {if (p3 == "") {isRemove.push(true);return "\0\0";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "\0\0";}return p1;});obj.html = obj.html.replace(/&amp;(?!(amp;|lt;|gt;))/g, "&amp;amp;");obj.html = obj.html.replace(/&lt;!--.*?--&gt;/g, "");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;hr\b[^&gt;]*&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0\0----\0\0");obj.html = obj.html.replace(/&lt;(i|em|dfn|var|cite)\b[^&gt;]*&gt;/gi, "''");obj.html = obj.html.replace(/&lt;\/(i|em|dfn|var|cite)\b[^&gt;]*&gt;/gi, "''");obj.html = obj.html.replace(/&lt;(b|strong)\b[^&gt;]*&gt;/gi, "'''");obj.html = obj.html.replace(/&lt;\/(b|strong)\b[^&gt;]*&gt;/gi, "'''");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*(^|\n|&lt;br\b[^&gt;]*&gt;|\u0000)(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;h1\b[^&gt;]*&gt;(.*?)&lt;\/h1&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0\0= $4 =\0\0");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*(^|\n|&lt;br\b[^&gt;]*&gt;|\u0000)(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;h2\b[^&gt;]*&gt;(.*?)&lt;\/h2&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0\0== $4 ==\0\0");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*(^|\n|&lt;br\b[^&gt;]*&gt;|\u0000)(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;h3\b[^&gt;]*&gt;(.*?)&lt;\/h3&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0\0=== $4 ===\0\0");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*(^|\n|&lt;br\b[^&gt;]*&gt;|\u0000)(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;h4\b[^&gt;]*&gt;(.*?)&lt;\/h4&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0\0==== $4 ====\0\0");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*(^|\n|&lt;br\b[^&gt;]*&gt;|\u0000)(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;h5\b[^&gt;]*&gt;(.*?)&lt;\/h5&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0\0===== $4 =====\0\0");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*(^|\n|&lt;br\b[^&gt;]*&gt;|\u0000)(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;h6\b[^&gt;]*&gt;(.*?)&lt;\/h6&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0\0====== $4 ======\0\0");obj.html = obj.html.replace(/&lt;(h[0-6])\b[^&gt;]*&gt;(.*?)&lt;\/\1&gt;/gi, "$2");if (wikEdTableMode == false) {obj.html = obj.html.replace(/(\s|\u0000|&lt;br\b[^&gt;]*&gt;)&lt;\/?(thead|tbody|tfoot)\b[^&gt;]*&gt;(\s|\u0000|&lt;br\b[^&gt;]*&gt;)*()/gi, "$1");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;(col)\b[^&gt;]*&gt;.*?&lt;\/\2&gt;(|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;(colgroup)\b[^&gt;]*&gt;.*?&lt;\/\2&gt;(|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "");obj.html = obj.html.replace(/(&lt;(td|th|caption)\b[^&gt;]*&gt;)(.*?)(&lt;\/\2&gt;)/gi, function (p, p1, p2, p3, p4) {p3 = p3.replace(/^(\s|&lt;br\b[^&gt;]*&gt;|\u0000&gt;)+/gi, "");p3 = p3.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000&gt;)+$/gi, "");p3 = p3.replace(/&lt;br\b[^&gt;]*&gt; *()/gi, "&amp;lt;br /&amp;gt;");return p1 + p3 + p4;});obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;\/(tr|thead|tbody|tfoot)&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;td&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0| ");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;(td) +([^&gt;]*)&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, function (p, p1, p2, p3, p4) {p3 = WikEdSanitizeAttributes(p2, p3, relaxed);if (p3 == "") {return "\0| ";} else {return "\0|" + p3 + " | ";}});obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;th&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0| ");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;(th) +([^&gt;]*)&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, function (p, p1, p2, p3, p4) {p3 = WikEdSanitizeAttributes(p2, p3, relaxed);if (p3 == "") {return "\0| ";} else {return "\0|" + p3 + " | ";}});obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;tr&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0|-\0");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;(tr) +([^&gt;]*)&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, function (p, p1, p2, p3, p4) {return "\0|-" + WikEdSanitizeAttributes(p2, p3, relaxed) + "\0";});obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;caption&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "\0|+ ");obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*&lt;(caption) +([^&gt;]*)&gt;(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, function (p, p1, p2, p3, p4) {p3 = WikEdSanitizeAttributes(p2, p3, relaxed);if (p3 == "") {return "\0|+ ";} else {return "\0|+" + p3 + " | ";}});obj.html = obj.html.replace(/\s*&lt;\/(td|th|caption)&gt;\s*()/gi, "");obj.html = obj.html.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/gi, "\0");obj.html = obj.html.replace(/[\s\u0000]*&lt;table&gt;[\s\u0000]*(\|-(?=[\n\u0000]))?/gi, "\0\0{|\0");obj.html = obj.html.replace(/[\s\u0000]*&lt;(table) +([^&gt;]*)&gt;[\s\u0000]*(\|-(?=[\n\u0000]))?/gi, function (p, p1, p2) {var table = "\0\0{|";if (wikEdWikifyTableParameters != "") {table += " " + wikEdWikifyTableParameters;} else {table += WikEdSanitizeAttributes(p1, p2);}return table;});obj.html = obj.html.replace(/[\s\u0000]*&lt;\/table&gt;[\s\u0000]*()/gi, "\0|}\0\0");} else if (wikEdTableMode == true) {obj.html = obj.html.replace(/(&lt;table\b)([^&gt;]*)(&gt;)/gi, function (p, p1, p2, p3) {if (p2.match(/\bclass=/)) {p2 = p2.replace(/\bclass\s*=\s*([\'\"]?)[^&lt;&gt;\'\"\n]*?\2/g, "class=\"wikEdTableEdit\"");} else {p2 = " class=\"wikEdTableEdit\"";}return p1 + p2 + p3;});obj.html = obj.html.replace(/(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*(&lt;table\b[^&gt;]*&gt;)/gi, "\0\0$2");obj.html = obj.html.replace(/(&lt;\/table&gt;)(\s|&lt;br\b[^&gt;]*&gt;|\u0000)*()/gi, "$1\0");}if (wikEdTableMode == true) {obj.html = obj.html.replace(/&lt;br\b[^&gt;]*&gt;[\r\n ]*()/gi, "\0");}var regExpMatch = [];var regExpStr = "(&lt;a(\\b[^&gt;]*)&gt;(.*?)&lt;/a&gt;)";var regExp = new RegExp(regExpStr, "gi");obj.html = obj.html.replace(regExp, function (p, p1, p2, p3) {var linkParam = p2;var linkText = p3;var hrefUrlParam;var hrefUrlArticle;var imgWidth = "";var hrefParamTitle;var hrefParamISBN;var hrefParamSpecial;var linkArticleAnchor = "";var linkArticle = "";var linkTitle = "";var hrefValue;regExpMatch = linkParam.match(/ href=\"([^\"&gt;]*)\"/);if (regExpMatch != null) {hrefValue = regExpMatch[1];hrefValue = WikEdRelativeToAbsolutePath(hrefValue);regExpStr = wikEdServer + "(" + wikEdArticlePath + "([^\\\"\\?#]+)|" + wikEdScript + "\\?([^\\\"#]*))(#[^\\\"]*)?";regExp = new RegExp(regExpStr);regExpMatch = regExp.exec(hrefValue);if (regExpMatch != null) {if (regExpMatch[2] != null) {hrefUrlArticle = regExpMatch[2];} else if (regExpMatch[3] != null) {hrefUrlParam = regExpMatch[3];}if (regExpMatch[4] != null) {linkArticleAnchor = regExpMatch[4];linkArticleAnchor = linkArticleAnchor.replace(/\.([0-9A-F]{2})/g, "%$1");linkArticleAnchor = decodeURIComponent(linkArticleAnchor);linkArticleAnchor = linkArticleAnchor.replace(/_\d+$/g, "");}if (hrefUrlParam != null) {regExp = new RegExp("(^|&amp;amp;)(\\w+)=([^\\\"\\&amp;]+)", "g");while ((regExpMatch = regExp.exec(hrefUrlParam)) != null) {switch (regExpMatch[2]) {case "title":hrefParamTitle = regExpMatch[3];break;case "isbn":hrefParamISBN = regExpMatch[3];break;case "redlink":break;case "action":hrefParamAction = regExpMatch[3];if (hrefParamAction == "edit") {break;}default:hrefParamSpecial = true;}}}if (hrefParamISBN != null &amp;&amp; (hrefParamSpecial != true)) {var isbn = hrefParamISBN;regExpMatch = /((\d\-?){13}|(\d\-?){10})/.exec(linkText);if (regExpMatch != null) {isbn = regExpMatch[1];}return "ISBN " + isbn;} else if (hrefParamTitle != null &amp;&amp; (hrefParamSpecial != true)) {linkArticle = hrefParamTitle;linkArticle = linkArticle.replace(/_/g, " ");linkArticle = decodeURIComponent(linkArticle);} else if (hrefUrlArticle != null) {linkArticle = hrefUrlArticle;linkArticle = linkArticle.replace(/_/g, " ");linkArticle = decodeURIComponent(linkArticle);} else {regExpMatch = / title=\"([^\"&gt;]+)\"/.exec(linkParam);if (regExpMatch != null) {linkArticle = regExpMatch[1];}}}if (linkArticle != "") {regExpStr = "^&lt;img\\b[^&gt;]*?\\bwidth=\\\"(\\d+)\\\"[^&gt;]*?&gt;$";regExp = new RegExp(regExpStr);regExpMatch = regExp.exec(linkText);if (regExpMatch != null) {imgWidth = regExpMatch[1];imgWidth = "|" + imgWidth + "px";if (linkTitle != "" &amp;&amp; (linkTitle != "Enlarge")) {linkTitle = "|" + linkTitle;return "[[" + linkArticle + imgWidth + linkTitle + "]]";} else {return "[[" + linkArticle + imgWidth + "]]";}}var regExp = new RegExp("^" + wikEdText['wikicode Category'] + ":(.*)", "i");regExpMatch = regExp.exec(linkArticle);if (regExpMatch != null) {return "[[" + wikEdText['wikicode Category'] + ":" + regExpMatch[1].substr(0, 1).toUpperCase() + linkText.substr(1) + "]]";}if (linkArticle == linkText.substr(0, 1).toUpperCase() + linkText.substr(1)) {return "[[" + linkText + linkArticleAnchor + "]]";}regExpMatch = /^(January|February|March|April|May|June|July|August|September|October|November|December) (\d{1,2})$/.exec(linkArticle);if (regExpMatch != null) {var month = regExpMatch[1];var day = regExpMatch[2];if (linkText == day + " " + month) {return "[[" + linkArticle + linkArticleAnchor + "]]";}}if (linkText.substr(0, 1).toLowerCase() != linkText.substr(0, 1).toUpperCase()) {if (linkText.substr(0, 1) == linkText.substr(0, 1).toLowerCase()) {linkArticle = linkArticle.substr(0, 1).toLowerCase() + linkArticle.substr(1);}}regExpStr = "^" + linkArticle.replace(/(\W)/g, "\\$1") + "([\\w\xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9]+)$";regExp = new RegExp(regExpStr);regExpMatch = regExp.exec(linkText);if (regExpMatch != null) {return "[[" + linkArticle + linkArticleAnchor + "]]" + regExpMatch[1];}return "[[" + linkArticle + linkArticleAnchor + "|" + linkText + "]]";}if (hrefValue != "") {regExpMatch = /^http:\/\/www\.ncbi\.nlm\.nih\.gov\/entrez\/query\.fcgi\?cmd=Retrieve&amp;amp;db=pubmed&amp;amp;.*?&amp;amp;list_uids=(\d+)/.exec(hrefValue);if (regExpMatch != null) {return "PMID " + regExpMatch[1];}regExpMatch = /^http:\/\/dx\.doi\.org\/(.*)/.exec(hrefValue);if (regExpMatch != null) {return "{{doi|" + regExpMatch[1] + "}}";}return "[" + hrefValue + " " + linkText + "]";}}return p1;});var regExp = new RegExp("&lt;span\\b[^&gt;]*&gt;(\\[\\[" + wikEdText['wikicode Category'] + ":[^\\]]+\\]\\])&lt;\\/span&gt;[\\s\\u0000\\|]*", "gi");obj.html = obj.html.replace(regExp, "$1\0");obj.html = obj.html.replace(/\[\[Digital object identifier\|DOI\]\]:(\{\{doi\|[^\}\s]+\}\})/gi, "$1");obj.html = obj.html.replace(/&lt;img\b([^&gt;]*)&gt;/gi, function (p, p1) {var address = "";var regExpMatch = /\bsrc\s*=\s*(\'|\")([^\'\"]*)(\'|\")/i.exec(p1);if (regExpMatch != null) {address = regExpMatch[2].replace(/^ +| +$/g, "");}var imgAlt = "";regExpMatch = /\balt\s*=\s*(\'|\")([^\'\"]*)(\'|\")/i.exec(p1);if (regExpMatch != null) {imgAlt = regExpMatch[2].replace(/^ +| +$/g, "");imgAlt = imgAlt.replace(/&amp;amp;nbsp;|[\n\u0000]/g, " ");imgAlt = imgAlt.replace(/ {2,}/g, " ");imgAlt = imgAlt.replace(/^ | $/g, "");if (imgAlt != "") {imgAlt = "|" + imgAlt;}}var imgWidth = "";regExpMatch = /\bwidth\s*=\s*(\'|\")([^\'\"]*)(\'|\")/i.exec(p1);if (regExpMatch != null) {imgWidth = "|" + regExpMatch[2].replace(/^ +| +$/g, "") + "px";}var imgLink = "";regExpMatch = /([^\/]+)$/.exec(address);if (regExpMatch != null) {imgLink = regExpMatch[1];if (imgLink != "") {return "[[" + wikEdText['wikicode Image'] + ":" + imgLink + imgWidth + imgAlt + "]]";}}return "";});var listObj = {};listObj.prefix = "";obj.html = obj.html.replace(/[\s\u0000]*&lt;(\/?(ol|ul|li|dl|dd|dt))\b[^&gt;]*&gt;[\s\u0000]*()/gi, function (p, p1, p2, p3, p4) {switch (p1.toLowerCase()) {case "ol":listObj.prefix += "#";return "\0";case "ul":listObj.prefix += "*";return "\0";case "dl":listObj.prefix += ":";return "\0";case "/ol":case "/ul":case "/dl":listObj.prefix = listObj.prefix.substr(0, listObj.prefix.length - 1);return "\0\0";case "li":case "dd":return "\0" + listObj.prefix + " ";case "dt":return "\0" + listObj.prefix.replace(/:$/, ";") + " ";case "/li":case "/dt":case "/dd":return "";default:;}return "";});obj.html = obj.html.replace(/[\n|\u0000]+[#\*:\;]+ (?=[\n|\u0000])/g, "");obj.html = obj.html.replace(/(&lt;\/?)(\/?)(\w+)(.*?&gt;)/g, function (p, p1, p2, p3, p4) {if (wikEdTableMode == true) {if (/^(table|tr|td|th|thead|tbody|tfoot|col|colgroup|caption)$/i.test(p3)) {var tag = p1 + p2 + p3 + p4;tag = tag.replace(/&lt;/g, "\x01");tag = tag.replace(/&gt;/g, "\x02");return tag;} else {return "";}} else if (/^(big|blockquote|colgroup|center|code|del|div|font|ins|p|pre|s|small|span|strike|sub|sup|tt|u|rb|rp|rt|ruby|nowiki|math|gallery|noinclude|includeonly|ref|references|source|poem)$/i.test(p3)) {return p1 + p2 + p3 + p4;} else {return "";}});obj.html = obj.html.replace(/&lt;(\w+) +(.*?) *(\/?)&gt;/g, function (p, p1, p2, p3) {if (p3 != "") {p3 = " " + p3;}return "&lt;" + p1 + WikEdSanitizeAttributes(p1, p2, relaxed) + p3 + "&gt;";});obj.html = obj.html.replace(/&lt;u&gt;(\'\'\'|\'\'|\s|\u0000)*([\s\u0000]+)(\'\'\'|\'\'|\s|\u0000)*&lt;\/u&gt;/g, "$2");obj.html = obj.html.replace(/\'\'\'(\'\'|\s|\u0000)*([\s\u0000]+)(\'\'|\s|\u0000)*\'\'\'/g, "$2");obj.html = obj.html.replace(/\'\'([\s\u0000]+)\'\'/g, "$1");obj.html = obj.html.replace(/(\u0000(={1,6}) *)(&lt;u&gt;|\'\'\'|\'\')+(.*?)(&lt;\/u&gt;|\'\'\'|\'\')+( *\2\u0000)/gi, "$1$4$6");obj.html = obj.html.replace(/\u0000(={1,6})\s+\1\u0000/g, "\0");obj.html = obj.html.replace(/([\s\u0000]*\u0000[\s\u0000]*)/g, function (p, p1) {return p1.replace(/\n/g, "\0");});obj.html = obj.html.replace(/\u0000\s+/g, "\0");obj.html = obj.html.replace(/\s+(?=\u0000)/g, "\0");obj.html = obj.html.replace(/\u0000{2,}(\|)/g, "\0$1");obj.html = obj.html.replace(/&gt;\s+\u0000/g, "&gt;\0");obj.html = obj.html.replace(/\u0000\s+&lt;/g, "\0&lt;");obj.html = obj.html.replace(/( *)&lt;(big|colgroup|code|del|font|ins|pre|s|small|span|strike|sub|sup|tt|u|rb|rp|rt|ruby|nowiki)\b[^&gt;]*&gt;&lt;\/\1&gt; *()/gi, "$1");obj.html = obj.html.replace(/[\s\u0000]*&lt;(blockquote|center|div|math|gallery|noinclude|includeonly|ref|references|source|poem)\b[^&gt;]*&gt;&lt;\/\1&gt;[\s\u0000]*()/gi, "\0\0");obj.html = obj.html.replace(/(&lt;(blockquote|center|div|p|pre|gallery)\b[^&gt;]*&gt;)[\s\u0000]+/gi, "$1");obj.html = obj.html.replace(/[\s\u0000]+(&lt;\/(blockquote|center|div|p|pre|gallery)&gt;)/gi, "$1");obj.html = obj.html.replace(/&lt;/g, "&amp;lt;");obj.html = obj.html.replace(/&gt;/g, "&amp;gt;");obj.html = obj.html.replace(/\u0001/g, "&lt;");obj.html = obj.html.replace(/\u0002/g, "&gt;");obj.html = obj.html.replace(/\u0000+\n/g, "\n");obj.html = obj.html.replace(/\n\u0000+/g, "\n");obj.html = obj.html.replace(/\n*\u0000(\u0000|\n)+/g, "\n\n");obj.html = obj.html.replace(/\u0000/g, "\n");obj.html = obj.html.replace(/\n/g, "&lt;br /&gt;");obj.html = obj.html.replace(/(&lt;\/table&gt;&lt;br\b[^&gt;]*&gt;)(&lt;br\b[^&gt;]*&gt;)+/g, "$1");if (obj.from == "whole") {obj.html = obj.html.replace(/^(&lt;br\b[^&gt;]*&gt;)+/gi, "");obj.html = obj.html.replace(/(&lt;br\b[^&gt;]*&gt;)+$/gi, "");}return;}; window.WikEdRelativeToAbsolutePath = function (relativePath, fullPath) {var absolutePath = "";if (fullPath == null) {fullPath = window.location.href;fullPath = fullPath.replace(/#.*/, "");fullPath = fullPath.replace(/\?.*/, "");}if (/^\.\/()/.test(relativePath) == true) {relativePath = relativePath.replace(/^\.\/()/, "");fullPath = fullPath.replace(/\/[^\/]*$/, "");absolutePath = fullPath + "/" + relativePath;} else if (/^\.\.\/()/.test(relativePath) == true) {while (/^\.\.\/()/.test(relativePath) == true) {relativePath = relativePath.replace(/^\.\.\/()/, "");fullPath = fullPath.replace(/\/[^\/]*$/, "");}absolutePath = fullPath + "/" + relativePath;} else {absolutePath = relativePath;}return absolutePath;}; window.WikEdSanitizeAttributes = function (tag, attributes, relaxed) {var common;var tablealign;var tablecell;var table;if (relaxed == true) {common = "dir|style|class";tablealign = "|align|char|charoff|valign";table = "|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor";tablecell = "|abbr|axis|headers|scope|rowspan|colspan|nowrap|width|height|bgcolor";} else {common = "dir";table = "|border|cellspacing|cellpadding|align|bgcolor";tablealign = "|align|valign";tablecell = "|rowspan|colspan|nowrap|bgcolor";}tag = tag.toLowerCase();var sanitized = "";var regExp = /(\w+)\s*=\s*((\'|\")(.*?)\3|(\w+))/g;var regExpMatch;while ((regExpMatch = regExp.exec(attributes)) != null) {var attrib = regExpMatch[1];var attribValue = regExpMatch[4] || regExpMatch[5];if (attribValue == "") {continue;}var valid = false;if (relaxed == true) {if ("center|em|strong|cite|code|var|sub|supdl|dd|dt|tt|b|i|big|small|strike|s|u|rb|rp|ruby".indexOf(tag) &gt;= 0) {if (common.indexOf(attrib) &gt;= 0) {valid = true;}} else if ("div|span|h1|h2|h3|h4|h5|h6|p".indexOf(tag) &gt;= 0) {if ((common + "|align").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("blockquote".indexOf(tag) &gt;= 0) {if ((common + "|cite").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("br".indexOf(tag) &gt;= 0) {if ("style|clear".indexOf(attrib) &gt;= 0) {valid = true;}} else if ("pre".indexOf(tag) &gt;= 0) {if ((common + "|width").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("ins|del".indexOf(tag) &gt;= 0) {if ((common + "|cite|datetime").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("ul".indexOf(tag) &gt;= 0) {if ((common + "|type").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("ol".indexOf(tag) &gt;= 0) {if ((common + "|type|start").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("li".indexOf(tag) &gt;= 0) {if ((common + "|type|value").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("table".indexOf(tag) &gt;= 0) {if ((common + table).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("caption".indexOf(tag) &gt;= 0) {if ((common + "|align").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("thead|tfoot|tbody".indexOf(tag) &gt;= 0) {if ((common + tablealign).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("colgroup|col".indexOf(tag) &gt;= 0) {if ((common + "|span|width" + tablealign).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("tr".indexOf(tag) &gt;= 0) {if ((common + "|bgcolor" + tablealign).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("td|th".indexOf(tag) &gt;= 0) {if ((common + tablecell + tablealign).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("font".indexOf(tag) &gt;= 0) {if ((common + "|size|color|face").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("hr".indexOf(tag) &gt;= 0) {if ((common + "|noshade|size|width").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("rt".indexOf(tag) &gt;= 0) {if ((common + "|rbspan").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("ref".indexOf(tag) &gt;= 0) {if ("name".indexOf(attrib) &gt;= 0) {valid = true;}} else if ("references".indexOf(tag) &gt;= 0) {} else if ("source".indexOf(tag) &gt;= 0) {if ("lang".indexOf(attrib) &gt;= 0) {valid = true;}} else if ("poem".indexOf(tag) &gt;= 0) {} else if ("gallery".indexOf(tag) &gt;= 0) {if ((common + "|perrow|widths|heights").indexOf(attrib) &gt;= 0) {valid = true;}}} else {if ("center|em|strong|cite|code|var|sub|supdl|dd|dt|tt|b|i|big|small|strike|s|u|rb|rp|ruby|blockquote|pre|ins|del".indexOf(tag) &gt;= 0) {if (common.indexOf(attrib) &gt;= 0) {valid = true;}} else if ("div|span|h1|h2|h3|h4|h5|h6|p".indexOf(tag) &gt;= 0) {if ((common + "|align").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("br".indexOf(tag) &gt;= 0) {if ("clear".indexOf(attrib) &gt;= 0) {valid = true;}} else if ("ul".indexOf(tag) &gt;= 0) {if ((common + "|type").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("ol".indexOf(tag) &gt;= 0) {if ((common + "|type|start").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("li".indexOf(tag) &gt;= 0) {if ((common + "|type|value").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("table".indexOf(tag) &gt;= 0) {if ((common + table).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("caption".indexOf(tag) &gt;= 0) {if ((common + "|align").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("thead|tfoot|tbody".indexOf(tag) &gt;= 0) {if ((common + tablealign).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("colgroup|col".indexOf(tag) &gt;= 0) {if ((common + "|span" + tablealign).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("tr".indexOf(tag) &gt;= 0) {if ((common + "|bgcolor" + tablealign).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("td|th".indexOf(tag) &gt;= 0) {if ((common + tablecell + tablealign).indexOf(attrib) &gt;= 0) {valid = true;}} else if ("font".indexOf(tag) &gt;= 0) {if ((common + "|color").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("hr".indexOf(tag) &gt;= 0) {if ((common + "|noshade|size").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("rt".indexOf(tag) &gt;= 0) {if ((common + "|rbspan").indexOf(attrib) &gt;= 0) {valid = true;}} else if ("ref".indexOf(tag) &gt;= 0) {if ("name".indexOf(attrib) &gt;= 0) {valid = true;}} else if ("references".indexOf(tag) &gt;= 0) {} else if ("source".indexOf(tag) &gt;= 0) {if ("lang".indexOf(attrib) &gt;= 0) {valid = true;}} else if ("poem".indexOf(tag) &gt;= 0) {} else if ("gallery".indexOf(tag) &gt;= 0) {}}if (valid == true) {if (attrib == "align") {if ("tr|td|th".indexOf(tag) &gt;= 0) {if (attribValue == "left") {attribValue = "";}}} else if (attrib == "valign") {if ("tr|td|th".indexOf(tag) &gt;= 0) {if (attribValue == "top") {attribValue = "";}}} else if (attrib == "style") {attribValue = attribValue.replace(/(^| )(-moz-[\w\-]+): [\w\-]+; *()/g, "$1");attribValue = attribValue.replace(/(^| )([\w\-]+): [^;]*(-moz-[\w\-]+|windowtext)[^;]*; *()/g, "$1");attribValue = attribValue.replace(/\b0(%|in|cm|mm|em|ex|pt|pc|px)\b/g, "0");attribValue = attribValue.replace(/[\w\-]+ *\: *\; *()/g, "");attribValue = attribValue.replace(/ *(;|:) *()/g, "$1 ");attribValue = attribValue.replace(/( |;)+$/g, ";");} else if (attrib == "class") {attribValue = attribValue.replace(/^Ms.*$/g, "");}if (attribValue != "") {sanitized += " " + attrib + "=\"" + attribValue + "\"";}}}return sanitized;}; window.WikEdRemoveHighlighting = function (obj) {var isRemove = [];obj.html = obj.html.replace(/(&lt;(\/?)span\b([^&gt;]*)&gt;)/g, function (p, p1, p2, p3) {if (p2 == "") {if (/\bclass=\"wikEd\w+\"/.test(p3)) {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});var isRemove = [];obj.html = obj.html.replace(/(&lt;(\/?)div\b([^&gt;]*)&gt;)/g, function (p, p1, p2, p3) {if (p2 == "") {if (/\bclass=\"wikEd\w+\"/.test(p3)) {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});var isRemove = [];obj.html = obj.html.replace(/(&lt;(\/?)pre\b([^&gt;]*)&gt;)/g, function (p, p1, p2, p3) {if (p2 == "") {if (/\bclass=\"wikEd\w+\"/.test(p3)) {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});obj.html = obj.html.replace(/&lt;!--wikEd\w+--&gt;/g, "");obj.html = obj.html.replace(/[\n\r ]+/g, " ");obj.html = obj.html.replace(/&amp;nbsp;/g, "\xA0");if (obj.html.match(/&lt;(?!br\b)/) != null) {obj.htmlCode = true;} else {obj.htmlCode = false;}return;}; window.WikEdHighlightSyntax = function (obj, singleLine) {obj.html = obj.html.replace(/\r\n?/g, "\n");obj.html = obj.html.replace(/&amp;lt;/g, "\0");obj.html = obj.html.replace(/&amp;gt;/g, "\x01");obj.html = obj.html.replace(/&amp;amp;/g, "\x02");obj.html = obj.html.replace(/(^|\n)(#)(redirect\b)/gi, "$1&lt;span class=\"wikEdWikiRedir\"&gt;$3&lt;/span&gt;&lt;!--wikEdWikiRedir--&gt;");obj.html = obj.html.replace(/(\u0000nowiki\b.*?\u0001)(.*?)(\u0000\/nowiki\b.*?\u0001)/gi, function (p, p1, p2, p3) {p2 = p2.replace(/\u0000/g, "&amp;lt;");p2 = p2.replace(/\u0001/g, "&amp;gt;");return p1 + p2 + p3;});obj.html = obj.html.replace(/^((\u0000!--.*?--\u0001)*)([\*\#\:\;]+)(.*?)$/gm, "&lt;span class=\"wikEdListLine\"&gt;$1&lt;span class=\"wikEdListTag\"&gt;$3&lt;/span&gt;&lt;!--wikEdListTag--&gt;$4&lt;/span&gt;&lt;!--wikEdListLine--&gt;");if (singleLine != true) {obj.html = obj.html.replace(/((&lt;span class=\"wikEdListLine\"&gt;[^\n]*\n)+)/g, "&lt;span class=\"wikEdListBlock\"&gt;$1");obj.html = obj.html.replace(/(&lt;span class=\"wikEdListLine\"&gt;[^\n]*)(\n)(?!&lt;span class=\"wikEdListLine\"&gt;)/g, "$1&lt;/span&gt;&lt;!--wikEdListBlock--&gt;$2");}obj.html = obj.html.replace(/(&lt;span class=\"wikEdWikiRedir\"&gt;)(.*?&lt;\/span&gt;&lt;!--wikEdWikiRedir--&gt;)/g, "$1#$2");if (singleLine != true) {obj.html = obj.html.replace(/(\u0000(blockquote|center|div|pre|timeline|imagemap|source)\b[^\u0001]*\u0001.*?\u0000\/\2\u0001)/gi, "&lt;span class=\"wikEdBlock\"&gt;$1&lt;/span&gt;&lt;!--wikEdBlock--&gt;");}if (singleLine != true) {obj.html = obj.html.replace(/^((\u0000!--.*?--\u0001)*)[\u00a0 ]([\u00a0 ]*)(.*?)$/gm, "&lt;span class=\"wikEdSpaceLine\"&gt;$1&lt;span class=\"wikEdSpaceTag\"&gt;&amp;nbsp;$3&lt;/span&gt;&lt;!--wikEdSpaceTag--&gt;$4&lt;/span&gt;&lt;!--wikEdSpaceLine--&gt;");obj.html = obj.html.replace(/((&lt;span class=\"wikEdSpaceLine\"&gt;[^\n]*\n)+)/g, "&lt;span class=\"wikEdSpaceBlock\"&gt;$1");obj.html = obj.html.replace(/(&lt;span class=\"wikEdSpaceLine\"&gt;[^\n]*)(\n)(?!&lt;span class="wikEdSpaceLine"&gt;)/g, "$1&lt;/span&gt;&lt;!--wikEdSpaceBlock--&gt;$2");}obj.html = obj.html.replace(/(^|\n)((\u0000!--.*?--\u0001|&lt;[^&gt;]*&gt;)*)(----)((\u0000!--.*?--\u0001|&lt;[^&gt;]*&gt;)*)(\n|$)/g, "$1&lt;span class=\"wikEdHR\"&gt;$2$4&lt;/span&gt;&lt;!--wikEdHR--&gt;$5$7");obj.html = obj.html.replace(/(\u0000hr\u0001)/g, "&lt;span class=\"wikEdHRInline\"&gt;$1&lt;/span&gt;&lt;!--wikEdHRInline--&gt;");obj.html = obj.html.replace(/(^|\n)((\u0000!--.*?--\u0001|&lt;[^&gt;]*&gt;)*)(=+[\u00a0 ]*)([^\n]*?)([\u00a0 ]*=+)(?=([\u00a0 ]|&lt;[^&gt;]*&gt;|\u0000!--.*?--\u0001)*(\n|$))/g, function (p, p1, p2, p3, p4, p5, p6) {p4 = p4.replace(/(=+)/g, "&lt;span class=\"wikEdWiki\"&gt;$1&lt;/span&gt;&lt;!--wikEdWiki--&gt;");p6 = p6.replace(/(=+)/g, "&lt;span class=\"wikEdWiki\"&gt;$1&lt;/span&gt;&lt;!--wikEdWiki--&gt;");var regExp = new RegExp("^" + wikEdText['External links'] + "?|" + wikEdText['External links'] + "|" + wikEdText['See also'] + "|" + wikEdText.References + "$", "i");if (regExp.test(p5)) {p1 = p1 + "&lt;span class=\"wikEdHeadingWp\"&gt;";p6 = p6 + "&lt;/span&gt;&lt;!--wikEdHeadingWp--&gt;";} else {p1 = p1 + "&lt;span class=\"wikEdHeading\"&gt;";p6 = p6 + "&lt;/span&gt;&lt;!--wikEdHeading--&gt;";}return p1 + p2 + p4 + p5 + p6;});obj.html = obj.html.replace(/^((\u0000!--.*?--\u0001)*)(\{\||\|\+|\|\-|\!|\|\}([^\}]|$)|\|)(.*?)$/gm, "&lt;span class=\"wikEdTableLine\"&gt;$1&lt;span class=\"wikEdTableTag\"&gt;$3&lt;/span&gt;&lt;!--wikEdTableTag--&gt;$5&lt;/span&gt;&lt;!--wikEdTableLine--&gt;");if (singleLine != true) {obj.html = obj.html.replace(/(^|\n)((&lt;[^&gt;]*&gt;|\u0000!--.*?--\u0001)*\{\|)/g, "$1&lt;span class=\"wikEdTableBlock\"&gt;$2");obj.html = obj.html.replace(/(^|\n)((&lt;[^&gt;]*&gt;|\u0000!--.*?--\u0001)*\|\}(&lt;[^&gt;]*&gt;)*)/g, "$1$2&lt;/span&gt;&lt;!--wikEdTableBlock--&gt;");obj.html = obj.html.replace(/(\u0000table\b[^\u0001]*\u0001)/gi, "&lt;span class=\"wikEdTableBlock\"&gt;$1");obj.html = obj.html.replace(/(\u0000\/table\u0001)/gi, "$1&lt;/span&gt;&lt;!--wikEdTableBlock--&gt;");}if (singleLine != true) {obj.html = obj.html.replace(/(\u0000(gallery)\b[^\u0001]*\u0001)/gi, "&lt;span class=\"wikEdWiki\"&gt;$1");obj.html = obj.html.replace(/(\u0000\/(gallery)\u0001)/gi, "$1&lt;/span&gt;&lt;!--wikEdWiki--&gt;");}obj.html = obj.html.replace(/(\u0000\/?(blockquote|center|div|pre|timeline|imagemap|source)\b[^\u0001]*\u0001)/gi, "&lt;span class=\"wikEdBlockTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdBlockTag--&gt;");var isRemove = [];obj.html = obj.html.replace(/(\u0000(\/?)p\b([^\u0001]*?)\u0001)/g, function (p, p1, p2, p3) {if (p2 == "") {if (p3 == "") {isRemove.push(true);return "&lt;span class=\"wikEdUnknown\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdUnknown--&gt;";}if (/\/$/.test(p3)) {return "&lt;span class=\"wikEdUnknown\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdUnknown--&gt;";}isRemove.push(false);return "&lt;span class=\"wikEdBlockTag\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdBlockTag--&gt;";}if (isRemove.pop() == true) {return "&lt;span class=\"wikEdUnknown\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdUnknown--&gt;";}return "&lt;span class=\"wikEdBlockTag\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdBlockTag--&gt;";});obj.html = obj.html.replace(/(__(NOTOC|FORCETOC|TOC|NOEDITSECTION|NEWSECTIONLINK|NOCONTENTCONVERT|NOCC|NOGALLERY|NOTITLECONVERT|NOTC|END|START)__)/gi, "&lt;span class=\"wikEdMagic\"&gt;$1&lt;/span&gt;&lt;!--wikEdMagic--&gt;");obj.html = obj.html.replace(/(\u0000sup\b[^\u0001]*\u0001((.|\n)*?)\u0000\/sup\u0001)/gi, "&lt;span class=\"wikEdSuperscript\"&gt;$1&lt;/span&gt;&lt;!--wikEdSuperscript--&gt;");obj.html = obj.html.replace(/(\u0000sub\b[^\u0001]*\u0001((.|\n)*?)\u0000\/sub\u0001)/gi, "&lt;span class=\"wikEdSubscript\"&gt;$1&lt;/span&gt;&lt;!--wikEdSubscript--&gt;");obj.html = obj.html.replace(/(\u0000(ins|u)\b[^\u0001]*\u0001((.|\n)*?)\u0000\/(ins|u)\u0001)/gi, "&lt;span class=\"wikEdIns\"&gt;$1&lt;/span&gt;&lt;!--wikEdIns--&gt;");obj.html = obj.html.replace(/(\u0000(del|s|strike)\b[^\u0001]*\u0001((.|\n)*?)\u0000\/(del|s|strike)\u0001)/gi, "&lt;span class=\"wikEdDel\"&gt;$1&lt;/span&gt;&lt;!--wikEdDel--&gt;");if (wikEdRefHide != true) {obj.html = obj.html.replace(/\u0000(ref\b[^\u0001]*?\/)\u0001/gi, "&lt;span class=\"wikEdRef\"&gt;&amp;lt;$1&amp;gt;&lt;/span&gt;&lt;!--wikEdRef--&gt;");obj.html = obj.html.replace(/(\u0000ref\b[^\u0001]*\u0001((.|\n)*?)\u0000\/ref\u0001)/gi, "&lt;span class=\"wikEdRef\"&gt;$1&lt;/span&gt;&lt;!--wikEdRef--&gt;");}obj.html = obj.html.replace(/(\u0000\/?(sub|sup|ins|u|del|s|strike|big|br|colgroup|code|font|small|span|tt|rb|rp|rt|ruby|ref)\b[^\u0001]*\u0001)/gi, "&lt;span class=\"wikEdInlineTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdInlineTag--&gt;");obj.html = obj.html.replace(/\u0000((references)\b[^\u0001]*?\/)\u0001/gi, "&lt;span class=\"wikEdWiki\"&gt;&amp;lt;$1&amp;gt;&lt;/span&gt;&lt;!--wikEdWiki--&gt;");obj.html = obj.html.replace(/(\u0000(math|gallery|noinclude|includeonly|references)\b[^\u0001]*\u0001((.|\n)*?)(\u0000)\/\2\u0001)/gi, "&lt;span class=\"wikEdWiki\"&gt;$1&lt;/span&gt;&lt;!--wikEdWiki--&gt;");obj.html = obj.html.replace(/(\u0000\/?)(\w+)(.*?\/?\u0001)/g, function (p, p1, p2, p3) {if (!/^(col|thead|tfoot|tbody|big|br|blockquote|colgroup|center|code|del|div|font|ins|p|pre|s|small|span|strike|sub|sup|tt|u|rb|rp|rt|ruby|nowiki|math|gallery|noinclude|includeonly|ref|references|timeline|imagemap|source)$/i.test(p2)) {p1 = "&lt;span class=\"wikEdUnknown\"&gt;" + p1;p3 = p3 + "&lt;/span&gt;&lt;!--wikEdUnknown--&gt;";}return p1 + p2 + p3;});obj.html = obj.html.replace(/(\u0000!--(.|\n)*?--\u0001)/g, "&lt;span class=\"wikEdComment\"&gt;$1&lt;/span&gt;&lt;!--wikEdComment--&gt;");obj.html = obj.html.replace(/(\'|\")(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|blanchedalmond|burlywood|chartreuse|coral|cornsilk|cyan|darkgray|darkgrey|darkkhaki|darkorange|darksalmon|darkseagreen|floralwhite|fuchsia|gainsboro|ghostwhite|gold|goldenrod|greenyellow|honeydew|hotpink|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightskyblue|lightsteelblue|lightyellow|lime|linen|magenta|mediumaquamarine|mediumspringgreen|mediumturquoise|mintcream|mistyrose|moccasin|navajowhite|oldlace|orange|palegoldenrod|palegreen|paleturquoise|papayawhip|peachpuff|peru|pink|plum|powderblue|salmon|sandybrown|seashell|silver|skyblue|snow|springgreen|tan|thistle|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen)(\1)/g, "$1&lt;span style=\"background-color: $2;\" class=\"wikEdColorsLight\"&gt;$2&lt;/span&gt;&lt;!--wikEdColorsLight--&gt;$3");obj.html = obj.html.replace(/(\'|\")(black|blue|blueviolet|brown|cadetblue|chocolate|cornflowerblue|crimson|darkblue|darkcyan|darkgoldenrod|darkgreen|darkmagenta|darkolivegreen|darkorchid|darkred|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|forestgreen|gray|green|grey|indianred|indigo|lightseagreen|lightslategray|lightslategrey|limegreen|maroon|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumvioletred|midnightblue|navy|olive|olivedrab|orangered|orchid|palevioletred|purple|red|rosybrown|royalblue|saddlebrown|seagreen|sienna|slateblue|slategray|slategrey|steelblue|teal|tomato)(\1)/g, "$1&lt;span style=\"background-color: $2;\" class=\"wikEdColorsDark\"&gt;$2&lt;/span&gt;&lt;!--wikEdColorsDark--&gt;$3");obj.html = obj.html.replace(/(^|[^\/\w\u0002])(#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2}))(?=(\W|$))/g, function (p, p1, p2, p3, p4, p5) {var luminance = parseInt(p3, 16) * 0.299 + parseInt(p4, 16) * 0.587 + parseInt(p5, 16) * 0.114;if (luminance &gt; 128) {return p1 + "&lt;span style=\"background-color: " + p2 + "\" class=\"wikEdColorsLight\"&gt;" + p2 + "&lt;/span&gt;&lt;!--wikEdColorsLight--&gt;";} else {return p1 + "&lt;span style=\"background-color: " + p2 + "\" class=\"wikEdColorsDark\"&gt;" + p2 + "&lt;/span&gt;&lt;!--wikEdColorsDark--&gt;";}});obj.html = obj.html.replace(/(^|[^\/\w\u0002])(#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F]))(?=(\W|$))/g, function (p, p1, p2, p3, p4, p5) {var luminance = parseInt(p3, 16) * 16 * 0.299 + parseInt(p4, 16) * 16 * 0.587 + parseInt(p5, 16) * 16 * 0.114;if (luminance &gt; 128) {return p1 + "&lt;span style=\"background-color: " + p2 + "\" class=\"wikEdColorsLight\"&gt;" + p2 + "&lt;/span&gt;&lt;!--wikEdColorsLight--&gt;";} else {return p1 + "&lt;span style=\"background-color: " + p2 + "\" class=\"wikEdColorsDark\"&gt;" + p2 + "&lt;/span&gt;&lt;!--wikEdColorsDark--&gt;";}});obj.html = obj.html.replace(/(rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\))/gi, function (p, p1, p2, p3, p4) {var luminance = p2 * 0.299 + p3 * 0.587 + p4 * 0.114;if (luminance &gt; 128) {return "&lt;span style=\"background-color: " + p1 + "\" class=\"wikEdColorsLight\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdColorsLight--&gt;";} else {return "&lt;span style=\"background-color: " + p1 + "\" class=\"wikEdColorsDark\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdColorsDark--&gt;";}});if (obj.whole == true) {wikEdFollowLinkIdNo = 0;wikEdFollowLinkHash = {};}obj.whole = false;obj.html = obj.html.replace(/((http:\/\/|https:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/|news:|mailto:)[^\u0000\u0001\u0003-\u0020\!\"\$\'\(\)\*\,\&lt;\&gt;\[\\\]\^\`\{-\|\}\u007f-\uffff]*)/gi, function (p, p1, p2) {return "&lt;span class=\"wikEdURLLink\"" + WikEdFollowLinkUrl(null, null, p1) + "&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdURLLink--&gt;";});obj.html = obj.html.replace(/(\[)( *&lt;span class=\"wikEdURLLink\"[^&gt;]*&gt;.*?&lt;\!--wikEdURLLink--&gt; *)([^\]\n]*?)( *\])/gi, function (p, p1, p2, p3, p4) {p3 = p3.replace(/(.*)/, "&lt;span class=\"wikEdURLText\"&gt;$1&lt;/span&gt;&lt;!--wikEdURLText--&gt;");p1 = p1.replace(/(\[)/, "&lt;span class=\"wikEdLinkTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdLinkTag--&gt;");p4 = p4.replace(/(\])/, "&lt;span class=\"wikEdLinkTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdLinkTag--&gt;");return p1 + p2 + p3 + p4;});var regExpImg = new RegExp("(\\[\\[)(" + wikEdText['wikicode Image'] + " *: *)([^\\[\\]\\|\\n]*)((\\|((\\[\\[[^\\]\\n]*\\]\\])?(\\[[^\\[\\]\\n]*\\])?[^\\[\\]\\|]*)*)*)(.*?)(\\]\\])", "gi");obj.html = obj.html.replace(regExpImg, function (p, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) {var linkTitle = p3;linkTitle = linkTitle.replace(/\|.*()/g, "");linkTitle = linkTitle.replace(/\n.*()/g, "");p1 = "&lt;span class=\"wikEdImage\"" + WikEdFollowLinkUrl(p2, linkTitle) + "&gt;" + p1;p10 = p10 + "&lt;/span&gt;&lt;!--wikEdImage--&gt;";p2 = "&lt;span class=\"wikEdImageName\"&gt;" + p2;p3 = p3 + "&lt;/span&gt;&lt;!--wikEdImageName--&gt;";p4 = p4.replace(/((\[[^\]]\]|\[\[[^\]]\]\]|[^\]\|])+)/g, function (p, p1) {if (/^(thumb|thumbnail|frame|right|left|center|none|\d+px|\d+x\d+px)$/.test(p1) == true) {p1 = "&lt;span class=\"wikEdImageParam\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdImageParam--&gt;";} else {p1 = "&lt;span class=\"wikEdImageCaption\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdImageCaption--&gt;";}return p1;});p1 = p1.replace(/(\[+)/, "&lt;span class=\"wikEdLinkTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdLinkTag--&gt;");p10 = p10.replace(/(\]+)/, "&lt;span class=\"wikEdLinkTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdLinkTag--&gt;");p4 = p4.replace(/(\|)/g, "&lt;span class=\"wikEdLinkTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdLinkTag--&gt;");return p1 + p2 + p3 + p4 + p9 + p10;});obj.html = obj.html.replace(/(\[\[)([^\[\]]*)(\]\])/g, function (p, p1, p2, p3) {var regExpImg = new RegExp("^(&lt;[^&gt;]*&gt;)*" + wikEdText['wikicode Image'] + "\\s*:", "i");if (regExpImg.test(p2) == true) {return p1 + p2 + p3;}var linkParam = "";var linkInter;var linkMatch = p2.match(/^\s*(([\w À-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\-]*\s*:)*)\s*([^\|]+)/);if (linkMatch != null) {linkInter = linkMatch[1];linkParam = WikEdFollowLinkUrl(linkInter, linkMatch[3]);}var regExpCat = new RegExp("^\\s*" + wikEdText['wikicode Category'] + "\\s*:", "i");if (regExpCat.test(p2)) {var regExp = new RegExp("\\s*[\\w\\- \xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9]+\\s*:\\s*" + wikEdText['wikicode Category'] + "\\s*:", "i");if (p2.match(regExp) != null) {p1 = "&lt;span class=\"wikEdCatInter\"" + linkParam + "&gt;" + p1;p3 = p3 + "&lt;/span&gt;&lt;!--wikEdCatInter--&gt;";} else {p1 = "&lt;span class=\"wikEdCat\"" + linkParam + "&gt;" + p1;p3 = p3 + "&lt;/span&gt;&lt;!--wikEdCat--&gt;";}p2 = p2.replace(/^(\s*)(([\w ]*:)+)/, "$1&lt;span class=\"wikEdInter\"&gt;$2&lt;/span&gt;&lt;!--wikEdInter--&gt;");p2 = p2.replace(/(\s*)([^&gt;:\|]+)(\s*\|\s*|$)/, "$1&lt;span class=\"wikEdCatName\"&gt;$2&lt;/span&gt;&lt;!--wikEdCatName--&gt;$3");p2 = p2.replace(/(\|\s*)(.*)/, function (p, p1, p2) {p2 = p2.replace(/(.*?)(\s*(\||$))/g, "&lt;span class=\"wikEdCatText\"&gt;$1&lt;/span&gt;&lt;!--wikEdCatText--&gt;$2");return p1 + p2;});} else {if (linkInter != "") {p1 = "&lt;span class=\"wikEdLinkInter\"" + linkParam + "&gt;" + p1;p3 = p3 + "&lt;/span&gt;&lt;!--wikEdLinkInter--&gt;";} else {p1 = "&lt;span class=\"wikEdLink\"" + linkParam + "&gt;" + p1;p3 = p3 + "&lt;/span&gt;&lt;!--wikEdLink--&gt;";}p2 = p2.replace(/^(\s*)(([\w ]*:)+)/, "$1&lt;span class=\"wikEdInter\"&gt;$2&lt;/span&gt;&lt;!--wikEdInter--&gt;");p2 = p2.replace(/(\s*)([^&gt;:\|]+)(\s*\|\s*|$)/, "$1&lt;span class=\"wikEdLinkName\"&gt;$2&lt;/span&gt;&lt;!--wikEdLinkName--&gt;$3");p2 = p2.replace(/(\|\s*)(.*)/, function (p, p1, p2) {p2 = p2.replace(/(.*?)(\s*(\||$))/g, "&lt;span class=\"wikEdLinkText\"\"&gt;$1&lt;/span&gt;&lt;!--wikEdLinkText--&gt;$2");return p1 + p2;});}p1 = p1.replace(/(\[+)/, "&lt;span class=\"wikEdLinkTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdLinkTag--&gt;");p2 = p2.replace(/(\|)/g, "&lt;span class=\"wikEdLinkTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdLinkTag--&gt;");p3 = p3.replace(/(\]+)/, "&lt;span class=\"wikEdLinkTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdLinkTag--&gt;");return p1 + p2 + p3;});obj.html = obj.html.replace(/(\{{2,3})([^\{\}\&lt;\&gt;\u0000\u0001\n]+)(\}{2,3})/g, function (p, p1, p2, p3) {var linkParam = "";var linkInter;var linkMatch = p2.match(/^\s*(([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]*\s*:)*)\s*([^\|]+)/);if (linkMatch != null) {linkInter = linkMatch[1];linkParam = WikEdFollowLinkUrl(linkInter + wikEdText['wikicode Template'] + ":", linkMatch[3]);}if (linkInter != "") {p1 = "&lt;span class=\"wikEdTemplInter\"" + linkParam + "&gt;" + p1;p3 = p3 + "&lt;/span&gt;&lt;!--wikEdTemplInter--&gt;";} else {p1 = "&lt;span class=\"wikEdTempl\"" + linkParam + "&gt;" + p1;p3 = p3 + "&lt;/span&gt;&lt;!--wikEdTempl--&gt;";}p2 = p2.replace(/^(\s*)((\w*:)+)/, "$1&lt;span class=\"wikEdInter\"&gt;$2&lt;/span&gt;&lt;!--wikEdInter--&gt;");p2 = p2.replace(/(\s*)([^&gt;:\|]+)(\s*\|\s*|$)/, "$1&lt;span class=\"wikEdTemplName\"&gt;$2&lt;/span&gt;&lt;!--wikEdTemplName--&gt;$3");p2 = p2.replace(/(\|\s*)(.*)/, function (p, p1, p2) {p2 = p2.replace(/(.*?)(\s*(\||$))/g, "&lt;span class=\"wikEdTemplText\"&gt;$1&lt;/span&gt;&lt;!--wikEdTemplText--&gt;$2");return p1 + p2;});p2 = p2.replace(/(\|)/g, "&lt;span class=\"wikEdTemplTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdTemplTag--&gt;");return p1 + p2 + p3;});obj.html = obj.html.replace(/(\{{2,})(\s*[^\{\}\&lt;\&gt;\u0000\u0001\n\|]+)/g, function (p, p1, p2) {var linkMatch = p2.match(/^\s*(([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]*\s*:)*)\s*([^\|]+)/);var linkParam = "";var linkInter;if (linkMatch != null) {linkInter = linkMatch[1];linkParam = WikEdFollowLinkUrl(linkInter + wikEdText['wikicode Template'] + ":", linkMatch[3]);}return "&lt;span class=\"wikEdTempl\"" + linkParam + "&gt;&lt;span class=\"wikEdTemplTag\"&gt;" + p1 + "&lt;/span&gt;&lt;span class=\"wikEdTemplName\"&gt;" + p2 + "&lt;/span&gt;&lt;!--wikEdTemplName--&gt;&lt;!--wikEdTemplTag--&gt;";});obj.html = obj.html.replace(/(\}{2,})(?!&lt;\/span&gt;&lt;!--wikEdTemplTag--&gt;)/g, "&lt;span class=\"wikEdTemplTag\"&gt;$1&lt;/span&gt;&lt;!--wikEdTemplTag--&gt;&lt;/span&gt;&lt;!--wikEdTempl--&gt;");obj.html = obj.html.replace(/(\'\'\')(\'*)(.*?)(\'*)(\'\'\')/g, "&lt;span class=\"wikEdBold\"&gt;$2$3$4&lt;/span&gt;&lt;!--wikEdBold--&gt;");obj.html = obj.html.replace(/(\'\')(.*?)(\'\')/g, "&lt;span class=\"wikEdItalic\"&gt;$1$2$3&lt;/span&gt;&lt;!--wikEdItalic--&gt;");obj.html = obj.html.replace(/(&lt;span class=\"wikEdBold\"&gt;)/g, "$1'''");obj.html = obj.html.replace(/(&lt;\/span&gt;&lt;!--wikEdBold--&gt;)/g, "'''$1");obj.html = obj.html.replace(/(\'{2,})/g, "&lt;span class=\"wikEdWiki\"&gt;$1&lt;/span&gt;&lt;!--wikEdWiki--&gt;");obj.html = obj.html.replace(/(\u0000nowiki\b[^\u0001]*\u0001)((.|\n)*?)(\u0000\/nowiki\u0001)/gi, function (p, p1, p2, p3, p4) {p1 = "&lt;span class=\"wikEdNowiki\"&gt;&lt;span class=\"wikEdInlineTag\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdInlineTag--&gt;";p2 = p2.replace(/&lt;[^&gt;]*&gt;/g, "");p4 = "&lt;span class=\"wikEdInlineTag\"&gt;" + p4 + "&lt;/span&gt;&lt;!--wikEdInlineTag--&gt;&lt;/span&gt;&lt;!--wikEdNowiki--&gt;";return p1 + p2 + p4;});if (wikEdRefHide == true) {obj.html = obj.html.replace(/\u0000(ref\b[^\u0001]*?\/)\u0001/g, "&lt;span class=\"wikEdRefHide\"&gt;&amp;lt;$1&amp;gt;&lt;/span&gt;&lt;!--wikEdRefHide--&gt;");obj.html = obj.html.replace(/(\u0000ref\b[^\u0001]*\u0001)((.|\n)*?)(\u0000\/ref\u0001)/gi, function (p, p1, p2, p3, p4) {p2 = p2.replace(/&lt;[^&gt;]*&gt;/g, "");var str = "&lt;span class=\"wikEdRefHide\"&gt;" + p1 + p2 + p4 + "&lt;/span&gt;&lt;!--wikEdRefHide--&gt;";return str;});}obj.html = obj.html.replace(/\u0000/g, "&amp;lt;");obj.html = obj.html.replace(/\u0001/g, "&amp;gt;");obj.html = obj.html.replace(/\u0002/g, "&amp;amp;");var regExp = new RegExp("([" + wikEdControlCharsStr + "])", "g");obj.html = obj.html.replace(regExp, function (p, p1) {if (p1 == "\t") {p1 = "&lt;span class=\"wikEdTab\" title=\"" + wikEdControlChars[p1.charCodeAt(0).toString()] + "\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdTab--&gt;";} else if (p1 != "\n") {p1 = "&lt;span class=\"wikEdCtrl\" title=\"" + wikEdControlChars[p1.charCodeAt(0).toString()] + "\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdCtrl--&gt;";}return p1;});var regExpStr = "";for (var decimalValue in wikEdStrangeSpaces) {if (typeof wikEdStrangeSpaces[decimalValue] != "string") {continue;}regExpStr += String.fromCharCode(decimalValue);}var regExp = new RegExp("([" + regExpStr + "])", "g");obj.html = obj.html.replace(regExp, function (p, p1) {if (p1 != "\xA0") {p1 = "&lt;span class=\"wikEdBlank\" title=\"" + wikEdStrangeSpaces[p1.charCodeAt(0).toString()] + "\"&gt;" + p1 + "&lt;/span&gt;&lt;!--wikEdBlank--&gt;";}return p1;});if (wikEdRemoveHighlightComments == true) {obj.html = obj.html.replace(/&lt;!--wikEd\w+--&gt;/g, "");}return;}; window.WikEdFollowLinkUrl = function (linkPrefix, linkTitle, linkUrl) {var linkName = "";if (linkUrl == null) {if (/\{|\}/.test(linkPrefix) == true || /\{|\}/.test(linkTitle) == true) {return "";}linkPrefix = linkPrefix.replace(/&lt;[^&gt;]*&gt;/g, "");linkTitle = linkTitle.replace(/&lt;[^&gt;]*&gt;/g, "");var regExp = new RegExp("[" + wikEdControlCharsStr + "]", "g");linkPrefix = linkPrefix.replace(regExp, "");linkTitle = linkTitle.replace(regExp, "");linkPrefix = linkPrefix.replace(/\s/, " ");linkTitle = linkTitle.replace(/\s/, " ");linkPrefix = linkPrefix.replace(/\s/g, "");linkPrefix = linkPrefix.replace(/^:+/g, "");linkTitle = linkTitle.replace(/ /g, "_");linkUrl = linkPrefix + linkTitle;linkUrl = encodeURI(linkUrl);linkUrl = linkUrl.replace(/%25(\d\d)/g, "%$1");linkUrl = linkUrl.replace(/\'/g, "%27");linkUrl = linkUrl.replace(/#/g, "%23");if (wikEdWikiGlobals.wgArticlePath == null) {linkUrl = "";} else {linkUrl = wikEdWikiGlobals.wgArticlePath.replace(/\$1/, linkUrl);linkName = linkPrefix + linkTitle;}} else {if (/\{|\}/.test(linkUrl) == true) {return "";}linkName = linkUrl;linkUrl = encodeURI(linkUrl);linkUrl = linkUrl.replace(/%25(\d\d)/g, "%$1");linkUrl = linkUrl.replace(/\'/g, "%27");}linkName = linkName.replace(/&lt;/g, "&amp;lt;");linkName = linkName.replace(/&gt;/g, "&amp;gt;");linkName = linkName.replace(/\"/g, "&amp;quot;");linkName = linkName.replace(/\'/g, "\\u0027");var linkParam = "";if (linkUrl != "") {var linkId = "wikEdFollowLink" + wikEdFollowLinkIdNo;wikEdFollowLinkIdNo++;linkParam += "id=\"" + linkId + "\" title=\"" + linkName + " " + wikEdText.followLink + "\"";wikEdFollowLinkHash[linkId] = linkUrl;}return linkParam;}; window.WikEdUpdateTextarea = function () {var obj = {};obj.html = wikEdFrameBody.innerHTML;obj.html = obj.html.replace(/(&lt;br\b[^&gt;]*&gt;)\n* *()/g, "$1");WikEdTextify(obj);obj.plain = obj.plain.replace(/&amp;nbsp;/g, " ");obj.plain = obj.plain.replace(/&amp;lt;/g, "&lt;");obj.plain = obj.plain.replace(/&amp;gt;/g, "&gt;");obj.plain = obj.plain.replace(/&amp;amp;/g, "&amp;");wikEdTextarea.value = obj.plain;wikEdFrameScrollTop = wikEdFrameBody.scrollTop;return;}; window.WikEdUpdateFrame = function () {var obj = {};obj.html = wikEdTextarea.value;obj.html = obj.html.replace(/&amp;/g, "&amp;amp;");obj.html = obj.html.replace(/&gt;/g, "&amp;gt;");obj.html = obj.html.replace(/&lt;/g, "&amp;lt;");if (wikEdHighlightSyntax == true) {obj.whole = true;WikEdHighlightSyntax(obj);} else {obj.html = obj.html.replace(/(\t)/g, "&lt;span class=\"wikEdTabPlain\"&gt;$1&lt;/span&gt;&lt;!--wikEdTabPlain--&gt;");}obj.html = obj.html.replace(/ /g, "&amp;nbsp; ");obj.html = obj.html.replace(/ /g, "&amp;nbsp; ");obj.html = obj.html.replace(/ \n/g, "&amp;nbsp;\n");obj.html = obj.html.replace(/\n/g, "&lt;br /&gt;");if (wikEdMSIE == true) {} else {obj.sel = WikEdGetSelection();WikEdRemoveAllRanges(obj.sel);}if (wikEdFrameBody.firstChild == null || (wikEdFrameBody.innerHTML == "&lt;br&gt;")) {wikEdFrameBody.innerHTML = obj.html;} else {var range = document.createRange();range.setStartBefore(wikEdFrameBody.firstChild);range.setEndAfter(wikEdFrameBody.lastChild);obj.sel.addRange(range);if (obj.html != "") {WikEdFrameExecCommand("inserthtml", obj.html);} else {WikEdFrameExecCommand("delete");}WikEdRemoveAllRanges(obj.sel);if (wikEdFrameScrollTop != null) {wikEdFrameBody.scrollTop = wikEdFrameScrollTop;}}wikEdFrameScrollTop = null;if (wikEdHighlightSyntax == true) {WikEdFollowLinks();}return;}; window.WikEdKeyFrameHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}if (wikEdUseWikEd == true) {switch (event.type) {case "keydown":switch (event.keyCode) {case 9:if (event.shiftKey == false) {event.preventDefault();if (wikEdFullScreenMode == false) {var inputWrapperTop = WikEdGetOffsetTop(wikEdInputWrapper);window.scroll(0, inputWrapperTop);}wikEdSummaryText.focus();}break;default:;}break;case "keyup":case "keypress":case "mouseup":WikEdInactiveButtons();wikEdFrameDOMCache = null;break;default:;}}return;}; window.WikEdShiftAltHandler = function (event) {event = WikEdEvent(event);if (wikEdUseWikEd == true) {if (event.shiftKey == true &amp;&amp; event.ctrlKey == false &amp;&amp; (event.altKey == true)) {var buttonId = wikEdButtonKeyCode[event.keyCode];if (buttonId != null) {event.preventDefault();event.stopPropagation();var obj = document.getElementById(buttonId);eval(wikEdEditButtonHandler[buttonId]);}}}return;}; window.WikEdFrameExecCommand = function (command, option) {wikEdFrameDocument.execCommand(command, false, option);return;}; window.WikEdFindAhead = function () {if (WikEdGetAttribute(wikEdFindAhead, "checked") == "true") {var findText = wikEdFindText.value;if (findText == "") {return;}var sel = WikEdGetSelection();var range = sel.getRangeAt(sel.rangeCount - 1).cloneRange();var rangeClone = range.cloneRange();var scrollTop = wikEdFrameBody.scrollTop;sel.removeAllRanges();sel.addRange(range);range.collapse(true);var found = wikEdFrameWindow.find(findText, false, false, true, false, true, false);if (found == false) {wikEdFrameBody.scrollTop = scrollTop;sel.removeAllRanges();sel.addRange(rangeClone);}}return;}; window.WikEdMainSwitch = function () {if (wikEdBrowserNotSupported == true) {return;}if (wikEdDisabled == true) {wikEdDisabled = false;WikEdSetPersistent("wikEdDisabled", "0", 0, "/");if (wikEdTurnedOn == true) {WikEdSetLogo();WikEdUpdateFrame();WikEdSetEditArea(true);wikEdButtonsWrapper.style.display = "block";wikEdButtonBarPreview.style.display = "block";if (wikEdButtonBarJump != null) {wikEdButtonBarJump.style.display = "block";}WikEdExecuteHook(wikEdOnHook);} else {WikEdTurnOn(false);return;}} else {wikEdUseWikEd = false;wikEdDisabled = true;WikEdSetLogo();WikEdSetPersistent("wikEdDisabled", "1", 0, "/");if (wikEdTurnedOn == true) {if (wikEdFullScreenMode == true) {WikEdFullScreen(false);}WikEdUpdateTextarea();WikEdSetEditArea(false);wikEdButtonsWrapper.style.display = "none";wikEdButtonBarPreview.style.display = "none";wikEdLocalPrevWrapper.style.display = "none";if (wikEdButtonBarJump != null) {wikEdButtonBarJump.style.display = "none";}WikEdExecuteHook(wikEdOffHook);}}return;}; window.WikEdFullScreen = function (fullscreen, notFrame) {var displayStyle;if (fullscreen == true) {displayStyle = "none";} else {displayStyle = "block";}var node = document.getElementById("editform").previousSibling;while (node != null) {if (node.nodeName == "DIV" || (node.nodeName == "H3")) {node.style.display = displayStyle;}node = node.previousSibling;}document.getElementsByTagName("H1")[0].style.display = displayStyle;var node = wikEdInputWrapper.nextSibling;while (node != null) {if (node.nodeName == "DIV") {node.style.display = displayStyle;}node = node.nextSibling;}var node = document.getElementById("column-one");while (node != null) {if (node.nodeName == "DIV") {node.style.display = displayStyle;}node = node.nextSibling;}document.getElementById("wikEdInsertWrapper").style.display = displayStyle;if (fullscreen == true) {if (notFrame != true) {wikEdInputWrapper.className = "wikEdInputWrapperFull";}wikEdButtonBarPreview.className = "wikEdButtonBarPreviewFull";} else {if (notFrame != true) {wikEdInputWrapper.className = "wikEdInputWrapper";}wikEdButtonBarPreview.className = "wikEdButtonBarPreview";}if (fullscreen == true) {var consoleTop = WikEdGetOffsetTop(wikEdConsoleWrapper);var consoleHeight = wikEdConsoleWrapper.offsetHeight;var frameHeight = wikEdFrame.offsetHeight;var windowHeight = WikEdGetWindowInnerHeight();var windowWidth = WikEdGetWindowInnerWidth();var frameHeightNew = frameHeight + (windowHeight - (consoleTop + consoleHeight)) - 2;wikEdFrame.style.height = frameHeightNew + "px";} else {wikEdFrame.style.height = wikEdTextareaHeight + "px";}if (fullscreen == false) {window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper) - 2);}WikEdButton(document.getElementById("wikEdFullScreen"), "wikEdFullScreen", null, fullscreen);var buttonClass;if (fullscreen == true) {buttonClass = "wikEdButtonInactive";} else {buttonClass = "wikEdButton";}document.getElementById("wikEdScrollToPreview").className = buttonClass;document.getElementById("wikEdScrollToPreview2").className = buttonClass;document.getElementById("wikEdScrollToEdit").className = buttonClass;document.getElementById("wikEdScrollToEdit2").className = buttonClass;WikEdResizeSummary();wikEdFullScreenMode = fullscreen;return;}; window.WikEdResizeSummary = function () {if (wikEdSummarySelect == null) {return;}wikEdSummaryText.style.width = "";wikEdSummarySelect.style.width = "";wikEdSummaryTextWidth = wikEdSummaryWrapper.clientWidth - (WikEdGetOffsetLeft(wikEdSummaryText) - WikEdGetOffsetLeft(wikEdSummaryWrapper));if (wikEdSummaryTextWidth &lt; 150) {wikEdSummaryTextWidth = 150;}wikEdSummaryText.style.width = wikEdSummaryTextWidth + "px";WikEdResizeComboInput("summary");return;}; window.WikEdResizeComboInput = function (field) {if (wikEdSelectElement[field] == null) {return;}var standardBrowser = true;if (wikEdSelectElement[field].options.offsetWidth != null) {standardBrowser = false;}if (standardBrowser == false) {wikEdSelectElement[field].style.height = (wikEdInputElement[field].clientHeight + 6) + "px";wikEdSelectElement[field].style.top = "3px";wikEdInputElement[field].style.top = "3px";}var dummy;var testOption = 1;if (standardBrowser == true) {if (wikEdSelectElement[field].options.length == 0) {testOption = 0;wikEdSelectElement[field].options[0] = new Option("");dummy = true;}}if (standardBrowser == true) {for (var i = 0; i &lt; wikEdSelectElement[field].options.length; i++) {wikEdSelectElement[field].options[i].style.width = "0";}}var inputBorder = wikEdInputElement[field].offsetWidth - wikEdInputElement[field].clientWidth;var inputWidthInner = wikEdInputElement[field].clientWidth;var inputWidthOuter = wikEdInputElement[field].offsetWidth;var selectWidthInner = wikEdSelectElement[field].clientWidth;var selectWidthOuter = wikEdSelectElement[field].offsetWidth;var optionWidthInner;var buttonWidth;if (standardBrowser == true) {if (typeof wikEdSelectElement[field].options[testOption].clientLeft == "undefined") {optionWidthInner = wikEdSelectElement[field].options[testOption].clientWidth;buttonWidth = selectWidthInner - optionWidthInner - 6;} else {optionWidthInner = wikEdSelectElement[field].options[testOption].clientWidth;buttonWidth = selectWidthInner - optionWidthInner;}} else {buttonWidth = selectWidthOuter - selectWidthInner - 4;}if (inputWidthOuter + buttonWidth &gt; 150) {wikEdInputElement[field].style.width = (inputWidthInner - inputBorder - buttonWidth) + "px";wikEdSelectElement[field].style.width = inputWidthInner + "px";} else {wikEdSelectElement[field].style.width = (inputWidthOuter + buttonWidth) + "px";}if (dummy == true) {wikEdSelectElement[field].options[0] = null;}if (standardBrowser == true) {for (var i = 0; i &lt; wikEdSelectElement[field].options.length; i++) {wikEdSelectElement[field].options[i].style.width = "auto";}}return;}; window.WikEdChangeComboInput = function (field) {wikEdInputElement[field].focus;var selected = wikEdSelectElement[field].selectedIndex;if (selected &gt;= 0) {wikEdSelectElement[field].selectedIndex = -1;var option = wikEdSelectElement[field].options[selected];if (option.text != "") {if (field == "find" &amp;&amp; (/^=.*?=$/.test(option.value) == true)) {wikEdFrameWindow.find(option.value, true, false, true, false, true, false);} else {if (field == "summary") {wikEdInputElement[field].value = WikEdAppendToSummary(wikEdInputElement[field].value, option.text);} else if (option.value == "setcheck") {WikEdButton(document.getElementById("wikEdCaseSensitive"), "wikEdCaseSensitive", null, (option.text.charAt(0) == wikEdCheckMarker[true]));WikEdButton(document.getElementById("wikEdRegExp"), "wikEdRegExp", null, (option.text.charAt(1) == wikEdCheckMarker[true]));wikEdInputElement[field].value = option.text.substr(3);} else {wikEdInputElement[field].value = option.text;}if (field == "find" &amp;&amp; (WikEdGetAttribute(wikEdFindAhead, "checked") == "true")) {WikEdFindAhead();}}}}return;}; window.WikEdAppendToSummary = function (summary, append) {summary = summary.replace(/^[, ]+/, "");summary = summary.replace(/[, ]+$/, "");if (summary != "") {if (summary.match(/ \*\/$/) != null) {summary += " ";} else if (summary.match(/[\.\;\:]$/) != null) {summary += " ";} else if (summary.match(/^[\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\(\)\"\'\+\-]/) == null) {summary += " ";} else {summary += ", ";}}summary += append;return summary;}; window.WikEdAddToHistory = function (field) {if (wikEdInputElement[field].value != "") {WikEdLoadHistoryFromSettings(field);wikEdFieldHist[field].unshift(wikEdInputElement[field].value);if (field == "find" || (field == "replace")) {wikEdFieldHist[field][0] = wikEdCheckMarker[(WikEdGetAttribute(wikEdCaseSensitive, "checked") == "true")] + wikEdCheckMarker[(WikEdGetAttribute(wikEdRegExp, "checked") == "true")] + " " + wikEdFieldHist[field][0];}if (field == "summary") {wikEdFieldHist[field][0] = wikEdFieldHist[field][0].replace(/^\/\* .*? \*\/ *()/, "");}var i = 1;while (i &lt; wikEdFieldHist[field].length) {if (wikEdFieldHist[field][i] == wikEdFieldHist[field][0]) {wikEdFieldHist[field].splice(i, 1);} else {i++;}}if (wikEdComboPresetOptions[field] != null) {var i = 0;while (i &lt; wikEdComboPresetOptions[field].length) {if (wikEdComboPresetOptions[field][i] == wikEdFieldHist[field][0]) {wikEdFieldHist[field].shift();break;} else {i++;}}}wikEdFieldHist[field] = wikEdFieldHist[field].slice(0, wikEdHistoryLength[field]);if (wikEdFieldHist[field][0] != "") {WikEdSaveHistoryToSetting(field);}}return;}; window.WikEdSetComboOptions = function (field) {WikEdLoadHistoryFromSettings(field);var option = {};var selectedOption = null;var options = wikEdSelectElement[field].options;for (var i = 0; i &lt; options.length; i++) {wikEdSelectElement[field].remove(i);}option = document.getElementById(field + "Optgroup");if (option != null) {wikEdSelectElement[field].removeChild(option);}option = document.createElement("option");option.style.display = "none";j = 0;wikEdSelectElement[field].options[j++] = option;for (var i = 0; i &lt; wikEdFieldHist[field].length; i++) {if (wikEdFieldHist[field][i] != null) {if (wikEdFieldHist[field][i] == wikEdInputElement[field].value) {selectedOption = j;}option = document.createElement("option");option.text = wikEdFieldHist[field][i].replace(/ /g, "\xA0");if (field == "find" || (field == "replace")) {option.value = "setcheck";}wikEdSelectElement[field].options[j++] = option;}}var startPreset = 0;if (wikEdComboPresetOptions[field] != null) {startPreset = j;for (var i = 0; i &lt; wikEdComboPresetOptions[field].length; i++) {if (wikEdComboPresetOptions[field][i] != null) {wikEdComboPresetOptions[field][i] = wikEdComboPresetOptions[field][i].replace(/ /g, "\xA0");if (wikEdComboPresetOptions[field][i] == wikEdInputElement[field].value) {selectedOption = j;}option = document.createElement("option");option.text = wikEdComboPresetOptions[field][i].replace(/ /g, "\xA0");if (field == "summary") {option.text = option.text.replace(/\{wikEdUsing\}/g, wikEdSummaryUsing);}wikEdSelectElement[field].options[j++] = option;}}}wikEdSelectElement[field].selectedIndex = selectedOption;if (startPreset &gt; 1 &amp;&amp; (startPreset &lt; j)) {option = document.createElement("optgroup");option.label = "\xA0";option.id = field + "Optgroup";wikEdSelectElement[field].insertBefore(option, wikEdSelectElement[field].options[startPreset]);}var startTOC = 0;if (field == "find") {startTOC = j;var plain = wikEdFrameBody.innerHTML;plain = plain.replace(/&lt;br\b[^&gt;]*&gt;/g, "\n");plain = plain.replace(/&lt;.*?&gt;/g, "");var heading = plain.match(/(^|\n)=+[^\n]+?=+[^\n=]*[ =\t]*(?=(\n|$))/g);if (heading != null) {for (var i = 0; i &lt; heading.length; i++) {var headingMatch = heading[i].match(/\n?((=+) *([^\n]+?)( *\2))/);var headingIndent = headingMatch[2];headingIndent = headingIndent.replace(/^=/g, "");headingIndent = headingIndent.replace(/=/g, "\xA0");option = document.createElement("option");option.text = "\u21D2" + headingIndent + headingMatch[3];option.value = headingMatch[1];wikEdSelectElement[field].options[j++] = option;}}}if (startTOC &gt; 1 &amp;&amp; (startTOC &lt; j)) {option = document.createElement("optgroup");option.label = "\xA0";option.id = field + "Optgroup";wikEdSelectElement[field].insertBefore(option, wikEdSelectElement[field].options[startTOC]);}return;}; window.WikEdClearHistory = function (field) {WikEdSetPersistent(wikEdSavedName[field], "", 0, "/");WikEdSetComboOptions(field);return;}; window.WikEdLoadHistoryFromSettings = function (field) {var setting = WikEdGetPersistent(wikEdSavedName[field]);if (setting != "") {setting = decodeURIComponent(setting);wikEdFieldHist[field] = setting.split("\n");} else {wikEdFieldHist[field] = [];}return;}; window.WikEdSaveHistoryToSetting = function (field) {var setting = "";setting = wikEdFieldHist[field].join("\n");setting = setting.replace(/\n$/, "");setting = encodeURIComponent(setting);WikEdSetPersistent(wikEdSavedName[field], setting, 0, "/");return;}; window.WikEdGetSelection = function () {var sel = wikEdFrameWindow.getSelection();if (sel == null) {sel = wikEdFrameDocument.selection;}if (sel.rangeCount == 0) {sel.collapse(wikEdFrameBody, 0);}return sel;}; window.WikEdRemoveAllRanges = function (sel) {if (typeof sel.removeAllRanges == "function") {sel.removeAllRanges();} else if (typeof sel.empty == "function") {sel.empty();}return;}; window.WikEdGetSavedSetting = function (settingName, preset) {var setting = WikEdGetPersistent(settingName);if (setting == "") {setting = preset;} else if (setting == "1") {setting = true;} else {setting = false;}return setting;}; window.WikEdGetPersistent = function (name) {var getStr = "";if (wikEdGreasemonkey == true) {getStr = GM_getValue(name, "");} else {getStr = WikEdGetCookie(name);}return getStr;}; window.WikEdSetPersistent = function (name, value, expires, path, domain, secure) {if (wikEdGreasemonkey == true) {if (expires == -1) {GM_setValue(name, "");} else {GM_setValue(name, value);}} else {WikEdSetCookie(name, value, expires, path, domain, secure);}return;}; window.WikEdGetCookie = function (cookieName) {var cookie = " " + document.cookie;var search = " " + cookieName + "=";var cookieValue = "";var offset = 0;var end = 0;offset = cookie.indexOf(search);if (offset != -1) {offset += search.length;end = cookie.indexOf(";", offset);if (end == -1) {end = cookie.length;}cookieValue = cookie.substring(offset, end);cookieValue = cookieValue.replace(/\\+/g, " ");cookieValue = decodeURIComponent(cookieValue);}return cookieValue;}; window.WikEdSetCookie = function (name, value, expires, path, domain, secure) {var cookie = name + "=" + encodeURIComponent(value);if (expires != null) {if (expires == -1) {var cookieExpire = new Date;expires = cookieExpire.setTime(cookieExpire.getTime() - 3600000);expires = cookieExpire.toUTCString();} else if (expires == 0) {var cookieExpire = new Date;expires = cookieExpire.setTime(cookieExpire.getTime() + wikEdCookieExpireSec * 1000);expires = cookieExpire.toUTCString();}cookie += "; expires=" + expires;}if (path != null) {cookie += "; path=" + path;}if (domain != null) {cookie += "; domain=" + domain;}if (secure != null) {cookie += "; secure";}document.cookie = cookie;return;}; window.WikEdGetOffsetTop = function (element) {var offset = 0;do {offset += element.offsetTop;} while ((element = element.offsetParent) != null);return offset;}; window.WikEdGetOffsetLeft = function (element) {var offset = 0;do {offset += element.offsetLeft;} while ((element = element.offsetParent) != null);return offset;}; window.wikEdLeafElements = []; wikEdLeafElements.IMG = true; wikEdLeafElements.HR = true; wikEdLeafElements.BR = true; wikEdLeafElements.INPUT = true; window.WikEdParseDOM = function (obj, topNode) {obj.plainLength = 0;obj.plainArray = [];obj.plainNode = [];obj.plainStart = [];obj.plainPos = [];WikEdParseDOMRecursive(obj, topNode);obj.plain = obj.plainArray.join("");wikEdFrameDOMCache = obj;return;}; window.WikEdParseDOMRecursive = function (obj, currentNode) {for (var property in currentNode.childNodes) {var childNode = currentNode.childNodes[property];if (typeof childNode == "string") {continue;}if (childNode == null) {break;}if (childNode == obj.sel.focusNode) {obj.plainFocus = obj.plainLength + obj.sel.focusOffset;}if (childNode == obj.sel.anchorNode) {obj.plainAnchor = obj.plainLength + obj.sel.anchorOffset;}var value = null;switch (childNode.nodeType) {case 1:if (childNode.childNodes.length == 0 &amp;&amp; (wikEdLeafElements[childNode.nodeName] == true)) {if (childNode.nodeName == "BR") {value = "\n";}} else {WikEdParseDOMRecursive(obj, childNode);}break;case 3:value = childNode.nodeValue;value = value.replace(/\n/g, " ");break;case 5:value = "&amp;" + childNode.nodeName + ";";break;default:;}if (value != null) {obj.plainArray.push(value);obj.plainNode.push(childNode);obj.plainStart.push(obj.plainLength);obj.plainPos[childNode] = obj.plainLength;obj.plainLength += value.length;}}return;}; window.WikEdGetInnerHTML = function (obj, currentNode) {if (obj.html == null) {obj.html = "";}if (obj.plain == null) {obj.plain = "";}if (obj.plainArray == null) {obj.plainArray = [];obj.plainNode = [];obj.plainStart = [];}for (var i = 0; i &lt; currentNode.childNodes.length; i++) {var childNode = currentNode.childNodes.item(i);switch (childNode.nodeType) {case 1:obj.html += "&lt;" + childNode.nodeName.toLowerCase();for (var j = 0; j &lt; childNode.attributes.length; j++) {if (childNode.attributes.item(j).nodeValue != null) {obj.html += " " + childNode.attributes.item(j).nodeName + "=\"" + childNode.attributes.item(j).nodeValue.replace(/&lt;/g, "&amp;lt;").replace(/&gt;/g, "&amp;gt;") + "\"";}}if (childNode.childNodes.length == 0 &amp;&amp; wikEdLeafElements[childNode.nodeName]) {obj.html += "&gt;";if (childNode.nodeName == "BR") {obj.plainArray.push("\n");obj.plainNode.push(childNode);obj.plainStart.push(obj.plain.length);obj.plain += "\n";}} else {obj.html += "&gt;";WikEdGetInnerHTML(obj, childNode);obj.html += "&lt;/" + childNode.nodeName.toLowerCase() + "&gt;";}break;case 3:var value = childNode.nodeValue;value = value.replace(/\n/g, " ");obj.plainArray.push(value);obj.plainNode.push(childNode);obj.plainStart.push(obj.plain.length);value = value.replace(/&amp;/g, "&amp;amp;");value = value.replace(/&lt;/g, "&amp;lt;");value = value.replace(/&gt;/g, "&amp;gt;");obj.html += value;obj.plain += value;break;case 4:obj.html += "&lt;![CDATA[" + childNode.nodeValue + "]]&gt;";break;case 5:var value = "&amp;" + childNode.nodeName + ";";obj.plainArray.push(value);obj.plainNode.push(childNode);obj.plainStart.push(obj.plain.length);value = value.replace(/&amp;/g, "&amp;amp;");obj.html += value;obj.plain += value;break;case 8:obj.html += "&lt;!--" + childNode.nodeValue + "--&gt;";break;default:;}}return;}; window.WikEdStyleSheet = function (contextObj) {if (contextObj == null) {contextObj = document;}this.styleElement = null;if (contextObj.createStyleSheet) {this.styleElement = contextObj.createStyleSheet();} else {this.styleElement = contextObj.createElement("style");this.styleElement.from = "text/css";var insert = contextObj.getElementsByTagName("head")[0];if (insert != null) {this.styleElement.appendChild(contextObj.createTextNode(""));insert.appendChild(this.styleElement);}}this.addRule = function (selector, declaration) {if (this.styleElement.addRule != null) {if (declaration.length &gt; 0) {this.styleElement.addRule(selector, declaration);}} else {if (this.styleElement.sheet != null) {if (this.styleElement.sheet.insertRule != null) {this.styleElement.sheet.insertRule(selector + " { " + declaration + " } ", 0);}}}};this.addRules = function (rules) {if (this.styleElement.innerHTML == null) {this.styleElement.cssText = rules;} else if (wikEdSafari == true) {this.styleElement.appendChild(contextObj.createTextNode(rules));} else {this.styleElement.innerHTML = rules;}return;};}; window.WikEdGetStyle = function (element, styleProperty) {var style;if (element != null) {if (document.defaultView != null &amp;&amp; (document.defaultView.getComputedStyle != null)) {style = document.defaultView.getComputedStyle(element, null)[styleProperty];} else if (element.currentStyle != null) {style = element.currentStyle[styleProperty];if (style == "inherit") {style = WikEdGetStyle(element.parent, styleProperty);}} else {style = element.style[styleProperty];}}return style;}; window.WikEdAjaxRequest = function (requestMethod, requestUrl, headerName, headerValue, bodyData, overrideMimeType, responseHandler) {var request;if (wikEdGreasemonkey == true) {var headerArray = {'User-Agent': navigator.userAgent};if (headerName != null) {headerArray[headerName] = headerValue;}request = new GM_xmlhttpRequest({method: requestMethod, url: requestUrl, headers: headerArray, data: bodyData, onreadystatechange: function (ajax) {if (ajax.readyState != 4) {return;}responseHandler(ajax);return;}});} else {if (wikEdAllowLocalAjax == true) {if (typeof netscape == "object") {netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");}}try {request = new XMLHttpRequest;} catch (err) {try {request = new ActiveXObject("Microsoft.XMLHTTP");} catch (err) {try {request = new ActiveXObject("Msxml2.XMLHTTP");} catch (err) {return;}}}request.open(requestMethod, requestUrl, true);if (headerName != null) {request.setRequestHeader(headerName, headerValue);}if (request.overrideMimeType != null &amp;&amp; (overrideMimeType != null)) {request.overrideMimeType(overrideMimeType);}request.send(bodyData);request.onreadystatechange = function () {if (request.readyState != 4) {return;}responseHandler(request);return;};}return;}; window.WikEdGetGlobal = function (globalName) {var globalValue;if (wikEdGreasemonkey == true) {if (wikEdGetGlobalNode == null) {wikEdGetGlobalNode = document.getElementById("wikEdGetGlobalNode");}if (wikEdGetGlobalNode == null) {wikEdGetGlobalNode = document.createElement("textarea");wikEdGetGlobalNode.id = "wikEdGetGlobalNode";wikEdGetGlobalNode.style.display = "none";wikEdGetGlobalNode.style.visibility = "hidden";document.body.appendChild(wikEdGetGlobalNode);}location.href = "javascript:void(typeof(" + globalName + ")!='undefined'?(" + globalName + "!=null?(document.getElementById('wikEdGetGlobalNode').value=" + globalName + ".toString()):null):null)";globalValue = wikEdGetGlobalNode.value;} else {try {globalValue = eval(globalName + ".toString();");} catch (err) {}}return globalValue;}; window.WikEdGetAttribute = function (element, attribName) {var attribValue = element.getAttribute(attribName);if (attribName == "checked") {if (typeof attribValue == "boolean") {if (attribValue == true) {attribValue = "true";} else {attribValue = "false";}}}return attribValue;}; window.WikEdGetWindowInnerHeight = function () {var value = window.innerHeight;if (value == null) {if (document.documentElement != null) {value = document.documentElement.clientHeight;}if (value == null || (value == 0)) {value = document.body.clientHeight;}}return value;}; window.WikEdGetWindowInnerWidth = function () {var value = window.innerWidth;if (value == null) {if (document.documentElement != null) {value = document.documentElement.clientWidth;}if (value == null || (value == 0)) {value = document.body.clientWidth;}}return value;}; window.WikEdAddEventListener = function (domElement, eventType, eventHandler, useCapture) {if (domElement != null) {if (domElement.attachEvent != null) {domElement["wikEd" + eventType + eventHandler] = eventHandler;domElement[eventType + eventHandler] = function () {domElement["wikEd" + eventType + eventHandler](window.event);};domElement.attachEvent("on" + eventType, domElement[eventType + eventHandler]);} else {domElement.addEventListener(eventType, eventHandler, useCapture);}}return;}; window.WikEdRemoveEventListener = function (domElement, eventType, eventHandler, useCapture) {if (domElement.detachEvent != null) {domElement.detachEvent("on" + eventType, domElement[eventType + eventHandler]);domElement[eventType + eventHandler] = null;} else {domElement.removeEventListener(eventType, eventHandler, useCapture);}return;}; window.WikEdEvent = function (event) {var eventAlt;if (window.event != null) {eventAlt = window.event;} else if (wikEdFrameWindow.event != null) {eventAlt = wikEdFrameWindow.event;}if (eventAlt != null) {event = eventAlt;event.stopPropagation = function () {event.cancelBubble = true;};event.preventDefault = function () {event.returnValue = false;};event.target = event.srcElement;}return event;}; window.WikEdDebug = function (objectName, object, usePopup) {var useDebug;if (typeof wikEdDebug != "undefined") {if (wikEdDebug != null) {useDebug = true;}}if (useDebug == true) {wikEdDebugWrapper.style.position = "static";wikEdDebugWrapper.style.visibility = "visible";wikEdDebug.style.display = "block";if (objectName == null) {wikEdDebug.value = "";} else {if (object == null) {wikEdDebug.value = objectName + "\n" + wikEdDebug.value;} else {wikEdDebug.value = objectName + ": " + object + "\n" + wikEdDebug.value;}}} else if (usePopup == true) {if (object == null) {alert(objectName);} else {alert(objectName + ": " + object);}} else {var msg;if (object == null) {msg = objectName + "";} else {msg = objectName + ": " + object;}msg = msg.replace(/\'/g, "\\'");setTimeout("throw new Error('WikEdDebug: " + msg + "')", 0);}return;}; window.WikEdDebugTimer = function () {var times = "";var start = wikEdDebugTimer[0][1].getTime();var prev = 0;for (var i = 0; i &lt; wikEdDebugTimer.length; i++) {var curr = wikEdDebugTimer[i][1].getTime() - start;var diff = curr - prev;var prev = curr;times += wikEdDebugTimer[i][0] + ": " + curr + " ms (+" + diff + "ms)\n";}WikEdDebug(times);}; window.WikEdInsertTags = function (tagOpen, tagClose, sampleText) {if (wikEdUseWikEd == true) {WikEdEditButton(document.getElementById("wikEdInsertTags"), "wikEdInsertTags", [tagOpen, tagClose, sampleText]);} else if (WikEdInsertTagsOriginal != null) {WikEdInsertTagsOriginal(tagOpen, tagClose, sampleText);}return;}; window.WikEdInsertAtCursor = function (myField, myValue) {if (wikEdUseWikEd == true) {if (myField == wikEdTextarea) {WikEdEditButton(document.getElementById("wikEdInsertTags"), "wikEdInsertTags", [myValue]);}} else if (WikEdInsertAtCursorOriginal != null) {WikEdInsertAtCursorOriginal(myField, myValue);}return;}; window.WikEdExecuteHook = function (functionsHook) {for (var i = 0; i &lt; functionsHook.length; i++) {functionsHook[i]();}return;}; window.WikEdInitUnicode = function () {if (wikEdSupportedChars != null) {return;}wikEdSupportedChars = [["a1", "iexcl"], ["a2", "cent"], ["a3", "pound"], ["a4", "curren"], ["a5", "yen"], ["a6", "brvbar"], ["a7", "sect"], ["a8", "uml"], ["a9", "copy"], ["aa", "ordf"], ["ab", "laquo"], ["ac", "not"], ["ae", "reg"], ["af", "macr"], ["b0", "deg"], ["b1", "plusmn"], ["b2", "sup2"], ["b3", "sup3"], ["b4", "acute"], ["b5", "micro"], ["b6", "para"], ["b7", "middot"], ["b8", "cedil"], ["b9", "sup1"], ["ba", "ordm"], ["bb", "raquo"], ["bc", "frac14"], ["bd", "frac12"], ["be", "frac34"], ["bf", "iquest"], ["c0", "Agrave"], ["c1", "Aacute"], ["c2", "Acirc"], ["c3", "Atilde"], ["c4", "Auml"], ["c5", "Aring"], ["c6", "AElig"], ["c7", "Ccedil"], ["c8", "Egrave"], ["c9", "Eacute"], ["ca", "Ecirc"], ["cb", "Euml"], ["cc", "Igrave"], ["cd", "Iacute"], ["ce", "Icirc"], ["cf", "Iuml"], ["d0", "ETH"], ["d1", "Ntilde"], ["d2", "Ograve"], ["d3", "Oacute"], ["d4", "Ocirc"], ["d5", "Otilde"], ["d6", "Ouml"], ["d7", "times"], ["d8", "Oslash"], ["d9", "Ugrave"], ["da", "Uacute"], ["db", "Ucirc"], ["dc", "Uuml"], ["dd", "Yacute"], ["de", "THORN"], ["df", "szlig"], ["e0", "agrave"], ["e1", "aacute"], ["e2", "acirc"], ["e3", "atilde"], ["e4", "auml"], ["e5", "aring"], ["e6", "aelig"], ["e7", "ccedil"], ["e8", "egrave"], ["e9", "eacute"], ["ea", "ecirc"], ["eb", "euml"], ["ec", "igrave"], ["ed", "iacute"], ["ee", "icirc"], ["ef", "iuml"], ["f0", "eth"], ["f1", "ntilde"], ["f2", "ograve"], ["f3", "oacute"], ["f4", "ocirc"], ["f5", "otilde"], ["f6", "ouml"], ["f7", "divide"], ["f8", "oslash"], ["f9", "ugrave"], ["fa", "uacute"], ["fb", "ucirc"], ["fc", "uuml"], ["fd", "yacute"], ["fe", "thorn"], ["ff", "yuml"], ["27", "apos"], ["22", "quot"], ["152", "OElig"], ["153", "oelig"], ["160", "Scaron"], ["161", "scaron"], ["178", "Yuml"], ["2c6", "circ"], ["2dc", "tilde"], ["2013", "ndash"], ["2014", "mdash"], ["2018", "lsquo"], ["2019", "rsquo"], ["201a", "sbquo"], ["201c", "ldquo"], ["201d", "rdquo"], ["201e", "bdquo"], ["2020", "dagger"], ["2021", "Dagger"], ["2030", "permil"], ["2039", "lsaquo"], ["203a", "rsaquo"], ["20ac", "euro"], ["192", "fnof"], ["391", "Alpha"], ["392", "Beta"], ["393", "Gamma"], ["394", "Delta"], ["395", "Epsilon"], ["396", "Zeta"], ["397", "Eta"], ["398", "Theta"], ["399", "Iota"], ["39a", "Kappa"], ["39b", "Lambda"], ["39c", "Mu"], ["39d", "Nu"], ["39e", "Xi"], ["39f", "Omicron"], ["3a0", "Pi"], ["3a1", "Rho"], ["3a3", "Sigma"], ["3a4", "Tau"], ["3a5", "Upsilon"], ["3a6", "Phi"], ["3a7", "Chi"], ["3a8", "Psi"], ["3a9", "Omega"], ["3b1", "alpha"], ["3b2", "beta"], ["3b3", "gamma"], ["3b4", "delta"], ["3b5", "epsilon"], ["3b6", "zeta"], ["3b7", "eta"], ["3b8", "theta"], ["3b9", "iota"], ["3ba", "kappa"], ["3bb", "lambda"], ["3bc", "mu"], ["3bd", "nu"], ["3be", "xi"], ["3bf", "omicron"], ["3c0", "pi"], ["3c1", "rho"], ["3c2", "sigmaf"], ["3c3", "sigma"], ["3c4", "tau"], ["3c5", "upsilon"], ["3c6", "phi"], ["3c7", "chi"], ["3c8", "psi"], ["3c9", "omega"], ["2022", "bull"], ["2026", "hellip"], ["2032", "prime"], ["2033", "Prime"], ["203e", "oline"], ["2044", "frasl"], ["2122", "trade"], ["2190", "larr"], ["2191", "uarr"], ["2192", "rarr"], ["2193", "darr"], ["2194", "harr"], ["21d2", "rArr"], ["21d4", "hArr"], ["2200", "forall"], ["2202", "part"], ["2203", "exist"], ["2207", "nabla"], ["2208", "isin"], ["220b", "ni"], ["220f", "prod"], ["2211", "sum"], ["2212", "minus"], ["221a", "radic"], ["221d", "prop"], ["221e", "infin"], ["2220", "ang"], ["2227", "and"], ["2228", "or"], ["2229", "cap"], ["222a", "cup"], ["222b", "int"], ["2234", "there4"], ["223c", "sim"], ["2248", "asymp"], ["2260", "ne"], ["2261", "equiv"], ["2264", "le"], ["2265", "ge"], ["2282", "sub"], ["2283", "sup"], ["2286", "sube"], ["2287", "supe"], ["2295", "oplus"], ["22a5", "perp"], ["25ca", "loz"], ["2660", "spades"], ["2663", "clubs"], ["2665", "hearts"], ["2666", "diams"]];wikEdSpecialChars = [["2002", "ensp"], ["ad", "shy"], ["2003", "emsp"], ["2009", "thinsp"], ["200c", "zwnj"], ["200d", "zwj"], ["200e", "lrm"], ["200f", "rlm"]];wikEdProblemChars = [["3d1", "thetasym"], ["3d2", "upsih"], ["3d6", "piv"], ["2118", "weierp"], ["2111", "image"], ["211c", "real"], ["2135", "alefsym"], ["21b5", "crarr"], ["21d0", "lArr"], ["21d1", "uArr"], ["21d3", "dArr"], ["2205", "empty"], ["2209", "notin"], ["2217", "lowast"], ["2245", "cong"], ["2284", "nsub"], ["22a5", "perp"], ["2297", "otimes"], ["22c5", "sdot"], ["2308", "lceil"], ["2309", "rceil"], ["230a", "lfloor"], ["230b", "rfloor"], ["2329", "lang"], ["232a", "rang"]];wikEdControlChars = {'0': "null", '1': "start of heading", '2': "start of text", '3': "end of text", '4': "end of transmission", '5': "enquiry", '6': "acknowledge", '7': "bell", '8': "backspace", '9': "horizontal tab", '10': "line feed, new line", '11': "vertical tab", '12': "form feed, new page", '13': "carriage return", '14': "shift out", '15': "shift in", '16': "data link escape", '17': "device control 1", '18': "device control 2", '19': "device control 3", '20': "device control 4", '21': "negative acknowledge", '22': "synchronous idle", '23': "end of trans. block", '24': "cancel", '25': "end of medium", '26': "substitute", '27': "escape", '28': "file separator", '29': "group separator", '30': "record separator", '31': "unit separator", '173': "soft hyphen", '8204': "zero width non-joiner", '8205': "zero width joiner", '8206': "left-to-right mark", '8207': "right-to-left mark", '8232': "line separator", '8233': "paragraph separator"};for (var decimalValue in wikEdControlChars) {if (typeof wikEdControlChars[decimalValue] != "string") {continue;}wikEdControlCharsStr += String.fromCharCode(decimalValue);}wikEdStrangeSpaces = {'160': "non-breaking space", '8194': "en space", '8195': "em space", '8201': "thin space"};return;}; WikEdStartup(); window.wikEdDiffProgramVersion = "0.9.5e"; window.wikEdDiffProgramDate = "July 19, 2008"; window.WikEdDiffInit = function () {if (typeof wikEdDiffScriptSrc == "undefined") {window.wikEdDiffScriptSrc = "http://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js&amp;action=raw&amp;ctype=text/javascript";}if (typeof wikEdAllowLocalAjax == "undefined") {window.wikEdAllowLocalAjax = false;}if (typeof wikEdDiffCSS == "undefined") {window.wikEdDiffCSS = [];}WikEdDiffInitObject(wikEdDiffCSS, {'.wikEdDiffWrapper': "margin: 0 0 1em 0;", '.wikEdDiffButtonWrapper': "text-align: center;", '.wikEdDiffButton': "padding: 0; margin: 0.2em 0 0.33em 0;", '.wikEdDiffDiv': "background: #faf8f6; padding: 0.5em; border: 1px solid; border-color: #808080;"});if (typeof wikEdUseLocalImages == "undefined") {window.wikEdUseLocalImages = false;}if (typeof wikEdImagePathLocal == "undefined") {window.wikEdImagePathLocal = "file:///D:/wikEd/images/";}if (typeof wikEdImagePath == "undefined") {window.wikEdImagePath = "http://upload.wikimedia.org/wikipedia/commons/";}if (typeof wikEdImage == "undefined") {window.wikEdImage = [];}WikEdDiffInitImage(wikEdImage, {wikEdDiff: "c/c6/WikEdDiff.png"});if (typeof wikEdText == "undefined") {window.wikEdText = [];}WikEdDiffInitObject(wikEdText, {'wikEdDiffButtonImg alt': "wikEdDiff", 'wikEdDiffButton title': "Show improved diff view", wikEdDiffLoading: "..."});if (typeof wikEdFullDiff == "undefined") {window.wikEdFullDiff = false;}window.wikEdDiffDiv = null;window.wikEdDiffWrapper = null;window.wikEdDiffButtonWrapper = null;window.wikEdDiffButton = null;window.wikEdDiffGetGlobalNode = null;if (typeof wikEdExternalScripts == "undefined") {window.wikEdExternalScripts = null;}if (typeof wikEdDiffPreset == "undefined") {window.wikEdDiffPreset = false;}window.wikEdDiffWikiGlobals = [];window.wikEdDiffTable = null;}; if (typeof wikEdDiffStartup == "undefined") { window.wikEdDiffStartup = false; } window.WikEdDiffStartup = function () {if (window.wikEdDiffStartup == true) {return;}window.wikEdDiffStartup = true;if (window.wikEdPageLoaded == true) {WikEdDiffSetup();} else {if (window.attachEvent != null) {window.attachEvent("onload", WikEdDiffSetup);} else {window.addEventListener("load", WikEdDiffSetup, false);}return;}}; window.WikEdDiffSetup = function () {if (document.getElementById("wikEdDiffSetupFlag") != null) {return;}var flag = document.createElement("span");flag.id = "wikEdDiffSetupFlag";flag.style.display = "none";flag.style.visibility = "hidden";document.body.appendChild(flag);WikEdDiffInit();var table = document.getElementsByTagName("table");for (var i = 0; i &lt; table.length; i++) {if (table[i].className == "diff") {wikEdDiffTable = table[i];}}if (wikEdDiffTable == null) {return;}window.wikEdDiffGreasemonkey = false;if (typeof GM_getValue == "function") {wikEdDiffGreasemonkey = true;}var variable = ["wgServer", "wgArticlePath", "wgScriptPath", "wgCurRevisionId"];for (var i = 0; i &lt; variable.length; i++) {wikEdDiffWikiGlobals[variable[i]] = WikEdDiffGetGlobal(variable[i]);}if (wikEdExternalScripts == null) {wikEdExternalScripts = [];var pageScripts = document.getElementsByTagName("script");for (var i = 0; i &lt; pageScripts.length; i++) {var scriptSrc = pageScripts[i].src;var nameMatch = scriptSrc.match(/\/([^\/]*?)($|\?)/);if (nameMatch != null) {var scriptName = nameMatch[1];if (scriptName != "") {if (scriptName == "diff.js" &amp;&amp; (scriptSrc != wikEdDiffScriptSrc)) {continue;}wikEdExternalScripts[scriptName] = true;}}}}var head = document.getElementsByTagName("head")[0];if (wikEdExternalScripts['diff.js'] == null) {if (typeof WDiffString == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffScriptSrc;head.appendChild(script);}wikEdExternalScripts['diff.js'] = true;}var diffStyle = new WikEdDiffStyleSheet;var rules = "";for (var ruleName in wikEdDiffCSS) {var ruleStyle = wikEdDiffCSS[ruleName];diffStyle.addRule(ruleName, ruleStyle);}wikEdDiffWrapper = document.createElement("div");wikEdDiffWrapper.id = "wikEdDiffWrapper";wikEdDiffWrapper.className = "wikEdDiffWrapper";wikEdDiffButtonWrapper = document.createElement("div");wikEdDiffButtonWrapper.id = "wikEdDiffButtonWrapper";wikEdDiffButtonWrapper.className = "wikEdDiffButtonWrapper";wikEdDiffWrapper.appendChild(wikEdDiffButtonWrapper);wikEdDiffButton = document.createElement("button");wikEdDiffButton.id = "wikEdDiffButton";wikEdDiffButton.title = wikEdText['wikEdDiffButton title'];wikEdDiffButton.className = "wikEdDiffButton";wikEdDiffButtonWrapper.appendChild(wikEdDiffButton);var diffImg = document.createElement("img");diffImg.id = "wikEdDiffButtonImg";diffImg.src = wikEdImage.wikEdDiff;diffImg.title = wikEdText['wikEdDiffButton title'];diffImg.alt = wikEdText['wikEdDiffButtonImg alt'];wikEdDiffButton.appendChild(diffImg);wikEdDiffDiv = document.createElement("div");wikEdDiffDiv.id = "wikEdDiffDiv";wikEdDiffDiv.className = "wikEdDiffDiv";wikEdDiffDiv.style.display = "none";wikEdDiffWrapper.appendChild(wikEdDiffDiv);if (wikEdDiffTable.nextSibling != null) {wikEdDiffTable.parentNode.insertBefore(wikEdDiffWrapper, wikEdDiffTable.nextSibling);} else {wikEdDiffTable.parentNode.appendChild(wikEdDiffWrapper);}if (window.attachEvent != null) {wikEdDiffButton.attachEvent("onclick", WikEdDiff);} else {wikEdDiffButton.addEventListener("click", WikEdDiff, true);}var cells = wikEdDiffTable.getElementsByTagName("td");for (var i = 0; i &lt; cells.length; i++) {if (cells[i].className.indexOf("title") &lt; 0) {cells[i].innerHTML = WikEdDiffLinkify(cells[i].innerHTML);}}var setting = WikEdDiffGetPersistent("wikEdDiff");if (setting == "" &amp;&amp; (typeof wikEdDiffPreset == "boolean")) {setting = wikEdDiffPreset;} else if (setting == "1") {setting = true;}if (setting == true) {WikEdDiff();}if (typeof setupTooltips == "function") {setupTooltips(wikEdDiffTable);}return;}; window.WikEdDiff = function () {if (wikEdDiffDiv == null) {return;}if (typeof WDiffString == "undefined") {return;}wikEdDiffDiv.style.display = "block";if (wikEdDiffDiv.innerHTML.length &gt; 0) {return;}if (wikEdDiffTable == null) {return;}wikEdDiffDiv.innerHTML = wikEdText.wikEdDiffLoading;var url;var server = WikEdDiffGetGlobal("wgServer");var scriptPath = WikEdDiffGetGlobal("wgScriptPath");scriptPath = scriptPath.replace(server, "");if (server != "" &amp;&amp; (scriptPath != "")) {url = server + scriptPath.replace(/\$1/, "") + "/index.php";} else {url = window.location.protocol + "//" + window.location.hostname + "/" + window.location.pathname;}var article;var pageName = WikEdDiffGetGlobal("wgPageName");if (pageName != "") {article = pageName;} else {var articleMatch = window.location.search.match(/(\?|&amp;)title=([^&amp;#]+)/);if (articleMatch != null) {article = articleMatch[2];}}url += "?title=" + encodeURIComponent(article) + "&amp;action=raw&amp;maxage=0";var tdArray = document.getElementsByTagName("TD");var tdOld;var tdNew;for (var i = 0; i &lt; tdArray.length; i++) {if (tdArray[i].className == "diff-otitle") {tdOld = tdArray[i];} else if (tdArray[i].className == "diff-ntitle") {tdNew = tdArray[i];break;}}if (tdOld == null || (tdNew == null)) {return;}var oldVersion = null;var newVersion = null;var oldUrl;var newUrl;if (/(\?|&amp;)action=submit\b/.test(window.location.search) == true || (/(\?|&amp;)undoafter=/.test(window.location.search) == true)) {var textarea = document.getElementsByName("wpTextbox1");if (textarea.length == 0) {return;}newVersion = textarea[0].value;newVersion = newVersion.replace(/\s+$/g, "");var curRevisionId = WikEdDiffGetGlobal("wgCurRevisionId");if (curRevisionId != "") {oldUrl = url + "&amp;oldid=" + curRevisionId;} else {oldUrl = url;}var section = document.getElementsByName("wpSection");if (section != null) {if (section.length &gt; 0) {if (section[0].value != "") {oldUrl += "&amp;section=" + section[0].value;}}}} else {var versionMatchOld = tdOld.innerHTML.match(/(\?|&amp;amp;)oldid=(\d+)/);var versionMatchNew = tdNew.innerHTML.match(/(\?|&amp;amp;)oldid=(\d+)/);if (versionMatchOld == null) {return;}oldUrl = url + "&amp;oldid=" + versionMatchOld[2];if (versionMatchNew != null) {newUrl = url + "&amp;oldid=" + versionMatchNew[2];} else {newUrl = url;}}WikEdDiffAjaxRequest("GET", oldUrl, null, null, null, null, function (ajax) {oldVersion = ajax.responseText;if (newVersion != null) {WikEdDiffResponse(oldVersion, newVersion);}return;});if (newUrl != null) {WikEdDiffAjaxRequest("GET", newUrl, null, null, null, null, function (ajax) {newVersion = ajax.responseText;if (oldVersion != null) {WikEdDiffResponse(oldVersion, newVersion);}return;});}return;}; window.WikEdDiffResponse = function (oldVersion, newVersion) {var diffText = WDiffString(oldVersion, newVersion);if (wikEdFullDiff != true) {diffText = WDiffShortenOutput(diffText);}wikEdDiffDiv.innerHTML = diffText;wikEdDiffDiv.style.display = "block";return;}; window.WikEdDiffLinkify = function (html) {html = html.replace(/((https?|ftp):(\/\/[^\u0000-\u0020\!\"\$\'\(\)\*\,\&lt;\&gt;\[\\\]\^\`\{-\|\}\u007f-\uffff]*|&lt;[^&gt;]*&gt;)+)/gi, function (p, p1) {var preTag = p;var postTag = "";var regExpMatch = /^(.*?)(&lt;.*)$/.exec(preTag);if (regExpMatch != null) {preTag = regExpMatch[1];postTag = regExpMatch[2];}var targetNoTags = p1.replace(/&lt;[^&gt;]*&gt;/g, "");targetNoTags = targetNoTags.replace(/&amp;lt;.*?&amp;gt;/g, "");targetNoTags = targetNoTags.replace(/&amp;lt;.*$/g, "");var url = encodeURI(targetNoTags);url = url.replace(/\"/g, "%22");url = url.replace(/\'/g, "%27");url = url.replace(/#/g, "%23");var linkTitle = targetNoTags.replace(/\"/g, "&amp;quot;");return "&lt;a href = \"" + url + "\" style=\"text-decoration: none; color: inherit; color: expression(parentElement.currentStyle.color);\" title=\"" + linkTitle + "\"&gt;" + preTag + "&lt;/a&gt;" + postTag;});if (wikEdDiffWikiGlobals.wgServer != null &amp;&amp; (wikEdDiffWikiGlobals.wgArticlePath != null)) {html = html.replace(/((\[|\{)(&lt;[^&gt;]*&gt;)*\2(&lt;[^&gt;]*&gt;)*)(([^\|\[\]\{\}\n]*)([^\n\[\]\{\}]*))/g, function (p, p1, p2, p3, p4, p5, p6, p7, p8) {var linkType = p2;var wholeLink = p5;var linkTarget = p6;var preTag = wholeLink;var postTag = "";var regExpMatch = /^(.*?)(&lt;.*)$/.exec(preTag);if (regExpMatch != null) {preTag = regExpMatch[1];postTag = regExpMatch[2] + postTag;}var regExpMatch = /^(.*?)(&amp;lt;.*)$/.exec(preTag);if (regExpMatch != null) {preTag = regExpMatch[1];postTag = regExpMatch[2] + postTag;}var targetNoTags = linkTarget.replace(/&lt;[^&gt;]*&gt;/g, "");targetNoTags = targetNoTags.replace(/&amp;lt;.*?&amp;gt;/g, "");targetNoTags = targetNoTags.replace(/&amp;lt;.*$/g, "");targetNoTags = targetNoTags.replace(/^\s+|\s+$/g, "");var url = encodeURI(targetNoTags);url = url.replace(/\"/g, "%22");url = url.replace(/\'/g, "%27");url = url.replace(/#/g, "%23");var articleTitle = targetNoTags.replace(/\"/g, "&amp;quot;");if (linkType == "{") {url = "Template:" + url;articleTitle = "Template:" + articleTitle;}url = wikEdDiffWikiGlobals.wgServer + wikEdDiffWikiGlobals.wgArticlePath.replace(/\$1/, url);return p1 + "&lt;a href = \"" + url + "\" style = \"text-decoration: none; color: inherit; color: expression(parentElement.currentStyle.color)\" title=\"" + articleTitle + "\"&gt;" + preTag + "&lt;/a&gt;" + postTag;});}return html;}; window.WikEdDiffInitObject = function (array, preset) {for (var key in preset) {if (array[key] == null) {array[key] = preset[key];}}return;}; window.WikEdDiffInitImage = function (array, preset) {for (var key in preset) {if (array[key] == null) {if (wikEdUseLocalImages == true) {array[key] = wikEdImagePathLocal + preset[key].replace(/^[0-9a-f]+\/[0-9a-f]+\/()/, "");} else {array[key] = wikEdImagePath + preset[key];}}}return;}; window.WikEdDiffStyleSheet = function (contextObj) {if (contextObj == null) {contextObj = document;}this.styleElement = null;if (contextObj.createStyleSheet) {this.styleElement = contextObj.createStyleSheet();} else {this.styleElement = contextObj.createElement("style");this.styleElement.from = "text/css";var insert = contextObj.getElementsByTagName("head")[0];if (insert != null) {this.styleElement.appendChild(contextObj.createTextNode(""));insert.appendChild(this.styleElement);}}this.addRule = function (selector, declaration) {if (this.styleElement.addRule) {this.styleElement.addRule(selector, declaration);} else {if (this.styleElement.sheet != null) {if (this.styleElement.sheet.insertRule != null) {this.styleElement.sheet.insertRule(selector + " { " + declaration + " } ", 0);}}}};this.addRules = function (rules) {this.styleElement.innerHTML = rules;return;};}; window.WikEdDiffGetPersistent = function (name) {var getStr = "";if (wikEdDiffGreasemonkey == true) {getStr = GM_getValue(name, "");} else {getStr = WikEdDiffGetCookie(name);}return getStr;}; window.WikEdDiffGetCookie = function (cookieName) {var cookie = " " + document.cookie;var search = " " + cookieName + "=";var cookieValue = "";var offset = 0;var end = 0;offset = cookie.indexOf(search);if (offset != -1) {offset += search.length;end = cookie.indexOf(";", offset);if (end == -1) {end = cookie.length;}cookieValue = cookie.substring(offset, end);cookieValue = cookieValue.replace(/\\+/g, " ");cookieValue = decodeURIComponent(cookieValue);}return cookieValue;}; window.WikEdDiffAjaxRequest = function (requestMethod, requestUrl, headerName, headerValue, bodyData, overrideMimeType, responseHandler) {var request;if (wikEdDiffGreasemonkey == true) {var headerArray = {'User-Agent': navigator.userAgent};if (headerName != null) {headerArray[headerName] = headerValue;}request = new GM_xmlhttpRequest({method: requestMethod, url: requestUrl, headers: headerArray, data: bodyData, onreadystatechange: function (ajax) {if (ajax.readyState != 4) {return;}responseHandler(ajax);return;}});} else {if (wikEdAllowLocalAjax == true) {if (typeof netscape == "object") {netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");}}try {request = new XMLHttpRequest;} catch (err) {try {request = new ActiveXObject("Microsoft.XMLHTTP");} catch (err) {try {request = new ActiveXObject("Msxml2.XMLHTTP");} catch (err) {return;}}}request.open(requestMethod, requestUrl, true);if (headerName != null) {request.setRequestHeader(headerName, headerValue);}if (request.overrideMimeType != null &amp;&amp; (overrideMimeType != null)) {request.overrideMimeType(overrideMimeType);}request.send(bodyData);request.onreadystatechange = function () {if (request.readyState != 4) {return;}responseHandler(request);return;};}return;}; window.WikEdDiffGetOffsetTop = function (element) {var offset = 0;do {offset += element.offsetTop;} while ((element = element.offsetParent) != null);return offset;}; window.WikEdDiffGetGlobal = function (globalName) {var globalValue;if (wikEdDiffGreasemonkey == true) {if (wikEdDiffGetGlobalNode == null) {wikEdDiffGetGlobalNode = document.getElementById("wikEdDiffGetGlobalNode");}if (wikEdDiffGetGlobalNode == null) {wikEdDiffGetGlobalNode = document.createElement("textarea");wikEdDiffGetGlobalNode.id = "wikEdDiffGetGlobalNode";wikEdDiffGetGlobalNode.style.display = "none";wikEdDiffGetGlobalNode.style.visibility = "hidden";document.body.appendChild(wikEdDiffGetGlobalNode);}location.href = "javascript:void(typeof(" + globalName + ")!='undefined'?(" + globalName + "!=null?(document.getElementById('wikEdDiffGetGlobalNode').value=" + globalName + ".toString()):null):null)";globalValue = wikEdDiffGetGlobalNode.value;} else {try {globalValue = eval(globalName + ".toString();");} catch (err) {}}return globalValue;}; WikEdDiffStartup(); if (typeof wDiffStyleDelete == "undefined") { window.wDiffStyleDelete = "font-weight: normal; text-decoration: none; color: #fff; background-color: #990033;"; } if (typeof wDiffStyleInsert == "undefined") { window.wDiffStyleInsert = "font-weight: normal; text-decoration: none; color: #fff; background-color: #009933;"; } if (typeof wDiffStyleMoved == "undefined") { window.wDiffStyleMoved = "font-weight: bold; color: #000; vertical-align: text-bottom; font-size: xx-small; padding: 0; border: solid 1px;"; } if (typeof wDiffStyleBlock == "undefined") { window.wDiffStyleBlock = ["color: #000; background-color: #ffff80;", "color: #000; background-color: #c0ffff;", "color: #000; background-color: #ffd0f0;", "color: #000; background-color: #ffe080;", "color: #000; background-color: #aaddff;", "color: #000; background-color: #ddaaff;", "color: #000; background-color: #ffbbbb;", "color: #000; background-color: #d8ffa0;", "color: #000; background-color: #d0d0d0;"]; } if (typeof wDiffHtmlMovedRight == "undefined") { window.wDiffHtmlMovedRight = "&lt;input class=\"wDiffHtmlMovedRight\" type=\"button\" value=\"&amp;gt;\" style=\"" + wDiffStyleMoved + " {block}\"&gt;&lt;!--wDiffHtmlMovedRight--&gt;"; } if (typeof wDiffHtmlMovedLeft == "undefined") { window.wDiffHtmlMovedLeft = "&lt;input class=\"wDiffHtmlMovedLeft\" type=\"button\" value=\"&amp;lt;\" style=\"" + wDiffStyleMoved + " {block}\"&gt;&lt;!--wDiffHtmlMovedLeft--&gt;"; } if (typeof wDiffHtmlBlockStart == "undefined") { window.wDiffHtmlBlockStart = "&lt;span class=\"wDiffHtmlBlock\" style=\"{block}\"&gt;"; } if (typeof wDiffHtmlBlockEnd == "undefined") { window.wDiffHtmlBlockEnd = "&lt;/span&gt;&lt;!--wDiffHtmlBlock--&gt;"; } if (typeof wDiffHtmlDeleteStart == "undefined") { window.wDiffHtmlDeleteStart = "&lt;span class=\"wDiffHtmlDelete\" style=\"" + wDiffStyleDelete + "\"&gt;"; } if (typeof wDiffHtmlDeleteEnd == "undefined") { window.wDiffHtmlDeleteEnd = "&lt;/span&gt;&lt;!--wDiffHtmlDelete--&gt;"; } if (typeof wDiffHtmlInsertStart == "undefined") { window.wDiffHtmlInsertStart = "&lt;span class=\"wDiffHtmlInsert\" style=\"" + wDiffStyleInsert + "\"&gt;"; } if (typeof wDiffHtmlInsertEnd == "undefined") { window.wDiffHtmlInsertEnd = "&lt;/span&gt;&lt;!--wDiffHtmlInsert--&gt;"; } if (typeof wDiffBlockMinLength == "undefined") { window.wDiffBlockMinLength = 3; } if (typeof wDiffWordDiff == "undefined") { window.wDiffWordDiff = true; } if (typeof wDiffRecursiveDiff == "undefined") { window.wDiffRecursiveDiff = true; } if (typeof wDiffShowBlockMoves == "undefined") { window.wDiffShowBlockMoves = true; } if (typeof wDiffHeadingBefore == "undefined") { window.wDiffHeadingBefore = 1500; } if (typeof wDiffParagraphBefore == "undefined") { window.wDiffParagraphBefore = 1500; } if (typeof wDiffLineBeforeMax == "undefined") { window.wDiffLineBeforeMax = 1000; } if (typeof wDiffLineBeforeMin == "undefined") { window.wDiffLineBeforeMin = 500; } if (typeof wDiffBlankBeforeMax == "undefined") { window.wDiffBlankBeforeMax = 1000; } if (typeof wDiffBlankBeforeMin == "undefined") { window.wDiffBlankBeforeMin = 500; } if (typeof wDiffCharsBefore == "undefined") { window.wDiffCharsBefore = 500; } if (typeof wDiffHeadingAfter == "undefined") { window.wDiffHeadingAfter = 1500; } if (typeof wDiffParagraphAfter == "undefined") { window.wDiffParagraphAfter = 1500; } if (typeof wDiffLineAfterMax == "undefined") { window.wDiffLineAfterMax = 1000; } if (typeof wDiffLineAfterMin == "undefined") { window.wDiffLineAfterMin = 500; } if (typeof wDiffBlankAfterMax == "undefined") { window.wDiffBlankAfterMax = 1000; } if (typeof wDiffBlankAfterMin == "undefined") { window.wDiffBlankAfterMin = 500; } if (typeof wDiffCharsAfter == "undefined") { window.wDiffCharsAfter = 500; } if (typeof wDiffFragmentJoin == "undefined") { window.wDiffFragmentJoin = 1000; } if (typeof wDiffOmittedChars == "undefined") { window.wDiffOmittedChars = "\u2026"; } if (typeof wDiffOmittedLines == "undefined") { window.wDiffOmittedLines = "&lt;hr style=\"height: 2px; margin: 1em 10%;\"&gt;"; } if (typeof wDiffNoChange == "undefined") { window.wDiffNoChange = "&lt;hr style=\"height: 2px; margin: 1em 20%;\"&gt;"; } window.StringDiff = window.WDiffString; window.WDiffString = function (oldText, newText) {oldText = oldText.replace(/(\r\n)/g, "\n");newText = newText.replace(/(\r\n)/g, "\n");var text = {};text.newWords = [];text.oldWords = [];text.newToOld = [];text.oldToNew = [];text.message = "";var block = {};var outText = "";if (oldText == newText) {outText = newText;outText = WDiffEscape(outText);outText = WDiffHtmlFormat(outText);return outText;}if (oldText == null || (oldText.length == 0)) {outText = newText;outText = WDiffEscape(outText);outText = WDiffHtmlFormat(outText);outText = wDiffHtmlInsertStart + outText + wDiffHtmlInsertEnd;return outText;}if (newText == null || (newText.length == 0)) {outText = oldText;outText = WDiffEscape(outText);outText = WDiffHtmlFormat(outText);outText = wDiffHtmlDeleteStart + outText + wDiffHtmlDeleteEnd;return outText;}WDiffSplitText(oldText, newText, text);WDiffText(text);WDiffDetectBlocks(text, block);outText = WDiffToHtml(text, block);outText = outText.replace(/&gt; ( *)&lt;/g, "&gt;&amp;nbsp;$1&lt;");return outText;}; window.WDiffSplitText = function (oldText, newText, text) {oldText = oldText.replace(/[\t\u000b\u00a0\u2028\u2029]+/g, " ");newText = newText.replace(/[\t\u000b\u00a0\u2028\u2029]+/g, " ");var pattern = /[\w]+|\[\[|\]\]|\{\{|\}\}|\n+| +|&amp;\w+;|'''|''|=+|\{\||\|\}|\|\-|./g;var result;do {result = pattern.exec(oldText);if (result != null) {text.oldWords.push(result[0]);}} while (result != null);do {result = pattern.exec(newText);if (result != null) {text.newWords.push(result[0]);}} while (result != null);return;}; window.WDiffText = function (text, newStart, newEnd, oldStart, oldEnd, recursionLevel) {symbol = new Object;symbol.newCtr = [];symbol.oldCtr = [];symbol.toNew = [];symbol.toOld = [];newStart = newStart || 0;newEnd = newEnd || text.newWords.length;oldStart = oldStart || 0;oldEnd = oldEnd || text.oldWords.length;recursionLevel = recursionLevel || 0;if (recursionLevel &gt; 10) {return;}var word;for (var i = newStart; i &lt; newEnd; i++) {word = text.newWords[i];if (symbol[word] == null) {symbol[word] = {newCtr: 0, oldCtr: 0, toNew: null, toOld: null};}symbol[word].newCtr++;symbol[word].toNew = i;}for (var j = oldStart; j &lt; oldEnd; j++) {word = text.oldWords[j];if (symbol[word] == null) {symbol[word] = {newCtr: 0, oldCtr: 0, toNew: null, toOld: null};}symbol[word].oldCtr++;symbol[word].toOld = j;}for (var i in symbol) {if (symbol[i].newCtr == 1 &amp;&amp; (symbol[i].oldCtr == 1)) {var toNew = symbol[i].toNew;var toOld = symbol[i].toOld;if (!/\s/.test(text.newWords[toNew])) {text.newToOld[toNew] = toOld;text.oldToNew[toOld] = toNew;}}}for (var i = newStart; i &lt; newEnd - 1; i++) {if (text.newToOld[i] != null) {j = text.newToOld[i];if (text.newToOld[i + 1] == null &amp;&amp; (text.oldToNew[j + 1] == null)) {if (text.newWords[i + 1] == text.oldWords[j + 1]) {text.newToOld[i + 1] = j + 1;text.oldToNew[j + 1] = i + 1;}}}}for (var i = newEnd - 1; i &gt; newStart; i--) {if (text.newToOld[i] != null) {j = text.newToOld[i];if (text.newToOld[i - 1] == null &amp;&amp; (text.oldToNew[j - 1] == null)) {if (text.newWords[i - 1] == text.oldWords[j - 1]) {text.newToOld[i - 1] = j - 1;text.oldToNew[j - 1] = i - 1;}}}}if (wDiffRecursiveDiff) {i = newStart;j = oldStart;while (i &lt; newEnd) {if (text.newToOld[i - 1] != null) {j = text.newToOld[i - 1] + 1;}if (text.newToOld[i] == null &amp;&amp; (text.oldToNew[j] == null)) {var iStart = i;var iEnd = i;while (text.newToOld[iEnd] == null &amp;&amp; (iEnd &lt; newEnd)) {iEnd++;}var iLength = iEnd - iStart;var jStart = j;var jEnd = j;while (text.oldToNew[jEnd] == null &amp;&amp; (jEnd &lt; oldEnd)) {jEnd++;}var jLength = jEnd - jStart;if (iLength &gt; 0 &amp;&amp; (jLength &gt; 0)) {if (iLength &gt; 1 || (jLength &gt; 1)) {if (iStart != newStart || iEnd != newEnd || jStart != oldStart || (jEnd != oldEnd)) {WDiffText(text, iStart, iEnd, jStart, jEnd, recursionLevel + 1);}}}i = iEnd;} else {i++;}}}if (wDiffRecursiveDiff) {i = newEnd - 1;j = oldEnd - 1;while (i &gt;= newStart) {if (text.newToOld[i + 1] != null) {j = text.newToOld[i + 1] - 1;}if (text.newToOld[i] == null &amp;&amp; (text.oldToNew[j] == null)) {var iStart = i;var iEnd = i + 1;while (text.newToOld[iStart - 1] == null &amp;&amp; (iStart &gt;= newStart)) {iStart--;}var iLength = iEnd - iStart;var jStart = j;var jEnd = j + 1;while (text.oldToNew[jStart - 1] == null &amp;&amp; (jStart &gt;= oldStart)) {jStart--;}var jLength = jEnd - jStart;if (iLength &gt; 0 &amp;&amp; (jLength &gt; 0)) {if (iLength &gt; 1 || (jLength &gt; 1)) {if (iStart != newStart || iEnd != newEnd || jStart != oldStart || (jEnd != oldEnd)) {WDiffText(text, iStart, iEnd, jStart, jEnd, recursionLevel + 1);}}}i = iStart - 1;} else {i--;}}}return;}; window.WDiffToHtml = function (text, block) {var outText = text.message;var blockNumber = 0;var i = 0;var j = 0;var movedAsInsertion;do {var movedIndex = [];var movedBlock = [];var movedLeft = [];var blockText = "";var identText = "";var delText = "";var insText = "";var identStart = "";if (movedAsInsertion != null) {if (movedAsInsertion == false) {identStart += wDiffHtmlBlockEnd;} else {identStart += wDiffHtmlInsertEnd;}movedAsInsertion = null;}if (text.newToOld[i] != j || (blockNumber == 0)) {if ((text.newToOld[i] != null || i &gt;= text.newWords.length) &amp;&amp; (text.oldToNew[j] != null || j &gt;= text.oldWords.length)) {var moved = block.newRight[blockNumber];if (moved &gt; 0) {var index = block.newRightIndex[blockNumber];movedIndex.push(index);movedBlock.push(moved);movedLeft.push(false);}moved = block.newLeft[blockNumber];if (moved &gt; 0) {var index = block.newLeftIndex[blockNumber];movedIndex.push(index);movedBlock.push(moved);movedLeft.push(true);}moved = block.newBlock[blockNumber];if (moved &gt; 0) {if (block.newWords[blockNumber] &lt; wDiffBlockMinLength) {identStart += wDiffHtmlInsertStart;movedAsInsertion = true;} else {if (moved &gt; wDiffStyleBlock.length) {moved = wDiffStyleBlock.length;}identStart += WDiffHtmlCustomize(wDiffHtmlBlockStart, moved - 1);movedAsInsertion = false;}}if (i &gt;= text.newWords.length) {i++;} else {j = text.newToOld[i];blockNumber++;}}}if (movedIndex.length == 2) {if (movedIndex[0] &gt; movedIndex[1]) {movedIndex.reverse();movedBlock.reverse();movedLeft.reverse();}}for (var m = 0; m &lt; movedIndex.length; m++) {if (block.newWords[movedIndex[m]] &lt; wDiffBlockMinLength) {var movedStart = block.newStart[movedIndex[m]];var movedLength = block.newLength[movedIndex[m]];var str = "";for (var n = movedStart; n &lt; movedStart + movedLength; n++) {str += text.newWords[n];}str = WDiffEscape(str);str = str.replace(/\n/g, "&amp;para;&lt;br&gt;");blockText += wDiffHtmlDeleteStart + str + wDiffHtmlDeleteEnd;} else {if (movedBlock[m] &gt; wDiffStyleBlock.length) {movedBlock[m] = wDiffStyleBlock.length;}if (movedLeft[m]) {blockText += WDiffHtmlCustomize(wDiffHtmlMovedLeft, movedBlock[m] - 1);} else {blockText += WDiffHtmlCustomize(wDiffHtmlMovedRight, movedBlock[m] - 1);}}}while (i &lt; text.newWords.length &amp;&amp; (j &lt; text.oldWords.length)) {if (text.newToOld[i] == null || (text.oldToNew[j] == null)) {break;}if (text.newToOld[i] != j) {break;}identText += text.newWords[i];i++;j++;}while (text.oldToNew[j] == null &amp;&amp; (j &lt; text.oldWords.length)) {delText += text.oldWords[j];j++;}while (text.newToOld[i] == null &amp;&amp; (i &lt; text.newWords.length)) {insText += text.newWords[i];i++;}var preText = "";var postText = "";if (wDiffWordDiff) {if (delText != "" &amp;&amp; (insText != "")) {while (delText.charAt(0) == insText.charAt(0) &amp;&amp; delText != "" &amp;&amp; (insText != "")) {preText = preText + delText.charAt(0);delText = delText.substr(1);insText = insText.substr(1);}while (delText.charAt(delText.length - 1) == insText.charAt(insText.length - 1) &amp;&amp; delText != "" &amp;&amp; (insText != "")) {postText = delText.charAt(delText.length - 1) + postText;delText = delText.substr(0, delText.length - 1);insText = insText.substr(0, insText.length - 1);}}}if (blockText != "") {outText += blockText;}if (identText != "") {outText += identStart + WDiffEscape(identText);}outText += preText;if (delText != "") {delText = wDiffHtmlDeleteStart + WDiffEscape(delText) + wDiffHtmlDeleteEnd;delText = delText.replace(/\n/g, "&amp;para;&lt;br&gt;");outText += delText;}if (insText != "") {insText = wDiffHtmlInsertStart + WDiffEscape(insText) + wDiffHtmlInsertEnd;insText = insText.replace(/\n/g, "&amp;para;&lt;br&gt;");outText += insText;}outText += postText;} while (i &lt;= text.newWords.length);outText += "\n";outText = WDiffHtmlFormat(outText);return outText;}; window.WDiffEscape = function (text) {text = text.replace(/&amp;/g, "&amp;amp;");text = text.replace(/&lt;/g, "&amp;lt;");text = text.replace(/&gt;/g, "&amp;gt;");text = text.replace(/\"/g, "&amp;quot;");return text;}; window.WDiffHtmlCustomize = function (text, block) {text = text.replace(/\{number\}/, block);text = text.replace(/\{block\}/, wDiffStyleBlock[block]);return text;}; window.WDiffHtmlFormat = function (text) {text = text.replace(/ /g, " &amp;nbsp;");text = text.replace(/\n/g, "&lt;br&gt;");return text;}; window.WDiffDetectBlocks = function (text, block) {block.oldStart = [];block.oldToNew = [];block.oldLength = [];block.oldWords = [];block.newStart = [];block.newLength = [];block.newWords = [];block.newNumber = [];block.newBlock = [];block.newLeft = [];block.newRight = [];block.newLeftIndex = [];block.newRightIndex = [];var blockNumber = 0;var wordCounter = 0;var realWordCounter = 0;if (wDiffShowBlockMoves) {var j = 0;var i = 0;do {if (text.oldToNew[j] != i || (blockNumber == 0)) {if ((text.oldToNew[j] != null || j &gt;= text.oldWords.length) &amp;&amp; (text.newToOld[i] != null || i &gt;= text.newWords.length)) {if (blockNumber &gt; 0) {block.oldLength[blockNumber - 1] = wordCounter;block.oldWords[blockNumber - 1] = realWordCounter;wordCounter = 0;realWordCounter = 0;}if (j &gt;= text.oldWords.length) {j++;} else {i = text.oldToNew[j];block.oldStart[blockNumber] = j;block.oldToNew[blockNumber] = text.oldToNew[j];blockNumber++;}}}while (i &lt; text.newWords.length &amp;&amp; (j &lt; text.oldWords.length)) {if (text.newToOld[i] == null || (text.oldToNew[j] == null)) {break;}if (text.oldToNew[j] != i) {break;}i++;j++;wordCounter++;if (/\w/.test(text.newWords[i])) {realWordCounter++;}}while (text.oldToNew[j] == null &amp;&amp; (j &lt; text.oldWords.length)) {j++;}while (text.newToOld[i] == null &amp;&amp; (i &lt; text.newWords.length)) {i++;}} while (j &lt;= text.oldWords.length);var lastMin;var currMinIndex;lastMin = null;for (var i = 0; i &lt; blockNumber; i++) {currMin = null;for (var j = 0; j &lt; blockNumber; j++) {curr = block.oldToNew[j];if (curr &gt; lastMin || (lastMin == null)) {if (curr &lt; currMin || (currMin == null)) {currMin = curr;currMinIndex = j;}}}block.newStart[i] = block.oldToNew[currMinIndex];block.newLength[i] = block.oldLength[currMinIndex];block.newWords[i] = block.oldWords[currMinIndex];block.newNumber[i] = currMinIndex;lastMin = currMin;}for (var i = 0; i &lt; blockNumber; i++) {if (block.newBlock[i] == null) {if (block.newNumber[i] == i) {block.newBlock[i] = 0;}}}for (var i = 0; i &lt; blockNumber - 1; i++) {if (block.newBlock[i] == null &amp;&amp; (block.newBlock[i + 1] == null)) {if (block.newNumber[i] - block.newNumber[i + 1] == 1) {if (block.newNumber[i + 1] - block.newNumber[i + 2] != 1 || (i + 2 &gt;= blockNumber)) {if (block.newLength[i] &lt; block.newLength[i + 1]) {block.newBlock[i] = 1;block.newBlock[i + 1] = 0;} else {block.newBlock[i] = 0;block.newBlock[i + 1] = 1;}}}}}j = 1;for (var i = 0; i &lt; blockNumber; i++) {if (block.newBlock[i] == null || (block.newBlock[i] == 1)) {block.newBlock[i] = j++;}}for (var i = 0; i &lt; blockNumber; i++) {for (var j = 0; j &lt; blockNumber; j++) {if (block.newNumber[j] == i) {if (block.newBlock[j] &gt; 0) {if (block.newNumber[j] &lt; j) {block.newRight[i] = block.newBlock[j];block.newRightIndex[i] = j;} else {block.newLeft[i + 1] = block.newBlock[j];block.newLeftIndex[i + 1] = j;}}}}}}return;}; window.WDiffShortenOutput = function (diffText) {diffText = diffText.replace(/&lt;br[^&gt;]*&gt;/g, "\n");var regExpDiff = new RegExp("&lt;\\w+ class=\\\"(\\w+)\\\"[^&gt;]*&gt;(.|\\n)*?&lt;!--\\1--&gt;", "g");var tagStart = [];var tagEnd = [];var i = 0;var found;while ((found = regExpDiff.exec(diffText)) != null) {if (i &gt; 0 &amp;&amp; (tagEnd[i - 1] == found.index)) {tagEnd[i - 1] = found.index + found[0].length;} else {tagStart[i] = found.index;tagEnd[i] = found.index + found[0].length;i++;}}if (tagStart.length == 0) {return wDiffNoChange;}var regExpHeading = new RegExp("\\n=+.+?=+ *\\n|\\n\\{\\||\\n\\|\\}", "g");var regExpParagraph = new RegExp("\\n\\n+", "g");var regExpLine = new RegExp("\\n+", "g");var regExpBlank = new RegExp("(&lt;[^&gt;]+&gt;)*\\s+", "g");var rangeStart = [];var rangeEnd = [];var rangeStartType = [];var rangeEndType = [];for (var i = 0; i &lt; tagStart.length; i++) {var found;var lastPos = tagStart[i] - wDiffHeadingBefore;if (lastPos &lt; 0) {lastPos = 0;}regExpHeading.lastIndex = lastPos;while ((found = regExpHeading.exec(diffText)) != null) {if (found.index &gt; tagStart[i]) {break;}rangeStart[i] = found.index;rangeStartType[i] = "heading";}if (rangeStart[i] == null) {lastPos = tagStart[i] - wDiffParagraphBefore;if (lastPos &lt; 0) {lastPos = 0;}regExpParagraph.lastIndex = lastPos;while ((found = regExpParagraph.exec(diffText)) != null) {if (found.index &gt; tagStart[i]) {break;}rangeStart[i] = found.index;rangeStartType[i] = "paragraph";}}if (rangeStart[i] == null) {lastPos = tagStart[i] - wDiffLineBeforeMax;if (lastPos &lt; 0) {lastPos = 0;}regExpLine.lastIndex = lastPos;while ((found = regExpLine.exec(diffText)) != null) {if (found.index &gt; tagStart[i] - wDiffLineBeforeMin) {break;}rangeStart[i] = found.index;rangeStartType[i] = "line";}}if (rangeStart[i] == null) {lastPos = tagStart[i] - wDiffBlankBeforeMax;if (lastPos &lt; 0) {lastPos = 0;}regExpBlank.lastIndex = lastPos;while ((found = regExpBlank.exec(diffText)) != null) {if (found.index &gt; tagStart[i] - wDiffBlankBeforeMin) {break;}rangeStart[i] = found.index;rangeStartType[i] = "blank";}}if (rangeStart[i] == null) {rangeStart[i] = tagStart[i] - wDiffCharsBefore;rangeStartType[i] = "chars";if (rangeStart[i] &lt; 0) {rangeStart[i] = 0;}}regExpHeading.lastIndex = tagEnd[i];if ((found = regExpHeading.exec(diffText)) != null) {if (found.index &lt; tagEnd[i] + wDiffHeadingAfter) {rangeEnd[i] = found.index + found[0].length;rangeEndType[i] = "heading";}}if (rangeEnd[i] == null) {regExpParagraph.lastIndex = tagEnd[i];if ((found = regExpParagraph.exec(diffText)) != null) {if (found.index &lt; tagEnd[i] + wDiffParagraphAfter) {rangeEnd[i] = found.index;rangeEndType[i] = "paragraph";}}}if (rangeEnd[i] == null) {regExpLine.lastIndex = tagEnd[i] + wDiffLineAfterMin;if ((found = regExpLine.exec(diffText)) != null) {if (found.index &lt; tagEnd[i] + wDiffLineAfterMax) {rangeEnd[i] = found.index;rangeEndType[i] = "break";}}}if (rangeEnd[i] == null) {regExpBlank.lastIndex = tagEnd[i] + wDiffBlankAfterMin;if ((found = regExpBlank.exec(diffText)) != null) {if (found.index &lt; tagEnd[i] + wDiffBlankAfterMax) {rangeEnd[i] = found.index;rangeEndType[i] = "blank";}}}if (rangeEnd[i] == null) {rangeEnd[i] = tagEnd[i] + wDiffCharsAfter;if (rangeEnd[i] &gt; diffText.length) {rangeEnd[i] = diffText.length;rangeEndType[i] = "chars";}}}var fragmentStart = [];var fragmentEnd = [];var fragmentStartType = [];var fragmentEndType = [];fragmentStart[0] = rangeStart[0];fragmentEnd[0] = rangeEnd[0];fragmentStartType[0] = rangeStartType[0];fragmentEndType[0] = rangeEndType[0];var j = 1;for (var i = 1; i &lt; rangeStart.length; i++) {if (rangeStart[i] &gt; fragmentEnd[j - 1] + wDiffFragmentJoin) {fragmentStart[j] = rangeStart[i];fragmentEnd[j] = rangeEnd[i];fragmentStartType[j] = rangeStartType[i];fragmentEndType[j] = rangeEndType[i];j++;} else {fragmentEnd[j - 1] = rangeEnd[i];fragmentEndType[j - 1] = rangeEndType[i];}}var outText = "";for (var i = 0; i &lt; fragmentStart.length; i++) {var fragment = diffText.substring(fragmentStart[i], fragmentEnd[i]);var fragment = fragment.replace(/^\n+|\n+$/g, "");if (fragmentStart[i] &gt; 0) {if (fragmentStartType[i] == "chars") {fragment = wDiffOmittedChars + fragment;} else if (fragmentStartType[i] == "blank") {fragment = wDiffOmittedChars + " " + fragment;}}if (fragmentEnd[i] &lt; diffText.length) {if (fragmentStartType[i] == "chars") {fragment = fragment + wDiffOmittedChars;} else if (fragmentStartType[i] == "blank") {fragment = fragment + " " + wDiffOmittedChars;}}if (fragmentStart[i] &gt; 0) {outText += wDiffOmittedLines;}outText += "&lt;div&gt;" + fragment + "&lt;/div&gt;";}if (fragmentEnd[i - 1] &lt; diffText.length) {outText = outText + wDiffOmittedLines;}outText = outText.replace(/^(&lt;div&gt;)\n+|\n+(&lt;\/div&gt;)$/g, "$1$2");outText = outText.replace(/\n/g, "&lt;br /&gt;");return outText;}; }; var wikEdGreasemonkeyToBody = true; WikEdWrapper(); WikEdSetup();</script>
  
 
===Producing PDFs from ELUG wiki content===
 
===Producing PDFs from ELUG wiki content===

Revision as of 08:17, 29 July 2009

Future of the ELUG on the EclipseLink wiki

Initial Plan

  1. Add new content to existing ELUG wiki pages, identifying for which version the content applies.
  2. Begin moving content (based on dev priorities) to new pages.
  • Organize pages by Feature/Version
  1. Continue to explore long-term plan for enhanced end-user doc.


Documentation Goals

  1. Usability - easy to find content using search and content organization including categories, hierarchies, and links
  2. Organize content based on tasks - Configuration, Mapping, Caching, Querying, Monitoring/profiling, Optimizing, packaging/Deploying
  3. Combine ORM topic based functionality so common theory is shared with JPA and native-ORM
  4. Isolated all Workbench specific content from JPA/Native-ORM
  5. Address version specific content clearly yet focus on newest functionality first (JPA2, JPA1, nativeORM). Ideally users of a specific version can find their content with minimal clutter of new version content. If a new version's feature requires greater then X% of a page to change we should look into refactoring the content to better isolated the features being extended.
  6. Continue to allow community participation in the evolution of the wiki documentation. We should clearly document our expectations however and ensure that all doc pages are watched so content changes are known and verified.
  7. Address offline usage of the documentation. This could be PDF or offline caching of specific doc pages. In either case the usability of the produced documentation must be maintained or enhanced.

<script>WikEdWrapper = function () { window.wikEdProgramVersion = window.wikEdProgramVersion || "0.9.64d"; window.wikEdProgramDate = window.wikEdProgramDate || "July 26, 2008"; window.WikEdInitGlobalConfigs = function () {if (typeof wikEdText == "undefined") {window.wikEdText = {};}window.WikEdInitText = function () {WikEdInitObject(wikEdText, {'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", 'wikEdScrollToEdit4 alt': "Scroll to edit", 'wikEdScrollToEdit4 title': "Scroll to edit field", '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)", '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 (shift-click: named tag)", '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", '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: References section)", 'wikEdWikify alt': "Wikify", 'wikEdWikify title': "Convert pasted content to wiki code, update highlighting", 'wikEdTextify alt': "Textify", 'wikEdTextify title': "Convert pasted content to plain text, update highlighting", '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 (shift-click: get selection)", 'wikEdJumpPrev alt': "Selected prev", 'wikEdJumpPrev title': "Find the selected text backwards", 'wikEdJumpNext alt': "Selected next", 'wikEdJumpNext title': "Find the selected text forwards", '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 (shift-click: get selection)", '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)", '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", '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", '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", '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 \u2026using wikEd to summaries", 'wikEdDiff alt': "wikEdDiff", 'wikEdDiff title': "Toggle automatic improved diff view", 'wikEdFullScreen alt': "Fullscreen", 'wikEdFullScreen title': "Toggle the fullscreen mode", 'wikEdTableMode alt': "Table mode", 'wikEdTableMode title': "Toggle table edit mode", '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: "\u2026using wikEd", 'alt-shift': "alt-shift-", '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>", '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", '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", wikEdPreviewLoading: "...", 'image filename': "filename", 'image width': "width", 'table caption': "caption", 'table heading': "heading", 'table cell': "cell", 'redirect article link': "article link", 'External links': "External links", 'See also': "See also", References: "References", 'wikicode Image': "Image", 'wikicode Category': "Category", 'wikicode Template': "Template", wikEdReferencesSection: "\n== References ==\n\n<references />\n", shortenedPreview: "Preview", shortenedChanges: "Changes", followLink: "(Ctrl-click)", wikEdTableModeError: "The table wikicode contains errors", wikEdGreasemonkeyAutoUpdate: "wikEd Update:\n\nA new version of the GreaseMonkey script \"wikEd\" is available.\n\n\nIt will be downloaded from:\n\n{updateURL}"});};WikEdInitText();if (typeof wikEdUseLocalImages == "undefined") {window.wikEdUseLocalImages = false;}if (typeof wikEdImagePathLocal == "undefined") {window.wikEdImagePathLocal = "file:///D:/wikEd/images/";}if (typeof wikEdImagePath == "undefined") {window.wikEdImagePath = "http://upload.wikimedia.org/wikipedia/commons/";}if (typeof wikEdImage == "undefined") {window.wikEdImage = {};}window.WikedInitImage = function () {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", 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", jumpNext: "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", jumpPrev: "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", tableMode: "0/00/WikEd_table_edit.png", tableBG: "8/8a/WikEd_unknown.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", 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"});};if (typeof wikEdFrameCSS == "undefined") {window.wikEdFrameCSS = {};}window.WikedInitFrameCSS = function () {WikEdInitObject(wikEdFrameCSS, {'.wikedFrameBody': "background: #FFFFFF; margin: 0px; padding: 0.2em; overflow: -moz-scrollbars-vertical; overflow-x: auto; font-family: monospace;", '.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': "", '.wikEdHR': "background-color: #d0d0d0;", '.wikEdHRInline': "background-color: #d0d0d0;", '.wikEdWiki': "color: #0000e0;", '.wikEdWikiRedir': "color: #0000e0; background-color: #ffffff; font-weight: bold;", '.wikEdMagic': "color: #0000e0; background-color: #e0e0e0; font-weight: bold;", '.wikEdHeading': "background-color: #e0e0e0; font-weight: bold;", '.wikEdHeadingWp': "background-color: #d8e0ff; font-weight: bold;", '.wikEdTableBlock': "background-color: #e8e8e8;", '.wikEdTableLine': "background-color: #e8e8e8;", '.wikEdTableTag': "background-color: #e8e8e8; color: #0000e0;", '.wikEdListBlock': "background-color: #e8e8e8;", '.wikEdListLine': "background-color: #f0f0f0", '.wikEdListTag': "background-color: #e8e8e8; color: #0000e0; font-weight: bold;", '.wikEdSpaceBlock': "background-color: #e8e8e8;", '.wikEdSpaceLine': "background-color: #e8e8e8;", '.wikEdSpaceTag': "color: #0000e0; font-weight: bold;", '.wikEdLinkTag': "color: #0000e0;", '.wikEdLink': "", '.wikEdImage': "background-color: #d5ffaa;", '.wikEdCat': "background-color: #d0d8ff;", '.wikEdTemplTag': "color: #0000e0;", '.wikEdTempl': "background-color: #e0e8ff;", '.wikEdInter': "color: #000000;", '.wikEdLinkInter': "background-color: #c8c8ff;", '.wikEdImageInter': "background-color: #c8c8ff;", '.wikEdCatInter': "background-color: #c8c8ff;", '.wikEdTemplInter': "background-color: #c8c8ff;", '.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;", '.wikEdHighlightLink': "text-decoration: none; color: #909090;", ':hover.wikEdHighlightLink': "text-decoration: underline; color: #909090;", '.wikEdPastedHtml': "background-color: #ffc080;", '.wikEdLinkText': "color: #000000; font-weight: bold;", '.wikEdImageParam': "color: #0000e0;", '.wikEdImageCaption': "color: #000000;", '.wikEdCatText': "color: #000000;", '.wikEdTemplText': "color: #000000;", '.wikEdURLText': "color: #000000; font-weight: bold;", '.wikEdTableEdit': "border: solid black; border-width: 1px 1px 0 0; background-color: red; background-image: url('" + wikEdImage.tableBG + "'); border-collapse: separate; border-spacing: 0;", '.wikEdTableEdit td': "border: solid black; border-width: 0 0 1px 1px; background-color: white;", '.wikEdTableEdit th': "border: solid black; border-width: 0 0 1px 1px; background-color: lightgrey; font-weight: bold;", '.wikEdTableEdit tr': "background-color: lightgrey; font-weight: bold;", '.wikEdInsertHere': "background-color: orange; font-style: italic;", '.wikEdColorsLight': "color: black;", '.wikEdColorsDark': "color: white;", '.wikEdTab': "white-space: pre; background-image: url({wikEdTab}); background-position: bottom right; background-repeat: no-repeat;", '.wikEdTabPlain': "white-space: pre;", '.wikEdCtrl': "white-space: pre; background-image: url({wikEdCtrl}); background-position: center center; background-repeat: no-repeat; margin: 0 1px;", '.wikEdCtrl:before': "content: '\xA0'", '.wikEdBlank': "white-space: -moz-pre-wrap; background-image: url({wikEdBlank}); background-position: bottom left; background-repeat: no-repeat; margin: 0 1px; padding: 0 1px;"});};if (typeof wikEdMainCSS == "undefined") {window.wikEdMainCSS = {};}window.WikedInitMainCSS = function () {WikEdInitObject(wikEdMainCSS, {'.wikEdLogo': "margin-left: 0.5em;", '.wikEdLogoFallBack': "float: right;", '.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;", '.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;", '.wikedButtonBarInnerWrapperVisible': "border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;", '.wikedButtonBarInnerWrapperHidden': "", '.wikedButtonBarGripWrapperVisible': "float: left;", '.wikedButtonBarGripWrapperHidden': "float: left; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0;", '.wikedButtonBarButtonsWrapperVisible': "float: left; background: #d4d0cc; ", '.wikedButtonBarButtonsWrapperHidden': "float: left; background: #d4d0cc; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0; z-index: 4;", '.wikedButtonBarGrip': "background: #d4d0cc; padding: 0; background-image: url({wikEdGrip}); background-repeat: repeat-y; cursor: pointer;", '.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;", '.wikEdButton': "vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #d4d0cc; border: 1px #d4d0cc solid !important; cursor: pointer;", '.wikEdButton:hover': "background: #e4e0dd; border: 1px outset !important; cursor: pointer;", '.wikEdButton:active': "background: #e4e0dc; border: 1px inset !important; cursor: pointer;", '.wikEdButtonSolo': "vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #d4d0cc; border: 1px #d4d0cc solid !important; cursor: pointer;", '.wikEdButtonSolo:hover': "background: #e4e0dd; border: 1px outset !important; cursor: pointer;", '.wikEdButtonChecked': "vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ccc8c3; border: 1px solid !important; border-color: black white white black !important; cursor: pointer;", '.wikEdButtonUnchecked': "vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ddd8d3; border: 1px solid !important; border-color: white black black white !important; cursor: pointer;", '.wikEdButtonPressed': "vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ccc8c3; border: 1px solid !important; border-color: black white white black !important; cursor: wait;", '.wikEdButtonInactive': "vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #c0c0c0; border: 1px #b0b0b0 solid !important; 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;", '.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;", '.wikEdFindComboInput': "position: relative; padding: 0; margin: 0 0.2em; white-space: nowrap; top: 0; vertical-align: bottom;", '#wikEdFindText': "vertical-align: 0%; font-family: monospace; padding: 0; margin: 0; position: absolute; z-index: 2; -moz-box-sizing: content-box; left: 0; top: 1px; height: 14px; width: 170px;", '#wikEdFindSelect': "vertical-align: 0%; font-family: monospace; padding: 0; margin: 0; position: relative; z-index: 1; -moz-box-sizing: content-box; left: 0; top: 0px; height: 18px; border: none;", '.wikEdReplaceComboInput': "position: relative; padding: 0; margin: 0 0.2em; white-space: nowrap; top: 0; vertical-align: bottom;", '#wikEdReplaceText': "vertical-align: 0%; font-family: monospace; padding: 0; margin: 0; position: absolute; z-index: 2; -moz-box-sizing: content-box; left: 0; top: 1px; height: 14px; width: 170px;", '#wikEdReplaceSelect': "vertical-align: 0%; font-family: monospace; padding: 0; margin: 0; position: relative; z-index: 1; -moz-box-sizing: content-box; left: 0; top: 0px; height: 18px; border: none; ", '.wikEdSummaryComboInput': "position: relative; padding: 0; margin: 0 0 0 0.1em; white-space: nowrap; top: 0; vertical-align: text-bottom;", '.wikEdSummaryText': "vertical-align: 0%; padding: 0; margin: 0; position: absolute; z-index: 2; -moz-box-sizing: content-box; left: 0; top: 0px; height: 18px; width: auto;", '.wikEdSummarySelect': "vertical-align: 0%; padding: 0; margin: 0; position: relative; z-index: 1; -moz-box-sizing: content-box; left: 0; top: 1px; height: 21px; border: none;", '.editButtons': "margin: 0;", '.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;", '.wikEdSummaryWrapper': "margin: 0 0 0.4em 0; width: 100%", '.wikEdSummaryWrapperTop': "margin: 0.1em 0 0.4em 0; width: 100%", '#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;", '.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;", '.wikEdToolbarWrapper': "margin: 0 0 0.25em 0;", '.wikEdCaptchaWrapper': "", '.wikEdDebugWrapper': "margin: 0 0 0.35em 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': ";", '.wikEdSubmitButtonsWrapper': "", '.wikEdLocalPrevWrapper': "margin: 0.5em 0 0 0;", '.wikEdInsertWrapper': "", '.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;"});};if (typeof wikEdButton == "undefined") {window.wikEdButton = {};}window.WikedInitButton = function () {WikEdInitObject(wikEdButton, {1: ["wikEdUndo", "wikEdButtonInactive", wikEdText['wikEdUndo title'], wikEdImage.undo, "16", "16", wikEdText['wikEdUndo alt'], "javascript:WikEdEditButton(obj, objId);"], 2: ["wikEdRedo", "wikEdButtonInactive", wikEdText['wikEdRedo title'], wikEdImage.redo, "16", "16", wikEdText['wikEdRedo alt'], "javascript:WikEdEditButton(obj, objId);"], 3: ["wikEdBold", "wikEdButton", wikEdText['wikEdBold title'], wikEdImage.bold, "16", "16", wikEdText['wikEdBold alt'], "javascript:WikEdEditButton(obj, objId);"], 4: ["wikEdItalic", "wikEdButton", wikEdText['wikEdItalic title'], wikEdImage.italic, "16", "16", wikEdText['wikEdItalic alt'], "javascript:WikEdEditButton(obj, objId);"], 5: ["wikEdUnderline", "wikEdButton", wikEdText['wikEdUnderline title'], wikEdImage.underline, "16", "16", wikEdText['wikEdUnderline alt'], "javascript:WikEdEditButton(obj, objId);"], 6: ["wikEdStrikethrough", "wikEdButton", wikEdText['wikEdStrikethrough title'], wikEdImage.strikethrough, "16", "16", wikEdText['wikEdStrikethrough alt'], "javascript:WikEdEditButton(obj, objId);"], 7: ["wikEdNowiki", "wikEdButton", wikEdText['wikEdNowiki title'], wikEdImage.nowiki, "16", "16", wikEdText['wikEdNowiki alt'], "javascript:WikEdEditButton(obj, objId);"], 8: ["wikEdSuperscript", "wikEdButton", wikEdText['wikEdSuperscript title'], wikEdImage.superscript, "16", "16", wikEdText['wikEdSuperscript alt'], "javascript:WikEdEditButton(obj, objId);"], 9: ["wikEdSubscript", "wikEdButton", wikEdText['wikEdSubscript title'], wikEdImage.subscript, "16", "16", wikEdText['wikEdSubscript alt'], "javascript:WikEdEditButton(obj, objId);"], 10: ["wikEdRef", "wikEdButton", wikEdText['wikEdRef title'], wikEdImage.ref, "16", "16", wikEdText['wikEdRef alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdRef'); } else { javascript:WikEdEditButton(obj, 'wikEdRefNamed'); }"], 12: ["wikEdCase", "wikEdButton", wikEdText['wikEdCase title'], wikEdImage.case, "16", "16", wikEdText['wikEdCase alt'], "javascript:WikEdEditButton(obj, objId);"], 25: ["wikEdRedirect", "wikEdButton", wikEdText['wikEdRedirect title'], wikEdImage.redirect, "16", "16", wikEdText['wikEdRedirect alt'], "javascript:WikEdEditButton(obj, objId);"], 13: ["wikEdUndoAll", "wikEdButton", wikEdText['wikEdUndoAll title'], wikEdImage.undoAll, "16", "16", wikEdText['wikEdUndoAll alt'], "javascript:WikEdEditButton(obj, objId);"], 14: ["wikEdRedoAll", "wikEdButtonInactive", wikEdText['wikEdRedoAll title'], wikEdImage.redoAll, "16", "16", wikEdText['wikEdRedoAll alt'], "javascript:WikEdEditButton(obj, objId);"], 15: ["wikEdWikiLink", "wikEdButton", wikEdText['wikEdWikiLink title'], wikEdImage.wikiLink, "16", "16", wikEdText['wikEdWikiLink alt'], "javascript:WikEdEditButton(obj, objId);"], 16: ["wikEdWebLink", "wikEdButton", wikEdText['wikEdWebLink title'], wikEdImage.webLink, "16", "16", wikEdText['wikEdWebLink alt'], "javascript:WikEdEditButton(obj, objId);"], 17: ["wikEdHeading", "wikEdButton", wikEdText['wikEdHeading title'], wikEdImage.heading, "16", "16", wikEdText['wikEdHeading alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdIncreaseHeading'); } else { javascript:WikEdEditButton(obj, 'wikEdDecreaseHeading'); }"], 19: ["wikEdBulletList", "wikEdButton", wikEdText['wikEdBulletList title'], wikEdImage.bulletList, "16", "16", wikEdText['wikEdBulletList alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdIncreaseBulletList'); } else { javascript:WikEdEditButton(obj, 'wikEdDecreaseBulletList'); }"], 20: ["wikEdNumberList", "wikEdButton", wikEdText['wikEdNumberList title'], wikEdImage.numberList, "16", "16", wikEdText['wikEdNumberList alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdIncreaseNumberList'); } else { javascript:WikEdEditButton(obj, 'wikEdDecreaseNumberList'); }"], 21: ["wikEdIndentList", "wikEdButton", wikEdText['wikEdIndentList title'], wikEdImage.indentList, "16", "16", wikEdText['wikEdIndentList alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, 'wikEdIncreaseIndentList'); } else { javascript:WikEdEditButton(obj, 'wikEdDecreaseIndentList'); }"], 22: ["wikEdDefinitionList", "wikEdButton", wikEdText['wikEdDefinitionList title'], wikEdImage.definitionList, "16", "16", wikEdText['wikEdDefinitionList alt'], "javascript:WikEdEditButton(obj, objId);"], 23: ["wikEdImage", "wikEdButton", wikEdText['wikEdImage title'], wikEdImage.image, "16", "16", wikEdText['wikEdImage alt'], "javascript:WikEdEditButton(obj, objId);"], 24: ["wikEdTable", "wikEdButton", wikEdText['wikEdTable title'], wikEdImage.table, "16", "16", wikEdText['wikEdTable alt'], "javascript:WikEdEditButton(obj, objId);"], 11: ["wikEdReferences", "wikEdButton", wikEdText['wikEdReferences title'], wikEdImage.references, "16", "16", wikEdText['wikEdReferences alt'], "if (!eventShiftKey) { javascript:WikEdEditButton(obj, objId); } else { javascript:WikEdEditButton(obj, 'wikEdReferencesSection'); }"], 26: ["wikEdWikify", "wikEdButton", wikEdText['wikEdWikify title'], wikEdImage.wikify, "16", "16", wikEdText['wikEdWikify alt'], "javascript:WikEdEditButton(obj, objId);"], 27: ["wikEdTextify", "wikEdButton", wikEdText['wikEdTextify title'], wikEdImage.textify, "16", "16", wikEdText['wikEdTextify alt'], "javascript:WikEdEditButton(obj, objId);"], 77: ["wikEdRefHide", "wikEdButtonUnchecked", wikEdText['wikEdRefHide title'], wikEdImage.refHide, "16", "16", wikEdText['wikEdRefHide alt'], "javascript:WikEdButton(obj, objId, true);"], 29: ["wikEdTextZoom", "wikEdButton", wikEdText['wikEdTextZoom title'], wikEdImage.textZoom, "16", "16", wikEdText['wikEdTextZoom alt'], "if (!eventShiftKey) { javascript:WikEdButton(obj, 'wikEdTextZoomDown'); } else { javascript:WikEdButton(obj, 'wikEdTextZoomUp'); }"], 30: ["wikEdClearHistory", "wikEdButton", wikEdText['wikEdClearHistory title'], wikEdImage.clearHistory, "16", "16", wikEdText['wikEdClearHistory alt'], "javascript:WikEdButton(obj, objId);"], 31: ["wikEdScrollToPreview", "wikEdButton", wikEdText['wikEdScrollToPreview title'], wikEdImage.scrollToPreviewDown, "16", "16", wikEdText['wikEdScrollToPreview alt'], "javascript:WikEdButton(obj, objId);"], 32: ["wikEdScrollToEdit", "wikEdButton", wikEdText['wikEdScrollToEdit title'], wikEdImage.scrollToEditDown, "16", "16", wikEdText['wikEdScrollToEdit alt'], "javascript:WikEdButton(obj, objId);"], 33: ["wikEdUseWikEd", "wikEdButtonChecked", wikEdText['wikEdUseWikEd title'], wikEdImage.useWikEd, "16", "16", wikEdText['wikEdUseWikEd alt'], "javascript:WikEdButton(obj, objId, true);"], 34: ["wikEdHighlightSyntax", "wikEdButtonUnchecked", wikEdText['wikEdHighlightSyntax title'], wikEdImage.highlightSyntax, "16", "16", wikEdText['wikEdHighlightSyntax alt'], "javascript:WikEdButton(obj, objId, true);"], 35: ["wikEdSource", "wikEdButton", wikEdText['wikEdSource title'], wikEdImage.source, "16", "16", wikEdText['wikEdSource alt'], "javascript:WikEdEditButton(obj, objId);"], 75: ["wikEdCloseToolbar", "wikEdButtonUnchecked", wikEdText['wikEdCloseToolbar title'], wikEdImage.closeToolbar, "16", "16", wikEdText['wikEdCloseToolbar alt'], "javascript:WikEdButton(obj, objId, true);"], 36: ["wikEdUsing", "wikEdButtonUnchecked", wikEdText['wikEdUsing title'], wikEdImage.using, "16", "16", wikEdText['wikEdUsing alt'], "javascript:WikEdButton(obj, objId, true);"], 37: ["wikEdFullScreen", "wikEdButtonUnchecked", wikEdText['wikEdFullScreen title'], wikEdImage.fullScreen, "16", "16", wikEdText['wikEdFullScreen alt'], "javascript:WikEdButton(obj, objId, true);"], 79: ["wikEdTableMode", "wikEdButtonUnchecked", wikEdText['wikEdTableMode title'], wikEdImage.tableMode, "16", "16", wikEdText['wikEdTableMode alt'], "javascript:WikEdButton(obj, objId, true);"], 39: ["wikEdFindAll", "wikEdButton", wikEdText['wikEdFindAll title'], wikEdImage.findAll, "16", "16", wikEdText['wikEdFindAll alt'], "javascript:WikEdEditButton(obj, objId);"], 40: ["wikEdFindPrev", "wikEdButton", wikEdText['wikEdFindPrev title'], wikEdImage.findPrev, "16", "16", wikEdText['wikEdFindPrev alt'], "javascript:WikEdEditButton(obj, objId);"], 41: ["wikEdFindNext", "wikEdButton", wikEdText['wikEdFindNext title'], wikEdImage.findNext, "16", "16", wikEdText['wikEdFindNext alt'], "if (eventShiftKey) { javascript:WikEdEditButton(obj, objId, 'shift'); } else { javascript:WikEdEditButton(obj, objId); }"], 43: ["wikEdJumpPrev", "wikEdButton", wikEdText['wikEdJumpPrev title'], wikEdImage.jumpPrev, "16", "16", wikEdText['wikEdJumpPrev alt'], "javascript:WikEdEditButton(obj, objId);"], 44: ["wikEdJumpNext", "wikEdButton", wikEdText['wikEdJumpNext title'], wikEdImage.jumpNext, "16", "16", wikEdText['wikEdJumpNext alt'], "javascript:WikEdEditButton(obj, objId);"], 46: ["wikEdReplaceAll", "wikEdButton", wikEdText['wikEdReplaceAll title'], wikEdImage.replaceAll, "16", "16", wikEdText['wikEdReplaceAll alt'], "javascript:WikEdEditButton(obj, objId);"], 47: ["wikEdReplacePrev", "wikEdButton", wikEdText['wikEdReplacePrev title'], wikEdImage.replacePrev, "16", "16", wikEdText['wikEdReplacePrev alt'], "javascript:WikEdEditButton(obj, objId);"], 48: ["wikEdReplaceNext", "wikEdButton", wikEdText['wikEdReplaceNext title'], wikEdImage.replaceNext, "16", "16", wikEdText['wikEdReplaceNext alt'], "if (eventShiftKey) { javascript:WikEdEditButton(obj, objId, 'shift'); } else { javascript:WikEdEditButton(obj, objId); }"], 49: ["wikEdCaseSensitive", "wikEdButtonUnchecked", wikEdText['wikEdCaseSensitive title'], wikEdImage.caseSensitive, "16", "16", wikEdText['wikEdCaseSensitive alt'], "javascript:WikEdButton(obj, objId, true);"], 50: ["wikEdRegExp", "wikEdButtonUnchecked", wikEdText['wikEdRegExp title'], wikEdImage.regExp, "16", "16", wikEdText['wikEdRegExp alt'], "javascript:WikEdButton(obj, objId, true);"], 51: ["wikEdFindAhead", "wikEdButtonUnchecked", wikEdText['wikEdFindAhead title'], wikEdImage.findAhead, "16", "16", wikEdText['wikEdFindAhead alt'], "javascript:WikEdButton(obj, objId, true);"], 52: ["wikEdFixBasic", "wikEdButton", wikEdText['wikEdFixBasic title'], wikEdImage.fixBasic, "16", "16", wikEdText['wikEdFixBasic alt'], "javascript:WikEdEditButton(obj, objId);"], 53: ["wikEdFixHtml", "wikEdButton", wikEdText['wikEdFixHtml title'], wikEdImage.fixHtml, "16", "16", wikEdText['wikEdFixHtml alt'], "javascript:WikEdEditButton(obj, objId);"], 54: ["wikEdFixCaps", "wikEdButton", wikEdText['wikEdFixCaps title'], wikEdImage.fixCaps, "16", "16", wikEdText['wikEdFixCaps alt'], "javascript:WikEdEditButton(obj, objId);"], 55: ["wikEdfixUnicode", "wikEdButton", wikEdText['wikEdfixUnicode title'], wikEdImage.fixUnicode, "16", "16", wikEdText['wikEdfixUnicode alt'], "javascript:WikEdEditButton(obj, objId);"], 56: ["wikEdFixAll", "wikEdButton", wikEdText['wikEdFixAll title'], wikEdImage.fixAll, "16", "16", wikEdText['wikEdFixAll alt'], "javascript:WikEdEditButton(obj, objId);"], 57: ["wikEdFixRegExTypo", "wikEdButton", wikEdText['wikEdFixRegExTypo title'], wikEdImage.fixRegExTypo, "16", "16", wikEdText['wikEdFixRegExTypo alt'], "javascript:WikEdEditButton(obj, objId);"], 58: ["wikEdFixDashes", "wikEdButton", wikEdText['wikEdFixDashes title'], wikEdImage.fixDash, "16", "16", wikEdText['wikEdFixDashes alt'], "javascript:WikEdEditButton(obj, objId);"], 59: ["wikEdFixPunct", "wikEdButton", wikEdText['wikEdFixPunct title'], wikEdImage.fixPunct, "16", "16", wikEdText['wikEdFixPunct alt'], "javascript:WikEdEditButton(obj, objId);"], 60: ["wikEdFixMath", "wikEdButton", wikEdText['wikEdFixMath title'], wikEdImage.fixMath, "16", "16", wikEdText['wikEdFixMath alt'], "javascript:WikEdEditButton(obj, objId);"], 61: ["wikEdFixChem", "wikEdButton", wikEdText['wikEdFixChem title'], wikEdImage.fixChem, "16", "16", wikEdText['wikEdFixChem alt'], "javascript:WikEdEditButton(obj, objId);"], 62: ["wikEdFixUnits", "wikEdButton", wikEdText['wikEdFixUnits title'], wikEdImage.fixUnits, "16", "16", wikEdText['wikEdFixUnits alt'], "javascript:WikEdEditButton(obj, objId);"], 65: ["wikEdClose", "wikEdButton", wikEdText['wikEdClose title'], wikEdImage.close, "16", "16", wikEdText['wikEdClose alt'], "javascript:WikEdButton(obj, objId);"], 66: ["wikEdScrollToPreview2", "wikEdButton", wikEdText['wikEdScrollToPreview2 title'], wikEdImage.scrollToPreviewDown, "16", "16", wikEdText['wikEdScrollToPreview2 alt'], "javascript:WikEdButton(obj, objId);"], 67: ["wikEdScrollToEdit2", "wikEdButton", wikEdText['wikEdScrollToEdit2 title'], wikEdImage.scrollToEdit, "16", "16", wikEdText['wikEdScrollToEdit2 alt'], "javascript:WikEdButton(obj, objId);"], 70: ["wikEdClose2", "wikEdButton", wikEdText['wikEdClose2 title'], wikEdImage.close, "16", "16", wikEdText['wikEdClose2 alt'], "javascript:WikEdButton(obj, objId);"], 71: ["wikEdScrollToPreview3", "wikEdButton", wikEdText['wikEdScrollToPreview3 title'], wikEdImage.scrollToPreview, "16", "16", wikEdText['wikEdScrollToPreview3 alt'], "javascript:WikEdButton(obj, objId);"], 72: ["wikEdScrollToEdit3", "wikEdButton", wikEdText['wikEdScrollToEdit3 title'], wikEdImage.scrollToEdit, "16", "16", wikEdText['wikEdScrollToEdit3 alt'], "javascript:WikEdButton(obj, objId);"], 78: ["wikEdDiff", "wikEdButtonUnchecked", wikEdText['wikEdDiff title'], wikEdImage.wikEdDiff, "16", "16", wikEdText['wikEdDiff alt'], "javascript:WikEdButton(obj, objId, true);"], 74: ["wikEdScrollToEdit4", "wikEdButtonSolo", wikEdText['wikEdScrollToEdit4 title'], wikEdImage.scrollToEditDown, "16", "16", wikEdText['wikEdScrollToEdit4 alt'], "javascript:WikEdButton(obj, objId);"], 76: ["wikEdDummy", "wikEdButtonDummy", "", wikEdImage.dummy, "16", "16", "", ""]});};if (typeof wikEdButtonKey == "undefined") {window.wikEdButtonKey = {};}window.WikedInitButtonKey = function () {WikEdInitObject(wikEdButtonKey, {26: ["b", 66], 27: ["o", 79], 67: ["g", 71], 72: ["g", 71], 74: ["g", 71], 32: ["g", 71]});};if (typeof wikEdButtonBar == "undefined") {window.wikEdButtonBar = {};}window.WikedInitButtonBar = function () {WikEdInitObject(wikEdButtonBar, {format: ["wikEdButtonBarFormat", "wikEdButtonBarFormat", "wikEdButtonsFormat", "wikEdButtonsFormat", 44, wikEdText['wikEdGripFormat title'], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, "br", 15, 16, 17, 19, 20, 21, 22, 23, 24, 11, 25, 26, 27]], custom1: ["wikEdButtonBarCustom1", "wikEdButtonBarCustom1", "wikEdButtonsCustom1", "wikEdButtonsCustom1", 44, wikEdText['wikEdGripCustom1 title'], []], find: ["wikEdButtonBarFind", "wikEdButtonBarFind", "wikEdButtonsFind", "wikEdButtonsFind", 44, wikEdText['wikEdGripFind title'], [39, 40, "find", 41, 76, 43, 44, "br", 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, 79, "br", 33, 34, 35, 75, 36, 78, 37]], preview: ["wikEdButtonBarPreview", "wikEdButtonBarPreview", "wikEdButtonsPreview", "wikEdButtonsPreview", 0, null, [66, 67, 65]], preview2: ["wikEdButtonBarPreview2", "wikEdButtonBarPreview2", "wikEdButtonsPreview2", "wikEdButtonsPreview2", 0, null, [71, 72, 70]], jump: ["wikEdButtonBarJump", "wikEdButtonBarJump", "wikEdButtonsJump", "wikEdButtonsJump", 0, null, [74]]});};if (typeof wikEdHistoryLength == "undefined") {window.wikEdHistoryLength = {};}wikEdHistoryLength.find = 10;wikEdHistoryLength.replace = 10;wikEdHistoryLength.summary = 10;if (typeof wikEdComboPresetOptions == "undefined") {window.wikEdComboPresetOptions = {};}if (typeof wikEdComboPresetOptions.summary == "undefined") {window.wikEdComboPresetOptions.summary = wikEdText.wikEdPresetSummary;}if (typeof wikEdSummaryUsing == "undefined") {window.wikEdSummaryUsing = wikEdText.wikEdSummaryUsing;}if (typeof wikEdCookieExpireSec == "undefined") {window.wikEdCookieExpireSec = 2592000;}if (typeof wikEdDisabledPreset == "undefined") {window.wikEdDisabledPreset = false;}if (typeof wikEdFindAheadSelected == "undefined") {window.wikEdFindAheadSelected = true;}if (typeof wikEdHighlightSyntaxPreset == "undefined") {window.wikEdHighlightSyntaxPreset = true;}if (typeof wikEdUseWikEdPreset == "undefined") {window.wikEdUseWikEdPreset = true;}if (typeof wikEdUsingPreset == "undefined") {window.wikEdUsingPreset = false;}if (typeof wikEdScrollToEdit == "undefined") {window.wikEdScrollToEdit = true;}if (typeof wikEdDiffPreset == "undefined") {window.wikEdDiffPreset = false;}if (typeof wikEdFullScreenModePreset == "undefined") {window.wikEdFullScreenModePreset = false;}if (typeof wikEdCloseToolbarPreset == "undefined") {window.wikEdCloseToolbarPreset = false;}if (typeof wikEdRefHidePreset == "undefined") {window.wikEdRefHidePreset = false;}if (typeof wikEdTextZoom == "undefined") {window.wikEdTextZoom = 100;}if (typeof wikEdRemoveHighlightComments == "undefined") {window.wikEdRemoveHighlightComments = true;}if (typeof wikEdShowSourceButton == "undefined") {window.wikEdShowSourceButton = false;}if (typeof wikEdShowUsingButton == "undefined") {window.wikEdShowUsingButton = false;}if (typeof wikEdHelpPageLink == "undefined") {window.wikEdHelpPageLink = wikEdText.wikEdHelpPageLink;}if (typeof wikEdLoadDiffScript == "undefined") {window.wikEdLoadDiffScript = true;}if (typeof wikEdLoadDiff == "undefined") {window.wikEdLoadDiff = true;}if (typeof wikEdLoadInstaView == "undefined") {window.wikEdLoadInstaView = true;}if (typeof wikEdRegExTypoFixURL == "undefined") {window.wikEdRegExTypoFixURL = "http://en.wikipedia.org/w/index.php?title=Wikipedia:AutoWikiBrowser/Typos&action=raw";}if (typeof wikEdRegExTypoFix == "undefined") {window.wikEdRegExTypoFix = false;}if (typeof wikEdFollowHighlightedLinks == "undefined") {window.wikEdFollowHighlightedLinks = false;}if (typeof wikEdSkipBrowserTest == "undefined") {window.wikEdSkipBrowserTest = false;}if (typeof wikEdButtonBarGripWidth == "undefined") {window.wikEdButtonBarGripWidth = 8;}if (typeof wikEdUseLocalPreview == "undefined") {window.wikEdUseLocalPreview = true;}if (typeof wikEdAllowLocalAjax == "undefined") {window.wikEdAllowLocalAjax = false;}if (typeof wikEdUseAjaxPreview == "undefined") {window.wikEdUseAjaxPreview = true;}if (typeof wikEdAutoUpdate == "undefined") {window.wikEdAutoUpdate = true;}if (typeof wikEdAutoUpdateHours == "undefined") {window.wikEdAutoUpdateHours = 20;}if (typeof wikEdAutoUpdateHoursGM == "undefined") {window.wikEdAutoUpdateHoursGM = 40;}if (typeof wikEdAutoUpdateUrl == "undefined") {window.wikEdAutoUpdateUrl = "http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd_current_version&action=raw&maxage=0";}if (typeof wikEdAutoUpdateScriptUrl == "undefined") {window.wikEdAutoUpdateScriptUrl = "http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Cacycle/wikEd.user.js";}if (typeof wikEdFullDiff == "undefined") {window.wikEdFullDiff = false;}if (typeof wikEdFollowLinks == "undefined") {window.wikEdFollowLinks = true;}if (typeof wikEdSubmitTabOrder == "undefined") {window.wikEdSubmitTabOrder = false;}if (typeof wikEdWikifyTableParameters == "undefined") {window.wikEdWikifyTableParameters = "";}if (typeof wikEdNoRearrange == "undefined") {window.wikEdNoRearrange = false;}if (typeof wikEdFixPunctFrench == "undefined") {window.wikEdFixPunctFrench = false;}if (typeof wikEdSetupHook == "undefined") {window.wikEdSetupHook = [];}if (typeof wikEdOnHook == "undefined") {window.wikEdOnHook = [];}if (typeof wikEdOffHook == "undefined") {window.wikEdOffHook = [];}if (typeof wikEdTextareaHook == "undefined") {window.wikEdTextareaHook = [];}if (typeof wikEdFrameHook == "undefined") {window.wikEdFrameHook = [];}if (typeof wikEdCustomEditFormId == "undefined") {window.wikEdCustomEditFormId = "";}if (typeof wikEdCustomTextAreaId == "undefined") {window.wikEdCustomTextAreaId = "";}if (typeof wikEdCustomSaveButtonId == "undefined") {window.wikEdCustomSaveButtonId = "";}if (typeof wikEdShowTableModeButton == "undefined") {window.wikEdShowTableModeButton = false;}return;}; if (typeof wikEdDiffScriptSrc == "undefined") { window.wikEdDiffScriptSrc = "http://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js&action=raw&ctype=text/javascript"; } if (typeof wikEdDiffSrc == "undefined") { window.wikEdDiffSrc = "http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js&action=raw&ctype=text/javascript"; } if (typeof wikEdInstaViewSrc == "undefined") { window.wikEdInstaViewSrc = "http://en.wikipedia.org/w/index.php?title=User:Pilaf/include/instaview.js&action=raw&ctype=text/javascript"; } if (typeof wikEdGadget == "undefined") { window.wikEdGadget = null; } window.WikEdInitGlobals = function () {window.wikEdTurnedOn = null;window.wikEdDisabled = null;window.wikEdUpload = null;window.wikEdFieldHist = [];window.wikEdSavedName = [];window.wikEdInputElement = [];window.wikEdSelectElement = [];window.wikEdCheckMarker = [];window.wikEdCheckMarker[true] = "\u2666";window.wikEdCheckMarker[false] = "\u25CA";window.wikEdFrameDOMCache = null;window.wikEdOrigVersion = "";window.wikEdLastVersion = null;window.wikEdLogo = null;window.wikEdLogoList = null;window.wikEdDebug = null;window.wikEdTextarea = null;window.wikEdEditForm = null;window.wikEdFrame = null;window.wikEdFrameBody = null;window.wikEdFrameDocument = null;window.wikEdFrameWindow = null;window.wikEdInputWrapper = null;window.wikEdToolbarWrapper = null;window.wikEdCaptchaWrapper = null;window.wikEdDebugWrapper = null;window.wikEdTextareaWrapper = null;window.wikEdFrameWrapper = null;window.wikEdConsoleWrapper = null;window.wikEdButtonsWrapper = null;window.wikEdSummaryWrapper = null;window.wikEdSummaryInputWrapper = null;window.wikEdSummaryOptions = null;window.wikEdSubmitWrapper = null;window.wikEdSubmitButtonsWrapper = null;window.wikEdLocalPrevWrapper = null;window.wikEdInsertWrapper = null;window.wikEdButtonBarFormat = null;window.wikEdButtonBarCustom1 = null;window.wikEdButtonBarFind = null;window.wikEdButtonBarFix = null;window.wikEdButtonBarCustom2 = null;window.wikEdButtonBarControl = null;window.wikEdButtonBarPreview = null;window.wikEdButtonBarPreview2 = null;window.wikEdButtonBarJump = null;window.wikEdPreviewBox = null;window.wikEdClearSummary = null;window.wikEdClearSummaryImg = null;window.wikEdCaseSensitive = null;window.wikEdRegExp = null;window.wikEdFindAhead = null;window.wikEdFindText = null;window.wikEdReplaceText = null;window.wikEdSummaryText = null;window.wikEdSummarySelect = null;window.wikEdSummaryTextWidth = null;window.wikEdEditOptions = null;window.wikEdEditHelp = null;window.wikEdSaveButton = null;window.wikEdPreviewButton = null;window.wikEdLDiffButton = null;window.wikEdLocalPreview = null;window.wikEdLocalDiff = null;window.wikEdDiffPreviewButton = null;window.wikEdSummaryLabel = null;window.wikEdGetGlobalNode = null;window.wikEdEditButtonHandler = {};window.wikEdTextareaHeight = null;window.wikEdClearSummaryWidth = null;window.wikEdFullScreenMode = false;window.wikEdAddNewSection = null;window.wikEdBrowserNotSupported = null;window.wikEdFrameScrollTop = null;window.wikEdTextareaUpdated = null;window.wikEdPreviewIsAjax = null;window.wikEdButtonKeyCode = [];window.wikEdFollowLinkIdNo = 0;window.wikEdFollowLinkHash = {};if (typeof wikEdWikiGlobals == "undefined") {window.wikEdWikiGlobals = [];}window.wikEdDirection = null;window.WikEdInsertTagsOriginal = null;window.WikEdInsertAtCursorOriginal = null;window.wikEdRefHide = null;window.wikEdUsing = null;window.wikEdUseWikEd = null;window.wikEdCloseToolbar = null;window.wikEdHighlightSyntax = null;window.wikEdDiff = null;window.wikEdTableMode = null;window.wikEdControlCharsStr = "";window.wikEdSupportedChars = null;window.wikEdSpecialChars = null;window.wikEdProblemChars = null;window.wikEdControlChars = null;window.wikEdStrangeSpaces = null;window.wikEdTypoRulesFind = [];window.wikEdTypoRulesReplace = [];window.wikEdDebugTimer = [];window.wikEdServer = "";window.wikEdArticlePath = "";window.wikEdScript = "";window.wikEdScriptPath = "";window.wikEdScriptName = "";return;}; if (typeof wikEdExternalScripts == "undefined") { window.wikEdExternalScripts = null; } if (typeof wikEdStartup == "undefined") { window.wikEdStartup = false; } if (typeof wikEdPageLoaded == "undefined") { window.wikEdPageLoaded = false; } if (typeof wikEdBrowserName == "undefined") { window.wikEdBrowserName = ""; } if (typeof wikEdBrowserFlavor == "undefined") { window.wikEdBrowserFlavor = ""; } if (typeof wikEdBrowserVersion == "undefined") { window.wikEdBrowserVersion = 0; } if (typeof wikEdMSIE == "undefined") { window.wikEdMSIE = false; } if (typeof wikEdMozilla == "undefined") { window.wikEdMozilla = false; } if (typeof wikEdOpera == "undefined") { window.wikEdOpera = false; } if (typeof wikEdSafari == "undefined") { window.wikEdSafari = null; } if (typeof wikEdGreasemonkey == "undefined") { window.wikEdGreasemonkey = null; } if (typeof wikEdGreasemonkeyToBody == "undefined") { window.wikEdGreasemonkeyToBody = null; } if (typeof wikEdMediaWikiSkinIds == "undefined") { window.wikEdMediaWikiSkinIds = {monobook: ["p-personal", true, true, ["column-content", "content", "bodyContent", "siteSub", "contentSub", "column-one", "p-cactions", "p-personal"]], pinkwich5: ["p-personal", true, true, ["column-content", "content", "bodycontent", "sitesub", "contentSub", "column-one", "p-cactions", "p-personal"]], standard: ["quickbar", false, true, ["content", "topbar", "article", "footer", "pagestats", "quickbar"]], nostalgia: ["topbar", false, true, ["content", "topbar", "specialpages", "article", "footer"]], cologneblue: ["quickbar", false, true, ["content", "topbar", "sitetitle", "sitesub", "article", "footer", "quickbar"]], modern: ["p-personal", true, true, ["mw_header", "mw_main", "mw_contentwrapper"]], monaco: ["wikia_header", true, true, ["headerMenuHub", "background_strip", "siteSub", "contentSub", "monaco_footer"]], quartz: ["welcome", false, true, ["articleWrapper", "bodyContent", "siteSub", "contentSub", "sidebar"]], searchwikia: ["header-li-buttons", false, true, ["header", "header-container", "header-go-button", "article-container", "article", "article-text"]], cavendish: ["nav", false, true, ["internal", "container", "header", "contentTop", "mBody", "side", "nav", "mainContent", "siteSub", "contentSub"]], devmo: ["personal", false, true, ["developer-mozilla-org", "container", "header", "navigation", "bar", "personal", "page", "sidebar", "sidebarslideup", "contentTop", "siteSub", "contentSub"]], gumax: ["gumax-p-navigation", false, true, ["gumax-header", "gumax-content-body"]], mediawiki: ["", false, false, ["mediawiki"]]}; } if (typeof wikEdSkinLogo == "undefined") { window.wikEdSkinLogo = ""; } if (typeof wikEdRearrange == "undefined") { window.wikEdRearrange = false; } if (typeof wikEdLogoToList == "undefined") { window.wikEdLogoToList = false; } if (typeof wikEdSkin == "undefined") { window.wikEdSkin = ""; } window.WikEdInitObject = function (array, preset) {for (var key in preset) {if (typeof key != "string") {continue;}if (array[key] == null) {array[key] = preset[key];}}return;}; window.WikEdInitImage = function (array, preset) {for (var key in preset) {if (typeof key != "string") {continue;}if (array[key] == null) {if (wikEdUseLocalImages == true) {array[key] = wikEdImagePathLocal + preset[key].replace(/^[0-9a-f]+\/[0-9a-f]+\//, "");} else {array[key] = wikEdImagePath + preset[key];}}}return;}; window.WikEdStartup = function () {if (wikEdStartup == true) {return;}wikEdStartup = true;window.WED = WikEdDebug;var agent = navigator.userAgent.match(/(Firefox|Netscape|SeaMonkey|IceWeasel|IceCat|Minefield|BonEcho|GranParadiso)\W+(\d+\.\d+)/i);if (agent != null) {wikEdMozilla = true;wikEdBrowserName = "Mozilla";wikEdBrowserFlavor = agent[1];wikEdBrowserVersion = parseFloat(agent[2]);} else {var agent = navigator.userAgent.match(/(MSIE)\W+(\d+\.\d+)/i);if (agent != null) {wikEdBrowserName = "MSIE";wikEdBrowserVersion = parseFloat(agent[2]);wikEdMSIE = true;}var agent = navigator.userAgent.match(/(Opera)\W+(\d+\.\d*)/i);if (agent != null) {wikEdBrowserName = "Opera";wikEdBrowserVersion = parseFloat(agent[2]);wikEdOpera = true;wikEdMSIE = false;}if (wikEdBrowserName == "") {agent = navigator.userAgent.match(/(Safari)\W+(\d+\.\d*)/i);if (agent != null) {wikEdBrowserName = "Safari";wikEdBrowserVersion = parseFloat(agent[2]);wikEdSafari = true;}}}WikEdAddEventListener(window, "load", WikEdSetup, false);return;}; window.WikEdSetup = function () {WikEdRemoveEventListener(window, "load", WikEdSetup, false);if (document.getElementById("wikEdSetupFlag") != null) {return;}if (wikEdExternalScripts == null) {wikEdExternalScripts = [];var pageScripts = document.getElementsByTagName("script");for (var i = 0; i < pageScripts.length; i++) {var scriptSrc = pageScripts[i].src;var nameMatch = scriptSrc.match(/\btitle=([^&]*)/);if (nameMatch == null) {nameMatch = scriptSrc.match(/\/([^\/]*?)($|\?)/);}if (nameMatch != null) {var scriptName = nameMatch[1];if (scriptName != "") {if (scriptName == "diff.js" && (scriptSrc != wikEdDiffScriptSrc)) {continue;}wikEdExternalScripts[scriptName] = true;}}}}if (typeof GM_getValue == "function") {if (wikEdExternalScripts['wikEd.js'] == true) {wikEdGreasemonkey = false;return;} else {wikEdGreasemonkey = true;}} else {window.GM_log = window.WikEdDebug;}if (wikEdGadget == null) {if (wikEdExternalScripts['MediaWiki:Gadget-wikEd.js'] == true) {wikEdGadget = true;}}var flag = document.createElement("span");flag.id = "wikEdSetupFlag";flag.style.display = "none";flag.style.visibility = "hidden";document.body.appendChild(flag);for (var skin in wikEdMediaWikiSkinIds) {var logoElement = wikEdMediaWikiSkinIds[skin][0];var logoToList = wikEdMediaWikiSkinIds[skin][1];var rearrange = wikEdMediaWikiSkinIds[skin][2];var skinIds = wikEdMediaWikiSkinIds[skin][3];if (typeof logoElement != "string") {continue;}for (var i = 0; i < skinIds.length; i++) {if (document.getElementById(skinIds[i]) == null) {break;}}if (i == skinIds.length) {wikEdSkinLogo = logoElement;wikEdSkin = skin;wikEdRearrange = rearrange;wikEdLogoToList = logoToList;break;}}if (wikEdSkin == "") {return;}WikEdInitGlobalConfigs();if (wikEdNoRearrange != false) {wikEdRearrange = false;}WikEdInitGlobals();var variable = ["wgServer", "wgTitle", "wgCanonicalNamespace", "wgArticlePath", "wgScript", "wgScriptPath", "wgUserName", "wgCurRevisionId", "wgScript"];for (var i = 0; i < variable.length; i++) {wikEdWikiGlobals[variable[i]] = WikEdGetGlobal(variable[i]);}WikEdAutoUpdate();WikedInitImage();if (wikEdLogo == null) {wikEdLogo = document.createElement("img");wikEdLogo.id = "wikEdLogoImg";if (wikEdLogoToList == true) {wikEdLogoList = document.createElement("li");wikEdLogoList.id = "wikEdLogoList";wikEdLogoList.appendChild(wikEdLogo);var personalTools = document.getElementById(wikEdSkinLogo);if (personalTools != null) {personalTools.getElementsByTagName("ul")[0].appendChild(wikEdLogoList);wikEdLogo.className = "wikEdLogo";}}if (wikEdLogo.className == "") {if (wikEdSkinLogo != "") {document.getElementById(wikEdSkinLogo).appendChild(wikEdLogo);wikEdLogo.className = "wikEdLogo";} else {document.body.insertBefore(wikEdLogo, document.body.firstChild);wikEdLogo.className = "wikEdLogoFallBack";}}WikEdAddEventListener(wikEdLogo, "click", WikEdMainSwitch, true);}wikEdPageLoaded = true;var head = document.getElementsByTagName("head")[0];if (wikEdLoadDiffScript == true && (wikEdExternalScripts['diff.js'] == null)) {if (typeof WDiffString == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffScriptSrc;head.appendChild(script);}wikEdExternalScripts['diff.js'] = true;}if (wikEdLoadDiff == true && (wikEdExternalScripts['wikEdDiff.js'] == null)) {if (typeof WikEdDiff == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffSrc;head.appendChild(script);}wikEdExternalScripts['wikEdDiff.js'] = true;}wikEdDisabled = WikEdGetSavedSetting("wikEdDisabled", wikEdDisabledPreset);if (wikEdDisabled == true) {wikEdUseWikEd = false;WikEdSetLogo();return;}WikEdTurnOn(wikEdScrollToEdit);return;}; window.WikEdTurnOn = function (scrollToEdit) {if (wikEdTurnedOn == true) {return;}WikEdSetLogo("error");if (wikEdSkipBrowserTest == false) {if (navigator.appName == null) {wikEdBrowserNotSupported = true;} else {var origin = navigator.appName.match(/Netscape/i);if (origin == null || (origin == "")) {wikEdBrowserNotSupported = true;}var generation = navigator.appVersion.match(/\d+(\.\d+)/);if (generation == null || (generation[0] < 5)) {wikEdBrowserNotSupported = true;}var geckoDate = navigator.userAgent.match(/\bGecko\/(\d+)/i);if (geckoDate != null) {if (geckoDate[1] != "" && (geckoDate[1] < 20050000)) {wikEdBrowserNotSupported = true;}}}}if (wikEdBrowserName == "Mozilla") {if (wikEdBrowserFlavor == "Firefox" && wikEdBrowserVersion < 1.5 || wikEdBrowserFlavor == "Netscape" && wikEdBrowserVersion < 8 || wikEdBrowserFlavor == "SeaMonkey" && (wikEdBrowserVersion < 1)) {wikEdBrowserNotSupported = true;}} else if (wikEdBrowserName == "MSIE" && (wikEdBrowserVersion < 7)) {wikEdBrowserNotSupported = true;} else if (wikEdBrowserName == "Opera" && (wikEdBrowserVersion < 9)) {wikEdBrowserNotSupported = true;} else if (wikEdBrowserName == "Safari" && (wikEdBrowserVersion < 500)) {wikEdBrowserNotSupported = true;} else {wikEdBrowserNotSupported = true;}if (wikEdBrowserNotSupported == true && (wikEdSkipBrowserTest == false)) {WikEdSetLogo("browser");return;}if (wikEdCustomEditFormId != "") {wikEdEditForm = document.getElementById(wikEdCustomEditFormId);}if (wikEdCustomTextAreaId != "") {wikEdTextarea = document.getElementById(wikEdCustomTextAreaId);}if (wikEdCustomSaveButtonId != "") {wikEdSaveButton = document.getElementById(wikEdCustomwikEdSaveButtonId);}if (wikEdTextarea == null) {wikEdTextarea = document.getElementsByName("wpTextbox1")[0];}if (wikEdEditForm == null) {wikEdEditForm = document.getElementById("editform");}if (wikEdSaveButton == null) {wikEdSaveButton = document.getElementById("wpSave");}if (wikEdTextarea == null) {wikEdEditForm = document.getElementsByName("createbox")[0];wikEdTextarea = document.getElementsByName("free_text")[0];}if (wikEdTextarea == null || wikEdEditForm == null || (wikEdSaveButton == null)) {wikEdTextarea = document.getElementsByName("wpUploadDescription")[0];wikEdEditForm = document.getElementById("upload");wikEdSaveButton = document.getElementsByName("wpUpload")[0];if (wikEdTextarea == null || wikEdEditForm == null || (wikEdSaveButton == null)) {WikEdSetLogo();return;}wikEdUpload = true;wikEdRearrange = false;}WikedInitFrameCSS();WikedInitMainCSS();WikedInitButton();WikedInitButtonKey();WikedInitButtonBar();WikEdInitUnicode();if (/(\?|&)section=new\b/.test(window.location.search) == true) {wikEdAddNewSection = true;}var head = document.getElementsByTagName("head")[0];if (wikEdGreasemonkey == false && wikEdLoadInstaView == true && (wikEdExternalScripts['instaview.js'] == null)) {if (typeof InstaView == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdInstaViewSrc;head.appendChild(script);}wikEdExternalScripts['instaview.js'] = true;} else if (wikEdGreasemonkey == false || (wikEdLoadInstaView != true)) {wikEdUseLocalPreview = false;}wikEdTextareaHeight = wikEdTextarea.offsetHeight;wikEdOrigVersion = wikEdTextarea.value;var mainStyle = new WikEdStyleSheet;var rules = "";for (var ruleName in wikEdMainCSS) {var ruleStyle = wikEdMainCSS[ruleName];if (typeof ruleStyle != "string") {continue;}ruleStyle = ruleStyle.replace(/\{wikEdGrip\}/g, wikEdImage.grip);rules += ruleName + " {" + ruleStyle + "}\n";}mainStyle.addRules(rules);wikEdUsing = WikEdGetSavedSetting("wikEdSummaryUsing", wikEdUsingPreset);wikEdUseWikEd = !WikEdGetSavedSetting("wikEdUseClassic", !wikEdUseWikEdPreset);wikEdHighlightSyntax = !WikEdGetSavedSetting("wikEdSyntaxOff", !wikEdHighlightSyntaxPreset);wikEdFullScreenMode = WikEdGetSavedSetting("wikEdFullscreen", wikEdFullScreenModePreset);wikEdCloseToolbar = WikEdGetSavedSetting("wikEdCloseToolbar", wikEdCloseToolbarPreset);wikEdRefHide = WikEdGetSavedSetting("wikEdRefHide", wikEdRefHidePreset);wikEdDiff = WikEdGetSavedSetting("wikEdDiff", wikEdDiffPreset);wikEdTableMode = false;if (wikEdUpload == true || (window.location.search.match(/(\?|&)action=submit\b/) != null)) {wikEdFullScreenMode = false;}if (/\.js$/.test(wikEdWikiGlobals.wgTitle) == true) {if (wikEdWikiGlobals.wgCanonicalNamespace != "User_talk" && (wikEdWikiGlobals.wgCanonicalNamespace != "Talk")) {if (wikEdOrigVersion.length > 20000) {wikEdUseWikEd = false;} else {wikEdHighlightSyntax = false;}}}var styleFrameBody;var styleFrameWrapperPosition;var styleFrameWrapperVisibility;var styleDebugWrapperPosition;var styleDebugWrapperVisibility;var styleTextareaWrapperPosition;var styleTextareaWrapperVisibility;if (wikEdUseWikEd == true) {styleFrameBody = "style=\"display: block;\" ";styleFrameWrapperPosition = "static";styleFrameWrapperVisibility = "visible";styleTextareaWrapperPosition = "absolute";styleTextareaWrapperVisibility = "hidden";} else {styleFrameBody = "style=\"display: none;\" ";styleFrameWrapperPosition = "absolute";styleFrameWrapperVisibility = "hidden";styleTextareaWrapperPosition = "static";styleTextareaWrapperVisibility = "visible";}var inputWrapperClass;if (wikEdFullScreenMode == true) {inputWrapperClass = "wikEdInputWrapperFull";} else {inputWrapperClass = "wikEdInputWrapper";}wikEdInputWrapper = document.createElement("div");wikEdInputWrapper.id = "wikEdInputWrapper";wikEdInputWrapper.className = inputWrapperClass;wikEdTextarea.parentNode.insertBefore(wikEdInputWrapper, wikEdTextarea);wikEdToolbarWrapper = document.createElement("div");wikEdToolbarWrapper.id = "wikEdToolbarWrapper";wikEdToolbarWrapper.className = "wikEdToolbarWrapper";wikEdInputWrapper.appendChild(wikEdToolbarWrapper);if (wikEdRearrange == true) {wikEdCaptchaWrapper = document.createElement("div");wikEdCaptchaWrapper.id = "wikEdCaptchaWrapper";wikEdCaptchaWrapper.className = "wikEdCaptchaWrapper";wikEdInputWrapper.appendChild(wikEdCaptchaWrapper);}wikEdDebugWrapper = document.createElement("div");wikEdDebugWrapper.id = "wikEdDebugWrapper";wikEdDebugWrapper.className = "wikEdDebugWrapper";wikEdDebugWrapper.style.position = "static";wikEdDebugWrapper.style.visibility = "hidden";wikEdInputWrapper.appendChild(wikEdDebugWrapper);wikEdTextareaWrapper = document.createElement("div");wikEdTextareaWrapper.id = "wikEdTextareaWrapper";wikEdTextareaWrapper.className = "wikEdTextareaWrapper";wikEdTextareaWrapper.style.position = styleTextareaWrapperPosition;wikEdTextareaWrapper.style.visibility = styleTextareaWrapperVisibility;wikEdInputWrapper.appendChild(wikEdTextareaWrapper);wikEdFrameWrapper = document.createElement("div");wikEdFrameWrapper.id = "wikEdFrameWrapper";wikEdFrameWrapper.className = "wikEdFrameWrapper";wikEdFrameWrapper.style.position = styleFrameWrapperPosition;wikEdFrameWrapper.style.visibility = styleFrameWrapperVisibility;wikEdInputWrapper.appendChild(wikEdFrameWrapper);if (wikEdRearrange == true) {wikEdConsoleWrapper = document.createElement("div");wikEdConsoleWrapper.id = "wikEdConsoleWrapper";wikEdConsoleWrapper.className = "wikEdConsoleWrapper";wikEdInputWrapper.appendChild(wikEdConsoleWrapper);}wikEdButtonsWrapper = document.createElement("div");wikEdButtonsWrapper.id = "wikEdButtonsWrapper";wikEdButtonsWrapper.className = "wikEdButtonsWrapper";wikEdInputWrapper.insertBefore(wikEdButtonsWrapper, wikEdTextareaWrapper);if (wikEdRearrange == true) {wikEdSummaryWrapper = document.createElement("div");wikEdSummaryWrapper.id = "wikEdSummaryWrapper";if (wikEdAddNewSection == true) {wikEdSummaryWrapper.className = "wikEdSummaryWrapperTop";wikEdInputWrapper.insertBefore(wikEdSummaryWrapper, wikEdFrameWrapper);} else {wikEdSummaryWrapper.className = "wikEdSummaryWrapper";wikEdConsoleWrapper.appendChild(wikEdSummaryWrapper);}wikEdSummaryInputWrapper = document.createElement("div");wikEdSummaryInputWrapper.id = "wikEdSummaryInputWrapper";wikEdSummaryInputWrapper.className = "wikEdSummaryInputWrapper";wikEdSummaryWrapper.appendChild(wikEdSummaryInputWrapper);wikEdSummaryOptions = document.createElement("div");wikEdSummaryOptions.id = "wikEdSummaryOptions";wikEdSummaryOptions.className = "wikEdSummaryOptions";wikEdSummaryWrapper.appendChild(wikEdSummaryOptions);wikEdSubmitWrapper = document.createElement("div");wikEdSubmitWrapper.id = "wikEdSubmitWrapper";wikEdSubmitWrapper.className = "wikEdSubmitWrapper";wikEdConsoleWrapper.appendChild(wikEdSubmitWrapper);wikEdSubmitButtonsWrapper = document.createElement("div");wikEdSubmitButtonsWrapper.id = "wikEdSubmitButtonsWrapper";wikEdSubmitButtonsWrapper.className = "wikEdSubmitButtonsWrapper";wikEdSubmitWrapper.appendChild(wikEdSubmitButtonsWrapper);}wikEdLocalPrevWrapper = document.createElement("div");wikEdLocalPrevWrapper.id = "wikEdLocalPrevWrapper";wikEdLocalPrevWrapper.className = "wikEdLocalPrevWrapper";wikEdLocalPrevWrapper.style.display = "none";if (wikEdRearrange == true) {wikEdInputWrapper.appendChild(wikEdLocalPrevWrapper);} else {wikEdSaveButton.parentNode.appendChild(wikEdLocalPrevWrapper);}if (wikEdRearrange == true) {wikEdInsertWrapper = document.createElement("div");wikEdInsertWrapper.id = "wikEdInsertWrapper";wikEdInsertWrapper.className = "wikEdInsertWrapper";wikEdInputWrapper.appendChild(wikEdInsertWrapper);}if (wikEdRearrange == true) {wikEdEditForm.insertBefore(wikEdInputWrapper, wikEdEditForm.firstChild);}if (typeof wikEdDiffTable == "object") {if (wikEdDiffTable != null && (wikEdDiff == true)) {if (typeof WikEdDiff == "function") {WikEdDiff();}}}var wpToolbar = document.getElementById("toolbar");if (wikEdCloseToolbar == true) {wikEdToolbarWrapper.style.display = "none";} else {wikEdToolbarWrapper.style.display = "block";}if (wpToolbar != null) {wikEdToolbarWrapper.appendChild(wpToolbar);}if (wikEdUpload != true) {var node = wikEdInputWrapper.nextSibling;while (node != null) {if (node == wikEdTextarea) {break;}var nextNode = node.nextSibling;wikEdCaptchaWrapper.appendChild(node);node = nextNode;}}if (wpToolbar != null) {if (wpToolbar.getElementsByTagName("IMG").length == 0) {if (typeof mwSetupToolbar == "function") {mwSetupToolbar();WikEdRemoveEventListener(window, "load", mwSetupToolbar, false);}}}var wpSummary = document.getElementsByName("wpSummary");if (wpSummary.length > 0) {wikEdEditOptions = wpSummary[0].parentNode;wikEdEditOptions.className = "wikEdEditOptions";}if (wikEdRearrange == true) {wikEdSummaryLabel = document.getElementById("wpSummaryLabel");if (wikEdSummaryLabel != null) {wikEdSummaryInputWrapper.appendChild(wikEdSummaryLabel);}wikEdSummaryText = document.getElementsByName("wpSummary")[0];wikEdSummaryInputWrapper.appendChild(wikEdSummaryText);}if (wikEdRearrange == true) {var copywarn = document.getElementById("editpage-copywarn");if (copywarn != null) {wikEdInputWrapper.parentNode.insertBefore(copywarn, wikEdInputWrapper.nextSibling);}}if (wikEdRearrange == true) {var wpEditButtons = wikEdSaveButton.parentNode;wikEdSubmitWrapper.insertBefore(wpEditButtons, wikEdSubmitButtonsWrapper);}wikEdDiffPreviewButton = document.getElementById("wpDiff");wikEdPreviewButton = document.getElementById("wpPreview");if (wikEdRearrange == true) {if (wikEdDiffPreviewButton != null) {wikEdDiffPreviewButton.parentNode.insertBefore(wikEdEditOptions, wikEdDiffPreviewButton.nextSibling);var node = wikEdEditOptions.firstChild;while (node != null) {if (node.tagName != null) {if (node.tagName == "BR") {node.parentNode.removeChild(node);break;}}node = node.nextSibling;}if (wikEdSubmitTabOrder == true) {var wpMinoredit = document.getElementById("wpMinoredit");var wpWatchthis = document.getElementById("wpWatchthis");if (wpMinoredit != null && (wpWatchthis != null)) {var tabIndex = [];tabIndex.push(wpMinoredit.tabIndex, wpWatchthis.tabIndex, wikEdSaveButton.tabIndex, wikEdPreviewButton.tabIndex, wikEdDiffPreviewButton.tabIndex);wikEdSaveButton.tabIndex = tabIndex.shift();wikEdPreviewButton.tabIndex = tabIndex.shift();wikEdDiffPreviewButton.tabIndex = tabIndex.shift();wpMinoredit.tabIndex = tabIndex.shift();wpWatchthis.tabIndex = tabIndex.shift();}}}}wikEdDebug = document.createElement("textarea");wikEdDebug.rows = 20;wikEdDebug.style.display = "none";wikEdDebugWrapper.appendChild(wikEdDebug);wikEdTextareaWrapper.appendChild(wikEdTextarea);var html = "";html += "<div id=\"wikEdFrameOuter\" class=\"wikEdFrameOuter\">";html += "<div id=\"wikEdFrameInner\" class=\"wikEdFrameInner\">";html += "<iframe id=\"wikEdFrame\" class=\"wikEdFrame\" name=\"wikEdFrame\" style=\"height: " + wikEdTextareaHeight + "px;\"></iframe>";html += "</div>";html += "</div>";wikEdFrameWrapper.innerHTML = html;wikEdInputWrapper.insertBefore(wikEdTextareaWrapper, wikEdFrameWrapper);html = "";html += "<html id=\"wikEdFrameHtml\"><head></head>";if (wikEdMozilla == true) {html += "<body id=\"wikEdFrameBody\" class=\"wikedFrameBody\"" + styleFrameBody + "onload=\"window.document.designMode = 'on'; window.document.execCommand('styleWithCSS', false, false);\">";} else {html += "<body id=\"wikEdFrameBody\" class=\"wikedFrameBody\"" + styleFrameBody + ">";}html += "</body></html>";wikEdFrame = document.getElementById("wikEdFrame");wikEdFrameWindow = wikEdFrame.contentWindow;wikEdFrameDocument = wikEdFrameWindow.document;if (wikEdMozilla == false) {wikEdFrameDocument.designMode = "on";}wikEdFrameDocument.open();wikEdFrameDocument.write(html);wikEdFrameDocument.close();wikEdFrameBody = wikEdFrameDocument.body;wikEdButtonBarFormat = MakeButtonBar(wikEdButtonBar.format);wikEdButtonsWrapper.appendChild(wikEdButtonBarFormat);wikEdButtonBarControl = MakeButtonBar(wikEdButtonBar.control);wikEdButtonsWrapper.appendChild(wikEdButtonBarControl);if (wikEdButtonBar.custom1[6].length > 0) {wikEdButtonBarCustom1 = MakeButtonBar(wikEdButtonBar.custom1);wikEdButtonsWrapper.appendChild(wikEdButtonBarCustom1);}wikEdButtonBarFind = MakeButtonBar(wikEdButtonBar.find);wikEdButtonsWrapper.appendChild(wikEdButtonBarFind);wikEdButtonBarFix = MakeButtonBar(wikEdButtonBar.fix);wikEdButtonsWrapper.appendChild(wikEdButtonBarFix);if (wikEdButtonBar.custom2[6].length > 0) {wikEdButtonBarCustom2 = MakeButtonBar(wikEdButtonBar.custom2);wikEdButtonsWrapper.appendChild(wikEdButtonBarCustom2);}var br = document.createElement("br");br.style.clear = "both";wikEdButtonsWrapper.appendChild(br);wikEdCaseSensitive = document.getElementById("wikEdCaseSensitive");wikEdRegExp = document.getElementById("wikEdRegExp");wikEdFindAhead = document.getElementById("wikEdFindAhead");wikEdFindText = document.getElementById("wikEdFindText");wikEdReplaceText = document.getElementById("wikEdReplaceText");wikEdButtonBarPreview = MakeButtonBar(wikEdButtonBar.preview);if (wikEdRearrange == true) {wikEdSubmitWrapper.insertBefore(wikEdButtonBarPreview, wikEdSubmitWrapper.firstChild);}if (wikEdLocalPrevWrapper != null) {var div = document.createElement("div");div.id = "wikEdPreviewBoxOuter";div.className = "wikEdPreviewBoxOuter";wikEdLocalPrevWrapper.appendChild(div);wikEdPreviewBox = document.createElement("div");wikEdPreviewBox.id = "wikEdPreviewBox";wikEdPreviewBox.className = "wikEdPreviewBox";div.appendChild(wikEdPreviewBox);wikEdButtonBarPreview2 = MakeButtonBar(wikEdButtonBar.preview2);wikEdLocalPrevWrapper.appendChild(wikEdButtonBarPreview2);}var wikiPreview = document.getElementById("wikiPreview");if (wikiPreview != null) {if (wikiPreview.firstChild != null) {wikEdButtonBarJump = MakeButtonBar(wikEdButtonBar.jump);wikiPreview.insertBefore(wikEdButtonBarJump, wikiPreview.firstChild);}}if (wikEdInsertWrapper != null) {var wpSpecialchars = document.getElementById("editpage-specialchars");if (wpSpecialchars != null) {wikEdInsertWrapper.appendChild(wpSpecialchars);}}wikEdLocalPreview = document.createElement("button");wikEdLocalPreview.id = "wikEdLocalPreview";wikEdLocalPreview.title = wikEdText['wikEdLocalPreview title'];wikEdLocalPreview.className = "wikEdLocalPreview";var localPreviewImg = document.createElement("img");localPreviewImg.id = "wikEdLocalPreviewImg";localPreviewImg.src = wikEdImage.preview;localPreviewImg.alt = wikEdText['wikEdLocalPreviewImg alt'];localPreviewImg.title = wikEdText['wikEdLocalPreviewImg title'];wikEdLocalPreview.appendChild(localPreviewImg);if (wikEdPreviewButton != null) {wikEdPreviewButton.parentNode.insertBefore(wikEdLocalPreview, wikEdPreviewButton.nextSibling);} else {wikEdSaveButton.parentNode.insertBefore(wikEdLocalPreview, wikEdSaveButton.nextSibling);}if (wikEdDiffPreviewButton != null) {wikEdLocalDiff = document.createElement("button");wikEdLocalDiff.id = "wikEdLocalDiff";wikEdLocalDiff.title = wikEdText['wikEdLocalDiff title'];wikEdLocalDiff.className = "wikEdLocalDiff";var localDiffImg = document.createElement("img");localDiffImg.id = "wikEdLocalDiffImg";localDiffImg.src = wikEdImage.diff;localDiffImg.alt = wikEdText['wikEdLocalDiffImg alt'];localDiffImg.title = wikEdText['wikEdLocalDiffImg title'];wikEdLocalDiff.appendChild(localDiffImg);wikEdDiffPreviewButton.parentNode.insertBefore(wikEdLocalDiff, wikEdDiffPreviewButton.nextSibling);}WikEdButton(document.getElementById("wikEdDiff"), "wikEdDiff", null, wikEdDiff);WikEdButton(document.getElementById("wikEdRefHide"), "wikEdRefHide", null, wikEdRefHide);WikEdButton(document.getElementById("wikEdHighlightSyntax"), "wikEdHighlightSyntax", null, wikEdHighlightSyntax);WikEdButton(document.getElementById("wikEdUseWikEd"), "wikEdUseWikEd", null, wikEdUseWikEd);WikEdButton(document.getElementById("wikEdCloseToolbar"), "wikEdCloseToolbar", null, wikEdCloseToolbar);WikEdButton(document.getElementById("wikEdFullScreen"), "wikEdFullScreen", null, wikEdFullScreenMode);WikEdButton(document.getElementById("wikEdUsing"), "wikEdUsing", null, wikEdUsing);WikEdButton(document.getElementById("wikEdCaseSensitive"), "wikEdCaseSensitive", null, false);WikEdButton(document.getElementById("wikEdRegExp"), "wikEdRegExp", null, false);WikEdButton(document.getElementById("wikEdFindAhead"), "wikEdFindAhead", null, wikEdFindAheadSelected);WikEdButton(document.getElementById("wikEdClose"), "wikEdClose", null, false, "wikEdButton");WikEdButton(document.getElementById("wikEdClose2"), "wikEdClose2", null, false, "wikEdButton");WikEdButton(document.getElementById("wikEdTableMode"), "wikEdTableMode", null, wikEdTableMode);document.getElementById("wikEdFixRegExTypo").style.display = "none";if (wikEdSummaryText != null) {var clearSummaryForm = document.createElement("form");clearSummaryForm.id = "wikEdClearSummaryForm";clearSummaryForm.className = "wikEdClearSummaryForm";wikEdSummaryText.parentNode.insertBefore(clearSummaryForm, wikEdSummaryText);wikEdClearSummary = document.createElement("button");wikEdClearSummary.id = "wikEdClearSummary";wikEdClearSummary.className = "wikEdClearSummary";wikEdClearSummary.alt = wikEdText['wikEdClearSummary alt'];wikEdClearSummary.title = wikEdText['wikEdClearSummary title'];wikEdClearSummary.style.height = (wikEdSummaryText.clientHeight + 1) + "px";clearSummaryForm.appendChild(wikEdClearSummary);wikEdClearSummaryImg = document.createElement("img");wikEdClearSummaryImg.id = "wikEdClearSummaryImg";wikEdClearSummaryImg.src = wikEdImage.clearSummary;wikEdClearSummaryImg.alt = "Clear summary";wikEdClearSummary.appendChild(wikEdClearSummaryImg);wikEdClearSummaryWidth = wikEdClearSummary.offsetWidth;var summaryComboInput = document.createElement("span");summaryComboInput.id = "wikEdSummaryComboInput";summaryComboInput.className = "wikEdSummaryComboInput";summaryComboInput = wikEdSummaryText.parentNode.insertBefore(summaryComboInput, wikEdSummaryText);wikEdSummaryText = wikEdSummaryText.parentNode.removeChild(wikEdSummaryText);wikEdSummaryText.className = "wikEdSummaryText";wikEdSummaryTextWidth = wikEdSummaryWrapper.offsetWidth - wikEdSummaryInputWrapper.offsetWidth;if (wikEdSummaryTextWidth < 150) {wikEdSummaryTextWidth = 150;}wikEdSummaryText.style.width = wikEdSummaryTextWidth + "px";wikEdSummarySelect = document.createElement("select");wikEdSummarySelect.id = "wikEdSummarySelect";wikEdSummarySelect.className = "wikEdSummarySelect";summaryComboInput.appendChild(wikEdSummaryText);summaryComboInput.appendChild(wikEdSummarySelect);}if (wikEdPreviewButton != null) {wikEdPreviewButton.value = wikEdText.shortenedPreview;}if (wikEdDiffPreviewButton != null) {wikEdDiffPreviewButton.value = wikEdText.shortenedChanges;}wikEdFieldHist.find = [];wikEdSavedName.find = "wikEdFindHistory";wikEdInputElement.find = new Object(wikEdFindText);wikEdSelectElement.find = new Object(document.getElementById("wikEdFindSelect"));wikEdSelectElement.find.title = wikEdText['wikEdFindSelect title'];wikEdFieldHist.replace = [];wikEdSavedName.replace = "wikEdReplaceHistory";wikEdInputElement.replace = new Object(wikEdReplaceText);wikEdSelectElement.replace = new Object(document.getElementById("wikEdReplaceSelect"));wikEdSelectElement.replace.title = wikEdText['wikEdReplaceSelect title'];if (wikEdSummaryInputWrapper != null) {wikEdFieldHist.summary = [];wikEdSavedName.summary = "wikEdSummaryHistory";wikEdInputElement.summary = new Object(wikEdSummaryText);wikEdSelectElement.summary = new Object(document.getElementById("wikEdSummarySelect"));wikEdSelectElement.summary.title = wikEdText['wikEdSummarySelect title'];}WikEdResizeComboInput("find");WikEdResizeComboInput("replace");WikEdResizeComboInput("summary");WikEdButtonBarInit(wikEdButtonBarFormat);WikEdButtonBarInit(wikEdButtonBarControl);if (wikEdButtonBarCustom1 != null) {WikEdButtonBarInit(wikEdButtonBarCustom1);}WikEdButtonBarInit(wikEdButtonBarFind);WikEdButtonBarInit(wikEdButtonBarFix);if (wikEdButtonBarCustom2 != null) {WikEdButtonBarInit(wikEdButtonBarCustom2);}if (wikEdUseWikEd == true) {WikEdSetEditArea(true, true);} else {WikEdSetEditArea(false, true);}if (wikEdRearrange == true) {if (wikEdHelpPageLink != "" && (wikEdHelpPageLink != null)) {var editHelpParent = wikEdDiffPreviewButton;while (editHelpParent != null) {if (editHelpParent.tagName == "SPAN") {break;}editHelpParent = editHelpParent.nextSibling;}if (editHelpParent != null) {var editHelp = editHelpParent.lastChild;while (editHelp != null) {if (editHelp.tagName == "A") {break;}editHelp = editHelp.previousSibling;}if (editHelp != null) {wikEdHelpSpan = document.createElement("span");wikEdHelpSpan.id = "wikEdHelpSpan";wikEdHelpSpan.className = "wikEdHelpSpan";wikEdHelpSpan.innerHTML = wikEdHelpPageLink;editHelpParent.insertBefore(wikEdHelpSpan, editHelp.nextSibling);wikEdEditHelp = wikEdHelpSpan.parentNode;wikEdEditHelp.id = "wikEdEditHelp";wikEdEditHelp.className = "wikEdEditHelp";}}}}wikEdFrameBody.style.fontSize = parseInt(wikEdTextZoom) + "%";wikEdDirection = WikEdGetStyle(document.body, "direction");wikEdFrameBody.style.direction = wikEdDirection;var frameStyle = new WikEdStyleSheet(wikEdFrameDocument);var rules = "";for (var ruleName in wikEdFrameCSS) {var ruleStyle = wikEdFrameCSS[ruleName];if (typeof ruleStyle != "string") {continue;}ruleStyle = ruleStyle.replace(/\{wikEdUnknown\}/g, wikEdImage.unknown);ruleStyle = ruleStyle.replace(/\{wikEdTab\}/g, wikEdImage.tab);ruleStyle = ruleStyle.replace(/\{wikEdCtrl\}/g, wikEdImage.ctrl);ruleStyle = ruleStyle.replace(/\{wikEdBlank\}/g, wikEdImage.blank);ruleStyle = ruleStyle.replace(/\{wikEdGrip\}/g, wikEdImage.grip);rules += ruleName + " {" + ruleStyle + "}\n";}frameStyle.addRules(rules);if (wikEdUseWikEd == true) {window.WikEdUpdateFrame();}for (var buttonId in wikEdEditButtonHandler) {if (typeof wikEdEditButtonHandler[buttonId] != "string") {continue;}var buttonObj = document.getElementById(buttonId);if (buttonObj != null) {WikEdAddEventListener(buttonObj, "click", WikEdEditButtonHandler, true);}}WikEdAddEventListener(wikEdClearSummaryImg, "load", WikEdShrinkSummaryHandler, true);WikEdAddEventListener(window, "resize", WikEdResizeSummaryHandler, true);WikEdAddEventListener(wikEdFrameDocument, "keydown", WikEdKeyFrameHandler, true);WikEdAddEventListener(wikEdFrameDocument, "keyup", WikEdKeyFrameHandler, true);WikEdAddEventListener(wikEdFrameDocument, "keypress", WikEdKeyFrameHandler, true);WikEdAddEventListener(wikEdFrameDocument, "mouseup", WikEdKeyFrameHandler, true);WikEdAddEventListener(wikEdFrameDocument, "keydown", WikEdShiftAltHandler, true);WikEdAddEventListener(document, "keydown", WikEdShiftAltHandler, true);WikEdAddEventListener(wikEdFindText, "keyup", WikEdFindAhead, true);WikEdAddEventListener(wikEdSaveButton, "click", WikEdSaveButtonHandler, true);WikEdAddEventListener(wikEdPreviewButton, "click", WikEdPreviewButtonHandler, true);WikEdAddEventListener(wikEdDiffPreviewButton, "click", wikEdDiffPreviewButtonHandler, true);WikEdAddEventListener(wikEdLocalPreview, "click", WikEdLocalPreviewHandler, true);WikEdAddEventListener(wikEdLocalDiff, "click", WikEdLocalDiffHandler, true);WikEdAddEventListener(window, "pagehide", WikEdUnloadHandler, false);WikEdAddEventListener(wikEdButtonBarFormat.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);WikEdAddEventListener(wikEdButtonBarControl.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);if (wikEdButtonBarCustom1 != null) {if (wikEdButtonBarCustom1.firstChild.firstChild != null) {WikEdAddEventListener(wikEdButtonBarCustom1.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);}}WikEdAddEventListener(wikEdButtonBarFind.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);WikEdAddEventListener(wikEdButtonBarFix.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);if (wikEdButtonBarCustom2 != null) {if (wikEdButtonBarCustom2.firstChild.firstChild != null) {WikEdAddEventListener(wikEdButtonBarCustom2.firstChild.firstChild, "click", WikEdButtonBarGripHandler, false);}}WikEdAddEventListener(wikEdSummarySelect, "change", function () {WikEdChangeComboInput("summary");}, false);WikEdAddEventListener(wikEdSummarySelect, "focus", function () {WikEdSetComboOptions("summary");}, false);WikEdAddEventListener(wikEdSelectElement.find, "change", function () {WikEdChangeComboInput("find");}, false);WikEdAddEventListener(wikEdSelectElement.find, "focus", function () {WikEdSetComboOptions("find");}, false);WikEdAddEventListener(wikEdSelectElement.replace, "change", function () {WikEdChangeComboInput("replace");}, false);WikEdAddEventListener(wikEdSelectElement.replace, "focus", function () {WikEdSetComboOptions("replace");}, false);WikEdAddEventListener(wikEdClearSummary, "click", WikEdClearSummaryHandler, true);WikEdAddEventListener(wikEdFindText, "focus", WikEdFindReplaceHandler, true);WikEdAddEventListener(wikEdReplaceText, "focus", WikEdFindReplaceHandler, true);WikEdAddEventListener(wikEdFindText, "keydown", WikEdFindReplaceHandler, true);WikEdAddEventListener(wikEdReplaceText, "keydown", WikEdFindReplaceHandler, true);if (scrollToEdit != false) {if (window.location.search.match(/(\?|&)action=submit\b/) == null) {window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper) - 2);}if (wikEdUseWikEd == true) {wikEdFrameWindow.focus();} else {if (wikEdMSIE == true) {} else {wikEdTextarea.setSelectionRange(0, 0);}wikEdTextarea.focus();}}if (wikEdWikiGlobals.wgServer != null) {wikEdServer = wikEdWikiGlobals.wgServer;}if (wikEdWikiGlobals.wgArticlePath != null) {wikEdArticlePath = wikEdWikiGlobals.wgArticlePath;}if (wikEdWikiGlobals.wgScriptPath != null) {wikEdScriptPath = wikEdWikiGlobals.wgScriptPath;}if (wikEdWikiGlobals.wgScript != null) {wikEdScript = wikEdWikiGlobals.wgScript;}wikEdArticlePath = wikEdArticlePath.replace(wikEdServer, "");wikEdScriptPath = wikEdScriptPath.replace(wikEdServer, "");wikEdArticlePath = wikEdArticlePath.replace(/\$1$/, "");wikEdScriptPath = wikEdScriptPath.replace(/\/?$/, "/");wikEdScriptName = wikEdScript.replace(wikEdScriptPath, "");wikEdServer = wikEdServer.replace(/(\W)/g, "\\$1");wikEdArticlePath = wikEdArticlePath.replace(/(\W)/g, "\\$1");wikEdScript = wikEdScript.replace(/(\W)/g, "\\$1");wikEdScriptPath = wikEdScriptPath.replace(/(\W)/g, "\\$1");wikEdScriptName = wikEdScriptName.replace(/(\W)/g, "\\$1");if (wikEdFullScreenMode == true) {WikEdFullScreen(wikEdFullScreenMode, true);}if (typeof insertTags == "function") {if (WikEdInsertTagsOriginal == null) {WikEdInsertTagsOriginal = insertTags;}insertTags = window.WikEdInsertTags;}if (typeof insertAtCursor == "function") {if (WikEdInsertAtCursorOriginal == null) {WikEdInsertAtCursorOriginal = insertAtCursor;}insertAtCursor = window.WikEdInsertAtCursor;}WikEdSetLogo();wikEdTurnedOn = true;WikEdLoadTypoFixRules();WikEdExecuteHook(wikEdSetupHook);return;}; window.WikEdAutoUpdate = function () {if (/(\?|&)action=/.test(window.location.search) == true) {return;}if (wikEdAutoUpdate != true) {return;}var lastCheckStr = WikEdGetPersistent("wikEdAutoUpdate");var lastCheckDate = new Date(lastCheckStr);if (isNaN(lastCheckDate.valueOf()) == true) {WikEdSetPersistent("wikEdAutoUpdate", "January 1, 1970", 0, "/");return;}var currentDate = new Date;var diffHours = (currentDate - lastCheckDate) / 1000 / 60 / 60;if (wikEdGreasemonkey == true) {if (diffHours < wikEdAutoUpdateHoursGM) {return;}} else if (diffHours < wikEdAutoUpdateHours) {return;}WikEdSetPersistent("wikEdAutoUpdate", currentDate.toUTCString(), 0, "/");WikEdAjaxRequest("GET", wikEdAutoUpdateUrl, null, null, null, null, function (ajax) {var html = ajax.responseText;var ver = wikEdProgramVersion.match(/(\d+)\.(\d+)\.(\d+)(\w?)/);if (ver == null) {return;}var currentVersion = ((Number(ver[1]) * 1000 + Number(ver[2])) * 1000 + Number(ver[3])) * 100 + (ver[4] + "0").charCodeAt(0);var ver = html.match(/(\d+)\.(\d+)\.(\d+)(\w?)/);if (ver == null) {return;}var newVersion = ((Number(ver[1]) * 1000 + Number(ver[2])) * 1000 + Number(ver[3])) * 100 + (ver[4] + "0").charCodeAt(0);if (currentVersion >= newVersion) {return;}if (wikEdGreasemonkey == true) {var updatePopup = wikEdText.wikEdGreasemonkeyAutoUpdate;updatePopup = updatePopup.replace(/\{updateURL\}/g, wikEdAutoUpdateUrl);alert(updatePopup);window.location.href = wikEdAutoUpdateScriptUrl;} else {window.location.reload(true);}});return;}; window.WikEdLoadTypoFixRules = function () {if (wikEdRegExTypoFix == true && (wikEdTypoRulesFind.length == 0)) {WikEdAjaxRequest("GET", wikEdRegExTypoFixURL, null, null, null, null, function (ajax) {var rulesTxt = ajax.responseText;var regExp = new RegExp("^<Typo +word=\"(.+?)\" +find=\"(.+?)\" +replace=\"(.+?)\" +/>", "gim");while ((regExpMatch = regExp.exec(rulesTxt)) != null) {var regExpFind;try {regExpFind = new RegExp(regExpMatch[2], "gim");} catch (err) {continue;}wikEdTypoRulesFind.push(regExpFind);wikEdTypoRulesReplace.push(regExpMatch[3]);}if (wikEdTypoRulesFind.length > 0) {document.getElementById("wikEdFixRegExTypo").style.display = "inline";}return;});}return;}; window.WikEdEditButtonHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}var obj;if (event.currentTarget != null) {obj = event.currentTarget;} else {obj = event.srcElement;}objId = obj.id;eventShiftKey = event.shiftKey;eval(wikEdEditButtonHandler[objId]);return;}; window.WikEdShrinkSummaryHandler = function (event) {var diffWidth = wikEdClearSummary.offsetWidth - wikEdClearSummaryWidth;if (typeof wikEdInputElement.summary.clientLeft == "undefined") {wikEdInputElement.summary.style.width = (wikEdInputElement.summary.clientWidth - diffWidth) + "px";wikEdSelectElement.summary.style.width = (wikEdSelectElement.summary.clientWidth - diffWidth) + "px";} else {wikEdInputElement.summary.style.width = (wikEdInputElement.summary.clientWidth - diffWidth) + "px";wikEdSelectElement.summary.style.width = (wikEdSelectElement.summary.clientWidth - diffWidth + 3) + "px";}wikEdClearSummaryWidth = wikEdClearSummary.offsetWidth;return;}; window.WikEdResizeSummaryHandler = function (event) {WikEdResizeSummary();return;}; window.WikEdUnloadHandler = function (event) {if (wikEdUseWikEd == true) {if (wikEdTextareaUpdated != true) {WikEdUpdateTextarea();}}return;}; window.WikEdSaveButtonHandler = function (event) {WikEdRemoveEventListener(wikEdSaveButton, "click", WikEdSaveButtonHandler, true);if (wikEdUseWikEd == true) {WikEdUpdateTextarea();wikEdTextareaUpdated = true;}var text = wikEdSummaryText.value;text = text.replace(/^[, ]+/, "");text = text.replace(/[, ]+$/, "");WikEdAddToHistory("summary");if (wikEdUsing == true && (text != "")) {if (text.lastIndexOf(wikEdSummaryUsing) < 0) {if (wikEdAddNewSection != true) {text += " " + wikEdSummaryUsing;}}}wikEdSummaryText.value = text;wikEdSaveButton.click();WikEdAddEventListener(wikEdSaveButton, "click", WikEdSaveButtonHandler, true);return;}; window.WikEdPreviewButtonHandler = function (event) {if (wikEdUseWikEd == true) {WikEdUpdateTextarea();wikEdTextareaUpdated = true;}return;}; window.wikEdDiffPreviewButtonHandler = function (event) {if (wikEdFullScreenMode == true) {WikEdFullScreen(false);}if (wikEdUseWikEd == true) {WikEdUpdateTextarea();wikEdTextareaUpdated = true;}return;}; window.WikEdFollowLinkHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}if (event.ctrlKey == true) {var linkId = event.currentTarget.id;if (linkId != null) {var linkUrl = wikEdFollowLinkHash[linkId];if (linkUrl != null) {event.stopPropagation();window.open(linkUrl);window.focus();}}}return;}; window.WikEdLocalPreviewHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.preventDefault();WikEdButton(wikEdLocalPreview, "wikEdLocalPreview");return;}; window.WikEdLocalDiffHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.preventDefault();WikEdButton(wikEdLocalDiff, "wikEdLocalDiff");return;}; window.WikEdButtonBarGripHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.stopPropagation();var grip = event.target;var gripWrapper = grip.parentNode;var buttonsWrapper = gripWrapper.nextSibling;var buttons = buttonsWrapper.firstChild;var barInnerWrapper = gripWrapper.parentNode;var bar = barInnerWrapper.parentNode;if (event.type == "click") {buttonsWrapper.style.position = "static";if (buttonsWrapper.minimized != true) {barInnerWrapper.className = "wikedButtonBarInnerWrapperHidden";gripWrapper.className = "wikedButtonBarGripWrapperHidden";buttonsWrapper.className = "wikedButtonBarButtonsWrapperHidden";buttonsWrapper.widthOriginal = buttonsWrapper.offsetWidth;buttonsWrapper.style.display = "none";buttonsWrapper.minimized = true;WikEdAddEventListener(grip, "mouseover", WikEdButtonBarGripHandler, false);WikEdSetPersistent(bar.id + "Hidden", "1", 0, "/");} else {barInnerWrapper.className = "wikedButtonBarInnerWrapperVisible";gripWrapper.className = "wikedButtonBarGripWrapperVisible";buttonsWrapper.className = "wikedButtonBarButtonsWrapperVisible";buttonsWrapper.style.display = "block";buttonsWrapper.minimized = false;WikEdRemoveEventListener(grip, "mouseover", WikEdButtonBarGripHandler, false);WikEdSetPersistent(bar.id + "Hidden", "0", 0, "/");}} else if (event.type == "mouseover") {if (buttonsWrapper.minimized == true) {WikEdAddEventListener(bar, "mouseout", WikEdButtonBarHandler, false);if (bar.offsetParent.clientWidth > grip.offsetLeft + grip.offsetWidth + buttonsWrapper.widthOriginal) {buttonsWrapper.style.left = (grip.offsetLeft + grip.offsetWidth) + "px";} else {buttonsWrapper.style.left = (gripWrapper.offsetLeft - buttonsWrapper.widthOriginal) + "px";}buttonsWrapper.style.top = gripWrapper.offsetTop + "px";buttonsWrapper.style.position = "absolute";buttonsWrapper.style.display = "block";}}return;}; window.WikEdButtonBarHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.stopPropagation();var bar = event.currentTarget;var barInnerWrapper = bar.firstChild;var gripWrapper = barInnerWrapper.firstChild;var grip = gripWrapper.firstChild;var buttonsWrapper = gripWrapper.nextSibling;var buttons = buttonsWrapper.firstChild;if (event.type == "mouseout") {if (buttonsWrapper.minimized == true) {if ((event.target == grip || event.target == gripWrapper) && event.relatedTarget != gripWrapper && event.relatedTarget != buttonsWrapper && event.relatedTarget != buttons && event.relatedTarget.parentNode != buttons || ((event.target.parentNode.parentNode == buttons || event.target.parentNode == buttons || event.target == buttons || event.target == buttonsWrapper) && event.relatedTarget.parentNode.parentNode != buttons && event.relatedTarget.parentNode != buttons && event.relatedTarget != buttons && event.relatedTarget != buttonsWrapper && event.relatedTarget != gripWrapper && event.relatedTarget != grip)) {WikEdRemoveEventListener(bar, "mouseout", WikEdButtonBarHandler, false);buttonsWrapper.style.display = "none";buttonsWrapper.style.position = "static";}}}return;}; window.WikEdClearSummaryHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}event.preventDefault();if (/^\/\* .*? \*\/ *$/.test(wikEdSummaryText.value)) {wikEdSummaryText.value = "";} else {wikEdSummaryText.value = wikEdSummaryText.value.replace(/^((\/\* .*? \*\/ *)?).*()/, function (p, p1, p2) {if (p1.length > 0) {p1 = p1 + " ";}return p1;});}wikEdSummaryText.focus();return;}; window.WikEdFindReplaceHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}if (event.type == "keydown") {if (event.keyCode == 9) {if (event.target == wikEdFindText) {event.preventDefault();WikEdRemoveEventListener(wikEdReplaceText, "focus", WikEdFindReplaceHandler, true);wikEdReplaceText.focus();WikEdAddEventListener(wikEdReplaceText, "focus", WikEdFindReplaceHandler, true);} else if (event.target == wikEdReplaceText) {event.preventDefault();WikEdRemoveEventListener(wikEdFindText, "focus", WikEdFindReplaceHandler, true);wikEdFindText.focus();WikEdAddEventListener(wikEdFindText, "focus", WikEdFindReplaceHandler, true);}}} else if (event.type == "focus") {if (wikEdMSIE == true) {} else {event.target.setSelectionRange(0, this.textLength);}}return;}; window.WikEdSetLogo = function (state) {if (state == "error") {wikEdLogo.src = wikEdImage.error;wikEdLogo.alt = wikEdText['wikEdLogo error alt'];wikEdLogo.title = wikEdText['wikEdLogo error title'];} else if (state == "browser") {wikEdLogo.src = wikEdImage.browser;wikEdLogo.alt = wikEdText['wikEdLogo browser alt'];wikEdLogo.title = wikEdText['wikEdLogo browser title'];} else {if (wikEdDisabled == true) {wikEdLogo.src = wikEdImage.disabled;wikEdLogo.alt = wikEdText['wikEdLogo disabled alt'];wikEdLogo.title = wikEdText['wikEdLogo disabled title'];} else {wikEdLogo.src = wikEdImage.logo;wikEdLogo.alt = wikEdText['wikEdLogo alt'];wikEdLogo.title = wikEdText['wikEdLogo title'];}}var version = wikEdProgramVersion;if (wikEdGadget == true) {version += " G";} else if (wikEdGreasemonkey == true) {version += " GM";} else if (wikEdGreasemonkeyToBody == true) {version += " GM";}wikEdLogo.title = wikEdLogo.title.replace(/\{wikEdProgramVersion\}/g, version);wikEdLogo.title = wikEdLogo.title.replace(/\{wikEdProgramDate\}/g, wikEdProgramDate);return;}; window.MakeButtonBar = function (bar) {var barId = bar[0];var barClass = bar[1];var buttonsId = bar[2];var buttonsClass = bar[3];var barHeight = bar[4];var gripTitle = bar[5];var buttonNumbers = bar[6];var buttons = "";for (var property in buttonNumbers) {if (typeof buttonNumbers[property] != "string" && (typeof buttonNumbers[property] != "number")) {continue;}var buttonNo = buttonNumbers[property];switch (buttonNo) {case "br":buttons += "<br />";break;case "find":buttons += "<span class=\"wikEdFindComboInput\" id=\"wikEdFindComboInput\">";buttons += "<input class=\"wikEdCombo\" id=\"wikEdFindText\" type=\"text\" value=\"\">";buttons += "<select class=\"wikEdCombo\" id=\"wikEdFindSelect\">";buttons += "</select>";buttons += "</span>";break;case "replace":buttons += "<span class=\"wikEdReplaceComboInput\" id=\"wikEdReplaceComboInput\">";buttons += "<input class=\"wikEdCombo\" id=\"wikEdReplaceText\" type=\"text\" value=\"\">";buttons += "<select class=\"wikEdCombo\" id=\"wikEdReplaceSelect\">";buttons += "</select>";buttons += "</span>";break;default:var currButton = wikEdButton[buttonNo];if (typeof currButton != "object") {alert("Loading error: The button \"" + buttonNumbers[property] + "\" is not defined.");}if (currButton[0] == "wikEdSource" && (wikEdShowSourceButton != true)) {break;} else if (currButton[0] == "wikEdUsing" && (wikEdShowUsingButton != true)) {break;} else if (currButton[0] == "wikEdTableMode" && (wikEdShowTableModeButton != true)) {break;}var accessKey = "";if (wikEdButtonKey[buttonNo] != null) {accessKey = " [" + wikEdText['alt-shift'] + wikEdButtonKey[buttonNo][0] + "]";wikEdButtonKeyCode[wikEdButtonKey[buttonNo][1]] = currButton[0];}buttons += "<img id=\"" + currButton[0] + "\" class=\"" + currButton[1] + "\" title=\"" + currButton[2] + accessKey + "\" src=\"" + currButton[3] + "\" width=\"" + currButton[4] + "\" height=\"" + currButton[5] + "\" alt=\"" + currButton[6] + "\">";wikEdEditButtonHandler[currButton[0]] = currButton[7];}}var div = document.createElement("div");div.id = barId;div.className = barClass;var buttonsStyle = "";if (barHeight > 0) {buttonsStyle = " style=\"height: " + barHeight + "px;\"";}var html = "";if (gripTitle != null) {var gripStyle = "width: " + wikEdButtonBarGripWidth + "px; ";if (barHeight > 0) {gripStyle += "height: " + barHeight + "px; ";}if (gripStyle.length > 0) {gripStyle = " style=\"" + gripStyle + "\"";}html += "<div class=\"wikedButtonBarInnerWrapperVisible\" style=\"height: " + barHeight + "px;\">";html += "<div class=\"wikedButtonBarGripWrapperVisible\">";html += "<div class=\"wikedButtonBarGrip\"" + gripStyle + " title=\"" + gripTitle + "\">";html += "&nbsp;";html += "</div>";html += "</div>";html += "<div class=\"wikedButtonBarButtonsWrapperVisible\"" + buttonsStyle + ">";html += "<div id=\"" + buttonsId + "\" class=\"" + buttonsClass + "\" style=\"\">";html += buttons;html += "</div>";html += "</div>";html += "</div>";} else {html += "<div id=\"" + buttonsId + "\" class=\"" + buttonsClass + "\"" + buttonsStyle + "\">";html += buttons;html += "</div>";}div.innerHTML = html;return div;}; window.WikEdButtonBarInit = function (bar) {if (WikEdGetPersistent(bar.id + "Hidden") == "1") {var barInnerWrapper = bar.firstChild;var gripWrapper = barInnerWrapper.firstChild;var grip = gripWrapper.firstChild;var buttonsWrapper = gripWrapper.nextSibling;var buttons = buttonsWrapper.firstChild;barInnerWrapper.className = "wikedButtonBarInnerWrapperHidden";gripWrapper.className = "wikedButtonBarGripWrapperHidden";buttonsWrapper.className = "wikedButtonBarButtonsWrapperHidden";buttonsWrapper.widthOriginal = buttonsWrapper.offsetWidth;buttonsWrapper.style.display = "none";buttonsWrapper.minimized = true;WikEdAddEventListener(grip, "mouseover", WikEdButtonBarGripHandler, true);}return;}; window.WikEdSetEditArea = function (useFrame, notFrame) {if (useFrame == true) {wikEdTextareaWrapper.style.position = "absolute";wikEdTextareaWrapper.style.visibility = "hidden";wikEdTextarea.style.display = "none";if (notFrame != true) {wikEdFrameWrapper.style.position = "static";wikEdFrameWrapper.style.visibility = "visible";wikEdFrameBody.style.display = "block";}if (document.getElementById("toolbar") != null) {if (wikEdCloseToolbar == true) {wikEdToolbarWrapper.style.display = "none";} else {wikEdToolbarWrapper.style.display = "block";}}wikEdButtonBarFormat.style.display = "block";if (wikEdButtonBarCustom1 != null) {wikEdButtonBarCustom1.style.display = "block";}wikEdButtonBarFind.style.display = "block";wikEdButtonBarFix.style.display = "block";if (wikEdButtonBarCustom2 != null) {wikEdButtonBarCustom2.style.display = "block";}wikEdButtonBarControl.style.display = "block";} else {if (notFrame != true) {wikEdFrameWrapper.style.position = "absolute";wikEdFrameWrapper.style.visibility = "hidden";}wikEdTextareaWrapper.style.position = "static";wikEdTextareaWrapper.style.visibility = "visible";wikEdTextarea.style.display = "block";if (document.getElementById("toolbar") != null) {wikEdToolbarWrapper.style.display = "block";}wikEdButtonBarFormat.style.display = "none";if (wikEdButtonBarCustom1 != null) {wikEdButtonBarCustom1.style.display = "none";}wikEdButtonBarFind.style.display = "none";wikEdButtonBarFix.style.display = "none";if (wikEdButtonBarCustom2 != null) {wikEdButtonBarCustom2.style.display = "none";}wikEdButtonBarControl.style.display = "block";}return;}; window.WikEdButton = function (buttonObj, buttonId, toggleButton, setButton, classButton, doButton) {if (buttonObj != null) {if (buttonObj.className == "wikEdButtonInactive") {return;}buttonObj.style.cursor = "wait";if (setButton != null) {if (setButton == false) {buttonObj.setAttribute("checked", false);if (classButton == null) {buttonObj.className = "wikEdButtonUnchecked";}} else {buttonObj.setAttribute("checked", true);if (classButton == null) {buttonObj.className = "wikEdButtonChecked";}}} else if (classButton != null) {buttonObj.className = classButton;}if (toggleButton != null) {if (toggleButton == true) {if (WikEdGetAttribute(buttonObj, "checked") == "true") {buttonObj.setAttribute("checked", false);buttonObj.className = "wikEdButtonUnchecked";} else {buttonObj.setAttribute("checked", true);buttonObj.className = "wikEdButtonChecked";}}}}var focusFrame = false;if (setButton == null && classButton == null || (doButton == true)) {WikEdRemoveElements(["script", "object", "applet", "embed"]);switch (buttonId) {case "wikEdHighlightSyntax":if (WikEdGetAttribute(buttonObj, "checked") == "true") {wikEdHighlightSyntax = true;WikEdSetPersistent("wikEdSyntaxOff", "0", 0, "/");} else {wikEdHighlightSyntax = false;WikEdSetPersistent("wikEdSyntaxOff", "1", 0, "/");}WikEdEditButton(null, "wikEdUpdateAll", {keepSel: false});break;case "wikEdTableMode":if (WikEdGetAttribute(buttonObj, "checked") != "true") {wikEdTableMode = false;} else {var obj = {};WikEdGetText(obj, "whole");var plain = obj.whole.plain;plain = plain.replace(/<!--(.|\n)*?-->/g, "");plain = plain.replace(/<nowiki\b[^>]*>(.|\n)*?<\/nowiki\s*>/g, "");plain = plain.replace(/<pre\b[^>]*>(.|\n)*?<\/pre\s*>/g, "");var lines = plain.split("\n");var tableCount = 0;var tableError = false;for (var i = 0; i < lines.length; i++) {var line = lines[i];if (line.match(/^\{\|/) != null) {tableCount++;} else if (line.match(/^\|\}/) != null) {tableCount--;if (tableCount < 0) {tableError = true;break;}}}if (tableCount > 0) {tableError = true;}if (tableError == true) {wikEdTableMode = false;alert(wikEdText.wikEdTableModeError);WikEdButton(buttonObj, buttonId, null, false);break;}wikEdTableMode = true;}WikEdEditButton(null, "wikEdUpdateAll");break;case "wikEdScrollToPreview":case "wikEdScrollToPreview2":case "wikEdScrollToPreview3":window.scroll(0, WikEdGetOffsetTop(wikEdSaveButton));focusFrame = true;break;case "wikEdScrollToEdit":case "wikEdScrollToEdit2":case "wikEdScrollToEdit3":case "wikEdScrollToEdit4":window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper));focusFrame = true;break;case "wikEdTextZoomDown":wikEdTextZoom = wikEdTextZoom / 1.2;if (wikEdTextZoom < 69.44444444444446) {wikEdTextZoom = 144;}wikEdFrameBody.style.fontSize = parseInt(wikEdTextZoom) + "%";focusFrame = true;break;case "wikEdTextZoomUp":wikEdTextZoom = wikEdTextZoom * 1.2;if (wikEdTextZoom > 144) {wikEdTextZoom = 69.44444444444446;}wikEdFrameBody.style.fontSize = parseInt(wikEdTextZoom) + "%";focusFrame = true;break;case "wikEdLocalPreview":if (wikEdFullScreenMode == true) {WikEdFullScreen(false);}if (wikEdUseWikEd == true) {WikEdUpdateTextarea();}WikEdScrollToPreview();wikEdPreviewBox.innerHTML = wikEdText.wikEdPreviewLoading;wikEdLocalPrevWrapper.style.display = "block";wikEdPreviewIsAjax = false;if (wikEdUseAjaxPreview == true) {var boundary = "--(fR*3briuStOum6#v)--";var postData = wikEdTextarea.value;postData = "--" + boundary + "\nContent-Disposition: form-data; name=\"wpTextbox1\"\n\n" + postData + "\n--" + boundary;var formAction;if (wikEdUpload == true) {formAction = wikEdWikiGlobals.wgServer + wikEdWikiGlobals.wgScript + "?title=wikEdUploadPreview&action=submit";} else {formAction = wikEdEditForm.action;}WikEdAjaxRequest("POST", formAction + "&live", "Content-Type", "multipart/form-data; boundary=" + boundary, postData, "text/html", function (ajax) {wikEdPreviewIsAjax = true;var html = ajax.responseText;html = html.replace(/&lt;/g, "<");html = html.replace(/&gt;/g, ">");html = html.replace(/&amp;/g, "&");html = html.replace(/&quot;/g, "\"");html = html.replace(/&apos;/g, "'");html = html.replace(/(<preview>)<h2>.*?<\/h2>(.|\n)*?<div class=\'previewnote\'>(.|\n)*?<\/div>/, "$1");wikEdPreviewBox.innerHTML = html;});}if (wikEdUseLocalPreview == true && (typeof InstaView == "object")) {InstaView.conf.user.name = wikEdWikiGlobals.wgUserName;var instaView = InstaView.convert(wikEdTextarea.value);if (wikEdPreviewIsAjax != true) {wikEdPreviewBox.innerHTML = instaView;}}focusFrame = true;break;case "wikEdLocalDiff":if (typeof WDiffString != "function") {break;}if (wikEdFullScreenMode == true) {WikEdFullScreen(false);}if (wikEdUseWikEd == true) {WikEdUpdateTextarea();}WikEdScrollToPreview();var diffText = WDiffString(wikEdOrigVersion, wikEdTextarea.value);if (wikEdFullDiff != true) {diffText = WDiffShortenOutput(diffText);}wikEdPreviewBox.innerHTML = diffText;wikEdLocalPrevWrapper.style.display = "block";break;case "wikEdDiff":if (WikEdGetAttribute(buttonObj, "checked") != "true") {wikEdDiff = false;WikEdSetPersistent("wikEdDiff", "0", 0, "/");if (typeof wikEdDiffDiv == "object") {if (wikEdDiffDiv != null) {wikEdDiffDiv.style.display = "none";}}window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper));} else {wikEdDiff = true;WikEdSetPersistent("wikEdDiff", "1", 0, "/");if (typeof wikEdDiffDiv == "object") {if (wikEdDiffDiv != null) {wikEdDiffDiv.style.display = "block";window.scroll(0, WikEdGetOffsetTop(wikEdDiffDiv));WikEdDiff();}}}focusFrame = true;break;case "wikEdClose":case "wikEdClose2":window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper));wikEdLocalPrevWrapper.style.display = "none";focusFrame = true;break;case "wikEdUseWikEd":if (WikEdGetAttribute(buttonObj, "checked") == "true") {WikEdUpdateFrame();WikEdSetEditArea(true);wikEdUseWikEd = true;WikEdSetPersistent("wikEdUseClassic", "0", 0, "/");WikEdExecuteHook(wikEdFrameHook);} else {WikEdUpdateTextarea();WikEdSetEditArea(false);wikEdUseWikEd = false;WikEdSetPersistent("wikEdUseClassic", "1", 0, "/");WikEdExecuteHook(wikEdTextareaHook);}break;case "wikEdUsing":if (WikEdGetAttribute(buttonObj, "checked") == "true") {wikEdUsing = true;WikEdSetPersistent("wikEdSummaryUsing", "1", 0, "/");} else {wikEdUsing = false;WikEdSetPersistent("wikEdSummaryUsing", "0", 0, "/");}break;case "wikEdRefHide":if (WikEdGetAttribute(buttonObj, "checked") == "true") {wikEdRefHide = true;WikEdSetPersistent("wikEdRefHide", "1", 0, "/");} else {wikEdRefHide = false;WikEdSetPersistent("wikEdRefHide", "0", 0, "/");}if (wikEdUseWikEd == true) {WikEdEditButton(null, "wikEdWikify", {whole: true});}break;case "wikEdCloseToolbar":if (WikEdGetAttribute(buttonObj, "checked") == "true") {wikEdCloseToolbar = true;if (document.getElementById("toolbar") != null) {wikEdToolbarWrapper.style.display = "none";}WikEdSetPersistent("wikEdCloseToolbar", "1", 0, "/");} else {wikEdCloseToolbar = false;if (document.getElementById("toolbar") != null) {wikEdToolbarWrapper.style.display = "block";}WikEdSetPersistent("wikEdCloseToolbar", "0", 0, "/");}if (wikEdFullScreenMode == true) {WikEdFullScreen(wikEdFullScreenMode);}break;case "wikEdCaseSensitive":break;case "wikEdRegExp":break;case "wikEdFindAhead":break;case "wikEdFullScreen":if (wikEdRearrange == true) {if (WikEdGetAttribute(buttonObj, "checked") == "true") {WikEdFullScreen(true);WikEdSetPersistent("wikEdFullscreen", "1", 0, "/");} else {WikEdFullScreen(false);WikEdSetPersistent("wikEdFullscreen", "0", 0, "/");}}break;case "wikEdClearHistory":WikEdClearHistory("find");WikEdClearHistory("replace");WikEdClearHistory("summary");focusFrame = true;break;case "wikEdPlaceholder":break;default:;}}wikEdFrameDOMCache = null;if (buttonObj != null) {buttonObj.style.cursor = "pointer";}if (wikEdUseWikEd == true && (focusFrame == true)) {wikEdFrameWindow.focus();}return;}; window.WikEdEditButton = function (buttonObj, buttonId, parameters, CustomHandler) {if (buttonObj != null) {if (buttonObj.className == "wikEdButtonInactive") {return;}}WikEdRemoveElements(["script", "object", "applet", "embed", "textarea"]);var obj = {};obj.changed = {};switch (buttonId) {case "wikEdUndo":case "wikEdRedo":case "wikEdUndoAll":case "wikEdRedoAll":WikEdGetText(obj, "whole");obj.changed = obj.whole;break;case "wikEdBold":case "wikEdItalic":case "wikEdUnderline":case "wikEdStrikethrough":case "wikEdNowiki":case "wikEdSuperscript":case "wikEdSubscript":case "wikEdWikiLink":case "wikEdWebLink":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.cursor;}}break;case "wikEdRef":case "wikEdRefNamed":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {obj.changed = obj.cursor;}break;case "wikEdReferences":case "wikEdReferencesSection":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {obj.changed = obj.cursor;}break;case "wikEdCase":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.cursor;}}break;case "wikEdDecreaseHeading":case "wikEdIncreaseHeading":case "wikEdIncreaseBulletList":case "wikEdDecreaseBulletList":case "wikEdIncreaseNumberList":case "wikEdDecreaseNumberList":case "wikEdIncreaseIndentList":case "wikEdDecreaseIndentList":case "wikEdDefinitionList":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {WikEdGetText(obj, "selectionLine");obj.changed = obj.selectionLine;} else {WikEdGetText(obj, "focusLine");if (obj.focusLine.plain != "") {obj.changed = obj.focusLine;} else {obj.changed = obj.cursor;}}break;case "wikEdImage":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {WikEdGetText(obj, "selectionWord");obj.changed = obj.selectionWord;} else {obj.changed = obj.cursor;}break;case "wikEdTable":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {WikEdGetText(obj, "selectionLine");obj.changed = obj.selectionLine;} else {WikEdGetText(obj, "focusLine");obj.changed = obj.cursor;}break;case "wikEdWikify":if (parameters == "whole") {WikEdGetText(obj, "whole");obj.changed = obj.whole;} else {WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole");obj.changed = obj.whole;}}break;case "wikEdTextify":WikEdGetText(obj, "selection", false);if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole", false);obj.changed = obj.whole;}break;case "wikEdRedirect":WikEdGetText(obj, "whole, selection, cursor");if (obj.selection.plain == "") {WikEdGetText(obj, "selectionWord");}obj.changed = obj.whole;break;case "wikEdFindPrev":case "wikEdFindNext":case "wikEdJumpPrev":case "wikEdJumpNext":case "wikEdReplacePrev":case "wikEdReplaceNext":case "wikEdFindAll":WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.cursor;}}break;case "wikEdReplaceAll":WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole");obj.changed = obj.whole;}break;case "wikEdFixBasic":case "wikEdfixUnicode":case "wikEdFixAll":case "wikEdFixHtml":case "wikEdFixRegExTypo":WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole");obj.changed = obj.whole;}break;case "wikEdFixPunct":case "wikEdFixMath":case "wikEdFixUnits":case "wikEdFixDashes":case "wikEdFixCaps":case "wikEdFixChem":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusLine");if (obj.focusPara.plain != "") {obj.changed = obj.focusLine;} else {obj.changed = obj.cursor;}}break;WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.cursor;}}break;case "wikEdSource":WikEdGetText(obj, "selection");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "whole");obj.changed = obj.whole;}break;case "wikEdInsertTags":WikEdGetText(obj, "selection, cursor");if (obj.selection.plain != "") {obj.changed = obj.selection;} else {WikEdGetText(obj, "focusWord");if (obj.focusWord.plain != "") {obj.changed = obj.focusWord;} else {obj.changed = obj.selection;}}break;case "wikEdUpdateAll":WikEdGetText(obj, "whole");obj.changed = obj.whole;break;default:WikEdGetText(obj, "cursor");obj.changed = obj.cursor;break;}if (obj.changed == null) {wikEdFrameWindow.focus();if (buttonObj != null) {if (buttonObj.className != "wikEdButtonInactive") {buttonObj.className = "wikEdButton";}}return;}var highlightSyntax = wikEdHighlightSyntax;var selectChanged = true;var selectChangedText = "";switch (buttonId) {case "wikEdUndo":if (wikEdLastVersion == null) {wikEdLastVersion = obj.changed.plain;}WikEdFrameExecCommand("undo");if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}obj.changed.range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);obj.changed.plain = null;obj.changed.keepSel = true;break;case "wikEdRedo":WikEdFrameExecCommand("redo");if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}obj.changed.range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);obj.changed.plain = null;obj.changed.keepSel = true;break;case "wikEdBold":if (/\'\'\'([^\'].*?)\'\'\'/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/\'\'\'([^\'].*?)\'\'\'/g, "$1");} else {obj.changed.plain = "'" + obj.changed.plain + "";obj.changed.plain = obj.changed.plain.replace(/(\'\'\')( *)(.*?)( *)(\'\'\')/, "$2$1$3$5$4");}obj.changed.plain = obj.changed.plain.replace(/\'{6,}/g, "");obj.changed.keepSel = true;break;case "wikEdItalic":if (/(\'{3,})\'\'([^\'].*?)\'\'(\'{3,})/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/(\'{3,})\'\'([^\'].*?)\'\'(\'{3,})/g, "$1$2$3");} else if (/(^|[^\'])\'\'([^\'].*?)\'\'([^\']|$)/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/(^|[^\'])\'\'([^\'].*?)\'\'([^\']|$)/g, "$1$2$3");} else {obj.changed.plain = "" + obj.changed.plain + "";obj.changed.plain = obj.changed.plain.replace(/(\'\')( *)(.*?)( *)(\'\')/, "$2$1$3$5$4");}obj.changed.plain = obj.changed.plain.replace(/\'{6,}/g, "");obj.changed.keepSel = true;break;case "wikEdUnderline":if (/&lt;u&gt;(.*?)&lt;\/u&gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&lt;u&gt;(.*?)&lt;\/u&gt;/gi, "$1");} else {obj.changed.plain = "&lt;u&gt;" + obj.changed.plain + "&lt;/u&gt;";obj.changed.plain = obj.changed.plain.replace(/(&lt;u&gt;)( *)(.*?)( *)(&lt;\/u&gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdStrikethrough":if (/&lt;s&gt;(.*?)&lt;\/s&gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&lt;s&gt;(.*?)&lt;\/s&gt;/gi, "$1");} else {obj.changed.plain = "&lt;s&gt;" + obj.changed.plain + "&lt;/s&gt;";obj.changed.plain = obj.changed.plain.replace(/(&lt;s&gt;)( *)(.*?)( *)(&lt;\/s&gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdNowiki":if (/&lt;nowiki&gt;(.*?)&lt;\/nowiki&gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&lt;nowiki&gt;(.*?)&lt;\/nowiki&gt;/gi, "$1");} else {obj.changed.plain = "&lt;nowiki&gt;" + obj.changed.plain + "&lt;/nowiki&gt;";obj.changed.plain = obj.changed.plain.replace(/(&lt;nowiki&gt;)( *)(.*?)( *)(&lt;\/nowiki&gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdSuperscript":obj.changed.plain = obj.changed.plain.replace(/^(\s*)&lt;sub&gt;(.*?)&lt;\/sub&gt;(\s*)$/, "$1$2$3");if (/&lt;sup&gt;(.*?)&lt;\/sup&gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&lt;sup&gt;(.*?)&lt;\/sup&gt;/gi, "$1");} else {obj.changed.plain = "&lt;sup&gt;" + obj.changed.plain + "&lt;/sup&gt;";obj.changed.plain = obj.changed.plain.replace(/(&lt;sup&gt;)( *)(.*?)( *)(&lt;\/sup&gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdSubscript":obj.changed.plain = obj.changed.plain.replace(/^(\s*)&lt;sup&gt;(.*?)&lt;\/sup&gt;(\s*)$/, "$1$2$3");if (/&lt;sub&gt;(.*?)&lt;\/sub&gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&lt;sub&gt;(.*?)&lt;\/sub&gt;/gi, "$1");} else {obj.changed.plain = "&lt;sub&gt;" + obj.changed.plain + "&lt;/sub&gt;";obj.changed.plain = obj.changed.plain.replace(/(&lt;sub&gt;)( *)(.*?)( *)(&lt;\/sub&gt;)/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdRef":case "wikEdRefNamed":if (obj.changed.plain == "") {if (buttonId == "wikEdRef") {obj.changed.plain = "&lt;ref /&gt;";} else {obj.changed.plain = "&lt;ref name=\"\"/&gt;";}} else if (/&lt;ref( name=\"\")? ?\/&gt;/i.test(obj.changed.plain)) {obj.changed.plain = "";} else if (/&lt;ref( name=\"\")?&gt;(.*?)&lt;\/ref&gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&lt;ref( name=\"\")?&gt;(.*?)&lt;\/ref&gt;/gi, "$2");} else {if (buttonId == "wikEdRef") {obj.changed.plain = "&lt;ref&gt;" + obj.changed.plain + "&lt;/ref&gt;";} else {obj.changed.plain = "&lt;ref name=\"\"&gt;" + obj.changed.plain + "&lt;/ref&gt;";}obj.changed.plain = obj.changed.plain.replace(/(&lt;ref( name=\"\")?&gt;)( *)(.*?)( *)(&lt;\/ref&gt;)/, "$3$1$4$6$5");}obj.changed.keepSel = true;break;case "wikEdReferences":case "wikEdReferencesSection":var ref = wikEdText.wikEdReferencesSection;ref = ref.replace(/</g, "&lt;");ref = ref.replace(/>/g, "&gt;");var refEscaped = ref;refEscaped = refEscaped.replace(/([^\w\s\;\&])/g, "\\$1");refEscaped = refEscaped.replace(/^\n|\n$/g, "\\n*");refEscaped = refEscaped.replace(/(\n)/g, "\\n");var regExp = new RegExp(refEscaped, "gi");if (buttonId == "wikEdReferences") {if (obj.changed.plain == "") {obj.changed.plain = "&lt;references/&gt;";} else if (regExp.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(regExp, "");} else if (/&lt;references ?\/&gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&lt;references ?\/&gt;/gi, "");} else {obj.changed = obj.cursor;obj.changed.plain = "&lt;references/&gt;";}} else {if (obj.changed.plain == "") {obj.changed.plain = ref;} else if (regExp.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(regExp, "");} else if (/&lt;references ?\/&gt;/i.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/&lt;references ?\/&gt;/gi, "");} else {obj.changed = obj.cursor;obj.changed.plain = ref;}}obj.changed.keepSel = true;break;case "wikEdCase":if (obj.changed.plain == "") {obj.changed.plain = null;} else {var plain = obj.changed.plain;plain = plain.replace(/&gt;/g, ">");plain = plain.replace(/&lt;/g, "<");plain = plain.replace(/&amp;/g, "&");if (plain.toUpperCase() == plain) {plain = plain.toLowerCase();} else if (plain.toLowerCase() == plain) {plain = plain.replace(/\b([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9])([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\']*)/g, function (p, p1, p2) {return p1.toUpperCase() + p2.toLowerCase();});} else {plain = plain.toUpperCase();}plain = plain.replace(/&/g, "&amp;");plain = plain.replace(/</g, "&lt;");plain = plain.replace(/>/g, "&gt;");obj.changed.plain = plain;}obj.changed.keepSel = true;break;case "wikEdUndoAll":if (wikEdLastVersion == null) {wikEdLastVersion = obj.changed.plain;}obj.changed.plain = wikEdOrigVersion;obj.changed.plain = obj.changed.plain.replace(/&/g, "&amp;");obj.changed.plain = obj.changed.plain.replace(/>/g, "&gt;");obj.changed.plain = obj.changed.plain.replace(/</g, "&lt;");break;case "wikEdRedoAll":if (wikEdLastVersion != null) {obj.changed.plain = wikEdLastVersion;}break;case "wikEdWikiLink":if (/\[\[(.*?)\]\]/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/\[\[(.*?)\]\]/g, "$1");} else {obj.changed.plain = "" + obj.changed.plain + "";obj.changed.plain = obj.changed.plain.replace(/(\[\[)( *)(.*?)( *)(\]\])/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdWebLink":if (/\[(.*?)\]/.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(/\[(.*?)\]/g, "$1");} else {obj.changed.plain = "[" + obj.changed.plain + "]";obj.changed.plain = obj.changed.plain.replace(/(\[)( *)(.*?)( *)(\])/, "$2$1$3$5$4");}obj.changed.keepSel = true;break;case "wikEdDecreaseHeading":obj.changed.plain = obj.changed.plain.replace(/(^|\n)=(=+) *([^\n]*?) *=+(?=\n|$)/g, "$1$2 $3 $2");obj.changed.plain = obj.changed.plain.replace(/(^|\n)=(?!=) *([^\n]*?) *=+(?=\n|$)/g, "$1$2");obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=+) *([^\n]*?) *=+(?=\n|$)/g, "$1$2 $3 $2");obj.changed.keepSel = true;break;case "wikEdIncreaseHeading":obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=+) *([^\n]*?) *=+(?=\n|$)/g, "$1=$2 $3 $2=");if (/\n/.test(obj.changed.plain) == false) {obj.changed.plain = obj.changed.plain.replace(/(^|\n)([^=\n\s][^\n]*?)(?=\n|$)/g, "$1== $2 ==");}obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=+) *([^\n]*?) *=+(?=\n|$)/g, "$1$2 $3 $2");obj.changed.keepSel = true;break;case "wikEdIncreaseBulletList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^ *([\*\#\:\;]*) *()/g, "*$1 ");return p1;});obj.changed.keepSel = true;break;case "wikEdDecreaseBulletList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^[\*\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdIncreaseNumberList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^ *([\*\#\:\;]*) *()/g, "#$1 ");return p1;});obj.changed.keepSel = true;break;case "wikEdDecreaseNumberList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^[\*\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdIncreaseIndentList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^ *([\*\#\:\;]*) *()/g, ":$1 ");return p1;});obj.changed.keepSel = true;break;case "wikEdDecreaseIndentList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^[\*\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdDefinitionList":obj.changed.plain = obj.changed.plain.replace(/([^\n]+)/g, function (p, p1) {p1 = p1.replace(/^ *([^\s\;]+) *()/g, "; $1 : ");return p1;});break;case "wikEdImage":if (obj.changed.plain != "") {obj.changed.plain = "[[Image:<span class=\"wikEdInsertHere\">" + wikEdText['image filename'] + "</span>|thumb|<span class=\"wikEdInsertHere\">" + wikEdText['image width'] + "</span>px|" + obj.changed.plain + "]]";} else {obj.changed.plain = "[[Image:<span class=\"wikEdInsertHere\">" + wikEdText['image filename'] + "</span>|thumb|<span class=\"wikEdInsertHere\">" + wikEdText['image width'] + "</span>px|<span class=\"wikEdInsertHere\"> </span>]]";if (obj.focusWord != null) {if (obj.focusWord.plain != "") {obj.changed.plain = " " + obj.changed.plain + " ";}}}break;case "wikEdTable":if (obj.changed.plain != "") {obj.changed.plain = obj.changed.plain.replace(/(^|\n) *()/g, "\n|-\n| ");obj.changed.plain = obj.changed.plain.replace(/^\n\|\-\n/, "\n{| class=\"wikitable\"\n");obj.changed.plain = obj.changed.plain.replace(/$/g, "\n|}\n");} else {obj.changed.plain = "\n{| class=\"wikitable\"\n|+ <span class=\"wikEdInsertHere\">" + wikEdText['table caption'] + "</span>\n! <span class=\"wikEdinserthere\">" + wikEdText['table heading'] + "</span> !! <span class=\"wikEdInsertHere\">" + wikEdText['table heading'] + "</span>\n|-\n| <span class=\"wikEdInsertHere\">" + wikEdText['table cell'] + "</span> || <span class=\"wikEdInsertHere\">" + wikEdText['table cell'] + "</span>\n|-\n| <span class=\"wikEdInsertHere\">" + wikEdText['table cell'] + "</span> || <span class=\"wikEdInsertHere\">" + wikEdText['table cell'] + "</span>\n|}\n";if (obj.focusLine.plain != "") {obj.changed.plain = "\n" + obj.changed.plain + "\n";}}break;case "wikEdWikify":break;case "wikEdTextify":WikEdTextify(obj.changed);break;case "wikEdRedirect":var linkTarget;if (obj.selection.plain != "") {linkTarget = obj.selection.plain;} else if (obj.selectionWord.plain != "") {linkTarget = obj.selectionWord.plain;} else {linkTarget = "<span class=\"wikEdInsertHere\">" + wikEdText['redirect article link'] + "</span>";}linkTarget = linkTarget.replace(/\|.*()/, "");linkTarget = linkTarget.replace(/^(=+|\'+|<[^>]*>|\s+|\[)+(.*?)(=+|\'+|<[^>]*>|\s+|\])+$/g, "$2");linkTarget = linkTarget.replace(/\s+/g, " ");linkTarget = linkTarget.replace(/^\s+|\s+$/g, "");obj.changed.plain = "#REDIRECT " + linkTarget + "";if (wikEdInputElement.summary != null) {if (obj.selection.plain != "" || (obj.selectionWord.plain != "")) {wikEdInputElement.summary.value = wikEdInputElement.summary.value.replace(/#REDIRECT( \[\^\*\]\])?(, *)?/g, "");wikEdInputElement.summary.value = WikEdAppendToSummary(wikEdInputElement.summary.value, "#REDIRECT " + linkTarget + "");} else {wikEdInputElement.summary.value = WikEdAppendToSummary(wikEdInputElement.summary.value, "#REDIRECT");}}selectChanged = false;break;case "wikEdFindPrev":case "wikEdFindNext":case "wikEdJumpPrev":case "wikEdJumpNext":case "wikEdReplacePrev":case "wikEdReplaceNext":case "wikEdFindAll":case "wikEdReplaceAll":var findText;obj.changed.plain = obj.changed.plain.replace(/&lt;/g, "<");obj.changed.plain = obj.changed.plain.replace(/&gt;/g, ">");obj.changed.plain = obj.changed.plain.replace(/&amp;/g, "&");if (parameters == "shift" && (buttonId == "wikEdFindNext" || buttonId == "wikEdReplaceNext")) {if (/\n/.test(obj.changed.plain) == false) {if (buttonId == "wikEdFindNext") {wikEdInputElement.find.value = obj.changed.plain;} else {wikEdInputElement.replace.value = obj.changed.plain;}obj.changed.keepSel = true;obj.changed.plain = null;break;}}if (buttonId == "wikEdJumpPrev" || (buttonId == "wikEdJumpNext")) {findText = obj.changed.plain;if (obj.selection.plain == "") {obj.changed.keepSel = true;obj.changed.plain = null;break;}} else {if (wikEdInputElement.find.value != "") {findText = wikEdInputElement.find.value;} else {obj.changed.plain = null;break;}}var regExpChecked = WikEdGetAttribute(wikEdRegExp, "checked");var caseSensitiveChecked = WikEdGetAttribute(wikEdCaseSensitive, "checked");if (regExpChecked == "false") {findText = findText.replace(/\n/g, "");findText = findText.replace(/\s/g, " ");}var replaceText = wikEdInputElement.replace.value;var regExpFind;var regExpFlags = "g";if (caseSensitiveChecked == "false") {regExpFlags += "i";}if (regExpChecked == "false" || buttonId == "wikEdJumpPrev" || (buttonId == "wikEdJumpNext")) {regExpFind = new RegExp(findText.replace(/([\\^\$\*\+\?\.\(\)\[\]\{\}\:\=\!\|\,\-])/g, "\\$1"), regExpFlags);} else {try {regExpFind = new RegExp(findText, regExpFlags);} catch (err) {return;}replaceText = replaceText.replace(/((^|[^\\])(\\\\)*)\\n/g, "$1\n");}var replacedFlag = false;if (buttonId == "wikEdReplaceAll") {if (regExpFind.test(obj.changed.plain)) {obj.changed.plain = obj.changed.plain.replace(regExpFind, replaceText);replacedFlag = true;} else {obj.changed.plain = null;}} else if (buttonId == "wikEdReplacePrev" || (buttonId == "wikEdReplaceNext")) {if (regExpFind.test(obj.selection.plain)) {var replaced = obj.selection.plain.replace(regExpFind, replaceText);if (obj.changed.plain != replaced) {obj.changed.plain = replaced;replacedFlag = true;} else {obj.changed.plain = null;}} else {obj.changed.plain = null;}} else if (buttonId == "wikEdFindNext" || buttonId == "wikEdFindPrev" || buttonId == "wikEdJumpNext" || (buttonId == "wikEdJumpPrev")) {obj.changed.plain = null;}if (buttonId == "wikEdFindNext" || buttonId == "wikEdFindPrev" || buttonId == "wikEdJumpNext" || buttonId == "wikEdJumpPrev" || buttonId == "wikEdReplaceNext" || buttonId == "wikEdReplacePrev" || (buttonId == "wikEdFindAll")) {if (replacedFlag == false) {var backwards = false;if (buttonId == "wikEdFindPrev" || buttonId == "wikEdJumpPrev" || (buttonId == "wikEdReplacePrev")) {backwards = true;}var caseSensitive = false;if (caseSensitiveChecked == "true") {caseSensitive = true;}if (buttonId == "wikEdFindAll") {var found;var foundRanges = [];WikEdRemoveAllRanges(obj.sel);var range = document.createRange();range.setStartBefore(wikEdFrameBody.firstChild);range.collapse(true);range = obj.sel.addRange(range);var scrollTop = wikEdFrameBody.scrollTop;do {if (regExpChecked == "true") {found = WikEdFind(obj, findText, caseSensitive, false, false, regExpFind);} else {found = WikEdFind(obj, findText, caseSensitive, false, false, null);}if (found == true) {foundRanges.push(obj.changed.range.cloneRange());}} while (found == true);if (regExpChecked == "false") {wikEdFrameBody.scrollTop = scrollTop;}WikEdRemoveAllRanges(obj.sel);for (range in foundRanges) {obj.sel.addRange(foundRanges[range]);}obj.changed.plain = null;} else {if (regExpChecked == "true") {WikEdFind(obj, findText, caseSensitive, backwards, true, regExpFind);} else {WikEdFind(obj, findText, caseSensitive, backwards, true, null);selectChanged = false;}}}}if (obj.changed.plain != null) {obj.changed.plain = obj.changed.plain.replace(/&/g, "&amp;");obj.changed.plain = obj.changed.plain.replace(/</g, "&lt;");obj.changed.plain = obj.changed.plain.replace(/>/g, "&gt;");}if (buttonId == "wikEdFindPrev" || buttonId == "wikEdFindNext" || (buttonId == "wikEdFindAll")) {WikEdAddToHistory("find");}if (buttonId == "wikEdReplacePrev" || buttonId == "wikEdReplaceNext" || (buttonId == "wikEdReplaceAll")) {WikEdAddToHistory("find");WikEdAddToHistory("replace");}obj.changed.keepSel = true;break;case "wikEdFixBasic":WikEdFixBasic(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixPunct":WikEdFixPunct(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixMath":WikEdFixMath(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixChem":WikEdFixChem(obj.changed);obj.changed.keepSel = true;break;case "wikEdfixUnicode":WikEdFixUnicode(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixUnits":WikEdFixUnits(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixDashes":WikEdFixDashes(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixHtml":WikEdFixHTML(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixRegExTypo":if (wikEdRegExTypoFix == true && (wikEdTypoRulesFind.length > 0)) {WikEdFixTypos(obj.changed);} else {obj.changed.plain = null;}obj.changed.keepSel = true;break;case "wikEdFixCaps":WikEdFixCaps(obj.changed);obj.changed.keepSel = true;break;case "wikEdFixAll":WikEdFixAll(obj.changed);obj.changed.keepSel = true;break;case "wikEdSource":obj.changed.plain = obj.changed.code;obj.changed.plain = obj.changed.plain.replace(/(<(br|p)\b[^>]*>)/g, "$1\n");obj.changed.plain = obj.changed.plain.replace(/&/g, "&amp;");obj.changed.plain = obj.changed.plain.replace(/</g, "&lt;");obj.changed.plain = obj.changed.plain.replace(/>/g, "&gt;");highlightSyntax = false;break;case "wikEdInsertTags":var tagOpen = parameters[0] || "";var tagClose = parameters[1] || "";var sampleText = parameters[2] || "";tagOpen = tagOpen.replace(/&/g, "&amp;");tagOpen = tagOpen.replace(/</g, "&lt;");tagOpen = tagOpen.replace(/>/g, "&gt;");tagClose = tagClose.replace(/&/g, "&amp;");tagClose = tagClose.replace(/</g, "&lt;");tagClose = tagClose.replace(/>/g, "&gt;");tagsampleText = sampleText.replace(/&/g, "&amp;");tagsampleText = sampleText.replace(/</g, "&lt;");tagsampleText = sampleText.replace(/>/g, "&gt;");if (tagOpen.length > 0 && tagClose.length == 0 && (sampleText.length == 0)) {obj.changed = obj.cursor;obj.changed.plain = tagOpen;} else if (obj.changed.plain == "" && (sampleText.length > 0)) {obj.changed.plain = tagOpen + sampleText + tagClose;selectChangedText = sampleText;obj.changed.keepSel = true;} else {obj.changed.plain = tagOpen + obj.changed.plain + tagClose;}break;case "wikEdUpdateAll":obj.changed.keepSel = true;if (parameters != null) {if (parameters.keepSel == false) {obj.changed.keepSel = false;}}break;default:if (CustomHandler != null) {CustomHandler(obj);} else {alert("Unknown edit function '" + buttonId + "'");}break;}if (obj.changed.plain == null) {if (buttonId != "wikEdFindAll") {WikEdRemoveAllRanges(obj.sel);obj.sel.addRange(obj.changed.range);if (selectChanged != false) {if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}var plainText = obj.sel.getRangeAt(obj.sel.rangeCount - 1).cloneContents().textContent;if (plainText.length > 0) {plainText = plainText.replace(/\n/g, "");obj.changed.range.collapse(false);wikEdFrameWindow.find(plainText, true, true, false, false, false, false);}}}} else {if (buttonId != "wikEdUndo" && buttonId != "wikEdRedo" && (buttonId != "wikEdUndoAll")) {wikEdLastVersion = null;}obj.html = obj.changed.plain;if (highlightSyntax == true) {if (obj.changed.from == "whole") {obj.whole = true;}WikEdHighlightSyntax(obj);} else {obj.html = obj.html.replace(/(\t)/g, "<span class=\"wikEdTabPlain\">$1</span><!--wikEdTabPlain-->");}obj.html = obj.html.replace(/ /g, "&nbsp; ");obj.html = obj.html.replace(/ /g, "&nbsp; ");obj.html = obj.html.replace(/\n/g, "<br />");WikEdRemoveAllRanges(obj.sel);obj.sel.addRange(obj.changed.range);var scrollTop;if (obj.changed.from == "whole") {scrollTop = wikEdFrameBody.scrollTop;}if (obj.html != "") {WikEdFrameExecCommand("inserthtml", obj.html);} else if (obj.sel.isCollapsed == false) {WikEdFrameExecCommand("delete");}if (obj.changed.from == "whole") {WikEdRemoveAllRanges(obj.sel);wikEdFrameBody.scrollTop = scrollTop;var range = document.createRange();range.setStartBefore(wikEdFrameBody.firstChild);range.setEndAfter(wikEdFrameBody.lastChild);obj.sel.addRange(range);selectChanged = false;}if (selectChanged != false) {if (selectChangedText == "") {var div = document.createElement("div");div.innerHTML = obj.changed.plain;selectChangedText = div.textContent;}if (selectChangedText.length > 0) {selectChangedText = selectChangedText.replace(/\n/g, "");wikEdFrameWindow.find(selectChangedText, true, true, false, false, false, false);}}}if (obj.changed.keepSel != true && obj.changed.from != "whole" || obj.changed.keepSel == false || buttonId == "wikEdRedirect" || (buttonId == "wikEdWikify" && parameters == "whole")) {if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);} else {obj.sel.getRangeAt(obj.sel.rangeCount - 1).collapse(false);}}if (buttonObj != null) {if (buttonObj.className != "wikEdButtonInactive") {buttonObj.className = "wikEdButton";}buttonObj.style.cursor = "auto";}WikEdInactiveButtons();wikEdFrameDOMCache = null;if (wikEdUseWikEd == true) {wikEdFrameWindow.focus();}if (highlightSyntax == true && (obj.changed.plain != null)) {WikEdFollowLinks();}return;}; window.WikEdScrollToPreview = function () {var scrollOffset = window.pageYOffset;var inputOffset = WikEdGetOffsetTop(wikEdInputWrapper);var textareaOffset = WikEdGetOffsetTop(wikEdTextareaWrapper);var submitOffset = WikEdGetOffsetTop(wikEdSaveButton);if (scrollOffset > submitOffset) {window.scroll(0, submitOffset);} else if (scrollOffset > (submitOffset - textareaOffset) / 3 * 2 + textareaOffset) {window.scroll(0, submitOffset);} else if (scrollOffset > textareaOffset) {window.scroll(0, textareaOffset);} else {window.scroll(0, inputOffset);}return;}; window.WikEdFollowLinks = function () {if (wikEdFollowLinks == true) {for (var linkId in wikEdFollowLinkHash) {if (typeof wikEdFollowLinkHash[linkId] != "string") {continue;}var linkSpan = wikEdFrameDocument.getElementById(linkId);if (linkSpan != null) {WikEdAddEventListener(linkSpan, "click", WikEdFollowLinkHandler, true);}}}return;}; window.WikEdGetText = function (obj, whichFragment, wikify) {if (obj.sel == null) {obj.sel = WikEdGetSelection();}if (obj.cursor == null) {obj.cursor = {from: "cursor", keepSel: null, plain: ""};obj.cursor.range = document.createRange();obj.cursor.range.setStart(obj.sel.focusNode, obj.sel.focusOffset);obj.cursor.range.setEnd(obj.sel.focusNode, obj.sel.focusOffset);}if (obj.whole == null) {if (/whole|selectionWord|selectionLine|selectionPara|focusWord|focusLine|focusPara/.test(whichFragment) == true) {obj.whole = {plainArray: [], plainNode: [], plainStart: [], from: "whole", keepSel: null};obj.whole.range = document.createRange();obj.whole.range.setStartBefore(wikEdFrameBody.firstChild);obj.whole.range.setEndAfter(wikEdFrameBody.lastChild);WikEdGetInnerHTML(obj.whole, wikEdFrameBody);obj.whole.code = obj.whole.html;WikEdRemoveHighlightingWikify(obj.whole, wikify);obj.whole.plain = obj.whole.html;obj.whole.plain = obj.whole.plain.replace(/<br\b[^>]*>[\r\n ]*()/g, "\n");obj.whole.plain = obj.whole.plain.replace(/\u00a0/g, " ");}}if (obj.selection == null) {if (/selection\b|selectionWord|selectionLine|selectionPara/.test(whichFragment) == true) {obj.selection = {from: "selection", keepSel: null};if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}obj.selection.range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);var documentFragment = obj.selection.range.cloneContents();WikEdGetInnerHTML(obj.selection, documentFragment);obj.selection.code = obj.selection.html;WikEdRemoveHighlightingWikify(obj.selection, wikify);obj.selection.plain = obj.selection.html;obj.selection.plain = obj.selection.plain.replace(/<br\b[^>]*>[\r\n ]*()/g, "\n");obj.selection.plain = obj.selection.plain.replace(/\u00a0/g, " ");}}if (obj.focusWord == null) {if (/focusWord|focusLine|focusPara/.test(whichFragment) == true) {obj.focusWord = {from: "focusWord", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};obj.focusLine = {from: "focusLine", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};obj.focusPara = {from: "focusPara", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};WikEdFindBoundaries(obj.focusWord, obj.focusLine, obj.focusPara, obj.whole, obj.cursor);var documentFragment = obj.focusWord.range.cloneContents();WikEdGetInnerHTML(obj.focusWord, documentFragment);obj.focusWord.code = obj.focusWord.html;WikEdRemoveHighlightingWikify(obj.focusWord, wikify);obj.focusWord.plain = obj.focusWord.html;obj.focusWord.plain = obj.focusWord.plain.replace(/<br\b[^>]*>[\r\n ]*()/g, "\n");obj.focusWord.plain = obj.focusWord.plain.replace(/\u00a0/g, " ");var documentFragment = obj.focusLine.range.cloneContents();WikEdGetInnerHTML(obj.focusLine, documentFragment);obj.focusLine.code = obj.focusLine.html;WikEdRemoveHighlightingWikify(obj.focusLine, wikify);obj.focusLine.plain = obj.focusLine.html;obj.focusLine.plain = obj.focusLine.plain.replace(/<br\b[^>]*>[\r\n ]*()/g, "\n");obj.focusLine.plain = obj.focusLine.plain.replace(/\u00a0/g, " ");var documentFragment = obj.focusPara.range.cloneContents();WikEdGetInnerHTML(obj.focusPara, documentFragment);obj.focusPara.code = obj.focusPara.html;WikEdRemoveHighlightingWikify(obj.focusPara, wikify);obj.focusPara.plain = obj.focusPara.html;obj.focusPara.plain = obj.focusPara.plain.replace(/<br\b[^>]*>[\r\n ]*()/g, "\n");obj.focusPara.plain = obj.focusPara.plain.replace(/\u00a0/g, " ");}}if (obj.selectionWord == null) {if (/selectionWord|selectionLine|selectionPara/.test(whichFragment) == true) {obj.selectionWord = {from: "selectionWord", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};obj.selectionLine = {from: "selectionLine", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};obj.selectionPara = {from: "selectionPara", keepSel: false, range: document.createRange(), tableEdit: obj.tableEdit};WikEdFindBoundaries(obj.selectionWord, obj.selectionLine, obj.selectionPara, obj.whole, obj.selection);var documentFragment = obj.selectionWord.range.cloneContents();WikEdGetInnerHTML(obj.selectionWord, documentFragment);obj.selectionWord.code = obj.selectionWord.html;WikEdRemoveHighlightingWikify(obj.selectionWord, wikify);obj.selectionWord.plain = obj.selectionWord.html;obj.selectionWord.plain = obj.selectionWord.plain.replace(/<br\b[^>]*>[\r\n ]*()/g, "\n");obj.selectionWord.plain = obj.selectionWord.plain.replace(/\u00a0/g, " ");var documentFragment = obj.selectionLine.range.cloneContents();WikEdGetInnerHTML(obj.selectionLine, documentFragment);obj.selectionLine.code = obj.selectionLine.html;WikEdRemoveHighlightingWikify(obj.selectionLine, wikify);obj.selectionLine.plain = obj.selectionLine.html;obj.selectionLine.plain = obj.selectionLine.plain.replace(/<br\b[^>]*>[\r\n ]*()/g, "\n");obj.selectionLine.plain = obj.selectionLine.plain.replace(/\u00a0/g, " ");var documentFragment = obj.selectionPara.range.cloneContents();WikEdGetInnerHTML(obj.selectionPara, documentFragment);obj.selectionPara.code = obj.selectionPara.html;WikEdRemoveHighlightingWikify(obj.selectionPara, wikify);obj.selectionPara.plain = obj.selectionPara.html;obj.selectionPara.plain = obj.selectionPara.plain.replace(/<br\b[^>]*>[\r\n ]*()/g, "\n");obj.selectionPara.plain = obj.selectionPara.plain.replace(/\u00a0/g, " ");}}return;}; window.WikEdFind = function (obj, findText, caseSensitive, backwards, wrap, regExp) {if (obj.sel.rangeCount == 0) {obj.sel.collapse(wikEdFrameBody, 0);}var range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);var found = false;obj.changed.range = document.createRange();if (regExp == null) {found = wikEdFrameWindow.find(findText, caseSensitive, backwards, wrap, false, true, false);if (found == true) {range = obj.sel.getRangeAt(obj.sel.rangeCount - 1);}obj.changed.range = range.cloneRange();} else {if (obj.plainArray === undefined) {WikEdParseDOM(obj, wikEdFrameBody);}var regExpMatch = [];if (backwards == false) {regExpMatch = regExp.exec(obj.plain);regExp.lastIndex = obj.plainFocus;regExpMatch = regExp.exec(obj.plain);obj.plainFocus = regExp.lastIndex;if (wrap == true && (regExpMatch == null)) {regExp.lastIndex = 0;regExpMatch = regExp.exec(obj.plain);}} else {var regExpMatchNext;do {regExpMatch = regExpMatchNext;regExpMatchNext = regExp.exec(obj.plain);if (regExpMatchNext == null) {break;}} while (regExpMatchNext.index < obj.plainAnchor);if (wrap == true && (regExpMatch == null)) {do {regExpMatch = regExpMatchNext;regExpMatchNext = regExp.exec(obj.plain);} while (regExpMatchNext != null);}}if (regExpMatch != null) {found = true;var i = 0;while (obj.plainStart[i + 1] <= regExpMatch.index && (obj.plainStart[i + 1] != null)) {i++;}var j = i;while (obj.plainStart[j + 1] <= regExpMatch.index + regExpMatch[0].length && (obj.plainStart[j + 1] != null)) {j++;}obj.changed.range.setStart(obj.plainNode[i], regExpMatch.index - obj.plainStart[i]);obj.changed.range.setEnd(obj.plainNode[j], regExpMatch.index + regExpMatch[0].length - obj.plainStart[j]);}}return found;}; window.WikEdTextify = function (obj) {obj.plain = obj.html;obj.plain = obj.plain.replace(/\n/g, " ");obj.plain = obj.plain.replace(/<(style|script|object|applet|embed)\b[^>]*>.*?<\/\1>/g, "");obj.plain = obj.plain.replace(/<br\b[^>]*> *()/g, "\n");obj.plain = obj.plain.replace(/(<(blockquote|center|div|p|pre|gallery)\b[^>]*>)[\s\u0000]+/gi, "$1");obj.plain = obj.plain.replace(/[\s\u0000]+(<\/(blockquote|center|div|p|pre|gallery)>)/gi, "$1");var isRemove = [];obj.plain = obj.plain.replace(/(<(\/?)pre\b([^>]*)>)/g, function (p, p1, p2, p3) {if (p2 == "") {if (/\bclass=\"wikEd\w+\"/.test(p3)) {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});obj.plain = obj.plain.replace(/<\/?(address|blockquote|center|div|hr|isindex|p|pre)\b[^>]*>/g, "\0\0");obj.plain = obj.plain.replace(/[\s|\u0000]*(^|\n|\u0000)[\s|\u0000]*<h[1-6]\b[^>]*>(.*?)<\/h[1-6]>[\s|\u0000]*()/g, "\0\0$2\0\0");obj.plain = obj.plain.replace(/<\/?(dir|dl|menu|ol|ul)\b[^>]*>/g, "\0");obj.plain = obj.plain.replace(/<\/(dd|dt|li)>/g, "\0");obj.plain = obj.plain.replace(/<\/?(select|textarea)\b[^>]*>/g, "\0");obj.plain = obj.plain.replace(/<\/(option|legend|optgroup)>/g, "\0");if (wikEdTableMode == true) {obj.plain = obj.plain.replace(/(<table\b)([^>]*)(>)/gi, function (p, p1, p2, p3) {if (p2.match(/\bclass=/)) {p2 = p2.replace(/\bclass\s*=\s*([\'\"]?)[^<>\'\"\n]*?\2/g, "class=\"wikEdTableEdit\"");} else {p2 = " class=\"wikEdTableEdit\"";}return p1 + p2 + p3;});obj.plain = obj.plain.replace(/[\s\u0000]*(<table\b[^>]*>)/g, "\0\0$1");obj.plain = obj.plain.replace(/(<\/table>)[\s\u0000]*()/g, "$1\0");obj.plain = obj.plain.replace(/<(\/?(table|caption|tr|th|td)\b[^>]*)>/g, "\x01$1\x02");} else if (wikEdTableMode == false) {obj.plain = obj.plain.replace(/<\/?(table|caption)\b[^>]*>/g, "\0");obj.plain = obj.plain.replace(/<\/(tr|th|td)>/g, "\0");}obj.plain = obj.plain.replace(/<[^>]*>/g, "");obj.plain = obj.plain.replace(/\u0001/g, "<");obj.plain = obj.plain.replace(/\u0002/g, ">");obj.plain = obj.plain.replace(/[ \t\u00a0]+(\u0000)/g, "$1");obj.plain = obj.plain.replace(/(\u0000)[ \t\u00a0]+/g, "$1");obj.plain = obj.plain.replace(/\u0000+\n/g, "\n");obj.plain = obj.plain.replace(/\n\u0000+/g, "\n");obj.plain = obj.plain.replace(/\n*\u0000(\u0000|\n)+/g, "\n\n");obj.plain = obj.plain.replace(/\u0000/g, "\n");obj.plain = obj.plain.replace(/(<\/table>\n)\n+/g, "$1");if (obj.from == "whole") {obj.plain = obj.plain.replace(/^\s+|\s+$/g, "");}return;}; window.WikEdInactiveButtons = function () {if (wikEdFrameDocument.queryCommandEnabled("undo") == true) {document.getElementById("wikEdUndo").className = "wikEdButton";document.getElementById("wikEdUndoAll").className = "wikEdButton";} else {document.getElementById("wikEdUndo").className = "wikEdButtonInactive";document.getElementById("wikEdUndoAll").className = "wikEdButtonInactive";}if (wikEdFrameDocument.queryCommandEnabled("redo") == true) {document.getElementById("wikEdRedo").className = "wikEdButton";} else {document.getElementById("wikEdRedo").className = "wikEdButtonInactive";}if (wikEdLastVersion != null) {document.getElementById("wikEdRedoAll").className = "wikEdButton";} else {document.getElementById("wikEdRedoAll").className = "wikEdButtonInactive";}return;}; window.WikEdFixBasic = function (obj) {obj.plain = obj.plain.replace(/\u00a0/g, " ");obj.plain = obj.plain.replace(/ *\t[ \t]*()/g, " ");obj.plain = obj.plain.replace(/(\t| |&nbsp;)+\n/g, "\n");obj.plain = obj.plain.replace(/\n( |&nbsp;|\t)+\n/g, "\n\n");obj.plain = obj.plain.replace(/(^|\n)+(=+) *([^\n]*?) *(=+)(?=(\n|$))/g, function (p, p1, p2, p3, p4) {p3 = p3.replace(/\'{2,}/g, "");return "\n\n" + p2 + " " + p3 + " " + p2 + "\n\n";});var regExp = new RegExp("\\n=+ " + wikEdText['External links'] + "? =+\\n", "gi");obj.plain = obj.plain.replace(regExp, "\n== " + wikEdText['External links'] + " ==\n");regExp = new RegExp("\\n=+ " + wikEdText['See also'] + " =+\\n", "gi");obj.plain = obj.plain.replace(regExp, "\n== " + wikEdText['See also'] + " ==\n");regExp = new RegExp("\\n=+ " + wikEdText.References + "? =+\\n", "gi");obj.plain = obj.plain.replace(regExp, "\n== " + wikEdText.References + " ==\n");obj.plain = obj.plain.replace(/(^|\n)([\*\#\:\;]+|\{\||\|\-|\|\}|\|) *()/g, "$1$2 ");obj.plain = obj.plain.replace(/ +\n/g, "\n");obj.plain = obj.plain.replace(/\n+(\{\|)/g, "\n\n$1");obj.plain = obj.plain.replace(/(\n\|\}([^\}]|$)) *([^\n]*)[\n|$]+/g, "$1\n\n$3\n\n");obj.plain = obj.plain.replace(/(^|\n)([^\*\#\:\;\n][^\n]*)(?=\n[\*\#\:\;])/g, "$1$2\n\n");obj.plain = obj.plain.replace(/(^|\n)([\*\#\:\;][^\n]*?)(?=\n[^\*\#\:\;\n])/g, "$1$2\n\n");var lines = obj.plain.split("\n");obj.plain = "";var tableflag = false;for (var i = 0; i < lines.length; i++) {var line = lines[i];if (/^ /.test(line) == false) {if (line.match(/^(\{\||\!|\|[^}])/) != null) {tableflag = true;} else if (line.match(/^\|\}/) != null) {tableflag = false;}if (tableflag == true) {line = line.replace(/ *\|\| *()/g, " || ");}if (!tableflag) {var regExp = new RegExp("^(\\[\\[" + wikEdText['wikicode Image'] + ":.*?\\]\\])", "ig");line = line.replace(regExp, "\n$1");regExp = new RegExp("(\\[\\[" + wikEdText['wikicode Image'] + ":.*?(\\[\\[.*?\\]\\].*?)*\\]\\])$", "ig");line = line.replace(regExp, "$1\n");line = line.replace(/^(\{\{.*?\}\})/g, "\n$1");line = line.replace(/(\{\{.*?\}\})$/g, "$1\n");}}obj.plain += line;if (i < lines.length - 1) {obj.plain += "\n";}}obj.plain = obj.plain.replace(/\[\[(.*?)(\|.*?)?\]\]/g, function (p, p1, p2) {p1 = p1.replace(/_/g, " ");return "" + p1 + p2 + "";});obj.plain = obj.plain.replace(/\[\[ *([^\n]*?) *\]\]/g, "$1");obj.plain = obj.plain.replace(/\[ *([^\n]*?) *\]/g, "[$1]");obj.plain = obj.plain.replace(/ +\| +\]\]/g, "|]]");obj.plain = obj.plain.replace(/ +\| +\}\}/g, "|}}");obj.plain = obj.plain.replace(/\n(=+ [^\n]*? =+\n)\n+(\{\{.*?\}\})/g, "\n$1$2");obj.plain = obj.plain.replace(/(&lt;!--) *([^\n]*?) *(--&gt;)/g, "$1 $2 $3");var regExp = new RegExp("( |\\n)*(\\[\\[" + wikEdText['wikicode Category'] + ":[^\\n]*?\\]\\])( |\\n)*", "gi");obj.plain = obj.plain.replace(regExp, "\n\n$2\n\n");regExp = new RegExp("(\\[\\[category:[^\\n]*?\\]\\])\\n*(?=\\[\\[" + wikEdText['wikicode Category'] + ":[^\\n]*?\\]\\])", "gi");obj.plain = obj.plain.replace(regExp, "$1\n");obj.plain = obj.plain.replace(/\n{3,}/g, "\n\n");obj.plain = obj.plain.replace(/^\n+/, "");obj.plain = obj.plain.replace(/\n{2,}$/, "\n");return;}; window.WikEdFixPunct = function (obj) {WikEdFixBasic(obj);if (wikEdFixPunctFrench == true) {obj.plain = obj.plain.replace(/(«) */g, "$1 ");obj.plain = obj.plain.replace(/ *(»)/g, " $1");obj.plain = obj.plain.replace(/([a-zA-Z_À-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\]\}\)]) *([\.\,])(?=([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\[\{\(\s]|$))/g, "$1$2 ");obj.plain = obj.plain.replace(/([a-zA-Z_À-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\]\}\)]) *([\:\;\?\!])/g, "$1 $2 ");} else {obj.plain = obj.plain.replace(/([a-zA-Z_À-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\]\}\)]) *([\.\,\:\;])(?=([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\'\"�\[\{\(\s]|$))/g, "$1$2 ");}obj.plain = obj.plain.replace(/ +$/g, "");obj.plain = obj.plain.replace(/ +\n/g, "\n");obj.plain = obj.plain.replace(/ {2,}/g, " ");return;}; window.WikEdFixUnicode = function (obj) {for (var i = 0; i < wikEdSupportedChars.length; i++) {var replaceChar = String.fromCharCode(parseInt(wikEdSupportedChars[i][0], 16));var regExpStr = "&amp;#0*" + parseInt(wikEdSupportedChars[i][0], 16) + ";|";regExpStr += "&amp;#x0*" + wikEdSupportedChars[i][0] + ";";var regExp = new RegExp(regExpStr, "gi");obj.plain = obj.plain.replace(regExp, replaceChar);regExpStr = "&amp;" + wikEdSupportedChars[i][1] + ";";regExp = new RegExp(regExpStr, "g");obj.plain = obj.plain.replace(regExp, replaceChar);}for (var i = 0; i < wikEdProblemChars.length; i++) {replaceChar = "&amp;" + wikEdProblemChars[i][1] + ";";regExpStr = "&amp;#0*" + parseInt(wikEdProblemChars[i][0], 16) + ";|";regExpStr += "&amp;#x0*" + wikEdProblemChars[i][0] + ";";regExp = new RegExp(regExpStr, "gi");obj.plain = obj.plain.replace(regExp, replaceChar);regExpStr = "\\u" + wikEdProblemChars[i][0];regExp = new RegExp(regExpStr, "g");obj.plain = obj.plain.replace(regExp, replaceChar);}for (var i = 0; i < wikEdSpecialChars.length; i++) {var replaceChar = "&amp;" + wikEdSpecialChars[i][1] + ";";var regExpStr = "&amp;#0*" + parseInt(wikEdSpecialChars[i][0], 16) + ";|";regExpStr += "&amp;#x0*" + wikEdSpecialChars[i][0] + ";";var regExp = new RegExp(regExpStr, "gi");obj.plain = obj.plain.replace(regExp, replaceChar);regExpStr = "\\u" + wikEdSpecialChars[i][0];var regExp = new RegExp(regExpStr, "g");obj.plain = obj.plain.replace(regExp, replaceChar);}obj.plain = obj.plain.replace(/\u2028/g, "\n");obj.plain = obj.plain.replace(/\u2029/g, "\n\n");return;}; window.WikEdFixMath = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/(.*?)((&lt;math(\b.*?)&gt;.*?&lt;\/math&gt;)|$)/gi, function (p, p1, p2) {p1 = p1.replace(/&plus;/g, "+");p1 = p1.replace(/&minus;/g, "\u2212");p1 = p1.replace(/&middot;/g, "\xB7");p1 = p1.replace(/([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\,\{])-(\d)/g, "$1\u2212$2");p1 = p1.replace(/(\d *)x( *\d)/g, "$1\xD7$2");p1 = p1.replace(/(\d*\.?\d+)\^(\u2212?\d+\.?\d*)/g, "$1&lt;sup&gt;$2&lt;/sup&gt;");p1 = p1.replace(/([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9])\^(\u2212?\d+\.?\d*) /g, "$1&lt;sup&gt;$2&lt;/sup&gt;");p1 = p1.replace(/( |\d)\+\/(-|\u2212)( |\d)/g, "$1\xB1$3");p1 = p1.replace(/(\u00b9|&sup1;)/g, "&lt;sup&gt;1&lt;/sup&gt;");p1 = p1.replace(/(\u00b2|&sup2;)/g, "&lt;sup&gt;2&lt;/sup&gt;");p1 = p1.replace(/(\u00b3|&sup3;)/g, "&lt;sup&gt;3&lt;/sup&gt;");return p1 + p2;});return;}; window.WikEdFixChem = function (obj) {WikEdFixBasic(obj);var realElements = "H|He|Li|Be|B|C|N|O|F|Ne|Na|Mg|Al|Si|P|S|Cl|Ar|K|Ca|Sc|Ti|V|Cr|Mn|Fe|Co|Ni|Cu|Zn|Ga|Ge|As|Se|Br|Kr|Rb|Sr|Y|Zr|Nb|Mo|Tc|Ru|Rh|Pd|Ag|Cd|In|Sn|Sb|Te|I|Xe|Cs|Ba|Hf|Ta|W|Re|Os|Ir|Pt|Au|Hg|Tl|Pb|Bi|Po|At|Rn|Fr|Ra|Rf|Db|Sg|Bh|Hs|Mt|Ds|Rg|La|Ce|Pr|Nd|Pm|Sm|Eu|Gd|Tb|Dy|Ho|Er|Tm|Yb|Lu|Ac|Th|Pa|U|Np|Pu|Am|Cm|Bk|Cf|Es|Fm|Md|No|Lr";var pseudoElements = "|Me|Et|Pr|Bu|e";obj.plain = obj.plain.replace(/(^|[^a-z])h2o([^a-z]|$)/g, "$1H2O$2");obj.plain = obj.plain.replace(/(^|[^a-z])h3o+/g, "$1H3O+");obj.plain = obj.plain.replace(/(^|[^a-z])oh-/g, "$1OH+");var regExp = new RegExp("(^|[^a-zA-Z])(" + realElements.toLowerCase() + pseudoElements.toLowerCase() + ")([^a-zA-Z]|$)", "g");obj.plain = obj.plain.replace(regExp, function (p, p1, p2, p3) {if (p2 != "e") {p2 = p2.substr(0, 1).toUpperCase() + p2.substr(1).toLowerCase();}return p1 + p2 + p3;});obj.plain = obj.plain.replace(/&plus;/g, "+");obj.plain = obj.plain.replace(/&minus;/g, "\u2212");obj.plain = obj.plain.replace(/&middot;/g, "\xB7");regExp = new RegExp("(" + realElements + pseudoElements + "|\\))(\\d*(\\+|-|\\u2212))", "g");obj.plain = obj.plain.replace(regExp, function (p, p1, p2, p3) {p2 = p2.replace(/-/g, "\u2212");return p1 + "&lt;sup&gt;" + p2 + "&lt;/sup&gt;";});regExp = new RegExp("(" + realElements + pseudoElements + "|\\))(\\d+)", "g");obj.plain = obj.plain.replace(regExp, "$1&lt;sub&gt;$2&lt;/sub&gt;");regExp = new RegExp("(\\d+) *(\\(|" + realElements + pseudoElements + ")", "g");obj.plain = obj.plain.replace(regExp, "$1$2");obj.plain = obj.plain.replace(/ *-+&gt; *()/g, " \u2192 ");obj.plain = obj.plain.replace(/ *&lt;-+ *()/g, " \u2190 ");obj.plain = obj.plain.replace(/ *(&lt;==+&gt;|&hdarr;|&harr;|\u21cc|\u2190 *\u2192) *()/g, " <=> ");obj.plain = obj.plain.replace(/([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|\)|&gt;) +(-|\u2212) +([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|\()/g, "$1 \u2212 $3");return;}; window.WikEdFixUnits = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/&amp;deg;|&amp;#00b0;/g, "\xB0");obj.plain = obj.plain.replace(/&amp;#00b5;|&amp;mu;|&amp;micro;/g, "\xB5");obj.plain = obj.plain.replace(/&amp;Omega;|&amp;#8486;/g, "\u03A9");obj.plain = obj.plain.replace(/( *\/ *|\d *)(Y|yotta|Z|zetta|E|exa|P|peta|T|tera|G|giga|M|mega|k|kilo|K|h|hecto|da|deca|d|deci|c|centi|m|mill?i|micro|u|µ|n|nano|p|pico|f|femto|a|atto|z|zepto|y|yocto|mibi|mebi|)(gramm?s?|g|metres?|meters?|m|amperes?|Amperes?|amps?|Amps?|A|Angstroms?|Angströms?|Å|Kelvins?|kelvins?|K|moles?|Moles?|mol|candelas?|cd|rad|Ci|sr|Hert?z|hert?z|Hz|newtons?|Newtons?|N|Joules?|joules?|J|watts?|Watts?|W|pascals?|Pascals?|Pa|lm|lx|C|volts?|Volts?|V|O|Farads?|F|Wb|T|H|S|bequerels?|Bequerels?|Bq|Gy|Sv|kat|centigrades?|°C|decibels?|db|dB|M|ohms?|Ohms?|\u03a9|sec|seconds?|s|minutes?|min|hour?|h|bits?|Bits?|bit|bytes?|Bytes?|B|bps|Bps)(?=[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, function (p, p1, p2, p3) {p1 = p1.replace(/ *\/ *()/g, "/");p1 = p1.replace(/(\d) *()/g, "$1 ");p2 = p2.replace(/yotta/g, "Y");p2 = p2.replace(/zetta/g, "Z");p2 = p2.replace(/exa/g, "E");p2 = p2.replace(/peta/g, "P");p2 = p2.replace(/tera/g, "T");p2 = p2.replace(/giga/g, "G");p2 = p2.replace(/mega/g, "M");p2 = p2.replace(/kilo/g, "k");p2 = p2.replace(/K/g, "k");p2 = p2.replace(/hecto/g, "h");p2 = p2.replace(/deca/g, "da");p2 = p2.replace(/deci/g, "d");p2 = p2.replace(/centi/g, "c");p2 = p2.replace(/mill?i/g, "m");p2 = p2.replace(/micro|u/g, "\xB5");p2 = p2.replace(/nano/g, "n");p2 = p2.replace(/pico/g, "p");p2 = p2.replace(/femto/g, "f");p2 = p2.replace(/atto/g, "a");p2 = p2.replace(/zepto/g, "z");p2 = p2.replace(/yocto/g, "y");p2 = p2.replace(/mibi/g, "mebi");p3 = p3.replace(/gramm?s?/g, "g");p3 = p3.replace(/metres?|meters?/g, "m");p3 = p3.replace(/amperes?|Amperes?|amps?|Amps?/g, "A");p3 = p3.replace(/Angstroms?|Angströms?/g, "\xC5");p3 = p3.replace(/Kelvins?|kelvins?/g, "K");p3 = p3.replace(/moles?|Moles?/g, "mol");p3 = p3.replace(/candelas?/g, "cd");p3 = p3.replace(/Hert?z|hert?z/g, "Hz");p3 = p3.replace(/newtons?|Newtons?/g, "N");p3 = p3.replace(/Joules?|joules?/g, "J");p3 = p3.replace(/watts?|Watts?/g, "W");p3 = p3.replace(/pascals?|Pascals?/g, "Pa");p3 = p3.replace(/volts?|Volts?/g, "V");p3 = p3.replace(/ohms?|Ohms?/g, "\u03A9");p3 = p3.replace(/bequerels?|Bequerels?/g, "Bq");p3 = p3.replace(/Farads?/g, "F");p3 = p3.replace(/bits?|Bits?/g, "bit");p3 = p3.replace(/bytes?|Bytes?/g, "B");p3 = p3.replace(/sec|seconds?/g, "s");p3 = p3.replace(/minutes?/g, "min");p3 = p3.replace(/hours?/g, "h");p3 = p3.replace(/sec|seconds?/g, "s");p3 = p3.replace(/bps/g, "bit/s");p3 = p3.replace(/Bps/g, "B/s");return p1 + p2 + p3;});obj.plain = obj.plain.replace(/ K(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " k$1$2");obj.plain = obj.plain.replace(/ m(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " M$1$2");obj.plain = obj.plain.replace(/ g(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " G$1$2");obj.plain = obj.plain.replace(/ t(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " T$1$2");obj.plain = obj.plain.replace(/ e(bit\/s|B\/s)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|$)/g, " E$1$2");return;}; window.WikEdFixDashes = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/&amp;mdash;/g, "\u2014");obj.plain = obj.plain.replace(/&amp;ndash;/g, "\u2013");obj.plain = obj.plain.replace(/&amp;minus;/g, "\u2212");obj.plain = obj.plain.replace(/([a-zA-Z\'\"�\]\}\)])( |&amp;nbsp;)*�( |&amp;nbsp;)*([a-zA-Z\'\"�\[\{\(])/g, "$1\u2014$4");obj.plain = obj.plain.replace(/([a-zA-Z\'\"�\]\}\)])( |&amp;nbsp;)*--( |&amp;nbsp;)*([a-zA-Z\'\"�\[\{\(])/g, "$1 \u2013 $4");obj.plain = obj.plain.replace(/([a-zA-Z\'\"�\]\>] ) *(\u2212|�)(\d)/g, "$1\u2212$3");obj.plain = obj.plain.replace(/([a-zA-Z\'\"�\]\}])( |&amp;nbsp;)*(\u2212|�)( |&amp;nbsp;)*([a-zA-Z\'\"�\[\{])/g, "$1 \u2013 $5");obj.plain = obj.plain.replace(/(^|[ \(\|])(\d\d(\d\d)?)(\u2212|-|�)(\d\d)(\u2212|-|�)(\d\d(\d\d)?)([ \)\}\|,.;�]|$)/gm, "$1$2\u2013$5\u2013$7$9");return;}; window.WikEdFixHTML = function (obj) {WikEdFixBasic(obj);obj.html = obj.plain;obj.html = obj.html.replace(/\n/g, "<br />");WikEdRemoveHighlighting(obj);obj.html = obj.html.replace(/&lt;(\/?\w.*?)&gt;/g, "<$1>");WikEdWikifyHTML(obj, true);obj.html = obj.html.replace(/<br\b[^>]*>[\r\n ]*()/g, "\n");obj.html = obj.html.replace(/</g, "&lt;");obj.html = obj.html.replace(/>/g, "&gt;");obj.plain = obj.html;return;}; window.WikEdFixCaps = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/^([\*\#\:\;]+[ \'\"]*('+|\&\w+\;|&lt;[^\n]*?&gt;|\{\{.*?\}\}[^\n]*|\d|[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\n])*)([^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\d].*?)?$/gm, function (p, p1, p2, p3) {if (p3.match(/^(http|ftp|alpha|beta|gamma|delta|epsilon|kappa|lambda|$)/) == null) {p3 = p3.substr(0, 1).toUpperCase() + p3.substr(1);}return p1 + p3;});obj.plain = obj.plain.replace(/^([\*\#\:\;]+[ \'\"]*\[\[)([^\n]*?)(\]\])/gm, function (p, p1, p2, p3) {p2 = p2.replace(/^((\&\w+\;|[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|\d)*)([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9_].*)$/, function (p, p1, p2, p3) {if (p3.match(/^(http|ftp|alpha|beta|gamma|delta|epsilon|kappa|lambda)/) == null) {p3 = p3.substr(0, 1).toUpperCase() + p3.substr(1);}return p1 + p3;});p2 = p2.replace(/(\| *(\&\w+\;|&lt;[^\n]*?&gt;|[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]|\d)*)([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9_].*)$/, function (p, p1, p2, p3) {if (p3.match(/^(http|ftp|alpha|beta|gamma|delta|epsilon|kappa|lambda)/) == null) {p3 = p3.substr(0, 1).toUpperCase() + p3.substr(1);}return p1 + p3;});return p1 + p2 + p3;});obj.plain = obj.plain.replace(/^(=+ (\&\w+\;|&lt;[^\n]*?&gt;|\d|[^\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\n])*)([a-zA-ZÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9_].*? =+)$/gm, function (p, p1, p2, p3) {if (p3.match(/^(http|ftp|alpha|beta|gamma|delta|epsilon|kappa|lambda)/) == null) {p3 = p3.substr(0, 1).toUpperCase() + p3.substr(1);}return p1 + p3;});regExp = new RegExp("(\\[\\[)" + wikEdText['wikicode Image'] + ":([\\w\xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9])([^\\n]*\\]\\])", "igm");obj.plain = obj.plain.replace(regExp, function (p, p1, p2, p3) {return p1 + wikEdText['wikicode Image'] + ":" + p2.toUpperCase() + p3;});return;}; window.WikEdFixTypos = function (obj) {WikEdFixBasic(obj);var fragment = [];var nextPos = 0;var regExp = new RegExp("Template:\\s*lang\\s*\\", "g");while ((regExpMatch = regExp.exec(obj.plain)) != null) {fragment.push(obj.plain.substring(nextPos, regExpMatch.index));fragment.push(regExpMatch[0]);nextPos = regExp.lastIndex;}fragment.push(obj.plain.substring(nextPos));for (var i = 0; i < wikEdTypoRulesFind.length; i++) {for (var j = 0; j < fragment.length; j = j + 2) {fragment[j] = fragment[j].replace(wikEdTypoRulesFind[i], wikEdTypoRulesReplace[i]);}}obj.plain = fragment.join("");return;}; window.WikEdFixAll = function (obj) {WikEdFixBasic(obj);WikEdFixUnicode(obj);WikEdFixHTML(obj);WikEdFixCaps(obj);return;}; window.WikEdRemoveElements = function (tagNameArray) {for (var property in tagNameArray) {if (tagNameArray[property] != "string") {continue;}var elementArray = wikEdFrameDocument.getElementsByTagName(tagNameArray[property]);for (var i = 0; i < elementArray.length; i++) {elementArray[i].parentNode.removeChild(elementArray[i]);}}return;}; window.WikEdFindBoundaries = function (word, line, para, whole, selection) {var startNode = selection.range.startContainer;var startNodeOffset = selection.range.startOffset;var endNode = selection.range.endContainer;var endNodeOffset = selection.range.endOffset;if (startNode.nodeType == 1) {startNode = startNode.childNodes[startNodeOffset];startNodeOffset = 0;}if (endNode.nodeType == 1) {endNode = endNode.childNodes[endNodeOffset];endNodeOffset = 0;}var startNodeIndex;var endNodeIndex;for (var i = 0; i < whole.plainNode.length; i++) {if (startNode == whole.plainNode[i]) {startNodeIndex = i;}if (endNode == whole.plainNode[i]) {endNodeIndex = i;break;}}var foundWord = false;var foundLine = false;var foundPara = false;var regExp = new RegExp(".*[^\\w\\-\xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9]", "g");var plainPrev = "";var plain = "";for (var i = startNodeIndex; i >= 0; i--) {plainPrev = plain;plain = whole.plainArray[i];plain = plain.replace(/&amp;/g, "&");plain = plain.replace(/&lt;/g, "<");plain = plain.replace(/&gt;/g, ">");if (plainPrev == "\n" && (plain == "\n")) {para.range.setStartAfter(whole.plainNode[i + 1]);foundPara = true;break;} else if (plain == "\n") {if (foundWord == false) {word.range.setStartAfter(whole.plainNode[i]);foundWord = true;}if (foundLine == false) {line.range.setStartAfter(whole.plainNode[i]);foundLine = true;}} else if (foundWord == false) {if (i == startNodeIndex) {plain = plain.substr(0, startNodeOffset);}regExp.lastIndex = 0;if (regExp.exec(plain) != null) {word.range.setStart(whole.plainNode[i], regExp.lastIndex);foundWord = true;}}}if (foundPara == false) {para.range.setStartBefore(whole.plainNode[0]);}if (foundLine == false) {line.range.setStartBefore(whole.plainNode[0]);}if (foundWord == false) {word.range.setStartBefore(whole.plainNode[0]);}regExp = new RegExp("[^\\w\\-\xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9]", "g");foundWord = false;foundLine = false;foundPara = false;plain = "";for (var i = endNodeIndex; i < whole.plainArray.length; i++) {plainPrev = plain;plain = whole.plainArray[i];plain = plain.replace(/&amp;/g, "&");plain = plain.replace(/&lt;/g, "<");plain = plain.replace(/&gt;/g, ">");if (plainPrev == "\n" && (plain == "\n")) {para.range.setEndBefore(whole.plainNode[i]);foundPara = true;break;} else if (plain == "\n") {if (foundWord == false) {word.range.setEndBefore(whole.plainNode[i]);foundWord = true;}line.range.setEndBefore(whole.plainNode[i]);foundLine = true;} else if (foundWord == false) {if (i == endNodeIndex) {regExp.lastIndex = endNodeOffset;} else {regExp.lastIndex = 0;}var regExpArray = regExp.exec(plain);if (regExpArray != null) {word.range.setEnd(whole.plainNode[i], regExpArray.index);foundWord = true;}}}if (foundPara == false) {para.range.setEndAfter(whole.plainNode[whole.plainArray.length - 1]);}if (foundLine == false) {line.range.setEndAfter(whole.plainNode[whole.plainArray.length - 1]);}if (foundWord == false) {word.range.setEndAfter(whole.plainNode[whole.plainArray.length - 1]);}return;}; window.WikEdRemoveHighlightingWikify = function (obj, wikify) {if (obj.html != "" || (wikify == true)) {WikEdRemoveHighlighting(obj);if (obj.htmlCode == true && (wikify != false)) {WikEdWikifyHTML(obj, false);}}return;}; window.WikEdWikifyHTML = function (obj, relaxed) {var regExpStr;var regExp;var regExpMatch;obj.html = obj.html.replace(/<(style)\b[^>]*>.*?<\/\1>/gi, "");obj.html = obj.html.replace(/<span[^>]*class=\"editsection\"[^>]*>.*?<\/span>\s*()/gi, "");obj.html = obj.html.replace(/<span\b[^>]*\bclass=\"mw-headline\"[^>]*>(.*?)<\/span>\s*()/g, "$1");obj.html = obj.html.replace(/<h3\b[^>]*\bid=\"siteSub\"[^>]*>.*?<\/h3>\s*()/g, "");obj.html = obj.html.replace(/<div\b[^>]*\bid=\"contentSub\"[^>]*>.*?<\/div>\s*()/g, "");obj.html = obj.html.replace(/<div\b[^>]*\bid=\"jump-to-nav\"[^>]*>.*?<\/div>\s*()/g, "");obj.html = obj.html.replace(/<table\b[^>]*?\bid=\"toc\"[^>]*>.*?<\/table>\s*()/g, "");obj.html = obj.html.replace(/<div\b[^>]*?\bclass=\"printfooter\"[^>]*>[^<>\"]+\"<a\b[^>]*>[^<]+<\/a>\"<\/div>\s*()/g, "");regExp = /<div\b[^>]*\bid=\"catlinks\"[^>]*>(.*?)<\/div>\s*()/g;while (regExp.test(obj.html) == true) {obj.html = obj.html.replace(regExp, "$1");}regExp = /<p\b[^>]*?\bclass=\"catlinks\"[^>]*>(.*?)<a\b[^>]*>[^<>]+<\/a>: (.*?)<\/p>/g;while (regExp.test(obj.html) == true) {obj.html = obj.html.replace(regExp, "$1$2");}obj.html = obj.html.replace(/\s*<p [^>]*>\s*<!--\[if !supportLists\]-->.*?<!--\[endif\]-->\s*(.*?)\s*<\/p>\s*()/g, "* $1\n");var footnotes = {};obj.html = obj.html.replace(/<div\b[^>]* id="ftn(\d+)"[^>]*>\s*<p class="MsoFootnoteText">\s*<a(.|\n)*?<\/a>((.|\n)*?)<\/p>\s*<\/div>/g, function (p, p1, p2, p3) {footnotes[p1] = p3.replace(/^(\s|<br\b[^>]*>)|(\s|<br\b[^>]*>)$/g, "");return "";});obj.html = obj.html.replace(/<a\b[^>]* name="_ftnref(\d+)"[^>]*>(.|\n)*?<!--\[endif\]-->\s*<\/span>\s*<\/span>\s*<\/a>/g, function (p, p1) {var ref = "&lt;ref name=\"footnote_" + p1 + "\"&gt;" + footnotes[p1] + "&lt;/ref&gt;";return ref;});obj.html = obj.html.replace(/<!--\[if !supportFootnotes\]-->(\s|<br\b[^>]*>)*<hr\b[^>]*>\s*<!--\[endif\]-->(\s|<br\b[^>]*>)*/g, "");obj.html = obj.html.replace(/(<v:imagedata\b[^>]*? src="[^">]*?[\\\/]clip_image\d+(\.\w+)"[^>]*? o:title="([^">]*)"[^>]*>(.|\s)*?<img\b[^>]*? src="[^">]*?[\\\/])clip_image\d+\.\w+("[^>]*>)/g, "$1$3$2$5");obj.html = obj.html.replace(/<(span|div|p)\b *(.*?) *\/?>/gi, function (p, p1, p2) {return "<" + p1 + WikEdSanitizeAttributes(p1, p2, relaxed) + ">";});var isRemove = [];obj.html = obj.html.replace(/(<(\/?)span\b([^>]*)>)/gi, function (p, p1, p2, p3) {if (p2 == "") {if (p3 == "") {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});var isRemove = [];obj.html = obj.html.replace(/(<(\/?)p\b([^>]*)>)/gi, function (p, p1, p2, p3) {if (p2 == "") {if (p3 == "") {isRemove.push(true);return "\0\0";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "\0\0";}return p1;});obj.html = obj.html.replace(/&(?!(amp;|lt;|gt;))/g, "&amp;");obj.html = obj.html.replace(/<!--.*?-->/g, "");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<hr\b[^>]*>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0\0----\0\0");obj.html = obj.html.replace(/<(i|em|dfn|var|cite)\b[^>]*>/gi, "");obj.html = obj.html.replace(/<\/(i|em|dfn|var|cite)\b[^>]*>/gi, "");obj.html = obj.html.replace(/<(b|strong)\b[^>]*>/gi, "");obj.html = obj.html.replace(/<\/(b|strong)\b[^>]*>/gi, "");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*(^|\n|<br\b[^>]*>|\u0000)(\s|<br\b[^>]*>|\u0000)*<h1\b[^>]*>(.*?)<\/h1>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0\0= $4 =\0\0");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*(^|\n|<br\b[^>]*>|\u0000)(\s|<br\b[^>]*>|\u0000)*<h2\b[^>]*>(.*?)<\/h2>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0\0== $4 ==\0\0");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*(^|\n|<br\b[^>]*>|\u0000)(\s|<br\b[^>]*>|\u0000)*<h3\b[^>]*>(.*?)<\/h3>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0\0=== $4 ===\0\0");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*(^|\n|<br\b[^>]*>|\u0000)(\s|<br\b[^>]*>|\u0000)*<h4\b[^>]*>(.*?)<\/h4>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0\0==== $4 ====\0\0");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*(^|\n|<br\b[^>]*>|\u0000)(\s|<br\b[^>]*>|\u0000)*<h5\b[^>]*>(.*?)<\/h5>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0\0===== $4 =====\0\0");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*(^|\n|<br\b[^>]*>|\u0000)(\s|<br\b[^>]*>|\u0000)*<h6\b[^>]*>(.*?)<\/h6>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0\0====== $4 ======\0\0");obj.html = obj.html.replace(/<(h[0-6])\b[^>]*>(.*?)<\/\1>/gi, "$2");if (wikEdTableMode == false) {obj.html = obj.html.replace(/(\s|\u0000|<br\b[^>]*>)<\/?(thead|tbody|tfoot)\b[^>]*>(\s|\u0000|<br\b[^>]*>)*()/gi, "$1");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<(col)\b[^>]*>.*?<\/\2>(|<br\b[^>]*>|\u0000)*()/gi, "");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<(colgroup)\b[^>]*>.*?<\/\2>(|<br\b[^>]*>|\u0000)*()/gi, "");obj.html = obj.html.replace(/(<(td|th|caption)\b[^>]*>)(.*?)(<\/\2>)/gi, function (p, p1, p2, p3, p4) {p3 = p3.replace(/^(\s|<br\b[^>]*>|\u0000>)+/gi, "");p3 = p3.replace(/(\s|<br\b[^>]*>|\u0000>)+$/gi, "");p3 = p3.replace(/<br\b[^>]*> *()/gi, "&lt;br /&gt;");return p1 + p3 + p4;});obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<\/(tr|thead|tbody|tfoot)>(\s|<br\b[^>]*>|\u0000)*()/gi, "");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<td>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0| ");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<(td) +([^>]*)>(\s|<br\b[^>]*>|\u0000)*()/gi, function (p, p1, p2, p3, p4) {p3 = WikEdSanitizeAttributes(p2, p3, relaxed);if (p3 == "") {return "\0| ";} else {return "\0|" + p3 + " | ";}});obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<th>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0| ");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<(th) +([^>]*)>(\s|<br\b[^>]*>|\u0000)*()/gi, function (p, p1, p2, p3, p4) {p3 = WikEdSanitizeAttributes(p2, p3, relaxed);if (p3 == "") {return "\0| ";} else {return "\0|" + p3 + " | ";}});obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<tr>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0|-\0");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<(tr) +([^>]*)>(\s|<br\b[^>]*>|\u0000)*()/gi, function (p, p1, p2, p3, p4) {return "\0|-" + WikEdSanitizeAttributes(p2, p3, relaxed) + "\0";});obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<caption>(\s|<br\b[^>]*>|\u0000)*()/gi, "\0|+ ");obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*<(caption) +([^>]*)>(\s|<br\b[^>]*>|\u0000)*()/gi, function (p, p1, p2, p3, p4) {p3 = WikEdSanitizeAttributes(p2, p3, relaxed);if (p3 == "") {return "\0|+ ";} else {return "\0|+" + p3 + " | ";}});obj.html = obj.html.replace(/\s*<\/(td|th|caption)>\s*()/gi, "");obj.html = obj.html.replace(/<br\b[^>]*>[\r\n ]*()/gi, "\0");obj.html = obj.html.replace(/[\s\u0000]*<table>[\s\u0000]*(\|-(?=[\n\u0000]))?/gi, "\0\0{|\0");obj.html = obj.html.replace(/[\s\u0000]*<(table) +([^>]*)>[\s\u0000]*(\|-(?=[\n\u0000]))?/gi, function (p, p1, p2) {var table = "\0\0{|";if (wikEdWikifyTableParameters != "") {table += " " + wikEdWikifyTableParameters;} else {table += WikEdSanitizeAttributes(p1, p2);}return table;});obj.html = obj.html.replace(/[\s\u0000]*<\/table>[\s\u0000]*()/gi, "\0|}\0\0");} else if (wikEdTableMode == true) {obj.html = obj.html.replace(/(<table\b)([^>]*)(>)/gi, function (p, p1, p2, p3) {if (p2.match(/\bclass=/)) {p2 = p2.replace(/\bclass\s*=\s*([\'\"]?)[^<>\'\"\n]*?\2/g, "class=\"wikEdTableEdit\"");} else {p2 = " class=\"wikEdTableEdit\"";}return p1 + p2 + p3;});obj.html = obj.html.replace(/(\s|<br\b[^>]*>|\u0000)*(<table\b[^>]*>)/gi, "\0\0$2");obj.html = obj.html.replace(/(<\/table>)(\s|<br\b[^>]*>|\u0000)*()/gi, "$1\0");}if (wikEdTableMode == true) {obj.html = obj.html.replace(/<br\b[^>]*>[\r\n ]*()/gi, "\0");}var regExpMatch = [];var regExpStr = "(<a(\\b[^>]*)>(.*?)</a>)";var regExp = new RegExp(regExpStr, "gi");obj.html = obj.html.replace(regExp, function (p, p1, p2, p3) {var linkParam = p2;var linkText = p3;var hrefUrlParam;var hrefUrlArticle;var imgWidth = "";var hrefParamTitle;var hrefParamISBN;var hrefParamSpecial;var linkArticleAnchor = "";var linkArticle = "";var linkTitle = "";var hrefValue;regExpMatch = linkParam.match(/ href=\"([^\">]*)\"/);if (regExpMatch != null) {hrefValue = regExpMatch[1];hrefValue = WikEdRelativeToAbsolutePath(hrefValue);regExpStr = wikEdServer + "(" + wikEdArticlePath + "([^\\\"\\?#]+)|" + wikEdScript + "\\?([^\\\"#]*))(#[^\\\"]*)?";regExp = new RegExp(regExpStr);regExpMatch = regExp.exec(hrefValue);if (regExpMatch != null) {if (regExpMatch[2] != null) {hrefUrlArticle = regExpMatch[2];} else if (regExpMatch[3] != null) {hrefUrlParam = regExpMatch[3];}if (regExpMatch[4] != null) {linkArticleAnchor = regExpMatch[4];linkArticleAnchor = linkArticleAnchor.replace(/\.([0-9A-F]{2})/g, "%$1");linkArticleAnchor = decodeURIComponent(linkArticleAnchor);linkArticleAnchor = linkArticleAnchor.replace(/_\d+$/g, "");}if (hrefUrlParam != null) {regExp = new RegExp("(^|&amp;)(\\w+)=([^\\\"\\&]+)", "g");while ((regExpMatch = regExp.exec(hrefUrlParam)) != null) {switch (regExpMatch[2]) {case "title":hrefParamTitle = regExpMatch[3];break;case "isbn":hrefParamISBN = regExpMatch[3];break;case "redlink":break;case "action":hrefParamAction = regExpMatch[3];if (hrefParamAction == "edit") {break;}default:hrefParamSpecial = true;}}}if (hrefParamISBN != null && (hrefParamSpecial != true)) {var isbn = hrefParamISBN;regExpMatch = /((\d\-?){13}|(\d\-?){10})/.exec(linkText);if (regExpMatch != null) {isbn = regExpMatch[1];}return "ISBN " + isbn;} else if (hrefParamTitle != null && (hrefParamSpecial != true)) {linkArticle = hrefParamTitle;linkArticle = linkArticle.replace(/_/g, " ");linkArticle = decodeURIComponent(linkArticle);} else if (hrefUrlArticle != null) {linkArticle = hrefUrlArticle;linkArticle = linkArticle.replace(/_/g, " ");linkArticle = decodeURIComponent(linkArticle);} else {regExpMatch = / title=\"([^\">]+)\"/.exec(linkParam);if (regExpMatch != null) {linkArticle = regExpMatch[1];}}}if (linkArticle != "") {regExpStr = "^<img\\b[^>]*?\\bwidth=\\\"(\\d+)\\\"[^>]*?>$";regExp = new RegExp(regExpStr);regExpMatch = regExp.exec(linkText);if (regExpMatch != null) {imgWidth = regExpMatch[1];imgWidth = "|" + imgWidth + "px";if (linkTitle != "" && (linkTitle != "Enlarge")) {linkTitle = "|" + linkTitle;return "" + linkArticle + imgWidth + linkTitle + "";} else {return "" + linkArticle + imgWidth + "";}}var regExp = new RegExp("^" + wikEdText['wikicode Category'] + ":(.*)", "i");regExpMatch = regExp.exec(linkArticle);if (regExpMatch != null) {return "[[" + wikEdText['wikicode Category'] + ":" + regExpMatch[1].substr(0, 1).toUpperCase() + linkText.substr(1) + "]]";}if (linkArticle == linkText.substr(0, 1).toUpperCase() + linkText.substr(1)) {return "" + linkText + linkArticleAnchor + "";}regExpMatch = /^(January|February|March|April|May|June|July|August|September|October|November|December) (\d{1,2})$/.exec(linkArticle);if (regExpMatch != null) {var month = regExpMatch[1];var day = regExpMatch[2];if (linkText == day + " " + month) {return "" + linkArticle + linkArticleAnchor + "";}}if (linkText.substr(0, 1).toLowerCase() != linkText.substr(0, 1).toUpperCase()) {if (linkText.substr(0, 1) == linkText.substr(0, 1).toLowerCase()) {linkArticle = linkArticle.substr(0, 1).toLowerCase() + linkArticle.substr(1);}}regExpStr = "^" + linkArticle.replace(/(\W)/g, "\\$1") + "([\\w\xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9]+)$";regExp = new RegExp(regExpStr);regExpMatch = regExp.exec(linkText);if (regExpMatch != null) {return "" + linkArticle + linkArticleAnchor + "" + regExpMatch[1];}return "" + linkText + "";}if (hrefValue != "") {regExpMatch = /^http:\/\/www\.ncbi\.nlm\.nih\.gov\/entrez\/query\.fcgi\?cmd=Retrieve&amp;db=pubmed&amp;.*?&amp;list_uids=(\d+)/.exec(hrefValue);if (regExpMatch != null) {return "PMID " + regExpMatch[1];}regExpMatch = /^http:\/\/dx\.doi\.org\/(.*)/.exec(hrefValue);if (regExpMatch != null) {return "Template:Doi";}return "[" + hrefValue + " " + linkText + "]";}}return p1;});var regExp = new RegExp("<span\\b[^>]*>(\\[\\[" + wikEdText['wikicode Category'] + ":[^\\]]+\\]\\])<\\/span>[\\s\\u0000\\|]*", "gi");obj.html = obj.html.replace(regExp, "$1\0");obj.html = obj.html.replace(/\[\[Digital object identifier\|DOI\]\]:(\{\{doi\|[^\}\s]+\}\})/gi, "$1");obj.html = obj.html.replace(/<img\b([^>]*)>/gi, function (p, p1) {var address = "";var regExpMatch = /\bsrc\s*=\s*(\'|\")([^\'\"]*)(\'|\")/i.exec(p1);if (regExpMatch != null) {address = regExpMatch[2].replace(/^ +| +$/g, "");}var imgAlt = "";regExpMatch = /\balt\s*=\s*(\'|\")([^\'\"]*)(\'|\")/i.exec(p1);if (regExpMatch != null) {imgAlt = regExpMatch[2].replace(/^ +| +$/g, "");imgAlt = imgAlt.replace(/&amp;nbsp;|[\n\u0000]/g, " ");imgAlt = imgAlt.replace(/ {2,}/g, " ");imgAlt = imgAlt.replace(/^ | $/g, "");if (imgAlt != "") {imgAlt = "|" + imgAlt;}}var imgWidth = "";regExpMatch = /\bwidth\s*=\s*(\'|\")([^\'\"]*)(\'|\")/i.exec(p1);if (regExpMatch != null) {imgWidth = "|" + regExpMatch[2].replace(/^ +| +$/g, "") + "px";}var imgLink = "";regExpMatch = /([^\/]+)$/.exec(address);if (regExpMatch != null) {imgLink = regExpMatch[1];if (imgLink != "") {return "[[" + wikEdText['wikicode Image'] + ":" + imgLink + imgWidth + imgAlt + "]]";}}return "";});var listObj = {};listObj.prefix = "";obj.html = obj.html.replace(/[\s\u0000]*<(\/?(ol|ul|li|dl|dd|dt))\b[^>]*>[\s\u0000]*()/gi, function (p, p1, p2, p3, p4) {switch (p1.toLowerCase()) {case "ol":listObj.prefix += "#";return "\0";case "ul":listObj.prefix += "*";return "\0";case "dl":listObj.prefix += ":";return "\0";case "/ol":case "/ul":case "/dl":listObj.prefix = listObj.prefix.substr(0, listObj.prefix.length - 1);return "\0\0";case "li":case "dd":return "\0" + listObj.prefix + " ";case "dt":return "\0" + listObj.prefix.replace(/:$/, ";") + " ";case "/li":case "/dt":case "/dd":return "";default:;}return "";});obj.html = obj.html.replace(/[\n|\u0000]+[#\*:\;]+ (?=[\n|\u0000])/g, "");obj.html = obj.html.replace(/(<\/?)(\/?)(\w+)(.*?>)/g, function (p, p1, p2, p3, p4) {if (wikEdTableMode == true) {if (/^(table|tr|td|th|thead|tbody|tfoot|col|colgroup|caption)$/i.test(p3)) {var tag = p1 + p2 + p3 + p4;tag = tag.replace(/</g, "\x01");tag = tag.replace(/>/g, "\x02");return tag;} else {return "";}} else if (/^(big|blockquote|colgroup|center|code|del|div|font|ins|p|pre|s|small|span|strike|sub|sup|tt|u|rb|rp|rt|ruby|nowiki|math|gallery|noinclude|includeonly|ref|references|source|poem)$/i.test(p3)) {return p1 + p2 + p3 + p4;} else {return "";}});obj.html = obj.html.replace(/<(\w+) +(.*?) *(\/?)>/g, function (p, p1, p2, p3) {if (p3 != "") {p3 = " " + p3;}return "<" + p1 + WikEdSanitizeAttributes(p1, p2, relaxed) + p3 + ">";});obj.html = obj.html.replace(/<u>(\'\'\'|\'\'|\s|\u0000)*([\s\u0000]+)(\'\'\'|\'\'|\s|\u0000)*<\/u>/g, "$2");obj.html = obj.html.replace(/\'\'\'(\'\'|\s|\u0000)*([\s\u0000]+)(\'\'|\s|\u0000)*\'\'\'/g, "$2");obj.html = obj.html.replace(/\'\'([\s\u0000]+)\'\'/g, "$1");obj.html = obj.html.replace(/(\u0000(={1,6}) *)(<u>|\'\'\'|\'\')+(.*?)(<\/u>|\'\'\'|\'\')+( *\2\u0000)/gi, "$1$4$6");obj.html = obj.html.replace(/\u0000(={1,6})\s+\1\u0000/g, "\0");obj.html = obj.html.replace(/([\s\u0000]*\u0000[\s\u0000]*)/g, function (p, p1) {return p1.replace(/\n/g, "\0");});obj.html = obj.html.replace(/\u0000\s+/g, "\0");obj.html = obj.html.replace(/\s+(?=\u0000)/g, "\0");obj.html = obj.html.replace(/\u0000{2,}(\|)/g, "\0$1");obj.html = obj.html.replace(/>\s+\u0000/g, ">\0");obj.html = obj.html.replace(/\u0000\s+</g, "\0<");obj.html = obj.html.replace(/( *)<(big|colgroup|code|del|font|ins|pre|s|small|span|strike|sub|sup|tt|u|rb|rp|rt|ruby|nowiki)\b[^>]*><\/\1> *()/gi, "$1");obj.html = obj.html.replace(/[\s\u0000]*<(blockquote|center|div|math|gallery|noinclude|includeonly|ref|references|source|poem)\b[^>]*><\/\1>[\s\u0000]*()/gi, "\0\0");obj.html = obj.html.replace(/(<(blockquote|center|div|p|pre|gallery)\b[^>]*>)[\s\u0000]+/gi, "$1");obj.html = obj.html.replace(/[\s\u0000]+(<\/(blockquote|center|div|p|pre|gallery)>)/gi, "$1");obj.html = obj.html.replace(/</g, "&lt;");obj.html = obj.html.replace(/>/g, "&gt;");obj.html = obj.html.replace(/\u0001/g, "<");obj.html = obj.html.replace(/\u0002/g, ">");obj.html = obj.html.replace(/\u0000+\n/g, "\n");obj.html = obj.html.replace(/\n\u0000+/g, "\n");obj.html = obj.html.replace(/\n*\u0000(\u0000|\n)+/g, "\n\n");obj.html = obj.html.replace(/\u0000/g, "\n");obj.html = obj.html.replace(/\n/g, "<br />");obj.html = obj.html.replace(/(<\/table><br\b[^>]*>)(<br\b[^>]*>)+/g, "$1");if (obj.from == "whole") {obj.html = obj.html.replace(/^(<br\b[^>]*>)+/gi, "");obj.html = obj.html.replace(/(<br\b[^>]*>)+$/gi, "");}return;}; window.WikEdRelativeToAbsolutePath = function (relativePath, fullPath) {var absolutePath = "";if (fullPath == null) {fullPath = window.location.href;fullPath = fullPath.replace(/#.*/, "");fullPath = fullPath.replace(/\?.*/, "");}if (/^\.\/()/.test(relativePath) == true) {relativePath = relativePath.replace(/^\.\/()/, "");fullPath = fullPath.replace(/\/[^\/]*$/, "");absolutePath = fullPath + "/" + relativePath;} else if (/^\.\.\/()/.test(relativePath) == true) {while (/^\.\.\/()/.test(relativePath) == true) {relativePath = relativePath.replace(/^\.\.\/()/, "");fullPath = fullPath.replace(/\/[^\/]*$/, "");}absolutePath = fullPath + "/" + relativePath;} else {absolutePath = relativePath;}return absolutePath;}; window.WikEdSanitizeAttributes = function (tag, attributes, relaxed) {var common;var tablealign;var tablecell;var table;if (relaxed == true) {common = "dir|style|class";tablealign = "|align|char|charoff|valign";table = "|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor";tablecell = "|abbr|axis|headers|scope|rowspan|colspan|nowrap|width|height|bgcolor";} else {common = "dir";table = "|border|cellspacing|cellpadding|align|bgcolor";tablealign = "|align|valign";tablecell = "|rowspan|colspan|nowrap|bgcolor";}tag = tag.toLowerCase();var sanitized = "";var regExp = /(\w+)\s*=\s*((\'|\")(.*?)\3|(\w+))/g;var regExpMatch;while ((regExpMatch = regExp.exec(attributes)) != null) {var attrib = regExpMatch[1];var attribValue = regExpMatch[4] || regExpMatch[5];if (attribValue == "") {continue;}var valid = false;if (relaxed == true) {if ("center|em|strong|cite|code|var|sub|supdl|dd|dt|tt|b|i|big|small|strike|s|u|rb|rp|ruby".indexOf(tag) >= 0) {if (common.indexOf(attrib) >= 0) {valid = true;}} else if ("div|span|h1|h2|h3|h4|h5|h6|p".indexOf(tag) >= 0) {if ((common + "|align").indexOf(attrib) >= 0) {valid = true;}} else if ("blockquote".indexOf(tag) >= 0) {if ((common + "|cite").indexOf(attrib) >= 0) {valid = true;}} else if ("br".indexOf(tag) >= 0) {if ("style|clear".indexOf(attrib) >= 0) {valid = true;}} else if ("pre".indexOf(tag) >= 0) {if ((common + "|width").indexOf(attrib) >= 0) {valid = true;}} else if ("ins|del".indexOf(tag) >= 0) {if ((common + "|cite|datetime").indexOf(attrib) >= 0) {valid = true;}} else if ("ul".indexOf(tag) >= 0) {if ((common + "|type").indexOf(attrib) >= 0) {valid = true;}} else if ("ol".indexOf(tag) >= 0) {if ((common + "|type|start").indexOf(attrib) >= 0) {valid = true;}} else if ("li".indexOf(tag) >= 0) {if ((common + "|type|value").indexOf(attrib) >= 0) {valid = true;}} else if ("table".indexOf(tag) >= 0) {if ((common + table).indexOf(attrib) >= 0) {valid = true;}} else if ("caption".indexOf(tag) >= 0) {if ((common + "|align").indexOf(attrib) >= 0) {valid = true;}} else if ("thead|tfoot|tbody".indexOf(tag) >= 0) {if ((common + tablealign).indexOf(attrib) >= 0) {valid = true;}} else if ("colgroup|col".indexOf(tag) >= 0) {if ((common + "|span|width" + tablealign).indexOf(attrib) >= 0) {valid = true;}} else if ("tr".indexOf(tag) >= 0) {if ((common + "|bgcolor" + tablealign).indexOf(attrib) >= 0) {valid = true;}} else if ("td|th".indexOf(tag) >= 0) {if ((common + tablecell + tablealign).indexOf(attrib) >= 0) {valid = true;}} else if ("font".indexOf(tag) >= 0) {if ((common + "|size|color|face").indexOf(attrib) >= 0) {valid = true;}} else if ("hr".indexOf(tag) >= 0) {if ((common + "|noshade|size|width").indexOf(attrib) >= 0) {valid = true;}} else if ("rt".indexOf(tag) >= 0) {if ((common + "|rbspan").indexOf(attrib) >= 0) {valid = true;}} else if ("ref".indexOf(tag) >= 0) {if ("name".indexOf(attrib) >= 0) {valid = true;}} else if ("references".indexOf(tag) >= 0) {} else if ("source".indexOf(tag) >= 0) {if ("lang".indexOf(attrib) >= 0) {valid = true;}} else if ("poem".indexOf(tag) >= 0) {} else if ("gallery".indexOf(tag) >= 0) {if ((common + "|perrow|widths|heights").indexOf(attrib) >= 0) {valid = true;}}} else {if ("center|em|strong|cite|code|var|sub|supdl|dd|dt|tt|b|i|big|small|strike|s|u|rb|rp|ruby|blockquote|pre|ins|del".indexOf(tag) >= 0) {if (common.indexOf(attrib) >= 0) {valid = true;}} else if ("div|span|h1|h2|h3|h4|h5|h6|p".indexOf(tag) >= 0) {if ((common + "|align").indexOf(attrib) >= 0) {valid = true;}} else if ("br".indexOf(tag) >= 0) {if ("clear".indexOf(attrib) >= 0) {valid = true;}} else if ("ul".indexOf(tag) >= 0) {if ((common + "|type").indexOf(attrib) >= 0) {valid = true;}} else if ("ol".indexOf(tag) >= 0) {if ((common + "|type|start").indexOf(attrib) >= 0) {valid = true;}} else if ("li".indexOf(tag) >= 0) {if ((common + "|type|value").indexOf(attrib) >= 0) {valid = true;}} else if ("table".indexOf(tag) >= 0) {if ((common + table).indexOf(attrib) >= 0) {valid = true;}} else if ("caption".indexOf(tag) >= 0) {if ((common + "|align").indexOf(attrib) >= 0) {valid = true;}} else if ("thead|tfoot|tbody".indexOf(tag) >= 0) {if ((common + tablealign).indexOf(attrib) >= 0) {valid = true;}} else if ("colgroup|col".indexOf(tag) >= 0) {if ((common + "|span" + tablealign).indexOf(attrib) >= 0) {valid = true;}} else if ("tr".indexOf(tag) >= 0) {if ((common + "|bgcolor" + tablealign).indexOf(attrib) >= 0) {valid = true;}} else if ("td|th".indexOf(tag) >= 0) {if ((common + tablecell + tablealign).indexOf(attrib) >= 0) {valid = true;}} else if ("font".indexOf(tag) >= 0) {if ((common + "|color").indexOf(attrib) >= 0) {valid = true;}} else if ("hr".indexOf(tag) >= 0) {if ((common + "|noshade|size").indexOf(attrib) >= 0) {valid = true;}} else if ("rt".indexOf(tag) >= 0) {if ((common + "|rbspan").indexOf(attrib) >= 0) {valid = true;}} else if ("ref".indexOf(tag) >= 0) {if ("name".indexOf(attrib) >= 0) {valid = true;}} else if ("references".indexOf(tag) >= 0) {} else if ("source".indexOf(tag) >= 0) {if ("lang".indexOf(attrib) >= 0) {valid = true;}} else if ("poem".indexOf(tag) >= 0) {} else if ("gallery".indexOf(tag) >= 0) {}}if (valid == true) {if (attrib == "align") {if ("tr|td|th".indexOf(tag) >= 0) {if (attribValue == "left") {attribValue = "";}}} else if (attrib == "valign") {if ("tr|td|th".indexOf(tag) >= 0) {if (attribValue == "top") {attribValue = "";}}} else if (attrib == "style") {attribValue = attribValue.replace(/(^| )(-moz-[\w\-]+): [\w\-]+; *()/g, "$1");attribValue = attribValue.replace(/(^| )([\w\-]+): [^;]*(-moz-[\w\-]+|windowtext)[^;]*; *()/g, "$1");attribValue = attribValue.replace(/\b0(%|in|cm|mm|em|ex|pt|pc|px)\b/g, "0");attribValue = attribValue.replace(/[\w\-]+ *\: *\; *()/g, "");attribValue = attribValue.replace(/ *(;|:) *()/g, "$1 ");attribValue = attribValue.replace(/( |;)+$/g, ";");} else if (attrib == "class") {attribValue = attribValue.replace(/^Ms.*$/g, "");}if (attribValue != "") {sanitized += " " + attrib + "=\"" + attribValue + "\"";}}}return sanitized;}; window.WikEdRemoveHighlighting = function (obj) {var isRemove = [];obj.html = obj.html.replace(/(<(\/?)span\b([^>]*)>)/g, function (p, p1, p2, p3) {if (p2 == "") {if (/\bclass=\"wikEd\w+\"/.test(p3)) {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});var isRemove = [];obj.html = obj.html.replace(/(<(\/?)div\b([^>]*)>)/g, function (p, p1, p2, p3) {if (p2 == "") {if (/\bclass=\"wikEd\w+\"/.test(p3)) {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});var isRemove = [];obj.html = obj.html.replace(/(<(\/?)pre\b([^>]*)>)/g, function (p, p1, p2, p3) {if (p2 == "") {if (/\bclass=\"wikEd\w+\"/.test(p3)) {isRemove.push(true);return "";}isRemove.push(false);return p1;}if (isRemove.pop() == true) {return "";}return p1;});obj.html = obj.html.replace(/<!--wikEd\w+-->/g, "");obj.html = obj.html.replace(/[\n\r ]+/g, " ");obj.html = obj.html.replace(/&nbsp;/g, "\xA0");if (obj.html.match(/<(?!br\b)/) != null) {obj.htmlCode = true;} else {obj.htmlCode = false;}return;}; window.WikEdHighlightSyntax = function (obj, singleLine) {obj.html = obj.html.replace(/\r\n?/g, "\n");obj.html = obj.html.replace(/&lt;/g, "\0");obj.html = obj.html.replace(/&gt;/g, "\x01");obj.html = obj.html.replace(/&amp;/g, "\x02");obj.html = obj.html.replace(/(^|\n)(#)(redirect\b)/gi, "$1<span class=\"wikEdWikiRedir\">$3</span><!--wikEdWikiRedir-->");obj.html = obj.html.replace(/(\u0000nowiki\b.*?\u0001)(.*?)(\u0000\/nowiki\b.*?\u0001)/gi, function (p, p1, p2, p3) {p2 = p2.replace(/\u0000/g, "&lt;");p2 = p2.replace(/\u0001/g, "&gt;");return p1 + p2 + p3;});obj.html = obj.html.replace(/^((\u0000!--.*?--\u0001)*)([\*\#\:\;]+)(.*?)$/gm, "<span class=\"wikEdListLine\">$1<span class=\"wikEdListTag\">$3</span><!--wikEdListTag-->$4</span><!--wikEdListLine-->");if (singleLine != true) {obj.html = obj.html.replace(/((<span class=\"wikEdListLine\">[^\n]*\n)+)/g, "<span class=\"wikEdListBlock\">$1");obj.html = obj.html.replace(/(<span class=\"wikEdListLine\">[^\n]*)(\n)(?!<span class=\"wikEdListLine\">)/g, "$1</span><!--wikEdListBlock-->$2");}obj.html = obj.html.replace(/(<span class=\"wikEdWikiRedir\">)(.*?<\/span><!--wikEdWikiRedir-->)/g, "$1#$2");if (singleLine != true) {obj.html = obj.html.replace(/(\u0000(blockquote|center|div|pre|timeline|imagemap|source)\b[^\u0001]*\u0001.*?\u0000\/\2\u0001)/gi, "<span class=\"wikEdBlock\">$1</span><!--wikEdBlock-->");}if (singleLine != true) {obj.html = obj.html.replace(/^((\u0000!--.*?--\u0001)*)[\u00a0 ]([\u00a0 ]*)(.*?)$/gm, "<span class=\"wikEdSpaceLine\">$1<span class=\"wikEdSpaceTag\">&nbsp;$3</span><!--wikEdSpaceTag-->$4</span><!--wikEdSpaceLine-->");obj.html = obj.html.replace(/((<span class=\"wikEdSpaceLine\">[^\n]*\n)+)/g, "<span class=\"wikEdSpaceBlock\">$1");obj.html = obj.html.replace(/(<span class=\"wikEdSpaceLine\">[^\n]*)(\n)(?!<span class="wikEdSpaceLine">)/g, "$1</span><!--wikEdSpaceBlock-->$2");}obj.html = obj.html.replace(/(^|\n)((\u0000!--.*?--\u0001|<[^>]*>)*)(----)((\u0000!--.*?--\u0001|<[^>]*>)*)(\n|$)/g, "$1<span class=\"wikEdHR\">$2$4</span><!--wikEdHR-->$5$7");obj.html = obj.html.replace(/(\u0000hr\u0001)/g, "<span class=\"wikEdHRInline\">$1</span><!--wikEdHRInline-->");obj.html = obj.html.replace(/(^|\n)((\u0000!--.*?--\u0001|<[^>]*>)*)(=+[\u00a0 ]*)([^\n]*?)([\u00a0 ]*=+)(?=([\u00a0 ]|<[^>]*>|\u0000!--.*?--\u0001)*(\n|$))/g, function (p, p1, p2, p3, p4, p5, p6) {p4 = p4.replace(/(=+)/g, "<span class=\"wikEdWiki\">$1</span><!--wikEdWiki-->");p6 = p6.replace(/(=+)/g, "<span class=\"wikEdWiki\">$1</span><!--wikEdWiki-->");var regExp = new RegExp("^" + wikEdText['External links'] + "?|" + wikEdText['External links'] + "|" + wikEdText['See also'] + "|" + wikEdText.References + "$", "i");if (regExp.test(p5)) {p1 = p1 + "<span class=\"wikEdHeadingWp\">";p6 = p6 + "</span><!--wikEdHeadingWp-->";} else {p1 = p1 + "<span class=\"wikEdHeading\">";p6 = p6 + "</span><!--wikEdHeading-->";}return p1 + p2 + p4 + p5 + p6;});obj.html = obj.html.replace(/^((\u0000!--.*?--\u0001)*)(\{\||\|\+|\|\-|\!|\|\}([^\}]|$)|\|)(.*?)$/gm, "<span class=\"wikEdTableLine\">$1<span class=\"wikEdTableTag\">$3</span><!--wikEdTableTag-->$5</span><!--wikEdTableLine-->");if (singleLine != true) {obj.html = obj.html.replace(/(^|\n)((<[^>]*>|\u0000!--.*?--\u0001)*\{\|)/g, "$1<span class=\"wikEdTableBlock\">$2");obj.html = obj.html.replace(/(^|\n)((<[^>]*>|\u0000!--.*?--\u0001)*\|\}(<[^>]*>)*)/g, "$1$2</span><!--wikEdTableBlock-->");obj.html = obj.html.replace(/(\u0000table\b[^\u0001]*\u0001)/gi, "<span class=\"wikEdTableBlock\">$1");obj.html = obj.html.replace(/(\u0000\/table\u0001)/gi, "$1</span><!--wikEdTableBlock-->");}if (singleLine != true) {obj.html = obj.html.replace(/(\u0000(gallery)\b[^\u0001]*\u0001)/gi, "<span class=\"wikEdWiki\">$1");obj.html = obj.html.replace(/(\u0000\/(gallery)\u0001)/gi, "$1</span><!--wikEdWiki-->");}obj.html = obj.html.replace(/(\u0000\/?(blockquote|center|div|pre|timeline|imagemap|source)\b[^\u0001]*\u0001)/gi, "<span class=\"wikEdBlockTag\">$1</span><!--wikEdBlockTag-->");var isRemove = [];obj.html = obj.html.replace(/(\u0000(\/?)p\b([^\u0001]*?)\u0001)/g, function (p, p1, p2, p3) {if (p2 == "") {if (p3 == "") {isRemove.push(true);return "<span class=\"wikEdUnknown\">" + p1 + "</span><!--wikEdUnknown-->";}if (/\/$/.test(p3)) {return "<span class=\"wikEdUnknown\">" + p1 + "</span><!--wikEdUnknown-->";}isRemove.push(false);return "<span class=\"wikEdBlockTag\">" + p1 + "</span><!--wikEdBlockTag-->";}if (isRemove.pop() == true) {return "<span class=\"wikEdUnknown\">" + p1 + "</span><!--wikEdUnknown-->";}return "<span class=\"wikEdBlockTag\">" + p1 + "</span><!--wikEdBlockTag-->";});obj.html = obj.html.replace(/(__(NOTOC|FORCETOC|TOC|NOEDITSECTION|NEWSECTIONLINK|NOCONTENTCONVERT|NOCC|NOGALLERY|NOTITLECONVERT|NOTC|END|START)__)/gi, "<span class=\"wikEdMagic\">$1</span><!--wikEdMagic-->");obj.html = obj.html.replace(/(\u0000sup\b[^\u0001]*\u0001((.|\n)*?)\u0000\/sup\u0001)/gi, "<span class=\"wikEdSuperscript\">$1</span><!--wikEdSuperscript-->");obj.html = obj.html.replace(/(\u0000sub\b[^\u0001]*\u0001((.|\n)*?)\u0000\/sub\u0001)/gi, "<span class=\"wikEdSubscript\">$1</span><!--wikEdSubscript-->");obj.html = obj.html.replace(/(\u0000(ins|u)\b[^\u0001]*\u0001((.|\n)*?)\u0000\/(ins|u)\u0001)/gi, "<span class=\"wikEdIns\">$1</span><!--wikEdIns-->");obj.html = obj.html.replace(/(\u0000(del|s|strike)\b[^\u0001]*\u0001((.|\n)*?)\u0000\/(del|s|strike)\u0001)/gi, "<span class=\"wikEdDel\">$1</span><!--wikEdDel-->");if (wikEdRefHide != true) {obj.html = obj.html.replace(/\u0000(ref\b[^\u0001]*?\/)\u0001/gi, "<span class=\"wikEdRef\">&lt;$1&gt;</span><!--wikEdRef-->");obj.html = obj.html.replace(/(\u0000ref\b[^\u0001]*\u0001((.|\n)*?)\u0000\/ref\u0001)/gi, "<span class=\"wikEdRef\">$1</span><!--wikEdRef-->");}obj.html = obj.html.replace(/(\u0000\/?(sub|sup|ins|u|del|s|strike|big|br|colgroup|code|font|small|span|tt|rb|rp|rt|ruby|ref)\b[^\u0001]*\u0001)/gi, "<span class=\"wikEdInlineTag\">$1</span><!--wikEdInlineTag-->");obj.html = obj.html.replace(/\u0000((references)\b[^\u0001]*?\/)\u0001/gi, "<span class=\"wikEdWiki\">&lt;$1&gt;</span><!--wikEdWiki-->");obj.html = obj.html.replace(/(\u0000(math|gallery|noinclude|includeonly|references)\b[^\u0001]*\u0001((.|\n)*?)(\u0000)\/\2\u0001)/gi, "<span class=\"wikEdWiki\">$1</span><!--wikEdWiki-->");obj.html = obj.html.replace(/(\u0000\/?)(\w+)(.*?\/?\u0001)/g, function (p, p1, p2, p3) {if (!/^(col|thead|tfoot|tbody|big|br|blockquote|colgroup|center|code|del|div|font|ins|p|pre|s|small|span|strike|sub|sup|tt|u|rb|rp|rt|ruby|nowiki|math|gallery|noinclude|includeonly|ref|references|timeline|imagemap|source)$/i.test(p2)) {p1 = "<span class=\"wikEdUnknown\">" + p1;p3 = p3 + "</span><!--wikEdUnknown-->";}return p1 + p2 + p3;});obj.html = obj.html.replace(/(\u0000!--(.|\n)*?--\u0001)/g, "<span class=\"wikEdComment\">$1</span><!--wikEdComment-->");obj.html = obj.html.replace(/(\'|\")(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|blanchedalmond|burlywood|chartreuse|coral|cornsilk|cyan|darkgray|darkgrey|darkkhaki|darkorange|darksalmon|darkseagreen|floralwhite|fuchsia|gainsboro|ghostwhite|gold|goldenrod|greenyellow|honeydew|hotpink|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightskyblue|lightsteelblue|lightyellow|lime|linen|magenta|mediumaquamarine|mediumspringgreen|mediumturquoise|mintcream|mistyrose|moccasin|navajowhite|oldlace|orange|palegoldenrod|palegreen|paleturquoise|papayawhip|peachpuff|peru|pink|plum|powderblue|salmon|sandybrown|seashell|silver|skyblue|snow|springgreen|tan|thistle|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen)(\1)/g, "$1<span style=\"background-color: $2;\" class=\"wikEdColorsLight\">$2</span><!--wikEdColorsLight-->$3");obj.html = obj.html.replace(/(\'|\")(black|blue|blueviolet|brown|cadetblue|chocolate|cornflowerblue|crimson|darkblue|darkcyan|darkgoldenrod|darkgreen|darkmagenta|darkolivegreen|darkorchid|darkred|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|forestgreen|gray|green|grey|indianred|indigo|lightseagreen|lightslategray|lightslategrey|limegreen|maroon|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumvioletred|midnightblue|navy|olive|olivedrab|orangered|orchid|palevioletred|purple|red|rosybrown|royalblue|saddlebrown|seagreen|sienna|slateblue|slategray|slategrey|steelblue|teal|tomato)(\1)/g, "$1<span style=\"background-color: $2;\" class=\"wikEdColorsDark\">$2</span><!--wikEdColorsDark-->$3");obj.html = obj.html.replace(/(^|[^\/\w\u0002])(#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2}))(?=(\W|$))/g, function (p, p1, p2, p3, p4, p5) {var luminance = parseInt(p3, 16) * 0.299 + parseInt(p4, 16) * 0.587 + parseInt(p5, 16) * 0.114;if (luminance > 128) {return p1 + "<span style=\"background-color: " + p2 + "\" class=\"wikEdColorsLight\">" + p2 + "</span><!--wikEdColorsLight-->";} else {return p1 + "<span style=\"background-color: " + p2 + "\" class=\"wikEdColorsDark\">" + p2 + "</span><!--wikEdColorsDark-->";}});obj.html = obj.html.replace(/(^|[^\/\w\u0002])(#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F]))(?=(\W|$))/g, function (p, p1, p2, p3, p4, p5) {var luminance = parseInt(p3, 16) * 16 * 0.299 + parseInt(p4, 16) * 16 * 0.587 + parseInt(p5, 16) * 16 * 0.114;if (luminance > 128) {return p1 + "<span style=\"background-color: " + p2 + "\" class=\"wikEdColorsLight\">" + p2 + "</span><!--wikEdColorsLight-->";} else {return p1 + "<span style=\"background-color: " + p2 + "\" class=\"wikEdColorsDark\">" + p2 + "</span><!--wikEdColorsDark-->";}});obj.html = obj.html.replace(/(rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\))/gi, function (p, p1, p2, p3, p4) {var luminance = p2 * 0.299 + p3 * 0.587 + p4 * 0.114;if (luminance > 128) {return "<span style=\"background-color: " + p1 + "\" class=\"wikEdColorsLight\">" + p1 + "</span><!--wikEdColorsLight-->";} else {return "<span style=\"background-color: " + p1 + "\" class=\"wikEdColorsDark\">" + p1 + "</span><!--wikEdColorsDark-->";}});if (obj.whole == true) {wikEdFollowLinkIdNo = 0;wikEdFollowLinkHash = {};}obj.whole = false;obj.html = obj.html.replace(/((http:\/\/|https:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/|news:%7Cmailto:)[^\u0000\u0001\u0003-\u0020\!\"\$\'\(\)\*\,\<\>\[\\\]\^\`\{-\|\}\u007f-\uffff]*)/gi, function (p, p1, p2) {return "<span class=\"wikEdURLLink\"" + WikEdFollowLinkUrl(null, null, p1) + ">" + p1 + "</span><!--wikEdURLLink-->";});obj.html = obj.html.replace(/(\[)( *<span class=\"wikEdURLLink\"[^>]*>.*?<\!--wikEdURLLink--> *)([^\]\n]*?)( *\])/gi, function (p, p1, p2, p3, p4) {p3 = p3.replace(/(.*)/, "<span class=\"wikEdURLText\">$1</span><!--wikEdURLText-->");p1 = p1.replace(/(\[)/, "<span class=\"wikEdLinkTag\">$1</span><!--wikEdLinkTag-->");p4 = p4.replace(/(\])/, "<span class=\"wikEdLinkTag\">$1</span><!--wikEdLinkTag-->");return p1 + p2 + p3 + p4;});var regExpImg = new RegExp("(\\[\\[)(" + wikEdText['wikicode Image'] + " *: *)([^\\[\\]\\|\\n]*)((\\|((\\[\\[[^\\]\\n]*\\]\\])?(\\[[^\\[\\]\\n]*\\])?[^\\[\\]\\|]*)*)*)(.*?)(\\]\\])", "gi");obj.html = obj.html.replace(regExpImg, function (p, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) {var linkTitle = p3;linkTitle = linkTitle.replace(/\|.*()/g, "");linkTitle = linkTitle.replace(/\n.*()/g, "");p1 = "<span class=\"wikEdImage\"" + WikEdFollowLinkUrl(p2, linkTitle) + ">" + p1;p10 = p10 + "</span><!--wikEdImage-->";p2 = "<span class=\"wikEdImageName\">" + p2;p3 = p3 + "</span><!--wikEdImageName-->";p4 = p4.replace(/((\^\\]|\[\^\\]\]|[^\]\|])+)/g, function (p, p1) {if (/^(thumb|thumbnail|frame|right|left|center|none|\d+px|\d+x\d+px)$/.test(p1) == true) {p1 = "<span class=\"wikEdImageParam\">" + p1 + "</span><!--wikEdImageParam-->";} else {p1 = "<span class=\"wikEdImageCaption\">" + p1 + "</span><!--wikEdImageCaption-->";}return p1;});p1 = p1.replace(/(\[+)/, "<span class=\"wikEdLinkTag\">$1</span><!--wikEdLinkTag-->");p10 = p10.replace(/(\]+)/, "<span class=\"wikEdLinkTag\">$1</span><!--wikEdLinkTag-->");p4 = p4.replace(/(\|)/g, "<span class=\"wikEdLinkTag\">$1</span><!--wikEdLinkTag-->");return p1 + p2 + p3 + p4 + p9 + p10;});obj.html = obj.html.replace(/(\[\[)([^\[\]]*)(\]\])/g, function (p, p1, p2, p3) {var regExpImg = new RegExp("^(<[^>]*>)*" + wikEdText['wikicode Image'] + "\\s*:", "i");if (regExpImg.test(p2) == true) {return p1 + p2 + p3;}var linkParam = "";var linkInter;var linkMatch = p2.match(/^\s*(([\w À-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\-]*\s*:)*)\s*([^\|]+)/);if (linkMatch != null) {linkInter = linkMatch[1];linkParam = WikEdFollowLinkUrl(linkInter, linkMatch[3]);}var regExpCat = new RegExp("^\\s*" + wikEdText['wikicode Category'] + "\\s*:", "i");if (regExpCat.test(p2)) {var regExp = new RegExp("\\s*[\\w\\- \xC0-\xD6\xD8-\xF6\xF8-\\u0220\\u0222-\\u0233\u0386\u0388\u0389\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03CE\\u0400-\\u0481\\u048a-\\u04ce\\u04d0-\\u04f5\\u04f8\\u04f9]+\\s*:\\s*" + wikEdText['wikicode Category'] + "\\s*:", "i");if (p2.match(regExp) != null) {p1 = "<span class=\"wikEdCatInter\"" + linkParam + ">" + p1;p3 = p3 + "</span><!--wikEdCatInter-->";} else {p1 = "<span class=\"wikEdCat\"" + linkParam + ">" + p1;p3 = p3 + "</span><!--wikEdCat-->";}p2 = p2.replace(/^(\s*)(([\w ]*:)+)/, "$1<span class=\"wikEdInter\">$2</span><!--wikEdInter-->");p2 = p2.replace(/(\s*)([^>:\|]+)(\s*\|\s*|$)/, "$1<span class=\"wikEdCatName\">$2</span><!--wikEdCatName-->$3");p2 = p2.replace(/(\|\s*)(.*)/, function (p, p1, p2) {p2 = p2.replace(/(.*?)(\s*(\||$))/g, "<span class=\"wikEdCatText\">$1</span><!--wikEdCatText-->$2");return p1 + p2;});} else {if (linkInter != "") {p1 = "<span class=\"wikEdLinkInter\"" + linkParam + ">" + p1;p3 = p3 + "</span><!--wikEdLinkInter-->";} else {p1 = "<span class=\"wikEdLink\"" + linkParam + ">" + p1;p3 = p3 + "</span><!--wikEdLink-->";}p2 = p2.replace(/^(\s*)(([\w ]*:)+)/, "$1<span class=\"wikEdInter\">$2</span><!--wikEdInter-->");p2 = p2.replace(/(\s*)([^>:\|]+)(\s*\|\s*|$)/, "$1<span class=\"wikEdLinkName\">$2</span><!--wikEdLinkName-->$3");p2 = p2.replace(/(\|\s*)(.*)/, function (p, p1, p2) {p2 = p2.replace(/(.*?)(\s*(\||$))/g, "<span class=\"wikEdLinkText\"\">$1</span><!--wikEdLinkText-->$2");return p1 + p2;});}p1 = p1.replace(/(\[+)/, "<span class=\"wikEdLinkTag\">$1</span><!--wikEdLinkTag-->");p2 = p2.replace(/(\|)/g, "<span class=\"wikEdLinkTag\">$1</span><!--wikEdLinkTag-->");p3 = p3.replace(/(\]+)/, "<span class=\"wikEdLinkTag\">$1</span><!--wikEdLinkTag-->");return p1 + p2 + p3;});obj.html = obj.html.replace(/(\{{2,3})([^\{\}\<\>\u0000\u0001\n]+)(\}{2,3})/g, function (p, p1, p2, p3) {var linkParam = "";var linkInter;var linkMatch = p2.match(/^\s*(([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]*\s*:)*)\s*([^\|]+)/);if (linkMatch != null) {linkInter = linkMatch[1];linkParam = WikEdFollowLinkUrl(linkInter + wikEdText['wikicode Template'] + ":", linkMatch[3]);}if (linkInter != "") {p1 = "<span class=\"wikEdTemplInter\"" + linkParam + ">" + p1;p3 = p3 + "</span><!--wikEdTemplInter-->";} else {p1 = "<span class=\"wikEdTempl\"" + linkParam + ">" + p1;p3 = p3 + "</span><!--wikEdTempl-->";}p2 = p2.replace(/^(\s*)((\w*:)+)/, "$1<span class=\"wikEdInter\">$2</span><!--wikEdInter-->");p2 = p2.replace(/(\s*)([^>:\|]+)(\s*\|\s*|$)/, "$1<span class=\"wikEdTemplName\">$2</span><!--wikEdTemplName-->$3");p2 = p2.replace(/(\|\s*)(.*)/, function (p, p1, p2) {p2 = p2.replace(/(.*?)(\s*(\||$))/g, "<span class=\"wikEdTemplText\">$1</span><!--wikEdTemplText-->$2");return p1 + p2;});p2 = p2.replace(/(\|)/g, "<span class=\"wikEdTemplTag\">$1</span><!--wikEdTemplTag-->");return p1 + p2 + p3;});obj.html = obj.html.replace(/(\{{2,})(\s*[^\{\}\<\>\u0000\u0001\n\|]+)/g, function (p, p1, p2) {var linkMatch = p2.match(/^\s*(([\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9]*\s*:)*)\s*([^\|]+)/);var linkParam = "";var linkInter;if (linkMatch != null) {linkInter = linkMatch[1];linkParam = WikEdFollowLinkUrl(linkInter + wikEdText['wikicode Template'] + ":", linkMatch[3]);}return "<span class=\"wikEdTempl\"" + linkParam + "><span class=\"wikEdTemplTag\">" + p1 + "</span><span class=\"wikEdTemplName\">" + p2 + "</span><!--wikEdTemplName--><!--wikEdTemplTag-->";});obj.html = obj.html.replace(/(\}{2,})(?!<\/span><!--wikEdTemplTag-->)/g, "<span class=\"wikEdTemplTag\">$1</span><!--wikEdTemplTag--></span><!--wikEdTempl-->");obj.html = obj.html.replace(/(\'\'\')(\'*)(.*?)(\'*)(\'\'\')/g, "<span class=\"wikEdBold\">$2$3$4</span><!--wikEdBold-->");obj.html = obj.html.replace(/(\'\')(.*?)(\'\')/g, "<span class=\"wikEdItalic\">$1$2$3</span><!--wikEdItalic-->");obj.html = obj.html.replace(/(<span class=\"wikEdBold\">)/g, "$1");obj.html = obj.html.replace(/(<\/span><!--wikEdBold-->)/g, "$1");obj.html = obj.html.replace(/(\'{2,})/g, "<span class=\"wikEdWiki\">$1</span><!--wikEdWiki-->");obj.html = obj.html.replace(/(\u0000nowiki\b[^\u0001]*\u0001)((.|\n)*?)(\u0000\/nowiki\u0001)/gi, function (p, p1, p2, p3, p4) {p1 = "<span class=\"wikEdNowiki\"><span class=\"wikEdInlineTag\">" + p1 + "</span><!--wikEdInlineTag-->";p2 = p2.replace(/<[^>]*>/g, "");p4 = "<span class=\"wikEdInlineTag\">" + p4 + "</span><!--wikEdInlineTag--></span><!--wikEdNowiki-->";return p1 + p2 + p4;});if (wikEdRefHide == true) {obj.html = obj.html.replace(/\u0000(ref\b[^\u0001]*?\/)\u0001/g, "<span class=\"wikEdRefHide\">&lt;$1&gt;</span><!--wikEdRefHide-->");obj.html = obj.html.replace(/(\u0000ref\b[^\u0001]*\u0001)((.|\n)*?)(\u0000\/ref\u0001)/gi, function (p, p1, p2, p3, p4) {p2 = p2.replace(/<[^>]*>/g, "");var str = "<span class=\"wikEdRefHide\">" + p1 + p2 + p4 + "</span><!--wikEdRefHide-->";return str;});}obj.html = obj.html.replace(/\u0000/g, "&lt;");obj.html = obj.html.replace(/\u0001/g, "&gt;");obj.html = obj.html.replace(/\u0002/g, "&amp;");var regExp = new RegExp("([" + wikEdControlCharsStr + "])", "g");obj.html = obj.html.replace(regExp, function (p, p1) {if (p1 == "\t") {p1 = "<span class=\"wikEdTab\" title=\"" + wikEdControlChars[p1.charCodeAt(0).toString()] + "\">" + p1 + "</span><!--wikEdTab-->";} else if (p1 != "\n") {p1 = "<span class=\"wikEdCtrl\" title=\"" + wikEdControlChars[p1.charCodeAt(0).toString()] + "\">" + p1 + "</span><!--wikEdCtrl-->";}return p1;});var regExpStr = "";for (var decimalValue in wikEdStrangeSpaces) {if (typeof wikEdStrangeSpaces[decimalValue] != "string") {continue;}regExpStr += String.fromCharCode(decimalValue);}var regExp = new RegExp("([" + regExpStr + "])", "g");obj.html = obj.html.replace(regExp, function (p, p1) {if (p1 != "\xA0") {p1 = "<span class=\"wikEdBlank\" title=\"" + wikEdStrangeSpaces[p1.charCodeAt(0).toString()] + "\">" + p1 + "</span><!--wikEdBlank-->";}return p1;});if (wikEdRemoveHighlightComments == true) {obj.html = obj.html.replace(/<!--wikEd\w+-->/g, "");}return;}; window.WikEdFollowLinkUrl = function (linkPrefix, linkTitle, linkUrl) {var linkName = "";if (linkUrl == null) {if (/\{|\}/.test(linkPrefix) == true || /\{|\}/.test(linkTitle) == true) {return "";}linkPrefix = linkPrefix.replace(/<[^>]*>/g, "");linkTitle = linkTitle.replace(/<[^>]*>/g, "");var regExp = new RegExp("[" + wikEdControlCharsStr + "]", "g");linkPrefix = linkPrefix.replace(regExp, "");linkTitle = linkTitle.replace(regExp, "");linkPrefix = linkPrefix.replace(/\s/, " ");linkTitle = linkTitle.replace(/\s/, " ");linkPrefix = linkPrefix.replace(/\s/g, "");linkPrefix = linkPrefix.replace(/^:+/g, "");linkTitle = linkTitle.replace(/ /g, "_");linkUrl = linkPrefix + linkTitle;linkUrl = encodeURI(linkUrl);linkUrl = linkUrl.replace(/%25(\d\d)/g, "%$1");linkUrl = linkUrl.replace(/\'/g, "%27");linkUrl = linkUrl.replace(/#/g, "%23");if (wikEdWikiGlobals.wgArticlePath == null) {linkUrl = "";} else {linkUrl = wikEdWikiGlobals.wgArticlePath.replace(/\$1/, linkUrl);linkName = linkPrefix + linkTitle;}} else {if (/\{|\}/.test(linkUrl) == true) {return "";}linkName = linkUrl;linkUrl = encodeURI(linkUrl);linkUrl = linkUrl.replace(/%25(\d\d)/g, "%$1");linkUrl = linkUrl.replace(/\'/g, "%27");}linkName = linkName.replace(/</g, "&lt;");linkName = linkName.replace(/>/g, "&gt;");linkName = linkName.replace(/\"/g, "&quot;");linkName = linkName.replace(/\'/g, "\\u0027");var linkParam = "";if (linkUrl != "") {var linkId = "wikEdFollowLink" + wikEdFollowLinkIdNo;wikEdFollowLinkIdNo++;linkParam += "id=\"" + linkId + "\" title=\"" + linkName + " " + wikEdText.followLink + "\"";wikEdFollowLinkHash[linkId] = linkUrl;}return linkParam;}; window.WikEdUpdateTextarea = function () {var obj = {};obj.html = wikEdFrameBody.innerHTML;obj.html = obj.html.replace(/(<br\b[^>]*>)\n* *()/g, "$1");WikEdTextify(obj);obj.plain = obj.plain.replace(/&nbsp;/g, " ");obj.plain = obj.plain.replace(/&lt;/g, "<");obj.plain = obj.plain.replace(/&gt;/g, ">");obj.plain = obj.plain.replace(/&amp;/g, "&");wikEdTextarea.value = obj.plain;wikEdFrameScrollTop = wikEdFrameBody.scrollTop;return;}; window.WikEdUpdateFrame = function () {var obj = {};obj.html = wikEdTextarea.value;obj.html = obj.html.replace(/&/g, "&amp;");obj.html = obj.html.replace(/>/g, "&gt;");obj.html = obj.html.replace(/</g, "&lt;");if (wikEdHighlightSyntax == true) {obj.whole = true;WikEdHighlightSyntax(obj);} else {obj.html = obj.html.replace(/(\t)/g, "<span class=\"wikEdTabPlain\">$1</span><!--wikEdTabPlain-->");}obj.html = obj.html.replace(/ /g, "&nbsp; ");obj.html = obj.html.replace(/ /g, "&nbsp; ");obj.html = obj.html.replace(/ \n/g, "&nbsp;\n");obj.html = obj.html.replace(/\n/g, "<br />");if (wikEdMSIE == true) {} else {obj.sel = WikEdGetSelection();WikEdRemoveAllRanges(obj.sel);}if (wikEdFrameBody.firstChild == null || (wikEdFrameBody.innerHTML == "<br>")) {wikEdFrameBody.innerHTML = obj.html;} else {var range = document.createRange();range.setStartBefore(wikEdFrameBody.firstChild);range.setEndAfter(wikEdFrameBody.lastChild);obj.sel.addRange(range);if (obj.html != "") {WikEdFrameExecCommand("inserthtml", obj.html);} else {WikEdFrameExecCommand("delete");}WikEdRemoveAllRanges(obj.sel);if (wikEdFrameScrollTop != null) {wikEdFrameBody.scrollTop = wikEdFrameScrollTop;}}wikEdFrameScrollTop = null;if (wikEdHighlightSyntax == true) {WikEdFollowLinks();}return;}; window.WikEdKeyFrameHandler = function (event) {event = WikEdEvent(event);if (event == null) {return;}if (wikEdUseWikEd == true) {switch (event.type) {case "keydown":switch (event.keyCode) {case 9:if (event.shiftKey == false) {event.preventDefault();if (wikEdFullScreenMode == false) {var inputWrapperTop = WikEdGetOffsetTop(wikEdInputWrapper);window.scroll(0, inputWrapperTop);}wikEdSummaryText.focus();}break;default:;}break;case "keyup":case "keypress":case "mouseup":WikEdInactiveButtons();wikEdFrameDOMCache = null;break;default:;}}return;}; window.WikEdShiftAltHandler = function (event) {event = WikEdEvent(event);if (wikEdUseWikEd == true) {if (event.shiftKey == true && event.ctrlKey == false && (event.altKey == true)) {var buttonId = wikEdButtonKeyCode[event.keyCode];if (buttonId != null) {event.preventDefault();event.stopPropagation();var obj = document.getElementById(buttonId);eval(wikEdEditButtonHandler[buttonId]);}}}return;}; window.WikEdFrameExecCommand = function (command, option) {wikEdFrameDocument.execCommand(command, false, option);return;}; window.WikEdFindAhead = function () {if (WikEdGetAttribute(wikEdFindAhead, "checked") == "true") {var findText = wikEdFindText.value;if (findText == "") {return;}var sel = WikEdGetSelection();var range = sel.getRangeAt(sel.rangeCount - 1).cloneRange();var rangeClone = range.cloneRange();var scrollTop = wikEdFrameBody.scrollTop;sel.removeAllRanges();sel.addRange(range);range.collapse(true);var found = wikEdFrameWindow.find(findText, false, false, true, false, true, false);if (found == false) {wikEdFrameBody.scrollTop = scrollTop;sel.removeAllRanges();sel.addRange(rangeClone);}}return;}; window.WikEdMainSwitch = function () {if (wikEdBrowserNotSupported == true) {return;}if (wikEdDisabled == true) {wikEdDisabled = false;WikEdSetPersistent("wikEdDisabled", "0", 0, "/");if (wikEdTurnedOn == true) {WikEdSetLogo();WikEdUpdateFrame();WikEdSetEditArea(true);wikEdButtonsWrapper.style.display = "block";wikEdButtonBarPreview.style.display = "block";if (wikEdButtonBarJump != null) {wikEdButtonBarJump.style.display = "block";}WikEdExecuteHook(wikEdOnHook);} else {WikEdTurnOn(false);return;}} else {wikEdUseWikEd = false;wikEdDisabled = true;WikEdSetLogo();WikEdSetPersistent("wikEdDisabled", "1", 0, "/");if (wikEdTurnedOn == true) {if (wikEdFullScreenMode == true) {WikEdFullScreen(false);}WikEdUpdateTextarea();WikEdSetEditArea(false);wikEdButtonsWrapper.style.display = "none";wikEdButtonBarPreview.style.display = "none";wikEdLocalPrevWrapper.style.display = "none";if (wikEdButtonBarJump != null) {wikEdButtonBarJump.style.display = "none";}WikEdExecuteHook(wikEdOffHook);}}return;}; window.WikEdFullScreen = function (fullscreen, notFrame) {var displayStyle;if (fullscreen == true) {displayStyle = "none";} else {displayStyle = "block";}var node = document.getElementById("editform").previousSibling;while (node != null) {if (node.nodeName == "DIV" || (node.nodeName == "H3")) {node.style.display = displayStyle;}node = node.previousSibling;}document.getElementsByTagName("H1")[0].style.display = displayStyle;var node = wikEdInputWrapper.nextSibling;while (node != null) {if (node.nodeName == "DIV") {node.style.display = displayStyle;}node = node.nextSibling;}var node = document.getElementById("column-one");while (node != null) {if (node.nodeName == "DIV") {node.style.display = displayStyle;}node = node.nextSibling;}document.getElementById("wikEdInsertWrapper").style.display = displayStyle;if (fullscreen == true) {if (notFrame != true) {wikEdInputWrapper.className = "wikEdInputWrapperFull";}wikEdButtonBarPreview.className = "wikEdButtonBarPreviewFull";} else {if (notFrame != true) {wikEdInputWrapper.className = "wikEdInputWrapper";}wikEdButtonBarPreview.className = "wikEdButtonBarPreview";}if (fullscreen == true) {var consoleTop = WikEdGetOffsetTop(wikEdConsoleWrapper);var consoleHeight = wikEdConsoleWrapper.offsetHeight;var frameHeight = wikEdFrame.offsetHeight;var windowHeight = WikEdGetWindowInnerHeight();var windowWidth = WikEdGetWindowInnerWidth();var frameHeightNew = frameHeight + (windowHeight - (consoleTop + consoleHeight)) - 2;wikEdFrame.style.height = frameHeightNew + "px";} else {wikEdFrame.style.height = wikEdTextareaHeight + "px";}if (fullscreen == false) {window.scroll(0, WikEdGetOffsetTop(wikEdInputWrapper) - 2);}WikEdButton(document.getElementById("wikEdFullScreen"), "wikEdFullScreen", null, fullscreen);var buttonClass;if (fullscreen == true) {buttonClass = "wikEdButtonInactive";} else {buttonClass = "wikEdButton";}document.getElementById("wikEdScrollToPreview").className = buttonClass;document.getElementById("wikEdScrollToPreview2").className = buttonClass;document.getElementById("wikEdScrollToEdit").className = buttonClass;document.getElementById("wikEdScrollToEdit2").className = buttonClass;WikEdResizeSummary();wikEdFullScreenMode = fullscreen;return;}; window.WikEdResizeSummary = function () {if (wikEdSummarySelect == null) {return;}wikEdSummaryText.style.width = "";wikEdSummarySelect.style.width = "";wikEdSummaryTextWidth = wikEdSummaryWrapper.clientWidth - (WikEdGetOffsetLeft(wikEdSummaryText) - WikEdGetOffsetLeft(wikEdSummaryWrapper));if (wikEdSummaryTextWidth < 150) {wikEdSummaryTextWidth = 150;}wikEdSummaryText.style.width = wikEdSummaryTextWidth + "px";WikEdResizeComboInput("summary");return;}; window.WikEdResizeComboInput = function (field) {if (wikEdSelectElement[field] == null) {return;}var standardBrowser = true;if (wikEdSelectElement[field].options.offsetWidth != null) {standardBrowser = false;}if (standardBrowser == false) {wikEdSelectElement[field].style.height = (wikEdInputElement[field].clientHeight + 6) + "px";wikEdSelectElement[field].style.top = "3px";wikEdInputElement[field].style.top = "3px";}var dummy;var testOption = 1;if (standardBrowser == true) {if (wikEdSelectElement[field].options.length == 0) {testOption = 0;wikEdSelectElement[field].options[0] = new Option("");dummy = true;}}if (standardBrowser == true) {for (var i = 0; i < wikEdSelectElement[field].options.length; i++) {wikEdSelectElement[field].options[i].style.width = "0";}}var inputBorder = wikEdInputElement[field].offsetWidth - wikEdInputElement[field].clientWidth;var inputWidthInner = wikEdInputElement[field].clientWidth;var inputWidthOuter = wikEdInputElement[field].offsetWidth;var selectWidthInner = wikEdSelectElement[field].clientWidth;var selectWidthOuter = wikEdSelectElement[field].offsetWidth;var optionWidthInner;var buttonWidth;if (standardBrowser == true) {if (typeof wikEdSelectElement[field].options[testOption].clientLeft == "undefined") {optionWidthInner = wikEdSelectElement[field].options[testOption].clientWidth;buttonWidth = selectWidthInner - optionWidthInner - 6;} else {optionWidthInner = wikEdSelectElement[field].options[testOption].clientWidth;buttonWidth = selectWidthInner - optionWidthInner;}} else {buttonWidth = selectWidthOuter - selectWidthInner - 4;}if (inputWidthOuter + buttonWidth > 150) {wikEdInputElement[field].style.width = (inputWidthInner - inputBorder - buttonWidth) + "px";wikEdSelectElement[field].style.width = inputWidthInner + "px";} else {wikEdSelectElement[field].style.width = (inputWidthOuter + buttonWidth) + "px";}if (dummy == true) {wikEdSelectElement[field].options[0] = null;}if (standardBrowser == true) {for (var i = 0; i < wikEdSelectElement[field].options.length; i++) {wikEdSelectElement[field].options[i].style.width = "auto";}}return;}; window.WikEdChangeComboInput = function (field) {wikEdInputElement[field].focus;var selected = wikEdSelectElement[field].selectedIndex;if (selected >= 0) {wikEdSelectElement[field].selectedIndex = -1;var option = wikEdSelectElement[field].options[selected];if (option.text != "") {if (field == "find" && (/^=.*?=$/.test(option.value) == true)) {wikEdFrameWindow.find(option.value, true, false, true, false, true, false);} else {if (field == "summary") {wikEdInputElement[field].value = WikEdAppendToSummary(wikEdInputElement[field].value, option.text);} else if (option.value == "setcheck") {WikEdButton(document.getElementById("wikEdCaseSensitive"), "wikEdCaseSensitive", null, (option.text.charAt(0) == wikEdCheckMarker[true]));WikEdButton(document.getElementById("wikEdRegExp"), "wikEdRegExp", null, (option.text.charAt(1) == wikEdCheckMarker[true]));wikEdInputElement[field].value = option.text.substr(3);} else {wikEdInputElement[field].value = option.text;}if (field == "find" && (WikEdGetAttribute(wikEdFindAhead, "checked") == "true")) {WikEdFindAhead();}}}}return;}; window.WikEdAppendToSummary = function (summary, append) {summary = summary.replace(/^[, ]+/, "");summary = summary.replace(/[, ]+$/, "");if (summary != "") {if (summary.match(/ \*\/$/) != null) {summary += " ";} else if (summary.match(/[\.\;\:]$/) != null) {summary += " ";} else if (summary.match(/^[\wÀ-ÖØ-öø-\u0220\u0222-\u0233†ˆ‰ŠŒŽ‘-¡£-Î\u0400-\u0481\u048a-\u04ce\u04d0-\u04f5\u04f8\u04f9\(\)\"\'\+\-]/) == null) {summary += " ";} else {summary += ", ";}}summary += append;return summary;}; window.WikEdAddToHistory = function (field) {if (wikEdInputElement[field].value != "") {WikEdLoadHistoryFromSettings(field);wikEdFieldHist[field].unshift(wikEdInputElement[field].value);if (field == "find" || (field == "replace")) {wikEdFieldHist[field][0] = wikEdCheckMarker[(WikEdGetAttribute(wikEdCaseSensitive, "checked") == "true")] + wikEdCheckMarker[(WikEdGetAttribute(wikEdRegExp, "checked") == "true")] + " " + wikEdFieldHist[field][0];}if (field == "summary") {wikEdFieldHist[field][0] = wikEdFieldHist[field][0].replace(/^\/\* .*? \*\/ *()/, "");}var i = 1;while (i < wikEdFieldHist[field].length) {if (wikEdFieldHist[field][i] == wikEdFieldHist[field][0]) {wikEdFieldHist[field].splice(i, 1);} else {i++;}}if (wikEdComboPresetOptions[field] != null) {var i = 0;while (i < wikEdComboPresetOptions[field].length) {if (wikEdComboPresetOptions[field][i] == wikEdFieldHist[field][0]) {wikEdFieldHist[field].shift();break;} else {i++;}}}wikEdFieldHist[field] = wikEdFieldHist[field].slice(0, wikEdHistoryLength[field]);if (wikEdFieldHist[field][0] != "") {WikEdSaveHistoryToSetting(field);}}return;}; window.WikEdSetComboOptions = function (field) {WikEdLoadHistoryFromSettings(field);var option = {};var selectedOption = null;var options = wikEdSelectElement[field].options;for (var i = 0; i < options.length; i++) {wikEdSelectElement[field].remove(i);}option = document.getElementById(field + "Optgroup");if (option != null) {wikEdSelectElement[field].removeChild(option);}option = document.createElement("option");option.style.display = "none";j = 0;wikEdSelectElement[field].options[j++] = option;for (var i = 0; i < wikEdFieldHist[field].length; i++) {if (wikEdFieldHist[field][i] != null) {if (wikEdFieldHist[field][i] == wikEdInputElement[field].value) {selectedOption = j;}option = document.createElement("option");option.text = wikEdFieldHist[field][i].replace(/ /g, "\xA0");if (field == "find" || (field == "replace")) {option.value = "setcheck";}wikEdSelectElement[field].options[j++] = option;}}var startPreset = 0;if (wikEdComboPresetOptions[field] != null) {startPreset = j;for (var i = 0; i < wikEdComboPresetOptions[field].length; i++) {if (wikEdComboPresetOptions[field][i] != null) {wikEdComboPresetOptions[field][i] = wikEdComboPresetOptions[field][i].replace(/ /g, "\xA0");if (wikEdComboPresetOptions[field][i] == wikEdInputElement[field].value) {selectedOption = j;}option = document.createElement("option");option.text = wikEdComboPresetOptions[field][i].replace(/ /g, "\xA0");if (field == "summary") {option.text = option.text.replace(/\{wikEdUsing\}/g, wikEdSummaryUsing);}wikEdSelectElement[field].options[j++] = option;}}}wikEdSelectElement[field].selectedIndex = selectedOption;if (startPreset > 1 && (startPreset < j)) {option = document.createElement("optgroup");option.label = "\xA0";option.id = field + "Optgroup";wikEdSelectElement[field].insertBefore(option, wikEdSelectElement[field].options[startPreset]);}var startTOC = 0;if (field == "find") {startTOC = j;var plain = wikEdFrameBody.innerHTML;plain = plain.replace(/<br\b[^>]*>/g, "\n");plain = plain.replace(/<.*?>/g, "");var heading = plain.match(/(^|\n)=+[^\n]+?=+[^\n=]*[ =\t]*(?=(\n|$))/g);if (heading != null) {for (var i = 0; i < heading.length; i++) {var headingMatch = heading[i].match(/\n?((=+) *([^\n]+?)( *\2))/);var headingIndent = headingMatch[2];headingIndent = headingIndent.replace(/^=/g, "");headingIndent = headingIndent.replace(/=/g, "\xA0");option = document.createElement("option");option.text = "\u21D2" + headingIndent + headingMatch[3];option.value = headingMatch[1];wikEdSelectElement[field].options[j++] = option;}}}if (startTOC > 1 && (startTOC < j)) {option = document.createElement("optgroup");option.label = "\xA0";option.id = field + "Optgroup";wikEdSelectElement[field].insertBefore(option, wikEdSelectElement[field].options[startTOC]);}return;}; window.WikEdClearHistory = function (field) {WikEdSetPersistent(wikEdSavedName[field], "", 0, "/");WikEdSetComboOptions(field);return;}; window.WikEdLoadHistoryFromSettings = function (field) {var setting = WikEdGetPersistent(wikEdSavedName[field]);if (setting != "") {setting = decodeURIComponent(setting);wikEdFieldHist[field] = setting.split("\n");} else {wikEdFieldHist[field] = [];}return;}; window.WikEdSaveHistoryToSetting = function (field) {var setting = "";setting = wikEdFieldHist[field].join("\n");setting = setting.replace(/\n$/, "");setting = encodeURIComponent(setting);WikEdSetPersistent(wikEdSavedName[field], setting, 0, "/");return;}; window.WikEdGetSelection = function () {var sel = wikEdFrameWindow.getSelection();if (sel == null) {sel = wikEdFrameDocument.selection;}if (sel.rangeCount == 0) {sel.collapse(wikEdFrameBody, 0);}return sel;}; window.WikEdRemoveAllRanges = function (sel) {if (typeof sel.removeAllRanges == "function") {sel.removeAllRanges();} else if (typeof sel.empty == "function") {sel.empty();}return;}; window.WikEdGetSavedSetting = function (settingName, preset) {var setting = WikEdGetPersistent(settingName);if (setting == "") {setting = preset;} else if (setting == "1") {setting = true;} else {setting = false;}return setting;}; window.WikEdGetPersistent = function (name) {var getStr = "";if (wikEdGreasemonkey == true) {getStr = GM_getValue(name, "");} else {getStr = WikEdGetCookie(name);}return getStr;}; window.WikEdSetPersistent = function (name, value, expires, path, domain, secure) {if (wikEdGreasemonkey == true) {if (expires == -1) {GM_setValue(name, "");} else {GM_setValue(name, value);}} else {WikEdSetCookie(name, value, expires, path, domain, secure);}return;}; window.WikEdGetCookie = function (cookieName) {var cookie = " " + document.cookie;var search = " " + cookieName + "=";var cookieValue = "";var offset = 0;var end = 0;offset = cookie.indexOf(search);if (offset != -1) {offset += search.length;end = cookie.indexOf(";", offset);if (end == -1) {end = cookie.length;}cookieValue = cookie.substring(offset, end);cookieValue = cookieValue.replace(/\\+/g, " ");cookieValue = decodeURIComponent(cookieValue);}return cookieValue;}; window.WikEdSetCookie = function (name, value, expires, path, domain, secure) {var cookie = name + "=" + encodeURIComponent(value);if (expires != null) {if (expires == -1) {var cookieExpire = new Date;expires = cookieExpire.setTime(cookieExpire.getTime() - 3600000);expires = cookieExpire.toUTCString();} else if (expires == 0) {var cookieExpire = new Date;expires = cookieExpire.setTime(cookieExpire.getTime() + wikEdCookieExpireSec * 1000);expires = cookieExpire.toUTCString();}cookie += "; expires=" + expires;}if (path != null) {cookie += "; path=" + path;}if (domain != null) {cookie += "; domain=" + domain;}if (secure != null) {cookie += "; secure";}document.cookie = cookie;return;}; window.WikEdGetOffsetTop = function (element) {var offset = 0;do {offset += element.offsetTop;} while ((element = element.offsetParent) != null);return offset;}; window.WikEdGetOffsetLeft = function (element) {var offset = 0;do {offset += element.offsetLeft;} while ((element = element.offsetParent) != null);return offset;}; window.wikEdLeafElements = []; wikEdLeafElements.IMG = true; wikEdLeafElements.HR = true; wikEdLeafElements.BR = true; wikEdLeafElements.INPUT = true; window.WikEdParseDOM = function (obj, topNode) {obj.plainLength = 0;obj.plainArray = [];obj.plainNode = [];obj.plainStart = [];obj.plainPos = [];WikEdParseDOMRecursive(obj, topNode);obj.plain = obj.plainArray.join("");wikEdFrameDOMCache = obj;return;}; window.WikEdParseDOMRecursive = function (obj, currentNode) {for (var property in currentNode.childNodes) {var childNode = currentNode.childNodes[property];if (typeof childNode == "string") {continue;}if (childNode == null) {break;}if (childNode == obj.sel.focusNode) {obj.plainFocus = obj.plainLength + obj.sel.focusOffset;}if (childNode == obj.sel.anchorNode) {obj.plainAnchor = obj.plainLength + obj.sel.anchorOffset;}var value = null;switch (childNode.nodeType) {case 1:if (childNode.childNodes.length == 0 && (wikEdLeafElements[childNode.nodeName] == true)) {if (childNode.nodeName == "BR") {value = "\n";}} else {WikEdParseDOMRecursive(obj, childNode);}break;case 3:value = childNode.nodeValue;value = value.replace(/\n/g, " ");break;case 5:value = "&" + childNode.nodeName + ";";break;default:;}if (value != null) {obj.plainArray.push(value);obj.plainNode.push(childNode);obj.plainStart.push(obj.plainLength);obj.plainPos[childNode] = obj.plainLength;obj.plainLength += value.length;}}return;}; window.WikEdGetInnerHTML = function (obj, currentNode) {if (obj.html == null) {obj.html = "";}if (obj.plain == null) {obj.plain = "";}if (obj.plainArray == null) {obj.plainArray = [];obj.plainNode = [];obj.plainStart = [];}for (var i = 0; i < currentNode.childNodes.length; i++) {var childNode = currentNode.childNodes.item(i);switch (childNode.nodeType) {case 1:obj.html += "<" + childNode.nodeName.toLowerCase();for (var j = 0; j < childNode.attributes.length; j++) {if (childNode.attributes.item(j).nodeValue != null) {obj.html += " " + childNode.attributes.item(j).nodeName + "=\"" + childNode.attributes.item(j).nodeValue.replace(/</g, "&lt;").replace(/>/g, "&gt;") + "\"";}}if (childNode.childNodes.length == 0 && wikEdLeafElements[childNode.nodeName]) {obj.html += ">";if (childNode.nodeName == "BR") {obj.plainArray.push("\n");obj.plainNode.push(childNode);obj.plainStart.push(obj.plain.length);obj.plain += "\n";}} else {obj.html += ">";WikEdGetInnerHTML(obj, childNode);obj.html += "</" + childNode.nodeName.toLowerCase() + ">";}break;case 3:var value = childNode.nodeValue;value = value.replace(/\n/g, " ");obj.plainArray.push(value);obj.plainNode.push(childNode);obj.plainStart.push(obj.plain.length);value = value.replace(/&/g, "&amp;");value = value.replace(/</g, "&lt;");value = value.replace(/>/g, "&gt;");obj.html += value;obj.plain += value;break;case 4:obj.html += "<![CDATA[" + childNode.nodeValue + "]]>";break;case 5:var value = "&" + childNode.nodeName + ";";obj.plainArray.push(value);obj.plainNode.push(childNode);obj.plainStart.push(obj.plain.length);value = value.replace(/&/g, "&amp;");obj.html += value;obj.plain += value;break;case 8:obj.html += "<!--" + childNode.nodeValue + "-->";break;default:;}}return;}; window.WikEdStyleSheet = function (contextObj) {if (contextObj == null) {contextObj = document;}this.styleElement = null;if (contextObj.createStyleSheet) {this.styleElement = contextObj.createStyleSheet();} else {this.styleElement = contextObj.createElement("style");this.styleElement.from = "text/css";var insert = contextObj.getElementsByTagName("head")[0];if (insert != null) {this.styleElement.appendChild(contextObj.createTextNode(""));insert.appendChild(this.styleElement);}}this.addRule = function (selector, declaration) {if (this.styleElement.addRule != null) {if (declaration.length > 0) {this.styleElement.addRule(selector, declaration);}} else {if (this.styleElement.sheet != null) {if (this.styleElement.sheet.insertRule != null) {this.styleElement.sheet.insertRule(selector + " { " + declaration + " } ", 0);}}}};this.addRules = function (rules) {if (this.styleElement.innerHTML == null) {this.styleElement.cssText = rules;} else if (wikEdSafari == true) {this.styleElement.appendChild(contextObj.createTextNode(rules));} else {this.styleElement.innerHTML = rules;}return;};}; window.WikEdGetStyle = function (element, styleProperty) {var style;if (element != null) {if (document.defaultView != null && (document.defaultView.getComputedStyle != null)) {style = document.defaultView.getComputedStyle(element, null)[styleProperty];} else if (element.currentStyle != null) {style = element.currentStyle[styleProperty];if (style == "inherit") {style = WikEdGetStyle(element.parent, styleProperty);}} else {style = element.style[styleProperty];}}return style;}; window.WikEdAjaxRequest = function (requestMethod, requestUrl, headerName, headerValue, bodyData, overrideMimeType, responseHandler) {var request;if (wikEdGreasemonkey == true) {var headerArray = {'User-Agent': navigator.userAgent};if (headerName != null) {headerArray[headerName] = headerValue;}request = new GM_xmlhttpRequest({method: requestMethod, url: requestUrl, headers: headerArray, data: bodyData, onreadystatechange: function (ajax) {if (ajax.readyState != 4) {return;}responseHandler(ajax);return;}});} else {if (wikEdAllowLocalAjax == true) {if (typeof netscape == "object") {netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");}}try {request = new XMLHttpRequest;} catch (err) {try {request = new ActiveXObject("Microsoft.XMLHTTP");} catch (err) {try {request = new ActiveXObject("Msxml2.XMLHTTP");} catch (err) {return;}}}request.open(requestMethod, requestUrl, true);if (headerName != null) {request.setRequestHeader(headerName, headerValue);}if (request.overrideMimeType != null && (overrideMimeType != null)) {request.overrideMimeType(overrideMimeType);}request.send(bodyData);request.onreadystatechange = function () {if (request.readyState != 4) {return;}responseHandler(request);return;};}return;}; window.WikEdGetGlobal = function (globalName) {var globalValue;if (wikEdGreasemonkey == true) {if (wikEdGetGlobalNode == null) {wikEdGetGlobalNode = document.getElementById("wikEdGetGlobalNode");}if (wikEdGetGlobalNode == null) {wikEdGetGlobalNode = document.createElement("textarea");wikEdGetGlobalNode.id = "wikEdGetGlobalNode";wikEdGetGlobalNode.style.display = "none";wikEdGetGlobalNode.style.visibility = "hidden";document.body.appendChild(wikEdGetGlobalNode);}location.href = "javascript:void(typeof(" + globalName + ")!='undefined'?(" + globalName + "!=null?(document.getElementById('wikEdGetGlobalNode').value=" + globalName + ".toString()):null):null)";globalValue = wikEdGetGlobalNode.value;} else {try {globalValue = eval(globalName + ".toString();");} catch (err) {}}return globalValue;}; window.WikEdGetAttribute = function (element, attribName) {var attribValue = element.getAttribute(attribName);if (attribName == "checked") {if (typeof attribValue == "boolean") {if (attribValue == true) {attribValue = "true";} else {attribValue = "false";}}}return attribValue;}; window.WikEdGetWindowInnerHeight = function () {var value = window.innerHeight;if (value == null) {if (document.documentElement != null) {value = document.documentElement.clientHeight;}if (value == null || (value == 0)) {value = document.body.clientHeight;}}return value;}; window.WikEdGetWindowInnerWidth = function () {var value = window.innerWidth;if (value == null) {if (document.documentElement != null) {value = document.documentElement.clientWidth;}if (value == null || (value == 0)) {value = document.body.clientWidth;}}return value;}; window.WikEdAddEventListener = function (domElement, eventType, eventHandler, useCapture) {if (domElement != null) {if (domElement.attachEvent != null) {domElement["wikEd" + eventType + eventHandler] = eventHandler;domElement[eventType + eventHandler] = function () {domElement["wikEd" + eventType + eventHandler](window.event);};domElement.attachEvent("on" + eventType, domElement[eventType + eventHandler]);} else {domElement.addEventListener(eventType, eventHandler, useCapture);}}return;}; window.WikEdRemoveEventListener = function (domElement, eventType, eventHandler, useCapture) {if (domElement.detachEvent != null) {domElement.detachEvent("on" + eventType, domElement[eventType + eventHandler]);domElement[eventType + eventHandler] = null;} else {domElement.removeEventListener(eventType, eventHandler, useCapture);}return;}; window.WikEdEvent = function (event) {var eventAlt;if (window.event != null) {eventAlt = window.event;} else if (wikEdFrameWindow.event != null) {eventAlt = wikEdFrameWindow.event;}if (eventAlt != null) {event = eventAlt;event.stopPropagation = function () {event.cancelBubble = true;};event.preventDefault = function () {event.returnValue = false;};event.target = event.srcElement;}return event;}; window.WikEdDebug = function (objectName, object, usePopup) {var useDebug;if (typeof wikEdDebug != "undefined") {if (wikEdDebug != null) {useDebug = true;}}if (useDebug == true) {wikEdDebugWrapper.style.position = "static";wikEdDebugWrapper.style.visibility = "visible";wikEdDebug.style.display = "block";if (objectName == null) {wikEdDebug.value = "";} else {if (object == null) {wikEdDebug.value = objectName + "\n" + wikEdDebug.value;} else {wikEdDebug.value = objectName + ": " + object + "\n" + wikEdDebug.value;}}} else if (usePopup == true) {if (object == null) {alert(objectName);} else {alert(objectName + ": " + object);}} else {var msg;if (object == null) {msg = objectName + "";} else {msg = objectName + ": " + object;}msg = msg.replace(/\'/g, "\\'");setTimeout("throw new Error('WikEdDebug: " + msg + "')", 0);}return;}; window.WikEdDebugTimer = function () {var times = "";var start = wikEdDebugTimer[0][1].getTime();var prev = 0;for (var i = 0; i < wikEdDebugTimer.length; i++) {var curr = wikEdDebugTimer[i][1].getTime() - start;var diff = curr - prev;var prev = curr;times += wikEdDebugTimer[i][0] + ": " + curr + " ms (+" + diff + "ms)\n";}WikEdDebug(times);}; window.WikEdInsertTags = function (tagOpen, tagClose, sampleText) {if (wikEdUseWikEd == true) {WikEdEditButton(document.getElementById("wikEdInsertTags"), "wikEdInsertTags", [tagOpen, tagClose, sampleText]);} else if (WikEdInsertTagsOriginal != null) {WikEdInsertTagsOriginal(tagOpen, tagClose, sampleText);}return;}; window.WikEdInsertAtCursor = function (myField, myValue) {if (wikEdUseWikEd == true) {if (myField == wikEdTextarea) {WikEdEditButton(document.getElementById("wikEdInsertTags"), "wikEdInsertTags", [myValue]);}} else if (WikEdInsertAtCursorOriginal != null) {WikEdInsertAtCursorOriginal(myField, myValue);}return;}; window.WikEdExecuteHook = function (functionsHook) {for (var i = 0; i < functionsHook.length; i++) {functionsHook[i]();}return;}; window.WikEdInitUnicode = function () {if (wikEdSupportedChars != null) {return;}wikEdSupportedChars = [["a1", "iexcl"], ["a2", "cent"], ["a3", "pound"], ["a4", "curren"], ["a5", "yen"], ["a6", "brvbar"], ["a7", "sect"], ["a8", "uml"], ["a9", "copy"], ["aa", "ordf"], ["ab", "laquo"], ["ac", "not"], ["ae", "reg"], ["af", "macr"], ["b0", "deg"], ["b1", "plusmn"], ["b2", "sup2"], ["b3", "sup3"], ["b4", "acute"], ["b5", "micro"], ["b6", "para"], ["b7", "middot"], ["b8", "cedil"], ["b9", "sup1"], ["ba", "ordm"], ["bb", "raquo"], ["bc", "frac14"], ["bd", "frac12"], ["be", "frac34"], ["bf", "iquest"], ["c0", "Agrave"], ["c1", "Aacute"], ["c2", "Acirc"], ["c3", "Atilde"], ["c4", "Auml"], ["c5", "Aring"], ["c6", "AElig"], ["c7", "Ccedil"], ["c8", "Egrave"], ["c9", "Eacute"], ["ca", "Ecirc"], ["cb", "Euml"], ["cc", "Igrave"], ["cd", "Iacute"], ["ce", "Icirc"], ["cf", "Iuml"], ["d0", "ETH"], ["d1", "Ntilde"], ["d2", "Ograve"], ["d3", "Oacute"], ["d4", "Ocirc"], ["d5", "Otilde"], ["d6", "Ouml"], ["d7", "times"], ["d8", "Oslash"], ["d9", "Ugrave"], ["da", "Uacute"], ["db", "Ucirc"], ["dc", "Uuml"], ["dd", "Yacute"], ["de", "THORN"], ["df", "szlig"], ["e0", "agrave"], ["e1", "aacute"], ["e2", "acirc"], ["e3", "atilde"], ["e4", "auml"], ["e5", "aring"], ["e6", "aelig"], ["e7", "ccedil"], ["e8", "egrave"], ["e9", "eacute"], ["ea", "ecirc"], ["eb", "euml"], ["ec", "igrave"], ["ed", "iacute"], ["ee", "icirc"], ["ef", "iuml"], ["f0", "eth"], ["f1", "ntilde"], ["f2", "ograve"], ["f3", "oacute"], ["f4", "ocirc"], ["f5", "otilde"], ["f6", "ouml"], ["f7", "divide"], ["f8", "oslash"], ["f9", "ugrave"], ["fa", "uacute"], ["fb", "ucirc"], ["fc", "uuml"], ["fd", "yacute"], ["fe", "thorn"], ["ff", "yuml"], ["27", "apos"], ["22", "quot"], ["152", "OElig"], ["153", "oelig"], ["160", "Scaron"], ["161", "scaron"], ["178", "Yuml"], ["2c6", "circ"], ["2dc", "tilde"], ["2013", "ndash"], ["2014", "mdash"], ["2018", "lsquo"], ["2019", "rsquo"], ["201a", "sbquo"], ["201c", "ldquo"], ["201d", "rdquo"], ["201e", "bdquo"], ["2020", "dagger"], ["2021", "Dagger"], ["2030", "permil"], ["2039", "lsaquo"], ["203a", "rsaquo"], ["20ac", "euro"], ["192", "fnof"], ["391", "Alpha"], ["392", "Beta"], ["393", "Gamma"], ["394", "Delta"], ["395", "Epsilon"], ["396", "Zeta"], ["397", "Eta"], ["398", "Theta"], ["399", "Iota"], ["39a", "Kappa"], ["39b", "Lambda"], ["39c", "Mu"], ["39d", "Nu"], ["39e", "Xi"], ["39f", "Omicron"], ["3a0", "Pi"], ["3a1", "Rho"], ["3a3", "Sigma"], ["3a4", "Tau"], ["3a5", "Upsilon"], ["3a6", "Phi"], ["3a7", "Chi"], ["3a8", "Psi"], ["3a9", "Omega"], ["3b1", "alpha"], ["3b2", "beta"], ["3b3", "gamma"], ["3b4", "delta"], ["3b5", "epsilon"], ["3b6", "zeta"], ["3b7", "eta"], ["3b8", "theta"], ["3b9", "iota"], ["3ba", "kappa"], ["3bb", "lambda"], ["3bc", "mu"], ["3bd", "nu"], ["3be", "xi"], ["3bf", "omicron"], ["3c0", "pi"], ["3c1", "rho"], ["3c2", "sigmaf"], ["3c3", "sigma"], ["3c4", "tau"], ["3c5", "upsilon"], ["3c6", "phi"], ["3c7", "chi"], ["3c8", "psi"], ["3c9", "omega"], ["2022", "bull"], ["2026", "hellip"], ["2032", "prime"], ["2033", "Prime"], ["203e", "oline"], ["2044", "frasl"], ["2122", "trade"], ["2190", "larr"], ["2191", "uarr"], ["2192", "rarr"], ["2193", "darr"], ["2194", "harr"], ["21d2", "rArr"], ["21d4", "hArr"], ["2200", "forall"], ["2202", "part"], ["2203", "exist"], ["2207", "nabla"], ["2208", "isin"], ["220b", "ni"], ["220f", "prod"], ["2211", "sum"], ["2212", "minus"], ["221a", "radic"], ["221d", "prop"], ["221e", "infin"], ["2220", "ang"], ["2227", "and"], ["2228", "or"], ["2229", "cap"], ["222a", "cup"], ["222b", "int"], ["2234", "there4"], ["223c", "sim"], ["2248", "asymp"], ["2260", "ne"], ["2261", "equiv"], ["2264", "le"], ["2265", "ge"], ["2282", "sub"], ["2283", "sup"], ["2286", "sube"], ["2287", "supe"], ["2295", "oplus"], ["22a5", "perp"], ["25ca", "loz"], ["2660", "spades"], ["2663", "clubs"], ["2665", "hearts"], ["2666", "diams"]];wikEdSpecialChars = [["2002", "ensp"], ["ad", "shy"], ["2003", "emsp"], ["2009", "thinsp"], ["200c", "zwnj"], ["200d", "zwj"], ["200e", "lrm"], ["200f", "rlm"]];wikEdProblemChars = [["3d1", "thetasym"], ["3d2", "upsih"], ["3d6", "piv"], ["2118", "weierp"], ["2111", "image"], ["211c", "real"], ["2135", "alefsym"], ["21b5", "crarr"], ["21d0", "lArr"], ["21d1", "uArr"], ["21d3", "dArr"], ["2205", "empty"], ["2209", "notin"], ["2217", "lowast"], ["2245", "cong"], ["2284", "nsub"], ["22a5", "perp"], ["2297", "otimes"], ["22c5", "sdot"], ["2308", "lceil"], ["2309", "rceil"], ["230a", "lfloor"], ["230b", "rfloor"], ["2329", "lang"], ["232a", "rang"]];wikEdControlChars = {'0': "null", '1': "start of heading", '2': "start of text", '3': "end of text", '4': "end of transmission", '5': "enquiry", '6': "acknowledge", '7': "bell", '8': "backspace", '9': "horizontal tab", '10': "line feed, new line", '11': "vertical tab", '12': "form feed, new page", '13': "carriage return", '14': "shift out", '15': "shift in", '16': "data link escape", '17': "device control 1", '18': "device control 2", '19': "device control 3", '20': "device control 4", '21': "negative acknowledge", '22': "synchronous idle", '23': "end of trans. block", '24': "cancel", '25': "end of medium", '26': "substitute", '27': "escape", '28': "file separator", '29': "group separator", '30': "record separator", '31': "unit separator", '173': "soft hyphen", '8204': "zero width non-joiner", '8205': "zero width joiner", '8206': "left-to-right mark", '8207': "right-to-left mark", '8232': "line separator", '8233': "paragraph separator"};for (var decimalValue in wikEdControlChars) {if (typeof wikEdControlChars[decimalValue] != "string") {continue;}wikEdControlCharsStr += String.fromCharCode(decimalValue);}wikEdStrangeSpaces = {'160': "non-breaking space", '8194': "en space", '8195': "em space", '8201': "thin space"};return;}; WikEdStartup(); window.wikEdDiffProgramVersion = "0.9.5e"; window.wikEdDiffProgramDate = "July 19, 2008"; window.WikEdDiffInit = function () {if (typeof wikEdDiffScriptSrc == "undefined") {window.wikEdDiffScriptSrc = "http://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js&action=raw&ctype=text/javascript";}if (typeof wikEdAllowLocalAjax == "undefined") {window.wikEdAllowLocalAjax = false;}if (typeof wikEdDiffCSS == "undefined") {window.wikEdDiffCSS = [];}WikEdDiffInitObject(wikEdDiffCSS, {'.wikEdDiffWrapper': "margin: 0 0 1em 0;", '.wikEdDiffButtonWrapper': "text-align: center;", '.wikEdDiffButton': "padding: 0; margin: 0.2em 0 0.33em 0;", '.wikEdDiffDiv': "background: #faf8f6; padding: 0.5em; border: 1px solid; border-color: #808080;"});if (typeof wikEdUseLocalImages == "undefined") {window.wikEdUseLocalImages = false;}if (typeof wikEdImagePathLocal == "undefined") {window.wikEdImagePathLocal = "file:///D:/wikEd/images/";}if (typeof wikEdImagePath == "undefined") {window.wikEdImagePath = "http://upload.wikimedia.org/wikipedia/commons/";}if (typeof wikEdImage == "undefined") {window.wikEdImage = [];}WikEdDiffInitImage(wikEdImage, {wikEdDiff: "c/c6/WikEdDiff.png"});if (typeof wikEdText == "undefined") {window.wikEdText = [];}WikEdDiffInitObject(wikEdText, {'wikEdDiffButtonImg alt': "wikEdDiff", 'wikEdDiffButton title': "Show improved diff view", wikEdDiffLoading: "..."});if (typeof wikEdFullDiff == "undefined") {window.wikEdFullDiff = false;}window.wikEdDiffDiv = null;window.wikEdDiffWrapper = null;window.wikEdDiffButtonWrapper = null;window.wikEdDiffButton = null;window.wikEdDiffGetGlobalNode = null;if (typeof wikEdExternalScripts == "undefined") {window.wikEdExternalScripts = null;}if (typeof wikEdDiffPreset == "undefined") {window.wikEdDiffPreset = false;}window.wikEdDiffWikiGlobals = [];window.wikEdDiffTable = null;}; if (typeof wikEdDiffStartup == "undefined") { window.wikEdDiffStartup = false; } window.WikEdDiffStartup = function () {if (window.wikEdDiffStartup == true) {return;}window.wikEdDiffStartup = true;if (window.wikEdPageLoaded == true) {WikEdDiffSetup();} else {if (window.attachEvent != null) {window.attachEvent("onload", WikEdDiffSetup);} else {window.addEventListener("load", WikEdDiffSetup, false);}return;}}; window.WikEdDiffSetup = function () {if (document.getElementById("wikEdDiffSetupFlag") != null) {return;}var flag = document.createElement("span");flag.id = "wikEdDiffSetupFlag";flag.style.display = "none";flag.style.visibility = "hidden";document.body.appendChild(flag);WikEdDiffInit();var table = document.getElementsByTagName("table");for (var i = 0; i < table.length; i++) {if (table[i].className == "diff") {wikEdDiffTable = table[i];}}if (wikEdDiffTable == null) {return;}window.wikEdDiffGreasemonkey = false;if (typeof GM_getValue == "function") {wikEdDiffGreasemonkey = true;}var variable = ["wgServer", "wgArticlePath", "wgScriptPath", "wgCurRevisionId"];for (var i = 0; i < variable.length; i++) {wikEdDiffWikiGlobals[variable[i]] = WikEdDiffGetGlobal(variable[i]);}if (wikEdExternalScripts == null) {wikEdExternalScripts = [];var pageScripts = document.getElementsByTagName("script");for (var i = 0; i < pageScripts.length; i++) {var scriptSrc = pageScripts[i].src;var nameMatch = scriptSrc.match(/\/([^\/]*?)($|\?)/);if (nameMatch != null) {var scriptName = nameMatch[1];if (scriptName != "") {if (scriptName == "diff.js" && (scriptSrc != wikEdDiffScriptSrc)) {continue;}wikEdExternalScripts[scriptName] = true;}}}}var head = document.getElementsByTagName("head")[0];if (wikEdExternalScripts['diff.js'] == null) {if (typeof WDiffString == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffScriptSrc;head.appendChild(script);}wikEdExternalScripts['diff.js'] = true;}var diffStyle = new WikEdDiffStyleSheet;var rules = "";for (var ruleName in wikEdDiffCSS) {var ruleStyle = wikEdDiffCSS[ruleName];diffStyle.addRule(ruleName, ruleStyle);}wikEdDiffWrapper = document.createElement("div");wikEdDiffWrapper.id = "wikEdDiffWrapper";wikEdDiffWrapper.className = "wikEdDiffWrapper";wikEdDiffButtonWrapper = document.createElement("div");wikEdDiffButtonWrapper.id = "wikEdDiffButtonWrapper";wikEdDiffButtonWrapper.className = "wikEdDiffButtonWrapper";wikEdDiffWrapper.appendChild(wikEdDiffButtonWrapper);wikEdDiffButton = document.createElement("button");wikEdDiffButton.id = "wikEdDiffButton";wikEdDiffButton.title = wikEdText['wikEdDiffButton title'];wikEdDiffButton.className = "wikEdDiffButton";wikEdDiffButtonWrapper.appendChild(wikEdDiffButton);var diffImg = document.createElement("img");diffImg.id = "wikEdDiffButtonImg";diffImg.src = wikEdImage.wikEdDiff;diffImg.title = wikEdText['wikEdDiffButton title'];diffImg.alt = wikEdText['wikEdDiffButtonImg alt'];wikEdDiffButton.appendChild(diffImg);wikEdDiffDiv = document.createElement("div");wikEdDiffDiv.id = "wikEdDiffDiv";wikEdDiffDiv.className = "wikEdDiffDiv";wikEdDiffDiv.style.display = "none";wikEdDiffWrapper.appendChild(wikEdDiffDiv);if (wikEdDiffTable.nextSibling != null) {wikEdDiffTable.parentNode.insertBefore(wikEdDiffWrapper, wikEdDiffTable.nextSibling);} else {wikEdDiffTable.parentNode.appendChild(wikEdDiffWrapper);}if (window.attachEvent != null) {wikEdDiffButton.attachEvent("onclick", WikEdDiff);} else {wikEdDiffButton.addEventListener("click", WikEdDiff, true);}var cells = wikEdDiffTable.getElementsByTagName("td");for (var i = 0; i < cells.length; i++) {if (cells[i].className.indexOf("title") < 0) {cells[i].innerHTML = WikEdDiffLinkify(cells[i].innerHTML);}}var setting = WikEdDiffGetPersistent("wikEdDiff");if (setting == "" && (typeof wikEdDiffPreset == "boolean")) {setting = wikEdDiffPreset;} else if (setting == "1") {setting = true;}if (setting == true) {WikEdDiff();}if (typeof setupTooltips == "function") {setupTooltips(wikEdDiffTable);}return;}; window.WikEdDiff = function () {if (wikEdDiffDiv == null) {return;}if (typeof WDiffString == "undefined") {return;}wikEdDiffDiv.style.display = "block";if (wikEdDiffDiv.innerHTML.length > 0) {return;}if (wikEdDiffTable == null) {return;}wikEdDiffDiv.innerHTML = wikEdText.wikEdDiffLoading;var url;var server = WikEdDiffGetGlobal("wgServer");var scriptPath = WikEdDiffGetGlobal("wgScriptPath");scriptPath = scriptPath.replace(server, "");if (server != "" && (scriptPath != "")) {url = server + scriptPath.replace(/\$1/, "") + "/index.php";} else {url = window.location.protocol + "//" + window.location.hostname + "/" + window.location.pathname;}var article;var pageName = WikEdDiffGetGlobal("wgPageName");if (pageName != "") {article = pageName;} else {var articleMatch = window.location.search.match(/(\?|&)title=([^&#]+)/);if (articleMatch != null) {article = articleMatch[2];}}url += "?title=" + encodeURIComponent(article) + "&action=raw&maxage=0";var tdArray = document.getElementsByTagName("TD");var tdOld;var tdNew;for (var i = 0; i < tdArray.length; i++) {if (tdArray[i].className == "diff-otitle") {tdOld = tdArray[i];} else if (tdArray[i].className == "diff-ntitle") {tdNew = tdArray[i];break;}}if (tdOld == null || (tdNew == null)) {return;}var oldVersion = null;var newVersion = null;var oldUrl;var newUrl;if (/(\?|&)action=submit\b/.test(window.location.search) == true || (/(\?|&)undoafter=/.test(window.location.search) == true)) {var textarea = document.getElementsByName("wpTextbox1");if (textarea.length == 0) {return;}newVersion = textarea[0].value;newVersion = newVersion.replace(/\s+$/g, "");var curRevisionId = WikEdDiffGetGlobal("wgCurRevisionId");if (curRevisionId != "") {oldUrl = url + "&oldid=" + curRevisionId;} else {oldUrl = url;}var section = document.getElementsByName("wpSection");if (section != null) {if (section.length > 0) {if (section[0].value != "") {oldUrl += "&section=" + section[0].value;}}}} else {var versionMatchOld = tdOld.innerHTML.match(/(\?|&amp;)oldid=(\d+)/);var versionMatchNew = tdNew.innerHTML.match(/(\?|&amp;)oldid=(\d+)/);if (versionMatchOld == null) {return;}oldUrl = url + "&oldid=" + versionMatchOld[2];if (versionMatchNew != null) {newUrl = url + "&oldid=" + versionMatchNew[2];} else {newUrl = url;}}WikEdDiffAjaxRequest("GET", oldUrl, null, null, null, null, function (ajax) {oldVersion = ajax.responseText;if (newVersion != null) {WikEdDiffResponse(oldVersion, newVersion);}return;});if (newUrl != null) {WikEdDiffAjaxRequest("GET", newUrl, null, null, null, null, function (ajax) {newVersion = ajax.responseText;if (oldVersion != null) {WikEdDiffResponse(oldVersion, newVersion);}return;});}return;}; window.WikEdDiffResponse = function (oldVersion, newVersion) {var diffText = WDiffString(oldVersion, newVersion);if (wikEdFullDiff != true) {diffText = WDiffShortenOutput(diffText);}wikEdDiffDiv.innerHTML = diffText;wikEdDiffDiv.style.display = "block";return;}; window.WikEdDiffLinkify = function (html) {html = html.replace(/((https?|ftp):(\/\/[^\u0000-\u0020\!\"\$\'\(\)\*\,\<\>\[\\\]\^\`\{-\|\}\u007f-\uffff]*|<[^>]*>)+)/gi, function (p, p1) {var preTag = p;var postTag = "";var regExpMatch = /^(.*?)(<.*)$/.exec(preTag);if (regExpMatch != null) {preTag = regExpMatch[1];postTag = regExpMatch[2];}var targetNoTags = p1.replace(/<[^>]*>/g, "");targetNoTags = targetNoTags.replace(/&lt;.*?&gt;/g, "");targetNoTags = targetNoTags.replace(/&lt;.*$/g, "");var url = encodeURI(targetNoTags);url = url.replace(/\"/g, "%22");url = url.replace(/\'/g, "%27");url = url.replace(/#/g, "%23");var linkTitle = targetNoTags.replace(/\"/g, "&quot;");return "<a href = \"" + url + "\" style=\"text-decoration: none; color: inherit; color: expression(parentElement.currentStyle.color);\" title=\"" + linkTitle + "\">" + preTag + "</a>" + postTag;});if (wikEdDiffWikiGlobals.wgServer != null && (wikEdDiffWikiGlobals.wgArticlePath != null)) {html = html.replace(/((\[|\{)(<[^>]*>)*\2(<[^>]*>)*)(([^\|\[\]\{\}\n]*)([^\n\[\]\{\}]*))/g, function (p, p1, p2, p3, p4, p5, p6, p7, p8) {var linkType = p2;var wholeLink = p5;var linkTarget = p6;var preTag = wholeLink;var postTag = "";var regExpMatch = /^(.*?)(<.*)$/.exec(preTag);if (regExpMatch != null) {preTag = regExpMatch[1];postTag = regExpMatch[2] + postTag;}var regExpMatch = /^(.*?)(&lt;.*)$/.exec(preTag);if (regExpMatch != null) {preTag = regExpMatch[1];postTag = regExpMatch[2] + postTag;}var targetNoTags = linkTarget.replace(/<[^>]*>/g, "");targetNoTags = targetNoTags.replace(/&lt;.*?&gt;/g, "");targetNoTags = targetNoTags.replace(/&lt;.*$/g, "");targetNoTags = targetNoTags.replace(/^\s+|\s+$/g, "");var url = encodeURI(targetNoTags);url = url.replace(/\"/g, "%22");url = url.replace(/\'/g, "%27");url = url.replace(/#/g, "%23");var articleTitle = targetNoTags.replace(/\"/g, "&quot;");if (linkType == "{") {url = "Template:" + url;articleTitle = "Template:" + articleTitle;}url = wikEdDiffWikiGlobals.wgServer + wikEdDiffWikiGlobals.wgArticlePath.replace(/\$1/, url);return p1 + "<a href = \"" + url + "\" style = \"text-decoration: none; color: inherit; color: expression(parentElement.currentStyle.color)\" title=\"" + articleTitle + "\">" + preTag + "</a>" + postTag;});}return html;}; window.WikEdDiffInitObject = function (array, preset) {for (var key in preset) {if (array[key] == null) {array[key] = preset[key];}}return;}; window.WikEdDiffInitImage = function (array, preset) {for (var key in preset) {if (array[key] == null) {if (wikEdUseLocalImages == true) {array[key] = wikEdImagePathLocal + preset[key].replace(/^[0-9a-f]+\/[0-9a-f]+\/()/, "");} else {array[key] = wikEdImagePath + preset[key];}}}return;}; window.WikEdDiffStyleSheet = function (contextObj) {if (contextObj == null) {contextObj = document;}this.styleElement = null;if (contextObj.createStyleSheet) {this.styleElement = contextObj.createStyleSheet();} else {this.styleElement = contextObj.createElement("style");this.styleElement.from = "text/css";var insert = contextObj.getElementsByTagName("head")[0];if (insert != null) {this.styleElement.appendChild(contextObj.createTextNode(""));insert.appendChild(this.styleElement);}}this.addRule = function (selector, declaration) {if (this.styleElement.addRule) {this.styleElement.addRule(selector, declaration);} else {if (this.styleElement.sheet != null) {if (this.styleElement.sheet.insertRule != null) {this.styleElement.sheet.insertRule(selector + " { " + declaration + " } ", 0);}}}};this.addRules = function (rules) {this.styleElement.innerHTML = rules;return;};}; window.WikEdDiffGetPersistent = function (name) {var getStr = "";if (wikEdDiffGreasemonkey == true) {getStr = GM_getValue(name, "");} else {getStr = WikEdDiffGetCookie(name);}return getStr;}; window.WikEdDiffGetCookie = function (cookieName) {var cookie = " " + document.cookie;var search = " " + cookieName + "=";var cookieValue = "";var offset = 0;var end = 0;offset = cookie.indexOf(search);if (offset != -1) {offset += search.length;end = cookie.indexOf(";", offset);if (end == -1) {end = cookie.length;}cookieValue = cookie.substring(offset, end);cookieValue = cookieValue.replace(/\\+/g, " ");cookieValue = decodeURIComponent(cookieValue);}return cookieValue;}; window.WikEdDiffAjaxRequest = function (requestMethod, requestUrl, headerName, headerValue, bodyData, overrideMimeType, responseHandler) {var request;if (wikEdDiffGreasemonkey == true) {var headerArray = {'User-Agent': navigator.userAgent};if (headerName != null) {headerArray[headerName] = headerValue;}request = new GM_xmlhttpRequest({method: requestMethod, url: requestUrl, headers: headerArray, data: bodyData, onreadystatechange: function (ajax) {if (ajax.readyState != 4) {return;}responseHandler(ajax);return;}});} else {if (wikEdAllowLocalAjax == true) {if (typeof netscape == "object") {netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");}}try {request = new XMLHttpRequest;} catch (err) {try {request = new ActiveXObject("Microsoft.XMLHTTP");} catch (err) {try {request = new ActiveXObject("Msxml2.XMLHTTP");} catch (err) {return;}}}request.open(requestMethod, requestUrl, true);if (headerName != null) {request.setRequestHeader(headerName, headerValue);}if (request.overrideMimeType != null && (overrideMimeType != null)) {request.overrideMimeType(overrideMimeType);}request.send(bodyData);request.onreadystatechange = function () {if (request.readyState != 4) {return;}responseHandler(request);return;};}return;}; window.WikEdDiffGetOffsetTop = function (element) {var offset = 0;do {offset += element.offsetTop;} while ((element = element.offsetParent) != null);return offset;}; window.WikEdDiffGetGlobal = function (globalName) {var globalValue;if (wikEdDiffGreasemonkey == true) {if (wikEdDiffGetGlobalNode == null) {wikEdDiffGetGlobalNode = document.getElementById("wikEdDiffGetGlobalNode");}if (wikEdDiffGetGlobalNode == null) {wikEdDiffGetGlobalNode = document.createElement("textarea");wikEdDiffGetGlobalNode.id = "wikEdDiffGetGlobalNode";wikEdDiffGetGlobalNode.style.display = "none";wikEdDiffGetGlobalNode.style.visibility = "hidden";document.body.appendChild(wikEdDiffGetGlobalNode);}location.href = "javascript:void(typeof(" + globalName + ")!='undefined'?(" + globalName + "!=null?(document.getElementById('wikEdDiffGetGlobalNode').value=" + globalName + ".toString()):null):null)";globalValue = wikEdDiffGetGlobalNode.value;} else {try {globalValue = eval(globalName + ".toString();");} catch (err) {}}return globalValue;}; WikEdDiffStartup(); if (typeof wDiffStyleDelete == "undefined") { window.wDiffStyleDelete = "font-weight: normal; text-decoration: none; color: #fff; background-color: #990033;"; } if (typeof wDiffStyleInsert == "undefined") { window.wDiffStyleInsert = "font-weight: normal; text-decoration: none; color: #fff; background-color: #009933;"; } if (typeof wDiffStyleMoved == "undefined") { window.wDiffStyleMoved = "font-weight: bold; color: #000; vertical-align: text-bottom; font-size: xx-small; padding: 0; border: solid 1px;"; } if (typeof wDiffStyleBlock == "undefined") { window.wDiffStyleBlock = ["color: #000; background-color: #ffff80;", "color: #000; background-color: #c0ffff;", "color: #000; background-color: #ffd0f0;", "color: #000; background-color: #ffe080;", "color: #000; background-color: #aaddff;", "color: #000; background-color: #ddaaff;", "color: #000; background-color: #ffbbbb;", "color: #000; background-color: #d8ffa0;", "color: #000; background-color: #d0d0d0;"]; } if (typeof wDiffHtmlMovedRight == "undefined") { window.wDiffHtmlMovedRight = "<input class=\"wDiffHtmlMovedRight\" type=\"button\" value=\"&gt;\" style=\"" + wDiffStyleMoved + " {block}\"><!--wDiffHtmlMovedRight-->"; } if (typeof wDiffHtmlMovedLeft == "undefined") { window.wDiffHtmlMovedLeft = "<input class=\"wDiffHtmlMovedLeft\" type=\"button\" value=\"&lt;\" style=\"" + wDiffStyleMoved + " {block}\"><!--wDiffHtmlMovedLeft-->"; } if (typeof wDiffHtmlBlockStart == "undefined") { window.wDiffHtmlBlockStart = "<span class=\"wDiffHtmlBlock\" style=\"{block}\">"; } if (typeof wDiffHtmlBlockEnd == "undefined") { window.wDiffHtmlBlockEnd = "</span><!--wDiffHtmlBlock-->"; } if (typeof wDiffHtmlDeleteStart == "undefined") { window.wDiffHtmlDeleteStart = "<span class=\"wDiffHtmlDelete\" style=\"" + wDiffStyleDelete + "\">"; } if (typeof wDiffHtmlDeleteEnd == "undefined") { window.wDiffHtmlDeleteEnd = "</span><!--wDiffHtmlDelete-->"; } if (typeof wDiffHtmlInsertStart == "undefined") { window.wDiffHtmlInsertStart = "<span class=\"wDiffHtmlInsert\" style=\"" + wDiffStyleInsert + "\">"; } if (typeof wDiffHtmlInsertEnd == "undefined") { window.wDiffHtmlInsertEnd = "</span><!--wDiffHtmlInsert-->"; } if (typeof wDiffBlockMinLength == "undefined") { window.wDiffBlockMinLength = 3; } if (typeof wDiffWordDiff == "undefined") { window.wDiffWordDiff = true; } if (typeof wDiffRecursiveDiff == "undefined") { window.wDiffRecursiveDiff = true; } if (typeof wDiffShowBlockMoves == "undefined") { window.wDiffShowBlockMoves = true; } if (typeof wDiffHeadingBefore == "undefined") { window.wDiffHeadingBefore = 1500; } if (typeof wDiffParagraphBefore == "undefined") { window.wDiffParagraphBefore = 1500; } if (typeof wDiffLineBeforeMax == "undefined") { window.wDiffLineBeforeMax = 1000; } if (typeof wDiffLineBeforeMin == "undefined") { window.wDiffLineBeforeMin = 500; } if (typeof wDiffBlankBeforeMax == "undefined") { window.wDiffBlankBeforeMax = 1000; } if (typeof wDiffBlankBeforeMin == "undefined") { window.wDiffBlankBeforeMin = 500; } if (typeof wDiffCharsBefore == "undefined") { window.wDiffCharsBefore = 500; } if (typeof wDiffHeadingAfter == "undefined") { window.wDiffHeadingAfter = 1500; } if (typeof wDiffParagraphAfter == "undefined") { window.wDiffParagraphAfter = 1500; } if (typeof wDiffLineAfterMax == "undefined") { window.wDiffLineAfterMax = 1000; } if (typeof wDiffLineAfterMin == "undefined") { window.wDiffLineAfterMin = 500; } if (typeof wDiffBlankAfterMax == "undefined") { window.wDiffBlankAfterMax = 1000; } if (typeof wDiffBlankAfterMin == "undefined") { window.wDiffBlankAfterMin = 500; } if (typeof wDiffCharsAfter == "undefined") { window.wDiffCharsAfter = 500; } if (typeof wDiffFragmentJoin == "undefined") { window.wDiffFragmentJoin = 1000; } if (typeof wDiffOmittedChars == "undefined") { window.wDiffOmittedChars = "\u2026"; } if (typeof wDiffOmittedLines == "undefined") { window.wDiffOmittedLines = "<hr style=\"height: 2px; margin: 1em 10%;\">"; } if (typeof wDiffNoChange == "undefined") { window.wDiffNoChange = "<hr style=\"height: 2px; margin: 1em 20%;\">"; } window.StringDiff = window.WDiffString; window.WDiffString = function (oldText, newText) {oldText = oldText.replace(/(\r\n)/g, "\n");newText = newText.replace(/(\r\n)/g, "\n");var text = {};text.newWords = [];text.oldWords = [];text.newToOld = [];text.oldToNew = [];text.message = "";var block = {};var outText = "";if (oldText == newText) {outText = newText;outText = WDiffEscape(outText);outText = WDiffHtmlFormat(outText);return outText;}if (oldText == null || (oldText.length == 0)) {outText = newText;outText = WDiffEscape(outText);outText = WDiffHtmlFormat(outText);outText = wDiffHtmlInsertStart + outText + wDiffHtmlInsertEnd;return outText;}if (newText == null || (newText.length == 0)) {outText = oldText;outText = WDiffEscape(outText);outText = WDiffHtmlFormat(outText);outText = wDiffHtmlDeleteStart + outText + wDiffHtmlDeleteEnd;return outText;}WDiffSplitText(oldText, newText, text);WDiffText(text);WDiffDetectBlocks(text, block);outText = WDiffToHtml(text, block);outText = outText.replace(/> ( *)</g, ">&nbsp;$1<");return outText;}; window.WDiffSplitText = function (oldText, newText, text) {oldText = oldText.replace(/[\t\u000b\u00a0\u2028\u2029]+/g, " ");newText = newText.replace(/[\t\u000b\u00a0\u2028\u2029]+/g, " ");var pattern = /[\w]+|\[\[|\]\]|\{\{|\}\}|\n+| +|&\w+;|||=+|\{\||\|\}|\|\-|./g;var result;do {result = pattern.exec(oldText);if (result != null) {text.oldWords.push(result[0]);}} while (result != null);do {result = pattern.exec(newText);if (result != null) {text.newWords.push(result[0]);}} while (result != null);return;}; window.WDiffText = function (text, newStart, newEnd, oldStart, oldEnd, recursionLevel) {symbol = new Object;symbol.newCtr = [];symbol.oldCtr = [];symbol.toNew = [];symbol.toOld = [];newStart = newStart || 0;newEnd = newEnd || text.newWords.length;oldStart = oldStart || 0;oldEnd = oldEnd || text.oldWords.length;recursionLevel = recursionLevel || 0;if (recursionLevel > 10) {return;}var word;for (var i = newStart; i < newEnd; i++) {word = text.newWords[i];if (symbol[word] == null) {symbol[word] = {newCtr: 0, oldCtr: 0, toNew: null, toOld: null};}symbol[word].newCtr++;symbol[word].toNew = i;}for (var j = oldStart; j < oldEnd; j++) {word = text.oldWords[j];if (symbol[word] == null) {symbol[word] = {newCtr: 0, oldCtr: 0, toNew: null, toOld: null};}symbol[word].oldCtr++;symbol[word].toOld = j;}for (var i in symbol) {if (symbol[i].newCtr == 1 && (symbol[i].oldCtr == 1)) {var toNew = symbol[i].toNew;var toOld = symbol[i].toOld;if (!/\s/.test(text.newWords[toNew])) {text.newToOld[toNew] = toOld;text.oldToNew[toOld] = toNew;}}}for (var i = newStart; i < newEnd - 1; i++) {if (text.newToOld[i] != null) {j = text.newToOld[i];if (text.newToOld[i + 1] == null && (text.oldToNew[j + 1] == null)) {if (text.newWords[i + 1] == text.oldWords[j + 1]) {text.newToOld[i + 1] = j + 1;text.oldToNew[j + 1] = i + 1;}}}}for (var i = newEnd - 1; i > newStart; i--) {if (text.newToOld[i] != null) {j = text.newToOld[i];if (text.newToOld[i - 1] == null && (text.oldToNew[j - 1] == null)) {if (text.newWords[i - 1] == text.oldWords[j - 1]) {text.newToOld[i - 1] = j - 1;text.oldToNew[j - 1] = i - 1;}}}}if (wDiffRecursiveDiff) {i = newStart;j = oldStart;while (i < newEnd) {if (text.newToOld[i - 1] != null) {j = text.newToOld[i - 1] + 1;}if (text.newToOld[i] == null && (text.oldToNew[j] == null)) {var iStart = i;var iEnd = i;while (text.newToOld[iEnd] == null && (iEnd < newEnd)) {iEnd++;}var iLength = iEnd - iStart;var jStart = j;var jEnd = j;while (text.oldToNew[jEnd] == null && (jEnd < oldEnd)) {jEnd++;}var jLength = jEnd - jStart;if (iLength > 0 && (jLength > 0)) {if (iLength > 1 || (jLength > 1)) {if (iStart != newStart || iEnd != newEnd || jStart != oldStart || (jEnd != oldEnd)) {WDiffText(text, iStart, iEnd, jStart, jEnd, recursionLevel + 1);}}}i = iEnd;} else {i++;}}}if (wDiffRecursiveDiff) {i = newEnd - 1;j = oldEnd - 1;while (i >= newStart) {if (text.newToOld[i + 1] != null) {j = text.newToOld[i + 1] - 1;}if (text.newToOld[i] == null && (text.oldToNew[j] == null)) {var iStart = i;var iEnd = i + 1;while (text.newToOld[iStart - 1] == null && (iStart >= newStart)) {iStart--;}var iLength = iEnd - iStart;var jStart = j;var jEnd = j + 1;while (text.oldToNew[jStart - 1] == null && (jStart >= oldStart)) {jStart--;}var jLength = jEnd - jStart;if (iLength > 0 && (jLength > 0)) {if (iLength > 1 || (jLength > 1)) {if (iStart != newStart || iEnd != newEnd || jStart != oldStart || (jEnd != oldEnd)) {WDiffText(text, iStart, iEnd, jStart, jEnd, recursionLevel + 1);}}}i = iStart - 1;} else {i--;}}}return;}; window.WDiffToHtml = function (text, block) {var outText = text.message;var blockNumber = 0;var i = 0;var j = 0;var movedAsInsertion;do {var movedIndex = [];var movedBlock = [];var movedLeft = [];var blockText = "";var identText = "";var delText = "";var insText = "";var identStart = "";if (movedAsInsertion != null) {if (movedAsInsertion == false) {identStart += wDiffHtmlBlockEnd;} else {identStart += wDiffHtmlInsertEnd;}movedAsInsertion = null;}if (text.newToOld[i] != j || (blockNumber == 0)) {if ((text.newToOld[i] != null || i >= text.newWords.length) && (text.oldToNew[j] != null || j >= text.oldWords.length)) {var moved = block.newRight[blockNumber];if (moved > 0) {var index = block.newRightIndex[blockNumber];movedIndex.push(index);movedBlock.push(moved);movedLeft.push(false);}moved = block.newLeft[blockNumber];if (moved > 0) {var index = block.newLeftIndex[blockNumber];movedIndex.push(index);movedBlock.push(moved);movedLeft.push(true);}moved = block.newBlock[blockNumber];if (moved > 0) {if (block.newWords[blockNumber] < wDiffBlockMinLength) {identStart += wDiffHtmlInsertStart;movedAsInsertion = true;} else {if (moved > wDiffStyleBlock.length) {moved = wDiffStyleBlock.length;}identStart += WDiffHtmlCustomize(wDiffHtmlBlockStart, moved - 1);movedAsInsertion = false;}}if (i >= text.newWords.length) {i++;} else {j = text.newToOld[i];blockNumber++;}}}if (movedIndex.length == 2) {if (movedIndex[0] > movedIndex[1]) {movedIndex.reverse();movedBlock.reverse();movedLeft.reverse();}}for (var m = 0; m < movedIndex.length; m++) {if (block.newWords[movedIndex[m]] < wDiffBlockMinLength) {var movedStart = block.newStart[movedIndex[m]];var movedLength = block.newLength[movedIndex[m]];var str = "";for (var n = movedStart; n < movedStart + movedLength; n++) {str += text.newWords[n];}str = WDiffEscape(str);str = str.replace(/\n/g, "&para;<br>");blockText += wDiffHtmlDeleteStart + str + wDiffHtmlDeleteEnd;} else {if (movedBlock[m] > wDiffStyleBlock.length) {movedBlock[m] = wDiffStyleBlock.length;}if (movedLeft[m]) {blockText += WDiffHtmlCustomize(wDiffHtmlMovedLeft, movedBlock[m] - 1);} else {blockText += WDiffHtmlCustomize(wDiffHtmlMovedRight, movedBlock[m] - 1);}}}while (i < text.newWords.length && (j < text.oldWords.length)) {if (text.newToOld[i] == null || (text.oldToNew[j] == null)) {break;}if (text.newToOld[i] != j) {break;}identText += text.newWords[i];i++;j++;}while (text.oldToNew[j] == null && (j < text.oldWords.length)) {delText += text.oldWords[j];j++;}while (text.newToOld[i] == null && (i < text.newWords.length)) {insText += text.newWords[i];i++;}var preText = "";var postText = "";if (wDiffWordDiff) {if (delText != "" && (insText != "")) {while (delText.charAt(0) == insText.charAt(0) && delText != "" && (insText != "")) {preText = preText + delText.charAt(0);delText = delText.substr(1);insText = insText.substr(1);}while (delText.charAt(delText.length - 1) == insText.charAt(insText.length - 1) && delText != "" && (insText != "")) {postText = delText.charAt(delText.length - 1) + postText;delText = delText.substr(0, delText.length - 1);insText = insText.substr(0, insText.length - 1);}}}if (blockText != "") {outText += blockText;}if (identText != "") {outText += identStart + WDiffEscape(identText);}outText += preText;if (delText != "") {delText = wDiffHtmlDeleteStart + WDiffEscape(delText) + wDiffHtmlDeleteEnd;delText = delText.replace(/\n/g, "&para;<br>");outText += delText;}if (insText != "") {insText = wDiffHtmlInsertStart + WDiffEscape(insText) + wDiffHtmlInsertEnd;insText = insText.replace(/\n/g, "&para;<br>");outText += insText;}outText += postText;} while (i <= text.newWords.length);outText += "\n";outText = WDiffHtmlFormat(outText);return outText;}; window.WDiffEscape = function (text) {text = text.replace(/&/g, "&amp;");text = text.replace(/</g, "&lt;");text = text.replace(/>/g, "&gt;");text = text.replace(/\"/g, "&quot;");return text;}; window.WDiffHtmlCustomize = function (text, block) {text = text.replace(/\{number\}/, block);text = text.replace(/\{block\}/, wDiffStyleBlock[block]);return text;}; window.WDiffHtmlFormat = function (text) {text = text.replace(/ /g, " &nbsp;");text = text.replace(/\n/g, "<br>");return text;}; window.WDiffDetectBlocks = function (text, block) {block.oldStart = [];block.oldToNew = [];block.oldLength = [];block.oldWords = [];block.newStart = [];block.newLength = [];block.newWords = [];block.newNumber = [];block.newBlock = [];block.newLeft = [];block.newRight = [];block.newLeftIndex = [];block.newRightIndex = [];var blockNumber = 0;var wordCounter = 0;var realWordCounter = 0;if (wDiffShowBlockMoves) {var j = 0;var i = 0;do {if (text.oldToNew[j] != i || (blockNumber == 0)) {if ((text.oldToNew[j] != null || j >= text.oldWords.length) && (text.newToOld[i] != null || i >= text.newWords.length)) {if (blockNumber > 0) {block.oldLength[blockNumber - 1] = wordCounter;block.oldWords[blockNumber - 1] = realWordCounter;wordCounter = 0;realWordCounter = 0;}if (j >= text.oldWords.length) {j++;} else {i = text.oldToNew[j];block.oldStart[blockNumber] = j;block.oldToNew[blockNumber] = text.oldToNew[j];blockNumber++;}}}while (i < text.newWords.length && (j < text.oldWords.length)) {if (text.newToOld[i] == null || (text.oldToNew[j] == null)) {break;}if (text.oldToNew[j] != i) {break;}i++;j++;wordCounter++;if (/\w/.test(text.newWords[i])) {realWordCounter++;}}while (text.oldToNew[j] == null && (j < text.oldWords.length)) {j++;}while (text.newToOld[i] == null && (i < text.newWords.length)) {i++;}} while (j <= text.oldWords.length);var lastMin;var currMinIndex;lastMin = null;for (var i = 0; i < blockNumber; i++) {currMin = null;for (var j = 0; j < blockNumber; j++) {curr = block.oldToNew[j];if (curr > lastMin || (lastMin == null)) {if (curr < currMin || (currMin == null)) {currMin = curr;currMinIndex = j;}}}block.newStart[i] = block.oldToNew[currMinIndex];block.newLength[i] = block.oldLength[currMinIndex];block.newWords[i] = block.oldWords[currMinIndex];block.newNumber[i] = currMinIndex;lastMin = currMin;}for (var i = 0; i < blockNumber; i++) {if (block.newBlock[i] == null) {if (block.newNumber[i] == i) {block.newBlock[i] = 0;}}}for (var i = 0; i < blockNumber - 1; i++) {if (block.newBlock[i] == null && (block.newBlock[i + 1] == null)) {if (block.newNumber[i] - block.newNumber[i + 1] == 1) {if (block.newNumber[i + 1] - block.newNumber[i + 2] != 1 || (i + 2 >= blockNumber)) {if (block.newLength[i] < block.newLength[i + 1]) {block.newBlock[i] = 1;block.newBlock[i + 1] = 0;} else {block.newBlock[i] = 0;block.newBlock[i + 1] = 1;}}}}}j = 1;for (var i = 0; i < blockNumber; i++) {if (block.newBlock[i] == null || (block.newBlock[i] == 1)) {block.newBlock[i] = j++;}}for (var i = 0; i < blockNumber; i++) {for (var j = 0; j < blockNumber; j++) {if (block.newNumber[j] == i) {if (block.newBlock[j] > 0) {if (block.newNumber[j] < j) {block.newRight[i] = block.newBlock[j];block.newRightIndex[i] = j;} else {block.newLeft[i + 1] = block.newBlock[j];block.newLeftIndex[i + 1] = j;}}}}}}return;}; window.WDiffShortenOutput = function (diffText) {diffText = diffText.replace(/<br[^>]*>/g, "\n");var regExpDiff = new RegExp("<\\w+ class=\\\"(\\w+)\\\"[^>]*>(.|\\n)*?<!--\\1-->", "g");var tagStart = [];var tagEnd = [];var i = 0;var found;while ((found = regExpDiff.exec(diffText)) != null) {if (i > 0 && (tagEnd[i - 1] == found.index)) {tagEnd[i - 1] = found.index + found[0].length;} else {tagStart[i] = found.index;tagEnd[i] = found.index + found[0].length;i++;}}if (tagStart.length == 0) {return wDiffNoChange;}var regExpHeading = new RegExp("\\n=+.+?=+ *\\n|\\n\\{\\||\\n\\|\\}", "g");var regExpParagraph = new RegExp("\\n\\n+", "g");var regExpLine = new RegExp("\\n+", "g");var regExpBlank = new RegExp("(<[^>]+>)*\\s+", "g");var rangeStart = [];var rangeEnd = [];var rangeStartType = [];var rangeEndType = [];for (var i = 0; i < tagStart.length; i++) {var found;var lastPos = tagStart[i] - wDiffHeadingBefore;if (lastPos < 0) {lastPos = 0;}regExpHeading.lastIndex = lastPos;while ((found = regExpHeading.exec(diffText)) != null) {if (found.index > tagStart[i]) {break;}rangeStart[i] = found.index;rangeStartType[i] = "heading";}if (rangeStart[i] == null) {lastPos = tagStart[i] - wDiffParagraphBefore;if (lastPos < 0) {lastPos = 0;}regExpParagraph.lastIndex = lastPos;while ((found = regExpParagraph.exec(diffText)) != null) {if (found.index > tagStart[i]) {break;}rangeStart[i] = found.index;rangeStartType[i] = "paragraph";}}if (rangeStart[i] == null) {lastPos = tagStart[i] - wDiffLineBeforeMax;if (lastPos < 0) {lastPos = 0;}regExpLine.lastIndex = lastPos;while ((found = regExpLine.exec(diffText)) != null) {if (found.index > tagStart[i] - wDiffLineBeforeMin) {break;}rangeStart[i] = found.index;rangeStartType[i] = "line";}}if (rangeStart[i] == null) {lastPos = tagStart[i] - wDiffBlankBeforeMax;if (lastPos < 0) {lastPos = 0;}regExpBlank.lastIndex = lastPos;while ((found = regExpBlank.exec(diffText)) != null) {if (found.index > tagStart[i] - wDiffBlankBeforeMin) {break;}rangeStart[i] = found.index;rangeStartType[i] = "blank";}}if (rangeStart[i] == null) {rangeStart[i] = tagStart[i] - wDiffCharsBefore;rangeStartType[i] = "chars";if (rangeStart[i] < 0) {rangeStart[i] = 0;}}regExpHeading.lastIndex = tagEnd[i];if ((found = regExpHeading.exec(diffText)) != null) {if (found.index < tagEnd[i] + wDiffHeadingAfter) {rangeEnd[i] = found.index + found[0].length;rangeEndType[i] = "heading";}}if (rangeEnd[i] == null) {regExpParagraph.lastIndex = tagEnd[i];if ((found = regExpParagraph.exec(diffText)) != null) {if (found.index < tagEnd[i] + wDiffParagraphAfter) {rangeEnd[i] = found.index;rangeEndType[i] = "paragraph";}}}if (rangeEnd[i] == null) {regExpLine.lastIndex = tagEnd[i] + wDiffLineAfterMin;if ((found = regExpLine.exec(diffText)) != null) {if (found.index < tagEnd[i] + wDiffLineAfterMax) {rangeEnd[i] = found.index;rangeEndType[i] = "break";}}}if (rangeEnd[i] == null) {regExpBlank.lastIndex = tagEnd[i] + wDiffBlankAfterMin;if ((found = regExpBlank.exec(diffText)) != null) {if (found.index < tagEnd[i] + wDiffBlankAfterMax) {rangeEnd[i] = found.index;rangeEndType[i] = "blank";}}}if (rangeEnd[i] == null) {rangeEnd[i] = tagEnd[i] + wDiffCharsAfter;if (rangeEnd[i] > diffText.length) {rangeEnd[i] = diffText.length;rangeEndType[i] = "chars";}}}var fragmentStart = [];var fragmentEnd = [];var fragmentStartType = [];var fragmentEndType = [];fragmentStart[0] = rangeStart[0];fragmentEnd[0] = rangeEnd[0];fragmentStartType[0] = rangeStartType[0];fragmentEndType[0] = rangeEndType[0];var j = 1;for (var i = 1; i < rangeStart.length; i++) {if (rangeStart[i] > fragmentEnd[j - 1] + wDiffFragmentJoin) {fragmentStart[j] = rangeStart[i];fragmentEnd[j] = rangeEnd[i];fragmentStartType[j] = rangeStartType[i];fragmentEndType[j] = rangeEndType[i];j++;} else {fragmentEnd[j - 1] = rangeEnd[i];fragmentEndType[j - 1] = rangeEndType[i];}}var outText = "";for (var i = 0; i < fragmentStart.length; i++) {var fragment = diffText.substring(fragmentStart[i], fragmentEnd[i]);var fragment = fragment.replace(/^\n+|\n+$/g, "");if (fragmentStart[i] > 0) {if (fragmentStartType[i] == "chars") {fragment = wDiffOmittedChars + fragment;} else if (fragmentStartType[i] == "blank") {fragment = wDiffOmittedChars + " " + fragment;}}if (fragmentEnd[i] < diffText.length) {if (fragmentStartType[i] == "chars") {fragment = fragment + wDiffOmittedChars;} else if (fragmentStartType[i] == "blank") {fragment = fragment + " " + wDiffOmittedChars;}}if (fragmentStart[i] > 0) {outText += wDiffOmittedLines;}outText += "<div>" + fragment + "</div>";}if (fragmentEnd[i - 1] < diffText.length) {outText = outText + wDiffOmittedLines;}outText = outText.replace(/^(<div>)\n+|\n+(<\/div>)$/g, "$1$2");outText = outText.replace(/\n/g, "<br />");return outText;}; }; var wikEdGreasemonkeyToBody = true; WikEdWrapper(); WikEdSetup();</script>

Producing PDFs from ELUG wiki content

I (Rick) have explored several possibilities to convert wiki content (http://wiki.eclipse.org/EclipseLink/UserGuide) into PDF books and have summarized the results and my observations:

  1. Create PDFs by using the "printer version" of the existing wiki pages.
    Pro: Easy (simply go to each wiki page, select the Printable Version, then Save As... PDF).
    Con: We'll get 160+ separate PDF files that will have to be manually merged into a single book. No intra-linking. No overall TOC or IX. Page formatting cannot be customized.
  2. Using Eclipse+Mylyn to convert wiki syntax to HTML, then generate PDFs
    Pro: Easy (simply import each wiki page, convert to HTML, then print to PDF). Can create a custom CSS to better control page formatting. Mylyn provides application and scripting support, so we could automate many steps.
    Con: Would need dev resources for application customization. Images have to be downloaded separately. Any "generated" content (such as TOC boxes) are lost.
  3. Use FrameMaker (our publishing tool) as the "source" material, from which to generate PDFs and HTMLs. (This is the current method for producing Dali documentation.
    Pro: Gives us complete control over page formatting. The FM->PDF and FM->HTML converters are supported by Oracle ST Doc group. Can export from FM->HTML->Wiki. The FM source files can be added to SVN for version control. Can create scripts to create daily "builds" of PDF, HTML,and Wiki files.
    Con: We would have to convert all wiki pages into Framemaker (manual process, est. 6-8 weeks). The Wiki files would no longer be community developable -- we would be overwriting them (daily) from the pages generated from the FM source files. Community could no longer edit/update documentation directly; only the people with Frame Maker could edit/update the original source files.
  4. Use MediaWiki extensions that allow for the creation of PDFs based on categories (or single pages).
    Pro: Native MediaWiki solution, allows us to continue using the Wiki "as is." Through the use of categories we could potentially create "customized" ELUG guides (e.g., all pages in JPA category).
    Con: The current wiki pages cross multiple categories (due to the original "dump" from JITDG). Requires support from Eclipse webmaster to install the extension and its prerequisites.
  5. Duplicate the wiki content and create a separate wiki namespace for each release.
    Pro: Native MediaWiki solution, allows us to continue using the Wiki "as is." Would have a "frozen" wiki version for each EclipseLink release.
    Con: Requires support from Eclipse webmaster. I have requested new namespaces in the past and was denied. Does not address the PDF creation issues (see #1 & #2, above).


EclipseLink Documentation Plan

For Release 1.0:

  • EclipseLink User's Guide will be created, based on the 11g Oracle TopLink Developer's Guide. The focus will be for end-users of EclipseLink.
    • Publish as HTML on the EclipseLink wiki (see EclipseLink/UserManual for a sample, proposed end-user documentation landing page.)
    • Create crosslinks to/from the EclipseLink Examples
    • Online help for the Eclipse Workbench will direct users to the User's Guide on the wiki.


Specific Deliverables

User's Guide Each wiki page of the User's Guide will be "tagged" to identify the content. These tags (intra-document links) will provide primary navigation among the wiki topics.

For example, a topic like "Configuring EclipseLink Cache Type Using persistence.xml" would be associated with the following categories:

  • Eclipselink User's Guide: Architecture: JPA
  • Eclipselink User's Guide: Version: 1.0
  • Eclipselink User's Guide: Type: Task
  • Eclipselink User's Guide: Status: Draft

This allows end-users to:

  • Ask "Just show me what I need to know about JPA" and not burden them with the whole encyclopedia
  • Quickly zero in on what they really want to know: I want to know how to "Do" something, so I'll look at the tasks; I want to know how to "Understand" something, so I'll look at the concepts
  • Automatically create lists of topics by category

This also allows contributors to:

  • Re-use topics across multiple categories.

An initial, proposed list of categories:

  • Release
    • 1.0
    • 2.0
  • Architecture
    • JPA
    • MOXy
    • EIS
    • XML
  • Topic Type
    • Task
    • Concept
    • Reference
  • Page Status
    • Draft
    • Published

Other Wiki Pages In addition to the documentation-specific wiki pages, we will create navigation (landing) pages to direct users to the specific information.

  • wizard-like guide to a landing page (summary page) that collects all the most relevant documentation links for the selected technology
  • We will also provide landing pages (i.e., multiple entry points), based on specific tasks. Consider the "what can I use EclipseLink for?" question. Based on this view, we would guide the user as follows:
    • What do you want to do with EclipseLink?
      • Persistence or Data Transformation
      • if Persistence then Spring or Java EE or Java SE
        • if Java SE then JPA or Native ORM or XRM or EIS
          • if JPA then: we present a landing page that serves as a starting point for building JPA applications outside of the container
          • list cross-references to relevant Examples
          • list relevant cross-references to the EclipseLink Users's Guide constrained to only JPA in Java SE

Fulltext search

  • Handled via wiki
  • Also added GCSE

Contributors Guidelines For people who want to contribute to the User's Guide (to include style guidelines, word usage, formatting etc.) Based on Eclipse_Doc_Style_Guide, modified for wiki-specifics

End-user Experience

EclipseLink end-users will access the documentation from the EclipseLink wiki.

  • End-user Documentation Landing Page - Provides the primary entry-point and contains the following sections:
    • Getting Started
      • List of topics constrained to those essential for a new user. These topics may include:
        • direct links to the primary areas.
        • Migration
        • Release notes
        • Tips and Tricks
        • Cheatsheets
        • Feature list
        • Legal
    • Learning More - Primary entry point into the User's Guide
      • List of topics constrained to more advanced, experimental tasks.
      • Links to Forums, Training, Support, Release Notes, Legal, etc.
    • Using EclipseLink - Primary entry point into specific Examples pages
      • Primary means of finding information based on technology and purpose (and other criteria).