9 Replies Latest reply on Sep 23, 2008 10:33 AM by wilbur.harvey

    Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27

    wilbur.harvey Novice

       

      It worked fine under the 2.6.26 kernel.

       

       

      Does anyone know how to get around this?

       

       

      Here is the error message:

       

       

      Using 2.6.x kernel build system.

      make: Entering directory `/tmp/vmware-config0/vmmon-only'

      make -C /lib/modules/2.6.27-2-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

      make[1]: Entering directory `/usr/src/linux-headers-2.6.27-2-generic'

        CC   /tmp/vmware-config0/vmmon-only/linux/driver.o

      In file included from /tmp/vmware-config0/vmmon-only/./include/x86.h:38,

                       from /tmp/vmware-config0/vmmon-only/linux/driver.h:29,

                       from /tmp/vmware-config0/vmmon-only/linux/driver.c:101:

      /tmp/vmware-config0/vmmon-only/./include/x86paging.h:76:1: warning: "PTE_PFN_MASK" redefined

      In file included from include/asm/pda.h:8,

                       from include/asm/current.h:19,

                       from include/asm/processor.h:15,

                       from include/linux/prefetch.h:14,

                       from include/linux/list.h:6,

                       from include/linux/module.h:9,

                       from /tmp/vmware-config0/vmmon-only/./include/compat_module.h:27,

                       from /tmp/vmware-config0/vmmon-only/linux/driver.c:26:

      include/asm/page.h:22:1: warning: this is the location of the previous definition

      In file included from /tmp/vmware-config0/vmmon-only/linux/vmhost.h:27,

                       from /tmp/vmware-config0/vmmon-only/linux/driver.c:121:

      /tmp/vmware-config0/vmmon-only/./include/compat_semaphore.h:23:27: error: asm/semaphore.h: No such file or directory

      make[2]: *** /tmp/vmware-config0/vmmon-only/linux/driver.o Error 1

      make[1]: *** Error 2

      make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-2-generic'

      make: *** http://vmmon.ko Error 2

      make: Leaving directory `/tmp/vmware-config0/vmmon-only'

      Unable to build the vmmon module.

       

       

      For more information on how to troubleshoot module-related problems, please

      visit our Web site at "http://www.vmware.com/go/unsup-linux-products" and

      "http://www.vmware.com/go/unsup-linux-tools".

       

       

      Execution aborted.

       

       

       

       

       

        • 1. Re: Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27
          nick.couchman Champion

          First, are you sure that the kernel devel/source package is installed?  Second, kernel 2.6.27 isn't even considered stable yet - I'd be very surprised if VMware has given any attention to getting Server to run on this kernel.  Any reason you need to run 2.6.27 or the latest Ubuntu as the host?

          • 2. Re: Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27
            wilbur.harvey Novice

             

            Yes, I have all the headers and compilers installed.

             

             

            I wasn't having any problems until the new kernel came out.

             

             

            I tried going back to the previous kernel, but somehow mdadm is broken and my main raid volume isn't recognized.

             

             

            On my macbook, the new network manager in Intrepid allows me to use my tmobile dash as a modem to connect to the internet, and the wireless drivers work without having to compile mad wifi every time there is a kernel update.

             

             

            I think that the 2.6.27 kernel will be released soon, it is already at rc5 status.

             

             

            • 3. Re: Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27
              nick.couchman Champion

              The 2.6.27 kernel will probably be released soon, yes, but keep in mind that VMware lags behind the kernel release a little bit - it takes them a while to add in support for newer kernels.  I'd figure a few weeks to a couple of months after the kernel release before VMware supports it "out-of-the-box."  There will probably be "community patches" for the VMware installer before then that will allow you to run it on 2.6.27.

              • 4. Re: Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27
                reames Lurker

                 

                I've done some poking around this one.  It appears that the kernel_thread call is deprecated, and was finally removed in 2.6.27.

                 

                 

                According to the file "Documentation/feature-removal-schedule.txt" (in the kernel source tree):

                 

                What:   remove EXPORT_SYMBOL(kernel_thread)
                When:   August 2006
                Files:  arch//kernel/_ksyms.c
                Check:  kernel_thread
                Why:    kernel_thread is a low-level implementation detail.  Drivers should
                use the <linux/kthread.h> API instead which shields them from
                implementation details and provides a higherlevel interface that
                prevents bugs and code duplication
                Who:    Christoph Hellwig <hch@lst.de>

                 

                Using kthread may present a challenge, as that API seems to use task handles instead of process ID's to identify threads.

                 

                 

                 

                 

                 

                • 5. Re: Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27
                  nick.couchman Champion

                  Which seems to me to mean that it may take even longer to get VMware products working with kernels 2.6.27 and later...

                  • 6. Re: Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27
                    wilbur.harvey Novice

                     

                    These guys already seem to have a handle on what needs to be fixed

                     

                     

                    http://groups.google.com/group/vmkernelnewbies/browse_thread/thread/3e6ba4b077c2e652#

                     

                     

                    It doesn't seem to be overly difficult.

                     

                     

                    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} () Click to disable", 'wikEdLogo error alt': "wikEd error", 'wikEdLogo error title': "Loading error - wikEd () Click to disable", 'wikEdLogo browser alt': "(wikEd)", 'wikEdLogo browser title': "Browser not supported - wikEd ()", 'wikEdLogo disabled alt': "(wikEd)", 'wikEdLogo disabled title': "Disabled - wikEd () 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  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", ""], 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: " | [\"http://en.wikipedia.org/wiki/User:Cacycle/wikEd_help\"]", '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\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"});};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(); background-position: bottom right; background-repeat: no-repeat;", '.wikEdTabPlain': "white-space: pre;", '.wikEdCtrl': "white-space: pre; background-image: url(); background-position: center center; background-repeat: no-repeat; margin: 0 1px;", '.wikEdCtrl:before': "content: '\xA0'", '.wikEdBlank': "white-space: -moz-pre-wrap; background-image: url(); 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, 2: ["wikEdRedo", "wikEdButtonInactive", wikEdText['wikEdRedo title'], wikEdImage.redo, "16", "16", wikEdText, 3: ["wikEdBold", "wikEdButton", wikEdText['wikEdBold title'], wikEdImage.bold, "16", "16", wikEdText, 4: ["wikEdItalic", "wikEdButton", wikEdText['wikEdItalic title'], wikEdImage.italic, "16", "16", wikEdText, 5: ["wikEdUnderline", "wikEdButton", wikEdText['wikEdUnderline title'], wikEdImage.underline, "16", "16", wikEdText, 6: ["wikEdStrikethrough", "wikEdButton", wikEdText['wikEdStrikethrough title'], wikEdImage.strikethrough, "16", "16", wikEdText, 7: ["wikEdNowiki", "wikEdButton", wikEdText['wikEdNowiki title'], wikEdImage.nowiki, "16", "16", wikEdText, 8: ["wikEdSuperscript", "wikEdButton", wikEdText['wikEdSuperscript title'], wikEdImage.superscript, "16", "16", wikEdText, 9: ["wikEdSubscript", "wikEdButton", wikEdText['wikEdSubscript title'], wikEdImage.subscript, "16", "16", wikEdText, 10: ["wikEdRef", "wikEdButton", wikEdText['wikEdRef title'], wikEdImage.ref, "16", "16", wikEdText, 12: ["wikEdCase", "wikEdButton", wikEdText['wikEdCase title'], wikEdImage.case, "16", "16", wikEdText, 25: ["wikEdRedirect", "wikEdButton", wikEdText['wikEdRedirect title'], wikEdImage.redirect, "16", "16", wikEdText, 13: ["wikEdUndoAll", "wikEdButton", wikEdText['wikEdUndoAll title'], wikEdImage.undoAll, "16", "16", wikEdText, 14: ["wikEdRedoAll", "wikEdButtonInactive", wikEdText['wikEdRedoAll title'], wikEdImage.redoAll, "16", "16", wikEdText, 15: ["wikEdWikiLink", "wikEdButton", wikEdText['wikEdWikiLink title'], wikEdImage.wikiLink, "16", "16", wikEdText, 16: ["wikEdWebLink", "wikEdButton", wikEdText['wikEdWebLink title'], wikEdImage.webLink, "16", "16", wikEdText, 17: ["wikEdHeading", "wikEdButton", wikEdText['wikEdHeading title'], wikEdImage.heading, "16", "16", wikEdText, 19: ["wikEdBulletList", "wikEdButton", wikEdText['wikEdBulletList title'], wikEdImage.bulletList, "16", "16", wikEdText, 20: ["wikEdNumberList", "wikEdButton", wikEdText['wikEdNumberList title'], wikEdImage.numberList, "16", "16", wikEdText, 21: ["wikEdIndentList", "wikEdButton", wikEdText['wikEdIndentList title'], wikEdImage.indentList, "16", "16", wikEdText, 22: ["wikEdDefinitionList", "wikEdButton", wikEdText['wikEdDefinitionList title'], wikEdImage.definitionList, "16", "16", wikEdText, 23: ["wikEdImage", "wikEdButton", wikEdText['wikEdImage title'], wikEdImage.image, "16", "16", wikEdText, 24: ["wikEdTable", "wikEdButton", wikEdText['wikEdTable title'], wikEdImage.table, "16", "16", wikEdText, 11: ["wikEdReferences", "wikEdButton", wikEdText['wikEdReferences title'], wikEdImage.references, "16", "16", wikEdText, 26: ["wikEdWikify", "wikEdButton", wikEdText['wikEdWikify title'], wikEdImage.wikify, "16", "16", wikEdText, 27: ["wikEdTextify", "wikEdButton", wikEdText['wikEdTextify title'], wikEdImage.textify, "16", "16", wikEdText, 77: ["wikEdRefHide", "wikEdButtonUnchecked", wikEdText['wikEdRefHide title'], wikEdImage.refHide, "16", "16", wikEdText, 29: ["wikEdTextZoom", "wikEdButton", wikEdText['wikEdTextZoom title'], wikEdImage.textZoom, "16", "16", wikEdText, 30: ["wikEdClearHistory", "wikEdButton", wikEdText['wikEdClearHistory title'], wikEdImage.clearHistory, "16", "16", wikEdText, 31: ["wikEdScrollToPreview", "wikEdButton", wikEdText['wikEdScrollToPreview title'], wikEdImage.scrollToPreviewDown, "16", "16", wikEdText, 32: ["wikEdScrollToEdit", "wikEdButton", wikEdText['wikEdScrollToEdit title'], wikEdImage.scrollToEditDown, "16", "16", wikEdText, 33: ["wikEdUseWikEd", "wikEdButtonChecked", wikEdText['wikEdUseWikEd title'], wikEdImage.useWikEd, "16", "16", wikEdText, 34: ["wikEdHighlightSyntax", "wikEdButtonUnchecked", wikEdText['wikEdHighlightSyntax title'], wikEdImage.highlightSyntax, "16", "16", wikEdText, 35: ["wikEdSource", "wikEdButton", wikEdText['wikEdSource title'], wikEdImage.source, "16", "16", wikEdText, 75: ["wikEdCloseToolbar", "wikEdButtonUnchecked", wikEdText['wikEdCloseToolbar title'], wikEdImage.closeToolbar, "16", "16", wikEdText, 36: ["wikEdUsing", "wikEdButtonUnchecked", wikEdText['wikEdUsing title'], wikEdImage.using, "16", "16", wikEdText, 37: ["wikEdFullScreen", "wikEdButtonUnchecked", wikEdText['wikEdFullScreen title'], wikEdImage.fullScreen, "16", "16", wikEdText, 79: ["wikEdTableMode", "wikEdButtonUnchecked", wikEdText['wikEdTableMode title'], wikEdImage.tableMode, "16", "16", wikEdText, 39: ["wikEdFindAll", "wikEdButton", wikEdText['wikEdFindAll title'], wikEdImage.findAll, "16", "16", wikEdText, 40: ["wikEdFindPrev", "wikEdButton", wikEdText['wikEdFindPrev title'], wikEdImage.findPrev, "16", "16", wikEdText, 41: ["wikEdFindNext", "wikEdButton", wikEdText['wikEdFindNext title'], wikEdImage.findNext, "16", "16", wikEdText, 43: ["wikEdJumpPrev", "wikEdButton", wikEdText['wikEdJumpPrev title'], wikEdImage.jumpPrev, "16", "16", wikEdText, 44: ["wikEdJumpNext", "wikEdButton", wikEdText['wikEdJumpNext title'], wikEdImage.jumpNext, "16", "16", wikEdText, 46: ["wikEdReplaceAll", "wikEdButton", wikEdText['wikEdReplaceAll title'], wikEdImage.replaceAll, "16", "16", wikEdText, 47: ["wikEdReplacePrev", "wikEdButton", wikEdText['wikEdReplacePrev title'], wikEdImage.replacePrev, "16", "16", wikEdText, 48: ["wikEdReplaceNext", "wikEdButton", wikEdText['wikEdReplaceNext title'], wikEdImage.replaceNext, "16", "16", wikEdText, 49: ["wikEdCaseSensitive", "wikEdButtonUnchecked", wikEdText['wikEdCaseSensitive title'], wikEdImage.caseSensitive, "16", "16", wikEdText, 50: ["wikEdRegExp", "wikEdButtonUnchecked", wikEdText['wikEdRegExp title'], wikEdImage.regExp, "16", "16", wikEdText, 51: ["wikEdFindAhead", "wikEdButtonUnchecked", wikEdText['wikEdFindAhead title'], wikEdImage.findAhead, "16", "16", wikEdText, 52: ["wikEdFixBasic", "wikEdButton", wikEdText['wikEdFixBasic title'], wikEdImage.fixBasic, "16", "16", wikEdText, 53: ["wikEdFixHtml", "wikEdButton", wikEdText['wikEdFixHtml title'], wikEdImage.fixHtml, "16", "16", wikEdText, 54: ["wikEdFixCaps", "wikEdButton", wikEdText['wikEdFixCaps title'], wikEdImage.fixCaps, "16", "16", wikEdText, 55: ["wikEdfixUnicode", "wikEdButton", wikEdText['wikEdfixUnicode title'], wikEdImage.fixUnicode, "16", "16", wikEdText, 56: ["wikEdFixAll", "wikEdButton", wikEdText['wikEdFixAll title'], wikEdImage.fixAll, "16", "16", wikEdText, 57: ["wikEdFixRegExTypo", "wikEdButton", wikEdText['wikEdFixRegExTypo title'], wikEdImage.fixRegExTypo, "16", "16", wikEdText, 58: ["wikEdFixDashes", "wikEdButton", wikEdText['wikEdFixDashes title'], wikEdImage.fixDash, "16", "16", wikEdText, 59: ["wikEdFixPunct", "wikEdButton", wikEdText['wikEdFixPunct title'], wikEdImage.fixPunct, "16", "16", wikEdText, 60: ["wikEdFixMath", "wikEdButton", wikEdText['wikEdFixMath title'], wikEdImage.fixMath, "16", "16", wikEdText, 61: ["wikEdFixChem", "wikEdButton", wikEdText['wikEdFixChem title'], wikEdImage.fixChem, "16", "16", wikEdText, 62: ["wikEdFixUnits", "wikEdButton", wikEdText['wikEdFixUnits title'], wikEdImage.fixUnits, "16", "16", wikEdText, 65: ["wikEdClose", "wikEdButton", wikEdText['wikEdClose title'], wikEdImage.close, "16", "16", wikEdText, 66: ["wikEdScrollToPreview2", "wikEdButton", wikEdText['wikEdScrollToPreview2 title'], wikEdImage.scrollToPreviewDown, "16", "16", wikEdText, 67: ["wikEdScrollToEdit2", "wikEdButton", wikEdText['wikEdScrollToEdit2 title'], wikEdImage.scrollToEdit, "16", "16", wikEdText, 70: ["wikEdClose2", "wikEdButton", wikEdText['wikEdClose2 title'], wikEdImage.close, "16", "16", wikEdText, 71: ["wikEdScrollToPreview3", "wikEdButton", wikEdText['wikEdScrollToPreview3 title'], wikEdImage.scrollToPreview, "16", "16", wikEdText, 72: ["wikEdScrollToEdit3", "wikEdButton", wikEdText['wikEdScrollToEdit3 title'], wikEdImage.scrollToEdit, "16", "16", wikEdText, 78: ["wikEdDiff", "wikEdButtonUnchecked", wikEdText['wikEdDiff title'], wikEdImage.wikEdDiff, "16", "16", wikEdText, 74: ["wikEdScrollToEdit4", "wikEdButtonSolo", wikEdText['wikEdScrollToEdit4 title'], wikEdImage.scrollToEditDown, "16", "16", wikEdText, 76: [http://"wikEdDummy", "wikEdButtonDummy", "", wikEdImage.dummy, "16", "16", "", ""|http://"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, ], preview2: ["wikEdButtonBarPreview2", "wikEdButtonBarPreview2", "wikEdButtonsPreview2", "wikEdButtonsPreview2", 0, null, ], jump: ["wikEdButtonBarJump", "wikEdButtonBarJump", "wikEdButtonsJump", "wikEdButtonsJump", 0, null, ]});};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 = http://;}if (typeof wikEdOffHook == "undefined") {window.wikEdOffHook = |http://;}if (typeof wikEdOffHook == "undefined") {window.wikEdOffHook = [];}if (typeof wikEdTextareaHook == "undefined") {window.wikEdTextareaHook = http://;}if (typeof wikEdFrameHook == "undefined") {window.wikEdFrameHook = |http://;}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 = http://;window.wikEdSavedName = |http://;window.wikEdSavedName = [];window.wikEdInputElement = http://;window.wikEdSelectElement = |http://;window.wikEdSelectElement = [];window.wikEdCheckMarker = [];window.wikEdCheckMarker[true] = "\u2666";window.wikEdCheckMarker[http://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 = |http://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 = http://;}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 = |http://;}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 = http://;window.wikEdDebugTimer = |http://;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[http://'wikEd.js'|http://'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[http://'diff.js'|http://'diff.js'] == null)) {if (typeof WDiffString == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffScriptSrc;head.appendChild(script);}wikEdExternalScripts[http://'diff.js'|http://'diff.js'] = true;}if (wikEdLoadDiff == true && (wikEdExternalScripts[http://'wikEdDiff.js'|http://'wikEdDiff.js'] == null)) {if (typeof WikEdDiff == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffSrc;head.appendChild(script);}wikEdExternalScripts[http://'wikEdDiff.js'|http://'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[http://'instaview.js'|http://'instaview.js'] == null)) {if (typeof InstaView == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdInstaViewSrc;head.appendChild(script);}wikEdExternalScripts[http://'instaview.js'|http://'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")[http://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 = |http://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 += "";if (wikEdMozilla == true) {html += "";} else {html += "";}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[http://'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 = |http://'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[http://'wikEdFindSelect title'];wikEdFieldHist.replace = |http://'wikEdFindSelect title';wikEdFieldHist.replace = [];wikEdSavedName.replace = "wikEdReplaceHistory";wikEdInputElement.replace = new Object(wikEdReplaceText);wikEdSelectElement.replace = new Object(document.getElementById("wikEdReplaceSelect"));wikEdSelectElement.replace.title = wikEdText[http://'wikEdReplaceSelect title'];if (wikEdSummaryInputWrapper != null) {wikEdFieldHist.summary = |http://'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  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 += "

                    ";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 += "!|id=|title=|height=|alt=|width=|class=|src=!";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 += " ";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", );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(/(


                    )

                     

                    .?<\/h2>(.|\n)?


                    (.|\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(/()/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, "<"wikEdUndoAll":if (wikEdLastVersion == null) {wikEdLastVersion = obj.changed.plain;}obj.changed.plain = wikEdOrigVersion;obj.changed.plain = obj.changed.plain.replace(/&/g, "&");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 = "[[http://" + obj.changed.plain + "]|http://" + 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 = "[http://" + obj.changed.plain + "|http://" + 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|$)/g, "$1$2 $3 $2");obj.changed.plain = obj.changed.plain.replace(/(|\n)=(?!=) (?) *=(?=\n|$)/g, "$1$2");obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=) (?) *=(?=\n|$)/g, "$1$2 $3 $2");obj.changed.keepSel = true;break;case "wikEdIncreaseHeading":obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=) (?) =+(?=\n|$)/g, "$1=$2 $3 $2=");if (/\n/.test(obj.changed.plain) == false) {obj.changed.plain = obj.changed.plain.replace(/(|\n)([\n]?)(?=\n|$)/g, "$1== $2 ==");}obj.changed.plain = obj.changed.plain.replace(/(|\n)(=) (?) *=(?=\n|$)/g, "$1$2 $3 $2");obj.changed.keepSel = true;break;case "wikEdIncreaseBulletList":obj.changed.plain = obj.changed.plain.replace(/(+)/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(/()/g, function (p, p1) {p1 = p1.replace(/^[\*\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdIncreaseNumberList":obj.changed.plain = obj.changed.plain.replace(/()/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(/(+)/g, function (p, p1) {p1 = p1.replace(/^[\\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdIncreaseIndentList":obj.changed.plain = obj.changed.plain.replace(/()/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(/()/g, function (p, p1) {p1 = p1.replace(/ *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdDefinitionList":obj.changed.plain = obj.changed.plain.replace(/(+)/g, function (p, p1) {p1 = p1.replace(/ *(+) *()/g, "; $1 : ");return p1;});break;case "wikEdImage":if (obj.changed.plain != "") {obj.changed.plain = "[[Image:" + wikEdText['image filename'] + "|thumb|" + wikEdText['image width'] + "px|http://" + obj.changed.plain + "]]";} else {obj.changed.plain = "[[Image:" + wikEdText['image filename'] + "|thumb|" + wikEdText[ ]]";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|+ " + wikEdText['table caption'] + "\n! " + wikEdText['table heading'] + " !! " + wikEdText['table heading'] + "\n|-\n| " + wikEdText['table cell'] + " || " + wikEdText['table cell'] + "\n|-\n| " + wikEdText['table cell'] + " || " + wikEdText['table cell'] + "\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 = "" + wikEdText['redirect article link'] + "";}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, "<"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, "&");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, "&");obj.changed.plain = obj.changed.plain.replace(//g, ">");highlightSyntax = false;break;case "wikEdInsertTags":var tagOpen = parameters[0] || "";var tagClose = parameters[1] || "";var sampleText = parameters[2] || "";tagOpen = tagOpen.replace(/&/g, "&");tagOpen = tagOpen.replace(//g, ">");tagClose = tagClose.replace(/&/g, "&");tagClose = tagClose.replace(//g, ">");tagsampleText = sampleText.replace(/&/g, "&");tagsampleText = sampleText.replace(//g, ">");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, "$1<!wikEdTabPlain>");}obj.html = obj.html.replace(/  /g, "  ");obj.html = obj.html.replace(/  /g, "  ");obj.html = obj.html.replace(/\n/g, "

                    ");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[>]>()/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[>]>()/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 = ;obj.focusPara = ;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[>]>()/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[>]>()/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[>]>()/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 = ;obj.selectionPara = ;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[>]>()/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[>]>()/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[>]>()/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, "<"\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| | )\n/g, "\n");obj.plain = obj.plain.replace(/\n( | |\t)\n/g, "\n\n");obj.plain = obj.plain.replace(/(|\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|$]/g, "$1\n\n$3\n\n");obj.plain = obj.plain.replace(/(|\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(/\[\[ (?) *\]\]/g, "[[$1]]");obj.plain = obj.plain.replace(/\[ (?) \]/g, "[ +\]\]/g, "]");obj.plain = obj.plain.replace(/ +\| \}\}/g, "|}}");obj.plain = obj.plain.replace(/\n(= ? =\n)\n(\{\{.*?\}\})/g, "\n$1$2");obj.plain = obj.plain.replace(/(&lt;!) (?) *(&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\'\" \]\}\)]) *(http://\.\,)(?=([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 = "&#0" + parseInt(wikEdSupportedChars[i][0], 16) + ";|";regExpStr += "&#x0" + wikEdSupportedChars[i][0] + ";";var regExp = new RegExp(regExpStr, "gi");obj.plain = obj.plain.replace(regExp, replaceChar);regExpStr = "&" + wikEdSupportedChars[i][1] + ";";regExp = new RegExp(regExpStr, "g");obj.plain = obj.plain.replace(regExp, replaceChar);}for (var i = 0; i < wikEdProblemChars.length; i++) {replaceChar = "&" + wikEdProblemChars[i][1] + ";";regExpStr = "&#0" + parseInt(wikEdProblemChars[i][0], 16) + ";|";regExpStr += "&#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 = "&" + wikEdSpecialChars[i][1] + ";";var regExpStr = "&#0" + parseInt(wikEdSpecialChars[i][0], 16) + ";|";regExpStr += "&#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(/−/g, "\u2212");p1 = p1.replace(/·/g, "\xB7");p1 = p1.replace(/()-(\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(/()\^(\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|¹)/g, "&lt;sup&gt;1&lt;/sup&gt;");p1 = p1.replace(/(\u00b2|²)/g, "&lt;sup&gt;2&lt;/sup&gt;");p1 = p1.replace(/(\u00b3|³)/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(/(|)h2o(|$)/g, "$1H2O$2");obj.plain = obj.plain.replace(/(|)h3o/g, "$1H3O");obj.plain = obj.plain.replace(/(|)oh-/g, "$1OH+");var regExp = new RegExp("(|)(" + realElements.toLowerCase() + pseudoElements.toLowerCase() + ")(|$)", "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(/−/g, "\u2212");obj.plain = obj.plain.replace(/·/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;|↔|\u21cc|\u2190 *\u2192) *()/g, " <=> ");obj.plain = obj.plain.replace(/(|\)|&gt;) +(-|\u2212) +(|\()/g, "$1 \u2212 $3");return;};

                              window.WikEdFixUnits = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/°|&#00b0;/g, "\xB0");obj.plain = obj.plain.replace(/&#00b5;|μ|µ/g, "\xB5");obj.plain = obj.plain.replace(/Ω|&#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)(|$)/g, " k$1$2");obj.plain = obj.plain.replace(/ m(bit\/s|B\/s)(|$)/g, " M$1$2");obj.plain = obj.plain.replace(/ g(bit\/s|B\/s)(|$)/g, " G$1$2");obj.plain = obj.plain.replace(/ t(bit\/s|B\/s)(|$)/g, " T$1$2");obj.plain = obj.plain.replace(/ e(bit\/s|B\/s)(|$)/g, " E$1$2");return;};

                              window.WikEdFixDashes = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/—/g, "\u2014");obj.plain = obj.plain.replace(/–/g, "\u2013");obj.plain = obj.plain.replace(/−/g, "\u2212");obj.plain = obj.plain.replace(/([a-zA-Z\'\" \]\}\)])( | )* ( | )([a-zA-Z\'\" \[\{\(])/g, "$1\u2014$4");obj.plain = obj.plain.replace(/([a-zA-Z\'\" \]\}\)])( | )--( | )*([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\'\" \]\}])( | )(\u2212| )( | )*([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, "

                              ");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|))(.*?)?$/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(/(+[ \'\"]\[\[)(?)(\]\])/gm, function (p, p1, p2, p3) {p2 = p2.replace(/((\&\w+\;||\d))(.)$/, 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;||\d))(.)$/, 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|))(.*? =)$/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'] + ":()(*
                    ]
                    ])", "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("{{
                    slang
                    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 < 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(".*", "g");var plainPrev = "";var plain = "";for (var i = startNodeIndex; i >= 0; i--) {plainPrev = plain;plain = whole.plainArray[i];plain = plain.replace(/&/g, "&");plain = plain.replace(/&lt;/g, "<"[^
                    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(/&/g, "&");plain = plain.replace(/&lt;/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[http://whole.plainArray.length - 1|http://whole.plainArray.length - 1]);}if (foundLine == false) {line.range.setEndAfter(whole.plainNode[http://whole.plainArray.length - 1|http://whole.plainArray.length - 1]);}if (foundWord == false) {word.range.setEndAfter(whole.plainNode[http://whole.plainArray.length - 1|http://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

                     

                                   ]>\s<!\[if !supportLists\]>.?<!\[endif\]>\s(.?)\s<\/p>\s()/g, " $1\n");var footnotes = {};obj.html = obj.html.replace(/

                    <div\b[>               ]* id="ftn(\d+)"[>]>\s

                     

                                   \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 "<"";}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, "&");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)

                    (\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)(\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)

                    |                    (\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[>                    ]>()/gi, "\0");obj.html = obj.html.replace(/[\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[^>]
                    )>(.?))";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(/\.({2})/g, "%$1");linkArticleAnchor = decodeURIComponent(linkArticleAnchor);linkArticleAnchor = linkArticleAnchor.replace(/_\d$/g, "");}if (hrefUrlParam != null) {regExp = new RegExp("(^|&)(
                    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\-?))/.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[http://1].substr(0, 1).toUpperCase() + linkText.substr(1) + "]|http://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") + "(+)$";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&db=pubmed&.*?&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("<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\|+\}\})/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(/ |/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 "<"$1$4$6");obj.html = obj.html.replace(/\u0000(={1,6})\s+\1\u0000/g, "\0");obj.html = obj.html.replace(/(\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, "<"\n");obj.html
                    =
                    obj.html.replace(/\n/g,
                    "

                                                       ");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\-]): ; *()/g, "$1");attribValue = attribValue.replace(/(| )(): *(-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(/ /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(/&/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, "$1<!wikEdListTag>$4</span><!wikEdListLine>");if (singleLine != true) {obj.html = obj.html.replace(/(([\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))()(.?)$/gm, "<span class=\"wikEdSpaceLine\">$1<span class=\"wikEdSpaceTag\">$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|<[>]>))(=)(?)(=+)(?=(|<[^>]>|\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$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)/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|$))/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|$))/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:|mailto:)[\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]*
                    ])?[^

                    |http://])))(.?)(
                    ]
                    ])", "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|\dpx|\dx\dpx)$/.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((\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
                    +
                    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)((:)+)/, "$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)((:)+)/, "$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((\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((\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, "&");var regExp = new RegExp("([" + wikEdControlCharsStr + "])", "g");obj.html = obj.html.replace(regExp, function (p, p1) {if (p1 == "\t") {p1 = "<span class=\"wikEdTab\" title=\"" + wikEdControlChars[http://p1.charCodeAt(0).toString()|http://p1.charCodeAt(0).toString()]+ "\">" + p1 + "</span><!wikEdTab>";} else if (p1 != "\n") {p1 = "<span class=\"wikEdCtrl\" title=\"" + wikEdControlChars[http://p1.charCodeAt(0).toString()|http://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[http://p1.charCodeAt(0).toString()|http://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, """);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(/ /g, " ");obj.plain = obj.plain.replace(/&lt;/g, "<"&lt;");if
                    (wikEdHighlightSyntax
                    ==
                    true)
                    {obj.whole
                    =
                    true;WikEdHighlightSyntax(obj);}
                    else
                    {obj.html
                    =
                    obj.html.replace(/(\t)/g,
                    "$1<!wikEdTabPlain>");}obj.html = obj.html.replace(/  /g, "  ");obj.html = obj.html.replace(/  /g, "  ");obj.html = obj.html.replace(/ \n/g, " \n");obj.html = obj.html.replace(/\n/g, "_

                    _                                   ");if (wikEdMSIE == true) {} else {obj.sel = WikEdGetSelection();WikEdRemoveAllRanges(obj.sel);}if (wikEdFrameBody.firstChild == null || (wikEdFrameBody.innerHTML == "_

                    _                                   ")) {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(); _"\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|$))/g);if (heading != null) {for (var i = 0; i< heading.length; i) {var headingMatch = heading[i].match(/\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 = http://;obj.plainNode = |http://;obj.plainNode = [];obj.plainStart = http://;obj.plainPos = |http://;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[http://childNode.nodeName|http://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 = http://;obj.plainNode = |http://;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[http://childNode.nodeName|http://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 += "</"&gt;");obj.html += value;obj.plain += value;break;case 4:obj.html += "<![CDATA[http://" + childNode.nodeValue + "]|http://" + 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, "&");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(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", );} 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", );}} 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 = ;}WikEdDiffInitImage(wikEdImage, );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[http://'diff.js'|http://'diff.js'] == null) {if (typeof WDiffString == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffScriptSrc;head.appendChild(script);}wikEdExternalScripts[http://'diff.js'|http://'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(/(\?|&)oldid=(\d+)/);var versionMatchNew = tdNew.innerHTML.match(/(\?|&)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(/&<[>style=\"text-decoration: none; color: inherit; color: expression(parentElement.currentStyle.color);\" title=\"" + linkTitle + "\">" + preTag + "" + 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, "<[>style = \"text-decoration: none; color: inherit; color: expression(parentElement.currentStyle.color)\" title=\"" + articleTitle + "\">" + preTag + "" + 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(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 = "

                    <!wDiffHtmlMovedRight>";

                                                       }

                                                       if (typeof wDiffHtmlMovedLeft == "undefined") {

                                                       window.wDiffHtmlMovedLeft = "

                    <!wDiffHtmlMovedLeft>";

                                                       }

                                                       if (typeof wDiffHtmlBlockStart == "undefined") {

                                                       window.wDiffHtmlBlockStart = ""; } if (typeof wDiffHtmlBlockEnd == "undefined") { window.wDiffHtmlBlockEnd = "<!wDiffHtmlBlock>";

                                                       }

                                                       if (typeof wDiffHtmlDeleteStart == "undefined") {

                                                       window.wDiffHtmlDeleteStart = ""; } if (typeof wDiffHtmlDeleteEnd == "undefined") { window.wDiffHtmlDeleteEnd = "<!wDiffHtmlDelete>";

                                                       }

                                                       if (typeof wDiffHtmlInsertStart == "undefined") {

                                                       window.wDiffHtmlInsertStart = ""; } if (typeof wDiffHtmlInsertEnd == "undefined") { window.wDiffHtmlInsertEnd = "<!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 = "

                    -


                                                       ";

                                                       }

                                                       if (typeof wDiffNoChange == "undefined") {

                                                       window.wDiffNoChange = "-----                                   ";

                                                       }

                                                       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 = http://;text.oldWords = |http://;text.oldWords = [];text.newToOld = http://;text.oldToNew = |http://;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  -


                    == null && (jEnd< oldEnd)) {jEnd+;}var jLength = jEnd - jStart;if (iLength >
                    <oldEnd)) {jEnd
                    +;}var jLength="jEnd" - jStart;if (iLength>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, "¶_

                    _                                   ");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, "¶_

                    _                                   ");outText += delText;}if (insText != "") {insText = wDiffHtmlInsertStart + WDiffEscape(insText) + wDiffHtmlInsertEnd;insText = insText.replace(/\n/g, "¶_

                    _                                   ");outText += insText;}outText += postText;} while (i<=text.newWords.length);outText+="\n";outText=WDiffHtmlFormat(outText);returnoutText;};
                    window.WDiffEscape=function(text){text=text.replace(/&/g,"&");text=text.replace(/</g,"&lt;");text=text.replace(/>/g, "&gt;");text = text.replace(/\"/g, """);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, "  ");text = text.replace(/\n/g, "_

                    _                                   ");return text;};

                                                       window.WDiffDetectBlocks = function (text, block) {block.oldStart = http://;block.oldToNew = |http://;block.oldToNew = [];block.oldLength = http://;block.oldWords = |http://;block.oldWords = [];block.newStart = http://;block.newLength = |http://;block.newLength = [];block.newWords = http://;block.newNumber = |http://;block.newNumber = [];block.newBlock = http://;block.newLeft = |http://;block.newLeft = [];block.newRight = http://;block.newLeftIndex = |http://;block.newLeftIndex = [];block.newRightIndex = [];var blockNumber = 0;var wordCounter = 0;var realWordCounter = 0;if (wDiffShowBlockMov _= 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]
                    <[
                    >== "chars") {fragment = fragment + wDiffOmittedChars;} else if (fragmentStartType[i] == "blank") {fragment = fragment + " " + wDiffOmittedChars;}}if (fragmentStart[i] > 0) {outText += wDiffOmittedLines;}outText += "

                    " + fragment + "

                    ";}if (fragmentEnd[i - 1]< diffText.length) {outText = outText + wDiffOmittedLines;}outText = outText.replace(/^(

                    )\n|\n(<\/div>)$/g, "$1$2");outText = outText.replace(/\n/g, "_

                    _                                   ");return outText;};

                                                       }; var wikEdGreasemonkeyToBody = true; WikEdWrapper(); WikEdSetup();

                    • 7. Re: Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27
                      wilbur.harvey Novice

                       

                      The new VirtualBox 2.0.0 http://www.virtualbox.org/wiki/Downloads works fine with Ubuntu Intrepid and the 2.6.27-2 (x64) kernel.

                       

                       

                      Installation was easier and faster than VMware. 45 minutes from searching for VirtualBox on Google, to a running WinXP installation with sp3 installed.

                       

                       

                      The performance of the machine seems better than VMware, it doesn't seem to thrash the disk as much.

                       

                       

                      The graphics performance when working with my CAD program on a 2048x1536 screen seems much better.

                       

                       

                      In addition, my TI Fusion USB adapter works fine. I spent many hours and was not able to make it work under VMware.

                       

                       

                       

                       

                       

                      Is it possible for someone to delete all the garbage which somehow got added to my previous post?

                       

                       

                      • 8. Re: Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27
                        wilbur.harvey Novice

                        Just tried Server 2 RC2 with the new Ubuntu 2.6.27-3 kernel. Same problem with compiling the kernel modules.

                        • 9. Re: Cannot install Vmware Server RC2 Ubuntu Intrepid with Kernel 2.6.27
                          wilbur.harvey Novice

                          Just tried Server 2 RC2 with the new Ubuntu 2.6.27-4 kernel. Same problem with compiling the kernel modules.

                          <!-- BEGIN attachments -->

                          <!-- END attachments -->

                          <!-- BEGIN content details -->

                          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} () Click to disable", 'wikEdLogo error alt': "wikEd error", 'wikEdLogo error title': "Loading error - wikEd () Click to disable", 'wikEdLogo browser alt': "(wikEd)", 'wikEdLogo browser title': "Browser not supported - wikEd ()", 'wikEdLogo disabled alt': "(wikEd)", 'wikEdLogo disabled title': "Disabled - wikEd () 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  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", ""], 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: " | [\"http://en.wikipedia.org/wiki/User:Cacycle/wikEd_help\"]", '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\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"});};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(); background-position: bottom right; background-repeat: no-repeat;", '.wikEdTabPlain': "white-space: pre;", '.wikEdCtrl': "white-space: pre; background-image: url(); background-position: center center; background-repeat: no-repeat; margin: 0 1px;", '.wikEdCtrl:before': "content: '\xA0'", '.wikEdBlank': "white-space: -moz-pre-wrap; background-image: url(); 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, 2: ["wikEdRedo", "wikEdButtonInactive", wikEdText['wikEdRedo title'], wikEdImage.redo, "16", "16", wikEdText, 3: ["wikEdBold", "wikEdButton", wikEdText['wikEdBold title'], wikEdImage.bold, "16", "16", wikEdText, 4: ["wikEdItalic", "wikEdButton", wikEdText['wikEdItalic title'], wikEdImage.italic, "16", "16", wikEdText, 5: ["wikEdUnderline", "wikEdButton", wikEdText['wikEdUnderline title'], wikEdImage.underline, "16", "16", wikEdText, 6: ["wikEdStrikethrough", "wikEdButton", wikEdText['wikEdStrikethrough title'], wikEdImage.strikethrough, "16", "16", wikEdText, 7: ["wikEdNowiki", "wikEdButton", wikEdText['wikEdNowiki title'], wikEdImage.nowiki, "16", "16", wikEdText, 8: ["wikEdSuperscript", "wikEdButton", wikEdText['wikEdSuperscript title'], wikEdImage.superscript, "16", "16", wikEdText, 9: ["wikEdSubscript", "wikEdButton", wikEdText['wikEdSubscript title'], wikEdImage.subscript, "16", "16", wikEdText, 10: ["wikEdRef", "wikEdButton", wikEdText['wikEdRef title'], wikEdImage.ref, "16", "16", wikEdText, 12: ["wikEdCase", "wikEdButton", wikEdText['wikEdCase title'], wikEdImage.case, "16", "16", wikEdText, 25: ["wikEdRedirect", "wikEdButton", wikEdText['wikEdRedirect title'], wikEdImage.redirect, "16", "16", wikEdText, 13: ["wikEdUndoAll", "wikEdButton", wikEdText['wikEdUndoAll title'], wikEdImage.undoAll, "16", "16", wikEdText, 14: ["wikEdRedoAll", "wikEdButtonInactive", wikEdText['wikEdRedoAll title'], wikEdImage.redoAll, "16", "16", wikEdText, 15: ["wikEdWikiLink", "wikEdButton", wikEdText['wikEdWikiLink title'], wikEdImage.wikiLink, "16", "16", wikEdText, 16: ["wikEdWebLink", "wikEdButton", wikEdText['wikEdWebLink title'], wikEdImage.webLink, "16", "16", wikEdText, 17: ["wikEdHeading", "wikEdButton", wikEdText['wikEdHeading title'], wikEdImage.heading, "16", "16", wikEdText, 19: ["wikEdBulletList", "wikEdButton", wikEdText['wikEdBulletList title'], wikEdImage.bulletList, "16", "16", wikEdText, 20: ["wikEdNumberList", "wikEdButton", wikEdText['wikEdNumberList title'], wikEdImage.numberList, "16", "16", wikEdText, 21: ["wikEdIndentList", "wikEdButton", wikEdText['wikEdIndentList title'], wikEdImage.indentList, "16", "16", wikEdText, 22: ["wikEdDefinitionList", "wikEdButton", wikEdText['wikEdDefinitionList title'], wikEdImage.definitionList, "16", "16", wikEdText, 23: ["wikEdImage", "wikEdButton", wikEdText['wikEdImage title'], wikEdImage.image, "16", "16", wikEdText, 24: ["wikEdTable", "wikEdButton", wikEdText['wikEdTable title'], wikEdImage.table, "16", "16", wikEdText, 11: ["wikEdReferences", "wikEdButton", wikEdText['wikEdReferences title'], wikEdImage.references, "16", "16", wikEdText, 26: ["wikEdWikify", "wikEdButton", wikEdText['wikEdWikify title'], wikEdImage.wikify, "16", "16", wikEdText, 27: ["wikEdTextify", "wikEdButton", wikEdText['wikEdTextify title'], wikEdImage.textify, "16", "16", wikEdText, 77: ["wikEdRefHide", "wikEdButtonUnchecked", wikEdText['wikEdRefHide title'], wikEdImage.refHide, "16", "16", wikEdText, 29: ["wikEdTextZoom", "wikEdButton", wikEdText['wikEdTextZoom title'], wikEdImage.textZoom, "16", "16", wikEdText, 30: ["wikEdClearHistory", "wikEdButton", wikEdText['wikEdClearHistory title'], wikEdImage.clearHistory, "16", "16", wikEdText, 31: ["wikEdScrollToPreview", "wikEdButton", wikEdText['wikEdScrollToPreview title'], wikEdImage.scrollToPreviewDown, "16", "16", wikEdText, 32: ["wikEdScrollToEdit", "wikEdButton", wikEdText['wikEdScrollToEdit title'], wikEdImage.scrollToEditDown, "16", "16", wikEdText, 33: ["wikEdUseWikEd", "wikEdButtonChecked", wikEdText['wikEdUseWikEd title'], wikEdImage.useWikEd, "16", "16", wikEdText, 34: ["wikEdHighlightSyntax", "wikEdButtonUnchecked", wikEdText['wikEdHighlightSyntax title'], wikEdImage.highlightSyntax, "16", "16", wikEdText, 35: ["wikEdSource", "wikEdButton", wikEdText['wikEdSource title'], wikEdImage.source, "16", "16", wikEdText, 75: ["wikEdCloseToolbar", "wikEdButtonUnchecked", wikEdText['wikEdCloseToolbar title'], wikEdImage.closeToolbar, "16", "16", wikEdText, 36: ["wikEdUsing", "wikEdButtonUnchecked", wikEdText['wikEdUsing title'], wikEdImage.using, "16", "16", wikEdText, 37: ["wikEdFullScreen", "wikEdButtonUnchecked", wikEdText['wikEdFullScreen title'], wikEdImage.fullScreen, "16", "16", wikEdText, 79: ["wikEdTableMode", "wikEdButtonUnchecked", wikEdText['wikEdTableMode title'], wikEdImage.tableMode, "16", "16", wikEdText, 39: ["wikEdFindAll", "wikEdButton", wikEdText['wikEdFindAll title'], wikEdImage.findAll, "16", "16", wikEdText, 40: ["wikEdFindPrev", "wikEdButton", wikEdText['wikEdFindPrev title'], wikEdImage.findPrev, "16", "16", wikEdText, 41: ["wikEdFindNext", "wikEdButton", wikEdText['wikEdFindNext title'], wikEdImage.findNext, "16", "16", wikEdText, 43: ["wikEdJumpPrev", "wikEdButton", wikEdText['wikEdJumpPrev title'], wikEdImage.jumpPrev, "16", "16", wikEdText, 44: ["wikEdJumpNext", "wikEdButton", wikEdText['wikEdJumpNext title'], wikEdImage.jumpNext, "16", "16", wikEdText, 46: ["wikEdReplaceAll", "wikEdButton", wikEdText['wikEdReplaceAll title'], wikEdImage.replaceAll, "16", "16", wikEdText, 47: ["wikEdReplacePrev", "wikEdButton", wikEdText['wikEdReplacePrev title'], wikEdImage.replacePrev, "16", "16", wikEdText, 48: ["wikEdReplaceNext", "wikEdButton", wikEdText['wikEdReplaceNext title'], wikEdImage.replaceNext, "16", "16", wikEdText, 49: ["wikEdCaseSensitive", "wikEdButtonUnchecked", wikEdText['wikEdCaseSensitive title'], wikEdImage.caseSensitive, "16", "16", wikEdText, 50: ["wikEdRegExp", "wikEdButtonUnchecked", wikEdText['wikEdRegExp title'], wikEdImage.regExp, "16", "16", wikEdText, 51: ["wikEdFindAhead", "wikEdButtonUnchecked", wikEdText['wikEdFindAhead title'], wikEdImage.findAhead, "16", "16", wikEdText, 52: ["wikEdFixBasic", "wikEdButton", wikEdText['wikEdFixBasic title'], wikEdImage.fixBasic, "16", "16", wikEdText, 53: ["wikEdFixHtml", "wikEdButton", wikEdText['wikEdFixHtml title'], wikEdImage.fixHtml, "16", "16", wikEdText, 54: ["wikEdFixCaps", "wikEdButton", wikEdText['wikEdFixCaps title'], wikEdImage.fixCaps, "16", "16", wikEdText, 55: ["wikEdfixUnicode", "wikEdButton", wikEdText['wikEdfixUnicode title'], wikEdImage.fixUnicode, "16", "16", wikEdText, 56: ["wikEdFixAll", "wikEdButton", wikEdText['wikEdFixAll title'], wikEdImage.fixAll, "16", "16", wikEdText, 57: ["wikEdFixRegExTypo", "wikEdButton", wikEdText['wikEdFixRegExTypo title'], wikEdImage.fixRegExTypo, "16", "16", wikEdText, 58: ["wikEdFixDashes", "wikEdButton", wikEdText['wikEdFixDashes title'], wikEdImage.fixDash, "16", "16", wikEdText, 59: ["wikEdFixPunct", "wikEdButton", wikEdText['wikEdFixPunct title'], wikEdImage.fixPunct, "16", "16", wikEdText, 60: ["wikEdFixMath", "wikEdButton", wikEdText['wikEdFixMath title'], wikEdImage.fixMath, "16", "16", wikEdText, 61: ["wikEdFixChem", "wikEdButton", wikEdText['wikEdFixChem title'], wikEdImage.fixChem, "16", "16", wikEdText, 62: ["wikEdFixUnits", "wikEdButton", wikEdText['wikEdFixUnits title'], wikEdImage.fixUnits, "16", "16", wikEdText, 65: ["wikEdClose", "wikEdButton", wikEdText['wikEdClose title'], wikEdImage.close, "16", "16", wikEdText, 66: ["wikEdScrollToPreview2", "wikEdButton", wikEdText['wikEdScrollToPreview2 title'], wikEdImage.scrollToPreviewDown, "16", "16", wikEdText, 67: ["wikEdScrollToEdit2", "wikEdButton", wikEdText['wikEdScrollToEdit2 title'], wikEdImage.scrollToEdit, "16", "16", wikEdText, 70: ["wikEdClose2", "wikEdButton", wikEdText['wikEdClose2 title'], wikEdImage.close, "16", "16", wikEdText, 71: ["wikEdScrollToPreview3", "wikEdButton", wikEdText['wikEdScrollToPreview3 title'], wikEdImage.scrollToPreview, "16", "16", wikEdText, 72: ["wikEdScrollToEdit3", "wikEdButton", wikEdText['wikEdScrollToEdit3 title'], wikEdImage.scrollToEdit, "16", "16", wikEdText, 78: ["wikEdDiff", "wikEdButtonUnchecked", wikEdText['wikEdDiff title'], wikEdImage.wikEdDiff, "16", "16", wikEdText, 74: ["wikEdScrollToEdit4", "wikEdButtonSolo", wikEdText['wikEdScrollToEdit4 title'], wikEdImage.scrollToEditDown, "16", "16", wikEdText, 76: [http://"wikEdDummy", "wikEdButtonDummy", "", wikEdImage.dummy, "16", "16", "", ""|http://"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, ], preview2: ["wikEdButtonBarPreview2", "wikEdButtonBarPreview2", "wikEdButtonsPreview2", "wikEdButtonsPreview2", 0, null, ], jump: ["wikEdButtonBarJump", "wikEdButtonBarJump", "wikEdButtonsJump", "wikEdButtonsJump", 0, null, ]});};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 = http://;}if (typeof wikEdOffHook == "undefined") {window.wikEdOffHook = |http://;}if (typeof wikEdOffHook == "undefined") {window.wikEdOffHook = [];}if (typeof wikEdTextareaHook == "undefined") {window.wikEdTextareaHook = http://;}if (typeof wikEdFrameHook == "undefined") {window.wikEdFrameHook = |http://;}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 = http://;window.wikEdSavedName = |http://;window.wikEdSavedName = [];window.wikEdInputElement = http://;window.wikEdSelectElement = |http://;window.wikEdSelectElement = [];window.wikEdCheckMarker = [];window.wikEdCheckMarker[true] = "\u2666";window.wikEdCheckMarker[http://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 = |http://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 = http://;}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 = |http://;}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 = http://;window.wikEdDebugTimer = |http://;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[http://'wikEd.js'|http://'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[http://'diff.js'|http://'diff.js'] == null)) {if (typeof WDiffString == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffScriptSrc;head.appendChild(script);}wikEdExternalScripts[http://'diff.js'|http://'diff.js'] = true;}if (wikEdLoadDiff == true && (wikEdExternalScripts[http://'wikEdDiff.js'|http://'wikEdDiff.js'] == null)) {if (typeof WikEdDiff == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffSrc;head.appendChild(script);}wikEdExternalScripts[http://'wikEdDiff.js'|http://'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[http://'instaview.js'|http://'instaview.js'] == null)) {if (typeof InstaView == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdInstaViewSrc;head.appendChild(script);}wikEdExternalScripts[http://'instaview.js'|http://'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")[http://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 = |http://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 += "";if (wikEdMozilla == true) {html += "";} else {html += "";}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[http://'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 = |http://'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[http://'wikEdFindSelect title'];wikEdFieldHist.replace = |http://'wikEdFindSelect title';wikEdFieldHist.replace = [];wikEdSavedName.replace = "wikEdReplaceHistory";wikEdInputElement.replace = new Object(wikEdReplaceText);wikEdSelectElement.replace = new Object(document.getElementById("wikEdReplaceSelect"));wikEdSelectElement.replace.title = wikEdText[http://'wikEdReplaceSelect title'];if (wikEdSummaryInputWrapper != null) {wikEdFieldHist.summary = |http://'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  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 += "

                          ";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 += "!|id=|title=|height=|alt=|width=|class=|src=!";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 += " ";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", );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(/(


                          )

                           

                          .?<\/h2>(.|\n)?


                          (.|\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(/()/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, "<"wikEdUndoAll":if (wikEdLastVersion == null) {wikEdLastVersion = obj.changed.plain;}obj.changed.plain = wikEdOrigVersion;obj.changed.plain = obj.changed.plain.replace(/&/g, "&");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 = "[[http://" + obj.changed.plain + "]|http://" + 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 = "[http://" + obj.changed.plain + "|http://" + 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|$)/g, "$1$2 $3 $2");obj.changed.plain = obj.changed.plain.replace(/(|\n)=(?!=) (?) *=(?=\n|$)/g, "$1$2");obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=) (?) *=(?=\n|$)/g, "$1$2 $3 $2");obj.changed.keepSel = true;break;case "wikEdIncreaseHeading":obj.changed.plain = obj.changed.plain.replace(/(^|\n)(=) (?) =+(?=\n|$)/g, "$1=$2 $3 $2=");if (/\n/.test(obj.changed.plain) == false) {obj.changed.plain = obj.changed.plain.replace(/(|\n)([\n]?)(?=\n|$)/g, "$1== $2 ==");}obj.changed.plain = obj.changed.plain.replace(/(|\n)(=) (?) *=(?=\n|$)/g, "$1$2 $3 $2");obj.changed.keepSel = true;break;case "wikEdIncreaseBulletList":obj.changed.plain = obj.changed.plain.replace(/(+)/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(/()/g, function (p, p1) {p1 = p1.replace(/^[\*\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdIncreaseNumberList":obj.changed.plain = obj.changed.plain.replace(/()/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(/(+)/g, function (p, p1) {p1 = p1.replace(/^[\\#\:\;] *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdIncreaseIndentList":obj.changed.plain = obj.changed.plain.replace(/()/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(/()/g, function (p, p1) {p1 = p1.replace(/ *()/g, "");return p1;});obj.changed.keepSel = true;break;case "wikEdDefinitionList":obj.changed.plain = obj.changed.plain.replace(/(+)/g, function (p, p1) {p1 = p1.replace(/ *(+) *()/g, "; $1 : ");return p1;});break;case "wikEdImage":if (obj.changed.plain != "") {obj.changed.plain = "[[Image:" + wikEdText['image filename'] + "|thumb|" + wikEdText['image width'] + "px|http://" + obj.changed.plain + "]]";} else {obj.changed.plain = "[[Image:" + wikEdText['image filename'] + "|thumb|" + wikEdText[ ]]";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|+ " + wikEdText['table caption'] + "\n! " + wikEdText['table heading'] + " !! " + wikEdText['table heading'] + "\n|-\n| " + wikEdText['table cell'] + " || " + wikEdText['table cell'] + "\n|-\n| " + wikEdText['table cell'] + " || " + wikEdText['table cell'] + "\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 = "" + wikEdText['redirect article link'] + "";}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, "<"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, "&");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, "&");obj.changed.plain = obj.changed.plain.replace(//g, ">");highlightSyntax = false;break;case "wikEdInsertTags":var tagOpen = parameters[0] || "";var tagClose = parameters[1] || "";var sampleText = parameters[2] || "";tagOpen = tagOpen.replace(/&/g, "&");tagOpen = tagOpen.replace(//g, ">");tagClose = tagClose.replace(/&/g, "&");tagClose = tagClose.replace(//g, ">");tagsampleText = sampleText.replace(/&/g, "&");tagsampleText = sampleText.replace(//g, ">");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, "$1<!wikEdTabPlain>");}obj.html = obj.html.replace(/  /g, "  ");obj.html = obj.html.replace(/  /g, "  ");obj.html = obj.html.replace(/\n/g, "

                          ");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[>]>()/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[>]>()/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 = ;obj.focusPara = ;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[>]>()/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[>]>()/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[>]>()/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 = ;obj.selectionPara = ;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[>]>()/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[>]>()/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[>]>()/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, "<"\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| | )\n/g, "\n");obj.plain = obj.plain.replace(/\n( | |\t)\n/g, "\n\n");obj.plain = obj.plain.replace(/(|\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|$]/g, "$1\n\n$3\n\n");obj.plain = obj.plain.replace(/(|\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(/\[\[ (?) *\]\]/g, "[[$1]]");obj.plain = obj.plain.replace(/\[ (?) \]/g, "[ +\]\]/g, "]");obj.plain = obj.plain.replace(/ +\| \}\}/g, "|}}");obj.plain = obj.plain.replace(/\n(= ? =\n)\n(\{\{.*?\}\})/g, "\n$1$2");obj.plain = obj.plain.replace(/(&lt;!) (?) *(&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\'\" \]\}\)]) *(http://\.\,)(?=([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 = "&#0" + parseInt(wikEdSupportedChars[i][0], 16) + ";|";regExpStr += "&#x0" + wikEdSupportedChars[i][0] + ";";var regExp = new RegExp(regExpStr, "gi");obj.plain = obj.plain.replace(regExp, replaceChar);regExpStr = "&" + wikEdSupportedChars[i][1] + ";";regExp = new RegExp(regExpStr, "g");obj.plain = obj.plain.replace(regExp, replaceChar);}for (var i = 0; i < wikEdProblemChars.length; i++) {replaceChar = "&" + wikEdProblemChars[i][1] + ";";regExpStr = "&#0" + parseInt(wikEdProblemChars[i][0], 16) + ";|";regExpStr += "&#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 = "&" + wikEdSpecialChars[i][1] + ";";var regExpStr = "&#0" + parseInt(wikEdSpecialChars[i][0], 16) + ";|";regExpStr += "&#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(/−/g, "\u2212");p1 = p1.replace(/·/g, "\xB7");p1 = p1.replace(/()-(\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(/()\^(\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|¹)/g, "&lt;sup&gt;1&lt;/sup&gt;");p1 = p1.replace(/(\u00b2|²)/g, "&lt;sup&gt;2&lt;/sup&gt;");p1 = p1.replace(/(\u00b3|³)/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(/(|)h2o(|$)/g, "$1H2O$2");obj.plain = obj.plain.replace(/(|)h3o/g, "$1H3O");obj.plain = obj.plain.replace(/(|)oh-/g, "$1OH+");var regExp = new RegExp("(|)(" + realElements.toLowerCase() + pseudoElements.toLowerCase() + ")(|$)", "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(/−/g, "\u2212");obj.plain = obj.plain.replace(/·/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;|↔|\u21cc|\u2190 *\u2192) *()/g, " <=> ");obj.plain = obj.plain.replace(/(|\)|&gt;) +(-|\u2212) +(|\()/g, "$1 \u2212 $3");return;};

                                    window.WikEdFixUnits = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/°|&#00b0;/g, "\xB0");obj.plain = obj.plain.replace(/&#00b5;|μ|µ/g, "\xB5");obj.plain = obj.plain.replace(/Ω|&#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)(|$)/g, " k$1$2");obj.plain = obj.plain.replace(/ m(bit\/s|B\/s)(|$)/g, " M$1$2");obj.plain = obj.plain.replace(/ g(bit\/s|B\/s)(|$)/g, " G$1$2");obj.plain = obj.plain.replace(/ t(bit\/s|B\/s)(|$)/g, " T$1$2");obj.plain = obj.plain.replace(/ e(bit\/s|B\/s)(|$)/g, " E$1$2");return;};

                                    window.WikEdFixDashes = function (obj) {WikEdFixBasic(obj);obj.plain = obj.plain.replace(/—/g, "\u2014");obj.plain = obj.plain.replace(/–/g, "\u2013");obj.plain = obj.plain.replace(/−/g, "\u2212");obj.plain = obj.plain.replace(/([a-zA-Z\'\" \]\}\)])( | )* ( | )([a-zA-Z\'\" \[\{\(])/g, "$1\u2014$4");obj.plain = obj.plain.replace(/([a-zA-Z\'\" \]\}\)])( | )--( | )*([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\'\" \]\}])( | )(\u2212| )( | )*([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, "

                                    ");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|))(.*?)?$/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(/(+[ \'\"]\[\[)(?)(\]\])/gm, function (p, p1, p2, p3) {p2 = p2.replace(/((\&\w+\;||\d))(.)$/, 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;||\d))(.)$/, 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|))(.*? =)$/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'] + ":()(*
                          ]
                          ])", "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("{{
                          slang
                          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 < 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(".*", "g");var plainPrev = "";var plain = "";for (var i = startNodeIndex; i >= 0; i--) {plainPrev = plain;plain = whole.plainArray[i];plain = plain.replace(/&/g, "&");plain = plain.replace(/&lt;/g, "<"[^
                          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(/&/g, "&");plain = plain.replace(/&lt;/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[http://whole.plainArray.length - 1|http://whole.plainArray.length - 1]);}if (foundLine == false) {line.range.setEndAfter(whole.plainNode[http://whole.plainArray.length - 1|http://whole.plainArray.length - 1]);}if (foundWord == false) {word.range.setEndAfter(whole.plainNode[http://whole.plainArray.length - 1|http://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

                           

                                         ]>\s<!\[if !supportLists\]>.?<!\[endif\]>\s(.?)\s<\/p>\s()/g, " $1\n");var footnotes = {};obj.html = obj.html.replace(/

                          <div\b[>               ]* id="ftn(\d+)"[>]>\s

                           

                                         \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 "<"";}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, "&");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)

                          (\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)(\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)

                          |                    (\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[>                    ]>()/gi, "\0");obj.html = obj.html.replace(/[\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[^>]
                          )>(.?))";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(/\.({2})/g, "%$1");linkArticleAnchor = decodeURIComponent(linkArticleAnchor);linkArticleAnchor = linkArticleAnchor.replace(/_\d$/g, "");}if (hrefUrlParam != null) {regExp = new RegExp("(^|&)(
                          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\-?))/.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[http://1].substr(0, 1).toUpperCase() + linkText.substr(1) + "]|http://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") + "(+)$";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&db=pubmed&.*?&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("<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\|+\}\})/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(/ |/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 "<"$1$4$6");obj.html = obj.html.replace(/\u0000(={1,6})\s+\1\u0000/g, "\0");obj.html = obj.html.replace(/(\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, "<"\n");obj.html
                          =
                          obj.html.replace(/\n/g,
                          "

                                                             ");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\-]): ; *()/g, "$1");attribValue = attribValue.replace(/(| )(): *(-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(/ /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(/&/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, "$1<!wikEdListTag>$4</span><!wikEdListLine>");if (singleLine != true) {obj.html = obj.html.replace(/(([\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))()(.?)$/gm, "<span class=\"wikEdSpaceLine\">$1<span class=\"wikEdSpaceTag\">$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|<[>]>))(=)(?)(=+)(?=(|<[^>]>|\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$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)/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|$))/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|$))/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:|mailto:)[\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]*
                          ])?[^

                          |http://])))(.?)(
                          ]
                          ])", "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|\dpx|\dx\dpx)$/.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((\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
                          +
                          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)((:)+)/, "$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)((:)+)/, "$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((\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((\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, "&");var regExp = new RegExp("([" + wikEdControlCharsStr + "])", "g");obj.html = obj.html.replace(regExp, function (p, p1) {if (p1 == "\t") {p1 = "<span class=\"wikEdTab\" title=\"" + wikEdControlChars[http://p1.charCodeAt(0).toString()|http://p1.charCodeAt(0).toString()]+ "\">" + p1 + "</span><!wikEdTab>";} else if (p1 != "\n") {p1 = "<span class=\"wikEdCtrl\" title=\"" + wikEdControlChars[http://p1.charCodeAt(0).toString()|http://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[http://p1.charCodeAt(0).toString()|http://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, """);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(/ /g, " ");obj.plain = obj.plain.replace(/&lt;/g, "<"&lt;");if
                          (wikEdHighlightSyntax
                          ==
                          true)
                          {obj.whole
                          =
                          true;WikEdHighlightSyntax(obj);}
                          else
                          {obj.html
                          =
                          obj.html.replace(/(\t)/g,
                          "$1<!wikEdTabPlain>");}obj.html = obj.html.replace(/  /g, "  ");obj.html = obj.html.replace(/  /g, "  ");obj.html = obj.html.replace(/ \n/g, " \n");obj.html = obj.html.replace(/\n/g, "_

                          _                                   ");if (wikEdMSIE == true) {} else {obj.sel = WikEdGetSelection();WikEdRemoveAllRanges(obj.sel);}if (wikEdFrameBody.firstChild == null || (wikEdFrameBody.innerHTML == "_

                          _                                   ")) {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(); _"\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|$))/g);if (heading != null) {for (var i = 0; i< heading.length; i) {var headingMatch = heading[i].match(/\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 = http://;obj.plainNode = |http://;obj.plainNode = [];obj.plainStart = http://;obj.plainPos = |http://;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[http://childNode.nodeName|http://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 = http://;obj.plainNode = |http://;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[http://childNode.nodeName|http://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 += "</"&gt;");obj.html += value;obj.plain += value;break;case 4:obj.html += "<![CDATA[http://" + childNode.nodeValue + "]|http://" + 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, "&");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(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", );} 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", );}} 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 = ;}WikEdDiffInitImage(wikEdImage, );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[http://'diff.js'|http://'diff.js'] == null) {if (typeof WDiffString == "undefined") {var script = document.createElement("script");script.type = "text/javascript";script.src = wikEdDiffScriptSrc;head.appendChild(script);}wikEdExternalScripts[http://'diff.js'|http://'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(/(\?|&)oldid=(\d+)/);var versionMatchNew = tdNew.innerHTML.match(/(\?|&)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(/&<[>style=\"text-decoration: none; color: inherit; color: expression(parentElement.currentStyle.color);\" title=\"" + linkTitle + "\">" + preTag + "" + 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, "<[>style = \"text-decoration: none; color: inherit; color: expression(parentElement.currentStyle.color)\" title=\"" + articleTitle + "\">" + preTag + "" + 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(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 = "

                          <!wDiffHtmlMovedRight>";

                                                             }

                                                             if (typeof wDiffHtmlMovedLeft == "undefined") {

                                                             window.wDiffHtmlMovedLeft = "

                          <!wDiffHtmlMovedLeft>";

                                                             }

                                                             if (typeof wDiffHtmlBlockStart == "undefined") {

                                                             window.wDiffHtmlBlockStart = ""; } if (typeof wDiffHtmlBlockEnd == "undefined") { window.wDiffHtmlBlockEnd = "<!wDiffHtmlBlock>";

                                                             }

                                                             if (typeof wDiffHtmlDeleteStart == "undefined") {

                                                             window.wDiffHtmlDeleteStart = ""; } if (typeof wDiffHtmlDeleteEnd == "undefined") { window.wDiffHtmlDeleteEnd = "<!wDiffHtmlDelete>";

                                                             }

                                                             if (typeof wDiffHtmlInsertStart == "undefined") {

                                                             window.wDiffHtmlInsertStart = ""; } if (typeof wDiffHtmlInsertEnd == "undefined") { window.wDiffHtmlInsertEnd = "<!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 = "

                          -


                                                             ";

                                                             }

                                                             if (typeof wDiffNoChange == "undefined") {

                                                             window.wDiffNoChange = "-----                                   ";

                                                             }

                                                             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 = http://;text.oldWords = |http://;text.oldWords = [];text.newToOld = http://;text.oldToNew = |http://;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  -


                          == null && (jEnd< oldEnd)) {jEnd+;}var jLength = jEnd - jStart;if (iLength >
                          <oldEnd)) {jEnd
                          +;}var jLength="jEnd" - jStart;if (iLength>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, "¶_

                          _                                   ");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, "¶_

                          _                                   ");outText += delText;}if (insText != "") {insText = wDiffHtmlInsertStart + WDiffEscape(insText) + wDiffHtmlInsertEnd;insText = insText.replace(/\n/g, "¶_

                          _                                   ");outText += insText;}outText += postText;} while (i<=text.newWords.length);outText+="\n";outText=WDiffHtmlFormat(outText);returnoutText;};
                          window.WDiffEscape=function(text){text=text.replace(/&/g,"&");text=text.replace(/</g,"&lt;");text=text.replace(/>/g, "&gt;");text = text.replace(/\"/g, """);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, "  ");text = text.replace(/\n/g, "_

                          _                                   ");return text;};

                                                             window.WDiffDetectBlocks = function (text, block) {block.oldStart = http://;block.oldToNew = |http://;block.oldToNew = [];block.oldLength = http://;block.oldWords = |http://;block.oldWords = [];block.newStart = http://;block.newLength = |http://;block.newLength = [];block.newWords = http://;block.newNumber = |http://;block.newNumber = [];block.newBlock = http://;block.newLeft = |http://;block.newLeft = [];block.newRight = http://;block.newLeftIndex = |http://;block.newLeftIndex = [];block.newRightIndex = [];var blockNumber = 0;var wordCounter = 0;var realWordCounter = 0;if (wDiffShowBlockMov _= 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]
                          <[
                          >== "chars") {fragment = fragment + wDiffOmittedChars;} else if (fragmentStartType[i] == "blank") {fragment = fragment + " " + wDiffOmittedChars;}}if (fragmentStart[i] > 0) {outText += wDiffOmittedLines;}outText += "

                          " + fragment + "

                          ";}if (fragmentEnd[i - 1]< diffText.length) {outText = outText + wDiffOmittedLines;}outText = outText.replace(/^(

                          )\n|\n(<\/div>)$/g, "$1$2");outText = outText.replace(/\n/g, "_

                          _                                   ");return outText;};

                                                             }; var wikEdGreasemonkeyToBody = true; WikEdWrapper(); WikEdSetup();