OSDN Git Service

replace openWYSIWYG -> WYMeditor
authorelixirel <elixirel@sourceforge.jp>
Sun, 27 Dec 2009 14:24:43 +0000 (23:24 +0900)
committerelixirel <elixirel@sourceforge.jp>
Sun, 27 Dec 2009 14:24:43 +0000 (23:24 +0900)
191 files changed:
erbtemp/editentry.html.erb
erbtemp/newentry.html.erb
feedgenerator.rb
jquery/GPL-LICENSE.txt [new file with mode: 0644]
jquery/MIT-LICENSE.txt [new file with mode: 0644]
jquery/README [new file with mode: 0644]
jquery/jquery.js [new file with mode: 0644]
jquery/jquery.ui.draggable.js [new file with mode: 0644]
jquery/jquery.ui.js [new file with mode: 0644]
jquery/jquery.ui.resizable.js [new file with mode: 0644]
jquery/jquery.ui.sortable.js [new file with mode: 0644]
lbl-blockquote.png [new file with mode: 0644]
lbl-h1.png [new file with mode: 0644]
lbl-h2.png [new file with mode: 0644]
lbl-h3.png [new file with mode: 0644]
lbl-h4.png [new file with mode: 0644]
lbl-h5.png [new file with mode: 0644]
lbl-h6.png [new file with mode: 0644]
lbl-p.png [new file with mode: 0644]
lbl-pre.png [new file with mode: 0644]
main_wymiframe.html [new file with mode: 0644]
openwysiwyg/addons/imagelibrary/changelog [deleted file]
openwysiwyg/addons/imagelibrary/config.inc.php [deleted file]
openwysiwyg/addons/imagelibrary/images/dirup.png [deleted file]
openwysiwyg/addons/imagelibrary/images/folder.png [deleted file]
openwysiwyg/addons/imagelibrary/images/gif.gif [deleted file]
openwysiwyg/addons/imagelibrary/images/jpg.gif [deleted file]
openwysiwyg/addons/imagelibrary/images/psd.gif [deleted file]
openwysiwyg/addons/imagelibrary/images/unknown.png [deleted file]
openwysiwyg/addons/imagelibrary/insert_image.php [deleted file]
openwysiwyg/addons/imagelibrary/select_image.php [deleted file]
openwysiwyg/changelog [deleted file]
openwysiwyg/docs/addons.html [deleted file]
openwysiwyg/docs/doc.html [deleted file]
openwysiwyg/docs/images/logo.gif [deleted file]
openwysiwyg/docs/style.css [deleted file]
openwysiwyg/example.html [deleted file]
openwysiwyg/images/backcolor.gif [deleted file]
openwysiwyg/images/backcolor_on.gif [deleted file]
openwysiwyg/images/background_silver.jpg [deleted file]
openwysiwyg/images/bold.gif [deleted file]
openwysiwyg/images/bold_on.gif [deleted file]
openwysiwyg/images/copy.gif [deleted file]
openwysiwyg/images/copy_on.gif [deleted file]
openwysiwyg/images/cut.gif [deleted file]
openwysiwyg/images/cut_on.gif [deleted file]
openwysiwyg/images/delete.gif [deleted file]
openwysiwyg/images/delete_on.gif [deleted file]
openwysiwyg/images/forecolor.gif [deleted file]
openwysiwyg/images/forecolor_on.gif [deleted file]
openwysiwyg/images/help.gif [deleted file]
openwysiwyg/images/help_on.gif [deleted file]
openwysiwyg/images/indent_left.gif [deleted file]
openwysiwyg/images/indent_left_on.gif [deleted file]
openwysiwyg/images/indent_right.gif [deleted file]
openwysiwyg/images/indent_right_on.gif [deleted file]
openwysiwyg/images/insert_hyperlink.gif [deleted file]
openwysiwyg/images/insert_hyperlink_on.gif [deleted file]
openwysiwyg/images/insert_picture.gif [deleted file]
openwysiwyg/images/insert_picture_on.gif [deleted file]
openwysiwyg/images/insert_table.gif [deleted file]
openwysiwyg/images/insert_table_on.gif [deleted file]
openwysiwyg/images/italics.gif [deleted file]
openwysiwyg/images/italics_on.gif [deleted file]
openwysiwyg/images/justify_center.gif [deleted file]
openwysiwyg/images/justify_center_on.gif [deleted file]
openwysiwyg/images/justify_justify.gif [deleted file]
openwysiwyg/images/justify_justify_on.gif [deleted file]
openwysiwyg/images/justify_left.gif [deleted file]
openwysiwyg/images/justify_left_on.gif [deleted file]
openwysiwyg/images/justify_right.gif [deleted file]
openwysiwyg/images/justify_right_on.gif [deleted file]
openwysiwyg/images/list_ordered.gif [deleted file]
openwysiwyg/images/list_ordered_on.gif [deleted file]
openwysiwyg/images/list_unordered.gif [deleted file]
openwysiwyg/images/list_unordered_on.gif [deleted file]
openwysiwyg/images/logo.gif [deleted file]
openwysiwyg/images/maximize.gif [deleted file]
openwysiwyg/images/maximize_on.gif [deleted file]
openwysiwyg/images/paste.gif [deleted file]
openwysiwyg/images/paste_on.gif [deleted file]
openwysiwyg/images/preview.gif [deleted file]
openwysiwyg/images/preview_on.gif [deleted file]
openwysiwyg/images/print.gif [deleted file]
openwysiwyg/images/print_on.gif [deleted file]
openwysiwyg/images/redo.gif [deleted file]
openwysiwyg/images/redo_on.gif [deleted file]
openwysiwyg/images/remove_format.gif [deleted file]
openwysiwyg/images/remove_format_on.gif [deleted file]
openwysiwyg/images/return.gif [deleted file]
openwysiwyg/images/return_on.gif [deleted file]
openwysiwyg/images/save.gif [deleted file]
openwysiwyg/images/save_on.gif [deleted file]
openwysiwyg/images/select_font.gif [deleted file]
openwysiwyg/images/select_font_on.gif [deleted file]
openwysiwyg/images/select_heading.gif [deleted file]
openwysiwyg/images/select_heading_on.gif [deleted file]
openwysiwyg/images/select_size.gif [deleted file]
openwysiwyg/images/select_size_on.gif [deleted file]
openwysiwyg/images/seperator.gif [deleted file]
openwysiwyg/images/seperator2.gif [deleted file]
openwysiwyg/images/settings.gif [deleted file]
openwysiwyg/images/strikethrough.gif [deleted file]
openwysiwyg/images/strikethrough_on.gif [deleted file]
openwysiwyg/images/subscript.gif [deleted file]
openwysiwyg/images/subscript_on.gif [deleted file]
openwysiwyg/images/superscript.gif [deleted file]
openwysiwyg/images/superscript_on.gif [deleted file]
openwysiwyg/images/underline.gif [deleted file]
openwysiwyg/images/underline_on.gif [deleted file]
openwysiwyg/images/undo.gif [deleted file]
openwysiwyg/images/undo_on.gif [deleted file]
openwysiwyg/images/view_source.gif [deleted file]
openwysiwyg/images/view_source_on.gif [deleted file]
openwysiwyg/images/view_text.gif [deleted file]
openwysiwyg/images/view_text_on.gif [deleted file]
openwysiwyg/popups/about.html [deleted file]
openwysiwyg/popups/about_license.html [deleted file]
openwysiwyg/popups/create_table.html [deleted file]
openwysiwyg/popups/insert_hyperlink.html [deleted file]
openwysiwyg/popups/insert_image.html [deleted file]
openwysiwyg/popups/license.html [deleted file]
openwysiwyg/popups/preview.html [deleted file]
openwysiwyg/popups/select_color.html [deleted file]
openwysiwyg/scripts/wysiwyg-color.js [deleted file]
openwysiwyg/scripts/wysiwyg-popup.js [deleted file]
openwysiwyg/scripts/wysiwyg-settings.js [deleted file]
openwysiwyg/scripts/wysiwyg.js [deleted file]
openwysiwyg/styles/wysiwyg.css [deleted file]
openwysiwyg/uploads/hagbard.jpg [deleted file]
wymeditor/jquery.wymeditor.js [new file with mode: 0644]
wymeditor/jquery.wymeditor.min.js [new file with mode: 0644]
wymeditor/jquery.wymeditor.pack.js [new file with mode: 0644]
wymeditor/lang/bg.js [new file with mode: 0644]
wymeditor/lang/ca.js [new file with mode: 0644]
wymeditor/lang/cs.js [new file with mode: 0644]
wymeditor/lang/de.js [new file with mode: 0644]
wymeditor/lang/en.js [new file with mode: 0644]
wymeditor/lang/es.js [new file with mode: 0644]
wymeditor/lang/fa.js [new file with mode: 0644]
wymeditor/lang/fi.js [new file with mode: 0644]
wymeditor/lang/fr.js [new file with mode: 0644]
wymeditor/lang/he.js [new file with mode: 0644]
wymeditor/lang/hr.js [new file with mode: 0644]
wymeditor/lang/hu.js [new file with mode: 0644]
wymeditor/lang/it.js [new file with mode: 0644]
wymeditor/lang/nb.js [new file with mode: 0644]
wymeditor/lang/nl.js [new file with mode: 0644]
wymeditor/lang/nn.js [new file with mode: 0644]
wymeditor/lang/pl.js [new file with mode: 0644]
wymeditor/lang/pt-br.js [new file with mode: 0644]
wymeditor/lang/pt.js [new file with mode: 0644]
wymeditor/lang/ru.js [new file with mode: 0644]
wymeditor/lang/sv.js [new file with mode: 0644]
wymeditor/lang/tr.js [new file with mode: 0644]
wymeditor/lang/zh_cn.js [new file with mode: 0644]
wymeditor/plugins/embed/jquery.wymeditor.embed.js [new file with mode: 0644]
wymeditor/plugins/fullscreen/icon_fullscreen.gif [new file with mode: 0644]
wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js [new file with mode: 0644]
wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js [new file with mode: 0644]
wymeditor/plugins/resizable/jquery.wymeditor.resizable.js [new file with mode: 0644]
wymeditor/plugins/resizable/readme.txt [new file with mode: 0644]
wymeditor/plugins/tidy/README [new file with mode: 0644]
wymeditor/plugins/tidy/jquery.wymeditor.tidy.js [new file with mode: 0644]
wymeditor/plugins/tidy/tidy.php [new file with mode: 0644]
wymeditor/plugins/tidy/wand.png [new file with mode: 0644]
wymeditor/skins/compact/icons.png [new file with mode: 0644]
wymeditor/skins/compact/skin.css [new file with mode: 0644]
wymeditor/skins/compact/skin.js [new file with mode: 0644]
wymeditor/skins/default/icons.png [new file with mode: 0644]
wymeditor/skins/default/skin.css [new file with mode: 0644]
wymeditor/skins/default/skin.js [new file with mode: 0644]
wymeditor/skins/minimal/images/bg.header.gif [new file with mode: 0644]
wymeditor/skins/minimal/images/bg.selector.silver.gif [new file with mode: 0644]
wymeditor/skins/minimal/images/bg.wymeditor.png [new file with mode: 0644]
wymeditor/skins/minimal/images/icons.silver.gif [new file with mode: 0644]
wymeditor/skins/minimal/skin.css [new file with mode: 0644]
wymeditor/skins/minimal/skin.js [new file with mode: 0644]
wymeditor/skins/silver/COPYING [new file with mode: 0644]
wymeditor/skins/silver/README [new file with mode: 0644]
wymeditor/skins/silver/images/bg.header.gif [new file with mode: 0644]
wymeditor/skins/silver/images/bg.selector.silver.gif [new file with mode: 0644]
wymeditor/skins/silver/images/bg.wymeditor.png [new file with mode: 0644]
wymeditor/skins/silver/images/icons.silver.gif [new file with mode: 0644]
wymeditor/skins/silver/skin.css [new file with mode: 0644]
wymeditor/skins/silver/skin.js [new file with mode: 0644]
wymeditor/skins/twopanels/icons.png [new file with mode: 0644]
wymeditor/skins/twopanels/skin.css [new file with mode: 0644]
wymeditor/skins/twopanels/skin.js [new file with mode: 0644]
wymeditor/skins/wymeditor_icon.png [new file with mode: 0644]
wymiframe.css [new file with mode: 0644]

index eceefc4..1454377 100644 (file)
@@ -3,19 +3,25 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <title><%= APPTITLE %></title>
         <link rel="stylesheet" href="./erbtemp/stylesheet.css" type="text/css">
+        <script type="text/javascript" src="./jquery/jquery.js">
+        </script>
+        <script type="text/javascript" src="./wymeditor/jquery.wymeditor.min.js">
+        </script>
         <script type="text/javascript">
+            jQuery(function(){
+                jQuery('#contenteditor').wymeditor({
+                    updateSelector: ".wymupdate",
+                    updateSelector: "input",
+                    iframeBasePath: "main_",
+                                       stylesheet: 'wymiframe.css'
+                });
+            });
+            
             function switchsubmit(form, action){
                 document.getElementsByName("action").item(0).value = action;
                 form.submit();
             }
         </script>
-        <% if params["action"] == "edit" || params["action"] == "back" %>
-        <script type="text/javascript" src="./openwysiwyg/scripts/wysiwyg.js">
-        </script>
-        <script type="text/javascript">
-            WYSIWYG.attach('contenteditor');
-        </script>
-        <% end %>
     </head>
     <body>
         <br>
@@ -23,8 +29,7 @@
         <br>
         <div class="divstyle" style="width: <%= TABLEWIDTH %>px;">
             <form action="<%= cgi.script_name %>" method="POST">
-                <input type="hidden" name="target_filepath" value="<%= session["target_filepath"] %>">
-                <% case params["action"]
+                <input type="hidden" name="target_filepath" value="<%= session["target_filepath"] %>"><% case params["action"]
                 when "confirm" %>
                 <input type="hidden" name="editid" value="<%= session["editid"] %>">
                 <table align="center" style="width: <%= (TABLEWIDTH - 20) %>px;">
@@ -44,8 +49,7 @@
                             <td class="forminput">
                                 <input type="hidden" name="<%= val %>" value="<%= entry.send(val) %>"><% if val != "content" %><%= entry.send(val) %><% else %><%= entry.content_for_view %><% end %>
                             </td>
-                        </tr>
-                        <% end %>
+                        </tr><% end %>
                         <% end %>
                     </tbody>
                 </table>
                     </tbody>
                 </table>
                 <br>
-                <input type="hidden" name="mode" value="editentry"><input type="hidden" name="action" value="confirm"><input type="submit" value="確認"><% else %>
+                <input type="hidden" name="mode" value="editentry"><input type="hidden" name="action" value="confirm"><input type="submit" class="wymupdate" value="確認"><% else %>
                 <% db.transaction do %>
                 <table align="center" style="width: <%= (TABLEWIDTH - 20) %>px;">
                     <tbody>
index 506abb5..c00913a 100644 (file)
@@ -3,21 +3,25 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <title><%= APPTITLE %></title>
         <link rel="stylesheet" href="./erbtemp/stylesheet.css" type="text/css">
-        <script type="text/javascript" src="./openwysiwyg/scripts/wysiwyg.js">
+        <script type="text/javascript" src="./jquery/jquery.js">
+        </script>
+        <script type="text/javascript" src="./wymeditor/jquery.wymeditor.min.js">
         </script>
         <script type="text/javascript">
+            jQuery(function(){
+                jQuery('#contenteditor').wymeditor({
+                    updateSelector: ".wymupdate",
+                    updateSelector: "input",
+                    iframeBasePath: "main_",
+                                       stylesheet: 'wymiframe.css'
+                });
+            });
+                       
             function switchsubmit(form, action){
                 document.getElementsByName("action").item(0).value = action;
                 form.submit();
             }
         </script>
-        <% if params["action"].blank? || params["action"] == "back" %>
-        <script type="text/javascript" src="./openwysiwyg/scripts/wysiwyg.js">
-        </script>
-        <script type="text/javascript">
-            WYSIWYG.attach('contenteditor');
-        </script>
-        <% end %>
     </head>
     <body>
         <br>
@@ -25,8 +29,7 @@
         <br>
         <div class="divstyle" style="width: <%= TABLEWIDTH %>px;">
             <form action="<%= cgi.script_name %>" method="POST">
-                <input type="hidden" name="target_filepath" value="<%= session["target_filepath"] %>">
-                <% case params["action"]
+                <input type="hidden" name="target_filepath" value="<%= session["target_filepath"] %>"><% case params["action"]
                 when "confirm" %>
                 <table align="center" style="width: <%= (TABLEWIDTH - 20) %>px;">
                     <tbody>
                     </tbody>
                 </table>
                 <br>
-                <input type="hidden" name="mode" value="newentry"><input type="hidden" name="action" value="confirm"><input type="submit" value="確認"><% end %>
+                <input type="hidden" name="mode" value="newentry"><input type="hidden" name="action" value="confirm"><input type="submit" class="wymupdate" value="確認"><% end %>
             </form>
         </div>
         <br>
index 37956bb..d2509b6 100644 (file)
@@ -531,8 +531,8 @@ class Entry < AbstractEntry
     str = CGI.unescapeHTML(str)
     str.strip!
     str.gsub!(/(\r\n|\n)/, "")
-    str.gsub!(/<br>/i, "\n") if REPLACEBRTAG
-    str.gsub!(/(<br>|<\/p>|<\/h\d>|<\/div>)(?=[^\n])/i) { "#$1\n" } unless REPLACEBRTAG
+    str.gsub!(/<br>|<br[ ]*\/>/i, "\n") if REPLACEBRTAG
+    str.gsub!(/(<br>|<br[ ]*\/>|<\/p>|<\/h\d>|<\/div>)(?=[^\n])/i) { "#$1\n" } unless REPLACEBRTAG
     str.gsub!(/(<[^>]*?)#{Regexp.escape(XMLPATH)}/) { "#$1#{FEEDXMLDIR}" }
     CGI.escapeHTML(str)
   end
@@ -542,7 +542,7 @@ class Entry < AbstractEntry
     str = @attr[:content].dup
     str = CGI.unescapeHTML(str)
     str.strip!
-    str.gsub!(/<br>/i, "\n") if REPLACEBRTAG
+    str.gsub!(/<br>|<br[ ]*\/>/i, "\n") if REPLACEBRTAG
     str.gsub!(/(<[^>]*?)#{Regexp.escape(FEEDXMLDIR)}/) { "#$1#{XMLPATH}" }
     str
   end
diff --git a/jquery/GPL-LICENSE.txt b/jquery/GPL-LICENSE.txt
new file mode 100644 (file)
index 0000000..11dddd0
--- /dev/null
@@ -0,0 +1,278 @@
+        GNU GENERAL PUBLIC LICENSE
+           Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+          Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+        GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+          NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
diff --git a/jquery/MIT-LICENSE.txt b/jquery/MIT-LICENSE.txt
new file mode 100644 (file)
index 0000000..965a831
--- /dev/null
@@ -0,0 +1,20 @@
+Copyright (c) 2007 John Resig, http://jquery.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/jquery/README b/jquery/README
new file mode 100644 (file)
index 0000000..cb93648
--- /dev/null
@@ -0,0 +1,67 @@
+
+--------------------------------
+jQuery - New Wave Javascript
+http://jquery.com/
+--------------------------------
+
+What you need to build your own jQuery:
+ - Make sure that you have Java installed.
+
+   If not, go to this page and download "Java Runtime Environment (JRE) 5.0"
+   http://java.sun.com/javase/downloads/index.jsp
+
+ - You now have two options for building jQuery, if you have access to
+   common UNIX commands (like 'make', 'mkdir', 'rm', 'cat', and 'echo')
+   then simply type 'make' to build all the components.
+
+ - The other option is if you have Ant installed (or are on Windows and
+   don't have access to make). You can download Ant from here:
+   http://ant.apache.org/bindownload.cgi
+
+   If you do have Ant, everytime (in this README) that I say 'make', do
+   'ant' instead - it works identically (for all intents and purposes).
+
+How to build your own jQuery:
+
+In the main directory of the distribution (the one that this file is in), type
+the following to make all versions of jQuery, the documentation, and the test suite:
+  make
+
+Here are each of the individual items that are buildable from the Makefile.
+
+make jquery
+  The standard, uncompressed, jQuery code.
+  Makes: ./dist/jquery.js
+
+make lite
+  jQuery without all the additional inline documentation and test cases.
+  Makes: ./dist/jquery.lite.js
+
+make pack
+  A compressed version of jQuery (made with Packer).
+  Makes: ./dist/jquery.pack.js
+
+make docs
+  Builds a complete copy of the documentation, based upon the jQuery source.
+  Makes ./docs/
+  Open this file in your browser:
+    ./docs/index.xml
+
+make test
+  Builds a complete copy of the test suite, based upon the jQuery source.
+  Makes ./test/
+  Open this file in your browser:
+    ./test/index.html
+
+Finally, you can remove all the built files using the command:
+  make clean
+
+Additionally, if you want to install jQuery to a location that is not this
+directory, you can specify the PREFIX directory, for example:
+  make PREFIX=/home/john/test/
+OR
+  make PREFIX=~/www/ docs
+
+If you have any questions, please feel free to ask them on the jQuery
+mailing list, which can be found here:
+  http://jquery.com/discuss/
diff --git a/jquery/jquery.js b/jquery/jquery.js
new file mode 100644 (file)
index 0000000..95dd013
--- /dev/null
@@ -0,0 +1,11 @@
+/*
+ * jQuery 1.2.6 - New Wave Javascript
+ *
+ * Copyright (c) 2008 John Resig (jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
+ * $Rev: 5685 $
+ */
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(H(){J w=1b.4M,3m$=1b.$;J D=1b.4M=1b.$=H(a,b){I 2B D.17.5j(a,b)};J u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,62=/^.[^:#\\[\\.]*$/,12;D.17=D.44={5j:H(d,b){d=d||S;G(d.16){7[0]=d;7.K=1;I 7}G(1j d=="23"){J c=u.2D(d);G(c&&(c[1]||!b)){G(c[1])d=D.4h([c[1]],b);N{J a=S.61(c[3]);G(a){G(a.2v!=c[3])I D().2q(d);I D(a)}d=[]}}N I D(b).2q(d)}N G(D.1D(d))I D(S)[D.17.27?"27":"43"](d);I 7.6Y(D.2d(d))},5w:"1.2.6",8G:H(){I 7.K},K:0,3p:H(a){I a==12?D.2d(7):7[a]},2I:H(b){J a=D(b);a.5n=7;I a},6Y:H(a){7.K=0;2p.44.1p.1w(7,a);I 7},P:H(a,b){I D.P(7,a,b)},5i:H(b){J a=-1;I D.2L(b&&b.5w?b[0]:b,7)},1K:H(c,a,b){J d=c;G(c.1q==56)G(a===12)I 7[0]&&D[b||"1K"](7[0],c);N{d={};d[c]=a}I 7.P(H(i){R(c 1n d)D.1K(b?7.V:7,c,D.1i(7,d[c],b,i,c))})},1g:H(b,a){G((b==\'2h\'||b==\'1Z\')&&3d(a)<0)a=12;I 7.1K(b,a,"2a")},1r:H(b){G(1j b!="49"&&b!=U)I 7.4E().3v((7[0]&&7[0].2z||S).5F(b));J a="";D.P(b||7,H(){D.P(7.3t,H(){G(7.16!=8)a+=7.16!=1?7.76:D.17.1r([7])})});I a},5z:H(b){G(7[0])D(b,7[0].2z).5y().39(7[0]).2l(H(){J a=7;1B(a.1x)a=a.1x;I a}).3v(7);I 7},8Y:H(a){I 7.P(H(){D(7).6Q().5z(a)})},8R:H(a){I 7.P(H(){D(7).5z(a)})},3v:H(){I 7.3W(19,M,Q,H(a){G(7.16==1)7.3U(a)})},6F:H(){I 7.3W(19,M,M,H(a){G(7.16==1)7.39(a,7.1x)})},6E:H(){I 7.3W(19,Q,Q,H(a){7.1d.39(a,7)})},5q:H(){I 7.3W(19,Q,M,H(a){7.1d.39(a,7.2H)})},3l:H(){I 7.5n||D([])},2q:H(b){J c=D.2l(7,H(a){I D.2q(b,a)});I 7.2I(/[^+>] [^+>]/.11(b)||b.1h("..")>-1?D.4r(c):c)},5y:H(e){J f=7.2l(H(){G(D.14.1f&&!D.4n(7)){J a=7.6o(M),5h=S.3h("1v");5h.3U(a);I D.4h([5h.4H])[0]}N I 7.6o(M)});J d=f.2q("*").5c().P(H(){G(7[E]!=12)7[E]=U});G(e===M)7.2q("*").5c().P(H(i){G(7.16==3)I;J c=D.L(7,"3w");R(J a 1n c)R(J b 1n c[a])D.W.1e(d[i],a,c[a][b],c[a][b].L)});I f},1E:H(b){I 7.2I(D.1D(b)&&D.3C(7,H(a,i){I b.1k(a,i)})||D.3g(b,7))},4Y:H(b){G(b.1q==56)G(62.11(b))I 7.2I(D.3g(b,7,M));N b=D.3g(b,7);J a=b.K&&b[b.K-1]!==12&&!b.16;I 7.1E(H(){I a?D.2L(7,b)<0:7!=b})},1e:H(a){I 7.2I(D.4r(D.2R(7.3p(),1j a==\'23\'?D(a):D.2d(a))))},3F:H(a){I!!a&&D.3g(a,7).K>0},7T:H(a){I 7.3F("."+a)},6e:H(b){G(b==12){G(7.K){J c=7[0];G(D.Y(c,"2A")){J e=c.64,63=[],15=c.15,2V=c.O=="2A-2V";G(e<0)I U;R(J i=2V?e:0,2f=2V?e+1:15.K;i<2f;i++){J d=15[i];G(d.2W){b=D.14.1f&&!d.at.2x.an?d.1r:d.2x;G(2V)I b;63.1p(b)}}I 63}N I(7[0].2x||"").1o(/\\r/g,"")}I 12}G(b.1q==4L)b+=\'\';I 7.P(H(){G(7.16!=1)I;G(b.1q==2p&&/5O|5L/.11(7.O))7.4J=(D.2L(7.2x,b)>=0||D.2L(7.34,b)>=0);N G(D.Y(7,"2A")){J a=D.2d(b);D("9R",7).P(H(){7.2W=(D.2L(7.2x,a)>=0||D.2L(7.1r,a)>=0)});G(!a.K)7.64=-1}N 7.2x=b})},2K:H(a){I a==12?(7[0]?7[0].4H:U):7.4E().3v(a)},7b:H(a){I 7.5q(a).21()},79:H(i){I 7.3s(i,i+1)},3s:H(){I 7.2I(2p.44.3s.1w(7,19))},2l:H(b){I 7.2I(D.2l(7,H(a,i){I b.1k(a,i,a)}))},5c:H(){I 7.1e(7.5n)},L:H(d,b){J a=d.1R(".");a[1]=a[1]?"."+a[1]:"";G(b===12){J c=7.5C("9z"+a[1]+"!",[a[0]]);G(c===12&&7.K)c=D.L(7[0],d);I c===12&&a[1]?7.L(a[0]):c}N I 7.1P("9u"+a[1]+"!",[a[0],b]).P(H(){D.L(7,d,b)})},3b:H(a){I 7.P(H(){D.3b(7,a)})},3W:H(g,f,h,d){J e=7.K>1,3x;I 7.P(H(){G(!3x){3x=D.4h(g,7.2z);G(h)3x.9o()}J b=7;G(f&&D.Y(7,"1T")&&D.Y(3x[0],"4F"))b=7.3H("22")[0]||7.3U(7.2z.3h("22"));J c=D([]);D.P(3x,H(){J a=e?D(7).5y(M)[0]:7;G(D.Y(a,"1m"))c=c.1e(a);N{G(a.16==1)c=c.1e(D("1m",a).21());d.1k(b,a)}});c.P(6T)})}};D.17.5j.44=D.17;H 6T(i,a){G(a.4d)D.3Y({1a:a.4d,31:Q,1O:"1m"});N D.5u(a.1r||a.6O||a.4H||"");G(a.1d)a.1d.37(a)}H 1z(){I+2B 8J}D.1l=D.17.1l=H(){J b=19[0]||{},i=1,K=19.K,4x=Q,15;G(b.1q==8I){4x=b;b=19[1]||{};i=2}G(1j b!="49"&&1j b!="H")b={};G(K==i){b=7;--i}R(;i<K;i++)G((15=19[i])!=U)R(J c 1n 15){J a=b[c],2w=15[c];G(b===2w)6M;G(4x&&2w&&1j 2w=="49"&&!2w.16)b[c]=D.1l(4x,a||(2w.K!=U?[]:{}),2w);N G(2w!==12)b[c]=2w}I b};J E="4M"+1z(),6K=0,5r={},6G=/z-?5i|8B-?8A|1y|6B|8v-?1Z/i,3P=S.3P||{};D.1l({8u:H(a){1b.$=3m$;G(a)1b.4M=w;I D},1D:H(a){I!!a&&1j a!="23"&&!a.Y&&a.1q!=2p&&/^[\\s[]?H/.11(a+"")},4n:H(a){I a.1C&&!a.1c||a.2j&&a.2z&&!a.2z.1c},5u:H(a){a=D.3k(a);G(a){J b=S.3H("6w")[0]||S.1C,1m=S.3h("1m");1m.O="1r/4t";G(D.14.1f)1m.1r=a;N 1m.3U(S.5F(a));b.39(1m,b.1x);b.37(1m)}},Y:H(b,a){I b.Y&&b.Y.2r()==a.2r()},1Y:{},L:H(c,d,b){c=c==1b?5r:c;J a=c[E];G(!a)a=c[E]=++6K;G(d&&!D.1Y[a])D.1Y[a]={};G(b!==12)D.1Y[a][d]=b;I d?D.1Y[a][d]:a},3b:H(c,b){c=c==1b?5r:c;J a=c[E];G(b){G(D.1Y[a]){2U D.1Y[a][b];b="";R(b 1n D.1Y[a])1X;G(!b)D.3b(c)}}N{1U{2U c[E]}1V(e){G(c.5l)c.5l(E)}2U D.1Y[a]}},P:H(d,a,c){J e,i=0,K=d.K;G(c){G(K==12){R(e 1n d)G(a.1w(d[e],c)===Q)1X}N R(;i<K;)G(a.1w(d[i++],c)===Q)1X}N{G(K==12){R(e 1n d)G(a.1k(d[e],e,d[e])===Q)1X}N R(J b=d[0];i<K&&a.1k(b,i,b)!==Q;b=d[++i]){}}I d},1i:H(b,a,c,i,d){G(D.1D(a))a=a.1k(b,i);I a&&a.1q==4L&&c=="2a"&&!6G.11(d)?a+"2X":a},1F:{1e:H(c,b){D.P((b||"").1R(/\\s+/),H(i,a){G(c.16==1&&!D.1F.3T(c.1F,a))c.1F+=(c.1F?" ":"")+a})},21:H(c,b){G(c.16==1)c.1F=b!=12?D.3C(c.1F.1R(/\\s+/),H(a){I!D.1F.3T(b,a)}).6s(" "):""},3T:H(b,a){I D.2L(a,(b.1F||b).6r().1R(/\\s+/))>-1}},6q:H(b,c,a){J e={};R(J d 1n c){e[d]=b.V[d];b.V[d]=c[d]}a.1k(b);R(J d 1n c)b.V[d]=e[d]},1g:H(d,e,c){G(e=="2h"||e=="1Z"){J b,3X={30:"5x",5g:"1G",18:"3I"},35=e=="2h"?["5e","6k"]:["5G","6i"];H 5b(){b=e=="2h"?d.8f:d.8c;J a=0,2C=0;D.P(35,H(){a+=3d(D.2a(d,"57"+7,M))||0;2C+=3d(D.2a(d,"2C"+7+"4b",M))||0});b-=29.83(a+2C)}G(D(d).3F(":4j"))5b();N D.6q(d,3X,5b);I 29.2f(0,b)}I D.2a(d,e,c)},2a:H(f,l,k){J e,V=f.V;H 3E(b){G(!D.14.2k)I Q;J a=3P.54(b,U);I!a||a.52("3E")==""}G(l=="1y"&&D.14.1f){e=D.1K(V,"1y");I e==""?"1":e}G(D.14.2G&&l=="18"){J d=V.50;V.50="0 7Y 7W";V.50=d}G(l.1I(/4i/i))l=y;G(!k&&V&&V[l])e=V[l];N G(3P.54){G(l.1I(/4i/i))l="4i";l=l.1o(/([A-Z])/g,"-$1").3y();J c=3P.54(f,U);G(c&&!3E(f))e=c.52(l);N{J g=[],2E=[],a=f,i=0;R(;a&&3E(a);a=a.1d)2E.6h(a);R(;i<2E.K;i++)G(3E(2E[i])){g[i]=2E[i].V.18;2E[i].V.18="3I"}e=l=="18"&&g[2E.K-1]!=U?"2F":(c&&c.52(l))||"";R(i=0;i<g.K;i++)G(g[i]!=U)2E[i].V.18=g[i]}G(l=="1y"&&e=="")e="1"}N G(f.4g){J h=l.1o(/\\-(\\w)/g,H(a,b){I b.2r()});e=f.4g[l]||f.4g[h];G(!/^\\d+(2X)?$/i.11(e)&&/^\\d/.11(e)){J j=V.1A,66=f.65.1A;f.65.1A=f.4g.1A;V.1A=e||0;e=V.aM+"2X";V.1A=j;f.65.1A=66}}I e},4h:H(l,h){J k=[];h=h||S;G(1j h.3h==\'12\')h=h.2z||h[0]&&h[0].2z||S;D.P(l,H(i,d){G(!d)I;G(d.1q==4L)d+=\'\';G(1j d=="23"){d=d.1o(/(<(\\w+)[^>]*?)\\/>/g,H(b,a,c){I c.1I(/^(aK|4f|7E|aG|4T|7A|aB|3n|az|ay|av)$/i)?b:a+"></"+c+">"});J f=D.3k(d).3y(),1v=h.3h("1v");J e=!f.1h("<au")&&[1,"<2A 7w=\'7w\'>","</2A>"]||!f.1h("<ar")&&[1,"<7v>","</7v>"]||f.1I(/^<(aq|22|am|ak|ai)/)&&[1,"<1T>","</1T>"]||!f.1h("<4F")&&[2,"<1T><22>","</22></1T>"]||(!f.1h("<af")||!f.1h("<ad"))&&[3,"<1T><22><4F>","</4F></22></1T>"]||!f.1h("<7E")&&[2,"<1T><22></22><7q>","</7q></1T>"]||D.14.1f&&[1,"1v<1v>","</1v>"]||[0,"",""];1v.4H=e[1]+d+e[2];1B(e[0]--)1v=1v.5T;G(D.14.1f){J g=!f.1h("<1T")&&f.1h("<22")<0?1v.1x&&1v.1x.3t:e[1]=="<1T>"&&f.1h("<22")<0?1v.3t:[];R(J j=g.K-1;j>=0;--j)G(D.Y(g[j],"22")&&!g[j].3t.K)g[j].1d.37(g[j]);G(/^\\s/.11(d))1v.39(h.5F(d.1I(/^\\s*/)[0]),1v.1x)}d=D.2d(1v.3t)}G(d.K===0&&(!D.Y(d,"3V")&&!D.Y(d,"2A")))I;G(d[0]==12||D.Y(d,"3V")||d.15)k.1p(d);N k=D.2R(k,d)});I k},1K:H(d,f,c){G(!d||d.16==3||d.16==8)I 12;J e=!D.4n(d),40=c!==12,1f=D.14.1f;f=e&&D.3X[f]||f;G(d.2j){J g=/5Q|4d|V/.11(f);G(f=="2W"&&D.14.2k)d.1d.64;G(f 1n d&&e&&!g){G(40){G(f=="O"&&D.Y(d,"4T")&&d.1d)7p"O a3 a1\'t 9V 9U";d[f]=c}G(D.Y(d,"3V")&&d.7i(f))I d.7i(f).76;I d[f]}G(1f&&e&&f=="V")I D.1K(d.V,"9T",c);G(40)d.9Q(f,""+c);J h=1f&&e&&g?d.4G(f,2):d.4G(f);I h===U?12:h}G(1f&&f=="1y"){G(40){d.6B=1;d.1E=(d.1E||"").1o(/7f\\([^)]*\\)/,"")+(3r(c)+\'\'=="9L"?"":"7f(1y="+c*7a+")")}I d.1E&&d.1E.1h("1y=")>=0?(3d(d.1E.1I(/1y=([^)]*)/)[1])/7a)+\'\':""}f=f.1o(/-([a-z])/9H,H(a,b){I b.2r()});G(40)d[f]=c;I d[f]},3k:H(a){I(a||"").1o(/^\\s+|\\s+$/g,"")},2d:H(b){J a=[];G(b!=U){J i=b.K;G(i==U||b.1R||b.4I||b.1k)a[0]=b;N 1B(i)a[--i]=b[i]}I a},2L:H(b,a){R(J i=0,K=a.K;i<K;i++)G(a[i]===b)I i;I-1},2R:H(a,b){J i=0,T,2S=a.K;G(D.14.1f){1B(T=b[i++])G(T.16!=8)a[2S++]=T}N 1B(T=b[i++])a[2S++]=T;I a},4r:H(a){J c=[],2o={};1U{R(J i=0,K=a.K;i<K;i++){J b=D.L(a[i]);G(!2o[b]){2o[b]=M;c.1p(a[i])}}}1V(e){c=a}I c},3C:H(c,a,d){J b=[];R(J i=0,K=c.K;i<K;i++)G(!d!=!a(c[i],i))b.1p(c[i]);I b},2l:H(d,a){J c=[];R(J i=0,K=d.K;i<K;i++){J b=a(d[i],i);G(b!=U)c[c.K]=b}I c.7d.1w([],c)}});J v=9B.9A.3y();D.14={5B:(v.1I(/.+(?:9y|9x|9w|9v)[\\/: ]([\\d.]+)/)||[])[1],2k:/75/.11(v),2G:/2G/.11(v),1f:/1f/.11(v)&&!/2G/.11(v),42:/42/.11(v)&&!/(9s|75)/.11(v)};J y=D.14.1f?"7o":"72";D.1l({71:!D.14.1f||S.70=="6Z",3X:{"R":"9n","9k":"1F","4i":y,72:y,7o:y,9h:"9f",9e:"9d",9b:"99"}});D.P({6W:H(a){I a.1d},97:H(a){I D.4S(a,"1d")},95:H(a){I D.3a(a,2,"2H")},91:H(a){I D.3a(a,2,"4l")},8Z:H(a){I D.4S(a,"2H")},8X:H(a){I D.4S(a,"4l")},8W:H(a){I D.5v(a.1d.1x,a)},8V:H(a){I D.5v(a.1x)},6Q:H(a){I D.Y(a,"8U")?a.8T||a.8S.S:D.2d(a.3t)}},H(c,d){D.17[c]=H(b){J a=D.2l(7,d);G(b&&1j b=="23")a=D.3g(b,a);I 7.2I(D.4r(a))}});D.P({6P:"3v",8Q:"6F",39:"6E",8P:"5q",8O:"7b"},H(c,b){D.17[c]=H(){J a=19;I 7.P(H(){R(J i=0,K=a.K;i<K;i++)D(a[i])[b](7)})}});D.P({8N:H(a){D.1K(7,a,"");G(7.16==1)7.5l(a)},8M:H(a){D.1F.1e(7,a)},8L:H(a){D.1F.21(7,a)},8K:H(a){D.1F[D.1F.3T(7,a)?"21":"1e"](7,a)},21:H(a){G(!a||D.1E(a,[7]).r.K){D("*",7).1e(7).P(H(){D.W.21(7);D.3b(7)});G(7.1d)7.1d.37(7)}},4E:H(){D(">*",7).21();1B(7.1x)7.37(7.1x)}},H(a,b){D.17[a]=H(){I 7.P(b,19)}});D.P(["6N","4b"],H(i,c){J b=c.3y();D.17[b]=H(a){I 7[0]==1b?D.14.2G&&S.1c["5t"+c]||D.14.2k&&1b["5s"+c]||S.70=="6Z"&&S.1C["5t"+c]||S.1c["5t"+c]:7[0]==S?29.2f(29.2f(S.1c["4y"+c],S.1C["4y"+c]),29.2f(S.1c["2i"+c],S.1C["2i"+c])):a==12?(7.K?D.1g(7[0],b):U):7.1g(b,a.1q==56?a:a+"2X")}});H 25(a,b){I a[0]&&3r(D.2a(a[0],b,M),10)||0}J C=D.14.2k&&3r(D.14.5B)<8H?"(?:[\\\\w*3m-]|\\\\\\\\.)":"(?:[\\\\w\\8F-\\8E*3m-]|\\\\\\\\.)",6L=2B 4v("^>\\\\s*("+C+"+)"),6J=2B 4v("^("+C+"+)(#)("+C+"+)"),6I=2B 4v("^([#.]?)("+C+"*)");D.1l({6H:{"":H(a,i,m){I m[2]=="*"||D.Y(a,m[2])},"#":H(a,i,m){I a.4G("2v")==m[2]},":":{8D:H(a,i,m){I i<m[3]-0},8C:H(a,i,m){I i>m[3]-0},3a:H(a,i,m){I m[3]-0==i},79:H(a,i,m){I m[3]-0==i},3o:H(a,i){I i==0},3S:H(a,i,m,r){I i==r.K-1},6D:H(a,i){I i%2==0},6C:H(a,i){I i%2},"3o-4u":H(a){I a.1d.3H("*")[0]==a},"3S-4u":H(a){I D.3a(a.1d.5T,1,"4l")==a},"8z-4u":H(a){I!D.3a(a.1d.5T,2,"4l")},6W:H(a){I a.1x},4E:H(a){I!a.1x},8y:H(a,i,m){I(a.6O||a.8x||D(a).1r()||"").1h(m[3])>=0},4j:H(a){I"1G"!=a.O&&D.1g(a,"18")!="2F"&&D.1g(a,"5g")!="1G"},1G:H(a){I"1G"==a.O||D.1g(a,"18")=="2F"||D.1g(a,"5g")=="1G"},8w:H(a){I!a.3R},3R:H(a){I a.3R},4J:H(a){I a.4J},2W:H(a){I a.2W||D.1K(a,"2W")},1r:H(a){I"1r"==a.O},5O:H(a){I"5O"==a.O},5L:H(a){I"5L"==a.O},5p:H(a){I"5p"==a.O},3Q:H(a){I"3Q"==a.O},5o:H(a){I"5o"==a.O},6A:H(a){I"6A"==a.O},6z:H(a){I"6z"==a.O},2s:H(a){I"2s"==a.O||D.Y(a,"2s")},4T:H(a){I/4T|2A|6y|2s/i.11(a.Y)},3T:H(a,i,m){I D.2q(m[3],a).K},8t:H(a){I/h\\d/i.11(a.Y)},8s:H(a){I D.3C(D.3O,H(b){I a==b.T}).K}}},6x:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2B 4v("^([:.#]*)("+C+"+)")],3g:H(a,c,b){J d,1t=[];1B(a&&a!=d){d=a;J f=D.1E(a,c,b);a=f.t.1o(/^\\s*,\\s*/,"");1t=b?c=f.r:D.2R(1t,f.r)}I 1t},2q:H(t,o){G(1j t!="23")I[t];G(o&&o.16!=1&&o.16!=9)I[];o=o||S;J d=[o],2o=[],3S,Y;1B(t&&3S!=t){J r=[];3S=t;t=D.3k(t);J l=Q,3j=6L,m=3j.2D(t);G(m){Y=m[1].2r();R(J i=0;d[i];i++)R(J c=d[i].1x;c;c=c.2H)G(c.16==1&&(Y=="*"||c.Y.2r()==Y))r.1p(c);d=r;t=t.1o(3j,"");G(t.1h(" ")==0)6M;l=M}N{3j=/^([>+~])\\s*(\\w*)/i;G((m=3j.2D(t))!=U){r=[];J k={};Y=m[2].2r();m=m[1];R(J j=0,3i=d.K;j<3i;j++){J n=m=="~"||m=="+"?d[j].2H:d[j].1x;R(;n;n=n.2H)G(n.16==1){J g=D.L(n);G(m=="~"&&k[g])1X;G(!Y||n.Y.2r()==Y){G(m=="~")k[g]=M;r.1p(n)}G(m=="+")1X}}d=r;t=D.3k(t.1o(3j,""));l=M}}G(t&&!l){G(!t.1h(",")){G(o==d[0])d.4s();2o=D.2R(2o,d);r=d=[o];t=" "+t.6v(1,t.K)}N{J h=6J;J m=h.2D(t);G(m){m=[0,m[2],m[3],m[1]]}N{h=6I;m=h.2D(t)}m[2]=m[2].1o(/\\\\/g,"");J f=d[d.K-1];G(m[1]=="#"&&f&&f.61&&!D.4n(f)){J p=f.61(m[2]);G((D.14.1f||D.14.2G)&&p&&1j p.2v=="23"&&p.2v!=m[2])p=D(\'[@2v="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||D.Y(p,m[3]))?[p]:[]}N{R(J i=0;d[i];i++){J a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];G(a=="*"&&d[i].Y.3y()=="49")a="3n";r=D.2R(r,d[i].3H(a))}G(m[1]==".")r=D.5m(r,m[2]);G(m[1]=="#"){J e=[];R(J i=0;r[i];i++)G(r[i].4G("2v")==m[2]){e=[r[i]];1X}r=e}d=r}t=t.1o(h,"")}}G(t){J b=D.1E(t,r);d=r=b.r;t=D.3k(b.t)}}G(t)d=[];G(d&&o==d[0])d.4s();2o=D.2R(2o,d);I 2o},5m:H(r,m,a){m=" "+m+" ";J c=[];R(J i=0;r[i];i++){J b=(" "+r[i].1F+" ").1h(m)>=0;G(!a&&b||a&&!b)c.1p(r[i])}I c},1E:H(t,r,h){J d;1B(t&&t!=d){d=t;J p=D.6x,m;R(J i=0;p[i];i++){m=p[i].2D(t);G(m){t=t.8r(m[0].K);m[2]=m[2].1o(/\\\\/g,"");1X}}G(!m)1X;G(m[1]==":"&&m[2]=="4Y")r=62.11(m[3])?D.1E(m[3],r,M).r:D(r).4Y(m[3]);N G(m[1]==".")r=D.5m(r,m[2],h);N G(m[1]=="["){J g=[],O=m[3];R(J i=0,3i=r.K;i<3i;i++){J a=r[i],z=a[D.3X[m[2]]||m[2]];G(z==U||/5Q|4d|2W/.11(m[2]))z=D.1K(a,m[2])||\'\';G((O==""&&!!z||O=="="&&z==m[5]||O=="!="&&z!=m[5]||O=="^="&&z&&!z.1h(m[5])||O=="$="&&z.6v(z.K-m[5].K)==m[5]||(O=="*="||O=="~=")&&z.1h(m[5])>=0)^h)g.1p(a)}r=g}N G(m[1]==":"&&m[2]=="3a-4u"){J e={},g=[],11=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2D(m[3]=="6D"&&"2n"||m[3]=="6C"&&"2n+1"||!/\\D/.11(m[3])&&"8q+"+m[3]||m[3]),3o=(11[1]+(11[2]||1))-0,d=11[3]-0;R(J i=0,3i=r.K;i<3i;i++){J j=r[i],1d=j.1d,2v=D.L(1d);G(!e[2v]){J c=1;R(J n=1d.1x;n;n=n.2H)G(n.16==1)n.4q=c++;e[2v]=M}J b=Q;G(3o==0){G(j.4q==d)b=M}N G((j.4q-d)%3o==0&&(j.4q-d)/3o>=0)b=M;G(b^h)g.1p(j)}r=g}N{J f=D.6H[m[1]];G(1j f=="49")f=f[m[2]];G(1j f=="23")f=6u("Q||H(a,i){I "+f+";}");r=D.3C(r,H(a,i){I f(a,i,m,r)},h)}}I{r:r,t:t}},4S:H(b,c){J a=[],1t=b[c];1B(1t&&1t!=S){G(1t.16==1)a.1p(1t);1t=1t[c]}I a},3a:H(a,e,c,b){e=e||1;J d=0;R(;a;a=a[c])G(a.16==1&&++d==e)1X;I a},5v:H(n,a){J r=[];R(;n;n=n.2H){G(n.16==1&&n!=a)r.1p(n)}I r}});D.W={1e:H(f,i,g,e){G(f.16==3||f.16==8)I;G(D.14.1f&&f.4I)f=1b;G(!g.24)g.24=7.24++;G(e!=12){J h=g;g=7.3M(h,H(){I h.1w(7,19)});g.L=e}J j=D.L(f,"3w")||D.L(f,"3w",{}),1H=D.L(f,"1H")||D.L(f,"1H",H(){G(1j D!="12"&&!D.W.5k)I D.W.1H.1w(19.3L.T,19)});1H.T=f;D.P(i.1R(/\\s+/),H(c,b){J a=b.1R(".");b=a[0];g.O=a[1];J d=j[b];G(!d){d=j[b]={};G(!D.W.2t[b]||D.W.2t[b].4p.1k(f)===Q){G(f.3K)f.3K(b,1H,Q);N G(f.6t)f.6t("4o"+b,1H)}}d[g.24]=g;D.W.26[b]=M});f=U},24:1,26:{},21:H(e,h,f){G(e.16==3||e.16==8)I;J i=D.L(e,"3w"),1L,5i;G(i){G(h==12||(1j h=="23"&&h.8p(0)=="."))R(J g 1n i)7.21(e,g+(h||""));N{G(h.O){f=h.2y;h=h.O}D.P(h.1R(/\\s+/),H(b,a){J c=a.1R(".");a=c[0];G(i[a]){G(f)2U i[a][f.24];N R(f 1n i[a])G(!c[1]||i[a][f].O==c[1])2U i[a][f];R(1L 1n i[a])1X;G(!1L){G(!D.W.2t[a]||D.W.2t[a].4A.1k(e)===Q){G(e.6p)e.6p(a,D.L(e,"1H"),Q);N G(e.6n)e.6n("4o"+a,D.L(e,"1H"))}1L=U;2U i[a]}}})}R(1L 1n i)1X;G(!1L){J d=D.L(e,"1H");G(d)d.T=U;D.3b(e,"3w");D.3b(e,"1H")}}},1P:H(h,c,f,g,i){c=D.2d(c);G(h.1h("!")>=0){h=h.3s(0,-1);J a=M}G(!f){G(7.26[h])D("*").1e([1b,S]).1P(h,c)}N{G(f.16==3||f.16==8)I 12;J b,1L,17=D.1D(f[h]||U),W=!c[0]||!c[0].32;G(W){c.6h({O:h,2J:f,32:H(){},3J:H(){},4C:1z()});c[0][E]=M}c[0].O=h;G(a)c[0].6m=M;J d=D.L(f,"1H");G(d)b=d.1w(f,c);G((!17||(D.Y(f,\'a\')&&h=="4V"))&&f["4o"+h]&&f["4o"+h].1w(f,c)===Q)b=Q;G(W)c.4s();G(i&&D.1D(i)){1L=i.1w(f,b==U?c:c.7d(b));G(1L!==12)b=1L}G(17&&g!==Q&&b!==Q&&!(D.Y(f,\'a\')&&h=="4V")){7.5k=M;1U{f[h]()}1V(e){}}7.5k=Q}I b},1H:H(b){J a,1L,38,5f,4m;b=19[0]=D.W.6l(b||1b.W);38=b.O.1R(".");b.O=38[0];38=38[1];5f=!38&&!b.6m;4m=(D.L(7,"3w")||{})[b.O];R(J j 1n 4m){J c=4m[j];G(5f||c.O==38){b.2y=c;b.L=c.L;1L=c.1w(7,19);G(a!==Q)a=1L;G(1L===Q){b.32();b.3J()}}}I a},6l:H(b){G(b[E]==M)I b;J d=b;b={8o:d};J c="8n 8m 8l 8k 2s 8j 47 5d 6j 5E 8i L 8h 8g 4K 2y 5a 59 8e 8b 58 6f 8a 88 4k 87 86 84 6d 2J 4C 6c O 82 81 35".1R(" ");R(J i=c.K;i;i--)b[c[i]]=d[c[i]];b[E]=M;b.32=H(){G(d.32)d.32();d.80=Q};b.3J=H(){G(d.3J)d.3J();d.7Z=M};b.4C=b.4C||1z();G(!b.2J)b.2J=b.6d||S;G(b.2J.16==3)b.2J=b.2J.1d;G(!b.4k&&b.4K)b.4k=b.4K==b.2J?b.6c:b.4K;G(b.58==U&&b.5d!=U){J a=S.1C,1c=S.1c;b.58=b.5d+(a&&a.2e||1c&&1c.2e||0)-(a.6b||0);b.6f=b.6j+(a&&a.2c||1c&&1c.2c||0)-(a.6a||0)}G(!b.35&&((b.47||b.47===0)?b.47:b.5a))b.35=b.47||b.5a;G(!b.59&&b.5E)b.59=b.5E;G(!b.35&&b.2s)b.35=(b.2s&1?1:(b.2s&2?3:(b.2s&4?2:0)));I b},3M:H(a,b){b.24=a.24=a.24||b.24||7.24++;I b},2t:{27:{4p:H(){55();I},4A:H(){I}},3D:{4p:H(){G(D.14.1f)I Q;D(7).2O("53",D.W.2t.3D.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("53",D.W.2t.3D.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3D";I D.W.1H.1w(7,19)}},3N:{4p:H(){G(D.14.1f)I Q;D(7).2O("51",D.W.2t.3N.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("51",D.W.2t.3N.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3N";I D.W.1H.1w(7,19)}}}};D.17.1l({2O:H(c,a,b){I c=="4X"?7.2V(c,a,b):7.P(H(){D.W.1e(7,c,b||a,b&&a)})},2V:H(d,b,c){J e=D.W.3M(c||b,H(a){D(7).4e(a,e);I(c||b).1w(7,19)});I 7.P(H(){D.W.1e(7,d,e,c&&b)})},4e:H(a,b){I 7.P(H(){D.W.21(7,a,b)})},1P:H(c,a,b){I 7.P(H(){D.W.1P(c,a,7,M,b)})},5C:H(c,a,b){I 7[0]&&D.W.1P(c,a,7[0],Q,b)},2m:H(b){J c=19,i=1;1B(i<c.K)D.W.3M(b,c[i++]);I 7.4V(D.W.3M(b,H(a){7.4Z=(7.4Z||0)%i;a.32();I c[7.4Z++].1w(7,19)||Q}))},7X:H(a,b){I 7.2O(\'3D\',a).2O(\'3N\',b)},27:H(a){55();G(D.2Q)a.1k(S,D);N D.3A.1p(H(){I a.1k(7,D)});I 7}});D.1l({2Q:Q,3A:[],27:H(){G(!D.2Q){D.2Q=M;G(D.3A){D.P(D.3A,H(){7.1k(S)});D.3A=U}D(S).5C("27")}}});J x=Q;H 55(){G(x)I;x=M;G(S.3K&&!D.14.2G)S.3K("69",D.27,Q);G(D.14.1f&&1b==1S)(H(){G(D.2Q)I;1U{S.1C.7V("1A")}1V(3e){3B(19.3L,0);I}D.27()})();G(D.14.2G)S.3K("69",H(){G(D.2Q)I;R(J i=0;i<S.4W.K;i++)G(S.4W[i].3R){3B(19.3L,0);I}D.27()},Q);G(D.14.2k){J a;(H(){G(D.2Q)I;G(S.3f!="68"&&S.3f!="1J"){3B(19.3L,0);I}G(a===12)a=D("V, 7A[7U=7S]").K;G(S.4W.K!=a){3B(19.3L,0);I}D.27()})()}D.W.1e(1b,"43",D.27)}D.P(("7R,7Q,43,85,4y,4X,4V,7P,"+"7O,7N,89,53,51,7M,2A,"+"5o,7L,7K,8d,3e").1R(","),H(i,b){D.17[b]=H(a){I a?7.2O(b,a):7.1P(b)}});J F=H(a,c){J b=a.4k;1B(b&&b!=c)1U{b=b.1d}1V(3e){b=c}I b==c};D(1b).2O("4X",H(){D("*").1e(S).4e()});D.17.1l({67:D.17.43,43:H(g,d,c){G(1j g!=\'23\')I 7.67(g);J e=g.1h(" ");G(e>=0){J i=g.3s(e,g.K);g=g.3s(0,e)}c=c||H(){};J f="2P";G(d)G(D.1D(d)){c=d;d=U}N{d=D.3n(d);f="6g"}J h=7;D.3Y({1a:g,O:f,1O:"2K",L:d,1J:H(a,b){G(b=="1W"||b=="7J")h.2K(i?D("<1v/>").3v(a.4U.1o(/<1m(.|\\s)*?\\/1m>/g,"")).2q(i):a.4U);h.P(c,[a.4U,b,a])}});I 7},aL:H(){I D.3n(7.7I())},7I:H(){I 7.2l(H(){I D.Y(7,"3V")?D.2d(7.aH):7}).1E(H(){I 7.34&&!7.3R&&(7.4J||/2A|6y/i.11(7.Y)||/1r|1G|3Q/i.11(7.O))}).2l(H(i,c){J b=D(7).6e();I b==U?U:b.1q==2p?D.2l(b,H(a,i){I{34:c.34,2x:a}}):{34:c.34,2x:b}}).3p()}});D.P("7H,7G,7F,7D,7C,7B".1R(","),H(i,o){D.17[o]=H(f){I 7.2O(o,f)}});J B=1z();D.1l({3p:H(d,b,a,c){G(D.1D(b)){a=b;b=U}I D.3Y({O:"2P",1a:d,L:b,1W:a,1O:c})},aE:H(b,a){I D.3p(b,U,a,"1m")},aD:H(c,b,a){I D.3p(c,b,a,"3z")},aC:H(d,b,a,c){G(D.1D(b)){a=b;b={}}I D.3Y({O:"6g",1a:d,L:b,1W:a,1O:c})},aA:H(a){D.1l(D.60,a)},60:{1a:5Z.5Q,26:M,O:"2P",2T:0,7z:"4R/x-ax-3V-aw",7x:M,31:M,L:U,5Y:U,3Q:U,4Q:{2N:"4R/2N, 1r/2N",2K:"1r/2K",1m:"1r/4t, 4R/4t",3z:"4R/3z, 1r/4t",1r:"1r/as",4w:"*/*"}},4z:{},3Y:H(s){s=D.1l(M,s,D.1l(M,{},D.60,s));J g,2Z=/=\\?(&|$)/g,1u,L,O=s.O.2r();G(s.L&&s.7x&&1j s.L!="23")s.L=D.3n(s.L);G(s.1O=="4P"){G(O=="2P"){G(!s.1a.1I(2Z))s.1a+=(s.1a.1I(/\\?/)?"&":"?")+(s.4P||"7u")+"=?"}N G(!s.L||!s.L.1I(2Z))s.L=(s.L?s.L+"&":"")+(s.4P||"7u")+"=?";s.1O="3z"}G(s.1O=="3z"&&(s.L&&s.L.1I(2Z)||s.1a.1I(2Z))){g="4P"+B++;G(s.L)s.L=(s.L+"").1o(2Z,"="+g+"$1");s.1a=s.1a.1o(2Z,"="+g+"$1");s.1O="1m";1b[g]=H(a){L=a;1W();1J();1b[g]=12;1U{2U 1b[g]}1V(e){}G(i)i.37(h)}}G(s.1O=="1m"&&s.1Y==U)s.1Y=Q;G(s.1Y===Q&&O=="2P"){J j=1z();J k=s.1a.1o(/(\\?|&)3m=.*?(&|$)/,"$ap="+j+"$2");s.1a=k+((k==s.1a)?(s.1a.1I(/\\?/)?"&":"?")+"3m="+j:"")}G(s.L&&O=="2P"){s.1a+=(s.1a.1I(/\\?/)?"&":"?")+s.L;s.L=U}G(s.26&&!D.4O++)D.W.1P("7H");J n=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;G(s.1O=="1m"&&O=="2P"&&n.11(s.1a)&&n.2D(s.1a)[1]!=5Z.al){J i=S.3H("6w")[0];J h=S.3h("1m");h.4d=s.1a;G(s.7t)h.aj=s.7t;G(!g){J l=Q;h.ah=h.ag=H(){G(!l&&(!7.3f||7.3f=="68"||7.3f=="1J")){l=M;1W();1J();i.37(h)}}}i.3U(h);I 12}J m=Q;J c=1b.7s?2B 7s("ae.ac"):2B 7r();G(s.5Y)c.6R(O,s.1a,s.31,s.5Y,s.3Q);N c.6R(O,s.1a,s.31);1U{G(s.L)c.4B("ab-aa",s.7z);G(s.5S)c.4B("a9-5R-a8",D.4z[s.1a]||"a7, a6 a5 a4 5N:5N:5N a2");c.4B("X-9Z-9Y","7r");c.4B("9W",s.1O&&s.4Q[s.1O]?s.4Q[s.1O]+", */*":s.4Q.4w)}1V(e){}G(s.7m&&s.7m(c,s)===Q){s.26&&D.4O--;c.7l();I Q}G(s.26)D.W.1P("7B",[c,s]);J d=H(a){G(!m&&c&&(c.3f==4||a=="2T")){m=M;G(f){7k(f);f=U}1u=a=="2T"&&"2T"||!D.7j(c)&&"3e"||s.5S&&D.7h(c,s.1a)&&"7J"||"1W";G(1u=="1W"){1U{L=D.6X(c,s.1O,s.9S)}1V(e){1u="5J"}}G(1u=="1W"){J b;1U{b=c.5I("7g-5R")}1V(e){}G(s.5S&&b)D.4z[s.1a]=b;G(!g)1W()}N D.5H(s,c,1u);1J();G(s.31)c=U}};G(s.31){J f=4I(d,13);G(s.2T>0)3B(H(){G(c){c.7l();G(!m)d("2T")}},s.2T)}1U{c.9P(s.L)}1V(e){D.5H(s,c,U,e)}G(!s.31)d();H 1W(){G(s.1W)s.1W(L,1u);G(s.26)D.W.1P("7C",[c,s])}H 1J(){G(s.1J)s.1J(c,1u);G(s.26)D.W.1P("7F",[c,s]);G(s.26&&!--D.4O)D.W.1P("7G")}I c},5H:H(s,a,b,e){G(s.3e)s.3e(a,b,e);G(s.26)D.W.1P("7D",[a,s,e])},4O:0,7j:H(a){1U{I!a.1u&&5Z.9O=="5p:"||(a.1u>=7e&&a.1u<9N)||a.1u==7c||a.1u==9K||D.14.2k&&a.1u==12}1V(e){}I Q},7h:H(a,c){1U{J b=a.5I("7g-5R");I a.1u==7c||b==D.4z[c]||D.14.2k&&a.1u==12}1V(e){}I Q},6X:H(a,c,b){J d=a.5I("9J-O"),2N=c=="2N"||!c&&d&&d.1h("2N")>=0,L=2N?a.9I:a.4U;G(2N&&L.1C.2j=="5J")7p"5J";G(b)L=b(L,c);G(c=="1m")D.5u(L);G(c=="3z")L=6u("("+L+")");I L},3n:H(a){J s=[];G(a.1q==2p||a.5w)D.P(a,H(){s.1p(3u(7.34)+"="+3u(7.2x))});N R(J j 1n a)G(a[j]&&a[j].1q==2p)D.P(a[j],H(){s.1p(3u(j)+"="+3u(7))});N s.1p(3u(j)+"="+3u(D.1D(a[j])?a[j]():a[j]));I s.6s("&").1o(/%20/g,"+")}});D.17.1l({1N:H(c,b){I c?7.2g({1Z:"1N",2h:"1N",1y:"1N"},c,b):7.1E(":1G").P(H(){7.V.18=7.5D||"";G(D.1g(7,"18")=="2F"){J a=D("<"+7.2j+" />").6P("1c");7.V.18=a.1g("18");G(7.V.18=="2F")7.V.18="3I";a.21()}}).3l()},1M:H(b,a){I b?7.2g({1Z:"1M",2h:"1M",1y:"1M"},b,a):7.1E(":4j").P(H(){7.5D=7.5D||D.1g(7,"18");7.V.18="2F"}).3l()},78:D.17.2m,2m:H(a,b){I D.1D(a)&&D.1D(b)?7.78.1w(7,19):a?7.2g({1Z:"2m",2h:"2m",1y:"2m"},a,b):7.P(H(){D(7)[D(7).3F(":1G")?"1N":"1M"]()})},9G:H(b,a){I 7.2g({1Z:"1N"},b,a)},9F:H(b,a){I 7.2g({1Z:"1M"},b,a)},9E:H(b,a){I 7.2g({1Z:"2m"},b,a)},9D:H(b,a){I 7.2g({1y:"1N"},b,a)},9M:H(b,a){I 7.2g({1y:"1M"},b,a)},9C:H(c,a,b){I 7.2g({1y:a},c,b)},2g:H(k,j,i,g){J h=D.77(j,i,g);I 7[h.36===Q?"P":"36"](H(){G(7.16!=1)I Q;J f=D.1l({},h),p,1G=D(7).3F(":1G"),46=7;R(p 1n k){G(k[p]=="1M"&&1G||k[p]=="1N"&&!1G)I f.1J.1k(7);G(p=="1Z"||p=="2h"){f.18=D.1g(7,"18");f.33=7.V.33}}G(f.33!=U)7.V.33="1G";f.45=D.1l({},k);D.P(k,H(c,a){J e=2B D.28(46,f,c);G(/2m|1N|1M/.11(a))e[a=="2m"?1G?"1N":"1M":a](k);N{J b=a.6r().1I(/^([+-]=)?([\\d+-.]+)(.*)$/),2b=e.1t(M)||0;G(b){J d=3d(b[2]),2M=b[3]||"2X";G(2M!="2X"){46.V[c]=(d||1)+2M;2b=((d||1)/e.1t(M))*2b;46.V[c]=2b+2M}G(b[1])d=((b[1]=="-="?-1:1)*d)+2b;e.3G(2b,d,2M)}N e.3G(2b,a,"")}});I M})},36:H(a,b){G(D.1D(a)||(a&&a.1q==2p)){b=a;a="28"}G(!a||(1j a=="23"&&!b))I A(7[0],a);I 7.P(H(){G(b.1q==2p)A(7,a,b);N{A(7,a).1p(b);G(A(7,a).K==1)b.1k(7)}})},9X:H(b,c){J a=D.3O;G(b)7.36([]);7.P(H(){R(J i=a.K-1;i>=0;i--)G(a[i].T==7){G(c)a[i](M);a.7n(i,1)}});G(!c)7.5A();I 7}});J A=H(b,c,a){G(b){c=c||"28";J q=D.L(b,c+"36");G(!q||a)q=D.L(b,c+"36",D.2d(a))}I q};D.17.5A=H(a){a=a||"28";I 7.P(H(){J q=A(7,a);q.4s();G(q.K)q[0].1k(7)})};D.1l({77:H(b,a,c){J d=b&&b.1q==a0?b:{1J:c||!c&&a||D.1D(b)&&b,2u:b,41:c&&a||a&&a.1q!=9t&&a};d.2u=(d.2u&&d.2u.1q==4L?d.2u:D.28.5K[d.2u])||D.28.5K.74;d.5M=d.1J;d.1J=H(){G(d.36!==Q)D(7).5A();G(D.1D(d.5M))d.5M.1k(7)};I d},41:{73:H(p,n,b,a){I b+a*p},5P:H(p,n,b,a){I((-29.9r(p*29.9q)/2)+0.5)*a+b}},3O:[],48:U,28:H(b,c,a){7.15=c;7.T=b;7.1i=a;G(!c.3Z)c.3Z={}}});D.28.44={4D:H(){G(7.15.2Y)7.15.2Y.1k(7.T,7.1z,7);(D.28.2Y[7.1i]||D.28.2Y.4w)(7);G(7.1i=="1Z"||7.1i=="2h")7.T.V.18="3I"},1t:H(a){G(7.T[7.1i]!=U&&7.T.V[7.1i]==U)I 7.T[7.1i];J r=3d(D.1g(7.T,7.1i,a));I r&&r>-9p?r:3d(D.2a(7.T,7.1i))||0},3G:H(c,b,d){7.5V=1z();7.2b=c;7.3l=b;7.2M=d||7.2M||"2X";7.1z=7.2b;7.2S=7.4N=0;7.4D();J e=7;H t(a){I e.2Y(a)}t.T=7.T;D.3O.1p(t);G(D.48==U){D.48=4I(H(){J a=D.3O;R(J i=0;i<a.K;i++)G(!a[i]())a.7n(i--,1);G(!a.K){7k(D.48);D.48=U}},13)}},1N:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1N=M;7.3G(0,7.1t());G(7.1i=="2h"||7.1i=="1Z")7.T.V[7.1i]="9m";D(7.T).1N()},1M:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1M=M;7.3G(7.1t(),0)},2Y:H(a){J t=1z();G(a||t>7.15.2u+7.5V){7.1z=7.3l;7.2S=7.4N=1;7.4D();7.15.45[7.1i]=M;J b=M;R(J i 1n 7.15.45)G(7.15.45[i]!==M)b=Q;G(b){G(7.15.18!=U){7.T.V.33=7.15.33;7.T.V.18=7.15.18;G(D.1g(7.T,"18")=="2F")7.T.V.18="3I"}G(7.15.1M)7.T.V.18="2F";G(7.15.1M||7.15.1N)R(J p 1n 7.15.45)D.1K(7.T.V,p,7.15.3Z[p])}G(b)7.15.1J.1k(7.T);I Q}N{J n=t-7.5V;7.4N=n/7.15.2u;7.2S=D.41[7.15.41||(D.41.5P?"5P":"73")](7.4N,n,0,1,7.15.2u);7.1z=7.2b+((7.3l-7.2b)*7.2S);7.4D()}I M}};D.1l(D.28,{5K:{9l:9j,9i:7e,74:9g},2Y:{2e:H(a){a.T.2e=a.1z},2c:H(a){a.T.2c=a.1z},1y:H(a){D.1K(a.T.V,"1y",a.1z)},4w:H(a){a.T.V[a.1i]=a.1z+a.2M}}});D.17.2i=H(){J b=0,1S=0,T=7[0],3q;G(T)ao(D.14){J d=T.1d,4a=T,1s=T.1s,1Q=T.2z,5U=2k&&3r(5B)<9c&&!/9a/i.11(v),1g=D.2a,3c=1g(T,"30")=="3c";G(T.7y){J c=T.7y();1e(c.1A+29.2f(1Q.1C.2e,1Q.1c.2e),c.1S+29.2f(1Q.1C.2c,1Q.1c.2c));1e(-1Q.1C.6b,-1Q.1C.6a)}N{1e(T.5X,T.5W);1B(1s){1e(1s.5X,1s.5W);G(42&&!/^t(98|d|h)$/i.11(1s.2j)||2k&&!5U)2C(1s);G(!3c&&1g(1s,"30")=="3c")3c=M;4a=/^1c$/i.11(1s.2j)?4a:1s;1s=1s.1s}1B(d&&d.2j&&!/^1c|2K$/i.11(d.2j)){G(!/^96|1T.*$/i.11(1g(d,"18")))1e(-d.2e,-d.2c);G(42&&1g(d,"33")!="4j")2C(d);d=d.1d}G((5U&&(3c||1g(4a,"30")=="5x"))||(42&&1g(4a,"30")!="5x"))1e(-1Q.1c.5X,-1Q.1c.5W);G(3c)1e(29.2f(1Q.1C.2e,1Q.1c.2e),29.2f(1Q.1C.2c,1Q.1c.2c))}3q={1S:1S,1A:b}}H 2C(a){1e(D.2a(a,"6V",M),D.2a(a,"6U",M))}H 1e(l,t){b+=3r(l,10)||0;1S+=3r(t,10)||0}I 3q};D.17.1l({30:H(){J a=0,1S=0,3q;G(7[0]){J b=7.1s(),2i=7.2i(),4c=/^1c|2K$/i.11(b[0].2j)?{1S:0,1A:0}:b.2i();2i.1S-=25(7,\'94\');2i.1A-=25(7,\'aF\');4c.1S+=25(b,\'6U\');4c.1A+=25(b,\'6V\');3q={1S:2i.1S-4c.1S,1A:2i.1A-4c.1A}}I 3q},1s:H(){J a=7[0].1s;1B(a&&(!/^1c|2K$/i.11(a.2j)&&D.1g(a,\'30\')==\'93\'))a=a.1s;I D(a)}});D.P([\'5e\',\'5G\'],H(i,b){J c=\'4y\'+b;D.17[c]=H(a){G(!7[0])I;I a!=12?7.P(H(){7==1b||7==S?1b.92(!i?a:D(1b).2e(),i?a:D(1b).2c()):7[c]=a}):7[0]==1b||7[0]==S?46[i?\'aI\':\'aJ\']||D.71&&S.1C[c]||S.1c[c]:7[0][c]}});D.P(["6N","4b"],H(i,b){J c=i?"5e":"5G",4f=i?"6k":"6i";D.17["5s"+b]=H(){I 7[b.3y()]()+25(7,"57"+c)+25(7,"57"+4f)};D.17["90"+b]=H(a){I 7["5s"+b]()+25(7,"2C"+c+"4b")+25(7,"2C"+4f+"4b")+(a?25(7,"6S"+c)+25(7,"6S"+4f):0)}})})();',62,669,'|||||||this|||||||||||||||||||||||||||||||||||if|function|return|var|length|data|true|else|type|each|false|for|document|elem|null|style|event||nodeName|||test|undefined||browser|options|nodeType|fn|display|arguments|url|window|body|parentNode|add|msie|css|indexOf|prop|typeof|call|extend|script|in|replace|push|constructor|text|offsetParent|cur|status|div|apply|firstChild|opacity|now|left|while|documentElement|isFunction|filter|className|hidden|handle|match|complete|attr|ret|hide|show|dataType|trigger|doc|split|top|table|try|catch|success|break|cache|height||remove|tbody|string|guid|num|global|ready|fx|Math|curCSS|start|scrollTop|makeArray|scrollLeft|max|animate|width|offset|tagName|safari|map|toggle||done|Array|find|toUpperCase|button|special|duration|id|copy|value|handler|ownerDocument|select|new|border|exec|stack|none|opera|nextSibling|pushStack|target|html|inArray|unit|xml|bind|GET|isReady|merge|pos|timeout|delete|one|selected|px|step|jsre|position|async|preventDefault|overflow|name|which|queue|removeChild|namespace|insertBefore|nth|removeData|fixed|parseFloat|error|readyState|multiFilter|createElement|rl|re|trim|end|_|param|first|get|results|parseInt|slice|childNodes|encodeURIComponent|append|events|elems|toLowerCase|json|readyList|setTimeout|grep|mouseenter|color|is|custom|getElementsByTagName|block|stopPropagation|addEventListener|callee|proxy|mouseleave|timers|defaultView|password|disabled|last|has|appendChild|form|domManip|props|ajax|orig|set|easing|mozilla|load|prototype|curAnim|self|charCode|timerId|object|offsetChild|Width|parentOffset|src|unbind|br|currentStyle|clean|float|visible|relatedTarget|previousSibling|handlers|isXMLDoc|on|setup|nodeIndex|unique|shift|javascript|child|RegExp|_default|deep|scroll|lastModified|teardown|setRequestHeader|timeStamp|update|empty|tr|getAttribute|innerHTML|setInterval|checked|fromElement|Number|jQuery|state|active|jsonp|accepts|application|dir|input|responseText|click|styleSheets|unload|not|lastToggle|outline|mouseout|getPropertyValue|mouseover|getComputedStyle|bindReady|String|padding|pageX|metaKey|keyCode|getWH|andSelf|clientX|Left|all|visibility|container|index|init|triggered|removeAttribute|classFilter|prevObject|submit|file|after|windowData|inner|client|globalEval|sibling|jquery|absolute|clone|wrapAll|dequeue|version|triggerHandler|oldblock|ctrlKey|createTextNode|Top|handleError|getResponseHeader|parsererror|speeds|checkbox|old|00|radio|swing|href|Modified|ifModified|lastChild|safari2|startTime|offsetTop|offsetLeft|username|location|ajaxSettings|getElementById|isSimple|values|selectedIndex|runtimeStyle|rsLeft|_load|loaded|DOMContentLoaded|clientTop|clientLeft|toElement|srcElement|val|pageY|POST|unshift|Bottom|clientY|Right|fix|exclusive|detachEvent|cloneNode|removeEventListener|swap|toString|join|attachEvent|eval|substr|head|parse|textarea|reset|image|zoom|odd|even|before|prepend|exclude|expr|quickClass|quickID|uuid|quickChild|continue|Height|textContent|appendTo|contents|open|margin|evalScript|borderTopWidth|borderLeftWidth|parent|httpData|setArray|CSS1Compat|compatMode|boxModel|cssFloat|linear|def|webkit|nodeValue|speed|_toggle|eq|100|replaceWith|304|concat|200|alpha|Last|httpNotModified|getAttributeNode|httpSuccess|clearInterval|abort|beforeSend|splice|styleFloat|throw|colgroup|XMLHttpRequest|ActiveXObject|scriptCharset|callback|fieldset|multiple|processData|getBoundingClientRect|contentType|link|ajaxSend|ajaxSuccess|ajaxError|col|ajaxComplete|ajaxStop|ajaxStart|serializeArray|notmodified|keypress|keydown|change|mouseup|mousedown|dblclick|focus|blur|stylesheet|hasClass|rel|doScroll|black|hover|solid|cancelBubble|returnValue|wheelDelta|view|round|shiftKey|resize|screenY|screenX|relatedNode|mousemove|prevValue|originalTarget|offsetHeight|keyup|newValue|offsetWidth|eventPhase|detail|currentTarget|cancelable|bubbles|attrName|attrChange|altKey|originalEvent|charAt|0n|substring|animated|header|noConflict|line|enabled|innerText|contains|only|weight|font|gt|lt|uFFFF|u0128|size|417|Boolean|Date|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|wrap|contentWindow|contentDocument|iframe|children|siblings|prevAll|wrapInner|nextAll|outer|prev|scrollTo|static|marginTop|next|inline|parents|able|cellSpacing|adobeair|cellspacing|522|maxLength|maxlength|readOnly|400|readonly|fast|600|class|slow|1px|htmlFor|reverse|10000|PI|cos|compatible|Function|setData|ie|ra|it|rv|getData|userAgent|navigator|fadeTo|fadeIn|slideToggle|slideUp|slideDown|ig|responseXML|content|1223|NaN|fadeOut|300|protocol|send|setAttribute|option|dataFilter|cssText|changed|be|Accept|stop|With|Requested|Object|can|GMT|property|1970|Jan|01|Thu|Since|If|Type|Content|XMLHTTP|th|Microsoft|td|onreadystatechange|onload|cap|charset|colg|host|tfoot|specified|with|1_|thead|leg|plain|attributes|opt|embed|urlencoded|www|area|hr|ajaxSetup|meta|post|getJSON|getScript|marginLeft|img|elements|pageYOffset|pageXOffset|abbr|serialize|pixelLeft'.split('|'),0,{}))
\ No newline at end of file
diff --git a/jquery/jquery.ui.draggable.js b/jquery/jquery.ui.draggable.js
new file mode 100644 (file)
index 0000000..68decbd
--- /dev/null
@@ -0,0 +1 @@
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(c(A){A.2I("g.i",A.2c({},A.g.2L,{2G:c(){a B=4.9;7(B.d=="24"&&!(/(l|V|13)/).1h(4.j.e("m"))){4.j.e("m","l")}4.j.1M("g-i");(B.1O&&4.j.1M("g-i-1O"));4.2M()},2n:c(F){a H=4.9;7(4.d||H.1O||A(F.2a).2A(".g-2F-1G")){n 15}a C=!4.9.1G||!A(4.9.1G,4.j).1C?v:15;A(4.9.1G,4.j).2C("*").2E().1d(c(){7(4==F.2a){C=v}});7(!C){n 15}7(A.g.1b){A.g.1b.2Z=4}4.d=A.2P(H.d)?A(H.d.30(4.j[0],[F])):(H.d=="28"?4.j.28():4.j);7(!4.d.31("12").1C){4.d.1u((H.1u=="k"?4.j[0].1t:H.1u))}7(4.d[0]!=4.j[0]&&!(/(13|V)/).1h(4.d.e("m"))){4.d.e("m","V")}4.S={6:(o(4.j.e("33"),10)||0),5:(o(4.j.e("2S"),10)||0)};4.z=4.d.e("m");4.8=4.j.8();4.8={5:4.8.5-4.S.5,6:4.8.6-4.S.6};4.8.r={6:F.1r-4.8.6,5:F.1s-4.8.5};4.p=4.d.p();a B=4.p.8();7(4.p[0]==f.12&&A.2V.2Y){B={5:0,6:0}}4.8.k={5:B.5+(o(4.p.e("1N"),10)||0),6:B.6+(o(4.p.e("1T"),10)||0)};a E=4.j.m();4.8.l=4.z=="l"?{5:E.5-(o(4.d.e("5"),10)||0)+4.p[0].q,6:E.6-(o(4.d.e("6"),10)||0)+4.p[0].s}:{5:0,6:0};4.1g=4.1S(F);4.w={t:4.d.26(),u:4.d.1Q()};7(H.16){7(H.16.6!=1A){4.8.r.6=H.16.6+4.S.6}7(H.16.2s!=1A){4.8.r.6=4.w.t-H.16.2s+4.S.6}7(H.16.5!=1A){4.8.r.5=H.16.5+4.S.5}7(H.16.2k!=1A){4.8.r.5=4.w.u-H.16.2k+4.S.5}}7(H.h){7(H.h=="k"){H.h=4.d[0].1t}7(H.h=="f"||H.h=="1o"){4.h=[0-4.8.l.6-4.8.k.6,0-4.8.l.5-4.8.k.5,A(H.h=="f"?f:1o).t()-4.8.l.6-4.8.k.6-4.w.t-4.S.6-(o(4.j.e("2i"),10)||0),(A(H.h=="f"?f:1o).u()||f.12.1t.2u)-4.8.l.5-4.8.k.5-4.w.u-4.S.5-(o(4.j.e("2h"),10)||0)]}7(!(/^(f|1o|k)$/).1h(H.h)){a D=A(H.h)[0];a G=A(H.h).8();4.h=[G.6+(o(A(D).e("1T"),10)||0)-4.8.l.6-4.8.k.6,G.5+(o(A(D).e("1N"),10)||0)-4.8.l.5-4.8.k.5,G.6+T.2g(D.2U,D.1U)-(o(A(D).e("1T"),10)||0)-4.8.l.6-4.8.k.6-4.w.t-4.S.6-(o(4.j.e("2i"),10)||0),G.5+T.2g(D.2u,D.1V)-(o(A(D).e("1N"),10)||0)-4.8.l.5-4.8.k.5-4.w.u-4.S.5-(o(4.j.e("2h"),10)||0)]}}4.19("18",F);4.w={t:4.d.26(),u:4.d.1Q()};7(A.g.1b&&!H.2m){A.g.1b.2Q(4,F)}4.d.1M("g-i-2p");4.2d(F);n v},X:c(C,D){7(!D){D=4.m}a B=C=="V"?1:-1;n{5:(D.5+4.8.l.5*B+4.8.k.5*B-(4.z=="13"||(4.z=="V"&&4.p[0]==f.12)?0:4.p[0].q)*B+(4.z=="13"?A(f).q():0)*B+4.S.5*B),6:(D.6+4.8.l.6*B+4.8.k.6*B-(4.z=="13"||(4.z=="V"&&4.p[0]==f.12)?0:4.p[0].s)*B+(4.z=="13"?A(f).s():0)*B+4.S.6*B)}},1S:c(E){a F=4.9;a B={5:(E.1s-4.8.r.5-4.8.l.5-4.8.k.5+(4.z=="13"||(4.z=="V"&&4.p[0]==f.12)?0:4.p[0].q)-(4.z=="13"?A(f).q():0)),6:(E.1r-4.8.r.6-4.8.l.6-4.8.k.6+(4.z=="13"||(4.z=="V"&&4.p[0]==f.12)?0:4.p[0].s)-(4.z=="13"?A(f).s():0))};7(!4.1g){n B}7(4.h){7(B.6<4.h[0]){B.6=4.h[0]}7(B.5<4.h[1]){B.5=4.h[1]}7(B.6>4.h[2]){B.6=4.h[2]}7(B.5>4.h[3]){B.5=4.h[3]}}7(F.1a){a D=4.1g.5+T.2l((B.5-4.1g.5)/F.1a[1])*F.1a[1];B.5=4.h?(!(D<4.h[1]||D>4.h[3])?D:(!(D<4.h[1])?D-F.1a[1]:D+F.1a[1])):D;a C=4.1g.6+T.2l((B.6-4.1g.6)/F.1a[0])*F.1a[0];B.6=4.h?(!(C<4.h[0]||C>4.h[2])?C:(!(C<4.h[0])?C-F.1a[0]:C+F.1a[0])):C}n B},2d:c(B){4.m=4.1S(B);4.1j=4.X("V");4.m=4.19("1c",B)||4.m;7(!4.9.1w||4.9.1w!="y"){4.d[0].1x.6=4.m.6+"1J"}7(!4.9.1w||4.9.1w!="x"){4.d[0].1x.5=4.m.5+"1J"}7(A.g.1b){A.g.1b.1c(4,B)}n 15},2b:c(C){a D=15;7(A.g.1b&&!4.9.2m){a D=A.g.1b.34(4,C)}7((4.9.1m=="2N"&&!D)||(4.9.1m=="2D"&&D)||4.9.1m===v){a B=4;A(4.d).2B(4.1g,o(4.9.1m,10)||2O,c(){B.19("1k",C);B.22()})}1y{4.19("1k",C);4.22()}n 15},22:c(){4.d.2o("g-i-2p");7(4.9.d!="24"&&!4.1z){4.d.2e()}4.d=2K;4.1z=15},2H:{},23:c(B){n{d:4.d,m:4.m,1P:4.1j,9:4.9}},19:c(C,B){A.g.17.2t(4,C,[B,4.23()]);7(C=="1c"){4.1j=4.X("V")}n 4.j.2z(C=="1c"?C:"1c"+C,[B,4.23()],4.9[C])},2T:c(){7(!4.j.U("i")){n}4.j.3d("i").3x(".i").2o("g-i");4.35()}}));A.2c(A.g.i,{3l:{1u:"k",1w:15,3r:":3p",3q:0,3n:1,d:"24"}});A.g.17.1e("i","1p",{18:c(D,C){a B=A("12");7(B.e("1p")){C.9.21=B.e("1p")}B.e("1p",C.9.1p)},1k:c(C,B){7(B.9.21){A("12").e("1p",B.9.21)}}});A.g.17.1e("i","Z",{18:c(D,C){a B=A(C.d);7(B.e("Z")){C.9.1W=B.e("Z")}B.e("Z",C.9.Z)},1k:c(C,B){7(B.9.1W){A(B.d).e("Z",B.9.1W)}}});A.g.17.1e("i","1l",{18:c(D,C){a B=A(C.d);7(B.e("1l")){C.9.1X=B.e("1l")}B.e("1l",C.9.1l)},1k:c(C,B){7(B.9.1X){A(B.d).e("1l",B.9.1X)}}});A.g.17.1e("i","1K",{18:c(C,B){A(B.9.1K===v?"3v":B.9.1K).1d(c(){A(\'<1Y 3y="g-i-1K" 1x="3t: #3u;"></1Y>\').e({t:4.1U+"1J",u:4.1V+"1J",m:"V",1l:"0.3a",Z:3k}).e(A(4).8()).1u("12")})},1k:c(C,B){A("1Y.37").1d(c(){4.1t.3c(4)})}});A.g.17.1e("i","1v",{18:c(D,C){a E=C.9;a B=A(4).U("i");E.14=E.14||20;E.11=E.11||20;B.W=c(F){2f{7(/1D|1v/.1h(F.e("1L"))||(/1D|1v/).1h(F.e("1L-y"))){n F}F=F.k()}2j(F[0].1t);n A(f)}(4);B.Y=c(F){2f{7(/1D|1v/.1h(F.e("1L"))||(/1D|1v/).1h(F.e("1L-x"))){n F}F=F.k()}2j(F[0].1t);n A(f)}(4);7(B.W[0]!=f&&B.W[0].1F!="1E"){B.1Z=B.W.8()}7(B.Y[0]!=f&&B.Y[0].1F!="1E"){B.25=B.Y.8()}},1c:c(D,C){a E=C.9;a B=A(4).U("i");7(B.W[0]!=f&&B.W[0].1F!="1E"){7((B.1Z.5+B.W[0].1V)-D.1s<E.14){B.W[0].q=B.W[0].q+E.11}7(D.1s-B.1Z.5<E.14){B.W[0].q=B.W[0].q-E.11}}1y{7(D.1s-A(f).q()<E.14){A(f).q(A(f).q()-E.11)}7(A(1o).u()-(D.1s-A(f).q())<E.14){A(f).q(A(f).q()+E.11)}}7(B.Y[0]!=f&&B.Y[0].1F!="1E"){7((B.25.6+B.Y[0].1U)-D.1r<E.14){B.Y[0].s=B.Y[0].s+E.11}7(D.1r-B.25.6<E.14){B.Y[0].s=B.Y[0].s-E.11}}1y{7(D.1r-A(f).s()<E.14){A(f).s(A(f).s()-E.11)}7(A(1o).t()-(D.1r-A(f).s())<E.14){A(f).s(A(f).s()+E.11)}}}});A.g.17.1e("i","1R",{18:c(D,C){a B=A(4).U("i");B.1i=[];A(C.9.1R===v?".g-i":C.9.1R).1d(c(){a F=A(4);a E=F.8();7(4!=B.j[0]){B.1i.2x({2q:4,t:F.26(),u:F.1Q(),5:E.5,6:E.6})}})},1c:c(J,N){a I=A(4).U("i");a L=N.9.3j||20;a D=N.1P.6,C=D+I.w.t,P=N.1P.5,O=P+I.w.u;3s(a H=I.1i.1C-1;H>=0;H--){a E=I.1i[H].6,B=E+I.1i[H].t,R=I.1i[H].5,M=R+I.1i[H].u;7(!((E-L<D&&D<B+L&&R-L<P&&P<M+L)||(E-L<D&&D<B+L&&R-L<O&&O<M+L)||(E-L<C&&C<B+L&&R-L<P&&P<M+L)||(E-L<C&&C<B+L&&R-L<O&&O<M+L))){3w}7(N.9.2w!="3b"){a K=T.1f(R-O)<=20;a Q=T.1f(M-P)<=20;a G=T.1f(E-C)<=20;a F=T.1f(B-D)<=20;7(K){N.m.5=I.X("l",{5:R-I.w.u,6:0}).5}7(Q){N.m.5=I.X("l",{5:M,6:0}).5}7(G){N.m.6=I.X("l",{5:0,6:E-I.w.t}).6}7(F){N.m.6=I.X("l",{5:0,6:B}).6}}7(N.9.2w!="36"){a K=T.1f(R-P)<=20;a Q=T.1f(M-O)<=20;a G=T.1f(E-D)<=20;a F=T.1f(B-C)<=20;7(K){N.m.5=I.X("l",{5:R,6:0}).5}7(Q){N.m.5=I.X("l",{5:M-I.w.u,6:0}).5}7(G){N.m.6=I.X("l",{5:0,6:E}).6}7(F){N.m.6=I.X("l",{5:0,6:B-I.w.t}).6}}}}});A.g.17.1e("i","2v",{18:c(D,C){a B=A(4).U("i");B.1H=[];A(C.9.2v).1d(c(){7(A.U(4,"27")){a E=A.U(4,"27");B.1H.2x({b:E,2y:E.9.1m});E.3g();E.19("39",D,B)}})},1k:c(D,C){a B=A(4).U("i");A.1d(B.1H,c(){7(4.b.1q){4.b.1q=0;B.1z=v;4.b.1z=15;7(4.2y){4.b.9.1m=v}4.b.2b(D);4.b.j.2z("3f",[D,A.2c(4.b.g(),{3e:B.j})],4.b.9.3h);4.b.9.d=4.b.9.29}1y{4.b.19("3i",D,B)}})},1c:c(F,E){a D=A(4).U("i"),B=4;a C=c(K){a H=K.6,J=H+K.t,I=K.5,G=I+K.u;n(H<(4.1j.6+4.8.r.6)&&(4.1j.6+4.8.r.6)<J&&I<(4.1j.5+4.8.r.5)&&(4.1j.5+4.8.r.5)<G)};A.1d(D.1H,c(G){7(C.2t(D,4.b.3o)){7(!4.b.1q){4.b.1q=1;4.b.1I=A(B).28().1u(4.b.j).U("27-2q",v);4.b.9.29=4.b.9.d;4.b.9.d=c(){n E.d[0]};F.2a=4.b.1I[0];4.b.3m(F,v);4.b.2n(F,v,v);4.b.8.r.5=D.8.r.5;4.b.8.r.6=D.8.r.6;4.b.8.k.6-=D.8.k.6-4.b.8.k.6;4.b.8.k.5-=D.8.k.5-4.b.8.k.5;D.19("2J",F)}7(4.b.1I){4.b.2d(F)}}1y{7(4.b.1q){4.b.1q=0;4.b.1z=v;4.b.9.1m=15;4.b.2b(F,v);4.b.9.d=4.b.9.29;4.b.1I.2e();7(4.b.2r){4.b.2r.2e()}D.19("32",F)}}})}});A.g.17.1e("i","1n",{18:c(D,B){a C=A.2X(A(B.9.1n.2W)).2R(c(F,E){n(o(A(F).e("Z"),10)||B.9.1n.1B)-(o(A(E).e("Z"),10)||B.9.1n.1B)});A(C).1d(c(E){4.1x.Z=B.9.1n.1B+E});4[0].1x.Z=B.9.1n.1B+C.1C}})})(38);',62,221,'||||this|top|left|if|offset|options|var|instance|function|helper|css|document|ui|containment|draggable|element|parent|relative|position|return|parseInt|offsetParent|scrollTop|click|scrollLeft|width|height|true|helperProportions|||cssPosition|||||||||||||||||||margins|Math|data|absolute|overflowY|convertPositionTo|overflowX|zIndex||scrollSpeed|body|fixed|scrollSensitivity|false|cursorAt|plugin|start|propagate|grid|ddmanager|drag|each|add|abs|originalPosition|test|snapElements|positionAbs|stop|opacity|revert|stack|window|cursor|isOver|pageX|pageY|parentNode|appendTo|scroll|axis|style|else|cancelHelperRemoval|undefined|min|length|auto|HTML|tagName|handle|sortables|currentItem|px|iframeFix|overflow|addClass|borderTopWidth|disabled|absolutePosition|outerHeight|snap|generatePosition|borderLeftWidth|offsetWidth|offsetHeight|_zIndex|_opacity|div|overflowYOffset||_cursor|clear|uiHash|original|overflowXOffset|outerWidth|sortable|clone|_helper|target|mouseStop|extend|mouseDrag|remove|do|max|marginBottom|marginRight|while|bottom|round|dropBehaviour|mouseStart|removeClass|dragging|item|placeholder|right|call|scrollHeight|connectToSortable|snapMode|push|shouldRevert|triggerHandler|is|animate|find|valid|andSelf|resizable|init|plugins|widget|toSortable|null|mouse|mouseInit|invalid|500|isFunction|prepareOffsets|sort|marginTop|destroy|scrollWidth|browser|group|makeArray|mozilla|current|apply|parents|fromSortable|marginLeft|drop|mouseDestroy|outer|DragDropIframeFix|jQuery|activate|001|inner|removeChild|removeData|sender|sortreceive|refreshItems|receive|deactivate|snapTolerance|1000|defaults|mouseCapture|distance|containerCache|input|delay|cancel|for|background|fff|iframe|continue|unbind|class'.split('|'),0,{}))
diff --git a/jquery/jquery.ui.js b/jquery/jquery.ui.js
new file mode 100644 (file)
index 0000000..ee383b6
--- /dev/null
@@ -0,0 +1 @@
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(3(C){C.a={1N:{19:3(E,F,H){6 G=C.a[E].j;1d(6 D 1O H){G.w[D]=G.w[D]||[];G.w[D].1P([F,H[D]])}},1b:3(D,F,E){6 H=D.w[F];5(!H){4}1d(6 G=0;G<H.1M;G++){5(D.b[H[G][0]]){H[G][1].q(D.8,E)}}}},n:{},f:3(D){5(C.a.n[D]){4 C.a.n[D]}6 E=C(\'<1L 1H="a-1I">\').1i(D).f({1J:"1K",X:"-1f",1Q:"-1f",1R:"1X"}).1Y("13");C.a.n[D]=!!((!(/1Z|1W/).g(E.f("1V"))||(/^[1-9]/).g(E.f("1S"))||(/^[1-9]/).g(E.f("1G"))||!(/14/).g(E.f("1U"))||!(/20|1C\\(0, 0, 0, 0\\)/).g(E.f("1y"))));1w{C("13").1a(0).1z(E.1a(0))}1F(F){}4 C.a.n[D]},1A:3(D){D.l="1g";D.17=3(){4 7};5(D.r){D.r.15="14"}},1D:3(D){D.l="1B";D.17=3(){4 d};5(D.r){D.r.15=""}},1E:3(G,E){6 D=/X/.g(E||"X")?"23":"21",F=7;5(G[D]>0){4 d}G[D]=1;F=G[D]>0?d:7;G[D]=0;4 F}};6 B=C.P.p;C.P.p=3(){C("*",2).19(2).2m("p");4 B.q(2,1c)};3 A(E,F,G){6 D=C[E][F].2j||[];D=(R D=="N"?D.V(/,?\\s+/):D);4(C.2i(G,D)!=-1)}C.k=3(E,D){6 F=E.V(".")[0];E=E.V(".")[1];C.P[E]=3(J){6 H=(R J=="N"),I=2n.j.2o.1b(1c,1);5(H&&A(F,E,J)){6 G=C.M(2[0],E);4(G?G[J].q(G,I):2p)}4 2.2g(3(){6 K=C.M(2,E);5(H&&K&&C.2f(K[J])){K[J].q(K,I)}27{5(!H){C.M(2,E,24 C[F][E](2,J))}}})};C[F][E]=3(I,H){6 G=2;2.e=E;2.16=F+"-"+E;2.b=C.1e({},C.k.u,C[F][E].u,H);2.8=C(I).h("i."+E,3(L,J,K){4 G.i(J,K)}).h("O."+E,3(K,J){4 G.O(J)}).h("p",3(){4 G.1h()});2.18()};C[F][E].j=C.1e({},C.k.j,D)};C.k.j={18:3(){},1h:3(){2.8.2q(2.e)},O:3(D){4 2.b[D]},i:3(D,E){2.b[D]=E;5(D=="o"){2.8[E?"1i":"29"](2.16+"-o")}},22:3(){2.i("o",7)},25:3(){2.i("o",d)}};C.k.u={o:7};C.a.1n={2r:3(){6 D=2;2.8.h("2h."+2.e,3(E){4 D.1t(E)});5(C.z.y){2.1v=2.8.x("l");2.8.x("l","1g")}2.2l=7},2k:3(){2.8.S("."+2.e);(C.z.y&&2.8.x("l",2.1v))},1t:3(F){(2.c&&2.m(F));2.v=F;6 E=2,G=(F.26==1),D=(R 2.b.Y=="N"?C(F.28).2c(2.b.Y):7);5(!G||D||!2.1m(F)){4 d}2.t=!2.b.Q;5(!2.t){2.2b=2a(3(){E.t=d},2.b.Q)}5(2.T(F)&&2.U(F)){2.c=(2.Z(F)!==7);5(!2.c){F.2d();4 d}}2.10=3(H){4 E.1o(H)};2.12=3(H){4 E.m(H)};C(1q).h("1j."+2.e,2.10).h("1u."+2.e,2.12);4 7},1o:3(D){5(C.z.y&&!D.2s){4 2.m(D)}5(2.c){2.11(D);4 7}5(2.T(D)&&2.U(D)){2.c=(2.Z(2.v,D)!==7);(2.c?2.11(D):2.m(D))}4!2.c},m:3(D){C(1q).S("1j."+2.e,2.10).S("1u."+2.e,2.12);5(2.c){2.c=7;2.1k(D)}4 7},T:3(D){4(W.1T(W.1s(2.v.1r-D.1r),W.1s(2.v.1p-D.1p))>=2.b.1l)},U:3(D){4 2.t},Z:3(D){},11:3(D){},1k:3(D){},1m:3(D){4 d}};C.a.1n.u={Y:1x,1l:1,Q:0}})(2e);',62,153,'||this|function|return|if|var|false|element||ui|options|_mouseStarted|true|widgetName|css|test|bind|setData|prototype|widget|unselectable|mouseUp|cssCache|disabled|remove|apply|style||_mouseDelayMet|defaults|_mouseDownEvent|plugins|attr|msie|browser|||||||||||||data|string|getData|fn|delay|typeof|unbind|mouseDistanceMet|mouseDelayMet|split|Math|top|cancel|mouseStart|_mouseMoveDelegate|mouseDrag|_mouseUpDelegate|body|none|MozUserSelect|widgetBaseClass|onselectstart|init|add|get|call|arguments|for|extend|5000px|on|destroy|addClass|mousemove|mouseStop|distance|mouseCapture|mouse|mouseMove|pageY|document|pageX|abs|mouseDown|mouseup|_mouseUnselectable|try|null|backgroundColor|removeChild|disableSelection|off|rgba|enableSelection|hasScroll|catch|width|class|gen|position|absolute|div|length|plugin|in|push|left|display|height|max|backgroundImage|cursor|default|block|appendTo|auto|transparent|scrollLeft|enable|scrollTop|new|disable|which|else|target|removeClass|setTimeout|_mouseDelayTimer|is|preventDefault|jQuery|isFunction|each|mousedown|inArray|getter|mouseDestroy|started|trigger|Array|slice|undefined|removeData|mouseInit|button'.split('|'),0,{}))
diff --git a/jquery/jquery.ui.resizable.js b/jquery/jquery.ui.resizable.js
new file mode 100644 (file)
index 0000000..1c53ce3
--- /dev/null
@@ -0,0 +1 @@
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(h(A){A.3n("b.d",A.17(A.b.3w,{3u:h(){f M=4,N=4.m;f Q=4.j.c("g");4.2p=4.j;4.j.1j("b-d").c({g:/1W/.q(Q)?"1i":Q});A.17(N,{1J:!!(N.19),l:N.l||N.13||N.1q?N.l||"3p":1l,1k:N.1k===1x?"b-d-1N-11":N.1k});f H="2A 3a #3t";N.3h={"b-d":{22:"2H"},"b-d-11":{g:"1z",3j:"#3g",3v:"0.2A"},"b-d-n":{t:"n-o",8:"14",5:"p",1t:"p",2C:H},"b-d-s":{t:"s-o",8:"14",5:"p",1t:"p",2z:H},"b-d-e":{t:"e-o",6:"14",9:"p",1s:"p",2E:H},"b-d-w":{t:"w-o",6:"14",9:"p",1s:"p",2F:H},"b-d-y":{t:"y-o",6:"14",8:"14",2E:H,2z:H},"b-d-z":{t:"z-o",6:"14",8:"14",2z:H,2F:H},"b-d-Z":{t:"Z-o",6:"14",8:"14",2E:H,2C:H},"b-d-x":{t:"x-o",6:"14",8:"14",2F:H,2C:H}};N.2g={"b-d-11":{3j:"#3g",3G:"2A 3a #3F",8:"3c",6:"3c"},"b-d-n":{t:"n-o",9:"p",5:"45%"},"b-d-s":{t:"s-o",1s:"p",5:"45%"},"b-d-e":{t:"e-o",1t:"p",9:"45%"},"b-d-w":{t:"w-o",5:"p",9:"45%"},"b-d-y":{t:"y-o",1t:"p",1s:"p"},"b-d-z":{t:"z-o",5:"p",1s:"p"},"b-d-x":{t:"x-o",5:"p",9:"p"},"b-d-Z":{t:"Z-o",1t:"p",9:"p"}};N.2s=4.j[0].2B;a(N.2s.2l(/3L|29|2a|2N|2K|3D/i)){f B=4.j;a(/1i/.q(B.c("g"))&&A.1e.2Q){B.c({g:"1i",9:"1T",5:"1T"})}B.3E(A(\'<1B 3l="b-2n"      2t="2x: 2h;"></1B>\').c({g:B.c("g"),6:B.1u(),8:B.1v(),9:B.c("9"),5:B.c("5")}));f J=4.j;4.j=4.j.1G();4.j.12("d",4);4.j.c({2c:J.c("2c"),2b:J.c("2b"),2i:J.c("2i"),2e:J.c("2e")});J.c({2c:0,2b:0,2i:0,2e:0});a(A.1e.3C&&N.3b){J.c("o","36")}N.1g=J.c({g:"1W",3B:1,22:"2H"});4.j.c({2w:J.c("2w")});4.1Q()}a(!N.u){N.u=!A(".b-d-11",4.j).1H?"e,s,y":{n:".b-d-n",e:".b-d-e",s:".b-d-s",w:".b-d-w",y:".b-d-y",z:".b-d-z",Z:".b-d-Z",x:".b-d-x"}}a(N.u.2P==2R){N.1D=N.1D||3y;a(N.u=="3z"){N.u="n,e,s,w,y,z,Z,x"}f O=N.u.3A(",");N.u={};f G={11:"g: 1z; 22: 36; 2x:2h;",n:"9: 1o; 6:28%;",e:"1t: 1o; 8:28%;",s:"1s: 1o; 6:28%;",w:"5: 1o; 8:28%;",y:"1s: 1o; 1t: p;",z:"1s: 1o; 5: p;",Z:"9: 1o; 1t: p;",x:"9: 1o; 5: p;"};2m(f R=0;R<O.1H;R++){f S=A.3N(O[R]),L=N.3h,F="b-d-"+S,C=!A.b.c(F)&&!N.1k,P=A.b.c("b-d-1N-11"),T=A.17(L[F],L["b-d-11"]),D=A.17(N.2g[F],!P?N.2g["b-d-11"]:{});f K=/z|y|Z|x/.q(S)?{1D:++N.1D}:{};f I=(C?G[S]:""),E=A([\'<1B 3l="b-d-11 \',F,\'" 2t="\',I,G.11,\'"></1B>\'].2o("")).c(K);N.u[S]=".b-d-"+S;4.j.35(E.c(C?T:{}).c(N.1k?D:{}).1j(N.1k?"b-d-1N-11":"").1j(N.1k))}a(N.1k){4.j.1j("b-d-1N").c(!A.b.c("b-d-1N")?{}:{})}}4.2V=h(Y){Y=Y||4.j;2m(f V 2L N.u){a(N.u[V].2P==2R){N.u[V]=A(N.u[V],4.j).2M()}a(N.2u){N.u[V].c({34:0})}a(4.j.2q(".b-2n")&&N.2s.2l(/29|2a|2N|2K/i)){f W=A(N.u[V],4.j),X=0;X=/z|Z|x|y|n|s/.q(V)?W.1v():W.1u();f U=["3O",/Z|x|n/.q(V)?"3M":/y|z|s/.q(V)?"3x":/^e$/.q(V)?"3I":"3J"].2o("");a(!N.2u){Y.c(U,X)}4.1Q()}a(!A(N.u[V]).1H){3K}}};4.2V(4.j);N.1y=A(".b-d-11",M.j);a(N.1L){N.1y.1E(h(U,V){A.b.1L(V)})}N.1y.3P(h(){a(!N.24){a(4.37){f U=4.37.2l(/b-d-(y|z|Z|x|n|e|s|w)/i)}M.1w=N.1w=U&&U[1]?U[1]:"y"}});a(N.3d){N.1y.38();A(M.j).1j("b-d-2k").3s(h(){A(4).3e("b-d-2k");N.1y.2M()},h(){a(!N.24){A(4).1j("b-d-2k");N.1y.38()}})}4.3r()},3q:{},b:h(){r{2p:4.2p,j:4.j,l:4.l,g:4.g,k:4.k,m:4.m,16:4.16,15:4.15}},1U:h(C,B){A.b.1F.3o(4,C,[B,4.b()]);a(C!="o"){4.j.33(["o",C].2o(""),[B,4.b()],4.m[C])}},3H:h(){f D=4.j,C=D.3V(".b-d").1d(0);4.4p();f B=h(E){A(E).3e("b-d b-d-3m").3f("d").4q(".d").4n(".b-d-11").2v()};B(D);a(D.2q(".b-2n")&&C){D.1G().35(A(C).c({g:D.c("g"),6:D.1u(),8:D.1v(),9:D.c("9"),5:D.c("5")})).4g().2v();B(C)}},4f:h(K){a(4.m.3m){r 1b}f J=1b;2m(f H 2L 4.m.u){a(A(4.m.u[H])[0]==K.4i){J=1x}}a(!J){r 1b}f C=4.m,B=4.j.g(),D=4.j,I=h(O){r v(O,10)||0},G=A.1e.20&&A.1e.2d<7;C.24=1x;C.2r={9:A(1n).4j(),5:A(1n).4h()};a(D.2q(".b-4k")||(/1z/).q(D.c("g"))){f M=A.1e.20&&!C.2G&&(/1z/).q(D.c("g"))&&!(/1i/).q(D.1G().c("g"));f L=M?C.2r.9:0,F=M?C.2r.5:0;D.c({g:"1z",9:(B.9+L),5:(B.5+F)})}a(A.1e.2Q&&/1i/.q(D.c("g"))){D.c({g:"1i",9:"1T",5:"1T"})}4.2Z();f N=I(4.l.c("5")),E=I(4.l.c("9"));4.1h=4.l.1h();4.g={5:N,9:E};4.k=C.l||G?{6:D.1u(),8:D.1v()}:{6:D.6(),8:D.8()};4.16=C.l||G?{6:D.1u(),8:D.1v()}:{6:D.6(),8:D.8()};4.15={5:N,9:E};4.1p={6:D.1u()-D.6(),8:D.1v()-D.8()};4.2O={5:K.2U,9:K.2X};C.19=(1R C.19=="2W")?C.19:((4.16.8/4.16.6)||1);a(C.2I){A("26").c("t",4.1w+"-o")}4.1U("1O",K);r 1x},3Q:h(I){f D=4.l,C=4.m,J={},M=4,F=4.2O,K=4.1w;f N=(I.2U-F.5)||0,L=(I.2X-F.9)||0;f E=4.1c[K];a(!E){r 1b}f H=E.1m(4,[I,N,L]),G=A.1e.20&&A.1e.2d<7,B=4.1p;a(C.1J||I.1Y){H=4.32(H,I)}H=4.31(H,I);4.1U("o",I);D.c({9:4.g.9+"1r",5:4.g.5+"1r",6:4.k.6+"1r",8:4.k.8+"1r"});a(!C.l&&C.1g){4.1Q()}4.2j(H);4.j.33("o",[I,4.b()],4.m.o);r 1b},4l:h(I){4.m.24=1b;f E=4.m,H=h(M){r v(M,10)||0},K=4;a(E.l){f D=E.1g,B=D&&(/29/i).q(D.1d(0).2B),C=B&&A.b.1X(D.1d(0),"5")?0:K.1p.8,G=B?0:K.1p.6;f L={6:(K.k.6-G),8:(K.k.8-C)},F=(v(K.j.c("5"),10)+(K.g.5-K.15.5))||1l,J=(v(K.j.c("9"),10)+(K.g.9-K.15.9))||1l;a(!E.1q){4.j.c(A.17(L,{9:J,5:F}))}a(E.l&&!E.1q){4.1Q()}}a(E.2I){A("26").c("t","1T")}4.1U("1P",I);a(E.l){4.l.2v()}r 1b},2j:h(B){f C=4.m;4.1h=4.l.1h();a(B.5){4.g.5=B.5}a(B.9){4.g.9=B.9}a(B.8){4.k.8=B.8}a(B.6){4.k.6=B.6}},32:h(D,E){f F=4.m,G=4.g,C=4.k,B=4.1w;a(D.8){D.6=(C.8/F.19)}1a{a(D.6){D.8=(C.6*F.19)}}a(B=="z"){D.5=G.5+(C.6-D.6);D.9=1l}a(B=="x"){D.9=G.9+(C.8-D.8);D.5=G.5+(C.6-D.6)}r D},31:h(H,I){f F=4.l,E=4.m,N=E.1J||I.1Y,M=4.1w,P=H.6&&E.1V&&E.1V<H.6,J=H.8&&E.1Z&&E.1Z<H.8,D=H.6&&E.1M&&E.1M>H.6,O=H.8&&E.1S&&E.1S>H.8;a(D){H.6=E.1M}a(O){H.8=E.1S}a(P){H.6=E.1V}a(J){H.8=E.1Z}f C=4.15.5+4.16.6,L=4.g.9+4.k.8;f G=/z|x|w/.q(M),B=/x|Z|n/.q(M);a(D&&G){H.5=C-E.1M}a(P&&G){H.5=C-E.1V}a(O&&B){H.9=L-E.1S}a(J&&B){H.9=L-E.1Z}f K=!H.6&&!H.8;a(K&&!H.5&&H.9){H.9=1l}1a{a(K&&!H.9&&H.5){H.5=1l}}r H},1Q:h(){f F=4.m;a(!F.1g){r}f D=F.1g,C=4.l||4.j;a(!F.1C){f B=[D.c("4o"),D.c("4r"),D.c("4s"),D.c("4m")],E=[D.c("4d"),D.c("3X"),D.c("3Y"),D.c("3Z")];F.1C=A.40(B,h(G,I){f H=v(G,10)||0,J=v(E[I],10)||0;r H+J})}D.c({8:(C.8()-F.1C[0]-F.1C[2])+"1r",6:(C.6()-F.1C[1]-F.1C[3])+"1r"})},2Z:h(){f C=4.j,F=4.m;4.2f=C.1h();a(F.l){4.l=4.l||A(\'<1B 2t="2x:2h;"></1B>\');f B=A.1e.20&&A.1e.2d<7,D=(B?1:0),E=(B?2:-1);4.l.1j(F.l).c({6:C.1u()+E,8:C.1v()+E,g:"1z",5:4.2f.5-D+"1r",9:4.2f.9-D+"1r",1D:++F.1D});4.l.39("26");a(F.1L){A.b.1L(4.l.1d(0))}}1a{4.l=C}},1c:{e:h(D,C,B){r{6:4.16.6+C}},w:h(F,C,B){f G=4.m,D=4.16,E=4.15;r{5:E.5+C,6:D.6-C}},n:h(F,C,B){f G=4.m,D=4.16,E=4.15;r{9:E.9+B,8:D.8-B}},s:h(D,C,B){r{8:4.16.8+B}},y:h(D,C,B){r A.17(4.1c.s.1m(4,27),4.1c.e.1m(4,[D,C,B]))},z:h(D,C,B){r A.17(4.1c.s.1m(4,27),4.1c.w.1m(4,[D,C,B]))},Z:h(D,C,B){r A.17(4.1c.n.1m(4,27),4.1c.e.1m(4,[D,C,B]))},x:h(D,C,B){r A.17(4.1c.n.1m(4,27),4.1c.w.1m(4,[D,C,B]))}}}));A.17(A.b.d,{3S:{3T:":2a",3U:1,41:0,3b:1x,2u:1b,1M:10,1S:10,19:1b,1L:1x,2I:1x,3d:1b,1k:1b}});A.b.1F.1K("d","2G",{1O:h(I,K){f E=K.m,M=A(4).12("d"),G=M.j;f C=E.2G,F=(C 49 A)?C.1d(0):(/1G/.q(C))?G.1G().1d(0):C;a(!F){r}M.2D=A(F);a(/1n/.q(C)||C==1n){M.1I={5:0,9:0};M.23={5:0,9:0};M.1A={j:A(1n),5:0,9:0,6:A(1n).6(),8:A(1n).8()||1n.26.43.3k}}1a{M.1I=A(F).1h();M.23=A(F).g();M.21={8:A(F).30(),6:A(F).2T()};f J=M.1I,B=M.21.8,H=M.21.6,D=(A.b.1X(F,"5")?F.44:H),L=(A.b.1X(F)?F.3k:B);M.1A={j:F,5:J.5,9:J.9,6:D,8:L}}},o:h(H,K){f E=K.m,N=A(4).12("d"),C=N.21,J=N.1I,G=N.k,I=N.g,L=E.1J||H.1Y,B={9:0,5:0},D=N.2D;a(D[0]!=1n&&/1W/.q(D.c("g"))){B=N.23}a(I.5<(E.l?J.5:B.5)){N.k.6=N.k.6+(E.l?(N.g.5-J.5):(N.g.5-B.5));a(L){N.k.8=N.k.6*E.19}N.g.5=E.l?J.5:B.5}a(I.9<(E.l?J.9:0)){N.k.8=N.k.8+(E.l?(N.g.9-J.9):N.g.9);a(L){N.k.6=N.k.8/E.19}N.g.9=E.l?J.9:0}f F=(E.l?N.1h.5-J.5:(N.g.5-B.5))+N.1p.6,M=(E.l?N.1h.9-J.9:N.g.9)+N.1p.8;a(F+N.k.6>=N.1A.6){N.k.6=N.1A.6-F;a(L){N.k.8=N.k.6*E.19}}a(M+N.k.8>=N.1A.8){N.k.8=N.1A.8-M;a(L){N.k.6=N.k.8/E.19}}},1P:h(G,J){f C=J.m,L=A(4).12("d"),H=L.g,I=L.1I,B=L.23,D=L.2D;f E=A(L.l),M=E.1h(),K=E.2T(),F=E.30();a(C.l&&!C.1q&&/1i/.q(D.c("g"))){A(4).c({5:(M.5-I.5),9:(M.9-I.9),6:K,8:F})}a(C.l&&!C.1q&&/1W/.q(D.c("g"))){A(4).c({5:B.5+(M.5-I.5),9:B.9+(M.9-I.9),6:K,8:F})}}});A.b.1F.1K("d","1f",{o:h(H,J){f D=J.m,L=A(4).12("d"),G=L.k,E=L.16,F=L.15,K=L.1w,I=D.1J||H.1Y;D.1f=1R D.1f=="2W"?[D.1f,D.1f]:D.1f;f C=2J.2S((G.6-E.6)/(D.1f[0]||1))*(D.1f[0]||1),B=2J.2S((G.8-E.8)/(D.1f[1]||1))*(D.1f[1]||1);a(/^(y|s|e)$/.q(K)){L.k.6=E.6+C;L.k.8=E.8+B}1a{a(/^(Z)$/.q(K)){L.k.6=E.6+C;L.k.8=E.8+B;L.g.9=F.9-B}1a{a(/^(z)$/.q(K)){L.k.6=E.6+C;L.k.8=E.8+B;L.g.5=F.5-C}1a{L.k.6=E.6+C;L.k.8=E.8+B;L.g.9=F.9-B;L.g.5=F.5-C}}}}});A.b.1F.1K("d","1q",{1P:h(I,K){f F=K.m,L=A(4).12("d");f E=F.1g,B=E&&(/29/i).q(E.1d(0).2B),C=B&&A.b.1X(E.1d(0),"5")?0:L.1p.8,H=B?0:L.1p.6;f D={6:(L.k.6-H),8:(L.k.8-C)},G=(v(L.j.c("5"),10)+(L.g.5-L.15.5))||1l,J=(v(L.j.c("9"),10)+(L.g.9-L.15.9))||1l;L.j.1q(A.17(D,J&&G?{9:J,5:G}:{}),{48:F.4c||"4b",4a:F.42||"4e",3W:h(){f M={6:v(L.j.c("6"),10),8:v(L.j.c("8"),10),9:v(L.j.c("9"),10),5:v(L.j.c("5"),10)};a(E){E.c({6:M.6,8:M.8})}L.2j(M);L.1U("1q",I)}})}});A.b.1F.1K("d","13",{1O:h(E,D){f F=D.m,B=A(4).12("d"),G=F.1g,C=B.k;a(!G){B.13=B.j.2Y()}1a{B.13=G.2Y()}B.13.c({34:0.25,22:"2H",g:"1i",8:C.8,6:C.6,2w:0,5:0,9:0}).1j("b-d-13").1j(1R F.13=="47"?F.13:"");B.13.39(B.l)},o:h(D,C){f E=C.m,B=A(4).12("d"),F=E.1g;a(B.13){B.13.c({g:"1i",8:B.k.8,6:B.k.6})}},1P:h(D,C){f E=C.m,B=A(4).12("d"),F=E.1g;a(B.13&&B.l){B.l.1d(0).46(B.13.1d(0))}}});A.b.1F.1K("d","18",{1O:h(E,C){f F=C.m,B=A(4).12("d"),D=h(G){A(G).1E(h(){A(4).12("d-2y",{6:v(A(4).6(),10),8:v(A(4).8(),10),5:v(A(4).c("5"),10),9:v(A(4).c("9"),10)})})};a(1R(F.18)=="3i"){a(F.18.1H){F.18=F.18[0];D(F.18)}1a{A.1E(F.18,h(G,H){D(G)})}}1a{D(F.18)}},o:h(F,E){f G=E.m,C=A(4).12("d"),D=C.16,I=C.15;f H={8:(C.k.8-D.8)||0,6:(C.k.6-D.6)||0,9:(C.g.9-I.9)||0,5:(C.g.5-I.5)||0},B=h(J,K){A(J).1E(h(){f N=A(4).12("d-2y"),M={},L=K&&K.1H?K:["6","8","9","5"];A.1E(L||["6","8","9","5"],h(O,Q){f P=(N[Q]||0)+(H[Q]||0);a(P&&P>=0){M[Q]=P||1l}});A(4).c(M)})};a(1R(G.18)=="3i"){A.1E(G.18,h(J,K){B(J,K)})}1a{B(G.18)}},1P:h(C,B){A(4).3f("d-2y-1O")}})})(3R);',62,277,'||||this|left|width||height|top|if|ui|css|resizable||var|position|function||element|size|helper|options||resize|0px|test|return||cursor|handles|parseInt||nw|se|sw||||||||||||||||||||||||||ne||handle|data|ghost|4px|originalPosition|originalSize|extend|alsoResize|aspectRatio|else|false|_change|get|browser|grid|proportionallyResize|offset|relative|addClass|knobHandles|null|apply|document|0pt|sizeDiff|animate|px|bottom|right|outerWidth|outerHeight|axis|true|_handles|absolute|parentData|div|borderDif|zIndex|each|plugin|parent|length|containerOffset|_aspectRatio|add|disableSelection|minWidth|knob|start|stop|_proportionallyResize|typeof|minHeight|auto|propagate|maxWidth|static|hasScroll|shiftKey|maxHeight|msie|containerSize|display|containerPosition|resizing||body|arguments|100|textarea|input|marginTop|marginLeft|version|marginBottom|elementOffset|knobTheme|hidden|marginRight|_updateCache|autohide|match|for|wrapper|join|originalElement|is|documentScroll|_nodeName|style|transparent|remove|margin|overflow|alsoresize|borderBottom|1px|nodeName|borderTop|containerElement|borderRight|borderLeft|containment|block|preserveCursor|Math|button|in|show|select|originalMousePosition|constructor|opera|String|round|innerWidth|pageX|_renderAxis|number|pageY|clone|_renderProxy|innerHeight|_respectSize|_updateRatio|triggerHandler|opacity|append|none|className|hide|appendTo|solid|preventDefault|8px|autoHide|removeClass|removeData|F2F2F2|defaultTheme|object|background|scrollHeight|class|disabled|widget|call|proxy|plugins|mouseInit|hover|DEDEDE|init|fontSize|mouse|Bottom|1000|all|split|zoom|safari|img|wrap|808080|border|destroy|Right|Left|continue|canvas|Top|trim|padding|mouseover|mouseDrag|jQuery|defaults|cancel|distance|children|step|paddingRight|paddingBottom|paddingLeft|map|delay|animateEasing|parentNode|scrollWidth||removeChild|string|duration|instanceof|easing|slow|animateDuration|paddingTop|swing|mouseStart|end|scrollLeft|target|scrollTop|draggable|mouseStop|borderLeftWidth|find|borderTopWidth|mouseDestroy|unbind|borderRightWidth|borderBottomWidth'.split('|'),0,{}))
diff --git a/jquery/jquery.ui.sortable.js b/jquery/jquery.ui.sortable.js
new file mode 100644 (file)
index 0000000..04c3f34
--- /dev/null
@@ -0,0 +1 @@
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(b(B){b A(E,D){9 C=B.2M.3e&&B.2M.3f<3g;5(E.2I&&!C){e E.2I(D)}5(E.2E){e!!(E.2E(D)&16)}1Q(D=D.1e){5(D==E){e V}}e L}B.3d("j.p",B.2r({},B.j.3c,{38:b(){9 C=4.8;4.R={};4.g.22("j-p");4.2B();4.Z=4.c.z?(/6|1Z/).1c(4.c[0].t.f("39")):L;5(!(/(2U|1j|3a)/).1c(4.g.f("Q"))){4.g.f("Q","2U")}4.a=4.g.a();4.3b()},3h:{},j:b(C){e{l:(C||4)["l"],r:(C||4)["r"]||B([]),Q:(C||4)["Q"],3i:(C||4)["17"],8:4.8,g:4.g,t:(C||4)["h"],3o:C?C.g:O}},v:b(F,E,C,D){B.j.1g.X(4,F,[E,4.j(C)]);5(!D){4.g.2Y(F=="1b"?F:"1b"+F,[E,4.j(C)],4.8[F])}},2F:b(E){9 C=(B.1E(4.8.c)?4.8.c.X(4.g):B(4.8.c,4.g)).2a(".j-p-l");9 D=[];E=E||{};C.1x(b(){9 F=(B(4).2f(E.3p||"2g")||"").3q(E.2j||(/(.+)[-=3n](.+)/));5(F){D.1u((E.2m||F[1])+"[]="+(E.2m&&E.2j?F[1]:F[2]))}});e D.37("&")},2V:b(C){9 D=(B.1E(4.8.c)?4.8.c.X(4.g):B(4.8.c,4.g)).2a(".j-p-l");9 E=[];D.1x(b(){E.1u(B(4).2f(C||"2g"))});e E},2R:b(J){9 E=4.17.6,D=E+4.s.n,I=4.17.7,H=I+4.s.o;9 F=J.6,C=F+J.n,K=J.7,G=K+J.o;5(4.8.1p=="2n"||4.8.3j||(4.8.1p=="2e"&&4.s[4.Z?"n":"o"]>J[4.Z?"n":"o"])){e(I+4.a.q.7>K&&I+4.a.q.7<G&&E+4.a.q.6>F&&E+4.a.q.6<C)}Y{e(F<E+(4.s.n/2)&&D-(4.s.n/2)<C&&K<I+(4.s.o/2)&&H-(4.s.o/2)<G)}},2x:b(J){9 E=4.17.6,D=E+4.s.n,I=4.17.7,H=I+4.s.o;9 F=J.6,C=F+J.n,K=J.7,G=K+J.o;5(4.8.1p=="2n"||(4.8.1p=="2e"&&4.s[4.Z?"n":"o"]>J[4.Z?"n":"o"])){5(!(I+4.a.q.7>K&&I+4.a.q.7<G&&E+4.a.q.6>F&&E+4.a.q.6<C)){e L}5(4.Z){5(E+4.a.q.6>F&&E+4.a.q.6<F+J.n/2){e 2}5(E+4.a.q.6>F+J.n/2&&E+4.a.q.6<C){e 1}}Y{5(I+4.a.q.7>K&&I+4.a.q.7<K+J.o/2){e 2}5(I+4.a.q.7>K+J.o/2&&I+4.a.q.7<G){e 1}}}Y{5(!(F<E+(4.s.n/2)&&D-(4.s.n/2)<C&&K<I+(4.s.o/2)&&H-(4.s.o/2)<G)){e L}5(4.Z){5(D>F&&E<F){e 2}5(E<C&&D>C){e 1}}Y{5(H>K&&I<K){e 1}5(I<G&&H>G){e 2}}}e L},2B:b(){4.28();4.1I()},28:b(){4.c=[];4.d=[4];9 D=4.c;9 C=4;9 F=[[B.1E(4.8.c)?4.8.c.X(4.g,O,{8:4.8,t:4.h}):B(4.8.c,4.g),4]];5(4.8.1S){P(9 G=4.8.1S.z-1;G>=0;G--){9 I=B(4.8.1S[G]);P(9 E=I.z-1;E>=0;E--){9 H=B.1f(I[E],"p");5(H&&!H.8.26){F.1u([B.1E(H.8.c)?H.8.c.X(H.g):B(H.8.c,H.g),H]);4.d.1u(H)}}}}P(9 G=F.z-1;G>=0;G--){F[G][0].1x(b(){B.1f(4,"p-t",F[G][1]);D.1u({t:B(4),2y:F[G][1],n:0,o:0,6:0,7:0})})}},1I:b(D){5(4.u){9 C=4.u.a();4.a.m={7:C.7+4.1w.7,6:C.6+4.1w.6}}P(9 F=4.c.z-1;F>=0;F--){5(4.c[F].2y!=4.1q&&4.1q&&4.c[F].t[0]!=4.h[0]){1C}9 E=4.8.2z?B(4.8.2z,4.c[F].t):4.c[F].t;5(!D){4.c[F].n=E[0].24;4.c[F].o=E[0].1X}9 G=E.a();4.c[F].6=G.6;4.c[F].7=G.7}5(4.8.1O&&4.8.1O.2w){4.8.1O.2w.X(4)}Y{P(9 F=4.d.z-1;F>=0;F--){9 G=4.d[F].g.a();4.d[F].R.6=G.6;4.d[F].R.7=G.7;4.d[F].R.n=4.d[F].g.1z();4.d[F].R.o=4.d[F].g.1H()}}},3l:b(){4.g.3r("j-p j-p-26").2i("p").30(".p");4.34();P(9 C=4.c.z-1;C>=0;C--){4.c[C].t.2i("p-t")}},21:b(E){9 C=E||4,F=C.8;5(F.r.31==2Z){9 D=F.r;F.r={g:b(){e B("<2S></2S>").22(D)[0]},1o:b(G,H){H.f(G.a()).f({n:G.1z(),o:G.1H()})}}}C.r=B(F.r.g.X(C.g,C.h)).1M("W").f({Q:"1j"});F.r.1o.X(C.g,C.h,C.r)},2X:b(F){P(9 D=4.d.z-1;D>=0;D--){5(4.2R(4.d[D].R)){5(!4.d[D].R.1d){5(4.1q!=4.d[D]){9 I=36;9 H=O;9 E=4.17[4.d[D].Z?"6":"7"];P(9 C=4.c.z-1;C>=0;C--){5(!A(4.d[D].g[0],4.c[C].t[0])){1C}9 G=4.c[C][4.d[D].Z?"6":"7"];5(1m.2D(G-E)<I){I=1m.2D(G-E);H=4.c[C]}}5(!H&&!4.8.2C){1C}5(4.r){4.r.1A()}5(4.d[D].8.r){4.d[D].21(4)}Y{4.r=O}4.1q=4.d[D];H?4.1B(F,H,O,V):4.1B(F,O,4.d[D].g,V);4.v("1T",F);4.d[D].v("1T",F,4)}4.d[D].v("1d",F,4);4.d[D].R.1d=1}}Y{5(4.d[D].R.1d){4.d[D].v("2p",F,4);4.d[D].R.1d=0}}}},35:b(G,F){5(4.8.26||4.8.2T=="33"){e L}4.28();9 E=O,D=4,C=B(G.1D).2P().1x(b(){5(B.1f(4,"p-t")==D){E=B(4);e L}});5(B.1f(G.1D,"p-t")==D){E=B(G.1D)}5(!E){e L}5(4.8.2L&&!F){9 H=L;B(4.8.2L,E).3m("*").3A().1x(b(){5(4==G.1D){H=V}});5(!H){e L}}4.h=E;e V},3P:b(H,F,C){9 J=4.8;4.1q=4;4.1I();4.l=3L J.l=="b"?B(J.l.3M(4.g[0],[H,4.h])):4.h.2c();5(!4.l.2P("W").z){B(J.1M!="m"?J.1M:4.h[0].1e)[0].2O(4.l[0])}4.l.f({Q:"1j",1F:"3N"}).22("j-p-l");4.T={6:(w(4.h.f("3S"),10)||0),7:(w(4.h.f("3T"),10)||0)};4.a=4.h.a();4.a={7:4.a.7-4.T.7,6:4.a.6-4.T.6};4.a.q={6:H.1l-4.a.6,7:H.1k-4.a.7};4.u=4.l.u();9 D=4.u.a();4.1w={7:(w(4.u.f("29"),10)||0),6:(w(4.u.f("27"),10)||0)};4.a.m={7:D.7+4.1w.7,6:D.6+4.1w.6};4.15=4.1R(H);4.2d={1t:4.h.1t()[0],m:4.h.m()[0]};4.s={n:4.l.1z(),o:4.l.1H()};5(J.r){4.21()}4.v("1v",H);4.s={n:4.l.1z(),o:4.l.1H()};5(J.13){5(J.13.6!=1G){4.a.q.6=J.13.6}5(J.13.1Z!=1G){4.a.q.6=4.s.n-J.13.1Z}5(J.13.7!=1G){4.a.q.7=J.13.7}5(J.13.2t!=1G){4.a.q.7=4.s.o-J.13.2t}}5(J.k){5(J.k=="m"){J.k=4.l[0].1e}5(J.k=="i"||J.k=="1h"){4.k=[0-4.a.m.6,0-4.a.m.7,B(J.k=="i"?i:1h).n()-4.a.m.6-4.s.n-4.T.6-(w(4.g.f("2u"),10)||0),(B(J.k=="i"?i:1h).o()||i.W.1e.2q)-4.a.m.7-4.s.o-4.T.7-(w(4.g.f("2v"),10)||0)]}5(!(/^(i|1h|m)$/).1c(J.k)){9 G=B(J.k)[0];9 I=B(J.k).a();4.k=[I.6+(w(B(G).f("27"),10)||0)-4.a.m.6,I.7+(w(B(G).f("29"),10)||0)-4.a.m.7,I.6+1m.2s(G.3W,G.24)-(w(B(G).f("27"),10)||0)-4.a.m.6-4.s.n-4.T.6-(w(4.h.f("2u"),10)||0),I.7+1m.2s(G.2q,G.1X)-(w(B(G).f("29"),10)||0)-4.a.m.7-4.s.o-4.T.7-(w(4.h.f("2v"),10)||0)]}}5(4.8.r!="2c"){4.h.f("2A","3K")}5(!C){P(9 E=4.d.z-1;E>=0;E--){4.d[E].v("3y",H,4)}}5(B.j.18){B.j.18.3z=4}5(B.j.18&&!J.2J){B.j.18.3u(4,H)}4.2N=V;4.2o(H);e V},1P:b(D,E){5(!E){E=4.Q}9 C=D=="1j"?1:-1;e{7:(E.7+4.a.m.7*C-(4.u[0]==i.W?0:4.u[0].N)*C+4.T.7*C),6:(E.6+4.a.m.6*C-(4.u[0]==i.W?0:4.u[0].M)*C+4.T.6*C)}},1R:b(F){9 G=4.8;9 C={7:(F.1k-4.a.q.7-4.a.m.7+(4.u[0]==i.W?0:4.u[0].N)),6:(F.1l-4.a.q.6-4.a.m.6+(4.u[0]==i.W?0:4.u[0].M))};5(!4.15){e C}5(4.k){5(C.6<4.k[0]){C.6=4.k[0]}5(C.7<4.k[1]){C.7=4.k[1]}5(C.6>4.k[2]){C.6=4.k[2]}5(C.7>4.k[3]){C.7=4.k[3]}}5(G.11){9 E=4.15.7+1m.2h((C.7-4.15.7)/G.11[1])*G.11[1];C.7=4.k?(!(E<4.k[1]||E>4.k[3])?E:(!(E<4.k[1])?E-G.11[1]:E+G.11[1])):E;9 D=4.15.6+1m.2h((C.6-4.15.6)/G.11[0])*G.11[0];C.6=4.k?(!(D<4.k[0]||D>4.k[2])?D:(!(D<4.k[0])?D-G.11[0]:D+G.11[0])):D}e C},2o:b(D){4.Q=4.1R(D);4.17=4.1P("1j");B.j.1g.X(4,"1b",[D,4.j()]);4.17=4.1P("1j");4.l[0].2l.6=4.Q.6+"2k";4.l[0].2l.7=4.Q.7+"2k";P(9 C=4.c.z-1;C>=0;C--){9 E=4.2x(4.c[C]);5(!E){1C}5(4.c[C].t[0]!=4.h[0]&&4.h[E==1?"3D":"1t"]()[0]!=4.c[C].t[0]&&!A(4.h[0],4.c[C].t[0])&&(4.8.2T=="3E-3J"?!A(4.g[0],4.c[C].t[0]):V)){4.2H=E==1?"2G":"3F";4.1B(D,4.c[C]);4.v("1T",D);3G}}4.2X(D);5(B.j.18){B.j.18.3I(4,D)}4.g.2Y("1b",[D,4.j()],4.8.1b);e L},1B:b(H,G,D,F){D?D[0].2O(4.h[0]):G.t[0].1e.3B(4.h[0],(4.2H=="2G"?G.t[0]:G.t[0].3t));4.1s=4.1s?++4.1s:1;9 E=4,C=4.1s;1h.3w(b(){5(C==E.1s){E.1I(!F)}},0);5(4.8.r){4.8.r.1o.X(4.g,4.h,4.r)}},3Y:b(E,D){5(B.j.18&&!4.8.2J){B.j.18.3O(4,E)}5(4.8.2b){9 C=4;9 F=C.h.a();5(C.r){C.r.2K({1a:"3R"},(w(4.8.2b,10)||2Q)-3Q)}B(4.l).2K({6:F.6-4.a.m.6-C.T.6+(4.u[0]==i.W?0:4.u[0].M),7:F.7-4.a.m.7-C.T.7+(4.u[0]==i.W?0:4.u[0].N)},w(4.8.2b,10)||2Q,b(){C.1F(E)})}Y{4.1F(E,D)}e L},1F:b(E,D){5(4.2d.1t!=4.h.1t().2a(".j-p-l")[0]||4.2d.m!=4.h.m()[0]){4.v("1o",E,O,D)}5(!A(4.g[0],4.h[0])){4.v("1A",E,O,D);P(9 C=4.d.z-1;C>=0;C--){5(A(4.d[C].g[0],4.h[0])){4.d[C].v("1o",E,4,D);4.d[C].v("3v",E,4,D)}}}P(9 C=4.d.z-1;C>=0;C--){4.d[C].v("3V",E,4,D);5(4.d[C].R.1d){4.d[C].v("2p",E,4);4.d[C].R.1d=0}}4.2N=L;5(4.32){4.v("1y",E,O,D);e L}B(4.h).f("2A","");5(4.r){4.r.1A()}4.l.1A();4.l=O;4.v("1y",E,O,D);e V}}));B.2r(B.j.p,{3k:"2F 2V",3s:{l:"2c",1p:"2e",3X:1,3H:0,1n:V,14:20,12:20,3C:":3U",c:"> *",19:3Z,2C:V,1M:"m"}});B.j.1g.1r("p","1i",{1v:b(E,D){9 C=B("W");5(C.f("1i")){D.8.1U=C.f("1i")}C.f("1i",D.8.1i)},1y:b(D,C){5(C.8.1U){B("W").f("1i",C.8.1U)}}});B.j.1g.1r("p","19",{1v:b(E,D){9 C=D.l;5(C.f("19")){D.8.1V=C.f("19")}C.f("19",D.8.19)},1y:b(D,C){5(C.8.1V){B(C.l).f("19",C.8.1V)}}});B.j.1g.1r("p","1a",{1v:b(E,D){9 C=D.l;5(C.f("1a")){D.8.1W=C.f("1a")}C.f("1a",D.8.1a)},1y:b(D,C){5(C.8.1W){B(C.l).f("1a",C.8.1W)}}});B.j.1g.1r("p","1n",{1v:b(E,D){9 F=D.8;9 C=B(4).1f("p");C.U=b(G){2W{5(/1L|1n/.1c(G.f("1K"))||(/1L|1n/).1c(G.f("1K-y"))){e G}G=G.m()}1Q(G[0].1e);e B(i)}(C.h);C.S=b(G){2W{5(/1L|1n/.1c(G.f("1K"))||(/1L|1n/).1c(G.f("1K-x"))){e G}G=G.m()}1Q(G[0].1e);e B(i)}(C.h);5(C.U[0]!=i&&C.U[0].1J!="1N"){C.1Y=C.U.a()}5(C.S[0]!=i&&C.S[0].1J!="1N"){C.23=C.S.a()}},1b:b(E,D){9 F=D.8;9 C=B(4).1f("p");5(C.U[0]!=i&&C.U[0].1J!="1N"){5((C.1Y.7+C.U[0].1X)-E.1k<F.14){C.U[0].N=C.U[0].N+F.12}5(E.1k-C.1Y.7<F.14){C.U[0].N=C.U[0].N-F.12}}Y{5(E.1k-B(i).N()<F.14){B(i).N(B(i).N()-F.12)}5(B(1h).o()-(E.1k-B(i).N())<F.14){B(i).N(B(i).N()+F.12)}}5(C.S[0]!=i&&C.S[0].1J!="1N"){5((C.23.6+C.S[0].24)-E.1l<F.14){C.S[0].M=C.S[0].M+F.12}5(E.1l-C.23.6<F.14){C.S[0].M=C.S[0].M-F.12}}Y{5(E.1l-B(i).M()<F.14){B(i).M(B(i).M()-F.12)}5(B(1h).n()-(E.1l-B(i).M())<F.14){B(i).M(B(i).M()+F.12)}}}});B.j.1g.1r("p","25",{1b:b(E,D){9 C=B(4).1f("p");5(D.8.25=="y"){C.Q.6=C.15.6}5(D.8.25=="x"){C.Q.7=C.15.7}}})})(3x);',62,248,'||||this|if|left|top|options|var|offset|function|items|containers|return|css|element|currentItem|document|ui|containment|helper|parent|width|height|sortable|click|placeholder|helperProportions|item|offsetParent|propagate|parseInt|||length||||||||||||false|scrollLeft|scrollTop|null|for|position|containerCache|overflowX|margins|overflowY|true|body|call|else|floating||grid|scrollSpeed|cursorAt|scrollSensitivity|originalPosition||positionAbs|ddmanager|zIndex|opacity|sort|test|over|parentNode|data|plugin|window|cursor|absolute|pageY|pageX|Math|scroll|update|tolerance|currentContainer|add|counter|prev|push|start|offsetParentBorders|each|stop|outerWidth|remove|rearrange|continue|target|isFunction|clear|undefined|outerHeight|refreshPositions|tagName|overflow|auto|appendTo|HTML|custom|convertPositionTo|while|generatePosition|connectWith|change|_cursor|_zIndex|_opacity|offsetHeight|overflowYOffset|right||createPlaceholder|addClass|overflowXOffset|offsetWidth|axis|disabled|borderLeftWidth|refreshItems|borderTopWidth|not|revert|clone|domPosition|guess|attr|id|round|removeData|expression|px|style|key|pointer|mouseDrag|out|scrollHeight|extend|max|bottom|marginRight|marginBottom|refreshContainers|intersectsWithEdge|instance|toleranceElement|visibility|refresh|dropOnEmpty|abs|compareDocumentPosition|serialize|down|direction|contains|dropBehaviour|animate|handle|browser|dragging|appendChild|parents|500|intersectsWith|div|type|relative|toArray|do|contactContainers|triggerHandler|String|unbind|constructor|cancelHelperRemoval|static|mouseDestroy|mouseCapture|10000|join|init|float|fixed|mouseInit|mouse|widget|safari|version|522|plugins|absolutePosition|forcePointerForContainers|getter|destroy|find|_|sender|attribute|match|removeClass|defaults|nextSibling|prepareOffsets|receive|setTimeout|jQuery|activate|current|andSelf|insertBefore|cancel|next|semi|up|break|delay|drag|dynamic|hidden|typeof|apply|both|drop|mouseStart|50|hide|marginLeft|marginTop|input|deactivate|scrollWidth|distance|mouseStop|1000'.split('|'),0,{}))
diff --git a/lbl-blockquote.png b/lbl-blockquote.png
new file mode 100644 (file)
index 0000000..65ea205
Binary files /dev/null and b/lbl-blockquote.png differ
diff --git a/lbl-h1.png b/lbl-h1.png
new file mode 100644 (file)
index 0000000..dea1da3
Binary files /dev/null and b/lbl-h1.png differ
diff --git a/lbl-h2.png b/lbl-h2.png
new file mode 100644 (file)
index 0000000..f4b4274
Binary files /dev/null and b/lbl-h2.png differ
diff --git a/lbl-h3.png b/lbl-h3.png
new file mode 100644 (file)
index 0000000..bd99f76
Binary files /dev/null and b/lbl-h3.png differ
diff --git a/lbl-h4.png b/lbl-h4.png
new file mode 100644 (file)
index 0000000..e06ab3d
Binary files /dev/null and b/lbl-h4.png differ
diff --git a/lbl-h5.png b/lbl-h5.png
new file mode 100644 (file)
index 0000000..360fc60
Binary files /dev/null and b/lbl-h5.png differ
diff --git a/lbl-h6.png b/lbl-h6.png
new file mode 100644 (file)
index 0000000..73e644a
Binary files /dev/null and b/lbl-h6.png differ
diff --git a/lbl-p.png b/lbl-p.png
new file mode 100644 (file)
index 0000000..7f2bf34
Binary files /dev/null and b/lbl-p.png differ
diff --git a/lbl-pre.png b/lbl-pre.png
new file mode 100644 (file)
index 0000000..e026e47
Binary files /dev/null and b/lbl-pre.png differ
diff --git a/main_wymiframe.html b/main_wymiframe.html
new file mode 100644 (file)
index 0000000..91a690c
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        wymiframe.html
+ *        Iframe used by designMode.
+ *        See the documentation for more info.
+ *
+ * File Authors:
+ *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+-->
+<html>
+<head>
+<title>WYMeditor iframe</title>
+<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
+<link rel="stylesheet" type="text/css" media="screen" href="wymiframe.css" />
+</head>
+<body class="wym_iframe"></body>
+</html>
diff --git a/openwysiwyg/addons/imagelibrary/changelog b/openwysiwyg/addons/imagelibrary/changelog
deleted file mode 100644 (file)
index 59f8fd3..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-v0.2.2
-       * changed - Using full php tags instead of <? only
-       * fixed - Solved problem while generate source of an image if it is within a subdirectory 
-       * changed - Hide upload button if $allowuploads is false 
-
-v0.2.1
-       * fixed - Problem with relative URL to images using openImageLibrary
-
-v0.1
-       * inital release
\ No newline at end of file
diff --git a/openwysiwyg/addons/imagelibrary/config.inc.php b/openwysiwyg/addons/imagelibrary/config.inc.php
deleted file mode 100644 (file)
index 1e95735..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-/********************************************************************
- * openImageLibrary addon v0.2.2 Copyright (c) 2006 openWebWare.com
- * Contact us at devs@openwebware.com
- * This copyright notice MUST stay intact for use.
- * 
- * $Id: config.inc.php,v 1.7 2006/12/17 21:34:28 xhaggi Exp $
- * 
- * An open source image library addon for the openWYSIWYG.
- * This library gives you the possibility to upload, browse and select 
- * images on your webserver.
- * 
- * Requirements: 
- * - PHP 4.1.x or later
- * - openWYSIWYG v1.4.6 or later
- ********************************************************************/
-/*
- * Path to a directory which holds the images.
- */
-$imagebasedir = '../../uploads';
-
-/*
- * An absolute or relative URL to the image folder.
- * This url is used to generate the source of the image.
- */
-$imagebaseurl = 'uploads';
-
-/*
- * Allow your users to browse the subdir of the defined basedir.
- */
-$browsedirs = true;
-
-/*
- * If enabled users will be able to upload 
- * files to any viewable directory. You should really only enable
- * this if the area this script is in is already password protected.
- */
-$allowuploads = true;
-
-/*
- * If a user uploads a file with the same
- * name as an existing file do you want the existing file
- * to be overwritten?
-*/
-$overwrite = false;
-
-/*
- * Define the extentions you want to show within the 
- * directory listing. The extensions also limit the 
- * files the user can upload to your image folders.   
- */
-$supportedextentions = array(
-       'gif', 
-       'png', 
-       'jpeg', 
-       'jpg',
-       'bmp'
-);
-                       
-/*
- * If you want to add your own special file icons use 
- * this section below. Each entry relates to the extension of the 
- * given file, in the form <extension> => <filename>. 
- * These files must be located within the dlf directory.
- */
-$filetypes = array (
-       'png' => 'jpg.gif',
-       'jpeg' => 'jpg.gif',
-       'bmp' => 'jpg.gif',
-       'jpg' => 'jpg.gif', 
-       'gif' => 'gif.gif',
-       'psd' => 'psd.gif',
-);
-       
-?>
diff --git a/openwysiwyg/addons/imagelibrary/images/dirup.png b/openwysiwyg/addons/imagelibrary/images/dirup.png
deleted file mode 100644 (file)
index c118622..0000000
Binary files a/openwysiwyg/addons/imagelibrary/images/dirup.png and /dev/null differ
diff --git a/openwysiwyg/addons/imagelibrary/images/folder.png b/openwysiwyg/addons/imagelibrary/images/folder.png
deleted file mode 100644 (file)
index a61dd23..0000000
Binary files a/openwysiwyg/addons/imagelibrary/images/folder.png and /dev/null differ
diff --git a/openwysiwyg/addons/imagelibrary/images/gif.gif b/openwysiwyg/addons/imagelibrary/images/gif.gif
deleted file mode 100644 (file)
index 1a51148..0000000
Binary files a/openwysiwyg/addons/imagelibrary/images/gif.gif and /dev/null differ
diff --git a/openwysiwyg/addons/imagelibrary/images/jpg.gif b/openwysiwyg/addons/imagelibrary/images/jpg.gif
deleted file mode 100644 (file)
index 38a1880..0000000
Binary files a/openwysiwyg/addons/imagelibrary/images/jpg.gif and /dev/null differ
diff --git a/openwysiwyg/addons/imagelibrary/images/psd.gif b/openwysiwyg/addons/imagelibrary/images/psd.gif
deleted file mode 100644 (file)
index eef1318..0000000
Binary files a/openwysiwyg/addons/imagelibrary/images/psd.gif and /dev/null differ
diff --git a/openwysiwyg/addons/imagelibrary/images/unknown.png b/openwysiwyg/addons/imagelibrary/images/unknown.png
deleted file mode 100644 (file)
index 67f2fa1..0000000
Binary files a/openwysiwyg/addons/imagelibrary/images/unknown.png and /dev/null differ
diff --git a/openwysiwyg/addons/imagelibrary/insert_image.php b/openwysiwyg/addons/imagelibrary/insert_image.php
deleted file mode 100644 (file)
index 8811fd3..0000000
+++ /dev/null
@@ -1,301 +0,0 @@
-<?php
-/********************************************************************
- * openImageLibrary addon Copyright (c) 2006 openWebWare.com
- * Contact us at devs@openwebware.com
- * This copyright notice MUST stay intact for use.
- ********************************************************************/
-
-require('config.inc.php');
-error_reporting(0);
-// get the identifier of the editor
-$wysiwyg = $_GET['wysiwyg']; 
-// set image dir
-$leadon = $rootdir.$imagebasedir;
-
-if($leadon=='.') $leadon = '';
-if((substr($leadon, -1, 1)!='/') && $leadon!='') $leadon = $leadon . '/';
-$startdir = $leadon;
-
-// validate the directory
-$_GET['dir'] = $_POST['dir'] ? $_POST['dir'] : $_GET['dir'];
-if($_GET['dir']) {
-       if(substr($_GET['dir'], -1, 1)!='/') {
-               $_GET['dir'] = $_GET['dir'] . '/';
-       }
-       $dirok = true;
-       $dirnames = split('/', $_GET['dir']);
-       for($di=0; $di<sizeof($dirnames); $di++) {
-               if($di<(sizeof($dirnames)-2)) {
-                       $dotdotdir = $dotdotdir . $dirnames[$di] . '/';
-               }
-       }
-       if(substr($_GET['dir'], 0, 1)=='/') {
-               $dirok = false;
-       }
-
-       if($_GET['dir'] == $leadon) {
-               $dirok = false;
-       }
-       
-       if($dirok) {
-               $leadon = $_GET['dir'];
-       }
-}
-
-// upload file
-if($allowuploads && $_FILES['file']) {
-       $upload = true;
-       if(!$overwrite) {
-               if(file_exists($leadon.$_FILES['file']['name'])) {
-                       $upload = false;
-               }
-       }
-       $ext = strtolower(substr($_FILES['file']['name'], strrpos($_FILES['file']['name'], '.')+1));
-       if(!in_array($ext, $supportedextentions)) {
-               $upload = false;
-       }
-       if($upload) {
-               move_uploaded_file($_FILES['file']['tmp_name'], $leadon . $_FILES['file']['name']);
-       }
-}
-
-if($allowuploads) {
-       $phpallowuploads = (bool) ini_get('file_uploads');              
-       $phpmaxsize = ini_get('upload_max_filesize');
-       $phpmaxsize = trim($phpmaxsize);
-       $last = strtolower($phpmaxsize{strlen($phpmaxsize)-1});
-       switch($last) {
-               case 'g':
-                       $phpmaxsize *= 1024;
-               case 'm':
-                       $phpmaxsize *= 1024;
-       }
-}
-
-?>
-
-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-<title>openWYSIWYG | Insert Image</title>
-
-<script type="text/javascript" src="../../scripts/wysiwyg-popup.js"></script>
-<script language="JavaScript" type="text/javascript">
-
-/* ---------------------------------------------------------------------- *\
-  Function    : insertImage()
-  Description : Inserts image into the WYSIWYG.
-\* ---------------------------------------------------------------------- */
-function insertImage() {
-       var n = WYSIWYG_Popup.getParam('wysiwyg');
-       
-       // get values from form fields
-       var src = document.getElementById('src').value;
-       var alt = document.getElementById('alt').value;
-       var width = document.getElementById('width').value
-       var height = document.getElementById('height').value
-       var border = document.getElementById('border').value
-       var align = document.getElementById('align').value
-       var vspace = document.getElementById('vspace').value
-       var hspace = document.getElementById('hspace').value
-       
-       // insert image
-       WYSIWYG.insertImage(src, width, height, align, border, alt, hspace, vspace, n);
-       window.close();
-}
-
-/* ---------------------------------------------------------------------- *\
-  Function    : loadImage()
-  Description : load the settings of a selected image into the form fields
-\* ---------------------------------------------------------------------- */
-function loadImage() {
-       var n = WYSIWYG_Popup.getParam('wysiwyg');
-       
-       // get selection and range
-       var sel = WYSIWYG.getSelection(n);
-       var range = WYSIWYG.getRange(sel);
-       
-       // the current tag of range
-       var img = WYSIWYG.findParent("img", range);
-       
-       // if no image is defined then return
-       if(img == null) return;
-               
-       // assign the values to the form elements
-       for(var i = 0;i < img.attributes.length;i++) {
-               var attr = img.attributes[i].name.toLowerCase();
-               var value = img.attributes[i].value;
-               //alert(attr + " = " + value);
-               if(attr && value && value != "null") {
-                       switch(attr) {
-                               case "src": 
-                                       // strip off urls on IE
-                                       if(WYSIWYG_Core.isMSIE) value = WYSIWYG.stripURLPath(n, value, false);
-                                       document.getElementById('src').value = value;
-                               break;
-                               case "alt":
-                                       document.getElementById('alt').value = value;
-                               break;
-                               case "align":
-                                       selectItemByValue(document.getElementById('align'), value);
-                               break;
-                               case "border":
-                                       document.getElementById('border').value = value;
-                               break;
-                               case "hspace":
-                                       document.getElementById('hspace').value = value;
-                               break;
-                               case "vspace":
-                                       document.getElementById('vspace').value = value;
-                               break;
-                               case "width":
-                                       document.getElementById('width').value = value;
-                               break;
-                               case "height":
-                                       document.getElementById('height').value = value;
-                               break;                          
-                       }
-               }
-       }
-       
-       // get width and height from style attribute in none IE browsers
-       if(!WYSIWYG_Core.isMSIE && document.getElementById('width').value == "" && document.getElementById('width').value == "") {
-               document.getElementById('width').value = img.style.width.replace(/px/, "");
-               document.getElementById('height').value = img.style.height.replace(/px/, "");
-       }
-}
-
-/* ---------------------------------------------------------------------- *\
-  Function    : selectItem()
-  Description : Select an item of an select box element by value.
-\* ---------------------------------------------------------------------- */
-function selectItemByValue(element, value) {
-       if(element.options.length) {
-               for(var i=0;i<element.options.length;i++) {
-                       if(element.options[i].value == value) {
-                               element.options[i].selected = true;
-                       }
-               }
-       }
-}
-
-</script>
-</head>
-<body bgcolor="#EEEEEE" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" onLoad="loadImage();">
-<table border="0" cellpadding="0" cellspacing="0" style="padding: 10px;">
-<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?wysiwyg=<?php echo $wysiwyg; ?>" enctype="multipart/form-data">
-<input type="hidden" id="dir" name="dir" value="">
-<tr>
-<td style="vertical-align:top;">
-<span style="font-family: arial, verdana, helvetica; font-size: 11px; font-weight: bold;">Insert Image:</span>
-<table width="380" border="0" cellpadding="0" cellspacing="0" style="background-color: #F7F7F7; border: 2px solid #FFFFFF; padding: 5px;">
-       <?php
-       if($allowuploads) {
-               if($phpallowuploads) {
-               
-       ?>
-               <tr>
-                       <td style="padding-top: 0px;padding-bottom: 0px; font-family: arial, verdana, helvetica; font-size: 11px;width:80px;">Upload:</td>
-                       <td style="padding-top: 0px;padding-bottom: 0px;width:300px;"><input type="file" name="file" size="30" style="font-size: 10px; width: 100%;" /></td>
-               </tr>
-               <tr>
-                       <td style="padding-top: 0px;padding-bottom: 2px;font-family: tahoma; font-size: 9px;">&nbsp;</td>
-                       <td style="padding-top: 0px;padding-bottom: 2px;font-family: tahoma; font-size: 9px;">(Max Filesize: <?php echo $phpmaxsize; ?>KB)</td>
-               </tr>
-       <?php
-               }
-               else {
-       ?>
-               <tr>
-                       <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;" colspan="2">
-                               File uploads are disabled in your php.ini file. Please enable them.
-                       </td>
-               </tr>
-       <?php
-               }
-       }
-       ?>
-       <tr>
-               <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;" width="80">Image URL:</td>
-               <td style="padding-bottom: 2px; padding-top: 0px;" width="300"><input type="text" name="src" id="src" value=""  style="font-size: 10px; width: 100%;"></td>
-       </tr>
-       <tr>
-               <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Alternate Text:</td>
-               <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="alt" id="alt" value=""  style="font-size: 10px; width: 100%;"></td>
-       </tr>
-</table>
-       
-<table width="380" border="0" cellpadding="0" cellspacing="0"><tr><td style="vertical-align:top;">
-<span style="font-family: arial, verdana, helvetica; font-size: 11px; font-weight: bold;">Layout:</span>
-<table width="180" border="0" cellpadding="0" cellspacing="0" style="background-color: #F7F7F7; border: 2px solid #FFFFFF; padding: 5px;">
-<tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Width:</td>
-  <td style="width:60px;padding-bottom: 2px; padding-top: 0px;"><input type="text" name="width" id="width" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Height:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="height" id="height" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Border:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="border" id="border" value="0"  style="font-size: 10px; width: 100%;"></td>
- </tr>
-</table>       
-
-</td>
-<td width="10">&nbsp;</td>
-<td style="vertical-align:top;">
-
-<span style="font-family: arial, verdana, helvetica; font-size: 11px; font-weight: bold;">&nbsp;</span>
-<table width="200" border="0" cellpadding="0" cellspacing="0" style="background-color: #F7F7F7; border: 2px solid #FFFFFF; padding: 5px;">
-<tr>
-  <td style="width: 115px;padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;" width="100">Alignment:</td>
-       <td style="width: 85px;padding-bottom: 2px; padding-top: 0px;">
-       <select name="align" id="align" style="font-family: arial, verdana, helvetica; font-size: 11px; width: 100%;">
-        <option value="">Not Set</option>
-        <option value="left">Left</option>
-        <option value="right">Right</option>
-        <option value="texttop">Texttop</option>
-        <option value="absmiddle">Absmiddle</option>
-        <option value="baseline">Baseline</option>
-        <option value="absbottom">Absbottom</option>
-        <option value="bottom">Bottom</option>
-        <option value="middle">Middle</option>
-        <option value="top">Top</option>
-       </select>
-       </td>
- </tr>
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Horizontal Space:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="hspace" id="hspace" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Vertical Space:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="vspace" id="vspace" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
-</table>       
-
-</td>
-</tr>
-</table>
-</td>
-<td style="vertical-align: top;width: 150px; padding-left: 5px;">
-       <span style="font-family: arial, verdana, helvetica; font-size: 11px; font-weight: bold;">Select Image:</span>
-       <iframe id="chooser" frameborder="0" style="height:165px;width: 180px;border: 2px solid #FFFFFF; padding: 5px;" src="select_image.php?dir=<?php echo $leadon; ?>"></iframe>
-</td>
-</tr>
-<tr>
-       <td colspan="2" align="right" style="padding-top: 5px;">
-               <input type="submit" value="  Submit  " onclick="insertImage();return false;" style="font-size: 12px;">
-               <?php if ( $allowuploads ) { ?> 
-                       <input type="submit" value="  Upload  " style="font-size: 12px;">
-               <?php } ?>              
-               <input type="button" value="  Cancel  " onclick="window.close();" style="font-size: 12px;">     
-       </td>
-</tr>
-</form>
-</table>
-</body>
-</html>
diff --git a/openwysiwyg/addons/imagelibrary/select_image.php b/openwysiwyg/addons/imagelibrary/select_image.php
deleted file mode 100644 (file)
index 2b4c024..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-<?php
-/********************************************************************
- * openImageLibrary addon Copyright (c) 2006 openWebWare.com
- * Contact us at devs@openwebware.com
- * This copyright notice MUST stay intact for use.
- ********************************************************************/
-require('config.inc.php');
-error_reporting(0);
-if((substr($imagebaseurl, -1, 1)!='/') && $imagebaseurl!='') $imagebaseurl = $imagebaseurl . '/';
-if((substr($imagebasedir, -1, 1)!='/') && $imagebasedir!='') $imagebasedir = $imagebasedir . '/';
-$leadon = $imagebasedir;
-if($leadon=='.') $leadon = '';
-if((substr($leadon, -1, 1)!='/') && $leadon!='') $leadon = $leadon . '/';
-$startdir = $leadon;
-
-if($_GET['dir']) {
-       if(substr($_GET['dir'], -1, 1)!='/') {
-               $_GET['dir'] = $_GET['dir'] . '/';
-       }
-       $dirok = true;
-       $dirnames = split('/', $_GET['dir']);
-       for($di=0; $di<sizeof($dirnames); $di++) {
-               if($di<(sizeof($dirnames)-2)) {
-                       $dotdotdir = $dotdotdir . $dirnames[$di] . '/';
-               }
-       }
-       if(substr($_GET['dir'], 0, 1)=='/') {
-               $dirok = false;
-       }
-
-       if($_GET['dir'] == $leadon) {
-               $dirok = false;
-       }
-       
-       if($dirok) {
-               $leadon = $_GET['dir'];
-       }
-}
-
-$opendir = $leadon;
-if(!$leadon) $opendir = '.';
-if(!file_exists($opendir)) {
-       $opendir = '.';
-       $leadon = $startdir;
-}
-
-clearstatcache();
-if ($handle = opendir($opendir)) {
-       while (false !== ($file = readdir($handle))) { 
-               //first see if this file is required in the listing
-               if ($file == "." || $file == "..")  continue;
-               if (@filetype($leadon.$file) == "dir") {
-                       if(!$browsedirs) continue;
-               
-                       $n++;
-                       if($_GET['sort']=="date") {
-                               $key = @filemtime($leadon.$file) . ".$n";
-                       }
-                       else {
-                               $key = $n;
-                       }
-                       $dirs[$key] = $file . "/";
-               }
-               else {
-                       $n++;
-                       if($_GET['sort']=="date") {
-                               $key = @filemtime($leadon.$file) . ".$n";
-                       }
-                       elseif($_GET['sort']=="size") {
-                               $key = @filesize($leadon.$file) . ".$n";
-                       }
-                       else {
-                               $key = $n;
-                       }
-                       $files[$key] = $file;
-               }
-       }
-       closedir($handle); 
-}
-
-//sort our files
-if($_GET['sort']=="date") {
-       @ksort($dirs, SORT_NUMERIC);
-       @ksort($files, SORT_NUMERIC);
-}
-elseif($_GET['sort']=="size") {
-       @natcasesort($dirs); 
-       @ksort($files, SORT_NUMERIC);
-}
-else {
-       @natcasesort($dirs); 
-       @natcasesort($files);
-}
-
-//order correctly
-if($_GET['order']=="desc" && $_GET['sort']!="size") {$dirs = @array_reverse($dirs);}
-if($_GET['order']=="desc") {$files = @array_reverse($files);}
-$dirs = @array_values($dirs); $files = @array_values($files);
-?>
-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-<title>openWYSIWYG | Select Image</title>
-<style type="text/css">
-body {
-       margin: 0px;
-}
-a {
-       font-family: Arial, verdana, helvetica; 
-       font-size: 11px; 
-       color: #000000;
-       text-decoration: none;
-}
-a:hover {
-       text-decoration: underline;
-}
-</style>
-<script type="text/javascript">
-       function selectImage(url) {
-               if(parent) {
-                       parent.document.getElementById("src").value = url;
-               }
-       }
-       
-       if(parent) {
-               parent.document.getElementById("dir").value = '<?php echo $leadon; ?>';
-       }
-       
-</script>
-</head>
-<body>
-       <table border="0">
-               <tbody>
-                <?php
-                       $breadcrumbs = split('/', str_replace($basedir."/", "", $leadon));
-                       if(($bsize = sizeof($breadcrumbs)) > 0) {
-                               if(($bsize-1) > 0) {    
-                                       echo "<tr><td>";
-                                       $sofar = '';
-                                       for($bi=0;$bi<($bsize-1);$bi++) {
-                                               $sofar = $sofar . $breadcrumbs[$bi] . '/';
-                                               echo '<a href="'.$_SERVER['PHP_SELF'].'?dir='.urlencode($sofar).'" style="font-size:10px;font-family:Tahoma;">&raquo; '.$breadcrumbs[$bi].'</a><br>';
-                                       }
-                                       echo "</td></tr>";
-                               }
-                       }
-                 ?>
-               <tr>
-                       <td>
-                                 <?php
-                                       $class = 'b';
-                                       if($dirok) {
-                                       ?>
-                                       <a href="<?php echo $_SERVER['PHP_SELF'].'?dir='.urlencode($dotdotdir); ?>"><img src="images/dirup.png" alt="Folder" border="0" /> <strong>..</strong></a><br>
-                                       <?php
-                                               if($class=='b') $class='w';
-                                               else $class = 'b';
-                                       }
-                                       $arsize = sizeof($dirs);
-                                       for($i=0;$i<$arsize;$i++) {
-                                               $dir = substr($dirs[$i], 0, strlen($dirs[$i]) - 1);
-                                       ?>
-                                       <a href="<?php echo $_SERVER['PHP_SELF'].'?dir='.urlencode($leadon.$dirs[$i]); ?>"><img src="images/folder.png" alt="<?php echo $dir; ?>" border="0" /> <strong><?php echo $dir; ?></strong></a><br>
-                                       <?php
-                                               if($class=='b') $class='w';
-                                               else $class = 'b';      
-                                       }
-                                       
-                                       $arsize = sizeof($files);
-                                       for($i=0;$i<$arsize;$i++) {
-                                               $icon = 'unknown.png';
-                                               $ext = strtolower(substr($files[$i], strrpos($files[$i], '.')+1));
-                                               if(in_array($ext, $supportedextentions)) {
-                                                       
-                                                       $thumb = '';
-                                                       if($filetypes[$ext]) {
-                                                               $icon = $filetypes[$ext];
-                                                       }
-                                                       
-                                                       $filename = $files[$i];
-                                                       if(strlen($filename)>43) {
-                                                               $filename = substr($files[$i], 0, 40) . '...';
-                                                       }
-                                                       $fileurl = $leadon . $files[$i];
-                                                       $filedir = str_replace($imagebasedir, "", $leadon);
-                                       ?>
-                                       <a href="javascript:void(0)" onclick="selectImage('<?php echo $imagebaseurl.$filedir.$filename; ?>');"><img src="images/<?php echo $icon; ?>" alt="<?php echo $files[$i]; ?>" border="0" /> <strong><?php echo $filename; ?></strong></a><br>
-                                       <?php
-                                                       if($class=='b') $class='w';
-                                                       else $class = 'b';      
-                                               }
-                                       }       
-                                       ?>
-                               </td>
-                       </tr>
-               </tbody>
-       </table>
-</body>
-</html>
\ No newline at end of file
diff --git a/openwysiwyg/changelog b/openwysiwyg/changelog
deleted file mode 100644 (file)
index a52e39b..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-v1.4.7
-       * added - Possibilty to maximize the editor window
-       * fixed - Correct relative image path on preview, now it works for all images
-       * added - Table highlighting possibility
-       * added - Possiblity to assign headings (crashed)
-       * changed - Code improvments to tons of functions
-       * changed - WYSIWYG.formatText() function renamed to WYSIWYG.execCommand()
-       * changed - WYSIWYG.findParentTag() renamed to WYSIWYG.findParent()
-       * added - WYSIWYG_Core.findParentNode(tagName, node) function which finds a parent node by tag name starts on the given node
-       * fixed - Implement function WYSIWYG_Core.getAttribute which solve the problem while getting the style attribute on IE
-       * changed - Getting style attribute while editing a link
-       * added - WYSIWYG_Table object, which is used for improving table editing
-       * changed - New icons print and preview (thx sweb)
-       * added - Save and return button on toolbar, the return button is disabled by default. (thx sweb)
-       * added - Table function improvments
-       * added - New WYSIWYG_Color object, which handels the color choosing
-       * added - Full justify text (code by tim)
-       
-v1.4.6c
-       * fixed - Solved issue with backcolor command on IE
-       * changed - Add parameter value to WYSIWYG_Core.execCommand() function
-       
-v1.4.6b
-       * changed - Debug code on context menu removed
-       * fixed - Add "px" to left and top style information on context menu
-       * changed - Correct comment of wyswiwyg-settings.js
-
-v1.4.6a
-       * fixed - bad class name on mouse over of toolbar buttons fixed
-       * changed - Rewritten function to get the current position of an element (iframe)
-       * fixed - Context menu position issue solved
-       * fixed - Wrong variable call fixed
-       * fixed - Problem while removing elements with the context menu solved
-       
-v1.4.6 (2006-12-17)
-       * changed - Modification changed to be the official version of openWYSIWYG
-       * fixed - Child nodes will be copied to the parent if a node is removed
-       * changed - Complete rewritten context menu
-       * changed - Behaviours of the context menu dependents on selection
-       * added - Copy/Cut/Paste to context menu
-       * changed - Code structure changes
-       * added - wysiwyg-popup.js which holds popup specific functions
-       * added - new object WYSIWYG_Core added, which holds all core functions
-       * added - addEvent() and removeEvent() core function added
-       * added - attach() and attachAll() functions which used to attach the editor to textareas
-       * changed - Complete rewritten insertLink function, now it works with tags like img, h1 etc
-       * added - Override width and height of the editor with size given by the style attributes width and height of the textarea
-       * added - New function includeCSS() in Core object, which includes a given stylesheet file on the head tag of the current page
-       * fixed - Solved problem if you want to attach the editor to all textareas
-       * changed - Include of stylesheet files changed, now using the includeCSS function
-       * changed - Complete rewritten display function, now you can use it like like function attach()
-
-v0.4.5 (2006-11-12)
-       * added - openImageLibrary addon (for now PHP only)
-    * fixed - correct relative anchor and image path on preview
-    * changed - various javascript code changes
-
-v0.4.4 (2006-11-11)
-    * added - capability of using image library addons
-    * fixed - corrupt font + font size selection html
-
-v0.4.3 (2006-10-20)
-    * added - Possibility to invert the line break print outs of IE (ENTER = <br>, SHIFT + ENTER = <p>)
-    * fixed - Replace of <p> with <br> on carriage return prevented the IE to set ordered and unordered lists.
-    * added - Settings object to customize the Editor
-    * fixed - Solve javascript error on example.html
-    * fixed - Change html layout of the editor to solve the minimum width problem on dynamic editor size.
-    * added - Enable/disable possibilty of the context menu
-    * added - A general remove function, so it is possible to remove each html element
-    * added - Adding an option 'Remove Node' to the context menu
-    * added - Adding the possibilty to add the font + font size selection to toolbar2 or placing them where ever you want on the toolbars
-    * changed - Removing the vars EnableFontSelection and EnableFontSizeSelection because font + font size selection goes to ToolBar Array like all other buttons.
-    * changed - Removing vars EditorMinimumWidth and EditorMinimumHeight after solving the minimum width problem on IE. No more use.
-    * added - New Function addToolbarElement() and removeToolbarElement within the settings object
-    * added - Possibility to select a html node using the status bar node structure
-    * changed - Complete redesign of the toolbar implementation
-    * changed - Remove function removeImage() and removeLink(), because function removeNode() do it for all
-    * added - Two new functions getEditorOffsetY() and getEditorOffsetX() to get the offsets of the editor window to the body if the the page
-    * fixed - broken image path on toolbar button text view
-    * added - New function enable(), now you can enable/display the editor on the fly
-
-v0.4.2 (2006-10-16)
-    * added - Converting decimal colors to hex colors within style attributes
-    * changed - Rename getParentTag() to findParentTag(), the function finds a tag by a given tag name
-    * changed - Improving function findParentTag(), now it finds IMG tags and do not return #tags but the parent tag
-    * added - Reimplementing function getTag(). The function gets the current selected tag
-    * added - New Function getParent(). Returns the parent node of the given element
-    * added - New Function getNodeTree(). The function returns a tree of nodes as array, beginning with the current selected element (node) and ending with the HTML node (element).
-    * added - New status bar implemented. It's shown the element structure, beginning with the current selected element and ending with the HTML element.
-    * added - New Function updateStatusBar(). Updates the status bar with the element structure.
-    * changed - Possibility of setting dynamic width and height of the editor
-    * fixed - Solving bug while setting style attribute on links
-
-v0.4.1 (2006-10-14)
-    * added - Custom context menu for images and links
-    * added - Remove option for images and links on the context menu
-    * added - New functions removeLink() and removeImages()
-    * added - New function $() implemented, its a replacement for document.getElementById()
-    * changed - Some small other code changes
-
-v0.4 (2006-10-12)
-    * fixed - Dublicated id attribute in color chooser popup
-    * fixed - Preventing IE to insert <p> tags on carriage return. IE will insert a normal <br> instead. (Thx to richyrich)
-    * fixed - Crappy layout of hyperlink popup on IE (fields: class and name)
-    * fixed - With multiple editors on one form, the global var viewTextMode is not unique for each editor. Used an Array instead to set the var for each editor individually
-    * fixed - Submitting the editor while in text mode then it will submit escaped html (<br> -> submit -> &lt;br&gt;). Auto switch to HTML Mode if submit
-    * fixed - Validate objects on hideFonts() and hideFontSizes() function
-    * changed - Improvements on closing font + font size selection. Add a unique event listener for each selection.
-
-v0.3.2a (2006-10-11)
-    * added - Improvements on font and font size selection, now the drop downs will be closed if you go through the editor.
-    * fixed - Opera bug in insertNodeAtSelection() function solved. That's why the table popup won`t close if you submit it.
-    * fixed - CSS file problem in table popup. There was a hard coded path to the CSS file. I changed it so the path to the CSS file will be dynamically inserted.
-    * added - Improvements to the color selection menus on table popup, now the button "pick" has a toggle function (open/close the color selections).
-    * fixed - Font and font size selection fixed. I improved the closing a little bit, so if you choose font and then click an font size the font menue will be closed before.
-    * added - Added a select field to the hyperlink popup which holds the default targets _blank, _self, _parent, _top. On change the select field updates the 'target' text field.
-   
-
-v0.3.1 (2006-10-10)
-    * fixed - Solve the habit of IE to convert relative urls into absolute. Now you can set two vars AnchorPathToStrip and ImagePathToStrip which holds an url that will be stripped off the href and src attributes. If you set the vars to "auto" then the url will automatically get of the current document. I recommend that you use the "auto" methode.
-
-v0.3 (2006-10-09)
-    * added - Default style now also applies to the preview window
-    * added - Print button + function
-    * fixed - A little mistake within the function setAttribute, attr.toLowerCase -> attr.toLowerCase() it prevented the script to apply the styles in IE correctly
-    * fixed - Problem while replacing \n with <br> after submitting data in IE solved.
-    * fixed - Complete rewritten function insertLink + insertImage. Improving edit capabiltity on both links and images.
-
-v0.2 (2006-10-08)
-    * added - New function insertLink(), now you can insert and edit links. New available attributes are target, styleclass, name and style. (IE has some limitations, getting style attribute doesn`t work, hope i can solve this problem)
-    * fixed - Stripping MS Word HTML (removed some bugs within the regex)
-    * changed - Complete rewritten source code, now all functions + var are within a var WYSIWYG. (ex. WYSIWYG.generate('textarea1', 500, 200); )
-    * fixed - Replace <div> with <span> while insert html on none IE Browsers, this solve the new line problem after the <div> tag.
-    * added - New function insertImage(), now you can insert and editing images
-    * added - Validation of browser versions (thx to TIM)
-
-v0.1 (2006-10-06)
-    * added - Possibility to replace \n with <br> to be compatible with previous content coming from a database, for example.
-    * added - Button to strip any HTML added by word
-    * changed - Modified generate_wysiwyg() method (added width and height to customize size of each editor, width and height are optional parameter)
-    * added - Possibility to set the default font family, font size and font color of the editor area
-    * added - New function disable_wysiwyg() to disable a editor area
-    * changed - Some changes were made to toolbar1 and toolbar2. now toolbar2 is hidden if no elements are assigned.
-    * changed - Now you can add the viewSource button to toolbar1
-    * added - A new function display_wysiwyg() only for displaying an iframe with content of a textarea (without any editable features)
-    * added - A style-class for the iframe to customize the background-color (useful in firefox, because firefox use the background of the parent element)
-    * added - Preview button + function (thx to Korvo), now it works in Firefox and use the innerHTML of the iframe instead of the texteare value
-    * fixed - Some code improvements for better compatibility with Firefox + IE
-    * changed - The var cssDir changed to cssFile, now it includes the complete file path (ex. styles/wysiwyg.css)
-    * added - new stylesheet classes, check the css file
-    * added - Possibility to enable/disable font + font size selection
-    * fixed - Firefox BackColor problem fixed (thx to Merk), no hilite button needed only solve the problem on firefox
diff --git a/openwysiwyg/docs/addons.html b/openwysiwyg/docs/addons.html
deleted file mode 100644 (file)
index 3b6ab61..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
-       <title>openWYSIWYG</title>
-       <link rel="stylesheet" href="style.css" type="text/css">
-</head>
-<body>
-       <table border="0" cellpadding="2" cellspacing="0" style="width:100%;">
-               <tbody>
-               <tr style="vertical-align: top;">
-                       <td>
-                               <a href="http://www.openwebware.com" target="_blank">
-                                       <img src="images/logo.gif" border="0">
-                               </a>
-                       </td>
-                       <td style="text-align:right;">
-                               <font class="naviblock">
-                                       <a href="doc.html" class="navi" title="Documentation">DOCUMENTATION</a> | <a href="addons.html" class="navi" title="Addons">ADDONS</a> | <a href="../example.html" class="navi" title="Examples">EXAMPLES</a>
-                               </font>
-                       </td>
-               </tr>
-               <tr>
-                       <td colspan="2">
-                               <br>
-                               <table border="0" cellpadding="2" cellspacing="0" style="width:100%;">
-                               <tbody>
-                                       <tr>
-                                               <td class="headline">
-                                                       <h1>Addons</h1>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td class="info">
-                                                       Copyright (c) 2006 openWebWare.com
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td style="">
-                                                       <br>
-                                                       <h2>openImageLibrary addon (PHP)<br></h2>
-                                                       <p> 
-                                                               Here we want to explain how you can use the openImageLibrary addon (for now PHP only) to let your users uploading, browsing and selecting images on your webserver.<br>
-                                                               First you have to download the latest version of the openWYSIWYG modification, which includes the openImageLibrary addon.<br>
-                                                               You will find a directory called <i>addons</i> in the root of the openWYSIWYG directory. If it not there you do not have the latest version of the openWYSIWYG editor.<br><br>
-                                                               To enable the openImageLibrary addon you have to customize the insert image popup implementation of the openWYSIWYG.<br>
-                                                               The following shows how you change the implementation of the insert image popup.
-                                                               <div class="codeblock">
-                                                                       <span class="darkblue">var <span class="red">mysettings</span> = new WYSIWYG.Settings();</span>
-                                                                       <br><br>
-                                                                       <span class="green">// define the location of the openImageLibrary addon</span><br>
-                                                                       <span class="darkblue"><span class="red">mysettings</span>.<b>ImagePopupFile</b> = "addons/imagelibrary/insert_image.php";</span>
-                                                                       <br>
-                                                                       <span class="green">// define the width of the insert image popup</span><br>
-                                                                       <span class="darkblue"><span class="red">mysettings</span>.<b>ImagePopupWidth</b> = 600;</span>
-                                                                       <br>
-                                                                       <span class="green">// define the height of the insert image popup</span><br>
-                                                                       <span class="darkblue"><span class="red">mysettings</span>.<b>ImagePopupHeight</b> = 245;</span>
-                                                                       <br>
-                                                               </div>
-                                                               <br>Attach the editor on the textarea with the previously defined <span class="red"><i>mysettings</i></span> object.
-                                                               <div class="codeblock">
-                                                                       <span class="blue"></span><span class="blue">&#060;script language=</span><span class="green">"javascript1.2"</span><span class="blue">&#062;</span><br>
-                                                                       &nbsp;&nbsp;&nbsp;<span class="darkblue">WYSIWYG.<b>attach</b>('textareaID', <span class="red">mysettings</span><span class="darkblue">);</span><br>
-                                                                       <span class="blue">&#060;/script&#062;</span>
-                                                               </div>
-                                                               <br>
-                                                               Now try it out! 
-                                                               <br>
-                                                       </p>
-                                                       <br><br>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <h2>
-                                                               Customize the openImageLibrary addon
-                                                       </h2>                                                           
-                                                       This section describe how you can customize the openImageLibrary addon.<br><br>
-                                                       
-                                                       <h3>Settings of the openImageLibrary addon:</h3>
-                                                       <br>
-                                                       The following settings can be modified within the config file <i>(addons/imagelibrary/config.inc.php)</i>
-                                                       <br>
-                                                       <table border="0" cellpadding="2" cellspacing="0" class="codeblock" style="width:91%">
-                                                               <colgroup>
-                                                                       <col width="35%">
-                                                                       <col width="65%">
-                                                               </colgroup>
-                                                               <tbody>
-                                                               <tr>    
-                                                                       <td>
-                                                                               <b>$imagebasedir</b> = '../../uploads';
-                                                                       </td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       Path to a directory which holds the images.
-                                                                               </span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>    
-                                                                       <td>
-                                                                               <b>$imagebaseurl</b> = 'uploads';
-                                                                       </td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       An absolute or relative URL to the image folder.
-                                                                                       This url is used to generate the source of the image.
-                                                                               </span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>    
-                                                                       <td>
-                                                                               <b>$browsedirs</b> = true;
-                                                                       </td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       Allow your users to browse the subdir of the defined basedir.
-                                                                               </span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>    
-                                                                       <td>
-                                                                               <b>$allowuploads</b> = true;
-                                                                       </td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       If enabled users will be able to upload files to any viewable directory. 
-                                                                                       You should really only enable this if the area this script is in is already password protected.
-                                                                               </span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>    
-                                                                       <td>
-                                                                               <b>$overwrite</b> = false;
-                                                                       </td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       If a user uploads a file with the same name as an existing 
-                                                                                       file do you want the existing file to be overwritten ?
-                                                                               </span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>    
-                                                                       <td>
-                                                                               <b>$supportedextentions</b> = array(&lt;file extensions&gt;);
-                                                                       </td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       Define the extentions you want to show within the directory listing.<br>
-                                                                                       The extensions also limit the files the user can upload to your image folders. 
-                                                                               </span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>    
-                                                                       <td>
-                                                                               <b>$filetypes</b> = array (&lt;extension&gt; => &lt;filename&gt;)
-                                                                       </td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       If you want to add your own special file icons use this section below. 
-                                                                                       Each entry relates to the extension of the given file, in the form &lt;extension&gt; => &lt;filename&gt;. <br>
-                                                                                       These files must be located within the dlf directory.
-                                                                               </span>
-                                                                       </td>
-                                                               </tr>
-                                                               </tbody>
-                                                       </table>
-                                                       <br>                                    
-                                               </td>
-                                       </tr>   
-                                       </tbody>
-                               </table>
-                       </td>
-               </tr>
-               </tbody>
-       </table>
-</body>
-</html>
diff --git a/openwysiwyg/docs/doc.html b/openwysiwyg/docs/doc.html
deleted file mode 100644 (file)
index 2477538..0000000
+++ /dev/null
@@ -1,536 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
-       <title>openWYSIWYG</title>
-       <link rel="stylesheet" href="style.css" type="text/css">
-</head>
-<body>
-       <table border="0" cellpadding="2" cellspacing="0" style="width:100%;">
-               <tbody>
-               <tr style="vertical-align: top;">
-                       <td>
-                               <a href="http://www.openwebware.com" target="_blank">
-                                       <img src="images/logo.gif" border="0">
-                               </a>
-                       </td>
-                       <td style="text-align:right;">
-                               <font class="naviblock">
-                                       <a href="doc.html" class="navi" title="Documentation">DOCUMENTATION</a> | <a href="addons.html" class="navi" title="Addons">ADDONS</a> | <a href="../example.html" class="navi" title="Examples">EXAMPLES</a>
-                               </font>
-                       </td>
-               </tr>
-               <tr>
-                       <td colspan="2">
-                               <br>
-                               <table border="0" cellpadding="2" cellspacing="0" style="width:100%;">
-                               <tbody>
-                                       <tr>
-                                               <td class="headline">
-                                                       <h1>Documentation</h1>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td class="info">
-                                                       Copyright (c) 2006 openWebWare.com
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td style="">
-                                                       <br>
-                                                       <h2>Setup the openWYSIWYG editor</h2>
-                                                       <p>
-                                                               Include the javascript files like the following:
-                                                               <br>
-                                                               <div class="codeblock">
-                                                                       <span class="blue">&lt;script language=</span><span class="green">"JavaScript"</span> <span class="blue">type=</span><span class="green">"text/javascript"</span> <span class="blue">src=</span><span class="green">"<span class="red">scripts</span>/wysiwyg.js"</span><span class="blue">&gt;&lt;/script&gt;</span>
-                                                                       <br>
-                                                                       <span class="blue">&lt;script language=</span><span class="green">"JavaScript"</span> <span class="blue">type=</span><span class="green">"text/javascript"</span> <span class="blue">src=</span><span class="green">"<span class="red">scripts</span>/wysiwyg-settings.js"</span><span class="blue">&gt;&lt;/script&gt;<span class="green"> // optional</span></span>
-                                                               </div>
-                                                               <br>
-                                                               Note: You might need to change the src path (red), depending on where you put the files.
-                                                       </p>
-                                                       <p>Now you have to attach the openWYSIWYG editor to all or to defined textareas of your page.<br>
-                                                               <div class="codeblock">
-                                                                       <span class="blue"></span><span class="blue">&#060;script language=</span><span class="green">"javascript1.2"</span><span class="blue">&gt;<br>&nbsp;&nbsp; </span><span class="darkblue"><span class="green">// attach the editor to all textareas of your page.</span></span><br>
-                                                                       &nbsp;&nbsp;&nbsp;<span class="darkblue">WYSIWYG.<strong>attach</strong>('all'); <br>&nbsp;&nbsp; <br></span><span class="darkblue">&nbsp;&nbsp; <span class="green">// attach the editor to the textarea with the identifier 'textarea1'.</span></span><br><span class="darkblue">&nbsp;&nbsp; WYSIWYG.<strong>attach</strong>('textarea1');<br></span><span class="darkblue"></span>
-                                                                       <span class="blue">&#060;/script&#062;</span>
-                                                               </div>
-                                                               <br>
-                                                               Now try it out! 
-                                                               <br><br>
-                                                               If you don't see any images on the toolbar then you have to change the image path.<br>
-                                                               Have a look at the customize section.
-                                                               <br><br>
-                                                               If you need to display contents of textarea's with HTML output support, but without the editing possibilities, you can use a function called display.
-                                                               <div class="codeblock">
-                                                                       <span class="blue"></span><span class="blue">&#060;script language=</span><span class="green">"javascript1.2"</span><span class="blue">&gt;<br>&nbsp;&nbsp; </span><span class="darkblue"><span class="green">// display iframes instead of textareas. It apply's to all textareas of your page.</span></span><br>
-                                                                       &nbsp;&nbsp;&nbsp;<span class="darkblue">WYSIWYG.<strong>display</strong>('all'); <br>&nbsp;&nbsp; <br></span><span class="darkblue">&nbsp;&nbsp; <span class="green">// display an iframe instead of the textarea with the identifier 'textarea1'</span></span><br><span class="darkblue">&nbsp;&nbsp; WYSIWYG.<strong>display</strong>('textarea1');<br></span><span class="darkblue"></span>
-                                                                       <span class="blue">&#060;/script&#062;</span>
-                                                               </div>
-                                                       </p>
-                                                       <br><br>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <h2>
-                                                               Customize the openWYSIWYG
-                                                       </h2>                                                           
-                                                       This section describe how you can customize the openWYSIWYG editor.<br><br>
-                                                       <h3>The Settings object:</h3><br>
-                                                       You can create a new instance of the settings object. 
-                                                       This object will be used to customize your editor.
-                                                       <div class="codeblock">
-                                                               <span class="darkblue">var <span class="red">mysettings</span> = new WYSIWYG.Settings();</span>
-                                                       </div>
-                                                       <br>Now attach the editor to all or to defined textareas of your page.<br> 
-                                                       <div class="codeblock">
-                                                       <span class="darkblue">WYSIWYG.<b>attach</b>(</span><span class="green">'all'</span><span class="darkblue">, <span class="red">mysettings</span><span class="darkblue">);</span><br>
-                                                       </div>
-                                                       <br><br>
-                                                       <h3>Properties of the Settings object:</h3>
-                                                       <br>
-                                                       Here is a list of all properties you can change to customize the look and feel of your editor.
-                                                       <br>
-                                                       <table border="0" cellpadding="2" cellspacing="0" class="codeblock" style="width:91%">
-                                                               <colgroup>
-                                                                       <col width="35%">
-                                                                       <col width="65%">
-                                                               </colgroup>
-                                                               <tbody>
-                                                               <tr>    
-                                                                       <td><span class="red">mysettings</span>.<b>ImagesDir</b> = "&lt;path&gt;";</td>
-                                                                       <td><span class="green">The path where your images are located (default: 'images/')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>PopupsDir</b> = "&lt;path&gt;"; </td>
-                                                                       <td><span class="green">The path where your popup htmls are located (default: 'popups/')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>CSSFile</b> = "&lt;path&gt;"; </td>
-                                                                       <td><span class="green">The path + file where your stylesheet file is located (default: 'styles/wysiwyg.css')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>Width</b> = "&lt;width&gt;"; </td>
-                                                                       <td><span class="green">The width of the editor window (valid units are px and %) (default: '500px')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>Height</b> = "&lt;height&gt;"; </td>
-                                                                       <td><span class="green">The height of the editor window (valid units are px and %) (default: '200px')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>DefaultStyle</b> = "&lt;stylesheet&gt;"; </td>
-                                                                       <td><span class="green">The default stylesheet of the editor window <br>(default: 'font-family: Arial; font-size: 12px; background-color: #FFFFFF')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>DisabledStyle</b> = "&lt;stylesheet&gt;"; </td>
-                                                                       <td><span class="green">The style which appears if the editor is disabled<br> (default: 'font-family: Arial; font-size: 12px; background-color: #EEEEEE')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>ReplaceLineBreaks</b> = &lt;true/false&gt;; </td>
-                                                                       <td><span class="green">Replace line breaks (\n) with html line breaks &lt;br&gt; (used for none html content) (default: false)</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>PreviewWidth</b> = &lt;width&gt;; </td>
-                                                                       <td><span class="green">The width of the preview popup (default: 500)</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>PreviewHeight</b> = &lt;height&gt;; </td>
-                                                                       <td><span class="green">The height of the preview popup (default: 400)</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>RemoveFormatConfMessage</b> = "&lt;text&gt;"; </td>
-                                                                       <td><span class="green">Text which appears if the MS word clean up button is pressed (default: 'Clean HTML inserted by MS Word ?')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>NoValidBrowserMessage</b> = "&lt;text&gt;"; </td>
-                                                                       <td><span class="green">Text which appears if the browser is not supported by openWYSIWYG (default: 'openWYSIWYG does not support your browser.')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>AnchorPathToStrip</b> = "&lt;url&gt;"; </td>
-                                                                       <td><span class="green">The url which is striped off on anchors (only IE, recommended: auto) (default: 'auto')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>ImagePathToStrip</b> = "&lt;url&gt;"; </td>
-                                                                       <td><span class="green">The url which is striped off on images (only IE, recommended: auto) (default: 'auto')</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>ContextMenu</b> = &lt;true/false&gt;;</td>
-                                                                       <td><span class="green">Enable / disable the custom context menu (default: true)</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>StatusBarEnabled</b> = &lt;true/false&gt;;</td>
-                                                                       <td><span class="green">Enable / disable the status bar (default: true)</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>InvertIELineBreaks</b> = &lt;true/false&gt;;</td>
-                                                                       <td><span class="green">Enable / disable invert of line break capability in IE (default: false)</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>InsertImagePopup</b> = &lt;path/file&gt;;</td>
-                                                                       <td><span class="green">If you use another implementation like an image library written in PHP, then you can use this setting to customize the location of the implementation file. No need to edit the main javascript file.<br>(It's used for future upcoming image library addons)</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>InsertImageWith</b> = &lt;width&gt;;</td>
-                                                                       <td><span class="green">Width of the image popup window. (Default: 400)</span></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <td><span class="red">mysettings</span>.<b>InsertImageWith</b> = &lt;height&gt;;</td>
-                                                                       <td><span class="green">Height of the image popup window. (Default: 210)</span></td>
-                                                               </tr>
-                                                               </tbody>
-                                                       </table>
-                                                       <br>
-                                                       <h3>Methods of the Settings object:</h3>
-                                                       <br>
-                                                       There are three methods to customize the toolbar elements. (Recommended if you newly to javascript)
-                                                       <br>    
-                                                       <table border="0" cellpadding="2" cellspacing="0" class="codeblock" style="width:91%">
-                                                               <colgroup>
-                                                                       <col width="50%">
-                                                                       <col width="50%">
-                                                               </colgroup>
-                                                               <tbody>
-                                                               <tr>    
-                                                                       <td><span class="red">mysettings</span>.<b>addToolbarElement</b>("&lt;element&gt;", &lt;toolbar&gt;, &lt;position&gt;);</td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       Add the given &lt;element&gt; to the defined &lt;toolbar&gt; on the defined &lt;position&gt;.<br><br>
-                                                                                       Valid elements are:<br>
-                                                                                       <i>font, fontsize,      bold, italic, underline, forecolor, backcolor, justifyleft, justifycenter, justifyright, 
-                                                                                       unorderedlist, orderedlist, outdent, indent, subscript, superscript, cut, copy, paste, removeformat,
-                                                                                       undo, redo, inserttable, insertimage, createlink, seperator, undo, redo, seperator, preview, print, 
-                                                                                       viewSource, help</i>
-                                                                                       <br><br>
-                                                                                       The element <i>seperator</i> adds a line seperator between elements
-                                                                                       <br><br>
-                                                                                       &lt;toolbar&gt; is an integer starts with 1.
-                                                                                       <br>
-                                                                                       &lt;position&gt; is an integer starts with 1.
-                                                                                       <br><br>
-                                                                                       Example:
-                                                                               </span>
-                                                                               <span color="darkblue"> mysettings.addToolbarElement("bold", 1, 1);</span>
-                                                                               <br><br>
-                                                                       </td>
-                                                               </tr>           
-                                                               <tr>    
-                                                                       <td><span class="red">mysettings</span>.<b>removeToolbarElement</b>("&lt;element&gt;");</td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       Removes the given &lt;element&gt; on the toolbar.<br><br>
-                                                                                       Valid elements are:<br>
-                                                                                       <i>font, fontsize,      bold, italic, underline, forecolor, backcolor, justifyleft, justifycenter, justifyright, 
-                                                                                       unorderedlist, orderedlist, outdent, indent, subscript, superscript, cut, copy, paste, removeformat,
-                                                                                       undo, redo, inserttable, insertimage, createlink, seperator, undo, redo, seperator, preview, print, 
-                                                                                       viewSource, help</i>
-                                                                                       <br><br>
-                                                                                       You can not remove the element <i>seperator</i> only overriding with the function addToolbarElement()
-                                                                                       <br><br>
-                                                                                       Example:
-                                                                               </span>
-                                                                               <span color="darkblue"> mysettings.removeToolbarElement("bold");</span>
-                                                                               <br><br>
-                                                                       </td>
-                                                               </tr>           
-                                                               <tr>    
-                                                                       <td><span class="red">mysettings</span>.<b>clearToolbar</b>(&lt;toolbar&gt;);</td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       Clears the given &lt;toolbar&gt;. If the element &lt;toolbar&gt; is not defined then the functions clear all existing toolbars.<br><br>
-                                                                                       <br><br>
-                                                                                       &lt;toolbar&gt; is an integer starts with 1.
-                                                                                       <br><br>
-                                                                                       Example:
-                                                                               </span>
-                                                                               <span color="darkblue"> mysettings.clearToolbar(1);</span>
-                                                                       </td>
-                                                               </tr>           
-                                                               </tbody>
-                                                       </table>
-                                                       <br><br>
-                                                       <br>
-                                                       <h3>Array of the Settings object:</h3>
-                                                       <br>
-                                                       There are some arrays within the Settings object you can define directly. So let`s show how does it works.
-                                                       <br>
-                                                       <br>    
-                                                       <table border="0" cellpadding="2" cellspacing="0" class="codeblock" style="width:91%">
-                                                               <colgroup>
-                                                                       <col width="50%">
-                                                                       <col width="50%">
-                                                               </colgroup>
-                                                               <tbody>
-                                                               <tr>    
-                                                                       <td><span class="red">mysettings</span>.<b>Toolbar</b>[&lt;toolbar index&gt;][&lt;element index&gt;] = "&lt;element&gt;";</td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       The toolbar array is defined in two dimensions, the first dimension is the toolbar index,
-                                                                                       the second the element index. If you want to define an element in toolbar 2 on position 3 
-                                                                                       then you have to do this: 
-                                                                               </span> 
-                                                                               <span class="darkblue">
-                                                                                       mysettings.Toolbar[1][2] = "bold";
-                                                                               </span>
-                                                                               <br><br>
-                                                                               <span class="green">
-                                                                                       Valid elements can be found on addToolbarElement().
-                                                                               </span>
-                                                                               <br><br>
-                                                                       </td>
-                                                               </tr>   
-                                                               <tr>    
-                                                                       <td><span class="red">mysettings</span>.<b>Fonts</b>[&lt;element index&gt;] = "&lt;element&gt;";</td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       You have the posibility to change the font families by setting the Fonts array 
-                                                                                       of the Settings object. If you want to add Arial on the second position then you have to do this:
-                                                                               </span> 
-                                                                               <span class="darkblue">
-                                                                                       mysettings.Fonts[1] = "Arial";
-                                                                               </span>
-                                                                               <br><br>
-                                                                               <span class=green>
-                                                                                       Valid elements are:<br>
-                                                                                       All font family elements (look at a stylesheet description of the tag font-family)
-                                                                               </span>
-                                                                               <br><br>
-                                                                       </td>
-                                                               </tr>   
-                                                               <tr>    
-                                                                       <td><span class="red">mysettings</span>.<b>Fontsizes</b>[&lt;element index&gt;] = "&lt;size&gt;";</td>
-                                                                       <td>
-                                                                               <span class="green">
-                                                                                       You can also change the font size which you can use on the editor.
-                                                                                       If you want to add the font size 5 on the first position of drop down box,
-                                                                                       then you have to do this:
-                                                                               </span> 
-                                                                               <span class="darkblue">
-                                                                                       mysettings.Fontsizes[0] = "5";
-                                                                               </span>
-                                                                               <br><br>
-                                                                               <span class=green>
-                                                                                       Valid sizes are:<br>
-                                                                                       1 - ... (i dont know if the size attribute is limit)
-                                                                                       
-                                                                               </span>
-                                                                       </td>
-                                                               </tr>   
-                                                               </tbody>
-                                                       </table>        
-                                                       
-                                                       <br><br><br><br>        
-                                               </td>
-                                       </tr>   
-                                       <tr>
-                                               <td>
-                                                       <h2>
-                                                               Change Log
-                                                       </h2>                                                           
-                                                               <p>
-                                                               <b>v1.4.7 (Released: September 9, 2007)</b><br> 
-                                                               Addresses the following: <br></p>
-                                                               <ul>
-                                                               <li>added - Possibilty to maximize the editor window</li>
-                                                               <li>fixed - Correct relative image path on preview, now it works for all images</li>
-                                                               <li>added - Table highlighting possibility</li>
-                                                               <li>added - Possiblity to assign headings (crashed)</li>
-                                                               <li>changed - Code improvments to tons of functions</li>
-                                                               <li>changed - WYSIWYG.formatText() function renamed to WYSIWYG.execCommand()</li>
-                                                               <li>changed - WYSIWYG.findParentTag() renamed to WYSIWYG.findParent()</li>
-                                                               <li>added - WYSIWYG_Core.findParentNode(tagName, node) function which finds a parent node by tag name starts on the given node</li>
-                                                               <li>fixed - Implement function WYSIWYG_Core.getAttribute which solve the problem while getting the style attribute on IE</li>
-                                                               <li>changed - Getting style attribute while editing a link</li>
-                                                               <li>added - WYSIWYG_Table object, which is used for improving table editing</li>
-                                                               <li>changed - New icons print and preview (thx sweb)</li>
-                                                               <li>added - Save and return button on toolbar, the return button is disabled by default. (thx sweb)</li>
-                                                               <li>added - Table function improvments</li>
-                                                               <li>added - New WYSIWYG_Color object, which handels the color choosing</li>
-                                                               <li>added - Full justify text (code by tim)</li>
-                                                               </ul>
-                                                               <p>
-                                                               <b>v1.4.6c (Released: December 25, 2006)</b><br> 
-                                                               Addresses the following: <br></p>
-                                                               <ul>
-                                                               <li>fixed - Solved issue with backcolor command on IE</li>
-                                                               <li>changed - Add parameter value to WYSIWYG_Core.execCommand() function</li>
-                                                               </ul>
-                                                               <b>v1.4.6b (Released: December 23, 2006)</b><br> 
-                                                               Addresses the following: <br></p>
-                                                               <ul>
-                                                               <li>changed - Debug code on context menu removed</li>
-                                                               <li>fixed - Add "px" to left and top style information on context menu</li>
-                                                               <li>changed - Correct comment of wyswiwyg-settings.js</li>
-                                                               </ul>
-                                                               <b>v1.4.6a (Released: December 21, 2006)</b><br> 
-                                                               Addresses the following: <br></p>
-                                                               <ul>
-                                                               <li>fixed - bad class name on mouse over of toolbar buttons fixed</li>
-                                                               <li>changed - Rewritten function to get the current position of an element (iframe)</li>
-                                                               <li>fixed - Context menu position issue solved</li>
-                                                               <li>fixed - Wrong variable call fixed</li>
-                                                               <li>fixed - Problem while removing elements with the context menu solved</li>
-                                                               </ul>
-                                                               <b>v1.4.6 (Released: December 17, 2006)</b><br> 
-                                                               Addresses the following: <br></p>
-                                                               <ul>
-                                                               <li>changed - Modification changed to be the official version of openWYSIWYG</li>
-                                                               <li>fixed - Child nodes will be copied to the parent if a node is removed</li>
-                                                               <li>changed - Complete rewritten context menu</li>
-                                                               <li>changed - Behaviours of the context menu dependents on selection</li>
-                                                               <li>added - Copy/Cut/Paste to context menu</li>
-                                                               <li>changed - Code structure changes</li>
-                                                               <li>added - wysiwyg-popup.js which holds popup specific functions</li>
-                                                               <li>added - new object WYSIWYG_Core added, which holds all core functions</li>
-                                                               <li>added - addEvent() and removeEvent() core function added</li>
-                                                               <li>added - attach() and attachAll() functions which used to attach the editor to textareas</li>
-                                                               <li>changed - Complete rewritten insertLink function, now it works with tags like img, h1 etc</li>
-                                                               <li>added - Override width and height of the editor with size given by the style attributes width and height of the textarea</li>
-                                                               <li>added - New function includeCSS() in Core object, which includes a given stylesheet file on the head tag of the current page</li>
-                                                               <li>fixed - Solved problem if you want to attach the editor to all textareas</li>
-                                                               <li>changed - Include of stylesheet files changed, now using the includeCSS function</li>
-                                                               <li>changed - Complete rewritten display function, now you can use it like like function attach()</li>
-                                                               </ul>
-                                                               <b>Modification v0.4.5 (Released: November 12, 2006)</b><br> 
-                                                               Addresses the following: 
-                                                               </p><ul>
-                                                               <li>added - openImageLibrary addon (for now PHP only)</li>
-                                                               <li>fixed - correct relative anchor and image path on preview</li>
-                                                               <li>changed - various javascript code changes</li>
-                                                               </ul>
-                                                               <b>Modification v0.4.4 (Released: November 11, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>added - capability of using image library addons</li>
-                                                               <li>fixed - corrupt font + font size selection html</li>
-                                                               </ul>
-                                                               <b>Modification v0.4.3 (Released: October 20, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>added - Possibility to invert the line break print outs of IE (ENTER = &lt;br&gt;, SHIFT + ENTER = &lt;p&gt;)</li>
-                                                               <li>fixed - Replace of &lt;p&gt; with &lt;br&gt; on carriage return prevented the IE to set ordered and unordered lists.</li>
-                                                               <li>added - Settings object to customize the Editor</li>
-                                                               <li>fixed - Solve javascript error on example.html</li>
-                                                               <li>fixed - Change html layout of the editor to solve the minimum width problem on dynamic editor size.</li>
-                                                               <li>added - Enable/disable possibilty of the context menu</li>
-                                                               <li>added - A general remove function, so it is possible to remove each html element</li>
-                                                               <li>added - Adding an option 'Remove Node' to the context menu</li>
-                                                               <li>added - Adding the possibilty to add the font + font size selection to toolbar2 or placing them where ever you want on the toolbars</li>
-                                                               <li>changed - Removing the vars EnableFontSelection and EnableFontSizeSelection because font + font size selection goes to ToolBar Array like all other buttons.</li>
-                                                               <li>changed - Removing vars EditorMinimumWidth and EditorMinimumHeight after solving the minimum width problem on IE. No more use.</li>
-                                                               <li>added - New Function addToolbarElement() and removeToolbarElement within the settings object</li>
-                                                               <li>added - Possibility to select a html node using the status bar node structure </li>
-                                                               <li>changed - Complete redesign of the toolbar implementation</li>
-                                                               <li>changed - Remove function removeImage() and removeLink(), because function removeNode() do it for all</li>
-                                                               <li>added - Two new functions getEditorOffsetY() and getEditorOffsetX() to get the offsets of the editor window to the body if the the page</li>
-                                                               <li>fixed - broken image path on toolbar button text view</li>
-                                                               <li>added - New function enable(), now you can enable/display the editor on the fly</li>
-                                                               </ul>
-                                                               <b>Modification v0.4.2 (Released: October 16, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>added - Converting decimal colors to hex colors within style attributes</li>
-                                                               <li>changed - Rename getParentTag() to findParentTag(), the function finds a tag by a given tag name</li>
-                                                               <li>changed - Improving function findParentTag(), now it finds IMG tags and do not return #tags but the parent tag</li>
-                                                               <li>added - Reimplementing function getTag(). The function gets the current selected tag</li>
-                                                               <li>added - New Function getParent(). Returns the parent node of the given element</li>
-                                                               <li>added - New Function getNodeTree(). The function returns a tree of nodes as array, beginning with the current selected element (node) and ending with the HTML node (element).</li>
-                                                               <li>added - New status bar implemented. It's shown the element structure, beginning with the current selected element and ending with the HTML element.</li>
-                                                               <li>added - New Function updateStatusBar(). Updates the status bar with the element structure.</li>
-                                                               <li>changed - Possibility of setting dynamic width and height of the editor</li>
-                                                               <li>fixed - Solving bug while setting style attribute on links</li>
-                                                               </ul>
-                                                               <p><b>Modification v0.4.1 (Released: October 14, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>added - Custom context menu for images and links</li>
-                                                               <li>added - Remove option for images and links on the context menu</li>
-                                                               <li>added - New functions removeLink() and removeImages()
-                                                               <li>added - New function $() implemented, its a replacement for document.getElementById()</li>
-                                                               <li>changed - Some small other code changes</li>
-                                                               </ul>
-                                                               <p><b>Modification v0.4 (Released: October 12, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>fixed - Dublicated id attribute in color chooser popup</li>
-                                                               <li>fixed - Preventing IE to insert &lt;p&gt; tags on carriage return. IE will insert a normal &lt;br&gt; instead. (Thx to richyrich)</li>
-                                                               <li>fixed - Crappy layout of hyperlink popup on IE (fields: class and name)</li>
-                                                               <li>fixed - With multiple editors on one form, the global var viewTextMode is not unique for each editor. Used an Array instead to set the var for each editor individually</li>
-                                                               <li>fixed - Submitting the editor while in text mode then it will submit escaped html (&lt;br&gt; -> submit -> &amp;lt;br&amp;gt;). Auto switch to HTML Mode if submit</li>
-                                                               <li>fixed - Validate objects on hideFonts() and hideFontSizes() function</li>
-                                                               <li>changed - Improvements on closing font + font size selection. Add a unique event listener for each selection.</li>
-                                                               </ul>
-                                                               <p><b>Modification v0.3.2a (Released: October 11, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>added - Improvements on font and font size selection, now the drop downs will be closed if you go through the editor.</li>
-                                                               <li>fixed - Opera bug in insertNodeAtSelection() function solved. That's why the table popup won`t close if you submit it.</li>
-                                                               <li>fixed - CSS file problem in table popup. There was a hard coded path to the CSS file. I changed it so the path to the CSS file will be dynamically inserted.</li>
-                                                               <li>added - Improvements to the color selection menus on table popup, now the button "pick" has a toggle function (open/close the color selections).</li>
-                                                               </ul>
-                                                               <p><b>Modification v0.3.2a (Released: October 11, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>fixed - Font and font size selection fixed. I improved the closing a little bit, so if you choose font and then click an font size the font menue will be closed before.</li>
-                                                               <li>added - Added a select field to the hyperlink popup which holds the default targets _blank, _self, _parent, _top. On change the select field updates the 'target' text field.</li>
-                                                               </ul>
-                                                               <p><b>Modification v0.3.1 (Released: October 10, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>fixed - Solve the habit of IE to convert relative urls into absolute. 
-                                                               Now you can set two vars AnchorPathToStrip and ImagePathToStrip 
-                                                               which holds an url that will be stripped off the href and src attributes. 
-                                                               If you set the vars to "auto" then the url will automatically get of the current document. I recommend that you use the "auto" methode. </li>
-                                                               </ul>
-                                                               <p><b>Modification v0.3 (Released: October 9, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>added - Default style now also applies to the preview window</li>
-                                                               <li>added - Print button + function</li>
-                                                               <li>fixed - A little mistake within the function setAttribute, attr.toLowerCase -&gt; attr.toLowerCase() it prevented the script to apply the styles in IE correctly</li>
-                                                               <li>fixed - Problem while replacing \n with &lt;br&gt; after submitting data in IE solved.</li>
-                                                               <li>fixed - Complete rewritten function insertLink + insertImage. Improving edit capabiltity on both links and images. </li>
-                                                               </ul>
-                                                               <p><b>Modification v0.2 (Released: October 8, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>added - New function insertLink(), now you can insert and edit links. 
-                                                               New available attributes are target, styleclass, name and style. 
-                                                               (IE has some limitations, getting style attribute doesn`t work, hope i can solve this problem)</li>
-                                                               <li>fixed - Stripping MS Word HTML (removed some bugs within the regex)</li>
-                                                               <li>changed - Complete rewritten source code, now all functions + var are within a var WYSIWYG. (ex. WYSIWYG.generate('textarea1', 500, 200); )</li>
-                                                               <li>fixed - Replace &lt;div&gt; with &lt;span&gt; while insert html on none IE Browsers, this solve the new line problem after the &lt;div&gt; tag.</li>
-                                                               <li>added - New function insertImage(), now you can insert and editing images</li>
-                                                               <li>added - Validation of browser versions (thx to TIM) </li>
-                                                               </ul>
-                                                       
-                                                               <p><b>Modification v0.1 (Released: October 6, 2006)</b><br />
-                                                               Addresses the following:
-                                                               <ul>
-                                                               <li>added - Possibility to replace \n with &lt;br&gt; to be compatible with previous content coming from a database, for example.</li>
-                                                               <li>added - Button to strip any HTML added by word</li>
-                                                               <li>changed - Modified generate_wysiwyg() method (added width and height to customize size of each editor, width and height are optional parameter)</li>
-                                                               <li>added - Possibility to set the default font family, font size and font color of the editor area</li>
-                                                               <li>added - New function disable_wysiwyg() to disable a editor area</li>
-                                                               <li>changed - Some changes were made to toolbar1 and toolbar2. now toolbar2 is hidden if no elements are assigned.</li>
-                                                               <li>changed - Now you can add the viewSource button to toolbar1</li>
-                                                               <li>added - A new function display_wysiwyg() only for displaying an iframe with content of a textarea (without any editable features)</li>
-                                                               <li>added - A style-class for the iframe to customize the background-color (useful in firefox, because firefox use the background of the parent element)</li>
-                                                               <li>added - Preview button + function (thx to Korvo), now it works in Firefox and use the innerHTML of the iframe instead of the texteare value</li>
-                                                               <li>fixed - Some code improvements for better compatibility with Firefox + IE</li>
-                                                               <li>changed - The var cssDir changed to cssFile, now it includes the complete file path (ex. styles/wysiwyg.css)</li>
-                                                               <li>added - new stylesheet classes, check the css file</li>
-                                                               <li>added - Possibility to enable/disable font + font size selection</li>
-                                                               <li>fixed - Firefox BackColor problem fixed (thx to Merk), no hilite button needed only solve the problem on firefox </li>
-                                                               </ul>
-                                                               </p>
-                                                       </td>
-                                               </tr>   
-                                       </tbody>
-                               </table>
-                       </td>
-               </tr>
-               </tbody>
-       </table>
-</body>
-</html>
diff --git a/openwysiwyg/docs/images/logo.gif b/openwysiwyg/docs/images/logo.gif
deleted file mode 100644 (file)
index 17daf94..0000000
Binary files a/openwysiwyg/docs/images/logo.gif and /dev/null differ
diff --git a/openwysiwyg/docs/style.css b/openwysiwyg/docs/style.css
deleted file mode 100644 (file)
index d9c6774..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-body {
-       font-family: Arial;
-       color: #000000;
-       font-weight: normal;
-       font-size: 13px;        
-       background-color: #EEEEEE;
-}
-
-td {
-       font-family: Arial;
-       color: #000000;
-       font-weight: normal;
-       font-size: 13px;                
-}
-
-h1 {
-       font-family: Tahoma;
-       color: #444444;
-       font-weight: bold;
-       font-size: 16px;        
-       margin: 0px;
-}
-
-h2 {
-       font-family: Tahoma;
-       color: #444444;
-       font-weight: bold;
-       font-size: 14px;        
-       margin: 0px;
-       text-decoration: underline;     
-}
-
-h3 {
-       font-family: Tahoma;
-       color: #444444;
-       font-weight: bold;
-       font-size: 12px;        
-       margin: 0px;
-       text-decoration: underline;     
-}
-
-.headline {
-       border-bottom: 1px solid #FF3300;
-       font-weight: bold;
-}
-
-.naviblock {
-       width:280px;
-       text-align:center;
-       border: 1px solid #AAAAAA;
-       padding:5px; 
-       background-color:#FFFFFF;       
-}
-
-a.navi {
-       font-family: Tahoma;
-       color: #444444;
-       font-weight: bold;
-       font-size: 13px;
-       text-decoration: none;          
-}
-
-a.navi:hover {
-       text-decoration: underline;     
-}
-
-a {
-       color: #333333; 
-}
-
-.codeblock {
-       background-color: #FFFFEE; 
-       font-family: courier new; 
-       font-size: 12px; 
-       padding: 5px; 
-       width: 90%; 
-       border: 1px solid #AAAAAA; 
-       margin-left: 10px;
-       margin-top: 5px;
-}
-
- .codeblock td {
-       font-family: courier new; 
-       font-size: 12px; 
-       vertical-align: top;
-       color: #000088;
- }
-
-.list {
-       line-height: 20px;      
-}
-
-.red {
-       color: #FF3300; 
-}
-
-.blue {
-       color: #0000FF; 
-}
-
-.green {
-       color: #008080;
-}
-
-.darkblue {
-       color: #000088;
-}
-
-.info {
-       color: #EE0000;
-       font-size:10px;
-}
\ No newline at end of file
diff --git a/openwysiwyg/example.html b/openwysiwyg/example.html
deleted file mode 100644 (file)
index 68373cd..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-       <head>
-               <title>openWYSIWYG</title>
-               <link rel="stylesheet" href="docs/style.css" type="text/css">
-               
-               <!-- 
-                       Include the WYSIWYG javascript files
-               -->
-               <script type="text/javascript" src="scripts/wysiwyg.js"></script>
-               <script type="text/javascript" src="scripts/wysiwyg-settings.js"></script>
-               <!-- 
-                       Attach the editor on the textareas
-               -->
-               <script type="text/javascript">
-                       // Use it to attach the editor to all textareas with full featured setup
-                       //WYSIWYG.attach('all', full);
-                       
-                       // Use it to attach the editor directly to a defined textarea
-                       WYSIWYG.attach('textarea1'); // default setup
-                       WYSIWYG.attach('textarea2', full); // full featured setup
-                       WYSIWYG.attach('textarea3', small); // small setup
-                       
-                       // Use it to display an iframes instead of a textareas
-                       //WYSIWYG.display('all', full);  
-               </script>
-               
-       </head>
-       <body>
-       <table border="0" cellpadding="2" cellspacing="0" style="width:100%;">
-               <tbody>
-                       <tr style="vertical-align: top;">
-                               <td>
-                                       <a href="http://www.openwebware.com" target="_blank">
-                                               <img src="docs/images/logo.gif" border="0">
-                                       </a>
-                               </td>
-                               <td style="text-align: right;">
-                                       <font class="naviblock">
-                                               <a href="docs/doc.html" class="navi" title="Documentation">DOCUMENTATION</a> | <a href="docs/addons.html" class="navi" title="Addons">ADDONS</a> | <a href="example.html" class="navi" title="Examples">EXAMPLES</a>
-                                       </font>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td colspan="2">
-                                       <br>
-                                       <table border="0" cellpadding="2" cellspacing="0" style="width:100%;">
-                                       <tbody>
-                                               <tr>
-                                                       <td class="headline">
-                                                               <h1>Examples</h1>
-                                                       </td>
-                                               </tr>
-                                               <tr>
-                                                       <td class="info">
-                                                       Copyright (c) 2006 openWebWare.com
-                                                       </td>
-                                               </tr>
-                                               <tr>
-                                                       <td>
-                                                               <br>
-                                                               <form name="exampleForm" action="example.html" method="post">
-<!-- 
-       Default settings
- -->                                                           
-<h2>
-       Default setup applied to this editor: 
-</h2>
-<br>
-<textarea id="textarea1" name="test1" style="width:560px;height:200px;">
- <table border="0" cellpadding="0" cellspacing="0" style="margin-left: 10px;">
- <tr>
-  <td style="padding: 0 10 10 0;">
-  <a href="http://www.openwebware.com/products/openwysiwyg/">
-       <img    src="http://www.openwebware.com/images/openwysiwyg/logo9060.gif" border="0" height="60" width="90" alt="openWYSIWYG - Cross-browser WYSIWYG editor">
-  </a>
-  </td>
-  <td style="font-family: verdana; font-size: 11px; line-height: 130%; color: #494949;" valign="top">  
-  <b>
-       <a href="http://www.openwebware.com/products/openwysiwyg/" style="font-family: arial; font-size: 12px; color: #055F92;">openWYSIWYG - Cross-browser WYSIWYG editor</a>
-   </b>
-       <br />     
-       </td>
- </tr>
-</table>
-</textarea>
-<br />
-<br />
-
-<!-- 
-       Three toolbars and dynamicly width applied to this editor
- -->
-<h2>
-Customized toolbar and openImageLibrary addon applied to this editor:
-</h2>
-<br>
-<textarea id="textarea2" name="test2" style="width:80%;height:200px;">
-<h1>GNU Lesser General Public License</h1>
-<tt>
-<p>Version 2.1, February 1999</p>
-
-<blockquote>
-<p>Copyright (C) 1991, 1999 Free Software Foundation, Inc.
-59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.</p>
-
-<p>[This is the first released version of the Lesser GPL.  It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]</p>
-</blockquote>
-
-<h3>Preamble</h3>
-<p>The licenses for most software are designed to take away your freedom to share and change it.</p></tt>
-</textarea>
-
-<br />
-<br />
-
-<!-- 
-       A really small setup applied to this editor
--->
-<h2> 
-       A really small setup applied to this editor: 
-</h2>
-<br>
-<textarea id="textarea3" name="test3">
-A small editor...can come in handy when you just need font size, bold, italic, etc.
-</textarea>
-
-</form>
-                                                       </td>
-                                               </tr>   
-                                       </tbody>
-                               </table>
-                       </td>
-               </tr>
-               </tbody>
-       </table>
-</body>
-</html>
diff --git a/openwysiwyg/images/backcolor.gif b/openwysiwyg/images/backcolor.gif
deleted file mode 100644 (file)
index fa177ee..0000000
Binary files a/openwysiwyg/images/backcolor.gif and /dev/null differ
diff --git a/openwysiwyg/images/backcolor_on.gif b/openwysiwyg/images/backcolor_on.gif
deleted file mode 100644 (file)
index 5ea8d37..0000000
Binary files a/openwysiwyg/images/backcolor_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/background_silver.jpg b/openwysiwyg/images/background_silver.jpg
deleted file mode 100644 (file)
index efd475b..0000000
Binary files a/openwysiwyg/images/background_silver.jpg and /dev/null differ
diff --git a/openwysiwyg/images/bold.gif b/openwysiwyg/images/bold.gif
deleted file mode 100644 (file)
index 4ec8e72..0000000
Binary files a/openwysiwyg/images/bold.gif and /dev/null differ
diff --git a/openwysiwyg/images/bold_on.gif b/openwysiwyg/images/bold_on.gif
deleted file mode 100644 (file)
index 09e7562..0000000
Binary files a/openwysiwyg/images/bold_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/copy.gif b/openwysiwyg/images/copy.gif
deleted file mode 100644 (file)
index 3339c3f..0000000
Binary files a/openwysiwyg/images/copy.gif and /dev/null differ
diff --git a/openwysiwyg/images/copy_on.gif b/openwysiwyg/images/copy_on.gif
deleted file mode 100644 (file)
index 296ffdf..0000000
Binary files a/openwysiwyg/images/copy_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/cut.gif b/openwysiwyg/images/cut.gif
deleted file mode 100644 (file)
index 2c4fd16..0000000
Binary files a/openwysiwyg/images/cut.gif and /dev/null differ
diff --git a/openwysiwyg/images/cut_on.gif b/openwysiwyg/images/cut_on.gif
deleted file mode 100644 (file)
index 6e9d70f..0000000
Binary files a/openwysiwyg/images/cut_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/delete.gif b/openwysiwyg/images/delete.gif
deleted file mode 100644 (file)
index a1390ce..0000000
Binary files a/openwysiwyg/images/delete.gif and /dev/null differ
diff --git a/openwysiwyg/images/delete_on.gif b/openwysiwyg/images/delete_on.gif
deleted file mode 100644 (file)
index ca2947e..0000000
Binary files a/openwysiwyg/images/delete_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/forecolor.gif b/openwysiwyg/images/forecolor.gif
deleted file mode 100644 (file)
index 053ab65..0000000
Binary files a/openwysiwyg/images/forecolor.gif and /dev/null differ
diff --git a/openwysiwyg/images/forecolor_on.gif b/openwysiwyg/images/forecolor_on.gif
deleted file mode 100644 (file)
index 61e0fb1..0000000
Binary files a/openwysiwyg/images/forecolor_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/help.gif b/openwysiwyg/images/help.gif
deleted file mode 100644 (file)
index c709559..0000000
Binary files a/openwysiwyg/images/help.gif and /dev/null differ
diff --git a/openwysiwyg/images/help_on.gif b/openwysiwyg/images/help_on.gif
deleted file mode 100644 (file)
index 491aac9..0000000
Binary files a/openwysiwyg/images/help_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/indent_left.gif b/openwysiwyg/images/indent_left.gif
deleted file mode 100644 (file)
index 9ff7c2f..0000000
Binary files a/openwysiwyg/images/indent_left.gif and /dev/null differ
diff --git a/openwysiwyg/images/indent_left_on.gif b/openwysiwyg/images/indent_left_on.gif
deleted file mode 100644 (file)
index 18e7ea0..0000000
Binary files a/openwysiwyg/images/indent_left_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/indent_right.gif b/openwysiwyg/images/indent_right.gif
deleted file mode 100644 (file)
index 90f70bc..0000000
Binary files a/openwysiwyg/images/indent_right.gif and /dev/null differ
diff --git a/openwysiwyg/images/indent_right_on.gif b/openwysiwyg/images/indent_right_on.gif
deleted file mode 100644 (file)
index 58ba3e5..0000000
Binary files a/openwysiwyg/images/indent_right_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/insert_hyperlink.gif b/openwysiwyg/images/insert_hyperlink.gif
deleted file mode 100644 (file)
index cd38888..0000000
Binary files a/openwysiwyg/images/insert_hyperlink.gif and /dev/null differ
diff --git a/openwysiwyg/images/insert_hyperlink_on.gif b/openwysiwyg/images/insert_hyperlink_on.gif
deleted file mode 100644 (file)
index 3083f24..0000000
Binary files a/openwysiwyg/images/insert_hyperlink_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/insert_picture.gif b/openwysiwyg/images/insert_picture.gif
deleted file mode 100644 (file)
index 4318538..0000000
Binary files a/openwysiwyg/images/insert_picture.gif and /dev/null differ
diff --git a/openwysiwyg/images/insert_picture_on.gif b/openwysiwyg/images/insert_picture_on.gif
deleted file mode 100644 (file)
index 9b2fcb3..0000000
Binary files a/openwysiwyg/images/insert_picture_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/insert_table.gif b/openwysiwyg/images/insert_table.gif
deleted file mode 100644 (file)
index a69b98b..0000000
Binary files a/openwysiwyg/images/insert_table.gif and /dev/null differ
diff --git a/openwysiwyg/images/insert_table_on.gif b/openwysiwyg/images/insert_table_on.gif
deleted file mode 100644 (file)
index dc126e9..0000000
Binary files a/openwysiwyg/images/insert_table_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/italics.gif b/openwysiwyg/images/italics.gif
deleted file mode 100644 (file)
index 8fd547e..0000000
Binary files a/openwysiwyg/images/italics.gif and /dev/null differ
diff --git a/openwysiwyg/images/italics_on.gif b/openwysiwyg/images/italics_on.gif
deleted file mode 100644 (file)
index c781bda..0000000
Binary files a/openwysiwyg/images/italics_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/justify_center.gif b/openwysiwyg/images/justify_center.gif
deleted file mode 100644 (file)
index 6f1c340..0000000
Binary files a/openwysiwyg/images/justify_center.gif and /dev/null differ
diff --git a/openwysiwyg/images/justify_center_on.gif b/openwysiwyg/images/justify_center_on.gif
deleted file mode 100644 (file)
index ef75d13..0000000
Binary files a/openwysiwyg/images/justify_center_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/justify_justify.gif b/openwysiwyg/images/justify_justify.gif
deleted file mode 100644 (file)
index 11b2af6..0000000
Binary files a/openwysiwyg/images/justify_justify.gif and /dev/null differ
diff --git a/openwysiwyg/images/justify_justify_on.gif b/openwysiwyg/images/justify_justify_on.gif
deleted file mode 100644 (file)
index 1e06876..0000000
Binary files a/openwysiwyg/images/justify_justify_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/justify_left.gif b/openwysiwyg/images/justify_left.gif
deleted file mode 100644 (file)
index f2e6142..0000000
Binary files a/openwysiwyg/images/justify_left.gif and /dev/null differ
diff --git a/openwysiwyg/images/justify_left_on.gif b/openwysiwyg/images/justify_left_on.gif
deleted file mode 100644 (file)
index 5f88cce..0000000
Binary files a/openwysiwyg/images/justify_left_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/justify_right.gif b/openwysiwyg/images/justify_right.gif
deleted file mode 100644 (file)
index 5df6220..0000000
Binary files a/openwysiwyg/images/justify_right.gif and /dev/null differ
diff --git a/openwysiwyg/images/justify_right_on.gif b/openwysiwyg/images/justify_right_on.gif
deleted file mode 100644 (file)
index 8544755..0000000
Binary files a/openwysiwyg/images/justify_right_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/list_ordered.gif b/openwysiwyg/images/list_ordered.gif
deleted file mode 100644 (file)
index 7e7acbc..0000000
Binary files a/openwysiwyg/images/list_ordered.gif and /dev/null differ
diff --git a/openwysiwyg/images/list_ordered_on.gif b/openwysiwyg/images/list_ordered_on.gif
deleted file mode 100644 (file)
index a7a1c0a..0000000
Binary files a/openwysiwyg/images/list_ordered_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/list_unordered.gif b/openwysiwyg/images/list_unordered.gif
deleted file mode 100644 (file)
index 69f7393..0000000
Binary files a/openwysiwyg/images/list_unordered.gif and /dev/null differ
diff --git a/openwysiwyg/images/list_unordered_on.gif b/openwysiwyg/images/list_unordered_on.gif
deleted file mode 100644 (file)
index 0f36014..0000000
Binary files a/openwysiwyg/images/list_unordered_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/logo.gif b/openwysiwyg/images/logo.gif
deleted file mode 100644 (file)
index 50bedd4..0000000
Binary files a/openwysiwyg/images/logo.gif and /dev/null differ
diff --git a/openwysiwyg/images/maximize.gif b/openwysiwyg/images/maximize.gif
deleted file mode 100644 (file)
index a3c138a..0000000
Binary files a/openwysiwyg/images/maximize.gif and /dev/null differ
diff --git a/openwysiwyg/images/maximize_on.gif b/openwysiwyg/images/maximize_on.gif
deleted file mode 100644 (file)
index a3c138a..0000000
Binary files a/openwysiwyg/images/maximize_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/paste.gif b/openwysiwyg/images/paste.gif
deleted file mode 100644 (file)
index 5d4219d..0000000
Binary files a/openwysiwyg/images/paste.gif and /dev/null differ
diff --git a/openwysiwyg/images/paste_on.gif b/openwysiwyg/images/paste_on.gif
deleted file mode 100644 (file)
index 111bb95..0000000
Binary files a/openwysiwyg/images/paste_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/preview.gif b/openwysiwyg/images/preview.gif
deleted file mode 100644 (file)
index dc34a70..0000000
Binary files a/openwysiwyg/images/preview.gif and /dev/null differ
diff --git a/openwysiwyg/images/preview_on.gif b/openwysiwyg/images/preview_on.gif
deleted file mode 100644 (file)
index 401890d..0000000
Binary files a/openwysiwyg/images/preview_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/print.gif b/openwysiwyg/images/print.gif
deleted file mode 100644 (file)
index 4a21d8f..0000000
Binary files a/openwysiwyg/images/print.gif and /dev/null differ
diff --git a/openwysiwyg/images/print_on.gif b/openwysiwyg/images/print_on.gif
deleted file mode 100644 (file)
index 235c46c..0000000
Binary files a/openwysiwyg/images/print_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/redo.gif b/openwysiwyg/images/redo.gif
deleted file mode 100644 (file)
index 6e2b689..0000000
Binary files a/openwysiwyg/images/redo.gif and /dev/null differ
diff --git a/openwysiwyg/images/redo_on.gif b/openwysiwyg/images/redo_on.gif
deleted file mode 100644 (file)
index a713be1..0000000
Binary files a/openwysiwyg/images/redo_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/remove_format.gif b/openwysiwyg/images/remove_format.gif
deleted file mode 100644 (file)
index 76617de..0000000
Binary files a/openwysiwyg/images/remove_format.gif and /dev/null differ
diff --git a/openwysiwyg/images/remove_format_on.gif b/openwysiwyg/images/remove_format_on.gif
deleted file mode 100644 (file)
index e2d0539..0000000
Binary files a/openwysiwyg/images/remove_format_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/return.gif b/openwysiwyg/images/return.gif
deleted file mode 100644 (file)
index 307d155..0000000
Binary files a/openwysiwyg/images/return.gif and /dev/null differ
diff --git a/openwysiwyg/images/return_on.gif b/openwysiwyg/images/return_on.gif
deleted file mode 100644 (file)
index 1c1cc49..0000000
Binary files a/openwysiwyg/images/return_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/save.gif b/openwysiwyg/images/save.gif
deleted file mode 100644 (file)
index f4b4bd9..0000000
Binary files a/openwysiwyg/images/save.gif and /dev/null differ
diff --git a/openwysiwyg/images/save_on.gif b/openwysiwyg/images/save_on.gif
deleted file mode 100644 (file)
index 81b1de0..0000000
Binary files a/openwysiwyg/images/save_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/select_font.gif b/openwysiwyg/images/select_font.gif
deleted file mode 100644 (file)
index c57b997..0000000
Binary files a/openwysiwyg/images/select_font.gif and /dev/null differ
diff --git a/openwysiwyg/images/select_font_on.gif b/openwysiwyg/images/select_font_on.gif
deleted file mode 100644 (file)
index 102dc52..0000000
Binary files a/openwysiwyg/images/select_font_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/select_heading.gif b/openwysiwyg/images/select_heading.gif
deleted file mode 100644 (file)
index 7e91cf7..0000000
Binary files a/openwysiwyg/images/select_heading.gif and /dev/null differ
diff --git a/openwysiwyg/images/select_heading_on.gif b/openwysiwyg/images/select_heading_on.gif
deleted file mode 100644 (file)
index e9ff50f..0000000
Binary files a/openwysiwyg/images/select_heading_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/select_size.gif b/openwysiwyg/images/select_size.gif
deleted file mode 100644 (file)
index 8e4bef8..0000000
Binary files a/openwysiwyg/images/select_size.gif and /dev/null differ
diff --git a/openwysiwyg/images/select_size_on.gif b/openwysiwyg/images/select_size_on.gif
deleted file mode 100644 (file)
index 942fbf6..0000000
Binary files a/openwysiwyg/images/select_size_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/seperator.gif b/openwysiwyg/images/seperator.gif
deleted file mode 100644 (file)
index 0401d25..0000000
Binary files a/openwysiwyg/images/seperator.gif and /dev/null differ
diff --git a/openwysiwyg/images/seperator2.gif b/openwysiwyg/images/seperator2.gif
deleted file mode 100644 (file)
index b082bb0..0000000
Binary files a/openwysiwyg/images/seperator2.gif and /dev/null differ
diff --git a/openwysiwyg/images/settings.gif b/openwysiwyg/images/settings.gif
deleted file mode 100644 (file)
index f83b2e2..0000000
Binary files a/openwysiwyg/images/settings.gif and /dev/null differ
diff --git a/openwysiwyg/images/strikethrough.gif b/openwysiwyg/images/strikethrough.gif
deleted file mode 100644 (file)
index 0d0afe8..0000000
Binary files a/openwysiwyg/images/strikethrough.gif and /dev/null differ
diff --git a/openwysiwyg/images/strikethrough_on.gif b/openwysiwyg/images/strikethrough_on.gif
deleted file mode 100644 (file)
index e876a85..0000000
Binary files a/openwysiwyg/images/strikethrough_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/subscript.gif b/openwysiwyg/images/subscript.gif
deleted file mode 100644 (file)
index 39f4c42..0000000
Binary files a/openwysiwyg/images/subscript.gif and /dev/null differ
diff --git a/openwysiwyg/images/subscript_on.gif b/openwysiwyg/images/subscript_on.gif
deleted file mode 100644 (file)
index a29140f..0000000
Binary files a/openwysiwyg/images/subscript_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/superscript.gif b/openwysiwyg/images/superscript.gif
deleted file mode 100644 (file)
index 0d69b43..0000000
Binary files a/openwysiwyg/images/superscript.gif and /dev/null differ
diff --git a/openwysiwyg/images/superscript_on.gif b/openwysiwyg/images/superscript_on.gif
deleted file mode 100644 (file)
index 14f2020..0000000
Binary files a/openwysiwyg/images/superscript_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/underline.gif b/openwysiwyg/images/underline.gif
deleted file mode 100644 (file)
index e32b6e8..0000000
Binary files a/openwysiwyg/images/underline.gif and /dev/null differ
diff --git a/openwysiwyg/images/underline_on.gif b/openwysiwyg/images/underline_on.gif
deleted file mode 100644 (file)
index db2068f..0000000
Binary files a/openwysiwyg/images/underline_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/undo.gif b/openwysiwyg/images/undo.gif
deleted file mode 100644 (file)
index fe9afeb..0000000
Binary files a/openwysiwyg/images/undo.gif and /dev/null differ
diff --git a/openwysiwyg/images/undo_on.gif b/openwysiwyg/images/undo_on.gif
deleted file mode 100644 (file)
index 8885006..0000000
Binary files a/openwysiwyg/images/undo_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/view_source.gif b/openwysiwyg/images/view_source.gif
deleted file mode 100644 (file)
index 3f23035..0000000
Binary files a/openwysiwyg/images/view_source.gif and /dev/null differ
diff --git a/openwysiwyg/images/view_source_on.gif b/openwysiwyg/images/view_source_on.gif
deleted file mode 100644 (file)
index e8106db..0000000
Binary files a/openwysiwyg/images/view_source_on.gif and /dev/null differ
diff --git a/openwysiwyg/images/view_text.gif b/openwysiwyg/images/view_text.gif
deleted file mode 100644 (file)
index 9d445c4..0000000
Binary files a/openwysiwyg/images/view_text.gif and /dev/null differ
diff --git a/openwysiwyg/images/view_text_on.gif b/openwysiwyg/images/view_text_on.gif
deleted file mode 100644 (file)
index cc57b26..0000000
Binary files a/openwysiwyg/images/view_text_on.gif and /dev/null differ
diff --git a/openwysiwyg/popups/about.html b/openwysiwyg/popups/about.html
deleted file mode 100644 (file)
index 8c7676e..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<html>
-       <head>
-               <title>openWYSIWYG | About</title>
-               <script type="text/javascript" src="../scripts/wysiwyg-popup.js"></script>
-               <script type="text/javascript">
-                       var n = WYSIWYG_Popup.getParam('wysiwyg');
-               </script>
-       </head>
-       <body bgcolor="#EEEEEE" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
-               <table border="0" cellpadding="0" cellspacing="0" style="padding: 10px;">
-                       <tr>
-                               <td>
-                                       <table width="380" border="0" cellpadding="0" cellspacing="0">
-                                               <tr>
-                                                       <td style="border-bottom: 2px solid #FFFFFF;" rowspan="2">
-                                                               <script type="text/javascript">
-                                                                       document.write('<img src="../' + window.opener.WYSIWYG.config[n].ImagesDir + 'logo.gif" alt="openWebWare: openWYSIWYG">');
-                                                               </script>
-                                                       </td>
-                                                       <td colspan="4" style="height: 50px;">
-                                                               &nbsp;
-                                                       </td>
-                                               </tr>
-                                               <tr>
-                                                       <td width="60" style="background-color: #F7F7F7;">
-
-                                                               <table width="60" border="0" cellpadding="0" cellspacing="0" style="background-color: #F7F7F7; border-width: 2 2 0 2; border-style: solid; border-color: #FFFFFF; border-bottom: 2px solid #F7F7F7; padding: 2px;">
-                                                                       <tr>
-                                                                               <td align="center" style="font-family: arial, verdana, helvetica, sans serif; font-size: 10px;">
-                                                                                       <script type="text/javascript">
-                                                                                               document.write('<a href="about.html?wysiwyg=' + n + '" style="color: #000000; text-decoration: none;">About</a>');
-                                                                                       </script>
-                                                                               </td>
-                                                                       </tr>
-                                                               </table>
-
-                                                       </td>
-                                                       <td width="5" style="border-bottom: 2px solid #FFFFFF;">
-                                                               &nbsp;
-                                                       </td>
-                                                       <td width="60" style="background-color: #F7F7F7;">
-
-                                                               <table width="60" border="0" cellpadding="0" cellspacing="0" style="background-color: #DDDDDD; border: 2px solid #FFFFFF; padding: 2px;">
-                                                                       <tr>
-                                                                               <td align="center" style="font-family: arial, verdana, helvetica, sans serif; font-size: 10px;">
-                                                                                       <script type="text/javascript">
-                                                                                               document.write('<a href="about_license.html?wysiwyg=' + n + '" style="color: #000000; text-decoration: none;">License</a>');
-                                                                                       </script>
-                                                                               </td>
-                                                                       </tr>
-                                                               </table>
-
-                                                       </td>
-                                                       <td width="5" style="border-bottom: 2px solid #FFFFFF;">
-                                                               &nbsp;
-                                                       </td>
-                                               </tr>
-                                       </table>
-
-                                       <table width="380" border="0" cellpadding="0" cellspacing="0" style="height: 260px; background-color: #F7F7F7; border-width: 0 2 2 2; border-style: solid; border-color: #FFFFFF; padding: 5px;">
-                                               <tr>
-                                                       <td style="font-family: arial, verdana, helvetica, sans serif; font-size: 10px;">
-                                                               An open source cross-browser WYSIWYG editor.<br><br>
-                                                               Version 1.4.7<br>
-
-                                                               Copyright &copy 2006
-                                                               <a href="http://www.openwebware.com/" target="_blank">openWebWare.com</a>
-                                                               <br>
-                                                               All Rights Reserved
-                                                               <br>
-                                                               <br>
-
-                                                               <br>
-                                                               <b style="font-size: 12px;">Resources:</b>
-                                                               <ul> 
-                                                                       <li>
-                                                                               <a href="http://www.openwebware.com/" target="_blank">openWebWare.com Website</a> - open source applications and developer tools.
-                                                                       </li>
-                                                                       <li style="margin-top: 3px;">
-                                                                               <a href="http://www.openwebware.com/products/openwysiwyg/" target="_blank">openWYSIWYG Homepage</a> - cross browser &lt;textarea&gt; replacelemt.
-                                                                       </li>
-                                                                       <li style="margin-top: 3px;">
-                                                                               <a href="http://www.openwebware.com/forum/viewforum.php?f=1" target="_blank">User Forums</a> - trade openWYSIWYG tips and tricks with other developers.
-                                                                       </li>
-                                                                       <!-- 
-                                                                       <li style="margin-top: 3px;">
-                                                                               <a href="http://www.openwebware.com/products/openwysiwyg/docs/" target="_blank">Online Documentation</a> - user documentation.
-                                                                       </li>
-                                                                        -->
-                                                               </ul>
-
-                                                       </td>
-                                               </tr>
-                                       </table>
-                               </td>
-                       </tr>
-               </table>
-
-       </body>
-</html>
diff --git a/openwysiwyg/popups/about_license.html b/openwysiwyg/popups/about_license.html
deleted file mode 100644 (file)
index fa05365..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<html>
-       <head>
-               <title>openWYSIWYG | About</title>
-               <script type="text/javascript" src="../scripts/wysiwyg-popup.js"></script>
-               <script type="text/javascript">
-                       var n = WYSIWYG_Popup.getParam('wysiwyg');
-               </script>
-       </head>
-       <body bgcolor="#EEEEEE" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
-               <table border="0" cellpadding="0" cellspacing="0" style="padding: 10px;">
-                       <tr>
-                               <td>
-                                       <table width="380" border="0" cellpadding="0" cellspacing="0">
-                                               <tr>
-                                                       <td style="border-bottom: 2px solid #FFFFFF;" rowspan="2">
-                                                               <script type="text/javascript">
-                                                                       document.write('<img src="../' + window.opener.WYSIWYG.config[n].ImagesDir + 'logo.gif" alt="openWebWare: openWYSIWYG">');
-                                                               </script>
-                                                       </td>
-                                                       <td colspan="4" style="height: 50px;">
-                                                               &nbsp;
-                                                       </td>
-                                               </tr>
-                                               <tr>
-                                                       <td width="60" style="background-color: #F7F7F7;">
-                                                               <table width="60" border="0" cellpadding="0" cellspacing="0"
-                                                                       style="background-color: #DDDDDD; border: 2px solid #FFFFFF; padding: 2px;">
-                                                                       <tr>
-                                                                               <td align="center" style="font-family: arial, verdana, helvetica, sans serif; font-size: 10px;">
-                                                                                       <script type="text/javascript">
-                                                                                               document.write('<a href="about.html?wysiwyg=' + n + '" style="color: #000000; text-decoration: none;">About</a>');
-                                                                                       </script>
-                                                                               </td>
-                                                                       </tr>
-                                                               </table>
-
-                                                       </td>
-                                                       <td width="5" style="border-bottom: 2px solid #FFFFFF;">
-                                                               &nbsp;
-                                                       </td>
-                                                       <td width="60" style="background-color: #F7F7F7;">
-
-                                                               <table width="60" border="0" cellpadding="0" cellspacing="0"
-                                                                       style="background-color: #F7F7F7; border-width: 2 2 0 2; border-style: solid; border-color: #FFFFFF; border-bottom: 2px solid #F7F7F7; padding: 2px;">
-                                                                       <tr>
-                                                                               <td align="center"
-                                                                                       style="font-family: arial, verdana, helvetica, sans serif; font-size: 10px;">
-                                                                                       <script type="text/javascript">
-                                                                                               document.write('<a href="about_license.html?wysiwyg=' + n + '" style="color: #000000; text-decoration: none;">License</a>');
-                                                                                       </script>
-                                                                               </td>
-                                                                       </tr>
-                                                               </table>
-
-                                                       </td>
-                                                       <td width="5" style="border-bottom: 2px solid #FFFFFF;">
-                                                               &nbsp;
-                                                       </td>
-                                               </tr>
-                                       </table>
-
-                                       <table width="380" border="0" cellpadding="0" cellspacing="0"
-                                               style="height: 260px; background-color: #F7F7F7; border-width: 0 2 2 2; border-style: solid; border-color: #FFFFFF; padding: 5px;">
-                                               <tr>
-                                                       <td>
-                                                               <iframe style="width: 360px; height: 244px; border: none;" src="license.html"></iframe>
-                                                       </td>
-                                               </tr>
-                                       </table>
-                               </td>
-                       </tr>
-               </table>
-
-       </body>
-</html>
diff --git a/openwysiwyg/popups/create_table.html b/openwysiwyg/popups/create_table.html
deleted file mode 100644 (file)
index 38d9ee4..0000000
+++ /dev/null
@@ -1,262 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-       <head>
-               <title>openWYSIWYG | Create or Modify Table</title>
-
-               <style type="text/css">
-                       body, td {
-                               font-family: arial, verdana, helvetica; 
-                               font-size: 11px;
-                       }
-                       
-                       select, input, button {
-                               font-size: 10px;
-                       }
-                       
-                       .table-settings {
-                               background-color: #F7F7F7; 
-                               border: 2px solid #FFFFFF; 
-                               padding: 5px;                   
-                       }
-               </style>
-
-       </head>
-       <script type="text/javascript" src="../scripts/wysiwyg-popup.js"></script>
-       <script type="text/javascript" src="../scripts/wysiwyg-color.js"></script>
-               
-       <script type="text/javascript">
-       var n = WYSIWYG_Popup.getParam('wysiwyg');
-               
-       // add stylesheet file
-       if(n) document.write('<link rel="stylesheet" type="text/css" href="../' + WYSIWYG.config[n].CSSFile +'">\n');
-       
-       /* ---------------------------------------------------------------------- *\
-         Function    : buildTable()
-         Description : Builds a table and inserts it into the WYSIWYG.
-       \* ---------------------------------------------------------------------- */
-       function buildTable() {
-                       
-               var WYSIWYG_Table = window.opener.WYSIWYG_Table;
-               var doc = WYSIWYG.getEditorWindow(n).document;
-               // create a table object
-               var table = doc.createElement("TABLE");
-               // set cols and rows
-               WYSIWYG_Core.setAttribute(table, "tmpcols", document.getElementById("cols").value);
-               WYSIWYG_Core.setAttribute(table, "tmprows", document.getElementById("rows").value);
-               // alignment
-               if(document.getElementById("alignment").value != "") 
-                       WYSIWYG_Core.setAttribute(table, "align", document.getElementById("alignment").value);
-               
-               // style attributes
-               var style = "";
-               // padding
-               style += "padding:" + document.getElementById("padding").value + "px;";
-               // width
-               style += "width:" + document.getElementById("width").value + document.getElementById("widthType").value + ";";
-               // border
-               style += "border:" + document.getElementById("border").value + "px;";
-               // borderstyle
-               if(document.getElementById("borderstyle").value != "none")
-                       style += "border-style:" + document.getElementById("borderstyle").value + ";";
-               // border-color
-               if(document.getElementById("bordercolor").value != "none")
-                       style += "border-color:" + document.getElementById("bordercolor").value + ";";
-               // border-collapse
-               var collapse = document.getElementById("bordercollapse").checked ? "true" : "separate";
-               style += "border-collapse:" + collapse + ";";
-               // background-color
-               if(document.getElementById("backgroundcolor").value != "none")
-                       style += "background-color:" + document.getElementById("backgroundcolor").value + ";";
-               
-               WYSIWYG_Core.setAttribute(table, "style", style);
-               
-               
-               WYSIWYG_Table.create(n, table);
-               window.close();
-               return;
-               
-               // Checks if the table border will use the BORDER-COLLAPSE CSS attribute
-               var collapse;
-               if (document.getElementById('borderCollapse').checked == true) {
-                       collapse = document.getElementById('borderCollapse').value;
-               }
-               else {
-                       collapse = "separate";
-               }
-               
-               // Builds a table based on the data input into the form
-               var table = '<table border="0" cellpadding="0" cellspacing="0" style="';
-               table += 'BORDER-COLLAPSE: ' + collapse + ';';  
-               table += ' border: ' + document.getElementById('borderWidth').value + ' ' +  document.getElementById('borderStyle').value + ' ' +  document.getElementById('borderColor').value + ';';  
-               table += ' width: ' + document.getElementById('tableWidth').value + document.getElementById('widthType').value + ';';
-               table += ' background-color: ' + document.getElementById('shadingColor').value + ';"';
-               table += ' alignment="' + document.getElementById('alignment').value + '">\n';  
-               
-               // Creates the number of rows and cols the table will have
-               for (var i = 0; i < document.getElementById('rows').value; i++) {
-                       table += '<tr>\n';
-                       for (var j = 0; j < document.getElementById('cols').value; j++) {
-                               table += '<td style="border: ' + document.getElementById('borderWidth').value + ' ' +  document.getElementById('borderStyle').value + ' ' +  document.getElementById('borderColor').value + '; padding: ' + document.getElementById('padding').value + ';">&nbsp;</td>\n';
-                       }
-                       table += '</tr>\n';
-               }
-               table += '</table>\n';
-               
-               
-               // Inserts the table code into the WYSIWYG editor       
-               WYSIWYG.insertHTML(table, n);
-               window.close();
-       }       
-       </script>
-
-       <body bgcolor="#EEEEEE" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" onload="WYSIWYG_ColorInst.init();">
-
-               <table border="0" cellpadding="0" cellspacing="0" style="width:100%;padding: 10px;">
-                       <tr>
-                               <td>
-                                       <span style=" font-weight: bold;">Table Properties:</span>
-
-                                       <table style="width:100%;" border="0" cellpadding="1" cellspacing="0"
-                                               class="table-settings">
-                                               <tr>
-                                                       <td style="width: 20%;">
-                                                               Rows:
-                                                       </td>
-                                                       <td style="width: 25%;">
-                                                               <input type="text" size="4" id="rows" name="rows" value="2" style="width: 50px;">
-                                                       </td>
-                                                       <td style="width: 25%;">
-                                                               Width:
-                                                       </td>
-                                                       <td style="width: 30%;">
-                                                               <input type="text" name="width" id="width" value="100" size="10" style="width: 50px;">
-                                                               <select name="widthType" id="widthType"
-                                                                       style="margin-right: 10px; font-size: 10px;">
-                                                                       <option value="%">%</option>
-                                                                       <option value="px">px</option>
-                                                               </select>
-                                                       </td>
-                                               </tr>
-                                               <tr>
-                                                       <td>
-                                                               Cols:
-                                                       </td>
-                                                       <td>
-                                                               <input type="text" size="4" id="cols" name="cols" value="2"     style="width: 50px;">
-                                                       </td>
-                                                       <td>
-                                                               Alignment:
-                                                       </td>
-                                                       <td>
-                                                               <select name="alignment" id="alignment" style="margin-right: 10px; width: 95px;">
-                                                                       <option value="">Not Set</option>
-                                                                       <option value="left">Left</option>
-                                                                       <option value="right">Right</option>
-                                                                       <option value="center">Center</option>
-                                                               </select>
-                                                       </td>
-                                               </tr>
-                                               <tr>
-                                                       <td>
-                                                               Padding:
-                                                       </td>
-                                                       <td>
-                                                               <input type="text" id="padding" name="padding" value="2" style="width: 50px;">
-                                                       </td>
-                                                       <td>
-                                                               Background-Color:
-                                                       </td>
-                                                       <td>
-                                                               <table border="0" cellpadding="0" cellspacing="0">
-                                                                       <tr>
-                                                                               <td width="25">
-                                                                                       <table border="0" cellpadding="0" cellspacing="0">
-                                                                                               <tr>
-                                                                                                       <td>
-                                                                                                               <input type="text" name="backgroundcolor" id="backgroundcolor" value="none" style="width:50px;">
-                                                                                                       </td>
-                                                                                               </tr>
-                                                                                       </table>
-                                                                               </td>
-                                                                               <td>
-                                                                                       <button style="margin-left: 2px;" onClick="WYSIWYG_ColorInst.choose('backgroundcolor');">
-                                                                                               Choose
-                                                                                       </button>
-                                                                               </td>
-                                                                       </tr>
-                                                               </table>
-                                                       </td>
-                                               </tr>
-                                               <tr>
-                                               <td>
-                                                       Border-Size:
-                                               </td>
-                                               <td>
-                                                       <input type="text" size="4" id="border" name="border" value="0" style="width: 50px;">
-                                               </td>
-                                               <td>
-                                                       Border-Color:
-                                               </td>
-                                               <td>
-                                                       <table border="0" cellpadding="0" cellspacing="0">
-                                                               <tr>
-                                                                       <td width="25">
-                                                                               <table border="0" cellpadding="0" cellspacing="0">
-                                                                                       <tr>
-                                                                                               <td>                                                                                            
-                                                                                                       <input type="text" name="bordercolor" id="bordercolor" value="none" style="width:50px;">
-                                                                                               </td>
-                                                                                       </tr>
-                                                                               </table>
-                                                                       </td>
-                                                                       <td>
-                                                                               <button style="margin-left: 2px;" onClick="WYSIWYG_ColorInst.choose('bordercolor');">
-                                                                                       Choose
-                                                                               </button>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       Border-Style:
-                                               </td>
-                                               <td>
-                                                       <select id="borderstyle" name="borderstyle" style="width: 80px;">
-                                                               <option value="none">none</option>
-                                                               <option value="solid">solid</option>
-                                                               <option value="double">double</option>
-                                                               <option value="dotted">dotted</option>
-                                                               <option value="dashed">dashed</option>
-                                                               <option value="groove">groove</option>
-                                                               <option value="ridge">ridge</option>
-                                                               <option value="inset">inset</option>
-                                                               <option value="outset">outset</option>
-                                                       </select>
-                                               </td>
-                                               <td>
-                                                       Border-Collapse:
-                                               </td>
-                                               <td>
-                                                       <input type="checkbox" name="bordercollapse" id="bordercollapse">
-                                               </td>
-                                       </tr>
-                               </table>
-                       </td>
-               </tr>
-               </table>
-                       <div align="right">
-                               <input type="submit" value="  Submit  " onClick="buildTable();"
-                                       style="font-size: 12px;">
-                               &nbsp;
-                               <input type="submit" value="  Cancel  " onClick="window.close();"
-                                       style="font-size: 12px; margin-right: 15px;">
-                       </div>
-                               </td>
-                       </tr>
-               </table>
-       </div>
-       </body>
-</html>
\ No newline at end of file
diff --git a/openwysiwyg/popups/insert_hyperlink.html b/openwysiwyg/popups/insert_hyperlink.html
deleted file mode 100644 (file)
index fe10263..0000000
+++ /dev/null
@@ -1,173 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <title>openWYSIWYG | Create or Modify Link</title>
-</head>
-<script type="text/javascript" src="../scripts/wysiwyg-popup.js"></script>
-
-<script type="text/javascript">
-
-/* ---------------------------------------------------------------------- *\
-  Function    : insertHyperLink() (changed)
-  Description : Insert the link into the iframe html area
-\* ---------------------------------------------------------------------- */
-function insertHyperLink() {
-       var n = WYSIWYG_Popup.getParam('wysiwyg');
-       
-       // get values from form fields
-       var href = document.getElementById('linkUrl').value;
-       var target = document.getElementById('linkTarget').value;
-       var style = document.getElementById('linkStyle').value;
-       var styleClass = document.getElementById('linkClass').value;
-       var name = document.getElementById('linkName').value;
-  
-       // insert link
-       WYSIWYG.insertLink(href, target, style, styleClass, name, n);
-       window.close();
-}
-
-/* ---------------------------------------------------------------------- *\
-  Function    : loadLink() (new)
-  Description : Load the link attributes to the form
-\* ---------------------------------------------------------------------- */
-function loadLink() {
-       // get params
-       var n = WYSIWYG_Popup.getParam('wysiwyg');
-       
-       // get selection and range
-       var sel = WYSIWYG.getSelection(n);
-       var range = WYSIWYG.getRange(sel);
-       var lin = null;
-       if(WYSIWYG_Core.isMSIE) {
-               if(sel.type == "Control" && range.length == 1) {        
-                       range = WYSIWYG.getTextRange(range(0));
-                       range.select();
-               }
-               if (sel.type == 'Text' || sel.type == 'None') {
-                       sel = WYSIWYG.getSelection(n);
-                       range = WYSIWYG.getRange(sel);
-                       // find a as parent element
-                       lin = WYSIWYG.findParent("a", range);
-               }
-       }
-       else {
-               // find a as parent element
-               lin = WYSIWYG.findParent("a", range);
-       }
-       
-       // if no link as parent found exit here
-       if(lin == null) return;
-               
-       // set form elements with attribute values
-       for(var i=0; i<lin.attributes.length; i++) {
-               var attr = lin.attributes[i].name.toLowerCase();
-               var value = lin.attributes[i].value;
-               if(attr && value && value != "null") {
-                       switch (attr) {
-                               case "href":
-                                       // strip off urls on IE
-                                       if(WYSIWYG_Core.isMSIE) value = WYSIWYG.stripURLPath(n, value, false);
-                                       document.getElementById('linkUrl').value = value;
-                               break;
-                               case "target":
-                                       document.getElementById('linkTarget').value = value;
-                                       selectItemByValue(document.getElementById('linkTargetChooser'), value);
-                               break;
-                               case "name":
-                                       document.getElementById('linkName').value = value;
-                               break;
-                               case "class":
-                                       document.getElementById('linkClass').value = value;
-                               break;
-                               case "className":
-                                       document.getElementById('linkClass').value = value;
-                               break;
-                               
-                       }
-               }
-       }
-       
-       // Getting style attribute of the link separately, because IE interprets the 
-       // style attribute is an complex object, and do not return a text stylesheet like Mozilla.
-       document.getElementById('linkStyle').value = WYSIWYG_Core.replaceRGBWithHexColor(WYSIWYG_Core.getAttribute(lin, "style"));      
-}
-
-/* ---------------------------------------------------------------------- *\
-  Function    : updateTarget() (new)
-  Description : Updates the target text field
-  Arguments   : value - Value to be set
-\* ---------------------------------------------------------------------- */
-function updateTarget(value) {
-       document.getElementById('linkTarget').value = value;
-}
-
-/* ---------------------------------------------------------------------- *\
-  Function    : selectItem()
-  Description : Select an item of an select box element by value.
-\* ---------------------------------------------------------------------- */
-function selectItemByValue(element, value) {
-       if(element.options.length) {
-               for(var i=0;i<element.options.length;i++) {
-                       if(element.options[i].value == value) {
-                               element.options[i].selected = true;
-                               return;
-                       }
-               }
-               element.options[(element.options.length-1)].selected = true;
-       }
-}
-
-</script>
-<body bgcolor="#EEEEEE" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" onLoad="loadLink();">
-
-<table border="0" cellpadding="0" cellspacing="0" style="padding: 10px;"><tr><td>
-
-<span style="font-family: arial, verdana, helvetica; font-size: 11px; font-weight: bold;">Insert Hyperlink:</span>
-       <table width="330" border="0" cellpadding="1" cellspacing="0" style="background-color: #F7F7F7; border: 2px solid #FFFFFF; padding: 5px;">
-       <tr>
-               <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">URL:</td>
-               <td style="padding-bottom: 2px; padding-top: 0px;" colspan="3">
-                       <input type="text" name="linkUrl" id="linkUrl" value="http://" style="font-size: 10px; width: 100%;">
-               </td>
-       </tr>
-       <tr>
-               <td style="padding-bottom: 2px; width: 50px; font-family: arial, verdana, helvetica; font-size: 11px;">Target:</td>
-               <td style="padding-bottom: 2px;" colspan="3">
-                       <input type="text" name="linkTarget" id="linkTarget" value="" style="font-size: 10px; width: 65%;">
-                       &nbsp;
-                       <select name="linkTargetChooser" id="linkTargetChooser" style="font-size: 10px; width: 30%;" onchange="updateTarget(this.value);">
-                               <option value="" selected>no target</option>
-                               <option value="_blank">_blank</option>
-                               <option value="_self">_self</option>
-                               <option value="_parent">_parent</option>
-                               <option value="_top">_top</option>
-                               <option value="">custom</option>
-                       </select>
-               </td>   
-       </tr>
-       <tr>
-               <td style="padding-bottom: 2px; width: 50px; font-family: arial, verdana, helvetica; font-size: 11px;">Style:</td>
-               <td style="padding-bottom: 2px;" colspan="3">
-                       <input type="text" name="linkStyle" id="linkStyle" value="" style="font-size: 10px; width: 100%;">
-               </td>   
-       </tr>
-       <tr>
-               <td style="padding-bottom: 2px; width: 50px; font-family: arial, verdana, helvetica; font-size: 11px;">Class:</td>
-               <td style="padding-bottom: 2px;">
-                       <input type="text" name="linkClass" id="linkClass" value="" style="font-size: 10px; width: 90%;">
-               </td>   
-               <td style="padding-bottom: 2px; width: 30px; font-family: arial, verdana, helvetica; font-size: 11px;">Name:</td>
-               <td style="padding-bottom: 2px; width: 120px;">
-                       <input type="text" name="linkName" id="linkName" value="" style="font-size: 10px; width: 100%;">
-               </td>   
-       </tr>
-</table>       
-
-<div align="right" style="padding-top: 5px;"><input type="submit" value="  Submit  " onClick="insertHyperLink();" style="font-size: 12px;" >&nbsp;<input type="submit" value="  Cancel  " onClick="window.close();" style="font-size: 12px;" ></div>
-
-</td></tr></table>
-
-</body>
-</html>
diff --git a/openwysiwyg/popups/insert_image.html b/openwysiwyg/popups/insert_image.html
deleted file mode 100644 (file)
index 5b68dd3..0000000
+++ /dev/null
@@ -1,185 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-<title>openWYSIWYG | Insert or Modify Image</title>
-
-<script type="text/javascript" src="../scripts/wysiwyg-popup.js"></script>
-<script language="JavaScript" type="text/javascript">
-
-/* ---------------------------------------------------------------------- *\
-  Function    : insertImage()
-  Description : Inserts image into the WYSIWYG.
-\* ---------------------------------------------------------------------- */
-function insertImage() {
-       var n = WYSIWYG_Popup.getParam('wysiwyg');
-       
-       // get values from form fields
-       var src = document.getElementById('src').value;
-       var alt = document.getElementById('alt').value;
-       var width = document.getElementById('width').value
-       var height = document.getElementById('height').value
-       var border = document.getElementById('border').value
-       var align = document.getElementById('align').value
-       var vspace = document.getElementById('vspace').value
-       var hspace = document.getElementById('hspace').value
-       
-       // insert image
-       WYSIWYG.insertImage(src, width, height, align, border, alt, hspace, vspace, n);
-       window.close();
-}
-
-/* ---------------------------------------------------------------------- *\
-  Function    : loadImage()
-  Description : load the settings of a selected image into the form fields
-\* ---------------------------------------------------------------------- */
-function loadImage() {
-       var n = WYSIWYG_Popup.getParam('wysiwyg');
-       
-       // get selection and range
-       var sel = WYSIWYG.getSelection(n);
-       var range = WYSIWYG.getRange(sel);
-       
-       // the current tag of range
-       var img = WYSIWYG.findParent("img", range);
-       
-       // if no image is defined then return
-       if(img == null) return;
-               
-       // assign the values to the form elements
-       for(var i = 0;i < img.attributes.length;i++) {
-               var attr = img.attributes[i].name.toLowerCase();
-               var value = img.attributes[i].value;
-               //alert(attr + " = " + value);
-               if(attr && value && value != "null") {
-                       switch(attr) {
-                               case "src": 
-                                       // strip off urls on IE
-                                       if(WYSIWYG_Core.isMSIE) value = WYSIWYG.stripURLPath(n, value, false);
-                                       document.getElementById('src').value = value;
-                               break;
-                               case "alt":
-                                       document.getElementById('alt').value = value;
-                               break;
-                               case "align":
-                                       selectItemByValue(document.getElementById('align'), value);
-                               break;
-                               case "border":
-                                       document.getElementById('border').value = value;
-                               break;
-                               case "hspace":
-                                       document.getElementById('hspace').value = value;
-                               break;
-                               case "vspace":
-                                       document.getElementById('vspace').value = value;
-                               break;
-                               case "width":
-                                       document.getElementById('width').value = value;
-                               break;
-                               case "height":
-                                       document.getElementById('height').value = value;
-                               break;                          
-                       }
-               }
-       }
-       
-       // get width and height from style attribute in none IE browsers
-       if(!WYSIWYG_Core.isMSIE && document.getElementById('width').value == "" && document.getElementById('width').value == "") {
-               document.getElementById('width').value = img.style.width.replace(/px/, "");
-               document.getElementById('height').value = img.style.height.replace(/px/, "");
-       }
-}
-
-/* ---------------------------------------------------------------------- *\
-  Function    : selectItem()
-  Description : Select an item of an select box element by value.
-\* ---------------------------------------------------------------------- */
-function selectItemByValue(element, value) {
-       if(element.options.length) {
-               for(var i=0;i<element.options.length;i++) {
-                       if(element.options[i].value == value) {
-                               element.options[i].selected = true;
-                       }
-               }
-       }
-}
-
-</script>
-</head>
-<body bgcolor="#EEEEEE" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" onLoad="loadImage();">
-
-<table border="0" cellpadding="0" cellspacing="0" style="padding: 10px;"><tr><td>
-
-<span style="font-family: arial, verdana, helvetica; font-size: 11px; font-weight: bold;">Insert Image:</span>
-<table width="380" border="0" cellpadding="0" cellspacing="0" style="background-color: #F7F7F7; border: 2px solid #FFFFFF; padding: 5px;">
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;" width="80">Image URL:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;" width="300"><input type="text" name="src" id="src" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Alternate Text:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="alt" id="alt" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
-</table>
-       
-
-
-<table width="380" border="0" cellpadding="0" cellspacing="0" style="margin-top: 10px;"><tr><td style="vertical-align:top;">
-
-<span style="font-family: arial, verdana, helvetica; font-size: 11px; font-weight: bold;">Layout:</span>
-<table width="180" border="0" cellpadding="0" cellspacing="0" style="background-color: #F7F7F7; border: 2px solid #FFFFFF; padding: 5px;">
-<tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Width:</td>
-  <td style="width:60px;padding-bottom: 2px; padding-top: 0px;"><input type="text" name="width" id="width" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Height:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="height" id="height" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Border:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="border" id="border" value="0"  style="font-size: 10px; width: 100%;"></td>
- </tr>
-</table>       
-
-</td>
-<td width="10">&nbsp;</td>
-<td style="vertical-align:top;">
-
-<span style="font-family: arial, verdana, helvetica; font-size: 11px; font-weight: bold;">&nbsp;</span>
-<table width="200" border="0" cellpadding="0" cellspacing="0" style="background-color: #F7F7F7; border: 2px solid #FFFFFF; padding: 5px;">
-<tr>
-  <td style="width: 115px;padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;" width="100">Alignment:</td>
-       <td style="width: 85px;padding-bottom: 2px; padding-top: 0px;">
-       <select name="align" id="align" style="font-family: arial, verdana, helvetica; font-size: 11px; width: 100%;">
-        <option value="">Not Set</option>
-        <option value="left">Left</option>
-        <option value="right">Right</option>
-        <option value="texttop">Texttop</option>
-        <option value="absmiddle">Absmiddle</option>
-        <option value="baseline">Baseline</option>
-        <option value="absbottom">Absbottom</option>
-        <option value="bottom">Bottom</option>
-        <option value="middle">Middle</option>
-        <option value="top">Top</option>
-       </select>
-       </td>
- </tr>
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Horizontal Space:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="hspace" id="hspace" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
- <tr>
-  <td style="padding-bottom: 2px; padding-top: 0px; font-family: arial, verdana, helvetica; font-size: 11px;">Vertical Space:</td>
-       <td style="padding-bottom: 2px; padding-top: 0px;"><input type="text" name="vspace" id="vspace" value=""  style="font-size: 10px; width: 100%;"></td>
- </tr>
-</table>       
-
-</td></tr></table>
-
-<div align="right" style="padding-top: 5px;"><input type="submit" value="  Submit  " onClick="insertImage();" style="font-size: 12px;" >&nbsp;<input type="submit" value="  Cancel  " onClick="window.close();" style="font-size: 12px;" ></div>
-
-</td></tr></table>
-
-</body>
-</html>
diff --git a/openwysiwyg/popups/license.html b/openwysiwyg/popups/license.html
deleted file mode 100644 (file)
index 49c89d2..0000000
+++ /dev/null
@@ -1,166 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-<title>openWYSIWYG | License</title>
-</head>
-<body style="font-family: arial, verdana, helvetia, sans serif; font-size: 12px; background-color: #F7F7F7;">
-<h1>GNU Lesser General Public License</h1>
-
-<p>Version 2.1, February 1999</p>
-
-<blockquote>
-<p>Copyright (C) 1991, 1999 Free Software Foundation, Inc.
-59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.</p>
-
-<p>[This is the first released version of the Lesser GPL.  It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]</p></blockquote>
-
-<h3>Preamble</h3>
-
-<p> The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. </p>
-
- <p>This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.
-</p>
-<p> When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.</p>
-
- <p>To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.
-</p>
-<p> For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. </p>
-
- <p>We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. </p>
-
- <p>To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. </p>
-<p>
- Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. </p>
-
- <p>Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. </p>
-
- <p>When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. </p>
-
- <p>We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. </p>
-
- <p>For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.
-</p>
- <p>In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. </p>
-
-<p> Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.
-</p>
- <p>The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. </p>
-
-<h3>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</h3>
-
-<p><strong>0.</strong> This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".</p>
-
-<p> A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. </p>
-
-<p> The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) </p>
-
-<p> "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.</p>
-
- <p>Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. </p>
-
-<p><strong>1.</strong> You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.
-</p>
-<p> You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. </p>
-
-<p><strong>2.</strong> You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
-</p>
-
-<blockquote>
-<p>a) The modified work must itself be a software library. </p>
-<p>b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.</p>
-<p>c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. </p>
-<p>d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. </p>
-
-
-<p> (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) 
-</p>
-<p> These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
-</p>
- <p>Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.
-</p>
-<p> In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
-</p></blockquote>
-<p><strong>3.</strong> You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. </p>
-
- <p>Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.
-</p>
-<p> This option is useful when you wish to copy part of the code of the Library into a program that is not a library.
-</p>
-<p><strong>4.</strong> You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.
-</p>
-
- <p>If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.</p>
-
-<p><strong>5.</strong> A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. </p>
-
-<p> However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. </p>
-
-<p> When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. </p>
-
-<p> If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) </p>
-
-<p>Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. </p>
-
-<p><strong>6.</strong> As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. </p>
-<p>
- You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: </p>
-
-<blockquote><p>a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) </p>
-
-<p>b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. </p>
-<p>
-c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. </p>
-
-<p>d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. </p>
-
-<p>e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy.</p>
-</blockquote>
-
- <p>For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. </p>
-
-<p> It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. </p>
-
-<p><strong>7.</strong> You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: </p>
-
-<blockquote>
-<p>a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. </p>
-
-<p>b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.</p></blockquote>
-
-<p><strong>8.</strong> You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. </p>
-<p>
-<strong>9.</strong> You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. </p>
-<p>
-<strong>10.</strong> Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. </p>
-
-<p><strong>11.</strong> If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. </p>
-<p>
-If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. </p>
-
-<p>It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. </p>
-
-<p>This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. </p>
-<p>
-<strong>12.</strong> If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. </p>
-<p>
-<strong>13.</strong> The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</p>
-
-<p>Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. </p>
-<p>
-<strong>14.</strong> If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. </p>
-<p>
-NO WARRANTY </p>
-<p>
-<strong>15. </strong>BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. </p>
-<p>
-<strong>16.</strong> IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. </p>
-
-<h3><strong>END OF TERMS AND CONDITIONS</strong></h3>
-
-</body>
-</html>
diff --git a/openwysiwyg/popups/preview.html b/openwysiwyg/popups/preview.html
deleted file mode 100644 (file)
index 61a0127..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-<title>Preview</title>
-</head>
-<script type="text/javascript" src="../scripts/wysiwyg-popup.js"></script>
-<script type="text/javascript">
-
-function preview() {   
-       // get params
-       var n = WYSIWYG_Popup.getParam('wysiwyg');
-       // set default styles
-       WYSIWYG_Core.setAttribute(document.body, "style", WYSIWYG.config[n].DefaultStyle);
-       // get content
-       WYSIWYG_Table.disableHighlighting(n);
-       var content = WYSIWYG.getEditorWindow(n).document.body.innerHTML;
-       WYSIWYG_Table.refreshHighlighting(n);
-       content = content.replace(/src="([^/|^http|^https])/gi, "src=\"../$1"); // correct relative image path
-       content = content.replace(/href="([^/|^http|^https|^ftp])/gi, "href=\"../$1"); // correct relative anchor path
-       // set content
-       document.body.innerHTML = content;
-}
-</script>
-<body onLoad="preview();">
-</body>
-</html> 
-
diff --git a/openwysiwyg/popups/select_color.html b/openwysiwyg/popups/select_color.html
deleted file mode 100644 (file)
index ca06bd8..0000000
+++ /dev/null
@@ -1,335 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <title>openWYSIWYG | Select Color</title>
-</head>
-<script type="text/javascript" src="../scripts/wysiwyg-popup.js"></script>
-<script type="text/javascript">
-
-/**
- * Loads the color in the form field
- */
-function loadColor() {
-       document.getElementById('enterColor').value = "#" + WYSIWYG_Popup.getParam('color');
-}
-
-/* ---------------------------------------------------------------------- *\
-  Function    : selectColor()
-  Description : Selects the color and inserts it into the WYSIWYG
-\* ---------------------------------------------------------------------- */
-function selectColor(color) {
-       // get params
-       var n = WYSIWYG_Popup.getParam('wysiwyg');
-       var cmd = WYSIWYG_Popup.getParam('command');
-       var doc = WYSIWYG.getEditorWindow(n).document;
-       // execute command
-       WYSIWYG_Core.execCommand(n, cmd, color);
-       // close window
-    window.close();
-}
-
-
-/* ---------------------------------------------------------------------- *\
-  Function    : previewColor()
-  Description : Updates the preview pane as the user mouses over different colors
-\* ---------------------------------------------------------------------- */
-function previewColor(color) {
-  document.getElementById('enterColor').value = color;
-       document.getElementById('PreviewColor').style.backgroundColor = color;
-}
-</script>
-<body bgcolor="#EEEEEE" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" onLoad="loadColor();">
-<center>
-<table border="0" cellspacing="0" cellpadding="4" width="100%">
-<form onSubmit="selectColor(document.getElementById('enterColor').value);">
- <tr>
-  <td valign=center><div style="background-color: #000000; padding: 1; height: 21px; width: 50px"><div id="PreviewColor" style="height: 100%; width: 100%"></div></div></td>
-  <td valign=center><input type="text" size="15" name="enterColor" id="enterColor" style="font-size: 10px;"></td>
-  <td width="100%"></td>
- </tr>
- </form>
-</table>
-
-<table border=0 cellspacing=1 cellpadding=0 bgcolor="#000000" style="cursor: hand;" >
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#003300" onMouseOver="previewColor('#003300')" onClick="selectColor('#003300')" height="10" width="10"></td>
-  <td bgcolor="#006600" onMouseOver="previewColor('#006600')" onClick="selectColor('#006600')" height="10" width="10"></td>
-  <td bgcolor="#009900" onMouseOver="previewColor('#009900')" onClick="selectColor('#009900')" height="10" width="10"></td>
-  <td bgcolor="#00CC00" onMouseOver="previewColor('#00CC00')" onClick="selectColor('#00CC00')" height="10" width="10"></td>
-  <td bgcolor="#00FF00" onMouseOver="previewColor('#00FF00')" onClick="selectColor('#00FF00')" height="10" width="10"></td>
-  <td bgcolor="#330000" onMouseOver="previewColor('#330000')" onClick="selectColor('#330000')" height="10" width="10"></td>
-  <td bgcolor="#333300" onMouseOver="previewColor('#333300')" onClick="selectColor('#333300')" height="10" width="10"></td>
-  <td bgcolor="#336600" onMouseOver="previewColor('#336600')" onClick="selectColor('#336600')" height="10" width="10"></td>
-  <td bgcolor="#339900" onMouseOver="previewColor('#339900')" onClick="selectColor('#339900')" height="10" width="10"></td>
-  <td bgcolor="#33CC00" onMouseOver="previewColor('#33CC00')" onClick="selectColor('#33CC00')" height="10" width="10"></td>
-  <td bgcolor="#33FF00" onMouseOver="previewColor('#33FF00')" onClick="selectColor('#33FF00')" height="10" width="10"></td>
-  <td bgcolor="#660000" onMouseOver="previewColor('#660000')" onClick="selectColor('#660000')" height="10" width="10"></td>
-  <td bgcolor="#663300" onMouseOver="previewColor('#663300')" onClick="selectColor('#663300')" height="10" width="10"></td>
-  <td bgcolor="#666600" onMouseOver="previewColor('#666600')" onClick="selectColor('#666600')" height="10" width="10"></td>
-  <td bgcolor="#669900" onMouseOver="previewColor('#669900')" onClick="selectColor('#669900')" height="10" width="10"></td>
-  <td bgcolor="#66CC00" onMouseOver="previewColor('#66CC00')" onClick="selectColor('#66CC00')" height="10" width="10"></td>
-  <td bgcolor="#66FF00" onMouseOver="previewColor('#66FF00')" onClick="selectColor('#66FF00')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#333333" onMouseOver="previewColor('#333333')" onClick="selectColor('#333333')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#000033" onMouseOver="previewColor('#000033')" onClick="selectColor('#000033')" height="10" width="10"></td>
-  <td bgcolor="#003333" onMouseOver="previewColor('#003333')" onClick="selectColor('#003333')" height="10" width="10"></td>
-  <td bgcolor="#006633" onMouseOver="previewColor('#006633')" onClick="selectColor('#006633')" height="10" width="10"></td>
-  <td bgcolor="#009933" onMouseOver="previewColor('#009933')" onClick="selectColor('#009933')" height="10" width="10"></td>
-  <td bgcolor="#00CC33" onMouseOver="previewColor('#00CC33')" onClick="selectColor('#00CC33')" height="10" width="10"></td>
-  <td bgcolor="#00FF33" onMouseOver="previewColor('#00FF33')" onClick="selectColor('#00FF33')" height="10" width="10"></td>
-  <td bgcolor="#330033" onMouseOver="previewColor('#330033')" onClick="selectColor('#330033')" height="10" width="10"></td>
-  <td bgcolor="#333333" onMouseOver="previewColor('#333333')" onClick="selectColor('#333333')" height="10" width="10"></td>
-  <td bgcolor="#336633" onMouseOver="previewColor('#336633')" onClick="selectColor('#336633')" height="10" width="10"></td>
-  <td bgcolor="#339933" onMouseOver="previewColor('#339933')" onClick="selectColor('#339933')" height="10" width="10"></td>
-  <td bgcolor="#33CC33" onMouseOver="previewColor('#33CC33')" onClick="selectColor('#33CC33')" height="10" width="10"></td>
-  <td bgcolor="#33FF33" onMouseOver="previewColor('#33FF33')" onClick="selectColor('#33FF33')" height="10" width="10"></td>
-  <td bgcolor="#660033" onMouseOver="previewColor('#660033')" onClick="selectColor('#660033')" height="10" width="10"></td>
-  <td bgcolor="#663333" onMouseOver="previewColor('#663333')" onClick="selectColor('#663333')" height="10" width="10"></td>
-  <td bgcolor="#666633" onMouseOver="previewColor('#666633')" onClick="selectColor('#666633')" height="10" width="10"></td>
-  <td bgcolor="#669933" onMouseOver="previewColor('#669933')" onClick="selectColor('#669933')" height="10" width="10"></td>
-  <td bgcolor="#66CC33" onMouseOver="previewColor('#66CC33')" onClick="selectColor('#66CC33')" height="10" width="10"></td>
-  <td bgcolor="#66FF33" onMouseOver="previewColor('#66FF33')" onClick="selectColor('#66FF33')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#666666" onMouseOver="previewColor('#666666')" onClick="selectColor('#666666')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#000066" onMouseOver="previewColor('#000066')" onClick="selectColor('#000066')" height="10" width="10"></td>
-  <td bgcolor="#003366" onMouseOver="previewColor('#003366')" onClick="selectColor('#003366')" height="10" width="10"></td>
-  <td bgcolor="#006666" onMouseOver="previewColor('#006666')" onClick="selectColor('#006666')" height="10" width="10"></td>
-  <td bgcolor="#009966" onMouseOver="previewColor('#009966')" onClick="selectColor('#009966')" height="10" width="10"></td>
-  <td bgcolor="#00CC66" onMouseOver="previewColor('#00CC66')" onClick="selectColor('#00CC66')" height="10" width="10"></td>
-  <td bgcolor="#00FF66" onMouseOver="previewColor('#00FF66')" onClick="selectColor('#00FF66')" height="10" width="10"></td>
-  <td bgcolor="#330066" onMouseOver="previewColor('#330066')" onClick="selectColor('#330066')" height="10" width="10"></td>
-  <td bgcolor="#333366" onMouseOver="previewColor('#333366')" onClick="selectColor('#333366')" height="10" width="10"></td>
-  <td bgcolor="#336666" onMouseOver="previewColor('#336666')" onClick="selectColor('#336666')" height="10" width="10"></td>
-  <td bgcolor="#339966" onMouseOver="previewColor('#339966')" onClick="selectColor('#339966')" height="10" width="10"></td>
-  <td bgcolor="#33CC66" onMouseOver="previewColor('#33CC66')" onClick="selectColor('#33CC66')" height="10" width="10"></td>
-  <td bgcolor="#33FF66" onMouseOver="previewColor('#33FF66')" onClick="selectColor('#33FF66')" height="10" width="10"></td>
-  <td bgcolor="#660066" onMouseOver="previewColor('#660066')" onClick="selectColor('#660066')" height="10" width="10"></td>
-  <td bgcolor="#663366" onMouseOver="previewColor('#663366')" onClick="selectColor('#663366')" height="10" width="10"></td>
-  <td bgcolor="#666666" onMouseOver="previewColor('#666666')" onClick="selectColor('#666666')" height="10" width="10"></td>
-  <td bgcolor="#669966" onMouseOver="previewColor('#669966')" onClick="selectColor('#669966')" height="10" width="10"></td>
-  <td bgcolor="#66CC66" onMouseOver="previewColor('#66CC66')" onClick="selectColor('#66CC66')" height="10" width="10"></td>
-  <td bgcolor="#66FF66" onMouseOver="previewColor('#66FF66')" onClick="selectColor('#66FF66')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#999999" onMouseOver="previewColor('#999999')" onClick="selectColor('#999999')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#000099" onMouseOver="previewColor('#000099')" onClick="selectColor('#000099')" height="10" width="10"></td>
-  <td bgcolor="#003399" onMouseOver="previewColor('#003399')" onClick="selectColor('#003399')" height="10" width="10"></td>
-  <td bgcolor="#006699" onMouseOver="previewColor('#006699')" onClick="selectColor('#006699')" height="10" width="10"></td>
-  <td bgcolor="#009999" onMouseOver="previewColor('#009999')" onClick="selectColor('#009999')" height="10" width="10"></td>
-  <td bgcolor="#00CC99" onMouseOver="previewColor('#00CC99')" onClick="selectColor('#00CC99')" height="10" width="10"></td>
-  <td bgcolor="#00FF99" onMouseOver="previewColor('#00FF99')" onClick="selectColor('#00FF99')" height="10" width="10"></td>
-  <td bgcolor="#330099" onMouseOver="previewColor('#330099')" onClick="selectColor('#330099')" height="10" width="10"></td>
-  <td bgcolor="#333399" onMouseOver="previewColor('#333399')" onClick="selectColor('#333399')" height="10" width="10"></td>
-  <td bgcolor="#336699" onMouseOver="previewColor('#336699')" onClick="selectColor('#336699')" height="10" width="10"></td>
-  <td bgcolor="#339999" onMouseOver="previewColor('#339999')" onClick="selectColor('#339999')" height="10" width="10"></td>
-  <td bgcolor="#33CC99" onMouseOver="previewColor('#33CC99')" onClick="selectColor('#33CC99')" height="10" width="10"></td>
-  <td bgcolor="#33FF99" onMouseOver="previewColor('#33FF99')" onClick="selectColor('#33FF99')" height="10" width="10"></td>
-  <td bgcolor="#660099" onMouseOver="previewColor('#660099')" onClick="selectColor('#660099')" height="10" width="10"></td>
-  <td bgcolor="#663399" onMouseOver="previewColor('#663399')" onClick="selectColor('#663399')" height="10" width="10"></td>
-  <td bgcolor="#666699" onMouseOver="previewColor('#666699')" onClick="selectColor('#666699')" height="10" width="10"></td>
-  <td bgcolor="#669999" onMouseOver="previewColor('#669999')" onClick="selectColor('#669999')" height="10" width="10"></td>
-  <td bgcolor="#66CC99" onMouseOver="previewColor('#66CC99')" onClick="selectColor('#66CC99')" height="10" width="10"></td>
-  <td bgcolor="#66FF99" onMouseOver="previewColor('#66FF99')" onClick="selectColor('#66FF99')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#CCCCCC" onMouseOver="previewColor('#CCCCCC')" onClick="selectColor('#CCCCCC')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#0000CC" onMouseOver="previewColor('#0000CC')" onClick="selectColor('#0000CC')" height="10" width="10"></td>
-  <td bgcolor="#0033CC" onMouseOver="previewColor('#0033CC')" onClick="selectColor('#0033CC')" height="10" width="10"></td>
-  <td bgcolor="#0066CC" onMouseOver="previewColor('#0066CC')" onClick="selectColor('#0066CC')" height="10" width="10"></td>
-  <td bgcolor="#0099CC" onMouseOver="previewColor('#0099CC')" onClick="selectColor('#0099CC')" height="10" width="10"></td>
-  <td bgcolor="#00CCCC" onMouseOver="previewColor('#00CCCC')" onClick="selectColor('#00CCCC')" height="10" width="10"></td>
-  <td bgcolor="#00FFCC" onMouseOver="previewColor('#00FFCC')" onClick="selectColor('#00FFCC')" height="10" width="10"></td>
-  <td bgcolor="#3300CC" onMouseOver="previewColor('#3300CC')" onClick="selectColor('#3300CC')" height="10" width="10"></td>
-  <td bgcolor="#3333CC" onMouseOver="previewColor('#3333CC')" onClick="selectColor('#3333CC')" height="10" width="10"></td>
-  <td bgcolor="#3366CC" onMouseOver="previewColor('#3366CC')" onClick="selectColor('#3366CC')" height="10" width="10"></td>
-  <td bgcolor="#3399CC" onMouseOver="previewColor('#3399CC')" onClick="selectColor('#3399CC')" height="10" width="10"></td>
-  <td bgcolor="#33CCCC" onMouseOver="previewColor('#33CCCC')" onClick="selectColor('#33CCCC')" height="10" width="10"></td>
-  <td bgcolor="#33FFCC" onMouseOver="previewColor('#33FFCC')" onClick="selectColor('#33FFCC')" height="10" width="10"></td>
-  <td bgcolor="#6600CC" onMouseOver="previewColor('#6600CC')" onClick="selectColor('#6600CC')" height="10" width="10"></td>
-  <td bgcolor="#6633CC" onMouseOver="previewColor('#6633CC')" onClick="selectColor('#6633CC')" height="10" width="10"></td>
-  <td bgcolor="#6666CC" onMouseOver="previewColor('#6666CC')" onClick="selectColor('#6666CC')" height="10" width="10"></td>
-  <td bgcolor="#6699CC" onMouseOver="previewColor('#6699CC')" onClick="selectColor('#6699CC')" height="10" width="10"></td>
-  <td bgcolor="#66CCCC" onMouseOver="previewColor('#66CCCC')" onClick="selectColor('#66CCCC')" height="10" width="10"></td>
-  <td bgcolor="#66FFCC" onMouseOver="previewColor('#66FFCC')" onClick="selectColor('#66FFCC')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#FFFFFF" onMouseOver="previewColor('#FFFFFF')" onClick="selectColor('#FFFFFF')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#0000FF" onMouseOver="previewColor('#0000FF')" onClick="selectColor('#0000FF')" height="10" width="10"></td>
-  <td bgcolor="#0033FF" onMouseOver="previewColor('#0033FF')" onClick="selectColor('#0033FF')" height="10" width="10"></td>
-  <td bgcolor="#0066FF" onMouseOver="previewColor('#0066FF')" onClick="selectColor('#0066FF')" height="10" width="10"></td>
-  <td bgcolor="#0099FF" onMouseOver="previewColor('#0099FF')" onClick="selectColor('#0099FF')" height="10" width="10"></td>
-  <td bgcolor="#00CCFF" onMouseOver="previewColor('#00CCFF')" onClick="selectColor('#00CCFF')" height="10" width="10"></td>
-  <td bgcolor="#00FFFF" onMouseOver="previewColor('#00FFFF')" onClick="selectColor('#00FFFF')" height="10" width="10"></td>
-  <td bgcolor="#3300FF" onMouseOver="previewColor('#3300FF')" onClick="selectColor('#3300FF')" height="10" width="10"></td>
-  <td bgcolor="#3333FF" onMouseOver="previewColor('#3333FF')" onClick="selectColor('#3333FF')" height="10" width="10"></td>
-  <td bgcolor="#3366FF" onMouseOver="previewColor('#3366FF')" onClick="selectColor('#3366FF')" height="10" width="10"></td>
-  <td bgcolor="#3399FF" onMouseOver="previewColor('#3399FF')" onClick="selectColor('#3399FF')" height="10" width="10"></td>
-  <td bgcolor="#33CCFF" onMouseOver="previewColor('#33CCFF')" onClick="selectColor('#33CCFF')" height="10" width="10"></td>
-  <td bgcolor="#33FFFF" onMouseOver="previewColor('#33FFFF')" onClick="selectColor('#33FFFF')" height="10" width="10"></td>
-  <td bgcolor="#6600FF" onMouseOver="previewColor('#6600FF')" onClick="selectColor('#6600FF')" height="10" width="10"></td>
-  <td bgcolor="#6633FF" onMouseOver="previewColor('#6633FF')" onClick="selectColor('#6633FF')" height="10" width="10"></td>
-  <td bgcolor="#6666FF" onMouseOver="previewColor('#6666FF')" onClick="selectColor('#6666FF')" height="10" width="10"></td>
-  <td bgcolor="#6699FF" onMouseOver="previewColor('#6699FF')" onClick="selectColor('#6699FF')" height="10" width="10"></td>
-  <td bgcolor="#66CCFF" onMouseOver="previewColor('#66CCFF')" onClick="selectColor('#66CCFF')" height="10" width="10"></td>
-  <td bgcolor="#66FFFF" onMouseOver="previewColor('#66FFFF')" onClick="selectColor('#66FFFF')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#FF0000" onMouseOver="previewColor('#FF0000')" onClick="selectColor('#FF0000')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#990000" onMouseOver="previewColor('#990000')" onClick="selectColor('#990000')" height="10" width="10"></td>
-  <td bgcolor="#993300" onMouseOver="previewColor('#993300')" onClick="selectColor('#993300')" height="10" width="10"></td>
-  <td bgcolor="#996600" onMouseOver="previewColor('#996600')" onClick="selectColor('#996600')" height="10" width="10"></td>
-  <td bgcolor="#999900" onMouseOver="previewColor('#999900')" onClick="selectColor('#999900')" height="10" width="10"></td>
-  <td bgcolor="#99CC00" onMouseOver="previewColor('#99CC00')" onClick="selectColor('#99CC00')" height="10" width="10"></td>
-  <td bgcolor="#99FF00" onMouseOver="previewColor('#99FF00')" onClick="selectColor('#99FF00')" height="10" width="10"></td>
-  <td bgcolor="#CC0000" onMouseOver="previewColor('#CC0000')" onClick="selectColor('#CC0000')" height="10" width="10"></td>
-  <td bgcolor="#CC3300" onMouseOver="previewColor('#CC3300')" onClick="selectColor('#CC3300')" height="10" width="10"></td>
-  <td bgcolor="#CC6600" onMouseOver="previewColor('#CC6600')" onClick="selectColor('#CC6600')" height="10" width="10"></td>
-  <td bgcolor="#CC9900" onMouseOver="previewColor('#CC9900')" onClick="selectColor('#CC9900')" height="10" width="10"></td>
-  <td bgcolor="#CCCC00" onMouseOver="previewColor('#CCCC00')" onClick="selectColor('#CCCC00')" height="10" width="10"></td>
-  <td bgcolor="#CCFF00" onMouseOver="previewColor('#CCFF00')" onClick="selectColor('#CCFF00')" height="10" width="10"></td>
-  <td bgcolor="#FF0000" onMouseOver="previewColor('#FF0000')" onClick="selectColor('#FF0000')" height="10" width="10"></td>
-  <td bgcolor="#FF3300" onMouseOver="previewColor('#FF3300')" onClick="selectColor('#FF3300')" height="10" width="10"></td>
-  <td bgcolor="#FF6600" onMouseOver="previewColor('#FF6600')" onClick="selectColor('#FF6600')" height="10" width="10"></td>
-  <td bgcolor="#FF9900" onMouseOver="previewColor('#FF9900')" onClick="selectColor('#FF9900')" height="10" width="10"></td>
-  <td bgcolor="#FFCC00" onMouseOver="previewColor('#FFCC00')" onClick="selectColor('#FFCC00')" height="10" width="10"></td>
-  <td bgcolor="#FFFF00" onMouseOver="previewColor('#FFFF00')" onClick="selectColor('#FFFF00')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#00FF00" onMouseOver="previewColor('#00FF00')" onClick="selectColor('#00FF00')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#990033" onMouseOver="previewColor('#990033')" onClick="selectColor('#990033')" height="10" width="10"></td>
-  <td bgcolor="#993333" onMouseOver="previewColor('#993333')" onClick="selectColor('#993333')" height="10" width="10"></td>
-  <td bgcolor="#996633" onMouseOver="previewColor('#996633')" onClick="selectColor('#996633')" height="10" width="10"></td>
-  <td bgcolor="#999933" onMouseOver="previewColor('#999933')" onClick="selectColor('#999933')" height="10" width="10"></td>
-  <td bgcolor="#99CC33" onMouseOver="previewColor('#99CC33')" onClick="selectColor('#99CC33')" height="10" width="10"></td>
-  <td bgcolor="#99FF33" onMouseOver="previewColor('#99FF33')" onClick="selectColor('#99FF33')" height="10" width="10"></td>
-  <td bgcolor="#CC0033" onMouseOver="previewColor('#CC0033')" onClick="selectColor('#CC0033')" height="10" width="10"></td>
-  <td bgcolor="#CC3333" onMouseOver="previewColor('#CC3333')" onClick="selectColor('#CC3333')" height="10" width="10"></td>
-  <td bgcolor="#CC6633" onMouseOver="previewColor('#CC6633')" onClick="selectColor('#CC6633')" height="10" width="10"></td>
-  <td bgcolor="#CC9933" onMouseOver="previewColor('#CC9933')" onClick="selectColor('#CC9933')" height="10" width="10"></td>
-  <td bgcolor="#CCCC33" onMouseOver="previewColor('#CCCC33')" onClick="selectColor('#CCCC33')" height="10" width="10"></td>
-  <td bgcolor="#CCFF33" onMouseOver="previewColor('#CCFF33')" onClick="selectColor('#CCFF33')" height="10" width="10"></td>
-  <td bgcolor="#FF0033" onMouseOver="previewColor('#FF0033')" onClick="selectColor('#FF0033')" height="10" width="10"></td>
-  <td bgcolor="#FF3333" onMouseOver="previewColor('#FF3333')" onClick="selectColor('#FF3333')" height="10" width="10"></td>
-  <td bgcolor="#FF6633" onMouseOver="previewColor('#FF6633')" onClick="selectColor('#FF6633')" height="10" width="10"></td>
-  <td bgcolor="#FF9933" onMouseOver="previewColor('#FF9933')" onClick="selectColor('#FF9933')" height="10" width="10"></td>
-  <td bgcolor="#FFCC33" onMouseOver="previewColor('#FFCC33')" onClick="selectColor('#FFCC33')" height="10" width="10"></td>
-  <td bgcolor="#FFFF33" onMouseOver="previewColor('#FFFF33')" onClick="selectColor('#FFFF33')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#0000FF" onMouseOver="previewColor('#0000FF')" onClick="selectColor('#0000FF')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#990066" onMouseOver="previewColor('#990066')" onClick="selectColor('#990066')" height="10" width="10"></td>
-  <td bgcolor="#993366" onMouseOver="previewColor('#993366')" onClick="selectColor('#993366')" height="10" width="10"></td>
-  <td bgcolor="#996666" onMouseOver="previewColor('#996666')" onClick="selectColor('#996666')" height="10" width="10"></td>
-  <td bgcolor="#999966" onMouseOver="previewColor('#999966')" onClick="selectColor('#999966')" height="10" width="10"></td>
-  <td bgcolor="#99CC66" onMouseOver="previewColor('#99CC66')" onClick="selectColor('#99CC66')" height="10" width="10"></td>
-  <td bgcolor="#99FF66" onMouseOver="previewColor('#99FF66')" onClick="selectColor('#99FF66')" height="10" width="10"></td>
-  <td bgcolor="#CC0066" onMouseOver="previewColor('#CC0066')" onClick="selectColor('#CC0066')" height="10" width="10"></td>
-  <td bgcolor="#CC3366" onMouseOver="previewColor('#CC3366')" onClick="selectColor('#CC3366')" height="10" width="10"></td>
-  <td bgcolor="#CC6666" onMouseOver="previewColor('#CC6666')" onClick="selectColor('#CC6666')" height="10" width="10"></td>
-  <td bgcolor="#CC9966" onMouseOver="previewColor('#CC9966')" onClick="selectColor('#CC9966')" height="10" width="10"></td>
-  <td bgcolor="#CCCC66" onMouseOver="previewColor('#CCCC66')" onClick="selectColor('#CCCC66')" height="10" width="10"></td>
-  <td bgcolor="#CCFF66" onMouseOver="previewColor('#CCFF66')" onClick="selectColor('#CCFF66')" height="10" width="10"></td>
-  <td bgcolor="#FF0066" onMouseOver="previewColor('#FF0066')" onClick="selectColor('#FF0066')" height="10" width="10"></td>
-  <td bgcolor="#FF3366" onMouseOver="previewColor('#FF3366')" onClick="selectColor('#FF3366')" height="10" width="10"></td>
-  <td bgcolor="#FF6666" onMouseOver="previewColor('#FF6666')" onClick="selectColor('#FF6666')" height="10" width="10"></td>
-  <td bgcolor="#FF9966" onMouseOver="previewColor('#FF9966')" onClick="selectColor('#FF9966')" height="10" width="10"></td>
-  <td bgcolor="#FFCC66" onMouseOver="previewColor('#FFCC66')" onClick="selectColor('#FFCC66')" height="10" width="10"></td>
-  <td bgcolor="#FFFF66" onMouseOver="previewColor('#FFFF66')" onClick="selectColor('#FFFF66')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#FFFF00" onMouseOver="previewColor('#FFFF00')" onClick="selectColor('#FFFF00')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#990099" onMouseOver="previewColor('#990099')" onClick="selectColor('#990099')" height="10" width="10"></td>
-  <td bgcolor="#993399" onMouseOver="previewColor('#993399')" onClick="selectColor('#993399')" height="10" width="10"></td>
-  <td bgcolor="#996699" onMouseOver="previewColor('#996699')" onClick="selectColor('#996699')" height="10" width="10"></td>
-  <td bgcolor="#999999" onMouseOver="previewColor('#999999')" onClick="selectColor('#999999')" height="10" width="10"></td>
-  <td bgcolor="#99CC99" onMouseOver="previewColor('#99CC99')" onClick="selectColor('#99CC99')" height="10" width="10"></td>
-  <td bgcolor="#99FF99" onMouseOver="previewColor('#99FF99')" onClick="selectColor('#99FF99')" height="10" width="10"></td>
-  <td bgcolor="#CC0099" onMouseOver="previewColor('#CC0099')" onClick="selectColor('#CC0099')" height="10" width="10"></td>
-  <td bgcolor="#CC3399" onMouseOver="previewColor('#CC3399')" onClick="selectColor('#CC3399')" height="10" width="10"></td>
-  <td bgcolor="#CC6699" onMouseOver="previewColor('#CC6699')" onClick="selectColor('#CC6699')" height="10" width="10"></td>
-  <td bgcolor="#CC9999" onMouseOver="previewColor('#CC9999')" onClick="selectColor('#CC9999')" height="10" width="10"></td>
-  <td bgcolor="#CCCC99" onMouseOver="previewColor('#CCCC99')" onClick="selectColor('#CCCC99')" height="10" width="10"></td>
-  <td bgcolor="#CCFF99" onMouseOver="previewColor('#CCFF99')" onClick="selectColor('#CCFF99')" height="10" width="10"></td>
-  <td bgcolor="#FF0099" onMouseOver="previewColor('#FF0099')" onClick="selectColor('#FF0099')" height="10" width="10"></td>
-  <td bgcolor="#FF3399" onMouseOver="previewColor('#FF3399')" onClick="selectColor('#FF3399')" height="10" width="10"></td>
-  <td bgcolor="#FF6699" onMouseOver="previewColor('#FF6699')" onClick="selectColor('#FF6699')" height="10" width="10"></td>
-  <td bgcolor="#FF9999" onMouseOver="previewColor('#FF9999')" onClick="selectColor('#FF9999')" height="10" width="10"></td>
-  <td bgcolor="#FFCC99" onMouseOver="previewColor('#FFCC99')" onClick="selectColor('#FFCC99')" height="10" width="10"></td>
-  <td bgcolor="#FFFF99" onMouseOver="previewColor('#FFFF99')" onClick="selectColor('#FFFF99')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#00FFFF" onMouseOver="previewColor('#00FFFF')" onClick="selectColor('#00FFFF')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#9900CC" onMouseOver="previewColor('#9900CC')" onClick="selectColor('#9900CC')" height="10" width="10"></td>
-  <td bgcolor="#9933CC" onMouseOver="previewColor('#9933CC')" onClick="selectColor('#9933CC')" height="10" width="10"></td>
-  <td bgcolor="#9966CC" onMouseOver="previewColor('#9966CC')" onClick="selectColor('#9966CC')" height="10" width="10"></td>
-  <td bgcolor="#9999CC" onMouseOver="previewColor('#9999CC')" onClick="selectColor('#9999CC')" height="10" width="10"></td>
-  <td bgcolor="#99CCCC" onMouseOver="previewColor('#99CCCC')" onClick="selectColor('#99CCCC')" height="10" width="10"></td>
-  <td bgcolor="#99FFCC" onMouseOver="previewColor('#99FFCC')" onClick="selectColor('#99FFCC')" height="10" width="10"></td>
-  <td bgcolor="#CC00CC" onMouseOver="previewColor('#CC00CC')" onClick="selectColor('#CC00CC')" height="10" width="10"></td>
-  <td bgcolor="#CC33CC" onMouseOver="previewColor('#CC33CC')" onClick="selectColor('#CC33CC')" height="10" width="10"></td>
-  <td bgcolor="#CC66CC" onMouseOver="previewColor('#CC66CC')" onClick="selectColor('#CC66CC')" height="10" width="10"></td>
-  <td bgcolor="#CC99CC" onMouseOver="previewColor('#CC99CC')" onClick="selectColor('#CC99CC')" height="10" width="10"></td>
-  <td bgcolor="#CCCCCC" onMouseOver="previewColor('#CCCCCC')" onClick="selectColor('#CCCCCC')" height="10" width="10"></td>
-  <td bgcolor="#CCFFCC" onMouseOver="previewColor('#CCFFCC')" onClick="selectColor('#CCFFCC')" height="10" width="10"></td>
-  <td bgcolor="#FF00CC" onMouseOver="previewColor('#FF00CC')" onClick="selectColor('#FF00CC')" height="10" width="10"></td>
-  <td bgcolor="#FF33CC" onMouseOver="previewColor('#FF33CC')" onClick="selectColor('#FF33CC')" height="10" width="10"></td>
-  <td bgcolor="#FF66CC" onMouseOver="previewColor('#FF66CC')" onClick="selectColor('#FF66CC')" height="10" width="10"></td>
-  <td bgcolor="#FF99CC" onMouseOver="previewColor('#FF99CC')" onClick="selectColor('#FF99CC')" height="10" width="10"></td>
-  <td bgcolor="#FFCCCC" onMouseOver="previewColor('#FFCCCC')" onClick="selectColor('#FFCCCC')" height="10" width="10"></td>
-  <td bgcolor="#FFFFCC" onMouseOver="previewColor('#FFFFCC')" onClick="selectColor('#FFFFCC')" height="10" width="10"></td>
- </tr>
- <tr>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#FF00FF" onMouseOver="previewColor('#FF00FF')" onClick="selectColor('#FF00FF')" height="10" width="10"></td>
-  <td bgcolor="#000000" onMouseOver="previewColor('#000000')" onClick="selectColor('#000000')" height="10" width="10"></td>
-  <td bgcolor="#9900FF" onMouseOver="previewColor('#9900FF')" onClick="selectColor('#9900FF')" height="10" width="10"></td>
-  <td bgcolor="#9933FF" onMouseOver="previewColor('#9933FF')" onClick="selectColor('#9933FF')" height="10" width="10"></td>
-  <td bgcolor="#9966FF" onMouseOver="previewColor('#9966FF')" onClick="selectColor('#9966FF')" height="10" width="10"></td>
-  <td bgcolor="#9999FF" onMouseOver="previewColor('#9999FF')" onClick="selectColor('#9999FF')" height="10" width="10"></td>
-  <td bgcolor="#99CCFF" onMouseOver="previewColor('#99CCFF')" onClick="selectColor('#99CCFF')" height="10" width="10"></td>
-  <td bgcolor="#99FFFF" onMouseOver="previewColor('#99FFFF')" onClick="selectColor('#99FFFF')" height="10" width="10"></td>
-  <td bgcolor="#CC00FF" onMouseOver="previewColor('#CC00FF')" onClick="selectColor('#CC00FF')" height="10" width="10"></td>
-  <td bgcolor="#CC33FF" onMouseOver="previewColor('#CC33FF')" onClick="selectColor('#CC33FF')" height="10" width="10"></td>
-  <td bgcolor="#CC66FF" onMouseOver="previewColor('#CC66FF')" onClick="selectColor('#CC66FF')" height="10" width="10"></td>
-  <td bgcolor="#CC99FF" onMouseOver="previewColor('#CC99FF')" onClick="selectColor('#CC99FF')" height="10" width="10"></td>
-  <td bgcolor="#CCCCFF" onMouseOver="previewColor('#CCCCFF')" onClick="selectColor('#CCCCFF')" height="10" width="10"></td>
-  <td bgcolor="#CCFFFF" onMouseOver="previewColor('#CCFFFF')" onClick="selectColor('#CCFFFF')" height="10" width="10"></td>
-  <td bgcolor="#FF00FF" onMouseOver="previewColor('#FF00FF')" onClick="selectColor('#FF00FF')" height="10" width="10"></td>
-  <td bgcolor="#FF33FF" onMouseOver="previewColor('#FF33FF')" onClick="selectColor('#FF33FF')" height="10" width="10"></td>
-  <td bgcolor="#FF66FF" onMouseOver="previewColor('#FF66FF')" onClick="selectColor('#FF66FF')" height="10" width="10"></td>
-  <td bgcolor="#FF99FF" onMouseOver="previewColor('#FF99FF')" onClick="selectColor('#FF99FF')" height="10" width="10"></td>
-  <td bgcolor="#FFCCFF" onMouseOver="previewColor('#FFCCFF')" onClick="selectColor('#FFCCFF')" height="10" width="10"></td>
-  <td bgcolor="#FFFFFF" onMouseOver="previewColor('#FFFFFF')" onClick="selectColor('#FFFFFF')" height="10" width="10"></td>
- </tr>
-</table>
-</center>
-</body>
-</html>
-
diff --git a/openwysiwyg/scripts/wysiwyg-color.js b/openwysiwyg/scripts/wysiwyg-color.js
deleted file mode 100644 (file)
index fbc2a9e..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-/********************************************************************
- * openWYSIWYG color chooser Copyright (c) 2006 openWebWare.com
- * Contact us at devs@openwebware.com
- * This copyright notice MUST stay intact for use.
- *
- * $Id: wysiwyg-color.js,v 1.1 2007/01/29 19:19:49 xhaggi Exp $
- ********************************************************************/
-function WYSIWYG_Color() {
-       
-       // colors
-       var COLORS = new Array(
-               "#000000","#993300","#333300","#003300","#003366","#000080",
-               "#333399","#333333","#800000","#FF6600","#808000","#008000",
-               "#008080","#0000FF","#666699","#808080","#FF0000","#FF9900",
-               "#99CC00","#339966","#33CCCC","#3366FF","#800080","#999999",
-               "#FF00FF","#FFCC00","#FFFF00","#00FF00","#00CCFF","#993366",
-               "#C0C0C0","#FF99CC","#FFCC99","#FFFF99","#CCFFCC","#CCFFFF",
-               "#99CCFF","#666699","#777777","#999999","#EEEEEE","#FFFFFF"     
-       );
-       
-       // div id of the color table
-       var CHOOSER_DIV_ID = "colorpicker-div";
-
-       /**
-        * Init the color picker
-        */
-       this.init = function() {
-               var div = document.createElement("DIV");
-               div.id = CHOOSER_DIV_ID;
-               div.style.position = "absolute";
-               div.style.visibility = "hidden";                
-               document.body.appendChild(div);
-       };
-       
-       
-       /**
-        * Open the color chooser to choose a color.
-        * 
-        * @param {String} element Element identifier 
-        */
-       this.choose = function(element) {
-               var div = document.getElementById(CHOOSER_DIV_ID);
-               if(div == null) {
-                       alert("Initialisation of color picker failed.");
-                       return;
-               }
-                               
-               // writes the content of the color picker
-               write(element);
-                                                               
-               // Display color picker
-               var x = window.event.clientX + document.body.scrollLeft;
-               var y = window.event.clientY + document.body.scrollTop;
-               var winsize = windowSize();
-               if(x + div.offsetWidth > winsize.width) x = winsize.width - div.offsetWidth - 5;
-               if(y + div.offsetHeight > winsize.height) y = winsize.height - div.offsetHeight - 5;
-               div.style.left = x + "px";
-               div.style.top = y + "px";
-               div.style.visibility = "visible";                               
-       };
-       
-       /**
-        * Set the color in the given field
-        *
-        * @param {String} n Element identifier
-        * @param {String} color HexColor String
-        */
-       this.select = function(n, color) {
-               var div = document.getElementById(CHOOSER_DIV_ID);
-               var elm = document.getElementById(n);
-               elm.value = color;
-               elm.style.color = color;
-               elm.style.backgroundColor = color;
-               div.style.visibility = "hidden";
-       }
-       
-       
-       /**
-        * Write the color table
-        * @param {String} n Element identifier
-        * @private
-        */
-       function write(n) {
-               
-               var div = document.getElementById(CHOOSER_DIV_ID);
-               
-               var output = "";
-               output += '<table border="1" cellpadding="0" cellspacing="0" class="wysiwyg-color-picker-table"><tr>';
-               for(var i = 0; i < COLORS.length;i++) {
-                       var color = COLORS[i];
-                       output += '<td class="selectColorBorder" ';
-                       output += 'onmouseover="this.className=\'selectColorOn\';" ';
-                       output += 'onmouseout="this.className=\'selectColorOff\';" ';
-                       output += 'onclick="WYSIWYG_ColorInst.select(\'' + n + '\', \'' + color + '\');"> ';
-                       output += '<div style="background-color:' + color + ';" class="wysiwyg-color-picker-div">&nbsp;</div> ';
-                       output += '</td>';
-                       
-                       if(((i+1) % Math.round(Math.sqrt(COLORS.length))) == 0) {
-                               output += "</tr><tr>";
-                       }
-               }
-               
-               output += '</tr></table>';      
-               
-               // write to div element
-               div.innerHTML = output;
-       };
-       
-       /**
-        * Set the window.event on Mozilla Browser
-        * @private
-        */
-       function _event_tracker(event) { 
-               if (!document.all && document.getElementById) {
-                       window.event = event;
-               }
-       }       
-       document.onmousedown = _event_tracker;
-       
-       /**
-        * Get the window size
-        * @private
-        */
-       function windowSize() {
-               if (window.innerWidth) {
-                       return {width: window.innerWidth, height: window.innerHeight};
-               } 
-               else if (document.body && document.body.offsetWidth) {
-                       return {width: document.body.offsetWidth, height: document.body.offsetHeight};
-               } 
-               else {
-                       return {width: 0, height: 0};
-               }
-       }
-}
-
-var WYSIWYG_ColorInst = new WYSIWYG_Color();
\ No newline at end of file
diff --git a/openwysiwyg/scripts/wysiwyg-popup.js b/openwysiwyg/scripts/wysiwyg-popup.js
deleted file mode 100644 (file)
index 163731c..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/********************************************************************
- * openWYSIWYG popup functions Copyright (c) 2006 openWebWare.com
- * Contact us at devs@openwebware.com
- * This copyright notice MUST stay intact for use.
- *
- * $Id: wysiwyg-popup.js,v 1.2 2007/01/22 23:45:30 xhaggi Exp $
- ********************************************************************/
-var WYSIWYG_Popup = {
-
-       /**
-        * Return the value of an given URL parameter.
-        * 
-        * @param param Parameter
-        * @return Value of the given parameter
-        */
-       getParam: function(param) {
-         var query = window.location.search.substring(1);
-         var parms = query.split('&');
-         for (var i=0; i<parms.length; i++) {
-           var pos = parms[i].indexOf('=');
-           if (pos > 0) {
-              var key = parms[i].substring(0,pos).toLowerCase();
-              var val = parms[i].substring(pos+1);
-              if(key == param.toLowerCase()) 
-               return val;
-           }
-         }
-         return null;
-       }
-}
-
-// close the popup if the opener does not hold the WYSIWYG object
-if(!window.opener) window.close();
-
-// bind objects on local vars
-var WYSIWYG = window.opener.WYSIWYG;   
-var WYSIWYG_Core = window.opener.WYSIWYG_Core;
-var WYSIWYG_Table = window.opener.WYSIWYG_Table;
\ No newline at end of file
diff --git a/openwysiwyg/scripts/wysiwyg-settings.js b/openwysiwyg/scripts/wysiwyg-settings.js
deleted file mode 100644 (file)
index 993b67a..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/********************************************************************
- * openWYSIWYG settings file Copyright (c) 2006 openWebWare.com
- * Contact us at devs@openwebware.com
- * This copyright notice MUST stay intact for use.
- *
- * $Id: wysiwyg-settings.js,v 1.4 2007/01/22 23:05:57 xhaggi Exp $
- ********************************************************************/
-
-/*
- * Full featured setup used the openImageLibrary addon
- */
-var full = new WYSIWYG.Settings();
-//full.ImagesDir = "images/";
-//full.PopupsDir = "popups/";
-//full.CSSFile = "styles/wysiwyg.css";
-full.Width = "85%"; 
-full.Height = "250px";
-// customize toolbar buttons
-full.addToolbarElement("font", 3, 1); 
-full.addToolbarElement("fontsize", 3, 2);
-full.addToolbarElement("headings", 3, 3);
-// openImageLibrary addon implementation
-full.ImagePopupFile = "addons/imagelibrary/insert_image.php";
-full.ImagePopupWidth = 600;
-full.ImagePopupHeight = 245;
-
-/*
- * Small Setup Example
- */
-var small = new WYSIWYG.Settings();
-small.Width = "350px";
-small.Height = "100px";
-small.DefaultStyle = "font-family: Arial; font-size: 12px; background-color: #AA99AA";
-small.Toolbar[0] = new Array("font", "fontsize", "bold", "italic", "underline"); // small setup for toolbar 1
-small.Toolbar[1] = ""; // disable toolbar 2
-small.StatusBarEnabled = false;
diff --git a/openwysiwyg/scripts/wysiwyg.js b/openwysiwyg/scripts/wysiwyg.js
deleted file mode 100644 (file)
index 31d5d38..0000000
+++ /dev/null
@@ -1,2892 +0,0 @@
-/********************************************************************
- * openWYSIWYG v1.47 Copyright (c) 2006 openWebWare.com
- * Contact us at devs@openwebware.com
- * This copyright notice MUST stay intact for use.
- *
- * $Id: wysiwyg.js,v 1.22 2007/09/08 21:45:57 xhaggi Exp $
- * $Revision: 1.22 $
- *
- * An open source WYSIWYG editor for use in web based applications.
- * For full source code and docs, visit http://www.openwebware.com
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published
- * by the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License along
- * with this library; if not, write to the Free Software Foundation, Inc., 59
- * Temple Place, Suite 330, Boston, MA 02111-1307 USA
- ********************************************************************/
-var WYSIWYG = {
-
-    /**
-     * Settings class, holds all customizeable properties
-     */
-    Settings: function(){
-    
-        // Images Directory
-        this.ImagesDir = "./openwysiwyg/images/";
-        
-        // Popups Directory
-        this.PopupsDir = "./openwysiwyg/popups/";
-        
-        // CSS Directory File
-        this.CSSFile = "./openwysiwyg/styles/wysiwyg.css";
-        
-        // Default WYSIWYG width and height (use px or %)
-        this.Width = "500px";
-        this.Height = "300px";
-        
-        // Default stylesheet of the WYSIWYG editor window
-        this.DefaultStyle = "font-family: Arial; font-size: 12px; background-color: #FFFFFF";
-        
-        // Stylesheet if editor is disabled
-        this.DisabledStyle = "font-family: Arial; font-size: 12px; background-color: #EEEEEE";
-        
-        // Width + Height of the preview window
-        this.PreviewWidth = 500;
-        this.PreviewHeight = 400;
-        
-        // Confirmation message if you strip any HTML added by word
-        this.RemoveFormatConfMessage = "Clean HTML inserted by MS Word ?";
-        
-        // Nofication if browser is not supported by openWYSIWYG, leave it blank for no message output.
-        this.NoValidBrowserMessage = "openWYSIWYG does not support your browser.";
-        
-        // Anchor path to strip, leave it blank to ignore
-        // or define auto to strip the path where the editor is placed 
-        // (only IE)
-        this.AnchorPathToStrip = "auto";
-        
-        // Image path to strip, leave it blank to ignore
-        // or define auto to strip the path where the editor is placed 
-        // (only IE)
-        this.ImagePathToStrip = "auto";
-        
-        // Enable / Disable the custom context menu
-        this.ContextMenu = true;
-        
-        // Enabled the status bar update. Within the status bar 
-        // node tree of the actually selected element will build
-        this.StatusBarEnabled = true;
-        
-        // If enabled than the capability of the IE inserting line breaks will be inverted.
-        // Normal: ENTER = <p> , SHIFT + ENTER = <br>
-        // Inverted: ENTER = <br>, SHIFT + ENTER = <p>
-        this.InvertIELineBreaks = false;
-        
-        // Replace line breaks with <br> tags
-        this.ReplaceLineBreaks = false;
-        
-        // Page that opened the WYSIWYG (Used for the return command)
-        this.Opener = "admin.asp";
-        
-        // Insert image implementation
-        this.ImagePopupFile = "";
-        this.ImagePopupWidth = 0;
-        this.ImagePopupHeight = 0;
-        
-        // Holds the available buttons displayed 
-        // on the toolbar of the editor
-        this.Toolbar = new Array();
-        this.Toolbar[0] = new Array("font", "fontsize", "headings", "bold", "italic", "underline", "strikethrough", "seperator", "forecolor", "backcolor", "seperator", "justifyfull", "justifyleft", "justifycenter", "justifyright", "seperator", "unorderedlist", "orderedlist", "outdent", "indent");
-        this.Toolbar[1] = new Array("save", // "return",  // return button disabled by default
- "seperator", "subscript", "superscript", "seperator", "cut", "copy", "paste", "removeformat", "seperator", "undo", "redo", "seperator", "inserttable", "insertimage", "createlink", "seperator", "preview", "print", "seperator", "viewSource", "maximize", "seperator", "help");
-        
-        // DropDowns
-        this.DropDowns = new Array();
-        // Fonts
-        this.DropDowns['font'] = {
-            id: "fonts",
-            command: "FontName",
-            label: "<font style=\"font-family:{value};font-size:12px;\">{value}</font>",
-            width: "90px",
-            elements: new Array("Arial", "Sans Serif", "Tahoma", "Verdana", "Courier New", "Georgia", "Times New Roman", "Impact", "Comic Sans MS")
-        };
-        // Font sizes
-        this.DropDowns['fontsize'] = {
-            id: "fontsizes",
-            command: "FontSize",
-            label: "<font size=\"{value}\">Size {value}</font>",
-            width: "54px",
-            elements: new Array("1", "2", "3", "4", "5", "6", "7")
-        };
-        // Headings
-        this.DropDowns['headings'] = {
-            id: "headings",
-            command: "FormatBlock",
-            label: "<{value} style=\"margin:0px;text-decoration:none;font-family:Arial\">{value}</{value}>",
-            width: "74px",
-            elements: new Array("H1", "H2", "H3", "H4", "H5", "H6")
-        };
-        
-        // Add the given element to the defined toolbar
-        // on the defined position
-        this.addToolbarElement = function(element, toolbar, position){
-            if (element != "seperator") {
-                this.removeToolbarElement(element);
-            }
-            if (this.Toolbar[toolbar - 1] == null) {
-                this.Toolbar[toolbar - 1] = new Array();
-            }
-            this.Toolbar[toolbar - 1].splice(position + 1, 1, element);
-        };
-        
-        // Remove an element from the toolbar
-        this.removeToolbarElement = function(element){
-            if (element == "seperator") {
-                return;
-            } // do not remove seperators
-            for (var i = 0; i < this.Toolbar.length; i++) {
-                if (this.Toolbar[i]) {
-                    var toolbar = this.Toolbar[i];
-                    for (var j = 0; j < toolbar.length; j++) {
-                        if (toolbar[j] != null && toolbar[j] == element) {
-                            this.Toolbar[i].splice(j, 1);
-                        }
-                    }
-                }
-            }
-        };
-        
-        // clear all or a given toolbar
-        this.clearToolbar = function(toolbar){
-            if (typeof toolbar == "undefined") {
-                this.Toolbar = new Array();
-            }
-            else {
-                this.Toolbar[toolbar + 1] = new Array();
-            }
-        };
-        
-    },
-    
-    
-    /* ---------------------------------------------------------------------- *\
-     !! Do not change something below or you know what you are doning !!
-     \* ---------------------------------------------------------------------- */
-    // List of available block formats (not in use)
-    //BlockFormats: new Array("Address", "Bulleted List", "Definition", "Definition Term", "Directory List", "Formatted", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Heading 5", "Heading 6", "Menu List", "Normal", "Numbered List"),
-    
-    // List of available actions and their respective ID and images
-    ToolbarList: {
-        //Name              buttonID               buttonTitle                 buttonImage               buttonImageRollover
-        "bold": ['Bold', 'Bold', 'bold.gif', 'bold_on.gif'],
-        "italic": ['Italic', 'Italic', 'italics.gif', 'italics_on.gif'],
-        "underline": ['Underline', 'Underline', 'underline.gif', 'underline_on.gif'],
-        "strikethrough": ['Strikethrough', 'Strikethrough', 'strikethrough.gif', 'strikethrough_on.gif'],
-        "seperator": ['', '', 'seperator.gif', 'seperator.gif'],
-        "subscript": ['Subscript', 'Subscript', 'subscript.gif', 'subscript_on.gif'],
-        "superscript": ['Superscript', 'Superscript', 'superscript.gif', 'superscript_on.gif'],
-        "justifyleft": ['Justifyleft', 'Justifyleft', 'justify_left.gif', 'justify_left_on.gif'],
-        "justifycenter": ['Justifycenter', 'Justifycenter', 'justify_center.gif', 'justify_center_on.gif'],
-        "justifyright": ['Justifyright', 'Justifyright', 'justify_right.gif', 'justify_right_on.gif'],
-        "justifyfull": ['Justifyfull', 'Justifyfull', 'justify_justify.gif', 'justify_justify_on.gif'],
-        "unorderedlist": ['InsertUnorderedList', 'Insert Unordered List', 'list_unordered.gif', 'list_unordered_on.gif'],
-        "orderedlist": ['InsertOrderedList', 'Insert Ordered List', 'list_ordered.gif', 'list_ordered_on.gif'],
-        "outdent": ['Outdent', 'Outdent', 'indent_left.gif', 'indent_left_on.gif'],
-        "indent": ['Indent', 'Indent', 'indent_right.gif', 'indent_right_on.gif'],
-        "cut": ['Cut', 'Cut', 'cut.gif', 'cut_on.gif'],
-        "copy": ['Copy', 'Copy', 'copy.gif', 'copy_on.gif'],
-        "paste": ['Paste', 'Paste', 'paste.gif', 'paste_on.gif'],
-        "forecolor": ['ForeColor', 'Fore Color', 'forecolor.gif', 'forecolor_on.gif'],
-        "backcolor": ['BackColor', 'Back Color', 'backcolor.gif', 'backcolor_on.gif'],
-        "undo": ['Undo', 'Undo', 'undo.gif', 'undo_on.gif'],
-        "redo": ['Redo', 'Redo', 'redo.gif', 'redo_on.gif'],
-        "inserttable": ['InsertTable', 'Insert Table', 'insert_table.gif', 'insert_table_on.gif'],
-        "insertimage": ['InsertImage', 'Insert Image', 'insert_picture.gif', 'insert_picture_on.gif'],
-        "createlink": ['CreateLink', 'Create Link', 'insert_hyperlink.gif', 'insert_hyperlink_on.gif'],
-        "viewSource": ['ViewSource', 'View Source', 'view_source.gif', 'view_source_on.gif'],
-        "viewText": ['ViewText', 'View Text', 'view_text.gif', 'view_text_on.gif'],
-        "help": ['Help', 'Help', 'help.gif', 'help_on.gif'],
-        "fonts": ['Fonts', 'Select Font', 'select_font.gif', 'select_font_on.gif'],
-        "fontsizes": ['Fontsizes', 'Select Size', 'select_size.gif', 'select_size_on.gif'],
-        "headings": ['Headings', 'Select Size', 'select_heading.gif', 'select_heading_on.gif'],
-        "preview": ['Preview', 'Preview', 'preview.gif', 'preview_on.gif'],
-        "print": ['Print', 'Print', 'print.gif', 'print_on.gif'],
-        "removeformat": ['RemoveFormat', 'Strip Word HTML', 'remove_format.gif', 'remove_format_on.gif'],
-        "delete": ['Delete', 'Delete', 'delete.gif', 'delete_on.gif'],
-        "save": ['Save', 'Save document', 'save.gif', 'save_on.gif'],
-        "return": ['Return', 'Return without saving', 'return.gif', 'return_on.gif'],
-        "maximize": ['Maximize', 'Maximize the editor', 'maximize.gif', 'maximize_on.gif']
-    },
-    
-    // stores the different settings for each textarea
-    // the textarea identifier is used to store the settings object
-    config: new Array(),
-    // Create viewTextMode global variable and set to 0
-    // enabling all toolbar commands while in HTML mode
-    viewTextMode: new Array(),
-    // maximized
-    maximized: new Array(),
-    
-    /**
-     * Get the range of the given selection
-     *
-     * @param {Selection} sel Selection object
-     * @return {Range} Range object
-     */
-    getRange: function(sel){
-        return sel.createRange ? sel.createRange() : sel.getRangeAt(0);
-    },
-    
-    /**
-     * Return the editor div element
-     *
-     * @param {String} n Editor identifier
-     * @return {HtmlDivElement} Iframe object
-     */
-    getEditorDiv: function(n){
-        return $("wysiwyg_div_" + n);
-    },
-    
-    /**
-     * Return the editor table element
-     *
-     * @param {String} n Editor identifier
-     * @return {HtmlTableElement} Iframe object
-     */
-    getEditorTable: function(n){
-        return $("wysiwyg_table_" + n);
-    },
-    
-    /**
-     * Get the iframe object of the WYSIWYG editor
-     *
-     * @param {String} n Editor identifier
-     * @return {HtmlIframeElement} Iframe object
-     */
-    getEditor: function(n){
-        return $("wysiwyg" + n);
-    },
-    
-    /**
-     * Get editors window element
-     *
-     * @param {String} n Editor identifier
-     * @return {HtmlWindowElement} Html window object
-     */
-    getEditorWindow: function(n){
-        return this.getEditor(n).contentWindow;
-    },
-    
-    /**
-     * Attach the WYSIWYG editor to the given textarea element
-     *
-     * @param {String} id Textarea identifier (all = all textareas)
-     * @param {Settings} settings the settings which will be applied to the textarea
-     */
-    attach: function(id, settings){
-        if (id != "all") {
-            this.setSettings(id, settings);
-            WYSIWYG_Core.includeCSS(this.config[id].CSSFile);
-            WYSIWYG_Core.addEvent(window, "load", function generateEditor(){
-                WYSIWYG._generate(id, settings);
-            });
-        }
-        else {
-            WYSIWYG_Core.addEvent(window, "load", function generateEditor(){
-                WYSIWYG.attachAll(settings);
-            });
-        }
-    },
-    
-    /**
-     * Attach the WYSIWYG editor to all textarea elements
-     *
-     * @param {Settings} settings Settings to customize the look and feel
-     */
-    attachAll: function(settings){
-        var areas = document.getElementsByTagName("textarea");
-        for (var i = 0; i < areas.length; i++) {
-            var id = areas[i].getAttribute("id");
-            if (id == null || id == "") 
-                continue;
-            this.setSettings(id, settings);
-            WYSIWYG_Core.includeCSS(this.config[id].CSSFile);
-            WYSIWYG._generate(id, settings);
-        }
-    },
-    
-    /**
-     * Display an iframe instead of the textarea.
-     * It's used as textarea replacement to display HTML.
-     *
-     * @param id Textarea identifier (all = all textareas)
-     * @param settings the settings which will be applied to the textarea
-     */
-    display: function(id, settings){
-        if (id != "all") {
-            this.setSettings(id, settings);
-            WYSIWYG_Core.includeCSS(this.config[id].CSSFile);
-            WYSIWYG_Core.addEvent(window, "load", function displayIframe(){
-                WYSIWYG._display(id, settings);
-            });
-        }
-        else {
-            WYSIWYG_Core.addEvent(window, "load", function displayIframe(){
-                WYSIWYG.displayAll(settings);
-            });
-        }
-    },
-    
-    /**
-     * Display an iframe instead of the textarea.
-     * It's apply the iframe to all textareas found in the current document.
-     *
-     * @param settings Settings to customize the look and feel
-     */
-    displayAll: function(settings){
-        var areas = document.getElementsByTagName("textarea");
-        for (var i = 0; i < areas.length; i++) {
-            var id = areas[i].getAttribute("id");
-            if (id == null || id == "") 
-                continue;
-            this.setSettings(id, settings);
-            WYSIWYG_Core.includeCSS(this.config[id].CSSFile);
-            WYSIWYG._display(id, settings);
-        }
-    },
-    
-    /**
-     * Set settings in config array, use the textarea id as identifier
-     *
-     * @param n Textarea identifier (all = all textareas)
-     * @param settings the settings which will be applied to the textarea
-     */
-    setSettings: function(n, settings){
-        if (typeof(settings) != "object") {
-            this.config[n] = new this.Settings();
-        }
-        else {
-            this.config[n] = settings;
-        }
-    },
-    
-    /**
-     * Insert or modify an image
-     *
-     * @param {String} src Source of the image
-     * @param {Integer} width Width
-     * @param {Integer} height Height
-     * @param {String} align Alignment of the image
-     * @param {String} border Border size
-     * @param {String} alt Alternativ Text
-     * @param {Integer} hspace Horizontal Space
-     * @param {Integer} vspace Vertical Space
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    insertImage: function(src, width, height, align, border, alt, hspace, vspace, n){
-    
-        // get editor
-        var doc = this.getEditorWindow(n).document;
-        // get selection and range
-        var sel = this.getSelection(n);
-        var range = this.getRange(sel);
-        
-        // the current tag of range
-        var img = this.findParent("img", range);
-        
-        // element is not a link
-        var update = (img == null) ? false : true;
-        if (!update) {
-            img = doc.createElement("img");
-        }
-        
-        // set the attributes
-        WYSIWYG_Core.setAttribute(img, "src", src);
-        WYSIWYG_Core.setAttribute(img, "style", "width:" + width + ";height:" + height);
-        if (align != "") {
-            WYSIWYG_Core.setAttribute(img, "align", align);
-        }
-        else {
-            img.removeAttribute("align");
-        }
-        WYSIWYG_Core.setAttribute(img, "border", border);
-        WYSIWYG_Core.setAttribute(img, "alt", alt);
-        WYSIWYG_Core.setAttribute(img, "hspace", hspace);
-        WYSIWYG_Core.setAttribute(img, "vspace", vspace);
-        img.removeAttribute("width");
-        img.removeAttribute("height");
-        
-        // on update exit here
-        if (update) {
-            return;
-        }
-        
-        // Check if IE or Mozilla (other)
-        if (WYSIWYG_Core.isMSIE) {
-            range.pasteHTML(img.outerHTML);
-        }
-        else {
-            this.insertNodeAtSelection(img, n);
-        }
-    },
-    
-    /**
-     * Insert or modify a link
-     *
-     * @param {String} href The url of the link
-     * @param {String} target Target of the link
-     * @param {String} style Stylesheet of the link
-     * @param {String} styleClass Stylesheet class of the link
-     * @param {String} name Name attribute of the link
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    insertLink: function(href, target, style, styleClass, name, n){
-    
-        // get editor
-        var doc = this.getEditorWindow(n).document;
-        // get selection and range
-        var sel = this.getSelection(n);
-        var range = this.getRange(sel);
-        var lin = null;
-        
-        // get element from selection
-        if (WYSIWYG_Core.isMSIE) {
-            if (sel.type == "Control" && range.length == 1) {
-                range = this.getTextRange(range(0));
-                range.select();
-            }
-        }
-        
-        // find a as parent element
-        lin = this.findParent("a", range);
-        
-        // check if parent is found
-        var update = (lin == null) ? false : true;
-        if (!update) {
-            lin = doc.createElement("a");
-        }
-        
-        // set the attributes
-        WYSIWYG_Core.setAttribute(lin, "href", href);
-        WYSIWYG_Core.setAttribute(lin, "class", styleClass);
-        WYSIWYG_Core.setAttribute(lin, "className", styleClass);
-        WYSIWYG_Core.setAttribute(lin, "target", target);
-        WYSIWYG_Core.setAttribute(lin, "name", name);
-        WYSIWYG_Core.setAttribute(lin, "style", style);
-        
-        // on update exit here
-        if (update) {
-            return;
-        }
-        
-        // Check if IE or Mozilla (other)
-        if (WYSIWYG_Core.isMSIE) {
-            range.select();
-            lin.innerHTML = range.htmlText;
-            range.pasteHTML(lin.outerHTML);
-        }
-        else {
-            var node = range.startContainer;
-            var pos = range.startOffset;
-            if (node.nodeType != 3) {
-                node = node.childNodes[pos];
-            }
-            if (node.tagName) 
-                lin.appendChild(node);
-            else 
-                lin.innerHTML = sel;
-            this.insertNodeAtSelection(lin, n);
-        }
-    },
-    
-    /**
-     * Strips any HTML added by word
-     *
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    removeFormat: function(n){
-    
-        if (!confirm(this.config[n].RemoveFormatConfMessage)) {
-            return;
-        }
-        var doc = this.getEditorWindow(n).document;
-        var str = doc.body.innerHTML;
-        
-        str = str.replace(/<span([^>])*>(&nbsp;)*\s*<\/span>/gi, '');
-        str = str.replace(/<span[^>]*>/gi, '');
-        str = str.replace(/<\/span[^>]*>/gi, '');
-        str = str.replace(/<p([^>])*>(&nbsp;)*\s*<\/p>/gi, '');
-        str = str.replace(/<p[^>]*>/gi, '');
-        str = str.replace(/<\/p[^>]*>/gi, '');
-        str = str.replace(/<h([^>])[0-9]>(&nbsp;)*\s*<\/h>/gi, '');
-        str = str.replace(/<h[^>][0-9]>/gi, '');
-        str = str.replace(/<\/h[^>][0-9]>/gi, '');
-        str = str.replace(/<B [^>]*>/ig, '<b>');
-        
-        // var repl_i1 = /<I[^>]*>/ig;
-        // str = str.replace (repl_i1, '<i>');
-        
-        str = str.replace(/<DIV[^>]*>/ig, '');
-        str = str.replace(/<\/DIV>/gi, '');
-        str = str.replace(/<[\/\w?]+:[^>]*>/ig, '');
-        str = str.replace(/(&nbsp;){2,}/ig, '&nbsp;');
-        str = str.replace(/<STRONG>/ig, '');
-        str = str.replace(/<\/STRONG>/ig, '');
-        str = str.replace(/<TT>/ig, '');
-        str = str.replace(/<\/TT>/ig, '');
-        str = str.replace(/<FONT [^>]*>/ig, '');
-        str = str.replace(/<\/FONT>/ig, '');
-        str = str.replace(/STYLE=\"[^\"]*\"/ig, '');
-        str = str.replace(/<([\w]+) class=([^ |>]*)([^>]*)/gi, '<$1$3');
-        str = str.replace(/<([\w]+) style="([^"]*)"([^>]*)/gi, '<$1$3');
-        str = str.replace(/width=([^ |>]*)([^>]*)/gi, '');
-        str = str.replace(/classname=([^ |>]*)([^>]*)/gi, '');
-        str = str.replace(/align=([^ |>]*)([^>]*)/gi, '');
-        str = str.replace(/valign=([^ |>]*)([^>]*)/gi, '');
-        str = str.replace(/<\\?\??xml[^>]>/gi, '');
-        str = str.replace(/<\/?\w+:[^>]*>/gi, '');
-        str = str.replace(/<st1:.*?>/gi, '');
-        str = str.replace(/o:/gi, '');
-        
-        str = str.replace(/<!--([^>])*>(&nbsp;)*\s*<\/-->/gi, '');
-        str = str.replace(/<!--[^>]*>/gi, '');
-        str = str.replace(/<\/--[^>]*>/gi, '');
-        
-        doc.body.innerHTML = str;
-    },
-    
-    /**
-     * Display an iframe instead of the textarea.
-     *
-     * @private
-     * @param {String} n The editor identifier (the textarea's ID)
-     * @param {Object} settings Object which holds the settings
-     */
-    _display: function(n, settings){
-    
-        // Get the textarea element
-        var textarea = $(n);
-        
-        // Validate if textarea exists
-        if (textarea == null) {
-            alert("No textarea found with the given identifier (ID: " + n + ").");
-            return;
-        }
-        
-        // Validate browser compatiblity
-        if (!WYSIWYG_Core.isBrowserCompatible()) {
-            if (this.config[n].NoValidBrowserMessage != "") {
-                alert(this.config[n].NoValidBrowserMessage);
-            }
-            return;
-        }
-        
-        // Load settings in config array, use the textarea id as identifier
-        if (typeof(settings) != "object") {
-            this.config[n] = new this.Settings();
-        }
-        else {
-            this.config[n] = settings;
-        }
-        
-        // Hide the textarea 
-        textarea.style.display = "none";
-        
-        // Override the width and height of the editor with the 
-        // size given by the style attributes width and height
-        if (textarea.style.width) {
-            this.config[n].Width = textarea.style.width;
-        }
-        if (textarea.style.height) {
-            this.config[n].Height = textarea.style.height
-        }
-        
-        // determine the width + height
-        var currentWidth = this.config[n].Width;
-        var currentHeight = this.config[n].Height;
-        
-        // Calculate the width + height of the editor 
-        var ifrmWidth = "100%";
-        var ifrmHeight = "100%";
-        if (currentWidth.search(/%/) == -1) {
-            ifrmWidth = currentWidth;
-            ifrmHeight = currentHeight;
-        }
-        
-        // Create iframe which will be used for rich text editing
-        var iframe = '<table cellpadding="0" cellspacing="0" border="0" style="width:' + currentWidth + '; height:' + currentHeight + ';" class="tableTextareaEditor"><tr><td valign="top">\n' +
-        '<iframe frameborder="0" id="wysiwyg' +
-        n +
-        '" class="iframeText" style="width:' +
-        ifrmWidth +
-        ';height:' +
-        ifrmHeight +
-        ';"></iframe>\n' +
-        '</td></tr></table>\n';
-        
-        // Insert after the textArea both toolbar one and two
-        textarea.insertAdjacentHTML("afterEnd", iframe);
-        
-        // Pass the textarea's existing text over to the content variable
-        var content = textarea.value;
-        var doc = this.getEditorWindow(n).document;
-        
-        // Replace all \n with <br> 
-        if (this.config[n].ReplaceLineBreaks) {
-            content = content.replace(/(\r\n)|(\n)/ig, "<br>");
-        }
-        
-        // Write the textarea's content into the iframe
-        doc.open();
-        doc.write(content);
-        doc.close();
-        
-        // Set default style of the editor window
-        WYSIWYG_Core.setAttribute(doc.body, "style", this.config[n].DefaultStyle);
-    },
-    
-    /**
-     * Replace the given textarea with wysiwyg editor
-     *
-     * @private
-     * @param {String} n The editor identifier (the textarea's ID)
-     * @param {Object} settings Object which holds the settings
-     */
-    _generate: function(n, settings){
-    
-        // Get the textarea element
-        var textarea = $(n);
-        // Validate if textarea exists
-        if (textarea == null) {
-            alert("No textarea found with the given identifier (ID: " + n + ").");
-            return;
-        }
-        
-        // Validate browser compatiblity
-        if (!WYSIWYG_Core.isBrowserCompatible()) {
-            if (this.config[n].NoValidBrowserMessage != "") {
-                alert(this.config[n].NoValidBrowserMessage);
-            }
-            return;
-        }
-        
-        // Hide the textarea 
-        textarea.style.display = 'none';
-        
-        // Override the width and height of the editor with the 
-        // size given by the style attributes width and height
-        if (textarea.style.width) {
-            this.config[n].Width = textarea.style.width;
-        }
-        if (textarea.style.height) {
-            this.config[n].Height = textarea.style.height
-        }
-        
-        // determine the width + height
-        var currentWidth = this.config[n].Width;
-        var currentHeight = this.config[n].Height;
-        
-        // Calculate the width + height of the editor 
-        var toolbarWidth = currentWidth;
-        var ifrmWidth = "100%";
-        var ifrmHeight = "100%";
-        if (currentWidth.search(/%/) == -1) {
-            toolbarWidth = currentWidth.replace(/px/gi, "");
-            toolbarWidth = (parseFloat(toolbarWidth) + 2) + "px";
-            ifrmWidth = currentWidth;
-            ifrmHeight = currentHeight;
-        }
-        
-        // Generate the WYSIWYG Table
-        // This table holds the toolbars and the iframe as the editor
-        var editor = "";
-        editor += '<div id="wysiwyg_div_' + n + '" style="width:' + currentWidth + ';">';
-        editor += '<table border="0" cellpadding="0" cellspacing="0" class="tableTextareaEditor" id="wysiwyg_table_' + n + '" style="width:' + currentWidth + '; height:' + currentHeight + ';">';
-        editor += '<tr><td style="height:22px;vertical-align:top;">';
-        
-        // Output all command buttons that belong to toolbar one
-        for (var j = 0; j < this.config[n].Toolbar.length; j++) {
-            if (this.config[n].Toolbar[j] && this.config[n].Toolbar[j].length > 0) {
-                var toolbar = this.config[n].Toolbar[j];
-                
-                // Generate WYSIWYG toolbar one
-                editor += '<table border="0" cellpadding="0" cellspacing="0" class="toolbar1" style="width:100%;" id="toolbar' + j + '_' + n + '">';
-                editor += '<tr><td style="width:6px;"><img src="' + this.config[n].ImagesDir + 'seperator2.gif" alt="" hspace="3"></td>';
-                
-                // Interate over the toolbar element
-                for (var i = 0; i < toolbar.length; i++) {
-                    var id = toolbar[i];
-                    if (toolbar[i]) {
-                        if (typeof(this.config[n].DropDowns[id]) != "undefined") {
-                            var dropdown = this.config[n].DropDowns[id];
-                            editor += '<td style="width: ' + dropdown.width + ';">';
-                            // write the drop down content
-                            editor += this.writeDropDown(n, id);
-                            editor += '</td>';
-                        }
-                        else {
-                        
-                            // Get the values of the Button from the global ToolbarList object
-                            var buttonObj = this.ToolbarList[toolbar[i]];
-                            if (buttonObj) {
-                                var buttonID = buttonObj[0];
-                                var buttonTitle = buttonObj[1];
-                                var buttonImage = this.config[n].ImagesDir + buttonObj[2];
-                                var buttonImageRollover = this.config[n].ImagesDir + buttonObj[3];
-                                
-                                if (toolbar[i] == "seperator") {
-                                    editor += '<td style="width: 12px;" align="center">';
-                                    editor += '<img src="' + buttonImage + '" border=0 unselectable="on" width="2" height="18" hspace="2" unselectable="on">';
-                                    editor += '</td>';
-                                }
-                                // View Source button
-                                else 
-                                    if (toolbar[i] == "viewSource") {
-                                        editor += '<td style="width: 22px;">';
-                                        editor += '<span id="HTMLMode' + n + '"><img src="' + buttonImage + '" border="0" unselectable="on" title="' + buttonTitle + '" id="' + buttonID + '" class="buttonEditor" onmouseover="this.className=\'buttonEditorOver\'; this.src=\'' + buttonImageRollover + '\';" onmouseout="this.className=\'buttonEditor\'; this.src=\'' + buttonImage + '\';" onclick="WYSIWYG.execCommand(\'' + n + '\', \'' + buttonID + '\');" unselectable="on" width="20" height="20"></span>';
-                                        editor += '<span id="textMode' + n + '"><img src="' + this.config[n].ImagesDir + 'view_text.gif" border="0" unselectable="on" title="viewText" id="ViewText" class="buttonEditor" onmouseover="this.className=\'buttonEditorOver\'; this.src=\'' + this.config[n].ImagesDir + 'view_text_on.gif\';" onmouseout="this.className=\'buttonEditor\'; this.src=\'' + this.config[n].ImagesDir + 'view_text.gif\';" onclick="WYSIWYG.execCommand(\'' + n + '\',\'ViewText\');" unselectable="on"  width="20" height="20"></span>';
-                                        editor += '</td>';
-                                    }
-                                    else {
-                                        editor += '<td style="width: 22px;">';
-                                        editor += '<img src="' + buttonImage + '" border=0 unselectable="on" title="' + buttonTitle + '" id="' + buttonID + '" class="buttonEditor" onmouseover="this.className=\'buttonEditorOver\'; this.src=\'' + buttonImageRollover + '\';" onmouseout="this.className=\'buttonEditor\'; this.src=\'' + buttonImage + '\';" onclick="WYSIWYG.execCommand(\'' + n + '\', \'' + buttonID + '\');" unselectable="on" width="20" height="20">';
-                                        editor += '</td>';
-                                    }
-                            }
-                        }
-                    }
-                }
-                editor += '<td>&nbsp;</td></tr></table>';
-            }
-        }
-        
-        editor += '</td></tr><tr><td valign="top">\n';
-        // Create iframe which will be used for rich text editing
-        editor += '<iframe frameborder="0" id="wysiwyg' + n + '" class="iframeText" style="width:100%;height:' + currentHeight + ';"></iframe>\n' +
-        '</td></tr>';
-        // Status bar HTML code
-        if (this.config[n].StatusBarEnabled) {
-            editor += '<tr><td class="wysiwyg-statusbar" style="height:10px;" id="wysiwyg_statusbar_' + n + '">&nbsp;</td></tr>';
-        }
-        editor += '</table>';
-        editor += '</div>';
-        
-        // Insert the editor after the textarea            
-        textarea.insertAdjacentHTML("afterEnd", editor);
-        
-        // Hide the "Text Mode" button
-        // Validate if textMode Elements are prensent
-        if ($("textMode" + n)) {
-            $("textMode" + n).style.display = 'none';
-        }
-        
-        // Pass the textarea's existing text over to the content variable
-        var content = textarea.value;
-        var doc = this.getEditorWindow(n).document;
-        
-        
-        // Replace all \n with <br> 
-        if (this.config[n].ReplaceLineBreaks) {
-            content = content.replace(/\n\r|\n/ig, "<br>");
-        }
-        
-        // Write the textarea's content into the iframe
-        doc.open();
-        doc.write(content);
-        doc.close();
-        
-        // Make the iframe editable in both Mozilla and IE
-        // Improve compatiblity for IE + Mozilla
-        if (doc.body.contentEditable) {
-            doc.body.contentEditable = true;
-        }
-        else {
-            doc.designMode = "on";
-        }
-        
-        // Set default font style
-        WYSIWYG_Core.setAttribute(doc.body, "style", this.config[n].DefaultStyle);
-        
-        // Enable table highlighting
-        WYSIWYG_Table.refreshHighlighting(n);
-        
-        // Event Handling
-        // Update the textarea with content in WYSIWYG when user submits form
-        for (var idx = 0; idx < document.forms.length; idx++) {
-            WYSIWYG_Core.addEvent(document.forms[idx], "submit", function xxx_aa(){
-                WYSIWYG.updateTextArea(n);
-            });
-        }
-        
-        // close font selection if mouse moves over the editor window
-        WYSIWYG_Core.addEvent(doc, "mouseover", function xxx_bb(){
-            WYSIWYG.closeDropDowns(n);
-        });
-        
-        // If it's true invert the line break capability of IE
-        if (this.config[n].InvertIELineBreaks) {
-            WYSIWYG_Core.addEvent(doc, "keypress", function xxx_cc(){
-                WYSIWYG.invertIELineBreakCapability(n);
-            });
-        }
-        
-        // status bar update
-        if (this.config[n].StatusBarEnabled) {
-            WYSIWYG_Core.addEvent(doc, "mouseup", function xxx_dd(){
-                WYSIWYG.updateStatusBar(n);
-            });
-        }
-        
-        // custom context menu
-        if (this.config[n].ContextMenu) {
-            WYSIWYG_ContextMenu.init(n);
-        }
-        
-        // init viewTextMode var
-        this.viewTextMode[n] = false;
-    },
-    
-    /**
-     * Disable the given WYSIWYG Editor Box
-     *
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    disable: function(n){
-    
-        // get the editor window
-        var editor = this.getEditorWindow(n);
-        
-        // Validate if editor exists
-        if (editor == null) {
-            alert("No editor found with the given identifier (ID: " + n + ").");
-            return;
-        }
-        
-        if (editor) {
-            // disable design mode or content editable feature
-            if (editor.document.body.contentEditable) {
-                editor.document.body.contentEditable = false;
-            }
-            else {
-                editor.document.designMode = "Off";
-            }
-            
-            // change the style of the body
-            WYSIWYG_Core.setAttribute(editor.document.body, "style", this.config[n].DisabledStyle);
-            
-            // hide the status bar
-            this.hideStatusBar(n);
-            
-            // hide all toolbars
-            this.hideToolbars(n);
-        }
-    },
-    
-    /**
-     * Enables the given WYSIWYG Editor Box
-     *
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    enable: function(n){
-    
-        // get the editor window
-        var editor = this.getEditorWindow(n);
-        
-        // Validate if editor exists
-        if (editor == null) {
-            alert("No editor found with the given identifier (ID: " + n + ").");
-            return;
-        }
-        
-        if (editor) {
-            // disable design mode or content editable feature
-            if (editor.document.body.contentEditable) {
-                editor.document.body.contentEditable = true;
-            }
-            else {
-                editor.document.designMode = "On";
-            }
-            
-            // change the style of the body
-            WYSIWYG_Core.setAttribute(editor.document.body, "style", this.config[n].DefaultStyle);
-            
-            // hide the status bar
-            this.showStatusBar(n);
-            
-            // hide all toolbars
-            this.showToolbars(n);
-        }
-    },
-    
-    /**
-     * Returns the node structure of the current selection as array
-     *
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    getNodeTree: function(n){
-    
-        var sel = this.getSelection(n);
-        var range = this.getRange(sel);
-        
-        // get element of range
-        var tag = this.getTag(range);
-        if (tag == null) {
-            return;
-        }
-        // get parent of element
-        var node = this.getParent(tag);
-        // init the tree as array with the current selected element
-        var nodeTree = new Array(tag);
-        // get all parent nodes
-        var ii = 1;
-        
-        while (node != null && node.nodeName != "#document") {
-            nodeTree[ii] = node;
-            node = this.getParent(node);
-            ii++;
-        }
-        
-        return nodeTree;
-    },
-    
-    /**
-     * Removes the current node of the selection
-     *
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    removeNode: function(n){
-        // get selection and range
-        var sel = this.getSelection(n);
-        var range = this.getRange(sel);
-        // the current tag of range
-        var tag = this.getTag(range);
-        var parent = tag.parentNode;
-        if (tag == null || parent == null) {
-            return;
-        }
-        if (tag.nodeName == "HTML" || tag.nodeName == "BODY") {
-            return;
-        }
-        
-        // copy child elements of the node to the parent element before remove the node
-        var childNodes = new Array();
-        for (var i = 0; i < tag.childNodes.length; i++) 
-            childNodes[i] = tag.childNodes[i];
-        for (var i = 0; i < childNodes.length; i++) 
-            parent.insertBefore(childNodes[i], tag);
-        
-        // remove node
-        parent.removeChild(tag);
-        // validate if parent is a link and the node is only 
-        // surrounded by the link, then remove the link too
-        if (parent.nodeName == "A" && !parent.hasChildNodes()) {
-            if (parent.parentNode) {
-                parent.parentNode.removeChild(parent);
-            }
-        }
-        // update the status bar
-        this.updateStatusBar(n);
-    },
-    
-    /**
-     * Get the selection of the given editor
-     *
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    getSelection: function(n){
-        var ifrm = this.getEditorWindow(n);
-        var doc = ifrm.document;
-        var sel = null;
-        if (ifrm.getSelection) {
-            sel = ifrm.getSelection();
-        }
-        else 
-            if (doc.getSelection) {
-                sel = doc.getSelection();
-            }
-            else 
-                if (doc.selection) {
-                    sel = doc.selection;
-                }
-        return sel;
-    },
-    
-    /**
-     * Updates the status bar with the current node tree
-     *
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    updateStatusBar: function(n){
-    
-        // get the node structure
-        var nodeTree = this.getNodeTree(n);
-        if (nodeTree == null) {
-            return;
-        }
-        // format the output
-        var outputTree = "";
-        var max = nodeTree.length - 1;
-        for (var i = max; i >= 0; i--) {
-            if (nodeTree[i].nodeName != "HTML" && nodeTree[i].nodeName != "BODY") {
-                outputTree += '<a class="wysiwyg-statusbar" href="javascript:WYSIWYG.selectNode(\'' + n + '\',' + i + ');">' + nodeTree[i].nodeName + '</a>';
-            }
-            else {
-                outputTree += nodeTree[i].nodeName;
-            }
-            if (i > 0) {
-                outputTree += " > ";
-            }
-        }
-        
-        // update the status bar       
-        var statusbar = $("wysiwyg_statusbar_" + n);
-        if (statusbar) {
-            statusbar.innerHTML = outputTree;
-        }
-    },
-    
-    /**
-     * Execute a command on the editor document
-     *
-     * @param {String} command The execCommand (e.g. Bold)
-     * @param {String} n The editor identifier
-     * @param {String} value The value when applicable
-     */
-    execCommand: function(n, cmd, value){
-    
-        // When user clicks toolbar button make sure it always targets its respective WYSIWYG
-        this.getEditorWindow(n).focus();
-        
-        // When in Text Mode these execCommands are enabled
-        var textModeCommands = new Array("ViewText", "Print");
-        
-        // Check if in Text mode and a disabled command execute
-        var cmdValid = false;
-        for (var i = 0; i < textModeCommands.length; i++) {
-            if (textModeCommands[i] == cmd) {
-                cmdValid = true;
-            }
-        }
-        if (this.viewTextMode[n] && !cmdValid) {
-            alert("You are in TEXT Mode. This feature has been disabled.");
-            return;
-        }
-        
-        // rbg to hex convertion implementation dependents on browser
-        var toHexColor = WYSIWYG_Core.isMSIE ? WYSIWYG_Core._dec_to_rgb : WYSIWYG_Core.toHexColor;
-        
-        // popup screen positions
-        var popupPosition = {
-            left: parseInt(window.screen.availWidth / 3),
-            top: parseInt(window.screen.availHeight / 3)
-        };
-        
-        // Check the insert image popup implementation
-        var imagePopupFile = this.config[n].PopupsDir + 'insert_image.html';
-        var imagePopupWidth = 400;
-        var imagePopupHeight = 210;
-        if (typeof this.config[n].ImagePopupFile != "undefined" && this.config[n].ImagePopupFile != "") {
-            imagePopupFile = this.config[n].ImagePopupFile;
-        }
-        if (typeof this.config[n].ImagePopupWidth && this.config[n].ImagePopupWidth > 0) {
-            imagePopupWidth = this.config[n].ImagePopupWidth;
-        }
-        if (typeof this.config[n].ImagePopupHeight && this.config[n].ImagePopupHeight > 0) {
-            imagePopupHeight = this.config[n].ImagePopupHeight;
-        }
-        
-        // switch which action have to do
-        switch (cmd) {
-            case "Maximize":
-                this.maximize(n);
-                break;
-            case "FormatBlock":
-                WYSIWYG_Core.execCommand(n, cmd, "<" + value + ">");
-                break;
-            // ForeColor and 
-            case "ForeColor":
-                var rgb = this.getEditorWindow(n).document.queryCommandValue(cmd);
-                var currentColor = rgb != '' ? toHexColor(this.getEditorWindow(n).document.queryCommandValue(cmd)) : "000000";
-                window.open(this.config[n].PopupsDir + 'select_color.html?color=' + currentColor + '&command=' + cmd + '&wysiwyg=' + n, 'popup', 'location=0,status=0,scrollbars=0,width=210,height=165,top=' + popupPosition.top + ',left=' + popupPosition.left).focus();
-                break;
-                
-            // BackColor
-            case "BackColor":
-                var currentColor = toHexColor(this.getEditorWindow(n).document.queryCommandValue(cmd));
-                window.open(this.config[n].PopupsDir + 'select_color.html?color=' + currentColor + '&command=' + cmd + '&wysiwyg=' + n, 'popup', 'location=0,status=0,scrollbars=0,width=210,height=165,top=' + popupPosition.top + ',left=' + popupPosition.left).focus();
-                break;
-                
-            // InsertImage
-            case "InsertImage":
-                window.open(imagePopupFile + '?wysiwyg=' + n, 'popup', 'location=0,status=0,scrollbars=0,resizable=0,width=' + imagePopupWidth + ',height=' + imagePopupHeight + ',top=' + popupPosition.top + ',left=' + popupPosition.left).focus();
-                break;
-                
-            // Remove Image
-            case "RemoveImage":
-                this.removeImage(n);
-                break;
-                
-            // Remove Link
-            case "RemoveLink":
-                this.removeLink(n);
-                break;
-                
-            // Remove a Node
-            case "RemoveNode":
-                this.removeNode(n);
-                break;
-                
-            // Create Link
-            case "CreateLink":
-                window.open(this.config[n].PopupsDir + 'insert_hyperlink.html?wysiwyg=' + n, 'popup', 'location=0,status=0,scrollbars=0,resizable=0,width=350,height=160,top=' + popupPosition.top + ',left=' + popupPosition.left).focus();
-                break;
-                
-            // InsertTable
-            case "InsertTable":
-                window.open(this.config[n].PopupsDir + 'create_table.html?wysiwyg=' + n, 'popup', 'location=0,status=0,scrollbars=0,resizable=0,width=500,height=260,top=' + popupPosition.top + ',left=' + popupPosition.left).focus();
-                break;
-                
-            // ViewSource
-            case "ViewSource":
-                this.viewSource(n);
-                break;
-                
-            // ViewText
-            case "ViewText":
-                this.viewText(n);
-                break;
-                
-            // Help
-            case "Help":
-                window.open(this.config[n].PopupsDir + 'about.html?wysiwyg=' + n, 'popup', 'location=0,status=0,scrollbars=0,resizable=0,width=400,height=350,top=' + popupPosition.top + ',left=' + popupPosition.left).focus();
-                break;
-                
-            // Strip any HTML added by word
-            case "RemoveFormat":
-                this.removeFormat(n);
-                break;
-                
-            // Preview thx to Korvo
-            case "Preview":
-                window.open(this.config[n].PopupsDir + 'preview.html?wysiwyg=' + n, 'popup', 'location=0,status=0,scrollbars=1,resizable=1,width=' + this.config[n].PreviewWidth + ',height=' + this.config[n].PreviewHeight + ',top=' + popupPosition.top + ',left=' + popupPosition.left).focus();
-                break;
-                
-            // Print
-            case "Print":
-                this.print(n);
-                break;
-                
-            // Save
-            case "Save":
-                WYSIWYG.updateTextArea(n);
-                var form = WYSIWYG_Core.findParentNode("FORM", this.getEditor(n));
-                if (form == null) {
-                    alert("Can not submit the content, because no form element found.");
-                    return;
-                }
-                form.submit();
-                break;
-                
-            // Return
-            case "Return":
-                location.replace(this.config[n].Opener);
-                break;
-                
-            default:
-                WYSIWYG_Core.execCommand(n, cmd, value);
-                
-        }
-        
-        // hide node the font + font size selection
-        this.closeDropDowns(n);
-    },
-    
-    /**
-     * Maximize the editor instance
-     *
-     * @param {String} n The editor identifier
-     */
-    maximize: function(n){
-    
-        var divElm = this.getEditorDiv(n);
-        var tableElm = this.getEditorTable(n);
-        var editor = this.getEditor(n);
-        var setting = this.config[n];
-        var size = WYSIWYG_Core.windowSize();
-        size.width -= 5;
-        if (this.maximized[n]) {
-            WYSIWYG_Core.setAttribute(divElm, "style", "position:static;z-index:9998;top:0px;left:0px;width:" + setting.Width + ";height:100%;");
-            WYSIWYG_Core.setAttribute(tableElm, "style", "width:" + setting.Width + ";height:" + setting.Height + ";");
-            WYSIWYG_Core.setAttribute(editor, "style", "width:100%;height:" + setting.Height + ";");
-            this.maximized[n] = false;
-        }
-        else {
-            WYSIWYG_Core.setAttribute(divElm, "style", "position:absolute;z-index:9998;top:0px;left:0px;width:" + size.width + "px;height:" + size.height + "px;");
-            WYSIWYG_Core.setAttribute(tableElm, "style", "width:100%;height:100%;");
-            WYSIWYG_Core.setAttribute(editor, "style", "width:100%;height:100%;");
-            this.maximized[n] = true;
-        }
-        
-    },
-    
-    /**
-     * Insert HTML into WYSIWYG in rich text
-     *
-     * @param {String} html The HTML being inserted (e.g. <b>hello</b>)
-     * @param {String} n The editor identifier
-     */
-    insertHTML: function(html, n){
-        if (WYSIWYG_Core.isMSIE) {
-            this.getEditorWindow(n).document.selection.createRange().pasteHTML(html);
-        }
-        else {
-            var span = this.getEditorWindow(n).document.createElement("span");
-            span.innerHTML = html;
-            this.insertNodeAtSelection(span, n);
-        }
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : insertNodeAtSelection()
-     Description : insert HTML into WYSIWYG in rich text (mozilla)
-     Usage       : WYSIWYG.insertNodeAtSelection(insertNode, n)
-     Arguments   : insertNode - The HTML being inserted (must be innerHTML inserted within a div element)
-     n          - The editor identifier that the HTML will be inserted into (the textarea's ID)
-     \* ---------------------------------------------------------------------- */
-    insertNodeAtSelection: function(insertNode, n){
-    
-        // get editor document
-        var doc = this.getEditorWindow(n).document;
-        // get current selection
-        var sel = this.getSelection(n);
-        
-        // get the first range of the selection
-        // (there's almost always only one range)
-        var range = sel.getRangeAt(0);
-        
-        // deselect everything
-        sel.removeAllRanges();
-        
-        // remove content of current selection from document
-        range.deleteContents();
-        
-        // get location of current selection
-        var container = range.startContainer;
-        var pos = range.startOffset;
-        
-        // make a new range for the new selection
-        range = doc.createRange();
-        
-        if (container.nodeType == 3 && insertNode.nodeType == 3) {
-            // if we insert text in a textnode, do optimized insertion
-            container.insertData(pos, insertNode.data);
-            // put cursor after inserted text
-            range.setEnd(container, pos + insertNode.length);
-            range.setStart(container, pos + insertNode.length);
-        }
-        else {
-        
-            var afterNode;
-            var beforeNode;
-            if (container.nodeType == 3) {
-                // when inserting into a textnode
-                // we create 2 new textnodes
-                // and put the insertNode in between
-                var textNode = container;
-                container = textNode.parentNode;
-                var text = textNode.nodeValue;
-                
-                // text before the split
-                var textBefore = text.substr(0, pos);
-                // text after the split
-                var textAfter = text.substr(pos);
-                
-                beforeNode = document.createTextNode(textBefore);
-                afterNode = document.createTextNode(textAfter);
-                
-                // insert the 3 new nodes before the old one
-                container.insertBefore(afterNode, textNode);
-                container.insertBefore(insertNode, afterNode);
-                container.insertBefore(beforeNode, insertNode);
-                
-                // remove the old node
-                container.removeChild(textNode);
-            }
-            else {
-                // else simply insert the node
-                afterNode = container.childNodes[pos];
-                container.insertBefore(insertNode, afterNode);
-            }
-            
-            try {
-                range.setEnd(afterNode, 0);
-                range.setStart(afterNode, 0);
-            } 
-            catch (e) {
-                alert(e);
-            }
-        }
-        
-        sel.addRange(range);
-    },
-    
-    /**
-     * Prints the content of the WYSIWYG editor area
-     *
-     * @param {String} n The editor identifier (textarea ID)
-     */
-    print: function(n){
-        if (document.all && navigator.appVersion.substring(22, 23) == 4) {
-            var doc = this.getEditorWindow(n).document;
-            doc.focus();
-            var OLECMDID_PRINT = 6;
-            var OLECMDEXECOPT_DONTPROMPTUSER = 2;
-            var OLECMDEXECOPT_PROMPTUSER = 1;
-            var WebBrowser = '<object id="WebBrowser1" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>';
-            doc.body.insertAdjacentHTML('beforeEnd', WebBrowser);
-            WebBrowser.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER);
-            WebBrowser.outerHTML = '';
-        }
-        else {
-            this.getEditorWindow(n).print();
-        }
-    },
-    
-    /**
-     * Writes the content of an drop down
-     *
-     * @param {String} n The editor identifier (textarea ID)
-     * @param {String} id Drop down identifier
-     * @return {String} Drop down HTML
-     */
-    writeDropDown: function(n, id){
-    
-        var dropdown = this.config[n].DropDowns[id];
-        var toolbarObj = this.ToolbarList[dropdown.id];
-        var image = this.config[n].ImagesDir + toolbarObj[2];
-        var imageOn = this.config[n].ImagesDir + toolbarObj[3];
-        dropdown.elements.sort();
-        
-        var output = "";
-        output += '<table border="0" cellpadding="0" cellspacing="0"><tr>';
-        output += '<td onMouseOver="$(\'img_' + dropdown.id + '_' + n + '\').src=\'' + imageOn + '\';" onMouseOut="$(\'img_' + dropdown.id + '_' + n + '\').src=\'' + image + '\';">';
-        output += '<img src="' + image + '" id="img_' + dropdown.id + '_' + n + '" height="20" onClick="WYSIWYG.openDropDown(\'' + n + '\',\'' + dropdown.id + '\');" unselectable="on" border="0"><br>';
-        output += '<span id="elm_' + dropdown.id + '_' + n + '" class="dropdown" style="width: 145px;display:none;">';
-        for (var i = 0; i < dropdown.elements.length; i++) {
-            if (dropdown.elements[i]) {
-                var value = dropdown.elements[i];
-                var label = dropdown.label.replace(/{value}/gi, value);
-                // output
-                output += '<button type="button" onClick="WYSIWYG.execCommand(\'' + n + '\',\'' + dropdown.command + '\',\'' + value + '\')\;" onMouseOver="this.className=\'mouseOver\'" onMouseOut="this.className=\'mouseOut\'" class="mouseOut" style="width: 120px;">';
-                output += '<table cellpadding="0" cellspacing="0" border="0"><tr>';
-                output += '<td align="left">' + label + '</td>';
-                output += '</tr></table></button><br>';
-            }
-        }
-        output += '</span></td></tr></table>';
-        
-        return output;
-    },
-    
-    /**
-     * Close all drop downs. You can define a exclude dropdown id
-     *
-     * @param {String} n The editor identifier (textarea ID)
-     * @param {String} exid Excluded drop down identifier
-     */
-    closeDropDowns: function(n, exid){
-        if (typeof(exid) == "undefined") 
-            exid = "";
-        var dropdowns = this.config[n].DropDowns;
-        for (var id in dropdowns) {
-            var dropdown = dropdowns[id];
-            if (dropdown.id != exid) {
-                var divId = "elm_" + dropdown.id + "_" + n;
-                if ($(divId)) 
-                    $(divId).style.display = 'none';
-            }
-        }
-    },
-    
-    /**
-     * Open a defined drop down
-     *
-     * @param {String} n The editor identifier (textarea ID)
-     * @param {String} id Drop down identifier
-     */
-    openDropDown: function(n, id){
-        var divId = "elm_" + id + "_" + n;
-        if ($(divId).style.display == "none") {
-            $(divId).style.display = "block";
-        }
-        else {
-            $(divId).style.display = "none";
-        }
-        $(divId).style.position = "absolute";
-        this.closeDropDowns(n, id);
-    },
-    
-    /**
-     * Shows the HTML source code generated by the WYSIWYG editor
-     *
-     * @param {String} n The editor identifier (textarea ID)
-     */
-    viewSource: function(n){
-    
-        // document
-        var doc = this.getEditorWindow(n).document;
-        
-        // Enable table highlighting
-        WYSIWYG_Table.disableHighlighting(n);
-        
-        // View Source for IE   
-        if (WYSIWYG_Core.isMSIE) {
-            var iHTML = doc.body.innerHTML;
-            // strip off the absolute urls
-            iHTML = this.stripURLPath(n, iHTML);
-            // replace all decimal color strings with hex decimal color strings
-            iHTML = WYSIWYG_Core.replaceRGBWithHexColor(iHTML);
-            doc.body.innerText = iHTML;
-        }
-        // View Source for Mozilla/Netscape
-        else {
-            // replace all decimal color strings with hex decimal color strings
-            var html = WYSIWYG_Core.replaceRGBWithHexColor(doc.body.innerHTML);
-            html = document.createTextNode(html);
-            doc.body.innerHTML = "";
-            doc.body.appendChild(html);
-        }
-        
-        // Hide the HTML Mode button and show the Text Mode button
-        // Validate if Elements are present
-        if ($('HTMLMode' + n)) {
-            $('HTMLMode' + n).style.display = 'none';
-        }
-        if ($('textMode' + n)) {
-            $('textMode' + n).style.display = 'block';
-        }
-        
-        // set the font values for displaying HTML source
-        doc.body.style.fontSize = "12px";
-        doc.body.style.fontFamily = "Courier New";
-        
-        this.viewTextMode[n] = true;
-    },
-    
-    /**
-     * Shows the HTML source code generated by the WYSIWYG editor
-     *
-     * @param {String} n The editor identifier (textarea ID)
-     */
-    viewText: function(n){
-    
-        // get document
-        var doc = this.getEditorWindow(n).document;
-        
-        // View Text for IE             
-        if (WYSIWYG_Core.isMSIE) {
-            var iText = doc.body.innerText;
-            // strip off the absolute urls
-            iText = this.stripURLPath(n, iText);
-            // replace all decimal color strings with hex decimal color strings
-            iText = WYSIWYG_Core.replaceRGBWithHexColor(iText);
-            doc.body.innerHTML = iText;
-        }
-        
-        // View Text for Mozilla/Netscape
-        else {
-            var html = doc.body.ownerDocument.createRange();
-            html.selectNodeContents(doc.body);
-            // replace all decimal color strings with hex decimal color strings
-            html = WYSIWYG_Core.replaceRGBWithHexColor(html.toString());
-            doc.body.innerHTML = html;
-        }
-        
-        // Enable table highlighting
-        WYSIWYG_Table.refreshHighlighting(n);
-        
-        // Hide the Text Mode button and show the HTML Mode button
-        // Validate if Elements are present
-        if ($('textMode' + n)) {
-            $('textMode' + n).style.display = 'none';
-        }
-        if ($('HTMLMode' + n)) {
-            $('HTMLMode' + n).style.display = 'block';
-        }
-        
-        // reset the font values (changed)
-        WYSIWYG_Core.setAttribute(doc.body, "style", this.config[n].DefaultStyle);
-        
-        this.viewTextMode[n] = false;
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : stripURLPath()
-     Description : Strips off the defined image and the anchor urls of the given content.
-     It also can strip the document URL automatically if you define auto.
-     Usage       : WYSIWYG.stripURLPath(content)
-     Arguments   : content  - Content on which the stripping applies
-     \* ---------------------------------------------------------------------- */
-    stripURLPath: function(n, content, exact){
-    
-        // parameter exact is optional
-        if (typeof exact == "undefined") {
-            exact = true;
-        }
-        
-        var stripImgageUrl = null;
-        var stripAnchorUrl = null;
-        
-        // add url to strip of anchors to array
-        if (this.config[n].AnchorPathToStrip == "auto") {
-            stripAnchorUrl = WYSIWYG_Core.getDocumentUrl(document);
-        }
-        else 
-            if (this.config[n].AnchorPathToStrip != "") {
-                stripAnchorUrl = this.config[n].AnchorPathToStrip;
-            }
-        
-        // add strip url of images to array
-        if (this.config[n].ImagePathToStrip == "auto") {
-            stripImgageUrl = WYSIWYG_Core.getDocumentUrl(document);
-        }
-        else 
-            if (this.config[n].ImagePathToStrip != "") {
-                stripImgageUrl = this.config[n].ImagePathToStrip;
-            }
-        
-        var url;
-        var regex;
-        var result;
-        // strip url of image path
-        if (stripImgageUrl) {
-            // escape reserved characters to be a valid regex  
-            url = WYSIWYG_Core.stringToRegex(WYSIWYG_Core.getDocumentPathOfUrl(stripImgageUrl));
-            
-            // exact replacing of url. regex: src="<url>"
-            if (exact) {
-                regex = eval("/(src=\")(" + url + ")([^\"]*)/gi");
-                content = content.replace(regex, "$1$3");
-            }
-            // not exect replacing of url. regex: <url>
-            else {
-                regex = eval("/(" + url + ")(.+)/gi");
-                content = content.replace(regex, "$2");
-            }
-            
-            // strip absolute urls without a heading slash ("images/print.gif")        
-            result = WYSIWYG_Core.getDocumentPathOfUrl(stripImgageUrl).match(/.+[\/]{2,3}[^\/]*/, "");
-            if (result) {
-                url = WYSIWYG_Core.stringToRegex(result[0]);
-                
-                // exact replacing of url. regex: src="<url>"
-                if (exact) {
-                    regex = eval("/(src=\")(" + url + ")([^\"]*)/gi");
-                    content = content.replace(regex, "$1$3");
-                }
-                // not exect replacing of url. regex: <url>
-                else {
-                    regex = eval("/(" + url + ")(.+)/gi");
-                    content = content.replace(regex, "$2");
-                }
-            }
-        }
-        
-        // strip url of image path
-        if (stripAnchorUrl) {
-            // escape reserved characters to be a valid regex          
-            url = WYSIWYG_Core.stringToRegex(WYSIWYG_Core.getDocumentPathOfUrl(stripAnchorUrl));
-            
-            // strip absolute urls with a heading slash ("/product/index.html")
-            // exact replacing of url. regex: src="<url>"
-            if (exact) {
-                regex = eval("/(href=\")(" + url + ")([^\"]*)/gi");
-                content = content.replace(regex, "$1$3");
-            }
-            // not exect replacing of url. regex: <url>
-            else {
-                regex = eval("/(" + url + ")(.+)/gi");
-                content = content.replace(regex, "$2");
-            }
-            
-            // strip absolute urls without a heading slash ("product/index.html")      
-            result = WYSIWYG_Core.getDocumentPathOfUrl(stripAnchorUrl).match(/.+[\/]{2,3}[^\/]*/, "");
-            if (result) {
-                url = WYSIWYG_Core.stringToRegex(result[0]);
-                // exact replacing of url. regex: src="<url>"
-                if (exact) {
-                    regex = eval("/(href=\")(" + url + ")([^\"]*)/gi");
-                    content = content.replace(regex, "$1$3");
-                }
-                // not exect replacing of url. regex: <url>
-                else {
-                    regex = eval("/(" + url + ")(.+)/gi");
-                    content = content.replace(regex, "$2");
-                }
-                
-            }
-            
-            // stip off anchor links with #name                        
-            url = WYSIWYG_Core.stringToRegex(stripAnchorUrl);
-            // exact replacing of url. regex: src="<url>"
-            if (exact) {
-                regex = eval("/(href=\")(" + url + ")(#[^\"]*)/gi");
-                content = content.replace(regex, "$1$3");
-            }
-            // not exect replacing of url. regex: <url>
-            else {
-                regex = eval("/(" + url + ")(.+)/gi");
-                content = content.replace(regex, "$2");
-            }
-            
-            
-            // stip off anchor links with #name (only for local system)
-            url = WYSIWYG_Core.getDocumentUrl(document);
-            var pos = url.lastIndexOf("/");
-            if (pos != -1) {
-                url = url.substring(pos + 1, url.length);
-                url = WYSIWYG_Core.stringToRegex(url);
-                // exact replacing of url. regex: src="<url>"
-                if (exact) {
-                    regex = eval("/(href=\")(" + url + ")(#[^\"]*)/gi");
-                    content = content.replace(regex, "$1$3");
-                }
-                // not exect replacing of url. regex: <url>
-                else {
-                    regex = eval("/(" + url + ")(.+)/gi");
-                    content = content.replace(regex, "$2");
-                }
-            }
-        }
-        
-        return content;
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : updateTextArea()
-     Description : Updates the text area value with the HTML source of the WYSIWYG
-     Arguments   : n   - The editor identifier (the textarea's ID)
-     \* ---------------------------------------------------------------------- */
-    updateTextArea: function(n){
-        // on update switch editor back to html mode
-        if (this.viewTextMode[n]) {
-            this.viewText(n);
-        }
-        // get inner HTML
-        var content = this.getEditorWindow(n).document.body.innerHTML;
-        // strip off defined URLs on IE
-        content = this.stripURLPath(n, content);
-        // replace all decimal color strings with hex color strings
-        content = WYSIWYG_Core.replaceRGBWithHexColor(content);
-        // remove line breaks before content will be updated
-        if (this.config[n].ReplaceLineBreaks) {
-            content = content.replace(/(\r\n)|(\n)/ig, "");
-        }
-        // set content back in textarea
-        $(n).value = content;
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : hideToolbars()
-     Description : Hide all toolbars
-     Usage       : WYSIWYG.hideToolbars(n)
-     Arguments   : n - The editor identifier (the textarea's ID)
-     \* ---------------------------------------------------------------------- */
-    hideToolbars: function(n){
-        for (var i = 0; i < this.config[n].Toolbar.length; i++) {
-            var toolbar = $("toolbar" + i + "_" + n);
-            if (toolbar) {
-                toolbar.style.display = "none";
-            }
-        }
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : showToolbars()
-     Description : Display all toolbars
-     Usage       : WYSIWYG.showToolbars(n)
-     Arguments   : n - The editor identifier (the textarea's ID)
-     \* ---------------------------------------------------------------------- */
-    showToolbars: function(n){
-        for (var i = 0; i < this.config[n].Toolbar.length; i++) {
-            var toolbar = $("toolbar" + i + "_" + n);
-            if (toolbar) {
-                toolbar.style.display = "";
-            }
-        }
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : hideStatusBar()
-     Description : Hide the status bar
-     Usage       : WYSIWYG.hideStatusBar(n)
-     Arguments   : n - The editor identifier (the textarea's ID)
-     \* ---------------------------------------------------------------------- */
-    hideStatusBar: function(n){
-        var statusbar = $('wysiwyg_statusbar_' + n);
-        if (statusbar) {
-            statusbar.style.display = "none";
-        }
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : showStatusBar()
-     Description : Display the status bar
-     Usage       : WYSIWYG.showStatusBar(n)
-     Arguments   : n - The editor identifier (the textarea's ID)
-     \* ---------------------------------------------------------------------- */
-    showStatusBar: function(n){
-        var statusbar = $('wysiwyg_statusbar_' + n);
-        if (statusbar) {
-            statusbar.style.display = "";
-        }
-    },
-    
-    /**
-     * Finds the node with the given tag name in the given range
-     *
-     * @param {String} tagName Parent tag to find
-     * @param {Range} range Current range
-     */
-    findParent: function(parentTagName, range){
-        parentTagName = parentTagName.toUpperCase();
-        var rangeWorking;
-        var elmWorking = null;
-        try {
-            if (!WYSIWYG_Core.isMSIE) {
-                var node = range.startContainer;
-                var pos = range.startOffset;
-                if (node.nodeType != 3) {
-                    node = node.childNodes[pos];
-                }
-                return WYSIWYG_Core.findParentNode(parentTagName, node);
-            }
-            else {
-                elmWorking = (range.length > 0) ? range.item(0) : range.parentElement();
-                elmWorking = WYSIWYG_Core.findParentNode(parentTagName, elmWorking);
-                if (elmWorking != null) 
-                    return elmWorking;
-                
-                rangeWorking = range.duplicate();
-                rangeWorking.collapse(true);
-                rangeWorking.moveEnd("character", 1);
-                if (rangeWorking.text.length > 0) {
-                    while (rangeWorking.compareEndPoints("EndToEnd", range) < 0) {
-                        rangeWorking.move("Character");
-                        if (null != this.findParentTag(parentTagName, rangeWorking)) {
-                            return this.findParentTag(parentTagName, rangeWorking);
-                        }
-                    }
-                }
-                return null;
-            }
-        } 
-        catch (e) {
-            return null;
-        }
-    },
-    
-    /**
-     * Get the acutally tag of the given range
-     *
-     * @param {Range} range Current range
-     */
-    getTag: function(range){
-        try {
-            if (!WYSIWYG_Core.isMSIE) {
-                var node = range.startContainer;
-                var pos = range.startOffset;
-                if (node.nodeType != 3) {
-                    node = node.childNodes[pos];
-                }
-                
-                if (node.nodeName && node.nodeName.search(/#/) != -1) {
-                    return node.parentNode;
-                }
-                return node;
-            }
-            else {
-                if (range.length > 0) {
-                    return range.item(0);
-                }
-                else 
-                    if (range.parentElement()) {
-                        return range.parentElement();
-                    }
-            }
-            return null;
-        } 
-        catch (e) {
-            return null;
-        }
-    },
-    
-    /**
-     * Get the parent node of the given node
-     *
-     * @param {DOMElement} element - Element which parent will be returned
-     */
-    getParent: function(element){
-        if (element.parentNode) {
-            return element.parentNode;
-        }
-        return null;
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : getTextRange()
-     Description : Get the text range object of the given element
-     Usage       : WYSIWYG.getTextRange(element)
-     Arguments   : element - An element of which you get the text range object
-     \* ---------------------------------------------------------------------- */
-    getTextRange: function(element){
-        var range = element.parentTextEdit.createTextRange();
-        range.moveToElementText(element);
-        return range;
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : invertIELineBreakCapability()
-     Description : Inverts the line break capability of IE (Thx to richyrich)
-     Normal: ENTER = <p> , SHIFT + ENTER = <br>
-     Inverted: ENTER = <br>, SHIFT + ENTER = <p>
-     Usage       : WYSIWYG.invertIELineBreakCapability(n)
-     Arguments   : n   - The editor identifier (the textarea's ID)
-     \* ---------------------------------------------------------------------- */
-    invertIELineBreakCapability: function(n){
-    
-        var editor = this.getEditorWindow(n);
-        var sel;
-        // validate if the press key is the carriage return key
-        if (editor.event.keyCode == 13) {
-            if (!editor.event.shiftKey) {
-                sel = this.getRange(this.getSelection(n));
-                sel.pasteHTML("<br>");
-                editor.event.cancelBubble = true;
-                editor.event.returnValue = false;
-                sel.select();
-                sel.moveEnd("character", 1);
-                sel.moveStart("character", 1);
-                sel.collapse(false);
-                return false;
-            }
-            else {
-                sel = this.getRange(this.getSelection(n));
-                sel.pasteHTML("<p>");
-                editor.event.cancelBubble = true;
-                editor.event.returnValue = false;
-                sel.select();
-                sel.moveEnd("character", 1);
-                sel.moveStart("character", 1);
-                sel.collapse(false);
-                return false;
-            }
-        }
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : selectNode()
-     Description : Select a node within the current editor
-     Usage       : WYSIWYG.selectNode(n, level)
-     Arguments   : n   - The editor identifier (the textarea's ID)
-     level - identifies the level of the element which will be selected
-     \* ---------------------------------------------------------------------- */
-    selectNode: function(n, level){
-    
-        var sel = this.getSelection(n);
-        var range = this.getRange(sel);
-        var parentnode = this.getTag(range);
-        var i = 0;
-        
-        for (var node = parentnode; (node && (node.nodeType == 1)); node = node.parentNode) {
-            if (i == level) {
-                this.nodeSelection(n, node);
-            }
-            i++;
-        }
-        
-        this.updateStatusBar(n);
-    },
-    
-    /* ---------------------------------------------------------------------- *\
-     Function    : nodeSelection()
-     Description : Do the node selection
-     Usage       : WYSIWYG.nodeSelection(n, node)
-     Arguments   : n   - The editor identifier (the textarea's ID)
-     node - The node which will be selected
-     \* ---------------------------------------------------------------------- */
-    nodeSelection: function(n, node){
-    
-        var doc = this.getEditorWindow(n).document;
-        var sel = this.getSelection(n);
-        var range = this.getRange(sel);
-        
-        if (!WYSIWYG_Core.isMSIE) {
-            if (node.nodeName == "BODY") {
-                range.selectNodeContents(node);
-            }
-            else {
-                range.selectNode(node);
-            }
-            
-            /*
-             if (endNode) {
-             try {
-             range.setStart(node, startOffset);
-             range.setEnd(endNode, endOffset);
-             } catch(e) {
-             }
-             }
-             */
-            if (sel) {
-                sel.removeAllRanges();
-            }
-            if (sel) {
-                sel.addRange(range);
-            }
-        }
-        else {
-            // MSIE may not select everything when BODY is selected - 
-            // start may be set to first text node instead of first non-text node - 
-            // no known workaround
-            if ((node.nodeName == "TABLE") || (node.nodeName == "IMG") || (node.nodeName == "INPUT") || (node.nodeName == "SELECT") || (node.nodeName == "TEXTAREA")) {
-                try {
-                    range = doc.body.createControlRange();
-                    range.addElement(node);
-                    range.select();
-                } 
-                catch (e) {
-                }
-            }
-            else {
-                range = doc.body.createTextRange();
-                if (range) {
-                    range.collapse();
-                    if (range.moveToElementText) {
-                        try {
-                            range.moveToElementText(node);
-                            range.select();
-                        } 
-                        catch (e) {
-                            try {
-                                range = doc.body.createTextRange();
-                                range.moveToElementText(node);
-                                range.select();
-                            } 
-                            catch (e) {
-                            }
-                        }
-                    }
-                    else {
-                        try {
-                            range = doc.body.createTextRange();
-                            range.moveToElementText(node);
-                            range.select();
-                        } 
-                        catch (e) {
-                        }
-                    }
-                }
-            }
-        }
-    }
-}
-
-/********************************************************************
- * openWYSIWYG core functions Copyright (c) 2006 openWebWare.com
- * Contact us at devs@openwebware.com
- * This copyright notice MUST stay intact for use.
- *
- * $Id: wysiwyg.js,v 1.22 2007/09/08 21:45:57 xhaggi Exp $
- ********************************************************************/
-var WYSIWYG_Core = {
-
-    /**
-     * Holds true if browser is MSIE, otherwise false
-     */
-    isMSIE: navigator.appName == "Microsoft Internet Explorer" ? true : false,
-    
-    /**
-     * Holds true if browser is Firefox (Mozilla)
-     */
-    isFF: !document.all && document.getElementById && !this.isOpera,
-    
-    /**
-     * Holds true if browser is Opera, otherwise false
-     */
-    isOpera: navigator.appName == "Opera" ? true : false,
-    
-    /**
-     * Trims whitespaces of the given string
-     *
-     * @param str String
-     * @return Trimmed string
-     */
-    trim: function(str){
-        return str.replace(/^\s*|\s*$/g, "");
-    },
-    
-    /**
-     * Determine if the given parameter is defined
-     *
-     * @param p Parameter
-     * @return true/false dependents on definition of the parameter
-     */
-    defined: function(p){
-        return typeof p == "undefined" ? false : true;
-    },
-    
-    /**
-     * Determine if the browser version is compatible
-     *
-     * @return true/false depending on compatiblity of the browser
-     */
-    isBrowserCompatible: function(){
-        //Validate browser and compatibility
-        if (!document.getElementById || !document.designMode || (!document.selection && typeof document.createRange == 'undefined')) {
-            return false;
-        }
-        return true;
-    },
-    
-    /**
-     * Set the style attribute of the given element.
-     * Private method to solve the IE bug while setting the style attribute.
-     *
-     * @param {DOMElement} node The element on which the style attribute will affect
-     * @param {String} style Stylesheet which will be set
-     */
-    _setStyleAttribute: function(node, style){
-        if (style == null) 
-            return;
-        var styles = style.split(";");
-        var pos;
-        for (var i = 0; i < styles.length; i++) {
-            var attributes = styles[i].split(":");
-            if (attributes.length == 2) {
-                try {
-                    var attr = WYSIWYG_Core.trim(attributes[0]);
-                    while ((pos = attr.search(/-/)) != -1) {
-                        var strBefore = attr.substring(0, pos);
-                        var strToUpperCase = attr.substring(pos + 1, pos + 2);
-                        var strAfter = attr.substring(pos + 2, attr.length);
-                        attr = strBefore + strToUpperCase.toUpperCase() + strAfter;
-                    }
-                    var value = WYSIWYG_Core.trim(attributes[1]).toLowerCase();
-                    node.style[attr] = value;
-                } 
-                catch (e) {
-                    alert(e);
-                }
-            }
-        }
-    },
-    
-    /**
-     * Fix's the issue while getting the attribute style on IE
-     * It's return an object but we need the style string
-     *
-     * @private
-     * @param {DOMElement} node Node element
-     * @return {String} Stylesheet
-     */
-    _getStyleAttribute: function(node){
-        if (this.isMSIE) {
-            return node.style['cssText'].toLowerCase();
-        }
-        else {
-            return node.getAttribute("style");
-        }
-    },
-    
-    /**
-     * Set an attribute's value on the given node element.
-     *
-     * @param {DOMElement} node Node element
-     * @param {String} attr Attribute which is set
-     * @param {String} value Value of the attribute
-     */
-    setAttribute: function(node, attr, value){
-        if (value == null || node == null || attr == null) 
-            return;
-        if (attr.toLowerCase() == "style") {
-            this._setStyleAttribute(node, value);
-        }
-        else {
-            node.setAttribute(attr, value);
-        }
-    },
-    
-    /**
-     * Removes an attribute on the given node
-     *
-     * @param {DOMElement} node Node element
-     * @param {String} attr Attribute which will be removed
-     */
-    removeAttribute: function(node, attr){
-        node.removeAttribute(attr, false);
-    },
-    
-    /**
-     * Get the vale of the attribute on the given node
-     *
-     * @param {DOMElement} node Node element
-     * @param {String} attr Attribute which value will be returned
-     */
-    getAttribute: function(node, attr){
-        if (node == null || attr == null) 
-            return;
-        if (attr.toLowerCase() == "style") {
-            return this._getStyleAttribute(node);
-        }
-        else {
-            return node.getAttribute(attr);
-        }
-    },
-    
-    /**
-     * Get the path out of an given url
-     *
-     * @param {String} url The url with is used to get the path
-     */
-    getDocumentPathOfUrl: function(url){
-        var path = null;
-        
-        // if local file system, convert local url into web url
-        url = url.replace(/file:\/\//gi, "file:///");
-        url = url.replace(/\\/gi, "\/");
-        var pos = url.lastIndexOf("/");
-        if (pos != -1) {
-            path = url.substring(0, pos + 1);
-        }
-        return path;
-    },
-    
-    /**
-     * Get the documents url, convert local urls to web urls
-     *
-     * @param {DOMElement} doc Document which is used to get the url
-     */
-    getDocumentUrl: function(doc){
-        // if local file system, convert local url into web url
-        var url = doc.URL;
-        url = url.replace(/file:\/\//gi, "file:///");
-        url = url.replace(/\\/gi, "\/");
-        return url;
-    },
-    
-    /**
-     * Find a parent node with the given name, of the given start node
-     *
-     * @param {String} tagName - Tag name of the node to find
-     * @param {DOMElement} node - Node element
-     */
-    findParentNode: function(tagName, node){
-        while (node.tagName != "HTML") {
-            if (node.tagName == tagName) {
-                return node;
-            }
-            node = node.parentNode;
-        }
-        return null;
-    },
-    
-    /**
-     * Cancel the given event.
-     *
-     * @param e Event which will be canceled
-     */
-    cancelEvent: function(e){
-        if (!e) 
-            return false;
-        if (this.isMSIE) {
-            e.returnValue = false;
-            e.cancelBubble = true;
-        }
-        else {
-            e.preventDefault();
-            e.stopPropagation && e.stopPropagation();
-        }
-        return false;
-    },
-    
-    /**
-     * Converts a RGB color string to hex color string.
-     *
-     * @param color RGB color string
-     * @param Hex color string
-     */
-    toHexColor: function(color){
-        color = color.replace(/^rgb/g, '');
-        color = color.replace(/\(/g, '');
-        color = color.replace(/\)/g, '');
-        color = color.replace(/ /g, '');
-        color = color.split(',');
-        var r = parseFloat(color[0]).toString(16).toUpperCase();
-        var g = parseFloat(color[1]).toString(16).toUpperCase();
-        var b = parseFloat(color[2]).toString(16).toUpperCase();
-        if (r.length < 2) {
-            r = '0' + r;
-        }
-        if (g.length < 2) {
-            g = '0' + g;
-        }
-        if (b.length < 2) {
-            b = '0' + b;
-        }
-        return r + g + b;
-    },
-    
-    /**
-     * Converts a decimal color to hex color string.
-     *
-     * @param Decimal color
-     * @param Hex color string
-     */
-    _dec_to_rgb: function(value){
-        var hex_string = "";
-        for (var hexpair = 0; hexpair < 3; hexpair++) {
-            var myByte = value & 0xFF; // get low byte
-            value >>= 8; // drop low byte
-            var nybble2 = myByte & 0x0F; // get low nybble (4 bits)
-            var nybble1 = (myByte >> 4) & 0x0F; // get high nybble
-            hex_string += nybble1.toString(16); // convert nybble to hex
-            hex_string += nybble2.toString(16); // convert nybble to hex
-        }
-        return hex_string.toUpperCase();
-    },
-    
-    /**
-     * Replace RGB color strings with hex color strings within a string.
-     *
-     * @param {String} str RGB String
-     * @param {String} Hex color string
-     */
-    replaceRGBWithHexColor: function(str){
-        if (str == null) 
-            return "";
-        // find all decimal color strings
-        var matcher = str.match(/rgb\([0-9 ]+,[0-9 ]+,[0-9 ]+\)/gi);
-        if (matcher) {
-            for (var j = 0; j < matcher.length; j++) {
-                var regex = eval("/" + WYSIWYG_Core.stringToRegex(matcher[j]) + "/gi");
-                // replace the decimal color strings with hex color strings
-                str = str.replace(regex, "#" + this.toHexColor(matcher[j]));
-            }
-        }
-        return str;
-    },
-    
-    /**
-     * Execute the given command on the given editor
-     *
-     * @param n The editor's identifier
-     * @param cmd Command which is execute
-     */
-    execCommand: function(n, cmd, value){
-        if (typeof(value) == "undefined") 
-            value = null;
-        
-        // firefox BackColor problem fixed
-        if (cmd == 'BackColor' && WYSIWYG_Core.isFF) 
-            cmd = 'HiliteColor';
-        
-        // firefox cut, paste and copy
-        if (WYSIWYG_Core.isFF && (cmd == "Cut" || cmd == "Paste" || cmd == "Copy")) {
-            try {
-                WYSIWYG.getEditorWindow(n).document.execCommand(cmd, false, value);
-            } 
-            catch (e) {
-                if (confirm("Copy/Cut/Paste is not available in Mozilla and Firefox\nDo you want more information about this issue?")) {
-                    window.open('http://www.mozilla.org/editor/midasdemo/securityprefs.html');
-                }
-            }
-        }
-        
-        else {
-            WYSIWYG.getEditorWindow(n).document.execCommand(cmd, false, value);
-        }
-    },
-    
-    /**
-     * Parse a given string to a valid regular expression
-     *
-     * @param {String} string String to be parsed
-     * @return {RegEx} Valid regular expression
-     */
-    stringToRegex: function(string){
-    
-        string = string.replace(/\//gi, "\\/");
-        string = string.replace(/\(/gi, "\\(");
-        string = string.replace(/\)/gi, "\\)");
-        string = string.replace(/\[/gi, "\\[");
-        string = string.replace(/\]/gi, "\\]");
-        string = string.replace(/\+/gi, "\\+");
-        string = string.replace(/\$/gi, "\\$");
-        string = string.replace(/\*/gi, "\\*");
-        string = string.replace(/\?/gi, "\\?");
-        string = string.replace(/\^/gi, "\\^");
-        string = string.replace(/\\b/gi, "\\\\b");
-        string = string.replace(/\\B/gi, "\\\\B");
-        string = string.replace(/\\d/gi, "\\\\d");
-        string = string.replace(/\\B/gi, "\\\\B");
-        string = string.replace(/\\D/gi, "\\\\D");
-        string = string.replace(/\\f/gi, "\\\\f");
-        string = string.replace(/\\n/gi, "\\\\n");
-        string = string.replace(/\\r/gi, "\\\\r");
-        string = string.replace(/\\t/gi, "\\\\t");
-        string = string.replace(/\\v/gi, "\\\\v");
-        string = string.replace(/\\s/gi, "\\\\s");
-        string = string.replace(/\\S/gi, "\\\\S");
-        string = string.replace(/\\w/gi, "\\\\w");
-        string = string.replace(/\\W/gi, "\\\\W");
-        
-        return string;
-    },
-    
-    /**
-     * Add an event listener
-     *
-     * @param obj Object on which the event will be attached
-     * @param ev Kind of event
-     * @param fu Function which is execute on the event
-     */
-    addEvent: function(obj, ev, fu){
-        if (obj.attachEvent) 
-            obj.attachEvent("on" + ev, fu);
-        else 
-            obj.addEventListener(ev, fu, false);
-    },
-    
-    /**
-     * Remove an event listener
-     *
-     * @param obj Object on which the event will be attached
-     * @param ev Kind of event
-     * @param fu Function which is execute on the event
-     */
-    removeEvent: function(obj, ev, fu){
-        if (obj.attachEvent) 
-            obj.detachEvent("on" + ev, fu);
-        else 
-            obj.removeEventListener(ev, fu, false);
-    },
-    
-    /**
-     * Includes a javascript file
-     *
-     * @param file Javascript file path and name
-     */
-    includeJS: function(file){
-        var script = document.createElement("script");
-        this.setAttribute(script, "type", "text/javascript");
-        this.setAttribute(script, "src", file);
-        var heads = document.getElementsByTagName("head");
-        for (var i = 0; i < heads.length; i++) {
-            heads[i].appendChild(script);
-        }
-    },
-    
-    /**
-     * Includes a stylesheet file
-     *
-     * @param file Stylesheet file path and name
-     */
-    includeCSS: function(path){
-        var link = document.createElement("link");
-        this.setAttribute(link, "rel", "stylesheet");
-        this.setAttribute(link, "type", "text/css");
-        this.setAttribute(link, "href", path);
-        var heads = document.getElementsByTagName("head");
-        for (var i = 0; i < heads.length; i++) {
-            heads[i].appendChild(link);
-        }
-    },
-    
-    /**
-     * Get the screen position of the given element.
-     *
-     * @param {HTMLObject} elm1 Element which position will be calculate
-     * @param {HTMLObject} elm2 Element which is the last one before calculation stops
-     * @param {Object} Left and top position of the given element
-     */
-    getElementPosition: function(elm1, elm2){
-        var top = 0, left = 0;
-        while (elm1 && elm1 != elm2) {
-            left += elm1.offsetLeft;
-            top += elm1.offsetTop;
-            elm1 = elm1.offsetParent;
-        }
-        return {
-            left: left,
-            top: top
-        };
-    },
-    
-    /**
-     * Get the window size
-     * @private
-     */
-    windowSize: function(){
-        if (window.innerWidth) {
-            return {
-                width: window.innerWidth,
-                height: window.innerHeight
-            };
-        }
-        else 
-            if (document.body && document.body.offsetWidth) {
-                return {
-                    width: document.body.offsetWidth,
-                    height: document.body.offsetHeight
-                };
-            }
-            else {
-                return {
-                    width: 0,
-                    height: 0
-                };
-            }
-    }
-}
-
-/**
- * Context menu object
- */
-var WYSIWYG_ContextMenu = {
-
-    html: "",
-    contextMenuDiv: null,
-    
-    /**
-     * Init function
-     *
-     * @param {String} n Editor identifier
-     */
-    init: function(n){
-        var doc = WYSIWYG.getEditorWindow(n).document;
-        
-        // create context menu div
-        this.contextMenuDiv = document.createElement("div");
-        this.contextMenuDiv.className = "wysiwyg-context-menu-div";
-        this.contextMenuDiv.setAttribute("class", "wysiwyg-context-menu-div");
-        this.contextMenuDiv.style.display = "none";
-        this.contextMenuDiv.style.position = "absolute";
-        this.contextMenuDiv.style.zIndex = 9999;
-        this.contextMenuDiv.style.left = "0";
-        this.contextMenuDiv.style.top = "0";
-        this.contextMenuDiv.unselectable = "on";
-        document.body.insertBefore(this.contextMenuDiv, document.body.firstChild);
-        
-        // bind event listeners
-        WYSIWYG_Core.addEvent(doc, "contextmenu", function context(e){
-            WYSIWYG_ContextMenu.show(e, n);
-        });
-        WYSIWYG_Core.addEvent(doc, "click", function context(e){
-            WYSIWYG_ContextMenu.close();
-        });
-        WYSIWYG_Core.addEvent(doc, "keydown", function context(e){
-            WYSIWYG_ContextMenu.close();
-        });
-        WYSIWYG_Core.addEvent(document, "click", function context(e){
-            WYSIWYG_ContextMenu.close();
-        });
-    },
-    
-    /**
-     * Show the context menu
-     *
-     * @param e Event
-     * @param n Editor identifier
-     */
-    show: function(e, n){
-        if (this.contextMenuDiv == null) 
-            return false;
-        
-        var ifrm = WYSIWYG.getEditor(n);
-        var doc = WYSIWYG.getEditorWindow(n).document;
-        
-        // set the context menu position
-        var pos = WYSIWYG_Core.getElementPosition(ifrm);
-        var x = WYSIWYG_Core.isMSIE ? pos.left + e.clientX : pos.left + (e.pageX - doc.body.scrollLeft);
-        var y = WYSIWYG_Core.isMSIE ? pos.top + e.clientY : pos.top + (e.pageY - doc.body.scrollTop);
-        
-        this.contextMenuDiv.style.left = x + "px";
-        this.contextMenuDiv.style.top = y + "px";
-        this.contextMenuDiv.style.visibility = "visible";
-        this.contextMenuDiv.style.display = "block";
-        
-        // call the context menu, mozilla needs some time
-        window.setTimeout("WYSIWYG_ContextMenu.output('" + n + "')", 10);
-        
-        WYSIWYG_Core.cancelEvent(e);
-        return false;
-    },
-    
-    /**
-     * Output the context menu items
-     *
-     * @param n Editor identifier
-     */
-    output: function(n){
-    
-        // get selection
-        var sel = WYSIWYG.getSelection(n);
-        var range = WYSIWYG.getRange(sel);
-        
-        // get current selected node                                   
-        var tag = WYSIWYG.getTag(range);
-        if (tag == null) {
-            return;
-        }
-        
-        // clear context menu
-        this.clear();
-        
-        // Determine kind of nodes
-        var isImg = (tag.nodeName == "IMG") ? true : false;
-        var isLink = (tag.nodeName == "A") ? true : false;
-        
-        // Selection is an image or selection is a text with length greater 0
-        var len = 0;
-        if (WYSIWYG_Core.isMSIE) 
-            len = (document.selection && range.text) ? range.text.length : 0;
-        else 
-            len = range.toString().length;
-        var sel = len != 0 || isImg;
-        
-        // Icons
-        var iconLink = {
-            enabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["createlink"][3],
-            disabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["createlink"][2]
-        };
-        var iconImage = {
-            enabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["insertimage"][3],
-            disabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["insertimage"][2]
-        };
-        var iconDelete = {
-            enabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["delete"][3],
-            disabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["delete"][2]
-        };
-        var iconCopy = {
-            enabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["copy"][3],
-            disabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["copy"][2]
-        };
-        var iconCut = {
-            enabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["cut"][3],
-            disabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["cut"][2]
-        };
-        var iconPaste = {
-            enabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["paste"][3],
-            disabled: WYSIWYG.config[n].ImagesDir + WYSIWYG.ToolbarList["paste"][2]
-        };
-        
-        // Create context menu html
-        this.html += '<table class="wysiwyg-context-menu" border="0" cellpadding="0" cellspacing="0">';
-        
-        // Add items
-        this.addItem(n, 'Copy', iconCopy, 'Copy', sel);
-        this.addItem(n, 'Cut', iconCut, 'Cut', sel);
-        this.addItem(n, 'Paste', iconPaste, 'Paste', true);
-        this.addSeperator();
-        this.addItem(n, 'InsertImage', iconImage, 'Modify Image Properties...', isImg);
-        this.addItem(n, 'CreateLink', iconLink, 'Create or Modify Link...', sel || isLink);
-        this.addItem(n, 'RemoveNode', iconDelete, 'Remove', true);
-        
-        this.html += '</table>';
-        this.contextMenuDiv.innerHTML = this.html;
-    },
-    
-    /**
-     * Close the context menu
-     */
-    close: function(){
-        this.contextMenuDiv.style.visibility = "hidden";
-        this.contextMenuDiv.style.display = "none";
-    },
-    
-    /**
-     * Clear context menu
-     */
-    clear: function(){
-        this.contextMenuDiv.innerHTML = "";
-        this.html = "";
-    },
-    
-    /**
-     * Add context menu item
-     *
-     * @param n editor identifier
-     * @param cmd Command
-     * @param icon Icon which is diabled
-     * @param title Title of the item
-     * @param disabled If item is diabled
-     */
-    addItem: function(n, cmd, icon, title, disabled){
-        var item = '';
-        
-        if (disabled) {
-            item += '<tr>';
-            item += '<td class="icon"><a href="javascript:WYSIWYG.execCommand(\'' + n + '\',\'' + cmd + '\', null);"><img src="' + icon.enabled + '" border="0"></a></td>';
-            item += '<td onmouseover="this.className=\'mouseover\'" onmouseout="this.className=\'\'" onclick="WYSIWYG.execCommand(\'' + n + '\', \'' + cmd + '\', null);WYSIWYG_ContextMenu.close();"><a href="javascript:void(0);">' + title + '</a></td>';
-            item += '</tr>';
-        }
-        else {
-            item += '<tr>';
-            item += '<td class="icon"><img src="' + icon.disabled + '" border="0"></td>';
-            item += '<td onmouseover="this.className=\'mouseover\'" onmouseout="this.className=\'\'"><span class="disabled">' + title + '</span></td>';
-            item += '</tr>';
-        }
-        
-        this.html += item;
-    },
-    
-    /**
-     * Add seperator to context menu
-     */
-    addSeperator: function(){
-        var output = '';
-        output += '<tr>';
-        output += '<td colspan="2" style="text-align:center;"><hr size="1" color="#C9C9C9" width="95%"></td>';
-        output += '</tr>';
-        this.html += output;
-    }
-}
-
-/**
- * Table object
- */
-var WYSIWYG_Table = {
-
-    /**
-     *
-     */
-    create: function(n, tbl){
-    
-        // get editor
-        var doc = WYSIWYG.getEditorWindow(n).document;
-        // get selection and range
-        var sel = WYSIWYG.getSelection(n);
-        var range = WYSIWYG.getRange(sel);
-        var table = null;
-        
-        // get element from selection
-        if (WYSIWYG_Core.isMSIE) {
-            if (sel.type == "Control" && range.length == 1) {
-                range = WYSIWYG.getTextRange(range(0));
-                range.select();
-            }
-        }
-        
-        // find a parent TABLE element
-        //table = WYSIWYG.findParent("table", range);
-        
-        // check if parent is found
-        //var update = (table == null) ? false : true;
-        //if(!update) table = tbl;
-        table = tbl;
-        
-        // add rows and cols
-        var rows = WYSIWYG_Core.getAttribute(tbl, "tmprows");
-        var cols = WYSIWYG_Core.getAttribute(tbl, "tmpcols");
-        WYSIWYG_Core.removeAttribute(tbl, "tmprows");
-        WYSIWYG_Core.removeAttribute(tbl, "tmpcols");
-        for (var i = 0; i < rows; i++) {
-            var tr = doc.createElement("tr");
-            for (var j = 0; j < cols; j++) {
-                var td = createTD();
-                tr.appendChild(td);
-            }
-            table.appendChild(tr);
-        }
-        
-        // on update exit here
-        //if(update) { return; }
-        
-        // Check if IE or Mozilla (other)
-        if (WYSIWYG_Core.isMSIE) {
-            range.pasteHTML(table.outerHTML);
-        }
-        else {
-            WYSIWYG.insertNodeAtSelection(table, n);
-        }
-        
-        // refresh table highlighting
-        this.refreshHighlighting(n);
-        
-        
-        
-        
-        // functions
-        function createTD(){
-            var td = doc.createElement("td");
-            td.innerHTML = "&nbsp;";
-            return td;
-        }
-        
-    },
-    
-    /**
-     * Enables the table highlighting
-     *
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    refreshHighlighting: function(n){
-        var doc = WYSIWYG.getEditorWindow(n).document;
-        var tables = doc.getElementsByTagName("table");
-        for (var i = 0; i < tables.length; i++) {
-            this._enableHighlighting(tables[i]);
-        }
-        var tds = doc.getElementsByTagName("td");
-        for (var i = 0; i < tds.length; i++) {
-            this._enableHighlighting(tds[i]);
-        }
-    },
-    
-    /**
-     * Enables the table highlighting
-     *
-     * @param {String} n The editor identifier (the textarea's ID)
-     */
-    disableHighlighting: function(n){
-        var doc = WYSIWYG.getEditorWindow(n).document;
-        var tables = doc.getElementsByTagName("table");
-        for (var i = 0; i < tables.length; i++) {
-            this._disableHighlighting(tables[i]);
-        }
-        var tds = doc.getElementsByTagName("td");
-        for (var i = 0; i < tds.length; i++) {
-            this._disableHighlighting(tds[i]);
-        }
-        
-    },
-    
-    /**
-     * @private
-     */
-    _enableHighlighting: function(node){
-        var style = WYSIWYG_Core.getAttribute(node, "style");
-        if (style == null) 
-            style = " ";
-        //alert("ENABLE: ELM = " + node.tagName + "; STYLE = " + style);
-        WYSIWYG_Core.removeAttribute(node, "prevstyle");
-        WYSIWYG_Core.setAttribute(node, "prevstyle", style);
-        WYSIWYG_Core.setAttribute(node, "style", "border:1px dashed #AAAAAA;");
-    },
-    
-    /**
-     * @private
-     */
-    _disableHighlighting: function(node){
-        var style = WYSIWYG_Core.getAttribute(node, "prevstyle");
-        //alert("DISABLE: ELM = " + node.tagName + "; STYLE = " + style);
-        // if no prevstyle is defined, the table is not in highlighting mode
-        if (style == null || style == "") {
-            this._enableHighlighting(node);
-            return;
-        }
-        WYSIWYG_Core.removeAttribute(node, "prevstyle");
-        WYSIWYG_Core.removeAttribute(node, "style");
-        WYSIWYG_Core.setAttribute(node, "style", style);
-    }
-}
-
-
-/**
- * Get an element by it's identifier
- *
- * @param id Element identifier
- */
-function $(id){
-    return document.getElementById(id);
-}
-
-/**
- * Emulates insertAdjacentHTML(), insertAdjacentText() and
- * insertAdjacentElement() three functions so they work with Netscape 6/Mozilla
- * by Thor Larholm me@jscript.dk
- */
-if (typeof HTMLElement != "undefined" && !HTMLElement.prototype.insertAdjacentElement) {
-    HTMLElement.prototype.insertAdjacentElement = function(where, parsedNode){
-        switch (where) {
-            case 'beforeBegin':
-                this.parentNode.insertBefore(parsedNode, this);
-                break;
-            case 'afterBegin':
-                this.insertBefore(parsedNode, this.firstChild);
-                break;
-            case 'beforeEnd':
-                this.appendChild(parsedNode);
-                break;
-            case 'afterEnd':
-                if (this.nextSibling) {
-                    this.parentNode.insertBefore(parsedNode, this.nextSibling);
-                }
-                else {
-                    this.parentNode.appendChild(parsedNode);
-                }
-                break;
-        }
-    };
-    
-    HTMLElement.prototype.insertAdjacentHTML = function(where, htmlStr){
-        var r = this.ownerDocument.createRange();
-        r.setStartBefore(this);
-        var parsedHTML = r.createContextualFragment(htmlStr);
-        this.insertAdjacentElement(where, parsedHTML);
-    };
-    
-    
-    HTMLElement.prototype.insertAdjacentText = function(where, txtStr){
-        var parsedText = document.createTextNode(txtStr);
-        this.insertAdjacentElement(where, parsedText);
-    };
-}
-
-/**
- * Emulates insertAdjacentHTML(), insertAdjacentText() and
- * insertAdjacentElement() three functions so they work with Netscape 6/Mozilla/Safari
- * by Thor Larholm me@jscript.dk
- *
- * Modified:06112008 By CJBoCo www.cjboco.com
- * -Instead of testing for browser type,we test if the object is undefined
- */
-if (typeof HTMLElement != 'undefined') {
-    if (typeof HTMLElement.insertAdjacentHTML == 'undefined') {
-        HTMLElement.prototype.insertAdjacentElement = function(where, parsedNode){
-            switch (where) {
-                case 'beforeBegin':
-                    this.parentNode.insertBefore(parsedNode, this);
-                    break;
-                case 'afterBegin':
-                    this.insertBefore(parsedNode, this.firstChild);
-                    break;
-                case 'beforeEnd':
-                    this.appendChild(parsedNode);
-                    break;
-                case 'afterEnd':
-                    if (this.nextSibling) {
-                        this.parentNode.insertBefore(parsedNode, this.nextSibling);
-                    }
-                    else {
-                        this.parentNode.appendChild(parsedNode);
-                    }
-                    break;
-            }
-        };
-    }
-    if (typeof HTMLElement.insertAdjacentHTML == 'undefined') {
-        HTMLElement.prototype.insertAdjacentHTML = function(where, htmlStr){
-            var r = this.ownerDocument.createRange();
-            r.setStartBefore(this);
-            var parsedHTML = r.createContextualFragment(htmlStr);
-            this.insertAdjacentElement(where, parsedHTML);
-        };
-    }
-    if (typeof HTMLElement.insertAdjacentText == 'undefined') {
-        HTMLElement.prototype.insertAdjacentText = function(where, txtStr){
-            var parsedText = document.createTextNode(txtStr);
-            this.insertAdjacentElement(where, parsedText);
-        };
-    }
-}
-
diff --git a/openwysiwyg/styles/wysiwyg.css b/openwysiwyg/styles/wysiwyg.css
deleted file mode 100644 (file)
index 61b57be..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/********************************************************************
- * openWYSIWYG stylesheet file Copyright (c) 2006 openWebWare.com
- * Contact us at devs@openwebware.com
- * This copyright notice MUST stay intact for use.
- *
- * $Id: wysiwyg.css,v 1.2 2007/01/29 19:19:49 xhaggi Exp $
- ********************************************************************/
-
-/* Toolbar */
-.toolbar1   { height: 26px; background-image: url(../images/background_silver.jpg); }
-/*.toolbar1   { height: 26px; background-color: #F4F4F4; border-bottom:1px solid #C9C9C9; }*/
-
-/* Command Buttons */
-.buttonEditor     { width: 20px; height: 20px; border: 0px solid transparent; margin: 1px; padding: 0px; background: transparent; }
-.buttonEditorOver { width: 20px; height: 20px; border: 1px solid #999999; margin: 0; padding: 0px; }
-
-/* Table Textarea */
-.tableTextareaEditor { border: 1px solid #888888; }
-.iframeText { background-color: #FFFFFF; }
-
-/* Status Bar */
-.wysiwyg-statusbar {font-family: Arial; font-size: 9px; background-color: #EEEEEE;}
-a.wysiwyg-statusbar {font-family: Arial; font-size: 9px; color: #000000; text-decoration:none;}
-a.wysiwyg-statusbar:hover {font-family: Arial; font-size: 9px; color: #000000; text-decoration:underline;}
-
-/* Font Type and Size Drop Down */
-.dropdown          { background-color: #FFFFFF; border: 1px solid #333333; height: 140px; overflow: auto; padding: 1px;}
-button.mouseOver   { background-color: #EEEEEE; border: 1px solid #CCCCCC; padding: 3px; cursor: default; text-align: left;}
-button.mouseOut    { background-color: #FFFFFF; border: 1px solid #FFFFFF; padding: 3px; cursor: default; text-align: left;}
-
-/* Context Menu */
-.wysiwyg-context-menu-div { background-color:#F4F4F4; border: 1px solid #C9C9C9; width:170px; }
-.wysiwyg-context-menu { font-family: Arial; font-size:11px; color:#000000; width:100%;}
-.wysiwyg-context-menu .icon {background-color:#EEEEEE;}
-.wysiwyg-context-menu .disabled { font-family: Arial; font-size:11px; color:#999999; text-decoration:none; padding-left: 3px; }
-.wysiwyg-context-menu a { font-family: Arial; font-size:11px; color:#000000; text-decoration:none; padding-left: 3px;}
-.wysiwyg-context-menu .mouseover {background-color: #EEEEEE;}
-
-
-/* CREATE TABLE POPUP */
-
-/* Select Border Width/Type */
-.on   { background-color: #EEEEEE; border: 1px solid #CCCCCC; padding: 6px; width: 140px; cursor: default; height: 5px;}
-.off  { background-color: #FFFFFF; border: 1px solid #FFFFFF; padding: 6px; width: 140px; cursor: default; height: 5px;}
-
-/* Select Shading/Border Color */
-.wysiwyg-color-picker-table  { border: 1px solid #7E7E81; background-color: #F7F7F7; padding: 1px; }
-.wysiwyg-color-picker-div    { font-size: 1px; height:12px; width:12px; }
-.selectColorBorder { border: 1px solid #F7F7F7; }
-.selectColorOn     { border: 1px solid #999999; background-color: #CCCCCC; }
-.selectColorOff    { border: 1px solid #F7F7F7; background-color: #F7F7F7; }
-
-
diff --git a/openwysiwyg/uploads/hagbard.jpg b/openwysiwyg/uploads/hagbard.jpg
deleted file mode 100644 (file)
index f87a7e3..0000000
Binary files a/openwysiwyg/uploads/hagbard.jpg and /dev/null differ
diff --git a/wymeditor/jquery.wymeditor.js b/wymeditor/jquery.wymeditor.js
new file mode 100644 (file)
index 0000000..b13e2d0
--- /dev/null
@@ -0,0 +1,4707 @@
+/**
+ * @version 0.5-rc1
+ *
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File: jquery.wymeditor.js
+ *
+ *        Main JS file with core classes and functions.
+ *        See the documentation for more info.
+ *
+ * About: authors
+ *
+ *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+ *        Volker Mische (vmx a-t gmx dotde)
+ *        Scott Lewis (lewiscot a-t gmail dotcom)
+ *        Bermi Ferrer (wymeditor a-t bermi dotorg)
+ *        Daniel Reszka (d.reszka a-t wymeditor dotorg)
+ *        Jonatan Lundin (jonatan.lundin _at_ gmail.com)
+ */
+
+/*
+   Namespace: WYMeditor
+   Global WYMeditor namespace.
+*/
+if(!WYMeditor) var WYMeditor = {};
+
+//Wrap the Firebug console in WYMeditor.console
+(function() {
+    if ( !window.console || !console.firebug ) {
+        var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
+        "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
+
+        WYMeditor.console = {};
+        for (var i = 0; i < names.length; ++i)
+            WYMeditor.console[names[i]] = function() {}
+
+    } else WYMeditor.console = window.console;
+})();
+
+jQuery.extend(WYMeditor, {
+
+/*
+    Constants: Global WYMeditor constants.
+
+    VERSION             - Defines WYMeditor version.
+    INSTANCES           - An array of loaded WYMeditor.editor instances.
+    STRINGS             - An array of loaded WYMeditor language pairs/values.
+    SKINS               - An array of loaded WYMeditor skins.
+    NAME                - The "name" attribute.
+    INDEX               - A string replaced by the instance index.
+    WYM_INDEX           - A string used to get/set the instance index.
+    BASE_PATH           - A string replaced by WYMeditor's base path.
+    SKIN_PATH           - A string replaced by WYMeditor's skin path.
+    WYM_PATH            - A string replaced by WYMeditor's main JS file path.
+    SKINS_DEFAULT_PATH  - The skins default base path.
+    SKINS_DEFAULT_CSS   - The skins default CSS file.
+    LANG_DEFAULT_PATH   - The language files default path.
+    IFRAME_BASE_PATH    - A string replaced by the designmode iframe's base path.
+    IFRAME_DEFAULT      - The iframe's default base path.
+    JQUERY_PATH         - A string replaced by the computed jQuery path.
+    DIRECTION           - A string replaced by the text direction (rtl or ltr).
+    LOGO                - A string replaced by WYMeditor logo.
+    TOOLS               - A string replaced by the toolbar's HTML.
+    TOOLS_ITEMS         - A string replaced by the toolbar items.
+    TOOL_NAME           - A string replaced by a toolbar item's name.
+    TOOL_TITLE          - A string replaced by a toolbar item's title.
+    TOOL_CLASS          - A string replaced by a toolbar item's class.
+    CLASSES             - A string replaced by the classes panel's HTML.
+    CLASSES_ITEMS       - A string replaced by the classes items.
+    CLASS_NAME          - A string replaced by a class item's name.
+    CLASS_TITLE         - A string replaced by a class item's title.
+    CONTAINERS          - A string replaced by the containers panel's HTML.
+    CONTAINERS_ITEMS    - A string replaced by the containers items.
+    CONTAINER_NAME      - A string replaced by a container item's name.
+    CONTAINER_TITLE     - A string replaced by a container item's title.
+    CONTAINER_CLASS     - A string replaced by a container item's class.
+    HTML                - A string replaced by the HTML view panel's HTML.
+    IFRAME              - A string replaced by the designmode iframe.
+    STATUS              - A string replaced by the status panel's HTML.
+    DIALOG_TITLE        - A string replaced by a dialog's title.
+    DIALOG_BODY         - A string replaced by a dialog's HTML body.
+    BODY                - The BODY element.
+    STRING              - The "string" type.
+    BODY,DIV,P,
+    H1,H2,H3,H4,H5,H6,
+    PRE,BLOCKQUOTE,
+    A,BR,IMG,
+    TABLE,TD,TH,
+    UL,OL,LI            - HTML elements string representation.
+    CLASS,HREF,SRC,
+    TITLE,ALT           - HTML attributes string representation.
+    DIALOG_LINK         - A link dialog type.
+    DIALOG_IMAGE        - An image dialog type.
+    DIALOG_TABLE        - A table dialog type.
+    DIALOG_PASTE        - A 'Paste from Word' dialog type.
+    BOLD                - Command: (un)set selection to <strong>.
+    ITALIC              - Command: (un)set selection to <em>.
+    CREATE_LINK         - Command: open the link dialog or (un)set link.
+    INSERT_IMAGE        - Command: open the image dialog or insert an image.
+    INSERT_TABLE        - Command: open the table dialog.
+    PASTE               - Command: open the paste dialog.
+    INDENT              - Command: nest a list item.
+    OUTDENT             - Command: unnest a list item.
+    TOGGLE_HTML         - Command: display/hide the HTML view.
+    FORMAT_BLOCK        - Command: set a block element to another type.
+    PREVIEW             - Command: open the preview dialog.
+    UNLINK              - Command: unset a link.
+    INSERT_UNORDEREDLIST- Command: insert an unordered list.
+    INSERT_ORDEREDLIST  - Command: insert an ordered list.
+    MAIN_CONTAINERS     - An array of the main HTML containers used in WYMeditor.
+    BLOCKS              - An array of the HTML block elements.
+    KEY                 - Standard key codes.
+    NODE                - Node types.
+
+*/
+
+    VERSION             : "0.5-rc1",
+    INSTANCES           : [],
+    STRINGS             : [],
+    SKINS               : [],
+    NAME                : "name",
+    INDEX               : "{Wym_Index}",
+    WYM_INDEX           : "wym_index",
+    BASE_PATH           : "{Wym_Base_Path}",
+    CSS_PATH            : "{Wym_Css_Path}",
+    WYM_PATH            : "{Wym_Wym_Path}",
+    SKINS_DEFAULT_PATH  : "skins/",
+    SKINS_DEFAULT_CSS   : "skin.css",
+    SKINS_DEFAULT_JS    : "skin.js",
+    LANG_DEFAULT_PATH   : "lang/",
+    IFRAME_BASE_PATH    : "{Wym_Iframe_Base_Path}",
+    IFRAME_DEFAULT      : "iframe/default/",
+    JQUERY_PATH         : "{Wym_Jquery_Path}",
+    DIRECTION           : "{Wym_Direction}",
+    LOGO                : "{Wym_Logo}",
+    TOOLS               : "{Wym_Tools}",
+    TOOLS_ITEMS         : "{Wym_Tools_Items}",
+    TOOL_NAME           : "{Wym_Tool_Name}",
+    TOOL_TITLE          : "{Wym_Tool_Title}",
+    TOOL_CLASS          : "{Wym_Tool_Class}",
+    CLASSES             : "{Wym_Classes}",
+    CLASSES_ITEMS       : "{Wym_Classes_Items}",
+    CLASS_NAME          : "{Wym_Class_Name}",
+    CLASS_TITLE         : "{Wym_Class_Title}",
+    CONTAINERS          : "{Wym_Containers}",
+    CONTAINERS_ITEMS    : "{Wym_Containers_Items}",
+    CONTAINER_NAME      : "{Wym_Container_Name}",
+    CONTAINER_TITLE     : "{Wym_Containers_Title}",
+    CONTAINER_CLASS     : "{Wym_Container_Class}",
+    HTML                : "{Wym_Html}",
+    IFRAME              : "{Wym_Iframe}",
+    STATUS              : "{Wym_Status}",
+    DIALOG_TITLE        : "{Wym_Dialog_Title}",
+    DIALOG_BODY         : "{Wym_Dialog_Body}",
+    STRING              : "string",
+    BODY                : "body",
+    DIV                 : "div",
+    P                   : "p",
+    H1                  : "h1",
+    H2                  : "h2",
+    H3                  : "h3",
+    H4                  : "h4",
+    H5                  : "h5",
+    H6                  : "h6",
+    PRE                 : "pre",
+    BLOCKQUOTE          : "blockquote",
+    A                   : "a",
+    BR                  : "br",
+    IMG                 : "img",
+    TABLE               : "table",
+    TD                  : "td",
+    TH                  : "th",
+    UL                  : "ul",
+    OL                  : "ol",
+    LI                  : "li",
+    CLASS               : "class",
+    HREF                : "href",
+    SRC                 : "src",
+    TITLE               : "title",
+    ALT                 : "alt",
+    DIALOG_LINK         : "Link",
+    DIALOG_IMAGE        : "Image",
+    DIALOG_TABLE        : "Table",
+    DIALOG_PASTE        : "Paste_From_Word",
+    BOLD                : "Bold",
+    ITALIC              : "Italic",
+    CREATE_LINK         : "CreateLink",
+    INSERT_IMAGE        : "InsertImage",
+    INSERT_TABLE        : "InsertTable",
+    INSERT_HTML         : "InsertHTML",
+    PASTE               : "Paste",
+    INDENT              : "Indent",
+    OUTDENT             : "Outdent",
+    TOGGLE_HTML         : "ToggleHtml",
+    FORMAT_BLOCK        : "FormatBlock",
+    PREVIEW             : "Preview",
+    UNLINK                             : "Unlink",
+    INSERT_UNORDEREDLIST: "InsertUnorderedList",
+    INSERT_ORDEREDLIST : "InsertOrderedList",
+
+    MAIN_CONTAINERS : new Array("p","h1","h2","h3","h4","h5","h6","pre","blockquote"),
+
+    BLOCKS : new Array("address", "blockquote", "div", "dl",
+          "fieldset", "form", "h1", "h2", "h3", "h4", "h5", "h6", "hr",
+          "noscript", "ol", "p", "pre", "table", "ul", "dd", "dt",
+          "li", "tbody", "td", "tfoot", "th", "thead", "tr"),
+
+    KEY : {
+      BACKSPACE: 8,
+      ENTER: 13,
+      END: 35,
+      HOME: 36,
+      LEFT: 37,
+      UP: 38,
+      RIGHT: 39,
+      DOWN: 40,
+      CURSOR: new Array(37, 38, 39, 40),
+      DELETE: 46
+    },
+
+    NODE : {
+      ELEMENT: 1,
+      ATTRIBUTE: 2,
+      TEXT: 3
+    },
+       
+    /*
+        Class: WYMeditor.editor
+        WYMeditor editor main class, instanciated for each editor occurrence.
+    */
+
+       editor : function(elem, options) {
+
+        /*
+            Constructor: WYMeditor.editor
+
+            Initializes main values (index, elements, paths, ...)
+            and call WYMeditor.editor.init which initializes the editor.
+
+            Parameters:
+
+                elem - The HTML element to be replaced by the editor.
+                options - The hash of options.
+
+            Returns:
+
+                Nothing.
+
+            See Also:
+
+                <WYMeditor.editor.init>
+        */
+
+        //store the instance in the INSTANCES array and store the index
+        this._index = WYMeditor.INSTANCES.push(this) - 1;
+        //store the element replaced by the editor
+        this._element = elem;
+        //store the options
+        this._options = options;
+        //store the element's inner value
+        this._html = jQuery(elem).val();
+
+        //store the HTML option, if any
+        if(this._options.html) this._html = this._options.html;
+        //get or compute the base path (where the main JS file is located)
+        this._options.basePath = this._options.basePath
+        || this.computeBasePath();
+        //get or set the skin path (where the skin files are located)
+        this._options.skinPath = this._options.skinPath
+        || this._options.basePath + WYMeditor.SKINS_DEFAULT_PATH
+           + this._options.skin + '/';
+        //get or compute the main JS file location
+        this._options.wymPath = this._options.wymPath
+        || this.computeWymPath();
+        //get or set the language files path
+        this._options.langPath = this._options.langPath
+        || this._options.basePath + WYMeditor.LANG_DEFAULT_PATH;
+        //get or set the designmode iframe's base path
+        this._options.iframeBasePath = this._options.iframeBasePath
+        || this._options.basePath + WYMeditor.IFRAME_DEFAULT;
+        //get or compute the jQuery JS file location
+        this._options.jQueryPath = this._options.jQueryPath
+        || this.computeJqueryPath();
+
+        //initialize the editor instance
+        this.init();
+       
+       }
+
+});
+
+
+/********** JQUERY **********/
+
+/**
+ * Replace an HTML element by WYMeditor
+ *
+ * @example jQuery(".wymeditor").wymeditor(
+ *        {
+ *
+ *        }
+ *      );
+ * @desc Example description here
+ * 
+ * @name WYMeditor
+ * @description WYMeditor is a web-based WYSIWYM XHTML editor
+ * @param Hash hash A hash of parameters
+ * @option Integer iExample Description here
+ * @option String sExample Description here
+ *
+ * @type jQuery
+ * @cat Plugins/WYMeditor
+ * @author Jean-Francois Hovinne
+ */
+jQuery.fn.wymeditor = function(options) {
+
+  options = jQuery.extend({
+
+    html:       "",
+    
+    basePath:   false,
+    
+    skinPath:    false,
+    
+    wymPath:    false,
+    
+    iframeBasePath: false,
+    
+    jQueryPath: false,
+    
+    styles: false,
+    
+    stylesheet: false,
+    
+    skin:       "default",
+    initSkin:   true,
+    loadSkin:   true,
+
+    lang:       "en",
+
+    direction:  "ltr",
+
+    boxHtml:   "<div class='wym_box'>"
+              + "<div class='wym_area_top'>" 
+              + WYMeditor.TOOLS
+              + "</div>"
+              + "<div class='wym_area_left'></div>"
+              + "<div class='wym_area_right'>"
+              + WYMeditor.CONTAINERS
+              + WYMeditor.CLASSES
+              + "</div>"
+              + "<div class='wym_area_main'>"
+              + WYMeditor.HTML
+              + WYMeditor.IFRAME
+              + WYMeditor.STATUS
+              + "</div>"
+              + "<div class='wym_area_bottom'>"
+              + WYMeditor.LOGO
+              + "</div>"
+              + "</div>",
+
+    logoHtml:  "<a class='wym_wymeditor_link' "
+              + "href='http://www.wymeditor.org/'>WYMeditor</a>",
+
+    iframeHtml:"<div class='wym_iframe wym_section'>"
+              + "<iframe "
+              + "src='"
+              + WYMeditor.IFRAME_BASE_PATH
+              + "wymiframe.html' "
+              + "onload='this.contentWindow.parent.WYMeditor.INSTANCES["
+              + WYMeditor.INDEX + "].initIframe(this)'"
+              + "></iframe>"
+              + "</div>",
+              
+    editorStyles: [],
+
+    toolsHtml: "<div class='wym_tools wym_section'>"
+              + "<h2>{Tools}</h2>"
+              + "<ul>"
+              + WYMeditor.TOOLS_ITEMS
+              + "</ul>"
+              + "</div>",
+              
+    toolsItemHtml:   "<li class='"
+                        + WYMeditor.TOOL_CLASS
+                        + "'><a href='#' name='"
+                        + WYMeditor.TOOL_NAME
+                        + "' title='"
+                        + WYMeditor.TOOL_TITLE
+                        + "'>"
+                        + WYMeditor.TOOL_TITLE
+                        + "</a></li>",
+
+    toolsItems: [
+        {'name': 'Bold', 'title': 'Strong', 'css': 'wym_tools_strong'}, 
+        {'name': 'Italic', 'title': 'Emphasis', 'css': 'wym_tools_emphasis'},
+        {'name': 'Superscript', 'title': 'Superscript',
+            'css': 'wym_tools_superscript'},
+        {'name': 'Subscript', 'title': 'Subscript',
+            'css': 'wym_tools_subscript'},
+        {'name': 'InsertOrderedList', 'title': 'Ordered_List',
+            'css': 'wym_tools_ordered_list'},
+        {'name': 'InsertUnorderedList', 'title': 'Unordered_List',
+            'css': 'wym_tools_unordered_list'},
+        {'name': 'Indent', 'title': 'Indent', 'css': 'wym_tools_indent'},
+        {'name': 'Outdent', 'title': 'Outdent', 'css': 'wym_tools_outdent'},
+        {'name': 'Undo', 'title': 'Undo', 'css': 'wym_tools_undo'},
+        {'name': 'Redo', 'title': 'Redo', 'css': 'wym_tools_redo'},
+        {'name': 'CreateLink', 'title': 'Link', 'css': 'wym_tools_link'},
+        {'name': 'Unlink', 'title': 'Unlink', 'css': 'wym_tools_unlink'},
+        {'name': 'InsertImage', 'title': 'Image', 'css': 'wym_tools_image'},
+        {'name': 'InsertTable', 'title': 'Table', 'css': 'wym_tools_table'},
+        {'name': 'Paste', 'title': 'Paste_From_Word',
+            'css': 'wym_tools_paste'},
+        {'name': 'ToggleHtml', 'title': 'HTML', 'css': 'wym_tools_html'},
+        {'name': 'Preview', 'title': 'Preview', 'css': 'wym_tools_preview'}
+    ],
+
+    containersHtml:    "<div class='wym_containers wym_section'>"
+                        + "<h2>{Containers}</h2>"
+                        + "<ul>"
+                        + WYMeditor.CONTAINERS_ITEMS
+                        + "</ul>"
+                        + "</div>",
+                        
+    containersItemHtml:"<li class='"
+                        + WYMeditor.CONTAINER_CLASS
+                        + "'>"
+                        + "<a href='#' name='"
+                        + WYMeditor.CONTAINER_NAME
+                        + "'>"
+                        + WYMeditor.CONTAINER_TITLE
+                        + "</a></li>",
+                        
+    containersItems: [
+        {'name': 'P', 'title': 'Paragraph', 'css': 'wym_containers_p'},
+        {'name': 'H1', 'title': 'Heading_1', 'css': 'wym_containers_h1'},
+        {'name': 'H2', 'title': 'Heading_2', 'css': 'wym_containers_h2'},
+        {'name': 'H3', 'title': 'Heading_3', 'css': 'wym_containers_h3'},
+        {'name': 'H4', 'title': 'Heading_4', 'css': 'wym_containers_h4'},
+        {'name': 'H5', 'title': 'Heading_5', 'css': 'wym_containers_h5'},
+        {'name': 'H6', 'title': 'Heading_6', 'css': 'wym_containers_h6'},
+        {'name': 'PRE', 'title': 'Preformatted', 'css': 'wym_containers_pre'},
+        {'name': 'BLOCKQUOTE', 'title': 'Blockquote',
+            'css': 'wym_containers_blockquote'},
+        {'name': 'TH', 'title': 'Table_Header', 'css': 'wym_containers_th'}
+    ],
+
+    classesHtml:       "<div class='wym_classes wym_section'>"
+                        + "<h2>{Classes}</h2><ul>"
+                        + WYMeditor.CLASSES_ITEMS
+                        + "</ul></div>",
+
+    classesItemHtml:   "<li><a href='#' name='"
+                        + WYMeditor.CLASS_NAME
+                        + "'>"
+                        + WYMeditor.CLASS_TITLE
+                        + "</a></li>",
+
+    classesItems:      [],
+
+    statusHtml:        "<div class='wym_status wym_section'>"
+                        + "<h2>{Status}</h2>"
+                        + "</div>",
+
+    htmlHtml:          "<div class='wym_html wym_section'>"
+                        + "<h2>{Source_Code}</h2>"
+                        + "<textarea class='wym_html_val'></textarea>"
+                        + "</div>",
+
+    boxSelector:       ".wym_box",
+    toolsSelector:     ".wym_tools",
+    toolsListSelector: " ul",
+    containersSelector:".wym_containers",
+    classesSelector:   ".wym_classes",
+    htmlSelector:      ".wym_html",
+    iframeSelector:    ".wym_iframe iframe",
+    iframeBodySelector:".wym_iframe",
+    statusSelector:    ".wym_status",
+    toolSelector:      ".wym_tools a",
+    containerSelector: ".wym_containers a",
+    classSelector:     ".wym_classes a",
+    htmlValSelector:   ".wym_html_val",
+    
+    hrefSelector:      ".wym_href",
+    srcSelector:       ".wym_src",
+    titleSelector:     ".wym_title",
+    altSelector:       ".wym_alt",
+    textSelector:      ".wym_text",
+    
+    rowsSelector:      ".wym_rows",
+    colsSelector:      ".wym_cols",
+    captionSelector:   ".wym_caption",
+    summarySelector:   ".wym_summary",
+    
+    submitSelector:    ".wym_submit",
+    cancelSelector:    ".wym_cancel",
+    previewSelector:   "",
+    
+    dialogTypeSelector:    ".wym_dialog_type",
+    dialogLinkSelector:    ".wym_dialog_link",
+    dialogImageSelector:   ".wym_dialog_image",
+    dialogTableSelector:   ".wym_dialog_table",
+    dialogPasteSelector:   ".wym_dialog_paste",
+    dialogPreviewSelector: ".wym_dialog_preview",
+    
+    updateSelector:    ".wymupdate",
+    updateEvent:       "click",
+    
+    dialogFeatures:    "menubar=no,titlebar=no,toolbar=no,resizable=no"
+                      + ",width=560,height=300,top=0,left=0",
+    dialogFeaturesPreview: "menubar=no,titlebar=no,toolbar=no,resizable=no"
+                      + ",scrollbars=yes,width=560,height=300,top=0,left=0",
+
+    dialogHtml:      "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'"
+                      + " 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>"
+                      + "<html dir='"
+                      + WYMeditor.DIRECTION
+                      + "'><head>"
+                      + "<link rel='stylesheet' type='text/css' media='screen'"
+                      + " href='"
+                      + WYMeditor.CSS_PATH
+                      + "' />"
+                      + "<title>"
+                      + WYMeditor.DIALOG_TITLE
+                      + "</title>"
+                      + "<script type='text/javascript'"
+                      + " src='"
+                      + WYMeditor.JQUERY_PATH
+                      + "'></script>"
+                      + "<script type='text/javascript'"
+                      + " src='"
+                      + WYMeditor.WYM_PATH
+                      + "'></script>"
+                      + "</head>"
+                      + WYMeditor.DIALOG_BODY
+                      + "</html>",
+                      
+    dialogLinkHtml:  "<body class='wym_dialog wym_dialog_link'"
+               + " onload='WYMeditor.INIT_DIALOG(" + WYMeditor.INDEX + ")'"
+               + ">"
+               + "<form>"
+               + "<fieldset>"
+               + "<input type='hidden' class='wym_dialog_type' value='"
+               + WYMeditor.DIALOG_LINK
+               + "' />"
+               + "<legend>{Link}</legend>"
+               + "<div class='row'>"
+               + "<label>{URL}</label>"
+               + "<input type='text' class='wym_href' value='' size='40' />"
+               + "</div>"
+               + "<div class='row'>"
+               + "<label>{Title}</label>"
+               + "<input type='text' class='wym_title' value='' size='40' />"
+               + "</div>"
+               + "<div class='row row-indent'>"
+               + "<input class='wym_submit' type='button'"
+               + " value='{Submit}' />"
+               + "<input class='wym_cancel' type='button'"
+               + "value='{Cancel}' />"
+               + "</div>"
+               + "</fieldset>"
+               + "</form>"
+               + "</body>",
+    
+    dialogImageHtml:  "<body class='wym_dialog wym_dialog_image'"
+               + " onload='WYMeditor.INIT_DIALOG(" + WYMeditor.INDEX + ")'"
+               + ">"
+               + "<form>"
+               + "<fieldset>"
+               + "<input type='hidden' class='wym_dialog_type' value='"
+               + WYMeditor.DIALOG_IMAGE
+               + "' />"
+               + "<legend>{Image}</legend>"
+               + "<div class='row'>"
+               + "<label>{URL}</label>"
+               + "<input type='text' class='wym_src' value='' size='40' />"
+               + "</div>"
+               + "<div class='row'>"
+               + "<label>{Alternative_Text}</label>"
+               + "<input type='text' class='wym_alt' value='' size='40' />"
+               + "</div>"
+               + "<div class='row'>"
+               + "<label>{Title}</label>"
+               + "<input type='text' class='wym_title' value='' size='40' />"
+               + "</div>"
+               + "<div class='row row-indent'>"
+               + "<input class='wym_submit' type='button'"
+               + " value='{Submit}' />"
+               + "<input class='wym_cancel' type='button'"
+               + "value='{Cancel}' />"
+               + "</div>"
+               + "</fieldset>"
+               + "</form>"
+               + "</body>",
+    
+    dialogTableHtml:  "<body class='wym_dialog wym_dialog_table'"
+               + " onload='WYMeditor.INIT_DIALOG(" + WYMeditor.INDEX + ")'"
+               + ">"
+               + "<form>"
+               + "<fieldset>"
+               + "<input type='hidden' class='wym_dialog_type' value='"
+               + WYMeditor.DIALOG_TABLE
+               + "' />"
+               + "<legend>{Table}</legend>"
+               + "<div class='row'>"
+               + "<label>{Caption}</label>"
+               + "<input type='text' class='wym_caption' value='' size='40' />"
+               + "</div>"
+               + "<div class='row'>"
+               + "<label>{Summary}</label>"
+               + "<input type='text' class='wym_summary' value='' size='40' />"
+               + "</div>"
+               + "<div class='row'>"
+               + "<label>{Number_Of_Rows}</label>"
+               + "<input type='text' class='wym_rows' value='3' size='3' />"
+               + "</div>"
+               + "<div class='row'>"
+               + "<label>{Number_Of_Cols}</label>"
+               + "<input type='text' class='wym_cols' value='2' size='3' />"
+               + "</div>"
+               + "<div class='row row-indent'>"
+               + "<input class='wym_submit' type='button'"
+               + " value='{Submit}' />"
+               + "<input class='wym_cancel' type='button'"
+               + "value='{Cancel}' />"
+               + "</div>"
+               + "</fieldset>"
+               + "</form>"
+               + "</body>",
+
+    dialogPasteHtml:  "<body class='wym_dialog wym_dialog_paste'"
+               + " onload='WYMeditor.INIT_DIALOG(" + WYMeditor.INDEX + ")'"
+               + ">"
+               + "<form>"
+               + "<input type='hidden' class='wym_dialog_type' value='"
+               + WYMeditor.DIALOG_PASTE
+               + "' />"
+               + "<fieldset>"
+               + "<legend>{Paste_From_Word}</legend>"
+               + "<div class='row'>"
+               + "<textarea class='wym_text' rows='10' cols='50'></textarea>"
+               + "</div>"
+               + "<div class='row'>"
+               + "<input class='wym_submit' type='button'"
+               + " value='{Submit}' />"
+               + "<input class='wym_cancel' type='button'"
+               + "value='{Cancel}' />"
+               + "</div>"
+               + "</fieldset>"
+               + "</form>"
+               + "</body>",
+
+    dialogPreviewHtml: "<body class='wym_dialog wym_dialog_preview'"
+                      + " onload='WYMeditor.INIT_DIALOG(" + WYMeditor.INDEX + ")'"
+                      + "></body>",
+                      
+    dialogStyles: [],
+
+    stringDelimiterLeft: "{",
+    stringDelimiterRight:"}",
+    
+    preInit: null,
+    preBind: null,
+    postInit: null,
+    
+    preInitDialog: null,
+    postInitDialog: null
+
+  }, options);
+
+  return this.each(function() {
+
+    new WYMeditor.editor(jQuery(this),options);
+  });
+};
+
+/* @name extend
+ * @description Returns the WYMeditor instance based on its index
+ */
+jQuery.extend({
+  wymeditors: function(i) {
+    return (WYMeditor.INSTANCES[i]);
+  }
+});
+
+
+/********** WYMeditor **********/
+
+/* @name Wymeditor
+ * @description WYMeditor class
+ */
+
+/* @name init
+ * @description Initializes a WYMeditor instance
+ */
+WYMeditor.editor.prototype.init = function() {
+
+  //load subclass - browser specific
+  //unsupported browsers: do nothing
+  if (jQuery.browser.msie) {
+    var WymClass = new WYMeditor.WymClassExplorer(this);
+  }
+  else if (jQuery.browser.mozilla) {
+    var WymClass = new WYMeditor.WymClassMozilla(this);
+  }
+  else if (jQuery.browser.opera) {
+    var WymClass = new WYMeditor.WymClassOpera(this);
+  }
+  else if (jQuery.browser.safari) {
+    var WymClass = new WYMeditor.WymClassSafari(this);
+  }
+  
+  if(WymClass) {
+  
+      if(jQuery.isFunction(this._options.preInit)) this._options.preInit(this);
+
+      var SaxListener = new WYMeditor.XhtmlSaxListener();
+      jQuery.extend(SaxListener, WymClass);
+      this.parser = new WYMeditor.XhtmlParser(SaxListener);
+      
+      if(this._options.styles || this._options.stylesheet){
+        this.configureEditorUsingRawCss();
+      }
+      
+      this.helper = new WYMeditor.XmlHelper();
+      
+      //extend the Wymeditor object
+      //don't use jQuery.extend since 1.1.4
+      //jQuery.extend(this, WymClass);
+      for (var prop in WymClass) { this[prop] = WymClass[prop]; }
+
+      //load wymbox
+      this._box = jQuery(this._element).hide().after(this._options.boxHtml).next().addClass('wym_box_' + this._index);
+
+      //store the instance index in wymbox and element replaced by editor instance
+      //but keep it compatible with jQuery < 1.2.3, see #122
+      if( jQuery.isFunction( jQuery.fn.data ) ) {
+        jQuery.data(this._box.get(0), WYMeditor.WYM_INDEX, this._index);
+        jQuery.data(this._element.get(0), WYMeditor.WYM_INDEX, this._index);
+      }
+      
+      var h = WYMeditor.Helper;
+
+      //construct the iframe
+      var iframeHtml = this._options.iframeHtml;
+      iframeHtml = h.replaceAll(iframeHtml, WYMeditor.INDEX, this._index);
+      iframeHtml = h.replaceAll(iframeHtml, WYMeditor.IFRAME_BASE_PATH, this._options.iframeBasePath);
+      
+      //construct wymbox
+      var boxHtml = jQuery(this._box).html();
+      
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.LOGO, this._options.logoHtml);
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.TOOLS, this._options.toolsHtml);
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.CONTAINERS,this._options.containersHtml);
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.CLASSES, this._options.classesHtml);
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.HTML, this._options.htmlHtml);
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.IFRAME, iframeHtml);
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.STATUS, this._options.statusHtml);
+      
+      //construct tools list
+      var aTools = eval(this._options.toolsItems);
+      var sTools = "";
+
+      for(var i = 0; i < aTools.length; i++) {
+        var oTool = aTools[i];
+        if(oTool.name && oTool.title)
+          var sTool = this._options.toolsItemHtml;
+          var sTool = h.replaceAll(sTool, WYMeditor.TOOL_NAME, oTool.name);
+          sTool = h.replaceAll(sTool, WYMeditor.TOOL_TITLE, this._options.stringDelimiterLeft
+            + oTool.title
+            + this._options.stringDelimiterRight);
+          sTool = h.replaceAll(sTool, WYMeditor.TOOL_CLASS, oTool.css);
+          sTools += sTool;
+      }
+
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.TOOLS_ITEMS, sTools);
+
+      //construct classes list
+      var aClasses = eval(this._options.classesItems);
+      var sClasses = "";
+
+      for(var i = 0; i < aClasses.length; i++) {
+        var oClass = aClasses[i];
+        if(oClass.name && oClass.title)
+          var sClass = this._options.classesItemHtml;
+          sClass = h.replaceAll(sClass, WYMeditor.CLASS_NAME, oClass.name);
+          sClass = h.replaceAll(sClass, WYMeditor.CLASS_TITLE, oClass.title);
+          sClasses += sClass;
+      }
+
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.CLASSES_ITEMS, sClasses);
+      
+      //construct containers list
+      var aContainers = eval(this._options.containersItems);
+      var sContainers = "";
+
+      for(var i = 0; i < aContainers.length; i++) {
+        var oContainer = aContainers[i];
+        if(oContainer.name && oContainer.title)
+          var sContainer = this._options.containersItemHtml;
+          sContainer = h.replaceAll(sContainer, WYMeditor.CONTAINER_NAME, oContainer.name);
+          sContainer = h.replaceAll(sContainer, WYMeditor.CONTAINER_TITLE,
+              this._options.stringDelimiterLeft
+            + oContainer.title
+            + this._options.stringDelimiterRight);
+          sContainer = h.replaceAll(sContainer, WYMeditor.CONTAINER_CLASS, oContainer.css);
+          sContainers += sContainer;
+      }
+
+      boxHtml = h.replaceAll(boxHtml, WYMeditor.CONTAINERS_ITEMS, sContainers);
+
+      //l10n
+      boxHtml = this.replaceStrings(boxHtml);
+      
+      //load html in wymbox
+      jQuery(this._box).html(boxHtml);
+      
+      //hide the html value
+      jQuery(this._box).find(this._options.htmlSelector).hide();
+      
+      //enable the skin
+      this.loadSkin();
+      
+    }
+};
+
+WYMeditor.editor.prototype.bindEvents = function() {
+
+  //copy the instance
+  var wym = this;
+  
+  //handle click event on tools buttons
+  jQuery(this._box).find(this._options.toolSelector).click(function() {
+    wym._iframe.contentWindow.focus(); //See #154
+    wym.exec(jQuery(this).attr(WYMeditor.NAME));    
+    return(false);
+  });
+  
+  //handle click event on containers buttons
+  jQuery(this._box).find(this._options.containerSelector).click(function() {
+    wym.container(jQuery(this).attr(WYMeditor.NAME));
+    return(false);
+  });
+  
+  //handle keyup event on html value: set the editor value
+  //handle focus/blur events to check if the element has focus, see #147
+  jQuery(this._box).find(this._options.htmlValSelector)
+    .keyup(function() { jQuery(wym._doc.body).html(jQuery(this).val());})
+    .focus(function() { jQuery(this).toggleClass('hasfocus'); })
+    .blur(function() { jQuery(this).toggleClass('hasfocus'); });
+
+  //handle click event on classes buttons
+  jQuery(this._box).find(this._options.classSelector).click(function() {
+  
+    var aClasses = eval(wym._options.classesItems);
+    var sName = jQuery(this).attr(WYMeditor.NAME);
+    
+    var oClass = WYMeditor.Helper.findByName(aClasses, sName);
+    
+    if(oClass) {
+      var jqexpr = oClass.expr;
+      wym.toggleClass(sName, jqexpr);
+    }
+    wym._iframe.contentWindow.focus(); //See #154
+    return(false);
+  });
+  
+  //handle event on update element
+  jQuery(this._options.updateSelector)
+    .bind(this._options.updateEvent, function() {
+      wym.update();
+  });
+};
+
+WYMeditor.editor.prototype.ready = function() {
+  return(this._doc != null);
+};
+
+
+/********** METHODS **********/
+
+/* @name box
+ * @description Returns the WYMeditor container
+ */
+WYMeditor.editor.prototype.box = function() {
+  return(this._box);
+};
+
+/* @name html
+ * @description Get/Set the html value
+ */
+WYMeditor.editor.prototype.html = function(html) {
+
+  if(typeof html === 'string') jQuery(this._doc.body).html(html);
+  else return(jQuery(this._doc.body).html());
+};
+
+/* @name xhtml
+ * @description Cleans up the HTML
+ */
+WYMeditor.editor.prototype.xhtml = function() {
+    return this.parser.parse(this.html());
+};
+
+/* @name exec
+ * @description Executes a button command
+ */
+WYMeditor.editor.prototype.exec = function(cmd) {
+  
+  //base function for execCommand
+  //open a dialog or exec
+  switch(cmd) {
+    case WYMeditor.CREATE_LINK:
+      var container = this.container();
+      if(container || this._selected_image) this.dialog(WYMeditor.DIALOG_LINK);
+    break;
+    
+    case WYMeditor.INSERT_IMAGE:
+      this.dialog(WYMeditor.DIALOG_IMAGE);
+    break;
+    
+    case WYMeditor.INSERT_TABLE:
+      this.dialog(WYMeditor.DIALOG_TABLE);
+    break;
+    
+    case WYMeditor.PASTE:
+      this.dialog(WYMeditor.DIALOG_PASTE);
+    break;
+    
+    case WYMeditor.TOGGLE_HTML:
+      this.update();
+      this.toggleHtml();
+
+      //partially fixes #121 when the user manually inserts an image
+      if(!jQuery(this._box).find(this._options.htmlSelector).is(':visible'))
+        this.listen();
+    break;
+    
+    case WYMeditor.PREVIEW:
+      this.dialog(WYMeditor.PREVIEW, this._options.dialogFeaturesPreview);
+    break;
+    
+    default:
+      this._exec(cmd);
+    break;
+  }
+};
+
+/* @name container
+ * @description Get/Set the selected container
+ */
+WYMeditor.editor.prototype.container = function(sType) {
+
+  if(sType) {
+  
+    var container = null;
+    
+    if(sType.toLowerCase() == WYMeditor.TH) {
+    
+      container = this.container();
+      
+      //find the TD or TH container
+      switch(container.tagName.toLowerCase()) {
+      
+        case WYMeditor.TD: case WYMeditor.TH:
+          break;
+        default:
+          var aTypes = new Array(WYMeditor.TD,WYMeditor.TH);
+          container = this.findUp(this.container(), aTypes);
+          break;
+      }
+      
+      //if it exists, switch
+      if(container!=null) {
+      
+        sType = (container.tagName.toLowerCase() == WYMeditor.TD)? WYMeditor.TH: WYMeditor.TD;
+        this.switchTo(container,sType);
+        this.update();
+      }
+    } else {
+  
+      //set the container type
+      var aTypes=new Array(WYMeditor.P,WYMeditor.H1,WYMeditor.H2,WYMeditor.H3,WYMeditor.H4,WYMeditor.H5,
+      WYMeditor.H6,WYMeditor.PRE,WYMeditor.BLOCKQUOTE);
+      container = this.findUp(this.container(), aTypes);
+      
+      if(container) {
+  
+        var newNode = null;
+  
+        //blockquotes must contain a block level element
+        if(sType.toLowerCase() == WYMeditor.BLOCKQUOTE) {
+        
+          var blockquote = this.findUp(this.container(), WYMeditor.BLOCKQUOTE);
+          
+          if(blockquote == null) {
+          
+            newNode = this._doc.createElement(sType);
+            container.parentNode.insertBefore(newNode,container);
+            newNode.appendChild(container);
+            this.setFocusToNode(newNode.firstChild);
+            
+          } else {
+          
+            var nodes = blockquote.childNodes;
+            var lgt = nodes.length;
+            var firstNode = null;
+            
+            if(lgt > 0) firstNode = nodes.item(0);
+            for(var x=0; x<lgt; x++) {
+              blockquote.parentNode.insertBefore(nodes.item(0),blockquote);
+            }
+            blockquote.parentNode.removeChild(blockquote);
+            if(firstNode) this.setFocusToNode(firstNode);
+          }
+        }
+        
+        else this.switchTo(container,sType);
+      
+        this.update();
+      }
+    }
+  }
+  else return(this.selected());
+};
+
+/* @name toggleClass
+ * @description Toggles class on selected element, or one of its parents
+ */
+WYMeditor.editor.prototype.toggleClass = function(sClass, jqexpr) {
+
+  var container = (this._selected_image
+                    ? this._selected_image
+                    : jQuery(this.selected()));
+  container = jQuery(container).parentsOrSelf(jqexpr);
+  jQuery(container).toggleClass(sClass);
+
+  if(!jQuery(container).attr(WYMeditor.CLASS)) jQuery(container).removeAttr(this._class);
+
+};
+
+/* @name findUp
+ * @description Returns the first parent or self container, based on its type
+ */
+WYMeditor.editor.prototype.findUp = function(node, filter) {
+
+  //filter is a string or an array of strings
+
+  if(node) {
+
+      var tagname = node.tagName.toLowerCase();
+      
+      if(typeof(filter) == WYMeditor.STRING) {
+    
+        while(tagname != filter && tagname != WYMeditor.BODY) {
+        
+          node = node.parentNode;
+          tagname = node.tagName.toLowerCase();
+        }
+      
+      } else {
+      
+        var bFound = false;
+        
+        while(!bFound && tagname != WYMeditor.BODY) {
+          for(var i = 0; i < filter.length; i++) {
+            if(tagname == filter[i]) {
+              bFound = true;
+              break;
+            }
+          }
+          if(!bFound) {
+            node = node.parentNode;
+            tagname = node.tagName.toLowerCase();
+          }
+        }
+      }
+      
+      if(tagname != WYMeditor.BODY) return(node);
+      else return(null);
+      
+  } else return(null);
+};
+
+/* @name switchTo
+ * @description Switch the node's type
+ */
+WYMeditor.editor.prototype.switchTo = function(node,sType) {
+
+  var newNode = this._doc.createElement(sType);
+  var html = jQuery(node).html();
+  node.parentNode.replaceChild(newNode,node);
+  jQuery(newNode).html(html);
+  this.setFocusToNode(newNode);
+};
+
+WYMeditor.editor.prototype.replaceStrings = function(sVal) {
+  //check if the language file has already been loaded
+  //if not, get it via a synchronous ajax call
+  if(!WYMeditor.STRINGS[this._options.lang]) {
+    try {
+      eval(jQuery.ajax({url:this._options.langPath
+        + this._options.lang + '.js', async:false}).responseText);
+    } catch(e) {
+        WYMeditor.console.error("WYMeditor: error while parsing language file.");
+        return sVal;
+    }
+  }
+
+  //replace all the strings in sVal and return it
+  for (var key in WYMeditor.STRINGS[this._options.lang]) {
+    sVal = WYMeditor.Helper.replaceAll(sVal, this._options.stringDelimiterLeft + key 
+    + this._options.stringDelimiterRight,
+    WYMeditor.STRINGS[this._options.lang][key]);
+  };
+  return(sVal);
+};
+
+WYMeditor.editor.prototype.encloseString = function(sVal) {
+
+  return(this._options.stringDelimiterLeft
+    + sVal
+    + this._options.stringDelimiterRight);
+};
+
+/* @name status
+ * @description Prints a status message
+ */
+WYMeditor.editor.prototype.status = function(sMessage) {
+
+  //print status message
+  jQuery(this._box).find(this._options.statusSelector).html(sMessage);
+};
+
+/* @name update
+ * @description Updates the element and textarea values
+ */
+WYMeditor.editor.prototype.update = function() {
+
+  var html = this.xhtml();
+  jQuery(this._element).val(html);
+  jQuery(this._box).find(this._options.htmlValSelector).not('.hasfocus').val(html); //#147
+};
+
+/* @name dialog
+ * @description Opens a dialog box
+ */
+WYMeditor.editor.prototype.dialog = function( dialogType, dialogFeatures, bodyHtml ) {
+  
+  var features = dialogFeatures || this._wym._options.dialogFeatures;
+  var wDialog = window.open('', 'dialog', features);
+
+  if(wDialog) {
+
+    var sBodyHtml = "";
+    
+    switch( dialogType ) {
+
+      case(WYMeditor.DIALOG_LINK):
+        sBodyHtml = this._options.dialogLinkHtml;
+      break;
+      case(WYMeditor.DIALOG_IMAGE):
+        sBodyHtml = this._options.dialogImageHtml;
+      break;
+      case(WYMeditor.DIALOG_TABLE):
+        sBodyHtml = this._options.dialogTableHtml;
+      break;
+      case(WYMeditor.DIALOG_PASTE):
+        sBodyHtml = this._options.dialogPasteHtml;
+      break;
+      case(WYMeditor.PREVIEW):
+        sBodyHtml = this._options.dialogPreviewHtml;
+      break;
+
+      default:
+        sBodyHtml = bodyHtml;
+    }
+    
+    var h = WYMeditor.Helper;
+
+    //construct the dialog
+    var dialogHtml = this._options.dialogHtml;
+    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.BASE_PATH, this._options.basePath);
+    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.DIRECTION, this._options.direction);
+    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.CSS_PATH, this._options.skinPath + WYMeditor.SKINS_DEFAULT_CSS);
+    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.WYM_PATH, this._options.wymPath);
+    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.JQUERY_PATH, this._options.jQueryPath);
+    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.DIALOG_TITLE, this.encloseString( dialogType ));
+    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.DIALOG_BODY, sBodyHtml);
+    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.INDEX, this._index);
+      
+    dialogHtml = this.replaceStrings(dialogHtml);
+    
+    var doc = wDialog.document;
+    doc.write(dialogHtml);
+    doc.close();
+  }
+};
+
+/* @name toggleHtml
+ * @description Shows/Hides the HTML
+ */
+WYMeditor.editor.prototype.toggleHtml = function() {
+  jQuery(this._box).find(this._options.htmlSelector).toggle();
+};
+
+WYMeditor.editor.prototype.uniqueStamp = function() {
+       var now = new Date();
+       return("wym-" + now.getTime());
+};
+
+WYMeditor.editor.prototype.paste = function(sData) {
+
+  var sTmp;
+  var container = this.selected();
+       
+  //split the data, using double newlines as the separator
+  var aP = sData.split(this._newLine + this._newLine);
+  var rExp = new RegExp(this._newLine, "g");
+
+  //add a P for each item
+  if(container && container.tagName.toLowerCase() != WYMeditor.BODY) {
+    for(x = aP.length - 1; x >= 0; x--) {
+        sTmp = aP[x];
+        //simple newlines are replaced by a break
+        sTmp = sTmp.replace(rExp, "<br />");
+        jQuery(container).after("<p>" + sTmp + "</p>");
+    }
+  } else {
+    for(x = 0; x < aP.length; x++) {
+        sTmp = aP[x];
+        //simple newlines are replaced by a break
+        sTmp = sTmp.replace(rExp, "<br />");
+        jQuery(this._doc.body).append("<p>" + sTmp + "</p>");
+    }
+  
+  }
+};
+
+WYMeditor.editor.prototype.insert = function(html) {
+    // Do we have a selection?
+    if (this._iframe.contentWindow.getSelection().focusNode != null) {
+        // Overwrite selection with provided html
+        this._exec( WYMeditor.INSERT_HTML, html);
+    } else {
+        // Fall back to the internal paste function if there's no selection
+        this.paste(html)
+    }
+};
+
+WYMeditor.editor.prototype.wrap = function(left, right) {
+    // Do we have a selection?
+    if (this._iframe.contentWindow.getSelection().focusNode != null) {
+        // Wrap selection with provided html
+        this._exec( WYMeditor.INSERT_HTML, left + this._iframe.contentWindow.getSelection().toString() + right);
+    }
+};
+
+WYMeditor.editor.prototype.unwrap = function() {
+    // Do we have a selection?
+    if (this._iframe.contentWindow.getSelection().focusNode != null) {
+        // Unwrap selection
+        this._exec( WYMeditor.INSERT_HTML, this._iframe.contentWindow.getSelection().toString() );
+    }
+};
+
+WYMeditor.editor.prototype.addCssRules = function(doc, aCss) {
+  var styles = doc.styleSheets[0];
+  if(styles) {
+    for(var i = 0; i < aCss.length; i++) {
+      var oCss = aCss[i];
+      if(oCss.name && oCss.css) this.addCssRule(styles, oCss);
+    }
+  }
+};
+
+/********** CONFIGURATION **********/
+
+WYMeditor.editor.prototype.computeBasePath = function() {
+  return jQuery(jQuery.grep(jQuery('script'), function(s){
+    return (s.src && s.src.match(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/ ))
+  })).attr('src').replace(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/, '');
+};
+
+WYMeditor.editor.prototype.computeWymPath = function() {
+  return jQuery(jQuery.grep(jQuery('script'), function(s){
+    return (s.src && s.src.match(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/ ))
+  })).attr('src');
+};
+
+WYMeditor.editor.prototype.computeJqueryPath = function() {
+  return jQuery(jQuery.grep(jQuery('script'), function(s){
+    return (s.src && s.src.match(/jquery(-(.*)){0,1}(\.pack|\.min|\.packed)?\.js(\?.*)?$/ ))
+  })).attr('src');
+};
+
+WYMeditor.editor.prototype.computeCssPath = function() {
+  return jQuery(jQuery.grep(jQuery('link'), function(s){
+   return (s.href && s.href.match(/wymeditor\/skins\/(.*)screen\.css(\?.*)?$/ ))
+  })).attr('href');
+};
+
+WYMeditor.editor.prototype.configureEditorUsingRawCss = function() {
+
+  var CssParser = new WYMeditor.WymCssParser();
+  if(this._options.stylesheet){
+    CssParser.parse(jQuery.ajax({url: this._options.stylesheet,async:false}).responseText);
+  }else{
+    CssParser.parse(this._options.styles, false);
+  }
+
+  if(this._options.classesItems.length == 0) {
+    this._options.classesItems = CssParser.css_settings.classesItems;
+  }
+  if(this._options.editorStyles.length == 0) {
+    this._options.editorStyles = CssParser.css_settings.editorStyles;
+  }
+  if(this._options.dialogStyles.length == 0) {
+    this._options.dialogStyles = CssParser.css_settings.dialogStyles;
+  }
+};
+
+/********** EVENTS **********/
+
+WYMeditor.editor.prototype.listen = function() {
+
+  //don't use jQuery.find() on the iframe body
+  //because of MSIE + jQuery + expando issue (#JQ1143)
+  //jQuery(this._doc.body).find("*").bind("mouseup", this.mouseup);
+  
+  jQuery(this._doc.body).bind("mousedown", this.mousedown);
+  var images = this._doc.body.getElementsByTagName("img");
+  for(var i=0; i < images.length; i++) {
+    jQuery(images[i]).bind("mousedown", this.mousedown);
+  }
+};
+
+WYMeditor.editor.prototype.mousedown = function(evt) {
+  
+  var wym = WYMeditor.INSTANCES[this.ownerDocument.title];
+  wym._selected_image = (this.tagName.toLowerCase() == WYMeditor.IMG) ? this : null;
+  evt.stopPropagation();
+};
+
+/********** SKINS **********/
+
+/*
+ * Function: WYMeditor.loadCss
+ *      Loads a stylesheet in the document.
+ *
+ * Parameters:
+ *      href - The CSS path.
+ */
+WYMeditor.loadCss = function(href) {
+    
+    var link = document.createElement('link');
+    link.rel = 'stylesheet';
+    link.href = href;
+
+    var head = jQuery('head').get(0);
+    head.appendChild(link);
+};
+
+/*
+ *  Function: WYMeditor.editor.loadSkin
+ *      Loads the skin CSS and initialization script (if needed).
+ */
+WYMeditor.editor.prototype.loadSkin = function() {
+
+    //does the user want to automatically load the CSS (default: yes)?
+    //we also test if it hasn't been already loaded by another instance
+    //see below for a better (second) test
+    if(this._options.loadSkin && !WYMeditor.SKINS[this._options.skin]) {
+
+        //check if it hasn't been already loaded
+        //so we don't load it more than once
+        //(we check the existing <link> elements)
+
+        var found = false;
+        var rExp = new RegExp(this._options.skin
+             + '\/' + WYMeditor.SKINS_DEFAULT_CSS + '$');
+
+        jQuery('link').each( function() {
+            if(this.href.match(rExp)) found = true;
+        });
+
+        //load it, using the skin path
+        if(!found) WYMeditor.loadCss( this._options.skinPath
+            + WYMeditor.SKINS_DEFAULT_CSS );
+    }
+
+    //put the classname (ex. wym_skin_default) on wym_box
+    jQuery(this._box).addClass( "wym_skin_" + this._options.skin );
+
+    //does the user want to use some JS to initialize the skin (default: yes)?
+    //also check if it hasn't already been loaded by another instance
+    if(this._options.initSkin && !WYMeditor.SKINS[this._options.skin]) {
+
+        eval(jQuery.ajax({url:this._options.skinPath
+            + WYMeditor.SKINS_DEFAULT_JS, async:false}).responseText);
+    }
+
+    //init the skin, if needed
+    if(WYMeditor.SKINS[this._options.skin]
+    && WYMeditor.SKINS[this._options.skin].init)
+       WYMeditor.SKINS[this._options.skin].init(this);
+
+};
+
+
+/********** DIALOGS **********/
+
+WYMeditor.INIT_DIALOG = function(index) {
+
+  var wym = window.opener.WYMeditor.INSTANCES[index];
+  var doc = window.document;
+  var selected = wym.selected();
+  var dialogType = jQuery(wym._options.dialogTypeSelector).val();
+  var sStamp = wym.uniqueStamp();
+
+  switch(dialogType) {
+
+  case WYMeditor.DIALOG_LINK:
+    //ensure that we select the link to populate the fields
+    if(selected && selected.tagName && selected.tagName.toLowerCase != WYMeditor.A)
+      selected = jQuery(selected).parentsOrSelf(WYMeditor.A);
+
+    //fix MSIE selection if link image has been clicked
+    if(!selected && wym._selected_image)
+      selected = jQuery(wym._selected_image).parentsOrSelf(WYMeditor.A);
+  break;
+
+  }
+
+  //pre-init functions
+  if(jQuery.isFunction(wym._options.preInitDialog))
+    wym._options.preInitDialog(wym,window);
+
+  //add css rules from options
+  var styles = doc.styleSheets[0];
+  var aCss = eval(wym._options.dialogStyles);
+
+  wym.addCssRules(doc, aCss);
+
+  //auto populate fields if selected container (e.g. A)
+  if(selected) {
+    jQuery(wym._options.hrefSelector).val(jQuery(selected).attr(WYMeditor.HREF));
+    jQuery(wym._options.srcSelector).val(jQuery(selected).attr(WYMeditor.SRC));
+    jQuery(wym._options.titleSelector).val(jQuery(selected).attr(WYMeditor.TITLE));
+    jQuery(wym._options.altSelector).val(jQuery(selected).attr(WYMeditor.ALT));
+  }
+
+  //auto populate image fields if selected image
+  if(wym._selected_image) {
+    jQuery(wym._options.dialogImageSelector + " " + wym._options.srcSelector)
+      .val(jQuery(wym._selected_image).attr(WYMeditor.SRC));
+    jQuery(wym._options.dialogImageSelector + " " + wym._options.titleSelector)
+      .val(jQuery(wym._selected_image).attr(WYMeditor.TITLE));
+    jQuery(wym._options.dialogImageSelector + " " + wym._options.altSelector)
+      .val(jQuery(wym._selected_image).attr(WYMeditor.ALT));
+  }
+
+  jQuery(wym._options.dialogLinkSelector + " "
+    + wym._options.submitSelector).click(function() {
+
+      var sUrl = jQuery(wym._options.hrefSelector).val();
+      if(sUrl.length > 0) {
+
+        wym._exec(WYMeditor.CREATE_LINK, sStamp);
+
+        jQuery("a[href=" + sStamp + "]", wym._doc.body)
+            .attr(WYMeditor.HREF, sUrl)
+            .attr(WYMeditor.TITLE, jQuery(wym._options.titleSelector).val());
+
+      }
+      window.close();
+  });
+
+  jQuery(wym._options.dialogImageSelector + " "
+    + wym._options.submitSelector).click(function() {
+
+      var sUrl = jQuery(wym._options.srcSelector).val();
+      if(sUrl.length > 0) {
+
+        wym._exec(WYMeditor.INSERT_IMAGE, sStamp);
+
+        jQuery("img[src$=" + sStamp + "]", wym._doc.body)
+            .attr(WYMeditor.SRC, sUrl)
+            .attr(WYMeditor.TITLE, jQuery(wym._options.titleSelector).val())
+            .attr(WYMeditor.ALT, jQuery(wym._options.altSelector).val());
+      }
+      window.close();
+  });
+
+  jQuery(wym._options.dialogTableSelector + " "
+    + wym._options.submitSelector).click(function() {
+
+      var iRows = jQuery(wym._options.rowsSelector).val();
+      var iCols = jQuery(wym._options.colsSelector).val();
+
+      if(iRows > 0 && iCols > 0) {
+
+        var table = wym._doc.createElement(WYMeditor.TABLE);
+        var newRow = null;
+               var newCol = null;
+
+               var sCaption = jQuery(wym._options.captionSelector).val();
+
+               //we create the caption
+               var newCaption = table.createCaption();
+               newCaption.innerHTML = sCaption;
+
+               //we create the rows and cells
+               for(x=0; x<iRows; x++) {
+                       newRow = table.insertRow(x);
+                       for(y=0; y<iCols; y++) {newRow.insertCell(y);}
+               }
+
+        //set the summary attr
+        jQuery(table).attr('summary',
+            jQuery(wym._options.summarySelector).val());
+
+        //append the table after the selected container
+        var node = jQuery(wym.findUp(wym.container(),
+          WYMeditor.MAIN_CONTAINERS)).get(0);
+        if(!node || !node.parentNode) jQuery(wym._doc.body).append(table);
+        else jQuery(node).after(table);
+      }
+      window.close();
+  });
+
+  jQuery(wym._options.dialogPasteSelector + " "
+    + wym._options.submitSelector).click(function() {
+
+      var sText = jQuery(wym._options.textSelector).val();
+      wym.paste(sText);
+      window.close();
+  });
+
+  jQuery(wym._options.dialogPreviewSelector + " "
+    + wym._options.previewSelector)
+    .html(wym.xhtml());
+
+  //cancel button
+  jQuery(wym._options.cancelSelector).mousedown(function() {
+    window.close();
+  });
+
+  //pre-init functions
+  if(jQuery.isFunction(wym._options.postInitDialog))
+    wym._options.postInitDialog(wym,window);
+
+};
+
+/********** XHTML LEXER/PARSER **********/
+
+/*
+* @name xml
+* @description Use these methods to generate XML and XHTML compliant tags and
+* escape tag attributes correctly
+* @author Bermi Ferrer - http://bermi.org
+* @author David Heinemeier Hansson http://loudthinking.com
+*/
+WYMeditor.XmlHelper = function()
+{
+  this._entitiesDiv = document.createElement('div');
+  return this;
+};
+
+
+/*
+* @name tag
+* @description
+* Returns an empty HTML tag of type *name* which by default is XHTML
+* compliant. Setting *open* to true will create an open tag compatible
+* with HTML 4.0 and below. Add HTML attributes by passing an attributes
+* array to *options*. For attributes with no value like (disabled and
+* readonly), give it a value of true in the *options* array.
+*
+* Examples:
+*
+*   this.tag('br')
+*    # => <br />
+*   this.tag ('br', false, true)
+*    # => <br>
+*   this.tag ('input', jQuery({type:'text',disabled:true }) )
+*    # => <input type="text" disabled="disabled" />
+*/
+WYMeditor.XmlHelper.prototype.tag = function(name, options, open)
+{
+  options = options || false;
+  open = open || false;
+  return '<'+name+(options ? this.tagOptions(options) : '')+(open ? '>' : ' />');
+};
+
+/*
+* @name contentTag
+* @description
+* Returns a XML block tag of type *name* surrounding the *content*. Add
+* XML attributes by passing an attributes array to *options*. For attributes
+* with no value like (disabled and readonly), give it a value of true in
+* the *options* array. You can use symbols or strings for the attribute names.
+*
+*   this.contentTag ('p', 'Hello world!' )
+*    # => <p>Hello world!</p>
+*   this.contentTag('div', this.contentTag('p', "Hello world!"), jQuery({class : "strong"}))
+*    # => <div class="strong"><p>Hello world!</p></div>
+*   this.contentTag("select", options, jQuery({multiple : true}))
+*    # => <select multiple="multiple">...options...</select>
+*/
+WYMeditor.XmlHelper.prototype.contentTag = function(name, content, options)
+{
+  options = options || false;
+  return '<'+name+(options ? this.tagOptions(options) : '')+'>'+content+'</'+name+'>';
+};
+
+/*
+* @name cdataSection
+* @description
+* Returns a CDATA section for the given +content+.  CDATA sections
+* are used to escape blocks of text containing characters which would
+* otherwise be recognized as markup. CDATA sections begin with the string
+* <tt>&lt;![CDATA[</tt> and } with (and may not contain) the string
+* <tt>]]></tt>.
+*/
+WYMeditor.XmlHelper.prototype.cdataSection = function(content)
+{
+  return '<![CDATA['+content+']]>';
+};
+
+
+/*
+* @name escapeOnce
+* @description
+* Returns the escaped +xml+ without affecting existing escaped entities.
+*
+*  this.escapeOnce( "1 > 2 &amp; 3")
+*    # => "1 &gt; 2 &amp; 3"
+*/
+WYMeditor.XmlHelper.prototype.escapeOnce = function(xml)
+{
+  return this._fixDoubleEscape(this.escapeEntities(xml));
+};
+
+/*
+* @name _fixDoubleEscape
+* @description
+* Fix double-escaped entities, such as &amp;amp;, &amp;#123;, etc.
+*/
+WYMeditor.XmlHelper.prototype._fixDoubleEscape = function(escaped)
+{
+  return escaped.replace(/&amp;([a-z]+|(#\d+));/ig, "&$1;");
+};
+
+/*
+* @name tagOptions
+* @description
+* Takes an array like the one generated by Tag.parseAttributes
+*  [["src", "http://www.editam.com/?a=b&c=d&amp;f=g"], ["title", "Editam, <Simplified> CMS"]]
+* or an object like {src:"http://www.editam.com/?a=b&c=d&amp;f=g", title:"Editam, <Simplified> CMS"}
+* and returns a string properly escaped like
+* ' src = "http://www.editam.com/?a=b&amp;c=d&amp;f=g" title = "Editam, &lt;Simplified&gt; CMS"'
+* which is valid for strict XHTML
+*/
+WYMeditor.XmlHelper.prototype.tagOptions = function(options)
+{
+  var xml = this;
+  xml._formated_options = '';
+
+  for (var key in options) {
+    var formated_options = '';
+    var value = options[key];
+    if(typeof value != 'function' && value.length > 0) {
+
+      if(parseInt(key) == key && typeof value == 'object'){
+        key = value.shift();
+        value = value.pop();
+      }
+      if(key != '' && value != ''){
+        xml._formated_options += ' '+key+'="'+xml.escapeOnce(value)+'"';
+      }
+    }
+  }
+  return xml._formated_options;
+};
+
+/*
+* @name escapeEntities
+* @description
+* Escapes XML/HTML entities <, >, & and ". If seccond parameter is set to false it
+* will not escape ". If set to true it will also escape '
+*/
+WYMeditor.XmlHelper.prototype.escapeEntities = function(string, escape_quotes)
+{
+  this._entitiesDiv.innerHTML = string;
+  this._entitiesDiv.textContent = string;
+  var result = this._entitiesDiv.innerHTML;
+  if(typeof escape_quotes == 'undefined'){
+    if(escape_quotes != false) result = result.replace('"', '&quot;');
+    if(escape_quotes == true)  result = result.replace('"', '&#039;');
+  }
+  return result;
+};
+
+/*
+* Parses a string conatining tag attributes and values an returns an array formated like
+*  [["src", "http://www.editam.com"], ["title", "Editam, Simplified CMS"]]
+*/
+WYMeditor.XmlHelper.prototype.parseAttributes = function(tag_attributes)
+{
+  // Use a compounded regex to match single quoted, double quoted and unquoted attribute pairs
+  var result = [];
+  var matches = tag_attributes.split(/((=\s*")(")("))|((=\s*\')(\')(\'))|((=\s*[^>\s]*))/g);
+  if(matches.toString() != tag_attributes){
+    for (var k in matches) {
+      var v = matches[k];
+      if(typeof v != 'function' && v.length != 0){
+        var re = new RegExp('(\\w+)\\s*'+v);
+        if(match = tag_attributes.match(re) ){
+          var value = v.replace(/^[\s=]+/, "");
+          var delimiter = value.charAt(0);
+          delimiter = delimiter == '"' ? '"' : (delimiter=="'"?"'":'');
+          if(delimiter != ''){
+            value = delimiter == '"' ? value.replace(/^"|"+$/g, '') :  value.replace(/^'|'+$/g, '');
+          }
+          tag_attributes = tag_attributes.replace(match[0],'');
+          result.push([match[1] , value]);
+        }
+      }
+    }
+  }
+  return result;
+};
+
+/**
+* XhtmlValidator for validating tag attributes
+*
+* @author Bermi Ferrer - http://bermi.org
+*/
+WYMeditor.XhtmlValidator = {
+  "_attributes":
+  {
+    "core":
+    {
+      "except":[
+      "base",
+      "head",
+      "html",
+      "meta",
+      "param",
+      "script",
+      "style",
+      "title"
+      ],
+      "attributes":[
+      "class",
+      "id",
+      "style",
+      "title",
+      "accesskey",
+      "tabindex"
+      ]
+    },
+    "language":
+    {
+      "except":[
+      "base",
+      "br",
+      "hr",
+      "iframe",
+      "param",
+      "script"
+      ],
+      "attributes":
+      {
+        "dir":[
+        "ltr",
+        "rtl"
+        ],
+        "0":"lang",
+        "1":"xml:lang"
+      }
+    },
+    "keyboard":
+    {
+      "attributes":
+      {
+        "accesskey":/^(\w){1}$/,
+        "tabindex":/^(\d)+$/
+      }
+    }
+  },
+  "_events":
+  {
+    "window":
+    {
+      "only":[
+      "body"
+      ],
+      "attributes":[
+      "onload",
+      "onunload"
+      ]
+    },
+    "form":
+    {
+      "only":[
+      "form",
+      "input",
+      "textarea",
+      "select",
+      "a",
+      "label",
+      "button"
+      ],
+      "attributes":[
+      "onchange",
+      "onsubmit",
+      "onreset",
+      "onselect",
+      "onblur",
+      "onfocus"
+      ]
+    },
+    "keyboard":
+    {
+      "except":[
+      "base",
+      "bdo",
+      "br",
+      "frame",
+      "frameset",
+      "head",
+      "html",
+      "iframe",
+      "meta",
+      "param",
+      "script",
+      "style",
+      "title"
+      ],
+      "attributes":[
+      "onkeydown",
+      "onkeypress",
+      "onkeyup"
+      ]
+    },
+    "mouse":
+    {
+      "except":[
+      "base",
+      "bdo",
+      "br",
+      "head",
+      "html",
+      "meta",
+      "param",
+      "script",
+      "style",
+      "title"
+      ],
+      "attributes":[
+      "onclick",
+      "ondblclick",
+      "onmousedown",
+      "onmousemove",
+      "onmouseover",
+      "onmouseout",
+      "onmouseup"
+      ]
+    }
+  },
+  "_tags":
+  {
+    "a":
+    {
+      "attributes":
+      {
+        "0":"charset",
+        "1":"coords",
+        "2":"href",
+        "3":"hreflang",
+        "4":"name",
+        "rel":/^(alternate|designates|stylesheet|start|next|prev|contents|index|glossary|copyright|chapter|section|subsection|appendix|help|bookmark| |shortcut|icon)+$/,
+        "rev":/^(alternate|designates|stylesheet|start|next|prev|contents|index|glossary|copyright|chapter|section|subsection|appendix|help|bookmark| |shortcut|icon)+$/,
+        "shape":/^(rect|rectangle|circ|circle|poly|polygon)$/,
+        "5":"type"
+      }
+    },
+    "0":"abbr",
+    "1":"acronym",
+    "2":"address",
+    "area":
+    {
+      "attributes":
+      {
+        "0":"alt",
+        "1":"coords",
+        "2":"href",
+        "nohref":/^(true|false)$/,
+        "shape":/^(rect|rectangle|circ|circle|poly|polygon)$/
+      },
+      "required":[
+      "alt"
+      ]
+    },
+    "3":"b",
+    "base":
+    {
+      "attributes":[
+      "href"
+      ],
+      "required":[
+      "href"
+      ]
+    },
+    "bdo":
+    {
+      "attributes":
+      {
+        "dir":/^(ltr|rtl)$/
+      },
+      "required":[
+      "dir"
+      ]
+    },
+    "4":"big",
+    "blockquote":
+    {
+      "attributes":[
+      "cite"
+      ]
+    },
+    "5":"body",
+    "6":"br",
+    "button":
+    {
+      "attributes":
+      {
+        "disabled":/^(disabled)$/,
+        "type":/^(button|reset|submit)$/,
+        "0":"value"
+      },
+      "inside":"form"
+    },
+    "7":"caption",
+    "8":"cite",
+    "9":"code",
+    "col":
+    {
+      "attributes":
+      {
+        "align":/^(right|left|center|justify)$/,
+        "0":"char",
+        "1":"charoff",
+        "span":/^(\d)+$/,
+        "valign":/^(top|middle|bottom|baseline)$/,
+        "2":"width"
+      },
+      "inside":"colgroup"
+    },
+    "colgroup":
+    {
+      "attributes":
+      {
+        "align":/^(right|left|center|justify)$/,
+        "0":"char",
+        "1":"charoff",
+        "span":/^(\d)+$/,
+        "valign":/^(top|middle|bottom|baseline)$/,
+        "2":"width"
+      }
+    },
+    "10":"dd",
+    "del":
+    {
+      "attributes":
+      {
+        "0":"cite",
+        "datetime":/^([0-9]){8}/
+      }
+    },
+    "11":"div",
+    "12":"dfn",
+    "13":"dl",
+    "14":"dt",
+    "15":"em",
+    "fieldset":
+    {
+      "inside":"form"
+    },
+    "form":
+    {
+      "attributes":
+      {
+        "0":"action",
+        "1":"accept",
+        "2":"accept-charset",
+        "3":"enctype",
+        "method":/^(get|post)$/
+      },
+      "required":[
+      "action"
+      ]
+    },
+    "head":
+    {
+      "attributes":[
+      "profile"
+      ]
+    },
+    "16":"h1",
+    "17":"h2",
+    "18":"h3",
+    "19":"h4",
+    "20":"h5",
+    "21":"h6",
+    "22":"hr",
+    "html":
+    {
+      "attributes":[
+      "xmlns"
+      ]
+    },
+    "23":"i",
+    "img":
+    {
+      "attributes":[
+      "alt",
+      "src",
+      "height",
+      "ismap",
+      "longdesc",
+      "usemap",
+      "width"
+      ],
+      "required":[
+      "alt",
+      "src"
+      ]
+    },
+    "input":
+    {
+      "attributes":
+      {
+        "0":"accept",
+        "1":"alt",
+        "checked":/^(checked)$/,
+        "disabled":/^(disabled)$/,
+        "maxlength":/^(\d)+$/,
+        "2":"name",
+        "readonly":/^(readonly)$/,
+        "size":/^(\d)+$/,
+        "3":"src",
+        "type":/^(button|checkbox|file|hidden|image|password|radio|reset|submit|text)$/,
+        "4":"value"
+      },
+      "inside":"form"
+    },
+    "ins":
+    {
+      "attributes":
+      {
+        "0":"cite",
+        "datetime":/^([0-9]){8}/
+      }
+    },
+    "24":"kbd",
+    "label":
+    {
+      "attributes":[
+      "for"
+      ],
+      "inside":"form"
+    },
+    "25":"legend",
+    "26":"li",
+    "link":
+    {
+      "attributes":
+      {
+        "0":"charset",
+        "1":"href",
+        "2":"hreflang",
+        "media":/^(all|braille|print|projection|screen|speech|,|;| )+$/i,
+        //next comment line required by Opera!
+        /*"rel":/^(alternate|appendix|bookmark|chapter|contents|copyright|glossary|help|home|index|next|prev|section|start|stylesheet|subsection| |shortcut|icon)+$/i,*/
+        "rel":/^(alternate|appendix|bookmark|chapter|contents|copyright|glossary|help|home|index|next|prev|section|start|stylesheet|subsection| |shortcut|icon)+$/i,
+        "rev":/^(alternate|appendix|bookmark|chapter|contents|copyright|glossary|help|home|index|next|prev|section|start|stylesheet|subsection| |shortcut|icon)+$/i,
+        "3":"type"
+      },
+      "inside":"head"
+    },
+    "map":
+    {
+      "attributes":[
+      "id",
+      "name"
+      ],
+      "required":[
+      "id"
+      ]
+    },
+    "meta":
+    {
+      "attributes":
+      {
+        "0":"content",
+        "http-equiv":/^(content\-type|expires|refresh|set\-cookie)$/i,
+        "1":"name",
+        "2":"scheme"
+      },
+      "required":[
+      "content"
+      ]
+    },
+    "27":"noscript",
+    "object":
+    {
+      "attributes":[
+      "archive",
+      "classid",
+      "codebase",
+      "codetype",
+      "data",
+      "declare",
+      "height",
+      "name",
+      "standby",
+      "type",
+      "usemap",
+      "width"
+      ]
+    },
+    "28":"ol",
+    "optgroup":
+    {
+      "attributes":
+      {
+        "0":"label",
+        "disabled": /^(disabled)$/
+      },
+      "required":[
+      "label"
+      ]
+    },
+    "option":
+    {
+      "attributes":
+      {
+        "0":"label",
+        "disabled":/^(disabled)$/,
+        "selected":/^(selected)$/,
+        "1":"value"
+      },
+      "inside":"select"
+    },
+    "29":"p",
+    "param":
+    {
+      "attributes":
+      {
+        "0":"type",
+        "valuetype":/^(data|ref|object)$/,
+        "1":"valuetype",
+        "2":"value"
+      },
+      "required":[
+      "name"
+      ]
+    },
+    "30":"pre",
+    "q":
+    {
+      "attributes":[
+      "cite"
+      ]
+    },
+    "31":"samp",
+    "script":
+    {
+      "attributes":
+      {
+        "type":/^(text\/ecmascript|text\/javascript|text\/jscript|text\/vbscript|text\/vbs|text\/xml)$/,
+        "0":"charset",
+        "defer":/^(defer)$/,
+        "1":"src"
+      },
+      "required":[
+      "type"
+      ]
+    },
+    "select":
+    {
+      "attributes":
+      {
+        "disabled":/^(disabled)$/,
+        "multiple":/^(multiple)$/,
+        "0":"name",
+        "1":"size"
+      },
+      "inside":"form"
+    },
+    "32":"small",
+    "33":"span",
+    "34":"strong",
+    "style":
+    {
+      "attributes":
+      {
+        "0":"type",
+        "media":/^(screen|tty|tv|projection|handheld|print|braille|aural|all)$/
+      },
+      "required":[
+      "type"
+      ]
+    },
+    "35":"sub",
+    "36":"sup",
+    "table":
+    {
+      "attributes":
+      {
+        "0":"border",
+        "1":"cellpadding",
+        "2":"cellspacing",
+        "frame":/^(void|above|below|hsides|lhs|rhs|vsides|box|border)$/,
+        "rules":/^(none|groups|rows|cols|all)$/,
+        "3":"summary",
+        "4":"width"
+      }
+    },
+    "tbody":
+    {
+      "attributes":
+      {
+        "align":/^(right|left|center|justify)$/,
+        "0":"char",
+        "1":"charoff",
+        "valign":/^(top|middle|bottom|baseline)$/
+      }
+    },
+    "td":
+    {
+      "attributes":
+      {
+        "0":"abbr",
+        "align":/^(left|right|center|justify|char)$/,
+        "1":"axis",
+        "2":"char",
+        "3":"charoff",
+        "colspan":/^(\d)+$/,
+        "4":"headers",
+        "rowspan":/^(\d)+$/,
+        "scope":/^(col|colgroup|row|rowgroup)$/,
+        "valign":/^(top|middle|bottom|baseline)$/
+      }
+    },
+    "textarea":
+    {
+      "attributes":[
+      "cols",
+      "rows",
+      "disabled",
+      "name",
+      "readonly"
+      ],
+      "required":[
+      "cols",
+      "rows"
+      ],
+      "inside":"form"
+    },
+    "tfoot":
+    {
+      "attributes":
+      {
+        "align":/^(right|left|center|justify)$/,
+        "0":"char",
+        "1":"charoff",
+        "valign":/^(top|middle|bottom)$/,
+        "2":"baseline"
+      }
+    },
+    "th":
+    {
+      "attributes":
+      {
+        "0":"abbr",
+        "align":/^(left|right|center|justify|char)$/,
+        "1":"axis",
+        "2":"char",
+        "3":"charoff",
+        "colspan":/^(\d)+$/,
+        "4":"headers",
+        "rowspan":/^(\d)+$/,
+        "scope":/^(col|colgroup|row|rowgroup)$/,
+        "valign":/^(top|middle|bottom|baseline)$/
+      }
+    },
+    "thead":
+    {
+      "attributes":
+      {
+        "align":/^(right|left|center|justify)$/,
+        "0":"char",
+        "1":"charoff",
+        "valign":/^(top|middle|bottom|baseline)$/
+      }
+    },
+    "37":"title",
+    "tr":
+    {
+      "attributes":
+      {
+        "align":/^(right|left|center|justify|char)$/,
+        "0":"char",
+        "1":"charoff",
+        "valign":/^(top|middle|bottom|baseline)$/
+      }
+    },
+    "38":"tt",
+    "39":"ul",
+    "40":"var"
+  },
+
+  // Temporary skiped attributes
+  skiped_attributes : [],
+  skiped_attribute_values : [],
+
+  getValidTagAttributes: function(tag, attributes)
+  {
+    var valid_attributes = {};
+    var possible_attributes = this.getPossibleTagAttributes(tag);
+    for(var attribute in attributes) {
+      var value = attributes[attribute];
+      var h = WYMeditor.Helper;
+      if(!h.contains(this.skiped_attributes, attribute) && !h.contains(this.skiped_attribute_values, value)){
+        if (typeof value != 'function' && h.contains(possible_attributes, attribute)) {
+          if (this.doesAttributeNeedsValidation(tag, attribute)) {
+            if(this.validateAttribute(tag, attribute, value)){
+              valid_attributes[attribute] = value;
+            }
+          }else{
+            valid_attributes[attribute] = value;
+          }
+        }
+      }
+    }
+    return valid_attributes;
+  },
+  getUniqueAttributesAndEventsForTag : function(tag)
+  {
+    var result = [];
+
+    if (this._tags[tag] && this._tags[tag]['attributes']) {
+      for (k in this._tags[tag]['attributes']) {
+        result.push(parseInt(k) == k ? this._tags[tag]['attributes'][k] : k);
+      }
+    }
+    return result;
+  },
+  getDefaultAttributesAndEventsForTags : function()
+  {
+    var result = [];
+    for (var key in this._events){
+      result.push(this._events[key]);
+    }
+    for (var key in this._attributes){
+      result.push(this._attributes[key]);
+    }
+    return result;
+  },
+  isValidTag : function(tag)
+  {
+    if(this._tags[tag]){
+      return true;
+    }
+    for(var key in this._tags){
+      if(this._tags[key] == tag){
+        return true;
+      }
+    }
+    return false;
+  },
+  getDefaultAttributesAndEventsForTag : function(tag)
+  {
+    var default_attributes = [];
+    if (this.isValidTag(tag)) {
+      var default_attributes_and_events = this.getDefaultAttributesAndEventsForTags();
+
+      for(var key in default_attributes_and_events) {
+        var defaults = default_attributes_and_events[key];
+        if(typeof defaults == 'object'){
+          var h = WYMeditor.Helper;
+          if ((defaults['except'] && h.contains(defaults['except'], tag)) || (defaults['only'] && !h.contains(defaults['only'], tag))) {
+            continue;
+          }
+
+          var tag_defaults = defaults['attributes'] ? defaults['attributes'] : defaults['events'];
+          for(var k in tag_defaults) {
+            default_attributes.push(typeof tag_defaults[k] != 'string' ? k : tag_defaults[k]);
+          }
+        }
+      }
+    }
+    return default_attributes;
+  },
+  doesAttributeNeedsValidation: function(tag, attribute)
+  {
+    return this._tags[tag] && ((this._tags[tag]['attributes'] && this._tags[tag]['attributes'][attribute]) || (this._tags[tag]['required'] &&
+     WYMeditor.Helper.contains(this._tags[tag]['required'], attribute)));
+  },
+  validateAttribute : function(tag, attribute, value)
+  {
+    if ( this._tags[tag] &&
+      (this._tags[tag]['attributes'] && this._tags[tag]['attributes'][attribute] && value.length > 0 && !value.match(this._tags[tag]['attributes'][attribute])) || // invalid format
+      (this._tags[tag] && this._tags[tag]['required'] && WYMeditor.Helper.contains(this._tags[tag]['required'], attribute) && value.length == 0) // required attribute
+    ) {
+      return false;
+    }
+    return typeof this._tags[tag] != 'undefined';
+  },
+  getPossibleTagAttributes : function(tag)
+  {
+    if (!this._possible_tag_attributes) {
+      this._possible_tag_attributes = {};
+    }
+    if (!this._possible_tag_attributes[tag]) {
+      this._possible_tag_attributes[tag] = this.getUniqueAttributesAndEventsForTag(tag).concat(this.getDefaultAttributesAndEventsForTag(tag));
+    }
+    return this._possible_tag_attributes[tag];
+  }
+};
+
+
+/**
+*    Compounded regular expression. Any of
+*    the contained patterns could match and
+*    when one does, it's label is returned.
+*
+*    Constructor. Starts with no patterns.
+*    @param boolean case    True for case sensitive, false
+*                            for insensitive.
+*    @access public
+*    @author Marcus Baker (http://lastcraft.com)
+*    @author Bermi Ferrer (http://bermi.org)
+*/
+WYMeditor.ParallelRegex = function(case_sensitive)
+{
+  this._case = case_sensitive;
+  this._patterns = [];
+  this._labels = [];
+  this._regex = null;
+  return this;
+};
+
+
+/**
+*    Adds a pattern with an optional label.
+*    @param string pattern      Perl style regex, but ( and )
+*                                lose the usual meaning.
+*    @param string label        Label of regex to be returned
+*                                on a match.
+*    @access public
+*/
+WYMeditor.ParallelRegex.prototype.addPattern = function(pattern, label)
+{
+  label = label || true;
+  var count = this._patterns.length;
+  this._patterns[count] = pattern;
+  this._labels[count] = label;
+  this._regex = null;
+};
+
+/**
+*    Attempts to match all patterns at once against
+*    a string.
+*    @param string subject      String to match against.
+*
+*    @return boolean             True on success.
+*    @return string match         First matched portion of
+*                                subject.
+*    @access public
+*/
+WYMeditor.ParallelRegex.prototype.match = function(subject)
+{
+  if (this._patterns.length == 0) {
+    return [false, ''];
+  }
+  var matches = subject.match(this._getCompoundedRegex());
+
+  if(!matches){
+    return [false, ''];
+  }
+  var match = matches[0];
+  for (var i = 1; i < matches.length; i++) {
+    if (matches[i]) {
+      return [this._labels[i-1], match];
+    }
+  }
+  return [true, matches[0]];
+};
+
+/**
+*    Compounds the patterns into a single
+*    regular expression separated with the
+*    "or" operator. Caches the regex.
+*    Will automatically escape (, ) and / tokens.
+*    @param array patterns    List of patterns in order.
+*    @access private
+*/
+WYMeditor.ParallelRegex.prototype._getCompoundedRegex = function()
+{
+  if (this._regex == null) {
+    for (var i = 0, count = this._patterns.length; i < count; i++) {
+      this._patterns[i] = '(' + this._untokenizeRegex(this._tokenizeRegex(this._patterns[i]).replace(/([\/\(\)])/g,'\\$1')) + ')';
+    }
+    this._regex = new RegExp(this._patterns.join("|") ,this._getPerlMatchingFlags());
+  }
+  return this._regex;
+};
+
+/**
+* Escape lookahead/lookbehind blocks
+*/
+WYMeditor.ParallelRegex.prototype._tokenizeRegex = function(regex)
+{
+  return regex.
+  replace(/\(\?(i|m|s|x|U)\)/,     '~~~~~~Tk1\$1~~~~~~').
+  replace(/\(\?(\-[i|m|s|x|U])\)/, '~~~~~~Tk2\$1~~~~~~').
+  replace(/\(\?\=(.*)\)/,          '~~~~~~Tk3\$1~~~~~~').
+  replace(/\(\?\!(.*)\)/,          '~~~~~~Tk4\$1~~~~~~').
+  replace(/\(\?\<\=(.*)\)/,        '~~~~~~Tk5\$1~~~~~~').
+  replace(/\(\?\<\!(.*)\)/,        '~~~~~~Tk6\$1~~~~~~').
+  replace(/\(\?\:(.*)\)/,          '~~~~~~Tk7\$1~~~~~~');
+};
+
+/**
+* Unscape lookahead/lookbehind blocks
+*/
+WYMeditor.ParallelRegex.prototype._untokenizeRegex = function(regex)
+{
+  return regex.
+  replace(/~~~~~~Tk1(.{1})~~~~~~/,    "(?\$1)").
+  replace(/~~~~~~Tk2(.{2})~~~~~~/,    "(?\$1)").
+  replace(/~~~~~~Tk3(.*)~~~~~~/,      "(?=\$1)").
+  replace(/~~~~~~Tk4(.*)~~~~~~/,      "(?!\$1)").
+  replace(/~~~~~~Tk5(.*)~~~~~~/,      "(?<=\$1)").
+  replace(/~~~~~~Tk6(.*)~~~~~~/,      "(?<!\$1)").
+  replace(/~~~~~~Tk7(.*)~~~~~~/,      "(?:\$1)");
+};
+
+
+/**
+*    Accessor for perl regex mode flags to use.
+*    @return string       Perl regex flags.
+*    @access private
+*/
+WYMeditor.ParallelRegex.prototype._getPerlMatchingFlags = function()
+{
+  return (this._case ? "m" : "mi");
+};
+
+
+
+/**
+*    States for a stack machine.
+*
+*    Constructor. Starts in named state.
+*    @param string start        Starting state name.
+*    @access public
+*    @author Marcus Baker (http://lastcraft.com)
+*    @author Bermi Ferrer (http://bermi.org)
+*/
+WYMeditor.StateStack = function(start)
+{
+  this._stack = [start];
+  return this;
+};
+
+/**
+*    Accessor for current state.
+*    @return string       State.
+*    @access public
+*/
+WYMeditor.StateStack.prototype.getCurrent = function()
+{
+  return this._stack[this._stack.length - 1];
+};
+
+/**
+*    Adds a state to the stack and sets it
+*    to be the current state.
+*    @param string state        New state.
+*    @access public
+*/
+WYMeditor.StateStack.prototype.enter = function(state)
+{
+  this._stack.push(state);
+};
+
+/**
+*    Leaves the current state and reverts
+*    to the previous one.
+*    @return boolean    False if we drop off
+*                       the bottom of the list.
+*    @access public
+*/
+WYMeditor.StateStack.prototype.leave = function()
+{
+  if (this._stack.length == 1) {
+    return false;
+  }
+  this._stack.pop();
+  return true;
+};
+
+
+// GLOBALS
+WYMeditor.LEXER_ENTER = 1;
+WYMeditor.LEXER_MATCHED = 2;
+WYMeditor.LEXER_UNMATCHED = 3;
+WYMeditor.LEXER_EXIT = 4;
+WYMeditor.LEXER_SPECIAL = 5;
+
+
+/**
+*    Accepts text and breaks it into tokens.
+*    Some optimisation to make the sure the
+*    content is only scanned by the PHP regex
+*    parser once. Lexer modes must not start
+*    with leading underscores.
+*
+*    Sets up the lexer in case insensitive matching
+*    by default.
+*    @param Parser parser  Handling strategy by reference.
+*    @param string start            Starting handler.
+*    @param boolean case            True for case sensitive.
+*    @access public
+*    @author Marcus Baker (http://lastcraft.com)
+*    @author Bermi Ferrer (http://bermi.org)
+*/
+WYMeditor.Lexer = function(parser, start, case_sensitive)
+{
+  start = start || 'accept';
+  this._case = case_sensitive || false;
+  this._regexes = {};
+  this._parser = parser;
+  this._mode = new WYMeditor.StateStack(start);
+  this._mode_handlers = {};
+  this._mode_handlers[start] = start;
+  return this;
+};
+
+/**
+*    Adds a token search pattern for a particular
+*    parsing mode. The pattern does not change the
+*    current mode.
+*    @param string pattern      Perl style regex, but ( and )
+*                                lose the usual meaning.
+*    @param string mode         Should only apply this
+*                                pattern when dealing with
+*                                this type of input.
+*    @access public
+*/
+WYMeditor.Lexer.prototype.addPattern = function(pattern, mode)
+{
+  var mode = mode || "accept";
+  if (typeof this._regexes[mode] == 'undefined') {
+    this._regexes[mode] = new WYMeditor.ParallelRegex(this._case);
+  }
+  this._regexes[mode].addPattern(pattern);
+  if (typeof this._mode_handlers[mode] == 'undefined') {
+    this._mode_handlers[mode] = mode;
+  }
+};
+
+/**
+*    Adds a pattern that will enter a new parsing
+*    mode. Useful for entering parenthesis, strings,
+*    tags, etc.
+*    @param string pattern      Perl style regex, but ( and )
+*                                lose the usual meaning.
+*    @param string mode         Should only apply this
+*                                pattern when dealing with
+*                                this type of input.
+*    @param string new_mode     Change parsing to this new
+*                                nested mode.
+*    @access public
+*/
+WYMeditor.Lexer.prototype.addEntryPattern = function(pattern, mode, new_mode)
+{
+  if (typeof this._regexes[mode] == 'undefined') {
+    this._regexes[mode] = new WYMeditor.ParallelRegex(this._case);
+  }
+  this._regexes[mode].addPattern(pattern, new_mode);
+  if (typeof this._mode_handlers[new_mode] == 'undefined') {
+    this._mode_handlers[new_mode] = new_mode;
+  }
+};
+
+/**
+*    Adds a pattern that will exit the current mode
+*    and re-enter the previous one.
+*    @param string pattern      Perl style regex, but ( and )
+*                                lose the usual meaning.
+*    @param string mode         Mode to leave.
+*    @access public
+*/
+WYMeditor.Lexer.prototype.addExitPattern = function(pattern, mode)
+{
+  if (typeof this._regexes[mode] == 'undefined') {
+    this._regexes[mode] = new WYMeditor.ParallelRegex(this._case);
+  }
+  this._regexes[mode].addPattern(pattern, "__exit");
+  if (typeof this._mode_handlers[mode] == 'undefined') {
+    this._mode_handlers[mode] = mode;
+  }
+};
+
+/**
+*    Adds a pattern that has a special mode. Acts as an entry
+*    and exit pattern in one go, effectively calling a special
+*    parser handler for this token only.
+*    @param string pattern      Perl style regex, but ( and )
+*                                lose the usual meaning.
+*    @param string mode         Should only apply this
+*                                pattern when dealing with
+*                                this type of input.
+*    @param string special      Use this mode for this one token.
+*    @access public
+*/
+WYMeditor.Lexer.prototype.addSpecialPattern =  function(pattern, mode, special)
+{
+  if (typeof this._regexes[mode] == 'undefined') {
+    this._regexes[mode] = new WYMeditor.ParallelRegex(this._case);
+  }
+  this._regexes[mode].addPattern(pattern, '_'+special);
+  if (typeof this._mode_handlers[special] == 'undefined') {
+    this._mode_handlers[special] = special;
+  }
+};
+
+/**
+*    Adds a mapping from a mode to another handler.
+*    @param string mode        Mode to be remapped.
+*    @param string handler     New target handler.
+*    @access public
+*/
+WYMeditor.Lexer.prototype.mapHandler = function(mode, handler)
+{
+  this._mode_handlers[mode] = handler;
+};
+
+/**
+*    Splits the page text into tokens. Will fail
+*    if the handlers report an error or if no
+*    content is consumed. If successful then each
+*    unparsed and parsed token invokes a call to the
+*    held listener.
+*    @param string raw        Raw HTML text.
+*    @return boolean           True on success, else false.
+*    @access public
+*/
+WYMeditor.Lexer.prototype.parse = function(raw)
+{
+  if (typeof this._parser == 'undefined') {
+    return false;
+  }
+
+  var length = raw.length;
+  var parsed;
+  while (typeof (parsed = this._reduce(raw)) == 'object') {
+    var raw = parsed[0];
+    var unmatched = parsed[1];
+    var matched = parsed[2];
+    var mode = parsed[3];
+
+    if (! this._dispatchTokens(unmatched, matched, mode)) {
+      return false;
+    }
+
+    if (raw == '') {
+      return true;
+    }
+    if (raw.length == length) {
+      return false;
+    }
+    length = raw.length;
+  }
+  if (! parsed ) {
+    return false;
+  }
+
+  return this._invokeParser(raw, WYMeditor.LEXER_UNMATCHED);
+};
+
+/**
+*    Sends the matched token and any leading unmatched
+*    text to the parser changing the lexer to a new
+*    mode if one is listed.
+*    @param string unmatched    Unmatched leading portion.
+*    @param string matched      Actual token match.
+*    @param string mode         Mode after match. A boolean
+*                                false mode causes no change.
+*    @return boolean             False if there was any error
+*                                from the parser.
+*    @access private
+*/
+WYMeditor.Lexer.prototype._dispatchTokens = function(unmatched, matched, mode)
+{
+  mode = mode || false;
+
+  if (! this._invokeParser(unmatched, WYMeditor.LEXER_UNMATCHED)) {
+    return false;
+  }
+
+  if (typeof mode == 'boolean') {
+    return this._invokeParser(matched, WYMeditor.LEXER_MATCHED);
+  }
+  if (this._isModeEnd(mode)) {
+    if (! this._invokeParser(matched, WYMeditor.LEXER_EXIT)) {
+      return false;
+    }
+    return this._mode.leave();
+  }
+  if (this._isSpecialMode(mode)) {
+    this._mode.enter(this._decodeSpecial(mode));
+    if (! this._invokeParser(matched, WYMeditor.LEXER_SPECIAL)) {
+      return false;
+    }
+    return this._mode.leave();
+  }
+  this._mode.enter(mode);
+
+  return this._invokeParser(matched, WYMeditor.LEXER_ENTER);
+};
+
+/**
+*    Tests to see if the new mode is actually to leave
+*    the current mode and pop an item from the matching
+*    mode stack.
+*    @param string mode    Mode to test.
+*    @return boolean        True if this is the exit mode.
+*    @access private
+*/
+WYMeditor.Lexer.prototype._isModeEnd = function(mode)
+{
+  return (mode === "__exit");
+};
+
+/**
+*    Test to see if the mode is one where this mode
+*    is entered for this token only and automatically
+*    leaves immediately afterwoods.
+*    @param string mode    Mode to test.
+*    @return boolean        True if this is the exit mode.
+*    @access private
+*/
+WYMeditor.Lexer.prototype._isSpecialMode = function(mode)
+{
+  return (mode.substring(0,1) == "_");
+};
+
+/**
+*    Strips the magic underscore marking single token
+*    modes.
+*    @param string mode    Mode to decode.
+*    @return string         Underlying mode name.
+*    @access private
+*/
+WYMeditor.Lexer.prototype._decodeSpecial = function(mode)
+{
+  return mode.substring(1);
+};
+
+/**
+*    Calls the parser method named after the current
+*    mode. Empty content will be ignored. The lexer
+*    has a parser handler for each mode in the lexer.
+*    @param string content        Text parsed.
+*    @param boolean is_match      Token is recognised rather
+*                                  than unparsed data.
+*    @access private
+*/
+WYMeditor.Lexer.prototype._invokeParser = function(content, is_match)
+{
+
+  if (!/ +/.test(content) && ((content === '') || (content == false))) {
+    return true;
+  }
+  var current = this._mode.getCurrent();
+  var handler = this._mode_handlers[current];
+  var result;
+  eval('result = this._parser.' + handler + '(content, is_match);');
+  return result;
+};
+
+/**
+*    Tries to match a chunk of text and if successful
+*    removes the recognised chunk and any leading
+*    unparsed data. Empty strings will not be matched.
+*    @param string raw         The subject to parse. This is the
+*                               content that will be eaten.
+*    @return array/boolean      Three item list of unparsed
+*                               content followed by the
+*                               recognised token and finally the
+*                               action the parser is to take.
+*                               True if no match, false if there
+*                               is a parsing error.
+*    @access private
+*/
+WYMeditor.Lexer.prototype._reduce = function(raw)
+{
+  var matched = this._regexes[this._mode.getCurrent()].match(raw);
+  var match = matched[1];
+  var action = matched[0];
+  if (action) {
+    var unparsed_character_count = raw.indexOf(match);
+    var unparsed = raw.substr(0, unparsed_character_count);
+    raw = raw.substring(unparsed_character_count + match.length);
+    return [raw, unparsed, match, action];
+  }
+  return true;
+};
+
+
+
+/**
+* This are the rules for breaking the XHTML code into events
+* handled by the provided parser.
+*
+*    @author Marcus Baker (http://lastcraft.com)
+*    @author Bermi Ferrer (http://bermi.org)
+*/
+WYMeditor.XhtmlLexer = function(parser)
+{
+  jQuery.extend(this, new WYMeditor.Lexer(parser, 'Text'));
+
+  this.mapHandler('Text', 'Text');
+
+  this.addTokens();
+
+  this.init();
+
+  return this;
+};
+
+
+WYMeditor.XhtmlLexer.prototype.init = function()
+{
+};
+
+WYMeditor.XhtmlLexer.prototype.addTokens = function()
+{
+  this.addCommentTokens('Text');
+  this.addScriptTokens('Text');
+  this.addCssTokens('Text');
+  this.addTagTokens('Text');
+};
+
+WYMeditor.XhtmlLexer.prototype.addCommentTokens = function(scope)
+{
+  this.addEntryPattern("<!--", scope, 'Comment');
+  this.addExitPattern("-->", 'Comment');
+};
+
+WYMeditor.XhtmlLexer.prototype.addScriptTokens = function(scope)
+{
+  this.addEntryPattern("<script", scope, 'Script');
+  this.addExitPattern("</script>", 'Script');
+};
+
+WYMeditor.XhtmlLexer.prototype.addCssTokens = function(scope)
+{
+  this.addEntryPattern("<style", scope, 'Css');
+  this.addExitPattern("</style>", 'Css');
+};
+
+WYMeditor.XhtmlLexer.prototype.addTagTokens = function(scope)
+{
+  this.addSpecialPattern("<\\s*[a-z0-9:\-]+\\s*>", scope, 'OpeningTag');
+  this.addEntryPattern("<[a-z0-9:\-]+"+'[\\\/ \\\>]+', scope, 'OpeningTag');
+  this.addInTagDeclarationTokens('OpeningTag');
+
+  this.addSpecialPattern("</\\s*[a-z0-9:\-]+\\s*>", scope, 'ClosingTag');
+
+};
+
+WYMeditor.XhtmlLexer.prototype.addInTagDeclarationTokens = function(scope)
+{
+  this.addSpecialPattern('\\s+', scope, 'Ignore');
+
+  this.addAttributeTokens(scope);
+
+  this.addExitPattern('/>', scope);
+  this.addExitPattern('>', scope);
+
+};
+
+WYMeditor.XhtmlLexer.prototype.addAttributeTokens = function(scope)
+{
+  this.addSpecialPattern("\\s*[a-z-_0-9]*:?[a-z-_0-9]+\\s*(?=\=)\\s*", scope, 'TagAttributes');
+
+  this.addEntryPattern('=\\s*"', scope, 'DoubleQuotedAttribute');
+  this.addPattern("\\\\\"", 'DoubleQuotedAttribute');
+  this.addExitPattern('"', 'DoubleQuotedAttribute');
+
+  this.addEntryPattern("=\\s*'", scope, 'SingleQuotedAttribute');
+  this.addPattern("\\\\'", 'SingleQuotedAttribute');
+  this.addExitPattern("'", 'SingleQuotedAttribute');
+
+  this.addSpecialPattern('=\\s*[^>\\s]*', scope, 'UnquotedAttribute');
+};
+
+
+
+/**
+* XHTML Parser.
+*
+* This XHTML parser will trigger the events available on on
+* current SaxListener
+*
+*    @author Bermi Ferrer (http://bermi.org)
+*/
+WYMeditor.XhtmlParser = function(Listener, mode)
+{
+  var mode = mode || 'Text';
+  this._Lexer = new WYMeditor.XhtmlLexer(this);
+  this._Listener = Listener;
+  this._mode = mode;
+  this._matches = [];
+  this._last_match = '';
+  this._current_match = '';
+
+  return this;
+};
+
+WYMeditor.XhtmlParser.prototype.parse = function(raw)
+{
+  this._Lexer.parse(this.beforeParsing(raw));
+  return this.afterParsing(this._Listener.getResult());
+};
+
+WYMeditor.XhtmlParser.prototype.beforeParsing = function(raw)
+{
+  if(raw.match(/class="MsoNormal"/) || raw.match(/ns = "urn:schemas-microsoft-com/)){
+    // Usefull for cleaning up content pasted from other sources (MSWord)
+    this._Listener.avoidStylingTagsAndAttributes();
+  }
+  return this._Listener.beforeParsing(raw);
+};
+
+WYMeditor.XhtmlParser.prototype.afterParsing = function(parsed)
+{
+  if(this._Listener._avoiding_tags_implicitly){
+    this._Listener.allowStylingTagsAndAttributes();
+  }
+  return this._Listener.afterParsing(parsed);
+};
+
+
+WYMeditor.XhtmlParser.prototype.Ignore = function(match, state)
+{
+  return true;
+};
+
+WYMeditor.XhtmlParser.prototype.Text = function(text)
+{
+  this._Listener.addContent(text);
+  return true;
+};
+
+WYMeditor.XhtmlParser.prototype.Comment = function(match, status)
+{
+  return this._addNonTagBlock(match, status, 'addComment');
+};
+
+WYMeditor.XhtmlParser.prototype.Script = function(match, status)
+{
+  return this._addNonTagBlock(match, status, 'addScript');
+};
+
+WYMeditor.XhtmlParser.prototype.Css = function(match, status)
+{
+  return this._addNonTagBlock(match, status, 'addCss');
+};
+
+WYMeditor.XhtmlParser.prototype._addNonTagBlock = function(match, state, type)
+{
+  switch (state){
+    case WYMeditor.LEXER_ENTER:
+    this._non_tag = match;
+    break;
+    case WYMeditor.LEXER_UNMATCHED:
+    this._non_tag += match;
+    break;
+    case WYMeditor.LEXER_EXIT:
+    switch(type) {
+      case 'addComment':
+      this._Listener.addComment(this._non_tag+match);
+      break;
+      case 'addScript':
+      this._Listener.addScript(this._non_tag+match);
+      break;
+      case 'addCss':
+      this._Listener.addCss(this._non_tag+match);
+      break;
+    }
+  }
+  return true;
+};
+
+WYMeditor.XhtmlParser.prototype.OpeningTag = function(match, state)
+{
+  switch (state){
+    case WYMeditor.LEXER_ENTER:
+    this._tag = this.normalizeTag(match);
+    this._tag_attributes = {};
+    break;
+    case WYMeditor.LEXER_SPECIAL:
+    this._callOpenTagListener(this.normalizeTag(match));
+    break;
+    case WYMeditor.LEXER_EXIT:
+    this._callOpenTagListener(this._tag, this._tag_attributes);
+  }
+  return true;
+};
+
+WYMeditor.XhtmlParser.prototype.ClosingTag = function(match, state)
+{
+  this._callCloseTagListener(this.normalizeTag(match));
+  return true;
+};
+
+WYMeditor.XhtmlParser.prototype._callOpenTagListener = function(tag, attributes)
+{
+  var  attributes = attributes || {};
+  this.autoCloseUnclosedBeforeNewOpening(tag);
+
+  if(this._Listener.isBlockTag(tag)){
+    this._Listener._tag_stack.push(tag);
+    this._Listener.fixNestingBeforeOpeningBlockTag(tag, attributes);
+    this._Listener.openBlockTag(tag, attributes);
+    this._increaseOpenTagCounter(tag);
+  }else if(this._Listener.isInlineTag(tag)){
+    this._Listener.inlineTag(tag, attributes);
+  }else{
+    this._Listener.openUnknownTag(tag, attributes);
+    this._increaseOpenTagCounter(tag);
+  }
+  this._Listener.last_tag = tag;
+  this._Listener.last_tag_opened = true;
+  this._Listener.last_tag_attributes = attributes;
+};
+
+WYMeditor.XhtmlParser.prototype._callCloseTagListener = function(tag)
+{
+  if(this._decreaseOpenTagCounter(tag)){
+    this.autoCloseUnclosedBeforeTagClosing(tag);
+
+    if(this._Listener.isBlockTag(tag)){
+      var expected_tag = this._Listener._tag_stack.pop();
+      if(expected_tag == false){
+        return;
+      }else if(expected_tag != tag){
+        tag = expected_tag;
+      }
+      this._Listener.closeBlockTag(tag);
+    }else{
+      this._Listener.closeUnknownTag(tag);
+    }
+  }else{
+    this._Listener.closeUnopenedTag(tag);
+  }
+  this._Listener.last_tag = tag;
+  this._Listener.last_tag_opened = false;
+};
+
+WYMeditor.XhtmlParser.prototype._increaseOpenTagCounter = function(tag)
+{
+  this._Listener._open_tags[tag] = this._Listener._open_tags[tag] || 0;
+  this._Listener._open_tags[tag]++;
+};
+
+WYMeditor.XhtmlParser.prototype._decreaseOpenTagCounter = function(tag)
+{
+  if(this._Listener._open_tags[tag]){
+    this._Listener._open_tags[tag]--;
+    if(this._Listener._open_tags[tag] == 0){
+      this._Listener._open_tags[tag] = undefined;
+    }
+    return true;
+  }
+  return false;
+};
+
+WYMeditor.XhtmlParser.prototype.autoCloseUnclosedBeforeNewOpening = function(new_tag)
+{
+  this._autoCloseUnclosed(new_tag, false);
+};
+
+WYMeditor.XhtmlParser.prototype.autoCloseUnclosedBeforeTagClosing = function(tag)
+{
+  this._autoCloseUnclosed(tag, true);
+};
+
+WYMeditor.XhtmlParser.prototype._autoCloseUnclosed = function(new_tag, closing)
+{
+  var closing = closing || false;
+  if(this._Listener._open_tags){
+    for (var tag in this._Listener._open_tags) {
+      var counter = this._Listener._open_tags[tag];
+      if(counter > 0 && this._Listener.shouldCloseTagAutomatically(tag, new_tag, closing)){
+        this._callCloseTagListener(tag, true);
+      }
+    }
+  }
+};
+
+WYMeditor.XhtmlParser.prototype.getTagReplacements = function()
+{
+  return this._Listener.getTagReplacements();
+};
+
+WYMeditor.XhtmlParser.prototype.normalizeTag = function(tag)
+{
+  tag = tag.replace(/^([\s<\/>]*)|([\s<\/>]*)$/gm,'').toLowerCase();
+  var tags = this._Listener.getTagReplacements();
+  if(tags[tag]){
+    return tags[tag];
+  }
+  return tag;
+};
+
+WYMeditor.XhtmlParser.prototype.TagAttributes = function(match, state)
+{
+  if(WYMeditor.LEXER_SPECIAL == state){
+    this._current_attribute = match;
+  }
+  return true;
+};
+
+WYMeditor.XhtmlParser.prototype.DoubleQuotedAttribute = function(match, state)
+{
+  if(WYMeditor.LEXER_UNMATCHED == state){
+    this._tag_attributes[this._current_attribute] = match;
+  }
+  return true;
+};
+
+WYMeditor.XhtmlParser.prototype.SingleQuotedAttribute = function(match, state)
+{
+  if(WYMeditor.LEXER_UNMATCHED == state){
+    this._tag_attributes[this._current_attribute] = match;
+  }
+  return true;
+};
+
+WYMeditor.XhtmlParser.prototype.UnquotedAttribute = function(match, state)
+{
+  this._tag_attributes[this._current_attribute] = match.replace(/^=/,'');
+  return true;
+};
+
+
+
+/**
+* XHTML Sax parser.
+*
+*    @author Bermi Ferrer (http://bermi.org)
+*/
+WYMeditor.XhtmlSaxListener = function()
+{
+  this.output = '';
+  this.helper = new WYMeditor.XmlHelper();
+  this._open_tags = {};
+  this.validator = WYMeditor.XhtmlValidator;
+  this._tag_stack = [];
+  this.avoided_tags = [];
+
+  this.entities = {
+    '&nbsp;':'&#160;','&iexcl;':'&#161;','&cent;':'&#162;',
+    '&pound;':'&#163;','&curren;':'&#164;','&yen;':'&#165;',
+    '&brvbar;':'&#166;','&sect;':'&#167;','&uml;':'&#168;',
+    '&copy;':'&#169;','&ordf;':'&#170;','&laquo;':'&#171;',
+    '&not;':'&#172;','&shy;':'&#173;','&reg;':'&#174;',
+    '&macr;':'&#175;','&deg;':'&#176;','&plusmn;':'&#177;',
+    '&sup2;':'&#178;','&sup3;':'&#179;','&acute;':'&#180;',
+    '&micro;':'&#181;','&para;':'&#182;','&middot;':'&#183;',
+    '&cedil;':'&#184;','&sup1;':'&#185;','&ordm;':'&#186;',
+    '&raquo;':'&#187;','&frac14;':'&#188;','&frac12;':'&#189;',
+    '&frac34;':'&#190;','&iquest;':'&#191;','&Agrave;':'&#192;',
+    '&Aacute;':'&#193;','&Acirc;':'&#194;','&Atilde;':'&#195;',
+    '&Auml;':'&#196;','&Aring;':'&#197;','&AElig;':'&#198;',
+    '&Ccedil;':'&#199;','&Egrave;':'&#200;','&Eacute;':'&#201;',
+    '&Ecirc;':'&#202;','&Euml;':'&#203;','&Igrave;':'&#204;',
+    '&Iacute;':'&#205;','&Icirc;':'&#206;','&Iuml;':'&#207;',
+    '&ETH;':'&#208;','&Ntilde;':'&#209;','&Ograve;':'&#210;',
+    '&Oacute;':'&#211;','&Ocirc;':'&#212;','&Otilde;':'&#213;',
+    '&Ouml;':'&#214;','&times;':'&#215;','&Oslash;':'&#216;',
+    '&Ugrave;':'&#217;','&Uacute;':'&#218;','&Ucirc;':'&#219;',
+    '&Uuml;':'&#220;','&Yacute;':'&#221;','&THORN;':'&#222;',
+    '&szlig;':'&#223;','&agrave;':'&#224;','&aacute;':'&#225;',
+    '&acirc;':'&#226;','&atilde;':'&#227;','&auml;':'&#228;',
+    '&aring;':'&#229;','&aelig;':'&#230;','&ccedil;':'&#231;',
+    '&egrave;':'&#232;','&eacute;':'&#233;','&ecirc;':'&#234;',
+    '&euml;':'&#235;','&igrave;':'&#236;','&iacute;':'&#237;',
+    '&icirc;':'&#238;','&iuml;':'&#239;','&eth;':'&#240;',
+    '&ntilde;':'&#241;','&ograve;':'&#242;','&oacute;':'&#243;',
+    '&ocirc;':'&#244;','&otilde;':'&#245;','&ouml;':'&#246;',
+    '&divide;':'&#247;','&oslash;':'&#248;','&ugrave;':'&#249;',
+    '&uacute;':'&#250;','&ucirc;':'&#251;','&uuml;':'&#252;',
+    '&yacute;':'&#253;','&thorn;':'&#254;','&yuml;':'&#255;',
+    '&OElig;':'&#338;','&oelig;':'&#339;','&Scaron;':'&#352;',
+    '&scaron;':'&#353;','&Yuml;':'&#376;','&fnof;':'&#402;',
+    '&circ;':'&#710;','&tilde;':'&#732;','&Alpha;':'&#913;',
+    '&Beta;':'&#914;','&Gamma;':'&#915;','&Delta;':'&#916;',
+    '&Epsilon;':'&#917;','&Zeta;':'&#918;','&Eta;':'&#919;',
+    '&Theta;':'&#920;','&Iota;':'&#921;','&Kappa;':'&#922;',
+    '&Lambda;':'&#923;','&Mu;':'&#924;','&Nu;':'&#925;',
+    '&Xi;':'&#926;','&Omicron;':'&#927;','&Pi;':'&#928;',
+    '&Rho;':'&#929;','&Sigma;':'&#931;','&Tau;':'&#932;',
+    '&Upsilon;':'&#933;','&Phi;':'&#934;','&Chi;':'&#935;',
+    '&Psi;':'&#936;','&Omega;':'&#937;','&alpha;':'&#945;',
+    '&beta;':'&#946;','&gamma;':'&#947;','&delta;':'&#948;',
+    '&epsilon;':'&#949;','&zeta;':'&#950;','&eta;':'&#951;',
+    '&theta;':'&#952;','&iota;':'&#953;','&kappa;':'&#954;',
+    '&lambda;':'&#955;','&mu;':'&#956;','&nu;':'&#957;',
+    '&xi;':'&#958;','&omicron;':'&#959;','&pi;':'&#960;',
+    '&rho;':'&#961;','&sigmaf;':'&#962;','&sigma;':'&#963;',
+    '&tau;':'&#964;','&upsilon;':'&#965;','&phi;':'&#966;',
+    '&chi;':'&#967;','&psi;':'&#968;','&omega;':'&#969;',
+    '&thetasym;':'&#977;','&upsih;':'&#978;','&piv;':'&#982;',
+    '&ensp;':'&#8194;','&emsp;':'&#8195;','&thinsp;':'&#8201;',
+    '&zwnj;':'&#8204;','&zwj;':'&#8205;','&lrm;':'&#8206;',
+    '&rlm;':'&#8207;','&ndash;':'&#8211;','&mdash;':'&#8212;',
+    '&lsquo;':'&#8216;','&rsquo;':'&#8217;','&sbquo;':'&#8218;',
+    '&ldquo;':'&#8220;','&rdquo;':'&#8221;','&bdquo;':'&#8222;',
+    '&dagger;':'&#8224;','&Dagger;':'&#8225;','&bull;':'&#8226;',
+    '&hellip;':'&#8230;','&permil;':'&#8240;','&prime;':'&#8242;',
+    '&Prime;':'&#8243;','&lsaquo;':'&#8249;','&rsaquo;':'&#8250;',
+    '&oline;':'&#8254;','&frasl;':'&#8260;','&euro;':'&#8364;',
+    '&image;':'&#8465;','&weierp;':'&#8472;','&real;':'&#8476;',
+    '&trade;':'&#8482;','&alefsym;':'&#8501;','&larr;':'&#8592;',
+    '&uarr;':'&#8593;','&rarr;':'&#8594;','&darr;':'&#8595;',
+    '&harr;':'&#8596;','&crarr;':'&#8629;','&lArr;':'&#8656;',
+    '&uArr;':'&#8657;','&rArr;':'&#8658;','&dArr;':'&#8659;',
+    '&hArr;':'&#8660;','&forall;':'&#8704;','&part;':'&#8706;',
+    '&exist;':'&#8707;','&empty;':'&#8709;','&nabla;':'&#8711;',
+    '&isin;':'&#8712;','&notin;':'&#8713;','&ni;':'&#8715;',
+    '&prod;':'&#8719;','&sum;':'&#8721;','&minus;':'&#8722;',
+    '&lowast;':'&#8727;','&radic;':'&#8730;','&prop;':'&#8733;',
+    '&infin;':'&#8734;','&ang;':'&#8736;','&and;':'&#8743;',
+    '&or;':'&#8744;','&cap;':'&#8745;','&cup;':'&#8746;',
+    '&int;':'&#8747;','&there4;':'&#8756;','&sim;':'&#8764;',
+    '&cong;':'&#8773;','&asymp;':'&#8776;','&ne;':'&#8800;',
+    '&equiv;':'&#8801;','&le;':'&#8804;','&ge;':'&#8805;',
+    '&sub;':'&#8834;','&sup;':'&#8835;','&nsub;':'&#8836;',
+    '&sube;':'&#8838;','&supe;':'&#8839;','&oplus;':'&#8853;',
+    '&otimes;':'&#8855;','&perp;':'&#8869;','&sdot;':'&#8901;',
+    '&lceil;':'&#8968;','&rceil;':'&#8969;','&lfloor;':'&#8970;',
+    '&rfloor;':'&#8971;','&lang;':'&#9001;','&rang;':'&#9002;',
+    '&loz;':'&#9674;','&spades;':'&#9824;','&clubs;':'&#9827;',
+    '&hearts;':'&#9829;','&diams;':'&#9830;'};
+
+    this.block_tags = ["a", "abbr", "acronym", "address", "area", "b",
+    "base", "bdo", "big", "blockquote", "body", "button",
+    "caption", "cite", "code", "col", "colgroup", "dd", "del", "div",
+    "dfn", "dl", "dt", "em", "fieldset", "form", "head", "h1", "h2",
+    "h3", "h4", "h5", "h6", "html", "i", "ins",
+    "kbd", "label", "legend", "li", "map", "noscript",
+    "object", "ol", "optgroup", "option", "p", "param", "pre", "q",
+    "samp", "script", "select", "small", "span", "strong", "style",
+    "sub", "sup", "table", "tbody", "td", "textarea", "tfoot", "th",
+    "thead", "title", "tr", "tt", "ul", "var", "extends"];
+
+
+    this.inline_tags = ["br", "hr", "img", "input"];
+
+    return this;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.shouldCloseTagAutomatically = function(tag, now_on_tag, closing)
+{
+  var closing = closing || false;
+  if(tag == 'td'){
+    if((closing && now_on_tag == 'tr') || (!closing && now_on_tag == 'td')){
+      return true;
+    }
+  }
+  if(tag == 'option'){
+    if((closing && now_on_tag == 'select') || (!closing && now_on_tag == 'option')){
+      return true;
+    }
+  }
+  return false;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.beforeParsing = function(raw)
+{
+  this.output = '';
+  return raw;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.afterParsing = function(xhtml)
+{
+  xhtml = this.replaceNamedEntities(xhtml);
+  xhtml = this.joinRepeatedEntities(xhtml);
+  xhtml = this.removeEmptyTags(xhtml);
+  xhtml = this.removeBrInPre(xhtml);
+  return xhtml;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.replaceNamedEntities = function(xhtml)
+{
+  for (var entity in this.entities) {
+    xhtml = xhtml.replace(new RegExp(entity, 'g'), this.entities[entity]);
+  }
+  return xhtml;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.joinRepeatedEntities = function(xhtml)
+{
+  var tags = 'em|strong|sub|sup|acronym|pre|del|address';
+  return xhtml.replace(new RegExp('<\/('+tags+')><\\1>' ,''),'').
+  replace(new RegExp('(\s*<('+tags+')>\s*){2}(.*)(\s*<\/\\2>\s*){2}' ,''),'<\$2>\$3<\$2>');
+};
+
+WYMeditor.XhtmlSaxListener.prototype.removeEmptyTags = function(xhtml)
+{
+  return xhtml.replace(new RegExp('<('+this.block_tags.join("|").replace(/\|td/,'').replace(/\|th/, '')+')>(<br \/>|&#160;|&nbsp;|\\s)*<\/\\1>' ,'g'),'');
+};
+
+WYMeditor.XhtmlSaxListener.prototype.removeBrInPre = function(xhtml)
+{
+  var matches = xhtml.match(new RegExp('<pre[^>]*>(.*?)<\/pre>','gmi'));
+  if(matches) {
+    for(var i=0; i<matches.length; i++) {
+      xhtml = xhtml.replace(matches[i], matches[i].replace(new RegExp('<br \/>', 'g'), String.fromCharCode(13,10)));
+    }
+  }
+  return xhtml;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.getResult = function()
+{
+  return this.output;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.getTagReplacements = function()
+{
+  return {'b':'strong', 'i':'em'};
+};
+
+WYMeditor.XhtmlSaxListener.prototype.addContent = function(text)
+{
+  this.output += text;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.addComment = function(text)
+{
+  if(this.remove_comments){
+    this.output += text;
+  }
+};
+
+WYMeditor.XhtmlSaxListener.prototype.addScript = function(text)
+{
+  if(!this.remove_scripts){
+    this.output += text;
+  }
+};
+
+WYMeditor.XhtmlSaxListener.prototype.addCss = function(text)
+{
+  if(!this.remove_embeded_styles){
+    this.output += text;
+  }
+};
+
+WYMeditor.XhtmlSaxListener.prototype.openBlockTag = function(tag, attributes)
+{
+  this.output += this.helper.tag(tag, this.validator.getValidTagAttributes(tag, attributes), true);
+};
+
+WYMeditor.XhtmlSaxListener.prototype.inlineTag = function(tag, attributes)
+{
+  this.output += this.helper.tag(tag, this.validator.getValidTagAttributes(tag, attributes));
+};
+
+WYMeditor.XhtmlSaxListener.prototype.openUnknownTag = function(tag, attributes)
+{
+  //this.output += this.helper.tag(tag, attributes, true);
+};
+
+WYMeditor.XhtmlSaxListener.prototype.closeBlockTag = function(tag)
+{
+  this.output = this.output.replace(/<br \/>$/, '')+this._getClosingTagContent('before', tag)+"</"+tag+">"+this._getClosingTagContent('after', tag);
+};
+
+WYMeditor.XhtmlSaxListener.prototype.closeUnknownTag = function(tag)
+{
+  //this.output += "</"+tag+">";
+};
+
+WYMeditor.XhtmlSaxListener.prototype.closeUnopenedTag = function(tag)
+{
+  this.output += "</"+tag+">";
+};
+
+WYMeditor.XhtmlSaxListener.prototype.avoidStylingTagsAndAttributes = function()
+{
+  this.avoided_tags = ['div','span'];
+  this.validator.skiped_attributes = ['style'];
+  this.validator.skiped_attribute_values = ['MsoNormal','main1']; // MS Word attributes for class
+  this._avoiding_tags_implicitly = true;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.allowStylingTagsAndAttributes = function()
+{
+  this.avoided_tags = [];
+  this.validator.skiped_attributes = [];
+  this.validator.skiped_attribute_values = [];
+  this._avoiding_tags_implicitly = false;
+};
+
+WYMeditor.XhtmlSaxListener.prototype.isBlockTag = function(tag)
+{
+  return !WYMeditor.Helper.contains(this.avoided_tags, tag) && WYMeditor.Helper.contains(this.block_tags, tag);
+};
+
+WYMeditor.XhtmlSaxListener.prototype.isInlineTag = function(tag)
+{
+  return !WYMeditor.Helper.contains(this.avoided_tags, tag) && WYMeditor.Helper.contains(this.inline_tags, tag);
+};
+
+WYMeditor.XhtmlSaxListener.prototype.insertContentAfterClosingTag = function(tag, content)
+{
+  this._insertContentWhenClosingTag('after', tag, content);
+};
+
+WYMeditor.XhtmlSaxListener.prototype.insertContentBeforeClosingTag = function(tag, content)
+{
+  this._insertContentWhenClosingTag('before', tag, content);
+};
+
+WYMeditor.XhtmlSaxListener.prototype.fixNestingBeforeOpeningBlockTag = function(tag, attributes)
+{
+    if(tag != 'li' && (tag == 'ul' || tag == 'ol') && this.last_tag && !this.last_tag_opened && this.last_tag == 'li'){
+      this.output = this.output.replace(/<\/li>$/, '');
+      this.insertContentAfterClosingTag(tag, '</li>');
+    }
+};
+
+WYMeditor.XhtmlSaxListener.prototype._insertContentWhenClosingTag = function(position, tag, content)
+{
+  if(!this['_insert_'+position+'_closing']){
+    this['_insert_'+position+'_closing'] = [];
+  }
+  if(!this['_insert_'+position+'_closing'][tag]){
+    this['_insert_'+position+'_closing'][tag] = [];
+  }
+  this['_insert_'+position+'_closing'][tag].push(content);
+};
+
+WYMeditor.XhtmlSaxListener.prototype._getClosingTagContent = function(position, tag)
+{
+  if( this['_insert_'+position+'_closing'] &&
+      this['_insert_'+position+'_closing'][tag] &&
+      this['_insert_'+position+'_closing'][tag].length > 0){
+        return this['_insert_'+position+'_closing'][tag].pop();
+  }
+  return '';
+};
+
+
+/********** CSS PARSER **********/
+
+
+WYMeditor.WymCssLexer = function(parser, only_wym_blocks)
+{
+  var only_wym_blocks = (typeof only_wym_blocks == 'undefined' ? true : only_wym_blocks);
+
+  jQuery.extend(this, new WYMeditor.Lexer(parser, (only_wym_blocks?'Ignore':'WymCss')));
+
+  this.mapHandler('WymCss', 'Ignore');
+
+  if(only_wym_blocks == true){
+    this.addEntryPattern("/\\\x2a[<\\s]*WYMeditor[>\\s]*\\\x2a/", 'Ignore', 'WymCss');
+    this.addExitPattern("/\\\x2a[<\/\\s]*WYMeditor[>\\s]*\\\x2a/", 'WymCss');
+  }
+
+  this.addSpecialPattern("[\\sa-z1-6]*\\\x2e[a-z-_0-9]+", 'WymCss', 'WymCssStyleDeclaration');
+
+  this.addEntryPattern("/\\\x2a", 'WymCss', 'WymCssComment');
+  this.addExitPattern("\\\x2a/", 'WymCssComment');
+
+  this.addEntryPattern("\x7b", 'WymCss', 'WymCssStyle');
+  this.addExitPattern("\x7d", 'WymCssStyle');
+
+  this.addEntryPattern("/\\\x2a", 'WymCssStyle', 'WymCssFeedbackStyle');
+  this.addExitPattern("\\\x2a/", 'WymCssFeedbackStyle');
+
+  return this;
+};
+
+WYMeditor.WymCssParser = function()
+{
+  this._in_style = false;
+  this._has_title = false;
+  this.only_wym_blocks = true;
+  this.css_settings = {'classesItems':[], 'editorStyles':[], 'dialogStyles':[]};
+  return this;
+};
+
+WYMeditor.WymCssParser.prototype.parse = function(raw, only_wym_blocks)
+{
+  var only_wym_blocks = (typeof only_wym_blocks == 'undefined' ? this.only_wym_blocks : only_wym_blocks);
+  this._Lexer = new WYMeditor.WymCssLexer(this, only_wym_blocks);
+  this._Lexer.parse(raw);
+};
+
+WYMeditor.WymCssParser.prototype.Ignore = function(match, state)
+{
+  return true;
+};
+
+WYMeditor.WymCssParser.prototype.WymCssComment = function(text, status)
+{
+  if(text.match(/end[a-z0-9\s]*wym[a-z0-9\s]*/mi)){
+    return false;
+  }
+  if(status == WYMeditor.LEXER_UNMATCHED){
+    if(!this._in_style){
+      this._has_title = true;
+      this._current_item = {'title':WYMeditor.Helper.trim(text)};
+    }else{
+      if(this._current_item[this._current_element]){
+        if(!this._current_item[this._current_element].expressions){
+          this._current_item[this._current_element].expressions = [text];
+        }else{
+          this._current_item[this._current_element].expressions.push(text);
+        }
+      }
+    }
+    this._in_style = true;
+  }
+  return true;
+};
+
+WYMeditor.WymCssParser.prototype.WymCssStyle = function(match, status)
+{
+  if(status == WYMeditor.LEXER_UNMATCHED){
+    match = WYMeditor.Helper.trim(match);
+    if(match != ''){
+      this._current_item[this._current_element].style = match;
+    }
+  }else if (status == WYMeditor.LEXER_EXIT){
+    this._in_style = false;
+    this._has_title = false;
+    this.addStyleSetting(this._current_item);
+  }
+  return true;
+};
+
+WYMeditor.WymCssParser.prototype.WymCssFeedbackStyle = function(match, status)
+{
+  if(status == WYMeditor.LEXER_UNMATCHED){
+    this._current_item[this._current_element].feedback_style = match.replace(/^([\s\/\*]*)|([\s\/\*]*)$/gm,'');
+  }
+  return true;
+};
+
+WYMeditor.WymCssParser.prototype.WymCssStyleDeclaration = function(match)
+{
+  match = match.replace(/^([\s\.]*)|([\s\.*]*)$/gm, '');
+
+  var tag = '';
+  if(match.indexOf('.') > 0){
+    var parts = match.split('.');
+    this._current_element = parts[1];
+    var tag = parts[0];
+  }else{
+    this._current_element = match;
+  }
+
+  if(!this._has_title){
+    this._current_item = {'title':(!tag?'':tag.toUpperCase()+': ')+this._current_element};
+    this._has_title = true;
+  }
+
+  if(!this._current_item[this._current_element]){
+    this._current_item[this._current_element] = {'name':this._current_element};
+  }
+  if(tag){
+    if(!this._current_item[this._current_element].tags){
+      this._current_item[this._current_element].tags = [tag];
+    }else{
+      this._current_item[this._current_element].tags.push(tag);
+    }
+  }
+  return true;
+};
+
+WYMeditor.WymCssParser.prototype.addStyleSetting = function(style_details)
+{
+  for (var name in style_details){
+    var details = style_details[name];
+    if(typeof details == 'object' && name != 'title'){
+
+      this.css_settings.classesItems.push({
+        'name': WYMeditor.Helper.trim(details.name),
+        'title': style_details.title,
+        'expr' : WYMeditor.Helper.trim((details.expressions||details.tags).join(', '))
+      });
+      if(details.feedback_style){
+        this.css_settings.editorStyles.push({
+          'name': '.'+ WYMeditor.Helper.trim(details.name),
+          'css': details.feedback_style
+        });
+      }
+      if(details.style){
+        this.css_settings.dialogStyles.push({
+          'name': '.'+ WYMeditor.Helper.trim(details.name),
+          'css': details.style
+        });
+      }
+    }
+  }
+};
+
+/********** HELPERS **********/
+
+// Returns true if it is a text node with whitespaces only
+jQuery.fn.isPhantomNode = function() {
+  if (this[0].nodeType == 3)
+    return !(/[^\t\n\r ]/.test(this[0].data));
+
+  return false;
+};
+
+WYMeditor.isPhantomNode = function(n) {
+  if (n.nodeType == 3)
+    return !(/[^\t\n\r ]/.test(n.data));
+
+  return false;
+};
+
+WYMeditor.isPhantomString = function(str) {
+    return !(/[^\t\n\r ]/.test(str));
+};
+
+// Returns the Parents or the node itself
+// jqexpr = a jQuery expression
+jQuery.fn.parentsOrSelf = function(jqexpr) {
+  var n = this;
+
+  if (n[0].nodeType == 3)
+    n = n.parents().slice(0,1);
+
+//  if (n.is(jqexpr)) // XXX should work, but doesn't (probably a jQuery bug)
+  if (n.filter(jqexpr).size() == 1)
+    return n;
+  else
+    return n.parents(jqexpr).slice(0,1);
+};
+
+// String & array helpers
+
+WYMeditor.Helper = {
+
+    //replace all instances of 'old' by 'rep' in 'str' string
+    replaceAll: function(str, old, rep) {
+        var rExp = new RegExp(old, "g");
+        return(str.replace(rExp, rep));
+    },
+
+    //insert 'inserted' at position 'pos' in 'str' string
+    insertAt: function(str, inserted, pos) {
+        return(str.substr(0,pos) + inserted + str.substring(pos));
+    },
+
+    //trim 'str' string
+    trim: function(str) {
+        return str.replace(/^(\s*)|(\s*)$/gm,'');
+    },
+
+    //return true if 'arr' array contains 'elem', or false
+    contains: function(arr, elem) {
+        for (var i = 0; i < arr.length; i++) {
+            if (arr[i] === elem) return true;
+        }
+        return false;
+    },
+
+    //return 'item' position in 'arr' array, or -1
+    indexOf: function(arr, item) {
+        var ret=-1;
+        for(var i = 0; i < arr.length; i++) {
+            if (arr[i] == item) {
+                ret = i;
+                break;
+            }
+        }
+           return(ret);
+    },
+
+    //return 'item' object in 'arr' array, checking its 'name' property, or null
+    findByName: function(arr, name) {
+        for(var i = 0; i < arr.length; i++) {
+            var item = arr[i];
+            if(item.name == name) return(item);
+        }
+        return(null);
+    }
+};
+
+
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        jquery.wymeditor.explorer.js
+ *        MSIE specific class and functions.
+ *        See the documentation for more info.
+ *
+ * File Authors:
+ *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+ *        Bermi Ferrer (wymeditor a-t bermi dotorg)
+ *        Frédéric Palluel-Lafleur (fpalluel a-t gmail dotcom)
+ *        Jonatan Lundin (jonatan.lundin _at_ gmail.com)
+ */
+
+WYMeditor.WymClassExplorer = function(wym) {
+
+    this._wym = wym;
+    this._class = "className";
+    this._newLine = "\r\n";
+
+};
+
+WYMeditor.WymClassExplorer.prototype.initIframe = function(iframe) {
+
+    //This function is executed twice, though it is called once!
+    //But MSIE needs that, otherwise designMode won't work.
+    //Weird.
+    
+    this._iframe = iframe;
+    this._doc = iframe.contentWindow.document;
+    
+    //add css rules from options
+    var styles = this._doc.styleSheets[0];
+    var aCss = eval(this._options.editorStyles);
+
+    this.addCssRules(this._doc, aCss);
+
+    this._doc.title = this._wym._index;
+
+    //set the text direction
+    jQuery('html', this._doc).attr('dir', this._options.direction);
+    
+    //init html value
+    jQuery(this._doc.body).html(this._wym._html);
+    
+    //handle events
+    var wym = this;
+    
+    this._doc.body.onfocus = function()
+      {wym._doc.designMode = "on"; wym._doc = iframe.contentWindow.document;};
+    this._doc.onbeforedeactivate = function() {wym.saveCaret();};
+    this._doc.onkeyup = function() {
+      wym.saveCaret();
+      wym.keyup();
+    };
+    this._doc.onclick = function() {wym.saveCaret();};
+    
+    this._doc.body.onbeforepaste = function() {
+      wym._iframe.contentWindow.event.returnValue = false;
+    };
+    
+    this._doc.body.onpaste = function() {
+      wym._iframe.contentWindow.event.returnValue = false;
+      wym.paste(window.clipboardData.getData("Text"));
+    };
+    
+    //callback can't be executed twice, so we check
+    if(this._initialized) {
+      
+      //pre-bind functions
+      if(jQuery.isFunction(this._options.preBind)) this._options.preBind(this);
+      
+      //bind external events
+      this._wym.bindEvents();
+      
+      //post-init functions
+      if(jQuery.isFunction(this._options.postInit)) this._options.postInit(this);
+      
+      //add event listeners to doc elements, e.g. images
+      this.listen();
+    }
+    
+    this._initialized = true;
+    
+    //init designMode
+    this._doc.designMode="on";
+    try{
+        // (bermi's note) noticed when running unit tests on IE6
+        // Is this really needed, it trigger an unexisting property on IE6
+        this._doc = iframe.contentWindow.document; 
+    }catch(e){}
+};
+
+WYMeditor.WymClassExplorer.prototype._exec = function(cmd,param) {
+
+    switch(cmd) {
+    
+    case WYMeditor.INDENT: case WYMeditor.OUTDENT:
+    
+        var container = this.findUp(this.container(), WYMeditor.LI);
+        if(container) {
+            var ancestor = container.parentNode.parentNode;
+            if(container.parentNode.childNodes.length>1
+              || ancestor.tagName.toLowerCase() == WYMeditor.OL
+              || ancestor.tagName.toLowerCase() == WYMeditor.UL)
+              this._doc.execCommand(cmd);
+        }
+    break;
+    default:
+        if(param) this._doc.execCommand(cmd,false,param);
+        else this._doc.execCommand(cmd);
+    break;
+       }
+    
+    this.listen();
+};
+
+WYMeditor.WymClassExplorer.prototype.selected = function() {
+
+    var caretPos = this._iframe.contentWindow.document.caretPos;
+        if(caretPos!=null) {
+            if(caretPos.parentElement!=undefined)
+              return(caretPos.parentElement());
+        }
+};
+
+WYMeditor.WymClassExplorer.prototype.saveCaret = function() {
+
+    this._doc.caretPos = this._doc.selection.createRange();
+};
+
+WYMeditor.WymClassExplorer.prototype.addCssRule = function(styles, oCss) {
+
+    styles.addRule(oCss.name, oCss.css);
+};
+
+WYMeditor.WymClassExplorer.prototype.insert = function(html) {
+
+    // Get the current selection
+    var range = this._doc.selection.createRange();
+
+    // Check if the current selection is inside the editor
+    if ( jQuery(range.parentElement()).parents( this._options.iframeBodySelector ).is('*') ) {
+        try {
+            // Overwrite selection with provided html
+            range.pasteHTML(html);
+        } catch (e) { }
+    } else {
+        // Fall back to the internal paste function if there's no selection
+        this.paste(html);
+    }
+};
+
+WYMeditor.WymClassExplorer.prototype.wrap = function(left, right) {
+
+    // Get the current selection
+    var range = this._doc.selection.createRange();
+
+    // Check if the current selection is inside the editor
+    if ( jQuery(range.parentElement()).parents( this._options.iframeBodySelector ).is('*') ) {
+        try {
+            // Overwrite selection with provided html
+            range.pasteHTML(left + range.text + right);
+        } catch (e) { }
+    }
+};
+
+WYMeditor.WymClassExplorer.prototype.unwrap = function() {
+
+    // Get the current selection
+    var range = this._doc.selection.createRange();
+
+    // Check if the current selection is inside the editor
+    if ( jQuery(range.parentElement()).parents( this._options.iframeBodySelector ).is('*') ) {
+        try {
+            // Unwrap selection
+            var text = range.text;
+            this._exec( 'Cut' );
+            range.pasteHTML( text );
+        } catch (e) { }
+    }
+};
+
+//keyup handler
+WYMeditor.WymClassExplorer.prototype.keyup = function() {
+  this._selected_image = null;
+};
+
+WYMeditor.WymClassExplorer.prototype.setFocusToNode = function(node) {
+    var range = this._doc.selection.createRange();
+    range.moveToElementText(node);
+    range.collapse(false);
+    range.move('character',-1);
+    range.select();
+    node.focus();
+};
+
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        jquery.wymeditor.mozilla.js
+ *        Gecko specific class and functions.
+ *        See the documentation for more info.
+ *
+ * File Authors:
+ *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+ *        Volker Mische (vmx a-t gmx dotde)
+ *        Bermi Ferrer (wymeditor a-t bermi dotorg)
+ *        Frédéric Palluel-Lafleur (fpalluel a-t gmail dotcom)
+ */
+
+WYMeditor.WymClassMozilla = function(wym) {
+
+    this._wym = wym;
+    this._class = "class";
+    this._newLine = "\n";
+};
+
+WYMeditor.WymClassMozilla.prototype.initIframe = function(iframe) {
+
+    this._iframe = iframe;
+    this._doc = iframe.contentDocument;
+    
+    //add css rules from options
+    
+    var styles = this._doc.styleSheets[0];    
+    var aCss = eval(this._options.editorStyles);
+    
+    this.addCssRules(this._doc, aCss);
+
+    this._doc.title = this._wym._index;
+
+    //set the text direction
+    jQuery('html', this._doc).attr('dir', this._options.direction);
+    
+    //init html value
+    this.html(this._wym._html);
+    
+    //init designMode
+    this.enableDesignMode();
+    
+    //pre-bind functions
+    if(jQuery.isFunction(this._options.preBind)) this._options.preBind(this);
+    
+    //bind external events
+    this._wym.bindEvents();
+    
+    //bind editor keydown events
+    jQuery(this._doc).bind("keydown", this.keydown);
+    
+    //bind editor keyup events
+    jQuery(this._doc).bind("keyup", this.keyup);
+    
+    //bind editor focus events (used to reset designmode - Gecko bug)
+    jQuery(this._doc).bind("focus", this.enableDesignMode);
+    
+    //post-init functions
+    if(jQuery.isFunction(this._options.postInit)) this._options.postInit(this);
+    
+    //add event listeners to doc elements, e.g. images
+    this.listen();
+};
+
+/* @name html
+ * @description Get/Set the html value
+ */
+WYMeditor.WymClassMozilla.prototype.html = function(html) {
+
+  if(typeof html === 'string') {
+  
+    //disable designMode
+    try { this._doc.designMode = "off"; } catch(e) { };
+    
+    //replace em by i and strong by bold
+    //(designMode issue)
+    html = html.replace(/<em(\b[^>]*)>/gi, "<i$1>")
+      .replace(/<\/em>/gi, "</i>")
+      .replace(/<strong(\b[^>]*)>/gi, "<b$1>")
+      .replace(/<\/strong>/gi, "</b>");
+
+    //update the html body
+    jQuery(this._doc.body).html(html);
+    
+    //re-init designMode
+    this.enableDesignMode();
+  }
+  else return(jQuery(this._doc.body).html());
+};
+
+WYMeditor.WymClassMozilla.prototype._exec = function(cmd,param) {
+
+    if(!this.selected()) return(false);
+
+    switch(cmd) {
+    
+    case WYMeditor.INDENT: case WYMeditor.OUTDENT:
+    
+        var focusNode = this.selected();    
+        var sel = this._iframe.contentWindow.getSelection();
+        var anchorNode = sel.anchorNode;
+        if(anchorNode.nodeName == "#text") anchorNode = anchorNode.parentNode;
+        
+        focusNode = this.findUp(focusNode, WYMeditor.BLOCKS);
+        anchorNode = this.findUp(anchorNode, WYMeditor.BLOCKS);
+        
+        if(focusNode && focusNode == anchorNode
+          && focusNode.tagName.toLowerCase() == WYMeditor.LI) {
+
+            var ancestor = focusNode.parentNode.parentNode;
+
+            if(focusNode.parentNode.childNodes.length>1
+              || ancestor.tagName.toLowerCase() == WYMeditor.OL
+              || ancestor.tagName.toLowerCase() == WYMeditor.UL)
+                this._doc.execCommand(cmd,'',null);
+        }
+
+    break;
+    
+    default:
+
+        if(param) this._doc.execCommand(cmd,'',param);
+        else this._doc.execCommand(cmd,'',null);
+    }
+    
+    //set to P if parent = BODY
+    var container = this.selected();
+    if(container.tagName.toLowerCase() == WYMeditor.BODY)
+        this._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P);
+    
+    //add event handlers on doc elements
+
+    this.listen();
+};
+
+/* @name selected
+ * @description Returns the selected container
+ */
+WYMeditor.WymClassMozilla.prototype.selected = function() {
+
+    var sel = this._iframe.contentWindow.getSelection();
+    var node = sel.focusNode;
+    if(node) {
+        if(node.nodeName == "#text") return(node.parentNode);
+        else return(node);
+    } else return(null);
+};
+
+WYMeditor.WymClassMozilla.prototype.addCssRule = function(styles, oCss) {
+
+    styles.insertRule(oCss.name + " {" + oCss.css + "}",
+        styles.cssRules.length);
+};
+
+
+//keydown handler, mainly used for keyboard shortcuts
+WYMeditor.WymClassMozilla.prototype.keydown = function(evt) {
+  
+  //'this' is the doc
+  var wym = WYMeditor.INSTANCES[this.title];
+  var container = null;  
+
+  if(evt.ctrlKey){
+    if(evt.keyCode == 66){
+      //CTRL+b => STRONG
+      wym._exec(WYMeditor.BOLD);
+      return false;
+    }
+    if(evt.keyCode == 73){
+      //CTRL+i => EMPHASIS
+      wym._exec(WYMeditor.ITALIC);
+      return false;
+    }
+  }
+
+  else if(evt.keyCode == 13) {
+    if(!evt.shiftKey){
+      //fix PRE bug #73
+      container = wym.selected();
+      if(container && container.tagName.toLowerCase() == WYMeditor.PRE) {
+        evt.preventDefault();
+        wym.insert('<p></p>');
+      }
+    }
+  }
+};
+
+//keyup handler, mainly used for cleanups
+WYMeditor.WymClassMozilla.prototype.keyup = function(evt) {
+
+  //'this' is the doc
+  var wym = WYMeditor.INSTANCES[this.title];
+  
+  wym._selected_image = null;
+  var container = null;
+
+  if(evt.keyCode == 13 && !evt.shiftKey) {
+  
+    //RETURN key
+    //cleanup <br><br> between paragraphs
+    jQuery(wym._doc.body).children(WYMeditor.BR).remove();
+  }
+  
+  else if(evt.keyCode != 8
+       && evt.keyCode != 17
+       && evt.keyCode != 46
+       && evt.keyCode != 224
+       && !evt.metaKey
+       && !evt.ctrlKey) {
+      
+    //NOT BACKSPACE, NOT DELETE, NOT CTRL, NOT COMMAND
+    //text nodes replaced by P
+    
+    container = wym.selected();
+    var name = container.tagName.toLowerCase();
+
+    //fix forbidden main containers
+    if(
+      name == "strong" ||
+      name == "b" ||
+      name == "em" ||
+      name == "i" ||
+      name == "sub" ||
+      name == "sup" ||
+      name == "a"
+
+    ) name = container.parentNode.tagName.toLowerCase();
+
+    if(name == WYMeditor.BODY) wym._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P);
+  }
+};
+
+WYMeditor.WymClassMozilla.prototype.enableDesignMode = function() {
+    if(this.designMode == "off") {
+      try {
+        this.designMode = "on";
+        this.execCommand("styleWithCSS", '', false);
+      } catch(e) { }
+    }
+};
+
+WYMeditor.WymClassMozilla.prototype.setFocusToNode = function(node) {
+    var range = document.createRange();
+    range.selectNode(node);
+    var selected = this._iframe.contentWindow.getSelection();
+    selected.addRange(range);
+    selected.collapse(node, node.childNodes.length);
+    this._iframe.contentWindow.focus();
+};
+
+WYMeditor.WymClassMozilla.prototype.openBlockTag = function(tag, attributes)
+{
+  var attributes = this.validator.getValidTagAttributes(tag, attributes);
+
+  // Handle Mozilla styled spans
+  if(tag == 'span' && attributes.style){
+    var new_tag = this.getTagForStyle(attributes.style);
+    if(new_tag){
+      this._tag_stack.pop();
+      var tag = new_tag;
+      this._tag_stack.push(new_tag);
+      attributes.style = '';
+    }else{
+      return;
+    }
+  }
+  
+  this.output += this.helper.tag(tag, attributes, true);
+};
+
+WYMeditor.WymClassMozilla.prototype.getTagForStyle = function(style) {
+
+  if(/bold/.test(style)) return 'strong';
+  if(/italic/.test(style)) return 'em';
+  if(/sub/.test(style)) return 'sub';
+  if(/sub/.test(style)) return 'super';
+  return false;
+};
+
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        jquery.wymeditor.opera.js
+ *        Opera specific class and functions.
+ *        See the documentation for more info.
+ *
+ * File Authors:
+ *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+ */
+
+WYMeditor.WymClassOpera = function(wym) {
+
+    this._wym = wym;
+    this._class = "class";
+    this._newLine = "\r\n";
+};
+
+WYMeditor.WymClassOpera.prototype.initIframe = function(iframe) {
+
+    this._iframe = iframe;
+    this._doc = iframe.contentWindow.document;
+    
+    //add css rules from options
+    var styles = this._doc.styleSheets[0];    
+    var aCss = eval(this._options.editorStyles);
+
+    this.addCssRules(this._doc, aCss);
+
+    this._doc.title = this._wym._index;
+
+    //set the text direction
+    jQuery('html', this._doc).attr('dir', this._options.direction);
+    
+    //init designMode
+    this._doc.designMode = "on";
+
+    //init html value
+    this.html(this._wym._html);
+    
+    //pre-bind functions
+    if(jQuery.isFunction(this._options.preBind)) this._options.preBind(this);
+    
+    //bind external events
+    this._wym.bindEvents();
+    
+    //bind editor keydown events
+    jQuery(this._doc).bind("keydown", this.keydown);
+    
+    //bind editor events
+    jQuery(this._doc).bind("keyup", this.keyup);
+    
+    //post-init functions
+    if(jQuery.isFunction(this._options.postInit)) this._options.postInit(this);
+    
+    //add event listeners to doc elements, e.g. images
+    this.listen();
+};
+
+WYMeditor.WymClassOpera.prototype._exec = function(cmd,param) {
+
+    if(param) this._doc.execCommand(cmd,false,param);
+    else this._doc.execCommand(cmd);
+    
+    this.listen();
+};
+
+WYMeditor.WymClassOpera.prototype.selected = function() {
+
+    var sel=this._iframe.contentWindow.getSelection();
+    var node=sel.focusNode;
+    if(node) {
+        if(node.nodeName=="#text")return(node.parentNode);
+        else return(node);
+    } else return(null);
+};
+
+WYMeditor.WymClassOpera.prototype.addCssRule = function(styles, oCss) {
+
+    styles.insertRule(oCss.name + " {" + oCss.css + "}",
+        styles.cssRules.length);
+};
+
+//keydown handler
+WYMeditor.WymClassOpera.prototype.keydown = function(evt) {
+  
+  //'this' is the doc
+  var wym = WYMeditor.INSTANCES[this.title];
+  var sel = wym._iframe.contentWindow.getSelection();
+  startNode = sel.getRangeAt(0).startContainer;
+
+  //Get a P instead of no container
+  if(!jQuery(startNode).parentsOrSelf(
+                WYMeditor.MAIN_CONTAINERS.join(","))[0]
+      && !jQuery(startNode).parentsOrSelf('li')
+      && evt.keyCode != WYMeditor.KEY.ENTER
+      && evt.keyCode != WYMeditor.KEY.LEFT
+      && evt.keyCode != WYMeditor.KEY.UP
+      && evt.keyCode != WYMeditor.KEY.RIGHT
+      && evt.keyCode != WYMeditor.KEY.DOWN
+      && evt.keyCode != WYMeditor.KEY.BACKSPACE
+      && evt.keyCode != WYMeditor.KEY.DELETE)
+      wym._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P);
+
+};
+
+//keyup handler
+WYMeditor.WymClassOpera.prototype.keyup = function(evt) {
+
+  //'this' is the doc
+  var wym = WYMeditor.INSTANCES[this.title];
+  wym._selected_image = null;
+};
+
+// TODO: implement me
+WYMeditor.WymClassOpera.prototype.setFocusToNode = function(node) {
+
+};
+
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        jquery.wymeditor.safari.js
+ *        Safari specific class and functions.
+ *        See the documentation for more info.
+ *
+ * File Authors:
+ *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+ *        Scott Lewis (lewiscot a-t gmail dotcom)
+ */
+
+WYMeditor.WymClassSafari = function(wym) {
+
+    this._wym = wym;
+    this._class = "class";
+    this._newLine = "\n";
+};
+
+WYMeditor.WymClassSafari.prototype.initIframe = function(iframe) {
+
+    this._iframe = iframe;
+    this._doc = iframe.contentDocument;
+    
+    //add css rules from options
+    
+    var styles = this._doc.styleSheets[0];    
+    var aCss = eval(this._options.editorStyles);
+    
+    this.addCssRules(this._doc, aCss);
+
+    this._doc.title = this._wym._index;
+
+    //set the text direction
+    jQuery('html', this._doc).attr('dir', this._options.direction);
+
+    //init designMode
+    this._doc.designMode = "on";
+    
+    //init html value
+    this.html(this._wym._html);
+    
+    //pre-bind functions
+    if(jQuery.isFunction(this._options.preBind)) this._options.preBind(this);
+    
+    //bind external events
+    this._wym.bindEvents();
+    
+    //bind editor keydown events
+    jQuery(this._doc).bind("keydown", this.keydown);
+    
+    //bind editor keyup events
+    jQuery(this._doc).bind("keyup", this.keyup);
+    
+    //post-init functions
+    if(jQuery.isFunction(this._options.postInit)) this._options.postInit(this);
+    
+    //add event listeners to doc elements, e.g. images
+    this.listen();
+};
+
+WYMeditor.WymClassSafari.prototype._exec = function(cmd,param) {
+
+    if(!this.selected()) return(false);
+
+    switch(cmd) {
+    
+    case WYMeditor.INDENT: case WYMeditor.OUTDENT:
+    
+        var focusNode = this.selected();    
+        var sel = this._iframe.contentWindow.getSelection();
+        var anchorNode = sel.anchorNode;
+        if(anchorNode.nodeName == "#text") anchorNode = anchorNode.parentNode;
+        
+        focusNode = this.findUp(focusNode, WYMeditor.BLOCKS);
+        anchorNode = this.findUp(anchorNode, WYMeditor.BLOCKS);
+        
+        if(focusNode && focusNode == anchorNode
+          && focusNode.tagName.toLowerCase() == WYMeditor.LI) {
+
+            var ancestor = focusNode.parentNode.parentNode;
+
+            if(focusNode.parentNode.childNodes.length>1
+              || ancestor.tagName.toLowerCase() == WYMeditor.OL
+              || ancestor.tagName.toLowerCase() == WYMeditor.UL)
+                this._doc.execCommand(cmd,'',null);
+        }
+
+    break;
+
+    case WYMeditor.INSERT_ORDEREDLIST: case WYMeditor.INSERT_UNORDEREDLIST:
+
+        this._doc.execCommand(cmd,'',null);
+
+        //Safari creates lists in e.g. paragraphs.
+        //Find the container, and remove it.
+        var focusNode = this.selected();
+        var container = this.findUp(focusNode, WYMeditor.MAIN_CONTAINERS);
+        if(container) jQuery(container).replaceWith(jQuery(container).html());
+
+    break;
+    
+    default:
+
+        if(param) this._doc.execCommand(cmd,'',param);
+        else this._doc.execCommand(cmd,'',null);
+    }
+    
+    //set to P if parent = BODY
+    var container = this.selected();
+    if(container && container.tagName.toLowerCase() == WYMeditor.BODY)
+        this._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P);
+
+    //add event handlers on doc elements
+    this.listen();
+};
+
+/* @name selected
+ * @description Returns the selected container
+ */
+WYMeditor.WymClassSafari.prototype.selected = function() {
+
+    var sel = this._iframe.contentWindow.getSelection();
+    var node = sel.focusNode;
+    if(node) {
+        if(node.nodeName == "#text") return(node.parentNode);
+        else return(node);
+    } else return(null);
+};
+
+WYMeditor.WymClassSafari.prototype.addCssRule = function(styles, oCss) {
+
+    styles.insertRule(oCss.name + " {" + oCss.css + "}",
+        styles.cssRules.length);
+};
+
+
+//keydown handler, mainly used for keyboard shortcuts
+WYMeditor.WymClassSafari.prototype.keydown = function(evt) {
+  
+  //'this' is the doc
+  var wym = WYMeditor.INSTANCES[this.title];
+  
+  if(evt.ctrlKey){
+    if(evt.keyCode == 66){
+      //CTRL+b => STRONG
+      wym._exec(WYMeditor.BOLD);
+      return false;
+    }
+    if(evt.keyCode == 73){
+      //CTRL+i => EMPHASIS
+      wym._exec(WYMeditor.ITALIC);
+      return false;
+    }
+  }
+};
+
+//keyup handler, mainly used for cleanups
+WYMeditor.WymClassSafari.prototype.keyup = function(evt) {
+
+  //'this' is the doc
+  var wym = WYMeditor.INSTANCES[this.title];
+  
+  wym._selected_image = null;
+  var container = null;
+
+  if(evt.keyCode == 13 && !evt.shiftKey) {
+  
+    //RETURN key
+    //cleanup <br><br> between paragraphs
+    jQuery(wym._doc.body).children(WYMeditor.BR).remove();
+    
+    //fix PRE bug #73
+    container = wym.selected();
+    if(container && container.tagName.toLowerCase() == WYMeditor.PRE)
+        wym._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P); //create P after PRE
+  }
+
+  //fix #112
+  if(evt.keyCode == 13 && evt.shiftKey) {
+    wym._exec('InsertLineBreak');
+  }
+  
+  if(evt.keyCode != 8
+       && evt.keyCode != 17
+       && evt.keyCode != 46
+       && evt.keyCode != 224
+       && !evt.metaKey
+       && !evt.ctrlKey) {
+      
+    //NOT BACKSPACE, NOT DELETE, NOT CTRL, NOT COMMAND
+    //text nodes replaced by P
+    
+    container = wym.selected();
+    var name = container.tagName.toLowerCase();
+
+    //fix forbidden main containers
+    if(
+      name == "strong" ||
+      name == "b" ||
+      name == "em" ||
+      name == "i" ||
+      name == "sub" ||
+      name == "sup" ||
+      name == "a" ||
+      name == "span" //fix #110
+
+    ) name = container.parentNode.tagName.toLowerCase();
+
+    if(name == WYMeditor.BODY || name == WYMeditor.DIV) wym._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P); //fix #110 for DIV
+  }
+};
+
+WYMeditor.WymClassSafari.prototype.setFocusToNode = function(node) {
+    var range = this._iframe.contentDocument.createRange();
+    range.selectNode(node);
+    var selected = this._iframe.contentWindow.getSelection();
+    selected.addRange(range);
+    selected.collapse(node, node.childNodes.length);
+    this._iframe.contentWindow.focus();
+};
+
+WYMeditor.WymClassSafari.prototype.openBlockTag = function(tag, attributes)
+{
+  var attributes = this.validator.getValidTagAttributes(tag, attributes);
+
+  // Handle Safari styled spans
+  if(tag == 'span' && attributes.style) {
+    var new_tag = this.getTagForStyle(attributes.style);
+    if(new_tag){
+      this._tag_stack.pop();
+      var tag = new_tag;
+      this._tag_stack.push(new_tag);
+      attributes.style = '';
+      
+      //should fix #125 - also removed the xhtml() override
+      if(typeof attributes['class'] == 'string')
+        attributes['class'] = attributes['class'].replace(/apple-style-span/gi, '');
+    
+    } else {
+      return;
+    }
+  }
+  
+  this.output += this.helper.tag(tag, attributes, true);
+};
+
+WYMeditor.WymClassSafari.prototype.getTagForStyle = function(style) {
+
+  if(/bold/.test(style)) return 'strong';
+  if(/italic/.test(style)) return 'em';
+  if(/sub/.test(style)) return 'sub';
+  if(/super/.test(style)) return 'sup';
+  return false;
+};
diff --git a/wymeditor/jquery.wymeditor.min.js b/wymeditor/jquery.wymeditor.min.js
new file mode 100644 (file)
index 0000000..ec1bb60
--- /dev/null
@@ -0,0 +1 @@
+if(!WYMeditor){var WYMeditor={}}(function(){if(!window.console||!console.firebug){var b=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];WYMeditor.console={};for(var a=0;a<b.length;++a){WYMeditor.console[b[a]]=function(){}}}else{WYMeditor.console=window.console}})();jQuery.extend(WYMeditor,{VERSION:"0.5-rc1",INSTANCES:[],STRINGS:[],SKINS:[],NAME:"name",INDEX:"{Wym_Index}",WYM_INDEX:"wym_index",BASE_PATH:"{Wym_Base_Path}",CSS_PATH:"{Wym_Css_Path}",WYM_PATH:"{Wym_Wym_Path}",SKINS_DEFAULT_PATH:"skins/",SKINS_DEFAULT_CSS:"skin.css",SKINS_DEFAULT_JS:"skin.js",LANG_DEFAULT_PATH:"lang/",IFRAME_BASE_PATH:"{Wym_Iframe_Base_Path}",IFRAME_DEFAULT:"iframe/default/",JQUERY_PATH:"{Wym_Jquery_Path}",DIRECTION:"{Wym_Direction}",LOGO:"{Wym_Logo}",TOOLS:"{Wym_Tools}",TOOLS_ITEMS:"{Wym_Tools_Items}",TOOL_NAME:"{Wym_Tool_Name}",TOOL_TITLE:"{Wym_Tool_Title}",TOOL_CLASS:"{Wym_Tool_Class}",CLASSES:"{Wym_Classes}",CLASSES_ITEMS:"{Wym_Classes_Items}",CLASS_NAME:"{Wym_Class_Name}",CLASS_TITLE:"{Wym_Class_Title}",CONTAINERS:"{Wym_Containers}",CONTAINERS_ITEMS:"{Wym_Containers_Items}",CONTAINER_NAME:"{Wym_Container_Name}",CONTAINER_TITLE:"{Wym_Containers_Title}",CONTAINER_CLASS:"{Wym_Container_Class}",HTML:"{Wym_Html}",IFRAME:"{Wym_Iframe}",STATUS:"{Wym_Status}",DIALOG_TITLE:"{Wym_Dialog_Title}",DIALOG_BODY:"{Wym_Dialog_Body}",STRING:"string",BODY:"body",DIV:"div",P:"p",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",PRE:"pre",BLOCKQUOTE:"blockquote",A:"a",BR:"br",IMG:"img",TABLE:"table",TD:"td",TH:"th",UL:"ul",OL:"ol",LI:"li",CLASS:"class",HREF:"href",SRC:"src",TITLE:"title",ALT:"alt",DIALOG_LINK:"Link",DIALOG_IMAGE:"Image",DIALOG_TABLE:"Table",DIALOG_PASTE:"Paste_From_Word",BOLD:"Bold",ITALIC:"Italic",CREATE_LINK:"CreateLink",INSERT_IMAGE:"InsertImage",INSERT_TABLE:"InsertTable",INSERT_HTML:"InsertHTML",PASTE:"Paste",INDENT:"Indent",OUTDENT:"Outdent",TOGGLE_HTML:"ToggleHtml",FORMAT_BLOCK:"FormatBlock",PREVIEW:"Preview",UNLINK:"Unlink",INSERT_UNORDEREDLIST:"InsertUnorderedList",INSERT_ORDEREDLIST:"InsertOrderedList",MAIN_CONTAINERS:new Array("p","h1","h2","h3","h4","h5","h6","pre","blockquote"),BLOCKS:new Array("address","blockquote","div","dl","fieldset","form","h1","h2","h3","h4","h5","h6","hr","noscript","ol","p","pre","table","ul","dd","dt","li","tbody","td","tfoot","th","thead","tr"),KEY:{BACKSPACE:8,ENTER:13,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,CURSOR:new Array(37,38,39,40),DELETE:46},NODE:{ELEMENT:1,ATTRIBUTE:2,TEXT:3},editor:function(b,a){this._index=WYMeditor.INSTANCES.push(this)-1;this._element=b;this._options=a;this._html=jQuery(b).val();if(this._options.html){this._html=this._options.html}this._options.basePath=this._options.basePath||this.computeBasePath();this._options.skinPath=this._options.skinPath||this._options.basePath+WYMeditor.SKINS_DEFAULT_PATH+this._options.skin+"/";this._options.wymPath=this._options.wymPath||this.computeWymPath();this._options.langPath=this._options.langPath||this._options.basePath+WYMeditor.LANG_DEFAULT_PATH;this._options.iframeBasePath=this._options.iframeBasePath||this._options.basePath+WYMeditor.IFRAME_DEFAULT;this._options.jQueryPath=this._options.jQueryPath||this.computeJqueryPath();this.init()}});jQuery.fn.wymeditor=function(a){a=jQuery.extend({html:"",basePath:false,skinPath:false,wymPath:false,iframeBasePath:false,jQueryPath:false,styles:false,stylesheet:false,skin:"default",initSkin:true,loadSkin:true,lang:"en",direction:"ltr",boxHtml:"<div class='wym_box'><div class='wym_area_top'>"+WYMeditor.TOOLS+"</div><div class='wym_area_left'></div><div class='wym_area_right'>"+WYMeditor.CONTAINERS+WYMeditor.CLASSES+"</div><div class='wym_area_main'>"+WYMeditor.HTML+WYMeditor.IFRAME+WYMeditor.STATUS+"</div><div class='wym_area_bottom'>"+WYMeditor.LOGO+"</div></div>",logoHtml:"<a class='wym_wymeditor_link' href='http://www.wymeditor.org/'>WYMeditor</a>",iframeHtml:"<div class='wym_iframe wym_section'><iframe src='"+WYMeditor.IFRAME_BASE_PATH+"wymiframe.html' onload='this.contentWindow.parent.WYMeditor.INSTANCES["+WYMeditor.INDEX+"].initIframe(this)'></iframe></div>",editorStyles:[],toolsHtml:"<div class='wym_tools wym_section'><h2>{Tools}</h2><ul>"+WYMeditor.TOOLS_ITEMS+"</ul></div>",toolsItemHtml:"<li class='"+WYMeditor.TOOL_CLASS+"'><a href='#' name='"+WYMeditor.TOOL_NAME+"' title='"+WYMeditor.TOOL_TITLE+"'>"+WYMeditor.TOOL_TITLE+"</a></li>",toolsItems:[{name:"Bold",title:"Strong",css:"wym_tools_strong"},{name:"Italic",title:"Emphasis",css:"wym_tools_emphasis"},{name:"Superscript",title:"Superscript",css:"wym_tools_superscript"},{name:"Subscript",title:"Subscript",css:"wym_tools_subscript"},{name:"InsertOrderedList",title:"Ordered_List",css:"wym_tools_ordered_list"},{name:"InsertUnorderedList",title:"Unordered_List",css:"wym_tools_unordered_list"},{name:"Indent",title:"Indent",css:"wym_tools_indent"},{name:"Outdent",title:"Outdent",css:"wym_tools_outdent"},{name:"Undo",title:"Undo",css:"wym_tools_undo"},{name:"Redo",title:"Redo",css:"wym_tools_redo"},{name:"CreateLink",title:"Link",css:"wym_tools_link"},{name:"Unlink",title:"Unlink",css:"wym_tools_unlink"},{name:"InsertImage",title:"Image",css:"wym_tools_image"},{name:"InsertTable",title:"Table",css:"wym_tools_table"},{name:"Paste",title:"Paste_From_Word",css:"wym_tools_paste"},{name:"ToggleHtml",title:"HTML",css:"wym_tools_html"},{name:"Preview",title:"Preview",css:"wym_tools_preview"}],containersHtml:"<div class='wym_containers wym_section'><h2>{Containers}</h2><ul>"+WYMeditor.CONTAINERS_ITEMS+"</ul></div>",containersItemHtml:"<li class='"+WYMeditor.CONTAINER_CLASS+"'><a href='#' name='"+WYMeditor.CONTAINER_NAME+"'>"+WYMeditor.CONTAINER_TITLE+"</a></li>",containersItems:[{name:"P",title:"Paragraph",css:"wym_containers_p"},{name:"H1",title:"Heading_1",css:"wym_containers_h1"},{name:"H2",title:"Heading_2",css:"wym_containers_h2"},{name:"H3",title:"Heading_3",css:"wym_containers_h3"},{name:"H4",title:"Heading_4",css:"wym_containers_h4"},{name:"H5",title:"Heading_5",css:"wym_containers_h5"},{name:"H6",title:"Heading_6",css:"wym_containers_h6"},{name:"PRE",title:"Preformatted",css:"wym_containers_pre"},{name:"BLOCKQUOTE",title:"Blockquote",css:"wym_containers_blockquote"},{name:"TH",title:"Table_Header",css:"wym_containers_th"}],classesHtml:"<div class='wym_classes wym_section'><h2>{Classes}</h2><ul>"+WYMeditor.CLASSES_ITEMS+"</ul></div>",classesItemHtml:"<li><a href='#' name='"+WYMeditor.CLASS_NAME+"'>"+WYMeditor.CLASS_TITLE+"</a></li>",classesItems:[],statusHtml:"<div class='wym_status wym_section'><h2>{Status}</h2></div>",htmlHtml:"<div class='wym_html wym_section'><h2>{Source_Code}</h2><textarea class='wym_html_val'></textarea></div>",boxSelector:".wym_box",toolsSelector:".wym_tools",toolsListSelector:" ul",containersSelector:".wym_containers",classesSelector:".wym_classes",htmlSelector:".wym_html",iframeSelector:".wym_iframe iframe",iframeBodySelector:".wym_iframe",statusSelector:".wym_status",toolSelector:".wym_tools a",containerSelector:".wym_containers a",classSelector:".wym_classes a",htmlValSelector:".wym_html_val",hrefSelector:".wym_href",srcSelector:".wym_src",titleSelector:".wym_title",altSelector:".wym_alt",textSelector:".wym_text",rowsSelector:".wym_rows",colsSelector:".wym_cols",captionSelector:".wym_caption",summarySelector:".wym_summary",submitSelector:".wym_submit",cancelSelector:".wym_cancel",previewSelector:"",dialogTypeSelector:".wym_dialog_type",dialogLinkSelector:".wym_dialog_link",dialogImageSelector:".wym_dialog_image",dialogTableSelector:".wym_dialog_table",dialogPasteSelector:".wym_dialog_paste",dialogPreviewSelector:".wym_dialog_preview",updateSelector:".wymupdate",updateEvent:"click",dialogFeatures:"menubar=no,titlebar=no,toolbar=no,resizable=no,width=560,height=300,top=0,left=0",dialogFeaturesPreview:"menubar=no,titlebar=no,toolbar=no,resizable=no,scrollbars=yes,width=560,height=300,top=0,left=0",dialogHtml:"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'><html dir='"+WYMeditor.DIRECTION+"'><head><link rel='stylesheet' type='text/css' media='screen' href='"+WYMeditor.CSS_PATH+"' /><title>"+WYMeditor.DIALOG_TITLE+"</title><script type='text/javascript' src='"+WYMeditor.JQUERY_PATH+"'><\/script><script type='text/javascript' src='"+WYMeditor.WYM_PATH+"'><\/script></head>"+WYMeditor.DIALOG_BODY+"</html>",dialogLinkHtml:"<body class='wym_dialog wym_dialog_link' onload='WYMeditor.INIT_DIALOG("+WYMeditor.INDEX+")'><form><fieldset><input type='hidden' class='wym_dialog_type' value='"+WYMeditor.DIALOG_LINK+"' /><legend>{Link}</legend><div class='row'><label>{URL}</label><input type='text' class='wym_href' value='' size='40' /></div><div class='row'><label>{Title}</label><input type='text' class='wym_title' value='' size='40' /></div><div class='row row-indent'><input class='wym_submit' type='button' value='{Submit}' /><input class='wym_cancel' type='button'value='{Cancel}' /></div></fieldset></form></body>",dialogImageHtml:"<body class='wym_dialog wym_dialog_image' onload='WYMeditor.INIT_DIALOG("+WYMeditor.INDEX+")'><form><fieldset><input type='hidden' class='wym_dialog_type' value='"+WYMeditor.DIALOG_IMAGE+"' /><legend>{Image}</legend><div class='row'><label>{URL}</label><input type='text' class='wym_src' value='' size='40' /></div><div class='row'><label>{Alternative_Text}</label><input type='text' class='wym_alt' value='' size='40' /></div><div class='row'><label>{Title}</label><input type='text' class='wym_title' value='' size='40' /></div><div class='row row-indent'><input class='wym_submit' type='button' value='{Submit}' /><input class='wym_cancel' type='button'value='{Cancel}' /></div></fieldset></form></body>",dialogTableHtml:"<body class='wym_dialog wym_dialog_table' onload='WYMeditor.INIT_DIALOG("+WYMeditor.INDEX+")'><form><fieldset><input type='hidden' class='wym_dialog_type' value='"+WYMeditor.DIALOG_TABLE+"' /><legend>{Table}</legend><div class='row'><label>{Caption}</label><input type='text' class='wym_caption' value='' size='40' /></div><div class='row'><label>{Summary}</label><input type='text' class='wym_summary' value='' size='40' /></div><div class='row'><label>{Number_Of_Rows}</label><input type='text' class='wym_rows' value='3' size='3' /></div><div class='row'><label>{Number_Of_Cols}</label><input type='text' class='wym_cols' value='2' size='3' /></div><div class='row row-indent'><input class='wym_submit' type='button' value='{Submit}' /><input class='wym_cancel' type='button'value='{Cancel}' /></div></fieldset></form></body>",dialogPasteHtml:"<body class='wym_dialog wym_dialog_paste' onload='WYMeditor.INIT_DIALOG("+WYMeditor.INDEX+")'><form><input type='hidden' class='wym_dialog_type' value='"+WYMeditor.DIALOG_PASTE+"' /><fieldset><legend>{Paste_From_Word}</legend><div class='row'><textarea class='wym_text' rows='10' cols='50'></textarea></div><div class='row'><input class='wym_submit' type='button' value='{Submit}' /><input class='wym_cancel' type='button'value='{Cancel}' /></div></fieldset></form></body>",dialogPreviewHtml:"<body class='wym_dialog wym_dialog_preview' onload='WYMeditor.INIT_DIALOG("+WYMeditor.INDEX+")'></body>",dialogStyles:[],stringDelimiterLeft:"{",stringDelimiterRight:"}",preInit:null,preBind:null,postInit:null,preInitDialog:null,postInitDialog:null},a);return this.each(function(){new WYMeditor.editor(jQuery(this),a)})};jQuery.extend({wymeditors:function(a){return(WYMeditor.INSTANCES[a])}});WYMeditor.editor.prototype.init=function(){if(jQuery.browser.msie){var WymClass=new WYMeditor.WymClassExplorer(this)}else{if(jQuery.browser.mozilla){var WymClass=new WYMeditor.WymClassMozilla(this)}else{if(jQuery.browser.opera){var WymClass=new WYMeditor.WymClassOpera(this)}else{if(jQuery.browser.safari){var WymClass=new WYMeditor.WymClassSafari(this)}}}}if(WymClass){if(jQuery.isFunction(this._options.preInit)){this._options.preInit(this)}var SaxListener=new WYMeditor.XhtmlSaxListener();jQuery.extend(SaxListener,WymClass);this.parser=new WYMeditor.XhtmlParser(SaxListener);if(this._options.styles||this._options.stylesheet){this.configureEditorUsingRawCss()}this.helper=new WYMeditor.XmlHelper();for(var prop in WymClass){this[prop]=WymClass[prop]}this._box=jQuery(this._element).hide().after(this._options.boxHtml).next().addClass("wym_box_"+this._index);if(jQuery.isFunction(jQuery.fn.data)){jQuery.data(this._box.get(0),WYMeditor.WYM_INDEX,this._index);jQuery.data(this._element.get(0),WYMeditor.WYM_INDEX,this._index)}var h=WYMeditor.Helper;var iframeHtml=this._options.iframeHtml;iframeHtml=h.replaceAll(iframeHtml,WYMeditor.INDEX,this._index);iframeHtml=h.replaceAll(iframeHtml,WYMeditor.IFRAME_BASE_PATH,this._options.iframeBasePath);var boxHtml=jQuery(this._box).html();boxHtml=h.replaceAll(boxHtml,WYMeditor.LOGO,this._options.logoHtml);boxHtml=h.replaceAll(boxHtml,WYMeditor.TOOLS,this._options.toolsHtml);boxHtml=h.replaceAll(boxHtml,WYMeditor.CONTAINERS,this._options.containersHtml);boxHtml=h.replaceAll(boxHtml,WYMeditor.CLASSES,this._options.classesHtml);boxHtml=h.replaceAll(boxHtml,WYMeditor.HTML,this._options.htmlHtml);boxHtml=h.replaceAll(boxHtml,WYMeditor.IFRAME,iframeHtml);boxHtml=h.replaceAll(boxHtml,WYMeditor.STATUS,this._options.statusHtml);var aTools=eval(this._options.toolsItems);var sTools="";for(var i=0;i<aTools.length;i++){var oTool=aTools[i];if(oTool.name&&oTool.title){var sTool=this._options.toolsItemHtml}var sTool=h.replaceAll(sTool,WYMeditor.TOOL_NAME,oTool.name);sTool=h.replaceAll(sTool,WYMeditor.TOOL_TITLE,this._options.stringDelimiterLeft+oTool.title+this._options.stringDelimiterRight);sTool=h.replaceAll(sTool,WYMeditor.TOOL_CLASS,oTool.css);sTools+=sTool}boxHtml=h.replaceAll(boxHtml,WYMeditor.TOOLS_ITEMS,sTools);var aClasses=eval(this._options.classesItems);var sClasses="";for(var i=0;i<aClasses.length;i++){var oClass=aClasses[i];if(oClass.name&&oClass.title){var sClass=this._options.classesItemHtml}sClass=h.replaceAll(sClass,WYMeditor.CLASS_NAME,oClass.name);sClass=h.replaceAll(sClass,WYMeditor.CLASS_TITLE,oClass.title);sClasses+=sClass}boxHtml=h.replaceAll(boxHtml,WYMeditor.CLASSES_ITEMS,sClasses);var aContainers=eval(this._options.containersItems);var sContainers="";for(var i=0;i<aContainers.length;i++){var oContainer=aContainers[i];if(oContainer.name&&oContainer.title){var sContainer=this._options.containersItemHtml}sContainer=h.replaceAll(sContainer,WYMeditor.CONTAINER_NAME,oContainer.name);sContainer=h.replaceAll(sContainer,WYMeditor.CONTAINER_TITLE,this._options.stringDelimiterLeft+oContainer.title+this._options.stringDelimiterRight);sContainer=h.replaceAll(sContainer,WYMeditor.CONTAINER_CLASS,oContainer.css);sContainers+=sContainer}boxHtml=h.replaceAll(boxHtml,WYMeditor.CONTAINERS_ITEMS,sContainers);boxHtml=this.replaceStrings(boxHtml);jQuery(this._box).html(boxHtml);jQuery(this._box).find(this._options.htmlSelector).hide();this.loadSkin()}};WYMeditor.editor.prototype.bindEvents=function(){var wym=this;jQuery(this._box).find(this._options.toolSelector).click(function(){wym._iframe.contentWindow.focus();wym.exec(jQuery(this).attr(WYMeditor.NAME));return(false)});jQuery(this._box).find(this._options.containerSelector).click(function(){wym.container(jQuery(this).attr(WYMeditor.NAME));return(false)});jQuery(this._box).find(this._options.htmlValSelector).keyup(function(){jQuery(wym._doc.body).html(jQuery(this).val())}).focus(function(){jQuery(this).toggleClass("hasfocus")}).blur(function(){jQuery(this).toggleClass("hasfocus")});jQuery(this._box).find(this._options.classSelector).click(function(){var aClasses=eval(wym._options.classesItems);var sName=jQuery(this).attr(WYMeditor.NAME);var oClass=WYMeditor.Helper.findByName(aClasses,sName);if(oClass){var jqexpr=oClass.expr;wym.toggleClass(sName,jqexpr)}wym._iframe.contentWindow.focus();return(false)});jQuery(this._options.updateSelector).bind(this._options.updateEvent,function(){wym.update()})};WYMeditor.editor.prototype.ready=function(){return(this._doc!=null)};WYMeditor.editor.prototype.box=function(){return(this._box)};WYMeditor.editor.prototype.html=function(a){if(typeof a==="string"){jQuery(this._doc.body).html(a)}else{return(jQuery(this._doc.body).html())}};WYMeditor.editor.prototype.xhtml=function(){return this.parser.parse(this.html())};WYMeditor.editor.prototype.exec=function(b){switch(b){case WYMeditor.CREATE_LINK:var a=this.container();if(a||this._selected_image){this.dialog(WYMeditor.DIALOG_LINK)}break;case WYMeditor.INSERT_IMAGE:this.dialog(WYMeditor.DIALOG_IMAGE);break;case WYMeditor.INSERT_TABLE:this.dialog(WYMeditor.DIALOG_TABLE);break;case WYMeditor.PASTE:this.dialog(WYMeditor.DIALOG_PASTE);break;case WYMeditor.TOGGLE_HTML:this.update();this.toggleHtml();if(!jQuery(this._box).find(this._options.htmlSelector).is(":visible")){this.listen()}break;case WYMeditor.PREVIEW:this.dialog(WYMeditor.PREVIEW,this._options.dialogFeaturesPreview);break;default:this._exec(b);break}};WYMeditor.editor.prototype.container=function(a){if(a){var d=null;if(a.toLowerCase()==WYMeditor.TH){d=this.container();switch(d.tagName.toLowerCase()){case WYMeditor.TD:case WYMeditor.TH:break;default:var e=new Array(WYMeditor.TD,WYMeditor.TH);d=this.findUp(this.container(),e);break}if(d!=null){a=(d.tagName.toLowerCase()==WYMeditor.TD)?WYMeditor.TH:WYMeditor.TD;this.switchTo(d,a);this.update()}}else{var e=new Array(WYMeditor.P,WYMeditor.H1,WYMeditor.H2,WYMeditor.H3,WYMeditor.H4,WYMeditor.H5,WYMeditor.H6,WYMeditor.PRE,WYMeditor.BLOCKQUOTE);d=this.findUp(this.container(),e);if(d){var i=null;if(a.toLowerCase()==WYMeditor.BLOCKQUOTE){var f=this.findUp(this.container(),WYMeditor.BLOCKQUOTE);if(f==null){i=this._doc.createElement(a);d.parentNode.insertBefore(i,d);i.appendChild(d);this.setFocusToNode(i.firstChild)}else{var c=f.childNodes;var g=c.length;var b=null;if(g>0){b=c.item(0)}for(var h=0;h<g;h++){f.parentNode.insertBefore(c.item(0),f)}f.parentNode.removeChild(f);if(b){this.setFocusToNode(b)}}}else{this.switchTo(d,a)}this.update()}}}else{return(this.selected())}};WYMeditor.editor.prototype.toggleClass=function(c,b){var a=(this._selected_image?this._selected_image:jQuery(this.selected()));a=jQuery(a).parentsOrSelf(b);jQuery(a).toggleClass(c);if(!jQuery(a).attr(WYMeditor.CLASS)){jQuery(a).removeAttr(this._class)}};WYMeditor.editor.prototype.findUp=function(d,c){if(d){var e=d.tagName.toLowerCase();if(typeof(c)==WYMeditor.STRING){while(e!=c&&e!=WYMeditor.BODY){d=d.parentNode;e=d.tagName.toLowerCase()}}else{var b=false;while(!b&&e!=WYMeditor.BODY){for(var a=0;a<c.length;a++){if(e==c[a]){b=true;break}}if(!b){d=d.parentNode;e=d.tagName.toLowerCase()}}}if(e!=WYMeditor.BODY){return(d)}else{return(null)}}else{return(null)}};WYMeditor.editor.prototype.switchTo=function(c,d){var b=this._doc.createElement(d);var a=jQuery(c).html();c.parentNode.replaceChild(b,c);jQuery(b).html(a);this.setFocusToNode(b)};WYMeditor.editor.prototype.replaceStrings=function(sVal){if(!WYMeditor.STRINGS[this._options.lang]){try{eval(jQuery.ajax({url:this._options.langPath+this._options.lang+".js",async:false}).responseText)}catch(e){WYMeditor.console.error("WYMeditor: error while parsing language file.");return sVal}}for(var key in WYMeditor.STRINGS[this._options.lang]){sVal=WYMeditor.Helper.replaceAll(sVal,this._options.stringDelimiterLeft+key+this._options.stringDelimiterRight,WYMeditor.STRINGS[this._options.lang][key])}return(sVal)};WYMeditor.editor.prototype.encloseString=function(a){return(this._options.stringDelimiterLeft+a+this._options.stringDelimiterRight)};WYMeditor.editor.prototype.status=function(a){jQuery(this._box).find(this._options.statusSelector).html(a)};WYMeditor.editor.prototype.update=function(){var a=this.xhtml();jQuery(this._element).val(a);jQuery(this._box).find(this._options.htmlValSelector).not(".hasfocus").val(a)};WYMeditor.editor.prototype.dialog=function(j,c,f){var a=c||this._wym._options.dialogFeatures;var d=window.open("","dialog",a);if(d){var b="";switch(j){case (WYMeditor.DIALOG_LINK):b=this._options.dialogLinkHtml;break;case (WYMeditor.DIALOG_IMAGE):b=this._options.dialogImageHtml;break;case (WYMeditor.DIALOG_TABLE):b=this._options.dialogTableHtml;break;case (WYMeditor.DIALOG_PASTE):b=this._options.dialogPasteHtml;break;case (WYMeditor.PREVIEW):b=this._options.dialogPreviewHtml;break;default:b=f}var e=WYMeditor.Helper;var g=this._options.dialogHtml;g=e.replaceAll(g,WYMeditor.BASE_PATH,this._options.basePath);g=e.replaceAll(g,WYMeditor.DIRECTION,this._options.direction);g=e.replaceAll(g,WYMeditor.CSS_PATH,this._options.skinPath+WYMeditor.SKINS_DEFAULT_CSS);g=e.replaceAll(g,WYMeditor.WYM_PATH,this._options.wymPath);g=e.replaceAll(g,WYMeditor.JQUERY_PATH,this._options.jQueryPath);g=e.replaceAll(g,WYMeditor.DIALOG_TITLE,this.encloseString(j));g=e.replaceAll(g,WYMeditor.DIALOG_BODY,b);g=e.replaceAll(g,WYMeditor.INDEX,this._index);g=this.replaceStrings(g);var i=d.document;i.write(g);i.close()}};WYMeditor.editor.prototype.toggleHtml=function(){jQuery(this._box).find(this._options.htmlSelector).toggle()};WYMeditor.editor.prototype.uniqueStamp=function(){var a=new Date();return("wym-"+a.getTime())};WYMeditor.editor.prototype.paste=function(b){var e;var a=this.selected();var c=b.split(this._newLine+this._newLine);var d=new RegExp(this._newLine,"g");if(a&&a.tagName.toLowerCase()!=WYMeditor.BODY){for(x=c.length-1;x>=0;x--){e=c[x];e=e.replace(d,"<br />");jQuery(a).after("<p>"+e+"</p>")}}else{for(x=0;x<c.length;x++){e=c[x];e=e.replace(d,"<br />");jQuery(this._doc.body).append("<p>"+e+"</p>")}}};WYMeditor.editor.prototype.insert=function(a){if(this._iframe.contentWindow.getSelection().focusNode!=null){this._exec(WYMeditor.INSERT_HTML,a)}else{this.paste(a)}};WYMeditor.editor.prototype.wrap=function(b,a){if(this._iframe.contentWindow.getSelection().focusNode!=null){this._exec(WYMeditor.INSERT_HTML,b+this._iframe.contentWindow.getSelection().toString()+a)}};WYMeditor.editor.prototype.unwrap=function(){if(this._iframe.contentWindow.getSelection().focusNode!=null){this._exec(WYMeditor.INSERT_HTML,this._iframe.contentWindow.getSelection().toString())}};WYMeditor.editor.prototype.addCssRules=function(e,c){var b=e.styleSheets[0];if(b){for(var a=0;a<c.length;a++){var d=c[a];if(d.name&&d.css){this.addCssRule(b,d)}}}};WYMeditor.editor.prototype.computeBasePath=function(){return jQuery(jQuery.grep(jQuery("script"),function(a){return(a.src&&a.src.match(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/))})).attr("src").replace(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/,"")};WYMeditor.editor.prototype.computeWymPath=function(){return jQuery(jQuery.grep(jQuery("script"),function(a){return(a.src&&a.src.match(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/))})).attr("src")};WYMeditor.editor.prototype.computeJqueryPath=function(){return jQuery(jQuery.grep(jQuery("script"),function(a){return(a.src&&a.src.match(/jquery(-(.*)){0,1}(\.pack|\.min|\.packed)?\.js(\?.*)?$/))})).attr("src")};WYMeditor.editor.prototype.computeCssPath=function(){return jQuery(jQuery.grep(jQuery("link"),function(a){return(a.href&&a.href.match(/wymeditor\/skins\/(.*)screen\.css(\?.*)?$/))})).attr("href")};WYMeditor.editor.prototype.configureEditorUsingRawCss=function(){var a=new WYMeditor.WymCssParser();if(this._options.stylesheet){a.parse(jQuery.ajax({url:this._options.stylesheet,async:false}).responseText)}else{a.parse(this._options.styles,false)}if(this._options.classesItems.length==0){this._options.classesItems=a.css_settings.classesItems}if(this._options.editorStyles.length==0){this._options.editorStyles=a.css_settings.editorStyles}if(this._options.dialogStyles.length==0){this._options.dialogStyles=a.css_settings.dialogStyles}};WYMeditor.editor.prototype.listen=function(){jQuery(this._doc.body).bind("mousedown",this.mousedown);var a=this._doc.body.getElementsByTagName("img");for(var b=0;b<a.length;b++){jQuery(a[b]).bind("mousedown",this.mousedown)}};WYMeditor.editor.prototype.mousedown=function(a){var b=WYMeditor.INSTANCES[this.ownerDocument.title];b._selected_image=(this.tagName.toLowerCase()==WYMeditor.IMG)?this:null;a.stopPropagation()};WYMeditor.loadCss=function(a){var c=document.createElement("link");c.rel="stylesheet";c.href=a;var b=jQuery("head").get(0);b.appendChild(c)};WYMeditor.editor.prototype.loadSkin=function(){if(this._options.loadSkin&&!WYMeditor.SKINS[this._options.skin]){var found=false;var rExp=new RegExp(this._options.skin+"/"+WYMeditor.SKINS_DEFAULT_CSS+"$");jQuery("link").each(function(){if(this.href.match(rExp)){found=true}});if(!found){WYMeditor.loadCss(this._options.skinPath+WYMeditor.SKINS_DEFAULT_CSS)}}jQuery(this._box).addClass("wym_skin_"+this._options.skin);if(this._options.initSkin&&!WYMeditor.SKINS[this._options.skin]){eval(jQuery.ajax({url:this._options.skinPath+WYMeditor.SKINS_DEFAULT_JS,async:false}).responseText)}if(WYMeditor.SKINS[this._options.skin]&&WYMeditor.SKINS[this._options.skin].init){WYMeditor.SKINS[this._options.skin].init(this)}};WYMeditor.INIT_DIALOG=function(index){var wym=window.opener.WYMeditor.INSTANCES[index];var doc=window.document;var selected=wym.selected();var dialogType=jQuery(wym._options.dialogTypeSelector).val();var sStamp=wym.uniqueStamp();switch(dialogType){case WYMeditor.DIALOG_LINK:if(selected&&selected.tagName&&selected.tagName.toLowerCase!=WYMeditor.A){selected=jQuery(selected).parentsOrSelf(WYMeditor.A)}if(!selected&&wym._selected_image){selected=jQuery(wym._selected_image).parentsOrSelf(WYMeditor.A)}break}if(jQuery.isFunction(wym._options.preInitDialog)){wym._options.preInitDialog(wym,window)}var styles=doc.styleSheets[0];var aCss=eval(wym._options.dialogStyles);wym.addCssRules(doc,aCss);if(selected){jQuery(wym._options.hrefSelector).val(jQuery(selected).attr(WYMeditor.HREF));jQuery(wym._options.srcSelector).val(jQuery(selected).attr(WYMeditor.SRC));jQuery(wym._options.titleSelector).val(jQuery(selected).attr(WYMeditor.TITLE));jQuery(wym._options.altSelector).val(jQuery(selected).attr(WYMeditor.ALT))}if(wym._selected_image){jQuery(wym._options.dialogImageSelector+" "+wym._options.srcSelector).val(jQuery(wym._selected_image).attr(WYMeditor.SRC));jQuery(wym._options.dialogImageSelector+" "+wym._options.titleSelector).val(jQuery(wym._selected_image).attr(WYMeditor.TITLE));jQuery(wym._options.dialogImageSelector+" "+wym._options.altSelector).val(jQuery(wym._selected_image).attr(WYMeditor.ALT))}jQuery(wym._options.dialogLinkSelector+" "+wym._options.submitSelector).click(function(){var sUrl=jQuery(wym._options.hrefSelector).val();if(sUrl.length>0){wym._exec(WYMeditor.CREATE_LINK,sStamp);jQuery("a[href="+sStamp+"]",wym._doc.body).attr(WYMeditor.HREF,sUrl).attr(WYMeditor.TITLE,jQuery(wym._options.titleSelector).val())}window.close()});jQuery(wym._options.dialogImageSelector+" "+wym._options.submitSelector).click(function(){var sUrl=jQuery(wym._options.srcSelector).val();if(sUrl.length>0){wym._exec(WYMeditor.INSERT_IMAGE,sStamp);jQuery("img[src$="+sStamp+"]",wym._doc.body).attr(WYMeditor.SRC,sUrl).attr(WYMeditor.TITLE,jQuery(wym._options.titleSelector).val()).attr(WYMeditor.ALT,jQuery(wym._options.altSelector).val())}window.close()});jQuery(wym._options.dialogTableSelector+" "+wym._options.submitSelector).click(function(){var iRows=jQuery(wym._options.rowsSelector).val();var iCols=jQuery(wym._options.colsSelector).val();if(iRows>0&&iCols>0){var table=wym._doc.createElement(WYMeditor.TABLE);var newRow=null;var newCol=null;var sCaption=jQuery(wym._options.captionSelector).val();var newCaption=table.createCaption();newCaption.innerHTML=sCaption;for(x=0;x<iRows;x++){newRow=table.insertRow(x);for(y=0;y<iCols;y++){newRow.insertCell(y)}}jQuery(table).attr("summary",jQuery(wym._options.summarySelector).val());var node=jQuery(wym.findUp(wym.container(),WYMeditor.MAIN_CONTAINERS)).get(0);if(!node||!node.parentNode){jQuery(wym._doc.body).append(table)}else{jQuery(node).after(table)}}window.close()});jQuery(wym._options.dialogPasteSelector+" "+wym._options.submitSelector).click(function(){var sText=jQuery(wym._options.textSelector).val();wym.paste(sText);window.close()});jQuery(wym._options.dialogPreviewSelector+" "+wym._options.previewSelector).html(wym.xhtml());jQuery(wym._options.cancelSelector).mousedown(function(){window.close()});if(jQuery.isFunction(wym._options.postInitDialog)){wym._options.postInitDialog(wym,window)}};WYMeditor.XmlHelper=function(){this._entitiesDiv=document.createElement("div");return this};WYMeditor.XmlHelper.prototype.tag=function(c,b,a){b=b||false;a=a||false;return"<"+c+(b?this.tagOptions(b):"")+(a?">":" />")};WYMeditor.XmlHelper.prototype.contentTag=function(b,c,a){a=a||false;return"<"+b+(a?this.tagOptions(a):"")+">"+c+"</"+b+">"};WYMeditor.XmlHelper.prototype.cdataSection=function(a){return"<![CDATA["+a+"]]>"};WYMeditor.XmlHelper.prototype.escapeOnce=function(a){return this._fixDoubleEscape(this.escapeEntities(a))};WYMeditor.XmlHelper.prototype._fixDoubleEscape=function(a){return a.replace(/&amp;([a-z]+|(#\d+));/ig,"&$1;")};WYMeditor.XmlHelper.prototype.tagOptions=function(b){var a=this;a._formated_options="";for(var c in b){var d="";var e=b[c];if(typeof e!="function"&&e.length>0){if(parseInt(c)==c&&typeof e=="object"){c=e.shift();e=e.pop()}if(c!=""&&e!=""){a._formated_options+=" "+c+'="'+a.escapeOnce(e)+'"'}}}return a._formated_options};WYMeditor.XmlHelper.prototype.escapeEntities=function(c,b){this._entitiesDiv.innerHTML=c;this._entitiesDiv.textContent=c;var a=this._entitiesDiv.innerHTML;if(typeof b=="undefined"){if(b!=false){a=a.replace('"',"&quot;")}if(b==true){a=a.replace('"',"&#039;")}}return a};WYMeditor.XmlHelper.prototype.parseAttributes=function(h){var a=[];var g=h.split(/((=\s*")(")("))|((=\s*\')(\')(\'))|((=\s*[^>\s]*))/g);if(g.toString()!=h){for(var d in g){var c=g[d];if(typeof c!="function"&&c.length!=0){var e=new RegExp("(\\w+)\\s*"+c);if(match=h.match(e)){var f=c.replace(/^[\s=]+/,"");var b=f.charAt(0);b=b=='"'?'"':(b=="'"?"'":"");if(b!=""){f=b=='"'?f.replace(/^"|"+$/g,""):f.replace(/^'|'+$/g,"")}h=h.replace(match[0],"");a.push([match[1],f])}}}}return a};WYMeditor.XhtmlValidator={_attributes:{core:{except:["base","head","html","meta","param","script","style","title"],attributes:["class","id","style","title","accesskey","tabindex"]},language:{except:["base","br","hr","iframe","param","script"],attributes:{dir:["ltr","rtl"],"0":"lang","1":"xml:lang"}},keyboard:{attributes:{accesskey:/^(\w){1}$/,tabindex:/^(\d)+$/}}},_events:{window:{only:["body"],attributes:["onload","onunload"]},form:{only:["form","input","textarea","select","a","label","button"],attributes:["onchange","onsubmit","onreset","onselect","onblur","onfocus"]},keyboard:{except:["base","bdo","br","frame","frameset","head","html","iframe","meta","param","script","style","title"],attributes:["onkeydown","onkeypress","onkeyup"]},mouse:{except:["base","bdo","br","head","html","meta","param","script","style","title"],attributes:["onclick","ondblclick","onmousedown","onmousemove","onmouseover","onmouseout","onmouseup"]}},_tags:{a:{attributes:{"0":"charset","1":"coords","2":"href","3":"hreflang","4":"name",rel:/^(alternate|designates|stylesheet|start|next|prev|contents|index|glossary|copyright|chapter|section|subsection|appendix|help|bookmark| |shortcut|icon)+$/,rev:/^(alternate|designates|stylesheet|start|next|prev|contents|index|glossary|copyright|chapter|section|subsection|appendix|help|bookmark| |shortcut|icon)+$/,shape:/^(rect|rectangle|circ|circle|poly|polygon)$/,"5":"type"}},"0":"abbr","1":"acronym","2":"address",area:{attributes:{"0":"alt","1":"coords","2":"href",nohref:/^(true|false)$/,shape:/^(rect|rectangle|circ|circle|poly|polygon)$/},required:["alt"]},"3":"b",base:{attributes:["href"],required:["href"]},bdo:{attributes:{dir:/^(ltr|rtl)$/},required:["dir"]},"4":"big",blockquote:{attributes:["cite"]},"5":"body","6":"br",button:{attributes:{disabled:/^(disabled)$/,type:/^(button|reset|submit)$/,"0":"value"},inside:"form"},"7":"caption","8":"cite","9":"code",col:{attributes:{align:/^(right|left|center|justify)$/,"0":"char","1":"charoff",span:/^(\d)+$/,valign:/^(top|middle|bottom|baseline)$/,"2":"width"},inside:"colgroup"},colgroup:{attributes:{align:/^(right|left|center|justify)$/,"0":"char","1":"charoff",span:/^(\d)+$/,valign:/^(top|middle|bottom|baseline)$/,"2":"width"}},"10":"dd",del:{attributes:{"0":"cite",datetime:/^([0-9]){8}/}},"11":"div","12":"dfn","13":"dl","14":"dt","15":"em",fieldset:{inside:"form"},form:{attributes:{"0":"action","1":"accept","2":"accept-charset","3":"enctype",method:/^(get|post)$/},required:["action"]},head:{attributes:["profile"]},"16":"h1","17":"h2","18":"h3","19":"h4","20":"h5","21":"h6","22":"hr",html:{attributes:["xmlns"]},"23":"i",img:{attributes:["alt","src","height","ismap","longdesc","usemap","width"],required:["alt","src"]},input:{attributes:{"0":"accept","1":"alt",checked:/^(checked)$/,disabled:/^(disabled)$/,maxlength:/^(\d)+$/,"2":"name",readonly:/^(readonly)$/,size:/^(\d)+$/,"3":"src",type:/^(button|checkbox|file|hidden|image|password|radio|reset|submit|text)$/,"4":"value"},inside:"form"},ins:{attributes:{"0":"cite",datetime:/^([0-9]){8}/}},"24":"kbd",label:{attributes:["for"],inside:"form"},"25":"legend","26":"li",link:{attributes:{"0":"charset","1":"href","2":"hreflang",media:/^(all|braille|print|projection|screen|speech|,|;| )+$/i,rel:/^(alternate|appendix|bookmark|chapter|contents|copyright|glossary|help|home|index|next|prev|section|start|stylesheet|subsection| |shortcut|icon)+$/i,rev:/^(alternate|appendix|bookmark|chapter|contents|copyright|glossary|help|home|index|next|prev|section|start|stylesheet|subsection| |shortcut|icon)+$/i,"3":"type"},inside:"head"},map:{attributes:["id","name"],required:["id"]},meta:{attributes:{"0":"content","http-equiv":/^(content\-type|expires|refresh|set\-cookie)$/i,"1":"name","2":"scheme"},required:["content"]},"27":"noscript",object:{attributes:["archive","classid","codebase","codetype","data","declare","height","name","standby","type","usemap","width"]},"28":"ol",optgroup:{attributes:{"0":"label",disabled:/^(disabled)$/},required:["label"]},option:{attributes:{"0":"label",disabled:/^(disabled)$/,selected:/^(selected)$/,"1":"value"},inside:"select"},"29":"p",param:{attributes:{"0":"type",valuetype:/^(data|ref|object)$/,"1":"valuetype","2":"value"},required:["name"]},"30":"pre",q:{attributes:["cite"]},"31":"samp",script:{attributes:{type:/^(text\/ecmascript|text\/javascript|text\/jscript|text\/vbscript|text\/vbs|text\/xml)$/,"0":"charset",defer:/^(defer)$/,"1":"src"},required:["type"]},select:{attributes:{disabled:/^(disabled)$/,multiple:/^(multiple)$/,"0":"name","1":"size"},inside:"form"},"32":"small","33":"span","34":"strong",style:{attributes:{"0":"type",media:/^(screen|tty|tv|projection|handheld|print|braille|aural|all)$/},required:["type"]},"35":"sub","36":"sup",table:{attributes:{"0":"border","1":"cellpadding","2":"cellspacing",frame:/^(void|above|below|hsides|lhs|rhs|vsides|box|border)$/,rules:/^(none|groups|rows|cols|all)$/,"3":"summary","4":"width"}},tbody:{attributes:{align:/^(right|left|center|justify)$/,"0":"char","1":"charoff",valign:/^(top|middle|bottom|baseline)$/}},td:{attributes:{"0":"abbr",align:/^(left|right|center|justify|char)$/,"1":"axis","2":"char","3":"charoff",colspan:/^(\d)+$/,"4":"headers",rowspan:/^(\d)+$/,scope:/^(col|colgroup|row|rowgroup)$/,valign:/^(top|middle|bottom|baseline)$/}},textarea:{attributes:["cols","rows","disabled","name","readonly"],required:["cols","rows"],inside:"form"},tfoot:{attributes:{align:/^(right|left|center|justify)$/,"0":"char","1":"charoff",valign:/^(top|middle|bottom)$/,"2":"baseline"}},th:{attributes:{"0":"abbr",align:/^(left|right|center|justify|char)$/,"1":"axis","2":"char","3":"charoff",colspan:/^(\d)+$/,"4":"headers",rowspan:/^(\d)+$/,scope:/^(col|colgroup|row|rowgroup)$/,valign:/^(top|middle|bottom|baseline)$/}},thead:{attributes:{align:/^(right|left|center|justify)$/,"0":"char","1":"charoff",valign:/^(top|middle|bottom|baseline)$/}},"37":"title",tr:{attributes:{align:/^(right|left|center|justify|char)$/,"0":"char","1":"charoff",valign:/^(top|middle|bottom|baseline)$/}},"38":"tt","39":"ul","40":"var"},skiped_attributes:[],skiped_attribute_values:[],getValidTagAttributes:function(a,b){var c={};var g=this.getPossibleTagAttributes(a);for(var e in b){var f=b[e];var d=WYMeditor.Helper;if(!d.contains(this.skiped_attributes,e)&&!d.contains(this.skiped_attribute_values,f)){if(typeof f!="function"&&d.contains(g,e)){if(this.doesAttributeNeedsValidation(a,e)){if(this.validateAttribute(a,e,f)){c[e]=f}}else{c[e]=f}}}}return c},getUniqueAttributesAndEventsForTag:function(b){var a=[];if(this._tags[b]&&this._tags[b]["attributes"]){for(k in this._tags[b]["attributes"]){a.push(parseInt(k)==k?this._tags[b]["attributes"][k]:k)}}return a},getDefaultAttributesAndEventsForTags:function(){var a=[];for(var b in this._events){a.push(this._events[b])}for(var b in this._attributes){a.push(this._attributes[b])}return a},isValidTag:function(a){if(this._tags[a]){return true}for(var b in this._tags){if(this._tags[b]==a){return true}}return false},getDefaultAttributesAndEventsForTag:function(a){var i=[];if(this.isValidTag(a)){var g=this.getDefaultAttributesAndEventsForTags();for(var d in g){var f=g[d];if(typeof f=="object"){var e=WYMeditor.Helper;if((f.except&&e.contains(f.except,a))||(f.only&&!e.contains(f.only,a))){continue}var c=f.attributes?f.attributes:f.events;for(var b in c){i.push(typeof c[b]!="string"?b:c[b])}}}}return i},doesAttributeNeedsValidation:function(a,b){return this._tags[a]&&((this._tags[a]["attributes"]&&this._tags[a]["attributes"][b])||(this._tags[a]["required"]&&WYMeditor.Helper.contains(this._tags[a]["required"],b)))},validateAttribute:function(a,b,c){if(this._tags[a]&&(this._tags[a]["attributes"]&&this._tags[a]["attributes"][b]&&c.length>0&&!c.match(this._tags[a]["attributes"][b]))||(this._tags[a]&&this._tags[a]["required"]&&WYMeditor.Helper.contains(this._tags[a]["required"],b)&&c.length==0)){return false}return typeof this._tags[a]!="undefined"},getPossibleTagAttributes:function(a){if(!this._possible_tag_attributes){this._possible_tag_attributes={}}if(!this._possible_tag_attributes[a]){this._possible_tag_attributes[a]=this.getUniqueAttributesAndEventsForTag(a).concat(this.getDefaultAttributesAndEventsForTag(a))}return this._possible_tag_attributes[a]}};WYMeditor.ParallelRegex=function(a){this._case=a;this._patterns=[];this._labels=[];this._regex=null;return this};WYMeditor.ParallelRegex.prototype.addPattern=function(c,a){a=a||true;var b=this._patterns.length;this._patterns[b]=c;this._labels[b]=a;this._regex=null};WYMeditor.ParallelRegex.prototype.match=function(c){if(this._patterns.length==0){return[false,""]}var d=c.match(this._getCompoundedRegex());if(!d){return[false,""]}var a=d[0];for(var b=1;b<d.length;b++){if(d[b]){return[this._labels[b-1],a]}}return[true,d[0]]};WYMeditor.ParallelRegex.prototype._getCompoundedRegex=function(){if(this._regex==null){for(var a=0,b=this._patterns.length;a<b;a++){this._patterns[a]="("+this._untokenizeRegex(this._tokenizeRegex(this._patterns[a]).replace(/([\/\(\)])/g,"\\$1"))+")"}this._regex=new RegExp(this._patterns.join("|"),this._getPerlMatchingFlags())}return this._regex};WYMeditor.ParallelRegex.prototype._tokenizeRegex=function(a){return a.replace(/\(\?(i|m|s|x|U)\)/,"~~~~~~Tk1$1~~~~~~").replace(/\(\?(\-[i|m|s|x|U])\)/,"~~~~~~Tk2$1~~~~~~").replace(/\(\?\=(.*)\)/,"~~~~~~Tk3$1~~~~~~").replace(/\(\?\!(.*)\)/,"~~~~~~Tk4$1~~~~~~").replace(/\(\?\<\=(.*)\)/,"~~~~~~Tk5$1~~~~~~").replace(/\(\?\<\!(.*)\)/,"~~~~~~Tk6$1~~~~~~").replace(/\(\?\:(.*)\)/,"~~~~~~Tk7$1~~~~~~")};WYMeditor.ParallelRegex.prototype._untokenizeRegex=function(a){return a.replace(/~~~~~~Tk1(.{1})~~~~~~/,"(?$1)").replace(/~~~~~~Tk2(.{2})~~~~~~/,"(?$1)").replace(/~~~~~~Tk3(.*)~~~~~~/,"(?=$1)").replace(/~~~~~~Tk4(.*)~~~~~~/,"(?!$1)").replace(/~~~~~~Tk5(.*)~~~~~~/,"(?<=$1)").replace(/~~~~~~Tk6(.*)~~~~~~/,"(?<!$1)").replace(/~~~~~~Tk7(.*)~~~~~~/,"(?:$1)")};WYMeditor.ParallelRegex.prototype._getPerlMatchingFlags=function(){return(this._case?"m":"mi")};WYMeditor.StateStack=function(a){this._stack=[a];return this};WYMeditor.StateStack.prototype.getCurrent=function(){return this._stack[this._stack.length-1]};WYMeditor.StateStack.prototype.enter=function(a){this._stack.push(a)};WYMeditor.StateStack.prototype.leave=function(){if(this._stack.length==1){return false}this._stack.pop();return true};WYMeditor.LEXER_ENTER=1;WYMeditor.LEXER_MATCHED=2;WYMeditor.LEXER_UNMATCHED=3;WYMeditor.LEXER_EXIT=4;WYMeditor.LEXER_SPECIAL=5;WYMeditor.Lexer=function(c,b,a){b=b||"accept";this._case=a||false;this._regexes={};this._parser=c;this._mode=new WYMeditor.StateStack(b);this._mode_handlers={};this._mode_handlers[b]=b;return this};WYMeditor.Lexer.prototype.addPattern=function(a,b){var b=b||"accept";if(typeof this._regexes[b]=="undefined"){this._regexes[b]=new WYMeditor.ParallelRegex(this._case)}this._regexes[b].addPattern(a);if(typeof this._mode_handlers[b]=="undefined"){this._mode_handlers[b]=b}};WYMeditor.Lexer.prototype.addEntryPattern=function(b,c,a){if(typeof this._regexes[c]=="undefined"){this._regexes[c]=new WYMeditor.ParallelRegex(this._case)}this._regexes[c].addPattern(b,a);if(typeof this._mode_handlers[a]=="undefined"){this._mode_handlers[a]=a}};WYMeditor.Lexer.prototype.addExitPattern=function(a,b){if(typeof this._regexes[b]=="undefined"){this._regexes[b]=new WYMeditor.ParallelRegex(this._case)}this._regexes[b].addPattern(a,"__exit");if(typeof this._mode_handlers[b]=="undefined"){this._mode_handlers[b]=b}};WYMeditor.Lexer.prototype.addSpecialPattern=function(b,c,a){if(typeof this._regexes[c]=="undefined"){this._regexes[c]=new WYMeditor.ParallelRegex(this._case)}this._regexes[c].addPattern(b,"_"+a);if(typeof this._mode_handlers[a]=="undefined"){this._mode_handlers[a]=a}};WYMeditor.Lexer.prototype.mapHandler=function(b,a){this._mode_handlers[b]=a};WYMeditor.Lexer.prototype.parse=function(d){if(typeof this._parser=="undefined"){return false}var e=d.length;var c;while(typeof(c=this._reduce(d))=="object"){var d=c[0];var b=c[1];var a=c[2];var f=c[3];if(!this._dispatchTokens(b,a,f)){return false}if(d==""){return true}if(d.length==e){return false}e=d.length}if(!c){return false}return this._invokeParser(d,WYMeditor.LEXER_UNMATCHED)};WYMeditor.Lexer.prototype._dispatchTokens=function(b,a,c){c=c||false;if(!this._invokeParser(b,WYMeditor.LEXER_UNMATCHED)){return false}if(typeof c=="boolean"){return this._invokeParser(a,WYMeditor.LEXER_MATCHED)}if(this._isModeEnd(c)){if(!this._invokeParser(a,WYMeditor.LEXER_EXIT)){return false}return this._mode.leave()}if(this._isSpecialMode(c)){this._mode.enter(this._decodeSpecial(c));if(!this._invokeParser(a,WYMeditor.LEXER_SPECIAL)){return false}return this._mode.leave()}this._mode.enter(c);return this._invokeParser(a,WYMeditor.LEXER_ENTER)};WYMeditor.Lexer.prototype._isModeEnd=function(a){return(a==="__exit")};WYMeditor.Lexer.prototype._isSpecialMode=function(a){return(a.substring(0,1)=="_")};WYMeditor.Lexer.prototype._decodeSpecial=function(a){return a.substring(1)};WYMeditor.Lexer.prototype._invokeParser=function(content,is_match){if(!/ +/.test(content)&&((content==="")||(content==false))){return true}var current=this._mode.getCurrent();var handler=this._mode_handlers[current];var result;eval("result = this._parser."+handler+"(content, is_match);");return result};WYMeditor.Lexer.prototype._reduce=function(c){var a=this._regexes[this._mode.getCurrent()].match(c);var b=a[1];var e=a[0];if(e){var f=c.indexOf(b);var d=c.substr(0,f);c=c.substring(f+b.length);return[c,d,b,e]}return true};WYMeditor.XhtmlLexer=function(a){jQuery.extend(this,new WYMeditor.Lexer(a,"Text"));this.mapHandler("Text","Text");this.addTokens();this.init();return this};WYMeditor.XhtmlLexer.prototype.init=function(){};WYMeditor.XhtmlLexer.prototype.addTokens=function(){this.addCommentTokens("Text");this.addScriptTokens("Text");this.addCssTokens("Text");this.addTagTokens("Text")};WYMeditor.XhtmlLexer.prototype.addCommentTokens=function(a){this.addEntryPattern("<!--",a,"Comment");this.addExitPattern("-->","Comment")};WYMeditor.XhtmlLexer.prototype.addScriptTokens=function(a){this.addEntryPattern("<script",a,"Script");this.addExitPattern("<\/script>","Script")};WYMeditor.XhtmlLexer.prototype.addCssTokens=function(a){this.addEntryPattern("<style",a,"Css");this.addExitPattern("</style>","Css")};WYMeditor.XhtmlLexer.prototype.addTagTokens=function(a){this.addSpecialPattern("<\\s*[a-z0-9:-]+\\s*>",a,"OpeningTag");this.addEntryPattern("<[a-z0-9:-]+[\\/ \\>]+",a,"OpeningTag");this.addInTagDeclarationTokens("OpeningTag");this.addSpecialPattern("</\\s*[a-z0-9:-]+\\s*>",a,"ClosingTag")};WYMeditor.XhtmlLexer.prototype.addInTagDeclarationTokens=function(a){this.addSpecialPattern("\\s+",a,"Ignore");this.addAttributeTokens(a);this.addExitPattern("/>",a);this.addExitPattern(">",a)};WYMeditor.XhtmlLexer.prototype.addAttributeTokens=function(a){this.addSpecialPattern("\\s*[a-z-_0-9]*:?[a-z-_0-9]+\\s*(?==)\\s*",a,"TagAttributes");this.addEntryPattern('=\\s*"',a,"DoubleQuotedAttribute");this.addPattern('\\\\"',"DoubleQuotedAttribute");this.addExitPattern('"',"DoubleQuotedAttribute");this.addEntryPattern("=\\s*'",a,"SingleQuotedAttribute");this.addPattern("\\\\'","SingleQuotedAttribute");this.addExitPattern("'","SingleQuotedAttribute");this.addSpecialPattern("=\\s*[^>\\s]*",a,"UnquotedAttribute")};WYMeditor.XhtmlParser=function(a,b){var b=b||"Text";this._Lexer=new WYMeditor.XhtmlLexer(this);this._Listener=a;this._mode=b;this._matches=[];this._last_match="";this._current_match="";return this};WYMeditor.XhtmlParser.prototype.parse=function(a){this._Lexer.parse(this.beforeParsing(a));return this.afterParsing(this._Listener.getResult())};WYMeditor.XhtmlParser.prototype.beforeParsing=function(a){if(a.match(/class="MsoNormal"/)||a.match(/ns = "urn:schemas-microsoft-com/)){this._Listener.avoidStylingTagsAndAttributes()}return this._Listener.beforeParsing(a)};WYMeditor.XhtmlParser.prototype.afterParsing=function(a){if(this._Listener._avoiding_tags_implicitly){this._Listener.allowStylingTagsAndAttributes()}return this._Listener.afterParsing(a)};WYMeditor.XhtmlParser.prototype.Ignore=function(a,b){return true};WYMeditor.XhtmlParser.prototype.Text=function(a){this._Listener.addContent(a);return true};WYMeditor.XhtmlParser.prototype.Comment=function(b,a){return this._addNonTagBlock(b,a,"addComment")};WYMeditor.XhtmlParser.prototype.Script=function(b,a){return this._addNonTagBlock(b,a,"addScript")};WYMeditor.XhtmlParser.prototype.Css=function(b,a){return this._addNonTagBlock(b,a,"addCss")};WYMeditor.XhtmlParser.prototype._addNonTagBlock=function(a,c,b){switch(c){case WYMeditor.LEXER_ENTER:this._non_tag=a;break;case WYMeditor.LEXER_UNMATCHED:this._non_tag+=a;break;case WYMeditor.LEXER_EXIT:switch(b){case"addComment":this._Listener.addComment(this._non_tag+a);break;case"addScript":this._Listener.addScript(this._non_tag+a);break;case"addCss":this._Listener.addCss(this._non_tag+a);break}}return true};WYMeditor.XhtmlParser.prototype.OpeningTag=function(a,b){switch(b){case WYMeditor.LEXER_ENTER:this._tag=this.normalizeTag(a);this._tag_attributes={};break;case WYMeditor.LEXER_SPECIAL:this._callOpenTagListener(this.normalizeTag(a));break;case WYMeditor.LEXER_EXIT:this._callOpenTagListener(this._tag,this._tag_attributes)}return true};WYMeditor.XhtmlParser.prototype.ClosingTag=function(a,b){this._callCloseTagListener(this.normalizeTag(a));return true};WYMeditor.XhtmlParser.prototype._callOpenTagListener=function(a,b){var b=b||{};this.autoCloseUnclosedBeforeNewOpening(a);if(this._Listener.isBlockTag(a)){this._Listener._tag_stack.push(a);this._Listener.fixNestingBeforeOpeningBlockTag(a,b);this._Listener.openBlockTag(a,b);this._increaseOpenTagCounter(a)}else{if(this._Listener.isInlineTag(a)){this._Listener.inlineTag(a,b)}else{this._Listener.openUnknownTag(a,b);this._increaseOpenTagCounter(a)}}this._Listener.last_tag=a;this._Listener.last_tag_opened=true;this._Listener.last_tag_attributes=b};WYMeditor.XhtmlParser.prototype._callCloseTagListener=function(a){if(this._decreaseOpenTagCounter(a)){this.autoCloseUnclosedBeforeTagClosing(a);if(this._Listener.isBlockTag(a)){var b=this._Listener._tag_stack.pop();if(b==false){return}else{if(b!=a){a=b}}this._Listener.closeBlockTag(a)}else{this._Listener.closeUnknownTag(a)}}else{this._Listener.closeUnopenedTag(a)}this._Listener.last_tag=a;this._Listener.last_tag_opened=false};WYMeditor.XhtmlParser.prototype._increaseOpenTagCounter=function(a){this._Listener._open_tags[a]=this._Listener._open_tags[a]||0;this._Listener._open_tags[a]++};WYMeditor.XhtmlParser.prototype._decreaseOpenTagCounter=function(a){if(this._Listener._open_tags[a]){this._Listener._open_tags[a]--;if(this._Listener._open_tags[a]==0){this._Listener._open_tags[a]=undefined}return true}return false};WYMeditor.XhtmlParser.prototype.autoCloseUnclosedBeforeNewOpening=function(a){this._autoCloseUnclosed(a,false)};WYMeditor.XhtmlParser.prototype.autoCloseUnclosedBeforeTagClosing=function(a){this._autoCloseUnclosed(a,true)};WYMeditor.XhtmlParser.prototype._autoCloseUnclosed=function(c,d){var d=d||false;if(this._Listener._open_tags){for(var a in this._Listener._open_tags){var b=this._Listener._open_tags[a];if(b>0&&this._Listener.shouldCloseTagAutomatically(a,c,d)){this._callCloseTagListener(a,true)}}}};WYMeditor.XhtmlParser.prototype.getTagReplacements=function(){return this._Listener.getTagReplacements()};WYMeditor.XhtmlParser.prototype.normalizeTag=function(a){a=a.replace(/^([\s<\/>]*)|([\s<\/>]*)$/gm,"").toLowerCase();var b=this._Listener.getTagReplacements();if(b[a]){return b[a]}return a};WYMeditor.XhtmlParser.prototype.TagAttributes=function(a,b){if(WYMeditor.LEXER_SPECIAL==b){this._current_attribute=a}return true};WYMeditor.XhtmlParser.prototype.DoubleQuotedAttribute=function(a,b){if(WYMeditor.LEXER_UNMATCHED==b){this._tag_attributes[this._current_attribute]=a}return true};WYMeditor.XhtmlParser.prototype.SingleQuotedAttribute=function(a,b){if(WYMeditor.LEXER_UNMATCHED==b){this._tag_attributes[this._current_attribute]=a}return true};WYMeditor.XhtmlParser.prototype.UnquotedAttribute=function(a,b){this._tag_attributes[this._current_attribute]=a.replace(/^=/,"");return true};WYMeditor.XhtmlSaxListener=function(){this.output="";this.helper=new WYMeditor.XmlHelper();this._open_tags={};this.validator=WYMeditor.XhtmlValidator;this._tag_stack=[];this.avoided_tags=[];this.entities={"&nbsp;":"&#160;","&iexcl;":"&#161;","&cent;":"&#162;","&pound;":"&#163;","&curren;":"&#164;","&yen;":"&#165;","&brvbar;":"&#166;","&sect;":"&#167;","&uml;":"&#168;","&copy;":"&#169;","&ordf;":"&#170;","&laquo;":"&#171;","&not;":"&#172;","&shy;":"&#173;","&reg;":"&#174;","&macr;":"&#175;","&deg;":"&#176;","&plusmn;":"&#177;","&sup2;":"&#178;","&sup3;":"&#179;","&acute;":"&#180;","&micro;":"&#181;","&para;":"&#182;","&middot;":"&#183;","&cedil;":"&#184;","&sup1;":"&#185;","&ordm;":"&#186;","&raquo;":"&#187;","&frac14;":"&#188;","&frac12;":"&#189;","&frac34;":"&#190;","&iquest;":"&#191;","&Agrave;":"&#192;","&Aacute;":"&#193;","&Acirc;":"&#194;","&Atilde;":"&#195;","&Auml;":"&#196;","&Aring;":"&#197;","&AElig;":"&#198;","&Ccedil;":"&#199;","&Egrave;":"&#200;","&Eacute;":"&#201;","&Ecirc;":"&#202;","&Euml;":"&#203;","&Igrave;":"&#204;","&Iacute;":"&#205;","&Icirc;":"&#206;","&Iuml;":"&#207;","&ETH;":"&#208;","&Ntilde;":"&#209;","&Ograve;":"&#210;","&Oacute;":"&#211;","&Ocirc;":"&#212;","&Otilde;":"&#213;","&Ouml;":"&#214;","&times;":"&#215;","&Oslash;":"&#216;","&Ugrave;":"&#217;","&Uacute;":"&#218;","&Ucirc;":"&#219;","&Uuml;":"&#220;","&Yacute;":"&#221;","&THORN;":"&#222;","&szlig;":"&#223;","&agrave;":"&#224;","&aacute;":"&#225;","&acirc;":"&#226;","&atilde;":"&#227;","&auml;":"&#228;","&aring;":"&#229;","&aelig;":"&#230;","&ccedil;":"&#231;","&egrave;":"&#232;","&eacute;":"&#233;","&ecirc;":"&#234;","&euml;":"&#235;","&igrave;":"&#236;","&iacute;":"&#237;","&icirc;":"&#238;","&iuml;":"&#239;","&eth;":"&#240;","&ntilde;":"&#241;","&ograve;":"&#242;","&oacute;":"&#243;","&ocirc;":"&#244;","&otilde;":"&#245;","&ouml;":"&#246;","&divide;":"&#247;","&oslash;":"&#248;","&ugrave;":"&#249;","&uacute;":"&#250;","&ucirc;":"&#251;","&uuml;":"&#252;","&yacute;":"&#253;","&thorn;":"&#254;","&yuml;":"&#255;","&OElig;":"&#338;","&oelig;":"&#339;","&Scaron;":"&#352;","&scaron;":"&#353;","&Yuml;":"&#376;","&fnof;":"&#402;","&circ;":"&#710;","&tilde;":"&#732;","&Alpha;":"&#913;","&Beta;":"&#914;","&Gamma;":"&#915;","&Delta;":"&#916;","&Epsilon;":"&#917;","&Zeta;":"&#918;","&Eta;":"&#919;","&Theta;":"&#920;","&Iota;":"&#921;","&Kappa;":"&#922;","&Lambda;":"&#923;","&Mu;":"&#924;","&Nu;":"&#925;","&Xi;":"&#926;","&Omicron;":"&#927;","&Pi;":"&#928;","&Rho;":"&#929;","&Sigma;":"&#931;","&Tau;":"&#932;","&Upsilon;":"&#933;","&Phi;":"&#934;","&Chi;":"&#935;","&Psi;":"&#936;","&Omega;":"&#937;","&alpha;":"&#945;","&beta;":"&#946;","&gamma;":"&#947;","&delta;":"&#948;","&epsilon;":"&#949;","&zeta;":"&#950;","&eta;":"&#951;","&theta;":"&#952;","&iota;":"&#953;","&kappa;":"&#954;","&lambda;":"&#955;","&mu;":"&#956;","&nu;":"&#957;","&xi;":"&#958;","&omicron;":"&#959;","&pi;":"&#960;","&rho;":"&#961;","&sigmaf;":"&#962;","&sigma;":"&#963;","&tau;":"&#964;","&upsilon;":"&#965;","&phi;":"&#966;","&chi;":"&#967;","&psi;":"&#968;","&omega;":"&#969;","&thetasym;":"&#977;","&upsih;":"&#978;","&piv;":"&#982;","&ensp;":"&#8194;","&emsp;":"&#8195;","&thinsp;":"&#8201;","&zwnj;":"&#8204;","&zwj;":"&#8205;","&lrm;":"&#8206;","&rlm;":"&#8207;","&ndash;":"&#8211;","&mdash;":"&#8212;","&lsquo;":"&#8216;","&rsquo;":"&#8217;","&sbquo;":"&#8218;","&ldquo;":"&#8220;","&rdquo;":"&#8221;","&bdquo;":"&#8222;","&dagger;":"&#8224;","&Dagger;":"&#8225;","&bull;":"&#8226;","&hellip;":"&#8230;","&permil;":"&#8240;","&prime;":"&#8242;","&Prime;":"&#8243;","&lsaquo;":"&#8249;","&rsaquo;":"&#8250;","&oline;":"&#8254;","&frasl;":"&#8260;","&euro;":"&#8364;","&image;":"&#8465;","&weierp;":"&#8472;","&real;":"&#8476;","&trade;":"&#8482;","&alefsym;":"&#8501;","&larr;":"&#8592;","&uarr;":"&#8593;","&rarr;":"&#8594;","&darr;":"&#8595;","&harr;":"&#8596;","&crarr;":"&#8629;","&lArr;":"&#8656;","&uArr;":"&#8657;","&rArr;":"&#8658;","&dArr;":"&#8659;","&hArr;":"&#8660;","&forall;":"&#8704;","&part;":"&#8706;","&exist;":"&#8707;","&empty;":"&#8709;","&nabla;":"&#8711;","&isin;":"&#8712;","&notin;":"&#8713;","&ni;":"&#8715;","&prod;":"&#8719;","&sum;":"&#8721;","&minus;":"&#8722;","&lowast;":"&#8727;","&radic;":"&#8730;","&prop;":"&#8733;","&infin;":"&#8734;","&ang;":"&#8736;","&and;":"&#8743;","&or;":"&#8744;","&cap;":"&#8745;","&cup;":"&#8746;","&int;":"&#8747;","&there4;":"&#8756;","&sim;":"&#8764;","&cong;":"&#8773;","&asymp;":"&#8776;","&ne;":"&#8800;","&equiv;":"&#8801;","&le;":"&#8804;","&ge;":"&#8805;","&sub;":"&#8834;","&sup;":"&#8835;","&nsub;":"&#8836;","&sube;":"&#8838;","&supe;":"&#8839;","&oplus;":"&#8853;","&otimes;":"&#8855;","&perp;":"&#8869;","&sdot;":"&#8901;","&lceil;":"&#8968;","&rceil;":"&#8969;","&lfloor;":"&#8970;","&rfloor;":"&#8971;","&lang;":"&#9001;","&rang;":"&#9002;","&loz;":"&#9674;","&spades;":"&#9824;","&clubs;":"&#9827;","&hearts;":"&#9829;","&diams;":"&#9830;"};this.block_tags=["a","abbr","acronym","address","area","b","base","bdo","big","blockquote","body","button","caption","cite","code","col","colgroup","dd","del","div","dfn","dl","dt","em","fieldset","form","head","h1","h2","h3","h4","h5","h6","html","i","ins","kbd","label","legend","li","map","noscript","object","ol","optgroup","option","p","param","pre","q","samp","script","select","small","span","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","ul","var","extends"];this.inline_tags=["br","hr","img","input"];return this};WYMeditor.XhtmlSaxListener.prototype.shouldCloseTagAutomatically=function(a,c,b){var b=b||false;if(a=="td"){if((b&&c=="tr")||(!b&&c=="td")){return true}}if(a=="option"){if((b&&c=="select")||(!b&&c=="option")){return true}}return false};WYMeditor.XhtmlSaxListener.prototype.beforeParsing=function(a){this.output="";return a};WYMeditor.XhtmlSaxListener.prototype.afterParsing=function(a){a=this.replaceNamedEntities(a);a=this.joinRepeatedEntities(a);a=this.removeEmptyTags(a);a=this.removeBrInPre(a);return a};WYMeditor.XhtmlSaxListener.prototype.replaceNamedEntities=function(b){for(var a in this.entities){b=b.replace(new RegExp(a,"g"),this.entities[a])}return b};WYMeditor.XhtmlSaxListener.prototype.joinRepeatedEntities=function(b){var a="em|strong|sub|sup|acronym|pre|del|address";return b.replace(new RegExp("</("+a+")><\\1>",""),"").replace(new RegExp("(s*<("+a+")>s*){2}(.*)(s*</\\2>s*){2}",""),"<$2>$3<$2>")};WYMeditor.XhtmlSaxListener.prototype.removeEmptyTags=function(a){return a.replace(new RegExp("<("+this.block_tags.join("|").replace(/\|td/,"").replace(/\|th/,"")+")>(<br />|&#160;|&nbsp;|\\s)*</\\1>","g"),"")};WYMeditor.XhtmlSaxListener.prototype.removeBrInPre=function(c){var b=c.match(new RegExp("<pre[^>]*>(.*?)</pre>","gmi"));if(b){for(var a=0;a<b.length;a++){c=c.replace(b[a],b[a].replace(new RegExp("<br />","g"),String.fromCharCode(13,10)))}}return c};WYMeditor.XhtmlSaxListener.prototype.getResult=function(){return this.output};WYMeditor.XhtmlSaxListener.prototype.getTagReplacements=function(){return{b:"strong",i:"em"}};WYMeditor.XhtmlSaxListener.prototype.addContent=function(a){this.output+=a};WYMeditor.XhtmlSaxListener.prototype.addComment=function(a){if(this.remove_comments){this.output+=a}};WYMeditor.XhtmlSaxListener.prototype.addScript=function(a){if(!this.remove_scripts){this.output+=a}};WYMeditor.XhtmlSaxListener.prototype.addCss=function(a){if(!this.remove_embeded_styles){this.output+=a}};WYMeditor.XhtmlSaxListener.prototype.openBlockTag=function(a,b){this.output+=this.helper.tag(a,this.validator.getValidTagAttributes(a,b),true)};WYMeditor.XhtmlSaxListener.prototype.inlineTag=function(a,b){this.output+=this.helper.tag(a,this.validator.getValidTagAttributes(a,b))};WYMeditor.XhtmlSaxListener.prototype.openUnknownTag=function(a,b){};WYMeditor.XhtmlSaxListener.prototype.closeBlockTag=function(a){this.output=this.output.replace(/<br \/>$/,"")+this._getClosingTagContent("before",a)+"</"+a+">"+this._getClosingTagContent("after",a)};WYMeditor.XhtmlSaxListener.prototype.closeUnknownTag=function(a){};WYMeditor.XhtmlSaxListener.prototype.closeUnopenedTag=function(a){this.output+="</"+a+">"};WYMeditor.XhtmlSaxListener.prototype.avoidStylingTagsAndAttributes=function(){this.avoided_tags=["div","span"];this.validator.skiped_attributes=["style"];this.validator.skiped_attribute_values=["MsoNormal","main1"];this._avoiding_tags_implicitly=true};WYMeditor.XhtmlSaxListener.prototype.allowStylingTagsAndAttributes=function(){this.avoided_tags=[];this.validator.skiped_attributes=[];this.validator.skiped_attribute_values=[];this._avoiding_tags_implicitly=false};WYMeditor.XhtmlSaxListener.prototype.isBlockTag=function(a){return !WYMeditor.Helper.contains(this.avoided_tags,a)&&WYMeditor.Helper.contains(this.block_tags,a)};WYMeditor.XhtmlSaxListener.prototype.isInlineTag=function(a){return !WYMeditor.Helper.contains(this.avoided_tags,a)&&WYMeditor.Helper.contains(this.inline_tags,a)};WYMeditor.XhtmlSaxListener.prototype.insertContentAfterClosingTag=function(a,b){this._insertContentWhenClosingTag("after",a,b)};WYMeditor.XhtmlSaxListener.prototype.insertContentBeforeClosingTag=function(a,b){this._insertContentWhenClosingTag("before",a,b)};WYMeditor.XhtmlSaxListener.prototype.fixNestingBeforeOpeningBlockTag=function(a,b){if(a!="li"&&(a=="ul"||a=="ol")&&this.last_tag&&!this.last_tag_opened&&this.last_tag=="li"){this.output=this.output.replace(/<\/li>$/,"");this.insertContentAfterClosingTag(a,"</li>")}};WYMeditor.XhtmlSaxListener.prototype._insertContentWhenClosingTag=function(b,a,c){if(!this["_insert_"+b+"_closing"]){this["_insert_"+b+"_closing"]=[]}if(!this["_insert_"+b+"_closing"][a]){this["_insert_"+b+"_closing"][a]=[]}this["_insert_"+b+"_closing"][a].push(c)};WYMeditor.XhtmlSaxListener.prototype._getClosingTagContent=function(b,a){if(this["_insert_"+b+"_closing"]&&this["_insert_"+b+"_closing"][a]&&this["_insert_"+b+"_closing"][a].length>0){return this["_insert_"+b+"_closing"][a].pop()}return""};WYMeditor.WymCssLexer=function(b,a){var a=(typeof a=="undefined"?true:a);jQuery.extend(this,new WYMeditor.Lexer(b,(a?"Ignore":"WymCss")));this.mapHandler("WymCss","Ignore");if(a==true){this.addEntryPattern("/\\\x2a[<\\s]*WYMeditor[>\\s]*\\\x2a/","Ignore","WymCss");this.addExitPattern("/\\\x2a[</\\s]*WYMeditor[>\\s]*\\\x2a/","WymCss")}this.addSpecialPattern("[\\sa-z1-6]*\\\x2e[a-z-_0-9]+","WymCss","WymCssStyleDeclaration");this.addEntryPattern("/\\\x2a","WymCss","WymCssComment");this.addExitPattern("\\\x2a/","WymCssComment");this.addEntryPattern("\x7b","WymCss","WymCssStyle");this.addExitPattern("\x7d","WymCssStyle");this.addEntryPattern("/\\\x2a","WymCssStyle","WymCssFeedbackStyle");this.addExitPattern("\\\x2a/","WymCssFeedbackStyle");return this};WYMeditor.WymCssParser=function(){this._in_style=false;this._has_title=false;this.only_wym_blocks=true;this.css_settings={classesItems:[],editorStyles:[],dialogStyles:[]};return this};WYMeditor.WymCssParser.prototype.parse=function(a,b){var b=(typeof b=="undefined"?this.only_wym_blocks:b);this._Lexer=new WYMeditor.WymCssLexer(this,b);this._Lexer.parse(a)};WYMeditor.WymCssParser.prototype.Ignore=function(a,b){return true};WYMeditor.WymCssParser.prototype.WymCssComment=function(b,a){if(b.match(/end[a-z0-9\s]*wym[a-z0-9\s]*/mi)){return false}if(a==WYMeditor.LEXER_UNMATCHED){if(!this._in_style){this._has_title=true;this._current_item={title:WYMeditor.Helper.trim(b)}}else{if(this._current_item[this._current_element]){if(!this._current_item[this._current_element].expressions){this._current_item[this._current_element].expressions=[b]}else{this._current_item[this._current_element].expressions.push(b)}}}this._in_style=true}return true};WYMeditor.WymCssParser.prototype.WymCssStyle=function(b,a){if(a==WYMeditor.LEXER_UNMATCHED){b=WYMeditor.Helper.trim(b);if(b!=""){this._current_item[this._current_element].style=b}}else{if(a==WYMeditor.LEXER_EXIT){this._in_style=false;this._has_title=false;this.addStyleSetting(this._current_item)}}return true};WYMeditor.WymCssParser.prototype.WymCssFeedbackStyle=function(b,a){if(a==WYMeditor.LEXER_UNMATCHED){this._current_item[this._current_element].feedback_style=b.replace(/^([\s\/\*]*)|([\s\/\*]*)$/gm,"")}return true};WYMeditor.WymCssParser.prototype.WymCssStyleDeclaration=function(b){b=b.replace(/^([\s\.]*)|([\s\.*]*)$/gm,"");var a="";if(b.indexOf(".")>0){var c=b.split(".");this._current_element=c[1];var a=c[0]}else{this._current_element=b}if(!this._has_title){this._current_item={title:(!a?"":a.toUpperCase()+": ")+this._current_element};this._has_title=true}if(!this._current_item[this._current_element]){this._current_item[this._current_element]={name:this._current_element}}if(a){if(!this._current_item[this._current_element].tags){this._current_item[this._current_element].tags=[a]}else{this._current_item[this._current_element].tags.push(a)}}return true};WYMeditor.WymCssParser.prototype.addStyleSetting=function(a){for(var b in a){var c=a[b];if(typeof c=="object"&&b!="title"){this.css_settings.classesItems.push({name:WYMeditor.Helper.trim(c.name),title:a.title,expr:WYMeditor.Helper.trim((c.expressions||c.tags).join(", "))});if(c.feedback_style){this.css_settings.editorStyles.push({name:"."+WYMeditor.Helper.trim(c.name),css:c.feedback_style})}if(c.style){this.css_settings.dialogStyles.push({name:"."+WYMeditor.Helper.trim(c.name),css:c.style})}}}};jQuery.fn.isPhantomNode=function(){if(this[0].nodeType==3){return !(/[^\t\n\r ]/.test(this[0].data))}return false};WYMeditor.isPhantomNode=function(a){if(a.nodeType==3){return !(/[^\t\n\r ]/.test(a.data))}return false};WYMeditor.isPhantomString=function(a){return !(/[^\t\n\r ]/.test(a))};jQuery.fn.parentsOrSelf=function(b){var a=this;if(a[0].nodeType==3){a=a.parents().slice(0,1)}if(a.filter(b).size()==1){return a}else{return a.parents(b).slice(0,1)}};WYMeditor.Helper={replaceAll:function(d,a,c){var b=new RegExp(a,"g");return(d.replace(b,c))},insertAt:function(b,a,c){return(b.substr(0,c)+a+b.substring(c))},trim:function(a){return a.replace(/^(\s*)|(\s*)$/gm,"")},contains:function(a,c){for(var b=0;b<a.length;b++){if(a[b]===c){return true}}return false},indexOf:function(a,d){var b=-1;for(var c=0;c<a.length;c++){if(a[c]==d){b=c;break}}return(b)},findByName:function(a,b){for(var c=0;c<a.length;c++){var d=a[c];if(d.name==b){return(d)}}return(null)}};WYMeditor.WymClassExplorer=function(a){this._wym=a;this._class="className";this._newLine="\r\n"};WYMeditor.WymClassExplorer.prototype.initIframe=function(iframe){this._iframe=iframe;this._doc=iframe.contentWindow.document;var styles=this._doc.styleSheets[0];var aCss=eval(this._options.editorStyles);this.addCssRules(this._doc,aCss);this._doc.title=this._wym._index;jQuery("html",this._doc).attr("dir",this._options.direction);jQuery(this._doc.body).html(this._wym._html);var wym=this;this._doc.body.onfocus=function(){wym._doc.designMode="on";wym._doc=iframe.contentWindow.document};this._doc.onbeforedeactivate=function(){wym.saveCaret()};this._doc.onkeyup=function(){wym.saveCaret();wym.keyup()};this._doc.onclick=function(){wym.saveCaret()};this._doc.body.onbeforepaste=function(){wym._iframe.contentWindow.event.returnValue=false};this._doc.body.onpaste=function(){wym._iframe.contentWindow.event.returnValue=false;wym.paste(window.clipboardData.getData("Text"))};if(this._initialized){if(jQuery.isFunction(this._options.preBind)){this._options.preBind(this)}this._wym.bindEvents();if(jQuery.isFunction(this._options.postInit)){this._options.postInit(this)}this.listen()}this._initialized=true;this._doc.designMode="on";try{this._doc=iframe.contentWindow.document}catch(e){}};WYMeditor.WymClassExplorer.prototype._exec=function(c,d){switch(c){case WYMeditor.INDENT:case WYMeditor.OUTDENT:var a=this.findUp(this.container(),WYMeditor.LI);if(a){var b=a.parentNode.parentNode;if(a.parentNode.childNodes.length>1||b.tagName.toLowerCase()==WYMeditor.OL||b.tagName.toLowerCase()==WYMeditor.UL){this._doc.execCommand(c)}}break;default:if(d){this._doc.execCommand(c,false,d)}else{this._doc.execCommand(c)}break}this.listen()};WYMeditor.WymClassExplorer.prototype.selected=function(){var a=this._iframe.contentWindow.document.caretPos;if(a!=null){if(a.parentElement!=undefined){return(a.parentElement())}}};WYMeditor.WymClassExplorer.prototype.saveCaret=function(){this._doc.caretPos=this._doc.selection.createRange()};WYMeditor.WymClassExplorer.prototype.addCssRule=function(a,b){a.addRule(b.name,b.css)};WYMeditor.WymClassExplorer.prototype.insert=function(b){var a=this._doc.selection.createRange();if(jQuery(a.parentElement()).parents(this._options.iframeBodySelector).is("*")){try{a.pasteHTML(b)}catch(c){}}else{this.paste(b)}};WYMeditor.WymClassExplorer.prototype.wrap=function(d,b){var a=this._doc.selection.createRange();if(jQuery(a.parentElement()).parents(this._options.iframeBodySelector).is("*")){try{a.pasteHTML(d+a.text+b)}catch(c){}}};WYMeditor.WymClassExplorer.prototype.unwrap=function(){var a=this._doc.selection.createRange();if(jQuery(a.parentElement()).parents(this._options.iframeBodySelector).is("*")){try{var c=a.text;this._exec("Cut");a.pasteHTML(c)}catch(b){}}};WYMeditor.WymClassExplorer.prototype.keyup=function(){this._selected_image=null};WYMeditor.WymClassExplorer.prototype.setFocusToNode=function(b){var a=this._doc.selection.createRange();a.moveToElementText(b);a.collapse(false);a.move("character",-1);a.select();b.focus()};WYMeditor.WymClassMozilla=function(a){this._wym=a;this._class="class";this._newLine="\n"};WYMeditor.WymClassMozilla.prototype.initIframe=function(iframe){this._iframe=iframe;this._doc=iframe.contentDocument;var styles=this._doc.styleSheets[0];var aCss=eval(this._options.editorStyles);this.addCssRules(this._doc,aCss);this._doc.title=this._wym._index;jQuery("html",this._doc).attr("dir",this._options.direction);this.html(this._wym._html);this.enableDesignMode();if(jQuery.isFunction(this._options.preBind)){this._options.preBind(this)}this._wym.bindEvents();jQuery(this._doc).bind("keydown",this.keydown);jQuery(this._doc).bind("keyup",this.keyup);jQuery(this._doc).bind("focus",this.enableDesignMode);if(jQuery.isFunction(this._options.postInit)){this._options.postInit(this)}this.listen()};WYMeditor.WymClassMozilla.prototype.html=function(a){if(typeof a==="string"){try{this._doc.designMode="off"}catch(b){}a=a.replace(/<em(\b[^>]*)>/gi,"<i$1>").replace(/<\/em>/gi,"</i>").replace(/<strong(\b[^>]*)>/gi,"<b$1>").replace(/<\/strong>/gi,"</b>");jQuery(this._doc.body).html(a);this.enableDesignMode()}else{return(jQuery(this._doc.body).html())}};WYMeditor.WymClassMozilla.prototype._exec=function(e,g){if(!this.selected()){return(false)}switch(e){case WYMeditor.INDENT:case WYMeditor.OUTDENT:var f=this.selected();var d=this._iframe.contentWindow.getSelection();var b=d.anchorNode;if(b.nodeName=="#text"){b=b.parentNode}f=this.findUp(f,WYMeditor.BLOCKS);b=this.findUp(b,WYMeditor.BLOCKS);if(f&&f==b&&f.tagName.toLowerCase()==WYMeditor.LI){var c=f.parentNode.parentNode;if(f.parentNode.childNodes.length>1||c.tagName.toLowerCase()==WYMeditor.OL||c.tagName.toLowerCase()==WYMeditor.UL){this._doc.execCommand(e,"",null)}}break;default:if(g){this._doc.execCommand(e,"",g)}else{this._doc.execCommand(e,"",null)}}var a=this.selected();if(a.tagName.toLowerCase()==WYMeditor.BODY){this._exec(WYMeditor.FORMAT_BLOCK,WYMeditor.P)}this.listen()};WYMeditor.WymClassMozilla.prototype.selected=function(){var b=this._iframe.contentWindow.getSelection();var a=b.focusNode;if(a){if(a.nodeName=="#text"){return(a.parentNode)}else{return(a)}}else{return(null)}};WYMeditor.WymClassMozilla.prototype.addCssRule=function(a,b){a.insertRule(b.name+" {"+b.css+"}",a.cssRules.length)};WYMeditor.WymClassMozilla.prototype.keydown=function(b){var c=WYMeditor.INSTANCES[this.title];var a=null;if(b.ctrlKey){if(b.keyCode==66){c._exec(WYMeditor.BOLD);return false}if(b.keyCode==73){c._exec(WYMeditor.ITALIC);return false}}else{if(b.keyCode==13){if(!b.shiftKey){a=c.selected();if(a&&a.tagName.toLowerCase()==WYMeditor.PRE){b.preventDefault();c.insert("<p></p>")}}}}};WYMeditor.WymClassMozilla.prototype.keyup=function(b){var d=WYMeditor.INSTANCES[this.title];d._selected_image=null;var a=null;if(b.keyCode==13&&!b.shiftKey){jQuery(d._doc.body).children(WYMeditor.BR).remove()}else{if(b.keyCode!=8&&b.keyCode!=17&&b.keyCode!=46&&b.keyCode!=224&&!b.metaKey&&!b.ctrlKey){a=d.selected();var c=a.tagName.toLowerCase();if(c=="strong"||c=="b"||c=="em"||c=="i"||c=="sub"||c=="sup"||c=="a"){c=a.parentNode.tagName.toLowerCase()}if(c==WYMeditor.BODY){d._exec(WYMeditor.FORMAT_BLOCK,WYMeditor.P)}}}};WYMeditor.WymClassMozilla.prototype.enableDesignMode=function(){if(this.designMode=="off"){try{this.designMode="on";this.execCommand("styleWithCSS","",false)}catch(a){}}};WYMeditor.WymClassMozilla.prototype.setFocusToNode=function(c){var a=document.createRange();a.selectNode(c);var b=this._iframe.contentWindow.getSelection();b.addRange(a);b.collapse(c,c.childNodes.length);this._iframe.contentWindow.focus()};WYMeditor.WymClassMozilla.prototype.openBlockTag=function(a,c){var c=this.validator.getValidTagAttributes(a,c);if(a=="span"&&c.style){var b=this.getTagForStyle(c.style);if(b){this._tag_stack.pop();var a=b;this._tag_stack.push(b);c.style=""}else{return}}this.output+=this.helper.tag(a,c,true)};WYMeditor.WymClassMozilla.prototype.getTagForStyle=function(a){if(/bold/.test(a)){return"strong"}if(/italic/.test(a)){return"em"}if(/sub/.test(a)){return"sub"}if(/sub/.test(a)){return"super"}return false};WYMeditor.WymClassOpera=function(a){this._wym=a;this._class="class";this._newLine="\r\n"};WYMeditor.WymClassOpera.prototype.initIframe=function(iframe){this._iframe=iframe;this._doc=iframe.contentWindow.document;var styles=this._doc.styleSheets[0];var aCss=eval(this._options.editorStyles);this.addCssRules(this._doc,aCss);this._doc.title=this._wym._index;jQuery("html",this._doc).attr("dir",this._options.direction);this._doc.designMode="on";this.html(this._wym._html);if(jQuery.isFunction(this._options.preBind)){this._options.preBind(this)}this._wym.bindEvents();jQuery(this._doc).bind("keydown",this.keydown);jQuery(this._doc).bind("keyup",this.keyup);if(jQuery.isFunction(this._options.postInit)){this._options.postInit(this)}this.listen()};WYMeditor.WymClassOpera.prototype._exec=function(a,b){if(b){this._doc.execCommand(a,false,b)}else{this._doc.execCommand(a)}this.listen()};WYMeditor.WymClassOpera.prototype.selected=function(){var b=this._iframe.contentWindow.getSelection();var a=b.focusNode;if(a){if(a.nodeName=="#text"){return(a.parentNode)}else{return(a)}}else{return(null)}};WYMeditor.WymClassOpera.prototype.addCssRule=function(a,b){a.insertRule(b.name+" {"+b.css+"}",a.cssRules.length)};WYMeditor.WymClassOpera.prototype.keydown=function(a){var c=WYMeditor.INSTANCES[this.title];var b=c._iframe.contentWindow.getSelection();startNode=b.getRangeAt(0).startContainer;if(!jQuery(startNode).parentsOrSelf(WYMeditor.MAIN_CONTAINERS.join(","))[0]&&!jQuery(startNode).parentsOrSelf("li")&&a.keyCode!=WYMeditor.KEY.ENTER&&a.keyCode!=WYMeditor.KEY.LEFT&&a.keyCode!=WYMeditor.KEY.UP&&a.keyCode!=WYMeditor.KEY.RIGHT&&a.keyCode!=WYMeditor.KEY.DOWN&&a.keyCode!=WYMeditor.KEY.BACKSPACE&&a.keyCode!=WYMeditor.KEY.DELETE){c._exec(WYMeditor.FORMAT_BLOCK,WYMeditor.P)}};WYMeditor.WymClassOpera.prototype.keyup=function(a){var b=WYMeditor.INSTANCES[this.title];b._selected_image=null};WYMeditor.WymClassOpera.prototype.setFocusToNode=function(a){};WYMeditor.WymClassSafari=function(a){this._wym=a;this._class="class";this._newLine="\n"};WYMeditor.WymClassSafari.prototype.initIframe=function(iframe){this._iframe=iframe;this._doc=iframe.contentDocument;var styles=this._doc.styleSheets[0];var aCss=eval(this._options.editorStyles);this.addCssRules(this._doc,aCss);this._doc.title=this._wym._index;jQuery("html",this._doc).attr("dir",this._options.direction);this._doc.designMode="on";this.html(this._wym._html);if(jQuery.isFunction(this._options.preBind)){this._options.preBind(this)}this._wym.bindEvents();jQuery(this._doc).bind("keydown",this.keydown);jQuery(this._doc).bind("keyup",this.keyup);if(jQuery.isFunction(this._options.postInit)){this._options.postInit(this)}this.listen()};WYMeditor.WymClassSafari.prototype._exec=function(e,g){if(!this.selected()){return(false)}switch(e){case WYMeditor.INDENT:case WYMeditor.OUTDENT:var f=this.selected();var d=this._iframe.contentWindow.getSelection();var b=d.anchorNode;if(b.nodeName=="#text"){b=b.parentNode}f=this.findUp(f,WYMeditor.BLOCKS);b=this.findUp(b,WYMeditor.BLOCKS);if(f&&f==b&&f.tagName.toLowerCase()==WYMeditor.LI){var c=f.parentNode.parentNode;if(f.parentNode.childNodes.length>1||c.tagName.toLowerCase()==WYMeditor.OL||c.tagName.toLowerCase()==WYMeditor.UL){this._doc.execCommand(e,"",null)}}break;case WYMeditor.INSERT_ORDEREDLIST:case WYMeditor.INSERT_UNORDEREDLIST:this._doc.execCommand(e,"",null);var f=this.selected();var a=this.findUp(f,WYMeditor.MAIN_CONTAINERS);if(a){jQuery(a).replaceWith(jQuery(a).html())}break;default:if(g){this._doc.execCommand(e,"",g)}else{this._doc.execCommand(e,"",null)}}var a=this.selected();if(a&&a.tagName.toLowerCase()==WYMeditor.BODY){this._exec(WYMeditor.FORMAT_BLOCK,WYMeditor.P)}this.listen()};WYMeditor.WymClassSafari.prototype.selected=function(){var b=this._iframe.contentWindow.getSelection();var a=b.focusNode;if(a){if(a.nodeName=="#text"){return(a.parentNode)}else{return(a)}}else{return(null)}};WYMeditor.WymClassSafari.prototype.addCssRule=function(a,b){a.insertRule(b.name+" {"+b.css+"}",a.cssRules.length)};WYMeditor.WymClassSafari.prototype.keydown=function(a){var b=WYMeditor.INSTANCES[this.title];if(a.ctrlKey){if(a.keyCode==66){b._exec(WYMeditor.BOLD);return false}if(a.keyCode==73){b._exec(WYMeditor.ITALIC);return false}}};WYMeditor.WymClassSafari.prototype.keyup=function(b){var d=WYMeditor.INSTANCES[this.title];d._selected_image=null;var a=null;if(b.keyCode==13&&!b.shiftKey){jQuery(d._doc.body).children(WYMeditor.BR).remove();a=d.selected();if(a&&a.tagName.toLowerCase()==WYMeditor.PRE){d._exec(WYMeditor.FORMAT_BLOCK,WYMeditor.P)}}if(b.keyCode==13&&b.shiftKey){d._exec("InsertLineBreak")}if(b.keyCode!=8&&b.keyCode!=17&&b.keyCode!=46&&b.keyCode!=224&&!b.metaKey&&!b.ctrlKey){a=d.selected();var c=a.tagName.toLowerCase();if(c=="strong"||c=="b"||c=="em"||c=="i"||c=="sub"||c=="sup"||c=="a"||c=="span"){c=a.parentNode.tagName.toLowerCase()}if(c==WYMeditor.BODY||c==WYMeditor.DIV){d._exec(WYMeditor.FORMAT_BLOCK,WYMeditor.P)}}};WYMeditor.WymClassSafari.prototype.setFocusToNode=function(c){var a=this._iframe.contentDocument.createRange();a.selectNode(c);var b=this._iframe.contentWindow.getSelection();b.addRange(a);b.collapse(c,c.childNodes.length);this._iframe.contentWindow.focus()};WYMeditor.WymClassSafari.prototype.openBlockTag=function(a,c){var c=this.validator.getValidTagAttributes(a,c);if(a=="span"&&c.style){var b=this.getTagForStyle(c.style);if(b){this._tag_stack.pop();var a=b;this._tag_stack.push(b);c.style="";if(typeof c["class"]=="string"){c["class"]=c["class"].replace(/apple-style-span/gi,"")}}else{return}}this.output+=this.helper.tag(a,c,true)};WYMeditor.WymClassSafari.prototype.getTagForStyle=function(a){if(/bold/.test(a)){return"strong"}if(/italic/.test(a)){return"em"}if(/sub/.test(a)){return"sub"}if(/super/.test(a)){return"sup"}return false};
\ No newline at end of file
diff --git a/wymeditor/jquery.wymeditor.pack.js b/wymeditor/jquery.wymeditor.pack.js
new file mode 100644 (file)
index 0000000..fcd6ba9
--- /dev/null
@@ -0,0 +1 @@
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('if(!f)l f={};(j(){if(!2m.4Q||!4Q.rF){l al=["rE","rD","rC","rB","9x","rA","3A","rz","ry","rx","rw","rv","59","ru","cM","rt"];f.4Q={};1g(l i=0;i<al.V;++i)f.4Q[al[i]]=j(){}}X f.4Q=2m.4Q})();C.54(f,{rs:"0.5-rr",2y:[],7U:[],5j:[],7Z:"F",3Q:"{rq}",a4:"rp",dF:"{ro}",9t:"{rn}",9s:"{rm}",eY:"dx/",7D:"3b.1d",do:"3b.js",eX:"3I/",a3:"{rl}",eW:"1L/3T/",9r:"{rk}",9u:"{rj}",a2:"{ri}",a1:"{rh}",9T:"{rg}",9V:"{rf}",80:"{rd}",9U:"{rc}",9Z:"{rb}",9P:"{ra}",9R:"{r9}",9Q:"{r8}",a0:"{r7}",9J:"{r6}",9M:"{r5}",9L:"{r4}",9K:"{r3}",81:"{r2}",9Y:"{r1}",9X:"{r0}",9q:"{qZ}",9p:"{qY}",dP:"3S",3v:"1i",ar:"N",P:"p",9G:"h1",9F:"h2",9E:"h3",9D:"h4",9C:"h5",9B:"h6",5s:"3Z",6d:"2J",A:"a",89:"br",dv:"5L",dg:"3l",6f:"4H",5n:"5J",6q:"2I",6r:"ol",6s:"li",dQ:"J",9d:"1Q",7B:"1V",63:"M",7A:"5c",67:"ac",7R:"ab",7Q:"a9",7P:"a7",8b:"eV",8a:"eU",9e:"eN",9c:"eM",dV:"eL",7K:"qX",dU:"eK",6u:"ak",6t:"aj",dT:"eJ",4s:"qW",7O:"ah",qV:"ai",av:"eQ",aw:"eR",6p:1f 6e("p","h1","h2","h3","h4","h5","h6","3Z","2J"),5v:1f 6e("6M","2J","N","dl","2V","1N","h1","h2","h3","h4","h5","h6","hr","8F","ol","p","3Z","3l","2I","dd","dt","li","8E","4H","8D","5J","8C","6Q"),3U:{ay:8,aD:13,qU:35,qT:36,aC:37,aB:38,aA:39,az:40,qS:1f 6e(37,38,39,40),ax:46},qR:{qQ:1,qP:2,qO:3},1h:j(5D,1R){c.3g=f.2y.1Y(c)-1;c.7T=5D;c.B=1R;c.4U=C(5D).1I();if(c.B.O)c.4U=c.B.O;c.B.4N=c.B.4N||c.dA();c.B.5k=c.B.5k||c.B.4N+f.eY+c.B.3b+\'/\';c.B.7N=c.B.7N||c.dz();c.B.9y=c.B.9y||c.B.4N+f.eX;c.B.82=c.B.82||c.B.4N+f.eW;c.B.7M=c.B.7M||c.dy();c.57()}});C.fn.5m=j(1R){1R=C.54({O:"",4N:I,5k:I,7N:I,82:I,7M:I,1F:I,3r:I,3b:"3T",dp:R,7E:R,3I:"en",4V:"93",1t:"<N J=\'eI\'>"+"<N J=\'qN\'>"+f.a1+"</N>"+"<N J=\'qM\'></N>"+"<N J=\'qL\'>"+f.a0+f.9Z+"</N>"+"<N J=\'qK\'>"+f.81+f.9Y+f.9X+"</N>"+"<N J=\'qJ\'>"+f.a2+"</N>"+"</N>",ed:"<a J=\'qI\' "+"1Q=\'92://ey.5m.ex/\'>f</a>",4l:"<N J=\'ag 5q\'>"+"<1L "+"1V=\'"+f.a3+"qH.O\' "+"4M=\'c.1u.qG.f.2y["+f.3Q+"].5x(c)\'"+"></1L>"+"</N>",3h:[],ec:"<N J=\'af 5q\'>"+"<h2>{qF}</h2>"+"<2I>"+f.9T+"</2I>"+"</N>",e6:"<li J=\'"+f.9U+"\'><a 1Q=\'#\' F=\'"+f.9V+"\' M=\'"+f.80+"\'>"+f.80+"</a></li>",e7:[{\'F\':\'eV\',\'M\':\'qE\',\'1d\':\'qD\'},{\'F\':\'eU\',\'M\':\'qC\',\'1d\':\'qB\'},{\'F\':\'eT\',\'M\':\'eT\',\'1d\':\'qA\'},{\'F\':\'eS\',\'M\':\'eS\',\'1d\':\'qz\'},{\'F\':\'eR\',\'M\':\'qy\',\'1d\':\'qx\'},{\'F\':\'eQ\',\'M\':\'qw\',\'1d\':\'qv\'},{\'F\':\'ak\',\'M\':\'ak\',\'1d\':\'qu\'},{\'F\':\'aj\',\'M\':\'aj\',\'1d\':\'qt\'},{\'F\':\'eP\',\'M\':\'eP\',\'1d\':\'qs\'},{\'F\':\'eO\',\'M\':\'eO\',\'1d\':\'qr\'},{\'F\':\'eN\',\'M\':\'ac\',\'1d\':\'qq\'},{\'F\':\'ai\',\'M\':\'ai\',\'1d\':\'qp\'},{\'F\':\'eM\',\'M\':\'ab\',\'1d\':\'qo\'},{\'F\':\'eL\',\'M\':\'a9\',\'1d\':\'qn\'},{\'F\':\'eK\',\'M\':\'a7\',\'1d\':\'qm\'},{\'F\':\'eJ\',\'M\':\'81\',\'1d\':\'ql\'},{\'F\':\'ah\',\'M\':\'ah\',\'1d\':\'qk\'}],eb:"<N J=\'ae 5q\'>"+"<h2>{qj}</h2>"+"<2I>"+f.9J+"</2I>"+"</N>",e3:"<li J=\'"+f.9K+"\'>"+"<a 1Q=\'#\' F=\'"+f.9M+"\'>"+f.9L+"</a></li>",e4:[{\'F\':\'P\',\'M\':\'qi\',\'1d\':\'qh\'},{\'F\':\'9G\',\'M\':\'qg\',\'1d\':\'qf\'},{\'F\':\'9F\',\'M\':\'qe\',\'1d\':\'qd\'},{\'F\':\'9E\',\'M\':\'qc\',\'1d\':\'qb\'},{\'F\':\'9D\',\'M\':\'qa\',\'1d\':\'q9\'},{\'F\':\'9C\',\'M\':\'q8\',\'1d\':\'q7\'},{\'F\':\'9B\',\'M\':\'q6\',\'1d\':\'q5\'},{\'F\':\'5s\',\'M\':\'q4\',\'1d\':\'q3\'},{\'F\':\'6d\',\'M\':\'q2\',\'1d\':\'q1\'},{\'F\':\'5n\',\'M\':\'q0\',\'1d\':\'pZ\'}],ea:"<N J=\'ad 5q\'>"+"<h2>{pY}</h2><2I>"+f.9P+"</2I></N>",e5:"<li><a 1Q=\'#\' F=\'"+f.9R+"\'>"+f.9Q+"</a></li>",3V:[],e8:"<N J=\'eG 5q\'>"+"<h2>{pX}</h2>"+"</N>",e9:"<N J=\'eH 5q\'>"+"<h2>{pW}</h2>"+"<4I J=\'eF\'></4I>"+"</N>",pV:".eI",pU:".af",pT:" 2I",pS:".ae",pR:".ad",7L:".eH",pQ:".ag 1L",6x:".ag",dO:".eG",e1:".af a",e0:".ae a",dZ:".ad a",9w:".eF",9f:".et",7C:".eq",62:".aa",7z:".ep",d8:".ef",di:".ei",dh:".eh",df:".ek",db:".ej",61:".6j",d4:".6i",d5:"",dn:".6k",dk:".eu",65:".es",dj:".el",d9:".eg",d6:".ee",dY:".pP",dX:"4d",7S:"eE=no,eD=no,eC=no,eB=no"+",4L=eA,7h=ez,3q=0,2l=0",dS:"eE=no,eD=no,eC=no,eB=no"+",pO=pN,4L=eA,7h=ez,3q=0,2l=0",1J:"<!pM O pL \'-//pK//ew pJ 1.0 pI//pH\'"+" \'92://ey.pG.ex/pF/ev/ew/ev-pE.pD\'>"+"<O 3A=\'"+f.9u+"\'><2U>"+"<3N 7w=\'3r\' 1e=\'Y/1d\' 90=\'7f\'"+" 1Q=\'"+f.9t+"\' />"+"<M>"+f.9q+"</M>"+"<2h 1e=\'Y/91\'"+" 1V=\'"+f.9r+"\'></2h>"+"<2h 1e=\'Y/91\'"+" 1V=\'"+f.9s+"\'></2h>"+"</2U>"+f.9p+"</O>",dL:"<1i J=\'6h eu\'"+" 4M=\'f.5i("+f.3Q+")\'"+">"+"<1N>"+"<2V>"+"<1A 1e=\'5X\' J=\'6k\' Q=\'"+f.67+"\' />"+"<3m>{ac}</3m>"+"<N J=\'1P\'>"+"<1o>{er}</1o>"+"<1A 1e=\'Y\' J=\'et\' Q=\'\' 2G=\'40\' />"+"</N>"+"<N J=\'1P\'>"+"<1o>{eo}</1o>"+"<1A 1e=\'Y\' J=\'aa\' Q=\'\' 2G=\'40\' />"+"</N>"+"<N J=\'1P 1P-a8\'>"+"<1A J=\'6j\' 1e=\'2v\'"+" Q=\'{85}\' />"+"<1A J=\'6i\' 1e=\'2v\'"+"Q=\'{84}\' />"+"</N>"+"</2V>"+"</1N>"+"</1i>",dK:"<1i J=\'6h es\'"+" 4M=\'f.5i("+f.3Q+")\'"+">"+"<1N>"+"<2V>"+"<1A 1e=\'5X\' J=\'6k\' Q=\'"+f.7R+"\' />"+"<3m>{ab}</3m>"+"<N J=\'1P\'>"+"<1o>{er}</1o>"+"<1A 1e=\'Y\' J=\'eq\' Q=\'\' 2G=\'40\' />"+"</N>"+"<N J=\'1P\'>"+"<1o>{pC}</1o>"+"<1A 1e=\'Y\' J=\'ep\' Q=\'\' 2G=\'40\' />"+"</N>"+"<N J=\'1P\'>"+"<1o>{eo}</1o>"+"<1A 1e=\'Y\' J=\'aa\' Q=\'\' 2G=\'40\' />"+"</N>"+"<N J=\'1P 1P-a8\'>"+"<1A J=\'6j\' 1e=\'2v\'"+" Q=\'{85}\' />"+"<1A J=\'6i\' 1e=\'2v\'"+"Q=\'{84}\' />"+"</N>"+"</2V>"+"</1N>"+"</1i>",dJ:"<1i J=\'6h el\'"+" 4M=\'f.5i("+f.3Q+")\'"+">"+"<1N>"+"<2V>"+"<1A 1e=\'5X\' J=\'6k\' Q=\'"+f.7Q+"\' />"+"<3m>{a9}</3m>"+"<N J=\'1P\'>"+"<1o>{pB}</1o>"+"<1A 1e=\'Y\' J=\'ek\' Q=\'\' 2G=\'40\' />"+"</N>"+"<N J=\'1P\'>"+"<1o>{pA}</1o>"+"<1A 1e=\'Y\' J=\'ej\' Q=\'\' 2G=\'40\' />"+"</N>"+"<N J=\'1P\'>"+"<1o>{pz}</1o>"+"<1A 1e=\'Y\' J=\'ei\' Q=\'3\' 2G=\'3\' />"+"</N>"+"<N J=\'1P\'>"+"<1o>{py}</1o>"+"<1A 1e=\'Y\' J=\'eh\' Q=\'2\' 2G=\'3\' />"+"</N>"+"<N J=\'1P 1P-a8\'>"+"<1A J=\'6j\' 1e=\'2v\'"+" Q=\'{85}\' />"+"<1A J=\'6i\' 1e=\'2v\'"+"Q=\'{84}\' />"+"</N>"+"</2V>"+"</1N>"+"</1i>",dI:"<1i J=\'6h eg\'"+" 4M=\'f.5i("+f.3Q+")\'"+">"+"<1N>"+"<1A 1e=\'5X\' J=\'6k\' Q=\'"+f.7P+"\' />"+"<2V>"+"<3m>{a7}</3m>"+"<N J=\'1P\'>"+"<4I J=\'ef\' 7d=\'10\' 7e=\'50\'></4I>"+"</N>"+"<N J=\'1P\'>"+"<1A J=\'6j\' 1e=\'2v\'"+" Q=\'{85}\' />"+"<1A J=\'6i\' 1e=\'2v\'"+"Q=\'{84}\' />"+"</N>"+"</2V>"+"</1N>"+"</1i>",dH:"<1i J=\'6h ee\'"+" 4M=\'f.5i("+f.3Q+")\'"+"></1i>",4C:[],6b:"{",6a:"}",a6:1c,3z:1c,3y:1c,9g:1c,98:1c},1R);o c.ds(j(){1f f.1h(C(c),1R)})};C.54({px:j(i){o(f.2y[i])}});f.1h.u.57=j(){if(C.83.pw){l 4m=1f f.2D(c)}X if(C.83.pv){l 4m=1f f.2t(c)}X if(C.83.pu){l 4m=1f f.3B(c)}X if(C.83.pt){l 4m=1f f.2N(c)}if(4m){if(C.2B(c.B.a6))c.B.a6(c);l a5=1f f.1l();C.54(a5,4m);c.3Y=1f f.1s(a5);if(c.B.1F||c.B.3r){c.dw()}c.4R=1f f.2X();1g(l 6U in 4m){c[6U]=4m[6U]}c.2j=C(c.7T).e2().5H(c.B.1t).5W().dq(\'ps\'+c.3g);if(C.2B(C.fn.4B)){C.4B(c.2j.5Y(0),f.a4,c.3g);C.4B(c.7T.5Y(0),f.a4,c.3g)}l h=f.1M;l 4l=c.B.4l;4l=h.1k(4l,f.3Q,c.3g);4l=h.1k(4l,f.a3,c.B.82);l 1t=C(c.2j).O();1t=h.1k(1t,f.a2,c.B.ed);1t=h.1k(1t,f.a1,c.B.ec);1t=h.1k(1t,f.a0,c.B.eb);1t=h.1k(1t,f.9Z,c.B.ea);1t=h.1k(1t,f.81,c.B.e9);1t=h.1k(1t,f.9Y,4l);1t=h.1k(1t,f.9X,c.B.e8);l 9W=2C(c.B.e7);l 9S="";1g(l i=0;i<9W.V;i++){l 5p=9W[i];if(5p.F&&5p.M)l 4k=c.B.e6;l 4k=h.1k(4k,f.9V,5p.F);4k=h.1k(4k,f.80,c.B.6b+5p.M+c.B.6a);4k=h.1k(4k,f.9U,5p.1d);9S+=4k}1t=h.1k(1t,f.9T,9S);l 6g=2C(c.B.3V);l 9O="";1g(l i=0;i<6g.V;i++){l 4i=6g[i];if(4i.F&&4i.M)l 4h=c.B.e5;4h=h.1k(4h,f.9R,4i.F);4h=h.1k(4h,f.9Q,4i.M);9O+=4h}1t=h.1k(1t,f.9P,9O);l 9N=2C(c.B.e4);l 9I="";1g(l i=0;i<9N.V;i++){l 5o=9N[i];if(5o.F&&5o.M)l 4j=c.B.e3;4j=h.1k(4j,f.9M,5o.F);4j=h.1k(4j,f.9L,c.B.6b+5o.M+c.B.6a);4j=h.1k(4j,f.9K,5o.1d);9I+=4j}1t=h.1k(1t,f.9J,9I);1t=c.9o(1t);C(c.2j).O(1t);C(c.2j).3P(c.B.7L).e2();c.7E()}};f.1h.u.5w=j(){l E=c;C(c.2j).3P(c.B.e1).4d(j(){E.1v.1u.4p();E.dW(C(c).1x(f.7Z));o(I)});C(c.2j).3P(c.B.e0).4d(j(){E.L(C(c).1x(f.7Z));o(I)});C(c.2j).3P(c.B.9w).2z(j(){C(E.H.1i).O(C(c).1I())}).4p(j(){C(c).6c(\'9v\')}).pr(j(){C(c).6c(\'9v\')});C(c.2j).3P(c.B.dZ).4d(j(){l 6g=2C(E.B.3V);l 9H=C(c).1x(f.7Z);l 4i=f.1M.aN(6g,9H);if(4i){l 4A=4i.aV;E.6c(9H,4A)}E.1v.1u.4p();o(I)});C(c.B.dY).3f(c.B.dX,j(){E.69()})};f.1h.u.pq=j(){o(c.H!=1c)};f.1h.u.cv=j(){o(c.2j)};f.1h.u.O=j(O){if(1q O===\'3S\')C(c.H.1i).O(O);X o(C(c.H.1i).O())};f.1h.u.1r=j(){o c.3Y.3W(c.O())};f.1h.u.dW=j(1G){3e(1G){1j f.9e:l L=c.L();if(L||c.2k)c.4O(f.67);1n;1j f.9c:c.4O(f.7R);1n;1j f.dV:c.4O(f.7Q);1n;1j f.dU:c.4O(f.7P);1n;1j f.dT:c.69();c.dD();if(!C(c.2j).3P(c.B.7L).is(\':pp\'))c.3d();1n;1j f.7O:c.4O(f.7O,c.B.dS);1n;3T:c.1E(1G);1n}};f.1h.u.L=j(3s){if(3s){l L=1c;if(3s.1p()==f.5n){L=c.L();3e(L.1w.1p()){1j f.6f:1j f.5n:1n;3T:l 7Y=1f 6e(f.6f,f.5n);L=c.2O(c.L(),7Y);1n}if(L!=1c){3s=(L.1w.1p()==f.6f)?f.5n:f.6f;c.9z(L,3s);c.69()}}X{l 7Y=1f 6e(f.P,f.9G,f.9F,f.9E,f.9D,f.9C,f.9B,f.5s,f.6d);L=c.2O(c.L(),7Y);if(L){l 3R=1c;if(3s.1p()==f.6d){l 2J=c.2O(c.L(),f.6d);if(2J==1c){3R=c.H.60(3s);L.1B.dR(3R,L);3R.du(L);c.4r(3R.po)}X{l 7X=2J.4T;l 9A=7X.V;l 7W=1c;if(9A>0)7W=7X.4x(0);1g(l x=0;x<9A;x++){2J.1B.dR(7X.4x(0),2J)}2J.1B.pn(2J);if(7W)c.4r(7W)}}X c.9z(L,3s);c.69()}}}X o(c.1b())};f.1h.u.6c=j(4h,4A){l L=(c.2k?c.2k:C(c.1b()));L=C(L).4Y(4A);C(L).6c(4h);if(!C(L).1x(f.dQ))C(L).pm(c.5y)};f.1h.u.2O=j(W,52){if(W){l 4g=W.1w.1p();if(1q(52)==f.dP){77(4g!=52&&4g!=f.3v){W=W.1B;4g=W.1w.1p()}}X{l 7V=I;77(!7V&&4g!=f.3v){1g(l i=0;i<52.V;i++){if(4g==52[i]){7V=R;1n}}if(!7V){W=W.1B;4g=W.1w.1p()}}}if(4g!=f.3v)o(W);X o(1c)}X o(1c)};f.1h.u.9z=j(W,3s){l 3R=c.H.60(3s);l O=C(W).O();W.1B.pl(3R,W);C(3R).O(O);c.4r(3R)};f.1h.u.9o=j(4P){if(!f.7U[c.B.3I]){4w{2C(C.9k({9j:c.B.9y+c.B.3I+\'.js\',9i:I}).9h)}4v(e){f.4Q.9x("f: 9x 77 pk cZ cK.");o 4P}}1g(l 1U in f.7U[c.B.3I]){4P=f.1M.1k(4P,c.B.6b+1U+c.B.6a,f.7U[c.B.3I][1U])};o(4P)};f.1h.u.dE=j(4P){o(c.B.6b+4P+c.B.6a)};f.1h.u.2o=j(dN){C(c.2j).3P(c.B.dO).O(dN)};f.1h.u.69=j(){l O=c.1r();C(c.7T).1I(O);C(c.2j).3P(c.B.9w).bA(\'.9v\').1I(O);};f.1h.u.4O=j(68,7S,dG){l dM=7S||c.1W.B.7S;l 9n=2m.5Z(\'\',\'4O\',dM);if(9n){l 4f="";3e(68){1j(f.67):4f=c.B.dL;1n;1j(f.7R):4f=c.B.dK;1n;1j(f.7Q):4f=c.B.dJ;1n;1j(f.7P):4f=c.B.dI;1n;1j(f.7O):4f=c.B.dH;1n;3T:4f=dG}l h=f.1M;l 1J=c.B.1J;1J=h.1k(1J,f.dF,c.B.4N);1J=h.1k(1J,f.9u,c.B.4V);1J=h.1k(1J,f.9t,c.B.5k+f.7D);1J=h.1k(1J,f.9s,c.B.7N);1J=h.1k(1J,f.9r,c.B.7M);1J=h.1k(1J,f.9q,c.dE(68));1J=h.1k(1J,f.9p,4f);1J=h.1k(1J,f.3Q,c.3g);1J=c.9o(1J);l 4e=9n.3i;4e.pj(1J);4e.5f()}};f.1h.u.dD=j(){C(c.2j).3P(c.B.7L).ph()};f.1h.u.dm=j(){l dC=1f pg();o("E-"+dC.pf())};f.1h.u.5C=j(dB){l 3O;l L=c.1b();l aP=dB.8n(c.4u+c.4u);l 4z=1f 2P(c.4u,"g");if(L&&L.1w.1p()!=f.3v){1g(x=aP.V-1;x>=0;x--){3O=aP[x];3O=3O.S(4z,"<br />");C(L).5H("<p>"+3O+"</p>")}}X{1g(x=0;x<aP.V;x++){3O=aP[x];3O=3O.S(4z,"<br />");C(c.H.1i).da("<p>"+3O+"</p>")}}};f.1h.u.8f=j(O){if(c.1v.1u.2q().1z!=1c){c.1E(f.7K,O)}X{c.5C(O)}};f.1h.u.aG=j(2l,2E){if(c.1v.1u.2q().1z!=1c){c.1E(f.7K,2l+c.1v.1u.2q().94()+2E)}};f.1h.u.aF=j(){if(c.1v.1u.2q().1z!=1c){c.1E(f.7K,c.1v.1u.2q().94())}};f.1h.u.4W=j(4e,2s){l 1F=4e.4X[0];if(1F){1g(l i=0;i<2s.V;i++){l 1Z=2s[i];if(1Z.F&&1Z.1d)c.5t(1F,1Z)}}};f.1h.u.dA=j(){o C(C.7F(C(\'2h\'),j(s){o(s.1V&&s.1V.K(/7J\\.5m(\\.7I|\\.7H|\\.7G)?\\.js(\\?.*)?$/))})).1x(\'1V\').S(/7J\\.5m(\\.7I|\\.7H|\\.7G)?\\.js(\\?.*)?$/,\'\')};f.1h.u.dz=j(){o C(C.7F(C(\'2h\'),j(s){o(s.1V&&s.1V.K(/7J\\.5m(\\.7I|\\.7H|\\.7G)?\\.js(\\?.*)?$/))})).1x(\'1V\')};f.1h.u.dy=j(){o C(C.7F(C(\'2h\'),j(s){o(s.1V&&s.1V.K(/7J(-(.*)){0,1}(\\.7I|\\.7H|\\.7G)?\\.js(\\?.*)?$/))})).1x(\'1V\')};f.1h.u.pe=j(){o C(C.7F(C(\'3N\'),j(s){o(s.1Q&&s.1Q.K(/5m\\/dx\\/(.*)7f\\.1d(\\?.*)?$/))})).1x(\'1Q\')};f.1h.u.dw=j(){l 5l=1f f.3E();if(c.B.3r){5l.3W(C.9k({9j:c.B.3r,9i:I}).9h)}X{5l.3W(c.B.1F,I)}if(c.B.3V.V==0){c.B.3V=5l.4D.3V}if(c.B.3h.V==0){c.B.3h=5l.4D.3h}if(c.B.4C.V==0){c.B.4C=5l.4D.4C}};f.1h.u.3d=j(){C(c.H.1i).3f("5g",c.5g);l 9m=c.H.1i.pd("5L");1g(l i=0;i<9m.V;i++){C(9m[i]).3f("5g",c.5g)}};f.1h.u.5g=j(Z){l E=f.2y[c.pc.M];E.2k=(c.1w.1p()==f.dv)?c:1c;Z.pb()};f.dr=j(1Q){l 3N=3i.60(\'3N\');3N.7w=\'3r\';3N.1Q=1Q;l 2U=C(\'2U\').5Y(0);2U.du(3N)};f.1h.u.7E=j(){if(c.B.7E&&!f.5j[c.B.3b]){l 9l=I;l 4z=1f 2P(c.B.3b+\'\\/\'+f.7D+\'$\');C(\'3N\').ds(j(){if(c.1Q.K(4z))9l=R});if(!9l)f.dr(c.B.5k+f.7D)}C(c.2j).dq("pa"+c.B.3b);if(c.B.dp&&!f.5j[c.B.3b]){2C(C.9k({9j:c.B.5k+f.do,9i:I}).9h)}if(f.5j[c.B.3b]&&f.5j[c.B.3b].57)f.5j[c.B.3b].57(c)};f.5i=j(5b){l E=2m.p9.f.2y[5b];l 4e=2m.3i;l 1b=E.1b();l 68=C(E.B.dn).1I();l 64=E.dm();3e(68){1j f.67:if(1b&&1b.1w&&1b.1w.1p!=f.A)1b=C(1b).4Y(f.A);if(!1b&&E.2k)1b=C(E.2k).4Y(f.A);1n}if(C.2B(E.B.9g))E.B.9g(E,2m);l 1F=4e.4X[0];l 2s=2C(E.B.4C);E.4W(4e,2s);if(1b){C(E.B.9f).1I(C(1b).1x(f.9d));C(E.B.7C).1I(C(1b).1x(f.7B));C(E.B.62).1I(C(1b).1x(f.63));C(E.B.7z).1I(C(1b).1x(f.7A))}if(E.2k){C(E.B.65+" "+E.B.7C).1I(C(E.2k).1x(f.7B));C(E.B.65+" "+E.B.62).1I(C(E.2k).1x(f.63));C(E.B.65+" "+E.B.7z).1I(C(E.2k).1x(f.7A))}C(E.B.dk+" "+E.B.61).4d(j(){l 5h=C(E.B.9f).1I();if(5h.V>0){E.1E(f.9e,64);C("a[1Q="+64+"]",E.H.1i).1x(f.9d,5h).1x(f.63,C(E.B.62).1I())}2m.5f()});C(E.B.65+" "+E.B.61).4d(j(){l 5h=C(E.B.7C).1I();if(5h.V>0){E.1E(f.9c,64);C("5L[1V$="+64+"]",E.H.1i).1x(f.7B,5h).1x(f.63,C(E.B.62).1I()).1x(f.7A,C(E.B.7z).1I())}2m.5f()});C(E.B.dj+" "+E.B.61).4d(j(){l 9b=C(E.B.di).1I();l 9a=C(E.B.dh).1I();if(9b>0&&9a>0){l 3l=E.H.60(f.dg);l 99=1c;l p8=1c;l dc=C(E.B.df).1I();l de=3l.p7();de.95=dc;1g(x=0;x<9b;x++){99=3l.p6(x);1g(y=0;y<9a;y++){99.p5(y)}}C(3l).1x(\'ct\',C(E.B.db).1I());l W=C(E.2O(E.L(),f.6p)).5Y(0);if(!W||!W.1B)C(E.H.1i).da(3l);X C(W).5H(3l)}2m.5f()});C(E.B.d9+" "+E.B.61).4d(j(){l d7=C(E.B.d8).1I();E.5C(d7);2m.5f()});C(E.B.d6+" "+E.B.d5).O(E.1r());C(E.B.d4).5g(j(){2m.5f()});if(C.2B(E.B.98))E.B.98(E,2m)};f.2X=j(){c.7y=3i.60(\'N\');o c};f.2X.u.D=j(F,1R,5Z){1R=1R||I;5Z=5Z||I;o\'<\'+F+(1R?c.97(1R):\'\')+(5Z?\'>\':\' />\')};f.2X.u.p4=j(F,1T,1R){1R=1R||I;o\'<\'+F+(1R?c.97(1R):\'\')+\'>\'+1T+\'</\'+F+\'>\'};f.2X.u.p3=j(1T){o\'<![p2[\'+1T+\']]>\'};f.2X.u.d1=j(3M){o c.d3(c.d0(3M))};f.2X.u.d3=j(d2){o d2.S(/&p1;([a-z]+|(#\\d+));/ig,"&$1;")};f.2X.u.97=j(1R){l 3M=c;3M.96=\'\';1g(l 1U in 1R){l p0=\'\';l Q=1R[1U];if(1q Q!=\'j\'&&Q.V>0){if(cm(1U)==1U&&1q Q==\'4E\'){1U=Q.oZ();Q=Q.4S()}if(1U!=\'\'&&Q!=\'\'){3M.96+=\' \'+1U+\'="\'+3M.d1(Q)+\'"\'}}}o 3M.96};f.2X.u.d0=j(3S,7x){c.7y.95=3S;c.7y.oY=3S;l 1O=c.7y.95;if(1q 7x==\'2d\'){if(7x!=I)1O=1O.S(\'"\',\'&oX;\');if(7x==R)1O=1O.S(\'"\',\'&#oW;\')}o 1O};f.2X.u.oV=j(5d){l 1O=[];l 2g=5d.8n(/((=\\s*")(")("))|((=\\s*\\\')(\\\')(\\\'))|((=\\s*[^>\\s]*))/g);if(2g.94()!=5d){1g(l k in 2g){l v=2g[k];if(1q v!=\'j\'&&v.V!=0){l re=1f 2P(\'(\\\\w+)\\\\s*\'+v);if(K=5d.K(re)){l Q=v.S(/^[\\s=]+/,"");l 5e=Q.oU(0);5e=5e==\'"\'?\'"\':(5e=="\'"?"\'":\'\');if(5e!=\'\'){Q=5e==\'"\'?Q.S(/^"|"+$/g,\'\'):Q.S(/^\'|\'+$/g,\'\')}5d=5d.S(K[0],\'\');1O.1Y([K[1],Q])}}}}o 1O};f.bB={"8W":{"oT":{"5a":["56","2U","O","7i","1S","2h","1m","M"],"G":["J","id","1m","M","cY","cX"]},"cZ":{"5a":["56","br","hr","1L","1S","2h"],"G":{"3A":["93","cN"],"0":"3I","1":"3M:3I"}},"cW":{"G":{"cY":/^(\\w){1}$/,"cX":/^(\\d)+$/}}},"8X":{"2m":{"7b":["1i"],"G":["4M","oS"]},"1N":{"7b":["1N","1A","4I","4Z","a","1o","2v"],"G":["oR","oQ","oP","oO","oN","aM"]},"cW":{"5a":["56","6S","br","cw","oM","2U","O","1L","7i","1S","2h","1m","M"],"G":["oL","oK","aL"]},"oJ":{"5a":["56","6S","br","2U","O","7i","1S","2h","1m","M"],"G":["aK","oI","oH","oG","oF","oE","oD"]}},"1K":{"a":{"G":{"0":"7g","1":"cU","2":"1Q","3":"cG","4":"F","7w":/^(7v|cV|3r|2L|5W|7n|7r|5b|7p|7q|7s|7m|7l|7u|7o|7t||7k|7j)+$/,"cF":/^(7v|cV|3r|2L|5W|7n|7r|5b|7p|7q|7s|7m|7l|7u|7o|7t||7k|7j)+$/,"cT":/^(cS|cR|8G|cQ|cP|cO)$/,"5":"1e"}},"0":"6T","1":"8z","2":"6M","bx":{"G":{"0":"5c","1":"cU","2":"1Q","oC":/^(R|I)$/,"cT":/^(cS|cR|8G|cQ|cP|cO)$/},"2c":["5c"]},"3":"b","56":{"G":["1Q"],"2c":["1Q"]},"6S":{"G":{"3A":/^(93|cN)$/},"2c":["3A"]},"4":"bw","2J":{"G":["55"]},"5":"1i","6":"br","2v":{"G":{"3a":/^(3a)$/,"1e":/^(2v|cJ|cI)$/,"0":"Q"},"3L":"1N"},"7":"bv","8":"55","9":"bu","6R":{"G":{"4c":/^(2E|2l|4b|4a)$/,"0":"2Z","1":"49","3t":/^(\\d)+$/,"48":/^(3q|47|45|44)$/,"2":"4L"},"3L":"5M"},"5M":{"G":{"4c":/^(2E|2l|4b|4a)$/,"0":"2Z","1":"49","3t":/^(\\d)+$/,"48":/^(3q|47|45|44)$/,"2":"4L"}},"10":"dd","8y":{"G":{"0":"55","cH":/^([0-9]){8}/}},"11":"N","12":"bt","13":"dl","14":"dt","15":"em","2V":{"3L":"1N"},"1N":{"G":{"0":"5P","1":"5S","2":"5S-7g","3":"oB","oA":/^(5Y|oz)$/},"2c":["5P"]},"2U":{"G":["cM"]},"16":"h1","17":"h2","18":"h3","19":"h4","20":"h5","21":"h6","22":"hr","O":{"G":["oy"]},"23":"i","5L":{"G":["5c","1V","7h","ox","ow","cD","4L"],"2c":["5c","1V"]},"1A":{"G":{"0":"5S","1":"5c","cL":/^(cL)$/,"3a":/^(3a)$/,"ov":/^(\\d)+$/,"2":"F","8Y":/^(8Y)$/,"2G":/^(\\d)+$/,"3":"1V","1e":/^(2v|ou|cK|5X|bz|ot|os|cJ|cI|Y)$/,"4":"Q"},"3L":"1N"},"bs":{"G":{"0":"55","cH":/^([0-9]){8}/}},"24":"bq","1o":{"G":["1g"],"3L":"1N"},"25":"3m","26":"li","3N":{"G":{"0":"7g","1":"1Q","2":"cG","90":/^(8Z|cx|cy|cz|7f|oq|,|;|)+$/i,"7w":/^(7v|7u|7t|7s|7r|7q|7p|7o|cE|5b|5W|7n|7m|2L|3r|7l||7k|7j)+$/i,"cF":/^(7v|7u|7t|7s|7r|7q|7p|7o|cE|5b|5W|7n|7m|2L|3r|7l||7k|7j)+$/i,"3":"1e"},"3L":"2U"},"bp":{"G":["id","F"],"2c":["id"]},"7i":{"G":{"0":"1T","92-by":/^(1T\\-1e|op|oo|om\\-ok)$/i,"1":"F","2":"oj"},"2c":["1T"]},"27":"8F","4E":{"G":["oi","oh","og","of","4B","oe","7h","F","od","1e","cD","4L"]},"28":"ol","bo":{"G":{"0":"1o","3a":/^(3a)$/},"2c":["1o"]},"6P":{"G":{"0":"1o","3a":/^(3a)$/,"1b":/^(1b)$/,"1":"Q"},"3L":"4Z"},"29":"p","1S":{"G":{"0":"1e","cC":/^(4B|oc|4E)$/,"1":"cC","2":"Q"},"2c":["F"]},"30":"3Z","q":{"G":["55"]},"31":"bn","2h":{"G":{"1e":/^(Y\\/ob|Y\\/91|Y\\/oa|Y\\/o9|Y\\/o8|Y\\/3M)$/,"0":"7g","cB":/^(cB)$/,"1":"1V"},"2c":["1e"]},"4Z":{"G":{"3a":/^(3a)$/,"cA":/^(cA)$/,"0":"F","1":"2G"},"3L":"1N"},"32":"bm","33":"3t","34":"3c","1m":{"G":{"0":"1e","90":/^(7f|o7|o6|cz|o5|cy|cx|o4|8Z)$/},"2c":["1e"]},"35":"2M","36":"4n","3l":{"G":{"0":"cu","1":"o3","2":"o2","cw":/^(o1|o0|nZ|nY|nX|nW|nV|cv|cu)$/,"nU":/^(nT|nS|7d|7e|8Z)$/,"3":"ct","4":"4L"}},"8E":{"G":{"4c":/^(2E|2l|4b|4a)$/,"0":"2Z","1":"49","48":/^(3q|47|45|44)$/}},"4H":{"G":{"0":"6T","4c":/^(2l|2E|4b|4a|2Z)$/,"1":"cs","2":"2Z","3":"49","cr":/^(\\d)+$/,"4":"cq","cp":/^(\\d)+$/,"1H":/^(6R|5M|1P|co)$/,"48":/^(3q|47|45|44)$/}},"4I":{"G":["7e","7d","3a","F","8Y"],"2c":["7e","7d"],"3L":"1N"},"8D":{"G":{"4c":/^(2E|2l|4b|4a)$/,"0":"2Z","1":"49","48":/^(3q|47|45)$/,"2":"44"}},"5J":{"G":{"0":"6T","4c":/^(2l|2E|4b|4a|2Z)$/,"1":"cs","2":"2Z","3":"49","cr":/^(\\d)+$/,"4":"cq","cp":/^(\\d)+$/,"1H":/^(6R|5M|1P|co)$/,"48":/^(3q|47|45|44)$/}},"8C":{"G":{"4c":/^(2E|2l|4b|4a)$/,"0":"2Z","1":"49","48":/^(3q|47|45|44)$/}},"37":"M","6Q":{"G":{"4c":/^(2E|2l|4b|4a|2Z)$/,"0":"2Z","1":"49","48":/^(3q|47|45|44)$/}},"38":"bl","39":"2I","40":"l"},6H:[],6G:[],5r:j(D,G){l 7c={};l cn=c.ch(D);1g(l 2i in G){l Q=G[2i];l h=f.1M;if(!h.2F(c.6H,2i)&&!h.2F(c.6G,Q)){if(1q Q!=\'j\'&&h.2F(cn,2i)){if(c.cj(D,2i)){if(c.ci(D,2i,Q)){7c[2i]=Q}}X{7c[2i]=Q}}}}o 7c},cg:j(D){l 1O=[];if(c.1K[D]&&c.1K[D][\'G\']){1g(k in c.1K[D][\'G\']){1O.1Y(cm(k)==k?c.1K[D][\'G\'][k]:k)}}o 1O},ck:j(){l 1O=[];1g(l 1U in c.8X){1O.1Y(c.8X[1U])}1g(l 1U in c.8W){1O.1Y(c.8W[1U])}o 1O},cl:j(D){if(c.1K[D]){o R}1g(l 1U in c.1K){if(c.1K[1U]==D){o R}}o I},cf:j(D){l 8U=[];if(c.cl(D)){l 8V=c.ck();1g(l 1U in 8V){l 3K=8V[1U];if(1q 3K==\'4E\'){l h=f.1M;if((3K[\'5a\']&&h.2F(3K[\'5a\'],D))||(3K[\'7b\']&&!h.2F(3K[\'7b\'],D))){nR}l 7a=3K[\'G\']?3K[\'G\']:3K[\'nQ\'];1g(l k in 7a){8U.1Y(1q 7a[k]!=\'3S\'?k:7a[k])}}}}o 8U},cj:j(D,2i){o c.1K[D]&&((c.1K[D][\'G\']&&c.1K[D][\'G\'][2i])||(c.1K[D][\'2c\']&&f.1M.2F(c.1K[D][\'2c\'],2i)))},ci:j(D,2i,Q){if(c.1K[D]&&(c.1K[D][\'G\']&&c.1K[D][\'G\'][2i]&&Q.V>0&&!Q.K(c.1K[D][\'G\'][2i]))||(c.1K[D]&&c.1K[D][\'2c\']&&f.1M.2F(c.1K[D][\'2c\'],2i)&&Q.V==0)){o I}o 1q c.1K[D]!=\'2d\'},ch:j(D){if(!c.5V){c.5V={}}if(!c.5V[D]){c.5V[D]=c.cg(D).nP(c.cf(D))}o c.5V[D]}};f.2Y=j(78){c.4K=78;c.43=[];c.8T=[];c.5U=1c;o c};f.2Y.u.42=j(3p,1o){1o=1o||R;l 59=c.43.V;c.43[59]=3p;c.8T[59]=1o;c.5U=1c};f.2Y.u.K=j(ce){if(c.43.V==0){o[I,\'\']}l 2g=ce.K(c.cd());if(!2g){o[I,\'\']}l K=2g[0];1g(l i=1;i<2g.V;i++){if(2g[i]){o[c.8T[i-1],K]}}o[R,2g[0]]};f.2Y.u.cd=j(){if(c.5U==1c){1g(l i=0,59=c.43.V;i<59;i++){c.43[i]=\'(\'+c.cb(c.cc(c.43[i]).S(/([\\/\\(\\)])/g,\'\\\\$1\'))+\')\'}c.5U=1f 2P(c.43.6v("|"),c.c3())}o c.5U};f.2Y.u.cc=j(79){o 79.S(/\\(\\?(i|m|s|x|U)\\)/,\'~~~~~~ca\\$1~~~~~~\').S(/\\(\\?(\\-[i|m|s|x|U])\\)/,\'~~~~~~c9\\$1~~~~~~\').S(/\\(\\?\\=(.*)\\)/,\'~~~~~~c8\\$1~~~~~~\').S(/\\(\\?\\!(.*)\\)/,\'~~~~~~c7\\$1~~~~~~\').S(/\\(\\?\\<\\=(.*)\\)/,\'~~~~~~c6\\$1~~~~~~\').S(/\\(\\?\\<\\!(.*)\\)/,\'~~~~~~c5\\$1~~~~~~\').S(/\\(\\?\\:(.*)\\)/,\'~~~~~~c4\\$1~~~~~~\')};f.2Y.u.cb=j(79){o 79.S(/~~~~~~ca(.{1})~~~~~~/,"(?\\$1)").S(/~~~~~~c9(.{2})~~~~~~/,"(?\\$1)").S(/~~~~~~c8(.*)~~~~~~/,"(?=\\$1)").S(/~~~~~~c7(.*)~~~~~~/,"(?!\\$1)").S(/~~~~~~c6(.*)~~~~~~/,"(?<=\\$1)").S(/~~~~~~c5(.*)~~~~~~/,"(?<!\\$1)").S(/~~~~~~c4(.*)~~~~~~/,"(?:\\$1)")};f.2Y.u.c3=j(){o(c.4K?"m":"mi")};f.5T=j(2L){c.58=[2L];o c};f.5T.u.8P=j(){o c.58[c.58.V-1]};f.5T.u.8R=j(2b){c.58.1Y(2b)};f.5T.u.8S=j(){if(c.58.V==1){o I}c.58.4S();o R};f.71=1;f.c1=2;f.3F=3;f.5F=4;f.6Y=5;f.2f=j(3Y,2L,78){2L=2L||\'5S\';c.4K=78||I;c.2p={};c.8Q=3Y;c.41=1f f.5T(2L);c.2K={};c.2K[2L]=2L;o c};f.2f.u.42=j(3p,T){l T=T||"5S";if(1q c.2p[T]==\'2d\'){c.2p[T]=1f f.2Y(c.4K)}c.2p[T].42(3p);if(1q c.2K[T]==\'2d\'){c.2K[T]=T}};f.2f.u.2R=j(3p,T,5R){if(1q c.2p[T]==\'2d\'){c.2p[T]=1f f.2Y(c.4K)}c.2p[T].42(3p,5R);if(1q c.2K[5R]==\'2d\'){c.2K[5R]=5R}};f.2f.u.2H=j(3p,T){if(1q c.2p[T]==\'2d\'){c.2p[T]=1f f.2Y(c.4K)}c.2p[T].42(3p,"bZ");if(1q c.2K[T]==\'2d\'){c.2K[T]=T}};f.2f.u.4G=j(3p,T,5Q){if(1q c.2p[T]==\'2d\'){c.2p[T]=1f f.2Y(c.4K)}c.2p[T].42(3p,\'bX\'+5Q);if(1q c.2K[5Q]==\'2d\'){c.2K[5Q]=5Q}};f.2f.u.8r=j(T,75){c.2K[T]=75};f.2f.u.3W=j(1y){if(1q c.8Q==\'2d\'){o I}l V=1y.V;l 3J;77(1q(3J=c.bT(1y))==\'4E\'){l 1y=3J[0];l 76=3J[1];l 3o=3J[2];l T=3J[3];if(!c.c2(76,3o,T)){o I}if(1y==\'\'){o R}if(1y.V==V){o I}V=1y.V}if(!3J){o I}o c.4J(1y,f.3F)};f.2f.u.c2=j(76,3o,T){T=T||I;if(!c.4J(76,f.3F)){o I}if(1q T==\'nO\'){o c.4J(3o,f.c1)}if(c.c0(T)){if(!c.4J(3o,f.5F)){o I}o c.41.8S()}if(c.bY(T)){c.41.8R(c.bW(T));if(!c.4J(3o,f.6Y)){o I}o c.41.8S()}c.41.8R(T);o c.4J(3o,f.71)};f.2f.u.c0=j(T){o(T==="bZ")};f.2f.u.bY=j(T){o(T.6z(0,1)=="bX")};f.2f.u.bW=j(T){o T.6z(1)};f.2f.u.4J=j(1T,bU){if(!/ +/.2w(1T)&&((1T===\'\')||(1T==I))){o R}l bV=c.41.8P();l 75=c.2K[bV];l 1O;2C(\'1O = c.8Q.\'+75+\'(1T, bU);\');o 1O};f.2f.u.bT=j(1y){l 3o=c.2p[c.41.8P()].K(1y);l K=3o[1];l 5P=3o[0];if(5P){l 8O=1y.8i(K);l bS=1y.aQ(0,8O);1y=1y.6z(8O+K.V);o[1y,bS,K,5P]}o R};f.3n=j(3Y){C.54(c,1f f.2f(3Y,\'3j\'));c.8r(\'3j\',\'3j\');c.bR();c.57();o c};f.3n.u.57=j(){};f.3n.u.bR=j(){c.bQ(\'3j\');c.bP(\'3j\');c.bO(\'3j\');c.bN(\'3j\')};f.3n.u.bQ=j(1H){c.2R("<!--",1H,\'8N\');c.2H("-->",\'8N\')};f.3n.u.bP=j(1H){c.2R("<2h",1H,\'8M\');c.2H("</2h>",\'8M\')};f.3n.u.bO=j(1H){c.2R("<1m",1H,\'8L\');c.2H("</1m>",\'8L\')};f.3n.u.bN=j(1H){c.4G("<\\\\s*[a-5G-9:\\-]+\\\\s*>",1H,\'72\');c.2R("<[a-5G-9:\\-]+"+\'[\\\\\\/ \\\\\\>]+\',1H,\'72\');c.bM(\'72\');c.4G("</\\\\s*[a-5G-9:\\-]+\\\\s*>",1H,\'bI\')};f.3n.u.bM=j(1H){c.4G(\'\\\\s+\',1H,\'53\');c.bL(1H);c.2H(\'/>\',1H);c.2H(\'>\',1H)};f.3n.u.bL=j(1H){c.4G("\\\\s*[a-z-8q-9]*:?[a-z-8q-9]+\\\\s*(?=\\=)\\\\s*",1H,\'bD\');c.2R(\'=\\\\s*"\',1H,\'6X\');c.42("\\\\\\\\\\"",\'6X\');c.2H(\'"\',\'6X\');c.2R("=\\\\s*\'",1H,\'6W\');c.42("\\\\\\\\\'",\'6W\');c.2H("\'",\'6W\');c.4G(\'=\\\\s*[^>\\\\s]*\',1H,\'bC\')};f.1s=j(bK,T){l T=T||\'3j\';c.6E=1f f.3n(c);c.1a=bK;c.41=T;c.nN=[];c.nM=\'\';c.nL=\'\';o c};f.1s.u.3W=j(1y){c.6E.3W(c.6O(1y));o c.6N(c.1a.bd())};f.1s.u.6O=j(1y){if(1y.K(/J="b5"/)||1y.K(/ns = "nK:nJ-nI-nH/)){c.1a.b6()}o c.1a.6O(1y)};f.1s.u.6N=j(3J){if(c.1a.8x){c.1a.b4()}o c.1a.6N(3J)};f.1s.u.53=j(K,2b){o R};f.1s.u.3j=j(Y){c.1a.bc(Y);o R};f.1s.u.8N=j(K,2o){o c.74(K,2o,\'6K\')};f.1s.u.8M=j(K,2o){o c.74(K,2o,\'6J\')};f.1s.u.8L=j(K,2o){o c.74(K,2o,\'6I\')};f.1s.u.74=j(K,2b,1e){3e(2b){1j f.71:c.5O=K;1n;1j f.3F:c.5O+=K;1n;1j f.5F:3e(1e){1j\'6K\':c.1a.6K(c.5O+K);1n;1j\'6J\':c.1a.6J(c.5O+K);1n;1j\'6I\':c.1a.6I(c.5O+K);1n}}o R};f.1s.u.72=j(K,2b){3e(2b){1j f.71:c.bJ=c.6Z(K);c.5N={};1n;1j f.6Y:c.8K(c.6Z(K));1n;1j f.5F:c.8K(c.bJ,c.5N)}o R};f.1s.u.bI=j(K,2b){c.8H(c.6Z(K));o R};f.1s.u.8K=j(D,G){l G=G||{};c.bG(D);if(c.1a.8w(D)){c.1a.4o.1Y(D);c.1a.b0(D,G);c.1a.6m(D,G);c.8J(D)}X if(c.1a.b3(D)){c.1a.bb(D,G)}X{c.1a.ba(D,G);c.8J(D)}c.1a.6F=D;c.1a.8u=R;c.1a.nG=G};f.1s.u.8H=j(D){if(c.bH(D)){c.bF(D);if(c.1a.8w(D)){l 70=c.1a.4o.4S();if(70==I){o}X if(70!=D){D=70}c.1a.b9(D)}X{c.1a.b8(D)}}X{c.1a.b7(D)}c.1a.6F=D;c.1a.8u=I};f.1s.u.8J=j(D){c.1a.2W[D]=c.1a.2W[D]||0;c.1a.2W[D]++};f.1s.u.bH=j(D){if(c.1a.2W[D]){c.1a.2W[D]--;if(c.1a.2W[D]==0){c.1a.2W[D]=2d}o R}o I};f.1s.u.bG=j(2x){c.8I(2x,I)};f.1s.u.bF=j(D){c.8I(D,R)};f.1s.u.8I=j(2x,2T){l 2T=2T||I;if(c.1a.2W){1g(l D in c.1a.2W){l bE=c.1a.2W[D];if(bE>0&&c.1a.bk(D,2x,2T)){c.8H(D,R)}}}};f.1s.u.6L=j(){o c.1a.6L()};f.1s.u.6Z=j(D){D=D.S(/^([\\s<\\/>]*)|([\\s<\\/>]*)$/gm,\'\').1p();l 3k=c.1a.6L();if(3k[D]){o 3k[D]}o D};f.1s.u.bD=j(K,2b){if(f.6Y==2b){c.6V=K}o R};f.1s.u.6X=j(K,2b){if(f.3F==2b){c.5N[c.6V]=K}o R};f.1s.u.6W=j(K,2b){if(f.3F==2b){c.5N[c.6V]=K}o R};f.1s.u.bC=j(K,2b){c.5N[c.6V]=K.S(/^=/,\'\');o R};f.1l=j(){c.1X=\'\';c.4R=1f f.2X();c.2W={};c.3u=f.bB;c.4o=[];c.5I=[];c.8B={\'&bf;\':\'&#bg;\',\'&nF;\':\'&#nE;\',\'&nD;\':\'&#nC;\',\'&nB;\':\'&#nA;\',\'&nz;\':\'&#ny;\',\'&nx;\':\'&#nw;\',\'&nv;\':\'&#nt;\',\'&nr;\':\'&#nq;\',\'&np;\':\'&#nn;\',\'&nm;\':\'&#nl;\',\'&nk;\':\'&#nj;\',\'&nh;\':\'&#ng;\',\'&bA;\':\'&#nf;\',\'&nd;\':\'&#nc;\',\'&nb;\':\'&#na;\',\'&n9;\':\'&#n8;\',\'&n7;\':\'&#n6;\',\'&n5;\':\'&#n4;\',\'&n3;\':\'&#n2;\',\'&n1;\':\'&#n0;\',\'&mZ;\':\'&#mY;\',\'&mX;\':\'&#mW;\',\'&mV;\':\'&#mU;\',\'&mT;\':\'&#mS;\',\'&mR;\':\'&#mQ;\',\'&mP;\':\'&#mO;\',\'&mN;\':\'&#mM;\',\'&mL;\':\'&#mK;\',\'&mJ;\':\'&#mI;\',\'&mH;\':\'&#mG;\',\'&mF;\':\'&#mE;\',\'&mD;\':\'&#mC;\',\'&mB;\':\'&#mA;\',\'&mz;\':\'&#my;\',\'&mx;\':\'&#mw;\',\'&mv;\':\'&#mt;\',\'&ms;\':\'&#mr;\',\'&mq;\':\'&#mp;\',\'&mo;\':\'&#mn;\',\'&mm;\':\'&#ml;\',\'&mk;\':\'&#mj;\',\'&mh;\':\'&#mg;\',\'&mf;\':\'&#me;\',\'&md;\':\'&#mc;\',\'&mb;\':\'&#ma;\',\'&m9;\':\'&#m8;\',\'&m7;\':\'&#m6;\',\'&m5;\':\'&#m4;\',\'&m3;\':\'&#m2;\',\'&m1;\':\'&#m0;\',\'&lZ;\':\'&#lY;\',\'&lX;\':\'&#lW;\',\'&lV;\':\'&#lU;\',\'&lT;\':\'&#lS;\',\'&lR;\':\'&#lQ;\',\'&lP;\':\'&#lO;\',\'&lN;\':\'&#lM;\',\'&lL;\':\'&#lK;\',\'&lJ;\':\'&#lI;\',\'&lH;\':\'&#lG;\',\'&lF;\':\'&#lE;\',\'&lD;\':\'&#lC;\',\'&lB;\':\'&#lA;\',\'&lz;\':\'&#ly;\',\'&lx;\':\'&#88;\',\'&lw;\':\'&#lv;\',\'&lu;\':\'&#lt;\',\'&ls;\':\'&#lr;\',\'&lq;\':\'&#lp;\',\'&lo;\':\'&#ln;\',\'&lm;\':\'&#ll;\',\'&lk;\':\'&#lj;\',\'&lh;\':\'&#lg;\',\'&lf;\':\'&#ld;\',\'&lc;\':\'&#lb;\',\'&la;\':\'&#l9;\',\'&l8;\':\'&#l7;\',\'&l6;\':\'&#l5;\',\'&l4;\':\'&#l3;\',\'&l2;\':\'&#l1;\',\'&l0;\':\'&#kZ;\',\'&kY;\':\'&#kX;\',\'&kW;\':\'&#kV;\',\'&kU;\':\'&#kT;\',\'&kS;\':\'&#kR;\',\'&kQ;\':\'&#kP;\',\'&kO;\':\'&#kN;\',\'&kM;\':\'&#kL;\',\'&kK;\':\'&#kJ;\',\'&kI;\':\'&#kH;\',\'&kG;\':\'&#kF;\',\'&kE;\':\'&#kD;\',\'&kC;\':\'&#kB;\',\'&kA;\':\'&#kz;\',\'&ky;\':\'&#kx;\',\'&kw;\':\'&#kv;\',\'&ku;\':\'&#kt;\',\'&ks;\':\'&#kr;\',\'&kq;\':\'&#kp;\',\'&ko;\':\'&#kn;\',\'&km;\':\'&#kl;\',\'&kk;\':\'&#kj;\',\'&8G;\':\'&#ki;\',\'&kh;\':\'&#kg;\',\'&kf;\':\'&#ke;\',\'&kd;\':\'&#kc;\',\'&kb;\':\'&#ka;\',\'&k9;\':\'&#k8;\',\'&k7;\':\'&#k6;\',\'&k5;\':\'&#k4;\',\'&k3;\':\'&#k2;\',\'&k1;\':\'&#k0;\',\'&jZ;\':\'&#jY;\',\'&jX;\':\'&#jW;\',\'&jV;\':\'&#jU;\',\'&jT;\':\'&#jS;\',\'&jR;\':\'&#jQ;\',\'&jP;\':\'&#jO;\',\'&jN;\':\'&#jM;\',\'&jL;\':\'&#jK;\',\'&jJ;\':\'&#jI;\',\'&jH;\':\'&#jG;\',\'&jF;\':\'&#jE;\',\'&jD;\':\'&#jC;\',\'&jB;\':\'&#jA;\',\'&jz;\':\'&#jy;\',\'&jx;\':\'&#jw;\',\'&jv;\':\'&#ju;\',\'&jt;\':\'&#jr;\',\'&jq;\':\'&#jp;\',\'&jo;\':\'&#jn;\',\'&jm;\':\'&#jl;\',\'&jk;\':\'&#jj;\',\'&ji;\':\'&#jh;\',\'&jg;\':\'&#jf;\',\'&je;\':\'&#jd;\',\'&jc;\':\'&#jb;\',\'&ja;\':\'&#j9;\',\'&j8;\':\'&#j7;\',\'&mu;\':\'&#j6;\',\'&nu;\':\'&#j5;\',\'&j4;\':\'&#j3;\',\'&j2;\':\'&#j1;\',\'&pi;\':\'&#j0;\',\'&iZ;\':\'&#iY;\',\'&iX;\':\'&#iW;\',\'&iV;\':\'&#iU;\',\'&iT;\':\'&#iS;\',\'&iR;\':\'&#iQ;\',\'&iP;\':\'&#iO;\',\'&iN;\':\'&#iM;\',\'&iL;\':\'&#iK;\',\'&iJ;\':\'&#iI;\',\'&iH;\':\'&#iG;\',\'&iF;\':\'&#iE;\',\'&iD;\':\'&#iC;\',\'&iB;\':\'&#iA;\',\'&iz;\':\'&#iy;\',\'&ix;\':\'&#iw;\',\'&iv;\':\'&#iu;\',\'&it;\':\'&#ir;\',\'&iq;\':\'&#ip;\',\'&io;\':\'&#im;\',\'&il;\':\'&#ik;\',\'&ij;\':\'&#ii;\',\'&ih;\':\'&#ie;\',\'&ic;\':\'&#ib;\',\'&ia;\':\'&#i9;\',\'&i8;\':\'&#i7;\',\'&i6;\':\'&#i5;\',\'&i4;\':\'&#i3;\',\'&i2;\':\'&#i1;\',\'&i0;\':\'&#hZ;\',\'&hY;\':\'&#hX;\',\'&hW;\':\'&#hV;\',\'&hU;\':\'&#hT;\',\'&hS;\':\'&#hR;\',\'&hQ;\':\'&#hP;\',\'&hO;\':\'&#hN;\',\'&hM;\':\'&#hL;\',\'&hK;\':\'&#hJ;\',\'&hI;\':\'&#hH;\',\'&hG;\':\'&#hF;\',\'&bz;\':\'&#hE;\',\'&hD;\':\'&#hC;\',\'&hB;\':\'&#hA;\',\'&hz;\':\'&#hy;\',\'&hx;\':\'&#hw;\',\'&hv;\':\'&#hu;\',\'&ht;\':\'&#hs;\',\'&hq;\':\'&#hp;\',\'&ho;\':\'&#hn;\',\'&hm;\':\'&#hl;\',\'&hk;\':\'&#hj;\',\'&hi;\':\'&#hh;\',\'&hg;\':\'&#hf;\',\'&he;\':\'&#hd;\',\'&hc;\':\'&#hb;\',\'&ha;\':\'&#h9;\',\'&h8;\':\'&#h7;\',\'&h0;\':\'&#gZ;\',\'&gY;\':\'&#gX;\',\'&gW;\':\'&#gV;\',\'&gU;\':\'&#gT;\',\'&gS;\':\'&#gR;\',\'&gQ;\':\'&#gP;\',\'&ni;\':\'&#gO;\',\'&gN;\':\'&#gM;\',\'&gL;\':\'&#gK;\',\'&gJ;\':\'&#gI;\',\'&gH;\':\'&#gG;\',\'&gF;\':\'&#gE;\',\'&6U;\':\'&#gD;\',\'&gC;\':\'&#gB;\',\'&gA;\':\'&#gz;\',\'&gy;\':\'&#gx;\',\'&or;\':\'&#gw;\',\'&gv;\':\'&#gu;\',\'&gt;\':\'&#gs;\',\'&gr;\':\'&#gq;\',\'&gp;\':\'&#go;\',\'&gn;\':\'&#gl;\',\'&gk;\':\'&#gj;\',\'&gh;\':\'&#gg;\',\'&ne;\':\'&#gf;\',\'&by;\':\'&#gd;\',\'&le;\':\'&#gc;\',\'&ge;\':\'&#gb;\',\'&2M;\':\'&#ga;\',\'&4n;\':\'&#g9;\',\'&g8;\':\'&#g7;\',\'&g6;\':\'&#g5;\',\'&g4;\':\'&#g3;\',\'&g2;\':\'&#g1;\',\'&g0;\':\'&#fZ;\',\'&fY;\':\'&#fX;\',\'&fW;\':\'&#fV;\',\'&fU;\':\'&#fT;\',\'&fS;\':\'&#fR;\',\'&fQ;\':\'&#fP;\',\'&fO;\':\'&#fN;\',\'&3I;\':\'&#fM;\',\'&fL;\':\'&#fK;\',\'&fJ;\':\'&#fI;\',\'&fH;\':\'&#fG;\',\'&fF;\':\'&#fE;\',\'&fD;\':\'&#fC;\',\'&fB;\':\'&#fA;\'};c.8v=["a","6T","8z","6M","bx","b","56","6S","bw","2J","1i","2v","bv","55","bu","6R","5M","dd","8y","N","bt","dl","dt","em","2V","1N","2U","h1","h2","h3","h4","h5","h6","O","i","bs","bq","1o","3m","li","bp","8F","4E","ol","bo","6P","p","1S","3Z","q","bn","2h","4Z","bm","3t","3c","1m","2M","4n","3l","8E","4H","4I","8D","5J","8C","M","6Q","bl","2I","l","fz"];c.b2=["br","hr","5L","1A"];o c};f.1l.u.bk=j(D,5K,2T){l 2T=2T||I;if(D==\'4H\'){if((2T&&5K==\'6Q\')||(!2T&&5K==\'4H\')){o R}}if(D==\'6P\'){if((2T&&5K==\'4Z\')||(!2T&&5K==\'6P\')){o R}}o I};f.1l.u.6O=j(1y){c.1X=\'\';o 1y};f.1l.u.6N=j(1r){1r=c.bj(1r);1r=c.bi(1r);1r=c.bh(1r);1r=c.be(1r);o 1r};f.1l.u.bj=j(1r){1g(l 8A in c.8B){1r=1r.S(1f 2P(8A,\'g\'),c.8B[8A])}o 1r};f.1l.u.bi=j(1r){l 3k=\'em|3c|2M|4n|8z|3Z|8y|6M\';o 1r.S(1f 2P(\'<\\/(\'+3k+\')><\\\\1>\',\'\'),\'\').S(1f 2P(\'(\\s*<(\'+3k+\')>\\s*){2}(.*)(\\s*<\\/\\\\2>\\s*){2}\',\'\'),\'<\\$2>\\$3<\\$2>\')};f.1l.u.bh=j(1r){o 1r.S(1f 2P(\'<(\'+c.8v.6v("|").S(/\\|4H/,\'\').S(/\\|5J/,\'\')+\')>(<br \\/>|&#bg;|&bf;|\\\\s)*<\\/\\\\1>\',\'g\'),\'\')};f.1l.u.be=j(1r){l 2g=1r.K(1f 2P(\'<3Z[^>]*>(.*?)<\\/3Z>\',\'fy\'));if(2g){1g(l i=0;i<2g.V;i++){1r=1r.S(2g[i],2g[i].S(1f 2P(\'<br \\/>\',\'g\'),fx.fw(13,10)))}}o 1r};f.1l.u.bd=j(){o c.1X};f.1l.u.6L=j(){o{\'b\':\'3c\',\'i\':\'em\'}};f.1l.u.bc=j(Y){c.1X+=Y};f.1l.u.6K=j(Y){if(c.fv){c.1X+=Y}};f.1l.u.6J=j(Y){if(!c.fu){c.1X+=Y}};f.1l.u.6I=j(Y){if(!c.ft){c.1X+=Y}};f.1l.u.6m=j(D,G){c.1X+=c.4R.D(D,c.3u.5r(D,G),R)};f.1l.u.bb=j(D,G){c.1X+=c.4R.D(D,c.3u.5r(D,G))};f.1l.u.ba=j(D,G){};f.1l.u.b9=j(D){c.1X=c.1X.S(/<br \\/>$/,\'\')+c.8s(\'b1\',D)+"</"+D+">"+c.8s(\'5H\',D)};f.1l.u.b8=j(D){};f.1l.u.b7=j(D){c.1X+="</"+D+">"};f.1l.u.b6=j(){c.5I=[\'N\',\'3t\'];c.3u.6H=[\'1m\'];c.3u.6G=[\'b5\',\'fs\'];c.8x=R};f.1l.u.b4=j(){c.5I=[];c.3u.6H=[];c.3u.6G=[];c.8x=I};f.1l.u.8w=j(D){o!f.1M.2F(c.5I,D)&&f.1M.2F(c.8v,D)};f.1l.u.b3=j(D){o!f.1M.2F(c.5I,D)&&f.1M.2F(c.b2,D)};f.1l.u.aZ=j(D,1T){c.8t(\'5H\',D,1T)};f.1l.u.fr=j(D,1T){c.8t(\'b1\',D,1T)};f.1l.u.b0=j(D,G){if(D!=\'li\'&&(D==\'2I\'||D==\'ol\')&&c.6F&&!c.8u&&c.6F==\'li\'){c.1X=c.1X.S(/<\\/li>$/,\'\');c.aZ(D,\'</li>\')}};f.1l.u.8t=j(2S,D,1T){if(!c[\'3H\'+2S+\'3G\']){c[\'3H\'+2S+\'3G\']=[]}if(!c[\'3H\'+2S+\'3G\'][D]){c[\'3H\'+2S+\'3G\'][D]=[]}c[\'3H\'+2S+\'3G\'][D].1Y(1T)};f.1l.u.8s=j(2S,D){if(c[\'3H\'+2S+\'3G\']&&c[\'3H\'+2S+\'3G\'][D]&&c[\'3H\'+2S+\'3G\'][D].V>0){o c[\'3H\'+2S+\'3G\'][D].4S()}o\'\'};f.aY=j(3Y,2u){l 2u=(1q 2u==\'2d\'?R:2u);C.54(c,1f f.2f(3Y,(2u?\'53\':\'4F\')));c.8r(\'4F\',\'53\');if(2u==R){c.2R("/\\\\\\3X[<\\\\s]*f[>\\\\s]*\\\\\\3X/",\'53\',\'4F\');c.2H("/\\\\\\3X[<\\/\\\\s]*f[>\\\\s]*\\\\\\3X/",\'4F\')}c.4G("[\\\\fq-fp-6]*\\\\\\fo[a-z-8q-9]+",\'4F\',\'aX\');c.2R("/\\\\\\3X",\'4F\',\'8p\');c.2H("\\\\\\3X/",\'8p\');c.2R("\\fm",\'4F\',\'6D\');c.2H("\\fl",\'6D\');c.2R("/\\\\\\3X",\'6D\',\'8o\');c.2H("\\\\\\3X/",\'8o\');o c};f.3E=j(){c.6C=I;c.5E=I;c.2u=R;c.4D={\'3V\':[],\'3h\':[],\'4C\':[]};o c};f.3E.u.3W=j(1y,2u){l 2u=(1q 2u==\'2d\'?c.2u:2u);c.6E=1f f.aY(c,2u);c.6E.3W(1y)};f.3E.u.53=j(K,2b){o R};f.3E.u.8p=j(Y,2o){if(Y.K(/fk[a-5G-9\\s]*E[a-5G-9\\s]*/mi)){o I}if(2o==f.3F){if(!c.6C){c.5E=R;c.2n={\'M\':f.1M.4y(Y)}}X{if(c.2n[c.2e]){if(!c.2n[c.2e].6A){c.2n[c.2e].6A=[Y]}X{c.2n[c.2e].6A.1Y(Y)}}}c.6C=R}o R};f.3E.u.6D=j(K,2o){if(2o==f.3F){K=f.1M.4y(K);if(K!=\'\'){c.2n[c.2e].1m=K}}X if(2o==f.5F){c.6C=I;c.5E=I;c.aW(c.2n)}o R};f.3E.u.8o=j(K,2o){if(2o==f.3F){c.2n[c.2e].8l=K.S(/^([\\s\\/\\*]*)|([\\s\\/\\*]*)$/gm,\'\')}o R};f.3E.u.aX=j(K){K=K.S(/^([\\s\\.]*)|([\\s\\.*]*)$/gm,\'\');l D=\'\';if(K.8i(\'.\')>0){l 8m=K.8n(\'.\');c.2e=8m[1];l D=8m[0]}X{c.2e=K}if(!c.5E){c.2n={\'M\':(!D?\'\':D.fj()+\': \')+c.2e};c.5E=R}if(!c.2n[c.2e]){c.2n[c.2e]={\'F\':c.2e}}if(D){if(!c.2n[c.2e].3k){c.2n[c.2e].3k=[D]}X{c.2n[c.2e].3k.1Y(D)}}o R};f.3E.u.aW=j(6B){1g(l F in 6B){l 2Q=6B[F];if(1q 2Q==\'4E\'&&F!=\'M\'){c.4D.3V.1Y({\'F\':f.1M.4y(2Q.F),\'M\':6B.M,\'aV\':f.1M.4y((2Q.6A||2Q.3k).6v(\', \'))});if(2Q.8l){c.4D.3h.1Y({\'F\':\'.\'+f.1M.4y(2Q.F),\'1d\':2Q.8l})}if(2Q.1m){c.4D.4C.1Y({\'F\':\'.\'+f.1M.4y(2Q.F),\'1d\':2Q.1m})}}}};C.fn.aU=j(){if(c[0].8k==3)o!(/[^\\t\\n\\r ]/.2w(c[0].4B));o I};f.aU=j(n){if(n.8k==3)o!(/[^\\t\\n\\r ]/.2w(n.4B));o I};f.fi=j(3D){o!(/[^\\t\\n\\r ]/.2w(3D))};C.fn.4Y=j(4A){l n=c;if(n[0].8k==3)n=n.5A().aT(0,1);if(n.52(4A).2G()==1)o n;X o n.5A(4A).aT(0,1)};f.1M={1k:j(3D,aS,aR){l 4z=1f 2P(aS,"g");o(3D.S(4z,aR))},fh:j(3D,aO,8j){o(3D.aQ(0,8j)+aO+3D.6z(8j))},4y:j(3D){o 3D.S(/^(\\s*)|(\\s*)$/gm,\'\')},2F:j(3C,5D){1g(l i=0;i<3C.V;i++){if(3C[i]===5D)o R}o I},8i:j(3C,4x){l 8h=-1;1g(l i=0;i<3C.V;i++){if(3C[i]==4x){8h=i;1n}}o(8h)},aN:j(3C,F){1g(l i=0;i<3C.V;i++){l 4x=3C[i];if(4x.F==F)o(4x)}o(1c)}};f.2D=j(E){c.1W=E;c.5y="fg";c.4u="\\r\\n"};f.2D.u.5x=j(1L){c.1v=1L;c.H=1L.1u.3i;l 1F=c.H.4X[0];l 2s=2C(c.B.3h);c.4W(c.H,2s);c.H.M=c.1W.3g;C(\'O\',c.H).1x(\'3A\',c.B.4V);C(c.H.1i).O(c.1W.4U);l E=c;c.H.1i.aM=j(){E.H.4t="on";E.H=1L.1u.3i};c.H.ff=j(){E.6y()};c.H.aL=j(){E.6y();E.2z()};c.H.aK=j(){E.6y()};c.H.1i.fe=j(){E.1v.1u.aJ.aI=I};c.H.1i.fd=j(){E.1v.1u.aJ.aI=I;E.5C(2m.fc.fb("3j"))};if(c.aH){if(C.2B(c.B.3z))c.B.3z(c);c.1W.5w();if(C.2B(c.B.3y))c.B.3y(c);c.3d()}c.aH=R;c.H.4t="on";4w{c.H=1L.1u.3i}4v(e){}};f.2D.u.1E=j(1G,1S){3e(1G){1j f.6u:1j f.6t:l L=c.2O(c.L(),f.6s);if(L){l 3x=L.1B.1B;if(L.1B.4T.V>1||3x.1w.1p()==f.6r||3x.1w.1p()==f.6q)c.H.2r(1G)}1n;3T:if(1S)c.H.2r(1G,I,1S);X c.H.2r(1G);1n}c.3d()};f.2D.u.1b=j(){l 51=c.1v.1u.3i.51;if(51!=1c){if(51.5B!=2d)o(51.5B())}};f.2D.u.6y=j(){c.H.51=c.H.5z.4q()};f.2D.u.5t=j(1F,1Z){1F.fa(1Z.F,1Z.1d)};f.2D.u.8f=j(O){l 1D=c.H.5z.4q();if(C(1D.5B()).5A(c.B.6x).is(\'*\')){4w{1D.8g(O)}4v(e){}}X{c.5C(O)}};f.2D.u.aG=j(2l,2E){l 1D=c.H.5z.4q();if(C(1D.5B()).5A(c.B.6x).is(\'*\')){4w{1D.8g(2l+1D.Y+2E)}4v(e){}}};f.2D.u.aF=j(){l 1D=c.H.5z.4q();if(C(1D.5B()).5A(c.B.6x).is(\'*\')){4w{l Y=1D.Y;c.1E(\'f9\');1D.8g(Y)}4v(e){}}};f.2D.u.2z=j(){c.2k=1c};f.2D.u.4r=j(W){l 1D=c.H.5z.4q();1D.f8(W);1D.86(I);1D.f7(\'f6\',-1);1D.4Z();W.4p()};f.2t=j(E){c.1W=E;c.5y="J";c.4u="\\n"};f.2t.u.5x=j(1L){c.1v=1L;c.H=1L.87;l 1F=c.H.4X[0];l 2s=2C(c.B.3h);c.4W(c.H,2s);c.H.M=c.1W.3g;C(\'O\',c.H).1x(\'3A\',c.B.4V);c.O(c.1W.4U);c.6w();if(C.2B(c.B.3z))c.B.3z(c);c.1W.5w();C(c.H).3f("3w",c.3w);C(c.H).3f("2z",c.2z);C(c.H).3f("4p",c.6w);if(C.2B(c.B.3y))c.B.3y(c);c.3d()};f.2t.u.O=j(O){if(1q O===\'3S\'){4w{c.H.4t="aE"}4v(e){};O=O.S(/<em(\\b[^>]*)>/gi,"<i$1>").S(/<\\/em>/gi,"</i>").S(/<3c(\\b[^>]*)>/gi,"<b$1>").S(/<\\/3c>/gi,"</b>");C(c.H.1i).O(O);c.6w()}X o(C(c.H.1i).O())};f.2t.u.1E=j(1G,1S){if(!c.1b())o(I);3e(1G){1j f.6u:1j f.6t:l 1z=c.1b();l 2A=c.1v.1u.2q();l 2a=2A.2a;if(2a.5u=="#Y")2a=2a.1B;1z=c.2O(1z,f.5v);2a=c.2O(2a,f.5v);if(1z&&1z==2a&&1z.1w.1p()==f.6s){l 3x=1z.1B.1B;if(1z.1B.4T.V>1||3x.1w.1p()==f.6r||3x.1w.1p()==f.6q)c.H.2r(1G,\'\',1c)}1n;3T:if(1S)c.H.2r(1G,\'\',1S);X c.H.2r(1G,\'\',1c)}l L=c.1b();if(L.1w.1p()==f.3v)c.1E(f.4s,f.P);c.3d()};f.2t.u.1b=j(){l 2A=c.1v.1u.2q();l W=2A.1z;if(W){if(W.5u=="#Y")o(W.1B);X o(W)}X o(1c)};f.2t.u.5t=j(1F,1Z){1F.8d(1Z.F+" {"+1Z.1d+"}",1F.8c.V)};f.2t.u.3w=j(Z){l E=f.2y[c.M];l L=1c;if(Z.6n){if(Z.1C==66){E.1E(f.8b);o I}if(Z.1C==73){E.1E(f.8a);o I}}X if(Z.1C==13){if(!Z.6o){L=E.1b();if(L&&L.1w.1p()==f.5s){Z.f5();E.8f(\'<p></p>\')}}}};f.2t.u.2z=j(Z){l E=f.2y[c.M];E.2k=1c;l L=1c;if(Z.1C==13&&!Z.6o){C(E.H.1i).au(f.89).at()}X if(Z.1C!=8&&Z.1C!=17&&Z.1C!=46&&Z.1C!=88&&!Z.as&&!Z.6n){L=E.1b();l F=L.1w.1p();if(F=="3c"||F=="b"||F=="em"||F=="i"||F=="2M"||F=="4n"||F=="a")F=L.1B.1w.1p();if(F==f.3v)E.1E(f.4s,f.P)}};f.2t.u.6w=j(){if(c.4t=="aE"){4w{c.4t="on";c.2r("f4",\'\',I)}4v(e){}}};f.2t.u.4r=j(W){l 1D=3i.4q();1D.aq(W);l 1b=c.1v.1u.2q();1b.ap(1D);1b.86(W,W.4T.V);c.1v.1u.4p()};f.2t.u.6m=j(D,G){l G=c.3u.5r(D,G);if(D==\'3t\'&&G.1m){l 2x=c.6l(G.1m);if(2x){c.4o.4S();l D=2x;c.4o.1Y(2x);G.1m=\'\'}X{o}}c.1X+=c.4R.D(D,G,R)};f.2t.u.6l=j(1m){if(/ao/.2w(1m))o\'3c\';if(/an/.2w(1m))o\'em\';if(/2M/.2w(1m))o\'2M\';if(/2M/.2w(1m))o\'am\';o I};f.3B=j(E){c.1W=E;c.5y="J";c.4u="\\r\\n"};f.3B.u.5x=j(1L){c.1v=1L;c.H=1L.1u.3i;l 1F=c.H.4X[0];l 2s=2C(c.B.3h);c.4W(c.H,2s);c.H.M=c.1W.3g;C(\'O\',c.H).1x(\'3A\',c.B.4V);c.H.4t="on";c.O(c.1W.4U);if(C.2B(c.B.3z))c.B.3z(c);c.1W.5w();C(c.H).3f("3w",c.3w);C(c.H).3f("2z",c.2z);if(C.2B(c.B.3y))c.B.3y(c);c.3d()};f.3B.u.1E=j(1G,1S){if(1S)c.H.2r(1G,I,1S);X c.H.2r(1G);c.3d()};f.3B.u.1b=j(){l 2A=c.1v.1u.2q();l W=2A.1z;if(W){if(W.5u=="#Y")o(W.1B);X o(W)}X o(1c)};f.3B.u.5t=j(1F,1Z){1F.8d(1Z.F+" {"+1Z.1d+"}",1F.8c.V)};f.3B.u.3w=j(Z){l E=f.2y[c.M];l 2A=E.1v.1u.2q();8e=2A.f3(0).f2;if(!C(8e).4Y(f.6p.6v(","))[0]&&!C(8e).4Y(\'li\')&&Z.1C!=f.3U.aD&&Z.1C!=f.3U.aC&&Z.1C!=f.3U.aB&&Z.1C!=f.3U.aA&&Z.1C!=f.3U.az&&Z.1C!=f.3U.ay&&Z.1C!=f.3U.ax)E.1E(f.4s,f.P)};f.3B.u.2z=j(Z){l E=f.2y[c.M];E.2k=1c};f.3B.u.4r=j(W){};f.2N=j(E){c.1W=E;c.5y="J";c.4u="\\n"};f.2N.u.5x=j(1L){c.1v=1L;c.H=1L.87;l 1F=c.H.4X[0];l 2s=2C(c.B.3h);c.4W(c.H,2s);c.H.M=c.1W.3g;C(\'O\',c.H).1x(\'3A\',c.B.4V);c.H.4t="on";c.O(c.1W.4U);if(C.2B(c.B.3z))c.B.3z(c);c.1W.5w();C(c.H).3f("3w",c.3w);C(c.H).3f("2z",c.2z);if(C.2B(c.B.3y))c.B.3y(c);c.3d()};f.2N.u.1E=j(1G,1S){if(!c.1b())o(I);3e(1G){1j f.6u:1j f.6t:l 1z=c.1b();l 2A=c.1v.1u.2q();l 2a=2A.2a;if(2a.5u=="#Y")2a=2a.1B;1z=c.2O(1z,f.5v);2a=c.2O(2a,f.5v);if(1z&&1z==2a&&1z.1w.1p()==f.6s){l 3x=1z.1B.1B;if(1z.1B.4T.V>1||3x.1w.1p()==f.6r||3x.1w.1p()==f.6q)c.H.2r(1G,\'\',1c)}1n;1j f.aw:1j f.av:c.H.2r(1G,\'\',1c);l 1z=c.1b();l L=c.2O(1z,f.6p);if(L)C(L).f1(C(L).O());1n;3T:if(1S)c.H.2r(1G,\'\',1S);X c.H.2r(1G,\'\',1c)}l L=c.1b();if(L&&L.1w.1p()==f.3v)c.1E(f.4s,f.P);c.3d()};f.2N.u.1b=j(){l 2A=c.1v.1u.2q();l W=2A.1z;if(W){if(W.5u=="#Y")o(W.1B);X o(W)}X o(1c)};f.2N.u.5t=j(1F,1Z){1F.8d(1Z.F+" {"+1Z.1d+"}",1F.8c.V)};f.2N.u.3w=j(Z){l E=f.2y[c.M];if(Z.6n){if(Z.1C==66){E.1E(f.8b);o I}if(Z.1C==73){E.1E(f.8a);o I}}};f.2N.u.2z=j(Z){l E=f.2y[c.M];E.2k=1c;l L=1c;if(Z.1C==13&&!Z.6o){C(E.H.1i).au(f.89).at();L=E.1b();if(L&&L.1w.1p()==f.5s)E.1E(f.4s,f.P);}if(Z.1C==13&&Z.6o){E.1E(\'f0\')}if(Z.1C!=8&&Z.1C!=17&&Z.1C!=46&&Z.1C!=88&&!Z.as&&!Z.6n){L=E.1b();l F=L.1w.1p();if(F=="3c"||F=="b"||F=="em"||F=="i"||F=="2M"||F=="4n"||F=="a"||F=="3t")F=L.1B.1w.1p();if(F==f.3v||F==f.ar)E.1E(f.4s,f.P);}};f.2N.u.4r=j(W){l 1D=c.1v.87.4q();1D.aq(W);l 1b=c.1v.1u.2q();1b.ap(1D);1b.86(W,W.4T.V);c.1v.1u.4p()};f.2N.u.6m=j(D,G){l G=c.3u.5r(D,G);if(D==\'3t\'&&G.1m){l 2x=c.6l(G.1m);if(2x){c.4o.4S();l D=2x;c.4o.1Y(2x);G.1m=\'\';if(1q G[\'J\']==\'3S\')G[\'J\']=G[\'J\'].S(/eZ-1m-3t/gi,\'\')}X{o}}c.1X+=c.4R.D(D,G,R)};f.2N.u.6l=j(1m){if(/ao/.2w(1m))o\'3c\';if(/an/.2w(1m))o\'em\';if(/2M/.2w(1m))o\'2M\';if(/am/.2w(1m))o\'4n\';o I};',62,1716,'||||||||||||this|||WYMeditor||||function||var|||return||||||prototype|||||||_options|jQuery|tag|wym|name|attributes|_doc|false|class|match|container|title|div|html||value|true|replace|mode||length|node|else|text|evt|||||||||||_Listener|selected|null|css|type|new|for|editor|body|case|replaceAll|XhtmlSaxListener|style|break|label|toLowerCase|typeof|xhtml|XhtmlParser|boxHtml|contentWindow|_iframe|tagName|attr|raw|focusNode|input|parentNode|keyCode|range|_exec|styles|cmd|scope|val|dialogHtml|_tags|iframe|Helper|form|result|row|href|options|param|content|key|src|_wym|output|push|oCss|||||||||||anchorNode|state|required|undefined|_current_element|Lexer|matches|script|attribute|_box|_selected_image|left|window|_current_item|status|_regexes|getSelection|execCommand|aCss|WymClassMozilla|only_wym_blocks|button|test|new_tag|INSTANCES|keyup|sel|isFunction|eval|WymClassExplorer|right|contains|size|addExitPattern|ul|blockquote|_mode_handlers|start|sub|WymClassSafari|findUp|RegExp|details|addEntryPattern|position|closing|head|fieldset|_open_tags|XmlHelper|ParallelRegex|char|||||||||||disabled|skin|strong|listen|switch|bind|_index|editorStyles|document|Text|tags|table|legend|XhtmlLexer|matched|pattern|top|stylesheet|sType|span|validator|BODY|keydown|ancestor|postInit|preBind|dir|WymClassOpera|arr|str|WymCssParser|LEXER_UNMATCHED|_closing|_insert_|lang|parsed|defaults|inside|xml|link|sTmp|find|INDEX|newNode|string|default|KEY|classesItems|parse|x2a|parser|pre||_mode|addPattern|_patterns|baseline|bottom||middle|valign|charoff|justify|center|align|click|doc|sBodyHtml|tagname|sClass|oClass|sContainer|sTool|iframeHtml|WymClass|sup|_tag_stack|focus|createRange|setFocusToNode|FORMAT_BLOCK|designMode|_newLine|catch|try|item|trim|rExp|jqexpr|data|dialogStyles|css_settings|object|WymCss|addSpecialPattern|td|textarea|_invokeParser|_case|width|onload|basePath|dialog|sVal|console|helper|pop|childNodes|_html|direction|addCssRules|styleSheets|parentsOrSelf|select||caretPos|filter|Ignore|extend|cite|base|init|_stack|count|except|index|alt|tag_attributes|delimiter|close|mousedown|sUrl|INIT_DIALOG|SKINS|skinPath|CssParser|wymeditor|TH|oContainer|oTool|wym_section|getValidTagAttributes|PRE|addCssRule|nodeName|BLOCKS|bindEvents|initIframe|_class|selection|parents|parentElement|paste|elem|_has_title|LEXER_EXIT|z0|after|avoided_tags|th|now_on_tag|img|colgroup|_tag_attributes|_non_tag|action|special|new_mode|accept|StateStack|_regex|_possible_tag_attributes|next|hidden|get|open|createElement|submitSelector|titleSelector|TITLE|sStamp|dialogImageSelector||DIALOG_LINK|dialogType|update|stringDelimiterRight|stringDelimiterLeft|toggleClass|BLOCKQUOTE|Array|TD|aClasses|wym_dialog|wym_cancel|wym_submit|wym_dialog_type|getTagForStyle|openBlockTag|ctrlKey|shiftKey|MAIN_CONTAINERS|UL|OL|LI|OUTDENT|INDENT|join|enableDesignMode|iframeBodySelector|saveCaret|substring|expressions|style_details|_in_style|WymCssStyle|_Lexer|last_tag|skiped_attribute_values|skiped_attributes|addCss|addScript|addComment|getTagReplacements|address|afterParsing|beforeParsing|option|tr|col|bdo|abbr|prop|_current_attribute|SingleQuotedAttribute|DoubleQuotedAttribute|LEXER_SPECIAL|normalizeTag|expected_tag|LEXER_ENTER|OpeningTag||_addNonTagBlock|handler|unmatched|while|case_sensitive|regex|tag_defaults|only|valid_attributes|rows|cols|screen|charset|height|meta|icon|shortcut|subsection|section|prev|help|glossary|copyright|contents|chapter|bookmark|appendix|alternate|rel|escape_quotes|_entitiesDiv|altSelector|ALT|SRC|srcSelector|SKINS_DEFAULT_CSS|loadSkin|grep|packed|min|pack|jquery|INSERT_HTML|htmlSelector|jQueryPath|wymPath|PREVIEW|DIALOG_PASTE|DIALOG_TABLE|DIALOG_IMAGE|dialogFeatures|_element|STRINGS|bFound|firstNode|nodes|aTypes|NAME|TOOL_TITLE|HTML|iframeBasePath|browser|Cancel|Submit|collapse|contentDocument|224|BR|ITALIC|BOLD|cssRules|insertRule|startNode|insert|pasteHTML|ret|indexOf|pos|nodeType|feedback_style|parts|split|WymCssFeedbackStyle|WymCssComment|_0|mapHandler|_getClosingTagContent|_insertContentWhenClosingTag|last_tag_opened|block_tags|isBlockTag|_avoiding_tags_implicitly|del|acronym|entity|entities|thead|tfoot|tbody|noscript|circ|_callCloseTagListener|_autoCloseUnclosed|_increaseOpenTagCounter|_callOpenTagListener|Css|Script|Comment|unparsed_character_count|getCurrent|_parser|enter|leave|_labels|default_attributes|default_attributes_and_events|_attributes|_events|readonly|all|media|javascript|http|ltr|toString|innerHTML|_formated_options|tagOptions|postInitDialog|newRow|iCols|iRows|INSERT_IMAGE|HREF|CREATE_LINK|hrefSelector|preInitDialog|responseText|async|url|ajax|found|images|wDialog|replaceStrings|DIALOG_BODY|DIALOG_TITLE|JQUERY_PATH|WYM_PATH|CSS_PATH|DIRECTION|hasfocus|htmlValSelector|error|langPath|switchTo|lgt|H6|H5|H4|H3|H2|H1|sName|sContainers|CONTAINERS_ITEMS|CONTAINER_CLASS|CONTAINER_TITLE|CONTAINER_NAME|aContainers|sClasses|CLASSES_ITEMS|CLASS_TITLE|CLASS_NAME|sTools|TOOLS_ITEMS|TOOL_CLASS|TOOL_NAME|aTools|STATUS|IFRAME|CLASSES|CONTAINERS|TOOLS|LOGO|IFRAME_BASE_PATH|WYM_INDEX|SaxListener|preInit|Paste_From_Word|indent|Table|wym_title|Image|Link|wym_classes|wym_containers|wym_tools|wym_iframe|Preview|Unlink|Outdent|Indent|names|super|italic|bold|addRange|selectNode|DIV|metaKey|remove|children|INSERT_UNORDEREDLIST|INSERT_ORDEREDLIST|DELETE|BACKSPACE|DOWN|RIGHT|UP|LEFT|ENTER|off|unwrap|wrap|_initialized|returnValue|event|onclick|onkeyup|onfocus|findByName|inserted||substr|rep|old|slice|isPhantomNode|expr|addStyleSetting|WymCssStyleDeclaration|WymCssLexer|insertContentAfterClosingTag|fixNestingBeforeOpeningBlockTag|before|inline_tags|isInlineTag|allowStylingTagsAndAttributes|MsoNormal|avoidStylingTagsAndAttributes|closeUnopenedTag|closeUnknownTag|closeBlockTag|openUnknownTag|inlineTag|addContent|getResult|removeBrInPre|nbsp|160|removeEmptyTags|joinRepeatedEntities|replaceNamedEntities|shouldCloseTagAutomatically|tt|small|samp|optgroup|map|kbd||ins|dfn|code|caption|big|area|equiv|image|not|XhtmlValidator|UnquotedAttribute|TagAttributes|counter|autoCloseUnclosedBeforeTagClosing|autoCloseUnclosedBeforeNewOpening|_decreaseOpenTagCounter|ClosingTag|_tag|Listener|addAttributeTokens|addInTagDeclarationTokens|addTagTokens|addCssTokens|addScriptTokens|addCommentTokens|addTokens|unparsed|_reduce|is_match|current|_decodeSpecial|_|_isSpecialMode|__exit|_isModeEnd|LEXER_MATCHED|_dispatchTokens|_getPerlMatchingFlags|Tk7|Tk6|Tk5|Tk4|Tk3|Tk2|Tk1|_untokenizeRegex|_tokenizeRegex|_getCompoundedRegex|subject|getDefaultAttributesAndEventsForTag|getUniqueAttributesAndEventsForTag|getPossibleTagAttributes|validateAttribute|doesAttributeNeedsValidation|getDefaultAttributesAndEventsForTags|isValidTag|parseInt|possible_attributes|rowgroup|rowspan|headers|colspan|axis|summary|border|box|frame|braille|print|projection|multiple|defer|valuetype|usemap|home|rev|hreflang|datetime|submit|reset|file|checked|profile|rtl|polygon|poly|circle|rectangle|rect|shape|coords|designates|keyboard|tabindex|accesskey|language|escapeEntities|escapeOnce|escaped|_fixDoubleEscape|cancelSelector|previewSelector|dialogPreviewSelector|sText|textSelector|dialogPasteSelector|append|summarySelector|sCaption||newCaption|captionSelector|TABLE|colsSelector|rowsSelector|dialogTableSelector|dialogLinkSelector||uniqueStamp|dialogTypeSelector|SKINS_DEFAULT_JS|initSkin|addClass|loadCss|each||appendChild|IMG|configureEditorUsingRawCss|skins|computeJqueryPath|computeWymPath|computeBasePath|sData|now|toggleHtml|encloseString|BASE_PATH|bodyHtml|dialogPreviewHtml|dialogPasteHtml|dialogTableHtml|dialogImageHtml|dialogLinkHtml|features|sMessage|statusSelector|STRING|CLASS|insertBefore|dialogFeaturesPreview|TOGGLE_HTML|PASTE|INSERT_TABLE|exec|updateEvent|updateSelector|classSelector|containerSelector|toolSelector|hide|containersItemHtml|containersItems|classesItemHtml|toolsItemHtml|toolsItems|statusHtml|htmlHtml|classesHtml|containersHtml|toolsHtml|logoHtml|wym_dialog_preview|wym_text|wym_dialog_paste|wym_cols|wym_rows|wym_summary|wym_caption|wym_dialog_table|||Title|wym_alt|wym_src|URL|wym_dialog_image|wym_href|wym_dialog_link|xhtml1|DTD|org|www|300|560|resizable|toolbar|titlebar|menubar|wym_html_val|wym_status|wym_html|wym_box|ToggleHtml|Paste|InsertTable|InsertImage|CreateLink|Redo|Undo|InsertUnorderedList|InsertOrderedList|Subscript|Superscript|Italic|Bold|IFRAME_DEFAULT|LANG_DEFAULT_PATH|SKINS_DEFAULT_PATH|apple|InsertLineBreak|replaceWith|startContainer|getRangeAt|styleWithCSS|preventDefault|character|move|moveToElementText|Cut|addRule|getData|clipboardData|onpaste|onbeforepaste|onbeforedeactivate|className|insertAt|isPhantomString|toUpperCase|end|x7d|x7b||x2e|z1|sa|insertContentBeforeClosingTag|main1|remove_embeded_styles|remove_scripts|remove_comments|fromCharCode|String|gmi|extends|9830|diams|9829|hearts|9827|clubs|9824|spades|9674|loz|9002|rang|9001|8971|rfloor|8970|lfloor|8969|rceil|8968|lceil|8901|sdot|8869|perp|8855|otimes|8853|oplus|8839|supe|8838|sube|8836|nsub|8835|8834|8805|8804|8801||8800|8776|asymp||8773|cong|8764||sim|8756|there4|8747|int|8746|cup|8745|cap|8744|8743|and|8736|ang|8734|infin|8733|8730|radic|8727|lowast|8722|minus|8721|sum|8719|prod|8715|8713|notin|8712|isin|8711|nabla|8709|empty|8707|exist|8706|part|||||||8704|forall|8660|hArr|8659|dArr|8658|rArr|8657|uArr|8656|lArr|8629|crarr|8596|harr|8595|darr|8594|rarr||8593|uarr|8592|larr|8501|alefsym|8482|trade|8476|real|8472|weierp|8465|8364|euro|8260|frasl|8254|oline|8250|rsaquo|8249|lsaquo|8243|Prime|8242|prime|8240|permil|8230|hellip|8226|bull|8225|Dagger|8224|dagger|8222|bdquo|8221|rdquo|8220|ldquo|8218|sbquo|8217|rsquo||8216|||lsquo|8212|mdash|8211|ndash|8207||rlm|8206|lrm|8205||zwj|8204|zwnj|8201|thinsp|8195|emsp|8194|ensp|982|piv|978|upsih|977|thetasym|969|omega|968|psi|967|chi|966|phi|965|upsilon|964|tau|963|sigma|962|sigmaf|961|rho|960|959|omicron|958|xi|957|956|955|lambda|954|kappa|953|iota|952|theta|951|eta|950|zeta|949|epsilon|948|delta|947|gamma|946|beta|945||alpha|937|Omega|936|Psi|935|Chi|934|Phi|933|Upsilon|932|Tau|931|Sigma|929|Rho|928|Pi|927|Omicron|926|Xi|925|Nu|924|Mu|923|Lambda|922|Kappa|921|Iota|920|Theta|919|Eta|918|Zeta|917|Epsilon|916|Delta|915|Gamma|914|Beta|913|Alpha|732|tilde|710|402|fnof|376|Yuml|353|scaron|352|Scaron|339|oelig|338|OElig|255|yuml|254|thorn|253|yacute|252|uuml|251|ucirc|250|uacute|249|ugrave|248|oslash|247|divide|246|ouml|245|otilde|244|ocirc|243|oacute|242|ograve|241|ntilde|240|eth|239|iuml|238|icirc|237|iacute|236|igrave|235|euml|234|ecirc|233||eacute|232|egrave||231|ccedil|230|aelig|229|aring|228|auml|227|atilde|226|acirc|225|aacute|agrave|223|szlig|222|THORN|221|Yacute|220|Uuml|219|Ucirc|218|Uacute|217|Ugrave|216|Oslash|215|times|214|Ouml|213|Otilde|212|Ocirc|211|Oacute|210|Ograve|209|Ntilde|208|ETH|207|Iuml|206|Icirc|205|Iacute|204|Igrave|203|Euml|202|Ecirc|201|Eacute||200|Egrave|199|Ccedil|198|AElig|197|Aring|196|Auml|195||Atilde|194|Acirc|193|Aacute|192|Agrave|191|iquest|190|frac34|189|frac12|188|frac14|187|raquo|186|ordm|185|sup1|184|cedil|183|middot|182|para|181|micro|180|acute|179|sup3|178|sup2|177|plusmn|176|deg|175|macr|174|reg|173|shy||172|171|laquo||170|ordf|169|copy|168||uml|167|sect||166||brvbar|165|yen|164|curren|163|pound|162|cent|161|iexcl|last_tag_attributes|com|microsoft|schemas|urn|_current_match|_last_match|_matches|boolean|concat|events|continue|groups|none|rules|vsides|rhs|lhs|hsides|below|above|void|cellspacing|cellpadding|aural|handheld|tv|tty|vbs|vbscript|jscript|ecmascript|ref|standby|declare|codetype|codebase|classid|archive|scheme|cookie||set||refresh|expires|speech||radio|password|checkbox|maxlength|longdesc|ismap|xmlns|post|method|enctype|nohref|onmouseup|onmouseout|onmouseover|onmousemove|onmousedown|ondblclick|mouse|onkeypress|onkeydown|frameset|onblur|onselect|onreset|onsubmit|onchange|onunload|core|charAt|parseAttributes|039|quot|textContent|shift|formated_options|amp|CDATA|cdataSection|contentTag|insertCell|insertRow|createCaption|newCol|opener|wym_skin_|stopPropagation|ownerDocument|getElementsByTagName|computeCssPath|getTime|Date|toggle||write|parsing|replaceChild|removeAttr|removeChild|firstChild|visible|ready|blur|wym_box_|safari|opera|mozilla|msie|wymeditors|Number_Of_Cols|Number_Of_Rows|Summary|Caption|Alternative_Text|dtd|strict|TR|w3|EN|Strict|XHTML|W3C|PUBLIC|DOCTYPE|yes|scrollbars|wymupdate|iframeSelector|classesSelector|containersSelector|toolsListSelector|toolsSelector|boxSelector|Source_Code|Status|Classes|wym_containers_th|Table_Header|wym_containers_blockquote|Blockquote|wym_containers_pre|Preformatted|wym_containers_h6|Heading_6|wym_containers_h5|Heading_5|wym_containers_h4|Heading_4|wym_containers_h3|Heading_3|wym_containers_h2|Heading_2|wym_containers_h1|Heading_1|wym_containers_p|Paragraph|Containers|wym_tools_preview|wym_tools_html|wym_tools_paste|wym_tools_table|wym_tools_image|wym_tools_unlink|wym_tools_link|wym_tools_redo|wym_tools_undo|wym_tools_outdent|wym_tools_indent|wym_tools_unordered_list|Unordered_List|wym_tools_ordered_list|Ordered_List|wym_tools_subscript|wym_tools_superscript|wym_tools_emphasis|Emphasis|wym_tools_strong|Strong|Tools|parent|wymiframe|wym_wymeditor_link|wym_area_bottom|wym_area_main|wym_area_right|wym_area_left|wym_area_top|TEXT|ATTRIBUTE|ELEMENT|NODE|CURSOR|HOME|END|UNLINK|FormatBlock|InsertHTML|Wym_Dialog_Body|Wym_Dialog_Title|Wym_Status|Wym_Iframe|Wym_Html|Wym_Container_Class|Wym_Containers_Title|Wym_Container_Name|Wym_Containers_Items|Wym_Containers|Wym_Class_Title|Wym_Class_Name|Wym_Classes_Items|Wym_Classes|Wym_Tool_Class|Wym_Tool_Title||Wym_Tool_Name|Wym_Tools_Items|Wym_Tools|Wym_Logo|Wym_Direction|Wym_Jquery_Path|Wym_Iframe_Base_Path|Wym_Wym_Path|Wym_Css_Path|Wym_Base_Path|wym_index|Wym_Index|rc1|VERSION|profileEnd|trace|timeEnd|time|groupEnd|group|dirxml|assert|warn|info|debug|log|firebug'.split('|'),0,{}))
diff --git a/wymeditor/lang/bg.js b/wymeditor/lang/bg.js
new file mode 100644 (file)
index 0000000..576bca5
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['bg'] = {
+    Strong:           'Получер',
+    Emphasis:         'Курсив',
+    Superscript:      'Горен индекс',
+    Subscript:        'Долен индекс',
+    Ordered_List:     'Подреден списък',
+    Unordered_List:   'Неподреден списък',
+    Indent:           'Блок навътре',
+    Outdent:          'Блок навън',
+    Undo:             'Стъпка назад',
+    Redo:             'Стъпка напред',
+    Link:             'Създай хипервръзка',
+    Unlink:           'Премахни хипервръзката',
+    Image:            'Изображение',
+    Table:            'Таблица',
+    HTML:             'HTML',
+    Paragraph:        'Абзац',
+    Heading_1:        'Заглавие 1',
+    Heading_2:        'Заглавие 2',
+    Heading_3:        'Заглавие 3',
+    Heading_4:        'Заглавие 4',
+    Heading_5:        'Заглавие 5',
+    Heading_6:        'Заглавие 6',
+    Preformatted:     'Преформатиран',
+    Blockquote:       'Цитат',
+    Table_Header:     'Заглавие на таблицата',
+    URL:              'URL',
+    Title:            'Заглавие',
+    Alternative_Text: 'Алтернативен текст',
+    Caption:          'Етикет',
+    Summary:          'Общо',
+    Number_Of_Rows:   'Брой редове',
+    Number_Of_Cols:   'Брой колони',
+    Submit:           'Изпрати',
+    Cancel:           'Отмени',
+    Choose:           'Затвори',
+    Preview:          'Предварителен преглед',
+    Paste_From_Word:  'Вмъкни от MS WORD',
+    Tools:            'Инструменти',
+    Containers:       'Контейнери',
+    Classes:          'Класове',
+    Status:           'Статус',
+    Source_Code:      'Източник, код'
+};
+
diff --git a/wymeditor/lang/ca.js b/wymeditor/lang/ca.js
new file mode 100644 (file)
index 0000000..c342406
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['ca'] = {
+    Strong:           'Ressaltar',
+    Emphasis:         'Emfatitzar',
+    Superscript:      'Superindex', 
+    Subscript:        'Subindex',
+    Ordered_List:     'Llistat ordenat',
+    Unordered_List:   'Llistat sense ordenar',
+    Indent:           'Indentat',
+    Outdent:          'Sense indentar',
+    Undo:             'Desfer',
+    Redo:             'Refer',
+    Link:             'Enllaçar',
+    Unlink:           'Eliminar enllaç',
+    Image:            'Imatge',
+    Table:            'Taula',
+    HTML:             'HTML',
+    Paragraph:        'Paràgraf',
+    Heading_1:        'Capçalera 1',
+    Heading_2:        'Capçalera 2',
+    Heading_3:        'Capçalera 3',
+    Heading_4:        'Capçalera 4',
+    Heading_5:        'Capçalera 5',
+    Heading_6:        'Capçalera 6',
+    Preformatted:     'Pre-formatejat',
+    Blockquote:       'Cita',
+    Table_Header:     'Capçalera de la taula',
+    URL:              'URL',
+    Title:            'Títol',
+    Alternative_Text: 'Text alternatiu',
+    Caption:          'Llegenda',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Nombre de files',
+    Number_Of_Cols:   'Nombre de columnes',
+    Submit:           'Enviar',
+    Cancel:           'Cancel·lar',
+    Choose:           'Triar',
+    Preview:          'Vista prèvia',
+    Paste_From_Word:  'Pegar des de Word',
+    Tools:            'Eines',
+    Containers:       'Contenidors',
+    Classes:          'Classes',
+    Status:           'Estat',
+    Source_Code:      'Codi font'
+};
+
diff --git a/wymeditor/lang/cs.js b/wymeditor/lang/cs.js
new file mode 100644 (file)
index 0000000..3939d71
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['cs'] = {
+    Strong:           'Tučné',
+    Emphasis:         'Kurzíva',
+    Superscript:      'Horní index',
+    Subscript:        'Dolní index',
+    Ordered_List:     'Číslovaný seznam',
+    Unordered_List:   'Nečíslovaný seznam',
+    Indent:           'Zvětšit odsazení',
+    Outdent:          'Zmenšit odsazení',
+    Undo:             'Zpět',
+    Redo:             'Znovu',
+    Link:             'Vytvořit odkaz',
+    Unlink:           'Zrušit odkaz',
+    Image:            'Obrázek',
+    Table:            'Tabulka',
+    HTML:             'HTML',
+    Paragraph:        'Odstavec',
+    Heading_1:        'Nadpis 1. úrovně',
+    Heading_2:        'Nadpis 2. úrovně',
+    Heading_3:        'Nadpis 3. úrovně',
+    Heading_4:        'Nadpis 4. úrovně',
+    Heading_5:        'Nadpis 5. úrovně',
+    Heading_6:        'Nadpis 6. úrovně',
+    Preformatted:     'Předformátovaný text',
+    Blockquote:       'Citace',
+    Table_Header:     'Hlavičková buňka tabulky',
+    URL:              'Adresa',
+    Title:            'Text po najetí myší',
+    Alternative_Text: 'Text pro případ nezobrazení obrázku',
+    Caption:          'Titulek tabulky',
+    Summary:          'Shrnutí obsahu',
+    Number_Of_Rows:   'Počet řádek',
+    Number_Of_Cols:   'Počet sloupců',
+    Submit:           'Vytvořit',
+    Cancel:           'Zrušit',
+    Choose:           'Vybrat',
+    Preview:          'Náhled',
+    Paste_From_Word:  'Vložit z Wordu',
+    Tools:            'Nástroje',
+    Containers:       'Typy obsahu',
+    Classes:          'Třídy',
+    Status:           'Stav',
+    Source_Code:      'Zdrojový kód'
+};
+
diff --git a/wymeditor/lang/de.js b/wymeditor/lang/de.js
new file mode 100644 (file)
index 0000000..a1e01e1
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['de'] = {
+    Strong:           'Fett',
+    Emphasis:         'Kursiv',
+    Superscript:      'Text hochstellen',
+    Subscript:        'Text tiefstellen',
+    Ordered_List:     'Geordnete Liste einfügen',
+    Unordered_List:   'Ungeordnete Liste einfügen',
+    Indent:           'Einzug erhöhen',
+    Outdent:          'Einzug vermindern',
+    Undo:             'Befehle rückgängig machen',
+    Redo:             'Befehle wiederherstellen',
+    Link:             'Hyperlink einfügen',
+    Unlink:           'Hyperlink entfernen',
+    Image:            'Bild einfügen',
+    Table:            'Tabelle einfügen',
+    HTML:             'HTML anzeigen/verstecken',
+    Paragraph:        'Absatz',
+    Heading_1:        'Überschrift 1',
+    Heading_2:        'Überschrift 2',
+    Heading_3:        'Überschrift 3',
+    Heading_4:        'Überschrift 4',
+    Heading_5:        'Überschrift 5',
+    Heading_6:        'Überschrift 6',
+    Preformatted:     'Vorformatiert',
+    Blockquote:       'Zitat',
+    Table_Header:     'Tabellenüberschrift',
+    URL:              'URL',
+    Title:            'Titel',
+    Alternative_Text: 'Alternativer Text',
+    Caption:          'Tabellenüberschrift',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Anzahl Zeilen',
+    Number_Of_Cols:   'Anzahl Spalten',
+    Submit:           'Absenden',
+    Cancel:           'Abbrechen',
+    Choose:           'Auswählen',
+    Preview:          'Vorschau',
+    Paste_From_Word:  'Aus Word einfügen',
+    Tools:            'Werkzeuge',
+    Containers:       'Inhaltstyp',
+    Classes:          'Klassen',
+    Status:           'Status',
+    Source_Code:      'Quellcode'
+};
+
diff --git a/wymeditor/lang/en.js b/wymeditor/lang/en.js
new file mode 100644 (file)
index 0000000..1e351e5
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['en'] = {
+    Strong:           'Strong',
+    Emphasis:         'Emphasis',
+    Superscript:      'Superscript',
+    Subscript:        'Subscript',
+    Ordered_List:     'Ordered List',
+    Unordered_List:   'Unordered List',
+    Indent:           'Indent',
+    Outdent:          'Outdent',
+    Undo:             'Undo',
+    Redo:             'Redo',
+    Link:             'Link',
+    Unlink:           'Unlink',
+    Image:            'Image',
+    Table:            'Table',
+    HTML:             'HTML',
+    Paragraph:        'Paragraph',
+    Heading_1:        'Heading 1',
+    Heading_2:        'Heading 2',
+    Heading_3:        'Heading 3',
+    Heading_4:        'Heading 4',
+    Heading_5:        'Heading 5',
+    Heading_6:        'Heading 6',
+    Preformatted:     'Preformatted',
+    Blockquote:       'Blockquote',
+    Table_Header:     'Table Header',
+    URL:              'URL',
+    Title:            'Title',
+    Alternative_Text: 'Alternative text',
+    Caption:          'Caption',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Number of rows',
+    Number_Of_Cols:   'Number of cols',
+    Submit:           'Submit',
+    Cancel:           'Cancel',
+    Choose:           'Choose',
+    Preview:          'Preview',
+    Paste_From_Word:  'Paste from Word',
+    Tools:            'Tools',
+    Containers:       'Containers',
+    Classes:          'Classes',
+    Status:           'Status',
+    Source_Code:      'Source code'
+};
+
diff --git a/wymeditor/lang/es.js b/wymeditor/lang/es.js
new file mode 100644 (file)
index 0000000..cdb03c1
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['es'] = {
+    Strong:           'Resaltar',
+    Emphasis:         'Enfatizar',
+    Superscript:      'Superindice',
+    Subscript:        'Subindice',
+    Ordered_List:     'Lista ordenada',
+    Unordered_List:   'Lista sin ordenar',
+    Indent:           'Indentado',
+    Outdent:          'Sin indentar',
+    Undo:             'Deshacer',
+    Redo:             'Rehacer',
+    Link:             'Enlazar',
+    Unlink:           'Eliminar enlace',
+    Image:            'Imagen',
+    Table:            'Tabla',
+    HTML:             'HTML',
+    Paragraph:        'Párrafo',
+    Heading_1:        'Cabecera 1',
+    Heading_2:        'Cabecera 2',
+    Heading_3:        'Cabecera 3',
+    Heading_4:        'Cabecera 4',
+    Heading_5:        'Cabecera 5',
+    Heading_6:        'Cabecera 6',
+    Preformatted:     'Preformateado',
+    Blockquote:       'Cita',
+    Table_Header:     'Cabecera de la tabla',
+    URL:              'URL',
+    Title:            'Título',
+    Alternative_Text: 'Texto alternativo',
+    Caption:          'Leyenda',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Número de filas',
+    Number_Of_Cols:   'Número de columnas',
+    Submit:           'Enviar',
+    Cancel:           'Cancelar',
+    Choose:           'Seleccionar',
+    Preview:          'Vista previa',
+    Paste_From_Word:  'Pegar desde Word',
+    Tools:            'Herramientas',
+    Containers:       'Contenedores',
+    Classes:          'Clases',
+    Status:           'Estado',
+    Source_Code:      'Código fuente'
+};
+
diff --git a/wymeditor/lang/fa.js b/wymeditor/lang/fa.js
new file mode 100644 (file)
index 0000000..9d70fcb
--- /dev/null
@@ -0,0 +1,46 @@
+//Translation To Persian: Ghassem Tofighi (http://ght.ir)
+WYMeditor.STRINGS['fa'] = {
+    Strong:           'پررنگ',//Strong
+    Emphasis:         'ایتالیک',//Emphasis
+    Superscript:      'بالانويس‌ ',//Superscript
+    Subscript:        'زيرنويس‌',//Subscript
+    Ordered_List:     'لیست مرتب',//Ordered List
+    Unordered_List:   'لیست نامرتب',//Unordered List
+    Indent:           'افزودن دندانه',//Indent
+    Outdent:          'کاهش دندانه',//Outdent
+    Undo:             'واگردانی',//Undo
+    Redo:             'تکرار',//Redo
+    Link:             'ساختن پیوند',//Link
+    Unlink:           'برداشتن پیوند',//Unlink
+    Image:            'تصویر',//Image
+    Table:            'جدول',//Table
+    HTML:             'HTML',//HTML
+    Paragraph:        'پاراگراف',//Paragraph
+    Heading_1:        'سرتیتر ۱',//Heading 1
+    Heading_2:        'سرتیتر ۲',//Heading 2
+    Heading_3:        'سرتیتر ۳',//Heading 3
+    Heading_4:        'سرتیتر ۴',//Heading 4
+    Heading_5:        'سرتیتر ۵',//Heading 5
+    Heading_6:        'سرتیتر ۶',//Heading 6
+    Preformatted:     'قالب آماده',//Preformatted
+    Blockquote:       'نقل قول',//Blockquote
+    Table_Header:     'سرجدول',//Table Header
+    URL:              'آدرس اینترنتی',//URL
+    Title:            'عنوان',//Title
+    Alternative_Text: 'متن جایگزین',//Alternative text
+    Caption:          'عنوان',//Caption
+    Summary:          'Summary',
+    Number_Of_Rows:   'تعداد سطرها',//Number of rows
+    Number_Of_Cols:   'تعداد ستون‌ها',//Number of cols
+    Submit:           'فرستادن',//Submit
+    Cancel:           'لغو',//Cancel
+    Choose:           'انتخاب',//Choose
+    Preview:          'پیش‌نمایش',//Preview
+    Paste_From_Word:  'انتقال از ورد',//Paste from Word
+    Tools:            'ابزار',//Tools
+    Containers:       '‌قالب‌ها',//Containers
+    Classes:          'کلاس‌ها',//Classes
+    Status:           'وضعیت',//Status
+    Source_Code:      'کد مبدأ'//Source code
+};
+
diff --git a/wymeditor/lang/fi.js b/wymeditor/lang/fi.js
new file mode 100644 (file)
index 0000000..fe1eab4
--- /dev/null
@@ -0,0 +1,44 @@
+WYMeditor.STRINGS['fi'] = {
+    Strong:           'Lihavoitu',
+    Emphasis:         'Korostus',
+    Superscript:      'Yläindeksi',
+    Subscript:        'Alaindeksi',
+    Ordered_List:     'Numeroitu lista',
+    Unordered_List:   'Luettelomerkit',
+    Indent:           'Suurenna sisennystä',
+    Outdent:          'Pienennä sisennystä',
+    Undo:             'Kumoa',
+    Redo:             'Toista',
+    Link:             'Linkitä',
+    Unlink:           'Poista linkitys',
+    Image:            'Kuva',
+    Table:            'Taulukko',
+    HTML:             'HTML',
+    Paragraph:        'Kappale',
+    Heading_1:        'Otsikko 1',
+    Heading_2:        'Otsikko 2',
+    Heading_3:        'Otsikko 3',
+    Heading_4:        'Otsikko 4',
+    Heading_5:        'Otsikko 5',
+    Heading_6:        'Otsikko 6',
+    Preformatted:     'Esimuotoilu',
+    Blockquote:       'Sitaatti',
+    Table_Header:     'Taulukon otsikko',
+    URL:              'URL',
+    Title:            'Otsikko',
+    Alternative_Text: 'Vaihtoehtoinen teksti',
+    Caption:          'Kuvateksti',
+    Summary:          'Yhteenveto',
+    Number_Of_Rows:   'Rivien määrä',
+    Number_Of_Cols:   'Palstojen määrä',
+    Submit:           'Lähetä',
+    Cancel:           'Peruuta',
+    Choose:           'Valitse',
+    Preview:          'Esikatsele',
+    Paste_From_Word:  'Tuo Wordista',
+    Tools:            'Työkalut',
+    Containers:       'Muotoilut',
+    Classes:          'Luokat',
+    Status:           'Tila',
+    Source_Code:      'Lähdekoodi'
+};
diff --git a/wymeditor/lang/fr.js b/wymeditor/lang/fr.js
new file mode 100644 (file)
index 0000000..9b6deb9
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['fr'] = {
+    Strong:           'Mise en évidence',
+    Emphasis:         'Emphase',
+    Superscript:      'Exposant',
+    Subscript:        'Indice',
+    Ordered_List:     'Liste Ordonnée',
+    Unordered_List:   'Liste Non-Ordonnée',
+    Indent:           'Imbriqué',
+    Outdent:          'Non-imbriqué',
+    Undo:             'Annuler',
+    Redo:             'Rétablir',
+    Link:             'Lien',
+    Unlink:           'Supprimer le Lien',
+    Image:            'Image',
+    Table:            'Tableau',
+    HTML:             'HTML',
+    Paragraph:        'Paragraphe',
+    Heading_1:        'Titre 1',
+    Heading_2:        'Titre 2',
+    Heading_3:        'Titre 3',
+    Heading_4:        'Titre 4',
+    Heading_5:        'Titre 5',
+    Heading_6:        'Titre 6',
+    Preformatted:     'Pré-formatté',
+    Blockquote:       'Citation',
+    Table_Header:     'Cellule de titre',
+    URL:              'URL',
+    Title:            'Titre',
+    Alternative_Text: 'Texte alternatif',
+    Caption:          'Légende',
+    Summary:          'Résumé',
+    Number_Of_Rows:   'Nombre de lignes',
+    Number_Of_Cols:   'Nombre de colonnes',
+    Submit:           'Envoyer',
+    Cancel:           'Annuler',
+    Choose:           'Choisir',
+    Preview:          'Prévisualisation',
+    Paste_From_Word:  'Copier depuis Word',
+    Tools:            'Outils',
+    Containers:       'Type de texte',
+    Classes:          'Type de contenu',
+    Status:           'Infos',
+    Source_Code:      'Code source'
+};
+
diff --git a/wymeditor/lang/he.js b/wymeditor/lang/he.js
new file mode 100644 (file)
index 0000000..97c9675
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['he'] = {
+    Strong:           'חזק',
+    Emphasis:         'מובלט',
+    Superscript:      'כתב עילי',
+    Subscript:        'כתב תחתי',
+    Ordered_List:     'רשימה ממוספרת',
+    Unordered_List:   'רשימה לא ממוספרת',
+    Indent:           'הזחה פנימה',
+    Outdent:          'הזחה החוצה',
+    Undo:             'בטל פעולה',
+    Redo:             'בצע מחדש פעולה',
+    Link:             'קישור',
+    Unlink:           'בטל קישור',
+    Image:            'תמונה',
+    Table:            'טבלה',
+    HTML:             'קוד HTML',
+    Paragraph:        'פסקה',
+    Heading_1:        'כותרת 1 ; תג &lt;h1&gt;',
+    Heading_2:        'כותרת 2 ; תג &lt;h2&gt;',
+    Heading_3:        'כותרת 3 ; תג &lt;h3&gt;',
+    Heading_4:        'כותרת 4 ; תג &lt;h4&gt;',
+    Heading_5:        'כותרת 5 ; תג &lt;h5&gt;',
+    Heading_6:        'כותרת 6 ; תג &lt;h6&gt;',
+    Preformatted:     'משמר רווחים',
+    Blockquote:       'ציטוט',
+    Table_Header:     'כותרת טבלה',
+    URL:              'קישור (URL)',
+    Title:            'כותרת',
+    Alternative_Text: 'טקסט חלופי',
+    Caption:          'כותרת',
+    Summary:          'סיכום',
+    Number_Of_Rows:   'מספר שורות',
+    Number_Of_Cols:   'מספר טורים',
+    Submit:           'שלח',
+    Cancel:           'בטל',
+    Choose:           'בחר',
+    Preview:          'תצוגה מקדימה',
+    Paste_From_Word:  'העתק מ-Word',
+    Tools:            'כלים',
+    Containers:       'מיכלים',
+    Classes:          'מחלקות',
+    Status:           'מצב',
+    Source_Code:      'קוד מקור'
+};
+
diff --git a/wymeditor/lang/hr.js b/wymeditor/lang/hr.js
new file mode 100644 (file)
index 0000000..193e31a
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['hr'] = {
+    Strong:           'Podebljano',
+    Emphasis:         'Naglašeno',
+    Superscript:      'Iznad',
+    Subscript:        'Ispod',
+    Ordered_List:     'Pobrojana lista',
+    Unordered_List:   'Nepobrojana lista',
+    Indent:           'Uvuci',
+    Outdent:          'Izvuci',
+    Undo:             'Poništi promjenu',
+    Redo:             'Ponovno promjeni',
+    Link:             'Hiperveza',
+    Unlink:           'Ukloni hipervezu',
+    Image:            'Slika',
+    Table:            'Tablica',
+    HTML:             'HTML',
+    Paragraph:        'Paragraf',
+    Heading_1:        'Naslov 1',
+    Heading_2:        'Naslov 2',
+    Heading_3:        'Naslov 3',
+    Heading_4:        'Naslov 4',
+    Heading_5:        'Naslov 5',
+    Heading_6:        'Naslov 6',
+    Preformatted:     'Unaprijed formatirano',
+    Blockquote:       'Citat',
+    Table_Header:     'Zaglavlje tablice',
+    URL:              'URL',
+    Title:            'Naslov',
+    Alternative_Text: 'Alternativni tekst',
+    Caption:          'Zaglavlje',
+    Summary:          'Sažetak',
+    Number_Of_Rows:   'Broj redova',
+    Number_Of_Cols:   'Broj kolona',
+    Submit:           'Snimi',
+    Cancel:           'Odustani',
+    Choose:           'Izaberi',
+    Preview:          'Pregled',
+    Paste_From_Word:  'Zalijepi iz Word-a',
+    Tools:            'Alati',
+    Containers:       'Kontejneri',
+    Classes:          'Klase',
+    Status:           'Status',
+    Source_Code:      'Izvorni kod'
+};
+
diff --git a/wymeditor/lang/hu.js b/wymeditor/lang/hu.js
new file mode 100644 (file)
index 0000000..a8cdbc6
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['hu'] = {
+    Strong:           'Félkövér',
+    Emphasis:         'Kiemelt',
+    Superscript:      'Felső index',
+    Subscript:        'Alsó index',
+    Ordered_List:     'Rendezett lista',
+    Unordered_List:   'Rendezetlen lista',
+    Indent:           'Bekezdés',
+    Outdent:          'Bekezdés törlése',
+    Undo:             'Visszavon',
+    Redo:             'Visszaállít',
+    Link:             'Link',
+    Unlink:           'Link törlése',
+    Image:            'Kép',
+    Table:            'Tábla',
+    HTML:             'HTML',
+    Paragraph:        'Bekezdés',
+    Heading_1:        'Címsor 1',
+    Heading_2:        'Címsor 2',
+    Heading_3:        'Címsor 3',
+    Heading_4:        'Címsor 4',
+    Heading_5:        'Címsor 5',
+    Heading_6:        'Címsor 6',
+    Preformatted:     'Előformázott',
+    Blockquote:       'Idézet',
+    Table_Header:     'Tábla Fejléc',
+    URL:              'Webcím',
+    Title:            'Megnevezés',
+    Alternative_Text: 'Alternatív szöveg',
+    Caption:          'Fejléc',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Sorok száma',
+    Number_Of_Cols:   'Oszlopok száma',
+    Submit:           'Elküld',
+    Cancel:           'Mégsem',
+    Choose:           'Választ',
+    Preview:          'Előnézet',
+    Paste_From_Word:  'Másolás Word-ból',
+    Tools:            'Eszközök',
+    Containers:       'Tartalmak',
+    Classes:          'Osztályok',
+    Status:           'Állapot',
+    Source_Code:      'Forráskód'
+};
+
diff --git a/wymeditor/lang/it.js b/wymeditor/lang/it.js
new file mode 100644 (file)
index 0000000..ca632a9
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['it'] = {
+    Strong:           'Grassetto',
+    Emphasis:         'Corsetto',
+    Superscript:      'Apice',
+    Subscript:        'Pedice',
+    Ordered_List:     'Lista Ordinata',
+    Unordered_List:   'Lista Puntata',
+    Indent:           'Indenta',
+    Outdent:          'Caccia',
+    Undo:             'Indietro',
+    Redo:             'Avanti',
+    Link:             'Inserisci Link',
+    Unlink:           'Togli Link',
+    Image:            'Inserisci Immagine',
+    Table:            'Inserisci Tabella',
+    HTML:             'HTML',
+    Paragraph:        'Paragrafo',
+    Heading_1:        'Heading 1',
+    Heading_2:        'Heading 2',
+    Heading_3:        'Heading 3',
+    Heading_4:        'Heading 4',
+    Heading_5:        'Heading 5',
+    Heading_6:        'Heading 6',
+    Preformatted:     'Preformattato',
+    Blockquote:       'Blockquote',
+    Table_Header:     'Header Tabella',
+    URL:              'Indirizzo',
+    Title:            'Titolo',
+    Alternative_Text: 'Testo Alternativo',
+    Caption:          'Caption',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Numero di Righe',
+    Number_Of_Cols:   'Numero di Colonne',
+    Submit:           'Invia',
+    Cancel:           'Cancella',
+    Choose:           'Scegli',
+    Preview:          'Anteprima',
+    Paste_From_Word:  'Incolla',
+    Tools:            'Tools',
+    Containers:       'Contenitori',
+    Classes:          'Classi',
+    Status:           'Stato',
+    Source_Code:      'Codice Sorgente'
+};
+
diff --git a/wymeditor/lang/nb.js b/wymeditor/lang/nb.js
new file mode 100644 (file)
index 0000000..7573b78
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['nb'] = {
+    Strong:           'Fet',
+    Emphasis:         'Uthevet',
+    Superscript:      'Opphøyet',
+    Subscript:        'Nedsenket',
+    Ordered_List:     'Nummerert liste',
+    Unordered_List:   'Punktliste',
+    Indent:           'Rykk inn',
+    Outdent:          'Rykk ut',
+    Undo:             'Angre',
+    Redo:             'Gjenta',
+    Link:             'Lenke',
+    Unlink:           'Ta bort lenken',
+    Image:            'Bilde',
+    Table:            'Tabell',
+    HTML:             'HTML',
+    Paragraph:        'Avsnitt',
+    Heading_1:        'Overskrift 1',
+    Heading_2:        'Overskrift 2',
+    Heading_3:        'Overskrift 3',
+    Heading_4:        'Overskrift 4',
+    Heading_5:        'Overskrift 5',
+    Heading_6:        'Overskrift 6',
+    Preformatted:     'Preformatert',
+    Blockquote:       'Sitat',
+    Table_Header:     'Tabelloverskrift',
+    URL:              'URL',
+    Title:            'Tittel',
+    Alternative_Text: 'Alternativ tekst',
+    Caption:          'Overskrift',
+    Summary:          'Sammendrag',
+    Number_Of_Rows:   'Antall rader',
+    Number_Of_Cols:   'Antall kolonner',
+    Submit:           'Ok',
+    Cancel:           'Avbryt',
+    Choose:           'Velg',
+    Preview:          'Forhåndsvis',
+    Paste_From_Word:  'Lim inn fra Word',
+    Tools:            'Verktøy',
+    Containers:       'Formatering',
+    Classes:          'Klasser',
+    Status:           'Status',
+    Source_Code:      'Kildekode'
+};
+
diff --git a/wymeditor/lang/nl.js b/wymeditor/lang/nl.js
new file mode 100644 (file)
index 0000000..cdfa21c
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['nl'] = {
+    Strong:           'Sterk benadrukken',
+    Emphasis:         'Benadrukken',
+    Superscript:      'Bovenschrift',
+    Subscript:        'Onderschrift',
+    Ordered_List:     'Geordende lijst',
+    Unordered_List:   'Ongeordende lijst',
+    Indent:           'Inspringen',
+    Outdent:          'Terugspringen',
+    Undo:             'Ongedaan maken',
+    Redo:             'Opnieuw uitvoeren',
+    Link:             'Linken',
+    Unlink:           'Ontlinken',
+    Image:            'Afbeelding',
+    Table:            'Tabel',
+    HTML:             'HTML',
+    Paragraph:        'Paragraaf',
+    Heading_1:        'Kop 1',
+    Heading_2:        'Kop 2',
+    Heading_3:        'Kop 3',
+    Heading_4:        'Kop 4',
+    Heading_5:        'Kop 5',
+    Heading_6:        'Kop 6',
+    Preformatted:     'Voorgeformatteerd',
+    Blockquote:       'Citaat',
+    Table_Header:     'Tabel-kop',
+    URL:              'URL',
+    Title:            'Titel',
+    Alternative_Text: 'Alternatieve tekst',
+    Caption:          'Bijschrift',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Aantal rijen',
+    Number_Of_Cols:   'Aantal kolommen',
+    Submit:           'Versturen',
+    Cancel:           'Annuleren',
+    Choose:           'Kiezen',
+    Preview:          'Voorbeeld bekijken',
+    Paste_From_Word:  'Plakken uit Word',
+    Tools:            'Hulpmiddelen',
+    Containers:       'Teksttypes',
+    Classes:          'Klassen',
+    Status:           'Status',
+    Source_Code:      'Broncode'
+};
+
diff --git a/wymeditor/lang/nn.js b/wymeditor/lang/nn.js
new file mode 100644 (file)
index 0000000..51cec2b
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['nn'] = {
+    Strong:           'Feit',
+    Emphasis:         'Utheva',
+    Superscript:      'Opphøgd',
+    Subscript:        'Nedsenka',
+    Ordered_List:     'Nummerert liste',
+    Unordered_List:   'Punktliste',
+    Indent:           'Rykk inn',
+    Outdent:          'Rykk ut',
+    Undo:             'Angre',
+    Redo:             'Gjentaka',
+    Link:             'Lenkje',
+    Unlink:           'Ta bort lenkja',
+    Image:            'Bilete',
+    Table:            'Tabell',
+    HTML:             'HTML',
+    Paragraph:        'Avsnitt',
+    Heading_1:        'Overskrift 1',
+    Heading_2:        'Overskrift 2',
+    Heading_3:        'Overskrift 3',
+    Heading_4:        'Overskrift 4',
+    Heading_5:        'Overskrift 5',
+    Heading_6:        'Overskrift 6',
+    Preformatted:     'Preformatert',
+    Blockquote:       'Sitat',
+    Table_Header:     'Tabelloverskrift',
+    URL:              'URL',
+    Title:            'Tittel',
+    Alternative_Text: 'Alternativ tekst',
+    Caption:          'Overskrift',
+    Summary:          'Samandrag',
+    Number_Of_Rows:   'Tal på rader',
+    Number_Of_Cols:   'Tal på kolonnar',
+    Submit:           'Ok',
+    Cancel:           'Avbryt',
+    Choose:           'Vel',
+    Preview:          'Førehandsvis',
+    Paste_From_Word:  'Lim inn frå Word',
+    Tools:            'Verkty',
+    Containers:       'Formatering',
+    Classes:          'Klassar',
+    Status:           'Status',
+    Source_Code:      'Kjeldekode'
+};
+
diff --git a/wymeditor/lang/pl.js b/wymeditor/lang/pl.js
new file mode 100644 (file)
index 0000000..d6c0471
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['pl'] = {
+    Strong:           'Nacisk',
+    Emphasis:         'Emfaza',
+    Superscript:      'Indeks górny',
+    Subscript:        'Indeks dolny',
+    Ordered_List:     'Lista numerowana',
+    Unordered_List:   'Lista wypunktowana',
+    Indent:           'Zwiększ wcięcie',
+    Outdent:          'Zmniejsz wcięcie',
+    Undo:             'Cofnij',
+    Redo:             'Ponów',
+    Link:             'Wstaw link',
+    Unlink:           'Usuń link',
+    Image:            'Obraz',
+    Table:            'Tabela',
+    HTML:             'Źródło HTML',
+    Paragraph:        'Akapit',
+    Heading_1:        'Nagłówek 1',
+    Heading_2:        'Nagłówek 2',
+    Heading_3:        'Nagłówek 3',
+    Heading_4:        'Nagłówek 4',
+    Heading_5:        'Nagłówek 5',
+    Heading_6:        'Nagłówek 6',
+    Preformatted:     'Preformatowany',
+    Blockquote:       'Cytat blokowy',
+    Table_Header:     'Nagłówek tabeli',
+    URL:              'URL',
+    Title:            'Tytuł',
+    Alternative_Text: 'Tekst alternatywny',
+    Caption:          'Tytuł tabeli',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Liczba wierszy',
+    Number_Of_Cols:   'Liczba kolumn',
+    Submit:           'Wyślij',
+    Cancel:           'Anuluj',
+    Choose:           'Wybierz',
+    Preview:          'Podgląd',
+    Paste_From_Word:  'Wklej z Worda',
+    Tools:            'Narzędzia',
+    Containers:       'Format',
+    Classes:          'Styl',
+    Status:           'Status',
+    Source_Code:      'Kod źródłowy'
+};
+
diff --git a/wymeditor/lang/pt-br.js b/wymeditor/lang/pt-br.js
new file mode 100644 (file)
index 0000000..2ec18fe
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['pt-br'] = {
+    Strong:           'Resaltar',
+    Emphasis:         'Enfatizar',
+    Superscript:      'Sobre escrito',
+    Subscript:        'Sub escrito ',
+    Ordered_List:     'Lista ordenada',
+    Unordered_List:   'Lista desordenada',
+    Indent:           'Indentado',
+    Outdent:          'Desidentar',
+    Undo:             'Desfazer',
+    Redo:             'Refazer',
+    Link:             'Link',
+    Unlink:           'Remover Link',
+    Image:            'Imagem',
+    Table:            'Tabela',
+    HTML:             'HTML',
+    Paragraph:        'Parágrafo',
+    Heading_1:        'Título 1',
+    Heading_2:        'Título 2',
+    Heading_3:        'Título 3',
+    Heading_4:        'Título 4',
+    Heading_5:        'Título 5',
+    Heading_6:        'Título 6',
+    Preformatted:     'Preformatado',
+    Blockquote:       'Citação',
+    Table_Header:     'Título de tabela',
+    URL:              'URL',
+    Title:            'Título',
+    Alternative_Text: 'Texto alternativo',
+    Caption:          'Legenda',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Número de linhas',
+    Number_Of_Cols:   'Número de colunas',
+    Submit:           'Enviar',
+    Cancel:           'Cancelar',
+    Choose:           'Selecionar',
+    Preview:          'Previsualizar',
+    Paste_From_Word:  'Copiar do Word',
+    Tools:            'Ferramentas',
+    Containers:       'Conteneiners',
+    Classes:          'Classes',
+    Status:           'Estado',
+    Source_Code:      'Código fonte'
+};
+
diff --git a/wymeditor/lang/pt.js b/wymeditor/lang/pt.js
new file mode 100644 (file)
index 0000000..a3d1a17
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['pt'] = {
+    Strong:           'Negrito',
+    Emphasis:         'Itálico',
+    Superscript:      'Sobrescrito',
+    Subscript:        'Subsescrito',
+    Ordered_List:     'Lista Numerada',
+    Unordered_List:   'Lista Marcada',
+    Indent:           'Aumentar Indentaçã',
+    Outdent:          'Diminuir Indentaçã',
+    Undo:             'Desfazer',
+    Redo:             'Restaurar',
+    Link:             'Link',
+    Unlink:           'Tirar link',
+    Image:            'Imagem',
+    Table:            'Tabela',
+    HTML:             'HTML',
+    Paragraph:        'Parágrafo',
+    Heading_1:        'Título 1',
+    Heading_2:        'Título 2',
+    Heading_3:        'Título 3',
+    Heading_4:        'Título 4',
+    Heading_5:        'Título 5',
+    Heading_6:        'Título 6',
+    Preformatted:     'Pré-formatado',
+    Blockquote:       'Citação',
+    Table_Header:     'Cabeçalho Tabela',
+    URL:              'URL',
+    Title:            'Título',
+    Alternative_Text: 'Texto Alterativo',
+    Caption:          'Título Tabela',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Número de Linhas',
+    Number_Of_Cols:   'Número de Colunas',
+    Submit:           'Enviar',
+    Cancel:           'Cancelar',
+    Choose:           'Escolha',
+    Preview:          'Prever',
+    Paste_From_Word:  'Colar do Word',
+    Tools:            'Ferramentas',
+    Containers:       'Containers',
+    Classes:          'Classes',
+    Status:           'Status',
+    Source_Code:      'Código Fonte'
+};
+
diff --git a/wymeditor/lang/ru.js b/wymeditor/lang/ru.js
new file mode 100644 (file)
index 0000000..7895f8d
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['ru'] = {
+    Strong:           'Жирный',
+    Emphasis:         'Наклонный',
+    Superscript:      'Надстрочный',
+    Subscript:        'Подстрочный',
+    Ordered_List:     'Нумерованый список',
+    Unordered_List:   'Ненумерованый список',
+    Indent:           'Увеличить отступ',
+    Outdent:          'Уменьшить отступ',
+    Undo:             'Отменить',
+    Redo:             'Повторить',
+    Link:             'Ссылка',
+    Unlink:           'Удалить ссылку',
+    Image:            'Изображение',
+    Table:            'Таблица',
+    HTML:             'Править HTML',
+    Paragraph:        'Параграф',
+    Heading_1:        'Заголовок 1',
+    Heading_2:        'Заголовок 2',
+    Heading_3:        'Заголовок 3',
+    Heading_4:        'Заголовок 4',
+    Heading_5:        'Заголовок 5',
+    Heading_6:        'Заголовок 6',
+    Preformatted:     'Preformatted',
+    Blockquote:       'Цитата',
+    Table_Header:     'Заголовок таблицы',
+    URL:              'URL',
+    Title:            'Заголовок',
+    Alternative_Text: 'Альтернативный текст',
+    Caption:          'Надпись',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Кол-во строк',
+    Number_Of_Cols:   'Кол-во столбцов',
+    Submit:           'Отправить',
+    Cancel:           'Отмена',
+    Choose:           'Выбор',
+    Preview:          'Просмотр',
+    Paste_From_Word:  'Вставить из Word',
+    Tools:            'Инструменты',
+    Containers:       'Контейнеры',
+    Classes:          'Классы',
+    Status:           'Статус',
+    Source_Code:      'Исходный код'
+};
+
diff --git a/wymeditor/lang/sv.js b/wymeditor/lang/sv.js
new file mode 100644 (file)
index 0000000..bc5485c
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['sv'] = {
+    Strong:           'Viktigt',
+    Emphasis:         'Betoning',
+    Superscript:      'Upphöjt',
+    Subscript:        'Nedsänkt',
+    Ordered_List:     'Nummerlista',
+    Unordered_List:   'Punktlista',
+    Indent:           'Indrag',
+    Outdent:          'Utdrag',
+    Undo:             'Ångra',
+    Redo:             'Gör om',
+    Link:             'Länk',
+    Unlink:           'Ta bort länk',
+    Image:            'Bild',
+    Table:            'Tabell',
+    HTML:             'HTML',
+    Paragraph:        'Paragraf',
+    Heading_1:        'Rubrik 1',
+    Heading_2:        'Rubrik 2',
+    Heading_3:        'Rubrik 3',
+    Heading_4:        'Rubrik 4',
+    Heading_5:        'Rubrik 5',
+    Heading_6:        'Rubrik 6',
+    Preformatted:     'Förformaterad',
+    Blockquote:       'Blockcitat',
+    Table_Header:     'Tabellrubrik',
+    URL:              'URL',
+    Title:            'Titel',
+    Alternative_Text: 'Alternativ text',
+    Caption:          'Överskrift',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Antal rader',
+    Number_Of_Cols:   'Antal kolumner',
+    Submit:           'Skicka',
+    Cancel:           'Avbryt',
+    Choose:           'Välj',
+    Preview:          'Förhandsgranska',
+    Paste_From_Word:  'Klistra in från Word',
+    Tools:            'Verktyg',
+    Containers:       'Formatering',
+    Classes:          'Klasser',
+    Status:           'Status',
+    Source_Code:      'Källkod'
+};
+
diff --git a/wymeditor/lang/tr.js b/wymeditor/lang/tr.js
new file mode 100644 (file)
index 0000000..d26f0ff
--- /dev/null
@@ -0,0 +1,45 @@
+WYMeditor.STRINGS['tr'] = {
+    Strong:           'Kalın',
+    Emphasis:         'Vurgu',
+    Superscript:      'Superscript',
+    Subscript:        'Subscript',
+    Ordered_List:     'Sıralı List',
+    Unordered_List:   'Sırasız List',
+    Indent:           'İçerlek',
+    Outdent:          'Çıkıntılı',
+    Undo:             'Geri Al',
+    Redo:             'Yinele',
+    Link:             'Bağlantı',
+    Unlink:           'Bağlantıyı Kaldır',
+    Image:            'İmaj',
+    Table:            'Tablo',
+    HTML:             'HTML',
+    Paragraph:        'Parağraf',
+    Heading_1:        'Başlık 1',
+    Heading_2:        'Başlık 2',
+    Heading_3:        'Başlık 3',
+    Heading_4:        'Başlık 4',
+    Heading_5:        'Başlık 5',
+    Heading_6:        'Başlık 6',
+    Preformatted:     'Önceden Formatlı',
+    Blockquote:       'Alıntı',
+    Table_Header:     'Tablo Başlığı',
+    URL:              'URL',
+    Title:            'Başlık',
+    Alternative_Text: 'Alternatif Metin',
+    Caption:          'Etiket',
+    Summary:          'Summary',
+    Number_Of_Rows:   'Satır sayısı',
+    Number_Of_Cols:   'Sütun sayısı',
+    Submit:           'Gönder',
+    Cancel:           'İptal',
+    Choose:           'Seç',
+    Preview:          'Önizleme',
+    Paste_From_Word:  'Wordden yapıştır',
+    Tools:            'Araçlar',
+    Containers:       'Kapsayıcılar',
+    Classes:          'Sınıflar',
+    Status:           'Durum',
+    Source_Code:      'Kaynak Kodu'
+};
+
diff --git a/wymeditor/lang/zh_cn.js b/wymeditor/lang/zh_cn.js
new file mode 100644 (file)
index 0000000..72f5aaf
--- /dev/null
@@ -0,0 +1,47 @@
+WYMeditor.STRINGS['zh_cn'] = {
+    Strong: '加粗',
+    Emphasis: '斜体',
+    Superscript: '上标',
+    Subscript: '下标',
+    Ordered_List: '有序列表',
+    Unordered_List: '无序列表',
+    Indent: '增加缩进',
+    Outdent: '减少缩进',
+    Undo: '撤消',
+    Redo: '重做',
+    Link: '链接',
+    Unlink: '取消链接',
+    Image: '图片',
+    Table: '表格',
+    HTML: 'HTML源代码',
+    Paragraph: '段落',
+    Heading_1: '标题 1',
+    Heading_2: '标题 2',
+    Heading_3: '标题 3',
+    Heading_4: '标题 4',
+    Heading_5: '标题 5',
+    Heading_6: '标题 6',
+    Preformatted: '原始文本',
+    Blockquote: '引语',
+    Table_Header: '表头',
+    URL: '地址',
+    Title: '提示文字',
+    Alternative_Text: '失效文字',
+    Caption: '标题',
+    Summary: 'Summary',
+    Number_Of_Rows: '行数',
+    Number_Of_Cols: '列数',
+    Submit: '提交',
+    Cancel: '放弃',
+    Choose: '选择',
+    Preview: '预览',
+    Paste_From_Word: '从Word粘贴纯文本',
+    Tools: '工具',
+    Containers: '容器',
+    Classes: '预定义样式',
+    Status: '状态',
+    Source_Code: '源代码',
+    Attachment: '附件',
+    NewParagraph: '新段落'
+};
+
diff --git a/wymeditor/plugins/embed/jquery.wymeditor.embed.js b/wymeditor/plugins/embed/jquery.wymeditor.embed.js
new file mode 100644 (file)
index 0000000..b4d0856
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        jquery.wymeditor.embed.js
+ *        Experimental embed plugin
+ *
+ * File Authors:
+ *        Jonatan Lundin
+ */
+
+/*
+ * ISSUES:
+ * - The closing object tag seems to be stripped out...
+ */
+(function() {
+    if (WYMeditor && WYMeditor.XhtmlValidator['_tags']['param']['attributes']) {
+        
+        WYMeditor.XhtmlValidator['_tags']["embed"] = {
+            "attributes":[
+                "allowscriptaccess",
+                "allowfullscreen",
+                "height",
+                "src",
+                "type",
+                "width"
+            ]
+        };
+        
+        WYMeditor.XhtmlValidator['_tags']['param']['attributes'] = {
+            '0':'name',
+            '1':'type',
+            'valuetype':/^(data|ref|object)$/,
+            '2':'valuetype',
+            '3':'value'
+        };
+        
+        var XhtmlSaxListener = WYMeditor.XhtmlSaxListener;
+        WYMeditor.XhtmlSaxListener = function () {
+            var listener = XhtmlSaxListener.call(this);
+            listener.block_tags.push('embed');
+            return listener;
+        };
+        WYMeditor.XhtmlSaxListener.prototype = XhtmlSaxListener.prototype;
+    }
+})();
diff --git a/wymeditor/plugins/fullscreen/icon_fullscreen.gif b/wymeditor/plugins/fullscreen/icon_fullscreen.gif
new file mode 100644 (file)
index 0000000..d2a8b0a
Binary files /dev/null and b/wymeditor/plugins/fullscreen/icon_fullscreen.gif differ
diff --git a/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js b/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js
new file mode 100644 (file)
index 0000000..7ba82fb
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        jquery.wymeditor.fullscreen.js
+ *        Fullscreen plugin for WYMeditor
+ *
+ * File Authors:
+ *        Luis Santos (luis.santos a-t openquest dotpt)
+ */
+
+//Extend WYMeditor
+WYMeditor.editor.prototype.fullscreen = function() {
+  var wym = this;
+
+ //construct the button's html
+  var html = "<li class='wym_tools_fullscreen'>"
+         + "<a name='Fullscreen' href='#'"
+         + " style='background-image:"
+         + " url(" + wym._options.basePath +"plugins/fullscreen/icon_fullscreen.gif)'>"
+         + "Fullscreen"
+         + "</a></li>";
+
+  //add the button to the tools box
+  jQuery(wym._box)
+    .find(wym._options.toolsSelector + wym._options.toolsListSelector)
+    .append(html);
+
+  //handle click event
+  jQuery(wym._box).find('li.wym_tools_fullscreen a').click(function() {
+    if (jQuery(wym._box).css('position') != 'fixed') {
+      jQuery('body').append('<div id="loader"></div>');
+      jQuery('#loader').css({'position' : 'fixed', 'background-color': 'rgb(0, 0, 0)', 'opacity': '0.8', 'z-index': '98', 'width': '100%', 'height': '100%', 'top': '0px', 'left': '0px'});
+      jQuery(wym._box).css({'position' : 'fixed', 'z-index' : '99', 'top': '5%', 'left': '5%', 'width': '90%', 'height': '90%'});
+    } else {
+      jQuery('#loader').remove();
+      jQuery(wym._box).css({'position' : 'static', 'z-index' : '99', 'height' : '100%', 'width' : '100%', 'top': '0px', 'left': '0px'});
+    }
+
+    return(false);
+  });
+};
diff --git a/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js b/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js
new file mode 100644 (file)
index 0000000..2c71ba5
--- /dev/null
@@ -0,0 +1,57 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        jquery.wymeditor.hovertools.js
+ *        hovertools plugin for WYMeditor
+ *
+ * File Authors:
+ *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+ */
+
+//Extend WYMeditor
+WYMeditor.editor.prototype.hovertools = function() {
+  
+  var wym = this;
+  
+  //bind events on buttons
+  jQuery(this._box).find(this._options.toolSelector).hover(
+    function() {
+      wym.status(jQuery(this).html());
+    },
+    function() {
+      wym.status('&nbsp;');
+    }
+  );
+
+  //classes: add/remove a style attr to matching elems
+  //while mouseover/mouseout
+  jQuery(this._box).find(this._options.classSelector).hover(
+    function() {
+      var aClasses = eval(wym._options.classesItems);
+      var sName = jQuery(this).attr(WYMeditor.NAME);
+      var oClass = WYMeditor.Helper.findByName(aClasses, sName);
+
+      if(oClass){
+        jqexpr = oClass.expr;
+        //don't use jQuery.find() on the iframe body
+        //because of MSIE + jQuery + expando issue (#JQ1143)
+        if(!jQuery.browser.msie)
+          jQuery(wym._doc).find(jqexpr).css('background-color','#cfc');
+      }
+    },
+    function() {
+      //don't use jQuery.find() on the iframe body
+      //because of MSIE + jQuery + expando issue (#JQ1143)
+      if(!jQuery.browser.msie)
+        jQuery(wym._doc).find('*').removeAttr('style');
+    }
+  );
+
+};
diff --git a/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js b/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js
new file mode 100644 (file)
index 0000000..1ba2d2e
--- /dev/null
@@ -0,0 +1,91 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        jquery.wymeditor.resizable.js
+ *        resize plugin for WYMeditor
+ *
+ * File Authors:
+ *        Peter Eschler (peschler _at_ gmail.com)
+ *        Jean-Francois Hovinne - http://www.hovinne.com/
+ *
+ * Version:
+ *        0.4
+ *
+ * Changelog:
+ *
+ * 0.4
+ *     - Removed UI and UI.resizable scripts loading - see #167 (jfh).
+ *
+ * 0.3
+ *     - Added 'iframeOriginalSize' and removed 'ui.instance' calls (jfh).
+ *
+ * 0.2
+ *     - Added full support for all jQueryUI resizable plugin options.
+ *     - Refactored and documented code.
+ * 0.1
+ *     - Initial release.
+ */
+
+/**
+ * The resizable plugin makes the wymeditor box vertically resizable.
+ * It it based on the ui.resizable.js plugin of the jQuery UI library.
+ *
+ * The WYMeditor resizable plugin supports all parameters of the jQueryUI
+ * resizable plugin. The parameters are passed like this:
+ *
+ *         wym.resizable({ handles: "s,e",
+ *                         maxHeight: 600 });
+ *
+ * DEPENDENCIES: jQuery UI, jQuery UI resizable
+ *
+ * @param options options for the plugin  
+ */
+WYMeditor.editor.prototype.resizable = function(options) {
+  
+    var wym = this;
+    var iframe = jQuery(wym._box).find('iframe');
+    var iframeOriginalSize = {};
+
+    // Define some default options
+    var default_options = {
+        start: function(e, ui) {               
+            iframeOriginalSize = {
+                width: jQuery(iframe).width(),
+                height: jQuery(iframe).height()
+            }
+        },
+
+        // resize is called by the jQuery resizable plugin whenever the
+        // client area was resized.
+        resize: function(e, ui) {                
+            var diff = ui.size.height - ui.originalSize.height;
+            jQuery(iframe).height( iframeOriginalSize.height + diff );
+
+            // If the plugin has horizontal resizing disabled we need to
+            // adjust the "width" attribute of the area css, because the
+            // resizing will set a fixed width (which breaks liquid layout
+            // of the wymeditor area).
+            if( !ui.options.handles['w'] && !ui.options.handles['e'] ) {
+                ui.size.width = "inherit";
+            }
+        },
+        handles: "s,e,se",
+        minHeight: 250,
+        maxHeight: 600
+    };
+
+    // Merge given options with default options. Given options override
+    // default ones.
+    var final_options = jQuery.extend(default_options, options);
+
+    if(jQuery.isFunction( jQuery.fn.resizable )) jQuery(wym._box).resizable(final_options);
+    else WYMeditor.console.error('Oops, jQuery UI.resizable unavailable.');
+
+};
diff --git a/wymeditor/plugins/resizable/readme.txt b/wymeditor/plugins/resizable/readme.txt
new file mode 100644 (file)
index 0000000..2a0444e
--- /dev/null
@@ -0,0 +1,124 @@
+
+
+resizable plugin for WYMeditor
+##############################
+
+The ``resizable`` plugin for WYMeditor_ enables vertical resizing of the
+editor area. The plugin is based on the jQuery UI library.
+
+Requirements
+============
+The following packages are required for using the WYMeditor ``resizable``
+plugin:
+
+* jQuery (tested with jQuery ``jquery-1.2.4a.js`` from ``jquery.ui`` package)
+* WYMeditor SVN trunk (Revision: 482)
+* jQuery-UI (tested with ``jquery.ui-1.5b2``)
+
+It should be possible to use this plugin with ``WYMeditor-0.4`` but I have not
+tried.
+
+Download
+========
+You can download the WYMeditor ``resizable`` plugin here:
+
+* wymeditor-resizable-plugin-0.2.tgz_
+* wymeditor-resizable-plugin-0.1.tgz_ 
+
+See the Changelog_ for more infos about the releases.
+
+.. _wymeditor-resizable-plugin-0.2.tgz: http://pyjax.net/download/wymeditor-resizable-plugin-0.2.tgz
+.. _wymeditor-resizable-plugin-0.1.tgz: http://pyjax.net/download/wymeditor-resizable-plugin-0.1.tgz
+
+Installation
+============
+Just extract the downloaded archive into your WYMeditor's ``plugin``
+directory.
+
+Usage
+=====
+For general instructions on WYMeditor plugins please refer to the `WYMeditor
+plugin page`_.
+
+To use the ``resizable`` plugin simply include the plugin's JavaScript file in
+your code. You **do not** need to include the jQuery UI files - this is done
+automatically by the plugin (see `Internals`_)::
+
+    <script type="text/javascript"
+            src="/js/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js">
+    </script>
+
+Make sure to adjust the ``src`` attribute to your needs, then initialize the
+plugin in WYMeditor's ``postInit`` function::
+
+    wymeditor({postInit: function(wym) {
+                            wym.hovertools(); // other plugins...
+                            wym.resizable({handles: "s,e",
+                                           maxHeight: 600});
+                         }
+               })
+
+The ``resizable`` plugin takes exactly one parameter, which is an object literal
+containing the options of the plugin. The WYMeditor ``resizable`` plugin
+supports all options of the jQuery UI ``resizable`` plugin. These are the
+default values used by the plugin::
+
+    handles: "s,e,se",
+    minHeight: 250,
+    maxHeight: 600
+
+See the `jQuery UI resizable plugin docs`_ for a list of all options.
+
+That's it! You are now able to resize the WYMeditor vertically, horizontally or
+both, depending on your options.
+
+..  _jQuery UI resizable plugin docs: http://docs.jquery.com/UI/Resizables
+
+Internals
+=========
+The plugin takes care of loading the necessary jQuery UI files (``base`` and
+``resizable``) from the same path the jQuery library was loaded. Here's how
+it's done::
+
+    // Get the jQuery path from the editor, stripping away the jQuery file.
+    // see http://www.oreilly.com/catalog/regex/chapter/ch04.html
+    // The match result array contains the path and the filename.
+    var jQueryPath = wym.computeJqueryPath().match(/^(.*)\/(.*)$/)[1];
+
+    // Make an array of the external JavaScript files required by the plugin.
+    var jQueryPlugins = [jQueryPath + '/ui.base.js',
+                         jQueryPath + '/ui.resizable.js'];
+    
+    // First get the jQuery UI base file
+    $.getScript(jQueryPlugins[0]);
+
+    // Get the jQuery UI resizeable plugin and then init the wymeditor resizable
+    // plugin. It is import to do the initialisation after loading the    
+    // necessary jQuery UI files has finished, otherwise the "resizable" method
+    // would not be available.
+    $.getScript(jQueryPlugins[1], function() {     
+        jQuery(wym._box).resizable(final_options);
+    });
+
+An alternative approach would be to use an AJAX queue when getting the script
+files to ensure that all jQuery files are loaded before the initialisation code
+of the plugin is executed. There is an `jQuery AJAX queue plugin`_ which does
+that. 
+
+.. _jQuery AJAX queue plugin: http://plugins.jquery.com/project/ajaxqueue
+
+Changelog
+=========
+
+0.2
+---
+- Added full support for all jQuery UI resizable plugin options.
+- Refactored and documented code.
+- Now contains a packed version (775 bytes).
+
+0.1
+---
+- Initial release.
+
+.. _WYMeditor:              http://www.wymeditor.org/
+.. _WYMeditor plugin page:  http://trac.wymeditor.org/trac/wiki/0.4/Plugins
diff --git a/wymeditor/plugins/tidy/README b/wymeditor/plugins/tidy/README
new file mode 100644 (file)
index 0000000..acc7ffd
--- /dev/null
@@ -0,0 +1,19 @@
+WYMeditor : what you see is What You Mean web-based editor
+Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+Dual licensed under the MIT (MIT-license.txt)
+and GPL (GPL-license.txt) licenses.
+
+For further information visit:
+               http://www.wymeditor.org/
+
+File Name:
+               README - HTML Tidy plugin for WYMeditor
+
+File Authors:
+               Jean-François Hovinne (jf.hovinne a-t wymeditor dotorg)
+
+Credits:
+    'HTML Tidy' by Dave Ragget - http://tidy.sourceforge.net/
+    Icon 'wand' by Mark James - http://famfamfam.com/
+
+WYMeditor documentation is available online at http://www.wymeditor.org/
diff --git a/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js b/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js
new file mode 100644 (file)
index 0000000..d685580
--- /dev/null
@@ -0,0 +1,82 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ *
+ * File Name:
+ *        jquery.wymeditor.tidy.js
+ *        HTML Tidy plugin for WYMeditor
+ *
+ * File Authors:
+ *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+ */
+
+//Extend WYMeditor
+WYMeditor.editor.prototype.tidy = function(options) {
+  var tidy = new WymTidy(options, this);
+  return(tidy);
+};
+
+//WymTidy constructor
+function WymTidy(options, wym) {
+
+  options = jQuery.extend({
+
+    sUrl:          "wymeditor/plugins/tidy/tidy.php",
+    sButtonHtml:   "<li class='wym_tools_tidy'>"
+                 + "<a name='CleanUp' href='#'"
+                 + " style='background-image:"
+                 + " url(wymeditor/plugins/tidy/wand.png)'>"
+                 + "Clean up HTML"
+                 + "</a></li>",
+    
+    sButtonSelector: "li.wym_tools_tidy a"
+    
+  }, options);
+  
+  this._options = options;
+  this._wym = wym;
+
+};
+
+//WymTidy initialization
+WymTidy.prototype.init = function() {
+
+  var tidy = this;
+            
+  jQuery(this._wym._box).find(
+    this._wym._options.toolsSelector + this._wym._options.toolsListSelector)
+    .append(this._options.sButtonHtml);
+  
+  //handle click event
+  jQuery(this._wym._box).find(this._options.sButtonSelector).click(function() {
+    tidy.cleanup();
+    return(false);
+  });
+
+};
+
+//WymTidy cleanup
+WymTidy.prototype.cleanup = function() {
+
+    var wym = this._wym;
+    var html = "<html><body>" + wym.xhtml() + "</body></html>";
+
+    jQuery.post(this._options.sUrl, { html: html}, function(data) {
+
+        if(data.length > 0 && data != '0') {
+          if(data.indexOf("<?php") == 0) {
+            wym.status("Ooops... Is PHP installed?");
+          } else {
+            wym.html(data);
+            wym.status("HTML has been cleaned up.");
+          }
+        } else {
+          wym.status("An error occurred.");
+        }
+    });
+};
diff --git a/wymeditor/plugins/tidy/tidy.php b/wymeditor/plugins/tidy/tidy.php
new file mode 100644 (file)
index 0000000..23b9bec
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+
+if (get_magic_quotes_gpc()) $html = stripslashes($_REQUEST['html']);
+else $html = $_REQUEST['html'];
+
+if(strlen($html) > 0) {
+
+  // Specify configuration
+  $config = array(
+            'bare'                        => true,
+            'clean'                       => true,
+            'doctype'                     => 'strict',
+            'drop-empty-paras'            => true,
+            'drop-font-tags'              => true,
+            'drop-proprietary-attributes' => true,
+            'enclose-block-text'          => true,
+            'indent'                      => false,
+            'join-classes'                => true,
+            'join-styles'                 => true,
+            'logical-emphasis'            => true,
+            'output-xhtml'                => true,
+            'show-body-only'              => true,
+            'wrap'                        => 0);
+
+  // Tidy
+  $tidy = new tidy;
+  $tidy->parseString($html, $config, 'utf8');
+  $tidy->cleanRepair();
+
+  // Output
+  echo $tidy;
+} else {
+
+echo ('0');
+}
+?>
diff --git a/wymeditor/plugins/tidy/wand.png b/wymeditor/plugins/tidy/wand.png
new file mode 100644 (file)
index 0000000..bb55eea
Binary files /dev/null and b/wymeditor/plugins/tidy/wand.png differ
diff --git a/wymeditor/skins/compact/icons.png b/wymeditor/skins/compact/icons.png
new file mode 100644 (file)
index 0000000..c6eb463
Binary files /dev/null and b/wymeditor/skins/compact/icons.png differ
diff --git a/wymeditor/skins/compact/skin.css b/wymeditor/skins/compact/skin.css
new file mode 100644 (file)
index 0000000..4a6a0c6
--- /dev/null
@@ -0,0 +1,134 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *      http://www.wymeditor.org/
+ *
+ * File Name:
+ *      screen.css
+ *      main stylesheet for the WYMeditor skin
+ *      See the documentation for more info.
+ *
+ * File Authors:
+ *      Daniel Reszka (d.reszka a-t wymeditor dotorg)
+ *      Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+*/
+
+/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
+        .wym_skin_compact p, .wym_skin_compact h2, .wym_skin_compact h3,
+        .wym_skin_compact ul, .wym_skin_compact li { background: transparent url(); margin: 0; padding: 0; border-width:0; list-style: none; }
+
+
+/*HIDDEN BY DEFAULT*/
+        .wym_skin_compact .wym_area_left          { display: none; }
+        .wym_skin_compact .wym_area_right         { display: none; }
+
+
+/*TYPO*/    
+        .wym_skin_compact                { font-size: 10px; font-family: Verdana, Arial, sans-serif; }
+        .wym_skin_compact h2             { font-size: 110%; /* = 11px */}
+        .wym_skin_compact h3             { font-size: 100%; /* = 10px */}
+        .wym_skin_compact li             { font-size: 100%; /* = 10px */}
+
+
+/*WYM_BOX*/
+        .wym_skin_compact                { border: 1px solid gray; padding: 5px}
+
+    /*auto-clear the wym_box*/
+        .wym_skin_compact:after         { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+ * html .wym_skin_compact                { height: 1%;}
+
+
+/*WYM_HTML*/
+        .wym_skin_compact .wym_html               { width: 98%;}
+        .wym_skin_compact .wym_html textarea      { font-size: 120%; width: 100%; height: 200px; border: 1px solid gray; background: white; }
+
+
+/*WYM_IFRAME*/
+        .wym_skin_compact .wym_iframe             { width: 98%;}
+        .wym_skin_compact .wym_iframe iframe      { width: 100%; height: 200px; border: 1px solid gray; background: white }
+
+
+/*AREAS*/
+        .wym_skin_compact .wym_area_left          { width: 100px; float: left;}
+        .wym_skin_compact .wym_area_right         { width: 150px; float: right;}
+        .wym_skin_compact .wym_area_bottom        { height: 1%; clear: both;}
+ * html .wym_skin_compact .wym_area_main          { height: 1%;}
+ * html .wym_skin_compact .wym_area_top           { height: 1%;}
+ *+html .wym_skin_compact .wym_area_top           { height: 1%;}
+
+/*SECTIONS SYSTEM*/
+
+    /*common defaults for all sections*/
+        .wym_skin_compact .wym_section            { margin-bottom: 5px; }
+        .wym_skin_compact .wym_section h2,
+        .wym_skin_compact .wym_section h3         { padding: 1px 3px; margin: 0; }
+        .wym_skin_compact .wym_section a          { padding: 0 3px; display: block; text-decoration: none; color: black; }
+        .wym_skin_compact .wym_section a:hover    { background-color: yellow; }
+      /*hide section titles by default*/
+        .wym_skin_compact .wym_section h2         { display: none; }
+      /*disable any margin-collapse*/
+        .wym_skin_compact .wym_section            { padding-top: 1px; padding-bottom: 1px; }    
+      /*auto-clear sections*/
+        .wym_skin_compact .wym_section ul:after   { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+ * html .wym_skin_compact .wym_section ul         { height: 1%;}
+
+    /*option: add this class to a section to make it render as a panel*/
+        .wym_skin_compact .wym_panel              { }
+        .wym_skin_compact .wym_panel h2           { display: block; }
+
+    /*option: add this class to a section to make it render as a dropdown menu*/
+        .wym_skin_compact .wym_dropdown h2        { display: block; }
+        .wym_skin_compact .wym_dropdown ul        { display: none; position: absolute; background: white; }
+        .wym_skin_compact .wym_dropdown:hover ul,
+        .wym_skin_compact .wym_dropdown.hover ul  { display: block; }
+
+    /*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
+        .wym_skin_compact .wym_buttons li         { float:left;}
+        .wym_skin_compact .wym_buttons a          { width: 20px; height: 20px; overflow: hidden; padding: 2px }
+      /*image replacements*/
+        .wym_skin_compact .wym_buttons li a                         { background: url(icons.png) no-repeat; text-indent: -9999px;} 
+        .wym_skin_compact .wym_buttons li.wym_tools_strong a        { background-position: 0 -382px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_emphasis a      { background-position: 0 -22px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_superscript a   { background-position: 0 -430px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_subscript a     { background-position: 0 -454px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_ordered_list a  { background-position: 0 -48px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_unordered_list a{ background-position: 0 -72px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_indent a        { background-position: 0 -574px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_outdent a       { background-position: 0 -598px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_undo a          { background-position: 0 -502px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_redo a          { background-position: 0 -526px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_link a          { background-position: 0 -96px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_unlink a        { background-position: 0 -168px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_image a         { background-position: 0 -121px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_table a         { background-position: 0 -144px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_paste a         { background-position: 0 -552px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_html a          { background-position: 0 -193px;}
+        .wym_skin_compact .wym_buttons li.wym_tools_preview a       { background-position: 0 -408px;}
+
+/*DECORATION*/
+        .wym_skin_compact .wym_section h2             { background: #f0f0f0; border: solid gray; border-width: 0 0 1px;}
+        .wym_skin_compact .wym_section h2 span        { color: gray;}
+        .wym_skin_compact .wym_panel                  { padding: 0; border: solid gray; border-width: 1px; background: white;}    
+        .wym_skin_compact .wym_panel ul               { margin: 2px 0 5px; }        
+        .wym_skin_compact .wym_dropdown               { padding: 0; border: solid gray; border-width: 1px 1px 0 1px; }
+        .wym_skin_compact .wym_dropdown ul            { border: solid gray; border-width: 0 1px 1px 1px; margin-left: -1px; padding: 5px 10px 5px 3px;}
+        
+/*DIALOGS*/
+        .wym_dialog div.row         { margin-bottom: 5px;}
+        .wym_dialog div.row input   { margin-right: 5px;}
+        .wym_dialog div.row label   { float: left; width: 150px; display: block; text-align: right; margin-right: 10px; }
+        .wym_dialog div.row-indent  { padding-left: 160px; }
+        /*autoclearing*/        
+        .wym_dialog div.row:after            { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+        .wym_dialog div.row                  { display: inline-block; }
+            /* Hides from IE-mac \*/
+            * html .wym_dialog div.row       { height: 1%; }
+            .wym_dialog div.row              { display: block; }
+            /* End hide from IE-mac */                
+            
+/*WYMEDITOR_LINK*/
+        a.wym_wymeditor_link        { text-indent: -9999px; float: right; display: block; width: 50px; height: 15px; background: url(../wymeditor_icon.png);  overflow: hidden; text-decoration: none;  }
diff --git a/wymeditor/skins/compact/skin.js b/wymeditor/skins/compact/skin.js
new file mode 100644 (file)
index 0000000..cfb7cc1
--- /dev/null
@@ -0,0 +1,35 @@
+WYMeditor.SKINS['compact'] = {
+
+    init: function(wym) {
+    
+        //move the containers panel to the top area
+        jQuery(wym._options.containersSelector + ', '
+          + wym._options.classesSelector, wym._box)
+          .appendTo( jQuery("div.wym_area_top", wym._box) )
+          .addClass("wym_dropdown")
+          .css({"margin-right": "10px", "width": "120px", "float": "left"});
+
+        //render following sections as buttons
+        jQuery(wym._options.toolsSelector, wym._box)
+          .addClass("wym_buttons")
+          .css({"margin-right": "10px", "float": "left"});
+
+        //make hover work under IE < 7
+        jQuery(".wym_section", wym._box).hover(function(){
+          jQuery(this).addClass("hover");
+        },function(){
+          jQuery(this).removeClass("hover");
+        });
+
+        var postInit = wym._options.postInit;
+        wym._options.postInit = function(wym) {
+
+            if(postInit) postInit.call(wym, wym);
+            var rule = {
+                name: 'body',
+                css: 'background-color: #f0f0f0;'
+            };
+            wym.addCssRule( wym._doc.styleSheets[0], rule);
+        };
+    }
+};
diff --git a/wymeditor/skins/default/icons.png b/wymeditor/skins/default/icons.png
new file mode 100644 (file)
index 0000000..c6eb463
Binary files /dev/null and b/wymeditor/skins/default/icons.png differ
diff --git a/wymeditor/skins/default/skin.css b/wymeditor/skins/default/skin.css
new file mode 100644 (file)
index 0000000..eb4680f
--- /dev/null
@@ -0,0 +1,133 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *      http://www.wymeditor.org/
+ *
+ * File Name:
+ *      skin.css
+ *      main stylesheet for the default WYMeditor skin
+ *      See the documentation for more info.
+ *
+ * File Authors:
+ *      Daniel Reszka (d.reszka a-t wymeditor dotorg)
+*/
+
+/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
+        .wym_skin_default p, .wym_skin_default h2, .wym_skin_default h3,
+        .wym_skin_default ul, .wym_skin_default li { background: transparent url(); margin: 0; padding: 0; border-width:0; list-style: none; }
+
+
+/*HIDDEN BY DEFAULT*/
+        .wym_skin_default .wym_area_left          { display: none; }
+        .wym_skin_default .wym_area_right         { display: block; }
+
+
+/*TYPO*/    
+        .wym_skin_default                { font-size: 62.5%; font-family: Verdana, Arial, sans-serif; }
+        .wym_skin_default h2             { font-size: 110%; /* = 11px */}
+        .wym_skin_default h3             { font-size: 100%; /* = 10px */}
+        .wym_skin_default li             { font-size: 100%; /* = 10px */}
+
+
+/*WYM_BOX*/
+        .wym_skin_default                { border: 1px solid gray; background: #f2f2f2; padding: 5px}
+
+    /*auto-clear the wym_box*/
+        .wym_skin_default:after                { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+ * html .wym_skin_default                { height: 1%;}
+
+
+/*WYM_HTML*/
+        .wym_skin_default .wym_html               { width: 98%;}
+        .wym_skin_default .wym_html textarea      { width: 100%; height: 200px; border: 1px solid gray; background: white;  }
+
+
+/*WYM_IFRAME*/
+        .wym_skin_default .wym_iframe             { width: 98%;}
+        .wym_skin_default .wym_iframe iframe      { width: 100%; height: 200px; border: 1px solid gray; background: white }
+
+
+/*AREAS*/
+        .wym_skin_default .wym_area_left          { width: 150px; float: left;}
+        .wym_skin_default .wym_area_right         { width: 150px; float: right;}
+        .wym_skin_default .wym_area_bottom        { height: 1%; clear: both;}
+ * html .wym_skin_default .wym_area_main          { height: 1%;}
+ * html .wym_skin_default .wym_area_top           { height: 1%;}
+ *+html .wym_skin_default .wym_area_top           { height: 1%;}
+
+/*SECTIONS SYSTEM*/
+
+    /*common defaults for all sections*/
+        .wym_skin_default .wym_section            { margin-bottom: 5px; }
+        .wym_skin_default .wym_section h2,
+        .wym_skin_default .wym_section h3         { padding: 1px 3px; margin: 0; }
+        .wym_skin_default .wym_section a          { padding: 0 3px; display: block; text-decoration: none; color: black; }
+        .wym_skin_default .wym_section a:hover    { background-color: yellow; }
+      /*hide section titles by default*/
+        .wym_skin_default .wym_section h2         { display: none; }
+      /*disable any margin-collapse*/
+        .wym_skin_default .wym_section            { padding-top: 1px; padding-bottom: 1px; }    
+      /*auto-clear sections*/
+        .wym_skin_default .wym_section ul:after   { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+ * html .wym_skin_default .wym_section ul         { height: 1%;}
+
+    /*option: add this class to a section to make it render as a panel*/
+        .wym_skin_default .wym_panel              { }
+        .wym_skin_default .wym_panel h2           { display: block; }
+
+    /*option: add this class to a section to make it render as a dropdown menu*/
+        .wym_skin_default .wym_dropdown h2        { display: block; }
+        .wym_skin_default .wym_dropdown ul        { display: none; position: absolute; background: white; }
+        .wym_skin_default .wym_dropdown:hover ul,
+        .wym_skin_default .wym_dropdown.hover ul  { display: block; }
+
+    /*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
+        .wym_skin_default .wym_buttons li         { float:left;}
+        .wym_skin_default .wym_buttons a          { width: 20px; height: 20px; overflow: hidden; padding: 2px }
+      /*image replacements*/
+        .wym_skin_default .wym_buttons li a                         { background: url(icons.png) no-repeat; text-indent: -9999px;} 
+        .wym_skin_default .wym_buttons li.wym_tools_strong a        { background-position: 0 -382px;}
+        .wym_skin_default .wym_buttons li.wym_tools_emphasis a      { background-position: 0 -22px;}
+        .wym_skin_default .wym_buttons li.wym_tools_superscript a   { background-position: 0 -430px;}
+        .wym_skin_default .wym_buttons li.wym_tools_subscript a     { background-position: 0 -454px;}
+        .wym_skin_default .wym_buttons li.wym_tools_ordered_list a  { background-position: 0 -48px;}
+        .wym_skin_default .wym_buttons li.wym_tools_unordered_list a{ background-position: 0 -72px;}
+        .wym_skin_default .wym_buttons li.wym_tools_indent a        { background-position: 0 -574px;}
+        .wym_skin_default .wym_buttons li.wym_tools_outdent a       { background-position: 0 -598px;}
+        .wym_skin_default .wym_buttons li.wym_tools_undo a          { background-position: 0 -502px;}
+        .wym_skin_default .wym_buttons li.wym_tools_redo a          { background-position: 0 -526px;}
+        .wym_skin_default .wym_buttons li.wym_tools_link a          { background-position: 0 -96px;}
+        .wym_skin_default .wym_buttons li.wym_tools_unlink a        { background-position: 0 -168px;}
+        .wym_skin_default .wym_buttons li.wym_tools_image a         { background-position: 0 -121px;}
+        .wym_skin_default .wym_buttons li.wym_tools_table a         { background-position: 0 -144px;}
+        .wym_skin_default .wym_buttons li.wym_tools_paste a         { background-position: 0 -552px;}
+        .wym_skin_default .wym_buttons li.wym_tools_html a          { background-position: 0 -193px;}
+        .wym_skin_default .wym_buttons li.wym_tools_preview a       { background-position: 0 -408px;}
+
+/*DECORATION*/
+        .wym_skin_default .wym_section h2             { background: #ddd; border: solid gray; border-width: 0 0 1px;}
+        .wym_skin_default .wym_section h2 span        { color: gray;}
+        .wym_skin_default .wym_panel                  { padding: 0; border: solid gray; border-width: 1px; background: white;}    
+        .wym_skin_default .wym_panel ul               { margin: 2px 0 5px; }        
+        .wym_skin_default .wym_dropdown               { padding: 0; border: solid gray; border-width: 1px 1px 0 1px; }
+        .wym_skin_default .wym_dropdown ul            { border: solid gray; border-width: 0 1px 1px 1px; margin-left: -1px; padding: 5px 10px 5px 3px;}
+        
+/*DIALOGS*/
+        .wym_dialog div.row         { margin-bottom: 5px;}
+        .wym_dialog div.row input   { margin-right: 5px;}
+        .wym_dialog div.row label   { float: left; width: 150px; display: block; text-align: right; margin-right: 10px; }
+        .wym_dialog div.row-indent  { padding-left: 160px; }
+        /*autoclearing*/        
+        .wym_dialog div.row:after            { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+        .wym_dialog div.row                  { display: inline-block; }
+            /* Hides from IE-mac \*/
+            * html .wym_dialog div.row       { height: 1%; }
+            .wym_dialog div.row              { display: block; }
+            /* End hide from IE-mac */                
+            
+/*WYMEDITOR_LINK*/
+        a.wym_wymeditor_link        { text-indent: -9999px; float: right; display: block; width: 50px; height: 15px; background: url(../wymeditor_icon.png);  overflow: hidden; text-decoration: none;  }
diff --git a/wymeditor/skins/default/skin.js b/wymeditor/skins/default/skin.js
new file mode 100644 (file)
index 0000000..3d204e0
--- /dev/null
@@ -0,0 +1,40 @@
+WYMeditor.SKINS['default'] = {
+
+    init: function(wym) {
+
+        //render following sections as panels
+        jQuery(wym._box).find(wym._options.classesSelector)
+          .addClass("wym_panel");
+
+        //render following sections as buttons
+        jQuery(wym._box).find(wym._options.toolsSelector)
+          .addClass("wym_buttons");
+
+        //render following sections as dropdown menus
+        jQuery(wym._box).find(wym._options.containersSelector)
+          .addClass("wym_dropdown")
+          .find(WYMeditor.H2)
+          .append("<span>&#160;&gt;</span>");
+
+        // auto add some margin to the main area sides if left area
+        // or right area are not empty (if they contain sections)
+        jQuery(wym._box).find("div.wym_area_right ul")
+          .parents("div.wym_area_right").show()
+          .parents(wym._options.boxSelector)
+          .find("div.wym_area_main")
+          .css({"margin-right": "155px"});
+
+        jQuery(wym._box).find("div.wym_area_left ul")
+          .parents("div.wym_area_left").show()
+          .parents(wym._options.boxSelector)
+          .find("div.wym_area_main")
+          .css({"margin-left": "155px"});
+
+        //make hover work under IE < 7
+        jQuery(wym._box).find(".wym_section").hover(function(){
+          jQuery(this).addClass("hover");
+        },function(){
+          jQuery(this).removeClass("hover");
+        });
+    }
+};
diff --git a/wymeditor/skins/minimal/images/bg.header.gif b/wymeditor/skins/minimal/images/bg.header.gif
new file mode 100644 (file)
index 0000000..b2d2907
Binary files /dev/null and b/wymeditor/skins/minimal/images/bg.header.gif differ
diff --git a/wymeditor/skins/minimal/images/bg.selector.silver.gif b/wymeditor/skins/minimal/images/bg.selector.silver.gif
new file mode 100644 (file)
index 0000000..e65976b
Binary files /dev/null and b/wymeditor/skins/minimal/images/bg.selector.silver.gif differ
diff --git a/wymeditor/skins/minimal/images/bg.wymeditor.png b/wymeditor/skins/minimal/images/bg.wymeditor.png
new file mode 100644 (file)
index 0000000..1e84813
Binary files /dev/null and b/wymeditor/skins/minimal/images/bg.wymeditor.png differ
diff --git a/wymeditor/skins/minimal/images/icons.silver.gif b/wymeditor/skins/minimal/images/icons.silver.gif
new file mode 100644 (file)
index 0000000..8c6a4fb
Binary files /dev/null and b/wymeditor/skins/minimal/images/icons.silver.gif differ
diff --git a/wymeditor/skins/minimal/skin.css b/wymeditor/skins/minimal/skin.css
new file mode 100644 (file)
index 0000000..cea8d84
--- /dev/null
@@ -0,0 +1,131 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *      http://www.wymeditor.org/
+ *
+ * File Name:
+ *      skin.css
+ *      main stylesheet for the minimal WYMeditor skin
+ *      See the documentation for more info.
+ *
+ * File Authors:
+ *      Jean-Francois Hovinne
+ *      Scott Lewis (see Silver skin)
+*/
+
+/* Set iframe */
+.wym_skin_minimal div.wym_iframe iframe {
+    width: 90%;
+    height: 200px;
+}
+
+/* Hide h2 by default */
+.wym_skin_minimal h2 {
+    display: none;
+}
+
+/* Show specific h2 */
+.wym_skin_minimal div.wym_tools h2,
+.wym_skin_minimal div.wym_containers h2,
+.wym_skin_minimal div.wym_classes h2 {
+    display: block;
+}
+
+.wym_skin_minimal div.wym_section ul {
+    margin: 0;
+}
+
+.wym_skin_minimal div.wym_section ul li {
+    float: left;
+    list-style-type: none;
+    margin-right: 5px;
+}
+
+.wym_skin_minimal div.wym_area_top,
+.wym_skin_minimal div.wym_area_right,
+.wym_skin_minimal div.wym_containers,
+.wym_skin_minimal div.wym_classes {
+    float: left;
+}
+
+.wym_skin_minimal div.wym_area_main {
+    clear: both;
+}
+
+.wym_skin_minimal div.wym_html {
+    width: 90%;
+}
+
+.wym_skin_minimal textarea.wym_html_val {
+    width: 100%;
+    height: 100px;
+}
+
+/* DROPDOWNS (see Silver skin) */
+.wym_skin_minimal div.wym_dropdown {
+  cursor: pointer;
+  margin: 0px 4px 10px 0px;
+  padding: 0px;
+  z-index: 1001;
+  display: block;
+}
+
+.wym_skin_minimal div.wym_dropdown ul {
+  display: none;
+  width: 124px;
+  padding: 0px;
+  margin: 0px;
+  list-style-type: none;
+  list-style-image: none;
+  z-index: 1002;
+  position: absolute;
+  border-top: 1px solid #AAA;
+}
+
+.wym_skin_minimal div.wym_dropdown ul li {
+  width: 146px;
+  height: 20px;
+  padding: 0px;
+  margin: 0px;
+  border: 1px solid #777;
+  border-top: none;
+  background: #EEE;
+  list-style-image: none;
+}
+
+.wym_skin_minimal div.wym_dropdown h2 {
+  width: 138px;
+  height: 16px;
+  color: #000;
+  background-image: url(images/bg.selector.silver.gif);
+  background-position: 0px -18px;
+  background-repeat: no-repeat;
+  border: none;
+  font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
+  font-size: 12px;
+  font-weight: bold;
+  padding: 2px 0px 0px 10px;
+  margin: 0px;
+}
+
+.wym_skin_minimal div.wym_dropdown a {
+  text-decoration: none;
+  font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
+  font-size: 12px;
+  padding: 5px 0px 0px 10px;
+  display: block;
+  width: 136px;
+  height: 15px;
+  color: #000;
+  text-align: left;
+  margin-left: 0px;
+}
+
+.wym_skin_minimal div.wym_dropdown a:hover {
+  background: #BBB;
+  border-bottom: none;
+}
diff --git a/wymeditor/skins/minimal/skin.js b/wymeditor/skins/minimal/skin.js
new file mode 100644 (file)
index 0000000..af29ed4
--- /dev/null
@@ -0,0 +1,30 @@
+jQuery.fn.selectify = function() {
+    return this.each(function() {
+        jQuery(this).hover(
+            function() {
+                jQuery("h2", this).css("background-position", "0px -18px"); 
+                jQuery("ul", this).fadeIn("fast");
+            },
+                   function() {
+                       jQuery("h2", this).css("background-position", ""); 
+                       jQuery("ul", this).fadeOut("fast");
+                   }
+        );
+    });
+};
+
+WYMeditor.SKINS['minimal'] = {
+    //placeholder for the skin JS, if needed
+
+    //init the skin
+    //wym is the WYMeditor.editor instance
+    init: function(wym) {
+        
+        //render following sections as dropdown menus
+        jQuery(wym._box).find(wym._options.toolsSelector + ', ' + wym._options.containersSelector + ', ' + wym._options.classesSelector)
+          .addClass("wym_dropdown")
+          .selectify();
+
+        
+    }
+};
diff --git a/wymeditor/skins/silver/COPYING b/wymeditor/skins/silver/COPYING
new file mode 100644 (file)
index 0000000..94a9ed0
--- /dev/null
@@ -0,0 +1,674 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/wymeditor/skins/silver/README b/wymeditor/skins/silver/README
new file mode 100644 (file)
index 0000000..130dc46
--- /dev/null
@@ -0,0 +1,27 @@
+/**
+* @version        Alpha 0.1 2008-05-10 23:28:43 $
+* @package        Silver skin for WYMeditor
+* @copyright      Copyright (C) 2008 Scott Edwin Lewis. All rights reserved.
+* @license        GNU/GPL, see COPYING
+* Silver skin for WYMeditor is free software and is licensed under the 
+* GNU General Public License. See COPYING for copyright notices and details.
+*/
+
+Adds custom buttons and color palette to the WYMeditor XHTML Editor.
+
+INSTALLATION:
+
+1. Copy the entire /silver/ directory to /wymeditor/skins/
+2. Initialize the WYMeditor 'skin' option as below:
+
+<script type="text/javascript">
+jQuery(function() {
+
+    jQuery('.wymeditor').wymeditor({
+        skin: 'silver'
+    });
+
+});
+</script>
+
+That's it. You're done.
diff --git a/wymeditor/skins/silver/images/bg.header.gif b/wymeditor/skins/silver/images/bg.header.gif
new file mode 100644 (file)
index 0000000..b2d2907
Binary files /dev/null and b/wymeditor/skins/silver/images/bg.header.gif differ
diff --git a/wymeditor/skins/silver/images/bg.selector.silver.gif b/wymeditor/skins/silver/images/bg.selector.silver.gif
new file mode 100644 (file)
index 0000000..e65976b
Binary files /dev/null and b/wymeditor/skins/silver/images/bg.selector.silver.gif differ
diff --git a/wymeditor/skins/silver/images/bg.wymeditor.png b/wymeditor/skins/silver/images/bg.wymeditor.png
new file mode 100644 (file)
index 0000000..1e84813
Binary files /dev/null and b/wymeditor/skins/silver/images/bg.wymeditor.png differ
diff --git a/wymeditor/skins/silver/images/icons.silver.gif b/wymeditor/skins/silver/images/icons.silver.gif
new file mode 100644 (file)
index 0000000..8c6a4fb
Binary files /dev/null and b/wymeditor/skins/silver/images/icons.silver.gif differ
diff --git a/wymeditor/skins/silver/skin.css b/wymeditor/skins/silver/skin.css
new file mode 100644 (file)
index 0000000..8284d81
--- /dev/null
@@ -0,0 +1,297 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *      http://www.wymeditor.org/
+ *
+ * File Name:
+ *      screen.css
+ *      main stylesheet for the default WYMeditor skin
+ *      See the documentation for more info.
+ *
+ * File Authors:
+ *      Daniel Reszka (d.reszka a-t wymeditor dotorg)
+ *      Scott Edwin Lewis
+*/
+
+/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
+        .wym_skin_silver p, .wym_skin_silver h2, .wym_skin_silver h3,
+        .wym_skin_silver ul, .wym_skin_silver li { background: transparent url(); margin: 0; padding: 0; border-width:0; list-style: none; }
+
+
+/*HIDDEN BY DEFAULT*/
+        .wym_skin_silver .wym_area_left          { display: none; }
+        .wym_skin_silver .wym_area_right         { display: block; }
+
+
+/*TYPO*/    
+        .wym_skin_silver                { font-size: 62.5%; font-family: Verdana, Arial, sans-serif; }
+        .wym_skin_silver h2             { font-size: 110%; /* = 11px */}
+        .wym_skin_silver h3             { font-size: 100%; /* = 10px */}
+        .wym_skin_silver li             { font-size: 100%; /* = 10px */}
+
+
+/*WYM_BOX*/
+        .wym_skin_silver                { border: 1px solid gray; background: #f2f2f2; padding: 0px; margin: 0px;}
+
+    /*auto-clear the wym_box*/
+        .wym_skin_silver:after                 { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+ * html .wym_skin_silver                { height: 1%;}
+
+
+/*WYM_HTML*/
+        .wym_skin_silver .wym_html               { width: 98%;}
+        .wym_skin_silver .wym_html textarea      { width: 100%; height: 200px; border: 1px solid gray; background: white;  }
+
+
+/*WYM_IFRAME*/
+        .wym_skin_silver .wym_iframe             { width: 98%;}
+        .wym_skin_silver .wym_iframe iframe      { width: 100%; height: 200px; border: 1px solid gray; background: white }
+
+
+/*AREAS*/
+        .wym_skin_silver .wym_area_left          { width: 150px; float: left;}
+        .wym_skin_silver .wym_area_right         { width: 150px; float: right;}
+        .wym_skin_silver .wym_area_bottom        { height: 1%; clear: both;}
+ * html .wym_skin_silver .wym_area_main          { height: 1%;}
+ * html .wym_skin_silver .wym_area_top           { height: 1%;}
+ *+html .wym_skin_silver .wym_area_top           { height: 1%;}
+
+/*SECTIONS SYSTEM*/
+
+    /*common defaults for all sections*/
+        .wym_skin_silver .wym_section            { margin-bottom: 5px; }
+        .wym_skin_silver .wym_section h2,
+        .wym_skin_silver .wym_section h3         { padding: 1px 3px; margin: 0; cursor: pointer; }
+        .wym_skin_silver .wym_section a          { padding: 5px 0px 0px 10px; display: block; text-decoration: none; color: black; }
+        .wym_skin_silver .wym_section a:hover    { /*background-color: #DDD;*/}
+      /*hide section titles by default*/
+        .wym_skin_silver .wym_section h2         { display: none; }
+      /*disable any margin-collapse*/
+        .wym_skin_silver .wym_section            { padding-top: 1px; padding-bottom: 1px; }    
+      /*auto-clear sections*/
+        .wym_skin_silver .wym_section ul:after   { content: "."; display: block; height: 0; clear: both; visibility: hidden; padding: 0px; }
+ * html .wym_skin_silver .wym_section ul         { height: 1%;}
+        .wym_skin_silver .wym_section li         {}
+        
+    /*option: add this class to a section to make it render as a panel*/
+        .wym_skin_silver .wym_panel              { }
+        .wym_skin_silver .wym_panel h2           { display: block; font-size: 11px; }
+
+    /*option: add this class to a section to make it render as a dropdown menu*/
+        .wym_skin_silver .wym_dropdown h2        { display: block; font-size: 11px;}
+        .wym_skin_silver .wym_dropdown ul        { position: absolute; background: white; padding: 0px;}
+        .wym_skin_silver .wym_dropdown:hover ul,
+        .wym_skin_silver .wym_dropdown.hover ul  { cursor: pointer;}
+        .wym_skin_silver .wym_dropdown ul li a   {/*border-bottom: 1px solid #AAA;*/}
+
+    /*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
+        .wym_skin_silver .wym_buttons li         { float:left;}
+        .wym_skin_silver .wym_buttons a          { width: 20px; height: 20px; overflow: hidden; padding: 2px; text-decoration: none !important;  border: 1px solid #666; }
+        .wym_skin_silver .wym_buttons a:hover    { text-decoration: none !important;  border: 1px solid #000;}
+      /*image replacements*/
+        .wym_skin_silver .wym_buttons li a                         { background: url(images/icons.silver.gif) no-repeat; text-indent: -9999px;} 
+        .wym_skin_silver .wym_buttons li.wym_tools_strong a        { background-position: 0 -384px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_emphasis a      { background-position: 0 -24px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_superscript a   { background-position: 0 -432px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_subscript a     { background-position: 0 -456px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_ordered_list a  { background-position: 0 -48px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_unordered_list a{ background-position: 0 -72px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_indent a        { background-position: 0 -600px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_outdent a       { background-position: 0 -624px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_undo a          { background-position: 0 -504px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_redo a          { background-position: 0 -528px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_link a          { background-position: 0 -96px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_unlink a        { background-position: 0 -168px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_image a         { background-position: 0 -120px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_table a         { background-position: 0 -144px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_paste a         { background-position: 0 -552px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_html a          { background-position: 0 -192px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_preview a       { background-position: 0 -408px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_gadget a        { background-position: 0 -576px;}
+        
+        .wym_skin_silver .wym_buttons li.wym_tools_strong a:hover        { background-position: -24px -384px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_emphasis a:hover      { background-position: -24px -24px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_superscript a:hover   { background-position: -24px -432px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_subscript a:hover     { background-position: -24px -456px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_ordered_list a:hover  { background-position: -24px -48px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_unordered_list a:hover{ background-position: -24px -72px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_indent a:hover        { background-position: -24px -600px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_outdent a:hover       { background-position: -24px -624px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_undo a:hover          { background-position: -24px -504px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_redo a:hover          { background-position: -24px -528px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_link a:hover          { background-position: -24px -96px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_unlink a:hover        { background-position: -24px -168px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_image a:hover         { background-position: -24px -120px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_table a:hover         { background-position: -24px -144px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_paste a:hover         { background-position: -24px -552px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_html a:hover          { background-position: -24px -192px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_preview a:hover       { background-position: -24px -408px;}
+        .wym_skin_silver .wym_buttons li.wym_tools_gadget a:hover        { background-position: -24px -576px;}
+
+/*DECORATION*/
+        .wym_skin_silver .wym_section h2             { background: #ddd; border: none;}
+        .wym_skin_silver .wym_section h2 span        { color: gray;}
+        .wym_skin_silver .wym_panel                  { padding: 0; border: solid gray; border-width: 0px;}    
+        .wym_skin_silver .wym_panel ul               { margin: 2px 0 5px; }        
+        .wym_skin_silver .wym_dropdown               { padding: 0; border: none; }
+        .wym_skin_silver .wym_dropdown ul            { border: none; margin-left: -1px; padding: 0px;}
+        
+/*DIALOGS*/
+        .wym_dialog div.row         { margin-bottom: 5px;}
+        .wym_dialog div.row input   { margin-right: 5px;}
+        .wym_dialog div.row label   { float: left; width: 150px; display: block; text-align: right; margin-right: 10px; }
+        .wym_dialog div.row-indent  { padding-left: 160px; }
+        /*autoclearing*/        
+        .wym_dialog div.row:after            { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+        .wym_dialog div.row                  { display: inline-block; }
+            /* Hides from IE-mac \*/
+            * html .wym_dialog div.row       { height: 1%; }
+            .wym_dialog div.row              { display: block; }
+            /* End hide from IE-mac */                
+            
+/*WYMEDITOR_LINK*/
+        a.wym_wymeditor_link 
+        { 
+          text-indent: -9999px; 
+          float: right; 
+          display: block; 
+          width: 50px; 
+          height: 15px; 
+          background: url(../wymeditor_icon.png);  
+          background-position: 1px 1px;
+          background-repeat: no-repeat;
+          overflow: hidden; 
+          text-decoration: none; 
+          padding: 1px !important; 
+          border: 1px solid #333 !important;  
+          background-color: #FFF !important;
+        }
+
+.wym_box
+{
+  padding: 0px !important;
+  margin: 0px;
+}
+.wym_inner
+{
+  border-left: 1px solid #FFF;
+  border-top: 1px solid #FFF;
+  border-right: 1px solid #FFF;
+  border-bottom: 1px solid #FFF;
+  padding: 5px;
+  background-color: #B8C1C4;
+  height: auto;
+}
+
+.clear {clear: both;}
+
+div.wym_dropdown
+{
+  cursor: pointer;
+  width: 138px !important;
+  margin: 0px 4px 10px 0px !important;
+  padding: 0px;
+  z-index: 1001;
+  display: block;
+  border: 1px solid red;
+}
+
+div.wym_dropdown ul
+{
+  display: none;
+  width: 124px;
+  padding: 0px !important;
+  margin: 0px !important;
+  list-style-type: none;
+  list-style-image: none;
+  z-index: 1002;
+  position: absolute;
+  border-top: 1px solid #AAA;
+}
+
+div.wym_dropdown ul li
+{
+  width: 146px;
+  height: 20px;
+  padding: 0px !important;
+  margin: 0px;
+  border: 1px solid #777;
+  border-top: none;
+  background: #DDD;
+  list-style-image: none;
+}
+
+div.wym_dropdown h2
+{
+  width: 138px;
+  height: 16px;
+  color: #000 !important;
+  background-image: url(images/bg.selector.silver.gif) !important;
+  background-position: 0px -18px;
+  background-repeat: no-repeat;
+  border: none;
+  font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
+  font-size: 12px !important;
+  font-weight: bold !important;
+  padding: 2px 0px 0px 10px !important;
+  margin: 0px !important;
+}
+
+.wym_skin_silver .wym_panel h2 
+{
+  width: 138px;
+  height: 16px;
+  color: #000 !important;
+  background-image: url(images/bg.header.gif) !important;
+  background-position: 0px 0px;
+  background-repeat: no-repeat;
+  border: none;
+  font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
+  font-size: 12px !important;
+  font-weight: bold !important;
+  padding: 2px 0px 0px 10px !important;
+  margin: 0px !important;
+}
+
+.wym_skin_silver .wym_panel ul
+{
+  margin-top: 0px !important;
+}
+
+.wym_skin_silver .wym_panel ul li
+{
+  width: 146px;
+  height: 20px;
+  padding: 0px !important;
+  margin: 0px;
+  border: 1px solid #777;
+  border-top: none;
+  background: #DDD;
+  list-style-image: none;
+}
+
+.wym_skin_silver .wym_panel a,
+div.wym_dropdown a
+{
+  text-decoration: none;
+  font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
+  font-size: 12px;
+  padding: 5px 0px 0px 10px !important;
+  display: block;
+  width: 136px;
+  height: 15px;
+  color: #000;
+  text-align: left !important;
+  margin-left: 0px !important;
+}
+
+div.wym_dropdown a:hover,
+.wym_skin_silver .wym_panel a:hover
+{
+  background: #BBB;
+  border-bottom: none !important;
+}
diff --git a/wymeditor/skins/silver/skin.js b/wymeditor/skins/silver/skin.js
new file mode 100644 (file)
index 0000000..948ed91
--- /dev/null
@@ -0,0 +1,61 @@
+/* This file is part of the Silver skin for WYMeditor by Scott Edwin Lewis */
+
+jQuery.fn.selectify = function() {
+    return this.each(function() {
+        jQuery(this).hover(
+            function() {
+                jQuery("h2", this).css("background-position", "0px -18px"); 
+                jQuery("ul", this).fadeIn("fast");
+            },
+                   function() {
+                       jQuery("h2", this).css("background-position", ""); 
+                       jQuery("ul", this).fadeOut("fast");
+                   }
+        );
+    });
+};
+
+WYMeditor.SKINS['silver'] = {
+
+    init: function(wym) {
+
+        //add some elements to improve the rendering
+        jQuery(wym._box)
+          .append('<div class="clear"></div>')
+          .wrapInner('<div class="wym_inner"></div>');
+
+        //render following sections as panels
+        jQuery(wym._box).find(wym._options.classesSelector)
+          .addClass("wym_panel");
+
+        //render following sections as buttons
+        jQuery(wym._box).find(wym._options.toolsSelector)
+          .addClass("wym_buttons");
+
+        //render following sections as dropdown menus
+        jQuery(wym._box).find(wym._options.containersSelector)
+          .addClass("wym_dropdown")
+          .selectify();
+
+        // auto add some margin to the main area sides if left area
+        // or right area are not empty (if they contain sections)
+        jQuery(wym._box).find("div.wym_area_right ul")
+          .parents("div.wym_area_right").show()
+          .parents(wym._options.boxSelector)
+          .find("div.wym_area_main")
+          .css({"margin-right": "155px"});
+
+        jQuery(wym._box).find("div.wym_area_left ul")
+          .parents("div.wym_area_left").show()
+          .parents(wym._options.boxSelector)
+          .find("div.wym_area_main")
+          .css({"margin-left": "155px"});
+
+        //make hover work under IE < 7
+        jQuery(wym._box).find(".wym_section").hover(function(){
+          jQuery(this).addClass("hover");
+        },function(){
+          jQuery(this).removeClass("hover");
+        });
+    }
+};
diff --git a/wymeditor/skins/twopanels/icons.png b/wymeditor/skins/twopanels/icons.png
new file mode 100644 (file)
index 0000000..c6eb463
Binary files /dev/null and b/wymeditor/skins/twopanels/icons.png differ
diff --git a/wymeditor/skins/twopanels/skin.css b/wymeditor/skins/twopanels/skin.css
new file mode 100644 (file)
index 0000000..7e6b8fd
--- /dev/null
@@ -0,0 +1,134 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *      http://www.wymeditor.org/
+ *
+ * File Name:
+ *      screen.css
+ *      main stylesheet for the WYMeditor skin
+ *      See the documentation for more info.
+ *
+ * File Authors:
+ *      Daniel Reszka (d.reszka a-t wymeditor dotorg)
+ *      Jean-Francois Hovinne
+*/
+
+/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
+        .wym_skin_twopanels p, .wym_skin_twopanels h2, .wym_skin_twopanels h3,
+        .wym_skin_twopanels ul, .wym_skin_twopanels li { background: transparent url(); margin: 0; padding: 0; border-width:0; list-style: none; }
+
+
+/*HIDDEN BY DEFAULT*/
+        .wym_skin_twopanels .wym_area_left          { display: block; }
+        .wym_skin_twopanels .wym_area_right         { display: block; }
+
+
+/*TYPO*/    
+        .wym_skin_twopanels                { font-size: 62.5%; font-family: Verdana, Arial, sans-serif; }
+        .wym_skin_twopanels h2             { font-size: 110%; /* = 11px */}
+        .wym_skin_twopanels h3             { font-size: 100%; /* = 10px */}
+        .wym_skin_twopanels li             { font-size: 100%; /* = 10px */}
+
+
+/*WYM_BOX*/
+        .wym_skin_twopanels                { border: 1px solid gray; background: #f2f2f2; padding: 5px}
+
+    /*auto-clear the wym_box*/
+        .wym_skin_twopanels:after              { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+ * html .wym_skin_twopanels                { height: 1%;}
+
+
+/*WYM_HTML*/
+        .wym_skin_twopanels .wym_html               { width: 98%;}
+        .wym_skin_twopanels .wym_html textarea      { width: 100%; height: 200px; border: 1px solid gray; background: white;  }
+
+
+/*WYM_IFRAME*/
+        .wym_skin_twopanels .wym_iframe             { width: 98%;}
+        .wym_skin_twopanels .wym_iframe iframe      { width: 100%; height: 200px; border: 1px solid gray; background: white }
+
+
+/*AREAS*/
+        .wym_skin_twopanels .wym_area_left          { width: 100px; float: left;}
+        .wym_skin_twopanels .wym_area_right         { width: 150px; float: right;}
+        .wym_skin_twopanels .wym_area_bottom        { height: 1%; clear: both;}
+ * html .wym_skin_twopanels .wym_area_main          { height: 1%;}
+ * html .wym_skin_twopanels .wym_area_top           { height: 1%;}
+ *+html .wym_skin_twopanels .wym_area_top           { height: 1%;}
+
+/*SECTIONS SYSTEM*/
+
+    /*common defaults for all sections*/
+        .wym_skin_twopanels .wym_section            { margin-bottom: 5px; }
+        .wym_skin_twopanels .wym_section h2,
+        .wym_skin_twopanels .wym_section h3         { padding: 1px 3px; margin: 0; }
+        .wym_skin_twopanels .wym_section a          { padding: 0 3px; display: block; text-decoration: none; color: black; }
+        .wym_skin_twopanels .wym_section a:hover    { background-color: yellow; }
+      /*hide section titles by default*/
+        .wym_skin_twopanels .wym_section h2         { display: none; }
+      /*disable any margin-collapse*/
+        .wym_skin_twopanels .wym_section            { padding-top: 1px; padding-bottom: 1px; }    
+      /*auto-clear sections*/
+        .wym_skin_twopanels .wym_section ul:after   { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+ * html .wym_skin_twopanels .wym_section ul         { height: 1%;}
+
+    /*option: add this class to a section to make it render as a panel*/
+        .wym_skin_twopanels .wym_panel              { }
+        .wym_skin_twopanels .wym_panel h2           { display: block; }
+
+    /*option: add this class to a section to make it render as a dropdown menu*/
+        .wym_skin_twopanels .wym_dropdown h2        { display: block; }
+        .wym_skin_twopanels .wym_dropdown ul        { display: none; position: absolute; background: white; }
+        .wym_skin_twopanels .wym_dropdown:hover ul,
+        .wym_skin_twopanels .wym_dropdown.hover ul  { display: block; }
+
+    /*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
+        .wym_skin_twopanels .wym_buttons li         { float:left;}
+        .wym_skin_twopanels .wym_buttons a          { width: 20px; height: 20px; overflow: hidden; padding: 2px }
+      /*image replacements*/
+        .wym_skin_twopanels .wym_buttons li a                         { background: url(icons.png) no-repeat; text-indent: -9999px;} 
+        .wym_skin_twopanels .wym_buttons li.wym_tools_strong a        { background-position: 0 -382px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_emphasis a      { background-position: 0 -22px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_superscript a   { background-position: 0 -430px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_subscript a     { background-position: 0 -454px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_ordered_list a  { background-position: 0 -48px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_unordered_list a{ background-position: 0 -72px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_indent a        { background-position: 0 -574px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_outdent a       { background-position: 0 -598px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_undo a          { background-position: 0 -502px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_redo a          { background-position: 0 -526px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_link a          { background-position: 0 -96px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_unlink a        { background-position: 0 -168px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_image a         { background-position: 0 -121px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_table a         { background-position: 0 -144px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_paste a         { background-position: 0 -552px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_html a          { background-position: 0 -193px;}
+        .wym_skin_twopanels .wym_buttons li.wym_tools_preview a       { background-position: 0 -408px;}
+
+/*DECORATION*/
+        .wym_skin_twopanels .wym_section h2             { background: #ddd; border: solid gray; border-width: 0 0 1px;}
+        .wym_skin_twopanels .wym_section h2 span        { color: gray;}
+        .wym_skin_twopanels .wym_panel                  { padding: 0; border: solid gray; border-width: 1px; background: white;}    
+        .wym_skin_twopanels .wym_panel ul               { margin: 2px 0 5px; }        
+        .wym_skin_twopanels .wym_dropdown               { padding: 0; border: solid gray; border-width: 1px 1px 0 1px; }
+        .wym_skin_twopanels .wym_dropdown ul            { border: solid gray; border-width: 0 1px 1px 1px; margin-left: -1px; padding: 5px 10px 5px 3px;}
+        
+/*DIALOGS*/
+        .wym_dialog div.row         { margin-bottom: 5px;}
+        .wym_dialog div.row input   { margin-right: 5px;}
+        .wym_dialog div.row label   { float: left; width: 150px; display: block; text-align: right; margin-right: 10px; }
+        .wym_dialog div.row-indent  { padding-left: 160px; }
+        /*autoclearing*/        
+        .wym_dialog div.row:after            { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+        .wym_dialog div.row                  { display: inline-block; }
+            /* Hides from IE-mac \*/
+            * html .wym_dialog div.row       { height: 1%; }
+            .wym_dialog div.row              { display: block; }
+            /* End hide from IE-mac */                
+            
+/*WYMEDITOR_LINK*/
+        a.wym_wymeditor_link        { text-indent: -9999px; float: right; display: block; width: 50px; height: 15px; background: url(../wymeditor_icon.png);  overflow: hidden; text-decoration: none;  }
diff --git a/wymeditor/skins/twopanels/skin.js b/wymeditor/skins/twopanels/skin.js
new file mode 100644 (file)
index 0000000..e82efc5
--- /dev/null
@@ -0,0 +1,39 @@
+WYMeditor.SKINS['twopanels'] = {
+
+    init: function(wym) {
+    
+        //move the containers panel to the left area
+        jQuery(wym._box).find(wym._options.containersSelector)
+          .appendTo("div.wym_area_left");
+
+        //render following sections as panels
+        jQuery(wym._box).find(wym._options.classesSelector + ', '
+          + wym._options.containersSelector)
+          .addClass("wym_panel");
+
+        //render following sections as buttons
+        jQuery(wym._box).find(wym._options.toolsSelector)
+          .addClass("wym_buttons");
+
+        // auto add some margin to the main area sides if left area
+        // or right area are not empty (if they contain sections)
+        jQuery(wym._box).find("div.wym_area_right ul")
+          .parents("div.wym_area_right").show()
+          .parents(wym._options.boxSelector)
+          .find("div.wym_area_main")
+          .css({"margin-right": "155px"});
+
+        jQuery(wym._box).find("div.wym_area_left ul")
+          .parents("div.wym_area_left").show()
+          .parents(wym._options.boxSelector)
+          .find("div.wym_area_main")
+          .css({"margin-left": "115px"});
+
+        //make hover work under IE < 7
+        jQuery(wym._box).find(".wym_section").hover(function(){
+          jQuery(this).addClass("hover");
+        },function(){
+          jQuery(this).removeClass("hover");
+        });
+    }
+};
diff --git a/wymeditor/skins/wymeditor_icon.png b/wymeditor/skins/wymeditor_icon.png
new file mode 100644 (file)
index 0000000..d4fc155
Binary files /dev/null and b/wymeditor/skins/wymeditor_icon.png differ
diff --git a/wymiframe.css b/wymiframe.css
new file mode 100644 (file)
index 0000000..5b73773
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * WYMeditor : what you see is What You Mean web-based editor
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
+ * Dual licensed under the MIT (MIT-license.txt)
+ * and GPL (GPL-license.txt) licenses.
+ *
+ * For further information visit:
+ *        http://www.wymeditor.org/
+ * 
+ * File Name:
+ *        wymeditor.css
+ *        Main editor css file.
+ *        See the documentation for more info.
+ * 
+ * File Authors:
+ *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
+ *        Daniel Reszka (d.reszka a-t wymeditor dotorg)
+*/
+
+/* VISUAL FEEDBACK */
+
+/* basic */
+  body  { background: #e1e8f1; font-size: 12px; }
+/* make HTML blocs visible */
+  p,
+  h1,
+  h2,
+  h3,
+  h4,
+  h5,
+  h6,
+  ul,
+  ol,
+  table,
+  blockquote,
+  pre           { background: #FFFFFF no-repeat 2px 2px;
+                  padding:8px 5px 5px;
+                  margin:10px; }
+  td            { background: #F0F4F8; }
+  th            { background: #ffffcc; }
+  ul,
+  ol            { border-left:20px solid #B9C4D0; padding:0px 5px; }
+  caption       { background: #E4E4B0; padding: 5px; font-weight: bold; }
+  table         { font-size: 12px; width: 500px; }
+  td            { width: 25%; }
+  blockquote    { margin-left: 30px; }
+  pre           { background-color:transparent; border: 1px solid white; }
+
+/* Gecko min height fix */
+  p             { min-height: 1em; } /*min-height is needed under Firefox, because empty parargraphs */
+  *+html p      { min-height: auto; } /* but we have to remove it under IE7 because it triggers the 'haslayout' mode */
+  td            { height: 1.6em; }
+/* labels */
+  p         { background-image: url(lbl-p.png); }
+  h1        { background-image: url(lbl-h1.png); }
+  h2        { background-image: url(lbl-h2.png); }
+  h3        { background-image: url(lbl-h3.png); }
+  h4        { background-image: url(lbl-h4.png); }
+  h5        { background-image: url(lbl-h5.png); }
+  h6        { background-image: url(lbl-h6.png); }
+  blockquote{ background-image: url(lbl-blockquote.png); }
+  pre       { background-image: url(lbl-pre.png); }
+
+/* specific HTML elements */
+  caption   { text-align: left; }
+  img       { margin-right: 5px;
+              border-style: solid;
+              border-color: gray;
+              border-width: 0; }
+  a img     { border-width: 1px; border-color: blue; }
+  acronym   { border: 1px solid gray; }
+  span      { background-color: #eef; }
+
+/* visual feedback for non-valid nesting of elements*/
+  h1 h1, h1 h2, h1 h3, h1 h4, h1 h5, h1 h6, h1 p, h1 pre, h1 address,
+  h2 h1, h2 h2, h2 h3, h2 h4, h2 h5, h2 h6, h2 p, h2 pre, h2 address,
+  h3 h1, h3 h2, h3 h3, h3 h4, h3 h5, h3 h6, h3 p, h3 pre, h3 address,
+  h4 h1, h4 h2, h4 h3, h4 h4, h4 h5, h4 h6, h4 p, h4 pre, h4 address,
+  h5 h1, h5 h2, h5 h3, h5 h4, h5 h5, h5 h6, h5 p, h5 pre, h5 address,
+  h6 h1, h6 h2, h6 h3, h6 h4, h6 h4, h6 h6, h6 p, h6 pre, h6 address,
+  p h1, p h2, p h3, p h4, p h5, p h6, p pre, p address,
+  pre h1, pre h2, pre h3, pre h4, pre h5, pre h6, pre p, pre pre, pre address,
+  address h1, address h2, address h3, address h4, address h5, address h6,
+  address p, address pre, address address
+  { background-color: #ff9999 !important;
+    border: 1px solid red !important;
+    font-size: 12px !important;
+    font-weight: normal; }