compass-jquery-plugin 0.3.2.6 → 0.3.2.7.nil
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/VERSION.yml +2 -2
- data/lib/handle_js_files.rb +21 -2
- data/templates/dynatree/jquery.dynatree.js +23 -20
- data/templates/dynatree/jquery.dynatree.min.js +38 -38
- data/templates/dynatree/jquery/dynatree/aero.scss +1 -1
- data/templates/dynatree/jquery/dynatree/aqua.scss +1 -1
- data/templates/dynatree/jquery/dynatree/crystal.scss +1 -1
- data/templates/dynatree/jquery/dynatree/xp.scss +2 -2
- data/templates/ical/jquery/ical.scss +10 -10
- data/templates/jqgrid/i18n/jqgrid/locale-lt.js +134 -0
- data/templates/jqgrid/i18n/jqgrid/locale-lt.min.js +7 -0
- data/templates/jqgrid/jquery.jqGrid.js +155 -65
- data/templates/jqgrid/jquery.jqGrid.min.js +396 -393
- data/templates/jqgrid/manifest.rb +2 -0
- data/templates/jqtouch/jquery.jqtouch.js +166 -195
- data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
- data/templates/jqtouch/jquery/touch/apple.scss +5 -5
- data/templates/jqtouch/jquery/touch/default.scss +5 -5
- data/templates/jqtouch/jquery/touch/jqt.scss +12 -7
- data/templates/jqtouch/jquery/touch/jqtouch.scss +11 -13
- data/templates/jquery/history.adapter.jquery.js +54 -67
- data/templates/jquery/history.adapter.jquery.min.js +2 -2
- data/templates/jquery/history.html4.js +587 -680
- data/templates/jquery/history.html4.min.js +8 -18
- data/templates/jquery/history.js +1670 -1289
- data/templates/jquery/history.min.js +25 -21
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +23 -0
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.min.js +2 -0
- data/templates/jquery/jquery-ui.js +97 -61
- data/templates/jquery/jquery-ui.min.js +175 -175
- data/templates/jquery/jquery.dst.js +86 -151
- data/templates/jquery/jquery/ui/_theme.scss +13 -13
- data/templates/jquery/json2.js +214 -214
- data/templates/jquery/manifest.rb +2 -0
- data/templates/mobile/jquery.mobile.js +324 -225
- data/templates/mobile/jquery.mobile.min.js +4 -4
- data/templates/mobile/jquery/mobile/_base.scss +60 -48
- data/templates/mobile/jquery/mobile/default.scss +57 -80
- data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia.scss +61 -73
- data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
- data/templates/mobile/manifest.rb +0 -8
- data/templates/ribbon/jquery/ribbon/office.scss +12 -12
- data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
- data/templates/tiny_mce/manifest.rb +16 -0
- data/templates/tiny_mce/tiny_mce/jquery.tinymce.js +1 -1
- data/templates/tiny_mce/tiny_mce/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/langs/en.js +1 -222
- data/templates/tiny_mce/tiny_mce/plugins/advhr/css/advhr.css +1 -5
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin_src.js +1 -57
- data/templates/tiny_mce/tiny_mce/plugins/advhr/js/rule.js +1 -43
- data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/en_dlg.js +1 -7
- data/templates/tiny_mce/tiny_mce/plugins/advhr/rule.htm +1 -58
- data/templates/tiny_mce/tiny_mce/plugins/advimage/css/advimage.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin_src.js +1 -50
- data/templates/tiny_mce/tiny_mce/plugins/advimage/image.htm +1 -235
- data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +1 -445
- data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/en_dlg.js +1 -45
- data/templates/tiny_mce/tiny_mce/plugins/advlink/css/advlink.css +1 -8
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin_src.js +1 -61
- data/templates/tiny_mce/tiny_mce/plugins/advlink/js/advlink.js +1 -525
- data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -54
- data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +1 -338
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +1 -154
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +1 -119
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin_src.js +1 -431
- data/templates/tiny_mce/tiny_mce/plugins/autosave/langs/en.js +1 -4
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin_src.js +1 -120
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +1 -154
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin_src.js +1 -82
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin_src.js +1 -43
- data/templates/tiny_mce/tiny_mce/plugins/emotions/emotions.htm +1 -41
- data/templates/tiny_mce/tiny_mce/plugins/emotions/js/emotions.js +1 -22
- data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/en_dlg.js +1 -20
- data/templates/tiny_mce/tiny_mce/plugins/example/dialog.htm +1 -22
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin_src.js +1 -84
- data/templates/tiny_mce/tiny_mce/plugins/example/js/dialog.js +1 -19
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en.js +1 -3
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en_dlg.js +1 -3
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/css/fullpage.css +1 -182
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +1 -166
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +1 -571
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/js/fullpage.js +1 -492
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/en_dlg.js +1 -85
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin_src.js +1 -159
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/fullscreen.htm +1 -109
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin_src.js +1 -54
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +1 -696
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +1 -90
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/template.htm +1 -387
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +1 -83
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin_src.js +1 -214
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +1 -139
- data/templates/tiny_mce/tiny_mce/plugins/media/css/media.css +1 -17
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin_src.js +1 -770
- data/templates/tiny_mce/tiny_mce/plugins/media/js/embed.js +1 -73
- data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +1 -340
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/en_dlg.js +1 -109
- data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +1 -812
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +1 -90
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin_src.js +1 -74
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +1 -899
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pastetext.js +1 -36
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pasteword.js +1 -51
- data/templates/tiny_mce/tiny_mce/plugins/paste/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/langs/en_dlg.js +1 -5
- data/templates/tiny_mce/tiny_mce/plugins/paste/pastetext.htm +1 -27
- data/templates/tiny_mce/tiny_mce/plugins/paste/pasteword.htm +1 -21
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin_src.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/preview/example.html +17 -16
- data/templates/tiny_mce/tiny_mce/plugins/preview/jscripts/embed.js +1 -73
- data/templates/tiny_mce/tiny_mce/plugins/preview/preview.html +10 -9
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin_src.js +1 -34
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin_src.js +1 -101
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/css/searchreplace.css +1 -6
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin_src.js +1 -61
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/js/searchreplace.js +1 -140
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/en_dlg.js +1 -16
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/searchreplace.htm +1 -100
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/css/content.css +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +1 -415
- data/templates/tiny_mce/tiny_mce/plugins/style/css/props.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin_src.js +1 -55
- data/templates/tiny_mce/tiny_mce/plugins/style/js/props.js +1 -635
- data/templates/tiny_mce/tiny_mce/plugins/style/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/langs/en_dlg.js +1 -70
- data/templates/tiny_mce/tiny_mce/plugins/style/props.htm +1 -838
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin_src.js +1 -114
- data/templates/tiny_mce/tiny_mce/plugins/table/cell.htm +1 -178
- data/templates/tiny_mce/tiny_mce/plugins/table/css/cell.css +1 -17
- data/templates/tiny_mce/tiny_mce/plugins/table/css/row.css +1 -25
- data/templates/tiny_mce/tiny_mce/plugins/table/css/table.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1 -1183
- data/templates/tiny_mce/tiny_mce/plugins/table/js/cell.js +1 -284
- data/templates/tiny_mce/tiny_mce/plugins/table/js/merge_cells.js +1 -27
- data/templates/tiny_mce/tiny_mce/plugins/table/js/row.js +1 -232
- data/templates/tiny_mce/tiny_mce/plugins/table/js/table.js +1 -450
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/en_dlg.js +1 -74
- data/templates/tiny_mce/tiny_mce/plugins/table/merge_cells.htm +1 -32
- data/templates/tiny_mce/tiny_mce/plugins/table/row.htm +1 -157
- data/templates/tiny_mce/tiny_mce/plugins/table/table.htm +1 -188
- data/templates/tiny_mce/tiny_mce/plugins/template/blank.htm +1 -12
- data/templates/tiny_mce/tiny_mce/plugins/template/css/template.css +1 -23
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin_src.js +1 -159
- data/templates/tiny_mce/tiny_mce/plugins/template/js/template.js +1 -106
- data/templates/tiny_mce/tiny_mce/plugins/template/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/langs/en_dlg.js +1 -15
- data/templates/tiny_mce/tiny_mce/plugins/template/template.htm +1 -31
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin_src.js +1 -83
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin_src.js +1 -114
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/abbr.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/acronym.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/attributes.htm +1 -149
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/cite.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/attributes.css +1 -11
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/popup.css +1 -9
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/del.htm +1 -162
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +1 -132
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/ins.htm +1 -162
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/abbr.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/acronym.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/attributes.js +1 -125
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/cite.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/del.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/element_common.js +1 -229
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/ins.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +1 -32
- data/templates/tiny_mce/tiny_mce/themes/advanced/about.htm +1 -52
- data/templates/tiny_mce/tiny_mce/themes/advanced/anchor.htm +1 -26
- data/templates/tiny_mce/tiny_mce/themes/advanced/charmap.htm +1 -51
- data/templates/tiny_mce/tiny_mce/themes/advanced/color_picker.htm +1 -74
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1 -1328
- data/templates/tiny_mce/tiny_mce/themes/advanced/image.htm +1 -80
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/about.js +1 -73
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/anchor.js +1 -42
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/charmap.js +1 -354
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/color_picker.js +1 -329
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/image.js +1 -247
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/link.js +1 -153
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/source_editor.js +1 -56
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en.js +1 -68
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en_dlg.js +1 -54
- data/templates/tiny_mce/tiny_mce/themes/advanced/link.htm +1 -57
- data/templates/tiny_mce/tiny_mce/themes/advanced/shortcuts.htm +1 -47
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/content.css +1 -47
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/dialog.css +1 -117
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +1 -213
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/content.css +1 -23
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +1 -105
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/ui.css +1 -101
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/content.css +1 -46
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +1 -116
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +1 -215
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +1 -8
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +1 -5
- data/templates/tiny_mce/tiny_mce/themes/advanced/source_editor.htm +1 -25
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template_src.js +1 -84
- data/templates/tiny_mce/tiny_mce/themes/simple/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/langs/en.js +1 -11
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/content.css +1 -25
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/ui.css +1 -32
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/content.css +1 -17
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/ui.css +1 -35
- data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -1
- data/templates/tiny_mce/tiny_mce/tiny_mce_popup.js +1 -5
- data/templates/tiny_mce/tiny_mce/utils/editable_selects.js +1 -70
- data/templates/tiny_mce/tiny_mce/utils/form_utils.js +1 -207
- data/templates/tiny_mce/tiny_mce/utils/mctabs.js +1 -162
- data/templates/tiny_mce/tiny_mce/utils/validate.js +1 -252
- metadata +32 -17
- data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
@@ -1,8 +1 @@
|
|
1
|
-
|
2
|
-
.o2k7SkinBlack .mceToolbar .mceToolbarStart span, .o2k7SkinBlack .mceToolbar .mceToolbarEnd span, .o2k7SkinBlack .mceButton, .o2k7SkinBlack .mceSplitButton, .o2k7SkinBlack .mceSeparator, .o2k7SkinBlack .mceSplitButton a.mceOpen, .o2k7SkinBlack .mceListBox a.mceOpen {background-image:url(img/button_bg_black.png)}
|
3
|
-
.o2k7SkinBlack table, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack .mceMenuItemTitle span.mceText, .o2k7SkinBlack .mceStatusbar div, .o2k7SkinBlack .mceStatusbar span, .o2k7SkinBlack .mceStatusbar a {background:#535353; color:#FFF}
|
4
|
-
.o2k7SkinBlack table.mceListBoxEnabled .mceText, o2k7SkinBlack .mceListBox .mceText {background:#FFF; border:1px solid #CBCFD4; border-bottom-color:#989FA9; border-right:0}
|
5
|
-
.o2k7SkinBlack table.mceListBoxEnabled:hover .mceText, .o2k7SkinBlack .mceListBoxHover .mceText, .o2k7SkinBlack .mceListBoxSelected .mceText {background:#FFF; border:1px solid #FFBD69; border-right:0}
|
6
|
-
.o2k7SkinBlack .mceExternalToolbar, .o2k7SkinBlack .mceListBox .mceText, .o2k7SkinBlack div.mceMenu, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceFirst td, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceLast td, .o2k7SkinBlack .mceIframeContainer {border-color: #535353;}
|
7
|
-
.o2k7SkinBlack table.mceSplitButtonEnabled:hover a.mceAction, .o2k7SkinBlack .mceSplitButtonHover a.mceAction, .o2k7SkinBlack .mceSplitButtonSelected {background-image:url(img/button_bg_black.png)}
|
8
|
-
.o2k7SkinBlack .mceMenu .mceMenuItemEnabled a:hover, .o2k7SkinBlack .mceMenu .mceMenuItemActive {background-color:#FFE7A1}
|
1
|
+
.o2k7SkinBlack .mceToolbar .mceToolbarStart span,.o2k7SkinBlack .mceToolbar .mceToolbarEnd span,.o2k7SkinBlack .mceButton,.o2k7SkinBlack .mceSplitButton,.o2k7SkinBlack .mceSeparator,.o2k7SkinBlack .mceSplitButton a.mceOpen,.o2k7SkinBlack .mceListBox a.mceOpen{background-image:url(img/button_bg_black.png)}.o2k7SkinBlack table,.o2k7SkinBlack .mceMenuItemTitle a,.o2k7SkinBlack .mceMenuItemTitle span.mceText,.o2k7SkinBlack .mceStatusbar div,.o2k7SkinBlack .mceStatusbar span,.o2k7SkinBlack .mceStatusbar a{background:#535353;color:#FFF}.o2k7SkinBlack table.mceListBoxEnabled .mceText,o2k7SkinBlack .mceListBox .mceText{background:#FFF;border:1px solid #cbcfd4;border-bottom-color:#989fa9;border-right:0}.o2k7SkinBlack table.mceListBoxEnabled:hover .mceText,.o2k7SkinBlack .mceListBoxHover .mceText,.o2k7SkinBlack .mceListBoxSelected .mceText{background:#FFF;border:1px solid #ffbd69;border-right:0}.o2k7SkinBlack .mceExternalToolbar,.o2k7SkinBlack .mceListBox .mceText,.o2k7SkinBlack div.mceMenu,.o2k7SkinBlack table.mceLayout,.o2k7SkinBlack .mceMenuItemTitle a,.o2k7SkinBlack table.mceLayout tr.mceFirst td,.o2k7SkinBlack table.mceLayout,.o2k7SkinBlack .mceMenuItemTitle a,.o2k7SkinBlack table.mceLayout tr.mceLast td,.o2k7SkinBlack .mceIframeContainer{border-color:#535353}.o2k7SkinBlack table.mceSplitButtonEnabled:hover a.mceAction,.o2k7SkinBlack .mceSplitButtonHover a.mceAction,.o2k7SkinBlack .mceSplitButtonSelected{background-image:url(img/button_bg_black.png)}.o2k7SkinBlack .mceMenu .mceMenuItemEnabled a:hover,.o2k7SkinBlack .mceMenu .mceMenuItemActive{background-color:#ffe7a1}
|
@@ -1,5 +1 @@
|
|
1
|
-
|
2
|
-
.o2k7SkinSilver .mceToolbar .mceToolbarStart span, .o2k7SkinSilver .mceButton, .o2k7SkinSilver .mceSplitButton, .o2k7SkinSilver .mceSeparator, .o2k7SkinSilver .mceSplitButton a.mceOpen, .o2k7SkinSilver .mceListBox a.mceOpen {background-image:url(img/button_bg_silver.png)}
|
3
|
-
.o2k7SkinSilver table, .o2k7SkinSilver .mceMenuItemTitle a {background:#eee}
|
4
|
-
.o2k7SkinSilver .mceListBox .mceText {background:#FFF}
|
5
|
-
.o2k7SkinSilver .mceExternalToolbar, .o2k7SkinSilver .mceListBox .mceText, .o2k7SkinSilver div.mceMenu, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceFirst td, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceLast td, .o2k7SkinSilver .mceIframeContainer {border-color: #bbb}
|
1
|
+
.o2k7SkinSilver .mceToolbar .mceToolbarStart span,.o2k7SkinSilver .mceButton,.o2k7SkinSilver .mceSplitButton,.o2k7SkinSilver .mceSeparator,.o2k7SkinSilver .mceSplitButton a.mceOpen,.o2k7SkinSilver .mceListBox a.mceOpen{background-image:url(img/button_bg_silver.png)}.o2k7SkinSilver table,.o2k7SkinSilver .mceMenuItemTitle a{background:#eee}.o2k7SkinSilver .mceListBox .mceText{background:#FFF}.o2k7SkinSilver .mceExternalToolbar,.o2k7SkinSilver .mceListBox .mceText,.o2k7SkinSilver div.mceMenu,.o2k7SkinSilver table.mceLayout,.o2k7SkinSilver .mceMenuItemTitle a,.o2k7SkinSilver table.mceLayout tr.mceFirst td,.o2k7SkinSilver table.mceLayout,.o2k7SkinSilver .mceMenuItemTitle a,.o2k7SkinSilver table.mceLayout tr.mceLast td,.o2k7SkinSilver .mceIframeContainer{border-color:#bbb}
|
@@ -1,25 +1 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
2
|
-
<head>
|
3
|
-
<title>{#advanced_dlg.code_title}</title>
|
4
|
-
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
5
|
-
<script type="text/javascript" src="js/source_editor.js"></script>
|
6
|
-
</head>
|
7
|
-
<body onresize="resizeInputs();" style="display:none; overflow:hidden;">
|
8
|
-
<form name="source" onsubmit="saveContent();return false;" action="#">
|
9
|
-
<div style="float: left" class="title"><label for="htmlSource">{#advanced_dlg.code_title}</label></div>
|
10
|
-
|
11
|
-
<div id="wrapline" style="float: right">
|
12
|
-
<input type="checkbox" name="wraped" id="wraped" onclick="toggleWordWrap(this);" class="wordWrapCode" /><label for="wraped">{#advanced_dlg.code_wordwrap}</label>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<br style="clear: both" />
|
16
|
-
|
17
|
-
<textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,monospace; font-size: 12px;" dir="ltr" wrap="off" class="mceFocus"></textarea>
|
18
|
-
|
19
|
-
<div class="mceActionPanel">
|
20
|
-
<input type="submit" role="button" name="insert" value="{#update}" id="insert" />
|
21
|
-
<input type="button" role="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
|
22
|
-
</div>
|
23
|
-
</form>
|
24
|
-
</body>
|
25
|
-
</html>
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>{#advanced_dlg.code_title}</title><script type="text/javascript" src="../../tiny_mce_popup.js"></script><script type="text/javascript" src="js/source_editor.js"></script></head><body onresize="resizeInputs();" style="display:none; overflow:hidden;"><form name="source" onsubmit="saveContent();return false;" action="#"><div style="float: left" class="title"><label for="htmlSource">{#advanced_dlg.code_title}</label></div><div id="wrapline" style="float: right"><input type="checkbox" name="wraped" id="wraped" onclick="toggleWordWrap(this);" class="wordWrapCode"/><label for="wraped">{#advanced_dlg.code_wordwrap}</label></div><br style="clear: both"/><textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,monospace; font-size: 12px;" dir="ltr" wrap="off" class="mceFocus"></textarea><div class="mceActionPanel"><input type="submit" role="button" name="insert" value="{#update}" id="insert"/><input type="button" role="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel"/></div></form></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
(function(){var
|
1
|
+
(function(){var b=tinymce.DOM;tinymce.ThemeManager.requireLangPack("simple");tinymce.create("tinymce.themes.SimpleTheme",{init:function(j,i){var h=this,a=["Bold","Italic","Underline","Strikethrough","InsertUnorderedList","InsertOrderedList"],g=j.settings;h.editor=j;j.contentCSS.push(i+"/skins/"+g.skin+"/content.css");j.onInit.add(function(){j.onNodeChange.add(function(c,d){tinymce.each(a,function(e){d.get(e.toLowerCase()).setActive(c.queryCommandState(e))})})});b.loadCSS((g.editor_css?j.documentBaseURI.toAbsolute(g.editor_css):"")||i+"/skins/"+g.skin+"/ui.css")},renderUI:function(k){var n=this,j=k.targetNode,a,p,o=n.editor,m=o.controlManager,l;j=b.insertAfter(b.create("span",{id:o.id+"_container","class":"mceEditor "+o.settings.skin+"SimpleSkin"}),j);j=l=b.add(j,"table",{cellPadding:0,cellSpacing:0,"class":"mceLayout"});j=p=b.add(j,"tbody");j=b.add(p,"tr");j=a=b.add(b.add(j,"td"),"div",{"class":"mceIframeContainer"});j=b.add(b.add(p,"tr",{"class":"last"}),"td",{"class":"mceToolbar mceLast",align:"center"});p=n.toolbar=m.createToolbar("tools1");p.add(m.createButton("bold",{title:"simple.bold_desc",cmd:"Bold"}));p.add(m.createButton("italic",{title:"simple.italic_desc",cmd:"Italic"}));p.add(m.createButton("underline",{title:"simple.underline_desc",cmd:"Underline"}));p.add(m.createButton("strikethrough",{title:"simple.striketrough_desc",cmd:"Strikethrough"}));p.add(m.createSeparator());p.add(m.createButton("undo",{title:"simple.undo_desc",cmd:"Undo"}));p.add(m.createButton("redo",{title:"simple.redo_desc",cmd:"Redo"}));p.add(m.createSeparator());p.add(m.createButton("cleanup",{title:"simple.cleanup_desc",cmd:"mceCleanup"}));p.add(m.createSeparator());p.add(m.createButton("insertunorderedlist",{title:"simple.bullist_desc",cmd:"InsertUnorderedList"}));p.add(m.createButton("insertorderedlist",{title:"simple.numlist_desc",cmd:"InsertOrderedList"}));p.renderTo(j);return{iframeContainer:a,editorContainer:o.id+"_container",sizeContainer:l,deltaHeight:-20}},getInfo:function(){return{longname:"Simple theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add("simple",tinymce.themes.SimpleTheme)})();
|
@@ -1,84 +1 @@
|
|
1
|
-
|
2
|
-
* editor_template_src.js
|
3
|
-
*
|
4
|
-
* Copyright 2009, Moxiecode Systems AB
|
5
|
-
* Released under LGPL License.
|
6
|
-
*
|
7
|
-
* License: http://tinymce.moxiecode.com/license
|
8
|
-
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function() {
|
12
|
-
var DOM = tinymce.DOM;
|
13
|
-
|
14
|
-
// Tell it to load theme specific language pack(s)
|
15
|
-
tinymce.ThemeManager.requireLangPack('simple');
|
16
|
-
|
17
|
-
tinymce.create('tinymce.themes.SimpleTheme', {
|
18
|
-
init : function(ed, url) {
|
19
|
-
var t = this, states = ['Bold', 'Italic', 'Underline', 'Strikethrough', 'InsertUnorderedList', 'InsertOrderedList'], s = ed.settings;
|
20
|
-
|
21
|
-
t.editor = ed;
|
22
|
-
ed.contentCSS.push(url + "/skins/" + s.skin + "/content.css");
|
23
|
-
|
24
|
-
ed.onInit.add(function() {
|
25
|
-
ed.onNodeChange.add(function(ed, cm) {
|
26
|
-
tinymce.each(states, function(c) {
|
27
|
-
cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c));
|
28
|
-
});
|
29
|
-
});
|
30
|
-
});
|
31
|
-
|
32
|
-
DOM.loadCSS((s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : '') || url + "/skins/" + s.skin + "/ui.css");
|
33
|
-
},
|
34
|
-
|
35
|
-
renderUI : function(o) {
|
36
|
-
var t = this, n = o.targetNode, ic, tb, ed = t.editor, cf = ed.controlManager, sc;
|
37
|
-
|
38
|
-
n = DOM.insertAfter(DOM.create('span', {id : ed.id + '_container', 'class' : 'mceEditor ' + ed.settings.skin + 'SimpleSkin'}), n);
|
39
|
-
n = sc = DOM.add(n, 'table', {cellPadding : 0, cellSpacing : 0, 'class' : 'mceLayout'});
|
40
|
-
n = tb = DOM.add(n, 'tbody');
|
41
|
-
|
42
|
-
// Create iframe container
|
43
|
-
n = DOM.add(tb, 'tr');
|
44
|
-
n = ic = DOM.add(DOM.add(n, 'td'), 'div', {'class' : 'mceIframeContainer'});
|
45
|
-
|
46
|
-
// Create toolbar container
|
47
|
-
n = DOM.add(DOM.add(tb, 'tr', {'class' : 'last'}), 'td', {'class' : 'mceToolbar mceLast', align : 'center'});
|
48
|
-
|
49
|
-
// Create toolbar
|
50
|
-
tb = t.toolbar = cf.createToolbar("tools1");
|
51
|
-
tb.add(cf.createButton('bold', {title : 'simple.bold_desc', cmd : 'Bold'}));
|
52
|
-
tb.add(cf.createButton('italic', {title : 'simple.italic_desc', cmd : 'Italic'}));
|
53
|
-
tb.add(cf.createButton('underline', {title : 'simple.underline_desc', cmd : 'Underline'}));
|
54
|
-
tb.add(cf.createButton('strikethrough', {title : 'simple.striketrough_desc', cmd : 'Strikethrough'}));
|
55
|
-
tb.add(cf.createSeparator());
|
56
|
-
tb.add(cf.createButton('undo', {title : 'simple.undo_desc', cmd : 'Undo'}));
|
57
|
-
tb.add(cf.createButton('redo', {title : 'simple.redo_desc', cmd : 'Redo'}));
|
58
|
-
tb.add(cf.createSeparator());
|
59
|
-
tb.add(cf.createButton('cleanup', {title : 'simple.cleanup_desc', cmd : 'mceCleanup'}));
|
60
|
-
tb.add(cf.createSeparator());
|
61
|
-
tb.add(cf.createButton('insertunorderedlist', {title : 'simple.bullist_desc', cmd : 'InsertUnorderedList'}));
|
62
|
-
tb.add(cf.createButton('insertorderedlist', {title : 'simple.numlist_desc', cmd : 'InsertOrderedList'}));
|
63
|
-
tb.renderTo(n);
|
64
|
-
|
65
|
-
return {
|
66
|
-
iframeContainer : ic,
|
67
|
-
editorContainer : ed.id + '_container',
|
68
|
-
sizeContainer : sc,
|
69
|
-
deltaHeight : -20
|
70
|
-
};
|
71
|
-
},
|
72
|
-
|
73
|
-
getInfo : function() {
|
74
|
-
return {
|
75
|
-
longname : 'Simple theme',
|
76
|
-
author : 'Moxiecode Systems AB',
|
77
|
-
authorurl : 'http://tinymce.moxiecode.com',
|
78
|
-
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
79
|
-
}
|
80
|
-
}
|
81
|
-
});
|
82
|
-
|
83
|
-
tinymce.ThemeManager.add('simple', tinymce.themes.SimpleTheme);
|
84
|
-
})();
|
1
|
+
(function(){var a=tinymce.DOM;tinymce.ThemeManager.requireLangPack("simple");tinymce.create("tinymce.themes.SimpleTheme",{init:function(c,d){var e=this,b=["Bold","Italic","Underline","Strikethrough","InsertUnorderedList","InsertOrderedList"],f=c.settings;e.editor=c;c.contentCSS.push(d+"/skins/"+f.skin+"/content.css");c.onInit.add(function(){c.onNodeChange.add(function(h,g){tinymce.each(b,function(i){g.get(i.toLowerCase()).setActive(h.queryCommandState(i))})})});a.loadCSS((f.editor_css?c.documentBaseURI.toAbsolute(f.editor_css):"")||d+"/skins/"+f.skin+"/ui.css")},renderUI:function(h){var e=this,i=h.targetNode,b,c,d=e.editor,f=d.controlManager,g;i=a.insertAfter(a.create("span",{id:d.id+"_container","class":"mceEditor "+d.settings.skin+"SimpleSkin"}),i);i=g=a.add(i,"table",{cellPadding:0,cellSpacing:0,"class":"mceLayout"});i=c=a.add(i,"tbody");i=a.add(c,"tr");i=b=a.add(a.add(i,"td"),"div",{"class":"mceIframeContainer"});i=a.add(a.add(c,"tr",{"class":"last"}),"td",{"class":"mceToolbar mceLast",align:"center"});c=e.toolbar=f.createToolbar("tools1");c.add(f.createButton("bold",{title:"simple.bold_desc",cmd:"Bold"}));c.add(f.createButton("italic",{title:"simple.italic_desc",cmd:"Italic"}));c.add(f.createButton("underline",{title:"simple.underline_desc",cmd:"Underline"}));c.add(f.createButton("strikethrough",{title:"simple.striketrough_desc",cmd:"Strikethrough"}));c.add(f.createSeparator());c.add(f.createButton("undo",{title:"simple.undo_desc",cmd:"Undo"}));c.add(f.createButton("redo",{title:"simple.redo_desc",cmd:"Redo"}));c.add(f.createSeparator());c.add(f.createButton("cleanup",{title:"simple.cleanup_desc",cmd:"mceCleanup"}));c.add(f.createSeparator());c.add(f.createButton("insertunorderedlist",{title:"simple.bullist_desc",cmd:"InsertUnorderedList"}));c.add(f.createButton("insertorderedlist",{title:"simple.numlist_desc",cmd:"InsertOrderedList"}));c.renderTo(i);return{iframeContainer:b,editorContainer:d.id+"_container",sizeContainer:g,deltaHeight:-20}},getInfo:function(){return{longname:"Simple theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add("simple",tinymce.themes.SimpleTheme)})();
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n("de.simple",{cleanup_desc:"Quellcode aufr\u00e4umen",redo_desc:"Wiederholen (Strg+Y)",undo_desc:"R\u00fcckg\u00e4ngig (Strg+Z)",numlist_desc:"Nummerierung",bullist_desc:"Aufz\u00e4hlung",striketrough_desc:"Durchgestrichen",underline_desc:"Unterstrichen (Strg+U)",italic_desc:"Kursiv (Strg+I)",bold_desc:"Fett (Strg+B)"});
|
@@ -1,11 +1 @@
|
|
1
|
-
tinyMCE.addI18n(
|
2
|
-
bold_desc:"Bold (Ctrl+B)",
|
3
|
-
italic_desc:"Italic (Ctrl+I)",
|
4
|
-
underline_desc:"Underline (Ctrl+U)",
|
5
|
-
striketrough_desc:"Strikethrough",
|
6
|
-
bullist_desc:"Unordered list",
|
7
|
-
numlist_desc:"Ordered list",
|
8
|
-
undo_desc:"Undo (Ctrl+Z)",
|
9
|
-
redo_desc:"Redo (Ctrl+Y)",
|
10
|
-
cleanup_desc:"Cleanup messy code"
|
11
|
-
});
|
1
|
+
tinyMCE.addI18n("en.simple",{bold_desc:"Bold (Ctrl+B)",italic_desc:"Italic (Ctrl+I)",underline_desc:"Underline (Ctrl+U)",striketrough_desc:"Strikethrough",bullist_desc:"Unordered list",numlist_desc:"Ordered list",undo_desc:"Undo (Ctrl+Z)",redo_desc:"Redo (Ctrl+Y)",cleanup_desc:"Cleanup messy code"});
|
@@ -1,25 +1 @@
|
|
1
|
-
body,
|
2
|
-
font-family: Verdana, Arial, Helvetica, sans-serif;
|
3
|
-
font-size: 10px;
|
4
|
-
}
|
5
|
-
|
6
|
-
body {
|
7
|
-
background-color: #FFFFFF;
|
8
|
-
}
|
9
|
-
|
10
|
-
.mceVisualAid {
|
11
|
-
border: 1px dashed #BBBBBB;
|
12
|
-
}
|
13
|
-
|
14
|
-
/* MSIE specific */
|
15
|
-
|
16
|
-
* html body {
|
17
|
-
scrollbar-3dlight-color: #F0F0EE;
|
18
|
-
scrollbar-arrow-color: #676662;
|
19
|
-
scrollbar-base-color: #F0F0EE;
|
20
|
-
scrollbar-darkshadow-color: #DDDDDD;
|
21
|
-
scrollbar-face-color: #E0E0DD;
|
22
|
-
scrollbar-highlight-color: #F0F0EE;
|
23
|
-
scrollbar-shadow-color: #F0F0EE;
|
24
|
-
scrollbar-track-color: #F5F5F5;
|
25
|
-
}
|
1
|
+
body,td,pre{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px}body{background-color:#fff}.mceVisualAid{border:1px dashed #bbb}* html body{scrollbar-3dlight-color:#f0f0ee;scrollbar-arrow-color:#676662;scrollbar-base-color:#f0f0ee;scrollbar-darkshadow-color:#ddd;scrollbar-face-color:#e0e0dd;scrollbar-highlight-color:#f0f0ee;scrollbar-shadow-color:#f0f0ee;scrollbar-track-color:#f5f5f5}
|
@@ -1,32 +1 @@
|
|
1
|
-
|
2
|
-
.defaultSimpleSkin table, .defaultSimpleSkin tbody, .defaultSimpleSkin a, .defaultSimpleSkin img, .defaultSimpleSkin tr, .defaultSimpleSkin div, .defaultSimpleSkin td, .defaultSimpleSkin iframe, .defaultSimpleSkin span, .defaultSimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000}
|
3
|
-
|
4
|
-
/* Containers */
|
5
|
-
.defaultSimpleSkin {position:relative}
|
6
|
-
.defaultSimpleSkin table.mceLayout {background:#F0F0EE; border:1px solid #CCC;}
|
7
|
-
.defaultSimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #CCC;}
|
8
|
-
.defaultSimpleSkin .mceToolbar {height:24px;}
|
9
|
-
|
10
|
-
/* Layout */
|
11
|
-
.defaultSimpleSkin span.mceIcon, .defaultSimpleSkin img.mceIcon {display:block; width:20px; height:20px}
|
12
|
-
.defaultSimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
|
13
|
-
|
14
|
-
/* Button */
|
15
|
-
.defaultSimpleSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px}
|
16
|
-
.defaultSimpleSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0}
|
17
|
-
.defaultSimpleSkin a.mceButtonActive {border:1px solid #0A246A; background-color:#C2CBE0}
|
18
|
-
.defaultSimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
|
19
|
-
|
20
|
-
/* Separator */
|
21
|
-
.defaultSimpleSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:0 2px 0 4px}
|
22
|
-
|
23
|
-
/* Theme */
|
24
|
-
.defaultSimpleSkin span.mce_bold {background-position:0 0}
|
25
|
-
.defaultSimpleSkin span.mce_italic {background-position:-60px 0}
|
26
|
-
.defaultSimpleSkin span.mce_underline {background-position:-140px 0}
|
27
|
-
.defaultSimpleSkin span.mce_strikethrough {background-position:-120px 0}
|
28
|
-
.defaultSimpleSkin span.mce_undo {background-position:-160px 0}
|
29
|
-
.defaultSimpleSkin span.mce_redo {background-position:-100px 0}
|
30
|
-
.defaultSimpleSkin span.mce_cleanup {background-position:-40px 0}
|
31
|
-
.defaultSimpleSkin span.mce_insertunorderedlist {background-position:-20px 0}
|
32
|
-
.defaultSimpleSkin span.mce_insertorderedlist {background-position:-80px 0}
|
1
|
+
.defaultSimpleSkin table,.defaultSimpleSkin tbody,.defaultSimpleSkin a,.defaultSimpleSkin img,.defaultSimpleSkin tr,.defaultSimpleSkin div,.defaultSimpleSkin td,.defaultSimpleSkin iframe,.defaultSimpleSkin span,.defaultSimpleSkin *{border:0;margin:0;padding:0;background:transparent;white-space:nowrap;text-decoration:none;font-weight:normal;cursor:default;color:#000}.defaultSimpleSkin{position:relative}.defaultSimpleSkin table.mceLayout{background:#f0f0ee;border:1px solid #CCC}.defaultSimpleSkin iframe{display:block;background:#FFF;border-bottom:1px solid #CCC}.defaultSimpleSkin .mceToolbar{height:24px}.defaultSimpleSkin span.mceIcon,.defaultSimpleSkin img.mceIcon{display:block;width:20px;height:20px}.defaultSimpleSkin .mceIcon{background:url(../../img/icons.gif) no-repeat 20px 20px}.defaultSimpleSkin .mceButton{display:block;border:1px solid #f0f0ee;width:20px;height:20px}.defaultSimpleSkin a.mceButtonEnabled:hover{border:1px solid #0a246a;background-color:#b2bbd0}.defaultSimpleSkin a.mceButtonActive{border:1px solid #0a246a;background-color:#c2cbe0}.defaultSimpleSkin .mceButtonDisabled span{opacity:.3;-ms-filter:'alpha(opacity=30)';filter:alpha(opacity = 30)}.defaultSimpleSkin .mceSeparator{display:block;background:url(../../img/icons.gif) -180px 0;width:2px;height:20px;margin:0 2px 0 4px}.defaultSimpleSkin span.mce_bold{background-position:0 0}.defaultSimpleSkin span.mce_italic{background-position:-60px 0}.defaultSimpleSkin span.mce_underline{background-position:-140px 0}.defaultSimpleSkin span.mce_strikethrough{background-position:-120px 0}.defaultSimpleSkin span.mce_undo{background-position:-160px 0}.defaultSimpleSkin span.mce_redo{background-position:-100px 0}.defaultSimpleSkin span.mce_cleanup{background-position:-40px 0}.defaultSimpleSkin span.mce_insertunorderedlist{background-position:-20px 0}.defaultSimpleSkin span.mce_insertorderedlist{background-position:-80px 0}
|
@@ -1,17 +1 @@
|
|
1
|
-
body,
|
2
|
-
|
3
|
-
body {background: #FFF;}
|
4
|
-
.mceVisualAid {border: 1px dashed #BBB;}
|
5
|
-
|
6
|
-
/* IE */
|
7
|
-
|
8
|
-
* html body {
|
9
|
-
scrollbar-3dlight-color: #F0F0EE;
|
10
|
-
scrollbar-arrow-color: #676662;
|
11
|
-
scrollbar-base-color: #F0F0EE;
|
12
|
-
scrollbar-darkshadow-color: #DDDDDD;
|
13
|
-
scrollbar-face-color: #E0E0DD;
|
14
|
-
scrollbar-highlight-color: #F0F0EE;
|
15
|
-
scrollbar-shadow-color: #F0F0EE;
|
16
|
-
scrollbar-track-color: #F5F5F5;
|
17
|
-
}
|
1
|
+
body,td,pre{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px}body{background:#FFF}.mceVisualAid{border:1px dashed #BBB}* html body{scrollbar-3dlight-color:#f0f0ee;scrollbar-arrow-color:#676662;scrollbar-base-color:#f0f0ee;scrollbar-darkshadow-color:#ddd;scrollbar-face-color:#e0e0dd;scrollbar-highlight-color:#f0f0ee;scrollbar-shadow-color:#f0f0ee;scrollbar-track-color:#f5f5f5}
|
@@ -1,35 +1 @@
|
|
1
|
-
|
2
|
-
.o2k7SimpleSkin table, .o2k7SimpleSkin tbody, .o2k7SimpleSkin a, .o2k7SimpleSkin img, .o2k7SimpleSkin tr, .o2k7SimpleSkin div, .o2k7SimpleSkin td, .o2k7SimpleSkin iframe, .o2k7SimpleSkin span, .o2k7SimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000}
|
3
|
-
|
4
|
-
/* Containers */
|
5
|
-
.o2k7SimpleSkin {position:relative}
|
6
|
-
.o2k7SimpleSkin table.mceLayout {background:#E5EFFD; border:1px solid #ABC6DD;}
|
7
|
-
.o2k7SimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #ABC6DD;}
|
8
|
-
.o2k7SimpleSkin .mceToolbar {height:26px;}
|
9
|
-
|
10
|
-
/* Layout */
|
11
|
-
.o2k7SimpleSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; }
|
12
|
-
.o2k7SimpleSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px}
|
13
|
-
.o2k7SimpleSkin span.mceIcon, .o2k7SimpleSkin img.mceIcon {display:block; width:20px; height:20px}
|
14
|
-
.o2k7SimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
|
15
|
-
|
16
|
-
/* Button */
|
17
|
-
.o2k7SimpleSkin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px}
|
18
|
-
.o2k7SimpleSkin a.mceButton span, .o2k7SimpleSkin a.mceButton img {margin:1px 0 0 1px}
|
19
|
-
.o2k7SimpleSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px}
|
20
|
-
.o2k7SimpleSkin a.mceButtonActive {background-position:0 -44px}
|
21
|
-
.o2k7SimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
|
22
|
-
|
23
|
-
/* Separator */
|
24
|
-
.o2k7SimpleSkin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px}
|
25
|
-
|
26
|
-
/* Theme */
|
27
|
-
.o2k7SimpleSkin span.mce_bold {background-position:0 0}
|
28
|
-
.o2k7SimpleSkin span.mce_italic {background-position:-60px 0}
|
29
|
-
.o2k7SimpleSkin span.mce_underline {background-position:-140px 0}
|
30
|
-
.o2k7SimpleSkin span.mce_strikethrough {background-position:-120px 0}
|
31
|
-
.o2k7SimpleSkin span.mce_undo {background-position:-160px 0}
|
32
|
-
.o2k7SimpleSkin span.mce_redo {background-position:-100px 0}
|
33
|
-
.o2k7SimpleSkin span.mce_cleanup {background-position:-40px 0}
|
34
|
-
.o2k7SimpleSkin span.mce_insertunorderedlist {background-position:-20px 0}
|
35
|
-
.o2k7SimpleSkin span.mce_insertorderedlist {background-position:-80px 0}
|
1
|
+
.o2k7SimpleSkin table,.o2k7SimpleSkin tbody,.o2k7SimpleSkin a,.o2k7SimpleSkin img,.o2k7SimpleSkin tr,.o2k7SimpleSkin div,.o2k7SimpleSkin td,.o2k7SimpleSkin iframe,.o2k7SimpleSkin span,.o2k7SimpleSkin *{border:0;margin:0;padding:0;background:transparent;white-space:nowrap;text-decoration:none;font-weight:normal;cursor:default;color:#000}.o2k7SimpleSkin{position:relative}.o2k7SimpleSkin table.mceLayout{background:#e5effd;border:1px solid #abc6dd}.o2k7SimpleSkin iframe{display:block;background:#FFF;border-bottom:1px solid #abc6dd}.o2k7SimpleSkin .mceToolbar{height:26px}.o2k7SimpleSkin .mceToolbar .mceToolbarStart span{display:block;background:url(img/button_bg.png) -22px 0;width:1px;height:22px}.o2k7SimpleSkin .mceToolbar .mceToolbarEnd span{display:block;background:url(img/button_bg.png) -22px 0;width:1px;height:22px}.o2k7SimpleSkin span.mceIcon,.o2k7SimpleSkin img.mceIcon{display:block;width:20px;height:20px}.o2k7SimpleSkin .mceIcon{background:url(../../img/icons.gif) no-repeat 20px 20px}.o2k7SimpleSkin .mceButton{display:block;background:url(img/button_bg.png);width:22px;height:22px}.o2k7SimpleSkin a.mceButton span,.o2k7SimpleSkin a.mceButton img{margin:1px 0 0 1px}.o2k7SimpleSkin a.mceButtonEnabled:hover{background-color:#b2bbd0;background-position:0 -22px}.o2k7SimpleSkin a.mceButtonActive{background-position:0 -44px}.o2k7SimpleSkin .mceButtonDisabled span{opacity:.3;-ms-filter:'alpha(opacity=30)';filter:alpha(opacity = 30)}.o2k7SimpleSkin .mceSeparator{display:block;background:url(img/button_bg.png) -22px 0;width:5px;height:22px}.o2k7SimpleSkin span.mce_bold{background-position:0 0}.o2k7SimpleSkin span.mce_italic{background-position:-60px 0}.o2k7SimpleSkin span.mce_underline{background-position:-140px 0}.o2k7SimpleSkin span.mce_strikethrough{background-position:-120px 0}.o2k7SimpleSkin span.mce_undo{background-position:-160px 0}.o2k7SimpleSkin span.mce_redo{background-position:-100px 0}.o2k7SimpleSkin span.mce_cleanup{background-position:-40px 0}.o2k7SimpleSkin span.mce_insertunorderedlist{background-position:-20px 0}.o2k7SimpleSkin span.mce_insertorderedlist{background-position:-80px 0}
|
@@ -1 +1 @@
|
|
1
|
-
(function(d){var a=/^\s*|\s*$/g,e,c="B".replace(/A(.)|B/,"$1")==="$1";var b={majorVersion:"3",minorVersion:"4",releaseDate:"2011-03-10",_init:function(){var s=this,q=document,o=navigator,g=o.userAgent,m,f,l,k,j,r;s.isOpera=d.opera&&opera.buildNumber;s.isWebKit=/WebKit/.test(g);s.isIE=!s.isWebKit&&!s.isOpera&&(/MSIE/gi).test(g)&&(/Explorer/gi).test(o.appName);s.isIE6=s.isIE&&/MSIE [56]/.test(g);s.isGecko=!s.isWebKit&&/Gecko/.test(g);s.isMac=g.indexOf("Mac")!=-1;s.isAir=/adobeair/i.test(g);s.isIDevice=/(iPad|iPhone)/.test(g);if(d.tinyMCEPreInit){s.suffix=tinyMCEPreInit.suffix;s.baseURL=tinyMCEPreInit.base;s.query=tinyMCEPreInit.query;return}s.suffix="";f=q.getElementsByTagName("base");for(m=0;m<f.length;m++){if(r=f[m].href){if(/^https?:\/\/[^\/]+$/.test(r)){r+="/"}k=r?r.match(/.*\//)[0]:""}}function h(i){if(i.src&&/tiny_mce(|_gzip|_jquery|_prototype|_full)(_dev|_src)?.js/.test(i.src)){if(/_(src|dev)\.js/g.test(i.src)){s.suffix="_src"}if((j=i.src.indexOf("?"))!=-1){s.query=i.src.substring(j+1)}s.baseURL=i.src.substring(0,i.src.lastIndexOf("/"));if(k&&s.baseURL.indexOf("://")==-1&&s.baseURL.indexOf("/")!==0){s.baseURL=k+s.baseURL}return s.baseURL}return null}f=q.getElementsByTagName("script");for(m=0;m<f.length;m++){if(h(f[m])){return}}l=q.getElementsByTagName("head")[0];if(l){f=l.getElementsByTagName("script");for(m=0;m<f.length;m++){if(h(f[m])){return}}}return},is:function(g,f){if(!f){return g!==e}if(f=="array"&&(g.hasOwnProperty&&g instanceof Array)){return true}return typeof(g)==f},makeMap:function(f,j,h){var g;f=f||[];j=j||",";if(typeof(f)=="string"){f=f.split(j)}h=h||{};g=f.length;while(g--){h[f[g]]={}}return h},each:function(i,f,h){var j,g;if(!i){return 0}h=h||i;if(i.length!==e){for(j=0,g=i.length;j<g;j++){if(f.call(h,i[j],j,i)===false){return 0}}}else{for(j in i){if(i.hasOwnProperty(j)){if(f.call(h,i[j],j,i)===false){return 0}}}}return 1},trim:function(f){return(f?""+f:"").replace(a,"")},create:function(o,f,j){var n=this,g,i,k,l,h,m=0;o=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(o);k=o[3].match(/(^|\.)(\w+)$/i)[2];i=n.createNS(o[3].replace(/\.\w+$/,""),j);if(i[k]){return}if(o[2]=="static"){i[k]=f;if(this.onCreate){this.onCreate(o[2],o[3],i[k])}return}if(!f[k]){f[k]=function(){};m=1}i[k]=f[k];n.extend(i[k].prototype,f);if(o[5]){g=n.resolve(o[5]).prototype;l=o[5].match(/\.(\w+)$/i)[1];h=i[k];if(m){i[k]=function(){return g[l].apply(this,arguments)}}else{i[k]=function(){this.parent=g[l];return h.apply(this,arguments)}}i[k].prototype[k]=i[k];n.each(g,function(p,q){i[k].prototype[q]=g[q]});n.each(f,function(p,q){if(g[q]){i[k].prototype[q]=function(){this.parent=g[q];return p.apply(this,arguments)}}else{if(q!=k){i[k].prototype[q]=p}}})}n.each(f["static"],function(p,q){i[k][q]=p});if(this.onCreate){this.onCreate(o[2],o[3],i[k].prototype)}},walk:function(i,h,j,g){g=g||this;if(i){if(j){i=i[j]}b.each(i,function(k,f){if(h.call(g,k,f,j)===false){return false}b.walk(k,h,j,g)})}},createNS:function(j,h){var g,f;h=h||d;j=j.split(".");for(g=0;g<j.length;g++){f=j[g];if(!h[f]){h[f]={}}h=h[f]}return h},resolve:function(j,h){var g,f;h=h||d;j=j.split(".");for(g=0,f=j.length;g<f;g++){h=h[j[g]];if(!h){break}}return h},addUnload:function(j,i){var h=this;j={func:j,scope:i||this};if(!h.unloads){function g(){var f=h.unloads,l,m;if(f){for(m in f){l=f[m];if(l&&l.func){l.func.call(l.scope,1)}}if(d.detachEvent){d.detachEvent("onbeforeunload",k);d.detachEvent("onunload",g)}else{if(d.removeEventListener){d.removeEventListener("unload",g,false)}}h.unloads=l=f=w=g=0;if(d.CollectGarbage){CollectGarbage()}}}function k(){var l=document;if(l.readyState=="interactive"){function f(){l.detachEvent("onstop",f);if(g){g()}l=0}if(l){l.attachEvent("onstop",f)}d.setTimeout(function(){if(l){l.detachEvent("onstop",f)}},0)}}if(d.attachEvent){d.attachEvent("onunload",g);d.attachEvent("onbeforeunload",k)}else{if(d.addEventListener){d.addEventListener("unload",g,false)}}h.unloads=[j]}else{h.unloads.push(j)}return j},removeUnload:function(i){var g=this.unloads,h=null;b.each(g,function(j,f){if(j&&j.func==i){g.splice(f,1);h=i;return false}});return h},explode:function(f,g){return f?b.map(f.split(g||","),b.trim):f},_addVer:function(g){var f;if(!this.query){return g}f=(g.indexOf("?")==-1?"?":"&")+this.query;if(g.indexOf("#")==-1){return g+f}return g.replace("#",f+"#")},_replace:function(h,f,g){if(c){return g.replace(h,function(){var l=f,j=arguments,k;for(k=0;k<j.length-2;k++){if(j[k]===e){l=l.replace(new RegExp("\\$"+k,"g"),"")}else{l=l.replace(new RegExp("\\$"+k,"g"),j[k])}}return l})}return g.replace(h,f)}};b._init();d.tinymce=d.tinyMCE=b})(window);(function(e,d){var c=d.is,b=/^(href|src|style)$/i,f;if(!e){return alert("Load jQuery first!")}d.$=e;d.adapter={patchEditor:function(j){var i=e.fn;function h(n,o){var m=this;if(o){m.removeAttr("data-mce-style")}return i.css.apply(m,arguments)}function g(n,o){var m=this;if(b.test(n)){if(o!==f){m.each(function(p,q){j.dom.setAttrib(q,n,o)});return m}else{return m.attr("data-mce-"+n)}}return i.attr.apply(m,arguments)}function k(m){return function(n){if(n){n=j.dom.processHTML(n)}return m.call(this,n)}}function l(m){if(m.css!==h){m.css=h;m.attr=g;m.html=k(i.html);m.append=k(i.append);m.prepend=k(i.prepend);m.after=k(i.after);m.before=k(i.before);m.replaceWith=k(i.replaceWith);m.tinymce=j;m.pushStack=function(){return l(i.pushStack.apply(this,arguments))}}return m}j.$=function(m,n){var o=j.getDoc();return l(e(m||o,o||n))}}};d.extend=e.extend;d.extend(d,{map:e.map,grep:function(g,h){return e.grep(g,h||function(){return 1})},inArray:function(g,h){return e.inArray(h,g||[])}});var a={"tinymce.dom.DOMUtils":{select:function(i,h){var g=this;return e.find(i,g.get(h)||g.get(g.settings.root_element)||g.doc,[])},is:function(h,g){return e(this.get(h)).is(g)}}};d.onCreate=function(g,i,h){d.extend(h,a[i])}})(window.jQuery,tinymce);tinymce.create("tinymce.util.Dispatcher",{scope:null,listeners:null,Dispatcher:function(a){this.scope=a||this;this.listeners=[]},add:function(a,b){this.listeners.push({cb:a,scope:b||this.scope});return a},addToTop:function(a,b){this.listeners.unshift({cb:a,scope:b||this.scope});return a},remove:function(a){var b=this.listeners,c=null;tinymce.each(b,function(e,d){if(a==e.cb){c=a;b.splice(d,1);return false}});return c},dispatch:function(){var f,d=arguments,e,b=this.listeners,g;for(e=0;e<b.length;e++){g=b[e];f=g.cb.apply(g.scope,d);if(f===false){break}}return f}});(function(){var a=tinymce.each;tinymce.create("tinymce.util.URI",{URI:function(e,g){var f=this,h,d,c;e=tinymce.trim(e);g=f.settings=g||{};if(/^(mailto|tel|news|javascript|about|data):/i.test(e)||/^\s*#/.test(e)){f.source=e;return}if(e.indexOf("/")===0&&e.indexOf("//")!==0){e=(g.base_uri?g.base_uri.protocol||"http":"http")+"://mce_host"+e}if(!/^\w*:?\/\//.test(e)){e=(g.base_uri.protocol||"http")+"://mce_host"+f.toAbsPath(g.base_uri.path,e)}e=e.replace(/@@/g,"(mce_at)");e=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e);a(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],function(b,j){var k=e[j];if(k){k=k.replace(/\(mce_at\)/g,"@@")}f[b]=k});if(c=g.base_uri){if(!f.protocol){f.protocol=c.protocol}if(!f.userInfo){f.userInfo=c.userInfo}if(!f.port&&f.host=="mce_host"){f.port=c.port}if(!f.host||f.host=="mce_host"){f.host=c.host}f.source=""}},setPath:function(c){var b=this;c=/^(.*?)\/?(\w+)?$/.exec(c);b.path=c[0];b.directory=c[1];b.file=c[2];b.source="";b.getURI()},toRelative:function(b){var c=this,d;if(b==="./"){return b}b=new tinymce.util.URI(b,{base_uri:c});if((b.host!="mce_host"&&c.host!=b.host&&b.host)||c.port!=b.port||c.protocol!=b.protocol){return b.getURI()}d=c.toRelPath(c.path,b.path);if(b.query){d+="?"+b.query}if(b.anchor){d+="#"+b.anchor}return d},toAbsolute:function(b,c){var b=new tinymce.util.URI(b,{base_uri:this});return b.getURI(this.host==b.host&&this.protocol==b.protocol?c:0)},toRelPath:function(g,h){var c,f=0,d="",e,b;g=g.substring(0,g.lastIndexOf("/"));g=g.split("/");c=h.split("/");if(g.length>=c.length){for(e=0,b=g.length;e<b;e++){if(e>=c.length||g[e]!=c[e]){f=e+1;break}}}if(g.length<c.length){for(e=0,b=c.length;e<b;e++){if(e>=g.length||g[e]!=c[e]){f=e+1;break}}}if(f==1){return h}for(e=0,b=g.length-(f-1);e<b;e++){d+="../"}for(e=f-1,b=c.length;e<b;e++){if(e!=f-1){d+="/"+c[e]}else{d+=c[e]}}return d},toAbsPath:function(e,f){var c,b=0,h=[],d,g;d=/\/$/.test(f)?"/":"";e=e.split("/");f=f.split("/");a(e,function(i){if(i){h.push(i)}});e=h;for(c=f.length-1,h=[];c>=0;c--){if(f[c].length==0||f[c]=="."){continue}if(f[c]==".."){b++;continue}if(b>0){b--;continue}h.push(f[c])}c=e.length-b;if(c<=0){g=h.reverse().join("/")}else{g=e.slice(0,c).join("/")+"/"+h.reverse().join("/")}if(g.indexOf("/")!==0){g="/"+g}if(d&&g.lastIndexOf("/")!==g.length-1){g+=d}return g},getURI:function(d){var c,b=this;if(!b.source||d){c="";if(!d){if(b.protocol){c+=b.protocol+"://"}if(b.userInfo){c+=b.userInfo+"@"}if(b.host){c+=b.host}if(b.port){c+=":"+b.port}}if(b.path){c+=b.path}if(b.query){c+="?"+b.query}if(b.anchor){c+="#"+b.anchor}b.source=c}return b.source}})})();(function(){var a=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(d){var b=this.get(d),c;if(b){a(b.split("&"),function(e){e=e.split("=");c=c||{};c[unescape(e[0])]=unescape(e[1])})}return c},setHash:function(j,b,g,f,i,c){var h="";a(b,function(e,d){h+=(!h?"":"&")+escape(d)+"="+escape(e)});this.set(j,h,g,f,i,c)},get:function(i){var h=document.cookie,g,f=i+"=",d;if(!h){return}d=h.indexOf("; "+f);if(d==-1){d=h.indexOf(f);if(d!=0){return null}}else{d+=2}g=h.indexOf(";",d);if(g==-1){g=h.length}return unescape(h.substring(d+f.length,g))},set:function(i,b,g,f,h,c){document.cookie=i+"="+escape(b)+((g)?"; expires="+g.toGMTString():"")+((f)?"; path="+escape(f):"")+((h)?"; domain="+h:"")+((c)?"; secure":"")},remove:function(e,b){var c=new Date();c.setTime(c.getTime()-1000);this.set(e,"",c,b,c)}})})();(function(){function serialize(o,quote){var i,v,t;quote=quote||'"';if(o==null){return"null"}t=typeof o;if(t=="string"){v="\bb\tt\nn\ff\rr\"\"''\\\\";return quote+o.replace(/([\u0080-\uFFFF\x00-\x1f\"\'])/g,function(a,b){if(quote==='"'&&a==="'"){return a}i=v.indexOf(b);if(i+1){return"\\"+v.charAt(i+1)}a=b.charCodeAt().toString(16);return"\\u"+"0000".substring(a.length)+a})+quote}if(t=="object"){if(o.hasOwnProperty&&o instanceof Array){for(i=0,v="[";i<o.length;i++){v+=(i>0?",":"")+serialize(o[i],quote)}return v+"]"}v="{";for(i in o){v+=typeof o[i]!="function"?(v.length>1?","+quote:quote)+i+quote+":"+serialize(o[i],quote):""}return v+"}"}return""+o}tinymce.util.JSON={serialize:serialize,parse:function(s){try{return eval("("+s+")")}catch(ex){}}}})();tinymce.create("static tinymce.util.XHR",{send:function(g){var a,e,b=window,h=0;g.scope=g.scope||this;g.success_scope=g.success_scope||g.scope;g.error_scope=g.error_scope||g.scope;g.async=g.async===false?false:true;g.data=g.data||"";function d(i){a=0;try{a=new ActiveXObject(i)}catch(c){}return a}a=b.XMLHttpRequest?new XMLHttpRequest():d("Microsoft.XMLHTTP")||d("Msxml2.XMLHTTP");if(a){if(a.overrideMimeType){a.overrideMimeType(g.content_type)}a.open(g.type||(g.data?"POST":"GET"),g.url,g.async);if(g.content_type){a.setRequestHeader("Content-Type",g.content_type)}a.setRequestHeader("X-Requested-With","XMLHttpRequest");a.send(g.data);function f(){if(!g.async||a.readyState==4||h++>10000){if(g.success&&h<10000&&a.status==200){g.success.call(g.success_scope,""+a.responseText,a,g)}else{if(g.error){g.error.call(g.error_scope,h>10000?"TIMED_OUT":"GENERAL",a,g)}}a=null}else{b.setTimeout(f,10)}}if(!g.async){return f()}e=b.setTimeout(f,10)}}});(function(){var c=tinymce.extend,b=tinymce.util.JSON,a=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(d){this.settings=c({},d);this.count=0},send:function(f){var e=f.error,d=f.success;f=c(this.settings,f);f.success=function(h,g){h=b.parse(h);if(typeof(h)=="undefined"){h={error:"JSON Parse error."}}if(h.error){e.call(f.error_scope||f.scope,h.error,g)}else{d.call(f.success_scope||f.scope,h.result)}};f.error=function(h,g){if(e){e.call(f.error_scope||f.scope,h,g)}};f.data=b.serialize({id:f.id||"c"+(this.count++),method:f.method,params:f.params});f.content_type="application/json";a.send(f)},"static":{sendRPC:function(d){return new tinymce.util.JSONRequest().send(d)}}})}());(function(i){var a,g,d,j=/[&\"\u007E-\uFFFF]/g,b=/[<>&\u007E-\uFFFF]/g,f=/[<>&\"\']/g,c=/&(#)?([\w]+);/g;g={'"':""","'":"'","<":"<",">":">","&":"&"};d={"<":"<",">":">","&":"&",""":'"',"'":"'"};function h(k){var l;l=document.createElement("div");l.innerHTML=k;return l.textContent||l.innerText||k}function e(l,o){var m,n,k,p={};if(l){l=l.split(",");o=o||10;for(m=0;m<l.length;m+=2){n=String.fromCharCode(parseInt(l[m],o));if(!g[n]){k="&"+l[m+1]+";";p[n]=k;p[k]=n}}return p}}a=e("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);i.html=i.html||{};i.html.Entities={encodeRaw:function(l,k){return l.replace(k?j:b,function(m){return g[m]||m})},encodeAllRaw:function(k){return(""+k).replace(f,function(l){return g[l]||l})},encodeNumeric:function(l,k){return l.replace(k?j:b,function(m){return g[m]||"&#"+m.charCodeAt(0)+";"})},encodeNamed:function(m,k,l){l=l||a;return m.replace(k?j:b,function(n){return g[n]||l[n]||n})},getEncodeFunc:function(k,n){var o=i.html.Entities;n=e(n)||a;function l(q,p){return q.replace(p?j:b,function(r){return g[r]||n[r]||"&#"+r.charCodeAt(0)+";"||r})}function m(q,p){return o.encodeNamed(q,p,n)}k=i.makeMap(k.replace(/\+/g,","));if(k.named&&k.numeric){return l}if(k.named){if(n){return m}return o.encodeNamed}if(k.numeric){return o.encodeNumeric}return o.encodeRaw},decode:function(k){return k.replace(c,function(m,l,n){if(l){return String.fromCharCode(n)}return d[m]||a[m]||h(m)})}}})(tinymce);tinymce.html.Styles=function(d,f){var k=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,h=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,b=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,m=/rgb/,e,g,a={},j;d=d||{};j="\\\" \\' \\; \\: ; : _".split(" ");for(g=0;g<j.length;g++){a[j[g]]="_"+g;a["_"+g]=j[g]}function c(n,q,p,i){function o(r){r=parseInt(r).toString(16);return r.length>1?r:"0"+r}return"#"+o(q)+o(p)+o(i)}return{toHex:function(i){return i.replace(k,c)},parse:function(r){var y={},p,n,v,q,u=d.url_converter,x=d.url_converter_scope||this;function o(C,F){var E,B,A,D;E=y[C+"-top"+F];if(!E){return}B=y[C+"-right"+F];if(E!=B){return}A=y[C+"-bottom"+F];if(B!=A){return}D=y[C+"-left"+F];if(A!=D){return}y[C+F]=D;delete y[C+"-top"+F];delete y[C+"-right"+F];delete y[C+"-bottom"+F];delete y[C+"-left"+F]}function t(B){var C=y[B],A;if(!C||C.indexOf(" ")<0){return}C=C.split(" ");A=C.length;while(A--){if(C[A]!==C[0]){return false}}y[B]=C[0];return true}function z(C,B,A,D){if(!t(B)){return}if(!t(A)){return}if(!t(D)){return}y[C]=y[B]+" "+y[A]+" "+y[D];delete y[B];delete y[A];delete y[D]}function s(A){q=true;return a[A]}function i(B,A){if(q){B=B.replace(/_[0-9]/g,function(C){return a[C]})}if(!A){B=B.replace(/\\([\'\";:])/g,"$1")}return B}if(r){r=r.replace(/\\[\"\';:_]/g,s).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(A){return A.replace(/[;:]/g,s)});while(p=b.exec(r)){n=p[1].replace(l,"").toLowerCase();v=p[2].replace(l,"");if(n&&v.length>0){if(n==="font-weight"&&v==="700"){v="bold"}else{if(n==="color"||n==="background-color"){v=v.toLowerCase()}}v=v.replace(k,c);v=v.replace(h,function(B,A,E,D,F,C){F=F||C;if(F){F=i(F);return"'"+F.replace(/\'/g,"\\'")+"'"}A=i(A||E||D);if(u){A=u.call(x,A,"style")}return"url('"+A.replace(/\'/g,"\\'")+"')"});y[n]=q?i(v,true):v}b.lastIndex=p.index+p[0].length}o("border","");o("border","-width");o("border","-color");o("border","-style");o("padding","");o("margin","");z("border","border-width","border-style","border-color");if(y.border==="medium none"){delete y.border}}return y},serialize:function(p,r){var o="",n,q;function i(t){var x,u,s,t,v;x=f.styles[t];if(x){for(u=0,s=x.length;u<s;u++){t=x[u];v=p[t];if(v!==e){o+=(o.length>0?" ":"")+t+": "+v+";"}}}}if(r&&f&&f.styles){i("*");i(n)}else{for(n in p){q=p[n];if(q!==e){o+=(o.length>0?" ":"")+n+": "+q+";"}}}return o}}};(function(l){var g={},i,k,f,d,b,e,c=l.makeMap,j=l.each;function h(n,m){return n.split(m||",")}function a(q,p){var n,o={};function m(r){return r.replace(/[A-Z]+/g,function(s){return m(q[s])})}for(n in q){if(q.hasOwnProperty(n)){q[n]=m(q[n])}}m(p).replace(/#/g,"#text").replace(/(\w+)\[([^\]]+)\]\[([^\]]*)\]/g,function(u,s,r,t){r=h(r,"|");o[s]={attributes:c(r),attributesOrder:r,children:c(t,"|",{"#comment":{}})}});return o}k="h1,h2,h3,h4,h5,h6,hr,p,div,address,pre,form,table,tbody,thead,tfoot,th,tr,td,li,ol,ul,caption,blockquote,center,dl,dt,dd,dir,fieldset,noscript,menu,isindex,samp,header,footer,article,section,hgroup";k=c(k,",",c(k.toUpperCase()));g=a({Z:"H|K|N|O|P",Y:"X|form|R|Q",ZG:"E|span|width|align|char|charoff|valign",X:"p|T|div|U|W|isindex|fieldset|table",ZF:"E|align|char|charoff|valign",W:"pre|hr|blockquote|address|center|noframes",ZE:"abbr|axis|headers|scope|rowspan|colspan|align|char|charoff|valign|nowrap|bgcolor|width|height",ZD:"[E][S]",U:"ul|ol|dl|menu|dir",ZC:"p|Y|div|U|W|table|br|span|bdo|object|applet|img|map|K|N|Q",T:"h1|h2|h3|h4|h5|h6",ZB:"X|S|Q",S:"R|P",ZA:"a|G|J|M|O|P",R:"a|H|K|N|O",Q:"noscript|P",P:"ins|del|script",O:"input|select|textarea|label|button",N:"M|L",M:"em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym",L:"sub|sup",K:"J|I",J:"tt|i|b|u|s|strike",I:"big|small|font|basefont",H:"G|F",G:"br|span|bdo",F:"object|applet|img|map|iframe",E:"A|B|C",D:"accesskey|tabindex|onfocus|onblur",C:"onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup",B:"lang|xml:lang|dir",A:"id|class|style|title"},"script[id|charset|type|language|src|defer|xml:space][]style[B|id|type|media|title|xml:space][]object[E|declare|classid|codebase|data|type|codetype|archive|standby|width|height|usemap|name|tabindex|align|border|hspace|vspace][#|param|Y]param[id|name|value|valuetype|type][]p[E|align][#|S]a[E|D|charset|type|name|href|hreflang|rel|rev|shape|coords|target][#|Z]br[A|clear][]span[E][#|S]bdo[A|C|B][#|S]applet[A|codebase|archive|code|object|alt|name|width|height|align|hspace|vspace][#|param|Y]h1[E|align][#|S]img[E|src|alt|name|longdesc|width|height|usemap|ismap|align|border|hspace|vspace][]map[B|C|A|name][X|form|Q|area]h2[E|align][#|S]iframe[A|longdesc|name|src|frameborder|marginwidth|marginheight|scrolling|align|width|height][#|Y]h3[E|align][#|S]tt[E][#|S]i[E][#|S]b[E][#|S]u[E][#|S]s[E][#|S]strike[E][#|S]big[E][#|S]small[E][#|S]font[A|B|size|color|face][#|S]basefont[id|size|color|face][]em[E][#|S]strong[E][#|S]dfn[E][#|S]code[E][#|S]q[E|cite][#|S]samp[E][#|S]kbd[E][#|S]var[E][#|S]cite[E][#|S]abbr[E][#|S]acronym[E][#|S]sub[E][#|S]sup[E][#|S]input[E|D|type|name|value|checked|disabled|readonly|size|maxlength|src|alt|usemap|onselect|onchange|accept|align][]select[E|name|size|multiple|disabled|tabindex|onfocus|onblur|onchange][optgroup|option]optgroup[E|disabled|label][option]option[E|selected|disabled|label|value][]textarea[E|D|name|rows|cols|disabled|readonly|onselect|onchange][]label[E|for|accesskey|onfocus|onblur][#|S]button[E|D|name|value|type|disabled][#|p|T|div|U|W|table|G|object|applet|img|map|K|N|Q]h4[E|align][#|S]ins[E|cite|datetime][#|Y]h5[E|align][#|S]del[E|cite|datetime][#|Y]h6[E|align][#|S]div[E|align][#|Y]ul[E|type|compact][li]li[E|type|value][#|Y]ol[E|type|compact|start][li]dl[E|compact][dt|dd]dt[E][#|S]dd[E][#|Y]menu[E|compact][li]dir[E|compact][li]pre[E|width|xml:space][#|ZA]hr[E|align|noshade|size|width][]blockquote[E|cite][#|Y]address[E][#|S|p]center[E][#|Y]noframes[E][#|Y]isindex[A|B|prompt][]fieldset[E][#|legend|Y]legend[E|accesskey|align][#|S]table[E|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor][caption|col|colgroup|thead|tfoot|tbody|tr]caption[E|align][#|S]col[ZG][]colgroup[ZG][col]thead[ZF][tr]tr[ZF|bgcolor][th|td]th[E|ZE][#|Y]form[E|action|method|name|enctype|onsubmit|onreset|accept|accept-charset|target][#|X|R|Q]noscript[E][#|Y]td[E|ZE][#|Y]tfoot[ZF][tr]tbody[ZF][tr]area[E|D|shape|coords|href|nohref|alt|target][]base[id|href|target][]body[E|onload|onunload|background|bgcolor|text|link|vlink|alink][#|Y]");i=c("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected,preload,autoplay,loop,controls");f=c("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed,source");d=l.extend(c("td,th,iframe,video,object"),f);b=c("pre,script,style");e=c("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr");l.html.Schema=function(p){var x=this,m={},n={},u=[],o;p=p||{};if(p.verify_html===false){p.valid_elements="*[*]"}if(p.valid_styles){o={};j(p.valid_styles,function(z,y){o[y]=l.explode(z)})}function v(y){return new RegExp("^"+y.replace(/([?+*])/g,".$1")+"$")}function r(F){var E,A,T,P,U,z,C,O,R,K,S,W,I,D,Q,y,M,B,V,X,J,N,H=/^([#+-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/,L=/^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,G=/[*?+]/;if(F){F=h(F);if(m["@"]){M=m["@"].attributes;B=m["@"].attributesOrder}for(E=0,A=F.length;E<A;E++){z=H.exec(F[E]);if(z){Q=z[1];K=z[2];y=z[3];R=z[4];I={};D=[];C={attributes:I,attributesOrder:D};if(Q==="#"){C.paddEmpty=true}if(Q==="-"){C.removeEmpty=true}if(M){for(X in M){I[X]=M[X]}D.push.apply(D,B)}if(R){R=h(R,"|");for(T=0,P=R.length;T<P;T++){z=L.exec(R[T]);if(z){O={};W=z[1];S=z[2].replace(/::/g,":");Q=z[3];N=z[4];if(W==="!"){C.attributesRequired=C.attributesRequired||[];C.attributesRequired.push(S);O.required=true}if(W==="-"){delete I[S];D.splice(l.inArray(D,S),1);continue}if(Q){if(Q==="="){C.attributesDefault=C.attributesDefault||[];C.attributesDefault.push({name:S,value:N});O.defaultValue=N}if(Q===":"){C.attributesForced=C.attributesForced||[];C.attributesForced.push({name:S,value:N});O.forcedValue=N}if(Q==="<"){O.validValues=c(N,"?")}}if(G.test(S)){C.attributePatterns=C.attributePatterns||[];O.pattern=v(S);C.attributePatterns.push(O)}else{if(!I[S]){D.push(S)}I[S]=O}}}}if(!M&&K=="@"){M=I;B=D}if(y){C.outputName=K;m[y]=C}if(G.test(K)){C.pattern=v(K);u.push(C)}else{m[K]=C}}}}}function t(y){m={};u=[];r(y);j(g,function(A,z){n[z]=A.children})}function q(z){var y=/^(~)?(.+)$/;if(z){j(h(z),function(C){var B=y.exec(C),D=B[1]==="~"?"span":"div",A=B[2];n[A]=n[D];j(n,function(E,F){if(E[D]){E[A]=E[D]}})})}}function s(z){var y=/^([+\-]?)(\w+)\[([^\]]+)\]$/;if(z){j(h(z),function(D){var C=y.exec(D),A,B;if(C){B=C[1];if(B){A=n[C[2]]}else{A=n[C[2]]={"#comment":{}}}A=n[C[2]];j(h(C[3],"|"),function(E){if(B==="-"){delete A[E]}else{A[E]={}}})}})}}if(!p.valid_elements){j(g,function(z,y){m[y]={attributes:z.attributes,attributesOrder:z.attributesOrder};n[y]=z.children});j(h("strong/b,em/i"),function(y){y=h(y,"/");m[y[1]].outputName=y[0]});m.img.attributesDefault=[{name:"alt",value:""}];j(h("ol,ul,li,sub,sup,blockquote,tr,div,span,font,a,table,tbody"),function(y){m[y].removeEmpty=true});j(h("p,h1,h2,h3,h4,h5,h6,th,td,pre,div,address,caption"),function(y){m[y].paddEmpty=true})}else{t(p.valid_elements)}q(p.custom_elements);s(p.valid_children);r(p.extended_valid_elements);s("+ol[ul|ol],+ul[ul|ol]");if(p.invalid_elements){l.each(l.explode(p.invalid_elements),function(y){if(m[y]){delete m[y]}})}x.children=n;x.styles=o;x.getBoolAttrs=function(){return i};x.getBlockElements=function(){return k};x.getShortEndedElements=function(){return f};x.getSelfClosingElements=function(){return e};x.getNonEmptyElements=function(){return d};x.getWhiteSpaceElements=function(){return b};x.isValidChild=function(y,A){var z=n[y];return !!(z&&z[A])};x.getElementRule=function(y){var A=m[y],z;if(A){return A}z=u.length;while(z--){A=u[z];if(A.pattern.test(y)){return A}}};x.addValidElements=r;x.setValidElements=t;x.addCustomElements=q;x.addValidChildren=s};l.html.Schema.boolAttrMap=i;l.html.Schema.blockElementsMap=k})(tinymce);(function(a){a.html.SaxParser=function(c,e){var b=this,d=function(){};c=c||{};b.schema=e=e||new a.html.Schema();if(c.fix_self_closing!==false){c.fix_self_closing=true}a.each("comment cdata text start end pi doctype".split(" "),function(f){if(f){b[f]=c[f]||d}});b.parse=function(q){var A=this,f,m=0,G,j,l=[],B,K,t,N,F,k,p,x,I,r,E,o,J,n,H,M,L,z,D,h,g,u,s=0,v=a.html.Entities.decode,y;function C(O){var Q,P;Q=l.length;while(Q--){if(l[Q].name===O){break}}if(Q>=0){for(P=l.length-1;P>=Q;P--){O=l[P];if(O.valid){A.end(O.name)}}l.length=Q}}D=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([^\\s\\/<>]+)\\s*((?:[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*)>))","g");h=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:\\.|[^\"])*)\")|(?:\'((?:\\.|[^\'])*)\')|([^>\s]+)))?/g;g={script:/<\/script[^>]*>/gi,style:/<\/style[^>]*>/gi,noscript:/<\/noscript[^>]*>/gi};F=e.getShortEndedElements();z=e.getSelfClosingElements();k=e.getBoolAttrs();x=c.validate;y=c.fix_self_closing;while(f=D.exec(q)){if(m<f.index){A.text(v(q.substr(m,f.index-m)))}if(G=f[6]){C(G.toLowerCase())}else{if(G=f[7]){G=G.toLowerCase();p=G in F;if(y&&z[G]&&l.length>0&&l[l.length-1].name===G){C(G)}if(!x||(I=e.getElementRule(G))){r=true;if(x){J=I.attributes;n=I.attributePatterns}if(o=f[8]){B=[];B.map={};o.replace(h,function(P,O,T,S,R){var U,Q;O=O.toLowerCase();T=O in k?O:v(T||S||R||"");if(x&&O.indexOf("data-")!==0){U=J[O];if(!U&&n){Q=n.length;while(Q--){U=n[Q];if(U.pattern.test(O)){break}}if(Q===-1){U=null}}if(!U){return}if(U.validValues&&!(T in U.validValues)){return}}B.map[O]=T;B.push({name:O,value:T})})}else{B=[];B.map={}}if(x){H=I.attributesRequired;M=I.attributesDefault;L=I.attributesForced;if(L){K=L.length;while(K--){E=L[K];N=E.name;u=E.value;if(u==="{$uid}"){u="mce_"+s++}B.map[N]=u;B.push({name:N,value:u})}}if(M){K=M.length;while(K--){E=M[K];N=E.name;if(!(N in B.map)){u=E.value;if(u==="{$uid}"){u="mce_"+s++}B.map[N]=u;B.push({name:N,value:u})}}}if(H){K=H.length;while(K--){if(H[K] in B.map){break}}if(K===-1){r=false}}if(B.map["data-mce-bogus"]){r=false}}if(r){A.start(G,B,p)}}else{r=false}if(j=g[G]){j.lastIndex=m=f.index+f[0].length;if(f=j.exec(q)){if(r){t=q.substr(m,f.index-m)}m=f.index+f[0].length}else{t=q.substr(m);m=q.length}if(r&&t.length>0){A.text(t,true)}if(r){A.end(G)}D.lastIndex=m;continue}if(!p){if(!o||o.indexOf("/")!=o.length-1){l.push({name:G,valid:r})}else{if(r){A.end(G)}}}}else{if(G=f[1]){A.comment(G)}else{if(G=f[2]){A.cdata(G)}else{if(G=f[3]){A.doctype(G)}else{if(G=f[4]){A.pi(G,f[5])}}}}}}m=f.index+f[0].length}if(m<q.length){A.text(v(q.substr(m)))}for(K=l.length-1;K>=0;K--){G=l[K];if(G.valid){A.end(G.name)}}}}})(tinymce);(function(d){var c=/^[ \t\r\n]*$/,e={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};function a(k,l,j){var i,h,f=j?"lastChild":"firstChild",g=j?"prev":"next";if(k[f]){return k[f]}if(k!==l){i=k[g];if(i){return i}for(h=k.parent;h&&h!==l;h=h.parent){i=h[g];if(i){return i}}}}function b(f,g){this.name=f;this.type=g;if(g===1){this.attributes=[];this.attributes.map={}}}d.extend(b.prototype,{replace:function(g){var f=this;if(g.parent){g.remove()}f.insert(g,f);f.remove();return f},attr:function(h,l){var f=this,g,j,k;if(typeof h!=="string"){for(j in h){f.attr(j,h[j])}return f}if(g=f.attributes){if(l!==k){if(l===null){if(h in g.map){delete g.map[h];j=g.length;while(j--){if(g[j].name===h){g=g.splice(j,1);return f}}}return f}if(h in g.map){j=g.length;while(j--){if(g[j].name===h){g[j].value=l;break}}}else{g.push({name:h,value:l})}g.map[h]=l;return f}else{return g.map[h]}}},clone:function(){var g=this,n=new b(g.name,g.type),h,f,m,j,k;if(m=g.attributes){k=[];k.map={};for(h=0,f=m.length;h<f;h++){j=m[h];if(j.name!=="id"){k[k.length]={name:j.name,value:j.value};k.map[j.name]=j.value}}n.attributes=k}n.value=g.value;n.shortEnded=g.shortEnded;return n},wrap:function(g){var f=this;f.parent.insert(g,f);g.append(f);return f},unwrap:function(){var f=this,h,g;for(h=f.firstChild;h;){g=h.next;f.insert(h,f,true);h=g}f.remove()},remove:function(){var f=this,h=f.parent,g=f.next,i=f.prev;if(h){if(h.firstChild===f){h.firstChild=g;if(g){g.prev=null}}else{i.next=g}if(h.lastChild===f){h.lastChild=i;if(i){i.next=null}}else{g.prev=i}f.parent=f.next=f.prev=null}return f},append:function(h){var f=this,g;if(h.parent){h.remove()}g=f.lastChild;if(g){g.next=h;h.prev=g;f.lastChild=h}else{f.lastChild=f.firstChild=h}h.parent=f;return h},insert:function(h,f,i){var g;if(h.parent){h.remove()}g=f.parent||this;if(i){if(f===g.firstChild){g.firstChild=h}else{f.prev.next=h}h.prev=f.prev;h.next=f;f.prev=h}else{if(f===g.lastChild){g.lastChild=h}else{f.next.prev=h}h.next=f.next;h.prev=f;f.next=h}h.parent=g;return h},getAll:function(g){var f=this,h,i=[];for(h=f.firstChild;h;h=a(h,f)){if(h.name===g){i.push(h)}}return i},empty:function(){var g=this,f,h,j;if(g.firstChild){f=[];for(j=g.firstChild;j;j=a(j,g)){f.push(j)}h=f.length;while(h--){j=f[h];j.parent=j.firstChild=j.lastChild=j.next=j.prev=null}}g.firstChild=g.lastChild=null;return g},isEmpty:function(j){var f=this,h=f.firstChild,g;if(h){do{if(h.type===1){if(h.attributes.map["data-mce-bogus"]){continue}if(j[h.name]){return false}g=h.attributes.length;while(g--){if(h.attributes[g].name.indexOf("data-")===0){return false}}}if((h.type===3&&!c.test(h.value))){return false}}while(h=a(h,f))}return true}});d.extend(b,{create:function(g,f){var i,h;i=new b(g,e[g]||1);if(f){for(h in f){i.attr(h,f[h])}}return i}});d.html.Node=b})(tinymce);(function(b){var a=b.html.Node;b.html.DomParser=function(f,g){var e=this,d={},c=[];f=f||{};f.root_name=f.root_name||"body";e.schema=g=g||new b.html.Schema();function h(l){var n,o,v,u,y,m,p,k,s,t,j,r,x,q;r=b.makeMap("tr,td,th,tbody,thead,tfoot,table");j=g.getNonEmptyElements();for(n=0;n<l.length;n++){o=l[n];if(!o.parent){continue}u=[o];for(v=o.parent;v&&!g.isValidChild(v.name,o.name)&&!r[v.name];v=v.parent){u.push(v)}if(v&&u.length>1){u.reverse();y=m=u[0].clone();for(s=0;s<u.length-1;s++){if(g.isValidChild(m.name,u[s].name)){p=u[s].clone();m.append(p)}else{p=m}for(k=u[s].firstChild;k&&k!=u[s+1];){q=k.next;p.append(k);k=q}m=p}if(!y.isEmpty(j)){v.insert(y,u[0],true);v.insert(o,y)}else{v.insert(o,u[0],true)}if(u[0].isEmpty(j)){u[0].empty().remove()}}else{if(o.parent){if(o.name==="li"){x=o.prev;if(x&&(x.name==="ul"||x.name==="ul")){x.append(o);continue}x=o.next;if(x&&(x.name==="ul"||x.name==="ul")){x.insert(o,x.firstChild,true);continue}o.wrap(new a("ul",1));continue}if(g.isValidChild(o.parent.name,"div")&&g.isValidChild("div",o.name)){o.wrap(new a("div",1))}else{if(o.name==="style"||o.name==="script"){o.empty().remove()}else{o.unwrap()}}}}}}e.addNodeFilter=function(i,j){b.each(b.explode(i),function(k){var l=d[k];if(!l){d[k]=l=[]}l.push(j)})};e.addAttributeFilter=function(i,j){b.each(b.explode(i),function(k){var l;for(l=0;l<c.length;l++){if(c[l].name===k){c[l].callbacks.push(j);return}}c.push({name:k,callbacks:[j]})})};e.parse=function(v,m){var n,E,z,y,k={},p={},B,A,x,r,D,H,o,C,G=[],t,j,s,q,u;m=m||{};o=b.extend(b.makeMap("script,style,head,title,meta,param"),g.getBlockElements());u=g.getNonEmptyElements();q=g.children;s=g.getWhiteSpaceElements();C=/^[ \t\r\n]+/;t=/[ \t\r\n]+$/;j=/[ \t\r\n]+/g;function F(i,l){var I=new a(i,l),J;if(i in d){J=k[i];if(J){J.push(I)}else{k[i]=[I]}}return I}n=new b.html.SaxParser({validate:f.validate,fix_self_closing:false,cdata:function(i){z.append(F("#cdata",4)).value=i},text:function(I,i){var l;if(!s[z.name]){I=I.replace(j," ");if(z.lastChild&&o[z.lastChild.name]){I=I.replace(C,"")}}if(I.length!==0){l=F("#text",3);l.raw=!!i;z.append(l).value=I}},comment:function(i){z.append(F("#comment",8)).value=i},pi:function(i,l){z.append(F(i,7)).value=l},doctype:function(i){z.append(F("#doctype",10)).value=i},start:function(i,P,I){var N,K,J,l,L,Q,O,M;J=g.getElementRule(i);if(J){N=F(J.outputName||i,1);N.attributes=P;N.shortEnded=I;z.append(N);M=q[z.name];if(M&&q[N.name]&&!M[N.name]){G.push(N)}K=c.length;while(K--){L=c[K].name;if(L in P.map){D=p[L];if(D){D.push(N)}else{p[L]=[N]}}}if(o[i]){for(l=N.prev;l&&l.type===3;){Q=l.value.replace(t,"");if(Q.length>0){l.value=Q;l=l.prev}else{O=l.prev;l.remove();l=O}}}if(!I){z=N}}},end:function(i){var L,I,K,l,J;I=g.getElementRule(i);if(I){if(o[i]){if(!s[z.name]){for(L=z.firstChild;L&&L.type===3;){K=L.value.replace(C,"");if(K.length>0){L.value=K;L=L.next}else{l=L.next;L.remove();L=l}}for(L=z.lastChild;L&&L.type===3;){K=L.value.replace(t,"");if(K.length>0){L.value=K;L=L.prev}else{l=L.prev;L.remove();L=l}}}L=z.prev;if(L&&L.type===3){K=L.value.replace(C,"");if(K.length>0){L.value=K}else{L.remove()}}}if(I.removeEmpty||I.paddEmpty){if(z.isEmpty(u)){if(I.paddEmpty){z.empty().append(new a("#text","3")).value="\u00a0"}else{if(!z.attributes.map.name){J=z.parent;z.empty().remove();z=J;return}}}}z=z.parent}}},g);E=z=new a(f.root_name,11);n.parse(v);h(G);for(H in k){D=d[H];y=k[H];x=y.length;while(x--){if(!y[x].parent){y.splice(x,1)}}for(B=0,A=D.length;B<A;B++){D[B](y,H,m)}}for(B=0,A=c.length;B<A;B++){D=c[B];if(D.name in p){y=p[D.name];x=y.length;while(x--){if(!y[x].parent){y.splice(x,1)}}for(x=0,r=D.callbacks.length;x<r;x++){D.callbacks[x](y,D.name,m)}}}return E};if(f.remove_trailing_brs){e.addNodeFilter("br",function(m,k){var q,p=m.length,n,t=g.getBlockElements(),j=g.getNonEmptyElements(),r,o,s;for(q=0;q<p;q++){n=m[q];r=n.parent;if(t[n.parent.name]&&n===r.lastChild){o=n.prev;while(o){s=o.name;if(s!=="span"||o.attr("data-mce-type")!=="bookmark"){if(s!=="br"){break}if(s==="br"){n=null;break}}o=o.prev}if(n){n.remove();if(r.isEmpty(j)){elementRule=g.getElementRule(r.name);if(elementRule.removeEmpty){r.remove()}else{if(elementRule.paddEmpty){r.empty().append(new b.html.Node("#text",3)).value="\u00a0"}}}}}}})}}})(tinymce);tinymce.html.Writer=function(e){var c=[],a,b,d,f,g;e=e||{};a=e.indent;b=tinymce.makeMap(e.indent_before||"");d=tinymce.makeMap(e.indent_after||"");f=tinymce.html.Entities.getEncodeFunc(e.entity_encoding||"raw",e.entities);g=e.element_format=="html";return{start:function(m,k,p){var n,j,h,o;if(a&&b[m]&&c.length>0){o=c[c.length-1];if(o.length>0&&o!=="\n"){c.push("\n")}}c.push("<",m);if(k){for(n=0,j=k.length;n<j;n++){h=k[n];c.push(" ",h.name,'="',f(h.value,true),'"')}}if(!p||g){c[c.length]=">"}else{c[c.length]=" />"}},end:function(h){var i;c.push("</",h,">");if(a&&d[h]&&c.length>0){i=c[c.length-1];if(i.length>0&&i!=="\n"){c.push("\n")}}},text:function(i,h){if(i.length>0){c[c.length]=h?i:f(i)}},cdata:function(h){c.push("<![CDATA[",h,"]]>")},comment:function(h){c.push("<!--",h,"-->")},pi:function(h,i){if(i){c.push("<?",h," ",i,"?>")}else{c.push("<?",h,"?>")}},doctype:function(h){c.push("<!DOCTYPE",h,">")},reset:function(){c.length=0},getContent:function(){return c.join("").replace(/\n$/,"")}}};(function(a){a.html.Serializer=function(c,d){var b=this,e=new a.html.Writer(c);c=c||{};c.validate="validate" in c?c.validate:true;b.schema=d=d||new a.html.Schema();b.writer=e;b.serialize=function(h){var g,i;i=c.validate;g={3:function(k,j){e.text(k.value,k.raw)},8:function(j){e.comment(j.value)},7:function(j){e.pi(j.name,j.value)},10:function(j){e.doctype(j.value)},4:function(j){e.cdata(j.value)},11:function(j){if((j=j.firstChild)){do{f(j)}while(j=j.next)}}};e.reset();function f(k){var t=g[k.type],j,o,s,r,p,u,n,m,q;if(!t){j=k.name;o=k.shortEnded;s=k.attributes;if(i&&s&&s.length>1){u=[];u.map={};q=d.getElementRule(k.name);for(n=0,m=q.attributesOrder.length;n<m;n++){r=q.attributesOrder[n];if(r in s.map){p=s.map[r];u.map[r]=p;u.push({name:r,value:p})}}for(n=0,m=s.length;n<m;n++){r=s[n].name;if(!(r in u.map)){p=s.map[r];u.map[r]=p;u.push({name:r,value:p})}}s=u}e.start(k.name,s,o);if(!o){if((k=k.firstChild)){do{f(k)}while(k=k.next)}e.end(j)}}else{t(k)}}if(h.type==1&&!c.inner){f(h)}else{g[11](h)}return e.getContent()}}})(tinymce);(function(d){var f=d.each,c=d.is,e=d.isWebKit,a=d.isIE,h=d.html.Entities,b=/^([a-z0-9],?)+$/i,g=d.html.Schema.blockElementsMap;d.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(m,k){var j=this,i;j.doc=m;j.win=window;j.files={};j.cssFlicker=false;j.counter=0;j.stdMode=!d.isIE||m.documentMode>=8;j.boxModel=!d.isIE||m.compatMode=="CSS1Compat"||j.stdMode;j.hasOuterHTML="outerHTML" in m.createElement("a");j.settings=k=d.extend({keep_values:false,hex_colors:1},k);j.styles=new d.html.Styles({url_converter:k.url_converter,url_converter_scope:k.url_converter_scope},k.schema);if(d.isIE6){try{m.execCommand("BackgroundImageCache",false,true)}catch(l){j.cssFlicker=true}}if(a){("abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video").replace(/\w+/g,function(n){m.createElement(n)})}d.addUnload(j.destroy,j)},getRoot:function(){var i=this,j=i.settings;return(j&&i.get(j.root_element))||i.doc.body},getViewPort:function(j){var k,i;j=!j?this.win:j;k=j.document;i=this.boxModel?k.documentElement:k.body;return{x:j.pageXOffset||i.scrollLeft,y:j.pageYOffset||i.scrollTop,w:j.innerWidth||i.clientWidth,h:j.innerHeight||i.clientHeight}},getRect:function(l){var k,i=this,j;l=i.get(l);k=i.getPos(l);j=i.getSize(l);return{x:k.x,y:k.y,w:j.w,h:j.h}},getSize:function(l){var j=this,i,k;l=j.get(l);i=j.getStyle(l,"width");k=j.getStyle(l,"height");if(i.indexOf("px")===-1){i=0}if(k.indexOf("px")===-1){k=0}return{w:parseInt(i)||l.offsetWidth||l.clientWidth,h:parseInt(k)||l.offsetHeight||l.clientHeight}},getParent:function(k,j,i){return this.getParents(k,j,i,false)},getParents:function(s,m,k,q){var j=this,i,l=j.settings,p=[];s=j.get(s);q=q===undefined;if(l.strict_root){k=k||j.getRoot()}if(c(m,"string")){i=m;if(m==="*"){m=function(o){return o.nodeType==1}}else{m=function(o){return j.is(o,i)}}}while(s){if(s==k||!s.nodeType||s.nodeType===9){break}if(!m||m(s)){if(q){p.push(s)}else{return s}}s=s.parentNode}return q?p:null},get:function(i){var j;if(i&&this.doc&&typeof(i)=="string"){j=i;i=this.doc.getElementById(i);if(i&&i.id!==j){return this.doc.getElementsByName(j)[1]}}return i},getNext:function(j,i){return this._findSib(j,i,"nextSibling")},getPrev:function(j,i){return this._findSib(j,i,"previousSibling")},add:function(l,o,i,k,m){var j=this;return this.run(l,function(r){var q,n;q=c(o,"string")?j.doc.createElement(o):o;j.setAttribs(q,i);if(k){if(k.nodeType){q.appendChild(k)}else{j.setHTML(q,k)}}return !m?r.appendChild(q):q})},create:function(k,i,j){return this.add(this.doc.createElement(k),k,i,j,1)},createHTML:function(q,i,m){var p="",l=this,j;p+="<"+q;for(j in i){if(i.hasOwnProperty(j)){p+=" "+j+'="'+l.encode(i[j])+'"'}}if(typeof(m)!="undefined"){return p+">"+m+"</"+q+">"}return p+" />"},remove:function(i,j){return this.run(i,function(l){var k,m;k=l.parentNode;if(!k){return null}if(j){while(m=l.firstChild){if(!d.isIE||m.nodeType!==3||m.nodeValue){k.insertBefore(m,l)}else{l.removeChild(m)}}}return k.removeChild(l)})},setStyle:function(l,i,j){var k=this;return k.run(l,function(o){var n,m;n=o.style;i=i.replace(/-(\D)/g,function(q,p){return p.toUpperCase()});if(k.pixelStyles.test(i)&&(d.is(j,"number")||/^[\-0-9\.]+$/.test(j))){j+="px"}switch(i){case"opacity":if(a){n.filter=j===""?"":"alpha(opacity="+(j*100)+")";if(!l.currentStyle||!l.currentStyle.hasLayout){n.display="inline-block"}}n[i]=n["-moz-opacity"]=n["-khtml-opacity"]=j||"";break;case"float":a?n.styleFloat=j:n.cssFloat=j;break;default:n[i]=j||""}if(k.settings.update_styles){k.setAttrib(o,"data-mce-style")}})},getStyle:function(l,i,k){l=this.get(l);if(!l){return false}if(this.doc.defaultView&&k){i=i.replace(/[A-Z]/g,function(m){return"-"+m});try{return this.doc.defaultView.getComputedStyle(l,null).getPropertyValue(i)}catch(j){return null}}i=i.replace(/-(\D)/g,function(n,m){return m.toUpperCase()});if(i=="float"){i=a?"styleFloat":"cssFloat"}if(l.currentStyle&&k){return l.currentStyle[i]}return l.style[i]},setStyles:function(l,m){var j=this,k=j.settings,i;i=k.update_styles;k.update_styles=0;f(m,function(o,p){j.setStyle(l,p,o)});k.update_styles=i;if(k.update_styles){j.setAttrib(l,k.cssText)}},removeAllAttribs:function(i){return this.run(i,function(l){var j=l.attributes;for(var k=j.length-1;k>=0;k--){l.removeAttributeNode(j.item(k))}})},setAttrib:function(k,l,i){var j=this;if(!k||!l){return}if(j.settings.strict){l=l.toLowerCase()}return this.run(k,function(n){var m=j.settings;switch(l){case"style":if(!c(i,"string")){f(i,function(o,p){j.setStyle(n,p,o)});return}if(m.keep_values){if(i&&!j._isRes(i)){n.setAttribute("data-mce-style",i,2)}else{n.removeAttribute("data-mce-style",2)}}n.style.cssText=i;break;case"class":n.className=i||"";break;case"src":case"href":if(m.keep_values){if(m.url_converter){i=m.url_converter.call(m.url_converter_scope||j,i,l,n)}j.setAttrib(n,"data-mce-"+l,i,2)}break;case"shape":n.setAttribute("data-mce-style",i);break}if(c(i)&&i!==null&&i.length!==0){n.setAttribute(l,""+i,2)}else{n.removeAttribute(l,2)}})},setAttribs:function(j,k){var i=this;return this.run(j,function(l){f(k,function(m,o){i.setAttrib(l,o,m)})})},getAttrib:function(l,m,k){var i,j=this;l=j.get(l);if(!l||l.nodeType!==1){return false}if(!c(k)){k=""}if(/^(src|href|style|coords|shape)$/.test(m)){i=l.getAttribute("data-mce-"+m);if(i){return i}}if(a&&j.props[m]){i=l[j.props[m]];i=i&&i.nodeValue?i.nodeValue:i}if(!i){i=l.getAttribute(m,2)}if(/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(m)){if(l[j.props[m]]===true&&i===""){return m}return i?m:""}if(l.nodeName==="FORM"&&l.getAttributeNode(m)){return l.getAttributeNode(m).nodeValue}if(m==="style"){i=i||l.style.cssText;if(i){i=j.serializeStyle(j.parseStyle(i),l.nodeName);if(j.settings.keep_values&&!j._isRes(i)){l.setAttribute("data-mce-style",i)}}}if(e&&m==="class"&&i){i=i.replace(/(apple|webkit)\-[a-z\-]+/gi,"")}if(a){switch(m){case"rowspan":case"colspan":if(i===1){i=""}break;case"size":if(i==="+0"||i===20||i===0){i=""}break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":if(i===0){i=""}break;case"hspace":if(i===-1){i=""}break;case"maxlength":case"tabindex":if(i===32768||i===2147483647||i==="32768"){i=""}break;case"multiple":case"compact":case"noshade":case"nowrap":if(i===65535){return m}return k;case"shape":i=i.toLowerCase();break;default:if(m.indexOf("on")===0&&i){i=d._replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1",""+i)}}}return(i!==undefined&&i!==null&&i!=="")?""+i:k},getPos:function(q,l){var j=this,i=0,p=0,m,o=j.doc,k;q=j.get(q);l=l||o.body;if(q){if(a&&!j.stdMode){q=q.getBoundingClientRect();m=j.boxModel?o.documentElement:o.body;i=j.getStyle(j.select("html")[0],"borderWidth");i=(i=="medium"||j.boxModel&&!j.isIE6)&&2||i;return{x:q.left+m.scrollLeft-i,y:q.top+m.scrollTop-i}}k=q;while(k&&k!=l&&k.nodeType){i+=k.offsetLeft||0;p+=k.offsetTop||0;k=k.offsetParent}k=q.parentNode;while(k&&k!=l&&k.nodeType){i-=k.scrollLeft||0;p-=k.scrollTop||0;k=k.parentNode}}return{x:i,y:p}},parseStyle:function(i){return this.styles.parse(i)},serializeStyle:function(j,i){return this.styles.serialize(j,i)},loadCSS:function(i){var k=this,l=k.doc,j;if(!i){i=""}j=k.select("head")[0];f(i.split(","),function(m){var n;if(k.files[m]){return}k.files[m]=true;n=k.create("link",{rel:"stylesheet",href:d._addVer(m)});if(a&&l.documentMode&&l.recalc){n.onload=function(){if(l.recalc){l.recalc()}n.onload=null}}j.appendChild(n)})},addClass:function(i,j){return this.run(i,function(k){var l;if(!j){return 0}if(this.hasClass(k,j)){return k.className}l=this.removeClass(k,j);return k.className=(l!=""?(l+" "):"")+j})},removeClass:function(k,l){var i=this,j;return i.run(k,function(n){var m;if(i.hasClass(n,l)){if(!j){j=new RegExp("(^|\\s+)"+l+"(\\s+|$)","g")}m=n.className.replace(j," ");m=d.trim(m!=" "?m:"");n.className=m;if(!m){n.removeAttribute("class");n.removeAttribute("className")}return m}return n.className})},hasClass:function(j,i){j=this.get(j);if(!j||!i){return false}return(" "+j.className+" ").indexOf(" "+i+" ")!==-1},show:function(i){return this.setStyle(i,"display","block")},hide:function(i){return this.setStyle(i,"display","none")},isHidden:function(i){i=this.get(i);return !i||i.style.display=="none"||this.getStyle(i,"display")=="none"},uniqueId:function(i){return(!i?"mce_":i)+(this.counter++)},setHTML:function(k,j){var i=this;return i.run(k,function(m){if(a){while(m.firstChild){m.removeChild(m.firstChild)}try{m.innerHTML="<br />"+j;m.removeChild(m.firstChild)}catch(l){m=i.create("div");m.innerHTML="<br />"+j;f(m.childNodes,function(o,n){if(n){m.appendChild(o)}})}}else{m.innerHTML=j}return j})},getOuterHTML:function(k){var j,i=this;k=i.get(k);if(!k){return null}if(k.nodeType===1&&i.hasOuterHTML){return k.outerHTML}j=(k.ownerDocument||i.doc).createElement("body");j.appendChild(k.cloneNode(true));return j.innerHTML},setOuterHTML:function(l,j,m){var i=this;function k(p,o,r){var s,q;q=r.createElement("body");q.innerHTML=o;s=q.lastChild;while(s){i.insertAfter(s.cloneNode(true),p);s=s.previousSibling}i.remove(p)}return this.run(l,function(o){o=i.get(o);if(o.nodeType==1){m=m||o.ownerDocument||i.doc;if(a){try{if(a&&o.nodeType==1){o.outerHTML=j}else{k(o,j,m)}}catch(n){k(o,j,m)}}else{k(o,j,m)}}})},decode:h.decode,encode:h.encodeAllRaw,insertAfter:function(i,j){j=this.get(j);return this.run(i,function(l){var k,m;k=j.parentNode;m=j.nextSibling;if(m){k.insertBefore(l,m)}else{k.appendChild(l)}return l})},isBlock:function(j){var i=j.nodeType;if(i){return !!(i===1&&g[j.nodeName])}return !!g[j]},replace:function(m,l,i){var j=this;if(c(l,"array")){m=m.cloneNode(true)}return j.run(l,function(k){if(i){f(d.grep(k.childNodes),function(n){m.appendChild(n)})}return k.parentNode.replaceChild(m,k)})},rename:function(l,i){var k=this,j;if(l.nodeName!=i.toUpperCase()){j=k.create(i);f(k.getAttribs(l),function(m){k.setAttrib(j,m.nodeName,k.getAttrib(l,m.nodeName))});k.replace(j,l,1)}return j||l},findCommonAncestor:function(k,i){var l=k,j;while(l){j=i;while(j&&l!=j){j=j.parentNode}if(l==j){break}l=l.parentNode}if(!l&&k.ownerDocument){return k.ownerDocument.documentElement}return l},toHex:function(i){var k=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(i);function j(l){l=parseInt(l).toString(16);return l.length>1?l:"0"+l}if(k){i="#"+j(k[1])+j(k[2])+j(k[3]);return i}return i},getClasses:function(){var n=this,j=[],m,o={},p=n.settings.class_filter,l;if(n.classes){return n.classes}function q(i){f(i.imports,function(s){q(s)});f(i.cssRules||i.rules,function(s){switch(s.type||1){case 1:if(s.selectorText){f(s.selectorText.split(","),function(r){r=r.replace(/^\s*|\s*$|^\s\./g,"");if(/\.mce/.test(r)||!/\.[\w\-]+$/.test(r)){return}l=r;r=d._replace(/.*\.([a-z0-9_\-]+).*/i,"$1",r);if(p&&!(r=p(r,l))){return}if(!o[r]){j.push({"class":r});o[r]=1}})}break;case 3:q(s.styleSheet);break}})}try{f(n.doc.styleSheets,q)}catch(k){}if(j.length>0){n.classes=j}return j},run:function(l,k,j){var i=this,m;if(i.doc&&typeof(l)==="string"){l=i.get(l)}if(!l){return false}j=j||this;if(!l.nodeType&&(l.length||l.length===0)){m=[];f(l,function(o,n){if(o){if(typeof(o)=="string"){o=i.doc.getElementById(o)}m.push(k.call(j,o,n))}});return m}return k.call(j,l)},getAttribs:function(j){var i;j=this.get(j);if(!j){return[]}if(a){i=[];if(j.nodeName=="OBJECT"){return j.attributes}if(j.nodeName==="OPTION"&&this.getAttrib(j,"selected")){i.push({specified:1,nodeName:"selected"})}j.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(k){i.push({specified:1,nodeName:k})});return i}return j.attributes},destroy:function(j){var i=this;if(i.events){i.events.destroy()}i.win=i.doc=i.root=i.events=null;if(!j){d.removeUnload(i.destroy)}},createRng:function(){var i=this.doc;return i.createRange?i.createRange():new d.dom.Range(this)},nodeIndex:function(n,o){var i=0,l,m,k,j;if(n){for(l=n.nodeType,n=n.previousSibling,m=n;n;n=n.previousSibling){k=n.nodeType;if(o&&k==3){j=false;try{j==n.nodeValue.length}catch(p){}if(k==l||!j){continue}}i++;l=k}}return i},split:function(m,l,p){var q=this,i=q.createRng(),n,k,o;function j(t){var s,r=t.childNodes;if(t.nodeType==1&&t.getAttribute("data-mce-type")=="bookmark"){return}for(s=r.length-1;s>=0;s--){j(r[s])}if(t.nodeType!=9){if(t.nodeType==3&&t.nodeValue.length>0){if(!q.isBlock(t.parentNode)||d.trim(t.nodeValue).length>0){return}}if(t.nodeType==1){r=t.childNodes;if(r.length==1&&r[0]&&r[0].nodeType==1&&r[0].getAttribute("data-mce-type")=="bookmark"){t.parentNode.insertBefore(r[0],t)}if(r.length||/^(br|hr|input|img)$/i.test(t.nodeName)){return}}q.remove(t)}return t}if(m&&l){i.setStart(m.parentNode,q.nodeIndex(m));i.setEnd(l.parentNode,q.nodeIndex(l));n=i.extractContents();i=q.createRng();i.setStart(l.parentNode,q.nodeIndex(l)+1);i.setEnd(m.parentNode,q.nodeIndex(m)+1);k=i.extractContents();o=m.parentNode;o.insertBefore(j(n),m);if(p){o.replaceChild(p,l)}else{o.insertBefore(l,m)}o.insertBefore(j(k),m);q.remove(m);return p||l}},bind:function(m,i,l,k){var j=this;if(!j.events){j.events=new d.dom.EventUtils()}return j.events.add(m,i,l,k||this)},unbind:function(l,i,k){var j=this;if(!j.events){j.events=new d.dom.EventUtils()}return j.events.remove(l,i,k)},_findSib:function(l,i,j){var k=this,m=i;if(l){if(c(m,"string")){m=function(n){return k.is(n,i)}}for(l=l[j];l;l=l[j]){if(m(l)){return l}}}return null},_isRes:function(i){return/^(top|left|bottom|right|width|height)/i.test(i)||/;\s*(top|left|bottom|right|width|height)/i.test(i)}});d.DOM=new d.dom.DOMUtils(document,{process_html:0})})(tinymce);(function(a){function b(c){var N=this,e=c.doc,S=0,E=1,j=2,D=true,R=false,U="startOffset",h="startContainer",P="endContainer",z="endOffset",k=tinymce.extend,n=c.nodeIndex;k(N,{startContainer:e,startOffset:0,endContainer:e,endOffset:0,collapsed:D,commonAncestorContainer:e,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:q,setEnd:s,setStartBefore:g,setStartAfter:I,setEndBefore:J,setEndAfter:u,collapse:A,selectNode:x,selectNodeContents:F,compareBoundaryPoints:v,deleteContents:p,extractContents:H,cloneContents:d,insertNode:C,surroundContents:M,cloneRange:K});function q(V,t){B(D,V,t)}function s(V,t){B(R,V,t)}function g(t){q(t.parentNode,n(t))}function I(t){q(t.parentNode,n(t)+1)}function J(t){s(t.parentNode,n(t))}function u(t){s(t.parentNode,n(t)+1)}function A(t){if(t){N[P]=N[h];N[z]=N[U]}else{N[h]=N[P];N[U]=N[z]}N.collapsed=D}function x(t){g(t);u(t)}function F(t){q(t,0);s(t,t.nodeType===1?t.childNodes.length:t.nodeValue.length)}function v(Y,t){var ab=N[h],W=N[U],aa=N[P],V=N[z],Z=t.startContainer,ad=t.startOffset,X=t.endContainer,ac=t.endOffset;if(Y===0){return G(ab,W,Z,ad)}if(Y===1){return G(aa,V,Z,ad)}if(Y===2){return G(aa,V,X,ac)}if(Y===3){return G(ab,W,X,ac)}}function p(){m(j)}function H(){return m(S)}function d(){return m(E)}function C(Y){var V=this[h],t=this[U],X,W;if((V.nodeType===3||V.nodeType===4)&&V.nodeValue){if(!t){V.parentNode.insertBefore(Y,V)}else{if(t>=V.nodeValue.length){c.insertAfter(Y,V)}else{X=V.splitText(t);V.parentNode.insertBefore(Y,X)}}}else{if(V.childNodes.length>0){W=V.childNodes[t]}if(W){V.insertBefore(Y,W)}else{V.appendChild(Y)}}}function M(V){var t=N.extractContents();N.insertNode(V);V.appendChild(t);N.selectNode(V)}function K(){return k(new b(c),{startContainer:N[h],startOffset:N[U],endContainer:N[P],endOffset:N[z],collapsed:N.collapsed,commonAncestorContainer:N.commonAncestorContainer})}function O(t,V){var W;if(t.nodeType==3){return t}if(V<0){return t}W=t.firstChild;while(W&&V>0){--V;W=W.nextSibling}if(W){return W}return t}function l(){return(N[h]==N[P]&&N[U]==N[z])}function G(X,Z,V,Y){var aa,W,t,ab,ad,ac;if(X==V){if(Z==Y){return 0}if(Z<Y){return -1}return 1}aa=V;while(aa&&aa.parentNode!=X){aa=aa.parentNode}if(aa){W=0;t=X.firstChild;while(t!=aa&&W<Z){W++;t=t.nextSibling}if(Z<=W){return -1}return 1}aa=X;while(aa&&aa.parentNode!=V){aa=aa.parentNode}if(aa){W=0;t=V.firstChild;while(t!=aa&&W<Y){W++;t=t.nextSibling}if(W<Y){return -1}return 1}ab=c.findCommonAncestor(X,V);ad=X;while(ad&&ad.parentNode!=ab){ad=ad.parentNode}if(!ad){ad=ab}ac=V;while(ac&&ac.parentNode!=ab){ac=ac.parentNode}if(!ac){ac=ab}if(ad==ac){return 0}t=ab.firstChild;while(t){if(t==ad){return -1}if(t==ac){return 1}t=t.nextSibling}}function B(V,Y,X){var t,W;if(V){N[h]=Y;N[U]=X}else{N[P]=Y;N[z]=X}t=N[P];while(t.parentNode){t=t.parentNode}W=N[h];while(W.parentNode){W=W.parentNode}if(W==t){if(G(N[h],N[U],N[P],N[z])>0){N.collapse(V)}}else{N.collapse(V)}N.collapsed=l();N.commonAncestorContainer=c.findCommonAncestor(N[h],N[P])}function m(ab){var aa,X=0,ad=0,V,Z,W,Y,t,ac;if(N[h]==N[P]){return f(ab)}for(aa=N[P],V=aa.parentNode;V;aa=V,V=V.parentNode){if(V==N[h]){return r(aa,ab)}++X}for(aa=N[h],V=aa.parentNode;V;aa=V,V=V.parentNode){if(V==N[P]){return T(aa,ab)}++ad}Z=ad-X;W=N[h];while(Z>0){W=W.parentNode;Z--}Y=N[P];while(Z<0){Y=Y.parentNode;Z++}for(t=W.parentNode,ac=Y.parentNode;t!=ac;t=t.parentNode,ac=ac.parentNode){W=t;Y=ac}return o(W,Y,ab)}function f(Z){var ab,Y,X,aa,t,W,V;if(Z!=j){ab=e.createDocumentFragment()}if(N[U]==N[z]){return ab}if(N[h].nodeType==3){Y=N[h].nodeValue;X=Y.substring(N[U],N[z]);if(Z!=E){N[h].deleteData(N[U],N[z]-N[U]);N.collapse(D)}if(Z==j){return}ab.appendChild(e.createTextNode(X));return ab}aa=O(N[h],N[U]);t=N[z]-N[U];while(t>0){W=aa.nextSibling;V=y(aa,Z);if(ab){ab.appendChild(V)}--t;aa=W}if(Z!=E){N.collapse(D)}return ab}function r(ab,Y){var aa,Z,V,t,X,W;if(Y!=j){aa=e.createDocumentFragment()}Z=i(ab,Y);if(aa){aa.appendChild(Z)}V=n(ab);t=V-N[U];if(t<=0){if(Y!=E){N.setEndBefore(ab);N.collapse(R)}return aa}Z=ab.previousSibling;while(t>0){X=Z.previousSibling;W=y(Z,Y);if(aa){aa.insertBefore(W,aa.firstChild)}--t;Z=X}if(Y!=E){N.setEndBefore(ab);N.collapse(R)}return aa}function T(Z,Y){var ab,V,aa,t,X,W;if(Y!=j){ab=e.createDocumentFragment()}aa=Q(Z,Y);if(ab){ab.appendChild(aa)}V=n(Z);++V;t=N[z]-V;aa=Z.nextSibling;while(t>0){X=aa.nextSibling;W=y(aa,Y);if(ab){ab.appendChild(W)}--t;aa=X}if(Y!=E){N.setStartAfter(Z);N.collapse(D)}return ab}function o(Z,t,ac){var W,ae,Y,aa,ab,V,ad,X;if(ac!=j){ae=e.createDocumentFragment()}W=Q(Z,ac);if(ae){ae.appendChild(W)}Y=Z.parentNode;aa=n(Z);ab=n(t);++aa;V=ab-aa;ad=Z.nextSibling;while(V>0){X=ad.nextSibling;W=y(ad,ac);if(ae){ae.appendChild(W)}ad=X;--V}W=i(t,ac);if(ae){ae.appendChild(W)}if(ac!=E){N.setStartAfter(Z);N.collapse(D)}return ae}function i(aa,ab){var W=O(N[P],N[z]-1),ac,Z,Y,t,V,X=W!=N[P];if(W==aa){return L(W,X,R,ab)}ac=W.parentNode;Z=L(ac,R,R,ab);while(ac){while(W){Y=W.previousSibling;t=L(W,X,R,ab);if(ab!=j){Z.insertBefore(t,Z.firstChild)}X=D;W=Y}if(ac==aa){return Z}W=ac.previousSibling;ac=ac.parentNode;V=L(ac,R,R,ab);if(ab!=j){V.appendChild(Z)}Z=V}}function Q(aa,ab){var X=O(N[h],N[U]),Y=X!=N[h],ac,Z,W,t,V;if(X==aa){return L(X,Y,D,ab)}ac=X.parentNode;Z=L(ac,R,D,ab);while(ac){while(X){W=X.nextSibling;t=L(X,Y,D,ab);if(ab!=j){Z.appendChild(t)}Y=D;X=W}if(ac==aa){return Z}X=ac.nextSibling;ac=ac.parentNode;V=L(ac,R,D,ab);if(ab!=j){V.appendChild(Z)}Z=V}}function L(t,Y,ab,ac){var X,W,Z,V,aa;if(Y){return y(t,ac)}if(t.nodeType==3){X=t.nodeValue;if(ab){V=N[U];W=X.substring(V);Z=X.substring(0,V)}else{V=N[z];W=X.substring(0,V);Z=X.substring(V)}if(ac!=E){t.nodeValue=Z}if(ac==j){return}aa=t.cloneNode(R);aa.nodeValue=W;return aa}if(ac==j){return}return t.cloneNode(R)}function y(V,t){if(t!=j){return t==E?V.cloneNode(D):V}V.parentNode.removeChild(V)}}a.Range=b})(tinymce.dom);(function(){function a(g){var i=this,j="\uFEFF",e,h,d=g.dom,c=true,f=false;function b(){var n=g.getRng(),k=d.createRng(),m,o;m=n.item?n.item(0):n.parentElement();if(m.ownerDocument!=d.doc){return k}o=g.isCollapsed();if(n.item||!m.hasChildNodes()){if(o){k.setStart(m,0);k.setEnd(m,0)}else{k.setStart(m.parentNode,d.nodeIndex(m));k.setEnd(k.startContainer,k.startOffset+1)}return k}function l(s){var u,q,t,p,A=0,x,y,z,r,v;r=n.duplicate();r.collapse(s);u=d.create("a");z=r.parentElement();if(!z.hasChildNodes()){k[s?"setStart":"setEnd"](z,0);return}z.appendChild(u);r.moveToElementText(u);v=n.compareEndPoints(s?"StartToStart":"EndToEnd",r);if(v>0){k[s?"setStartAfter":"setEndAfter"](z);d.remove(u);return}p=tinymce.grep(z.childNodes);x=p.length-1;while(A<=x){y=Math.floor((A+x)/2);z.insertBefore(u,p[y]);r.moveToElementText(u);v=n.compareEndPoints(s?"StartToStart":"EndToEnd",r);if(v>0){A=y+1}else{if(v<0){x=y-1}else{found=true;break}}}q=v>0||y==0?u.nextSibling:u.previousSibling;if(q.nodeType==1){d.remove(u);t=d.nodeIndex(q);q=q.parentNode;if(!s||y>0){t++}}else{if(v>0||y==0){r.setEndPoint(s?"StartToStart":"EndToEnd",n);t=r.text.length}else{r.setEndPoint(s?"StartToStart":"EndToEnd",n);t=q.nodeValue.length-r.text.length}d.remove(u)}k[s?"setStart":"setEnd"](q,t)}l(true);if(!o){l()}return k}this.addRange=function(k){var p,n,m,r,u,s,t=g.dom.doc,o=t.body;function l(B){var x,A,v,z,y;v=d.create("a");x=B?m:u;A=B?r:s;z=p.duplicate();if(x==t||x==t.documentElement){x=o;A=0}if(x.nodeType==3){x.parentNode.insertBefore(v,x);z.moveToElementText(v);z.moveStart("character",A);d.remove(v);p.setEndPoint(B?"StartToStart":"EndToEnd",z)}else{y=x.childNodes;if(y.length){if(A>=y.length){d.insertAfter(v,y[y.length-1])}else{x.insertBefore(v,y[A])}z.moveToElementText(v)}else{v=t.createTextNode(j);x.appendChild(v);z.moveToElementText(v.parentNode);z.collapse(c)}p.setEndPoint(B?"StartToStart":"EndToEnd",z);d.remove(v)}}this.destroy();m=k.startContainer;r=k.startOffset;u=k.endContainer;s=k.endOffset;p=o.createTextRange();if(m==u&&m.nodeType==1&&r==s-1){if(r==s-1){try{n=o.createControlRange();n.addElement(m.childNodes[r]);n.select();return}catch(q){}}}l(true);l();p.select()};this.getRangeAt=function(){if(!e||!tinymce.dom.RangeUtils.compareRanges(h,g.getRng())){e=b();h=g.getRng()}try{e.startContainer.nextSibling}catch(k){e=b();h=null}return e};this.destroy=function(){h=e=null}}tinymce.dom.TridentSelection=a})();(function(d){var f=d.each,c=d.DOM,b=d.isIE,e=d.isWebKit,a;d.create("tinymce.dom.EventUtils",{EventUtils:function(){this.inits=[];this.events=[]},add:function(m,p,l,j){var g,h=this,i=h.events,k;if(p instanceof Array){k=[];f(p,function(o){k.push(h.add(m,o,l,j))});return k}if(m&&m.hasOwnProperty&&m instanceof Array){k=[];f(m,function(n){n=c.get(n);k.push(h.add(n,p,l,j))});return k}m=c.get(m);if(!m){return}g=function(n){if(h.disabled){return}n=n||window.event;if(n&&b){if(!n.target){n.target=n.srcElement}d.extend(n,h._stoppers)}if(!j){return l(n)}return l.call(j,n)};if(p=="unload"){d.unloads.unshift({func:g});return g}if(p=="init"){if(h.domLoaded){g()}else{h.inits.push(g)}return g}i.push({obj:m,name:p,func:l,cfunc:g,scope:j});h._add(m,p,g);return l},remove:function(l,m,k){var h=this,g=h.events,i=false,j;if(l&&l.hasOwnProperty&&l instanceof Array){j=[];f(l,function(n){n=c.get(n);j.push(h.remove(n,m,k))});return j}l=c.get(l);f(g,function(o,n){if(o.obj==l&&o.name==m&&(!k||(o.func==k||o.cfunc==k))){g.splice(n,1);h._remove(l,m,o.cfunc);i=true;return false}});return i},clear:function(l){var j=this,g=j.events,h,k;if(l){l=c.get(l);for(h=g.length-1;h>=0;h--){k=g[h];if(k.obj===l){j._remove(k.obj,k.name,k.cfunc);k.obj=k.cfunc=null;g.splice(h,1)}}}},cancel:function(g){if(!g){return false}this.stop(g);return this.prevent(g)},stop:function(g){if(g.stopPropagation){g.stopPropagation()}else{g.cancelBubble=true}return false},prevent:function(g){if(g.preventDefault){g.preventDefault()}else{g.returnValue=false}return false},destroy:function(){var g=this;f(g.events,function(j,h){g._remove(j.obj,j.name,j.cfunc);j.obj=j.cfunc=null});g.events=[];g=null},_add:function(h,i,g){if(h.attachEvent){h.attachEvent("on"+i,g)}else{if(h.addEventListener){h.addEventListener(i,g,false)}else{h["on"+i]=g}}},_remove:function(i,j,h){if(i){try{if(i.detachEvent){i.detachEvent("on"+j,h)}else{if(i.removeEventListener){i.removeEventListener(j,h,false)}else{i["on"+j]=null}}}catch(g){}}},_pageInit:function(h){var g=this;if(g.domLoaded){return}g.domLoaded=true;f(g.inits,function(i){i()});g.inits=[]},_wait:function(i){var g=this,h=i.document;if(i.tinyMCE_GZ&&tinyMCE_GZ.loaded){g.domLoaded=1;return}if(h.attachEvent){h.attachEvent("onreadystatechange",function(){if(h.readyState==="complete"){h.detachEvent("onreadystatechange",arguments.callee);g._pageInit(i)}});if(h.documentElement.doScroll&&i==i.top){(function(){if(g.domLoaded){return}try{h.documentElement.doScroll("left")}catch(j){setTimeout(arguments.callee,0);return}g._pageInit(i)})()}}else{if(h.addEventListener){g._add(i,"DOMContentLoaded",function(){g._pageInit(i)})}}g._add(i,"load",function(){g._pageInit(i)})},_stoppers:{preventDefault:function(){this.returnValue=false},stopPropagation:function(){this.cancelBubble=true}}});a=d.dom.Event=new d.dom.EventUtils();a._wait(window);d.addUnload(function(){a.destroy()})})(tinymce);(function(a){a.dom.Element=function(f,d){var b=this,e,c;b.settings=d=d||{};b.id=f;b.dom=e=d.dom||a.DOM;if(!a.isIE){c=e.get(b.id)}a.each(("getPos,getRect,getParent,add,setStyle,getStyle,setStyles,setAttrib,setAttribs,getAttrib,addClass,removeClass,hasClass,getOuterHTML,setOuterHTML,remove,show,hide,isHidden,setHTML,get").split(/,/),function(g){b[g]=function(){var h=[f],j;for(j=0;j<arguments.length;j++){h.push(arguments[j])}h=e[g].apply(e,h);b.update(g);return h}});a.extend(b,{on:function(i,h,g){return a.dom.Event.add(b.id,i,h,g)},getXY:function(){return{x:parseInt(b.getStyle("left")),y:parseInt(b.getStyle("top"))}},getSize:function(){var g=e.get(b.id);return{w:parseInt(b.getStyle("width")||g.clientWidth),h:parseInt(b.getStyle("height")||g.clientHeight)}},moveTo:function(g,h){b.setStyles({left:g,top:h})},moveBy:function(g,i){var h=b.getXY();b.moveTo(h.x+g,h.y+i)},resizeTo:function(g,i){b.setStyles({width:g,height:i})},resizeBy:function(g,j){var i=b.getSize();b.resizeTo(i.w+g,i.h+j)},update:function(h){var g;if(a.isIE6&&d.blocker){h=h||"";if(h.indexOf("get")===0||h.indexOf("has")===0||h.indexOf("is")===0){return}if(h=="remove"){e.remove(b.blocker);return}if(!b.blocker){b.blocker=e.uniqueId();g=e.add(d.container||e.getRoot(),"iframe",{id:b.blocker,style:"position:absolute;",frameBorder:0,src:'javascript:""'});e.setStyle(g,"opacity",0)}else{g=e.get(b.blocker)}e.setStyles(g,{left:b.getStyle("left",1),top:b.getStyle("top",1),width:b.getStyle("width",1),height:b.getStyle("height",1),display:b.getStyle("display",1),zIndex:parseInt(b.getStyle("zIndex",1)||0)-1})}}})}})(tinymce);(function(c){function e(f){return f.replace(/[\n\r]+/g,"")}var b=c.is,a=c.isIE,d=c.each;c.create("tinymce.dom.Selection",{Selection:function(i,h,g){var f=this;f.dom=i;f.win=h;f.serializer=g;d(["onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent"],function(j){f[j]=new c.util.Dispatcher(f)});if(!f.win.getSelection){f.tridentSel=new c.dom.TridentSelection(f)}if(c.isIE&&i.boxModel){this._fixIESelection()}c.addUnload(f.destroy,f)},getContent:function(g){var f=this,h=f.getRng(),l=f.dom.create("body"),j=f.getSel(),i,k,m;g=g||{};i=k="";g.get=true;g.format=g.format||"html";f.onBeforeGetContent.dispatch(f,g);if(g.format=="text"){return f.isCollapsed()?"":(h.text||(j.toString?j.toString():""))}if(h.cloneContents){m=h.cloneContents();if(m){l.appendChild(m)}}else{if(b(h.item)||b(h.htmlText)){l.innerHTML=h.item?h.item(0).outerHTML:h.htmlText}else{l.innerHTML=h.toString()}}if(/^\s/.test(l.innerHTML)){i=" "}if(/\s+$/.test(l.innerHTML)){k=" "}g.getInner=true;g.content=f.isCollapsed()?"":i+f.serializer.serialize(l,g)+k;f.onGetContent.dispatch(f,g);return g.content},setContent:function(k,j){var h=this,f=h.getRng(),i,l=h.win.document,m,g;j=j||{format:"html"};j.set=true;k=j.content=k;if(!j.no_events){h.onBeforeSetContent.dispatch(h,j)}k=j.content;if(f.insertNode){k+='<span id="__caret">_</span>';if(f.startContainer==l&&f.endContainer==l){l.body.innerHTML=k}else{f.deleteContents();if(l.body.childNodes.length==0){l.body.innerHTML=k}else{if(f.createContextualFragment){f.insertNode(f.createContextualFragment(k))}else{m=l.createDocumentFragment();g=l.createElement("div");m.appendChild(g);g.outerHTML=k;f.insertNode(m)}}}i=h.dom.get("__caret");f=l.createRange();f.setStartBefore(i);f.setEndBefore(i);h.setRng(f);h.dom.remove("__caret");h.setRng(f)}else{if(f.item){l.execCommand("Delete",false,null);f=h.getRng()}f.pasteHTML(k)}if(!j.no_events){h.onSetContent.dispatch(h,j)}},getStart:function(){var g=this.getRng(),h,f,j,i;if(g.duplicate||g.item){if(g.item){return g.item(0)}j=g.duplicate();j.collapse(1);h=j.parentElement();f=i=g.parentElement();while(i=i.parentNode){if(i==h){h=f;break}}return h}else{h=g.startContainer;if(h.nodeType==1&&h.hasChildNodes()){h=h.childNodes[Math.min(h.childNodes.length-1,g.startOffset)]}if(h&&h.nodeType==3){return h.parentNode}return h}},getEnd:function(){var g=this,h=g.getRng(),i,f;if(h.duplicate||h.item){if(h.item){return h.item(0)}h=h.duplicate();h.collapse(0);i=h.parentElement();if(i&&i.nodeName=="BODY"){return i.lastChild||i}return i}else{i=h.endContainer;f=h.endOffset;if(i.nodeType==1&&i.hasChildNodes()){i=i.childNodes[f>0?f-1:f]}if(i&&i.nodeType==3){return i.parentNode}return i}},getBookmark:function(r,s){var v=this,m=v.dom,g,j,i,n,h,o,p,l="\uFEFF",u;function f(x,y){var t=0;d(m.select(x),function(A,z){if(A==y){t=z}});return t}if(r==2){function k(){var x=v.getRng(true),t=m.getRoot(),y={};function z(C,H){var B=C[H?"startContainer":"endContainer"],G=C[H?"startOffset":"endOffset"],A=[],D,F,E=0;if(B.nodeType==3){if(s){for(D=B.previousSibling;D&&D.nodeType==3;D=D.previousSibling){G+=D.nodeValue.length}}A.push(G)}else{F=B.childNodes;if(G>=F.length&&F.length){E=1;G=Math.max(0,F.length-1)}A.push(v.dom.nodeIndex(F[G],s)+E)}for(;B&&B!=t;B=B.parentNode){A.push(v.dom.nodeIndex(B,s))}return A}y.start=z(x,true);if(!v.isCollapsed()){y.end=z(x)}return y}return k()}if(r){return{rng:v.getRng()}}g=v.getRng();i=m.uniqueId();n=tinyMCE.activeEditor.selection.isCollapsed();u="overflow:hidden;line-height:0px";if(g.duplicate||g.item){if(!g.item){j=g.duplicate();try{g.collapse();g.pasteHTML('<span data-mce-type="bookmark" id="'+i+'_start" style="'+u+'">'+l+"</span>");if(!n){j.collapse(false);j.pasteHTML('<span data-mce-type="bookmark" id="'+i+'_end" style="'+u+'">'+l+"</span>")}}catch(q){return null}}else{o=g.item(0);h=o.nodeName;return{name:h,index:f(h,o)}}}else{o=v.getNode();h=o.nodeName;if(h=="IMG"){return{name:h,index:f(h,o)}}j=g.cloneRange();if(!n){j.collapse(false);j.insertNode(m.create("span",{"data-mce-type":"bookmark",id:i+"_end",style:u},l))}g.collapse(true);g.insertNode(m.create("span",{"data-mce-type":"bookmark",id:i+"_start",style:u},l))}v.moveToBookmark({id:i,keep:1});return{id:i}},moveToBookmark:function(n){var r=this,l=r.dom,i,h,f,q,j,s,o,p;if(r.tridentSel){r.tridentSel.destroy()}if(n){if(n.start){f=l.createRng();q=l.getRoot();function g(z){var t=n[z?"start":"end"],v,x,y,u;if(t){for(x=q,v=t.length-1;v>=1;v--){u=x.childNodes;if(u.length){x=u[t[v]];if(!x){return}}}if(x.nodeType===3&&t[0]>x.nodeValue.length-1){return}else{if(x.nodeType===1&&t[0]>x.childNodes.length){return}}if(z){f.setStart(x,t[0])}else{f.setEnd(x,t[0])}}return true}if(g(true)&&g()){r.setRng(f)}}else{if(n.id){function k(A){var u=l.get(n.id+"_"+A),z,t,x,y,v=n.keep;if(u){z=u.parentNode;if(A=="start"){if(!v){t=l.nodeIndex(u)}else{z=u.firstChild;t=1}j=s=z;o=p=t}else{if(!v){t=l.nodeIndex(u)}else{z=u.firstChild;t=1}s=z;p=t}if(!v){y=u.previousSibling;x=u.nextSibling;d(c.grep(u.childNodes),function(B){if(B.nodeType==3){B.nodeValue=B.nodeValue.replace(/\uFEFF/g,"")}});while(u=l.get(n.id+"_"+A)){l.remove(u,1)}if(y&&x&&y.nodeType==x.nodeType&&y.nodeType==3&&!c.isOpera){t=y.nodeValue.length;y.appendData(x.nodeValue);l.remove(x);if(A=="start"){j=s=y;o=p=t}else{s=y;p=t}}}}}function m(t){if(l.isBlock(t)&&!t.innerHTML){t.innerHTML=!a?'<br data-mce-bogus="1" />':" "}return t}k("start");k("end");if(j){f=l.createRng();f.setStart(m(j),o);f.setEnd(m(s),p);r.setRng(f)}}else{if(n.name){r.select(l.select(n.name)[n.index])}else{if(n.rng){r.setRng(n.rng)}}}}}},select:function(k,j){var i=this,l=i.dom,g=l.createRng(),f;if(k){f=l.nodeIndex(k);g.setStart(k.parentNode,f);g.setEnd(k.parentNode,f+1);if(j){function h(m,o){var n=new c.dom.TreeWalker(m,m);do{if(m.nodeType==3&&c.trim(m.nodeValue).length!=0){if(o){g.setStart(m,0)}else{g.setEnd(m,m.nodeValue.length)}return}if(m.nodeName=="BR"){if(o){g.setStartBefore(m)}else{g.setEndBefore(m)}return}}while(m=(o?n.next():n.prev()))}h(k,1);h(k)}i.setRng(g)}return k},isCollapsed:function(){var f=this,h=f.getRng(),g=f.getSel();if(!h||h.item){return false}if(h.compareEndPoints){return h.compareEndPoints("StartToEnd",h)===0}return !g||h.collapsed},collapse:function(f){var h=this,g=h.getRng(),i;if(g.item){i=g.item(0);g=h.win.document.body.createTextRange();g.moveToElementText(i)}g.collapse(!!f);h.setRng(g)},getSel:function(){var g=this,f=this.win;return f.getSelection?f.getSelection():f.document.selection},getRng:function(l){var g=this,h,i,k,j=g.win.document;if(l&&g.tridentSel){return g.tridentSel.getRangeAt(0)}try{if(h=g.getSel()){i=h.rangeCount>0?h.getRangeAt(0):(h.createRange?h.createRange():j.createRange())}}catch(f){}if(c.isIE&&i.setStart&&j.selection.createRange().item){k=j.selection.createRange().item(0);i=j.createRange();i.setStartBefore(k);i.setEndAfter(k)}if(!i){i=j.createRange?j.createRange():j.body.createTextRange()}if(g.selectedRange&&g.explicitRange){if(i.compareBoundaryPoints(i.START_TO_START,g.selectedRange)===0&&i.compareBoundaryPoints(i.END_TO_END,g.selectedRange)===0){i=g.explicitRange}else{g.selectedRange=null;g.explicitRange=null}}return i},setRng:function(i){var h,g=this;if(!g.tridentSel){h=g.getSel();if(h){g.explicitRange=i;h.removeAllRanges();h.addRange(i);g.selectedRange=h.getRangeAt(0)}}else{if(i.cloneRange){g.tridentSel.addRange(i);return}try{i.select()}catch(f){}}},setNode:function(g){var f=this;f.setContent(f.dom.getOuterHTML(g));return g},getNode:function(){var h=this,g=h.getRng(),i=h.getSel(),l,k=g.startContainer,f=g.endContainer;if(!g){return h.dom.getRoot()}if(g.setStart){l=g.commonAncestorContainer;if(!g.collapsed){if(g.startContainer==g.endContainer){if(g.endOffset-g.startOffset<2){if(g.startContainer.hasChildNodes()){l=g.startContainer.childNodes[g.startOffset]}}}if(k.nodeType===3&&f.nodeType===3){function j(p,m){var o=p;while(p&&p.nodeType===3&&p.length===0){p=m?p.nextSibling:p.previousSibling}return p||o}if(k.length===g.startOffset){k=j(k.nextSibling,true)}else{k=k.parentNode}if(g.endOffset===0){f=j(f.previousSibling,false)}else{f=f.parentNode}if(k&&k===f){return k}}}if(l&&l.nodeType==3){return l.parentNode}return l}return g.item?g.item(0):g.parentElement()},getSelectedBlocks:function(g,f){var i=this,j=i.dom,m,h,l,k=[];m=j.getParent(g||i.getStart(),j.isBlock);h=j.getParent(f||i.getEnd(),j.isBlock);if(m){k.push(m)}if(m&&h&&m!=h){l=m;while((l=l.nextSibling)&&l!=h){if(j.isBlock(l)){k.push(l)}}}if(h&&m!=h){k.push(h)}return k},destroy:function(g){var f=this;f.win=null;if(f.tridentSel){f.tridentSel.destroy()}if(!g){c.removeUnload(f.destroy)}},_fixIESelection:function(){var g=this.dom,m=g.doc,h=m.body,j,n,f;m.documentElement.unselectable=true;function i(o,r){var p=h.createTextRange();try{p.moveToPoint(o,r)}catch(q){p=null}return p}function l(p){var o;if(p.button){o=i(p.x,p.y);if(o){if(o.compareEndPoints("StartToStart",n)>0){o.setEndPoint("StartToStart",n)}else{o.setEndPoint("EndToEnd",n)}o.select()}}else{k()}}function k(){var o=m.selection.createRange();if(n&&!o.item&&o.compareEndPoints("StartToEnd",o)===0){n.select()}g.unbind(m,"mouseup",k);g.unbind(m,"mousemove",l);n=j=0}g.bind(m,["mousedown","contextmenu"],function(o){if(o.target.nodeName==="HTML"){if(j){k()}f=m.documentElement;if(f.scrollHeight>f.clientHeight){return}j=1;n=i(o.x,o.y);if(n){g.bind(m,"mouseup",k);g.bind(m,"mousemove",l);g.win.focus();n.select()}}})}})})(tinymce);(function(a){a.dom.Serializer=function(e,i,f){var h,b,d=a.isIE,g=a.each,c;if(!e.apply_source_formatting){e.indent=false}e.remove_trailing_brs=true;i=i||a.DOM;f=f||new a.html.Schema(e);e.entity_encoding=e.entity_encoding||"named";h=new a.util.Dispatcher(self);b=new a.util.Dispatcher(self);c=new a.html.DomParser(e,f);c.addAttributeFilter("src,href,style",function(k,j){var o=k.length,l,q,n="data-mce-"+j,p=e.url_converter,r=e.url_converter_scope,m;while(o--){l=k[o];q=l.attributes.map[n];if(q!==m){l.attr(j,q.length>0?q:null);l.attr(n,null)}else{q=l.attributes.map[j];if(j==="style"){q=i.serializeStyle(i.parseStyle(q),l.name)}else{if(p){q=p.call(r,q,j,l.name)}}l.attr(j,q.length>0?q:null)}}});c.addAttributeFilter("class",function(j,k){var l=j.length,m,n;while(l--){m=j[l];n=m.attr("class").replace(/\s*mceItem\w+\s*/g,"");m.attr("class",n.length>0?n:null)}});c.addAttributeFilter("data-mce-type",function(j,l,k){var m=j.length,n;while(m--){n=j[m];if(n.attributes.map["data-mce-type"]==="bookmark"&&!k.cleanup){n.remove()}}});c.addNodeFilter("script,style",function(k,l){var m=k.length,n,o;function j(p){return p.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(\/\/\s*<!--|\/\/\s*<!\[CDATA\[|<!--|<!\[CDATA\[)[\r\n]*/g,"").replace(/\s*(\/\/\s*\]\]>|\/\/\s*-->|\]\]>|-->|\]\]-->)\s*$/g,"")}while(m--){n=k[m];o=n.firstChild?n.firstChild.value:"";if(l==="script"){n.attr("type",(n.attr("type")||"text/javascript").replace(/^mce\-/,""));if(o.length>0){n.firstChild.value="// <![CDATA[\n"+j(o)+"\n// ]]>"}}else{if(o.length>0){n.firstChild.value="<!--\n"+j(o)+"\n-->"}}}});c.addNodeFilter("#comment",function(j,k){var l=j.length,m;while(l--){m=j[l];if(m.value.indexOf("[CDATA[")===0){m.name="#cdata";m.type=4;m.value=m.value.replace(/^\[CDATA\[|\]\]$/g,"")}else{if(m.value.indexOf("mce:protected ")===0){m.name="#text";m.type=3;m.raw=true;m.value=unescape(m.value).substr(14)}}}});c.addNodeFilter("xml:namespace,input",function(j,k){var l=j.length,m;while(l--){m=j[l];if(m.type===7){m.remove()}else{if(m.type===1){if(k==="input"&&!("type" in m.attributes.map)){m.attr("type","text")}}}}});if(e.fix_list_elements){c.addNodeFilter("ul,ol",function(k,l){var m=k.length,n,j;while(m--){n=k[m];j=n.parent;if(j.name==="ul"||j.name==="ol"){if(n.prev&&n.prev.name==="li"){n.prev.append(n)}}}})}c.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style",function(j,k){var l=j.length;while(l--){j[l].attr(k,null)}});return{schema:f,addNodeFilter:c.addNodeFilter,addAttributeFilter:c.addAttributeFilter,onPreProcess:h,onPostProcess:b,serialize:function(o,m){var l,p,k,j,n;if(d&&i.select("script,style,select").length>0){n=o.innerHTML;o=o.cloneNode(false);i.setHTML(o,n)}else{o=o.cloneNode(true)}l=o.ownerDocument.implementation;if(l.createHTMLDocument){p=l.createHTMLDocument("");g(o.nodeName=="BODY"?o.childNodes:[o],function(q){p.body.appendChild(p.importNode(q,true))});if(o.nodeName!="BODY"){o=p.body.firstChild}else{o=p.body}k=i.doc;i.doc=p}m=m||{};m.format=m.format||"html";if(!m.no_events){m.node=o;h.dispatch(self,m)}j=new a.html.Serializer(e,f);m.content=j.serialize(c.parse(m.getInner?o.innerHTML:a.trim(i.getOuterHTML(o),m),m));if(!m.no_events){b.dispatch(self,m)}if(k){i.doc=k}m.node=null;return m.content},addRules:function(j){f.addValidElements(j)},setRules:function(j){f.setValidElements(j)}}}})(tinymce);(function(a){a.dom.ScriptLoader=function(h){var c=0,k=1,i=2,l={},j=[],f={},d=[],g=0,e;function b(m,u){var v=this,q=a.DOM,s,o,r,n;function p(){q.remove(n);if(s){s.onreadystatechange=s.onload=s=null}u()}n=q.uniqueId();if(a.isIE6){o=new a.util.URI(m);r=location;if(o.host==r.hostname&&o.port==r.port&&(o.protocol+":")==r.protocol){a.util.XHR.send({url:a._addVer(o.getURI()),success:function(x){var t=q.create("script",{type:"text/javascript"});t.text=x;document.getElementsByTagName("head")[0].appendChild(t);q.remove(t);p()}});return}}s=q.create("script",{id:n,type:"text/javascript",src:a._addVer(m)});if(!a.isIE){s.onload=p}if(!a.isOpera){s.onreadystatechange=function(){var t=s.readyState;if(t=="complete"||t=="loaded"){p()}}}(document.getElementsByTagName("head")[0]||document.body).appendChild(s)}this.isDone=function(m){return l[m]==i};this.markDone=function(m){l[m]=i};this.add=this.load=function(m,q,n){var o,p=l[m];if(p==e){j.push(m);l[m]=c}if(q){if(!f[m]){f[m]=[]}f[m].push({func:q,scope:n||this})}};this.loadQueue=function(n,m){this.loadScripts(j,n,m)};this.loadScripts=function(m,q,p){var o;function n(r){a.each(f[r],function(s){s.func.call(s.scope)});f[r]=e}d.push({func:q,scope:p||this});o=function(){var r=a.grep(m);m.length=0;a.each(r,function(s){if(l[s]==i){n(s);return}if(l[s]!=k){l[s]=k;g++;b(s,function(){l[s]=i;g--;n(s);o()})}});if(!g){a.each(d,function(s){s.func.call(s.scope)});d.length=0}};o()}};a.ScriptLoader=new a.dom.ScriptLoader()})(tinymce);tinymce.dom.TreeWalker=function(a,c){var b=a;function d(i,f,e,j){var h,g;if(i){if(!j&&i[f]){return i[f]}if(i!=c){h=i[e];if(h){return h}for(g=i.parentNode;g&&g!=c;g=g.parentNode){h=g[e];if(h){return h}}}}}this.current=function(){return b};this.next=function(e){return(b=d(b,"firstChild","nextSibling",e))};this.prev=function(e){return(b=d(b,"lastChild","previousSibling",e))}};(function(a){a.dom.RangeUtils=function(c){var b="\uFEFF";this.walk=function(d,r){var h=d.startContainer,k=d.startOffset,s=d.endContainer,l=d.endOffset,i,f,n,g,q,p,e;e=c.select("td.mceSelected,th.mceSelected");if(e.length>0){a.each(e,function(t){r([t])});return}function o(v,u,t){var x=[];for(;v&&v!=t;v=v[u]){x.push(v)}return x}function m(u,t){do{if(u.parentNode==t){return u}u=u.parentNode}while(u)}function j(v,u,x){var t=x?"nextSibling":"previousSibling";for(g=v,q=g.parentNode;g&&g!=u;g=q){q=g.parentNode;p=o(g==v?g:g[t],t);if(p.length){if(!x){p.reverse()}r(p)}}}if(h.nodeType==1&&h.hasChildNodes()){h=h.childNodes[k]}if(s.nodeType==1&&s.hasChildNodes()){s=s.childNodes[Math.min(l-1,s.childNodes.length-1)]}i=c.findCommonAncestor(h,s);if(h==s){return r([h])}for(g=h;g;g=g.parentNode){if(g==s){return j(h,i,true)}if(g==i){break}}for(g=s;g;g=g.parentNode){if(g==h){return j(s,i)}if(g==i){break}}f=m(h,i)||h;n=m(s,i)||s;j(h,f,true);p=o(f==h?f:f.nextSibling,"nextSibling",n==s?n.nextSibling:n);if(p.length){r(p)}j(s,n)}};a.dom.RangeUtils.compareRanges=function(c,b){if(c&&b){if(c.item||c.duplicate){if(c.item&&b.item&&c.item(0)===b.item(0)){return true}if(c.isEqual&&b.isEqual&&b.isEqual(c)){return true}}else{return c.startContainer==b.startContainer&&c.startOffset==b.startOffset}}return false}})(tinymce);(function(b){var a=b.dom.Event,c=b.each;b.create("tinymce.ui.KeyboardNavigation",{KeyboardNavigation:function(e,f){var p=this,m=e.root,l=e.items,n=e.enableUpDown,i=e.enableLeftRight||!e.enableUpDown,k=e.excludeFromTabOrder,j,h,o,d,g;f=f||b.DOM;j=function(q){g=q.target.id};h=function(q){f.setAttrib(q.target.id,"tabindex","-1")};d=function(q){var r=f.get(g);f.setAttrib(r,"tabindex","0");r.focus()};p.focus=function(){f.get(g).focus()};p.destroy=function(){c(l,function(q){f.unbind(f.get(q.id),"focus",j);f.unbind(f.get(q.id),"blur",h)});f.unbind(f.get(m),"focus",d);f.unbind(f.get(m),"keydown",o);l=f=m=p.focus=j=h=o=d=null;p.destroy=function(){}};p.moveFocus=function(u,r){var q=-1,t=p.controls,s;if(!g){return}c(l,function(x,v){if(x.id===g){q=v;return false}});q+=u;if(q<0){q=l.length-1}else{if(q>=l.length){q=0}}s=l[q];f.setAttrib(g,"tabindex","-1");f.setAttrib(s.id,"tabindex","0");f.get(s.id).focus();if(e.actOnFocus){e.onAction(s.id)}if(r){a.cancel(r)}};o=function(y){var u=37,t=39,x=38,z=40,q=27,s=14,r=13,v=32;switch(y.keyCode){case u:if(i){p.moveFocus(-1)}break;case t:if(i){p.moveFocus(1)}break;case x:if(n){p.moveFocus(-1)}break;case z:if(n){p.moveFocus(1)}break;case q:if(e.onCancel){e.onCancel();a.cancel(y)}break;case s:case r:case v:if(e.onAction){e.onAction(g);a.cancel(y)}break}};c(l,function(s,q){var r;if(!s.id){s.id=f.uniqueId("_mce_item_")}if(k){f.bind(s.id,"blur",h);r="-1"}else{r=(q===0?"0":"-1")}f.setAttrib(s.id,"tabindex",r);f.bind(f.get(s.id),"focus",j)});if(l[0]){g=l[0].id}f.setAttrib(m,"tabindex","-1");f.bind(f.get(m),"focus",d);f.bind(f.get(m),"keydown",o)}})})(tinymce);(function(c){var b=c.DOM,a=c.is;c.create("tinymce.ui.Control",{Control:function(f,e,d){this.id=f;this.settings=e=e||{};this.rendered=false;this.onRender=new c.util.Dispatcher(this);this.classPrefix="";this.scope=e.scope||this;this.disabled=0;this.active=0;this.editor=d},setAriaProperty:function(f,e){var d=b.get(this.id+"_aria")||b.get(this.id);if(d){b.setAttrib(d,"aria-"+f,!!e)}},focus:function(){b.get(this.id).focus()},setDisabled:function(d){if(d!=this.disabled){this.setAriaProperty("disabled",d);this.setState("Disabled",d);this.setState("Enabled",!d);this.disabled=d}},isDisabled:function(){return this.disabled},setActive:function(d){if(d!=this.active){this.setState("Active",d);this.active=d;this.setAriaProperty("pressed",d)}},isActive:function(){return this.active},setState:function(f,d){var e=b.get(this.id);f=this.classPrefix+f;if(d){b.addClass(e,f)}else{b.removeClass(e,f)}},isRendered:function(){return this.rendered},renderHTML:function(){},renderTo:function(d){b.setHTML(d,this.renderHTML())},postRender:function(){var e=this,d;if(a(e.disabled)){d=e.disabled;e.disabled=-1;e.setDisabled(d)}if(a(e.active)){d=e.active;e.active=-1;e.setActive(d)}},remove:function(){b.remove(this.id);this.destroy()},destroy:function(){c.dom.Event.clear(this.id)}})})(tinymce);tinymce.create("tinymce.ui.Container:tinymce.ui.Control",{Container:function(c,b,a){this.parent(c,b,a);this.controls=[];this.lookup={}},add:function(a){this.lookup[a.id]=a;this.controls.push(a);return a},get:function(a){return this.lookup[a]}});tinymce.create("tinymce.ui.Separator:tinymce.ui.Control",{Separator:function(b,a){this.parent(b,a);this.classPrefix="mceSeparator";this.setDisabled(true)},renderHTML:function(){return tinymce.DOM.createHTML("span",{"class":this.classPrefix,role:"separator","aria-orientation":"vertical",tabindex:"-1"})}});(function(d){var c=d.is,b=d.DOM,e=d.each,a=d.walk;d.create("tinymce.ui.MenuItem:tinymce.ui.Control",{MenuItem:function(g,f){this.parent(g,f);this.classPrefix="mceMenuItem"},setSelected:function(f){this.setState("Selected",f);this.setAriaProperty("checked",!!f);this.selected=f},isSelected:function(){return this.selected},postRender:function(){var f=this;f.parent();if(c(f.selected)){f.setSelected(f.selected)}}})})(tinymce);(function(d){var c=d.is,b=d.DOM,e=d.each,a=d.walk;d.create("tinymce.ui.Menu:tinymce.ui.MenuItem",{Menu:function(h,g){var f=this;f.parent(h,g);f.items={};f.collapsed=false;f.menuCount=0;f.onAddItem=new d.util.Dispatcher(this)},expand:function(g){var f=this;if(g){a(f,function(h){if(h.expand){h.expand()}},"items",f)}f.collapsed=false},collapse:function(g){var f=this;if(g){a(f,function(h){if(h.collapse){h.collapse()}},"items",f)}f.collapsed=true},isCollapsed:function(){return this.collapsed},add:function(f){if(!f.settings){f=new d.ui.MenuItem(f.id||b.uniqueId(),f)}this.onAddItem.dispatch(this,f);return this.items[f.id]=f},addSeparator:function(){return this.add({separator:true})},addMenu:function(f){if(!f.collapse){f=this.createMenu(f)}this.menuCount++;return this.add(f)},hasMenus:function(){return this.menuCount!==0},remove:function(f){delete this.items[f.id]},removeAll:function(){var f=this;a(f,function(g){if(g.removeAll){g.removeAll()}else{g.remove()}g.destroy()},"items",f);f.items={}},createMenu:function(g){var f=new d.ui.Menu(g.id||b.uniqueId(),g);f.onAddItem.add(this.onAddItem.dispatch,this.onAddItem);return f}})})(tinymce);(function(e){var d=e.is,c=e.DOM,f=e.each,a=e.dom.Event,b=e.dom.Element;e.create("tinymce.ui.DropMenu:tinymce.ui.Menu",{DropMenu:function(h,g){g=g||{};g.container=g.container||c.doc.body;g.offset_x=g.offset_x||0;g.offset_y=g.offset_y||0;g.vp_offset_x=g.vp_offset_x||0;g.vp_offset_y=g.vp_offset_y||0;if(d(g.icons)&&!g.icons){g["class"]+=" mceNoIcons"}this.parent(h,g);this.onShowMenu=new e.util.Dispatcher(this);this.onHideMenu=new e.util.Dispatcher(this);this.classPrefix="mceMenu"},createMenu:function(j){var h=this,i=h.settings,g;j.container=j.container||i.container;j.parent=h;j.constrain=j.constrain||i.constrain;j["class"]=j["class"]||i["class"];j.vp_offset_x=j.vp_offset_x||i.vp_offset_x;j.vp_offset_y=j.vp_offset_y||i.vp_offset_y;j.keyboard_focus=i.keyboard_focus;g=new e.ui.DropMenu(j.id||c.uniqueId(),j);g.onAddItem.add(h.onAddItem.dispatch,h.onAddItem);return g},focus:function(){var g=this;if(g.keyboardNav){g.keyboardNav.focus()}},update:function(){var i=this,j=i.settings,g=c.get("menu_"+i.id+"_tbl"),l=c.get("menu_"+i.id+"_co"),h,k;h=j.max_width?Math.min(g.clientWidth,j.max_width):g.clientWidth;k=j.max_height?Math.min(g.clientHeight,j.max_height):g.clientHeight;if(!c.boxModel){i.element.setStyles({width:h+2,height:k+2})}else{i.element.setStyles({width:h,height:k})}if(j.max_width){c.setStyle(l,"width",h)}if(j.max_height){c.setStyle(l,"height",k);if(g.clientHeight<j.max_height){c.setStyle(l,"overflow","hidden")}}},showMenu:function(p,n,r){var z=this,A=z.settings,o,g=c.getViewPort(),u,l,v,q,i=2,k,j,m=z.classPrefix;z.collapse(1);if(z.isMenuVisible){return}if(!z.rendered){o=c.add(z.settings.container,z.renderNode());f(z.items,function(h){h.postRender()});z.element=new b("menu_"+z.id,{blocker:1,container:A.container})}else{o=c.get("menu_"+z.id)}if(!e.isOpera){c.setStyles(o,{left:-65535,top:-65535})}c.show(o);z.update();p+=A.offset_x||0;n+=A.offset_y||0;g.w-=4;g.h-=4;if(A.constrain){u=o.clientWidth-i;l=o.clientHeight-i;v=g.x+g.w;q=g.y+g.h;if((p+A.vp_offset_x+u)>v){p=r?r-u:Math.max(0,(v-A.vp_offset_x)-u)}if((n+A.vp_offset_y+l)>q){n=Math.max(0,(q-A.vp_offset_y)-l)}}c.setStyles(o,{left:p,top:n});z.element.update();z.isMenuVisible=1;z.mouseClickFunc=a.add(o,"click",function(s){var h;s=s.target;if(s&&(s=c.getParent(s,"tr"))&&!c.hasClass(s,m+"ItemSub")){h=z.items[s.id];if(h.isDisabled()){return}k=z;while(k){if(k.hideMenu){k.hideMenu()}k=k.settings.parent}if(h.settings.onclick){h.settings.onclick(s)}return a.cancel(s)}});if(z.hasMenus()){z.mouseOverFunc=a.add(o,"mouseover",function(x){var h,t,s;x=x.target;if(x&&(x=c.getParent(x,"tr"))){h=z.items[x.id];if(z.lastMenu){z.lastMenu.collapse(1)}if(h.isDisabled()){return}if(x&&c.hasClass(x,m+"ItemSub")){t=c.getRect(x);h.showMenu((t.x+t.w-i),t.y-i,t.x);z.lastMenu=h;c.addClass(c.get(h.id).firstChild,m+"ItemActive")}}})}a.add(o,"keydown",z._keyHandler,z);z.onShowMenu.dispatch(z);if(A.keyboard_focus){z._setupKeyboardNav()}},hideMenu:function(j){var g=this,i=c.get("menu_"+g.id),h;if(!g.isMenuVisible){return}if(g.keyboardNav){g.keyboardNav.destroy()}a.remove(i,"mouseover",g.mouseOverFunc);a.remove(i,"click",g.mouseClickFunc);a.remove(i,"keydown",g._keyHandler);c.hide(i);g.isMenuVisible=0;if(!j){g.collapse(1)}if(g.element){g.element.hide()}if(h=c.get(g.id)){c.removeClass(h.firstChild,g.classPrefix+"ItemActive")}g.onHideMenu.dispatch(g)},add:function(i){var g=this,h;i=g.parent(i);if(g.isRendered&&(h=c.get("menu_"+g.id))){g._add(c.select("tbody",h)[0],i)}return i},collapse:function(g){this.parent(g);this.hideMenu(1)},remove:function(g){c.remove(g.id);this.destroy();return this.parent(g)},destroy:function(){var g=this,h=c.get("menu_"+g.id);if(g.keyboardNav){g.keyboardNav.destroy()}a.remove(h,"mouseover",g.mouseOverFunc);a.remove(c.select("a",h),"focus",g.mouseOverFunc);a.remove(h,"click",g.mouseClickFunc);a.remove(h,"keydown",g._keyHandler);if(g.element){g.element.remove()}c.remove(h)},renderNode:function(){var i=this,j=i.settings,l,h,k,g;g=c.create("div",{role:"listbox",id:"menu_"+i.id,"class":j["class"],style:"position:absolute;left:0;top:0;z-index:200000;outline:0"});if(i.settings.parent){c.setAttrib(g,"aria-parent","menu_"+i.settings.parent.id)}k=c.add(g,"div",{role:"presentation",id:"menu_"+i.id+"_co","class":i.classPrefix+(j["class"]?" "+j["class"]:"")});i.element=new b("menu_"+i.id,{blocker:1,container:j.container});if(j.menu_line){c.add(k,"span",{"class":i.classPrefix+"Line"})}l=c.add(k,"table",{role:"presentation",id:"menu_"+i.id+"_tbl",border:0,cellPadding:0,cellSpacing:0});h=c.add(l,"tbody");f(i.items,function(m){i._add(h,m)});i.rendered=true;return g},_setupKeyboardNav:function(){var i,h,g=this;i=c.select("#menu_"+g.id)[0];h=c.select("a[role=option]","menu_"+g.id);h.splice(0,0,i);g.keyboardNav=new e.ui.KeyboardNavigation({root:"menu_"+g.id,items:h,onCancel:function(){g.hideMenu()},enableUpDown:true});i.focus()},_keyHandler:function(g){var h=this,i;switch(g.keyCode){case 37:if(h.settings.parent){h.hideMenu();h.settings.parent.focus();a.cancel(g)}break;case 39:if(h.mouseOverFunc){h.mouseOverFunc(g)}break}},_add:function(j,h){var i,q=h.settings,p,l,k,m=this.classPrefix,g;if(q.separator){l=c.add(j,"tr",{id:h.id,"class":m+"ItemSeparator"});c.add(l,"td",{"class":m+"ItemSeparator"});if(i=l.previousSibling){c.addClass(i,"mceLast")}return}i=l=c.add(j,"tr",{id:h.id,"class":m+"Item "+m+"ItemEnabled"});i=k=c.add(i,q.titleItem?"th":"td");i=p=c.add(i,"a",{id:h.id+"_aria",role:q.titleItem?"presentation":"option",href:"javascript:;",onclick:"return false;",onmousedown:"return false;"});if(q.parent){c.setAttrib(p,"aria-haspopup","true");c.setAttrib(p,"aria-owns","menu_"+h.id)}c.addClass(k,q["class"]);g=c.add(i,"span",{"class":"mceIcon"+(q.icon?" mce_"+q.icon:"")});if(q.icon_src){c.add(g,"img",{src:q.icon_src})}i=c.add(i,q.element||"span",{"class":"mceText",title:h.settings.title},h.settings.title);if(h.settings.style){c.setAttrib(i,"style",h.settings.style)}if(j.childNodes.length==1){c.addClass(l,"mceFirst")}if((i=l.previousSibling)&&c.hasClass(i,m+"ItemSeparator")){c.addClass(l,"mceFirst")}if(h.collapse){c.addClass(l,m+"ItemSub")}if(i=l.previousSibling){c.removeClass(i,"mceLast")}c.addClass(l,"mceLast")}})})(tinymce);(function(b){var a=b.DOM;b.create("tinymce.ui.Button:tinymce.ui.Control",{Button:function(e,d,c){this.parent(e,d,c);this.classPrefix="mceButton"},renderHTML:function(){var f=this.classPrefix,e=this.settings,d,c;c=a.encode(e.label||"");d='<a role="button" id="'+this.id+'" href="javascript:;" class="'+f+" "+f+"Enabled "+e["class"]+(c?" "+f+"Labeled":"")+'" onmousedown="return false;" onclick="return false;" aria-labelledby="'+this.id+'_voice" title="'+a.encode(e.title)+'">';if(e.image){d+='<img class="mceIcon" src="'+e.image+'" alt="'+a.encode(e.title)+'" />'+c}else{d+='<span class="mceIcon '+e["class"]+'"></span>'+(c?'<span class="'+f+'Label">'+c+"</span>":"")}d+='<span class="mceVoiceLabel mceIconOnly" style="display: none;" id="'+this.id+'_voice">'+e.title+"</span>";d+="</a>";return d},postRender:function(){var c=this,d=c.settings;b.dom.Event.add(c.id,"click",function(f){if(!c.isDisabled()){return d.onclick.call(d.scope,f)}})}})})(tinymce);(function(d){var c=d.DOM,b=d.dom.Event,e=d.each,a=d.util.Dispatcher;d.create("tinymce.ui.ListBox:tinymce.ui.Control",{ListBox:function(i,h,f){var g=this;g.parent(i,h,f);g.items=[];g.onChange=new a(g);g.onPostRender=new a(g);g.onAdd=new a(g);g.onRenderMenu=new d.util.Dispatcher(this);g.classPrefix="mceListBox"},select:function(h){var g=this,j,i;if(h==undefined){return g.selectByIndex(-1)}if(h&&h.call){i=h}else{i=function(f){return f==h}}if(h!=g.selectedValue){e(g.items,function(k,f){if(i(k.value)){j=1;g.selectByIndex(f);return false}});if(!j){g.selectByIndex(-1)}}},selectByIndex:function(f){var g=this,h,i;if(f!=g.selectedIndex){h=c.get(g.id+"_text");i=g.items[f];if(i){g.selectedValue=i.value;g.selectedIndex=f;c.setHTML(h,c.encode(i.title));c.removeClass(h,"mceTitle");c.setAttrib(g.id,"aria-valuenow",i.title)}else{c.setHTML(h,c.encode(g.settings.title));c.addClass(h,"mceTitle");g.selectedValue=g.selectedIndex=null;c.setAttrib(g.id,"aria-valuenow",g.settings.title)}h=0}},add:function(i,f,h){var g=this;h=h||{};h=d.extend(h,{title:i,value:f});g.items.push(h);g.onAdd.dispatch(g,h)},getLength:function(){return this.items.length},renderHTML:function(){var i="",f=this,g=f.settings,j=f.classPrefix;i='<span role="button" aria-haspopup="true" aria-labelledby="'+f.id+'_text" aria-describedby="'+f.id+'_voiceDesc"><table role="presentation" tabindex="0" id="'+f.id+'" cellpadding="0" cellspacing="0" class="'+j+" "+j+"Enabled"+(g["class"]?(" "+g["class"]):"")+'"><tbody><tr>';i+="<td>"+c.createHTML("span",{id:f.id+"_voiceDesc","class":"voiceLabel",style:"display:none;"},f.settings.title);i+=c.createHTML("a",{id:f.id+"_text",tabindex:-1,href:"javascript:;","class":"mceText",onclick:"return false;",onmousedown:"return false;"},c.encode(f.settings.title))+"</td>";i+="<td>"+c.createHTML("a",{id:f.id+"_open",tabindex:-1,href:"javascript:;","class":"mceOpen",onclick:"return false;",onmousedown:"return false;"},'<span><span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span></span>')+"</td>";i+="</tr></tbody></table></span>";return i},showMenu:function(){var g=this,j,i,h=c.get(this.id),f;if(g.isDisabled()||g.items.length==0){return}if(g.menu&&g.menu.isMenuVisible){return g.hideMenu()}if(!g.isMenuRendered){g.renderMenu();g.isMenuRendered=true}j=c.getPos(this.settings.menu_container);i=c.getPos(h);f=g.menu;f.settings.offset_x=i.x;f.settings.offset_y=i.y;f.settings.keyboard_focus=!d.isOpera;if(g.oldID){f.items[g.oldID].setSelected(0)}e(g.items,function(k){if(k.value===g.selectedValue){f.items[k.id].setSelected(1);g.oldID=k.id}});f.showMenu(0,h.clientHeight);b.add(c.doc,"mousedown",g.hideMenu,g);c.addClass(g.id,g.classPrefix+"Selected")},hideMenu:function(g){var f=this;if(f.menu&&f.menu.isMenuVisible){c.removeClass(f.id,f.classPrefix+"Selected");if(g&&g.type=="mousedown"&&(g.target.id==f.id+"_text"||g.target.id==f.id+"_open")){return}if(!g||!c.getParent(g.target,".mceMenu")){c.removeClass(f.id,f.classPrefix+"Selected");b.remove(c.doc,"mousedown",f.hideMenu,f);f.menu.hideMenu()}}},renderMenu:function(){var g=this,f;f=g.settings.control_manager.createDropMenu(g.id+"_menu",{menu_line:1,"class":g.classPrefix+"Menu mceNoIcons",max_width:150,max_height:150});f.onHideMenu.add(function(){g.hideMenu();g.focus()});f.add({title:g.settings.title,"class":"mceMenuItemTitle",onclick:function(){if(g.settings.onselect("")!==false){g.select("")}}});e(g.items,function(h){if(h.value===undefined){f.add({title:h.title,"class":"mceMenuItemTitle",onclick:function(){if(g.settings.onselect("")!==false){g.select("")}}})}else{h.id=c.uniqueId();h.onclick=function(){if(g.settings.onselect(h.value)!==false){g.select(h.value)}};f.add(h)}});g.onRenderMenu.dispatch(g,f);g.menu=f},postRender:function(){var f=this,g=f.classPrefix;b.add(f.id,"click",f.showMenu,f);b.add(f.id,"keydown",function(h){if(h.keyCode==32){f.showMenu(h);b.cancel(h)}});b.add(f.id,"focus",function(){if(!f._focused){f.keyDownHandler=b.add(f.id,"keydown",function(h){if(h.keyCode==40){f.showMenu();b.cancel(h)}});f.keyPressHandler=b.add(f.id,"keypress",function(i){var h;if(i.keyCode==13){h=f.selectedValue;f.selectedValue=null;b.cancel(i);f.settings.onselect(h)}})}f._focused=1});b.add(f.id,"blur",function(){b.remove(f.id,"keydown",f.keyDownHandler);b.remove(f.id,"keypress",f.keyPressHandler);f._focused=0});if(d.isIE6||!c.boxModel){b.add(f.id,"mouseover",function(){if(!c.hasClass(f.id,g+"Disabled")){c.addClass(f.id,g+"Hover")}});b.add(f.id,"mouseout",function(){if(!c.hasClass(f.id,g+"Disabled")){c.removeClass(f.id,g+"Hover")}})}f.onPostRender.dispatch(f,c.get(f.id))},destroy:function(){this.parent();b.clear(this.id+"_text");b.clear(this.id+"_open")}})})(tinymce);(function(d){var c=d.DOM,b=d.dom.Event,e=d.each,a=d.util.Dispatcher;d.create("tinymce.ui.NativeListBox:tinymce.ui.ListBox",{NativeListBox:function(g,f){this.parent(g,f);this.classPrefix="mceNativeListBox"},setDisabled:function(f){c.get(this.id).disabled=f;this.setAriaProperty("disabled",f)},isDisabled:function(){return c.get(this.id).disabled},select:function(h){var g=this,j,i;if(h==undefined){return g.selectByIndex(-1)}if(h&&h.call){i=h}else{i=function(f){return f==h}}if(h!=g.selectedValue){e(g.items,function(k,f){if(i(k.value)){j=1;g.selectByIndex(f);return false}});if(!j){g.selectByIndex(-1)}}},selectByIndex:function(f){c.get(this.id).selectedIndex=f+1;this.selectedValue=this.items[f]?this.items[f].value:null},add:function(j,g,f){var i,h=this;f=f||{};f.value=g;if(h.isRendered()){c.add(c.get(this.id),"option",f,j)}i={title:j,value:g,attribs:f};h.items.push(i);h.onAdd.dispatch(h,i)},getLength:function(){return this.items.length},renderHTML:function(){var g,f=this;g=c.createHTML("option",{value:""},"-- "+f.settings.title+" --");e(f.items,function(h){g+=c.createHTML("option",{value:h.value},h.title)});g=c.createHTML("select",{id:f.id,"class":"mceNativeListBox","aria-labelledby":f.id+"_aria"},g);g+=c.createHTML("span",{id:f.id+"_aria",style:"display: none"},f.settings.title);return g},postRender:function(){var g=this,h,i=true;g.rendered=true;function f(k){var j=g.items[k.target.selectedIndex-1];if(j&&(j=j.value)){g.onChange.dispatch(g,j);if(g.settings.onselect){g.settings.onselect(j)}}}b.add(g.id,"change",f);b.add(g.id,"keydown",function(k){var j;b.remove(g.id,"change",h);i=false;j=b.add(g.id,"blur",function(){if(i){return}i=true;b.add(g.id,"change",f);b.remove(g.id,"blur",j)});if(k.keyCode==13||k.keyCode==32){f(k);return b.cancel(k)}});g.onPostRender.dispatch(g,c.get(g.id))}})})(tinymce);(function(c){var b=c.DOM,a=c.dom.Event,d=c.each;c.create("tinymce.ui.MenuButton:tinymce.ui.Button",{MenuButton:function(g,f,e){this.parent(g,f,e);this.onRenderMenu=new c.util.Dispatcher(this);f.menu_container=f.menu_container||b.doc.body},showMenu:function(){var g=this,j,i,h=b.get(g.id),f;if(g.isDisabled()){return}if(!g.isMenuRendered){g.renderMenu();g.isMenuRendered=true}if(g.isMenuVisible){return g.hideMenu()}j=b.getPos(g.settings.menu_container);i=b.getPos(h);f=g.menu;f.settings.offset_x=i.x;f.settings.offset_y=i.y;f.settings.vp_offset_x=i.x;f.settings.vp_offset_y=i.y;f.settings.keyboard_focus=g._focused;f.showMenu(0,h.clientHeight);a.add(b.doc,"mousedown",g.hideMenu,g);g.setState("Selected",1);g.isMenuVisible=1},renderMenu:function(){var f=this,e;e=f.settings.control_manager.createDropMenu(f.id+"_menu",{menu_line:1,"class":this.classPrefix+"Menu",icons:f.settings.icons});e.onHideMenu.add(function(){f.hideMenu();f.focus()});f.onRenderMenu.dispatch(f,e);f.menu=e},hideMenu:function(g){var f=this;if(g&&g.type=="mousedown"&&b.getParent(g.target,function(h){return h.id===f.id||h.id===f.id+"_open"})){return}if(!g||!b.getParent(g.target,".mceMenu")){f.setState("Selected",0);a.remove(b.doc,"mousedown",f.hideMenu,f);if(f.menu){f.menu.hideMenu()}}f.isMenuVisible=0},postRender:function(){var e=this,f=e.settings;a.add(e.id,"click",function(){if(!e.isDisabled()){if(f.onclick){f.onclick(e.value)}e.showMenu()}})}})})(tinymce);(function(c){var b=c.DOM,a=c.dom.Event,d=c.each;c.create("tinymce.ui.SplitButton:tinymce.ui.MenuButton",{SplitButton:function(g,f,e){this.parent(g,f,e);this.classPrefix="mceSplitButton"},renderHTML:function(){var i,f=this,g=f.settings,e;i="<tbody><tr>";if(g.image){e=b.createHTML("img ",{src:g.image,role:"presentation","class":"mceAction "+g["class"]})}else{e=b.createHTML("span",{"class":"mceAction "+g["class"]},"")}e+=b.createHTML("span",{"class":"mceVoiceLabel mceIconOnly",id:f.id+"_voice",style:"display:none;"},g.title);i+="<td >"+b.createHTML("a",{role:"button",id:f.id+"_action",tabindex:"-1",href:"javascript:;","class":"mceAction "+g["class"],onclick:"return false;",onmousedown:"return false;",title:g.title},e)+"</td>";e=b.createHTML("span",{"class":"mceOpen "+g["class"]},'<span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span>');i+="<td >"+b.createHTML("a",{role:"button",id:f.id+"_open",tabindex:"-1",href:"javascript:;","class":"mceOpen "+g["class"],onclick:"return false;",onmousedown:"return false;",title:g.title},e)+"</td>";i+="</tr></tbody>";i=b.createHTML("table",{id:f.id,role:"presentation",tabindex:"0","class":"mceSplitButton mceSplitButtonEnabled "+g["class"],cellpadding:"0",cellspacing:"0",title:g.title},i);return b.createHTML("span",{role:"button","aria-labelledby":f.id+"_voice","aria-haspopup":"true"},i)},postRender:function(){var e=this,g=e.settings,f;if(g.onclick){f=function(h){if(!e.isDisabled()){g.onclick(e.value);a.cancel(h)}};a.add(e.id+"_action","click",f);a.add(e.id,["click","keydown"],function(h){var k=32,m=14,i=13,j=38,l=40;if((h.keyCode===32||h.keyCode===13||h.keyCode===14)&&!h.altKey&&!h.ctrlKey&&!h.metaKey){f();a.cancel(h)}else{if(h.type==="click"||h.keyCode===l){e.showMenu();a.cancel(h)}}})}a.add(e.id+"_open","click",function(h){e.showMenu();a.cancel(h)});a.add([e.id,e.id+"_open"],"focus",function(){e._focused=1});a.add([e.id,e.id+"_open"],"blur",function(){e._focused=0});if(c.isIE6||!b.boxModel){a.add(e.id,"mouseover",function(){if(!b.hasClass(e.id,"mceSplitButtonDisabled")){b.addClass(e.id,"mceSplitButtonHover")}});a.add(e.id,"mouseout",function(){if(!b.hasClass(e.id,"mceSplitButtonDisabled")){b.removeClass(e.id,"mceSplitButtonHover")}})}},destroy:function(){this.parent();a.clear(this.id+"_action");a.clear(this.id+"_open");a.clear(this.id)}})})(tinymce);(function(d){var c=d.DOM,a=d.dom.Event,b=d.is,e=d.each;d.create("tinymce.ui.ColorSplitButton:tinymce.ui.SplitButton",{ColorSplitButton:function(i,h,f){var g=this;g.parent(i,h,f);g.settings=h=d.extend({colors:"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,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF",grid_width:8,default_color:"#888888"},g.settings);g.onShowMenu=new d.util.Dispatcher(g);g.onHideMenu=new d.util.Dispatcher(g);g.value=h.default_color},showMenu:function(){var f=this,g,j,i,h;if(f.isDisabled()){return}if(!f.isMenuRendered){f.renderMenu();f.isMenuRendered=true}if(f.isMenuVisible){return f.hideMenu()}i=c.get(f.id);c.show(f.id+"_menu");c.addClass(i,"mceSplitButtonSelected");h=c.getPos(i);c.setStyles(f.id+"_menu",{left:h.x,top:h.y+i.clientHeight,zIndex:200000});i=0;a.add(c.doc,"mousedown",f.hideMenu,f);f.onShowMenu.dispatch(f);if(f._focused){f._keyHandler=a.add(f.id+"_menu","keydown",function(k){if(k.keyCode==27){f.hideMenu()}});c.select("a",f.id+"_menu")[0].focus()}f.isMenuVisible=1},hideMenu:function(g){var f=this;if(g&&g.type=="mousedown"&&c.getParent(g.target,function(h){return h.id===f.id+"_open"})){return}if(!g||!c.getParent(g.target,".mceSplitButtonMenu")){c.removeClass(f.id,"mceSplitButtonSelected");a.remove(c.doc,"mousedown",f.hideMenu,f);a.remove(f.id+"_menu","keydown",f._keyHandler);c.hide(f.id+"_menu")}f.onHideMenu.dispatch(f);f.isMenuVisible=0;f.editor.focus()},renderMenu:function(){var p=this,h,k=0,q=p.settings,g,j,l,o,f;o=c.add(q.menu_container,"div",{role:"listbox",id:p.id+"_menu","class":q.menu_class+" "+q["class"],style:"position:absolute;left:0;top:-1000px;"});h=c.add(o,"div",{"class":q["class"]+" mceSplitButtonMenu"});c.add(h,"span",{"class":"mceMenuLine"});g=c.add(h,"table",{role:"presentation","class":"mceColorSplitMenu"});j=c.add(g,"tbody");k=0;e(b(q.colors,"array")?q.colors:q.colors.split(","),function(i){i=i.replace(/^#/,"");if(!k--){l=c.add(j,"tr");k=q.grid_width-1}g=c.add(l,"td");g=c.add(g,"a",{role:"option",href:"javascript:;",style:{backgroundColor:"#"+i},title:p.editor.getLang("colors."+i,i),"data-mce-color":"#"+i});if(p.editor.forcedHighContrastMode){g=c.add(g,"canvas",{width:16,height:16,"aria-hidden":"true"});if(g.getContext&&(f=g.getContext("2d"))){f.fillStyle="#"+i;f.fillRect(0,0,16,16)}else{c.remove(g)}}});if(q.more_colors_func){g=c.add(j,"tr");g=c.add(g,"td",{colspan:q.grid_width,"class":"mceMoreColors"});g=c.add(g,"a",{role:"option",id:p.id+"_more",href:"javascript:;",onclick:"return false;","class":"mceMoreColors"},q.more_colors_title);a.add(g,"click",function(i){q.more_colors_func.call(q.more_colors_scope||this);return a.cancel(i)})}c.addClass(h,"mceColorSplitMenu");new d.ui.KeyboardNavigation({root:p.id+"_menu",items:c.select("a",p.id+"_menu"),onCancel:function(){p.hideMenu();p.focus()}});a.add(p.id+"_menu","mousedown",function(i){return a.cancel(i)});a.add(p.id+"_menu","click",function(i){var m;i=c.getParent(i.target,"a",j);if(i&&i.nodeName.toLowerCase()=="a"&&(m=i.getAttribute("data-mce-color"))){p.setColor(m)}return a.cancel(i)});return o},setColor:function(f){this.displayColor(f);this.hideMenu();this.settings.onselect(f)},displayColor:function(g){var f=this;c.setStyle(f.id+"_preview","backgroundColor",g);f.value=g},postRender:function(){var f=this,g=f.id;f.parent();c.add(g+"_action","div",{id:g+"_preview","class":"mceColorPreview"});c.setStyle(f.id+"_preview","backgroundColor",f.value)},destroy:function(){this.parent();a.clear(this.id+"_menu");a.clear(this.id+"_more");c.remove(this.id+"_menu")}})})(tinymce);(function(b){var d=b.DOM,c=b.each,a=b.dom.Event;b.create("tinymce.ui.ToolbarGroup:tinymce.ui.Container",{renderHTML:function(){var f=this,i=[],e=f.controls,j=b.each,g=f.settings;i.push('<div id="'+f.id+'" role="group" aria-labelledby="'+f.id+'_voice">');i.push("<span role='application'>");i.push('<span id="'+f.id+'_voice" class="mceVoiceLabel" style="display:none;">'+d.encode(g.name)+"</span>");j(e,function(h){i.push(h.renderHTML())});i.push("</span>");i.push("</div>");return i.join("")},focus:function(){this.keyNav.focus()},postRender:function(){var f=this,e=[];c(f.controls,function(g){c(g.controls,function(h){if(h.id){e.push(h)}})});f.keyNav=new b.ui.KeyboardNavigation({root:f.id,items:e,onCancel:function(){f.editor.focus()},excludeFromTabOrder:!f.settings.tab_focus_toolbar})},destroy:function(){var e=this;e.parent();e.keyNav.destroy();a.clear(e.id)}})})(tinymce);(function(a){var c=a.DOM,b=a.each;a.create("tinymce.ui.Toolbar:tinymce.ui.Container",{renderHTML:function(){var m=this,f="",j,k,n=m.settings,e,d,g,l;l=m.controls;for(e=0;e<l.length;e++){k=l[e];d=l[e-1];g=l[e+1];if(e===0){j="mceToolbarStart";if(k.Button){j+=" mceToolbarStartButton"}else{if(k.SplitButton){j+=" mceToolbarStartSplitButton"}else{if(k.ListBox){j+=" mceToolbarStartListBox"}}}f+=c.createHTML("td",{"class":j},c.createHTML("span",null,"<!-- IE -->"))}if(d&&k.ListBox){if(d.Button||d.SplitButton){f+=c.createHTML("td",{"class":"mceToolbarEnd"},c.createHTML("span",null,"<!-- IE -->"))}}if(c.stdMode){f+='<td style="position: relative">'+k.renderHTML()+"</td>"}else{f+="<td>"+k.renderHTML()+"</td>"}if(g&&k.ListBox){if(g.Button||g.SplitButton){f+=c.createHTML("td",{"class":"mceToolbarStart"},c.createHTML("span",null,"<!-- IE -->"))}}}j="mceToolbarEnd";if(k.Button){j+=" mceToolbarEndButton"}else{if(k.SplitButton){j+=" mceToolbarEndSplitButton"}else{if(k.ListBox){j+=" mceToolbarEndListBox"}}}f+=c.createHTML("td",{"class":j},c.createHTML("span",null,"<!-- IE -->"));return c.createHTML("table",{id:m.id,"class":"mceToolbar"+(n["class"]?" "+n["class"]:""),cellpadding:"0",cellspacing:"0",align:m.settings.align||"",role:"presentation",tabindex:"-1"},"<tbody><tr>"+f+"</tr></tbody>")}})})(tinymce);(function(b){var a=b.util.Dispatcher,c=b.each;b.create("tinymce.AddOnManager",{AddOnManager:function(){var d=this;d.items=[];d.urls={};d.lookup={};d.onAdd=new a(d)},get:function(d){return this.lookup[d]},requireLangPack:function(e){var d=b.settings;if(d&&d.language&&d.language_load!==false){b.ScriptLoader.add(this.urls[e]+"/langs/"+d.language+".js")}},add:function(e,d){this.items.push(d);this.lookup[e]=d;this.onAdd.dispatch(this,e,d);return d},load:function(h,e,d,g){var f=this;if(f.urls[h]){return}if(e.indexOf("/")!=0&&e.indexOf("://")==-1){e=b.baseURL+"/"+e}f.urls[h]=e.substring(0,e.lastIndexOf("/"));if(!f.lookup[h]){b.ScriptLoader.add(e,d,g)}}});b.PluginManager=new b.AddOnManager();b.ThemeManager=new b.AddOnManager()}(tinymce));(function(j){var g=j.each,d=j.extend,k=j.DOM,i=j.dom.Event,f=j.ThemeManager,b=j.PluginManager,e=j.explode,h=j.util.Dispatcher,a,c=0;j.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(j.documentBaseURL)){j.documentBaseURL+="/"}j.baseURL=new j.util.URI(j.documentBaseURL).toAbsolute(j.baseURL);j.baseURI=new j.util.URI(j.baseURL);j.onBeforeUnload=new h(j);i.add(window,"beforeunload",function(l){j.onBeforeUnload.dispatch(j,l)});j.onAddEditor=new h(j);j.onRemoveEditor=new h(j);j.EditorManager=d(j,{editors:[],i18n:{},activeEditor:null,init:function(q){var n=this,p,l=j.ScriptLoader,u,o=[],m;function r(x,y,t){var v=x[y];if(!v){return}if(j.is(v,"string")){t=v.replace(/\.\w+$/,"");t=t?j.resolve(t):0;v=j.resolve(v)}return v.apply(t||this,Array.prototype.slice.call(arguments,2))}q=d({theme:"simple",language:"en"},q);n.settings=q;i.add(document,"init",function(){var s,v;r(q,"onpageload");switch(q.mode){case"exact":s=q.elements||"";if(s.length>0){g(e(s),function(x){if(k.get(x)){m=new j.Editor(x,q);o.push(m);m.render(1)}else{g(document.forms,function(y){g(y.elements,function(z){if(z.name===x){x="mce_editor_"+c++;k.setAttrib(z,"id",x);m=new j.Editor(x,q);o.push(m);m.render(1)}})})}})}break;case"textareas":case"specific_textareas":function t(y,x){return x.constructor===RegExp?x.test(y.className):k.hasClass(y,x)}g(k.select("textarea"),function(x){if(q.editor_deselector&&t(x,q.editor_deselector)){return}if(!q.editor_selector||t(x,q.editor_selector)){u=k.get(x.name);if(!x.id&&!u){x.id=x.name}if(!x.id||n.get(x.id)){x.id=k.uniqueId()}m=new j.Editor(x.id,q);o.push(m);m.render(1)}});break}if(q.oninit){s=v=0;g(o,function(x){v++;if(!x.initialized){x.onInit.add(function(){s++;if(s==v){r(q,"oninit")}})}else{s++}if(s==v){r(q,"oninit")}})}})},get:function(l){if(l===a){return this.editors}return this.editors[l]},getInstanceById:function(l){return this.get(l)},add:function(m){var l=this,n=l.editors;n[m.id]=m;n.push(m);l._setActive(m);l.onAddEditor.dispatch(l,m);if(j.adapter){j.adapter.patchEditor(m)}return m},remove:function(n){var m=this,l,o=m.editors;if(!o[n.id]){return null}delete o[n.id];for(l=0;l<o.length;l++){if(o[l]==n){o.splice(l,1);break}}if(m.activeEditor==n){m._setActive(o[0])}n.destroy();m.onRemoveEditor.dispatch(m,n);return n},execCommand:function(r,p,o){var q=this,n=q.get(o),l;switch(r){case"mceFocus":n.focus();return true;case"mceAddEditor":case"mceAddControl":if(!q.get(o)){new j.Editor(o,q.settings).render()}return true;case"mceAddFrameControl":l=o.window;l.tinyMCE=tinyMCE;l.tinymce=j;j.DOM.doc=l.document;j.DOM.win=l;n=new j.Editor(o.element_id,o);n.render();if(j.isIE){function m(){n.destroy();l.detachEvent("onunload",m);l=l.tinyMCE=l.tinymce=null}l.attachEvent("onunload",m)}o.page_window=null;return true;case"mceRemoveEditor":case"mceRemoveControl":if(n){n.remove()}return true;case"mceToggleEditor":if(!n){q.execCommand("mceAddControl",0,o);return true}if(n.isHidden()){n.show()}else{n.hide()}return true}if(q.activeEditor){return q.activeEditor.execCommand(r,p,o)}return false},execInstanceCommand:function(p,o,n,m){var l=this.get(p);if(l){return l.execCommand(o,n,m)}return false},triggerSave:function(){g(this.editors,function(l){l.save()})},addI18n:function(n,q){var l,m=this.i18n;if(!j.is(n,"string")){g(n,function(r,p){g(r,function(t,s){g(t,function(v,u){if(s==="common"){m[p+"."+u]=v}else{m[p+"."+s+"."+u]=v}})})})}else{g(q,function(r,p){m[n+"."+p]=r})}},_setActive:function(l){this.selectedInstance=this.activeEditor=l}})})(tinymce);(function(m){var n=m.DOM,j=m.dom.Event,f=m.extend,k=m.util.Dispatcher,i=m.each,a=m.isGecko,b=m.isIE,e=m.isWebKit,d=m.is,h=m.ThemeManager,c=m.PluginManager,o=m.inArray,l=m.grep,g=m.explode;m.create("tinymce.Editor",{Editor:function(r,q){var p=this;p.id=p.editorId=r;p.execCommands={};p.queryStateCommands={};p.queryValueCommands={};p.isNotDirty=false;p.plugins={};i(["onPreInit","onBeforeRenderUI","onPostRender","onInit","onRemove","onActivate","onDeactivate","onClick","onEvent","onMouseUp","onMouseDown","onDblClick","onKeyDown","onKeyUp","onKeyPress","onContextMenu","onSubmit","onReset","onPaste","onPreProcess","onPostProcess","onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent","onLoadContent","onSaveContent","onNodeChange","onChange","onBeforeExecCommand","onExecCommand","onUndo","onRedo","onVisualAid","onSetProgressState"],function(s){p[s]=new k(p)});p.settings=q=f({id:r,language:"en",docs_language:"en",theme:"simple",skin:"default",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:m.documentBaseURL,add_form_submit_trigger:1,submit_patch:1,add_unload_trigger:1,convert_urls:1,relative_urls:1,remove_script_host:1,table_inline_editing:0,object_resizing:1,cleanup:1,accessibility_focus:1,custom_shortcuts:1,custom_undo_redo_keyboard_shortcuts:1,custom_undo_redo_restore_selection:1,custom_undo_redo:1,doctype:m.isIE6?'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">':"<!DOCTYPE>",visual_table_class:"mceItemTable",visual:1,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",apply_source_formatting:1,directionality:"ltr",forced_root_block:"p",hidden_input:1,padd_empty_editor:1,render_ui:1,init_theme:1,force_p_newlines:1,indentation:"30px",keep_styles:1,fix_table_elements:1,inline_styles:1,convert_fonts_to_spans:true,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr",validate:true,entity_encoding:"named",url_converter:p.convertURL,url_converter_scope:p,ie7_compat:true},q);p.documentBaseURI=new m.util.URI(q.document_base_url||m.documentBaseURL,{base_uri:tinyMCE.baseURI});p.baseURI=m.baseURI;p.contentCSS=[];p.execCallback("setup",p)},render:function(r){var u=this,v=u.settings,x=u.id,p=m.ScriptLoader;if(!j.domLoaded){j.add(document,"init",function(){u.render()});return}tinyMCE.settings=v;if(!u.getElement()){return}if(m.isIDevice){return}if(!/TEXTAREA|INPUT/i.test(u.getElement().nodeName)&&v.hidden_input&&n.getParent(x,"form")){n.insertAfter(n.create("input",{type:"hidden",name:x}),x)}if(m.WindowManager){u.windowManager=new m.WindowManager(u)}if(v.encoding=="xml"){u.onGetContent.add(function(s,t){if(t.save){t.content=n.encode(t.content)}})}if(v.add_form_submit_trigger){u.onSubmit.addToTop(function(){if(u.initialized){u.save();u.isNotDirty=1}})}if(v.add_unload_trigger){u._beforeUnload=tinyMCE.onBeforeUnload.add(function(){if(u.initialized&&!u.destroyed&&!u.isHidden()){u.save({format:"raw",no_events:true})}})}m.addUnload(u.destroy,u);if(v.submit_patch){u.onBeforeRenderUI.add(function(){var s=u.getElement().form;if(!s){return}if(s._mceOldSubmit){return}if(!s.submit.nodeType&&!s.submit.length){u.formElement=s;s._mceOldSubmit=s.submit;s.submit=function(){m.triggerSave();u.isNotDirty=1;return u.formElement._mceOldSubmit(u.formElement)}}s=null})}function q(){if(v.language&&v.language_load!==false){p.add(m.baseURL+"/langs/"+v.language+".js")}if(v.theme&&v.theme.charAt(0)!="-"&&!h.urls[v.theme]){h.load(v.theme,"themes/"+v.theme+"/editor_template"+m.suffix+".js")}i(g(v.plugins),function(s){if(s&&s.charAt(0)!="-"&&!c.urls[s]){if(s=="safari"){return}c.load(s,"plugins/"+s+"/editor_plugin"+m.suffix+".js")}});p.loadQueue(function(){if(!u.removed){u.init()}})}q()},init:function(){var r,F=this,G=F.settings,C,z,B=F.getElement(),q,p,D,x,A,E,y;m.add(F);G.aria_label=G.aria_label||n.getAttrib(B,"aria-label",F.getLang("aria.rich_text_area"));if(G.theme){G.theme=G.theme.replace(/-/,"");q=h.get(G.theme);F.theme=new q();if(F.theme.init&&G.init_theme){F.theme.init(F,h.urls[G.theme]||m.documentBaseURL.replace(/\/$/,""))}}i(g(G.plugins.replace(/\-/g,"")),function(H){var I=c.get(H),t=c.urls[H]||m.documentBaseURL.replace(/\/$/,""),s;if(I){s=new I(F,t);F.plugins[H]=s;if(s.init){s.init(F,t)}}});if(G.popup_css!==false){if(G.popup_css){G.popup_css=F.documentBaseURI.toAbsolute(G.popup_css)}else{G.popup_css=F.baseURI.toAbsolute("themes/"+G.theme+"/skins/"+G.skin+"/dialog.css")}}if(G.popup_css_add){G.popup_css+=","+F.documentBaseURI.toAbsolute(G.popup_css_add)}F.controlManager=new m.ControlManager(F);if(G.custom_undo_redo){F.onExecCommand.add(function(t,H,u,I,s){if(H!="Undo"&&H!="Redo"&&H!="mceRepaint"&&(!s||!s.skip_undo)){F.undoManager.add()}})}F.onExecCommand.add(function(s,t){if(!/^(FontName|FontSize)$/.test(t)){F.nodeChanged()}});if(a){function v(s,t){if(!t||!t.initial){F.execCommand("mceRepaint")}}F.onUndo.add(v);F.onRedo.add(v);F.onSetContent.add(v)}F.onBeforeRenderUI.dispatch(F,F.controlManager);if(G.render_ui){C=G.width||B.style.width||B.offsetWidth;z=G.height||B.style.height||B.offsetHeight;F.orgDisplay=B.style.display;E=/^[0-9\.]+(|px)$/i;if(E.test(""+C)){C=Math.max(parseInt(C)+(q.deltaWidth||0),100)}if(E.test(""+z)){z=Math.max(parseInt(z)+(q.deltaHeight||0),100)}q=F.theme.renderUI({targetNode:B,width:C,height:z,deltaWidth:G.delta_width,deltaHeight:G.delta_height});F.editorContainer=q.editorContainer}if(document.domain&&location.hostname!=document.domain){m.relaxedDomain=document.domain}n.setStyles(q.sizeContainer||q.editorContainer,{width:C,height:z});if(G.content_css){m.each(g(G.content_css),function(s){F.contentCSS.push(F.documentBaseURI.toAbsolute(s))})}z=(q.iframeHeight||z)+(typeof(z)=="number"?(q.deltaHeight||0):"");if(z<100){z=100}F.iframeHTML=G.doctype+'<html><head xmlns="http://www.w3.org/1999/xhtml">';if(G.document_base_url!=m.documentBaseURL){F.iframeHTML+='<base href="'+F.documentBaseURI.getURI()+'" />'}if(G.ie7_compat){F.iframeHTML+='<meta http-equiv="X-UA-Compatible" content="IE=7" />'}else{F.iframeHTML+='<meta http-equiv="X-UA-Compatible" content="IE=edge" />'}F.iframeHTML+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';if(!a||!/Firefox\/2/.test(navigator.userAgent)){for(y=0;y<F.contentCSS.length;y++){F.iframeHTML+='<link type="text/css" rel="stylesheet" href="'+F.contentCSS[y]+'" />'}F.contentCSS=[]}x=G.body_id||"tinymce";if(x.indexOf("=")!=-1){x=F.getParam("body_id","","hash");x=x[F.id]||x}A=G.body_class||"";if(A.indexOf("=")!=-1){A=F.getParam("body_class","","hash");A=A[F.id]||""}F.iframeHTML+='</head><body id="'+x+'" class="mceContentBody '+A+'"></body></html>';if(m.relaxedDomain&&(b||(m.isOpera&&parseFloat(opera.version())<11))){D='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinyMCE.get("'+F.id+'");document.write(ed.iframeHTML);document.close();ed.setupIframe();})()'}r=n.add(q.iframeContainer,"iframe",{id:F.id+"_ifr",src:D||'javascript:""',frameBorder:"0",title:G.aria_label,style:{width:"100%",height:z}});F.contentAreaContainer=q.iframeContainer;n.get(q.editorContainer).style.display=F.orgDisplay;n.get(F.id).style.display="none";n.setAttrib(F.id,"aria-hidden",true);if(!m.relaxedDomain||!D){F.setupIframe()}B=r=q=null},setupIframe:function(){var r=this,x=r.settings,y=n.get(r.id),z=r.getDoc(),v,p;if(!b||!m.relaxedDomain){z.open();z.write(r.iframeHTML);z.close();if(m.relaxedDomain){z.domain=m.relaxedDomain}}if(!b){try{if(!x.readonly){z.designMode="On"}}catch(q){}}if(b){p=r.getBody();n.hide(p);if(!x.readonly){p.contentEditable=true}n.show(p)}r.schema=new m.html.Schema(x);r.dom=new m.dom.DOMUtils(r.getDoc(),{keep_values:true,url_converter:r.convertURL,url_converter_scope:r,hex_colors:x.force_hex_style_colors,class_filter:x.class_filter,update_styles:1,fix_ie_paragraphs:1,schema:r.schema});r.parser=new m.html.DomParser(x,r.schema);r.parser.addAttributeFilter("name",function(s,t){var B=s.length,D,A,C,E;while(B--){E=s[B];if(E.name==="a"&&E.firstChild){C=E.parent;D=E.lastChild;do{A=D.prev;C.insert(D,E);D=A}while(D)}}});r.parser.addAttributeFilter("src,href,style",function(s,t){var A=s.length,B,D=r.dom,C;while(A--){B=s[A];C=B.attr(t);if(t==="style"){B.attr("data-mce-style",D.serializeStyle(D.parseStyle(C),B.name))}else{B.attr("data-mce-"+t,r.convertURL(C,t,B.name))}}});r.parser.addNodeFilter("script",function(s,t){var A=s.length;while(A--){s[A].attr("type","mce-text/javascript")}});r.parser.addNodeFilter("#cdata",function(s,t){var A=s.length,B;while(A--){B=s[A];B.type=8;B.name="#comment";B.value="[CDATA["+B.value+"]]"}});r.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(t,A){var B=t.length,C,s=r.schema.getNonEmptyElements();while(B--){C=t[B];if(C.isEmpty(s)){C.empty().append(new m.html.Node("br",1)).shortEnded=true}}});r.serializer=new m.dom.Serializer(x,r.dom,r.schema);r.selection=new m.dom.Selection(r.dom,r.getWin(),r.serializer);r.formatter=new m.Formatter(this);r.formatter.register({alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table",collapsed:false,styles:{"float":"left"}}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img",collapsed:false,styles:{display:"block",marginLeft:"auto",marginRight:"auto"}},{selector:"table",collapsed:false,styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table",collapsed:false,styles:{"float":"right"}}],alignfull:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"justify"}}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:true},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:true},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},wrap_links:false},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},wrap_links:false},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},removeformat:[{selector:"b,strong,em,i,font,u,strike",remove:"all",split:true,expand:false,block_expand:true,deep:true},{selector:"span",attributes:["style","class"],remove:"empty",split:true,expand:false,deep:true},{selector:"*",attributes:["style","class"],split:false,expand:false,deep:true}]});i("p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp".split(/\s/),function(s){r.formatter.register(s,{block:s,remove:"all"})});r.formatter.register(r.settings.formats);r.undoManager=new m.UndoManager(r);r.undoManager.onAdd.add(function(t,s){if(!s.initial){return r.onChange.dispatch(r,s,t)}});r.undoManager.onUndo.add(function(t,s){return r.onUndo.dispatch(r,s,t)});r.undoManager.onRedo.add(function(t,s){return r.onRedo.dispatch(r,s,t)});r.forceBlocks=new m.ForceBlocks(r,{forced_root_block:x.forced_root_block});r.editorCommands=new m.EditorCommands(r);r.serializer.onPreProcess.add(function(s,t){return r.onPreProcess.dispatch(r,t,s)});r.serializer.onPostProcess.add(function(s,t){return r.onPostProcess.dispatch(r,t,s)});r.onPreInit.dispatch(r);if(!x.gecko_spellcheck){r.getBody().spellcheck=0}if(!x.readonly){r._addEvents()}r.controlManager.onPostRender.dispatch(r,r.controlManager);r.onPostRender.dispatch(r);if(x.directionality){r.getBody().dir=x.directionality}if(x.nowrap){r.getBody().style.whiteSpace="nowrap"}if(x.handle_node_change_callback){r.onNodeChange.add(function(t,s,A){r.execCallback("handle_node_change_callback",r.id,A,-1,-1,true,r.selection.isCollapsed())})}if(x.save_callback){r.onSaveContent.add(function(s,A){var t=r.execCallback("save_callback",r.id,A.content,r.getBody());if(t){A.content=t}})}if(x.onchange_callback){r.onChange.add(function(t,s){r.execCallback("onchange_callback",r,s)})}if(x.protect){r.onBeforeSetContent.add(function(s,t){if(x.protect){i(x.protect,function(A){t.content=t.content.replace(A,function(B){return"<!--mce:protected "+escape(B)+"-->"})})}})}if(x.convert_newlines_to_brs){r.onBeforeSetContent.add(function(s,t){if(t.initial){t.content=t.content.replace(/\r?\n/g,"<br />")}})}if(x.preformatted){r.onPostProcess.add(function(s,t){t.content=t.content.replace(/^\s*<pre.*?>/,"");t.content=t.content.replace(/<\/pre>\s*$/,"");if(t.set){t.content='<pre class="mceItemHidden">'+t.content+"</pre>"}})}if(x.verify_css_classes){r.serializer.attribValueFilter=function(C,A){var B,t;if(C=="class"){if(!r.classesRE){t=r.dom.getClasses();if(t.length>0){B="";i(t,function(s){B+=(B?"|":"")+s["class"]});r.classesRE=new RegExp("("+B+")","gi")}}return !r.classesRE||/(\bmceItem\w+\b|\bmceTemp\w+\b)/g.test(A)||r.classesRE.test(A)?A:""}return A}}if(x.cleanup_callback){r.onBeforeSetContent.add(function(s,t){t.content=r.execCallback("cleanup_callback","insert_to_editor",t.content,t)});r.onPreProcess.add(function(s,t){if(t.set){r.execCallback("cleanup_callback","insert_to_editor_dom",t.node,t)}if(t.get){r.execCallback("cleanup_callback","get_from_editor_dom",t.node,t)}});r.onPostProcess.add(function(s,t){if(t.set){t.content=r.execCallback("cleanup_callback","insert_to_editor",t.content,t)}if(t.get){t.content=r.execCallback("cleanup_callback","get_from_editor",t.content,t)}})}if(x.save_callback){r.onGetContent.add(function(s,t){if(t.save){t.content=r.execCallback("save_callback",r.id,t.content,r.getBody())}})}if(x.handle_event_callback){r.onEvent.add(function(s,t,A){if(r.execCallback("handle_event_callback",t,s,A)===false){j.cancel(t)}})}r.onSetContent.add(function(){r.addVisual(r.getBody())});if(x.padd_empty_editor){r.onPostProcess.add(function(s,t){t.content=t.content.replace(/^(<p[^>]*>( | |\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/,"")})}if(a){function u(s,t){i(s.dom.select("a"),function(B){var A=B.parentNode;if(s.dom.isBlock(A)&&A.lastChild===B){s.dom.add(A,"br",{"data-mce-bogus":1})}})}r.onExecCommand.add(function(s,t){if(t==="CreateLink"){u(s)}});r.onSetContent.add(r.selection.onSetContent.add(u));if(!x.readonly){try{z.designMode="Off";z.designMode="On"}catch(q){}}}setTimeout(function(){if(r.removed){return}r.load({initial:true,format:"html"});r.startContent=r.getContent({format:"raw"});r.undoManager.add();r.initialized=true;r.onInit.dispatch(r);r.execCallback("setupcontent_callback",r.id,r.getBody(),r.getDoc());r.execCallback("init_instance_callback",r);r.focus(true);r.nodeChanged({initial:1});i(r.contentCSS,function(s){r.dom.loadCSS(s)});if(x.auto_focus){setTimeout(function(){var s=m.get(x.auto_focus);s.selection.select(s.getBody(),1);s.selection.collapse(1);s.getWin().focus()},100)}},1);y=null},focus:function(s){var x,q=this,v=q.settings.content_editable,r,p,u=q.getDoc();if(!s){r=q.selection.getRng();if(r.item){p=r.item(0)}if(!v){q.getWin().focus()}if(p&&p.ownerDocument==u){r=u.body.createControlRange();r.addElement(p);r.select()}}if(m.activeEditor!=q){if((x=m.activeEditor)!=null){x.onDeactivate.dispatch(x,q)}q.onActivate.dispatch(q,x)}m._setActive(q)},execCallback:function(u){var p=this,r=p.settings[u],q;if(!r){return}if(p.callbackLookup&&(q=p.callbackLookup[u])){r=q.func;q=q.scope}if(d(r,"string")){q=r.replace(/\.\w+$/,"");q=q?m.resolve(q):0;r=m.resolve(r);p.callbackLookup=p.callbackLookup||{};p.callbackLookup[u]={func:r,scope:q}}return r.apply(q||p,Array.prototype.slice.call(arguments,1))},translate:function(p){var r=this.settings.language||"en",q=m.i18n;if(!p){return""}return q[r+"."+p]||p.replace(/{\#([^}]+)\}/g,function(t,s){return q[r+"."+s]||"{#"+s+"}"})},getLang:function(q,p){return m.i18n[(this.settings.language||"en")+"."+q]||(d(p)?p:"{#"+q+"}")},getParam:function(u,r,p){var s=m.trim,q=d(this.settings[u])?this.settings[u]:r,t;if(p==="hash"){t={};if(d(q,"string")){i(q.indexOf("=")>0?q.split(/[;,](?![^=;,]*(?:[;,]|$))/):q.split(","),function(x){x=x.split("=");if(x.length>1){t[s(x[0])]=s(x[1])}else{t[s(x[0])]=s(x)}})}else{t=q}return t}return q},nodeChanged:function(r){var p=this,q=p.selection,u=(b?q.getNode():q.getStart())||p.getBody();if(p.initialized){r=r||{};u=b&&u.ownerDocument!=p.getDoc()?p.getBody():u;r.parents=[];p.dom.getParent(u,function(s){if(s.nodeName=="BODY"){return true}r.parents.push(s)});p.onNodeChange.dispatch(p,r?r.controlManager||p.controlManager:p.controlManager,u,q.isCollapsed(),r)}},addButton:function(r,q){var p=this;p.buttons=p.buttons||{};p.buttons[r]=q},addCommand:function(p,r,q){this.execCommands[p]={func:r,scope:q||this}},addQueryStateHandler:function(p,r,q){this.queryStateCommands[p]={func:r,scope:q||this}},addQueryValueHandler:function(p,r,q){this.queryValueCommands[p]={func:r,scope:q||this}},addShortcut:function(r,u,p,s){var q=this,v;if(!q.settings.custom_shortcuts){return false}q.shortcuts=q.shortcuts||{};if(d(p,"string")){v=p;p=function(){q.execCommand(v,false,null)}}if(d(p,"object")){v=p;p=function(){q.execCommand(v[0],v[1],v[2])}}i(g(r),function(t){var x={func:p,scope:s||this,desc:u,alt:false,ctrl:false,shift:false};i(g(t,"+"),function(y){switch(y){case"alt":case"ctrl":case"shift":x[y]=true;break;default:x.charCode=y.charCodeAt(0);x.keyCode=y.toUpperCase().charCodeAt(0)}});q.shortcuts[(x.ctrl?"ctrl":"")+","+(x.alt?"alt":"")+","+(x.shift?"shift":"")+","+x.keyCode]=x});return true},execCommand:function(x,v,z,p){var r=this,u=0,y,q;if(!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(x)&&(!p||!p.skip_focus)){r.focus()}y={};r.onBeforeExecCommand.dispatch(r,x,v,z,y);if(y.terminate){return false}if(r.execCallback("execcommand_callback",r.id,r.selection.getNode(),x,v,z)){r.onExecCommand.dispatch(r,x,v,z,p);return true}if(y=r.execCommands[x]){q=y.func.call(y.scope,v,z);if(q!==true){r.onExecCommand.dispatch(r,x,v,z,p);return q}}i(r.plugins,function(s){if(s.execCommand&&s.execCommand(x,v,z)){r.onExecCommand.dispatch(r,x,v,z,p);u=1;return false}});if(u){return true}if(r.theme&&r.theme.execCommand&&r.theme.execCommand(x,v,z)){r.onExecCommand.dispatch(r,x,v,z,p);return true}if(r.editorCommands.execCommand(x,v,z)){r.onExecCommand.dispatch(r,x,v,z,p);return true}r.getDoc().execCommand(x,v,z);r.onExecCommand.dispatch(r,x,v,z,p)},queryCommandState:function(u){var q=this,v,r;if(q._isHidden()){return}if(v=q.queryStateCommands[u]){r=v.func.call(v.scope);if(r!==true){return r}}v=q.editorCommands.queryCommandState(u);if(v!==-1){return v}try{return this.getDoc().queryCommandState(u)}catch(p){}},queryCommandValue:function(v){var q=this,u,r;if(q._isHidden()){return}if(u=q.queryValueCommands[v]){r=u.func.call(u.scope);if(r!==true){return r}}u=q.editorCommands.queryCommandValue(v);if(d(u)){return u}try{return this.getDoc().queryCommandValue(v)}catch(p){}},show:function(){var p=this;n.show(p.getContainer());n.hide(p.id);p.load()},hide:function(){var p=this,q=p.getDoc();if(b&&q){q.execCommand("SelectAll")}p.save();n.hide(p.getContainer());n.setStyle(p.id,"display",p.orgDisplay)},isHidden:function(){return !n.isHidden(this.id)},setProgressState:function(p,q,r){this.onSetProgressState.dispatch(this,p,q,r);return p},load:function(s){var p=this,r=p.getElement(),q;if(r){s=s||{};s.load=true;q=p.setContent(d(r.value)?r.value:r.innerHTML,s);s.element=r;if(!s.no_events){p.onLoadContent.dispatch(p,s)}s.element=r=null;return q}},save:function(u){var p=this,s=p.getElement(),q,r;if(!s||!p.initialized){return}u=u||{};u.save=true;if(!u.no_events){p.undoManager.typing=false;p.undoManager.add()}u.element=s;q=u.content=p.getContent(u);if(!u.no_events){p.onSaveContent.dispatch(p,u)}q=u.content;if(!/TEXTAREA|INPUT/i.test(s.nodeName)){s.innerHTML=q;if(r=n.getParent(p.id,"form")){i(r.elements,function(t){if(t.name==p.id){t.value=q;return false}})}}else{s.value=q}u.element=s=null;return q},setContent:function(t,s){var r=this,q,p=r.getBody();s=s||{};s.format=s.format||"html";s.set=true;s.content=t;if(!s.no_events){r.onBeforeSetContent.dispatch(r,s)}if(!m.isIE&&(t.length===0||/^\s+$/.test(t))){p.innerHTML='<br data-mce-bogus="1" />';return}if(s.format!=="raw"){s.content=new m.html.Serializer({},r.schema).serialize(r.parser.parse(s.content))}p.innerHTML=m.trim(s.content);if(!s.no_events){r.onSetContent.dispatch(r,s)}return s.content},getContent:function(q){var p=this,r;q=q||{};q.format=q.format||"html";q.get=true;if(!q.no_events){p.onBeforeGetContent.dispatch(p,q)}if(q.format=="raw"){r=p.getBody().innerHTML}else{r=p.serializer.serialize(p.getBody(),q)}q.content=m.trim(r);if(!q.no_events){p.onGetContent.dispatch(p,q)}return q.content},isDirty:function(){var p=this;return m.trim(p.startContent)!=m.trim(p.getContent({format:"raw",no_events:1}))&&!p.isNotDirty},getContainer:function(){var p=this;if(!p.container){p.container=n.get(p.editorContainer||p.id+"_parent")}return p.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return n.get(this.settings.content_element||this.id)},getWin:function(){var p=this,q;if(!p.contentWindow){q=n.get(p.id+"_ifr");if(q){p.contentWindow=q.contentWindow}}return p.contentWindow},getDoc:function(){var q=this,p;if(!q.contentDocument){p=q.getWin();if(p){q.contentDocument=p.document}}return q.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(p,x,v){var q=this,r=q.settings;if(r.urlconverter_callback){return q.execCallback("urlconverter_callback",p,v,true,x)}if(!r.convert_urls||(v&&v.nodeName=="LINK")||p.indexOf("file:")===0){return p}if(r.relative_urls){return q.documentBaseURI.toRelative(p)}p=q.documentBaseURI.toAbsolute(p,r.remove_script_host);return p},addVisual:function(r){var p=this,q=p.settings;r=r||p.getBody();if(!d(p.hasVisual)){p.hasVisual=q.visual}i(p.dom.select("table,a",r),function(t){var s;switch(t.nodeName){case"TABLE":s=p.dom.getAttrib(t,"border");if(!s||s=="0"){if(p.hasVisual){p.dom.addClass(t,q.visual_table_class)}else{p.dom.removeClass(t,q.visual_table_class)}}return;case"A":s=p.dom.getAttrib(t,"name");if(s){if(p.hasVisual){p.dom.addClass(t,"mceItemAnchor")}else{p.dom.removeClass(t,"mceItemAnchor")}}return}});p.onVisualAid.dispatch(p,r,p.hasVisual)},remove:function(){var p=this,q=p.getContainer();p.removed=1;p.hide();p.execCallback("remove_instance_callback",p);p.onRemove.dispatch(p);p.onExecCommand.listeners=[];m.remove(p);n.remove(q)},destroy:function(q){var p=this;if(p.destroyed){return}if(!q){m.removeUnload(p.destroy);tinyMCE.onBeforeUnload.remove(p._beforeUnload);if(p.theme&&p.theme.destroy){p.theme.destroy()}p.controlManager.destroy();p.selection.destroy();p.dom.destroy();if(!p.settings.content_editable){j.clear(p.getWin());j.clear(p.getDoc())}j.clear(p.getBody());j.clear(p.formElement)}if(p.formElement){p.formElement.submit=p.formElement._mceOldSubmit;p.formElement._mceOldSubmit=null}p.contentAreaContainer=p.formElement=p.container=p.settings.content_element=p.bodyElement=p.contentDocument=p.contentWindow=null;if(p.selection){p.selection=p.selection.win=p.selection.dom=p.selection.dom.doc=null}p.destroyed=1},_addEvents:function(){var B=this,r,C=B.settings,q=B.dom,x={mouseup:"onMouseUp",mousedown:"onMouseDown",click:"onClick",keyup:"onKeyUp",keydown:"onKeyDown",keypress:"onKeyPress",submit:"onSubmit",reset:"onReset",contextmenu:"onContextMenu",dblclick:"onDblClick",paste:"onPaste"};function p(t,D){var s=t.type;if(B.removed){return}if(B.onEvent.dispatch(B,t,D)!==false){B[x[t.fakeType||t.type]].dispatch(B,t,D)}}i(x,function(t,s){switch(s){case"contextmenu":q.bind(B.getDoc(),s,p);break;case"paste":q.bind(B.getBody(),s,function(D){p(D)});break;case"submit":case"reset":q.bind(B.getElement().form||n.getParent(B.id,"form"),s,p);break;default:q.bind(C.content_editable?B.getBody():B.getDoc(),s,p)}});q.bind(C.content_editable?B.getBody():(a?B.getDoc():B.getWin()),"focus",function(s){B.focus(true)});if(m.isGecko){q.bind(B.getDoc(),"DOMNodeInserted",function(t){var s;t=t.target;if(t.nodeType===1&&t.nodeName==="IMG"&&(s=t.getAttribute("data-mce-src"))){t.src=B.documentBaseURI.toAbsolute(s)}})}if(a){function u(){var E=this,G=E.getDoc(),F=E.settings;if(a&&!F.readonly){if(E._isHidden()){try{if(!F.content_editable){G.designMode="On"}}catch(D){}}try{G.execCommand("styleWithCSS",0,false)}catch(D){if(!E._isHidden()){try{G.execCommand("useCSS",0,true)}catch(D){}}}if(!F.table_inline_editing){try{G.execCommand("enableInlineTableEditing",false,false)}catch(D){}}if(!F.object_resizing){try{G.execCommand("enableObjectResizing",false,false)}catch(D){}}}}B.onBeforeExecCommand.add(u);B.onMouseDown.add(u)}if(m.isWebKit){B.onClick.add(function(s,t){t=t.target;if(t.nodeName=="IMG"||(t.nodeName=="A"&&q.hasClass(t,"mceItemAnchor"))){B.selection.getSel().setBaseAndExtent(t,0,t,1);B.nodeChanged()}})}B.onMouseUp.add(B.nodeChanged);B.onKeyUp.add(function(s,t){var D=t.keyCode;if((D>=33&&D<=36)||(D>=37&&D<=40)||D==13||D==45||D==46||D==8||(m.isMac&&(D==91||D==93))||t.ctrlKey){B.nodeChanged()}});B.onReset.add(function(){B.setContent(B.startContent,{format:"raw"})});if(C.custom_shortcuts){if(C.custom_undo_redo_keyboard_shortcuts){B.addShortcut("ctrl+z",B.getLang("undo_desc"),"Undo");B.addShortcut("ctrl+y",B.getLang("redo_desc"),"Redo")}B.addShortcut("ctrl+b",B.getLang("bold_desc"),"Bold");B.addShortcut("ctrl+i",B.getLang("italic_desc"),"Italic");B.addShortcut("ctrl+u",B.getLang("underline_desc"),"Underline");for(r=1;r<=6;r++){B.addShortcut("ctrl+"+r,"",["FormatBlock",false,"h"+r])}B.addShortcut("ctrl+7","",["FormatBlock",false,"<p>"]);B.addShortcut("ctrl+8","",["FormatBlock",false,"<div>"]);B.addShortcut("ctrl+9","",["FormatBlock",false,"<address>"]);function v(t){var s=null;if(!t.altKey&&!t.ctrlKey&&!t.metaKey){return s}i(B.shortcuts,function(D){if(m.isMac&&D.ctrl!=t.metaKey){return}else{if(!m.isMac&&D.ctrl!=t.ctrlKey){return}}if(D.alt!=t.altKey){return}if(D.shift!=t.shiftKey){return}if(t.keyCode==D.keyCode||(t.charCode&&t.charCode==D.charCode)){s=D;return false}});return s}B.onKeyUp.add(function(s,t){var D=v(t);if(D){return j.cancel(t)}});B.onKeyPress.add(function(s,t){var D=v(t);if(D){return j.cancel(t)}});B.onKeyDown.add(function(s,t){var D=v(t);if(D){D.func.call(D.scope);return j.cancel(t)}})}if(m.isIE){q.bind(B.getDoc(),"controlselect",function(D){var t=B.resizeInfo,s;D=D.target;if(D.nodeName!=="IMG"){return}if(t){q.unbind(t.node,t.ev,t.cb)}if(!q.hasClass(D,"mceItemNoResize")){ev="resizeend";s=q.bind(D,ev,function(F){var E;F=F.target;if(E=q.getStyle(F,"width")){q.setAttrib(F,"width",E.replace(/[^0-9%]+/g,""));q.setStyle(F,"width","")}if(E=q.getStyle(F,"height")){q.setAttrib(F,"height",E.replace(/[^0-9%]+/g,""));q.setStyle(F,"height","")}})}else{ev="resizestart";s=q.bind(D,"resizestart",j.cancel,j)}t=B.resizeInfo={node:D,ev:ev,cb:s}});B.onKeyDown.add(function(s,D){var t;switch(D.keyCode){case 8:t=B.getDoc().selection;if(t.createRange&&t.createRange().item){s.dom.remove(t.createRange().item(0));return j.cancel(D)}}})}if(m.isOpera){B.onClick.add(function(s,t){j.prevent(t)})}if(C.custom_undo_redo){function y(){B.undoManager.typing=false;B.undoManager.add()}q.bind(B.getDoc(),"focusout",function(s){if(!B.removed&&B.undoManager.typing){y()}});B.onKeyUp.add(function(t,F){var s,E,D;if(b&&F.keyCode==8){s=B.selection.getRng();if(s.parentElement){E=s.parentElement();D=B.selection.getBookmark();E.innerHTML=E.innerHTML;B.selection.moveToBookmark(D)}}if((F.keyCode>=33&&F.keyCode<=36)||(F.keyCode>=37&&F.keyCode<=40)||F.keyCode==13||F.keyCode==45||F.ctrlKey){y()}});B.onKeyDown.add(function(t,G){var s,F,E;if(b&&G.keyCode==46){s=B.selection.getRng();if(s.parentElement){F=s.parentElement();if(G.ctrlKey){s.moveEnd("word",1);s.select()}B.selection.getSel().clear();if(s.parentElement()==F){E=B.selection.getBookmark();try{F.innerHTML=F.innerHTML}catch(D){}B.selection.moveToBookmark(E)}G.preventDefault();return}}if((G.keyCode>=33&&G.keyCode<=36)||(G.keyCode>=37&&G.keyCode<=40)||G.keyCode==13||G.keyCode==45){if(B.undoManager.typing){y()}return}if(!B.undoManager.typing){B.undoManager.add();B.undoManager.typing=true}});B.onMouseDown.add(function(){if(B.undoManager.typing){y()}})}if(m.isGecko){function A(){B.undoManager.typing=false;B.undoManager.add();var s=B.dom.getAttribs(B.selection.getStart().cloneNode(false));return function(){var t=B.selection.getStart();B.dom.removeAllAttribs(t);i(s,function(D){t.setAttributeNode(D.cloneNode(true))});B.undoManager.typing=false;B.undoManager.add()}}function z(){var t=B.selection;return !t.isCollapsed()&&t.getStart()!=t.getEnd()}B.onKeyPress.add(function(s,D){if((D.keyCode==8||D.keyCode==46)&&z()){var t=A();B.getDoc().execCommand("delete",false,null);t();return j.cancel(D)}});B.dom.bind(B.getDoc(),"cut",function(t){if(z()){var s=A();B.onKeyUp.addToTop(j.cancel,j);setTimeout(function(){s();B.onKeyUp.remove(j.cancel,j)},0)}})}},_isHidden:function(){var p;if(!a){return 0}p=this.selection.getSel();return(!p||!p.rangeCount||p.rangeCount==0)}})})(tinymce);(function(c){var d=c.each,e,a=true,b=false;c.EditorCommands=function(n){var l=n.dom,p=n.selection,j={state:{},exec:{},value:{}},k=n.settings,o;function q(y,x,v){var u;y=y.toLowerCase();if(u=j.exec[y]){u(y,x,v);return a}return b}function m(v){var u;v=v.toLowerCase();if(u=j.state[v]){return u(v)}return -1}function h(v){var u;v=v.toLowerCase();if(u=j.value[v]){return u(v)}return b}function t(u,v){v=v||"exec";d(u,function(y,x){d(x.toLowerCase().split(","),function(z){j[v][z]=y})})}c.extend(this,{execCommand:q,queryCommandState:m,queryCommandValue:h,addCommands:t});function f(x,v,u){if(v===e){v=b}if(u===e){u=null}return n.getDoc().execCommand(x,v,u)}function s(u){return n.formatter.match(u)}function r(u,v){n.formatter.toggle(u,v?{value:v}:e)}function i(u){o=p.getBookmark(u)}function g(){p.moveToBookmark(o)}t({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){n.undoManager.add()},"Cut,Copy,Paste":function(y){var x=n.getDoc(),u;try{f(y)}catch(v){u=a}if(u||!x.queryCommandSupported(y)){if(c.isGecko){n.windowManager.confirm(n.getLang("clipboard_msg"),function(z){if(z){open("http://www.mozilla.org/editor/midasdemo/securityprefs.html","_blank")}})}else{n.windowManager.alert(n.getLang("clipboard_no_support"))}}},unlink:function(u){if(p.isCollapsed()){p.select(p.getNode())}f(u);p.collapse(b)},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(u){var v=u.substring(7);d("left,center,right,full".split(","),function(x){if(v!=x){n.formatter.remove("align"+x)}});r("align"+v);q("mceRepaint")},"InsertUnorderedList,InsertOrderedList":function(x){var u,v;f(x);u=l.getParent(p.getNode(),"ol,ul");if(u){v=u.parentNode;if(/^(H[1-6]|P|ADDRESS|PRE)$/.test(v.nodeName)){i();l.split(v,u);g()}}},"Bold,Italic,Underline,Strikethrough":function(u){r(u)},"ForeColor,HiliteColor,FontName":function(x,v,u){r(x,u)},FontSize:function(y,x,v){var u,z;if(v>=1&&v<=7){z=c.explode(k.font_size_style_values);u=c.explode(k.font_size_classes);if(u){v=u[v-1]||v}else{v=z[v-1]||v}}r(y,v)},RemoveFormat:function(u){n.formatter.remove(u)},mceBlockQuote:function(u){r("blockquote")},FormatBlock:function(x,v,u){return r(u||"p")},mceCleanup:function(){var u=p.getBookmark();n.setContent(n.getContent({cleanup:a}),{cleanup:a});p.moveToBookmark(u)},mceRemoveNode:function(y,x,v){var u=v||p.getNode();if(u!=n.getBody()){i();n.dom.remove(u,a);g()}},mceSelectNodeDepth:function(y,x,v){var u=0;l.getParent(p.getNode(),function(z){if(z.nodeType==1&&u++==v){p.select(z);return b}},n.getBody())},mceSelectNode:function(x,v,u){p.select(u)},mceInsertContent:function(z,D,E){var C,u,x,F,y,u,A,G,B;function v(H,J){var I,K=new c.dom.TreeWalker(H,J);while((I=K.current())){if((I.nodeType==3&&c.trim(I.nodeValue).length)||I.nodeName=="BR"||I.nodeName=="IMG"){return I}K.prev()}}B={content:E,format:"html"};p.onBeforeSetContent.dispatch(p,B);E=B.content;if(E.indexOf("{$caret}")==-1){E+="{$caret}"}p.setContent('<span id="__mce">\uFEFF</span>',{no_events:false});l.setOuterHTML("__mce",E.replace(/\{\$caret\}/,'<span data-mce-type="bookmark" id="__mce">\uFEFF</span>'));C=l.select("#__mce")[0];x=l.getRoot();if(C.previousSibling&&l.isBlock(C.previousSibling)||C.parentNode==x){y=v(C.previousSibling,x);if(y){if(y.nodeName=="BR"){y.parentNode.insertBefore(C,y)}else{l.insertAfter(C,y)}}}while(C){if(C===x){l.setOuterHTML(F,new c.html.Serializer({},n.schema).serialize(new c.html.DomParser({remove_trailing_brs:true},n.schema).parse(l.getOuterHTML(F))));break}F=C;C=C.parentNode}C=l.select("#__mce")[0];if(C){y=v(C.previousSibling,x);l.remove(C);if(y){u=l.createRng();if(y.nodeType==3){u.setStart(y,y.length);u.setEnd(y,y.length)}else{if(y.nodeName=="BR"){u.setStartBefore(y);u.setEndBefore(y)}else{u.setStartAfter(y);u.setEndAfter(y)}}p.setRng(u);if(!c.isIE){y=l.create("span",null,"\u00a0");u.insertNode(y);A=l.getRect(y);G=l.getViewPort(n.getWin());if((A.y>G.y+G.h||A.y<G.y)||(A.x>G.x+G.w||A.x<G.x)){n.getBody().scrollLeft=A.x;n.getBody().scrollTop=A.y}l.remove(y)}}}p.onSetContent.dispatch(p,B);n.addVisual()},mceInsertRawHTML:function(x,v,u){p.setContent("tiny_mce_marker");n.setContent(n.getContent().replace(/tiny_mce_marker/g,function(){return u}))},mceSetContent:function(x,v,u){n.setContent(u)},"Indent,Outdent":function(y){var v,u,x;v=k.indentation;u=/[a-z%]+$/i.exec(v);v=parseInt(v);if(!m("InsertUnorderedList")&&!m("InsertOrderedList")){d(p.getSelectedBlocks(),function(z){if(y=="outdent"){x=Math.max(0,parseInt(z.style.paddingLeft||0)-v);l.setStyle(z,"paddingLeft",x?x+u:"")}else{l.setStyle(z,"paddingLeft",(parseInt(z.style.paddingLeft||0)+v)+u)}})}else{f(y)}},mceRepaint:function(){var v;if(c.isGecko){try{i(a);if(p.getSel()){p.getSel().selectAllChildren(n.getBody())}p.collapse(a);g()}catch(u){}}},mceToggleFormat:function(x,v,u){n.formatter.toggle(u)},InsertHorizontalRule:function(){p.setContent("<hr />")},mceToggleVisualAid:function(){n.hasVisual=!n.hasVisual;n.addVisual()},mceReplaceContent:function(x,v,u){n.execCommand("mceInsertContent",false,p.setContent(u.replace(/\{\$selection\}/g,p.getContent({format:"text"}))))},mceInsertLink:function(A,z,y){var x=l.getParent(p.getNode(),"a"),v,u;if(c.is(y,"string")){y={href:y}}y.href=y.href.replace(" ","%20");if(!x){if(c.isWebKit){v=l.getParent(p.getNode(),"img");if(v){u=v.style.cssFloat;v.style.cssFloat=null}}f("CreateLink",b,"javascript:mctmp(0);");if(u){v.style.cssFloat=u}d(l.select("a[href='javascript:mctmp(0);']"),function(B){l.setAttribs(B,y)})}else{if(y.href){l.setAttribs(x,y)}else{n.dom.remove(x,a)}}},selectAll:function(){var v=l.getRoot(),u=l.createRng();u.setStart(v,0);u.setEnd(v,v.childNodes.length);n.selection.setRng(u)}});t({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(u){return s("align"+u.substring(7))},"Bold,Italic,Underline,Strikethrough":function(u){return s(u)},mceBlockQuote:function(){return s("blockquote")},Outdent:function(){var u;if(k.inline_styles){if((u=l.getParent(p.getStart(),l.isBlock))&&parseInt(u.style.paddingLeft)>0){return a}if((u=l.getParent(p.getEnd(),l.isBlock))&&parseInt(u.style.paddingLeft)>0){return a}}return m("InsertUnorderedList")||m("InsertOrderedList")||(!k.inline_styles&&!!l.getParent(p.getNode(),"BLOCKQUOTE"))},"InsertUnorderedList,InsertOrderedList":function(u){return l.getParent(p.getNode(),u=="insertunorderedlist"?"UL":"OL")}},"state");t({"FontSize,FontName":function(x){var v=0,u;if(u=l.getParent(p.getNode(),"span")){if(x=="fontsize"){v=u.style.fontSize}else{v=u.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()}}return v}},"value");if(k.custom_undo_redo){t({Undo:function(){n.undoManager.undo()},Redo:function(){n.undoManager.redo()}})}}})(tinymce);(function(b){var a=b.util.Dispatcher;b.UndoManager=function(e){var c,d=0,g=[];function f(){return b.trim(e.getContent({format:"raw",no_events:1}))}return c={typing:false,onAdd:new a(c),onUndo:new a(c),onRedo:new a(c),add:function(l){var h,j=e.settings,k;l=l||{};l.content=f();k=g[d];if(k&&k.content==l.content){if(d>0||g.length==1){return null}}if(j.custom_undo_redo_levels){if(g.length>j.custom_undo_redo_levels){for(h=0;h<g.length-1;h++){g[h]=g[h+1]}g.length--;d=g.length}}l.bookmark=e.selection.getBookmark(2,true);if(d<g.length-1){g.length=d+1}g.push(l);d=g.length-1;c.onAdd.dispatch(c,l);e.isNotDirty=0;return l},undo:function(){var j,h;if(c.typing){c.add();c.typing=false}if(d>0){j=g[--d];e.setContent(j.content,{format:"raw"});e.selection.moveToBookmark(j.bookmark);c.onUndo.dispatch(c,j)}return j},redo:function(){var h;if(d<g.length-1){h=g[++d];e.setContent(h.content,{format:"raw"});e.selection.moveToBookmark(h.bookmark);c.onRedo.dispatch(c,h)}return h},clear:function(){g=[];d=0;c.typing=false},hasUndo:function(){return d>0||c.typing},hasRedo:function(){return d<g.length-1}}}})(tinymce);(function(m){var k=m.dom.Event,c=m.isIE,a=m.isGecko,b=m.isOpera,j=m.each,i=m.extend,d=true,h=false;function l(p){var q,o,n;do{if(/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(p.nodeName)){if(q){o=p.cloneNode(false);o.appendChild(q);q=o}else{q=n=p.cloneNode(false)}q.removeAttribute("id")}}while(p=p.parentNode);if(q){return{wrapper:q,inner:n}}}function g(o,p){var n=p.ownerDocument.createRange();n.setStart(o.endContainer,o.endOffset);n.setEndAfter(p);return n.cloneContents().textContent.length==0}function f(o){o=o.innerHTML;o=o.replace(/<(img|hr|table|input|select|textarea)[ \>]/gi,"-");o=o.replace(/<[^>]+>/g,"");return o.replace(/[ \u00a0\t\r\n]+/g,"")==""}function e(p,r,n){var o,q;if(f(n)){o=r.getParent(n,"ul,ol");if(!r.getParent(o.parentNode,"ul,ol")){r.split(o,n);q=r.create("p",0,'<br data-mce-bogus="1" />');r.replace(q,n);p.select(q,1)}return h}return d}m.create("tinymce.ForceBlocks",{ForceBlocks:function(n){var o=this,p=n.settings,q;o.editor=n;o.dom=n.dom;q=(p.forced_root_block||"p").toLowerCase();p.element=q.toUpperCase();n.onPreInit.add(o.setup,o);if(p.forced_root_block){n.onInit.add(o.forceRoots,o);n.onSetContent.add(o.forceRoots,o);n.onBeforeGetContent.add(o.forceRoots,o);n.onExecCommand.add(function(r,s){if(s=="mceInsertContent"){o.forceRoots();r.nodeChanged()}})}},setup:function(){var o=this,n=o.editor,q=n.settings,u=n.dom,p=n.selection;if(q.forced_root_block){n.onBeforeExecCommand.add(o.forceRoots,o);n.onKeyUp.add(o.forceRoots,o);n.onPreProcess.add(o.forceRoots,o)}if(q.force_br_newlines){if(c){n.onKeyPress.add(function(s,t){var v;if(t.keyCode==13&&p.getNode().nodeName!="LI"){p.setContent('<br id="__" /> ',{format:"raw"});v=u.get("__");v.removeAttribute("id");p.select(v);p.collapse();return k.cancel(t)}})}}if(q.force_p_newlines){if(!c){n.onKeyPress.add(function(s,t){if(t.keyCode==13&&!t.shiftKey&&!o.insertPara(t)){k.cancel(t)}})}else{m.addUnload(function(){o._previousFormats=0});n.onKeyPress.add(function(s,t){o._previousFormats=0;if(t.keyCode==13&&!t.shiftKey&&s.selection.isCollapsed()&&q.keep_styles){o._previousFormats=l(s.selection.getStart())}});n.onKeyUp.add(function(t,x){if(x.keyCode==13&&!x.shiftKey){var v=t.selection.getStart(),s=o._previousFormats;if(!v.hasChildNodes()&&s){v=u.getParent(v,u.isBlock);if(v&&v.nodeName!="LI"){v.innerHTML="";if(o._previousFormats){v.appendChild(s.wrapper);s.inner.innerHTML="\uFEFF"}else{v.innerHTML="\uFEFF"}p.select(v,1);p.collapse(true);t.getDoc().execCommand("Delete",false,null);o._previousFormats=0}}}})}if(a){n.onKeyDown.add(function(s,t){if((t.keyCode==8||t.keyCode==46)&&!t.shiftKey){o.backspaceDelete(t,t.keyCode==8)}})}}if(m.isWebKit){function r(t){var s=p.getRng(),v,z=u.create("div",null," "),y,x=u.getViewPort(t.getWin()).h;s.insertNode(v=u.create("br"));s.setStartAfter(v);s.setEndAfter(v);p.setRng(s);if(p.getSel().focusNode==v.previousSibling){p.select(u.insertAfter(u.doc.createTextNode("\u00a0"),v));p.collapse(d)}u.insertAfter(z,v);y=u.getPos(z).y;u.remove(z);if(y>x){t.getWin().scrollTo(0,y)}}n.onKeyPress.add(function(s,t){if(t.keyCode==13&&(t.shiftKey||(q.force_br_newlines&&!u.getParent(p.getNode(),"h1,h2,h3,h4,h5,h6,ol,ul")))){r(s);k.cancel(t)}})}if(c){if(q.element!="P"){n.onKeyPress.add(function(s,t){o.lastElm=p.getNode().nodeName});n.onKeyUp.add(function(t,v){var y,x=p.getNode(),s=t.getBody();if(s.childNodes.length===1&&x.nodeName=="P"){x=u.rename(x,q.element);p.select(x);p.collapse();t.nodeChanged()}else{if(v.keyCode==13&&!v.shiftKey&&o.lastElm!="P"){y=u.getParent(x,"p");if(y){u.rename(y,q.element);t.nodeChanged()}}}})}}},find:function(v,q,r){var p=this.editor,o=p.getDoc().createTreeWalker(v,4,null,h),u=-1;while(v=o.nextNode()){u++;if(q==0&&v==r){return u}if(q==1&&u==r){return v}}return -1},forceRoots:function(x,I){var z=this,x=z.editor,M=x.getBody(),J=x.getDoc(),P=x.selection,A=P.getSel(),B=P.getRng(),N=-2,v,G,o,p,K=-16777215;var L,q,O,F,C,u=M.childNodes,E,D,y;for(E=u.length-1;E>=0;E--){L=u[E];if(L.nodeType===1&&L.getAttribute("data-mce-type")){q=null;continue}if(L.nodeType===3||(!z.dom.isBlock(L)&&L.nodeType!==8&&!/^(script|mce:script|style|mce:style)$/i.test(L.nodeName))){if(!q){if(L.nodeType!=3||/[^\s]/g.test(L.nodeValue)){if(N==-2&&B){if(!c||B.setStart){if(B.startContainer.nodeType==1&&(D=B.startContainer.childNodes[B.startOffset])&&D.nodeType==1){y=D.getAttribute("id");D.setAttribute("id","__mce")}else{if(x.dom.getParent(B.startContainer,function(n){return n===M})){G=B.startOffset;o=B.endOffset;N=z.find(M,0,B.startContainer);v=z.find(M,0,B.endContainer)}}}else{if(B.item){p=J.body.createTextRange();p.moveToElementText(B.item(0));B=p}p=J.body.createTextRange();p.moveToElementText(M);p.collapse(1);O=p.move("character",K)*-1;p=B.duplicate();p.collapse(1);F=p.move("character",K)*-1;p=B.duplicate();p.collapse(0);C=(p.move("character",K)*-1)-F;N=F-O;v=C}}q=x.dom.create(x.settings.forced_root_block);L.parentNode.replaceChild(q,L);q.appendChild(L)}}else{if(q.hasChildNodes()){q.insertBefore(L,q.firstChild)}else{q.appendChild(L)}}}else{q=null}}if(N!=-2){if(!c||B.setStart){q=M.getElementsByTagName(x.settings.element)[0];B=J.createRange();if(N!=-1){B.setStart(z.find(M,1,N),G)}else{B.setStart(q,0)}if(v!=-1){B.setEnd(z.find(M,1,v),o)}else{B.setEnd(q,0)}if(A){A.removeAllRanges();A.addRange(B)}}else{try{B=A.createRange();B.moveToElementText(M);B.collapse(1);B.moveStart("character",N);B.moveEnd("character",v);B.select()}catch(H){}}}else{if((!c||B.setStart)&&(D=x.dom.get("__mce"))){if(y){D.setAttribute("id",y)}else{D.removeAttribute("id")}B=J.createRange();B.setStartBefore(D);B.setEndBefore(D);P.setRng(B)}}},getParentBlock:function(p){var o=this.dom;return o.getParent(p,o.isBlock)},insertPara:function(S){var G=this,x=G.editor,O=x.dom,T=x.getDoc(),X=x.settings,H=x.selection.getSel(),I=H.getRangeAt(0),W=T.body;var L,M,J,Q,P,u,p,v,A,o,E,V,q,z,K,N=O.getViewPort(x.getWin()),D,F,C;L=T.createRange();L.setStart(H.anchorNode,H.anchorOffset);L.collapse(d);M=T.createRange();M.setStart(H.focusNode,H.focusOffset);M.collapse(d);J=L.compareBoundaryPoints(L.START_TO_END,M)<0;Q=J?H.anchorNode:H.focusNode;P=J?H.anchorOffset:H.focusOffset;u=J?H.focusNode:H.anchorNode;p=J?H.focusOffset:H.anchorOffset;if(Q===u&&/^(TD|TH)$/.test(Q.nodeName)){if(Q.firstChild.nodeName=="BR"){O.remove(Q.firstChild)}if(Q.childNodes.length==0){x.dom.add(Q,X.element,null,"<br />");V=x.dom.add(Q,X.element,null,"<br />")}else{K=Q.innerHTML;Q.innerHTML="";x.dom.add(Q,X.element,null,K);V=x.dom.add(Q,X.element,null,"<br />")}I=T.createRange();I.selectNodeContents(V);I.collapse(1);x.selection.setRng(I);return h}if(Q==W&&u==W&&W.firstChild&&x.dom.isBlock(W.firstChild)){Q=u=Q.firstChild;P=p=0;L=T.createRange();L.setStart(Q,0);M=T.createRange();M.setStart(u,0)}Q=Q.nodeName=="HTML"?T.body:Q;Q=Q.nodeName=="BODY"?Q.firstChild:Q;u=u.nodeName=="HTML"?T.body:u;u=u.nodeName=="BODY"?u.firstChild:u;v=G.getParentBlock(Q);A=G.getParentBlock(u);o=v?v.nodeName:X.element;if(K=G.dom.getParent(v,"li,pre")){if(K.nodeName=="LI"){return e(x.selection,G.dom,K)}return d}if(v&&(v.nodeName=="CAPTION"||/absolute|relative|fixed/gi.test(O.getStyle(v,"position",1)))){o=X.element;v=null}if(A&&(A.nodeName=="CAPTION"||/absolute|relative|fixed/gi.test(O.getStyle(v,"position",1)))){o=X.element;A=null}if(/(TD|TABLE|TH|CAPTION)/.test(o)||(v&&o=="DIV"&&/left|right/gi.test(O.getStyle(v,"float",1)))){o=X.element;v=A=null}E=(v&&v.nodeName==o)?v.cloneNode(0):x.dom.create(o);V=(A&&A.nodeName==o)?A.cloneNode(0):x.dom.create(o);V.removeAttribute("id");if(/^(H[1-6])$/.test(o)&&g(I,v)){V=x.dom.create(X.element)}K=q=Q;do{if(K==W||K.nodeType==9||G.dom.isBlock(K)||/(TD|TABLE|TH|CAPTION)/.test(K.nodeName)){break}q=K}while((K=K.previousSibling?K.previousSibling:K.parentNode));K=z=u;do{if(K==W||K.nodeType==9||G.dom.isBlock(K)||/(TD|TABLE|TH|CAPTION)/.test(K.nodeName)){break}z=K}while((K=K.nextSibling?K.nextSibling:K.parentNode));if(q.nodeName==o){L.setStart(q,0)}else{L.setStartBefore(q)}L.setEnd(Q,P);E.appendChild(L.cloneContents()||T.createTextNode(""));try{M.setEndAfter(z)}catch(R){}M.setStart(u,p);V.appendChild(M.cloneContents()||T.createTextNode(""));I=T.createRange();if(!q.previousSibling&&q.parentNode.nodeName==o){I.setStartBefore(q.parentNode)}else{if(L.startContainer.nodeName==o&&L.startOffset==0){I.setStartBefore(L.startContainer)}else{I.setStart(L.startContainer,L.startOffset)}}if(!z.nextSibling&&z.parentNode.nodeName==o){I.setEndAfter(z.parentNode)}else{I.setEnd(M.endContainer,M.endOffset)}I.deleteContents();if(b){x.getWin().scrollTo(0,N.y)}if(E.firstChild&&E.firstChild.nodeName==o){E.innerHTML=E.firstChild.innerHTML}if(V.firstChild&&V.firstChild.nodeName==o){V.innerHTML=V.firstChild.innerHTML}if(f(E)){E.innerHTML="<br />"}function U(y,s){var r=[],Z,Y,t;y.innerHTML="";if(X.keep_styles){Y=s;do{if(/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(Y.nodeName)){Z=Y.cloneNode(h);O.setAttrib(Z,"id","");r.push(Z)}}while(Y=Y.parentNode)}if(r.length>0){for(t=r.length-1,Z=y;t>=0;t--){Z=Z.appendChild(r[t])}r[0].innerHTML=b?"\u00a0":"<br />";return r[0]}else{y.innerHTML=b?"\u00a0":"<br />"}}if(f(V)){C=U(V,u)}if(b&&parseFloat(opera.version())<9.5){I.insertNode(E);I.insertNode(V)}else{I.insertNode(V);I.insertNode(E)}V.normalize();E.normalize();function B(r){return T.createTreeWalker(r,NodeFilter.SHOW_TEXT,null,h).nextNode()||r}I=T.createRange();I.selectNodeContents(a?B(C||V):C||V);I.collapse(1);H.removeAllRanges();H.addRange(I);D=x.dom.getPos(V).y;if(D<N.y||D+25>N.y+N.h){x.getWin().scrollTo(0,D<N.y?D:D-N.h+25)}return h},backspaceDelete:function(v,C){var D=this,u=D.editor,z=u.getBody(),s=u.dom,q,x=u.selection,p=x.getRng(),y=p.startContainer,q,A,B,o;if(!C&&p.collapsed&&y.nodeType==1&&p.startOffset==y.childNodes.length){o=new m.dom.TreeWalker(y.lastChild,y);for(q=y.lastChild;q;q=o.prev()){if(q.nodeType==3){p.setStart(q,q.nodeValue.length);p.collapse(true);x.setRng(p);return}}}if(y&&u.dom.isBlock(y)&&!/^(TD|TH)$/.test(y.nodeName)&&C){if(y.childNodes.length==0||(y.childNodes.length==1&&y.firstChild.nodeName=="BR")){q=y;while((q=q.previousSibling)&&!u.dom.isBlock(q)){}if(q){if(y!=z.firstChild){A=u.dom.doc.createTreeWalker(q,NodeFilter.SHOW_TEXT,null,h);while(B=A.nextNode()){q=B}p=u.getDoc().createRange();p.setStart(q,q.nodeValue?q.nodeValue.length:0);p.setEnd(q,q.nodeValue?q.nodeValue.length:0);x.setRng(p);u.dom.remove(y)}return k.cancel(v)}}}}})})(tinymce);(function(c){var b=c.DOM,a=c.dom.Event,d=c.each,e=c.extend;c.create("tinymce.ControlManager",{ControlManager:function(f,j){var h=this,g;j=j||{};h.editor=f;h.controls={};h.onAdd=new c.util.Dispatcher(h);h.onPostRender=new c.util.Dispatcher(h);h.prefix=j.prefix||f.id+"_";h._cls={};h.onPostRender.add(function(){d(h.controls,function(i){i.postRender()})})},get:function(f){return this.controls[this.prefix+f]||this.controls[f]},setActive:function(h,f){var g=null;if(g=this.get(h)){g.setActive(f)}return g},setDisabled:function(h,f){var g=null;if(g=this.get(h)){g.setDisabled(f)}return g},add:function(g){var f=this;if(g){f.controls[g.id]=g;f.onAdd.dispatch(g,f)}return g},createControl:function(i){var h,g=this,f=g.editor;d(f.plugins,function(j){if(j.createControl){h=j.createControl(i,g);if(h){return false}}});switch(i){case"|":case"separator":return g.createSeparator()}if(!h&&f.buttons&&(h=f.buttons[i])){return g.createButton(i,h)}return g.add(h)},createDropMenu:function(f,n,h){var m=this,i=m.editor,j,g,k,l;n=e({"class":"mceDropDown",constrain:i.settings.constrain_menus},n);n["class"]=n["class"]+" "+i.getParam("skin")+"Skin";if(k=i.getParam("skin_variant")){n["class"]+=" "+i.getParam("skin")+"Skin"+k.substring(0,1).toUpperCase()+k.substring(1)}f=m.prefix+f;l=h||m._cls.dropmenu||c.ui.DropMenu;j=m.controls[f]=new l(f,n);j.onAddItem.add(function(r,q){var p=q.settings;p.title=i.getLang(p.title,p.title);if(!p.onclick){p.onclick=function(o){if(p.cmd){i.execCommand(p.cmd,p.ui||false,p.value)}}}});i.onRemove.add(function(){j.destroy()});if(c.isIE){j.onShowMenu.add(function(){i.focus();g=i.selection.getBookmark(1)});j.onHideMenu.add(function(){if(g){i.selection.moveToBookmark(g);g=0}})}return m.add(j)},createListBox:function(m,i,l){var h=this,g=h.editor,j,k,f;if(h.get(m)){return null}i.title=g.translate(i.title);i.scope=i.scope||g;if(!i.onselect){i.onselect=function(n){g.execCommand(i.cmd,i.ui||false,n||i.value)}}i=e({title:i.title,"class":"mce_"+m,scope:i.scope,control_manager:h},i);m=h.prefix+m;if(g.settings.use_native_selects){k=new c.ui.NativeListBox(m,i)}else{f=l||h._cls.listbox||c.ui.ListBox;k=new f(m,i,g)}h.controls[m]=k;if(c.isWebKit){k.onPostRender.add(function(p,o){a.add(o,"mousedown",function(){g.bookmark=g.selection.getBookmark(1)});a.add(o,"focus",function(){g.selection.moveToBookmark(g.bookmark);g.bookmark=null})})}if(k.hideMenu){g.onMouseDown.add(k.hideMenu,k)}return h.add(k)},createButton:function(m,i,l){var h=this,g=h.editor,j,k,f;if(h.get(m)){return null}i.title=g.translate(i.title);i.label=g.translate(i.label);i.scope=i.scope||g;if(!i.onclick&&!i.menu_button){i.onclick=function(){g.execCommand(i.cmd,i.ui||false,i.value)}}i=e({title:i.title,"class":"mce_"+m,unavailable_prefix:g.getLang("unavailable",""),scope:i.scope,control_manager:h},i);m=h.prefix+m;if(i.menu_button){f=l||h._cls.menubutton||c.ui.MenuButton;k=new f(m,i,g);g.onMouseDown.add(k.hideMenu,k)}else{f=h._cls.button||c.ui.Button;k=new f(m,i)}return h.add(k)},createMenuButton:function(h,f,g){f=f||{};f.menu_button=1;return this.createButton(h,f,g)},createSplitButton:function(m,i,l){var h=this,g=h.editor,j,k,f;if(h.get(m)){return null}i.title=g.translate(i.title);i.scope=i.scope||g;if(!i.onclick){i.onclick=function(n){g.execCommand(i.cmd,i.ui||false,n||i.value)}}if(!i.onselect){i.onselect=function(n){g.execCommand(i.cmd,i.ui||false,n||i.value)}}i=e({title:i.title,"class":"mce_"+m,scope:i.scope,control_manager:h},i);m=h.prefix+m;f=l||h._cls.splitbutton||c.ui.SplitButton;k=h.add(new f(m,i,g));g.onMouseDown.add(k.hideMenu,k);return k},createColorSplitButton:function(f,n,h){var l=this,j=l.editor,i,k,m,g;if(l.get(f)){return null}n.title=j.translate(n.title);n.scope=n.scope||j;if(!n.onclick){n.onclick=function(o){if(c.isIE){g=j.selection.getBookmark(1)}j.execCommand(n.cmd,n.ui||false,o||n.value)}}if(!n.onselect){n.onselect=function(o){j.execCommand(n.cmd,n.ui||false,o||n.value)}}n=e({title:n.title,"class":"mce_"+f,menu_class:j.getParam("skin")+"Skin",scope:n.scope,more_colors_title:j.getLang("more_colors")},n);f=l.prefix+f;m=h||l._cls.colorsplitbutton||c.ui.ColorSplitButton;k=new m(f,n,j);j.onMouseDown.add(k.hideMenu,k);j.onRemove.add(function(){k.destroy()});if(c.isIE){k.onShowMenu.add(function(){j.focus();g=j.selection.getBookmark(1)});k.onHideMenu.add(function(){if(g){j.selection.moveToBookmark(g);g=0}})}return l.add(k)},createToolbar:function(k,h,j){var i,g=this,f;k=g.prefix+k;f=j||g._cls.toolbar||c.ui.Toolbar;i=new f(k,h,g.editor);if(g.get(k)){return null}return g.add(i)},createToolbarGroup:function(k,h,j){var i,g=this,f;k=g.prefix+k;f=j||this._cls.toolbarGroup||c.ui.ToolbarGroup;i=new f(k,h,g.editor);if(g.get(k)){return null}return g.add(i)},createSeparator:function(g){var f=g||this._cls.separator||c.ui.Separator;return new f()},setControlType:function(g,f){return this._cls[g.toLowerCase()]=f},destroy:function(){d(this.controls,function(f){f.destroy()});this.controls=null}})})(tinymce);(function(d){var a=d.util.Dispatcher,e=d.each,c=d.isIE,b=d.isOpera;d.create("tinymce.WindowManager",{WindowManager:function(f){var g=this;g.editor=f;g.onOpen=new a(g);g.onClose=new a(g);g.params={};g.features={}},open:function(z,h){var v=this,k="",n,m,i=v.editor.settings.dialog_type=="modal",q,o,j,g=d.DOM.getViewPort(),r;z=z||{};h=h||{};o=b?g.w:screen.width;j=b?g.h:screen.height;z.name=z.name||"mc_"+new Date().getTime();z.width=parseInt(z.width||320);z.height=parseInt(z.height||240);z.resizable=true;z.left=z.left||parseInt(o/2)-(z.width/2);z.top=z.top||parseInt(j/2)-(z.height/2);h.inline=false;h.mce_width=z.width;h.mce_height=z.height;h.mce_auto_focus=z.auto_focus;if(i){if(c){z.center=true;z.help=false;z.dialogWidth=z.width+"px";z.dialogHeight=z.height+"px";z.scroll=z.scrollbars||false}}e(z,function(p,f){if(d.is(p,"boolean")){p=p?"yes":"no"}if(!/^(name|url)$/.test(f)){if(c&&i){k+=(k?";":"")+f+":"+p}else{k+=(k?",":"")+f+"="+p}}});v.features=z;v.params=h;v.onOpen.dispatch(v,z,h);r=z.url||z.file;r=d._addVer(r);try{if(c&&i){q=1;window.showModalDialog(r,window,k)}else{q=window.open(r,z.name,k)}}catch(l){}if(!q){alert(v.editor.getLang("popup_blocked"))}},close:function(f){f.close();this.onClose.dispatch(this)},createInstance:function(i,h,g,m,l,k){var j=d.resolve(i);return new j(h,g,m,l,k)},confirm:function(h,f,i,g){g=g||window;f.call(i||this,g.confirm(this._decode(this.editor.getLang(h,h))))},alert:function(h,f,j,g){var i=this;g=g||window;g.alert(i._decode(i.editor.getLang(h,h)));if(f){f.call(j||i)}},resizeBy:function(f,g,h){h.resizeBy(f,g)},_decode:function(f){return d.DOM.decode(f).replace(/\\n/g,"\n")}})}(tinymce));(function(a){a.Formatter=function(T){var K={},M=a.each,c=T.dom,p=T.selection,s=a.dom.TreeWalker,I=new a.dom.RangeUtils(c),d=T.schema.isValidChild,E=c.isBlock,k=T.settings.forced_root_block,r=c.nodeIndex,D="\uFEFF",e=/^(src|href|style)$/,Q=false,A=true,o,N={apply:[],remove:[]};function y(U){return U instanceof Array}function l(V,U){return c.getParents(V,U,c.getRoot())}function b(U){return U.nodeType===1&&(U.face==="mceinline"||U.style.fontFamily==="mceinline")}function P(U){return U?K[U]:K}function j(U,V){if(U){if(typeof(U)!=="string"){M(U,function(X,W){j(W,X)})}else{V=V.length?V:[V];M(V,function(W){if(W.deep===o){W.deep=!W.selector}if(W.split===o){W.split=!W.selector||W.inline}if(W.remove===o&&W.selector&&!W.inline){W.remove="none"}if(W.selector&&W.inline){W.mixed=true;W.block_expand=true}if(typeof(W.classes)==="string"){W.classes=W.classes.split(/\s+/)}});K[U]=V}}}function R(W,ad,Y){var Z=P(W),ae=Z[0],ac,V,ab,aa=p.isCollapsed();function X(ah){var ag=ah.startContainer,ak=ah.startOffset,aj,ai;if(ag.nodeType==1||ag.nodeValue===""){ag=ag.nodeType==1?ag.childNodes[ak]:ag;if(ag){aj=new s(ag,ag.parentNode);for(ai=aj.current();ai;ai=aj.next()){if(ai.nodeType==3&&!f(ai)){ah.setStart(ai,0);break}}}}return ah}function U(ah,ag){ag=ag||ae;if(ah){M(ag.styles,function(aj,ai){c.setStyle(ah,ai,q(aj,ad))});M(ag.attributes,function(aj,ai){c.setAttrib(ah,ai,q(aj,ad))});M(ag.classes,function(ai){ai=q(ai,ad);if(!c.hasClass(ah,ai)){c.addClass(ah,ai)}})}}function af(ah){var ag=[],aj,ai;aj=ae.inline||ae.block;ai=c.create(aj);U(ai);I.walk(ah,function(ak){var al;function am(an){var aq=an.nodeName.toLowerCase(),ap=an.parentNode.nodeName.toLowerCase(),ao;if(g(aq,"br")){al=0;if(ae.block){c.remove(an)}return}if(ae.wrapper&&v(an,W,ad)){al=0;return}if(ae.block&&!ae.wrapper&&F(aq)){an=c.rename(an,aj);U(an);ag.push(an);al=0;return}if(ae.selector){M(Z,function(ar){if("collapsed" in ar&&ar.collapsed!==aa){return}if(c.is(an,ar.selector)&&!b(an)){U(an,ar);ao=true}});if(!ae.inline||ao){al=0;return}}if(d(aj,aq)&&d(ap,aj)&&!(an.nodeType===3&&an.nodeValue.length===1&&an.nodeValue.charCodeAt(0)===65279)){if(!al){al=ai.cloneNode(Q);an.parentNode.insertBefore(al,an);ag.push(al)}al.appendChild(an)}else{al=0;M(a.grep(an.childNodes),am);al=0}}M(ak,am)});if(ae.wrap_links===false){M(ag,function(ak){function al(ap){var ao,an,am;if(ap.nodeName==="A"){an=ai.cloneNode(Q);ag.push(an);am=a.grep(ap.childNodes);for(ao=0;ao<am.length;ao++){an.appendChild(am[ao])}ap.appendChild(an)}M(a.grep(ap.childNodes),al)}al(ak)})}M(ag,function(am){var ak;function an(ap){var ao=0;M(ap.childNodes,function(aq){if(!f(aq)&&!G(aq)){ao++}});return ao}function al(ao){var aq,ap;M(ao.childNodes,function(ar){if(ar.nodeType==1&&!G(ar)&&!b(ar)){aq=ar;return Q}});if(aq&&h(aq,ae)){ap=aq.cloneNode(Q);U(ap);c.replace(ap,ao,A);c.remove(aq,1)}return ap||ao}ak=an(am);if((ag.length>1||!E(am))&&ak===0){c.remove(am,1);return}if(ae.inline||ae.wrapper){if(!ae.exact&&ak===1){am=al(am)}M(Z,function(ao){M(c.select(ao.inline,am),function(aq){var ap;if(ao.wrap_links===false){ap=aq.parentNode;do{if(ap.nodeName==="A"){return}}while(ap=ap.parentNode)}S(ao,ad,aq,ao.exact?aq:null)})});if(v(am.parentNode,W,ad)){c.remove(am,1);am=0;return A}if(ae.merge_with_parents){c.getParent(am.parentNode,function(ao){if(v(ao,W,ad)){c.remove(am,1);am=0;return A}})}if(am){am=t(B(am),am);am=t(am,B(am,A))}}})}if(ae){if(Y){V=c.createRng();V.setStartBefore(Y);V.setEndAfter(Y);af(n(V,Z))}else{if(!aa||!ae.inline||c.select("td.mceSelected,th.mceSelected").length){ac=p.getBookmark();af(n(p.getRng(A),Z));p.moveToBookmark(ac);p.setRng(X(p.getRng(A)));T.nodeChanged()}else{O("apply",W,ad)}}}}function z(W,af,Z){var aa=P(W),ah=aa[0],ae,ad,V;function Y(ak){var aj=ak.startContainer,ap=ak.startOffset,ao,an,al,am;if(aj.nodeType==3&&ap>=aj.nodeValue.length-1){aj=aj.parentNode;ap=r(aj)+1}if(aj.nodeType==1){al=aj.childNodes;aj=al[Math.min(ap,al.length-1)];ao=new s(aj);if(ap>al.length-1){ao.next()}for(an=ao.current();an;an=ao.next()){if(an.nodeType==3&&!f(an)){am=c.create("a",null,D);an.parentNode.insertBefore(am,an);ak.setStart(an,0);p.setRng(ak);c.remove(am);return}}}}function X(am){var al,ak,aj;al=a.grep(am.childNodes);for(ak=0,aj=aa.length;ak<aj;ak++){if(S(aa[ak],af,am,am)){break}}if(ah.deep){for(ak=0,aj=al.length;ak<aj;ak++){X(al[ak])}}}function ab(aj){var ak;M(l(aj.parentNode).reverse(),function(al){var am;if(!ak&&al.id!="_start"&&al.id!="_end"){am=v(al,W,af);if(am&&am.split!==false){ak=al}}});return ak}function U(am,aj,ao,ar){var at,aq,ap,al,an,ak;if(am){ak=am.parentNode;for(at=aj.parentNode;at&&at!=ak;at=at.parentNode){aq=at.cloneNode(Q);for(an=0;an<aa.length;an++){if(S(aa[an],af,aq,aq)){aq=0;break}}if(aq){if(ap){aq.appendChild(ap)}if(!al){al=aq}ap=aq}}if(ar&&(!ah.mixed||!E(am))){aj=c.split(am,aj)}if(ap){ao.parentNode.insertBefore(ap,ao);al.appendChild(ao)}}return aj}function ag(aj){return U(ab(aj),aj,aj,true)}function ac(al){var ak=c.get(al?"_start":"_end"),aj=ak[al?"firstChild":"lastChild"];if(G(aj)){aj=aj[al?"firstChild":"lastChild"]}c.remove(ak,true);return aj}function ai(aj){var ak,al;aj=n(aj,aa,A);if(ah.split){ak=H(aj,A);al=H(aj);if(ak!=al){ak=L(ak,"span",{id:"_start","data-mce-type":"bookmark"});al=L(al,"span",{id:"_end","data-mce-type":"bookmark"});ag(ak);ag(al);ak=ac(A);al=ac()}else{ak=al=ag(ak)}aj.startContainer=ak.parentNode;aj.startOffset=r(ak);aj.endContainer=al.parentNode;aj.endOffset=r(al)+1}I.walk(aj,function(am){M(am,function(an){X(an)})})}if(Z){V=c.createRng();V.setStartBefore(Z);V.setEndAfter(Z);ai(V);return}if(!p.isCollapsed()||!ah.inline||c.select("td.mceSelected,th.mceSelected").length){ae=p.getBookmark();ai(p.getRng(A));p.moveToBookmark(ae);if(i(W,af,p.getStart())){Y(p.getRng(true))}T.nodeChanged()}else{O("remove",W,af)}}function C(U,W,V){if(i(U,W,V)){z(U,W,V)}else{R(U,W,V)}}function v(V,U,aa,Y){var W=P(U),ab,Z,X;function ac(ag,ai,aj){var af,ah,ad=ai[aj],ae;if(ad){if(ad.length===o){for(af in ad){if(ad.hasOwnProperty(af)){if(aj==="attributes"){ah=c.getAttrib(ag,af)}else{ah=J(ag,af)}if(Y&&!ah&&!ai.exact){return}if((!Y||ai.exact)&&!g(ah,q(ad[af],aa))){return}}}}else{for(ae=0;ae<ad.length;ae++){if(aj==="attributes"?c.getAttrib(ag,ad[ae]):J(ag,ad[ae])){return ai}}}}return ai}if(W&&V){for(Z=0;Z<W.length;Z++){ab=W[Z];if(h(V,ab)&&ac(V,ab,"attributes")&&ac(V,ab,"styles")){if(X=ab.classes){for(Z=0;Z<X.length;Z++){if(!c.hasClass(V,X[Z])){return}}}return ab}}}}function i(W,Z,Y){var V,X;function U(aa){aa=c.getParent(aa,function(ab){return !!v(ab,W,Z,true)});return v(aa,W,Z)}if(Y){return U(Y)}if(p.isCollapsed()){for(X=N.apply.length-1;X>=0;X--){if(N.apply[X].name==W){return true}}for(X=N.remove.length-1;X>=0;X--){if(N.remove[X].name==W){return false}}return U(p.getNode())}Y=p.getNode();if(U(Y)){return A}V=p.getStart();if(V!=Y){if(U(V)){return A}}return Q}function u(ab,aa){var Y,Z=[],X={},W,V,U;if(p.isCollapsed()){for(V=0;V<ab.length;V++){for(W=N.remove.length-1;W>=0;W--){U=ab[V];if(N.remove[W].name==U){X[U]=true;break}}}for(W=N.apply.length-1;W>=0;W--){for(V=0;V<ab.length;V++){U=ab[V];if(!X[U]&&N.apply[W].name==U){X[U]=true;Z.push(U)}}}}Y=p.getStart();c.getParent(Y,function(ae){var ad,ac;for(ad=0;ad<ab.length;ad++){ac=ab[ad];if(!X[ac]&&v(ae,ac,aa)){X[ac]=true;Z.push(ac)}}});return Z}function x(Y){var aa=P(Y),X,W,Z,V,U;if(aa){X=p.getStart();W=l(X);for(V=aa.length-1;V>=0;V--){U=aa[V].selector;if(!U){return A}for(Z=W.length-1;Z>=0;Z--){if(c.is(W[Z],U)){return A}}}}return Q}a.extend(this,{get:P,register:j,apply:R,remove:z,toggle:C,match:i,matchAll:u,matchNode:v,canApply:x});function h(U,V){if(g(U,V.inline)){return A}if(g(U,V.block)){return A}if(V.selector){return c.is(U,V.selector)}}function g(V,U){V=V||"";U=U||"";V=""+(V.nodeName||V);U=""+(U.nodeName||U);return V.toLowerCase()==U.toLowerCase()}function J(V,U){var W=c.getStyle(V,U);if(U=="color"||U=="backgroundColor"){W=c.toHex(W)}if(U=="fontWeight"&&W==700){W="bold"}return""+W}function q(U,V){if(typeof(U)!="string"){U=U(V)}else{if(V){U=U.replace(/%(\w+)/g,function(X,W){return V[W]||X})}}return U}function f(U){return U&&U.nodeType===3&&/^([\s\r\n]+|)$/.test(U.nodeValue)}function L(W,V,U){var X=c.create(V,U);W.parentNode.insertBefore(X,W);X.appendChild(W);return X}function n(U,ac,X){var W=U.startContainer,Z=U.startOffset,af=U.endContainer,aa=U.endOffset,ae,ab;function ad(ai,aj,ag,ah){var ak,al;ah=ah||c.getRoot();for(;;){ak=ai.parentNode;if(ak==ah||(!ac[0].block_expand&&E(ak))){return ai}for(ae=ak[aj];ae&&ae!=ai;ae=ae[ag]){if(ae.nodeType==1&&!G(ae)){return ai}if(ae.nodeType==3&&!f(ae)){return ai}}ai=ai.parentNode}return ai}if(W.nodeType==1&&W.hasChildNodes()){ab=W.childNodes.length-1;W=W.childNodes[Z>ab?ab:Z];if(W.nodeType==3){Z=0}}if(af.nodeType==1&&af.hasChildNodes()){ab=af.childNodes.length-1;af=af.childNodes[aa>ab?ab:aa-1];if(af.nodeType==3){aa=af.nodeValue.length}}if(G(W.parentNode)){W=W.parentNode}if(G(W)){W=W.nextSibling||W}if(G(af.parentNode)){af=af.parentNode}if(G(af)){af=af.previousSibling||af}if(ac[0].inline||ac[0].block_expand){W=ad(W,"firstChild","nextSibling");af=ad(af,"lastChild","previousSibling")}if(ac[0].selector&&ac[0].expand!==Q&&!ac[0].inline){function Y(ah,ag){var ai,aj,al,ak;if(ah.nodeType==3&&ah.nodeValue.length==0&&ah[ag]){ah=ah[ag]}ai=l(ah);for(aj=0;aj<ai.length;aj++){for(al=0;al<ac.length;al++){ak=ac[al];if("collapsed" in ak&&ak.collapsed!==U.collapsed){continue}if(c.is(ai[aj],ak.selector)){return ai[aj]}}}return ah}W=Y(W,"previousSibling");af=Y(af,"nextSibling")}if(ac[0].block||ac[0].selector){function V(ah,ag,aj){var ai;if(!ac[0].wrapper){ai=c.getParent(ah,ac[0].block)}if(!ai){ai=c.getParent(ah.nodeType==3?ah.parentNode:ah,E)}if(ai&&ac[0].wrapper){ai=l(ai,"ul,ol").reverse()[0]||ai}if(!ai){ai=ah;while(ai[ag]&&!E(ai[ag])){ai=ai[ag];if(g(ai,"br")){break}}}return ai||ah}W=V(W,"previousSibling");af=V(af,"nextSibling");if(ac[0].block){if(!E(W)){W=ad(W,"firstChild","nextSibling")}if(!E(af)){af=ad(af,"lastChild","previousSibling")}}}if(W.nodeType==1){Z=r(W);W=W.parentNode}if(af.nodeType==1){aa=r(af)+1;af=af.parentNode}return{startContainer:W,startOffset:Z,endContainer:af,endOffset:aa}}function S(aa,Z,X,U){var W,V,Y;if(!h(X,aa)){return Q}if(aa.remove!="all"){M(aa.styles,function(ac,ab){ac=q(ac,Z);if(typeof(ab)==="number"){ab=ac;U=0}if(!U||g(J(U,ab),ac)){c.setStyle(X,ab,"")}Y=1});if(Y&&c.getAttrib(X,"style")==""){X.removeAttribute("style");X.removeAttribute("data-mce-style")}M(aa.attributes,function(ad,ab){var ac;ad=q(ad,Z);if(typeof(ab)==="number"){ab=ad;U=0}if(!U||g(c.getAttrib(U,ab),ad)){if(ab=="class"){ad=c.getAttrib(X,ab);if(ad){ac="";M(ad.split(/\s+/),function(ae){if(/mce\w+/.test(ae)){ac+=(ac?" ":"")+ae}});if(ac){c.setAttrib(X,ab,ac);return}}}if(ab=="class"){X.removeAttribute("className")}if(e.test(ab)){X.removeAttribute("data-mce-"+ab)}X.removeAttribute(ab)}});M(aa.classes,function(ab){ab=q(ab,Z);if(!U||c.hasClass(U,ab)){c.removeClass(X,ab)}});V=c.getAttribs(X);for(W=0;W<V.length;W++){if(V[W].nodeName.indexOf("_")!==0){return Q}}}if(aa.remove!="none"){m(X,aa);return A}}function m(W,X){var U=W.parentNode,V;if(X.block){if(!k){function Y(aa,Z,ab){aa=B(aa,Z,ab);return !aa||(aa.nodeName=="BR"||E(aa))}if(E(W)&&!E(U)){if(!Y(W,Q)&&!Y(W.firstChild,A,1)){W.insertBefore(c.create("br"),W.firstChild)}if(!Y(W,A)&&!Y(W.lastChild,Q,1)){W.appendChild(c.create("br"))}}}else{if(U==c.getRoot()){if(!X.list_block||!g(W,X.list_block)){M(a.grep(W.childNodes),function(Z){if(d(k,Z.nodeName.toLowerCase())){if(!V){V=L(Z,k)}else{V.appendChild(Z)}}else{V=0}})}}}}if(X.selector&&X.inline&&!g(X.inline,W)){return}c.remove(W,1)}function B(V,U,W){if(V){U=U?"nextSibling":"previousSibling";for(V=W?V:V[U];V;V=V[U]){if(V.nodeType==1||!f(V)){return V}}}}function G(U){return U&&U.nodeType==1&&U.getAttribute("data-mce-type")=="bookmark"}function t(Y,X){var U,W,V;function aa(ad,ac){if(ad.nodeName!=ac.nodeName){return Q}function ab(af){var ag={};M(c.getAttribs(af),function(ah){var ai=ah.nodeName.toLowerCase();if(ai.indexOf("_")!==0&&ai!=="style"){ag[ai]=c.getAttrib(af,ai)}});return ag}function ae(ai,ah){var ag,af;for(af in ai){if(ai.hasOwnProperty(af)){ag=ah[af];if(ag===o){return Q}if(ai[af]!=ag){return Q}delete ah[af]}}for(af in ah){if(ah.hasOwnProperty(af)){return Q}}return A}if(!ae(ab(ad),ab(ac))){return Q}if(!ae(c.parseStyle(c.getAttrib(ad,"style")),c.parseStyle(c.getAttrib(ac,"style")))){return Q}return A}if(Y&&X){function Z(ac,ab){for(W=ac;W;W=W[ab]){if(W.nodeType==3&&W.nodeValue.length!==0){return ac}if(W.nodeType==1&&!G(W)){return W}}return ac}Y=Z(Y,"previousSibling");X=Z(X,"nextSibling");if(aa(Y,X)){for(W=Y.nextSibling;W&&W!=X;){V=W;W=W.nextSibling;Y.appendChild(V)}c.remove(X);M(a.grep(X.childNodes),function(ab){Y.appendChild(ab)});return Y}}return X}function F(U){return/^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(U)}function H(V,Y){var U,X,W;U=V[Y?"startContainer":"endContainer"];X=V[Y?"startOffset":"endOffset"];if(U.nodeType==1){W=U.childNodes.length-1;if(!Y&&X){X--}U=U.childNodes[X>W?W:X]}return U}function O(Z,V,Y){var W,U=N[Z],aa=N[Z=="apply"?"remove":"apply"];function ab(){return N.apply.length||N.remove.length}function X(){N.apply=[];N.remove=[]}function ac(ad){M(N.apply.reverse(),function(ae){R(ae.name,ae.vars,ad)});M(N.remove.reverse(),function(ae){z(ae.name,ae.vars,ad)});c.remove(ad,1);X()}for(W=U.length-1;W>=0;W--){if(U[W].name==V){return}}U.push({name:V,vars:Y});for(W=aa.length-1;W>=0;W--){if(aa[W].name==V){aa.splice(W,1)}}if(ab()){T.getDoc().execCommand("FontName",false,"mceinline");N.lastRng=p.getRng();M(c.select("font,span"),function(ae){var ad;if(b(ae)){ad=p.getBookmark();ac(ae);p.moveToBookmark(ad);T.nodeChanged()}});if(!N.isListening&&ab()){N.isListening=true;M("onKeyDown,onKeyUp,onKeyPress,onMouseUp".split(","),function(ad){T[ad].addToTop(function(ae,af){if(ab()&&!a.dom.RangeUtils.compareRanges(N.lastRng,p.getRng())){M(c.select("font,span"),function(ah){var ai,ag;if(b(ah)){ai=ah.firstChild;if(ai){ac(ah);ag=c.createRng();ag.setStart(ai,ai.nodeValue.length);ag.setEnd(ai,ai.nodeValue.length);p.setRng(ag);ae.nodeChanged()}else{c.remove(ah)}}});if(af.type=="keyup"||af.type=="mouseup"){X()}}})})}}}}})(tinymce);tinymce.onAddEditor.add(function(e,a){var d,h,g,c=a.settings;if(c.inline_styles){h=e.explode(c.font_size_style_values);function b(j,i){e.each(i,function(l,k){if(l){g.setStyle(j,k,l)}});g.rename(j,"span")}d={font:function(j,i){b(i,{backgroundColor:i.style.backgroundColor,color:i.color,fontFamily:i.face,fontSize:h[parseInt(i.size)-1]})},u:function(j,i){b(i,{textDecoration:"underline"})},strike:function(j,i){b(i,{textDecoration:"line-through"})}};function f(i,j){g=i.dom;if(c.convert_fonts_to_spans){e.each(g.select("font,u,strike",j.node),function(k){d[k.nodeName.toLowerCase()](a.dom,k)})}}a.onPreProcess.add(f);a.onSetContent.add(f);a.onInit.add(function(){a.selection.onSetContent.add(f)})}});
|
1
|
+
(function(i){var g=/^\s*|\s*$/g,h,j="B".replace(/A(.)|B/,"$1")==="$1";var f={majorVersion:"3",minorVersion:"4",releaseDate:"2011-03-10",_init:function(){var x=this,b=document,c=navigator,u=c.userAgent,d,v,e,n,p,a;x.isOpera=i.opera&&opera.buildNumber;x.isWebKit=/WebKit/.test(u);x.isIE=!x.isWebKit&&!x.isOpera&&(/MSIE/gi).test(u)&&(/Explorer/gi).test(c.appName);x.isIE6=x.isIE&&/MSIE [56]/.test(u);x.isGecko=!x.isWebKit&&/Gecko/.test(u);x.isMac=u.indexOf("Mac")!=-1;x.isAir=/adobeair/i.test(u);x.isIDevice=/(iPad|iPhone)/.test(u);if(i.tinyMCEPreInit){x.suffix=tinyMCEPreInit.suffix;x.baseURL=tinyMCEPreInit.base;x.query=tinyMCEPreInit.query;return}x.suffix="";v=b.getElementsByTagName("base");for(d=0;d<v.length;d++){if(a=v[d].href){if(/^https?:\/\/[^\/]+$/.test(a)){a+="/"}n=a?a.match(/.*\//)[0]:""}}function t(k){if(k.src&&/tiny_mce(|_gzip|_jquery|_prototype|_full)(_dev|_src)?.js/.test(k.src)){if(/_(src|dev)\.js/g.test(k.src)){x.suffix="_src"}if((p=k.src.indexOf("?"))!=-1){x.query=k.src.substring(p+1)}x.baseURL=k.src.substring(0,k.src.lastIndexOf("/"));if(n&&x.baseURL.indexOf("://")==-1&&x.baseURL.indexOf("/")!==0){x.baseURL=n+x.baseURL}return x.baseURL}return null}v=b.getElementsByTagName("script");for(d=0;d<v.length;d++){if(t(v[d])){return}}e=b.getElementsByTagName("head")[0];if(e){v=e.getElementsByTagName("script");for(d=0;d<v.length;d++){if(t(v[d])){return}}}return},is:function(a,b){if(!b){return a!==h}if(b=="array"&&(a.hasOwnProperty&&a instanceof Array)){return true}return typeof(a)==b},makeMap:function(d,a,b){var c;d=d||[];a=a||",";if(typeof(d)=="string"){d=d.split(a)}b=b||{};c=d.length;while(c--){b[d[c]]={}}return b},each:function(b,e,c){var a,d;if(!b){return 0}c=c||b;if(b.length!==h){for(a=0,d=b.length;a<d;a++){if(e.call(c,b[a],a,b)===false){return 0}}}else{for(a in b){if(b.hasOwnProperty(a)){if(e.call(c,b[a],a,b)===false){return 0}}}}return 1},trim:function(a){return(a?""+a:"").replace(g,"")},create:function(a,t,p){var b=this,s,q,e,d,r,c=0;a=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(a);e=a[3].match(/(^|\.)(\w+)$/i)[2];q=b.createNS(a[3].replace(/\.\w+$/,""),p);if(q[e]){return}if(a[2]=="static"){q[e]=t;if(this.onCreate){this.onCreate(a[2],a[3],q[e])}return}if(!t[e]){t[e]=function(){};c=1}q[e]=t[e];b.extend(q[e].prototype,t);if(a[5]){s=b.resolve(a[5]).prototype;d=a[5].match(/\.(\w+)$/i)[1];r=q[e];if(c){q[e]=function(){return s[d].apply(this,arguments)}}else{q[e]=function(){this.parent=s[d];return r.apply(this,arguments)}}q[e].prototype[e]=q[e];b.each(s,function(l,k){q[e].prototype[k]=s[k]});b.each(t,function(l,k){if(s[k]){q[e].prototype[k]=function(){this.parent=s[k];return l.apply(this,arguments)}}else{if(k!=e){q[e].prototype[k]=l}}})}b.each(t["static"],function(l,k){q[e][k]=l});if(this.onCreate){this.onCreate(a[2],a[3],q[e].prototype)}},walk:function(b,c,a,d){d=d||this;if(b){if(a){b=b[a]}f.each(b,function(e,l){if(c.call(d,e,l,a)===false){return false}f.walk(e,c,a,d)})}},createNS:function(a,b){var c,d;b=b||i;a=a.split(".");for(c=0;c<a.length;c++){d=a[c];if(!b[d]){b[d]={}}b=b[d]}return b},resolve:function(a,b){var c,d;b=b||i;a=a.split(".");for(c=0,d=a.length;c<d;c++){b=b[a[c]];if(!b){break}}return b},addUnload:function(b,c){var d=this;b={func:b,scope:c||this};if(!d.unloads){function e(){var o=d.unloads,n,k;if(o){for(k in o){n=o[k];if(n&&n.func){n.func.call(n.scope,1)}}if(i.detachEvent){i.detachEvent("onbeforeunload",a);i.detachEvent("onunload",e)}else{if(i.removeEventListener){i.removeEventListener("unload",e,false)}}d.unloads=n=o=w=e=0;if(i.CollectGarbage){CollectGarbage()}}}function a(){var k=document;if(k.readyState=="interactive"){function m(){k.detachEvent("onstop",m);if(e){e()}k=0}if(k){k.attachEvent("onstop",m)}i.setTimeout(function(){if(k){k.detachEvent("onstop",m)}},0)}}if(i.attachEvent){i.attachEvent("onunload",e);i.attachEvent("onbeforeunload",a)}else{if(i.addEventListener){i.addEventListener("unload",e,false)}}d.unloads=[b]}else{d.unloads.push(b)}return b},removeUnload:function(a){var c=this.unloads,b=null;f.each(c,function(d,e){if(d&&d.func==a){c.splice(e,1);b=a;return false}});return b},explode:function(b,a){return b?f.map(b.split(a||","),f.trim):b},_addVer:function(a){var b;if(!this.query){return a}b=(a.indexOf("?")==-1?"?":"&")+this.query;if(a.indexOf("#")==-1){return a+b}return a.replace("#",b+"#")},_replace:function(a,c,b){if(j){return b.replace(a,function(){var d=c,m=arguments,e;for(e=0;e<m.length-2;e++){if(m[e]===h){d=d.replace(new RegExp("\\$"+e,"g"),"")}else{d=d.replace(new RegExp("\\$"+e,"g"),m[e])}}return d})}return b.replace(a,c)}};f._init();i.tinymce=i.tinyMCE=f})(window);(function(j,k){var l=k.is,g=/^(href|src|style)$/i,i;if(!j){return alert("Load jQuery first!")}k.$=j;k.adapter={patchEditor:function(c){var d=j.fn;function e(r,q){var p=this;if(q){p.removeAttr("data-mce-style")}return d.css.apply(p,arguments)}function f(r,q){var p=this;if(g.test(r)){if(q!==i){p.each(function(n,m){c.dom.setAttrib(m,r,q)});return p}else{return p.attr("data-mce-"+r)}}return d.attr.apply(p,arguments)}function b(n){return function(m){if(m){m=c.dom.processHTML(m)}return n.call(this,m)}}function a(n){if(n.css!==e){n.css=e;n.attr=f;n.html=b(d.html);n.append=b(d.append);n.prepend=b(d.prepend);n.after=b(d.after);n.before=b(d.before);n.replaceWith=b(d.replaceWith);n.tinymce=c;n.pushStack=function(){return a(d.pushStack.apply(this,arguments))}}return n}c.$=function(p,r){var q=c.getDoc();return a(j(p||q,q||r))}}};k.extend=j.extend;k.extend(k,{map:j.map,grep:function(b,a){return j.grep(b,a||function(){return 1})},inArray:function(b,a){return j.inArray(a,b||[])}});var h={"tinymce.dom.DOMUtils":{select:function(a,b){var c=this;return j.find(a,c.get(b)||c.get(c.settings.root_element)||c.doc,[])},is:function(a,b){return j(this.get(a)).is(b)}}};k.onCreate=function(c,a,b){k.extend(b,h[a])}})(window.jQuery,tinymce);tinymce.create("tinymce.util.Dispatcher",{scope:null,listeners:null,Dispatcher:function(b){this.scope=b||this;this.listeners=[]},add:function(d,c){this.listeners.push({cb:d,scope:c||this.scope});return d},addToTop:function(d,c){this.listeners.unshift({cb:d,scope:c||this.scope});return d},remove:function(e){var d=this.listeners,f=null;tinymce.each(d,function(a,b){if(e==a.cb){f=e;d.splice(b,1);return false}});return f},dispatch:function(){var h,j=arguments,i,a=this.listeners,c;for(i=0;i<a.length;i++){c=a[i];h=c.cb.apply(c.scope,j);if(h===false){break}}return h}});(function(){var b=tinymce.each;tinymce.create("tinymce.util.URI",{URI:function(k,i){var j=this,a,l,m;k=tinymce.trim(k);i=j.settings=i||{};if(/^(mailto|tel|news|javascript|about|data):/i.test(k)||/^\s*#/.test(k)){j.source=k;return}if(k.indexOf("/")===0&&k.indexOf("//")!==0){k=(i.base_uri?i.base_uri.protocol||"http":"http")+"://mce_host"+k}if(!/^\w*:?\/\//.test(k)){k=(i.base_uri.protocol||"http")+"://mce_host"+j.toAbsPath(i.base_uri.path,k)}k=k.replace(/@@/g,"(mce_at)");k=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(k);b(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],function(c,e){var d=k[e];if(d){d=d.replace(/\(mce_at\)/g,"@@")}j[c]=d});if(m=i.base_uri){if(!j.protocol){j.protocol=m.protocol}if(!j.userInfo){j.userInfo=m.userInfo}if(!j.port&&j.host=="mce_host"){j.port=m.port}if(!j.host||j.host=="mce_host"){j.host=m.host}j.source=""}},setPath:function(d){var a=this;d=/^(.*?)\/?(\w+)?$/.exec(d);a.path=d[0];a.directory=d[1];a.file=d[2];a.source="";a.getURI()},toRelative:function(a){var f=this,e;if(a==="./"){return a}a=new tinymce.util.URI(a,{base_uri:f});if((a.host!="mce_host"&&f.host!=a.host&&a.host)||f.port!=a.port||f.protocol!=a.protocol){return a.getURI()}e=f.toRelPath(f.path,a.path);if(a.query){e+="?"+a.query}if(a.anchor){e+="#"+a.anchor}return e},toAbsolute:function(a,d){var a=new tinymce.util.URI(a,{base_uri:this});return a.getURI(this.host==a.host&&this.protocol==a.protocol?d:0)},toRelPath:function(j,i){var n,k=0,m="",l,a;j=j.substring(0,j.lastIndexOf("/"));j=j.split("/");n=i.split("/");if(j.length>=n.length){for(l=0,a=j.length;l<a;l++){if(l>=n.length||j[l]!=n[l]){k=l+1;break}}}if(j.length<n.length){for(l=0,a=n.length;l<a;l++){if(l>=j.length||j[l]!=n[l]){k=l+1;break}}}if(k==1){return i}for(l=0,a=j.length-(k-1);l<a;l++){m+="../"}for(l=k-1,a=n.length;l<a;l++){if(l!=k-1){m+="/"+n[l]}else{m+=n[l]}}return m},toAbsPath:function(l,k){var n,a=0,i=[],m,j;m=/\/$/.test(k)?"/":"";l=l.split("/");k=k.split("/");b(l,function(c){if(c){i.push(c)}});l=i;for(n=k.length-1,i=[];n>=0;n--){if(k[n].length==0||k[n]=="."){continue}if(k[n]==".."){a++;continue}if(a>0){a--;continue}i.push(k[n])}n=l.length-a;if(n<=0){j=i.reverse().join("/")}else{j=l.slice(0,n).join("/")+"/"+i.reverse().join("/")}if(j.indexOf("/")!==0){j="/"+j}if(m&&j.lastIndexOf("/")!==j.length-1){j+=m}return j},getURI:function(e){var f,a=this;if(!a.source||e){f="";if(!e){if(a.protocol){f+=a.protocol+"://"}if(a.userInfo){f+=a.userInfo+"@"}if(a.host){f+=a.host}if(a.port){f+=":"+a.port}}if(a.path){f+=a.path}if(a.query){f+="?"+a.query}if(a.anchor){f+="#"+a.anchor}a.source=f}return a.source}})})();(function(){var b=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(e){var a=this.get(e),f;if(a){b(a.split("&"),function(c){c=c.split("=");f=f||{};f[unescape(c[0])]=unescape(c[1])})}return f},setHash:function(d,a,l,m,e,n){var k="";b(a,function(c,f){k+=(!k?"":"&")+escape(f)+"="+escape(c)});this.set(d,k,l,m,e,n)},get:function(a){var c=document.cookie,e,j=a+"=",k;if(!c){return}k=c.indexOf("; "+j);if(k==-1){k=c.indexOf(j);if(k!=0){return null}}else{k+=2}e=c.indexOf(";",k);if(e==-1){e=c.length}return unescape(c.substring(k+j.length,e))},set:function(d,a,j,k,e,l){document.cookie=d+"="+escape(a)+((j)?"; expires="+j.toGMTString():"")+((k)?"; path="+escape(k):"")+((e)?"; domain="+e:"")+((l)?"; secure":"")},remove:function(d,a){var f=new Date();f.setTime(f.getTime()-1000);this.set(d,"",f,a,f)}})})();(function(){function serialize(o,quote){var i,v,t;quote=quote||'"';if(o==null){return"null"}t=typeof o;if(t=="string"){v="\bb\tt\nn\ff\rr\"\"''\\\\";return quote+o.replace(/([\u0080-\uFFFF\x00-\x1f\"\'])/g,function(a,b){if(quote==='"'&&a==="'"){return a}i=v.indexOf(b);if(i+1){return"\\"+v.charAt(i+1)}a=b.charCodeAt().toString(16);return"\\u"+"0000".substring(a.length)+a})+quote}if(t=="object"){if(o.hasOwnProperty&&o instanceof Array){for(i=0,v="[";i<o.length;i++){v+=(i>0?",":"")+serialize(o[i],quote)}return v+"]"}v="{";for(i in o){v+=typeof o[i]!="function"?(v.length>1?","+quote:quote)+i+quote+":"+serialize(o[i],quote):""}return v+"}"}return""+o}tinymce.util.JSON={serialize:serialize,parse:function(s){try{return eval("("+s+")")}catch(ex){}}}})();tinymce.create("static tinymce.util.XHR",{send:function(k){var i,m,c=window,j=0;k.scope=k.scope||this;k.success_scope=k.success_scope||k.scope;k.error_scope=k.error_scope||k.scope;k.async=k.async===false?false:true;k.data=k.data||"";function n(a){i=0;try{i=new ActiveXObject(a)}catch(b){}return i}i=c.XMLHttpRequest?new XMLHttpRequest():n("Microsoft.XMLHTTP")||n("Msxml2.XMLHTTP");if(i){if(i.overrideMimeType){i.overrideMimeType(k.content_type)}i.open(k.type||(k.data?"POST":"GET"),k.url,k.async);if(k.content_type){i.setRequestHeader("Content-Type",k.content_type)}i.setRequestHeader("X-Requested-With","XMLHttpRequest");i.send(k.data);function l(){if(!k.async||i.readyState==4||j++>10000){if(k.success&&j<10000&&i.status==200){k.success.call(k.success_scope,""+i.responseText,i,k)}else{if(k.error){k.error.call(k.error_scope,j>10000?"TIMED_OUT":"GENERAL",i,k)}}i=null}else{c.setTimeout(l,10)}}if(!k.async){return l()}m=c.setTimeout(l,10)}}});(function(){var f=tinymce.extend,d=tinymce.util.JSON,e=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(a){this.settings=f({},a);this.count=0},send:function(a){var b=a.error,c=a.success;a=f(this.settings,a);a.success=function(i,j){i=d.parse(i);if(typeof(i)=="undefined"){i={error:"JSON Parse error."}}if(i.error){b.call(a.error_scope||a.scope,i.error,j)}else{c.call(a.success_scope||a.scope,i.result)}};a.error=function(i,j){if(b){b.call(a.error_scope||a.scope,i,j)}};a.data=d.serialize({id:a.id||"c"+(this.count++),method:a.method,params:a.params});a.content_type="application/json";e.send(a)},"static":{sendRPC:function(a){return new tinymce.util.JSONRequest().send(a)}}})}());(function(l){var t,n,q,k=/[&\"\u007E-\uFFFF]/g,s=/[<>&\u007E-\uFFFF]/g,o=/[<>&\"\']/g,r=/&(#)?([\w]+);/g;n={'"':""","'":"'","<":"<",">":">","&":"&"};q={"<":"<",">":">","&":"&",""":'"',"'":"'"};function m(b){var a;a=document.createElement("div");a.innerHTML=b;return a.textContent||a.innerText||b}function p(b,e){var a,f,c,d={};if(b){b=b.split(",");e=e||10;for(a=0;a<b.length;a+=2){f=String.fromCharCode(parseInt(b[a],e));if(!n[f]){c="&"+b[a+1]+";";d[f]=c;d[c]=f}}return d}}t=p("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);l.html=l.html||{};l.html.Entities={encodeRaw:function(a,b){return a.replace(b?k:s,function(c){return n[c]||c})},encodeAllRaw:function(a){return(""+a).replace(o,function(b){return n[b]||b})},encodeNumeric:function(a,b){return a.replace(b?k:s,function(c){return n[c]||"&#"+c.charCodeAt(0)+";"})},encodeNamed:function(a,c,b){b=b||t;return a.replace(c?k:s,function(d){return n[d]||b[d]||d})},getEncodeFunc:function(c,e){var d=l.html.Entities;e=p(e)||t;function b(f,g){return f.replace(g?k:s,function(h){return n[h]||e[h]||"&#"+h.charCodeAt(0)+";"||h})}function a(f,g){return d.encodeNamed(f,g,e)}c=l.makeMap(c.replace(/\+/g,","));if(c.named&&c.numeric){return b}if(c.named){if(e){return a}return d.encodeNamed}if(c.numeric){return d.encodeNumeric}return d.encodeRaw},decode:function(a){return a.replace(r,function(b,c,d){if(c){return String.fromCharCode(d)}return q[b]||t[b]||m(b)})}}})(tinymce);tinymce.html.Styles=function(u,s){var o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,q=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,x=/\s*([^:]+):\s*([^;]+);?/g,n=/\s+$/,i=/rgb/,t,r,y={},p;u=u||{};p="\\\" \\' \\; \\: ; : _".split(" ");for(r=0;r<p.length;r++){y[p[r]]="_"+r;y["_"+r]=p[r]}function v(e,b,c,a){function d(f){f=parseInt(f).toString(16);return f.length>1?f:"0"+f}return"#"+d(b)+d(c)+d(a)}return{toHex:function(a){return a.replace(o,v)},parse:function(a){var h={},c,e,k,b,l=u.url_converter,j=u.url_converter_scope||this;function d(J,G){var H,K,z,I;H=h[J+"-top"+G];if(!H){return}K=h[J+"-right"+G];if(H!=K){return}z=h[J+"-bottom"+G];if(K!=z){return}I=h[J+"-left"+G];if(z!=I){return}h[J+G]=I;delete h[J+"-top"+G];delete h[J+"-right"+G];delete h[J+"-bottom"+G];delete h[J+"-left"+G]}function m(E){var D=h[E],z;if(!D||D.indexOf(" ")<0){return}D=D.split(" ");z=D.length;while(z--){if(D[z]!==D[0]){return false}}h[E]=D[0];return true}function g(F,G,z,E){if(!m(G)){return}if(!m(z)){return}if(!m(E)){return}h[F]=h[G]+" "+h[z]+" "+h[E];delete h[G];delete h[z];delete h[E]}function A(z){b=true;return y[z]}function f(C,z){if(b){C=C.replace(/_[0-9]/g,function(B){return y[B]})}if(!z){C=C.replace(/\\([\'\";:])/g,"$1")}return C}if(a){a=a.replace(/\\[\"\';:_]/g,A).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(z){return z.replace(/[;:]/g,A)});while(c=x.exec(a)){e=c[1].replace(n,"").toLowerCase();k=c[2].replace(n,"");if(e&&k.length>0){if(e==="font-weight"&&k==="700"){k="bold"}else{if(e==="color"||e==="background-color"){k=k.toLowerCase()}}k=k.replace(o,v);k=k.replace(q,function(K,z,H,I,G,J){G=G||J;if(G){G=f(G);return"'"+G.replace(/\'/g,"\\'")+"'"}z=f(z||H||I);if(l){z=l.call(j,z,"style")}return"url('"+z.replace(/\'/g,"\\'")+"')"});h[e]=b?f(k,true):k}x.lastIndex=c.index+c[0].length}d("border","");d("border","-width");d("border","-color");d("border","-style");d("padding","");d("margin","");g("border","border-width","border-style","border-color");if(h.border==="medium none"){delete h.border}}return h},serialize:function(d,b){var e="",f,c;function a(k){var g,j,l,k,h;g=s.styles[k];if(g){for(j=0,l=g.length;j<l;j++){k=g[j];h=d[k];if(h!==t){e+=(e.length>0?" ":"")+k+": "+h+";"}}}}if(b&&s&&s.styles){a("*");a(f)}else{for(f in d){c=d[f];if(c!==t){e+=(e.length>0?" ":"")+f+": "+c+";"}}}return e}}};(function(m){var r={},p,n,s,u,x,t,v=m.makeMap,o=m.each;function q(b,a){return b.split(a||",")}function y(b,c){var e,d={};function a(f){return f.replace(/[A-Z]+/g,function(g){return a(b[g])})}for(e in b){if(b.hasOwnProperty(e)){b[e]=a(b[e])}}a(c).replace(/#/g,"#text").replace(/(\w+)\[([^\]]+)\]\[([^\]]*)\]/g,function(f,h,i,g){i=q(i,"|");d[h]={attributes:v(i),attributesOrder:i,children:v(g,"|",{"#comment":{}})}});return d}n="h1,h2,h3,h4,h5,h6,hr,p,div,address,pre,form,table,tbody,thead,tfoot,th,tr,td,li,ol,ul,caption,blockquote,center,dl,dt,dd,dir,fieldset,noscript,menu,isindex,samp,header,footer,article,section,hgroup";n=v(n,",",v(n.toUpperCase()));r=y({Z:"H|K|N|O|P",Y:"X|form|R|Q",ZG:"E|span|width|align|char|charoff|valign",X:"p|T|div|U|W|isindex|fieldset|table",ZF:"E|align|char|charoff|valign",W:"pre|hr|blockquote|address|center|noframes",ZE:"abbr|axis|headers|scope|rowspan|colspan|align|char|charoff|valign|nowrap|bgcolor|width|height",ZD:"[E][S]",U:"ul|ol|dl|menu|dir",ZC:"p|Y|div|U|W|table|br|span|bdo|object|applet|img|map|K|N|Q",T:"h1|h2|h3|h4|h5|h6",ZB:"X|S|Q",S:"R|P",ZA:"a|G|J|M|O|P",R:"a|H|K|N|O",Q:"noscript|P",P:"ins|del|script",O:"input|select|textarea|label|button",N:"M|L",M:"em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym",L:"sub|sup",K:"J|I",J:"tt|i|b|u|s|strike",I:"big|small|font|basefont",H:"G|F",G:"br|span|bdo",F:"object|applet|img|map|iframe",E:"A|B|C",D:"accesskey|tabindex|onfocus|onblur",C:"onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup",B:"lang|xml:lang|dir",A:"id|class|style|title"},"script[id|charset|type|language|src|defer|xml:space][]style[B|id|type|media|title|xml:space][]object[E|declare|classid|codebase|data|type|codetype|archive|standby|width|height|usemap|name|tabindex|align|border|hspace|vspace][#|param|Y]param[id|name|value|valuetype|type][]p[E|align][#|S]a[E|D|charset|type|name|href|hreflang|rel|rev|shape|coords|target][#|Z]br[A|clear][]span[E][#|S]bdo[A|C|B][#|S]applet[A|codebase|archive|code|object|alt|name|width|height|align|hspace|vspace][#|param|Y]h1[E|align][#|S]img[E|src|alt|name|longdesc|width|height|usemap|ismap|align|border|hspace|vspace][]map[B|C|A|name][X|form|Q|area]h2[E|align][#|S]iframe[A|longdesc|name|src|frameborder|marginwidth|marginheight|scrolling|align|width|height][#|Y]h3[E|align][#|S]tt[E][#|S]i[E][#|S]b[E][#|S]u[E][#|S]s[E][#|S]strike[E][#|S]big[E][#|S]small[E][#|S]font[A|B|size|color|face][#|S]basefont[id|size|color|face][]em[E][#|S]strong[E][#|S]dfn[E][#|S]code[E][#|S]q[E|cite][#|S]samp[E][#|S]kbd[E][#|S]var[E][#|S]cite[E][#|S]abbr[E][#|S]acronym[E][#|S]sub[E][#|S]sup[E][#|S]input[E|D|type|name|value|checked|disabled|readonly|size|maxlength|src|alt|usemap|onselect|onchange|accept|align][]select[E|name|size|multiple|disabled|tabindex|onfocus|onblur|onchange][optgroup|option]optgroup[E|disabled|label][option]option[E|selected|disabled|label|value][]textarea[E|D|name|rows|cols|disabled|readonly|onselect|onchange][]label[E|for|accesskey|onfocus|onblur][#|S]button[E|D|name|value|type|disabled][#|p|T|div|U|W|table|G|object|applet|img|map|K|N|Q]h4[E|align][#|S]ins[E|cite|datetime][#|Y]h5[E|align][#|S]del[E|cite|datetime][#|Y]h6[E|align][#|S]div[E|align][#|Y]ul[E|type|compact][li]li[E|type|value][#|Y]ol[E|type|compact|start][li]dl[E|compact][dt|dd]dt[E][#|S]dd[E][#|Y]menu[E|compact][li]dir[E|compact][li]pre[E|width|xml:space][#|ZA]hr[E|align|noshade|size|width][]blockquote[E|cite][#|Y]address[E][#|S|p]center[E][#|Y]noframes[E][#|Y]isindex[A|B|prompt][]fieldset[E][#|legend|Y]legend[E|accesskey|align][#|S]table[E|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor][caption|col|colgroup|thead|tfoot|tbody|tr]caption[E|align][#|S]col[ZG][]colgroup[ZG][col]thead[ZF][tr]tr[ZF|bgcolor][th|td]th[E|ZE][#|Y]form[E|action|method|name|enctype|onsubmit|onreset|accept|accept-charset|target][#|X|R|Q]noscript[E][#|Y]td[E|ZE][#|Y]tfoot[ZF][tr]tbody[ZF][tr]area[E|D|shape|coords|href|nohref|alt|target][]base[id|href|target][]body[E|onload|onunload|background|bgcolor|text|link|vlink|alink][#|Y]");p=v("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected,preload,autoplay,loop,controls");s=v("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed,source");u=m.extend(v("td,th,iframe,video,object"),s);x=v("pre,script,style");t=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr");m.html.Schema=function(c){var g=this,f={},e={},i=[],d;c=c||{};if(c.verify_html===false){c.valid_elements="*[*]"}if(c.valid_styles){d={};o(c.valid_styles,function(l,A){d[A]=m.explode(l)})}function h(l){return new RegExp("^"+l.replace(/([?+*])/g,".$1")+"$")}function a(ar){var at,ax,ab,af,aa,al,av,ag,ad,ak,ac,Y,ao,au,ae,an,ai,aw,Z,l,am,ah,ap=/^([#+-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/,aj=/^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,aq=/[*?+]/;if(ar){ar=q(ar);if(f["@"]){ai=f["@"].attributes;aw=f["@"].attributesOrder}for(at=0,ax=ar.length;at<ax;at++){al=ap.exec(ar[at]);if(al){ae=al[1];ak=al[2];an=al[3];ad=al[4];ao={};au=[];av={attributes:ao,attributesOrder:au};if(ae==="#"){av.paddEmpty=true}if(ae==="-"){av.removeEmpty=true}if(ai){for(l in ai){ao[l]=ai[l]}au.push.apply(au,aw)}if(ad){ad=q(ad,"|");for(ab=0,af=ad.length;ab<af;ab++){al=aj.exec(ad[ab]);if(al){ag={};Y=al[1];ac=al[2].replace(/::/g,":");ae=al[3];ah=al[4];if(Y==="!"){av.attributesRequired=av.attributesRequired||[];av.attributesRequired.push(ac);ag.required=true}if(Y==="-"){delete ao[ac];au.splice(m.inArray(au,ac),1);continue}if(ae){if(ae==="="){av.attributesDefault=av.attributesDefault||[];av.attributesDefault.push({name:ac,value:ah});ag.defaultValue=ah}if(ae===":"){av.attributesForced=av.attributesForced||[];av.attributesForced.push({name:ac,value:ah});ag.forcedValue=ah}if(ae==="<"){ag.validValues=v(ah,"?")}}if(aq.test(ac)){av.attributePatterns=av.attributePatterns||[];ag.pattern=h(ac);av.attributePatterns.push(ag)}else{if(!ao[ac]){au.push(ac)}ao[ac]=ag}}}}if(!ai&&ak=="@"){ai=ao;aw=au}if(an){av.outputName=ak;f[an]=av}if(aq.test(ak)){av.pattern=h(ak);i.push(av)}else{f[ak]=av}}}}}function j(l){f={};i=[];a(l);o(r,function(B,C){e[C]=B.children})}function b(l){var A=/^(~)?(.+)$/;if(l){o(q(l),function(F){var G=A.exec(F),E=G[1]==="~"?"span":"div",z=G[2];e[z]=e[E];o(e,function(C,B){if(C[E]){C[z]=C[E]}})})}}function k(l){var A=/^([+\-]?)(\w+)\[([^\]]+)\]$/;if(l){o(q(l),function(E){var F=A.exec(E),z,G;if(F){G=F[1];if(G){z=e[F[2]]}else{z=e[F[2]]={"#comment":{}}}z=e[F[2]];o(q(F[3],"|"),function(B){if(G==="-"){delete z[B]}else{z[B]={}}})}})}}if(!c.valid_elements){o(r,function(l,A){f[A]={attributes:l.attributes,attributesOrder:l.attributesOrder};e[A]=l.children});o(q("strong/b,em/i"),function(l){l=q(l,"/");f[l[1]].outputName=l[0]});f.img.attributesDefault=[{name:"alt",value:""}];o(q("ol,ul,li,sub,sup,blockquote,tr,div,span,font,a,table,tbody"),function(l){f[l].removeEmpty=true});o(q("p,h1,h2,h3,h4,h5,h6,th,td,pre,div,address,caption"),function(l){f[l].paddEmpty=true})}else{j(c.valid_elements)}b(c.custom_elements);k(c.valid_children);a(c.extended_valid_elements);k("+ol[ul|ol],+ul[ul|ol]");if(c.invalid_elements){m.each(m.explode(c.invalid_elements),function(l){if(f[l]){delete f[l]}})}g.children=e;g.styles=d;g.getBoolAttrs=function(){return p};g.getBlockElements=function(){return n};g.getShortEndedElements=function(){return s};g.getSelfClosingElements=function(){return t};g.getNonEmptyElements=function(){return u};g.getWhiteSpaceElements=function(){return x};g.isValidChild=function(C,l){var B=e[C];return !!(B&&B[l])};g.getElementRule=function(C){var l=f[C],B;if(l){return l}B=i.length;while(B--){l=i[B];if(l.pattern.test(C)){return l}}};g.addValidElements=a;g.setValidElements=j;g.addCustomElements=b;g.addValidChildren=k};m.html.Schema.boolAttrMap=p;m.html.Schema.blockElementsMap=n})(tinymce);(function(b){b.html.SaxParser=function(h,f){var a=this,g=function(){};h=h||{};a.schema=f=f||new b.html.Schema();if(h.fix_self_closing!==false){h.fix_self_closing=true}b.each("comment cdata text start end pi doctype".split(" "),function(c){if(c){a[c]=h[c]||g}});a.parse=function(af){var ag=this,aq,ak=0,V,an,al=[],ae,O,Z,c,X,am,ah,S,R,ad,Y,ai,Q,aj,T,d,e,i,ab,ao,ap,W,aa=0,U=b.html.Entities.decode,P;function ac(l){var j,k;j=al.length;while(j--){if(al[j].name===l){break}}if(j>=0){for(k=al.length-1;k>=j;k--){l=al[k];if(l.valid){ag.end(l.name)}}al.length=j}}ab=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([^\\s\\/<>]+)\\s*((?:[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*)>))","g");ao=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:\\.|[^\"])*)\")|(?:\'((?:\\.|[^\'])*)\')|([^>\s]+)))?/g;ap={script:/<\/script[^>]*>/gi,style:/<\/style[^>]*>/gi,noscript:/<\/noscript[^>]*>/gi};X=f.getShortEndedElements();i=f.getSelfClosingElements();am=f.getBoolAttrs();S=h.validate;P=h.fix_self_closing;while(aq=ab.exec(af)){if(ak<aq.index){ag.text(U(af.substr(ak,aq.index-ak)))}if(V=aq[6]){ac(V.toLowerCase())}else{if(V=aq[7]){V=V.toLowerCase();ah=V in X;if(P&&i[V]&&al.length>0&&al[al.length-1].name===V){ac(V)}if(!S||(R=f.getElementRule(V))){ad=true;if(S){Q=R.attributes;aj=R.attributePatterns}if(ai=aq[8]){ae=[];ae.map={};ai.replace(ao,function(o,p,k,l,m){var j,n;p=p.toLowerCase();k=p in am?p:U(k||l||m||"");if(S&&p.indexOf("data-")!==0){j=Q[p];if(!j&&aj){n=aj.length;while(n--){j=aj[n];if(j.pattern.test(p)){break}}if(n===-1){j=null}}if(!j){return}if(j.validValues&&!(k in j.validValues)){return}}ae.map[p]=k;ae.push({name:p,value:k})})}else{ae=[];ae.map={}}if(S){T=R.attributesRequired;d=R.attributesDefault;e=R.attributesForced;if(e){O=e.length;while(O--){Y=e[O];c=Y.name;W=Y.value;if(W==="{$uid}"){W="mce_"+aa++}ae.map[c]=W;ae.push({name:c,value:W})}}if(d){O=d.length;while(O--){Y=d[O];c=Y.name;if(!(c in ae.map)){W=Y.value;if(W==="{$uid}"){W="mce_"+aa++}ae.map[c]=W;ae.push({name:c,value:W})}}}if(T){O=T.length;while(O--){if(T[O] in ae.map){break}}if(O===-1){ad=false}}if(ae.map["data-mce-bogus"]){ad=false}}if(ad){ag.start(V,ae,ah)}}else{ad=false}if(an=ap[V]){an.lastIndex=ak=aq.index+aq[0].length;if(aq=an.exec(af)){if(ad){Z=af.substr(ak,aq.index-ak)}ak=aq.index+aq[0].length}else{Z=af.substr(ak);ak=af.length}if(ad&&Z.length>0){ag.text(Z,true)}if(ad){ag.end(V)}ab.lastIndex=ak;continue}if(!ah){if(!ai||ai.indexOf("/")!=ai.length-1){al.push({name:V,valid:ad})}else{if(ad){ag.end(V)}}}}else{if(V=aq[1]){ag.comment(V)}else{if(V=aq[2]){ag.cdata(V)}else{if(V=aq[3]){ag.doctype(V)}else{if(V=aq[4]){ag.pi(V,aq[5])}}}}}}ak=aq.index+aq[0].length}if(ak<af.length){ag.text(U(af.substr(ak)))}for(O=al.length-1;O>=0;O--){V=al[O];if(V.valid){ag.end(V.name)}}}}})(tinymce);(function(i){var j=/^[ \t\r\n]*$/,h={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};function g(b,a,c){var d,e,n=c?"lastChild":"firstChild",m=c?"prev":"next";if(b[n]){return b[n]}if(b!==a){d=b[m];if(d){return d}for(e=b.parent;e&&e!==a;e=e.parent){d=e[m];if(d){return d}}}}function f(b,a){this.name=b;this.type=a;if(a===1){this.attributes=[];this.attributes.map={}}}i.extend(f.prototype,{replace:function(a){var b=this;if(a.parent){a.remove()}b.insert(a,b);b.remove();return b},attr:function(d,a){var m=this,e,c,b;if(typeof d!=="string"){for(c in d){m.attr(c,d[c])}return m}if(e=m.attributes){if(a!==b){if(a===null){if(d in e.map){delete e.map[d];c=e.length;while(c--){if(e[c].name===d){e=e.splice(c,1);return m}}}return m}if(d in e.map){c=e.length;while(c--){if(e[c].name===d){e[c].value=a;break}}}else{e.push({name:d,value:a})}e.map[d]=a;return m}else{return e.map[d]}}},clone:function(){var e=this,o=new f(e.name,e.type),d,l,a,c,b;if(a=e.attributes){b=[];b.map={};for(d=0,l=a.length;d<l;d++){c=a[d];if(c.name!=="id"){b[b.length]={name:c.name,value:c.value};b.map[c.name]=c.value}}o.attributes=b}o.value=e.value;o.shortEnded=e.shortEnded;return o},wrap:function(a){var b=this;b.parent.insert(a,b);a.append(b);return b},unwrap:function(){var c=this,a,b;for(a=c.firstChild;a;){b=a.next;c.insert(a,c,true);a=b}c.remove()},remove:function(){var d=this,b=d.parent,c=d.next,a=d.prev;if(b){if(b.firstChild===d){b.firstChild=c;if(c){c.prev=null}}else{a.next=c}if(b.lastChild===d){b.lastChild=a;if(a){a.next=null}}else{c.prev=a}d.parent=d.next=d.prev=null}return d},append:function(a){var c=this,b;if(a.parent){a.remove()}b=c.lastChild;if(b){b.next=a;a.prev=b;c.lastChild=a}else{c.lastChild=c.firstChild=a}a.parent=c;return a},insert:function(b,d,a){var c;if(b.parent){b.remove()}c=d.parent||this;if(a){if(d===c.firstChild){c.firstChild=b}else{d.prev.next=b}b.prev=d.prev;b.next=d;d.prev=b}else{if(d===c.lastChild){c.lastChild=b}else{d.next.prev=b}b.next=d.next;b.prev=d;d.next=b}b.parent=c;return b},getAll:function(c){var d=this,b,a=[];for(b=d.firstChild;b;b=g(b,d)){if(b.name===c){a.push(b)}}return a},empty:function(){var c=this,d,b,a;if(c.firstChild){d=[];for(a=c.firstChild;a;a=g(a,c)){d.push(a)}b=d.length;while(b--){a=d[b];a.parent=a.firstChild=a.lastChild=a.next=a.prev=null}}c.firstChild=c.lastChild=null;return c},isEmpty:function(a){var d=this,b=d.firstChild,c;if(b){do{if(b.type===1){if(b.attributes.map["data-mce-bogus"]){continue}if(a[b.name]){return false}c=b.attributes.length;while(c--){if(b.attributes[c].name.indexOf("data-")===0){return false}}}if((b.type===3&&!j.test(b.value))){return false}}while(b=g(b,d))}return true}});i.extend(f,{create:function(c,d){var a,b;a=new f(c,h[c]||1);if(d){for(b in d){a.attr(b,d[b])}}return a}});i.html.Node=f})(tinymce);(function(c){var d=c.html.Node;c.html.DomParser=function(i,b){var j=this,k={},l=[];i=i||{};i.root_name=i.root_name||"body";j.schema=b=b||new c.html.Schema();function a(B){var z,h,G,H,E,A,g,C,J,I,D,e,F,f;e=c.makeMap("tr,td,th,tbody,thead,tfoot,table");D=b.getNonEmptyElements();for(z=0;z<B.length;z++){h=B[z];if(!h.parent){continue}H=[h];for(G=h.parent;G&&!b.isValidChild(G.name,h.name)&&!e[G.name];G=G.parent){H.push(G)}if(G&&H.length>1){H.reverse();E=A=H[0].clone();for(J=0;J<H.length-1;J++){if(b.isValidChild(A.name,H[J].name)){g=H[J].clone();A.append(g)}else{g=A}for(C=H[J].firstChild;C&&C!=H[J+1];){f=C.next;g.append(C);C=f}A=g}if(!E.isEmpty(D)){G.insert(E,H[0],true);G.insert(h,E)}else{G.insert(h,H[0],true)}if(H[0].isEmpty(D)){H[0].empty().remove()}}else{if(h.parent){if(h.name==="li"){F=h.prev;if(F&&(F.name==="ul"||F.name==="ul")){F.append(h);continue}F=h.next;if(F&&(F.name==="ul"||F.name==="ul")){F.insert(h,F.firstChild,true);continue}h.wrap(new d("ul",1));continue}if(b.isValidChild(h.parent.name,"div")&&b.isValidChild("div",h.name)){h.wrap(new d("div",1))}else{if(h.name==="style"||h.name==="script"){h.empty().remove()}else{h.unwrap()}}}}}}j.addNodeFilter=function(f,e){c.each(c.explode(f),function(h){var g=k[h];if(!g){k[h]=g=[]}g.push(e)})};j.addAttributeFilter=function(f,e){c.each(c.explode(f),function(h){var g;for(g=0;g<l.length;g++){if(l[g].name===h){l[g].callbacks.push(e);return}}l.push({name:h,callbacks:[e]})})};j.parse=function(J,Y){var X,N,e,f,Z={},V={},T,U,g,R,P,h,W,Q,I=[],M,aa,O,S,L;Y=Y||{};W=c.extend(c.makeMap("script,style,head,title,meta,param"),b.getBlockElements());L=b.getNonEmptyElements();S=b.children;O=b.getWhiteSpaceElements();Q=/^[ \t\r\n]+/;M=/[ \t\r\n]+$/;aa=/[ \t\r\n]+/g;function K(p,m){var o=new d(p,m),n;if(p in k){n=Z[p];if(n){n.push(o)}else{Z[p]=[o]}}return o}X=new c.html.SaxParser({validate:i.validate,fix_self_closing:false,cdata:function(m){e.append(K("#cdata",4)).value=m},text:function(n,o){var m;if(!O[e.name]){n=n.replace(aa," ");if(e.lastChild&&W[e.lastChild.name]){n=n.replace(Q,"")}}if(n.length!==0){m=K("#text",3);m.raw=!!o;e.append(m).value=n}},comment:function(m){e.append(K("#comment",8)).value=m},pi:function(n,m){e.append(K(n,7)).value=m},doctype:function(m){e.append(K("#doctype",10)).value=m},start:function(n,p,x){var r,u,v,m,t,o,q,s;v=b.getElementRule(n);if(v){r=K(v.outputName||n,1);r.attributes=p;r.shortEnded=x;e.append(r);s=S[e.name];if(s&&S[r.name]&&!s[r.name]){I.push(r)}u=l.length;while(u--){t=l[u].name;if(t in p.map){P=V[t];if(P){P.push(r)}else{V[t]=[r]}}}if(W[n]){for(m=r.prev;m&&m.type===3;){o=m.value.replace(M,"");if(o.length>0){m.value=o;m=m.prev}else{q=m.prev;m.remove();m=q}}}if(!x){e=r}}},end:function(r){var m,q,o,n,p;q=b.getElementRule(r);if(q){if(W[r]){if(!O[e.name]){for(m=e.firstChild;m&&m.type===3;){o=m.value.replace(Q,"");if(o.length>0){m.value=o;m=m.next}else{n=m.next;m.remove();m=n}}for(m=e.lastChild;m&&m.type===3;){o=m.value.replace(M,"");if(o.length>0){m.value=o;m=m.prev}else{n=m.prev;m.remove();m=n}}}m=e.prev;if(m&&m.type===3){o=m.value.replace(Q,"");if(o.length>0){m.value=o}else{m.remove()}}}if(q.removeEmpty||q.paddEmpty){if(e.isEmpty(L)){if(q.paddEmpty){e.empty().append(new d("#text","3")).value="\u00a0"}else{if(!e.attributes.map.name){p=e.parent;e.empty().remove();e=p;return}}}}e=e.parent}}},b);N=e=new d(i.root_name,11);X.parse(J);a(I);for(h in Z){P=k[h];f=Z[h];g=f.length;while(g--){if(!f[g].parent){f.splice(g,1)}}for(T=0,U=P.length;T<U;T++){P[T](f,h,Y)}}for(T=0,U=l.length;T<U;T++){P=l[T];if(P.name in V){f=V[P.name];g=f.length;while(g--){if(!f[g].parent){f.splice(g,1)}}for(g=0,R=P.callbacks.length;g<R;g++){P.callbacks[g](f,P.name,Y)}}}return N};if(i.remove_trailing_brs){j.addNodeFilter("br",function(v,x){var f,g=v.length,u,z=b.getBlockElements(),y=b.getNonEmptyElements(),e,h,A;for(f=0;f<g;f++){u=v[f];e=u.parent;if(z[u.parent.name]&&u===e.lastChild){h=u.prev;while(h){A=h.name;if(A!=="span"||h.attr("data-mce-type")!=="bookmark"){if(A!=="br"){break}if(A==="br"){u=null;break}}h=h.prev}if(u){u.remove();if(e.isEmpty(y)){elementRule=b.getElementRule(e.name);if(elementRule.removeEmpty){e.remove()}else{if(elementRule.paddEmpty){e.empty().append(new c.html.Node("#text",3)).value="\u00a0"}}}}}}})}}})(tinymce);tinymce.html.Writer=function(l){var n=[],i,h,m,k,j;l=l||{};i=l.indent;h=tinymce.makeMap(l.indent_before||"");m=tinymce.makeMap(l.indent_after||"");k=tinymce.html.Entities.getEncodeFunc(l.entity_encoding||"raw",l.entities);j=l.element_format=="html";return{start:function(a,b,e){var g,c,d,f;if(i&&h[a]&&n.length>0){f=n[n.length-1];if(f.length>0&&f!=="\n"){n.push("\n")}}n.push("<",a);if(b){for(g=0,c=b.length;g<c;g++){d=b[g];n.push(" ",d.name,'="',k(d.value,true),'"')}}if(!e||j){n[n.length]=">"}else{n[n.length]=" />"}},end:function(b){var a;n.push("</",b,">");if(i&&m[b]&&n.length>0){a=n[n.length-1];if(a.length>0&&a!=="\n"){n.push("\n")}}},text:function(a,b){if(a.length>0){n[n.length]=b?a:k(a)}},cdata:function(a){n.push("<![CDATA[",a,"]]>")},comment:function(a){n.push("<!--",a,"-->")},pi:function(b,a){if(a){n.push("<?",b," ",a,"?>")}else{n.push("<?",b,"?>")}},doctype:function(a){n.push("<!DOCTYPE",a,">")},reset:function(){n.length=0},getContent:function(){return n.join("").replace(/\n$/,"")}}};(function(b){b.html.Serializer=function(h,g){var a=this,f=new b.html.Writer(h);h=h||{};h.validate="validate" in h?h.validate:true;a.schema=g=g||new b.html.Schema();a.writer=f;a.serialize=function(d){var e,c;c=h.validate;e={3:function(i,l){f.text(i.value,i.raw)},8:function(i){f.comment(i.value)},7:function(i){f.pi(i.name,i.value)},10:function(i){f.doctype(i.value)},4:function(i){f.cdata(i.value)},11:function(i){if((i=i.firstChild)){do{j(i)}while(i=i.next)}}};f.reset();function j(A){var D=e[A.type],B,x,E,i,v,C,y,z,l;if(!D){B=A.name;x=A.shortEnded;E=A.attributes;if(c&&E&&E.length>1){C=[];C.map={};l=g.getElementRule(A.name);for(y=0,z=l.attributesOrder.length;y<z;y++){i=l.attributesOrder[y];if(i in E.map){v=E.map[i];C.map[i]=v;C.push({name:i,value:v})}}for(y=0,z=E.length;y<z;y++){i=E[y].name;if(!(i in C.map)){v=E.map[i];C.map[i]=v;C.push({name:i,value:v})}}E=C}f.start(A.name,E,x);if(!x){if((A=A.firstChild)){do{j(A)}while(A=A.next)}f.end(B)}}else{D(A)}}if(d.type==1&&!h.inner){j(d)}else{e[11](d)}return f.getContent()}}})(tinymce);(function(o){var m=o.each,p=o.is,n=o.isWebKit,j=o.isIE,k=o.html.Entities,i=/^([a-z0-9],?)+$/i,l=o.html.Schema.blockElementsMap;o.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(a,c){var d=this,e;d.doc=a;d.win=window;d.files={};d.cssFlicker=false;d.counter=0;d.stdMode=!o.isIE||a.documentMode>=8;d.boxModel=!o.isIE||a.compatMode=="CSS1Compat"||d.stdMode;d.hasOuterHTML="outerHTML" in a.createElement("a");d.settings=c=o.extend({keep_values:false,hex_colors:1},c);d.styles=new o.html.Styles({url_converter:c.url_converter,url_converter_scope:c.url_converter_scope},c.schema);if(o.isIE6){try{a.execCommand("BackgroundImageCache",false,true)}catch(b){d.cssFlicker=true}}if(j){("abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video").replace(/\w+/g,function(f){a.createElement(f)})}o.addUnload(d.destroy,d)},getRoot:function(){var b=this,a=b.settings;return(a&&b.get(a.root_element))||b.doc.body},getViewPort:function(b){var a,c;b=!b?this.win:b;a=b.document;c=this.boxModel?a.documentElement:a.body;return{x:b.pageXOffset||c.scrollLeft,y:b.pageYOffset||c.scrollTop,w:b.innerWidth||c.clientWidth,h:b.innerHeight||c.clientHeight}},getRect:function(a){var b,d=this,c;a=d.get(a);b=d.getPos(a);c=d.getSize(a);return{x:b.x,y:b.y,w:c.w,h:c.h}},getSize:function(a){var c=this,d,b;a=c.get(a);d=c.getStyle(a,"width");b=c.getStyle(a,"height");if(d.indexOf("px")===-1){d=0}if(b.indexOf("px")===-1){b=0}return{w:parseInt(d)||a.offsetWidth||a.clientWidth,h:parseInt(b)||a.offsetHeight||a.clientHeight}},getParent:function(a,b,c){return this.getParents(a,b,c,false)},getParents:function(f,a,c,g){var d=this,e,b=d.settings,h=[];f=d.get(f);g=g===undefined;if(b.strict_root){c=c||d.getRoot()}if(p(a,"string")){e=a;if(a==="*"){a=function(q){return q.nodeType==1}}else{a=function(q){return d.is(q,e)}}}while(f){if(f==c||!f.nodeType||f.nodeType===9){break}if(!a||a(f)){if(g){h.push(f)}else{return f}}f=f.parentNode}return g?h:null},get:function(b){var a;if(b&&this.doc&&typeof(b)=="string"){a=b;b=this.doc.getElementById(b);if(b&&b.id!==a){return this.doc.getElementsByName(a)[1]}}return b},getNext:function(a,b){return this._findSib(a,b,"nextSibling")},getPrev:function(a,b){return this._findSib(a,b,"previousSibling")},add:function(b,f,e,c,a){var d=this;return this.run(b,function(g){var h,s;h=p(f,"string")?d.doc.createElement(f):f;d.setAttribs(h,e);if(c){if(c.nodeType){h.appendChild(c)}else{d.setHTML(h,c)}}return !a?g.appendChild(h):h})},create:function(a,c,b){return this.add(this.doc.createElement(a),a,c,b,1)},createHTML:function(e,d,a){var f="",b=this,c;f+="<"+e;for(c in d){if(d.hasOwnProperty(c)){f+=" "+c+'="'+b.encode(d[c])+'"'}}if(typeof(a)!="undefined"){return f+">"+a+"</"+e+">"}return f+" />"},remove:function(b,a){return this.run(b,function(d){var e,c;e=d.parentNode;if(!e){return null}if(a){while(c=d.firstChild){if(!o.isIE||c.nodeType!==3||c.nodeValue){e.insertBefore(c,d)}else{d.removeChild(c)}}}return e.removeChild(d)})},setStyle:function(a,d,c){var b=this;return b.run(a,function(f){var g,e;g=f.style;d=d.replace(/-(\D)/g,function(h,r){return r.toUpperCase()});if(b.pixelStyles.test(d)&&(o.is(c,"number")||/^[\-0-9\.]+$/.test(c))){c+="px"}switch(d){case"opacity":if(j){g.filter=c===""?"":"alpha(opacity="+(c*100)+")";if(!a.currentStyle||!a.currentStyle.hasLayout){g.display="inline-block"}}g[d]=g["-moz-opacity"]=g["-khtml-opacity"]=c||"";break;case"float":j?g.styleFloat=c:g.cssFloat=c;break;default:g[d]=c||""}if(b.settings.update_styles){b.setAttrib(f,"data-mce-style")}})},getStyle:function(a,d,b){a=this.get(a);if(!a){return false}if(this.doc.defaultView&&b){d=d.replace(/[A-Z]/g,function(e){return"-"+e});try{return this.doc.defaultView.getComputedStyle(a,null).getPropertyValue(d)}catch(c){return null}}d=d.replace(/-(\D)/g,function(f,e){return e.toUpperCase()});if(d=="float"){d=j?"styleFloat":"cssFloat"}if(a.currentStyle&&b){return a.currentStyle[d]}return a.style[d]},setStyles:function(b,a){var d=this,c=d.settings,e;e=c.update_styles;c.update_styles=0;m(a,function(g,f){d.setStyle(b,f,g)});c.update_styles=e;if(c.update_styles){d.setAttrib(b,c.cssText)}},removeAllAttribs:function(a){return this.run(a,function(b){var d=b.attributes;for(var c=d.length-1;c>=0;c--){b.removeAttributeNode(d.item(c))}})},setAttrib:function(b,a,d){var c=this;if(!b||!a){return}if(c.settings.strict){a=a.toLowerCase()}return this.run(b,function(f){var e=c.settings;switch(a){case"style":if(!p(d,"string")){m(d,function(h,g){c.setStyle(f,g,h)});return}if(e.keep_values){if(d&&!c._isRes(d)){f.setAttribute("data-mce-style",d,2)}else{f.removeAttribute("data-mce-style",2)}}f.style.cssText=d;break;case"class":f.className=d||"";break;case"src":case"href":if(e.keep_values){if(e.url_converter){d=e.url_converter.call(e.url_converter_scope||c,d,a,f)}c.setAttrib(f,"data-mce-"+a,d,2)}break;case"shape":f.setAttribute("data-mce-style",d);break}if(p(d)&&d!==null&&d.length!==0){f.setAttribute(a,""+d,2)}else{f.removeAttribute(a,2)}})},setAttribs:function(b,a){var c=this;return this.run(b,function(d){m(a,function(e,f){c.setAttrib(d,f,e)})})},getAttrib:function(b,a,c){var e,d=this;b=d.get(b);if(!b||b.nodeType!==1){return false}if(!p(c)){c=""}if(/^(src|href|style|coords|shape)$/.test(a)){e=b.getAttribute("data-mce-"+a);if(e){return e}}if(j&&d.props[a]){e=b[d.props[a]];e=e&&e.nodeValue?e.nodeValue:e}if(!e){e=b.getAttribute(a,2)}if(/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(a)){if(b[d.props[a]]===true&&e===""){return a}return e?a:""}if(b.nodeName==="FORM"&&b.getAttributeNode(a)){return b.getAttributeNode(a).nodeValue}if(a==="style"){e=e||b.style.cssText;if(e){e=d.serializeStyle(d.parseStyle(e),b.nodeName);if(d.settings.keep_values&&!d._isRes(e)){b.setAttribute("data-mce-style",e)}}}if(n&&a==="class"&&e){e=e.replace(/(apple|webkit)\-[a-z\-]+/gi,"")}if(j){switch(a){case"rowspan":case"colspan":if(e===1){e=""}break;case"size":if(e==="+0"||e===20||e===0){e=""}break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":if(e===0){e=""}break;case"hspace":if(e===-1){e=""}break;case"maxlength":case"tabindex":if(e===32768||e===2147483647||e==="32768"){e=""}break;case"multiple":case"compact":case"noshade":case"nowrap":if(e===65535){return a}return c;case"shape":e=e.toLowerCase();break;default:if(a.indexOf("on")===0&&e){e=o._replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1",""+e)}}}return(e!==undefined&&e!==null&&e!=="")?""+e:c},getPos:function(f,b){var d=this,e=0,g=0,a,h=d.doc,c;f=d.get(f);b=b||h.body;if(f){if(j&&!d.stdMode){f=f.getBoundingClientRect();a=d.boxModel?h.documentElement:h.body;e=d.getStyle(d.select("html")[0],"borderWidth");e=(e=="medium"||d.boxModel&&!d.isIE6)&&2||e;return{x:f.left+a.scrollLeft-e,y:f.top+a.scrollTop-e}}c=f;while(c&&c!=b&&c.nodeType){e+=c.offsetLeft||0;g+=c.offsetTop||0;c=c.offsetParent}c=f.parentNode;while(c&&c!=b&&c.nodeType){e-=c.scrollLeft||0;g-=c.scrollTop||0;c=c.parentNode}}return{x:e,y:g}},parseStyle:function(a){return this.styles.parse(a)},serializeStyle:function(a,b){return this.styles.serialize(a,b)},loadCSS:function(d){var b=this,a=b.doc,c;if(!d){d=""}c=b.select("head")[0];m(d.split(","),function(e){var f;if(b.files[e]){return}b.files[e]=true;f=b.create("link",{rel:"stylesheet",href:o._addVer(e)});if(j&&a.documentMode&&a.recalc){f.onload=function(){if(a.recalc){a.recalc()}f.onload=null}}c.appendChild(f)})},addClass:function(b,a){return this.run(b,function(d){var c;if(!a){return 0}if(this.hasClass(d,a)){return d.className}c=this.removeClass(d,a);return d.className=(c!=""?(c+" "):"")+a})},removeClass:function(b,a){var d=this,c;return d.run(b,function(f){var e;if(d.hasClass(f,a)){if(!c){c=new RegExp("(^|\\s+)"+a+"(\\s+|$)","g")}e=f.className.replace(c," ");e=o.trim(e!=" "?e:"");f.className=e;if(!e){f.removeAttribute("class");f.removeAttribute("className")}return e}return f.className})},hasClass:function(a,b){a=this.get(a);if(!a||!b){return false}return(" "+a.className+" ").indexOf(" "+b+" ")!==-1},show:function(a){return this.setStyle(a,"display","block")},hide:function(a){return this.setStyle(a,"display","none")},isHidden:function(a){a=this.get(a);return !a||a.style.display=="none"||this.getStyle(a,"display")=="none"},uniqueId:function(a){return(!a?"mce_":a)+(this.counter++)},setHTML:function(a,b){var c=this;return c.run(a,function(d){if(j){while(d.firstChild){d.removeChild(d.firstChild)}try{d.innerHTML="<br />"+b;d.removeChild(d.firstChild)}catch(e){d=c.create("div");d.innerHTML="<br />"+b;m(d.childNodes,function(f,g){if(g){d.appendChild(f)}})}}else{d.innerHTML=b}return b})},getOuterHTML:function(a){var b,c=this;a=c.get(a);if(!a){return null}if(a.nodeType===1&&c.hasOuterHTML){return a.outerHTML}b=(a.ownerDocument||c.doc).createElement("body");b.appendChild(a.cloneNode(true));return b.innerHTML},setOuterHTML:function(b,d,a){var e=this;function c(t,u,g){var f,h;h=g.createElement("body");h.innerHTML=u;f=h.lastChild;while(f){e.insertAfter(f.cloneNode(true),t);f=f.previousSibling}e.remove(t)}return this.run(b,function(f){f=e.get(f);if(f.nodeType==1){a=a||f.ownerDocument||e.doc;if(j){try{if(j&&f.nodeType==1){f.outerHTML=d}else{c(f,d,a)}}catch(g){c(f,d,a)}}else{c(f,d,a)}}})},decode:k.decode,encode:k.encodeAllRaw,insertAfter:function(b,a){a=this.get(a);return this.run(b,function(d){var e,c;e=a.parentNode;c=a.nextSibling;if(c){e.insertBefore(d,c)}else{e.appendChild(d)}return d})},isBlock:function(a){var b=a.nodeType;if(b){return !!(b===1&&l[a.nodeName])}return !!l[a]},replace:function(a,b,d){var c=this;if(p(b,"array")){a=a.cloneNode(true)}return c.run(b,function(e){if(d){m(o.grep(e.childNodes),function(f){a.appendChild(f)})}return e.parentNode.replaceChild(a,e)})},rename:function(a,d){var b=this,c;if(a.nodeName!=d.toUpperCase()){c=b.create(d);m(b.getAttribs(a),function(e){b.setAttrib(c,e.nodeName,b.getAttrib(a,e.nodeName))});b.replace(c,a,1)}return c||a},findCommonAncestor:function(b,d){var a=b,c;while(a){c=d;while(c&&a!=c){c=c.parentNode}if(a==c){break}a=a.parentNode}if(!a&&b.ownerDocument){return b.ownerDocument.documentElement}return a},toHex:function(c){var a=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(c);function b(d){d=parseInt(d).toString(16);return d.length>1?d:"0"+d}if(a){c="#"+b(a[1])+b(a[2])+b(a[3]);return c}return c},getClasses:function(){var h=this,d=[],a,g={},f=h.settings.class_filter,b;if(h.classes){return h.classes}function e(q){m(q.imports,function(r){e(r)});m(q.cssRules||q.rules,function(r){switch(r.type||1){case 1:if(r.selectorText){m(r.selectorText.split(","),function(s){s=s.replace(/^\s*|\s*$|^\s\./g,"");if(/\.mce/.test(s)||!/\.[\w\-]+$/.test(s)){return}b=s;s=o._replace(/.*\.([a-z0-9_\-]+).*/i,"$1",s);if(f&&!(s=f(s,b))){return}if(!g[s]){d.push({"class":s});g[s]=1}})}break;case 3:e(r.styleSheet);break}})}try{m(h.doc.styleSheets,e)}catch(c){}if(d.length>0){h.classes=d}return d},run:function(b,c,d){var e=this,a;if(e.doc&&typeof(b)==="string"){b=e.get(b)}if(!b){return false}d=d||this;if(!b.nodeType&&(b.length||b.length===0)){a=[];m(b,function(f,g){if(f){if(typeof(f)=="string"){f=e.doc.getElementById(f)}a.push(c.call(d,f,g))}});return a}return c.call(d,b)},getAttribs:function(a){var b;a=this.get(a);if(!a){return[]}if(j){b=[];if(a.nodeName=="OBJECT"){return a.attributes}if(a.nodeName==="OPTION"&&this.getAttrib(a,"selected")){b.push({specified:1,nodeName:"selected"})}a.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(c){b.push({specified:1,nodeName:c})});return b}return a.attributes},destroy:function(a){var b=this;if(b.events){b.events.destroy()}b.win=b.doc=b.root=b.events=null;if(!a){o.removeUnload(b.destroy)}},createRng:function(){var a=this.doc;return a.createRange?a.createRange():new o.dom.Range(this)},nodeIndex:function(h,g){var e=0,b,a,c,d;if(h){for(b=h.nodeType,h=h.previousSibling,a=h;h;h=h.previousSibling){c=h.nodeType;if(g&&c==3){d=false;try{d==h.nodeValue.length}catch(f){}if(c==b||!d){continue}}e++;b=c}}return e},split:function(e,f,b){var a=this,r=a.createRng(),d,g,c;function h(q){var u,v=q.childNodes;if(q.nodeType==1&&q.getAttribute("data-mce-type")=="bookmark"){return}for(u=v.length-1;u>=0;u--){h(v[u])}if(q.nodeType!=9){if(q.nodeType==3&&q.nodeValue.length>0){if(!a.isBlock(q.parentNode)||o.trim(q.nodeValue).length>0){return}}if(q.nodeType==1){v=q.childNodes;if(v.length==1&&v[0]&&v[0].nodeType==1&&v[0].getAttribute("data-mce-type")=="bookmark"){q.parentNode.insertBefore(v[0],q)}if(v.length||/^(br|hr|input|img)$/i.test(q.nodeName)){return}}a.remove(q)}return q}if(e&&f){r.setStart(e.parentNode,a.nodeIndex(e));r.setEnd(f.parentNode,a.nodeIndex(f));d=r.extractContents();r=a.createRng();r.setStart(f.parentNode,a.nodeIndex(f)+1);r.setEnd(e.parentNode,a.nodeIndex(e)+1);g=r.extractContents();c=e.parentNode;c.insertBefore(h(d),e);if(b){c.replaceChild(b,f)}else{c.insertBefore(f,e)}c.insertBefore(h(g),e);a.remove(e);return b||f}},bind:function(a,e,b,c){var d=this;if(!d.events){d.events=new o.dom.EventUtils()}return d.events.add(a,e,b,c||this)},unbind:function(a,d,b){var c=this;if(!c.events){c.events=new o.dom.EventUtils()}return c.events.remove(a,d,b)},_findSib:function(b,e,d){var c=this,a=e;if(b){if(p(a,"string")){a=function(f){return c.is(f,e)}}for(b=b[d];b;b=b[d]){if(a(b)){return b}}}return null},_isRes:function(a){return/^(top|left|bottom|right|width|height)/i.test(a)||/;\s*(top|left|bottom|right|width|height)/i.test(a)}});o.DOM=new o.dom.DOMUtils(document,{process_html:0})})(tinymce);(function(d){function c(aJ){var Z=this,aH=aJ.doc,t=0,ai=1,aC=2,aj=true,V=false,a="startOffset",aE="startContainer",X="endContainer",an="endOffset",aB=tinymce.extend,ay=aJ.nodeIndex;aB(Z,{startContainer:aH,startOffset:0,endContainer:aH,endOffset:0,collapsed:aj,commonAncestorContainer:aH,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:av,setEnd:at,setStartBefore:aF,setStartAfter:ae,setEndBefore:ad,setEndAfter:ar,collapse:am,selectNode:ap,selectNodeContents:ah,compareBoundaryPoints:aq,deleteContents:aw,extractContents:af,cloneContents:aI,insertNode:ak,surroundContents:aa,cloneRange:ac});function av(e,f){al(aj,e,f)}function at(e,f){al(V,e,f)}function aF(e){av(e.parentNode,ay(e))}function ae(e){av(e.parentNode,ay(e)+1)}function ad(e){at(e.parentNode,ay(e))}function ar(e){at(e.parentNode,ay(e)+1)}function am(e){if(e){Z[X]=Z[aE];Z[an]=Z[a]}else{Z[aE]=Z[X];Z[a]=Z[an]}Z.collapsed=aj}function ap(e){aF(e);ar(e)}function ah(e){av(e,0);at(e,e.nodeType===1?e.childNodes.length:e.nodeValue.length)}function aq(g,m){var n=Z[aE],i=Z[a],e=Z[X],j=Z[an],f=m.startContainer,k=m.startOffset,h=m.endContainer,l=m.endOffset;if(g===0){return ag(n,i,f,k)}if(g===1){return ag(e,j,f,k)}if(g===2){return ag(e,j,h,l)}if(g===3){return ag(n,i,h,l)}}function aw(){az(aC)}function af(){return az(t)}function aI(){return az(ai)}function ak(h){var f=this[aE],g=this[a],i,e;if((f.nodeType===3||f.nodeType===4)&&f.nodeValue){if(!g){f.parentNode.insertBefore(h,f)}else{if(g>=f.nodeValue.length){aJ.insertAfter(h,f)}else{i=f.splitText(g);f.parentNode.insertBefore(h,i)}}}else{if(f.childNodes.length>0){e=f.childNodes[g]}if(e){f.insertBefore(h,e)}else{f.appendChild(h)}}}function aa(e){var f=Z.extractContents();Z.insertNode(e);e.appendChild(f);Z.selectNode(e)}function ac(){return aB(new c(aJ),{startContainer:Z[aE],startOffset:Z[a],endContainer:Z[X],endOffset:Z[an],collapsed:Z.collapsed,commonAncestorContainer:Z.commonAncestorContainer})}function Y(g,f){var e;if(g.nodeType==3){return g}if(f<0){return g}e=g.firstChild;while(e&&f>0){--f;e=e.nextSibling}if(e){return e}return g}function aA(){return(Z[aE]==Z[X]&&Z[a]==Z[an])}function ag(h,f,j,g){var e,i,m,n,k,l;if(h==j){if(f==g){return 0}if(f<g){return -1}return 1}e=j;while(e&&e.parentNode!=h){e=e.parentNode}if(e){i=0;m=h.firstChild;while(m!=e&&i<f){i++;m=m.nextSibling}if(f<=i){return -1}return 1}e=h;while(e&&e.parentNode!=j){e=e.parentNode}if(e){i=0;m=j.firstChild;while(m!=e&&i<g){i++;m=m.nextSibling}if(i<g){return -1}return 1}n=aJ.findCommonAncestor(h,j);k=h;while(k&&k.parentNode!=n){k=k.parentNode}if(!k){k=n}l=j;while(l&&l.parentNode!=n){l=l.parentNode}if(!l){l=n}if(k==l){return 0}m=n.firstChild;while(m){if(m==k){return -1}if(m==l){return 1}m=m.nextSibling}}function al(f,h,i){var g,e;if(f){Z[aE]=h;Z[a]=i}else{Z[X]=h;Z[an]=i}g=Z[X];while(g.parentNode){g=g.parentNode}e=Z[aE];while(e.parentNode){e=e.parentNode}if(e==g){if(ag(Z[aE],Z[a],Z[X],Z[an])>0){Z.collapse(f)}}else{Z.collapse(f)}Z.collapsed=aA();Z.commonAncestorContainer=aJ.findCommonAncestor(Z[aE],Z[X])}function az(n){var e,h=0,k=0,j,f,i,g,m,l;if(Z[aE]==Z[X]){return aG(n)}for(e=Z[X],j=e.parentNode;j;e=j,j=j.parentNode){if(j==Z[aE]){return au(e,n)}++h}for(e=Z[aE],j=e.parentNode;j;e=j,j=j.parentNode){if(j==Z[X]){return b(e,n)}++k}f=k-h;i=Z[aE];while(f>0){i=i.parentNode;f--}g=Z[X];while(f<0){g=g.parentNode;f++}for(m=i.parentNode,l=g.parentNode;m!=l;m=m.parentNode,l=l.parentNode){i=m;g=l}return ax(i,g,n)}function aG(j){var h,k,l,i,g,e,f;if(j!=aC){h=aH.createDocumentFragment()}if(Z[a]==Z[an]){return h}if(Z[aE].nodeType==3){k=Z[aE].nodeValue;l=k.substring(Z[a],Z[an]);if(j!=ai){Z[aE].deleteData(Z[a],Z[an]-Z[a]);Z.collapse(aj)}if(j==aC){return}h.appendChild(aH.createTextNode(l));return h}i=Y(Z[aE],Z[a]);g=Z[an]-Z[a];while(g>0){e=i.nextSibling;f=ao(i,j);if(h){h.appendChild(f)}--g;i=e}if(j!=ai){Z.collapse(aj)}return h}function au(h,k){var j,i,f,g,l,e;if(k!=aC){j=aH.createDocumentFragment()}i=aD(h,k);if(j){j.appendChild(i)}f=ay(h);g=f-Z[a];if(g<=0){if(k!=ai){Z.setEndBefore(h);Z.collapse(V)}return j}i=h.previousSibling;while(g>0){l=i.previousSibling;e=ao(i,k);if(j){j.insertBefore(e,j.firstChild)}--g;i=l}if(k!=ai){Z.setEndBefore(h);Z.collapse(V)}return j}function b(j,k){var h,f,i,g,l,e;if(k!=aC){h=aH.createDocumentFragment()}i=W(j,k);if(h){h.appendChild(i)}f=ay(j);++f;g=Z[an]-f;i=j.nextSibling;while(g>0){l=i.nextSibling;e=ao(i,k);if(h){h.appendChild(e)}--g;i=l}if(k!=ai){Z.setStartAfter(j);Z.collapse(aj)}return h}function ax(f,n,m){var i,k,g,e,o,j,l,h;if(m!=aC){k=aH.createDocumentFragment()}i=W(f,m);if(k){k.appendChild(i)}g=f.parentNode;e=ay(f);o=ay(n);++e;j=o-e;l=f.nextSibling;while(j>0){h=l.nextSibling;i=ao(l,m);if(k){k.appendChild(i)}l=h;--j}i=aD(n,m);if(k){k.appendChild(i)}if(m!=ai){Z.setStartAfter(f);Z.collapse(aj)}return k}function aD(e,m){var i=Y(Z[X],Z[an]-1),k,f,g,l,j,h=i!=Z[X];if(i==e){return ab(i,h,V,m)}k=i.parentNode;f=ab(k,V,V,m);while(k){while(i){g=i.previousSibling;l=ab(i,h,V,m);if(m!=aC){f.insertBefore(l,f.firstChild)}h=aj;i=g}if(k==e){return f}i=k.previousSibling;k=k.parentNode;j=ab(k,V,V,m);if(m!=aC){j.appendChild(f)}f=j}}function W(e,m){var h=Y(Z[aE],Z[a]),g=h!=Z[aE],k,f,i,l,j;if(h==e){return ab(h,g,aj,m)}k=h.parentNode;f=ab(k,V,aj,m);while(k){while(h){i=h.nextSibling;l=ab(h,g,aj,m);if(m!=aC){f.appendChild(l)}g=aj;h=i}if(k==e){return f}h=k.nextSibling;k=k.parentNode;j=ab(k,V,aj,m);if(m!=aC){j.appendChild(f)}f=j}}function ab(l,g,m,k){var h,i,f,j,e;if(g){return ao(l,k)}if(l.nodeType==3){h=l.nodeValue;if(m){j=Z[a];i=h.substring(j);f=h.substring(0,j)}else{j=Z[an];i=h.substring(0,j);f=h.substring(j)}if(k!=ai){l.nodeValue=f}if(k==aC){return}e=l.cloneNode(V);e.nodeValue=i;return e}if(k==aC){return}return l.cloneNode(V)}function ao(e,f){if(f!=aC){return f==ai?e.cloneNode(aj):e}e.parentNode.removeChild(e)}}d.Range=c})(tinymce.dom);(function(){function b(m){var k=this,a="\uFEFF",o,l,p=m.dom,q=true,n=false;function r(){var g=m.getRng(),e=p.createRng(),c,f;c=g.item?g.item(0):g.parentElement();if(c.ownerDocument!=p.doc){return e}f=m.isCollapsed();if(g.item||!c.hasChildNodes()){if(f){e.setStart(c,0);e.setEnd(c,0)}else{e.setStart(c.parentNode,p.nodeIndex(c));e.setEnd(e.startContainer,e.startOffset+1)}return e}function d(I){var G,i,H,j,B=0,E,D,C,h,F;h=g.duplicate();h.collapse(I);G=p.create("a");C=h.parentElement();if(!C.hasChildNodes()){e[I?"setStart":"setEnd"](C,0);return}C.appendChild(G);h.moveToElementText(G);F=g.compareEndPoints(I?"StartToStart":"EndToEnd",h);if(F>0){e[I?"setStartAfter":"setEndAfter"](C);p.remove(G);return}j=tinymce.grep(C.childNodes);E=j.length-1;while(B<=E){D=Math.floor((B+E)/2);C.insertBefore(G,j[D]);h.moveToElementText(G);F=g.compareEndPoints(I?"StartToStart":"EndToEnd",h);if(F>0){B=D+1}else{if(F<0){E=D-1}else{found=true;break}}}i=F>0||D==0?G.nextSibling:G.previousSibling;if(i.nodeType==1){p.remove(G);H=p.nodeIndex(i);i=i.parentNode;if(!I||D>0){H++}}else{if(F>0||D==0){h.setEndPoint(I?"StartToStart":"EndToEnd",g);H=h.text.length}else{h.setEndPoint(I?"StartToStart":"EndToEnd",g);H=i.nodeValue.length-h.text.length}p.remove(G)}e[I?"setStart":"setEnd"](i,H)}d(true);if(!f){d()}return e}this.addRange=function(j){var e,g,h,c,v,y,x=m.dom.doc,f=x.body;function i(E){var t,s,u,C,D;u=p.create("a");t=E?h:v;s=E?c:y;C=e.duplicate();if(t==x||t==x.documentElement){t=f;s=0}if(t.nodeType==3){t.parentNode.insertBefore(u,t);C.moveToElementText(u);C.moveStart("character",s);p.remove(u);e.setEndPoint(E?"StartToStart":"EndToEnd",C)}else{D=t.childNodes;if(D.length){if(s>=D.length){p.insertAfter(u,D[D.length-1])}else{t.insertBefore(u,D[s])}C.moveToElementText(u)}else{u=x.createTextNode(a);t.appendChild(u);C.moveToElementText(u.parentNode);C.collapse(q)}e.setEndPoint(E?"StartToStart":"EndToEnd",C);p.remove(u)}}this.destroy();h=j.startContainer;c=j.startOffset;v=j.endContainer;y=j.endOffset;e=f.createTextRange();if(h==v&&h.nodeType==1&&c==y-1){if(c==y-1){try{g=f.createControlRange();g.addElement(h.childNodes[c]);g.select();return}catch(d){}}}i(true);i();e.select()};this.getRangeAt=function(){if(!o||!tinymce.dom.RangeUtils.compareRanges(l,m.getRng())){o=r();l=m.getRng()}try{o.startContainer.nextSibling}catch(c){o=r();l=null}return o};this.destroy=function(){l=o=null}}tinymce.dom.TridentSelection=b})();(function(k){var i=k.each,l=k.DOM,g=k.isIE,j=k.isWebKit,h;k.create("tinymce.dom.EventUtils",{EventUtils:function(){this.inits=[];this.events=[]},add:function(a,o,b,d){var n,f=this,e=f.events,c;if(o instanceof Array){c=[];i(o,function(m){c.push(f.add(a,m,b,d))});return c}if(a&&a.hasOwnProperty&&a instanceof Array){c=[];i(a,function(m){m=l.get(m);c.push(f.add(m,o,b,d))});return c}a=l.get(a);if(!a){return}n=function(m){if(f.disabled){return}m=m||window.event;if(m&&g){if(!m.target){m.target=m.srcElement}k.extend(m,f._stoppers)}if(!d){return b(m)}return b.call(d,m)};if(o=="unload"){k.unloads.unshift({func:n});return n}if(o=="init"){if(f.domLoaded){n()}else{f.inits.push(n)}return n}e.push({obj:a,name:o,func:b,cfunc:n,scope:d});f._add(a,o,n);return b},remove:function(b,a,c){var f=this,n=f.events,e=false,d;if(b&&b.hasOwnProperty&&b instanceof Array){d=[];i(b,function(m){m=l.get(m);d.push(f.remove(m,a,c))});return d}b=l.get(b);i(n,function(m,p){if(m.obj==b&&m.name==a&&(!c||(m.func==c||m.cfunc==c))){n.splice(p,1);f._remove(b,a,m.cfunc);e=true;return false}});return e},clear:function(a){var c=this,e=c.events,d,b;if(a){a=l.get(a);for(d=e.length-1;d>=0;d--){b=e[d];if(b.obj===a){c._remove(b.obj,b.name,b.cfunc);b.obj=b.cfunc=null;e.splice(d,1)}}}},cancel:function(a){if(!a){return false}this.stop(a);return this.prevent(a)},stop:function(a){if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}return false},prevent:function(a){if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}return false},destroy:function(){var a=this;i(a.events,function(b,c){a._remove(b.obj,b.name,b.cfunc);b.obj=b.cfunc=null});a.events=[];a=null},_add:function(b,a,c){if(b.attachEvent){b.attachEvent("on"+a,c)}else{if(b.addEventListener){b.addEventListener(a,c,false)}else{b["on"+a]=c}}},_remove:function(b,a,c){if(b){try{if(b.detachEvent){b.detachEvent("on"+a,c)}else{if(b.removeEventListener){b.removeEventListener(a,c,false)}else{b["on"+a]=null}}}catch(d){}}},_pageInit:function(a){var b=this;if(b.domLoaded){return}b.domLoaded=true;i(b.inits,function(c){c()});b.inits=[]},_wait:function(a){var c=this,b=a.document;if(a.tinyMCE_GZ&&tinyMCE_GZ.loaded){c.domLoaded=1;return}if(b.attachEvent){b.attachEvent("onreadystatechange",function(){if(b.readyState==="complete"){b.detachEvent("onreadystatechange",arguments.callee);c._pageInit(a)}});if(b.documentElement.doScroll&&a==a.top){(function(){if(c.domLoaded){return}try{b.documentElement.doScroll("left")}catch(d){setTimeout(arguments.callee,0);return}c._pageInit(a)})()}}else{if(b.addEventListener){c._add(a,"DOMContentLoaded",function(){c._pageInit(a)})}}c._add(a,"load",function(){c._pageInit(a)})},_stoppers:{preventDefault:function(){this.returnValue=false},stopPropagation:function(){this.cancelBubble=true}}});h=k.dom.Event=new k.dom.EventUtils();h._wait(window);k.addUnload(function(){h.destroy()})})(tinymce);(function(b){b.dom.Element=function(g,i){var a=this,h,j;a.settings=i=i||{};a.id=g;a.dom=h=i.dom||b.DOM;if(!b.isIE){j=h.get(a.id)}b.each(("getPos,getRect,getParent,add,setStyle,getStyle,setStyles,setAttrib,setAttribs,getAttrib,addClass,removeClass,hasClass,getOuterHTML,setOuterHTML,remove,show,hide,isHidden,setHTML,get").split(/,/),function(c){a[c]=function(){var e=[g],d;for(d=0;d<arguments.length;d++){e.push(arguments[d])}e=h[c].apply(h,e);a.update(c);return e}});b.extend(a,{on:function(c,d,e){return b.dom.Event.add(a.id,c,d,e)},getXY:function(){return{x:parseInt(a.getStyle("left")),y:parseInt(a.getStyle("top"))}},getSize:function(){var c=h.get(a.id);return{w:parseInt(a.getStyle("width")||c.clientWidth),h:parseInt(a.getStyle("height")||c.clientHeight)}},moveTo:function(d,c){a.setStyles({left:d,top:c})},moveBy:function(e,c){var d=a.getXY();a.moveTo(d.x+e,d.y+c)},resizeTo:function(d,c){a.setStyles({width:d,height:c})},resizeBy:function(e,c){var d=a.getSize();a.resizeTo(d.w+e,d.h+c)},update:function(c){var d;if(b.isIE6&&i.blocker){c=c||"";if(c.indexOf("get")===0||c.indexOf("has")===0||c.indexOf("is")===0){return}if(c=="remove"){h.remove(a.blocker);return}if(!a.blocker){a.blocker=h.uniqueId();d=h.add(i.container||h.getRoot(),"iframe",{id:a.blocker,style:"position:absolute;",frameBorder:0,src:'javascript:""'});h.setStyle(d,"opacity",0)}else{d=h.get(a.blocker)}h.setStyles(d,{left:a.getStyle("left",1),top:a.getStyle("top",1),width:a.getStyle("width",1),height:a.getStyle("height",1),display:a.getStyle("display",1),zIndex:parseInt(a.getStyle("zIndex",1)||0)-1})}}})}})(tinymce);(function(j){function h(a){return a.replace(/[\n\r]+/g,"")}var f=j.is,g=j.isIE,i=j.each;j.create("tinymce.dom.Selection",{Selection:function(a,b,c){var d=this;d.dom=a;d.win=b;d.serializer=c;i(["onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent"],function(e){d[e]=new j.util.Dispatcher(d)});if(!d.win.getSelection){d.tridentSel=new j.dom.TridentSelection(d)}if(j.isIE&&a.boxModel){this._fixIESelection()}j.addUnload(d.destroy,d)},getContent:function(o){var p=this,n=p.getRng(),b=p.dom.create("body"),d=p.getSel(),e,c,a;o=o||{};e=c="";o.get=true;o.format=o.format||"html";p.onBeforeGetContent.dispatch(p,o);if(o.format=="text"){return p.isCollapsed()?"":(n.text||(d.toString?d.toString():""))}if(n.cloneContents){a=n.cloneContents();if(a){b.appendChild(a)}}else{if(f(n.item)||f(n.htmlText)){b.innerHTML=n.item?n.item(0).outerHTML:n.htmlText}else{b.innerHTML=n.toString()}}if(/^\s/.test(b.innerHTML)){e=" "}if(/\s+$/.test(b.innerHTML)){c=" "}o.getInner=true;o.content=p.isCollapsed()?"":e+p.serializer.serialize(b,o)+c;p.onGetContent.dispatch(p,o);return o.content},setContent:function(c,d){var n=this,p=n.getRng(),e,b=n.win.document,a,o;d=d||{format:"html"};d.set=true;c=d.content=c;if(!d.no_events){n.onBeforeSetContent.dispatch(n,d)}c=d.content;if(p.insertNode){c+='<span id="__caret">_</span>';if(p.startContainer==b&&p.endContainer==b){b.body.innerHTML=c}else{p.deleteContents();if(b.body.childNodes.length==0){b.body.innerHTML=c}else{if(p.createContextualFragment){p.insertNode(p.createContextualFragment(c))}else{a=b.createDocumentFragment();o=b.createElement("div");a.appendChild(o);o.outerHTML=c;p.insertNode(a)}}}e=n.dom.get("__caret");p=b.createRange();p.setStartBefore(e);p.setEndBefore(e);n.setRng(p);n.dom.remove("__caret");n.setRng(p)}else{if(p.item){b.execCommand("Delete",false,null);p=n.getRng()}p.pasteHTML(c)}if(!d.no_events){n.onSetContent.dispatch(n,d)}},getStart:function(){var d=this.getRng(),c,e,a,b;if(d.duplicate||d.item){if(d.item){return d.item(0)}a=d.duplicate();a.collapse(1);c=a.parentElement();e=b=d.parentElement();while(b=b.parentNode){if(b==c){c=e;break}}return c}else{c=d.startContainer;if(c.nodeType==1&&c.hasChildNodes()){c=c.childNodes[Math.min(c.childNodes.length-1,d.startOffset)]}if(c&&c.nodeType==3){return c.parentNode}return c}},getEnd:function(){var c=this,b=c.getRng(),a,d;if(b.duplicate||b.item){if(b.item){return b.item(0)}b=b.duplicate();b.collapse(0);a=b.parentElement();if(a&&a.nodeName=="BODY"){return a.lastChild||a}return a}else{a=b.endContainer;d=b.endOffset;if(a.nodeType==1&&a.hasChildNodes()){a=a.childNodes[d>0?d-1:d]}if(a&&a.nodeType==3){return a.parentNode}return a}},getBookmark:function(a,G){var E=this,t=E.dom,C,z,A,e,B,d,c,x="\uFEFF",F;function D(k,m){var l=0;i(t.select(k),function(n,o){if(n==m){l=o}});return l}if(a==2){function y(){var k=E.getRng(true),l=t.getRoot(),n={};function m(v,p){var I=v[p?"startContainer":"endContainer"],q=v[p?"startOffset":"endOffset"],o=[],u,r,s=0;if(I.nodeType==3){if(G){for(u=I.previousSibling;u&&u.nodeType==3;u=u.previousSibling){q+=u.nodeValue.length}}o.push(q)}else{r=I.childNodes;if(q>=r.length&&r.length){s=1;q=Math.max(0,r.length-1)}o.push(E.dom.nodeIndex(r[q],G)+s)}for(;I&&I!=l;I=I.parentNode){o.push(E.dom.nodeIndex(I,G))}return o}n.start=m(k,true);if(!E.isCollapsed()){n.end=m(k)}return n}return y()}if(a){return{rng:E.getRng()}}C=E.getRng();A=t.uniqueId();e=tinyMCE.activeEditor.selection.isCollapsed();F="overflow:hidden;line-height:0px";if(C.duplicate||C.item){if(!C.item){z=C.duplicate();try{C.collapse();C.pasteHTML('<span data-mce-type="bookmark" id="'+A+'_start" style="'+F+'">'+x+"</span>");if(!e){z.collapse(false);z.pasteHTML('<span data-mce-type="bookmark" id="'+A+'_end" style="'+F+'">'+x+"</span>")}}catch(b){return null}}else{d=C.item(0);B=d.nodeName;return{name:B,index:D(B,d)}}}else{d=E.getNode();B=d.nodeName;if(B=="IMG"){return{name:B,index:D(B,d)}}z=C.cloneRange();if(!e){z.collapse(false);z.insertNode(t.create("span",{"data-mce-type":"bookmark",id:A+"_end",style:F},x))}C.collapse(true);C.insertNode(t.create("span",{"data-mce-type":"bookmark",id:A+"_start",style:F},x))}E.moveToBookmark({id:A,keep:1});return{id:A}},moveToBookmark:function(e){var a=this,u=a.dom,y,z,B,b,x,C,d,c;if(a.tridentSel){a.tridentSel.destroy()}if(e){if(e.start){B=u.createRng();b=u.getRoot();function A(o){var n=e[o?"start":"end"],l,k,p,m;if(n){for(k=b,l=n.length-1;l>=1;l--){m=k.childNodes;if(m.length){k=m[n[l]];if(!k){return}}}if(k.nodeType===3&&n[0]>k.nodeValue.length-1){return}else{if(k.nodeType===1&&n[0]>k.childNodes.length){return}}if(o){B.setStart(k,n[0])}else{B.setEnd(k,n[0])}}return true}if(A(true)&&A()){a.setRng(B)}}else{if(e.id){function v(l){var n=u.get(e.id+"_"+l),p,o,k,q,m=e.keep;if(n){p=n.parentNode;if(l=="start"){if(!m){o=u.nodeIndex(n)}else{p=n.firstChild;o=1}x=C=p;d=c=o}else{if(!m){o=u.nodeIndex(n)}else{p=n.firstChild;o=1}C=p;c=o}if(!m){q=n.previousSibling;k=n.nextSibling;i(j.grep(n.childNodes),function(r){if(r.nodeType==3){r.nodeValue=r.nodeValue.replace(/\uFEFF/g,"")}});while(n=u.get(e.id+"_"+l)){u.remove(n,1)}if(q&&k&&q.nodeType==k.nodeType&&q.nodeType==3&&!j.isOpera){o=q.nodeValue.length;q.appendData(k.nodeValue);u.remove(k);if(l=="start"){x=C=q;d=c=o}else{C=q;c=o}}}}}function t(k){if(u.isBlock(k)&&!k.innerHTML){k.innerHTML=!g?'<br data-mce-bogus="1" />':" "}return k}v("start");v("end");if(x){B=u.createRng();B.setStart(t(x),d);B.setEnd(t(C),c);a.setRng(B)}}else{if(e.name){a.select(u.select(e.name)[e.index])}else{if(e.rng){a.setRng(e.rng)}}}}}},select:function(b,c){var d=this,a=d.dom,m=a.createRng(),n;if(b){n=a.nodeIndex(b);m.setStart(b.parentNode,n);m.setEnd(b.parentNode,n+1);if(c){function e(k,l){var p=new j.dom.TreeWalker(k,k);do{if(k.nodeType==3&&j.trim(k.nodeValue).length!=0){if(l){m.setStart(k,0)}else{m.setEnd(k,k.nodeValue.length)}return}if(k.nodeName=="BR"){if(l){m.setStartBefore(k)}else{m.setEndBefore(k)}return}}while(k=(l?p.next():p.prev()))}e(b,1);e(b)}d.setRng(m)}return b},isCollapsed:function(){var c=this,a=c.getRng(),b=c.getSel();if(!a||a.item){return false}if(a.compareEndPoints){return a.compareEndPoints("StartToEnd",a)===0}return !b||a.collapsed},collapse:function(d){var b=this,c=b.getRng(),a;if(c.item){a=c.item(0);c=b.win.document.body.createTextRange();c.moveToElementText(a)}c.collapse(!!d);b.setRng(c)},getSel:function(){var a=this,b=this.win;return b.getSelection?b.getSelection():b.document.selection},getRng:function(a){var m=this,e,d,b,c=m.win.document;if(a&&m.tridentSel){return m.tridentSel.getRangeAt(0)}try{if(e=m.getSel()){d=e.rangeCount>0?e.getRangeAt(0):(e.createRange?e.createRange():c.createRange())}}catch(n){}if(j.isIE&&d.setStart&&c.selection.createRange().item){b=c.selection.createRange().item(0);d=c.createRange();d.setStartBefore(b);d.setEndAfter(b)}if(!d){d=c.createRange?c.createRange():c.body.createTextRange()}if(m.selectedRange&&m.explicitRange){if(d.compareBoundaryPoints(d.START_TO_START,m.selectedRange)===0&&d.compareBoundaryPoints(d.END_TO_END,m.selectedRange)===0){d=m.explicitRange}else{m.selectedRange=null;m.explicitRange=null}}return d},setRng:function(a){var b,c=this;if(!c.tridentSel){b=c.getSel();if(b){c.explicitRange=a;b.removeAllRanges();b.addRange(a);c.selectedRange=b.getRangeAt(0)}}else{if(a.cloneRange){c.tridentSel.addRange(a);return}try{a.select()}catch(d){}}},setNode:function(a){var b=this;b.setContent(b.dom.getOuterHTML(a));return a},getNode:function(){var e=this,m=e.getRng(),d=e.getSel(),a,b=m.startContainer,n=m.endContainer;if(!m){return e.dom.getRoot()}if(m.setStart){a=m.commonAncestorContainer;if(!m.collapsed){if(m.startContainer==m.endContainer){if(m.endOffset-m.startOffset<2){if(m.startContainer.hasChildNodes()){a=m.startContainer.childNodes[m.startOffset]}}}if(b.nodeType===3&&n.nodeType===3){function c(l,k){var q=l;while(l&&l.nodeType===3&&l.length===0){l=k?l.nextSibling:l.previousSibling}return l||q}if(b.length===m.startOffset){b=c(b.nextSibling,true)}else{b=b.parentNode}if(m.endOffset===0){n=c(n.previousSibling,false)}else{n=n.parentNode}if(b&&b===n){return b}}}if(a&&a.nodeType==3){return a.parentNode}return a}return m.item?m.item(0):m.parentElement()},getSelectedBlocks:function(o,p){var e=this,d=e.dom,a,n,b,c=[];a=d.getParent(o||e.getStart(),d.isBlock);n=d.getParent(p||e.getEnd(),d.isBlock);if(a){c.push(a)}if(a&&n&&a!=n){b=a;while((b=b.nextSibling)&&b!=n){if(d.isBlock(b)){c.push(b)}}}if(n&&a!=n){c.push(n)}return c},destroy:function(a){var b=this;b.win=null;if(b.tridentSel){b.tridentSel.destroy()}if(!a){j.removeUnload(b.destroy)}},_fixIESelection:function(){var q=this.dom,b=q.doc,p=b.body,e,a,r;b.documentElement.unselectable=true;function o(n,k){var m=p.createTextRange();try{m.moveToPoint(n,k)}catch(l){m=null}return m}function c(k){var l;if(k.button){l=o(k.x,k.y);if(l){if(l.compareEndPoints("StartToStart",a)>0){l.setEndPoint("StartToStart",a)}else{l.setEndPoint("EndToEnd",a)}l.select()}}else{d()}}function d(){var k=b.selection.createRange();if(a&&!k.item&&k.compareEndPoints("StartToEnd",k)===0){a.select()}q.unbind(b,"mouseup",d);q.unbind(b,"mousemove",c);a=e=0}q.bind(b,["mousedown","contextmenu"],function(k){if(k.target.nodeName==="HTML"){if(e){d()}r=b.documentElement;if(r.scrollHeight>r.clientHeight){return}e=1;a=o(k.x,k.y);if(a){q.bind(b,"mouseup",d);q.bind(b,"mousemove",c);q.win.focus();a.select()}}})}})})(tinymce);(function(b){b.dom.Serializer=function(n,j,m){var k,a,o=b.isIE,l=b.each,p;if(!n.apply_source_formatting){n.indent=false}n.remove_trailing_brs=true;j=j||b.DOM;m=m||new b.html.Schema(n);n.entity_encoding=n.entity_encoding||"named";k=new b.util.Dispatcher(self);a=new b.util.Dispatcher(self);p=new b.html.DomParser(n,m);p.addAttributeFilter("src,href,style",function(s,t){var f=s.length,i,d,g="data-mce-"+t,e=n.url_converter,c=n.url_converter_scope,h;while(f--){i=s[f];d=i.attributes.map[g];if(d!==h){i.attr(t,d.length>0?d:null);i.attr(g,null)}else{d=i.attributes.map[t];if(t==="style"){d=j.serializeStyle(j.parseStyle(d),i.name)}else{if(e){d=e.call(c,d,t,i.name)}}i.attr(t,d.length>0?d:null)}}});p.addAttributeFilter("class",function(f,e){var d=f.length,c,g;while(d--){c=f[d];g=c.attr("class").replace(/\s*mceItem\w+\s*/g,"");c.attr("class",g.length>0?g:null)}});p.addAttributeFilter("data-mce-type",function(f,d,e){var c=f.length,g;while(c--){g=f[c];if(g.attributes.map["data-mce-type"]==="bookmark"&&!e.cleanup){g.remove()}}});p.addNodeFilter("script,style",function(e,d){var c=e.length,h,g;function f(i){return i.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(\/\/\s*<!--|\/\/\s*<!\[CDATA\[|<!--|<!\[CDATA\[)[\r\n]*/g,"").replace(/\s*(\/\/\s*\]\]>|\/\/\s*-->|\]\]>|-->|\]\]-->)\s*$/g,"")}while(c--){h=e[c];g=h.firstChild?h.firstChild.value:"";if(d==="script"){h.attr("type",(h.attr("type")||"text/javascript").replace(/^mce\-/,""));if(g.length>0){h.firstChild.value="// <![CDATA[\n"+f(g)+"\n// ]]>"}}else{if(g.length>0){h.firstChild.value="<!--\n"+f(g)+"\n-->"}}}});p.addNodeFilter("#comment",function(f,e){var d=f.length,c;while(d--){c=f[d];if(c.value.indexOf("[CDATA[")===0){c.name="#cdata";c.type=4;c.value=c.value.replace(/^\[CDATA\[|\]\]$/g,"")}else{if(c.value.indexOf("mce:protected ")===0){c.name="#text";c.type=3;c.raw=true;c.value=unescape(c.value).substr(14)}}}});p.addNodeFilter("xml:namespace,input",function(f,e){var d=f.length,c;while(d--){c=f[d];if(c.type===7){c.remove()}else{if(c.type===1){if(e==="input"&&!("type" in c.attributes.map)){c.attr("type","text")}}}}});if(n.fix_list_elements){p.addNodeFilter("ul,ol",function(e,d){var c=e.length,g,f;while(c--){g=e[c];f=g.parent;if(f.name==="ul"||f.name==="ol"){if(g.prev&&g.prev.name==="li"){g.prev.append(g)}}}})}p.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style",function(e,d){var c=e.length;while(c--){e[c].attr(d,null)}});return{schema:m,addNodeFilter:p.addNodeFilter,addAttributeFilter:p.addAttributeFilter,onPreProcess:k,onPostProcess:a,serialize:function(h,c){var d,g,e,f,i;if(o&&j.select("script,style,select").length>0){i=h.innerHTML;h=h.cloneNode(false);j.setHTML(h,i)}else{h=h.cloneNode(true)}d=h.ownerDocument.implementation;if(d.createHTMLDocument){g=d.createHTMLDocument("");l(h.nodeName=="BODY"?h.childNodes:[h],function(r){g.body.appendChild(g.importNode(r,true))});if(h.nodeName!="BODY"){h=g.body.firstChild}else{h=g.body}e=j.doc;j.doc=g}c=c||{};c.format=c.format||"html";if(!c.no_events){c.node=h;k.dispatch(self,c)}f=new b.html.Serializer(n,m);c.content=f.serialize(p.parse(c.getInner?h.innerHTML:b.trim(j.getOuterHTML(h),c),c));if(!c.no_events){a.dispatch(self,c)}if(e){j.doc=e}c.node=null;return c.content},addRules:function(c){m.addValidElements(c)},setRules:function(c){m.setValidElements(c)}}}})(tinymce);(function(b){b.dom.ScriptLoader=function(p){var u=0,m=1,o=2,a={},n=[],r={},t=[],q=0,s;function v(h,j){var i=this,d=b.DOM,k,f,c,g;function e(){d.remove(g);if(k){k.onreadystatechange=k.onload=k=null}j()}g=d.uniqueId();if(b.isIE6){f=new b.util.URI(h);c=location;if(f.host==c.hostname&&f.port==c.port&&(f.protocol+":")==c.protocol){b.util.XHR.send({url:b._addVer(f.getURI()),success:function(l){var y=d.create("script",{type:"text/javascript"});y.text=l;document.getElementsByTagName("head")[0].appendChild(y);d.remove(y);e()}});return}}k=d.create("script",{id:g,type:"text/javascript",src:b._addVer(h)});if(!b.isIE){k.onload=e}if(!b.isOpera){k.onreadystatechange=function(){var l=k.readyState;if(l=="complete"||l=="loaded"){e()}}}(document.getElementsByTagName("head")[0]||document.body).appendChild(k)}this.isDone=function(c){return a[c]==o};this.markDone=function(c){a[c]=o};this.add=this.load=function(c,d,g){var f,e=a[c];if(e==s){n.push(c);a[c]=u}if(d){if(!r[c]){r[c]=[]}r[c].push({func:d,scope:g||this})}};this.loadQueue=function(d,c){this.loadScripts(n,d,c)};this.loadScripts=function(c,d,e){var f;function g(h){b.each(r[h],function(i){i.func.call(i.scope)});r[h]=s}t.push({func:d,scope:e||this});f=function(){var h=b.grep(c);c.length=0;b.each(h,function(i){if(a[i]==o){g(i);return}if(a[i]!=m){a[i]=m;q++;v(i,function(){a[i]=o;q--;g(i);f()})}});if(!q){b.each(t,function(i){i.func.call(i.scope)});t.length=0}};f()}};b.ScriptLoader=new b.dom.ScriptLoader()})(tinymce);tinymce.dom.TreeWalker=function(f,h){var e=f;function g(b,k,l,a){var c,d;if(b){if(!a&&b[k]){return b[k]}if(b!=h){c=b[l];if(c){return c}for(d=b.parentNode;d&&d!=h;d=d.parentNode){c=d[l];if(c){return c}}}}}this.current=function(){return e};this.next=function(a){return(e=g(e,"firstChild","nextSibling",a))};this.prev=function(a){return(e=g(e,"lastChild","previousSibling",a))}};(function(b){b.dom.RangeUtils=function(d){var a="\uFEFF";this.walk=function(H,c){var D=H.startContainer,A=H.startOffset,I=H.endContainer,z=H.endOffset,C,F,x,E,t,u,G;G=d.select("td.mceSelected,th.mceSelected");if(G.length>0){b.each(G,function(e){c([e])});return}function v(f,g,h){var e=[];for(;f&&f!=h;f=f[g]){e.push(f)}return e}function y(e,f){do{if(e.parentNode==f){return e}e=e.parentNode}while(e)}function B(f,g,e){var h=e?"nextSibling":"previousSibling";for(E=f,t=E.parentNode;E&&E!=g;E=t){t=E.parentNode;u=v(E==f?E:E[h],h);if(u.length){if(!e){u.reverse()}c(u)}}}if(D.nodeType==1&&D.hasChildNodes()){D=D.childNodes[A]}if(I.nodeType==1&&I.hasChildNodes()){I=I.childNodes[Math.min(z-1,I.childNodes.length-1)]}C=d.findCommonAncestor(D,I);if(D==I){return c([D])}for(E=D;E;E=E.parentNode){if(E==I){return B(D,C,true)}if(E==C){break}}for(E=I;E;E=E.parentNode){if(E==D){return B(I,C)}if(E==C){break}}F=y(D,C)||D;x=y(I,C)||I;B(D,F,true);u=v(F==D?F:F.nextSibling,"nextSibling",x==I?x.nextSibling:x);if(u.length){c(u)}B(I,x)}};b.dom.RangeUtils.compareRanges=function(d,a){if(d&&a){if(d.item||d.duplicate){if(d.item&&a.item&&d.item(0)===a.item(0)){return true}if(d.isEqual&&a.isEqual&&a.isEqual(d)){return true}}else{return d.startContainer==a.startContainer&&d.startOffset==a.startOffset}}return false}})(tinymce);(function(d){var e=d.dom.Event,f=d.each;d.create("tinymce.ui.KeyboardNavigation",{KeyboardNavigation:function(z,y){var a=this,q=z.root,r=z.items,c=z.enableUpDown,u=z.enableLeftRight||!z.enableUpDown,s=z.excludeFromTabOrder,t,v,b,A,x;y=y||d.DOM;t=function(g){x=g.target.id};v=function(g){y.setAttrib(g.target.id,"tabindex","-1")};A=function(h){var g=y.get(x);y.setAttrib(g,"tabindex","0");g.focus()};a.focus=function(){y.get(x).focus()};a.destroy=function(){f(r,function(g){y.unbind(y.get(g.id),"focus",t);y.unbind(y.get(g.id),"blur",v)});y.unbind(y.get(q),"focus",A);y.unbind(y.get(q),"keydown",b);r=y=q=a.focus=t=v=b=A=null;a.destroy=function(){}};a.moveFocus=function(g,j){var k=-1,h=a.controls,i;if(!x){return}f(r,function(l,m){if(l.id===x){k=m;return false}});k+=g;if(k<0){k=r.length-1}else{if(k>=r.length){k=0}}i=r[k];y.setAttrib(x,"tabindex","-1");y.setAttrib(i.id,"tabindex","0");y.get(i.id).focus();if(z.actOnFocus){z.onAction(i.id)}if(j){e.cancel(j)}};b=function(j){var m=37,n=39,k=38,i=40,h=27,o=14,g=13,l=32;switch(j.keyCode){case m:if(u){a.moveFocus(-1)}break;case n:if(u){a.moveFocus(1)}break;case k:if(c){a.moveFocus(-1)}break;case i:if(c){a.moveFocus(1)}break;case h:if(z.onCancel){z.onCancel();e.cancel(j)}break;case o:case g:case l:if(z.onAction){z.onAction(x);e.cancel(j)}break}};f(r,function(g,i){var h;if(!g.id){g.id=y.uniqueId("_mce_item_")}if(s){y.bind(g.id,"blur",v);h="-1"}else{h=(i===0?"0":"-1")}y.setAttrib(g.id,"tabindex",h);y.bind(y.get(g.id),"focus",t)});if(r[0]){x=r[0].id}y.setAttrib(q,"tabindex","-1");y.bind(y.get(q),"focus",A);y.bind(y.get(q),"keydown",b)}})})(tinymce);(function(f){var d=f.DOM,e=f.is;f.create("tinymce.ui.Control",{Control:function(a,b,c){this.id=a;this.settings=b=b||{};this.rendered=false;this.onRender=new f.util.Dispatcher(this);this.classPrefix="";this.scope=b.scope||this;this.disabled=0;this.active=0;this.editor=c},setAriaProperty:function(a,b){var c=d.get(this.id+"_aria")||d.get(this.id);if(c){d.setAttrib(c,"aria-"+a,!!b)}},focus:function(){d.get(this.id).focus()},setDisabled:function(a){if(a!=this.disabled){this.setAriaProperty("disabled",a);this.setState("Disabled",a);this.setState("Enabled",!a);this.disabled=a}},isDisabled:function(){return this.disabled},setActive:function(a){if(a!=this.active){this.setState("Active",a);this.active=a;this.setAriaProperty("pressed",a)}},isActive:function(){return this.active},setState:function(a,c){var b=d.get(this.id);a=this.classPrefix+a;if(c){d.addClass(b,a)}else{d.removeClass(b,a)}},isRendered:function(){return this.rendered},renderHTML:function(){},renderTo:function(a){d.setHTML(a,this.renderHTML())},postRender:function(){var a=this,b;if(e(a.disabled)){b=a.disabled;a.disabled=-1;a.setDisabled(b)}if(e(a.active)){b=a.active;a.active=-1;a.setActive(b)}},remove:function(){d.remove(this.id);this.destroy()},destroy:function(){f.dom.Event.clear(this.id)}})})(tinymce);tinymce.create("tinymce.ui.Container:tinymce.ui.Control",{Container:function(f,d,e){this.parent(f,d,e);this.controls=[];this.lookup={}},add:function(b){this.lookup[b.id]=b;this.controls.push(b);return b},get:function(b){return this.lookup[b]}});tinymce.create("tinymce.ui.Separator:tinymce.ui.Control",{Separator:function(c,d){this.parent(c,d);this.classPrefix="mceSeparator";this.setDisabled(true)},renderHTML:function(){return tinymce.DOM.createHTML("span",{"class":this.classPrefix,role:"separator","aria-orientation":"vertical",tabindex:"-1"})}});(function(i){var j=i.is,f=i.DOM,h=i.each,g=i.walk;i.create("tinymce.ui.MenuItem:tinymce.ui.Control",{MenuItem:function(a,b){this.parent(a,b);this.classPrefix="mceMenuItem"},setSelected:function(a){this.setState("Selected",a);this.setAriaProperty("checked",!!a);this.selected=a},isSelected:function(){return this.selected},postRender:function(){var a=this;a.parent();if(j(a.selected)){a.setSelected(a.selected)}}})})(tinymce);(function(i){var j=i.is,f=i.DOM,h=i.each,g=i.walk;i.create("tinymce.ui.Menu:tinymce.ui.MenuItem",{Menu:function(a,b){var c=this;c.parent(a,b);c.items={};c.collapsed=false;c.menuCount=0;c.onAddItem=new i.util.Dispatcher(this)},expand:function(a){var b=this;if(a){g(b,function(c){if(c.expand){c.expand()}},"items",b)}b.collapsed=false},collapse:function(a){var b=this;if(a){g(b,function(c){if(c.collapse){c.collapse()}},"items",b)}b.collapsed=true},isCollapsed:function(){return this.collapsed},add:function(a){if(!a.settings){a=new i.ui.MenuItem(a.id||f.uniqueId(),a)}this.onAddItem.dispatch(this,a);return this.items[a.id]=a},addSeparator:function(){return this.add({separator:true})},addMenu:function(a){if(!a.collapse){a=this.createMenu(a)}this.menuCount++;return this.add(a)},hasMenus:function(){return this.menuCount!==0},remove:function(a){delete this.items[a.id]},removeAll:function(){var a=this;g(a,function(b){if(b.removeAll){b.removeAll()}else{b.remove()}b.destroy()},"items",a);a.items={}},createMenu:function(a){var b=new i.ui.Menu(a.id||f.uniqueId(),a);b.onAddItem.add(this.onAddItem.dispatch,this.onAddItem);return b}})})(tinymce);(function(j){var k=j.is,l=j.DOM,i=j.each,h=j.dom.Event,g=j.dom.Element;j.create("tinymce.ui.DropMenu:tinymce.ui.Menu",{DropMenu:function(a,b){b=b||{};b.container=b.container||l.doc.body;b.offset_x=b.offset_x||0;b.offset_y=b.offset_y||0;b.vp_offset_x=b.vp_offset_x||0;b.vp_offset_y=b.vp_offset_y||0;if(k(b.icons)&&!b.icons){b["class"]+=" mceNoIcons"}this.parent(a,b);this.onShowMenu=new j.util.Dispatcher(this);this.onHideMenu=new j.util.Dispatcher(this);this.classPrefix="mceMenu"},createMenu:function(a){var c=this,b=c.settings,d;a.container=a.container||b.container;a.parent=c;a.constrain=a.constrain||b.constrain;a["class"]=a["class"]||b["class"];a.vp_offset_x=a.vp_offset_x||b.vp_offset_x;a.vp_offset_y=a.vp_offset_y||b.vp_offset_y;a.keyboard_focus=b.keyboard_focus;d=new j.ui.DropMenu(a.id||l.uniqueId(),a);d.onAddItem.add(c.onAddItem.dispatch,c.onAddItem);return d},focus:function(){var a=this;if(a.keyboardNav){a.keyboardNav.focus()}},update:function(){var d=this,c=d.settings,f=l.get("menu_"+d.id+"_tbl"),a=l.get("menu_"+d.id+"_co"),e,b;e=c.max_width?Math.min(f.clientWidth,c.max_width):f.clientWidth;b=c.max_height?Math.min(f.clientHeight,c.max_height):f.clientHeight;if(!l.boxModel){d.element.setStyles({width:e+2,height:b+2})}else{d.element.setStyles({width:e,height:b})}if(c.max_width){l.setStyle(a,"width",e)}if(c.max_height){l.setStyle(a,"height",b);if(f.clientHeight<c.max_height){l.setStyle(a,"overflow","hidden")}}},showMenu:function(c,f,a){var D=this,e=D.settings,d,C=l.getViewPort(),F,t,E,b,B=2,x,y,s=D.classPrefix;D.collapse(1);if(D.isMenuVisible){return}if(!D.rendered){d=l.add(D.settings.container,D.renderNode());i(D.items,function(m){m.postRender()});D.element=new g("menu_"+D.id,{blocker:1,container:e.container})}else{d=l.get("menu_"+D.id)}if(!j.isOpera){l.setStyles(d,{left:-65535,top:-65535})}l.show(d);D.update();c+=e.offset_x||0;f+=e.offset_y||0;C.w-=4;C.h-=4;if(e.constrain){F=d.clientWidth-B;t=d.clientHeight-B;E=C.x+C.w;b=C.y+C.h;if((c+e.vp_offset_x+F)>E){c=a?a-F:Math.max(0,(E-e.vp_offset_x)-F)}if((f+e.vp_offset_y+t)>b){f=Math.max(0,(b-e.vp_offset_y)-t)}}l.setStyles(d,{left:c,top:f});D.element.update();D.isMenuVisible=1;D.mouseClickFunc=h.add(d,"click",function(n){var m;n=n.target;if(n&&(n=l.getParent(n,"tr"))&&!l.hasClass(n,s+"ItemSub")){m=D.items[n.id];if(m.isDisabled()){return}x=D;while(x){if(x.hideMenu){x.hideMenu()}x=x.settings.parent}if(m.settings.onclick){m.settings.onclick(n)}return h.cancel(n)}});if(D.hasMenus()){D.mouseOverFunc=h.add(d,"mouseover",function(m){var p,n,o;m=m.target;if(m&&(m=l.getParent(m,"tr"))){p=D.items[m.id];if(D.lastMenu){D.lastMenu.collapse(1)}if(p.isDisabled()){return}if(m&&l.hasClass(m,s+"ItemSub")){n=l.getRect(m);p.showMenu((n.x+n.w-B),n.y-B,n.x);D.lastMenu=p;l.addClass(l.get(p.id).firstChild,s+"ItemActive")}}})}h.add(d,"keydown",D._keyHandler,D);D.onShowMenu.dispatch(D);if(e.keyboard_focus){D._setupKeyboardNav()}},hideMenu:function(a){var d=this,b=l.get("menu_"+d.id),c;if(!d.isMenuVisible){return}if(d.keyboardNav){d.keyboardNav.destroy()}h.remove(b,"mouseover",d.mouseOverFunc);h.remove(b,"click",d.mouseClickFunc);h.remove(b,"keydown",d._keyHandler);l.hide(b);d.isMenuVisible=0;if(!a){d.collapse(1)}if(d.element){d.element.hide()}if(c=l.get(d.id)){l.removeClass(c.firstChild,d.classPrefix+"ItemActive")}d.onHideMenu.dispatch(d)},add:function(a){var c=this,b;a=c.parent(a);if(c.isRendered&&(b=l.get("menu_"+c.id))){c._add(l.select("tbody",b)[0],a)}return a},collapse:function(a){this.parent(a);this.hideMenu(1)},remove:function(a){l.remove(a.id);this.destroy();return this.parent(a)},destroy:function(){var b=this,a=l.get("menu_"+b.id);if(b.keyboardNav){b.keyboardNav.destroy()}h.remove(a,"mouseover",b.mouseOverFunc);h.remove(l.select("a",a),"focus",b.mouseOverFunc);h.remove(a,"click",b.mouseClickFunc);h.remove(a,"keydown",b._keyHandler);if(b.element){b.element.remove()}l.remove(a)},renderNode:function(){var d=this,c=d.settings,a,e,b,f;f=l.create("div",{role:"listbox",id:"menu_"+d.id,"class":c["class"],style:"position:absolute;left:0;top:0;z-index:200000;outline:0"});if(d.settings.parent){l.setAttrib(f,"aria-parent","menu_"+d.settings.parent.id)}b=l.add(f,"div",{role:"presentation",id:"menu_"+d.id+"_co","class":d.classPrefix+(c["class"]?" "+c["class"]:"")});d.element=new g("menu_"+d.id,{blocker:1,container:c.container});if(c.menu_line){l.add(b,"span",{"class":d.classPrefix+"Line"})}a=l.add(b,"table",{role:"presentation",id:"menu_"+d.id+"_tbl",border:0,cellPadding:0,cellSpacing:0});e=l.add(a,"tbody");i(d.items,function(n){d._add(e,n)});d.rendered=true;return f},_setupKeyboardNav:function(){var a,b,c=this;a=l.select("#menu_"+c.id)[0];b=l.select("a[role=option]","menu_"+c.id);b.splice(0,0,a);c.keyboardNav=new j.ui.KeyboardNavigation({root:"menu_"+c.id,items:b,onCancel:function(){c.hideMenu()},enableUpDown:true});a.focus()},_keyHandler:function(c){var b=this,a;switch(c.keyCode){case 37:if(b.settings.parent){b.hideMenu();b.settings.parent.focus();h.cancel(c)}break;case 39:if(b.mouseOverFunc){b.mouseOverFunc(c)}break}},_add:function(f,o){var n,a=o.settings,b,d,e,c=this.classPrefix,r;if(a.separator){d=l.add(f,"tr",{id:o.id,"class":c+"ItemSeparator"});l.add(d,"td",{"class":c+"ItemSeparator"});if(n=d.previousSibling){l.addClass(n,"mceLast")}return}n=d=l.add(f,"tr",{id:o.id,"class":c+"Item "+c+"ItemEnabled"});n=e=l.add(n,a.titleItem?"th":"td");n=b=l.add(n,"a",{id:o.id+"_aria",role:a.titleItem?"presentation":"option",href:"javascript:;",onclick:"return false;",onmousedown:"return false;"});if(a.parent){l.setAttrib(b,"aria-haspopup","true");l.setAttrib(b,"aria-owns","menu_"+o.id)}l.addClass(e,a["class"]);r=l.add(n,"span",{"class":"mceIcon"+(a.icon?" mce_"+a.icon:"")});if(a.icon_src){l.add(r,"img",{src:a.icon_src})}n=l.add(n,a.element||"span",{"class":"mceText",title:o.settings.title},o.settings.title);if(o.settings.style){l.setAttrib(n,"style",o.settings.style)}if(f.childNodes.length==1){l.addClass(d,"mceFirst")}if((n=d.previousSibling)&&l.hasClass(n,c+"ItemSeparator")){l.addClass(d,"mceFirst")}if(o.collapse){l.addClass(d,c+"ItemSub")}if(n=d.previousSibling){l.removeClass(n,"mceLast")}l.addClass(d,"mceLast")}})})(tinymce);(function(c){var d=c.DOM;c.create("tinymce.ui.Button:tinymce.ui.Control",{Button:function(a,b,f){this.parent(a,b,f);this.classPrefix="mceButton"},renderHTML:function(){var a=this.classPrefix,b=this.settings,g,h;h=d.encode(b.label||"");g='<a role="button" id="'+this.id+'" href="javascript:;" class="'+a+" "+a+"Enabled "+b["class"]+(h?" "+a+"Labeled":"")+'" onmousedown="return false;" onclick="return false;" aria-labelledby="'+this.id+'_voice" title="'+d.encode(b.title)+'">';if(b.image){g+='<img class="mceIcon" src="'+b.image+'" alt="'+d.encode(b.title)+'" />'+h}else{g+='<span class="mceIcon '+b["class"]+'"></span>'+(h?'<span class="'+a+'Label">'+h+"</span>":"")}g+='<span class="mceVoiceLabel mceIconOnly" style="display: none;" id="'+this.id+'_voice">'+b.title+"</span>";g+="</a>";return g},postRender:function(){var b=this,a=b.settings;c.dom.Event.add(b.id,"click",function(e){if(!b.isDisabled()){return a.onclick.call(a.scope,e)}})}})})(tinymce);(function(i){var j=i.DOM,f=i.dom.Event,h=i.each,g=i.util.Dispatcher;i.create("tinymce.ui.ListBox:tinymce.ui.Control",{ListBox:function(a,b,d){var c=this;c.parent(a,b,d);c.items=[];c.onChange=new g(c);c.onPostRender=new g(c);c.onAdd=new g(c);c.onRenderMenu=new i.util.Dispatcher(this);c.classPrefix="mceListBox"},select:function(c){var d=this,a,b;if(c==undefined){return d.selectByIndex(-1)}if(c&&c.call){b=c}else{b=function(e){return e==c}}if(c!=d.selectedValue){h(d.items,function(e,l){if(b(e.value)){a=1;d.selectByIndex(l);return false}});if(!a){d.selectByIndex(-1)}}},selectByIndex:function(d){var c=this,b,a;if(d!=c.selectedIndex){b=j.get(c.id+"_text");a=c.items[d];if(a){c.selectedValue=a.value;c.selectedIndex=d;j.setHTML(b,j.encode(a.title));j.removeClass(b,"mceTitle");j.setAttrib(c.id,"aria-valuenow",a.title)}else{j.setHTML(b,j.encode(c.settings.title));j.addClass(b,"mceTitle");c.selectedValue=c.selectedIndex=null;j.setAttrib(c.id,"aria-valuenow",c.settings.title)}b=0}},add:function(a,d,b){var c=this;b=b||{};b=i.extend(b,{title:a,value:d});c.items.push(b);c.onAdd.dispatch(c,b)},getLength:function(){return this.items.length},renderHTML:function(){var b="",d=this,c=d.settings,a=d.classPrefix;b='<span role="button" aria-haspopup="true" aria-labelledby="'+d.id+'_text" aria-describedby="'+d.id+'_voiceDesc"><table role="presentation" tabindex="0" id="'+d.id+'" cellpadding="0" cellspacing="0" class="'+a+" "+a+"Enabled"+(c["class"]?(" "+c["class"]):"")+'"><tbody><tr>';b+="<td>"+j.createHTML("span",{id:d.id+"_voiceDesc","class":"voiceLabel",style:"display:none;"},d.settings.title);b+=j.createHTML("a",{id:d.id+"_text",tabindex:-1,href:"javascript:;","class":"mceText",onclick:"return false;",onmousedown:"return false;"},j.encode(d.settings.title))+"</td>";b+="<td>"+j.createHTML("a",{id:d.id+"_open",tabindex:-1,href:"javascript:;","class":"mceOpen",onclick:"return false;",onmousedown:"return false;"},'<span><span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span></span>')+"</td>";b+="</tr></tbody></table></span>";return b},showMenu:function(){var d=this,a,b,c=j.get(this.id),e;if(d.isDisabled()||d.items.length==0){return}if(d.menu&&d.menu.isMenuVisible){return d.hideMenu()}if(!d.isMenuRendered){d.renderMenu();d.isMenuRendered=true}a=j.getPos(this.settings.menu_container);b=j.getPos(c);e=d.menu;e.settings.offset_x=b.x;e.settings.offset_y=b.y;e.settings.keyboard_focus=!i.isOpera;if(d.oldID){e.items[d.oldID].setSelected(0)}h(d.items,function(l){if(l.value===d.selectedValue){e.items[l.id].setSelected(1);d.oldID=l.id}});e.showMenu(0,c.clientHeight);f.add(j.doc,"mousedown",d.hideMenu,d);j.addClass(d.id,d.classPrefix+"Selected")},hideMenu:function(a){var b=this;if(b.menu&&b.menu.isMenuVisible){j.removeClass(b.id,b.classPrefix+"Selected");if(a&&a.type=="mousedown"&&(a.target.id==b.id+"_text"||a.target.id==b.id+"_open")){return}if(!a||!j.getParent(a.target,".mceMenu")){j.removeClass(b.id,b.classPrefix+"Selected");f.remove(j.doc,"mousedown",b.hideMenu,b);b.menu.hideMenu()}}},renderMenu:function(){var a=this,b;b=a.settings.control_manager.createDropMenu(a.id+"_menu",{menu_line:1,"class":a.classPrefix+"Menu mceNoIcons",max_width:150,max_height:150});b.onHideMenu.add(function(){a.hideMenu();a.focus()});b.add({title:a.settings.title,"class":"mceMenuItemTitle",onclick:function(){if(a.settings.onselect("")!==false){a.select("")}}});h(a.items,function(c){if(c.value===undefined){b.add({title:c.title,"class":"mceMenuItemTitle",onclick:function(){if(a.settings.onselect("")!==false){a.select("")}}})}else{c.id=j.uniqueId();c.onclick=function(){if(a.settings.onselect(c.value)!==false){a.select(c.value)}};b.add(c)}});a.onRenderMenu.dispatch(a,b);a.menu=b},postRender:function(){var b=this,a=b.classPrefix;f.add(b.id,"click",b.showMenu,b);f.add(b.id,"keydown",function(c){if(c.keyCode==32){b.showMenu(c);f.cancel(c)}});f.add(b.id,"focus",function(){if(!b._focused){b.keyDownHandler=f.add(b.id,"keydown",function(c){if(c.keyCode==40){b.showMenu();f.cancel(c)}});b.keyPressHandler=f.add(b.id,"keypress",function(c){var d;if(c.keyCode==13){d=b.selectedValue;b.selectedValue=null;f.cancel(c);b.settings.onselect(d)}})}b._focused=1});f.add(b.id,"blur",function(){f.remove(b.id,"keydown",b.keyDownHandler);f.remove(b.id,"keypress",b.keyPressHandler);b._focused=0});if(i.isIE6||!j.boxModel){f.add(b.id,"mouseover",function(){if(!j.hasClass(b.id,a+"Disabled")){j.addClass(b.id,a+"Hover")}});f.add(b.id,"mouseout",function(){if(!j.hasClass(b.id,a+"Disabled")){j.removeClass(b.id,a+"Hover")}})}b.onPostRender.dispatch(b,j.get(b.id))},destroy:function(){this.parent();f.clear(this.id+"_text");f.clear(this.id+"_open")}})})(tinymce);(function(i){var j=i.DOM,f=i.dom.Event,h=i.each,g=i.util.Dispatcher;i.create("tinymce.ui.NativeListBox:tinymce.ui.ListBox",{NativeListBox:function(a,b){this.parent(a,b);this.classPrefix="mceNativeListBox"},setDisabled:function(a){j.get(this.id).disabled=a;this.setAriaProperty("disabled",a)},isDisabled:function(){return j.get(this.id).disabled},select:function(c){var d=this,a,b;if(c==undefined){return d.selectByIndex(-1)}if(c&&c.call){b=c}else{b=function(e){return e==c}}if(c!=d.selectedValue){h(d.items,function(e,l){if(b(e.value)){a=1;d.selectByIndex(l);return false}});if(!a){d.selectByIndex(-1)}}},selectByIndex:function(a){j.get(this.id).selectedIndex=a+1;this.selectedValue=this.items[a]?this.items[a].value:null},add:function(a,d,e){var b,c=this;e=e||{};e.value=d;if(c.isRendered()){j.add(j.get(this.id),"option",e,a)}b={title:a,value:d,attribs:e};c.items.push(b);c.onAdd.dispatch(c,b)},getLength:function(){return this.items.length},renderHTML:function(){var a,b=this;a=j.createHTML("option",{value:""},"-- "+b.settings.title+" --");h(b.items,function(c){a+=j.createHTML("option",{value:c.value},c.title)});a=j.createHTML("select",{id:b.id,"class":"mceNativeListBox","aria-labelledby":b.id+"_aria"},a);a+=j.createHTML("span",{id:b.id+"_aria",style:"display: none"},b.settings.title);return a},postRender:function(){var c=this,b,a=true;c.rendered=true;function d(e){var l=c.items[e.target.selectedIndex-1];if(l&&(l=l.value)){c.onChange.dispatch(c,l);if(c.settings.onselect){c.settings.onselect(l)}}}f.add(c.id,"change",d);f.add(c.id,"keydown",function(e){var l;f.remove(c.id,"change",b);a=false;l=f.add(c.id,"blur",function(){if(a){return}a=true;f.add(c.id,"change",d);f.remove(c.id,"blur",l)});if(e.keyCode==13||e.keyCode==32){d(e);return f.cancel(e)}});c.onPostRender.dispatch(c,j.get(c.id))}})})(tinymce);(function(h){var e=h.DOM,f=h.dom.Event,g=h.each;h.create("tinymce.ui.MenuButton:tinymce.ui.Button",{MenuButton:function(a,b,c){this.parent(a,b,c);this.onRenderMenu=new h.util.Dispatcher(this);b.menu_container=b.menu_container||e.doc.body},showMenu:function(){var d=this,a,b,c=e.get(d.id),k;if(d.isDisabled()){return}if(!d.isMenuRendered){d.renderMenu();d.isMenuRendered=true}if(d.isMenuVisible){return d.hideMenu()}a=e.getPos(d.settings.menu_container);b=e.getPos(c);k=d.menu;k.settings.offset_x=b.x;k.settings.offset_y=b.y;k.settings.vp_offset_x=b.x;k.settings.vp_offset_y=b.y;k.settings.keyboard_focus=d._focused;k.showMenu(0,c.clientHeight);f.add(e.doc,"mousedown",d.hideMenu,d);d.setState("Selected",1);d.isMenuVisible=1},renderMenu:function(){var a=this,b;b=a.settings.control_manager.createDropMenu(a.id+"_menu",{menu_line:1,"class":this.classPrefix+"Menu",icons:a.settings.icons});b.onHideMenu.add(function(){a.hideMenu();a.focus()});a.onRenderMenu.dispatch(a,b);a.menu=b},hideMenu:function(a){var b=this;if(a&&a.type=="mousedown"&&e.getParent(a.target,function(c){return c.id===b.id||c.id===b.id+"_open"})){return}if(!a||!e.getParent(a.target,".mceMenu")){b.setState("Selected",0);f.remove(e.doc,"mousedown",b.hideMenu,b);if(b.menu){b.menu.hideMenu()}}b.isMenuVisible=0},postRender:function(){var b=this,a=b.settings;f.add(b.id,"click",function(){if(!b.isDisabled()){if(a.onclick){a.onclick(b.value)}b.showMenu()}})}})})(tinymce);(function(h){var e=h.DOM,f=h.dom.Event,g=h.each;h.create("tinymce.ui.SplitButton:tinymce.ui.MenuButton",{SplitButton:function(a,b,c){this.parent(a,b,c);this.classPrefix="mceSplitButton"},renderHTML:function(){var a,c=this,b=c.settings,d;a="<tbody><tr>";if(b.image){d=e.createHTML("img ",{src:b.image,role:"presentation","class":"mceAction "+b["class"]})}else{d=e.createHTML("span",{"class":"mceAction "+b["class"]},"")}d+=e.createHTML("span",{"class":"mceVoiceLabel mceIconOnly",id:c.id+"_voice",style:"display:none;"},b.title);a+="<td >"+e.createHTML("a",{role:"button",id:c.id+"_action",tabindex:"-1",href:"javascript:;","class":"mceAction "+b["class"],onclick:"return false;",onmousedown:"return false;",title:b.title},d)+"</td>";d=e.createHTML("span",{"class":"mceOpen "+b["class"]},'<span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span>');a+="<td >"+e.createHTML("a",{role:"button",id:c.id+"_open",tabindex:"-1",href:"javascript:;","class":"mceOpen "+b["class"],onclick:"return false;",onmousedown:"return false;",title:b.title},d)+"</td>";a+="</tr></tbody>";a=e.createHTML("table",{id:c.id,role:"presentation",tabindex:"0","class":"mceSplitButton mceSplitButtonEnabled "+b["class"],cellpadding:"0",cellspacing:"0",title:b.title},a);return e.createHTML("span",{role:"button","aria-labelledby":c.id+"_voice","aria-haspopup":"true"},a)},postRender:function(){var c=this,a=c.settings,b;if(a.onclick){b=function(d){if(!c.isDisabled()){a.onclick(c.value);f.cancel(d)}};f.add(c.id+"_action","click",b);f.add(c.id,["click","keydown"],function(r){var o=32,d=14,q=13,p=38,n=40;if((r.keyCode===32||r.keyCode===13||r.keyCode===14)&&!r.altKey&&!r.ctrlKey&&!r.metaKey){b();f.cancel(r)}else{if(r.type==="click"||r.keyCode===n){c.showMenu();f.cancel(r)}}})}f.add(c.id+"_open","click",function(d){c.showMenu();f.cancel(d)});f.add([c.id,c.id+"_open"],"focus",function(){c._focused=1});f.add([c.id,c.id+"_open"],"blur",function(){c._focused=0});if(h.isIE6||!e.boxModel){f.add(c.id,"mouseover",function(){if(!e.hasClass(c.id,"mceSplitButtonDisabled")){e.addClass(c.id,"mceSplitButtonHover")}});f.add(c.id,"mouseout",function(){if(!e.hasClass(c.id,"mceSplitButtonDisabled")){e.removeClass(c.id,"mceSplitButtonHover")}})}},destroy:function(){this.parent();f.clear(this.id+"_action");f.clear(this.id+"_open");f.clear(this.id)}})})(tinymce);(function(i){var j=i.DOM,g=i.dom.Event,f=i.is,h=i.each;i.create("tinymce.ui.ColorSplitButton:tinymce.ui.SplitButton",{ColorSplitButton:function(a,b,d){var c=this;c.parent(a,b,d);c.settings=b=i.extend({colors:"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,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF",grid_width:8,default_color:"#888888"},c.settings);c.onShowMenu=new i.util.Dispatcher(c);c.onHideMenu=new i.util.Dispatcher(c);c.value=b.default_color},showMenu:function(){var e=this,d,a,b,c;if(e.isDisabled()){return}if(!e.isMenuRendered){e.renderMenu();e.isMenuRendered=true}if(e.isMenuVisible){return e.hideMenu()}b=j.get(e.id);j.show(e.id+"_menu");j.addClass(b,"mceSplitButtonSelected");c=j.getPos(b);j.setStyles(e.id+"_menu",{left:c.x,top:c.y+b.clientHeight,zIndex:200000});b=0;g.add(j.doc,"mousedown",e.hideMenu,e);e.onShowMenu.dispatch(e);if(e._focused){e._keyHandler=g.add(e.id+"_menu","keydown",function(l){if(l.keyCode==27){e.hideMenu()}});j.select("a",e.id+"_menu")[0].focus()}e.isMenuVisible=1},hideMenu:function(a){var b=this;if(a&&a.type=="mousedown"&&j.getParent(a.target,function(c){return c.id===b.id+"_open"})){return}if(!a||!j.getParent(a.target,".mceSplitButtonMenu")){j.removeClass(b.id,"mceSplitButtonSelected");g.remove(j.doc,"mousedown",b.hideMenu,b);g.remove(b.id+"_menu","keydown",b._keyHandler);j.hide(b.id+"_menu")}b.onHideMenu.dispatch(b);b.isMenuVisible=0;b.editor.focus()},renderMenu:function(){var b=this,n,e=0,a=b.settings,r,m,d,c,s;c=j.add(a.menu_container,"div",{role:"listbox",id:b.id+"_menu","class":a.menu_class+" "+a["class"],style:"position:absolute;left:0;top:-1000px;"});n=j.add(c,"div",{"class":a["class"]+" mceSplitButtonMenu"});j.add(n,"span",{"class":"mceMenuLine"});r=j.add(n,"table",{role:"presentation","class":"mceColorSplitMenu"});m=j.add(r,"tbody");e=0;h(f(a.colors,"array")?a.colors:a.colors.split(","),function(k){k=k.replace(/^#/,"");if(!e--){d=j.add(m,"tr");e=a.grid_width-1}r=j.add(d,"td");r=j.add(r,"a",{role:"option",href:"javascript:;",style:{backgroundColor:"#"+k},title:b.editor.getLang("colors."+k,k),"data-mce-color":"#"+k});if(b.editor.forcedHighContrastMode){r=j.add(r,"canvas",{width:16,height:16,"aria-hidden":"true"});if(r.getContext&&(s=r.getContext("2d"))){s.fillStyle="#"+k;s.fillRect(0,0,16,16)}else{j.remove(r)}}});if(a.more_colors_func){r=j.add(m,"tr");r=j.add(r,"td",{colspan:a.grid_width,"class":"mceMoreColors"});r=j.add(r,"a",{role:"option",id:b.id+"_more",href:"javascript:;",onclick:"return false;","class":"mceMoreColors"},a.more_colors_title);g.add(r,"click",function(k){a.more_colors_func.call(a.more_colors_scope||this);return g.cancel(k)})}j.addClass(n,"mceColorSplitMenu");new i.ui.KeyboardNavigation({root:b.id+"_menu",items:j.select("a",b.id+"_menu"),onCancel:function(){b.hideMenu();b.focus()}});g.add(b.id+"_menu","mousedown",function(k){return g.cancel(k)});g.add(b.id+"_menu","click",function(l){var k;l=j.getParent(l.target,"a",m);if(l&&l.nodeName.toLowerCase()=="a"&&(k=l.getAttribute("data-mce-color"))){b.setColor(k)}return g.cancel(l)});return c},setColor:function(a){this.displayColor(a);this.hideMenu();this.settings.onselect(a)},displayColor:function(a){var b=this;j.setStyle(b.id+"_preview","backgroundColor",a);b.value=a},postRender:function(){var b=this,a=b.id;b.parent();j.add(a+"_action","div",{id:a+"_preview","class":"mceColorPreview"});j.setStyle(b.id+"_preview","backgroundColor",b.value)},destroy:function(){this.parent();g.clear(this.id+"_menu");g.clear(this.id+"_more");j.remove(this.id+"_menu")}})})(tinymce);(function(e){var g=e.DOM,h=e.each,f=e.dom.Event;e.create("tinymce.ui.ToolbarGroup:tinymce.ui.Container",{renderHTML:function(){var d=this,b=[],k=d.controls,a=e.each,c=d.settings;b.push('<div id="'+d.id+'" role="group" aria-labelledby="'+d.id+'_voice">');b.push("<span role='application'>");b.push('<span id="'+d.id+'_voice" class="mceVoiceLabel" style="display:none;">'+g.encode(c.name)+"</span>");a(k,function(i){b.push(i.renderHTML())});b.push("</span>");b.push("</div>");return b.join("")},focus:function(){this.keyNav.focus()},postRender:function(){var a=this,b=[];h(a.controls,function(c){h(c.controls,function(d){if(d.id){b.push(d)}})});a.keyNav=new e.ui.KeyboardNavigation({root:a.id,items:b,onCancel:function(){a.editor.focus()},excludeFromTabOrder:!a.settings.tab_focus_toolbar})},destroy:function(){var a=this;a.parent();a.keyNav.destroy();f.clear(a.id)}})})(tinymce);(function(e){var f=e.DOM,d=e.each;e.create("tinymce.ui.Toolbar:tinymce.ui.Container",{renderHTML:function(){var b=this,p="",i,h,a=b.settings,q,r,o,c;c=b.controls;for(q=0;q<c.length;q++){h=c[q];r=c[q-1];o=c[q+1];if(q===0){i="mceToolbarStart";if(h.Button){i+=" mceToolbarStartButton"}else{if(h.SplitButton){i+=" mceToolbarStartSplitButton"}else{if(h.ListBox){i+=" mceToolbarStartListBox"}}}p+=f.createHTML("td",{"class":i},f.createHTML("span",null,"<!-- IE -->"))}if(r&&h.ListBox){if(r.Button||r.SplitButton){p+=f.createHTML("td",{"class":"mceToolbarEnd"},f.createHTML("span",null,"<!-- IE -->"))}}if(f.stdMode){p+='<td style="position: relative">'+h.renderHTML()+"</td>"}else{p+="<td>"+h.renderHTML()+"</td>"}if(o&&h.ListBox){if(o.Button||o.SplitButton){p+=f.createHTML("td",{"class":"mceToolbarStart"},f.createHTML("span",null,"<!-- IE -->"))}}}i="mceToolbarEnd";if(h.Button){i+=" mceToolbarEndButton"}else{if(h.SplitButton){i+=" mceToolbarEndSplitButton"}else{if(h.ListBox){i+=" mceToolbarEndListBox"}}}p+=f.createHTML("td",{"class":i},f.createHTML("span",null,"<!-- IE -->"));return f.createHTML("table",{id:b.id,"class":"mceToolbar"+(a["class"]?" "+a["class"]:""),cellpadding:"0",cellspacing:"0",align:b.settings.align||"",role:"presentation",tabindex:"-1"},"<tbody><tr>"+p+"</tr></tbody>")}})})(tinymce);(function(d){var e=d.util.Dispatcher,f=d.each;d.create("tinymce.AddOnManager",{AddOnManager:function(){var a=this;a.items=[];a.urls={};a.lookup={};a.onAdd=new e(a)},get:function(a){return this.lookup[a]},requireLangPack:function(a){var b=d.settings;if(b&&b.language&&b.language_load!==false){d.ScriptLoader.add(this.urls[a]+"/langs/"+b.language+".js")}},add:function(a,b){this.items.push(b);this.lookup[a]=b;this.onAdd.dispatch(this,a,b);return b},load:function(a,i,j,b){var c=this;if(c.urls[a]){return}if(i.indexOf("/")!=0&&i.indexOf("://")==-1){i=d.baseURL+"/"+i}c.urls[a]=i.substring(0,i.lastIndexOf("/"));if(!c.lookup[a]){d.ScriptLoader.add(i,j,b)}}});d.PluginManager=new d.AddOnManager();d.ThemeManager=new d.AddOnManager()}(tinymce));(function(m){var p=m.each,s=m.extend,l=m.DOM,n=m.dom.Event,q=m.ThemeManager,u=m.PluginManager,r=m.explode,o=m.util.Dispatcher,v,t=0;m.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(m.documentBaseURL)){m.documentBaseURL+="/"}m.baseURL=new m.util.URI(m.documentBaseURL).toAbsolute(m.baseURL);m.baseURI=new m.util.URI(m.baseURL);m.onBeforeUnload=new o(m);n.add(window,"beforeunload",function(a){m.onBeforeUnload.dispatch(m,a)});m.onAddEditor=new o(m);m.onRemoveEditor=new o(m);m.EditorManager=s(m,{editors:[],i18n:{},activeEditor:null,init:function(e){var h=this,f,b=m.ScriptLoader,c,g=[],a;function d(i,z,k){var j=i[z];if(!j){return}if(m.is(j,"string")){k=j.replace(/\.\w+$/,"");k=k?m.resolve(k):0;j=m.resolve(j)}return j.apply(k||this,Array.prototype.slice.call(arguments,2))}e=s({theme:"simple",language:"en"},e);h.settings=e;n.add(document,"init",function(){var k,i;d(e,"onpageload");switch(e.mode){case"exact":k=e.elements||"";if(k.length>0){p(r(k),function(y){if(l.get(y)){a=new m.Editor(y,e);g.push(a);a.render(1)}else{p(document.forms,function(x){p(x.elements,function(A){if(A.name===y){y="mce_editor_"+t++;l.setAttrib(A,"id",y);a=new m.Editor(y,e);g.push(a);a.render(1)}})})}})}break;case"textareas":case"specific_textareas":function j(A,z){return z.constructor===RegExp?z.test(A.className):l.hasClass(A,z)}p(l.select("textarea"),function(y){if(e.editor_deselector&&j(y,e.editor_deselector)){return}if(!e.editor_selector||j(y,e.editor_selector)){c=l.get(y.name);if(!y.id&&!c){y.id=y.name}if(!y.id||h.get(y.id)){y.id=l.uniqueId()}a=new m.Editor(y.id,e);g.push(a);a.render(1)}});break}if(e.oninit){k=i=0;p(g,function(y){i++;if(!y.initialized){y.onInit.add(function(){k++;if(k==i){d(e,"oninit")}})}else{k++}if(k==i){d(e,"oninit")}})}})},get:function(a){if(a===v){return this.editors}return this.editors[a]},getInstanceById:function(a){return this.get(a)},add:function(a){var b=this,c=b.editors;c[a.id]=a;c.push(a);b._setActive(a);b.onAddEditor.dispatch(b,a);if(m.adapter){m.adapter.patchEditor(a)}return a},remove:function(d){var a=this,b,c=a.editors;if(!c[d.id]){return null}delete c[d.id];for(b=0;b<c.length;b++){if(c[b]==d){c.splice(b,1);break}}if(a.activeEditor==d){a._setActive(c[0])}d.destroy();a.onRemoveEditor.dispatch(a,d);return d},execCommand:function(c,e,f){var d=this,g=d.get(f),b;switch(c){case"mceFocus":g.focus();return true;case"mceAddEditor":case"mceAddControl":if(!d.get(f)){new m.Editor(f,d.settings).render()}return true;case"mceAddFrameControl":b=f.window;b.tinyMCE=tinyMCE;b.tinymce=m;m.DOM.doc=b.document;m.DOM.win=b;g=new m.Editor(f.element_id,f);g.render();if(m.isIE){function a(){g.destroy();b.detachEvent("onunload",a);b=b.tinyMCE=b.tinymce=null}b.attachEvent("onunload",a)}f.page_window=null;return true;case"mceRemoveEditor":case"mceRemoveControl":if(g){g.remove()}return true;case"mceToggleEditor":if(!g){d.execCommand("mceAddControl",0,f);return true}if(g.isHidden()){g.show()}else{g.hide()}return true}if(d.activeEditor){return d.activeEditor.execCommand(c,e,f)}return false},execInstanceCommand:function(c,d,e,a){var b=this.get(c);if(b){return b.execCommand(d,e,a)}return false},triggerSave:function(){p(this.editors,function(a){a.save()})},addI18n:function(d,c){var b,a=this.i18n;if(!m.is(d,"string")){p(d,function(e,f){p(e,function(g,h){p(g,function(i,j){if(h==="common"){a[f+"."+j]=i}else{a[f+"."+h+"."+j]=i}})})})}else{p(c,function(e,f){a[d+"."+f]=e})}},_setActive:function(a){this.selectedInstance=this.activeEditor=a}})})(tinymce);(function(r){var q=r.DOM,u=r.dom.Event,z=r.extend,t=r.util.Dispatcher,v=r.each,E=r.isGecko,D=r.isIE,A=r.isWebKit,B=r.is,x=r.ThemeManager,C=r.PluginManager,p=r.inArray,s=r.grep,y=r.explode;r.create("tinymce.Editor",{Editor:function(a,b){var c=this;c.id=c.editorId=a;c.execCommands={};c.queryStateCommands={};c.queryValueCommands={};c.isNotDirty=false;c.plugins={};v(["onPreInit","onBeforeRenderUI","onPostRender","onInit","onRemove","onActivate","onDeactivate","onClick","onEvent","onMouseUp","onMouseDown","onDblClick","onKeyDown","onKeyUp","onKeyPress","onContextMenu","onSubmit","onReset","onPaste","onPreProcess","onPostProcess","onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent","onLoadContent","onSaveContent","onNodeChange","onChange","onBeforeExecCommand","onExecCommand","onUndo","onRedo","onVisualAid","onSetProgressState"],function(d){c[d]=new t(c)});c.settings=b=z({id:a,language:"en",docs_language:"en",theme:"simple",skin:"default",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:r.documentBaseURL,add_form_submit_trigger:1,submit_patch:1,add_unload_trigger:1,convert_urls:1,relative_urls:1,remove_script_host:1,table_inline_editing:0,object_resizing:1,cleanup:1,accessibility_focus:1,custom_shortcuts:1,custom_undo_redo_keyboard_shortcuts:1,custom_undo_redo_restore_selection:1,custom_undo_redo:1,doctype:r.isIE6?'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">':"<!DOCTYPE>",visual_table_class:"mceItemTable",visual:1,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",apply_source_formatting:1,directionality:"ltr",forced_root_block:"p",hidden_input:1,padd_empty_editor:1,render_ui:1,init_theme:1,force_p_newlines:1,indentation:"30px",keep_styles:1,fix_table_elements:1,inline_styles:1,convert_fonts_to_spans:true,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr",validate:true,entity_encoding:"named",url_converter:c.convertURL,url_converter_scope:c,ie7_compat:true},b);c.documentBaseURI=new r.util.URI(b.document_base_url||r.documentBaseURL,{base_uri:tinyMCE.baseURI});c.baseURI=r.baseURI;c.contentCSS=[];c.execCallback("setup",c)},render:function(d){var c=this,b=c.settings,a=c.id,f=r.ScriptLoader;if(!u.domLoaded){u.add(document,"init",function(){c.render()});return}tinyMCE.settings=b;if(!c.getElement()){return}if(r.isIDevice){return}if(!/TEXTAREA|INPUT/i.test(c.getElement().nodeName)&&b.hidden_input&&q.getParent(a,"form")){q.insertAfter(q.create("input",{type:"hidden",name:a}),a)}if(r.WindowManager){c.windowManager=new r.WindowManager(c)}if(b.encoding=="xml"){c.onGetContent.add(function(h,g){if(g.save){g.content=q.encode(g.content)}})}if(b.add_form_submit_trigger){c.onSubmit.addToTop(function(){if(c.initialized){c.save();c.isNotDirty=1}})}if(b.add_unload_trigger){c._beforeUnload=tinyMCE.onBeforeUnload.add(function(){if(c.initialized&&!c.destroyed&&!c.isHidden()){c.save({format:"raw",no_events:true})}})}r.addUnload(c.destroy,c);if(b.submit_patch){c.onBeforeRenderUI.add(function(){var g=c.getElement().form;if(!g){return}if(g._mceOldSubmit){return}if(!g.submit.nodeType&&!g.submit.length){c.formElement=g;g._mceOldSubmit=g.submit;g.submit=function(){r.triggerSave();c.isNotDirty=1;return c.formElement._mceOldSubmit(c.formElement)}}g=null})}function e(){if(b.language&&b.language_load!==false){f.add(r.baseURL+"/langs/"+b.language+".js")}if(b.theme&&b.theme.charAt(0)!="-"&&!x.urls[b.theme]){x.load(b.theme,"themes/"+b.theme+"/editor_template"+r.suffix+".js")}v(y(b.plugins),function(g){if(g&&g.charAt(0)!="-"&&!C.urls[g]){if(g=="safari"){return}C.load(g,"plugins/"+g+"/editor_plugin"+r.suffix+".js")}});f.loadQueue(function(){if(!c.removed){c.init()}})}e()},init:function(){var b,m=this,l=m.settings,c,h,e=m.getElement(),d,f,a,j,g,n,i;r.add(m);l.aria_label=l.aria_label||q.getAttrib(e,"aria-label",m.getLang("aria.rich_text_area"));if(l.theme){l.theme=l.theme.replace(/-/,"");d=x.get(l.theme);m.theme=new d();if(m.theme.init&&l.init_theme){m.theme.init(m,x.urls[l.theme]||r.documentBaseURL.replace(/\/$/,""))}}v(y(l.plugins.replace(/\-/g,"")),function(G){var o=C.get(G),F=C.urls[G]||r.documentBaseURL.replace(/\/$/,""),J;if(o){J=new o(m,F);m.plugins[G]=J;if(J.init){J.init(m,F)}}});if(l.popup_css!==false){if(l.popup_css){l.popup_css=m.documentBaseURI.toAbsolute(l.popup_css)}else{l.popup_css=m.baseURI.toAbsolute("themes/"+l.theme+"/skins/"+l.skin+"/dialog.css")}}if(l.popup_css_add){l.popup_css+=","+m.documentBaseURI.toAbsolute(l.popup_css_add)}m.controlManager=new r.ControlManager(m);if(l.custom_undo_redo){m.onExecCommand.add(function(J,G,F,o,K){if(G!="Undo"&&G!="Redo"&&G!="mceRepaint"&&(!K||!K.skip_undo)){m.undoManager.add()}})}m.onExecCommand.add(function(F,o){if(!/^(FontName|FontSize)$/.test(o)){m.nodeChanged()}});if(E){function k(F,o){if(!o||!o.initial){m.execCommand("mceRepaint")}}m.onUndo.add(k);m.onRedo.add(k);m.onSetContent.add(k)}m.onBeforeRenderUI.dispatch(m,m.controlManager);if(l.render_ui){c=l.width||e.style.width||e.offsetWidth;h=l.height||e.style.height||e.offsetHeight;m.orgDisplay=e.style.display;n=/^[0-9\.]+(|px)$/i;if(n.test(""+c)){c=Math.max(parseInt(c)+(d.deltaWidth||0),100)}if(n.test(""+h)){h=Math.max(parseInt(h)+(d.deltaHeight||0),100)}d=m.theme.renderUI({targetNode:e,width:c,height:h,deltaWidth:l.delta_width,deltaHeight:l.delta_height});m.editorContainer=d.editorContainer}if(document.domain&&location.hostname!=document.domain){r.relaxedDomain=document.domain}q.setStyles(d.sizeContainer||d.editorContainer,{width:c,height:h});if(l.content_css){r.each(y(l.content_css),function(o){m.contentCSS.push(m.documentBaseURI.toAbsolute(o))})}h=(d.iframeHeight||h)+(typeof(h)=="number"?(d.deltaHeight||0):"");if(h<100){h=100}m.iframeHTML=l.doctype+'<html><head xmlns="http://www.w3.org/1999/xhtml">';if(l.document_base_url!=r.documentBaseURL){m.iframeHTML+='<base href="'+m.documentBaseURI.getURI()+'" />'}if(l.ie7_compat){m.iframeHTML+='<meta http-equiv="X-UA-Compatible" content="IE=7" />'}else{m.iframeHTML+='<meta http-equiv="X-UA-Compatible" content="IE=edge" />'}m.iframeHTML+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';if(!E||!/Firefox\/2/.test(navigator.userAgent)){for(i=0;i<m.contentCSS.length;i++){m.iframeHTML+='<link type="text/css" rel="stylesheet" href="'+m.contentCSS[i]+'" />'}m.contentCSS=[]}j=l.body_id||"tinymce";if(j.indexOf("=")!=-1){j=m.getParam("body_id","","hash");j=j[m.id]||j}g=l.body_class||"";if(g.indexOf("=")!=-1){g=m.getParam("body_class","","hash");g=g[m.id]||""}m.iframeHTML+='</head><body id="'+j+'" class="mceContentBody '+g+'"></body></html>';if(r.relaxedDomain&&(D||(r.isOpera&&parseFloat(opera.version())<11))){a='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinyMCE.get("'+m.id+'");document.write(ed.iframeHTML);document.close();ed.setupIframe();})()'}b=q.add(d.iframeContainer,"iframe",{id:m.id+"_ifr",src:a||'javascript:""',frameBorder:"0",title:l.aria_label,style:{width:"100%",height:h}});m.contentAreaContainer=d.iframeContainer;q.get(d.editorContainer).style.display=m.orgDisplay;q.get(m.id).style.display="none";q.setAttrib(m.id,"aria-hidden",true);if(!r.relaxedDomain||!a){m.setupIframe()}e=b=d=null},setupIframe:function(){var d=this,a=d.settings,h=q.get(d.id),g=d.getDoc(),b,f;if(!D||!r.relaxedDomain){g.open();g.write(d.iframeHTML);g.close();if(r.relaxedDomain){g.domain=r.relaxedDomain}}if(!D){try{if(!a.readonly){g.designMode="On"}}catch(e){}}if(D){f=d.getBody();q.hide(f);if(!a.readonly){f.contentEditable=true}q.show(f)}d.schema=new r.html.Schema(a);d.dom=new r.dom.DOMUtils(d.getDoc(),{keep_values:true,url_converter:d.convertURL,url_converter_scope:d,hex_colors:a.force_hex_style_colors,class_filter:a.class_filter,update_styles:1,fix_ie_paragraphs:1,schema:d.schema});d.parser=new r.html.DomParser(a,d.schema);d.parser.addAttributeFilter("name",function(k,j){var o=k.length,m,i,n,l;while(o--){l=k[o];if(l.name==="a"&&l.firstChild){n=l.parent;m=l.lastChild;do{i=m.prev;n.insert(m,l);m=i}while(m)}}});d.parser.addAttributeFilter("src,href,style",function(k,j){var i=k.length,n,l=d.dom,m;while(i--){n=k[i];m=n.attr(j);if(j==="style"){n.attr("data-mce-style",l.serializeStyle(l.parseStyle(m),n.name))}else{n.attr("data-mce-"+j,d.convertURL(m,j,n.name))}}});d.parser.addNodeFilter("script",function(k,j){var i=k.length;while(i--){k[i].attr("type","mce-text/javascript")}});d.parser.addNodeFilter("#cdata",function(k,j){var i=k.length,l;while(i--){l=k[i];l.type=8;l.name="#comment";l.value="[CDATA["+l.value+"]]"}});d.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(j,i){var m=j.length,l,k=d.schema.getNonEmptyElements();while(m--){l=j[m];if(l.isEmpty(k)){l.empty().append(new r.html.Node("br",1)).shortEnded=true}}});d.serializer=new r.dom.Serializer(a,d.dom,d.schema);d.selection=new r.dom.Selection(d.dom,d.getWin(),d.serializer);d.formatter=new r.Formatter(this);d.formatter.register({alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table",collapsed:false,styles:{"float":"left"}}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img",collapsed:false,styles:{display:"block",marginLeft:"auto",marginRight:"auto"}},{selector:"table",collapsed:false,styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table",collapsed:false,styles:{"float":"right"}}],alignfull:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"justify"}}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:true},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:true},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},wrap_links:false},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},wrap_links:false},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},removeformat:[{selector:"b,strong,em,i,font,u,strike",remove:"all",split:true,expand:false,block_expand:true,deep:true},{selector:"span",attributes:["style","class"],remove:"empty",split:true,expand:false,deep:true},{selector:"*",attributes:["style","class"],split:false,expand:false,deep:true}]});v("p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp".split(/\s/),function(i){d.formatter.register(i,{block:i,remove:"all"})});d.formatter.register(d.settings.formats);d.undoManager=new r.UndoManager(d);d.undoManager.onAdd.add(function(i,j){if(!j.initial){return d.onChange.dispatch(d,j,i)}});d.undoManager.onUndo.add(function(i,j){return d.onUndo.dispatch(d,j,i)});d.undoManager.onRedo.add(function(i,j){return d.onRedo.dispatch(d,j,i)});d.forceBlocks=new r.ForceBlocks(d,{forced_root_block:a.forced_root_block});d.editorCommands=new r.EditorCommands(d);d.serializer.onPreProcess.add(function(j,i){return d.onPreProcess.dispatch(d,i,j)});d.serializer.onPostProcess.add(function(j,i){return d.onPostProcess.dispatch(d,i,j)});d.onPreInit.dispatch(d);if(!a.gecko_spellcheck){d.getBody().spellcheck=0}if(!a.readonly){d._addEvents()}d.controlManager.onPostRender.dispatch(d,d.controlManager);d.onPostRender.dispatch(d);if(a.directionality){d.getBody().dir=a.directionality}if(a.nowrap){d.getBody().style.whiteSpace="nowrap"}if(a.handle_node_change_callback){d.onNodeChange.add(function(j,k,i){d.execCallback("handle_node_change_callback",d.id,i,-1,-1,true,d.selection.isCollapsed())})}if(a.save_callback){d.onSaveContent.add(function(k,i){var j=d.execCallback("save_callback",d.id,i.content,d.getBody());if(j){i.content=j}})}if(a.onchange_callback){d.onChange.add(function(i,j){d.execCallback("onchange_callback",d,j)})}if(a.protect){d.onBeforeSetContent.add(function(j,i){if(a.protect){v(a.protect,function(k){i.content=i.content.replace(k,function(l){return"<!--mce:protected "+escape(l)+"-->"})})}})}if(a.convert_newlines_to_brs){d.onBeforeSetContent.add(function(j,i){if(i.initial){i.content=i.content.replace(/\r?\n/g,"<br />")}})}if(a.preformatted){d.onPostProcess.add(function(j,i){i.content=i.content.replace(/^\s*<pre.*?>/,"");i.content=i.content.replace(/<\/pre>\s*$/,"");if(i.set){i.content='<pre class="mceItemHidden">'+i.content+"</pre>"}})}if(a.verify_css_classes){d.serializer.attribValueFilter=function(k,i){var l,j;if(k=="class"){if(!d.classesRE){j=d.dom.getClasses();if(j.length>0){l="";v(j,function(m){l+=(l?"|":"")+m["class"]});d.classesRE=new RegExp("("+l+")","gi")}}return !d.classesRE||/(\bmceItem\w+\b|\bmceTemp\w+\b)/g.test(i)||d.classesRE.test(i)?i:""}return i}}if(a.cleanup_callback){d.onBeforeSetContent.add(function(j,i){i.content=d.execCallback("cleanup_callback","insert_to_editor",i.content,i)});d.onPreProcess.add(function(j,i){if(i.set){d.execCallback("cleanup_callback","insert_to_editor_dom",i.node,i)}if(i.get){d.execCallback("cleanup_callback","get_from_editor_dom",i.node,i)}});d.onPostProcess.add(function(j,i){if(i.set){i.content=d.execCallback("cleanup_callback","insert_to_editor",i.content,i)}if(i.get){i.content=d.execCallback("cleanup_callback","get_from_editor",i.content,i)}})}if(a.save_callback){d.onGetContent.add(function(j,i){if(i.save){i.content=d.execCallback("save_callback",d.id,i.content,d.getBody())}})}if(a.handle_event_callback){d.onEvent.add(function(k,j,i){if(d.execCallback("handle_event_callback",j,k,i)===false){u.cancel(j)}})}d.onSetContent.add(function(){d.addVisual(d.getBody())});if(a.padd_empty_editor){d.onPostProcess.add(function(j,i){i.content=i.content.replace(/^(<p[^>]*>( | |\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/,"")})}if(E){function c(j,i){v(j.dom.select("a"),function(l){var k=l.parentNode;if(j.dom.isBlock(k)&&k.lastChild===l){j.dom.add(k,"br",{"data-mce-bogus":1})}})}d.onExecCommand.add(function(j,i){if(i==="CreateLink"){c(j)}});d.onSetContent.add(d.selection.onSetContent.add(c));if(!a.readonly){try{g.designMode="Off";g.designMode="On"}catch(e){}}}setTimeout(function(){if(d.removed){return}d.load({initial:true,format:"html"});d.startContent=d.getContent({format:"raw"});d.undoManager.add();d.initialized=true;d.onInit.dispatch(d);d.execCallback("setupcontent_callback",d.id,d.getBody(),d.getDoc());d.execCallback("init_instance_callback",d);d.focus(true);d.nodeChanged({initial:1});v(d.contentCSS,function(i){d.dom.loadCSS(i)});if(a.auto_focus){setTimeout(function(){var i=r.get(a.auto_focus);i.selection.select(i.getBody(),1);i.selection.collapse(1);i.getWin().focus()},100)}},1);h=null},focus:function(d){var a,f=this,b=f.settings.content_editable,e,g,c=f.getDoc();if(!d){e=f.selection.getRng();if(e.item){g=e.item(0)}if(!b){f.getWin().focus()}if(g&&g.ownerDocument==c){e=c.body.createControlRange();e.addElement(g);e.select()}}if(r.activeEditor!=f){if((a=r.activeEditor)!=null){a.onDeactivate.dispatch(a,f)}f.onActivate.dispatch(f,a)}r._setActive(f)},execCallback:function(a){var d=this,b=d.settings[a],c;if(!b){return}if(d.callbackLookup&&(c=d.callbackLookup[a])){b=c.func;c=c.scope}if(B(b,"string")){c=b.replace(/\.\w+$/,"");c=c?r.resolve(c):0;b=r.resolve(b);d.callbackLookup=d.callbackLookup||{};d.callbackLookup[a]={func:b,scope:c}}return b.apply(c||d,Array.prototype.slice.call(arguments,1))},translate:function(c){var a=this.settings.language||"en",b=r.i18n;if(!c){return""}return b[a+"."+c]||c.replace(/{\#([^}]+)\}/g,function(d,e){return b[a+"."+e]||"{#"+e+"}"})},getLang:function(a,b){return r.i18n[(this.settings.language||"en")+"."+a]||(B(b)?b:"{#"+a+"}")},getParam:function(a,d,f){var c=r.trim,e=B(this.settings[a])?this.settings[a]:d,b;if(f==="hash"){b={};if(B(e,"string")){v(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),function(g){g=g.split("=");if(g.length>1){b[c(g[0])]=c(g[1])}else{b[c(g[0])]=c(g)}})}else{b=e}return b}return e},nodeChanged:function(b){var d=this,c=d.selection,a=(D?c.getNode():c.getStart())||d.getBody();if(d.initialized){b=b||{};a=D&&a.ownerDocument!=d.getDoc()?d.getBody():a;b.parents=[];d.dom.getParent(a,function(e){if(e.nodeName=="BODY"){return true}b.parents.push(e)});d.onNodeChange.dispatch(d,b?b.controlManager||d.controlManager:d.controlManager,a,c.isCollapsed(),b)}},addButton:function(a,b){var c=this;c.buttons=c.buttons||{};c.buttons[a]=b},addCommand:function(c,a,b){this.execCommands[c]={func:a,scope:b||this}},addQueryStateHandler:function(c,a,b){this.queryStateCommands[c]={func:a,scope:b||this}},addQueryValueHandler:function(c,a,b){this.queryValueCommands[c]={func:a,scope:b||this}},addShortcut:function(d,b,f,c){var e=this,a;if(!e.settings.custom_shortcuts){return false}e.shortcuts=e.shortcuts||{};if(B(f,"string")){a=f;f=function(){e.execCommand(a,false,null)}}if(B(f,"object")){a=f;f=function(){e.execCommand(a[0],a[1],a[2])}}v(y(d),function(h){var g={func:f,scope:c||this,desc:b,alt:false,ctrl:false,shift:false};v(y(h,"+"),function(i){switch(i){case"alt":case"ctrl":case"shift":g[i]=true;break;default:g.charCode=i.charCodeAt(0);g.keyCode=i.toUpperCase().charCodeAt(0)}});e.shortcuts[(g.ctrl?"ctrl":"")+","+(g.alt?"alt":"")+","+(g.shift?"shift":"")+","+g.keyCode]=g});return true},execCommand:function(a,b,g,f){var d=this,c=0,h,e;if(!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(a)&&(!f||!f.skip_focus)){d.focus()}h={};d.onBeforeExecCommand.dispatch(d,a,b,g,h);if(h.terminate){return false}if(d.execCallback("execcommand_callback",d.id,d.selection.getNode(),a,b,g)){d.onExecCommand.dispatch(d,a,b,g,f);return true}if(h=d.execCommands[a]){e=h.func.call(h.scope,b,g);if(e!==true){d.onExecCommand.dispatch(d,a,b,g,f);return e}}v(d.plugins,function(i){if(i.execCommand&&i.execCommand(a,b,g)){d.onExecCommand.dispatch(d,a,b,g,f);c=1;return false}});if(c){return true}if(d.theme&&d.theme.execCommand&&d.theme.execCommand(a,b,g)){d.onExecCommand.dispatch(d,a,b,g,f);return true}if(d.editorCommands.execCommand(a,b,g)){d.onExecCommand.dispatch(d,a,b,g,f);return true}d.getDoc().execCommand(a,b,g);d.onExecCommand.dispatch(d,a,b,g,f)},queryCommandState:function(b){var d=this,a,c;if(d._isHidden()){return}if(a=d.queryStateCommands[b]){c=a.func.call(a.scope);if(c!==true){return c}}a=d.editorCommands.queryCommandState(b);if(a!==-1){return a}try{return this.getDoc().queryCommandState(b)}catch(e){}},queryCommandValue:function(a){var d=this,b,c;if(d._isHidden()){return}if(b=d.queryValueCommands[a]){c=b.func.call(b.scope);if(c!==true){return c}}b=d.editorCommands.queryCommandValue(a);if(B(b)){return b}try{return this.getDoc().queryCommandValue(a)}catch(e){}},show:function(){var a=this;q.show(a.getContainer());q.hide(a.id);a.load()},hide:function(){var b=this,a=b.getDoc();if(D&&a){a.execCommand("SelectAll")}b.save();q.hide(b.getContainer());q.setStyle(b.id,"display",b.orgDisplay)},isHidden:function(){return !q.isHidden(this.id)},setProgressState:function(c,b,a){this.onSetProgressState.dispatch(this,c,b,a);return c},load:function(a){var d=this,b=d.getElement(),c;if(b){a=a||{};a.load=true;c=d.setContent(B(b.value)?b.value:b.innerHTML,a);a.element=b;if(!a.no_events){d.onLoadContent.dispatch(d,a)}a.element=b=null;return c}},save:function(a){var e=this,b=e.getElement(),d,c;if(!b||!e.initialized){return}a=a||{};a.save=true;if(!a.no_events){e.undoManager.typing=false;e.undoManager.add()}a.element=b;d=a.content=e.getContent(a);if(!a.no_events){e.onSaveContent.dispatch(e,a)}d=a.content;if(!/TEXTAREA|INPUT/i.test(b.nodeName)){b.innerHTML=d;if(c=q.getParent(e.id,"form")){v(c.elements,function(f){if(f.name==e.id){f.value=d;return false}})}}else{b.value=d}a.element=b=null;return d},setContent:function(a,b){var c=this,d,e=c.getBody();b=b||{};b.format=b.format||"html";b.set=true;b.content=a;if(!b.no_events){c.onBeforeSetContent.dispatch(c,b)}if(!r.isIE&&(a.length===0||/^\s+$/.test(a))){e.innerHTML='<br data-mce-bogus="1" />';return}if(b.format!=="raw"){b.content=new r.html.Serializer({},c.schema).serialize(c.parser.parse(b.content))}e.innerHTML=r.trim(b.content);if(!b.no_events){c.onSetContent.dispatch(c,b)}return b.content},getContent:function(b){var c=this,a;b=b||{};b.format=b.format||"html";b.get=true;if(!b.no_events){c.onBeforeGetContent.dispatch(c,b)}if(b.format=="raw"){a=c.getBody().innerHTML}else{a=c.serializer.serialize(c.getBody(),b)}b.content=r.trim(a);if(!b.no_events){c.onGetContent.dispatch(c,b)}return b.content},isDirty:function(){var a=this;return r.trim(a.startContent)!=r.trim(a.getContent({format:"raw",no_events:1}))&&!a.isNotDirty},getContainer:function(){var a=this;if(!a.container){a.container=q.get(a.editorContainer||a.id+"_parent")}return a.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return q.get(this.settings.content_element||this.id)},getWin:function(){var b=this,a;if(!b.contentWindow){a=q.get(b.id+"_ifr");if(a){b.contentWindow=a.contentWindow}}return b.contentWindow},getDoc:function(){var a=this,b;if(!a.contentDocument){b=a.getWin();if(b){a.contentDocument=b.document}}return a.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(e,a,b){var d=this,c=d.settings;if(c.urlconverter_callback){return d.execCallback("urlconverter_callback",e,b,true,a)}if(!c.convert_urls||(b&&b.nodeName=="LINK")||e.indexOf("file:")===0){return e}if(c.relative_urls){return d.documentBaseURI.toRelative(e)}e=d.documentBaseURI.toAbsolute(e,c.remove_script_host);return e},addVisual:function(a){var c=this,b=c.settings;a=a||c.getBody();if(!B(c.hasVisual)){c.hasVisual=b.visual}v(c.dom.select("table,a",a),function(d){var e;switch(d.nodeName){case"TABLE":e=c.dom.getAttrib(d,"border");if(!e||e=="0"){if(c.hasVisual){c.dom.addClass(d,b.visual_table_class)}else{c.dom.removeClass(d,b.visual_table_class)}}return;case"A":e=c.dom.getAttrib(d,"name");if(e){if(c.hasVisual){c.dom.addClass(d,"mceItemAnchor")}else{c.dom.removeClass(d,"mceItemAnchor")}}return}});c.onVisualAid.dispatch(c,a,c.hasVisual)},remove:function(){var b=this,a=b.getContainer();b.removed=1;b.hide();b.execCallback("remove_instance_callback",b);b.onRemove.dispatch(b);b.onExecCommand.listeners=[];r.remove(b);q.remove(a)},destroy:function(a){var b=this;if(b.destroyed){return}if(!a){r.removeUnload(b.destroy);tinyMCE.onBeforeUnload.remove(b._beforeUnload);if(b.theme&&b.theme.destroy){b.theme.destroy()}b.controlManager.destroy();b.selection.destroy();b.dom.destroy();if(!b.settings.content_editable){u.clear(b.getWin());u.clear(b.getDoc())}u.clear(b.getBody());u.clear(b.formElement)}if(b.formElement){b.formElement.submit=b.formElement._mceOldSubmit;b.formElement._mceOldSubmit=null}b.contentAreaContainer=b.formElement=b.container=b.settings.content_element=b.bodyElement=b.contentDocument=b.contentWindow=null;if(b.selection){b.selection=b.selection.win=b.selection.dom=b.selection.dom.doc=null}b.destroyed=1},_addEvents:function(){var d=this,a,b=d.settings,c=d.dom,i={mouseup:"onMouseUp",mousedown:"onMouseDown",click:"onClick",keyup:"onKeyUp",keydown:"onKeyDown",keypress:"onKeyPress",submit:"onSubmit",reset:"onReset",contextmenu:"onContextMenu",dblclick:"onDblClick",paste:"onPaste"};function e(l,n){var m=l.type;if(d.removed){return}if(d.onEvent.dispatch(d,l,n)!==false){d[i[l.fakeType||l.type]].dispatch(d,l,n)}}v(i,function(l,m){switch(m){case"contextmenu":c.bind(d.getDoc(),m,e);break;case"paste":c.bind(d.getBody(),m,function(n){e(n)});break;case"submit":case"reset":c.bind(d.getElement().form||q.getParent(d.id,"form"),m,e);break;default:c.bind(b.content_editable?d.getBody():d.getDoc(),m,e)}});c.bind(b.content_editable?d.getBody():(E?d.getDoc():d.getWin()),"focus",function(l){d.focus(true)});if(r.isGecko){c.bind(d.getDoc(),"DOMNodeInserted",function(l){var m;l=l.target;if(l.nodeType===1&&l.nodeName==="IMG"&&(m=l.getAttribute("data-mce-src"))){l.src=d.documentBaseURI.toAbsolute(m)}})}if(E){function k(){var n=this,l=n.getDoc(),m=n.settings;if(E&&!m.readonly){if(n._isHidden()){try{if(!m.content_editable){l.designMode="On"}}catch(o){}}try{l.execCommand("styleWithCSS",0,false)}catch(o){if(!n._isHidden()){try{l.execCommand("useCSS",0,true)}catch(o){}}}if(!m.table_inline_editing){try{l.execCommand("enableInlineTableEditing",false,false)}catch(o){}}if(!m.object_resizing){try{l.execCommand("enableObjectResizing",false,false)}catch(o){}}}}d.onBeforeExecCommand.add(k);d.onMouseDown.add(k)}if(r.isWebKit){d.onClick.add(function(m,l){l=l.target;if(l.nodeName=="IMG"||(l.nodeName=="A"&&c.hasClass(l,"mceItemAnchor"))){d.selection.getSel().setBaseAndExtent(l,0,l,1);d.nodeChanged()}})}d.onMouseUp.add(d.nodeChanged);d.onKeyUp.add(function(m,l){var n=l.keyCode;if((n>=33&&n<=36)||(n>=37&&n<=40)||n==13||n==45||n==46||n==8||(r.isMac&&(n==91||n==93))||l.ctrlKey){d.nodeChanged()}});d.onReset.add(function(){d.setContent(d.startContent,{format:"raw"})});if(b.custom_shortcuts){if(b.custom_undo_redo_keyboard_shortcuts){d.addShortcut("ctrl+z",d.getLang("undo_desc"),"Undo");d.addShortcut("ctrl+y",d.getLang("redo_desc"),"Redo")}d.addShortcut("ctrl+b",d.getLang("bold_desc"),"Bold");d.addShortcut("ctrl+i",d.getLang("italic_desc"),"Italic");d.addShortcut("ctrl+u",d.getLang("underline_desc"),"Underline");for(a=1;a<=6;a++){d.addShortcut("ctrl+"+a,"",["FormatBlock",false,"h"+a])}d.addShortcut("ctrl+7","",["FormatBlock",false,"<p>"]);d.addShortcut("ctrl+8","",["FormatBlock",false,"<div>"]);d.addShortcut("ctrl+9","",["FormatBlock",false,"<address>"]);function j(l){var m=null;if(!l.altKey&&!l.ctrlKey&&!l.metaKey){return m}v(d.shortcuts,function(n){if(r.isMac&&n.ctrl!=l.metaKey){return}else{if(!r.isMac&&n.ctrl!=l.ctrlKey){return}}if(n.alt!=l.altKey){return}if(n.shift!=l.shiftKey){return}if(l.keyCode==n.keyCode||(l.charCode&&l.charCode==n.charCode)){m=n;return false}});return m}d.onKeyUp.add(function(m,l){var n=j(l);if(n){return u.cancel(l)}});d.onKeyPress.add(function(m,l){var n=j(l);if(n){return u.cancel(l)}});d.onKeyDown.add(function(m,l){var n=j(l);if(n){n.func.call(n.scope);return u.cancel(l)}})}if(r.isIE){c.bind(d.getDoc(),"controlselect",function(n){var l=d.resizeInfo,m;n=n.target;if(n.nodeName!=="IMG"){return}if(l){c.unbind(l.node,l.ev,l.cb)}if(!c.hasClass(n,"mceItemNoResize")){ev="resizeend";m=c.bind(n,ev,function(o){var G;o=o.target;if(G=c.getStyle(o,"width")){c.setAttrib(o,"width",G.replace(/[^0-9%]+/g,""));c.setStyle(o,"width","")}if(G=c.getStyle(o,"height")){c.setAttrib(o,"height",G.replace(/[^0-9%]+/g,""));c.setStyle(o,"height","")}})}else{ev="resizestart";m=c.bind(n,"resizestart",u.cancel,u)}l=d.resizeInfo={node:n,ev:ev,cb:m}});d.onKeyDown.add(function(m,n){var l;switch(n.keyCode){case 8:l=d.getDoc().selection;if(l.createRange&&l.createRange().item){m.dom.remove(l.createRange().item(0));return u.cancel(n)}}})}if(r.isOpera){d.onClick.add(function(m,l){u.prevent(l)})}if(b.custom_undo_redo){function h(){d.undoManager.typing=false;d.undoManager.add()}c.bind(d.getDoc(),"focusout",function(l){if(!d.removed&&d.undoManager.typing){h()}});d.onKeyUp.add(function(l,n){var m,o,G;if(D&&n.keyCode==8){m=d.selection.getRng();if(m.parentElement){o=m.parentElement();G=d.selection.getBookmark();o.innerHTML=o.innerHTML;d.selection.moveToBookmark(G)}}if((n.keyCode>=33&&n.keyCode<=36)||(n.keyCode>=37&&n.keyCode<=40)||n.keyCode==13||n.keyCode==45||n.ctrlKey){h()}});d.onKeyDown.add(function(l,n){var m,o,H;if(D&&n.keyCode==46){m=d.selection.getRng();if(m.parentElement){o=m.parentElement();if(n.ctrlKey){m.moveEnd("word",1);m.select()}d.selection.getSel().clear();if(m.parentElement()==o){H=d.selection.getBookmark();try{o.innerHTML=o.innerHTML}catch(I){}d.selection.moveToBookmark(H)}n.preventDefault();return}}if((n.keyCode>=33&&n.keyCode<=36)||(n.keyCode>=37&&n.keyCode<=40)||n.keyCode==13||n.keyCode==45){if(d.undoManager.typing){h()}return}if(!d.undoManager.typing){d.undoManager.add();d.undoManager.typing=true}});d.onMouseDown.add(function(){if(d.undoManager.typing){h()}})}if(r.isGecko){function f(){d.undoManager.typing=false;d.undoManager.add();var l=d.dom.getAttribs(d.selection.getStart().cloneNode(false));return function(){var m=d.selection.getStart();d.dom.removeAllAttribs(m);v(l,function(n){m.setAttributeNode(n.cloneNode(true))});d.undoManager.typing=false;d.undoManager.add()}}function g(){var l=d.selection;return !l.isCollapsed()&&l.getStart()!=l.getEnd()}d.onKeyPress.add(function(m,n){if((n.keyCode==8||n.keyCode==46)&&g()){var l=f();d.getDoc().execCommand("delete",false,null);l();return u.cancel(n)}});d.dom.bind(d.getDoc(),"cut",function(l){if(g()){var m=f();d.onKeyUp.addToTop(u.cancel,u);setTimeout(function(){m();d.onKeyUp.remove(u.cancel,u)},0)}})}},_isHidden:function(){var a;if(!E){return 0}a=this.selection.getSel();return(!a||!a.rangeCount||a.rangeCount==0)}})})(tinymce);(function(j){var i=j.each,h,g=true,f=false;j.EditorCommands=function(e){var v=e.dom,c=e.selection,y={state:{},exec:{},value:{}},x=e.settings,d;function b(n,k,l){var m;n=n.toLowerCase();if(m=y.exec[n]){m(n,k,l);return g}return f}function u(k){var l;k=k.toLowerCase();if(l=y.state[k]){return l(k)}return -1}function A(k){var l;k=k.toLowerCase();if(l=y.value[k]){return l(k)}return f}function D(l,k){k=k||"exec";i(l,function(n,m){i(m.toLowerCase().split(","),function(o){y[k][o]=n})})}j.extend(this,{execCommand:b,queryCommandState:u,queryCommandValue:A,addCommands:D});function C(k,l,m){if(l===h){l=f}if(m===h){m=null}return e.getDoc().execCommand(k,l,m)}function E(k){return e.formatter.match(k)}function a(l,k){e.formatter.toggle(l,k?{value:k}:h)}function z(k){d=c.getBookmark(k)}function B(){c.moveToBookmark(d)}D({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var k=e.getDoc(),m;try{C(n)}catch(l){m=g}if(m||!k.queryCommandSupported(n)){if(j.isGecko){e.windowManager.confirm(e.getLang("clipboard_msg"),function(o){if(o){open("http://www.mozilla.org/editor/midasdemo/securityprefs.html","_blank")}})}else{e.windowManager.alert(e.getLang("clipboard_no_support"))}}},unlink:function(k){if(c.isCollapsed()){c.select(c.getNode())}C(k);c.collapse(f)},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(l){var k=l.substring(7);i("left,center,right,full".split(","),function(m){if(k!=m){e.formatter.remove("align"+m)}});a("align"+k);b("mceRepaint")},"InsertUnorderedList,InsertOrderedList":function(k){var m,l;C(k);m=v.getParent(c.getNode(),"ol,ul");if(m){l=m.parentNode;if(/^(H[1-6]|P|ADDRESS|PRE)$/.test(l.nodeName)){z();v.split(l,m);B()}}},"Bold,Italic,Underline,Strikethrough":function(k){a(k)},"ForeColor,HiliteColor,FontName":function(k,l,m){a(k,m)},FontSize:function(o,k,l){var m,n;if(l>=1&&l<=7){n=j.explode(x.font_size_style_values);m=j.explode(x.font_size_classes);if(m){l=m[l-1]||l}else{l=n[l-1]||l}}a(o,l)},RemoveFormat:function(k){e.formatter.remove(k)},mceBlockQuote:function(k){a("blockquote")},FormatBlock:function(k,l,m){return a(m||"p")},mceCleanup:function(){var k=c.getBookmark();e.setContent(e.getContent({cleanup:g}),{cleanup:g});c.moveToBookmark(k)},mceRemoveNode:function(n,k,l){var m=l||c.getNode();if(m!=e.getBody()){z();e.dom.remove(m,g);B()}},mceSelectNodeDepth:function(n,k,l){var m=0;v.getParent(c.getNode(),function(o){if(o.nodeType==1&&m++==l){c.select(o);return f}},e.getBody())},mceSelectNode:function(k,l,m){c.select(m)},mceInsertContent:function(o,k,I){var l,t,q,H,p,t,n,s,m;function r(M,G){var L,F=new j.dom.TreeWalker(M,G);while((L=F.current())){if((L.nodeType==3&&j.trim(L.nodeValue).length)||L.nodeName=="BR"||L.nodeName=="IMG"){return L}F.prev()}}m={content:I,format:"html"};c.onBeforeSetContent.dispatch(c,m);I=m.content;if(I.indexOf("{$caret}")==-1){I+="{$caret}"}c.setContent('<span id="__mce">\uFEFF</span>',{no_events:false});v.setOuterHTML("__mce",I.replace(/\{\$caret\}/,'<span data-mce-type="bookmark" id="__mce">\uFEFF</span>'));l=v.select("#__mce")[0];q=v.getRoot();if(l.previousSibling&&v.isBlock(l.previousSibling)||l.parentNode==q){p=r(l.previousSibling,q);if(p){if(p.nodeName=="BR"){p.parentNode.insertBefore(l,p)}else{v.insertAfter(l,p)}}}while(l){if(l===q){v.setOuterHTML(H,new j.html.Serializer({},e.schema).serialize(new j.html.DomParser({remove_trailing_brs:true},e.schema).parse(v.getOuterHTML(H))));break}H=l;l=l.parentNode}l=v.select("#__mce")[0];if(l){p=r(l.previousSibling,q);v.remove(l);if(p){t=v.createRng();if(p.nodeType==3){t.setStart(p,p.length);t.setEnd(p,p.length)}else{if(p.nodeName=="BR"){t.setStartBefore(p);t.setEndBefore(p)}else{t.setStartAfter(p);t.setEndAfter(p)}}c.setRng(t);if(!j.isIE){p=v.create("span",null,"\u00a0");t.insertNode(p);n=v.getRect(p);s=v.getViewPort(e.getWin());if((n.y>s.y+s.h||n.y<s.y)||(n.x>s.x+s.w||n.x<s.x)){e.getBody().scrollLeft=n.x;e.getBody().scrollTop=n.y}v.remove(p)}}}c.onSetContent.dispatch(c,m);e.addVisual()},mceInsertRawHTML:function(k,l,m){c.setContent("tiny_mce_marker");e.setContent(e.getContent().replace(/tiny_mce_marker/g,function(){return m}))},mceSetContent:function(k,l,m){e.setContent(m)},"Indent,Outdent":function(n){var l,m,k;l=x.indentation;m=/[a-z%]+$/i.exec(l);l=parseInt(l);if(!u("InsertUnorderedList")&&!u("InsertOrderedList")){i(c.getSelectedBlocks(),function(o){if(n=="outdent"){k=Math.max(0,parseInt(o.style.paddingLeft||0)-l);v.setStyle(o,"paddingLeft",k?k+m:"")}else{v.setStyle(o,"paddingLeft",(parseInt(o.style.paddingLeft||0)+l)+m)}})}else{C(n)}},mceRepaint:function(){var k;if(j.isGecko){try{z(g);if(c.getSel()){c.getSel().selectAllChildren(e.getBody())}c.collapse(g);B()}catch(l){}}},mceToggleFormat:function(k,l,m){e.formatter.toggle(m)},InsertHorizontalRule:function(){c.setContent("<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual;e.addVisual()},mceReplaceContent:function(k,l,m){e.execCommand("mceInsertContent",false,c.setContent(m.replace(/\{\$selection\}/g,c.getContent({format:"text"}))))},mceInsertLink:function(l,o,p){var k=v.getParent(c.getNode(),"a"),m,n;if(j.is(p,"string")){p={href:p}}p.href=p.href.replace(" ","%20");if(!k){if(j.isWebKit){m=v.getParent(c.getNode(),"img");if(m){n=m.style.cssFloat;m.style.cssFloat=null}}C("CreateLink",f,"javascript:mctmp(0);");if(n){m.style.cssFloat=n}i(v.select("a[href='javascript:mctmp(0);']"),function(q){v.setAttribs(q,p)})}else{if(p.href){v.setAttribs(k,p)}else{e.dom.remove(k,g)}}},selectAll:function(){var k=v.getRoot(),l=v.createRng();l.setStart(k,0);l.setEnd(k,k.childNodes.length);e.selection.setRng(l)}});D({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(k){return E("align"+k.substring(7))},"Bold,Italic,Underline,Strikethrough":function(k){return E(k)},mceBlockQuote:function(){return E("blockquote")},Outdent:function(){var k;if(x.inline_styles){if((k=v.getParent(c.getStart(),v.isBlock))&&parseInt(k.style.paddingLeft)>0){return g}if((k=v.getParent(c.getEnd(),v.isBlock))&&parseInt(k.style.paddingLeft)>0){return g}}return u("InsertUnorderedList")||u("InsertOrderedList")||(!x.inline_styles&&!!v.getParent(c.getNode(),"BLOCKQUOTE"))},"InsertUnorderedList,InsertOrderedList":function(k){return v.getParent(c.getNode(),k=="insertunorderedlist"?"UL":"OL")}},"state");D({"FontSize,FontName":function(k){var l=0,m;if(m=v.getParent(c.getNode(),"span")){if(k=="fontsize"){l=m.style.fontSize}else{l=m.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()}}return l}},"value");if(x.custom_undo_redo){D({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}})}}})(tinymce);(function(c){var d=c.util.Dispatcher;c.UndoManager=function(h){var j,i=0,a=[];function b(){return c.trim(h.getContent({format:"raw",no_events:1}))}return j={typing:false,onAdd:new d(j),onUndo:new d(j),onRedo:new d(j),add:function(e){var m,g=h.settings,f;e=e||{};e.content=b();f=a[i];if(f&&f.content==e.content){if(i>0||a.length==1){return null}}if(g.custom_undo_redo_levels){if(a.length>g.custom_undo_redo_levels){for(m=0;m<a.length-1;m++){a[m]=a[m+1]}a.length--;i=a.length}}e.bookmark=h.selection.getBookmark(2,true);if(i<a.length-1){a.length=i+1}a.push(e);i=a.length-1;j.onAdd.dispatch(j,e);h.isNotDirty=0;return e},undo:function(){var e,f;if(j.typing){j.add();j.typing=false}if(i>0){e=a[--i];h.setContent(e.content,{format:"raw"});h.selection.moveToBookmark(e.bookmark);j.onUndo.dispatch(j,e)}return e},redo:function(){var e;if(i<a.length-1){e=a[++i];h.setContent(e.content,{format:"raw"});h.selection.moveToBookmark(e.bookmark);j.onRedo.dispatch(j,e)}return e},clear:function(){a=[];i=0;j.typing=false},hasUndo:function(){return i>0||j.typing},hasRedo:function(){return i<a.length-1}}}})(tinymce);(function(n){var p=n.dom.Event,y=n.isIE,A=n.isGecko,z=n.isOpera,q=n.each,r=n.extend,x=true,s=false;function o(b){var a,c,d;do{if(/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(b.nodeName)){if(a){c=b.cloneNode(false);c.appendChild(a);a=c}else{a=d=b.cloneNode(false)}a.removeAttribute("id")}}while(b=b.parentNode);if(a){return{wrapper:a,inner:d}}}function t(b,a){var c=a.ownerDocument.createRange();c.setStart(b.endContainer,b.endOffset);c.setEndAfter(a);return c.cloneContents().textContent.length==0}function u(a){a=a.innerHTML;a=a.replace(/<(img|hr|table|input|select|textarea)[ \>]/gi,"-");a=a.replace(/<[^>]+>/g,"");return a.replace(/[ \u00a0\t\r\n]+/g,"")==""}function v(c,a,e){var d,b;if(u(e)){d=a.getParent(e,"ul,ol");if(!a.getParent(d.parentNode,"ul,ol")){a.split(d,e);b=a.create("p",0,'<br data-mce-bogus="1" />');a.replace(b,e);c.select(b,1)}return s}return x}n.create("tinymce.ForceBlocks",{ForceBlocks:function(d){var c=this,b=d.settings,a;c.editor=d;c.dom=d.dom;a=(b.forced_root_block||"p").toLowerCase();b.element=a.toUpperCase();d.onPreInit.add(c.setup,c);if(b.forced_root_block){d.onInit.add(c.forceRoots,c);d.onSetContent.add(c.forceRoots,c);d.onBeforeGetContent.add(c.forceRoots,c);d.onExecCommand.add(function(f,e){if(e=="mceInsertContent"){c.forceRoots();f.nodeChanged()}})}},setup:function(){var e=this,f=e.editor,c=f.settings,a=f.dom,d=f.selection;if(c.forced_root_block){f.onBeforeExecCommand.add(e.forceRoots,e);f.onKeyUp.add(e.forceRoots,e);f.onPreProcess.add(e.forceRoots,e)}if(c.force_br_newlines){if(y){f.onKeyPress.add(function(i,h){var g;if(h.keyCode==13&&d.getNode().nodeName!="LI"){d.setContent('<br id="__" /> ',{format:"raw"});g=a.get("__");g.removeAttribute("id");d.select(g);d.collapse();return p.cancel(h)}})}}if(c.force_p_newlines){if(!y){f.onKeyPress.add(function(h,g){if(g.keyCode==13&&!g.shiftKey&&!e.insertPara(g)){p.cancel(g)}})}else{n.addUnload(function(){e._previousFormats=0});f.onKeyPress.add(function(h,g){e._previousFormats=0;if(g.keyCode==13&&!g.shiftKey&&h.selection.isCollapsed()&&c.keep_styles){e._previousFormats=o(h.selection.getStart())}});f.onKeyUp.add(function(i,g){if(g.keyCode==13&&!g.shiftKey){var h=i.selection.getStart(),j=e._previousFormats;if(!h.hasChildNodes()&&j){h=a.getParent(h,a.isBlock);if(h&&h.nodeName!="LI"){h.innerHTML="";if(e._previousFormats){h.appendChild(j.wrapper);j.inner.innerHTML="\uFEFF"}else{h.innerHTML="\uFEFF"}d.select(h,1);d.collapse(true);i.getDoc().execCommand("Delete",false,null);e._previousFormats=0}}}})}if(A){f.onKeyDown.add(function(h,g){if((g.keyCode==8||g.keyCode==46)&&!g.shiftKey){e.backspaceDelete(g,g.keyCode==8)}})}}if(n.isWebKit){function b(i){var j=d.getRng(),h,k=a.create("div",null," "),l,g=a.getViewPort(i.getWin()).h;j.insertNode(h=a.create("br"));j.setStartAfter(h);j.setEndAfter(h);d.setRng(j);if(d.getSel().focusNode==h.previousSibling){d.select(a.insertAfter(a.doc.createTextNode("\u00a0"),h));d.collapse(x)}a.insertAfter(k,h);l=a.getPos(k).y;a.remove(k);if(l>g){i.getWin().scrollTo(0,l)}}f.onKeyPress.add(function(h,g){if(g.keyCode==13&&(g.shiftKey||(c.force_br_newlines&&!a.getParent(d.getNode(),"h1,h2,h3,h4,h5,h6,ol,ul")))){b(h);p.cancel(g)}})}if(y){if(c.element!="P"){f.onKeyPress.add(function(h,g){e.lastElm=d.getNode().nodeName});f.onKeyUp.add(function(i,h){var k,g=d.getNode(),j=i.getBody();if(j.childNodes.length===1&&g.nodeName=="P"){g=a.rename(g,c.element);d.select(g);d.collapse();i.nodeChanged()}else{if(h.keyCode==13&&!h.shiftKey&&e.lastElm!="P"){k=a.getParent(g,"p");if(k){a.rename(k,c.element);i.nodeChanged()}}}})}}},find:function(a,d,c){var e=this.editor,f=e.getDoc().createTreeWalker(a,4,null,s),b=-1;while(a=f.nextNode()){b++;if(d==0&&a==c){return b}if(d==1&&b==c){return a}}return -1},forceRoots:function(k,j){var g=this,k=g.editor,d=k.getBody(),i=k.getDoc(),a=k.selection,Y=a.getSel(),W=a.getRng(),c=-2,Q,m,aa,Z,f=-16777215;var e,X,b,S,V,R=d.childNodes,T,U,h;for(T=R.length-1;T>=0;T--){e=R[T];if(e.nodeType===1&&e.getAttribute("data-mce-type")){X=null;continue}if(e.nodeType===3||(!g.dom.isBlock(e)&&e.nodeType!==8&&!/^(script|mce:script|style|mce:style)$/i.test(e.nodeName))){if(!X){if(e.nodeType!=3||/[^\s]/g.test(e.nodeValue)){if(c==-2&&W){if(!y||W.setStart){if(W.startContainer.nodeType==1&&(U=W.startContainer.childNodes[W.startOffset])&&U.nodeType==1){h=U.getAttribute("id");U.setAttribute("id","__mce")}else{if(k.dom.getParent(W.startContainer,function(B){return B===d})){m=W.startOffset;aa=W.endOffset;c=g.find(d,0,W.startContainer);Q=g.find(d,0,W.endContainer)}}}else{if(W.item){Z=i.body.createTextRange();Z.moveToElementText(W.item(0));W=Z}Z=i.body.createTextRange();Z.moveToElementText(d);Z.collapse(1);b=Z.move("character",f)*-1;Z=W.duplicate();Z.collapse(1);S=Z.move("character",f)*-1;Z=W.duplicate();Z.collapse(0);V=(Z.move("character",f)*-1)-S;c=S-b;Q=V}}X=k.dom.create(k.settings.forced_root_block);e.parentNode.replaceChild(X,e);X.appendChild(e)}}else{if(X.hasChildNodes()){X.insertBefore(e,X.firstChild)}else{X.appendChild(e)}}}else{X=null}}if(c!=-2){if(!y||W.setStart){X=d.getElementsByTagName(k.settings.element)[0];W=i.createRange();if(c!=-1){W.setStart(g.find(d,1,c),m)}else{W.setStart(X,0)}if(Q!=-1){W.setEnd(g.find(d,1,Q),aa)}else{W.setEnd(X,0)}if(Y){Y.removeAllRanges();Y.addRange(W)}}else{try{W=Y.createRange();W.moveToElementText(d);W.collapse(1);W.moveStart("character",c);W.moveEnd("character",Q);W.select()}catch(l){}}}else{if((!y||W.setStart)&&(U=k.dom.get("__mce"))){if(h){U.setAttribute("id",h)}else{U.removeAttribute("id")}W=i.createRange();W.setStartBefore(U);W.setEndBefore(U);a.setRng(W)}}},getParentBlock:function(a){var b=this.dom;return b.getParent(a,b.isBlock)},insertPara:function(f){var ae=this,ac=ae.editor,j=ac.dom,e=ac.getDoc(),a=ac.settings,ad=ac.selection.getSel(),ab=ad.getRangeAt(0),b=e.body;var m,l,aa,h,i,ah,ao,af,an,ap,ai,c,am,Z,Y,k=j.getViewPort(ac.getWin()),aj,ag,ak;m=e.createRange();m.setStart(ad.anchorNode,ad.anchorOffset);m.collapse(x);l=e.createRange();l.setStart(ad.focusNode,ad.focusOffset);l.collapse(x);aa=m.compareBoundaryPoints(m.START_TO_END,l)<0;h=aa?ad.anchorNode:ad.focusNode;i=aa?ad.anchorOffset:ad.focusOffset;ah=aa?ad.focusNode:ad.anchorNode;ao=aa?ad.focusOffset:ad.anchorOffset;if(h===ah&&/^(TD|TH)$/.test(h.nodeName)){if(h.firstChild.nodeName=="BR"){j.remove(h.firstChild)}if(h.childNodes.length==0){ac.dom.add(h,a.element,null,"<br />");c=ac.dom.add(h,a.element,null,"<br />")}else{Y=h.innerHTML;h.innerHTML="";ac.dom.add(h,a.element,null,Y);c=ac.dom.add(h,a.element,null,"<br />")}ab=e.createRange();ab.selectNodeContents(c);ab.collapse(1);ac.selection.setRng(ab);return s}if(h==b&&ah==b&&b.firstChild&&ac.dom.isBlock(b.firstChild)){h=ah=h.firstChild;i=ao=0;m=e.createRange();m.setStart(h,0);l=e.createRange();l.setStart(ah,0)}h=h.nodeName=="HTML"?e.body:h;h=h.nodeName=="BODY"?h.firstChild:h;ah=ah.nodeName=="HTML"?e.body:ah;ah=ah.nodeName=="BODY"?ah.firstChild:ah;af=ae.getParentBlock(h);an=ae.getParentBlock(ah);ap=af?af.nodeName:a.element;if(Y=ae.dom.getParent(af,"li,pre")){if(Y.nodeName=="LI"){return v(ac.selection,ae.dom,Y)}return x}if(af&&(af.nodeName=="CAPTION"||/absolute|relative|fixed/gi.test(j.getStyle(af,"position",1)))){ap=a.element;af=null}if(an&&(an.nodeName=="CAPTION"||/absolute|relative|fixed/gi.test(j.getStyle(af,"position",1)))){ap=a.element;an=null}if(/(TD|TABLE|TH|CAPTION)/.test(ap)||(af&&ap=="DIV"&&/left|right/gi.test(j.getStyle(af,"float",1)))){ap=a.element;af=an=null}ai=(af&&af.nodeName==ap)?af.cloneNode(0):ac.dom.create(ap);c=(an&&an.nodeName==ap)?an.cloneNode(0):ac.dom.create(ap);c.removeAttribute("id");if(/^(H[1-6])$/.test(ap)&&t(ab,af)){c=ac.dom.create(a.element)}Y=am=h;do{if(Y==b||Y.nodeType==9||ae.dom.isBlock(Y)||/(TD|TABLE|TH|CAPTION)/.test(Y.nodeName)){break}am=Y}while((Y=Y.previousSibling?Y.previousSibling:Y.parentNode));Y=Z=ah;do{if(Y==b||Y.nodeType==9||ae.dom.isBlock(Y)||/(TD|TABLE|TH|CAPTION)/.test(Y.nodeName)){break}Z=Y}while((Y=Y.nextSibling?Y.nextSibling:Y.parentNode));if(am.nodeName==ap){m.setStart(am,0)}else{m.setStartBefore(am)}m.setEnd(h,i);ai.appendChild(m.cloneContents()||e.createTextNode(""));try{l.setEndAfter(Z)}catch(g){}l.setStart(ah,ao);c.appendChild(l.cloneContents()||e.createTextNode(""));ab=e.createRange();if(!am.previousSibling&&am.parentNode.nodeName==ap){ab.setStartBefore(am.parentNode)}else{if(m.startContainer.nodeName==ap&&m.startOffset==0){ab.setStartBefore(m.startContainer)}else{ab.setStart(m.startContainer,m.startOffset)}}if(!Z.nextSibling&&Z.parentNode.nodeName==ap){ab.setEndAfter(Z.parentNode)}else{ab.setEnd(l.endContainer,l.endOffset)}ab.deleteContents();if(z){ac.getWin().scrollTo(0,k.y)}if(ai.firstChild&&ai.firstChild.nodeName==ap){ai.innerHTML=ai.firstChild.innerHTML}if(c.firstChild&&c.firstChild.nodeName==ap){c.innerHTML=c.firstChild.innerHTML}if(u(ai)){ai.innerHTML="<br />"}function d(G,C){var D=[],E,F,B;G.innerHTML="";if(a.keep_styles){F=C;do{if(/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(F.nodeName)){E=F.cloneNode(s);j.setAttrib(E,"id","");D.push(E)}}while(F=F.parentNode)}if(D.length>0){for(B=D.length-1,E=G;B>=0;B--){E=E.appendChild(D[B])}D[0].innerHTML=z?"\u00a0":"<br />";return D[0]}else{G.innerHTML=z?"\u00a0":"<br />"}}if(u(c)){ak=d(c,ah)}if(z&&parseFloat(opera.version())<9.5){ab.insertNode(ai);ab.insertNode(c)}else{ab.insertNode(c);ab.insertNode(ai)}c.normalize();ai.normalize();function al(B){return e.createTreeWalker(B,NodeFilter.SHOW_TEXT,null,s).nextNode()||B}ab=e.createRange();ab.selectNodeContents(A?al(ak||c):ak||c);ab.collapse(1);ad.removeAllRanges();ad.addRange(ab);aj=ac.dom.getPos(c).y;if(aj<k.y||aj+25>k.y+k.h){ac.getWin().scrollTo(0,aj<k.y?aj:aj-k.h+25)}return s},backspaceDelete:function(k,b){var a=this,l=a.editor,h=l.getBody(),m=l.dom,c,j=l.selection,e=j.getRng(),i=e.startContainer,c,g,d,f;if(!b&&e.collapsed&&i.nodeType==1&&e.startOffset==i.childNodes.length){f=new n.dom.TreeWalker(i.lastChild,i);for(c=i.lastChild;c;c=f.prev()){if(c.nodeType==3){e.setStart(c,c.nodeValue.length);e.collapse(true);j.setRng(e);return}}}if(i&&l.dom.isBlock(i)&&!/^(TD|TH)$/.test(i.nodeName)&&b){if(i.childNodes.length==0||(i.childNodes.length==1&&i.firstChild.nodeName=="BR")){c=i;while((c=c.previousSibling)&&!l.dom.isBlock(c)){}if(c){if(i!=h.firstChild){g=l.dom.doc.createTreeWalker(c,NodeFilter.SHOW_TEXT,null,s);while(d=g.nextNode()){c=d}e=l.getDoc().createRange();e.setStart(c,c.nodeValue?c.nodeValue.length:0);e.setEnd(c,c.nodeValue?c.nodeValue.length:0);j.setRng(e);l.dom.remove(i)}return p.cancel(k)}}}}})})(tinymce);(function(j){var f=j.DOM,g=j.dom.Event,i=j.each,h=j.extend;j.create("tinymce.ControlManager",{ControlManager:function(d,a){var b=this,c;a=a||{};b.editor=d;b.controls={};b.onAdd=new j.util.Dispatcher(b);b.onPostRender=new j.util.Dispatcher(b);b.prefix=a.prefix||d.id+"_";b._cls={};b.onPostRender.add(function(){i(b.controls,function(e){e.postRender()})})},get:function(a){return this.controls[this.prefix+a]||this.controls[a]},setActive:function(a,c){var b=null;if(b=this.get(a)){b.setActive(c)}return b},setDisabled:function(a,c){var b=null;if(b=this.get(a)){b.setDisabled(c)}return b},add:function(a){var b=this;if(a){b.controls[a.id]=a;b.onAdd.dispatch(a,b)}return a},createControl:function(a){var b,c=this,d=c.editor;i(d.plugins,function(e){if(e.createControl){b=e.createControl(a,c);if(b){return false}}});switch(a){case"|":case"separator":return c.createSeparator()}if(!b&&d.buttons&&(b=d.buttons[a])){return c.createButton(a,b)}return c.add(b)},createDropMenu:function(r,a,p){var b=this,o=b.editor,e,q,d,c;a=h({"class":"mceDropDown",constrain:o.settings.constrain_menus},a);a["class"]=a["class"]+" "+o.getParam("skin")+"Skin";if(d=o.getParam("skin_variant")){a["class"]+=" "+o.getParam("skin")+"Skin"+d.substring(0,1).toUpperCase()+d.substring(1)}r=b.prefix+r;c=p||b._cls.dropmenu||j.ui.DropMenu;e=b.controls[r]=new c(r,a);e.onAddItem.add(function(k,l){var m=l.settings;m.title=o.getLang(m.title,m.title);if(!m.onclick){m.onclick=function(n){if(m.cmd){o.execCommand(m.cmd,m.ui||false,m.value)}}}});o.onRemove.add(function(){e.destroy()});if(j.isIE){e.onShowMenu.add(function(){o.focus();q=o.selection.getBookmark(1)});e.onHideMenu.add(function(){if(q){o.selection.moveToBookmark(q);q=0}})}return b.add(e)},createListBox:function(a,e,b){var n=this,o=n.editor,d,c,p;if(n.get(a)){return null}e.title=o.translate(e.title);e.scope=e.scope||o;if(!e.onselect){e.onselect=function(k){o.execCommand(e.cmd,e.ui||false,k||e.value)}}e=h({title:e.title,"class":"mce_"+a,scope:e.scope,control_manager:n},e);a=n.prefix+a;if(o.settings.use_native_selects){c=new j.ui.NativeListBox(a,e)}else{p=b||n._cls.listbox||j.ui.ListBox;c=new p(a,e,o)}n.controls[a]=c;if(j.isWebKit){c.onPostRender.add(function(k,l){g.add(l,"mousedown",function(){o.bookmark=o.selection.getBookmark(1)});g.add(l,"focus",function(){o.selection.moveToBookmark(o.bookmark);o.bookmark=null})})}if(c.hideMenu){o.onMouseDown.add(c.hideMenu,c)}return n.add(c)},createButton:function(a,e,b){var n=this,o=n.editor,d,c,p;if(n.get(a)){return null}e.title=o.translate(e.title);e.label=o.translate(e.label);e.scope=e.scope||o;if(!e.onclick&&!e.menu_button){e.onclick=function(){o.execCommand(e.cmd,e.ui||false,e.value)}}e=h({title:e.title,"class":"mce_"+a,unavailable_prefix:o.getLang("unavailable",""),scope:e.scope,control_manager:n},e);a=n.prefix+a;if(e.menu_button){p=b||n._cls.menubutton||j.ui.MenuButton;c=new p(a,e,o);o.onMouseDown.add(c.hideMenu,c)}else{p=n._cls.button||j.ui.Button;c=new p(a,e)}return n.add(c)},createMenuButton:function(a,c,b){c=c||{};c.menu_button=1;return this.createButton(a,c,b)},createSplitButton:function(a,e,b){var n=this,o=n.editor,d,c,p;if(n.get(a)){return null}e.title=o.translate(e.title);e.scope=e.scope||o;if(!e.onclick){e.onclick=function(k){o.execCommand(e.cmd,e.ui||false,k||e.value)}}if(!e.onselect){e.onselect=function(k){o.execCommand(e.cmd,e.ui||false,k||e.value)}}e=h({title:e.title,"class":"mce_"+a,scope:e.scope,control_manager:n},e);a=n.prefix+a;p=b||n._cls.splitbutton||j.ui.SplitButton;c=n.add(new p(a,e,o));o.onMouseDown.add(c.hideMenu,c);return c},createColorSplitButton:function(r,a,p){var c=this,e=c.editor,o,d,b,q;if(c.get(r)){return null}a.title=e.translate(a.title);a.scope=a.scope||e;if(!a.onclick){a.onclick=function(k){if(j.isIE){q=e.selection.getBookmark(1)}e.execCommand(a.cmd,a.ui||false,k||a.value)}}if(!a.onselect){a.onselect=function(k){e.execCommand(a.cmd,a.ui||false,k||a.value)}}a=h({title:a.title,"class":"mce_"+r,menu_class:e.getParam("skin")+"Skin",scope:a.scope,more_colors_title:e.getLang("more_colors")},a);r=c.prefix+r;b=p||c._cls.colorsplitbutton||j.ui.ColorSplitButton;d=new b(r,a,e);e.onMouseDown.add(d.hideMenu,d);e.onRemove.add(function(){d.destroy()});if(j.isIE){d.onShowMenu.add(function(){e.focus();q=e.selection.getBookmark(1)});d.onHideMenu.add(function(){if(q){e.selection.moveToBookmark(q);q=0}})}return c.add(d)},createToolbar:function(a,d,b){var c,e=this,l;a=e.prefix+a;l=b||e._cls.toolbar||j.ui.Toolbar;c=new l(a,d,e.editor);if(e.get(a)){return null}return e.add(c)},createToolbarGroup:function(a,d,b){var c,e=this,l;a=e.prefix+a;l=b||this._cls.toolbarGroup||j.ui.ToolbarGroup;c=new l(a,d,e.editor);if(e.get(a)){return null}return e.add(c)},createSeparator:function(a){var b=a||this._cls.separator||j.ui.Separator;return new b()},setControlType:function(a,b){return this._cls[a.toLowerCase()]=b},destroy:function(){i(this.controls,function(a){a.destroy()});this.controls=null}})})(tinymce);(function(i){var g=i.util.Dispatcher,h=i.each,j=i.isIE,f=i.isOpera;i.create("tinymce.WindowManager",{WindowManager:function(b){var a=this;a.editor=b;a.onOpen=new g(a);a.onClose=new g(a);a.params={};a.features={}},open:function(A,x){var B=this,s="",d,e,u=B.editor.settings.dialog_type=="modal",b,c,t,y=i.DOM.getViewPort(),a;A=A||{};x=x||{};c=f?y.w:screen.width;t=f?y.h:screen.height;A.name=A.name||"mc_"+new Date().getTime();A.width=parseInt(A.width||320);A.height=parseInt(A.height||240);A.resizable=true;A.left=A.left||parseInt(c/2)-(A.width/2);A.top=A.top||parseInt(t/2)-(A.height/2);x.inline=false;x.mce_width=A.width;x.mce_height=A.height;x.mce_auto_focus=A.auto_focus;if(u){if(j){A.center=true;A.help=false;A.dialogWidth=A.width+"px";A.dialogHeight=A.height+"px";A.scroll=A.scrollbars||false}}h(A,function(l,k){if(i.is(l,"boolean")){l=l?"yes":"no"}if(!/^(name|url)$/.test(k)){if(j&&u){s+=(s?";":"")+k+":"+l}else{s+=(s?",":"")+k+"="+l}}});B.features=A;B.params=x;B.onOpen.dispatch(B,A,x);a=A.url||A.file;a=i._addVer(a);try{if(j&&u){b=1;window.showModalDialog(a,window,s)}else{b=window.open(a,A.name,s)}}catch(p){}if(!b){alert(B.editor.getLang("popup_blocked"))}},close:function(a){a.close();this.onClose.dispatch(this)},createInstance:function(e,n,o,a,b,c){var d=i.resolve(e);return new d(n,o,a,b,c)},confirm:function(b,d,a,c){c=c||window;d.call(a||this,c.confirm(this._decode(this.editor.getLang(b,b))))},alert:function(c,e,a,d){var b=this;d=d||window;d.alert(b._decode(b.editor.getLang(c,c)));if(e){e.call(a||b)}},resizeBy:function(c,b,a){a.resizeBy(c,b)},_decode:function(a){return i.DOM.decode(a).replace(/\\n/g,"\n")}})}(tinymce));(function(b){b.Formatter=function(a){var ac={},aa=b.each,aK=a.dom,ax=a.selection,au=b.dom.TreeWalker,ae=new b.dom.RangeUtils(aK),aJ=a.schema.isValidChild,ai=aK.isBlock,aC=a.settings.forced_root_block,av=aK.nodeIndex,aj="\uFEFF",aI=/^(src|href|style)$/,W=false,am=true,ay,Z={apply:[],remove:[]};function ao(c){return c instanceof Array}function aB(c,d){return aK.getParents(c,d,aK.getRoot())}function aL(c){return c.nodeType===1&&(c.face==="mceinline"||c.style.fontFamily==="mceinline")}function X(c){return c?ac[c]:ac}function aD(d,c){if(d){if(typeof(d)!=="string"){aa(d,function(f,e){aD(e,f)})}else{c=c.length?c:[c];aa(c,function(e){if(e.deep===ay){e.deep=!e.selector}if(e.split===ay){e.split=!e.selector||e.inline}if(e.remove===ay&&e.selector&&!e.inline){e.remove="none"}if(e.selector&&e.inline){e.mixed=true;e.block_expand=true}if(typeof(e.classes)==="string"){e.classes=e.classes.split(/\s+/)}});ac[d]=c}}}function V(g,l,e){var d=X(g),k=d[0],m,h,n,c=ax.isCollapsed();function f(p){var q=p.startContainer,r=p.startOffset,s,o;if(q.nodeType==1||q.nodeValue===""){q=q.nodeType==1?q.childNodes[r]:q;if(q){s=new au(q,q.parentNode);for(o=s.current();o;o=s.next()){if(o.nodeType==3&&!aH(o)){p.setStart(o,0);break}}}}return p}function i(o,p){p=p||k;if(o){aa(p.styles,function(r,q){aK.setStyle(o,q,aw(r,l))});aa(p.attributes,function(r,q){aK.setAttrib(o,q,aw(r,l))});aa(p.classes,function(q){q=aw(q,l);if(!aK.hasClass(o,q)){aK.addClass(o,q)}})}}function j(p){var q=[],r,o;r=k.inline||k.block;o=aK.create(r);i(o);ae.walk(p,function(u){var t;function s(z){var v=z.nodeName.toLowerCase(),x=z.parentNode.nodeName.toLowerCase(),y;if(aG(v,"br")){t=0;if(k.block){aK.remove(z)}return}if(k.wrapper&&aq(z,g,l)){t=0;return}if(k.block&&!k.wrapper&&ah(v)){z=aK.rename(z,r);i(z);q.push(z);t=0;return}if(k.selector){aa(d,function(A){if("collapsed" in A&&A.collapsed!==c){return}if(aK.is(z,A.selector)&&!aL(z)){i(z,A);y=true}});if(!k.inline||y){t=0;return}}if(aJ(r,v)&&aJ(x,r)&&!(z.nodeType===3&&z.nodeValue.length===1&&z.nodeValue.charCodeAt(0)===65279)){if(!t){t=o.cloneNode(W);z.parentNode.insertBefore(t,z);q.push(t)}t.appendChild(z)}else{t=0;aa(b.grep(z.childNodes),s);t=0}}aa(u,s)});if(k.wrap_links===false){aa(q,function(t){function s(u){var v,x,y;if(u.nodeName==="A"){x=o.cloneNode(W);q.push(x);y=b.grep(u.childNodes);for(v=0;v<y.length;v++){x.appendChild(y[v])}u.appendChild(x)}aa(b.grep(u.childNodes),s)}s(t)})}aa(q,function(t){var v;function s(x){var y=0;aa(x.childNodes,function(z){if(!aH(z)&&!ag(z)){y++}});return y}function u(z){var x,y;aa(z.childNodes,function(A){if(A.nodeType==1&&!ag(A)&&!aL(A)){x=A;return W}});if(x&&aF(x,k)){y=x.cloneNode(W);i(y);aK.replace(y,z,am);aK.remove(x,1)}return y||z}v=s(t);if((q.length>1||!ai(t))&&v===0){aK.remove(t,1);return}if(k.inline||k.wrapper){if(!k.exact&&v===1){t=u(t)}aa(d,function(x){aa(aK.select(x.inline,t),function(y){var z;if(x.wrap_links===false){z=y.parentNode;do{if(z.nodeName==="A"){return}}while(z=z.parentNode)}U(x,l,y,x.exact?y:null)})});if(aq(t.parentNode,g,l)){aK.remove(t,1);t=0;return am}if(k.merge_with_parents){aK.getParent(t.parentNode,function(x){if(aq(x,g,l)){aK.remove(t,1);t=0;return am}})}if(t){t=at(al(t),t);t=at(t,al(t,am))}}})}if(k){if(e){h=aK.createRng();h.setStartBefore(e);h.setEndAfter(e);j(az(h,d))}else{if(!c||!k.inline||aK.select("td.mceSelected,th.mceSelected").length){m=ax.getBookmark();j(az(ax.getRng(am),d));ax.moveToBookmark(m);ax.setRng(f(ax.getRng(am)));a.nodeChanged()}else{Y("apply",g,l)}}}}function an(g,m,d){var c=X(g),k=c[0],n,o,h;function e(x){var y=x.startContainer,r=x.startOffset,s,t,v,u;if(y.nodeType==3&&r>=y.nodeValue.length-1){y=y.parentNode;r=av(y)+1}if(y.nodeType==1){v=y.childNodes;y=v[Math.min(r,v.length-1)];s=new au(y);if(r>v.length-1){s.next()}for(t=s.current();t;t=s.next()){if(t.nodeType==3&&!aH(t)){u=aK.create("a",null,aj);t.parentNode.insertBefore(u,t);x.setStart(t,0);ax.setRng(x);aK.remove(u);return}}}}function f(r){var s,t,u;s=b.grep(r.childNodes);for(t=0,u=c.length;t<u;t++){if(U(c[t],m,r,r)){break}}if(k.deep){for(t=0,u=s.length;t<u;t++){f(s[t])}}}function q(s){var r;aa(aB(s.parentNode).reverse(),function(u){var t;if(!r&&u.id!="_start"&&u.id!="_end"){t=aq(u,g,m);if(t&&t.split!==false){r=u}}});return r}function i(y,B,v,s){var r,t,u,z,x,A;if(y){A=y.parentNode;for(r=B.parentNode;r&&r!=A;r=r.parentNode){t=r.cloneNode(W);for(x=0;x<c.length;x++){if(U(c[x],m,t,t)){t=0;break}}if(t){if(u){t.appendChild(u)}if(!z){z=t}u=t}}if(s&&(!k.mixed||!ai(y))){B=aK.split(y,B)}if(u){v.parentNode.insertBefore(u,v);z.appendChild(v)}}return B}function l(r){return i(q(r),r,r,true)}function p(r){var s=aK.get(r?"_start":"_end"),t=s[r?"firstChild":"lastChild"];if(ag(t)){t=t[r?"firstChild":"lastChild"]}aK.remove(s,true);return t}function j(t){var s,r;t=az(t,c,am);if(k.split){s=af(t,am);r=af(t);if(s!=r){s=ab(s,"span",{id:"_start","data-mce-type":"bookmark"});r=ab(r,"span",{id:"_end","data-mce-type":"bookmark"});l(s);l(r);s=p(am);r=p()}else{s=r=l(s)}t.startContainer=s.parentNode;t.startOffset=av(s);t.endContainer=r.parentNode;t.endOffset=av(r)+1}ae.walk(t,function(u){aa(u,function(v){f(v)})})}if(d){h=aK.createRng();h.setStartBefore(d);h.setEndAfter(d);j(h);return}if(!ax.isCollapsed()||!k.inline||aK.select("td.mceSelected,th.mceSelected").length){n=ax.getBookmark();j(ax.getRng(am));ax.moveToBookmark(n);if(aE(g,m,ax.getStart())){e(ax.getRng(true))}a.nodeChanged()}else{Y("remove",g,m)}}function ak(e,c,d){if(aE(e,c,d)){an(e,c,d)}else{V(e,c,d)}}function aq(h,i,c,e){var g=X(i),k,d,f;function j(n,l,r){var o,m,q=l[r],p;if(q){if(q.length===ay){for(o in q){if(q.hasOwnProperty(o)){if(r==="attributes"){m=aK.getAttrib(n,o)}else{m=ad(n,o)}if(e&&!m&&!l.exact){return}if((!e||l.exact)&&!aG(m,aw(q[o],c))){return}}}}else{for(p=0;p<q.length;p++){if(r==="attributes"?aK.getAttrib(n,q[p]):ad(n,q[p])){return l}}}}return l}if(g&&h){for(d=0;d<g.length;d++){k=g[d];if(aF(h,k)&&j(h,k,"attributes")&&j(h,k,"styles")){if(f=k.classes){for(d=0;d<f.length;d++){if(!aK.hasClass(h,f[d])){return}}}return k}}}}function aE(c,f,g){var d,h;function e(i){i=aK.getParent(i,function(j){return !!aq(j,c,f,true)});return aq(i,c,f)}if(g){return e(g)}if(ax.isCollapsed()){for(h=Z.apply.length-1;h>=0;h--){if(Z.apply[h].name==c){return true}}for(h=Z.remove.length-1;h>=0;h--){if(Z.remove[h].name==c){return false}}return e(ax.getNode())}g=ax.getNode();if(e(g)){return am}d=ax.getStart();if(d!=g){if(e(d)){return am}}return W}function ar(f,h){var i,g=[],j={},c,d,e;if(ax.isCollapsed()){for(d=0;d<f.length;d++){for(c=Z.remove.length-1;c>=0;c--){e=f[d];if(Z.remove[c].name==e){j[e]=true;break}}}for(c=Z.apply.length-1;c>=0;c--){for(d=0;d<f.length;d++){e=f[d];if(!j[e]&&Z.apply[c].name==e){j[e]=true;g.push(e)}}}}i=ax.getStart();aK.getParent(i,function(k){var l,m;for(l=0;l<f.length;l++){m=f[l];if(!j[m]&&aq(k,m,h)){j[m]=true;g.push(m)}}});return g}function ap(h){var g=X(h),i,c,f,d,e;if(g){i=ax.getStart();c=aB(i);for(d=g.length-1;d>=0;d--){e=g[d].selector;if(!e){return am}for(f=c.length-1;f>=0;f--){if(aK.is(c[f],e)){return am}}}}return W}b.extend(this,{get:X,register:aD,apply:V,remove:an,toggle:ak,match:aE,matchAll:ar,matchNode:aq,canApply:ap});function aF(d,c){if(aG(d,c.inline)){return am}if(aG(d,c.block)){return am}if(c.selector){return aK.is(d,c.selector)}}function aG(c,d){c=c||"";d=d||"";c=""+(c.nodeName||c);d=""+(d.nodeName||d);return c.toLowerCase()==d.toLowerCase()}function ad(d,e){var c=aK.getStyle(d,e);if(e=="color"||e=="backgroundColor"){c=aK.toHex(c)}if(e=="fontWeight"&&c==700){c="bold"}return""+c}function aw(d,c){if(typeof(d)!="string"){d=d(c)}else{if(c){d=d.replace(/%(\w+)/g,function(f,e){return c[e]||f})}}return d}function aH(c){return c&&c.nodeType===3&&/^([\s\r\n]+|)$/.test(c.nodeValue)}function ab(c,d,e){var f=aK.create(d,e);c.parentNode.insertBefore(f,c);f.appendChild(c);return f}function az(i,m,f){var g=i.startContainer,d=i.startOffset,j=i.endContainer,c=i.endOffset,k,n;function l(o,t,q,p){var s,r;p=p||aK.getRoot();for(;;){s=o.parentNode;if(s==p||(!m[0].block_expand&&ai(s))){return o}for(k=s[t];k&&k!=o;k=k[q]){if(k.nodeType==1&&!ag(k)){return o}if(k.nodeType==3&&!aH(k)){return o}}o=o.parentNode}return o}if(g.nodeType==1&&g.hasChildNodes()){n=g.childNodes.length-1;g=g.childNodes[d>n?n:d];if(g.nodeType==3){d=0}}if(j.nodeType==1&&j.hasChildNodes()){n=j.childNodes.length-1;j=j.childNodes[c>n?n:c-1];if(j.nodeType==3){c=j.nodeValue.length}}if(ag(g.parentNode)){g=g.parentNode}if(ag(g)){g=g.nextSibling||g}if(ag(j.parentNode)){j=j.parentNode}if(ag(j)){j=j.previousSibling||j}if(m[0].inline||m[0].block_expand){g=l(g,"firstChild","nextSibling");j=l(j,"lastChild","previousSibling")}if(m[0].selector&&m[0].expand!==W&&!m[0].inline){function e(p,q){var o,t,r,s;if(p.nodeType==3&&p.nodeValue.length==0&&p[q]){p=p[q]}o=aB(p);for(t=0;t<o.length;t++){for(r=0;r<m.length;r++){s=m[r];if("collapsed" in s&&s.collapsed!==i.collapsed){continue}if(aK.is(o[t],s.selector)){return o[t]}}}return p}g=e(g,"previousSibling");j=e(j,"nextSibling")}if(m[0].block||m[0].selector){function h(p,q,r){var o;if(!m[0].wrapper){o=aK.getParent(p,m[0].block)}if(!o){o=aK.getParent(p.nodeType==3?p.parentNode:p,ai)}if(o&&m[0].wrapper){o=aB(o,"ul,ol").reverse()[0]||o}if(!o){o=p;while(o[q]&&!ai(o[q])){o=o[q];if(aG(o,"br")){break}}}return o||p}g=h(g,"previousSibling");j=h(j,"nextSibling");if(m[0].block){if(!ai(g)){g=l(g,"firstChild","nextSibling")}if(!ai(j)){j=l(j,"lastChild","previousSibling")}}}if(g.nodeType==1){d=av(g);g=g.parentNode}if(j.nodeType==1){c=av(j)+1;j=j.parentNode}return{startContainer:g,startOffset:d,endContainer:j,endOffset:c}}function U(g,f,i,e){var c,d,h;if(!aF(i,g)){return W}if(g.remove!="all"){aa(g.styles,function(j,k){j=aw(j,f);if(typeof(k)==="number"){k=j;e=0}if(!e||aG(ad(e,k),j)){aK.setStyle(i,k,"")}h=1});if(h&&aK.getAttrib(i,"style")==""){i.removeAttribute("style");i.removeAttribute("data-mce-style")}aa(g.attributes,function(j,l){var k;j=aw(j,f);if(typeof(l)==="number"){l=j;e=0}if(!e||aG(aK.getAttrib(e,l),j)){if(l=="class"){j=aK.getAttrib(i,l);if(j){k="";aa(j.split(/\s+/),function(m){if(/mce\w+/.test(m)){k+=(k?" ":"")+m}});if(k){aK.setAttrib(i,l,k);return}}}if(l=="class"){i.removeAttribute("className")}if(aI.test(l)){i.removeAttribute("data-mce-"+l)}i.removeAttribute(l)}});aa(g.classes,function(j){j=aw(j,f);if(!e||aK.hasClass(e,j)){aK.removeClass(i,j)}});d=aK.getAttribs(i);for(c=0;c<d.length;c++){if(d[c].nodeName.indexOf("_")!==0){return W}}}if(g.remove!="none"){aA(i,g);return am}}function aA(c,g){var e=c.parentNode,d;if(g.block){if(!aC){function f(j,i,h){j=al(j,i,h);return !j||(j.nodeName=="BR"||ai(j))}if(ai(c)&&!ai(e)){if(!f(c,W)&&!f(c.firstChild,am,1)){c.insertBefore(aK.create("br"),c.firstChild)}if(!f(c,am)&&!f(c.lastChild,W,1)){c.appendChild(aK.create("br"))}}}else{if(e==aK.getRoot()){if(!g.list_block||!aG(c,g.list_block)){aa(b.grep(c.childNodes),function(h){if(aJ(aC,h.nodeName.toLowerCase())){if(!d){d=ab(h,aC)}else{d.appendChild(h)}}else{d=0}})}}}}if(g.selector&&g.inline&&!aG(g.inline,c)){return}aK.remove(c,1)}function al(d,e,c){if(d){e=e?"nextSibling":"previousSibling";for(d=c?d:d[e];d;d=d[e]){if(d.nodeType==1||!aH(d)){return d}}}}function ag(c){return c&&c.nodeType==1&&c.getAttribute("data-mce-type")=="bookmark"}function at(h,i){var e,c,d;function g(k,l){if(k.nodeName!=l.nodeName){return W}function m(o){var n={};aa(aK.getAttribs(o),function(q){var p=q.nodeName.toLowerCase();if(p.indexOf("_")!==0&&p!=="style"){n[p]=aK.getAttrib(o,p)}});return n}function j(n,o){var p,q;for(q in n){if(n.hasOwnProperty(q)){p=o[q];if(p===ay){return W}if(n[q]!=p){return W}delete o[q]}}for(q in o){if(o.hasOwnProperty(q)){return W}}return am}if(!j(m(k),m(l))){return W}if(!j(aK.parseStyle(aK.getAttrib(k,"style")),aK.parseStyle(aK.getAttrib(l,"style")))){return W}return am}if(h&&i){function f(j,k){for(c=j;c;c=c[k]){if(c.nodeType==3&&c.nodeValue.length!==0){return j}if(c.nodeType==1&&!ag(c)){return c}}return j}h=f(h,"previousSibling");i=f(i,"nextSibling");if(g(h,i)){for(c=h.nextSibling;c&&c!=i;){d=c;c=c.nextSibling;h.appendChild(d)}aK.remove(i);aa(b.grep(i.childNodes),function(j){h.appendChild(j)});return h}}return i}function ah(c){return/^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(c)}function af(d,f){var e,g,c;e=d[f?"startContainer":"endContainer"];g=d[f?"startOffset":"endOffset"];if(e.nodeType==1){c=e.childNodes.length-1;if(!f&&g){g--}e=e.childNodes[g>c?c:g]}return e}function Y(d,h,e){var g,i=Z[d],c=Z[d=="apply"?"remove":"apply"];function k(){return Z.apply.length||Z.remove.length}function f(){Z.apply=[];Z.remove=[]}function j(l){aa(Z.apply.reverse(),function(m){V(m.name,m.vars,l)});aa(Z.remove.reverse(),function(m){an(m.name,m.vars,l)});aK.remove(l,1);f()}for(g=i.length-1;g>=0;g--){if(i[g].name==h){return}}i.push({name:h,vars:e});for(g=c.length-1;g>=0;g--){if(c[g].name==h){c.splice(g,1)}}if(k()){a.getDoc().execCommand("FontName",false,"mceinline");Z.lastRng=ax.getRng();aa(aK.select("font,span"),function(l){var m;if(aL(l)){m=ax.getBookmark();j(l);ax.moveToBookmark(m);a.nodeChanged()}});if(!Z.isListening&&k()){Z.isListening=true;aa("onKeyDown,onKeyUp,onKeyPress,onMouseUp".split(","),function(l){a[l].addToTop(function(n,m){if(k()&&!b.dom.RangeUtils.compareRanges(Z.lastRng,ax.getRng())){aa(aK.select("font,span"),function(p){var o,q;if(aL(p)){o=p.firstChild;if(o){j(p);q=aK.createRng();q.setStart(o,o.nodeValue.length);q.setEnd(o,o.nodeValue.length);ax.setRng(q);n.nodeChanged()}else{aK.remove(p)}}});if(m.type=="keyup"||m.type=="mouseup"){f()}}})})}}}}})(tinymce);tinymce.onAddEditor.add(function(n,j){var o,k,l,p=j.settings;if(p.inline_styles){k=n.explode(p.font_size_style_values);function i(a,b){n.each(b,function(c,d){if(c){l.setStyle(a,d,c)}});l.rename(a,"span")}o={font:function(a,b){i(b,{backgroundColor:b.style.backgroundColor,color:b.color,fontFamily:b.face,fontSize:k[parseInt(b.size)-1]})},u:function(a,b){i(b,{textDecoration:"underline"})},strike:function(a,b){i(b,{textDecoration:"line-through"})}};function m(b,a){l=b.dom;if(p.convert_fonts_to_spans){n.each(l.select("font,u,strike",a.node),function(c){o[c.nodeName.toLowerCase()](j.dom,c)})}}j.onPreProcess.add(m);j.onSetContent.add(m);j.onInit.add(function(){j.selection.onSetContent.add(m)})}});
|
@@ -1,5 +1 @@
|
|
1
|
-
|
2
|
-
// Uncomment and change this document.domain value if you are loading the script cross subdomains
|
3
|
-
// document.domain = 'moxiecode.com';
|
4
|
-
|
5
|
-
var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=b.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document);if(b.features.popup_css!==false){b.dom.loadCSS(b.features.popup_css||b.editor.settings.popup_css)}b.listeners=[];b.onInit={add:function(e,d){b.listeners.push({func:e,scope:d})}};b.isWindow=!b.getWindowArg("mce_inline");b.id=b.getWindowArg("mce_window_id");b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(c,b){var a=this.params[c];return tinymce.is(a)?a:b},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},resizeToInnerSize:function(){var a=this;setTimeout(function(){var b=a.dom.getViewPort(window);a.editor.windowManager.resizeBy(a.getWindowArg("mce_width")-b.w,a.getWindowArg("mce_height")-b.h,a.id||window)},10)},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(!a.isWindow&&tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},requireLangPack:function(){var b=this,a=b.getWindowArg("plugin_url")||b.getWindowArg("theme_url");if(a&&b.editor.settings.language&&b.features.translate_i18n!==false&&b.editor.settings.language_load!==false){a+="/langs/"+b.editor.settings.language+"_dlg.js";if(!tinymce.ScriptLoader.isDone(a)){document.write('<script type="text/javascript" src="'+tinymce._addVer(a)+'"><\/script>');tinymce.ScriptLoader.markDone(a)}}},pickColor:function(b,a){this.execCommand("mceColorPicker",true,{color:document.getElementById(a).value,func:function(e){document.getElementById(a).value=e;try{document.getElementById(a).onchange()}catch(d){}}})},openBrowser:function(a,c,b){tinyMCEPopup.restoreSelection();this.editor.execCallback("file_browser_callback",a,document.getElementById(a).value,c,window)},confirm:function(b,a,c){this.editor.windowManager.confirm(b,a,c,window)},alert:function(b,a,c){this.editor.windowManager.alert(b,a,c,window)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);tinymce=tinyMCE=a.editor=a.params=a.dom=a.dom.doc=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},_restoreSelection:function(){var a=window.event.srcElement;if(a.nodeName=="INPUT"&&(a.type=="submit"||a.type=="button")){tinyMCEPopup.restoreSelection()}},_onDOMLoaded:function(){var b=tinyMCEPopup,d=document.title,e,c,a;if(b.domLoaded){return}b.domLoaded=1;if(b.features.translate_i18n!==false){c=document.body.innerHTML;if(tinymce.isIE){c=c.replace(/ (value|title|alt)=([^"][^\s>]+)/gi,' $1="$2"')}document.dir=b.editor.getParam("directionality","");if((a=b.editor.translate(c))&&a!=c){document.body.innerHTML=a}if((a=b.editor.translate(d))&&a!=d){document.title=d=a}}if(!b.editor.getParam("browser_preferred_colors",false)||!b.isWindow){b.dom.addClass(document.body,"forceColors")}document.body.style.display="";if(tinymce.isIE){document.attachEvent("onmouseup",tinyMCEPopup._restoreSelection);b.dom.add(b.dom.select("head")[0],"base",{target:"_self"})}b.restoreSelection();b.resizeToInnerSize();if(!b.isWindow){b.editor.windowManager.setTitle(window,d)}else{window.focus()}if(!tinymce.isIE&&!b.isWindow){tinymce.dom.Event._add(document,"focus",function(){b.editor.windowManager.focus(b.id)})}tinymce.each(b.dom.select("select"),function(f){f.onkeydown=tinyMCEPopup._accessHandler});tinymce.each(b.listeners,function(f){f.func.call(f.scope,b.editor)});if(b.getWindowArg("mce_auto_focus",true)){window.focus();tinymce.each(document.forms,function(g){tinymce.each(g.elements,function(f){if(b.dom.hasClass(f,"mceFocus")&&!f.disabled){f.focus();return false}})})}document.onkeyup=tinyMCEPopup._closeWinKeyHandler},_accessHandler:function(a){a=a||window.event;if(a.keyCode==13||a.keyCode==32){a=a.target||a.srcElement;if(a.onchange){a.onchange()}return tinymce.dom.Event.cancel(a)}},_closeWinKeyHandler:function(a){a=a||window.event;if(a.keyCode==27){tinyMCEPopup.close()}},_wait:function(){if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);tinyMCEPopup._onDOMLoaded()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(tinyMCEPopup.domLoaded){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}tinyMCEPopup._onDOMLoaded()})()}document.attachEvent("onload",tinyMCEPopup._onDOMLoaded)}else{if(document.addEventListener){window.addEventListener("DOMContentLoaded",tinyMCEPopup._onDOMLoaded,false);window.addEventListener("load",tinyMCEPopup._onDOMLoaded,false)}}}};tinyMCEPopup.init();tinyMCEPopup._wait();
|
1
|
+
var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var d=this,e,f;e=d.getWin();tinymce=e.tinymce;tinyMCE=e.tinyMCE;d.editor=tinymce.EditorManager.activeEditor;d.params=d.editor.windowManager.params;d.features=d.editor.windowManager.features;d.dom=d.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document);if(d.features.popup_css!==false){d.dom.loadCSS(d.features.popup_css||d.editor.settings.popup_css)}d.listeners=[];d.onInit={add:function(a,b){d.listeners.push({func:a,scope:b})}};d.isWindow=!d.getWindowArg("mce_inline");d.id=d.getWindowArg("mce_window_id");d.editor.windowManager.onOpen.dispatch(d.editor.windowManager,window)},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(f,d){var e=this.params[f];return tinymce.is(e)?e:d},getParam:function(c,d){return this.editor.getParam(c,d)},getLang:function(c,d){return this.editor.getLang(c,d)},execCommand:function(g,h,f,a){a=a||{};a.skip_focus=1;this.restoreSelection();return this.editor.execCommand(g,h,f,a)},resizeToInnerSize:function(){var b=this;setTimeout(function(){var a=b.dom.getViewPort(window);b.editor.windowManager.resizeBy(b.getWindowArg("mce_width")-a.w,b.getWindowArg("mce_height")-a.h,b.id||window)},10)},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var b=tinyMCEPopup;if(!b.isWindow&&tinymce.isIE){b.editor.selection.moveToBookmark(b.editor.windowManager.bookmark)}},requireLangPack:function(){var c=this,d=c.getWindowArg("plugin_url")||c.getWindowArg("theme_url");if(d&&c.editor.settings.language&&c.features.translate_i18n!==false&&c.editor.settings.language_load!==false){d+="/langs/"+c.editor.settings.language+"_dlg.js";if(!tinymce.ScriptLoader.isDone(d)){document.write('<script type="text/javascript" src="'+tinymce._addVer(d)+'"><\/script>');tinymce.ScriptLoader.markDone(d)}}},pickColor:function(c,d){this.execCommand("mceColorPicker",true,{color:document.getElementById(d).value,func:function(a){document.getElementById(d).value=a;try{document.getElementById(d).onchange()}catch(b){}}})},openBrowser:function(e,f,d){tinyMCEPopup.restoreSelection();this.editor.execCallback("file_browser_callback",e,document.getElementById(e).value,f,window)},confirm:function(d,e,f){this.editor.windowManager.confirm(d,e,f,window)},alert:function(d,e,f){this.editor.windowManager.alert(d,e,f,window)},close:function(){var d=this;function c(){d.editor.windowManager.close(window);tinymce=tinyMCE=d.editor=d.params=d.dom=d.dom.doc=null}if(tinymce.isOpera){d.getWin().setTimeout(c,0)}else{c()}},_restoreSelection:function(){var b=window.event.srcElement;if(b.nodeName=="INPUT"&&(b.type=="submit"||b.type=="button")){tinyMCEPopup.restoreSelection()}},_onDOMLoaded:function(){var f=tinyMCEPopup,i=document.title,h,j,g;if(f.domLoaded){return}f.domLoaded=1;if(f.features.translate_i18n!==false){j=document.body.innerHTML;if(tinymce.isIE){j=j.replace(/ (value|title|alt)=([^"][^\s>]+)/gi,' $1="$2"')}document.dir=f.editor.getParam("directionality","");if((g=f.editor.translate(j))&&g!=j){document.body.innerHTML=g}if((g=f.editor.translate(i))&&g!=i){document.title=i=g}}if(!f.editor.getParam("browser_preferred_colors",false)||!f.isWindow){f.dom.addClass(document.body,"forceColors")}document.body.style.display="";if(tinymce.isIE){document.attachEvent("onmouseup",tinyMCEPopup._restoreSelection);f.dom.add(f.dom.select("head")[0],"base",{target:"_self"})}f.restoreSelection();f.resizeToInnerSize();if(!f.isWindow){f.editor.windowManager.setTitle(window,i)}else{window.focus()}if(!tinymce.isIE&&!f.isWindow){tinymce.dom.Event._add(document,"focus",function(){f.editor.windowManager.focus(f.id)})}tinymce.each(f.dom.select("select"),function(a){a.onkeydown=tinyMCEPopup._accessHandler});tinymce.each(f.listeners,function(a){a.func.call(a.scope,f.editor)});if(f.getWindowArg("mce_auto_focus",true)){window.focus();tinymce.each(document.forms,function(a){tinymce.each(a.elements,function(b){if(f.dom.hasClass(b,"mceFocus")&&!b.disabled){b.focus();return false}})})}document.onkeyup=tinyMCEPopup._closeWinKeyHandler},_accessHandler:function(b){b=b||window.event;if(b.keyCode==13||b.keyCode==32){b=b.target||b.srcElement;if(b.onchange){b.onchange()}return tinymce.dom.Event.cancel(b)}},_closeWinKeyHandler:function(b){b=b||window.event;if(b.keyCode==27){tinyMCEPopup.close()}},_wait:function(){if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);tinyMCEPopup._onDOMLoaded()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(tinyMCEPopup.domLoaded){return}try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}tinyMCEPopup._onDOMLoaded()})()}document.attachEvent("onload",tinyMCEPopup._onDOMLoaded)}else{if(document.addEventListener){window.addEventListener("DOMContentLoaded",tinyMCEPopup._onDOMLoaded,false);window.addEventListener("load",tinyMCEPopup._onDOMLoaded,false)}}}};tinyMCEPopup.init();tinyMCEPopup._wait();
|
@@ -1,70 +1 @@
|
|
1
|
-
|
2
|
-
* editable_selects.js
|
3
|
-
*
|
4
|
-
* Copyright 2009, Moxiecode Systems AB
|
5
|
-
* Released under LGPL License.
|
6
|
-
*
|
7
|
-
* License: http://tinymce.moxiecode.com/license
|
8
|
-
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
-
*/
|
10
|
-
|
11
|
-
var TinyMCE_EditableSelects = {
|
12
|
-
editSelectElm : null,
|
13
|
-
|
14
|
-
init : function() {
|
15
|
-
var nl = document.getElementsByTagName("select"), i, d = document, o;
|
16
|
-
|
17
|
-
for (i=0; i<nl.length; i++) {
|
18
|
-
if (nl[i].className.indexOf('mceEditableSelect') != -1) {
|
19
|
-
o = new Option('(value)', '__mce_add_custom__');
|
20
|
-
|
21
|
-
o.className = 'mceAddSelectValue';
|
22
|
-
|
23
|
-
nl[i].options[nl[i].options.length] = o;
|
24
|
-
nl[i].onchange = TinyMCE_EditableSelects.onChangeEditableSelect;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
},
|
28
|
-
|
29
|
-
onChangeEditableSelect : function(e) {
|
30
|
-
var d = document, ne, se = window.event ? window.event.srcElement : e.target;
|
31
|
-
|
32
|
-
if (se.options[se.selectedIndex].value == '__mce_add_custom__') {
|
33
|
-
ne = d.createElement("input");
|
34
|
-
ne.id = se.id + "_custom";
|
35
|
-
ne.name = se.name + "_custom";
|
36
|
-
ne.type = "text";
|
37
|
-
|
38
|
-
ne.style.width = se.offsetWidth + 'px';
|
39
|
-
se.parentNode.insertBefore(ne, se);
|
40
|
-
se.style.display = 'none';
|
41
|
-
ne.focus();
|
42
|
-
ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
|
43
|
-
ne.onkeydown = TinyMCE_EditableSelects.onKeyDown;
|
44
|
-
TinyMCE_EditableSelects.editSelectElm = se;
|
45
|
-
}
|
46
|
-
},
|
47
|
-
|
48
|
-
onBlurEditableSelectInput : function() {
|
49
|
-
var se = TinyMCE_EditableSelects.editSelectElm;
|
50
|
-
|
51
|
-
if (se) {
|
52
|
-
if (se.previousSibling.value != '') {
|
53
|
-
addSelectValue(document.forms[0], se.id, se.previousSibling.value, se.previousSibling.value);
|
54
|
-
selectByValue(document.forms[0], se.id, se.previousSibling.value);
|
55
|
-
} else
|
56
|
-
selectByValue(document.forms[0], se.id, '');
|
57
|
-
|
58
|
-
se.style.display = 'inline';
|
59
|
-
se.parentNode.removeChild(se.previousSibling);
|
60
|
-
TinyMCE_EditableSelects.editSelectElm = null;
|
61
|
-
}
|
62
|
-
},
|
63
|
-
|
64
|
-
onKeyDown : function(e) {
|
65
|
-
e = e || window.event;
|
66
|
-
|
67
|
-
if (e.keyCode == 13)
|
68
|
-
TinyMCE_EditableSelects.onBlurEditableSelectInput();
|
69
|
-
}
|
70
|
-
};
|
1
|
+
var TinyMCE_EditableSelects={editSelectElm:null,init:function(){var a=document.getElementsByTagName("select"),b,e=document,c;for(b=0;b<a.length;b++){if(a[b].className.indexOf("mceEditableSelect")!=-1){c=new Option("(value)","__mce_add_custom__");c.className="mceAddSelectValue";a[b].options[a[b].options.length]=c;a[b].onchange=TinyMCE_EditableSelects.onChangeEditableSelect}}},onChangeEditableSelect:function(c){var f=document,b,a=window.event?window.event.srcElement:c.target;if(a.options[a.selectedIndex].value=="__mce_add_custom__"){b=f.createElement("input");b.id=a.id+"_custom";b.name=a.name+"_custom";b.type="text";b.style.width=a.offsetWidth+"px";a.parentNode.insertBefore(b,a);a.style.display="none";b.focus();b.onblur=TinyMCE_EditableSelects.onBlurEditableSelectInput;b.onkeydown=TinyMCE_EditableSelects.onKeyDown;TinyMCE_EditableSelects.editSelectElm=a}},onBlurEditableSelectInput:function(){var a=TinyMCE_EditableSelects.editSelectElm;if(a){if(a.previousSibling.value!=""){addSelectValue(document.forms[0],a.id,a.previousSibling.value,a.previousSibling.value);selectByValue(document.forms[0],a.id,a.previousSibling.value)}else{selectByValue(document.forms[0],a.id,"")}a.style.display="inline";a.parentNode.removeChild(a.previousSibling);TinyMCE_EditableSelects.editSelectElm=null}},onKeyDown:function(a){a=a||window.event;if(a.keyCode==13){TinyMCE_EditableSelects.onBlurEditableSelectInput()}}};
|
@@ -1,207 +1 @@
|
|
1
|
-
|
2
|
-
* form_utils.js
|
3
|
-
*
|
4
|
-
* Copyright 2009, Moxiecode Systems AB
|
5
|
-
* Released under LGPL License.
|
6
|
-
*
|
7
|
-
* License: http://tinymce.moxiecode.com/license
|
8
|
-
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
-
*/
|
10
|
-
|
11
|
-
var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
|
12
|
-
|
13
|
-
function getColorPickerHTML(id, target_form_element) {
|
14
|
-
var h = "", dom = tinyMCEPopup.dom;
|
15
|
-
|
16
|
-
if (label = dom.select('label[for=' + target_form_element + ']')[0]) {
|
17
|
-
label.id = label.id || dom.uniqueId();
|
18
|
-
}
|
19
|
-
|
20
|
-
h += '<a role="button" aria-labelledby="' + id + '_label" id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">';
|
21
|
-
h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> <span id="' + id + '_label" class="mceVoiceLabel mceIconOnly" style="display:none;">' + tinyMCEPopup.getLang('browse') + '</span></span></a>';
|
22
|
-
|
23
|
-
return h;
|
24
|
-
}
|
25
|
-
|
26
|
-
function updateColor(img_id, form_element_id) {
|
27
|
-
document.getElementById(img_id).style.backgroundColor = document.forms[0].elements[form_element_id].value;
|
28
|
-
}
|
29
|
-
|
30
|
-
function setBrowserDisabled(id, state) {
|
31
|
-
var img = document.getElementById(id);
|
32
|
-
var lnk = document.getElementById(id + "_link");
|
33
|
-
|
34
|
-
if (lnk) {
|
35
|
-
if (state) {
|
36
|
-
lnk.setAttribute("realhref", lnk.getAttribute("href"));
|
37
|
-
lnk.removeAttribute("href");
|
38
|
-
tinyMCEPopup.dom.addClass(img, 'disabled');
|
39
|
-
} else {
|
40
|
-
if (lnk.getAttribute("realhref"))
|
41
|
-
lnk.setAttribute("href", lnk.getAttribute("realhref"));
|
42
|
-
|
43
|
-
tinyMCEPopup.dom.removeClass(img, 'disabled');
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
function getBrowserHTML(id, target_form_element, type, prefix) {
|
49
|
-
var option = prefix + "_" + type + "_browser_callback", cb, html;
|
50
|
-
|
51
|
-
cb = tinyMCEPopup.getParam(option, tinyMCEPopup.getParam("file_browser_callback"));
|
52
|
-
|
53
|
-
if (!cb)
|
54
|
-
return "";
|
55
|
-
|
56
|
-
html = "";
|
57
|
-
html += '<a id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;" class="browse">';
|
58
|
-
html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> </span></a>';
|
59
|
-
|
60
|
-
return html;
|
61
|
-
}
|
62
|
-
|
63
|
-
function openBrowser(img_id, target_form_element, type, option) {
|
64
|
-
var img = document.getElementById(img_id);
|
65
|
-
|
66
|
-
if (img.className != "mceButtonDisabled")
|
67
|
-
tinyMCEPopup.openBrowser(target_form_element, type, option);
|
68
|
-
}
|
69
|
-
|
70
|
-
function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
|
71
|
-
if (!form_obj || !form_obj.elements[field_name])
|
72
|
-
return;
|
73
|
-
|
74
|
-
if (!value)
|
75
|
-
value = "";
|
76
|
-
|
77
|
-
var sel = form_obj.elements[field_name];
|
78
|
-
|
79
|
-
var found = false;
|
80
|
-
for (var i=0; i<sel.options.length; i++) {
|
81
|
-
var option = sel.options[i];
|
82
|
-
|
83
|
-
if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) {
|
84
|
-
option.selected = true;
|
85
|
-
found = true;
|
86
|
-
} else
|
87
|
-
option.selected = false;
|
88
|
-
}
|
89
|
-
|
90
|
-
if (!found && add_custom && value != '') {
|
91
|
-
var option = new Option(value, value);
|
92
|
-
option.selected = true;
|
93
|
-
sel.options[sel.options.length] = option;
|
94
|
-
sel.selectedIndex = sel.options.length - 1;
|
95
|
-
}
|
96
|
-
|
97
|
-
return found;
|
98
|
-
}
|
99
|
-
|
100
|
-
function getSelectValue(form_obj, field_name) {
|
101
|
-
var elm = form_obj.elements[field_name];
|
102
|
-
|
103
|
-
if (elm == null || elm.options == null || elm.selectedIndex === -1)
|
104
|
-
return "";
|
105
|
-
|
106
|
-
return elm.options[elm.selectedIndex].value;
|
107
|
-
}
|
108
|
-
|
109
|
-
function addSelectValue(form_obj, field_name, name, value) {
|
110
|
-
var s = form_obj.elements[field_name];
|
111
|
-
var o = new Option(name, value);
|
112
|
-
s.options[s.options.length] = o;
|
113
|
-
}
|
114
|
-
|
115
|
-
function addClassesToList(list_id, specific_option) {
|
116
|
-
// Setup class droplist
|
117
|
-
var styleSelectElm = document.getElementById(list_id);
|
118
|
-
var styles = tinyMCEPopup.getParam('theme_advanced_styles', false);
|
119
|
-
styles = tinyMCEPopup.getParam(specific_option, styles);
|
120
|
-
|
121
|
-
if (styles) {
|
122
|
-
var stylesAr = styles.split(';');
|
123
|
-
|
124
|
-
for (var i=0; i<stylesAr.length; i++) {
|
125
|
-
if (stylesAr != "") {
|
126
|
-
var key, value;
|
127
|
-
|
128
|
-
key = stylesAr[i].split('=')[0];
|
129
|
-
value = stylesAr[i].split('=')[1];
|
130
|
-
|
131
|
-
styleSelectElm.options[styleSelectElm.length] = new Option(key, value);
|
132
|
-
}
|
133
|
-
}
|
134
|
-
} else {
|
135
|
-
tinymce.each(tinyMCEPopup.editor.dom.getClasses(), function(o) {
|
136
|
-
styleSelectElm.options[styleSelectElm.length] = new Option(o.title || o['class'], o['class']);
|
137
|
-
});
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
|
-
function isVisible(element_id) {
|
142
|
-
var elm = document.getElementById(element_id);
|
143
|
-
|
144
|
-
return elm && elm.style.display != "none";
|
145
|
-
}
|
146
|
-
|
147
|
-
function convertRGBToHex(col) {
|
148
|
-
var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi");
|
149
|
-
|
150
|
-
var rgb = col.replace(re, "$1,$2,$3").split(',');
|
151
|
-
if (rgb.length == 3) {
|
152
|
-
r = parseInt(rgb[0]).toString(16);
|
153
|
-
g = parseInt(rgb[1]).toString(16);
|
154
|
-
b = parseInt(rgb[2]).toString(16);
|
155
|
-
|
156
|
-
r = r.length == 1 ? '0' + r : r;
|
157
|
-
g = g.length == 1 ? '0' + g : g;
|
158
|
-
b = b.length == 1 ? '0' + b : b;
|
159
|
-
|
160
|
-
return "#" + r + g + b;
|
161
|
-
}
|
162
|
-
|
163
|
-
return col;
|
164
|
-
}
|
165
|
-
|
166
|
-
function convertHexToRGB(col) {
|
167
|
-
if (col.indexOf('#') != -1) {
|
168
|
-
col = col.replace(new RegExp('[^0-9A-F]', 'gi'), '');
|
169
|
-
|
170
|
-
r = parseInt(col.substring(0, 2), 16);
|
171
|
-
g = parseInt(col.substring(2, 4), 16);
|
172
|
-
b = parseInt(col.substring(4, 6), 16);
|
173
|
-
|
174
|
-
return "rgb(" + r + "," + g + "," + b + ")";
|
175
|
-
}
|
176
|
-
|
177
|
-
return col;
|
178
|
-
}
|
179
|
-
|
180
|
-
function trimSize(size) {
|
181
|
-
return size.replace(/([0-9\.]+)px|(%|in|cm|mm|em|ex|pt|pc)/, '$1$2');
|
182
|
-
}
|
183
|
-
|
184
|
-
function getCSSSize(size) {
|
185
|
-
size = trimSize(size);
|
186
|
-
|
187
|
-
if (size == "")
|
188
|
-
return "";
|
189
|
-
|
190
|
-
// Add px
|
191
|
-
if (/^[0-9]+$/.test(size))
|
192
|
-
size += 'px';
|
193
|
-
|
194
|
-
return size;
|
195
|
-
}
|
196
|
-
|
197
|
-
function getStyle(elm, attrib, style) {
|
198
|
-
var val = tinyMCEPopup.dom.getAttrib(elm, attrib);
|
199
|
-
|
200
|
-
if (val != '')
|
201
|
-
return '' + val;
|
202
|
-
|
203
|
-
if (typeof(style) == 'undefined')
|
204
|
-
style = attrib;
|
205
|
-
|
206
|
-
return tinyMCEPopup.dom.getStyle(elm, style);
|
207
|
-
}
|
1
|
+
var themeBaseURL=tinyMCEPopup.editor.baseURI.toAbsolute("themes/"+tinyMCEPopup.getParam("theme"));function getColorPickerHTML(e,c){var a="",d=tinyMCEPopup.dom;if(label=d.select("label[for="+c+"]")[0]){label.id=label.id||d.uniqueId()}a+='<a role="button" aria-labelledby="'+e+'_label" id="'+e+'_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\''+c+'\');" onmousedown="return false;" class="pickcolor">';a+='<span id="'+e+'" title="'+tinyMCEPopup.getLang("browse")+'"> <span id="'+e+'_label" class="mceVoiceLabel mceIconOnly" style="display:none;">'+tinyMCEPopup.getLang("browse")+"</span></span></a>";return a}function updateColor(c,a){document.getElementById(c).style.backgroundColor=document.forms[0].elements[a].value}function setBrowserDisabled(e,c){var a=document.getElementById(e);var d=document.getElementById(e+"_link");if(d){if(c){d.setAttribute("realhref",d.getAttribute("href"));d.removeAttribute("href");tinyMCEPopup.dom.addClass(a,"disabled")}else{if(d.getAttribute("realhref")){d.setAttribute("href",d.getAttribute("realhref"))}tinyMCEPopup.dom.removeClass(a,"disabled")}}}function getBrowserHTML(i,f,e,h){var d=h+"_"+e+"_browser_callback",a,c;a=tinyMCEPopup.getParam(d,tinyMCEPopup.getParam("file_browser_callback"));if(!a){return""}c="";c+='<a id="'+i+'_link" href="javascript:openBrowser(\''+i+"','"+f+"', '"+e+"','"+d+'\');" onmousedown="return false;" class="browse">';c+='<span id="'+i+'" title="'+tinyMCEPopup.getLang("browse")+'"> </span></a>';return c}function openBrowser(c,f,e,d){var a=document.getElementById(c);if(a.className!="mceButtonDisabled"){tinyMCEPopup.openBrowser(f,e,d)}}function selectByValue(a,d,j,h,k){if(!a||!a.elements[d]){return}if(!j){j=""}var c=a.elements[d];var l=false;for(var e=0;e<c.options.length;e++){var f=c.options[e];if(f.value==j||(k&&f.value.toLowerCase()==j.toLowerCase())){f.selected=true;l=true}else{f.selected=false}}if(!l&&h&&j!=""){var f=new Option(j,j);f.selected=true;c.options[c.options.length]=f;c.selectedIndex=c.options.length-1}return l}function getSelectValue(a,c){var d=a.elements[c];if(d==null||d.options==null||d.selectedIndex===-1){return""}return d.options[d.selectedIndex].value}function addSelectValue(a,e,c,f){var d=a.elements[e];var h=new Option(c,f);d.options[d.options.length]=h}function addClassesToList(k,h){var d=document.getElementById(k);var e=tinyMCEPopup.getParam("theme_advanced_styles",false);e=tinyMCEPopup.getParam(h,e);if(e){var j=e.split(";");for(var c=0;c<j.length;c++){if(j!=""){var a,f;a=j[c].split("=")[0];f=j[c].split("=")[1];d.options[d.length]=new Option(a,f)}}}else{tinymce.each(tinyMCEPopup.editor.dom.getClasses(),function(i){d.options[d.length]=new Option(i.title||i["class"],i["class"])})}}function isVisible(a){var c=document.getElementById(a);return c&&c.style.display!="none"}function convertRGBToHex(c){var d=new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)","gi");var a=c.replace(d,"$1,$2,$3").split(",");if(a.length==3){r=parseInt(a[0]).toString(16);g=parseInt(a[1]).toString(16);b=parseInt(a[2]).toString(16);r=r.length==1?"0"+r:r;g=g.length==1?"0"+g:g;b=b.length==1?"0"+b:b;return"#"+r+g+b}return c}function convertHexToRGB(a){if(a.indexOf("#")!=-1){a=a.replace(new RegExp("[^0-9A-F]","gi"),"");r=parseInt(a.substring(0,2),16);g=parseInt(a.substring(2,4),16);b=parseInt(a.substring(4,6),16);return"rgb("+r+","+g+","+b+")"}return a}function trimSize(a){return a.replace(/([0-9\.]+)px|(%|in|cm|mm|em|ex|pt|pc)/,"$1$2")}function getCSSSize(a){a=trimSize(a);if(a==""){return""}if(/^[0-9]+$/.test(a)){a+="px"}return a}function getStyle(e,c,a){var d=tinyMCEPopup.dom.getAttrib(e,c);if(d!=""){return""+d}if(typeof(a)=="undefined"){a=c}return tinyMCEPopup.dom.getStyle(e,a)};
|