[vlc-devel] [PATCH] LUA HTTP interface

Elminster2031 elminster2031 at archmageinc.com
Tue Nov 15 19:11:02 CET 2011


From: Elminster2031 <elminster2031 at archmageinc.com>

This modification provides a 'clean' http interface using jQuery. This
uses asynchronous ajax calls to communicate to the VLM. jQuery is loaded
via CDN as is flowplayer.
---
 share/lua/http/css/main.css                        |  119 +
 .../ui-bg_diagonals-thick_18_b81900_40x40.png      |  Bin 0 -> 260 bytes
 .../ui-bg_diagonals-thick_20_666666_40x40.png      |  Bin 0 -> 251 bytes
 .../images/ui-bg_flat_10_000000_40x100.png         |  Bin 0 -> 178 bytes
 .../images/ui-bg_glass_100_f6f6f6_1x400.png        |  Bin 0 -> 104 bytes
 .../images/ui-bg_glass_100_fdf5ce_1x400.png        |  Bin 0 -> 125 bytes
 .../images/ui-bg_glass_65_ffffff_1x400.png         |  Bin 0 -> 105 bytes
 .../images/ui-bg_gloss-wave_35_f6a828_500x100.png  |  Bin 0 -> 3762 bytes
 .../ui-bg_highlight-soft_100_eeeeee_1x100.png      |  Bin 0 -> 90 bytes
 .../ui-bg_highlight-soft_75_ffe45c_1x100.png       |  Bin 0 -> 129 bytes
 .../images/ui-icons_222222_256x240.png             |  Bin 0 -> 4369 bytes
 .../images/ui-icons_228ef1_256x240.png             |  Bin 0 -> 5355 bytes
 .../images/ui-icons_ef8c08_256x240.png             |  Bin 0 -> 4369 bytes
 .../images/ui-icons_ffd27a_256x240.png             |  Bin 0 -> 4369 bytes
 .../images/ui-icons_ffffff_256x240.png             |  Bin 0 -> 4369 bytes
 .../css/ui-lightness/jquery-ui-1.8.13.custom.css   |  578 +++
 share/lua/http/dialogs/browse                      |   45 -
 share/lua/http/dialogs/browse_window.html          |   46 +
 share/lua/http/dialogs/create_stream.html          |  393 ++
 share/lua/http/dialogs/footer                      |   37 -
 share/lua/http/dialogs/input                       |  231 -
 share/lua/http/dialogs/main                        |  158 -
 share/lua/http/dialogs/mosaic                      |  116 -
 share/lua/http/dialogs/mosaic_window.html          |  145 +
 share/lua/http/dialogs/playlist                    |  106 -
 share/lua/http/dialogs/sout                        |  294 --
 share/lua/http/dialogs/stream_window.html          |   90 +
 share/lua/http/dialogs/vlm                         |  184 -
 share/lua/http/flash.html                          |   48 -
 share/lua/http/iehacks.css                         |   38 -
 share/lua/http/images/Audio-48.png                 |  Bin 0 -> 4757 bytes
 share/lua/http/images/Back-48.png                  |  Bin 0 -> 2135 bytes
 share/lua/http/images/Folder-48.png                |  Bin 0 -> 1488 bytes
 share/lua/http/images/Other-48.png                 |  Bin 0 -> 3002 bytes
 share/lua/http/images/Video-48.png                 |  Bin 0 -> 5357 bytes
 share/lua/http/images/button_eject-48.png          |  Bin 0 -> 1936 bytes
 share/lua/http/images/button_ffw-48.png            |  Bin 0 -> 2100 bytes
 share/lua/http/images/button_first-48.png          |  Bin 0 -> 2036 bytes
 share/lua/http/images/button_full-48.png           |  Bin 0 -> 3022 bytes
 share/lua/http/images/button_help-48.png           |  Bin 0 -> 2180 bytes
 share/lua/http/images/button_last-48.png           |  Bin 0 -> 2018 bytes
 share/lua/http/images/button_pause-48.png          |  Bin 0 -> 1917 bytes
 share/lua/http/images/button_play-48.png           |  Bin 0 -> 1981 bytes
 share/lua/http/images/button_rec-48.png            |  Bin 0 -> 2014 bytes
 share/lua/http/images/button_repeat-48.png         |  Bin 0 -> 2379 bytes
 share/lua/http/images/button_rew-48.png            |  Bin 0 -> 2084 bytes
 share/lua/http/images/button_stop-48.png           |  Bin 0 -> 1717 bytes
 share/lua/http/images/button_stream-48.png         |  Bin 0 -> 2131 bytes
 share/lua/http/images/delete.png                   |  Bin 198 -> 0 bytes
 share/lua/http/images/delete_small.png             |  Bin 165 -> 0 bytes
 share/lua/http/images/eject.png                    |  Bin 155 -> 0 bytes
 share/lua/http/images/empty.png                    |  Bin 178 -> 0 bytes
 share/lua/http/images/fullscreen.png               |  Bin 194 -> 0 bytes
 share/lua/http/images/help.png                     |  Bin 203 -> 0 bytes
 share/lua/http/images/info.png                     |  Bin 229 -> 0 bytes
 share/lua/http/images/loop.png                     |  Bin 173 -> 0 bytes
 share/lua/http/images/minus.png                    |  Bin 204 -> 0 bytes
 share/lua/http/images/next.png                     |  Bin 162 -> 0 bytes
 share/lua/http/images/pause.png                    |  Bin 149 -> 0 bytes
 share/lua/http/images/play.png                     |  Bin 178 -> 0 bytes
 share/lua/http/images/playlist.png                 |  Bin 147 -> 0 bytes
 share/lua/http/images/playlist_small.png           |  Bin 145 -> 0 bytes
 share/lua/http/images/plus.png                     |  Bin 208 -> 0 bytes
 share/lua/http/images/prev.png                     |  Bin 163 -> 0 bytes
 share/lua/http/images/refresh.png                  |  Bin 277 -> 0 bytes
 share/lua/http/images/repeat.png                   |  Bin 179 -> 0 bytes
 share/lua/http/images/reset.png                    |  Bin 215 -> 0 bytes
 share/lua/http/images/sd.png                       |  Bin 194 -> 0 bytes
 share/lua/http/images/shuffle.png                  |  Bin 180 -> 0 bytes
 share/lua/http/images/slider_bar.png               |  Bin 190 -> 0 bytes
 share/lua/http/images/slider_left.png              |  Bin 203 -> 0 bytes
 share/lua/http/images/slider_point.png             |  Bin 237 -> 0 bytes
 share/lua/http/images/slider_right.png             |  Bin 204 -> 0 bytes
 share/lua/http/images/slow.png                     |  Bin 163 -> 0 bytes
 share/lua/http/images/snapshot.png                 |  Bin 270 -> 0 bytes
 share/lua/http/images/sort.png                     |  Bin 182 -> 0 bytes
 share/lua/http/images/sout.png                     |  Bin 172 -> 0 bytes
 share/lua/http/images/speaker-32.png               |  Bin 0 -> 997 bytes
 share/lua/http/images/speaker.png                  |  Bin 269 -> 0 bytes
 share/lua/http/images/speaker_mute.png             |  Bin 446 -> 0 bytes
 share/lua/http/images/stop.png                     |  Bin 146 -> 0 bytes
 share/lua/http/images/vlc16x16.png                 |  Bin 618 -> 0 bytes
 share/lua/http/images/volume_down.png              |  Bin 209 -> 0 bytes
 share/lua/http/images/volume_up.png                |  Bin 225 -> 0 bytes
 share/lua/http/images/white.png                    |  Bin 169 -> 0 bytes
 share/lua/http/images/white_cross_small.png        |  Bin 165 -> 0 bytes
 share/lua/http/index.html                          |  358 ++-
 share/lua/http/js/common.js                        |    9 +
 share/lua/http/js/controlers.js                    |  296 ++
 share/lua/http/js/functions.js                     | 1219 ------
 share/lua/http/js/jquery.jstree.js                 | 4544 ++++++++++++++++++++
 share/lua/http/js/mosaic.js                        |  333 --
 share/lua/http/js/vlm.js                           |  755 ----
 share/lua/http/mosaic.html                         |   51 -
 share/lua/http/requests/README.txt                 |    9 -
 share/lua/http/requests/playlist.xml               |   21 +-
 share/lua/http/requests/status.xml                 |   15 -
 share/lua/http/requests/vlm.xml                    |    2 +-
 share/lua/http/style.css                           |  261 --
 share/lua/http/view.html                           |   89 +
 share/lua/http/vlm.html                            |   48 -
 share/lua/http/vlm_export.html                     |   12 -
 102 files changed, 6632 insertions(+), 4018 deletions(-)
 create mode 100644 share/lua/http/css/main.css
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-icons_222222_256x240.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-icons_228ef1_256x240.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
 create mode 100644 share/lua/http/css/ui-lightness/images/ui-icons_ffffff_256x240.png
 create mode 100644 share/lua/http/css/ui-lightness/jquery-ui-1.8.13.custom.css
 delete mode 100644 share/lua/http/dialogs/browse
 create mode 100644 share/lua/http/dialogs/browse_window.html
 create mode 100644 share/lua/http/dialogs/create_stream.html
 delete mode 100644 share/lua/http/dialogs/footer
 delete mode 100644 share/lua/http/dialogs/input
 delete mode 100644 share/lua/http/dialogs/main
 delete mode 100644 share/lua/http/dialogs/mosaic
 create mode 100644 share/lua/http/dialogs/mosaic_window.html
 delete mode 100644 share/lua/http/dialogs/playlist
 delete mode 100644 share/lua/http/dialogs/sout
 create mode 100644 share/lua/http/dialogs/stream_window.html
 delete mode 100644 share/lua/http/dialogs/vlm
 delete mode 100644 share/lua/http/flash.html
 delete mode 100644 share/lua/http/iehacks.css
 create mode 100644 share/lua/http/images/Audio-48.png
 create mode 100644 share/lua/http/images/Back-48.png
 create mode 100644 share/lua/http/images/Folder-48.png
 create mode 100644 share/lua/http/images/Other-48.png
 create mode 100644 share/lua/http/images/Video-48.png
 create mode 100644 share/lua/http/images/button_eject-48.png
 create mode 100644 share/lua/http/images/button_ffw-48.png
 create mode 100644 share/lua/http/images/button_first-48.png
 create mode 100644 share/lua/http/images/button_full-48.png
 create mode 100644 share/lua/http/images/button_help-48.png
 create mode 100644 share/lua/http/images/button_last-48.png
 create mode 100644 share/lua/http/images/button_pause-48.png
 create mode 100644 share/lua/http/images/button_play-48.png
 create mode 100644 share/lua/http/images/button_rec-48.png
 create mode 100644 share/lua/http/images/button_repeat-48.png
 create mode 100644 share/lua/http/images/button_rew-48.png
 create mode 100644 share/lua/http/images/button_stop-48.png
 create mode 100644 share/lua/http/images/button_stream-48.png
 delete mode 100644 share/lua/http/images/delete.png
 delete mode 100644 share/lua/http/images/delete_small.png
 delete mode 100644 share/lua/http/images/eject.png
 delete mode 100644 share/lua/http/images/empty.png
 delete mode 100644 share/lua/http/images/fullscreen.png
 delete mode 100644 share/lua/http/images/help.png
 delete mode 100644 share/lua/http/images/info.png
 delete mode 100644 share/lua/http/images/loop.png
 delete mode 100644 share/lua/http/images/minus.png
 delete mode 100644 share/lua/http/images/next.png
 delete mode 100644 share/lua/http/images/pause.png
 delete mode 100644 share/lua/http/images/play.png
 delete mode 100644 share/lua/http/images/playlist.png
 delete mode 100644 share/lua/http/images/playlist_small.png
 delete mode 100644 share/lua/http/images/plus.png
 delete mode 100644 share/lua/http/images/prev.png
 delete mode 100644 share/lua/http/images/refresh.png
 delete mode 100644 share/lua/http/images/repeat.png
 delete mode 100644 share/lua/http/images/reset.png
 delete mode 100644 share/lua/http/images/sd.png
 delete mode 100644 share/lua/http/images/shuffle.png
 delete mode 100644 share/lua/http/images/slider_bar.png
 delete mode 100644 share/lua/http/images/slider_left.png
 delete mode 100644 share/lua/http/images/slider_point.png
 delete mode 100644 share/lua/http/images/slider_right.png
 delete mode 100644 share/lua/http/images/slow.png
 delete mode 100644 share/lua/http/images/snapshot.png
 delete mode 100644 share/lua/http/images/sort.png
 delete mode 100644 share/lua/http/images/sout.png
 create mode 100644 share/lua/http/images/speaker-32.png
 delete mode 100644 share/lua/http/images/speaker.png
 delete mode 100644 share/lua/http/images/speaker_mute.png
 delete mode 100644 share/lua/http/images/stop.png
 delete mode 100644 share/lua/http/images/vlc16x16.png
 delete mode 100644 share/lua/http/images/volume_down.png
 delete mode 100644 share/lua/http/images/volume_up.png
 delete mode 100644 share/lua/http/images/white.png
 delete mode 100644 share/lua/http/images/white_cross_small.png
 create mode 100644 share/lua/http/js/common.js
 create mode 100644 share/lua/http/js/controlers.js
 delete mode 100644 share/lua/http/js/functions.js
 create mode 100644 share/lua/http/js/jquery.jstree.js
 delete mode 100644 share/lua/http/js/mosaic.js
 delete mode 100644 share/lua/http/js/vlm.js
 delete mode 100644 share/lua/http/mosaic.html
 delete mode 100644 share/lua/http/style.css
 create mode 100644 share/lua/http/view.html
 delete mode 100644 share/lua/http/vlm.html
 delete mode 100644 share/lua/http/vlm_export.html

diff --git a/share/lua/http/css/main.css b/share/lua/http/css/main.css
new file mode 100644
index 0000000..03d99ee
--- /dev/null
+++ b/share/lua/http/css/main.css
@@ -0,0 +1,119 @@
+root { 
+    display: block;
+}
+body{
+}
+#mainContainer{
+	text-align: center;
+	width: 800px;
+}
+#controlContainer{
+	float: left;
+	width: 800px;
+}
+#libraryContainer{
+	width: 300px;
+	float: left;
+}
+#libraryTree{
+	height: 477px;
+	overflow:scroll;
+	white-space: nowrap;
+	text-align: left;
+}
+#viewContainer{
+	width: 500px;
+	float: left;
+}
+#mediaViewer{
+	min-height: 500px;
+}
+#player{
+	height: 500px;
+	width: 500px;
+}
+#seekSlider{
+	width: 90%;
+}
+#volumeSlider{
+	width: 100px;
+	display: inline-block;
+	margin-bottom: 20px;
+}
+#currentVolume{
+	display: inline-block;
+	margin-left: -70px;
+}
+#mediaTitle{
+	text-align: left;
+}
+#currentTime{
+	text-align: left;
+}
+#totalTime{
+	text-align: right;
+}
+#controlButtons{
+	text-align: left;
+}
+.button48{
+	width: 48px;
+	height: 48px;
+	margin: 5px 0px 5px 2px;
+	background: none;
+	border: none;
+	display: inline-block;
+	cursor: pointer;
+}
+.button{
+	cursor: pointer;
+	display: inline-block;
+}
+#buttonOpen{
+	background-image: url("../images/button_eject-48.png");
+}
+#buttonStop{
+	background-image: url("../images/button_stop-48.png");
+}
+#buttonPlay{
+	background-image: url("../images/button_play-48.png") ;
+}
+#buttonPause{
+	background-image: url("../images/button_pause-48.png") ;
+}
+#buttonPrev{
+	background-image: url("../images/button_first-48.png") ;
+}
+#buttonNext{
+	background-image: url("../images/button_last-48.png") ;
+}
+#buttonFull{
+	background-image: url("../images/button_full-48.png") ;
+}
+#buttonSout{
+	background-image: url("../images/button_stream-48.png") ;
+}
+#window_browse ol{
+	list-style-type: none;
+}
+#window_browse ol li{
+	list-style-type: none;
+	float: left;
+	padding: 5px;
+}
+.system_icon{
+	width:80px;
+	text-align:center;
+	vertical-align:top;
+	display: inline-block;
+	cursor: pointer;
+	padding: 2px;
+	border: 1px solid #823D0A;
+	margin: 2px;
+	height: 92px;
+	background-color: #E1E1E1;
+	overflow: hidden;
+}
+#window_create_stream table tr td{
+	font-size: 11px;
+}
\ No newline at end of file
diff --git a/share/lua/http/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png b/share/lua/http/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
new file mode 100644
index 0000000000000000000000000000000000000000..954e22dbd99e8c6dd7091335599abf2d10bf8003
GIT binary patch
literal 260
zcmeAS at N?(olHy`uVBq!ia0vp^8X(NU1|)m_?Z^dEr#)R9Ln2z=UU%d=WFXS=@V?HT
z#xG*`>Yvsgk=}99w^d^D^d*@m74oMo<%#FcopJf?u00-~YVKV2wzrI*_R6;UORMea
zBFVSEnN~eiVA6V&z`E)YLz5Aok^D)In}Yn=OzDpgR5Wv0XfT8pOkmV{sKAJ-PO9#T
zZK}IXj&Q-V!U)!LcB_3K<j6=ku*!%uXjy#leKdQ?`ZvP&RiaPVOzxQ$`O)`M(6sLS
yN%J;Y?DO0<r7?ff#!c6LsA*2U`f2*?C%gsKpMo6zvorv`#o+1c=d#Wzp$Py>0&C*{

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png b/share/lua/http/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
new file mode 100644
index 0000000000000000000000000000000000000000..64ece5707d91a6edf9fad4bfcce0c4dbcafcf58d
GIT binary patch
literal 251
zcmV<X00jSuP)<h;3K|Lk000e1NJLTq001Ze001Zm1^@s6jQ+T70002ONkl<ZScUD^
zT?&IR7(~(AY#^)6!n1<<Vj)fQYm^M-n at 5r1C}@~h2;ohZ7-N3vC*J$+J$LlEJIhL0
z?fU|%;UEDj;@||T;sBg74hkR1O4$<++XU{$LE{Z7;GhCj!9fA2go6yIhJysCh=UWT
ziUV-UI2ia*&y+p!utUI|$6*(^`>bvPcjKS|RKP(6sDcCAB(_QB%0978a<$Ah$!b|E
zwn;|HO0i8cQ<lay$(1s&O|n)t8rvkbvR?jjlN@>j@~)s!ajF0S002ovPDHLkV1oEp
BYH0uf

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png b/share/lua/http/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
new file mode 100644
index 0000000000000000000000000000000000000000..abdc01082bf3534eafecc5819d28c9574d44ea89
GIT binary patch
literal 178
zcmeAS at N?(olHy`uVBq!ia0vp^8bF-F!3HG1q!d*FsY*{5$B>N1x91EQ4=4yQY-ImG
zFPf9b{J;c_6SHRK%WcbN_hZpM=(Ry;4Rxv2@@2Y=$K57eF$X$=!PC{xWt~$(69B)$
BI)4BF

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png b/share/lua/http/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
new file mode 100644
index 0000000000000000000000000000000000000000..9b383f4d2eab09c0f2a739d6b232c32934bc620b
GIT binary patch
literal 104
zcmeAS at N?(olHy`uVBq!ia0vp^j6gJjgAK^akKnour1U*q978O6-yYw{%b*}|_(02F
z at qbE9)0CJMo;*v*PWv`Vh2h6EmG8IS-Cm{3U~`<YvxSSFU3)<QP%DF{tDnm{r-UW|
Dvd<uf

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png b/share/lua/http/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
new file mode 100644
index 0000000000000000000000000000000000000000..a23baad25b1d1ff36e17361eab24271f2e9b7326
GIT binary patch
literal 125
zcmeAS at N?(olHy`uVBq!ia0vp^j6gJjgAK^akKnouq+C2*978O6lYjjF{IFh)jg74>
zFlmZ}YMcJY=eo?o%*@I?2`NblNeMudl#t?<YIry`QK*OGr~otD9plAEGz`5G6d9zp
Wa55e{GUW=;JO)o!KbLh*2~7a@&m@!p

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png b/share/lua/http/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
new file mode 100644
index 0000000000000000000000000000000000000000..42ccba269b6e91bef12ad0fa18be651b5ef0ee68
GIT binary patch
literal 105
zcmeAS at N?(olHy`uVBq!ia0vp^j6gJjgAK^akKnouqzpV=978O6-=0?FV^9z|eBtf=
z|7WztIJ;WT>{+tN>ySr~=F{k$>;_x^_y?afmf9pRKH0)6?eSP?3s5hEr>mdKI;Vst
E0O<Z9>;M1&

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/share/lua/http/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
new file mode 100644
index 0000000000000000000000000000000000000000..39d5824d6af5456f1e89fc7847ea3599ea5fd815
GIT binary patch
literal 3762
zcmb_eYgiKKwx-=Q?P<E4nMM;$eWu2m#PU%`&Ae^LOv^6gctJ3vM8!lUG!aCxQ#0eJ
zq?xIqDJi9<fFp>di0+w!yaC|_1uvA>yaxz|iX3eB<LqajpXblFzRUBi^{w~$)_UKp
zpDz0D*=4#5008Vc>v#HR0ASmSVIKMS&kf`CSAV4g0DJLgPkRO79xj%J<(hH6`bTGj
zrr^$JeiHJI?;s&<5pRw-^kj}=E;X0OX+pgz+f5GVt0NQv_gbu0>-8J+F$O>HpW?Lx
z+YFO`CV&6VV9fsEwG#js0_-|v*!ujZ*M=jfo457?0Do-z<^}+8bI+qk+W~+$zz%Z&
z;L7&@&ns`l8Ofh*Wd<Cp_>U0pO%RP^?Xa_h7I}7K#}4Xt`s%-(m-enaPWX<H>$O&-
zX~a1aOzn?!r?5wJVBNPJ_o8-(9Fz<_c1LYGxUl(E+Wdx?wkNHH2T%eW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Qq8KZ5e*fKEaO{0Ke0s~Qmy6Xh5m%FO!wV}CE%>j#nX%*uiW|{x9q0w

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/share/lua/http/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
new file mode 100644
index 0000000000000000000000000000000000000000..f1273672d253263b7564e9e21d69d7d9d0b337d9
GIT binary patch
literal 90
zcmeAS at N?(olHy`uVBq!ia0vp^j6j^i!3HGVb)pi0l%l7LV~E7m<R2d&AFo$qV`FPm
oboulDzr6KyA+fs7hb{~ZQx+&qVC9&67pR!Q)78&qol`;+0H8b=ng9R*

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png b/share/lua/http/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
new file mode 100644
index 0000000000000000000000000000000000000000..359397acffdd84bd102f0e8a951c9d744f278db5
GIT binary patch
literal 129
zcmeAS at N?(olHy`uVBq!ia0vp^j6j^i!3HGVb)pi0l!vE_V~E7mtNjN#8yp0f)nD%C
z{k^&2ZZH4W#qke67#j$%IepV*`yn{#P|600IVRJjChwXe(ssyZ>xPQ=F85a&M at g_{
d|GeK{$Y5lo%PMu^>wln`44$rjF6*2UngE4^EGqy2

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-icons_222222_256x240.png b/share/lua/http/css/ui-lightness/images/ui-icons_222222_256x240.png
new file mode 100644
index 0000000000000000000000000000000000000000..b273ff111d219c9b9a8b96d57683d0075fb7871a
GIT binary patch
literal 4369
zcmd^?`8O2)_s3^phOrG}UnfiUEn8(9QW1?MNkxXVDEpFin2{xWrLx5kBC;k~Gm<qS
zlCjL7i8RK}U~J#s at 6Y%1S9~7lb?$xLU+y{go_o*h`AV=spXY*!!T<mOmxZ~R9RL9Q
zdj+hrf&W^P#f9C!Zpp^V{;aID?ElVL?Rdohw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;k0WcB_jb;cn%_Idz4HO$QU*abf4}+wi?e96N>fbq{{i|W0@(ln

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-icons_228ef1_256x240.png b/share/lua/http/css/ui-lightness/images/ui-icons_228ef1_256x240.png
new file mode 100644
index 0000000000000000000000000000000000000000..c357355aa7bb9201f3d40b8996449ffa1035dd6a
GIT binary patch
literal 5355
zcmd^@=Q|sY*Ty4}Sg~tUYS%7WTN1nWh*^78OKq`<t!jR2)hMO3XweomBWjnJHB%!-
zQ7UF_etrIq=UnH-=YDtY`_+A&=f;NG)RgR$004mcp^k<r06_8&0ej at 2e^h4}=JQYd
zG1f<F@~0pD|5*f2KH;Bn!$4C*GXN`{G%2}pXWT0ZUZgMF-I1LE2jx*_R at 2eFZ6hdU
zDwZId6x025aI{}ugR`S0qNcGTt?J_!;j0pUA|(WvQSO}crp{}rSWDGAD$B!TLgxwq
zV03t>fk1{7{jsBR!8g%E26b)T=a*gPb38^(ip_l%42LO-Kay$NnyB5rx+#%a at xu}T
znLj3VQ;l-pbRYVX?gHpY6Ie+DOVqAdirXmAkq<y23eOt at pk~i<)d!}m2AbE|_g6Wy
zS0<*{OqJ;wP1r_iwSMuy%#JTIz7vad+*w5hTS8BY1DDJ+#kKdBPc!AWRksn9h0o at y
zT~jK~c4&B_Z1{G6b&v$mElkxt7!}$Xt9LgntcoxFAx!<LG=@`3pt*<7Us%J6(MpfG
z(j-p*i at k0k=#~gugI*2^wg;T{{Zkk+|1+Yip}uJ=>L%1x9Lc5s#O;v9tj0`O5B<A0
znUg(RnP+?3Ipz{yG(EhkDPY(-vM^{CH6!8BeBd(6--$CZcUBQq|8&2OtaeA0&QiSX
zgUx$+HFlk`dCt_7**sDHDB`W^{+d>xsN37Ly$`Hs3L*-9H*C7>BI_0!=OqN6!<>=T
z{sF%{c&kL*^y!nEkzq<~^_)*l_X?`gG|DVL1*}u?Ab80E)kW>XWj+*pKQ}ZF9>sQI
zI#bP^hT|KD=ql{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))1HMlh at q0Crs4;LDGdE2P_nOtM#Vg+uWzKOP
z0lw8qvf<gC9tVL1&~252tv<<*3Twh}R&{v7G6go?+Mur4(;dq<D}Kv=7~ZX3`2C}+
zJbC7tlQuBv7QDJIRk;*E^Amgu-&$;gYxTwT$3?-s=5Stw{=}b>9}0uLvXH>ziEsKj
z%p4Q_iKZCu{eG?Xvac^KS)6|@Ap~AjzdU?+ at _43-z&Wz at t>bOiJD~#^1yh{;?-K)4
zl1+<G2h(q!12EHA^SPj{a&_vx- at T&qzow*0pA4wH8?ZKGV`D2JKaE7+IcMI&<2Hka
z at VU2vowR!-Vwo0_YHjzAic{*o5yhyBm<RW0B`(!JN04+7{LiuzE*eI at EzE3!GTWLc
zZ0waTCZv49f~zk*cvm3%T^X=}46ILVu3VIl*Ec5;Ux=7ji@$?;0l{g0bW}@+oZR+9
z13Jv(D!uI!aQTEJaZ^;=;h9?9qs68p^1Tay`q9+a|E~W&H49rfXsVErmWDV6_APFf
zCl%F9ZYiE#9K^pK4QIM_1*AJ_!LDjEW7Ubke?~6gH{qJ;lnJbgoFCb3C)cO0-rE<g
zPyi?|>0lxNC489zS`w|+f$(v-+~vem!uwgWuah6ap;vZ1CRZ7aU at xj5z`HYdPNi$w
Y^OOM2(oM+v|NSx_Y8q<PsyW8~52 at io)c^nh

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-icons_ef8c08_256x240.png b/share/lua/http/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
new file mode 100644
index 0000000000000000000000000000000000000000..85e63e9f604ce042d59eb06a8428eeb7cb7896c9
GIT binary patch
literal 4369
zcmd^?`8O2)_s3^phOrG}UnfiUEn8(9QW1?MNkxXVDEpFin2{xWrLx5kBC;k~Gm<qS
zlCjL7i8RK}U~J#s at 6Y%1S9~7lb?$xLU+y{go_o*h`AV=spXY*!!T<mOmxZ~R9RL9Q
zdj+hrf&W^P#f9C!Zpp^V{wzI}^MB`Dm+sH{TR1w<4t)tA3_robX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mdpqYz&F>xK-uVD=DT5%Jzh8ZT#aXmjr70%*{{RacS`YvL

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-icons_ffd27a_256x240.png b/share/lua/http/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
new file mode 100644
index 0000000000000000000000000000000000000000..e117effa3dca24e7978cfc5f8b967f661e81044f
GIT binary patch
literal 4369
zcmd^?`8O2)_s3 at pGmLE*`#M>&Z`mr_kcwz5Nh&g=McJ3E!;CE1E0ryV5Ro;>nvtvt
zk&I==Xd;cVGZ@>q_xtnx{1u<ad7XP-_m_Llz31NZdcG2EQRlg#Vo(48z-?(^ZVvze
z|6T#B?4ZAvXnA4xuUoRUb~w8~68XP#e)ZtVe+x$i*`qE2L|`Xa*=^e&W~<9M_#tnj
z#rVH+Aq<7gEG|f0JFaQ38mE(h>%7-D)N|5YqOB>i;(bZ#o62{J2Y9&^D3~R^$o+X?
zwbxAEIb)xwCwK3TSR4QVym6N1rVgPmmt0caryBUceHP_&u}{?^Jn7f0PT$#h>UDqI
zr!q(F&1jJ2_!jxdAB<)7H$foI*2zuncvu;;$SoU7br=AiJ at 4=BC4vNO>DS`&UIB=K
z;2)0F*t^FBvVfPuT4FVMSwUw%Xksjyl+;#*DDy%=ocFOyzDLvLR(`zCSOuJ=?FWYn
z5ZD!UaoF>-$@=Vt?a&;UQYM$Oqe0ZB?Je?8ZnMxDe&uzzs*zlHd<n!{fcOy-3tIxc
zl9G6fU;?@>)V58nfJPc8S^({_4bj5HQ_B&EXHWj6wx at B;!mr04b_Mx)UFL)W7`V!c
zpMp#C!a!!sh3h491y}^qfimXVY%!+sYu0_D<P=jc<5*#|6V<{WZGN`6N7;T5 at B&-O
z4YA;LJcgH_nB=Dd<6apIuYX_dSRS2~d9}u*0 at tAvp3;xIUD`Q4{vSHeBHLl#uuj<i
zdw9AoFJd!YY?C9=-W}2;fmD2UGG|&~>WoJMqpN(FR9LM#jdZ{vJzEck`P^9(1N=4J
za9%u4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{0^(!mfiA)^ZEJ=-!!ZelcyN~EF8Mbb)i9e
z^>G#?%U3)bq-uj?@@vj~6tq)ZS||Jxz`+di-M5<Fie`muWl)A7tfzIyIhd%F5PQPh
zAxf8Mxy}evu=*ltf~ji)pFWl7J=6W8EwxIyv~~%3n}ob~`BbWRLfvBgNJYQsf8eXf
zb*A=3 at G_1-qwA7#fS;_y%uEbp$>SXM=h3EL`?pB>W9A;`V2vM)vk&%KFy|TAh#AQA
zb_?<!HTqYNzP6jrw?H&O`OC+In}z5{pe1eS^Wk6)mYv;?7a6{vK#gr5`lD#T2VpIk
zLT|ynkZ?ny{+8hL6(4EaQ#%3OSMDDzt>J==3f@%LL{`vU$3Z at A2a9C3aC-YY43dR>
pI7J0n@;b3~`)ubvsr|iU(l;L{A#E6J`}eC4usn-0uQEf&{2ws1m(l<L

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/images/ui-icons_ffffff_256x240.png b/share/lua/http/css/ui-lightness/images/ui-icons_ffffff_256x240.png
new file mode 100644
index 0000000000000000000000000000000000000000..42f8f992c727ddaa617da224a522e463df690387
GIT binary patch
literal 4369
zcmd^?`8O2)_s3^p#%>t<I$5%B*(%$RifAlJDl()+*_W)tj4atJl`V!4ku}Mhk*o=k
zjAh1XB8{;#7~8k^`}6($6`#j>oqJ#RmwV2==ic*rz7lOw=eaq=H~;_ux21)-Jpcgw
zdj+hrf&W^f<%Qk9Zpqf#;q3n5{{POY;f!wmTR1An9(4&I0z1LNX50QSTV2M%4|y9c
z#{ZQIVJKu~aY5?ZaZP*GIGqGs=e at q6o|EPhZB3CC?@LnORK8O at z{{<0KtSn5?#~OW
zy=L;x8T&*%xqElS;s5~Pjk7d2bqIaA<dW(>)xZbovnZd7eX17WNxx=w`p(8vulwUZ
zl{so}MuRNJx5!8S5G;$o2?BApPHt+)!^#*Ww`?rcVE}mcyuY`X2o|uVUyI9o1t11O
zemGWR?;aD#0$vJhiPhv~0iXS#iLq!>Qd<?G%nJo^-p4Na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OPm!2*v85$2i
z15p4UjH=DV!<+L-y~sIS7&k+wwQ at 3eBlD0ewG{0*l>rTb0T~tFl4Q3J!flauS==b&
z6B<Vc5wD$nmC_i`0E<AeD?2H<QEoWxP-{X6_i15QJF-Cv-N-NLN9%$|5L;=d6lmF5
z;UuK7x%Cq%N?T&~lD+MeWZ|S<_sZ68ShNa0XXqal>m<Ivi+wgAY*(pVJxOj3;P^Mp
z{Py4Q&hV_4XtqYN^W_`w+k)rhb~b?0`@olx-tL`?jy^9&Cf7sqxSSo^=A<Kc6UYof
z^DkeMP>!g%dDvlCf(St$kVofvH90|9yl-gmvRvcKS&Ye9DdoTK at 2m}iSvC{3m%4E0
z at TJD7c1V?!URM7+t?f3)%{X(6JXg~A9TvGQyX6n(^Yt0NX;>vDPcr~mICPooLWA_`
z<1A>FuXr|C)dtDr*PQt%Xs5WePWUB&gBj$zZ#BIY%?jDdpbSA-PV0`dGf^oa_Jp}Z
zlrGV7oe`#B^+nPIQ`ZDJeJas=ru#=*YL#+n?Go}f33>1GsZ{TTy2bdBihj}mz*mp!
zOzn%{WgLM=*CpiuKUs*GnHa{B$2siJqfNi|Z;|rH%stM*8b26kAMCYY&NHwPGtlYn
z7UVx_^sgR$Z8x27foS63FCP<b7NQ at 4m$W&a4+pb at c6L8rWcYppH@1D~kD>t|gtcG_
zy#@C|!VQV~TY}G5e57qp?F4jRxqq~@h6^?-cvD>ySwVLl2m7=gERtEn>Fw_ at ND%pO
oiVC*mbz<%I+0K1Z`+LWvZ$3~$+A!Gm?^hpSc@||}WrmLVKLvuzv;Y7A

literal 0
HcmV?d00001

diff --git a/share/lua/http/css/ui-lightness/jquery-ui-1.8.13.custom.css b/share/lua/http/css/ui-lightness/jquery-ui-1.8.13.custom.css
new file mode 100644
index 0000000..4c33c4c
--- /dev/null
+++ b/share/lua/http/css/ui-lightness/jquery-ui-1.8.13.custom.css
@@ -0,0 +1,578 @@
+/*
+ * jQuery UI CSS Framework 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ */
+
+/* Layout helpers
+----------------------------------*/
+.ui-helper-hidden { display: none; }
+.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
+.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
+.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+.ui-helper-clearfix { display: inline-block; }
+/* required comment for clearfix to work in Opera \*/
+* html .ui-helper-clearfix { height:1%; }
+.ui-helper-clearfix { display:block; }
+/* end clearfix */
+.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
+
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-disabled { cursor: default !important; }
+
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Overlays */
+.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
+
+
+/*
+ * jQuery UI CSS Framework 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ *
+ */
+
+
+/* Component containers
+----------------------------------*/
+.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
+.ui-widget .ui-widget { font-size: 1em; }
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
+.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; }
+.ui-widget-content a { color: #333333; }
+.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
+.ui-widget-header a { color: #ffffff; }
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; }
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; }
+.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; }
+.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; }
+.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; }
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; }
+.ui-widget :active { outline: none; }
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight  {border: 1px solid #fed22f; background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; }
+.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
+.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; }
+.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
+.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
+.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
+.ui-priority-secondary, .ui-widget-content .ui-priority-secondary,  .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
+.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
+.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
+.ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
+.ui-state-default .ui-icon { background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-active .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); }
+.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); }
+
+/* positioning */
+.ui-icon-carat-1-n { background-position: 0 0; }
+.ui-icon-carat-1-ne { background-position: -16px 0; }
+.ui-icon-carat-1-e { background-position: -32px 0; }
+.ui-icon-carat-1-se { background-position: -48px 0; }
+.ui-icon-carat-1-s { background-position: -64px 0; }
+.ui-icon-carat-1-sw { background-position: -80px 0; }
+.ui-icon-carat-1-w { background-position: -96px 0; }
+.ui-icon-carat-1-nw { background-position: -112px 0; }
+.ui-icon-carat-2-n-s { background-position: -128px 0; }
+.ui-icon-carat-2-e-w { background-position: -144px 0; }
+.ui-icon-triangle-1-n { background-position: 0 -16px; }
+.ui-icon-triangle-1-ne { background-position: -16px -16px; }
+.ui-icon-triangle-1-e { background-position: -32px -16px; }
+.ui-icon-triangle-1-se { background-position: -48px -16px; }
+.ui-icon-triangle-1-s { background-position: -64px -16px; }
+.ui-icon-triangle-1-sw { background-position: -80px -16px; }
+.ui-icon-triangle-1-w { background-position: -96px -16px; }
+.ui-icon-triangle-1-nw { background-position: -112px -16px; }
+.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
+.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
+.ui-icon-arrow-1-n { background-position: 0 -32px; }
+.ui-icon-arrow-1-ne { background-position: -16px -32px; }
+.ui-icon-arrow-1-e { background-position: -32px -32px; }
+.ui-icon-arrow-1-se { background-position: -48px -32px; }
+.ui-icon-arrow-1-s { background-position: -64px -32px; }
+.ui-icon-arrow-1-sw { background-position: -80px -32px; }
+.ui-icon-arrow-1-w { background-position: -96px -32px; }
+.ui-icon-arrow-1-nw { background-position: -112px -32px; }
+.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
+.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
+.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
+.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
+.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
+.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
+.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
+.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
+.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
+.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
+.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
+.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
+.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
+.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
+.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
+.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
+.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
+.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
+.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
+.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
+.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
+.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
+.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
+.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
+.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
+.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
+.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
+.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
+.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
+.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
+.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
+.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
+.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
+.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
+.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
+.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
+.ui-icon-arrow-4 { background-position: 0 -80px; }
+.ui-icon-arrow-4-diag { background-position: -16px -80px; }
+.ui-icon-extlink { background-position: -32px -80px; }
+.ui-icon-newwin { background-position: -48px -80px; }
+.ui-icon-refresh { background-position: -64px -80px; }
+.ui-icon-shuffle { background-position: -80px -80px; }
+.ui-icon-transfer-e-w { background-position: -96px -80px; }
+.ui-icon-transferthick-e-w { background-position: -112px -80px; }
+.ui-icon-folder-collapsed { background-position: 0 -96px; }
+.ui-icon-folder-open { background-position: -16px -96px; }
+.ui-icon-document { background-position: -32px -96px; }
+.ui-icon-document-b { background-position: -48px -96px; }
+.ui-icon-note { background-position: -64px -96px; }
+.ui-icon-mail-closed { background-position: -80px -96px; }
+.ui-icon-mail-open { background-position: -96px -96px; }
+.ui-icon-suitcase { background-position: -112px -96px; }
+.ui-icon-comment { background-position: -128px -96px; }
+.ui-icon-person { background-position: -144px -96px; }
+.ui-icon-print { background-position: -160px -96px; }
+.ui-icon-trash { background-position: -176px -96px; }
+.ui-icon-locked { background-position: -192px -96px; }
+.ui-icon-unlocked { background-position: -208px -96px; }
+.ui-icon-bookmark { background-position: -224px -96px; }
+.ui-icon-tag { background-position: -240px -96px; }
+.ui-icon-home { background-position: 0 -112px; }
+.ui-icon-flag { background-position: -16px -112px; }
+.ui-icon-calendar { background-position: -32px -112px; }
+.ui-icon-cart { background-position: -48px -112px; }
+.ui-icon-pencil { background-position: -64px -112px; }
+.ui-icon-clock { background-position: -80px -112px; }
+.ui-icon-disk { background-position: -96px -112px; }
+.ui-icon-calculator { background-position: -112px -112px; }
+.ui-icon-zoomin { background-position: -128px -112px; }
+.ui-icon-zoomout { background-position: -144px -112px; }
+.ui-icon-search { background-position: -160px -112px; }
+.ui-icon-wrench { background-position: -176px -112px; }
+.ui-icon-gear { background-position: -192px -112px; }
+.ui-icon-heart { background-position: -208px -112px; }
+.ui-icon-star { background-position: -224px -112px; }
+.ui-icon-link { background-position: -240px -112px; }
+.ui-icon-cancel { background-position: 0 -128px; }
+.ui-icon-plus { background-position: -16px -128px; }
+.ui-icon-plusthick { background-position: -32px -128px; }
+.ui-icon-minus { background-position: -48px -128px; }
+.ui-icon-minusthick { background-position: -64px -128px; }
+.ui-icon-close { background-position: -80px -128px; }
+.ui-icon-closethick { background-position: -96px -128px; }
+.ui-icon-key { background-position: -112px -128px; }
+.ui-icon-lightbulb { background-position: -128px -128px; }
+.ui-icon-scissors { background-position: -144px -128px; }
+.ui-icon-clipboard { background-position: -160px -128px; }
+.ui-icon-copy { background-position: -176px -128px; }
+.ui-icon-contact { background-position: -192px -128px; }
+.ui-icon-image { background-position: -208px -128px; }
+.ui-icon-video { background-position: -224px -128px; }
+.ui-icon-script { background-position: -240px -128px; }
+.ui-icon-alert { background-position: 0 -144px; }
+.ui-icon-info { background-position: -16px -144px; }
+.ui-icon-notice { background-position: -32px -144px; }
+.ui-icon-help { background-position: -48px -144px; }
+.ui-icon-check { background-position: -64px -144px; }
+.ui-icon-bullet { background-position: -80px -144px; }
+.ui-icon-radio-off { background-position: -96px -144px; }
+.ui-icon-radio-on { background-position: -112px -144px; }
+.ui-icon-pin-w { background-position: -128px -144px; }
+.ui-icon-pin-s { background-position: -144px -144px; }
+.ui-icon-play { background-position: 0 -160px; }
+.ui-icon-pause { background-position: -16px -160px; }
+.ui-icon-seek-next { background-position: -32px -160px; }
+.ui-icon-seek-prev { background-position: -48px -160px; }
+.ui-icon-seek-end { background-position: -64px -160px; }
+.ui-icon-seek-start { background-position: -80px -160px; }
+/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
+.ui-icon-seek-first { background-position: -80px -160px; }
+.ui-icon-stop { background-position: -96px -160px; }
+.ui-icon-eject { background-position: -112px -160px; }
+.ui-icon-volume-off { background-position: -128px -160px; }
+.ui-icon-volume-on { background-position: -144px -160px; }
+.ui-icon-power { background-position: 0 -176px; }
+.ui-icon-signal-diag { background-position: -16px -176px; }
+.ui-icon-signal { background-position: -32px -176px; }
+.ui-icon-battery-0 { background-position: -48px -176px; }
+.ui-icon-battery-1 { background-position: -64px -176px; }
+.ui-icon-battery-2 { background-position: -80px -176px; }
+.ui-icon-battery-3 { background-position: -96px -176px; }
+.ui-icon-circle-plus { background-position: 0 -192px; }
+.ui-icon-circle-minus { background-position: -16px -192px; }
+.ui-icon-circle-close { background-position: -32px -192px; }
+.ui-icon-circle-triangle-e { background-position: -48px -192px; }
+.ui-icon-circle-triangle-s { background-position: -64px -192px; }
+.ui-icon-circle-triangle-w { background-position: -80px -192px; }
+.ui-icon-circle-triangle-n { background-position: -96px -192px; }
+.ui-icon-circle-arrow-e { background-position: -112px -192px; }
+.ui-icon-circle-arrow-s { background-position: -128px -192px; }
+.ui-icon-circle-arrow-w { background-position: -144px -192px; }
+.ui-icon-circle-arrow-n { background-position: -160px -192px; }
+.ui-icon-circle-zoomin { background-position: -176px -192px; }
+.ui-icon-circle-zoomout { background-position: -192px -192px; }
+.ui-icon-circle-check { background-position: -208px -192px; }
+.ui-icon-circlesmall-plus { background-position: 0 -208px; }
+.ui-icon-circlesmall-minus { background-position: -16px -208px; }
+.ui-icon-circlesmall-close { background-position: -32px -208px; }
+.ui-icon-squaresmall-plus { background-position: -48px -208px; }
+.ui-icon-squaresmall-minus { background-position: -64px -208px; }
+.ui-icon-squaresmall-close { background-position: -80px -208px; }
+.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
+.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
+.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
+.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
+.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
+.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Corner radius */
+.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; }
+.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
+.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
+.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
+.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
+.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
+.ui-corner-right {  -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
+.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
+.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }
+
+/* Overlays */
+.ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
+.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/*
+ * jQuery UI Resizable 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Resizable#theming
+ */
+.ui-resizable { position: relative;}
+.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;
+	/* http://bugs.jqueryui.com/ticket/7233
+	 - Resizable: resizable handles fail to work in IE if transparent and content overlaps
+	*/
+	background-image:url(data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=);
+}
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
+ * jQuery UI Selectable 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Selectable#theming
+ */
+.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
+/*
+ * jQuery UI Accordion 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion#theming
+ */
+/* IE/Win - Fix animation bug - #4615 */
+.ui-accordion { width: 100%; }
+.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
+.ui-accordion .ui-accordion-li-fix { display: inline; }
+.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
+.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
+.ui-accordion .ui-accordion-content-active { display: block; }
+/*
+ * jQuery UI Autocomplete 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete#theming
+ */
+.ui-autocomplete { position: absolute; cursor: default; }	
+
+/* workarounds */
+* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
+
+/*
+ * jQuery UI Menu 1.8.13
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Menu#theming
+ */
+.ui-menu {
+	list-style:none;
+	padding: 2px;
+	margin: 0;
+	display:block;
+	float: left;
+}
+.ui-menu .ui-menu {
+	margin-top: -3px;
+}
+.ui-menu .ui-menu-item {
+	margin:0;
+	padding: 0;
+	zoom: 1;
+	float: left;
+	clear: left;
+	width: 100%;
+}
+.ui-menu .ui-menu-item a {
+	text-decoration:none;
+	display:block;
+	padding:.2em .4em;
+	line-height:1.5;
+	zoom:1;
+}
+.ui-menu .ui-menu-item a.ui-state-hover,
+.ui-menu .ui-menu-item a.ui-state-active {
+	font-weight: normal;
+	margin: -1px;
+}
+/*
+ * jQuery UI Button 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button#theming
+ */
+.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
+.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
+button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
+.ui-button-icons-only { width: 3.4em; } 
+button.ui-button-icons-only { width: 3.7em; } 
+
+/*button text element */
+.ui-button .ui-button-text { display: block; line-height: 1.4;  }
+.ui-button-text-only .ui-button-text { padding: .4em 1em; }
+.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
+.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
+.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
+.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
+/* no icon support for input elements, provide padding by default */
+input.ui-button { padding: .4em 1em; }
+
+/*button icon element(s) */
+.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
+.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
+.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
+.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+
+/*button sets*/
+.ui-buttonset { margin-right: 7px; }
+.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
+
+/* workarounds */
+button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
+/*
+ * jQuery UI Dialog 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Dialog#theming
+ */
+.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
+.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative;  }
+.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } 
+.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
+.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
+.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
+.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
+.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
+.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
+.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
+.ui-draggable .ui-dialog-titlebar { cursor: move; }
+/*
+ * jQuery UI Slider 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider#theming
+ */
+.ui-slider { position: relative; text-align: left; }
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
+
+.ui-slider-horizontal { height: .8em; }
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
+
+.ui-slider-vertical { width: .8em; height: 100px; }
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
+.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
+ * jQuery UI Tabs 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs#theming
+ */
+.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
+.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
+.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
+.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
+.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
+.ui-tabs .ui-tabs-hide { display: none !important; }
+/*
+ * jQuery UI Datepicker 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Datepicker#theming
+ */
+.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
+.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
+.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
+.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
+.ui-datepicker .ui-datepicker-prev { left:2px; }
+.ui-datepicker .ui-datepicker-next { right:2px; }
+.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
+.ui-datepicker .ui-datepicker-next-hover { right:1px; }
+.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;  }
+.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
+.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
+.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
+.ui-datepicker select.ui-datepicker-month, 
+.ui-datepicker select.ui-datepicker-year { width: 49%;}
+.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
+.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0;  }
+.ui-datepicker td { border: 0; padding: 1px; }
+.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
+.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
+.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
+.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
+
+/* with multiple calendars */
+.ui-datepicker.ui-datepicker-multi { width:auto; }
+.ui-datepicker-multi .ui-datepicker-group { float:left; }
+.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
+.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
+.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
+.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
+.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
+.ui-datepicker-row-break { clear:both; width:100%; }
+
+/* RTL support */
+.ui-datepicker-rtl { direction: rtl; }
+.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+
+/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
+.ui-datepicker-cover {
+    display: none; /*sorry for IE5*/
+    display/**/: block; /*sorry for IE5*/
+    position: absolute; /*must have*/
+    z-index: -1; /*must have*/
+    filter: mask(); /*must have*/
+    top: -4px; /*must have*/
+    left: -4px; /*must have*/
+    width: 200px; /*must have*/
+    height: 200px; /*must have*/
+}/*
+ * jQuery UI Progressbar 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Progressbar#theming
+ */
+.ui-progressbar { height:2em; text-align: left; }
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
\ No newline at end of file
diff --git a/share/lua/http/dialogs/browse b/share/lua/http/dialogs/browse
deleted file mode 100644
index 35377f7..0000000
--- a/share/lua/http/dialogs/browse
+++ /dev/null
@@ -1,45 +0,0 @@
-<?vlc --[[
-vim:syntax=html
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  browse: VLC media player web interface - remote file browse dialog
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-This dialog needs the following dialogs to be fully functional: <none>
-]]?>
-
-<div id="browse" class="popup" style="display: none;">
-  <div class="title">
-    Browse
-    <img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('browse');"/>
-  </div>
-  <div id="browser">
-    <a href="javascript:browse_dir(document.getElementById( 'browse_lastdir' ).value);">Click here to browse</a>
-    ( or <a href="javascript:browse_dir('');">here</a> if it doesn't work )
-  </div>
-  <div class="controls">
-    <button id="btn_browse_close" onclick="hide('browse');">
-      Close
-    </button>
-    <input type="hidden" id="browse_lastdir" value="~" />
-    <input type="hidden" id="browse_dest" value="" />
-  </div>
-</div>
diff --git a/share/lua/http/dialogs/browse_window.html b/share/lua/http/dialogs/browse_window.html
new file mode 100644
index 0000000..2eddcc1
--- /dev/null
+++ b/share/lua/http/dialogs/browse_window.html
@@ -0,0 +1,46 @@
+<script language="javascript" type="text/javascript">
+	var video_types			=	new Array('avi','mp4','wmv','mov','swf','vob','mkv','mpg');
+	var audio_types			=	new Array('mp3','wav');
+	var browse_target		=	'default';
+	function createElementLi(name,type,dir,ext){
+		var icon	=	type=="dir" && name=='..' ? 'Back-48.png' : (type=='dir' ? "Folder-48.png" : ($.inArray(ext,video_types)!=-1 ? "Video-48.png" : ($.inArray(ext,audio_types)!=-1 ? "Audio-48.png" : "Other-48.png")));
+		var open	=	type=="dir" ? "opendir='"+dir+"'" : (type=="file" ? "openfile='"+dir+"'" : "opendev='"+dir+"'");
+		var str		=	"<li class='system_icon ui-widget-content' "+open+" ><img src='images/"+icon+"' width='48px' height='48px' title='"+name+"' alt='"+name+"' style='border: none;background:none;'/><div style='font-size:10px;border:none;background:none;'>"+name+"</div></li>";
+		return str;
+	}
+	$(function(){
+		$('#window_browse').dialog({
+			autoOpen: false,
+			width: 600,
+			modal: true,
+			position: ['left','top'],
+			buttons: {
+				"Open":function(){
+					$('li.ui-selected','#browse_elements').each(function(){
+						$(this).dblclick();
+					});
+				},
+				"Enqueue": function() {
+					$('li.ui-selected','#browse_elements').each(function(){
+						var path	=	this.getAttribute('opendir') ? this.getAttribute('opendir') : this.getAttribute('openfile');
+						switch(browse_target){
+							default:
+								sendCommand('command=in_enqueue&input='+encodeURI(path));
+								break;
+						}
+					});
+					$(this).dialog("close");
+				},
+				"Cancel" : function(){
+					$(this).dialog("close")
+				}
+			}
+		});
+	});
+</script>
+
+<div id="window_browse" title="Media Browser">
+	<ol id='browse_elements' selectable="selectable">
+		<li>Play List</li>
+	</ol>
+</div>
\ No newline at end of file
diff --git a/share/lua/http/dialogs/create_stream.html b/share/lua/http/dialogs/create_stream.html
new file mode 100644
index 0000000..614284a
--- /dev/null
+++ b/share/lua/http/dialogs/create_stream.html
@@ -0,0 +1,393 @@
+<script language="javascript" type="text/javascript">
+	$(function(){
+		$('#stream_out_method').change(function(){
+			$('#output_options').empty();
+			switch($(this).val()){
+				case 'file':
+					var options	=	$('#file_options').clone();
+					break;
+				case 'http':
+					var options	=	$('#net_options').clone();
+					break;
+				case 'mmsh':
+				case 'rtp':
+				case 'udp':
+					var options	=	$('#net_options').clone();
+					$('#stream_out_file_',options).val('');
+					break;
+			}
+			$('[id]',options).each(function(){
+				$(this).attr('id',$(this).attr('id').substr(0,$(this).attr('id').length-1));
+				$(this).attr('name',$(this).attr('name').substr(0,$(this).attr('name').length-1));
+			});
+			$(options).css({
+				'visibility':'visible',
+				'display':'block'
+			})
+			$(options).appendTo('#output_options');
+		});
+		$('#stream_out_mux').change(function(){
+			if($(this).val()=='ffmpeg'){
+				$('#stream_out_mux_opts').val('{mux=flv}');
+			}else{
+				$('#stream_out_mux_opts').val('');
+			}
+		});
+		$('#window_create_stream').dialog({
+			autoOpen: false,
+			width:800,
+			modal: true,
+			position: ['left','top'],
+			buttons:{
+				"Create":function(){
+					var e	=	false;
+					$('input',$(this)).removeClass('ui-state-error');
+					$('#stream_error_container').css({
+						'visibility':'hidden',
+						'display':'none'
+					});
+					if(!$('#stream_name').val()){
+						$('#stream_name').addClass('ui-state-error');
+						e	=	true;
+					}
+					if(!$('#stream_input').val()){
+						$('#stream_input').addClass('ui-state-error');
+						e	=	true;
+					}
+
+					if($('#stream_out_method').val()!='file' && !$('#stream_out_port').val()){
+						$('#stream_out_port').addClass('ui-state-error');
+						e	=	true;
+					}
+					if($('#stream_out_method').val()!='file' && !$('#stream_out_dest').val()){
+						$('#stream_out_dest').addClass('ui-state-error');
+						e	=	true;
+					}
+
+					if($('#stream_out_method').val()=='file' && !$('#stream_out_filename').val()){
+						$('#stream_out_filename').addClass('ui-state-error');
+						e	=	true;
+					}
+					if(e){
+						$('#stream_error_message').empty();
+						$('#stream_error_message').append('One or more fields require attention.');
+						$('#stream_error_container').css({
+							'visibility':'visible',
+							'display':'block'
+						})
+					}else{
+						sendVLMCmd(buildStreamCode());
+						$(this).dialog('close');
+					}
+				},
+				"Cancel":function(){
+					$(this).dialog('close');
+				}
+			}
+		});
+		$('#button_input').click(function(){
+			browse_target	=	'#stream_input';
+			browse();
+			$('#window_browse').dialog('open');
+		});
+		$('#button_in_screen').click(function(){
+			$('#stream_input').val('screen://');
+		});
+	});
+	function buildStreamCode(){
+		var name		=	$('#stream_name').val().replace(' ','_');
+		var infile		=	$('#stream_input').val();
+
+		var vcodec		=	$('#stream_vcodec').val();
+		var vb			=	$('#stream_vb').val();
+		var fps			=	$('#stream_fps').val();
+		var scale		=	$('#stream_scale').val();
+		var dlace		=	$('#stream_deinterlace').is(':checked');
+
+		var acodec		=	$('#stream_acodec').val();
+		var ab			=	$('#stream_ab').val();
+		var srate		=	$('#stream_samplerate').val();
+		var channels	=	$('#stream_channels').val();
+
+		var scodec		=	$('#stream_scodec').val() && !$('#stream_soverlay').checked ? ','+$('#stream_scodec').val() : '';
+		var soverlay	=	$('#stream_soverlay').is(':checked') ? ',soverlay' : '';
+
+		var outmethod	=	$('#stream_out_method').val();
+		var mux			=	$('#stream_out_mux').val();
+		var muxoptions	=	$('#stream_out_mux_opts').val() ? '{'+$('#stream_out_mux_opts').val()+'}' : '';
+
+		if(outmethod=='file'){
+			var filename	=	$('#stream_out_filename').val();
+		}else{
+			var outport		=	$('#stream_out_port').val();
+			var outdest		=	$('#stream_out_dest').val();
+			var outfile		=	$('#stream_out_file').val();
+		}
+		var dest		=	outmethod=='file' ? filename : (outfile ? outdest+':'+outport+'/'+outfile : outdest+':'+outport);
+		var inCode		=	'new '+name+' broadcast enabled input "'+infile+'" ';
+		var transCode	=	'output #transcode{vcodec='+vcodec+',vb='+vb+',fps='+fps+',scale='+scale+',acodec='+acodec+',ab='+ab+',samplerate='+srate+',channels='+channels+scodec+soverlay+'}';
+		var outCode		=	':std{access='+outmethod+',mux='+mux+muxoptions+',dst='+dest+'}';
+
+		return inCode+transCode+outCode;
+	}
+</script>
+<div id="window_create_stream" title="Create Stream">
+	<table>
+		<tr>
+			<td style="text-align:right">
+				<h5>Stream Name</h5>
+			</td>
+			<td colspan="5">
+				<input type="text" name="stream_name" id="stream_name" value=""/>
+			</td>
+		</tr>
+		<tr>
+			<th colspan="2">
+				<h5>Video</h5>
+			</th>
+			<th colspan="2">
+				<h5>Audio</h5>
+			</th>
+			<th colspan="2">
+				<h5>Subtitles</h5>
+			</th>
+			<th colspan="2">
+				<h5>Output</h5>
+			</th>
+		</tr>
+		<tr>
+			<td style="text-align:right">Video Codec</td>
+			<td>
+				<select name="stream_vcodec" id="stream_vcodec">
+					<option value="FLV1">FLV1</option>
+					<option value="mp1v">mp1v</option>
+					<option value="mp2v">mp2v</option>
+					<option value="mp4v">mp4v</option>
+					<option value="DIV1">DIV1</option>
+					<option value="DIV2">DIV2</option>
+					<option value="DIV3">DIV3</option>
+					<option value="H263">H263</option>
+					<option value="H264">H264</option>
+					<option value="WMV1">WMV1</option>
+					<option value="WMV2">WMV2</option>
+					<option value="MJPG">MJPG</option>
+					<option value="theo">theo</option>
+				</select>
+			</td>
+			<td style="text-align:right">Audio Codec</td>
+			<td>
+				<select name="stream_acodec" id="stream_acodec">
+					<option value="mp3">mp3</option>
+					<option value="mpga">mpga</option>
+					<option value="mp2a">mp2a</option>
+					<option value="mp4a">mp4a</option>
+					<option value="a52">a52</option>
+					<option value="vorb">vorb</option>
+					<option value="flac">flac</option>
+					<option value="spx">spx</option>
+					<option value="s16l">s16l</option>
+					<option value="fl32">fl32</option>
+				</select>
+			</td>
+			<td style="text-align:right">Subtitle Codec</td>
+			<td>
+				<select name="stream_scodec" id="stream_scodec">
+					<option value="">none</option>
+					<option value="dvbs">dvbs</option>
+				</select>
+			</td>
+			<td style="text-align:right">Output Method</td>
+			<td>
+				<select name="stream_out_method" id="stream_out_method">
+					<option value="http">HTTP</option>
+					<option value="file">File</option>
+					<option value="mmsh">MMSH</option>
+					<option value="rtp">RTP</option>
+					<option value="udp">UDP</option>
+				</select>
+			</td>
+		</tr>
+		<tr>
+			<td style="text-align:right">Video Bit Rate</td>
+			<td>
+				<select name="stream_vb" id="stream_vb">
+					<option value="4096">4096</option>
+					<option value="3072">3072</option>
+					<option value="2048">2048</option>
+					<option value="1024">1024</option>
+					<option value="768">768</option>
+					<option value="512">512</option>
+					<option value="384">384</option>
+					<option value="256">256</option>
+					<option value="192">192</option>
+					<option value="128">128</option>
+					<option value="96">96</option>
+					<option value="64">64</option>
+					<option value="32">32</option>
+					<option value="16">16</option>
+				</select>
+			</td>
+			<td style="text-align:right">Audio Bit Rate</td>
+			<td>
+				<select name="stream_ab" id="stream_ab">
+					<option value="512">512</option>
+					<option value="384">384</option>
+					<option value="256">256</option>
+					<option value="192">192</option>
+					<option value="128">128</option>
+					<option value="96">96</option>
+					<option value="64">64</option>
+					<option value="32">32</option>
+					<option value="16">16</option>
+				</select>
+			</td>
+			<td style="text-align:right">Overlay</td>
+			<td>
+				<input type="checkbox" name="stream_soverlay" id="stream_soverlay" value="1" />
+			</td>
+			<td style="text-align:right">Multiplexer</td>
+			<td>
+				<select name="stream_out_mux" id="stream_out_mux">
+					<option value="ts">MPEG TS</option>
+					<option value="ps">MPEG PS</option>
+					<option value="mpeg1">MPEG 1</option>
+					<option value="ogg">OGG</option>
+					<option value="asf">ASF</option>
+					<option value="mp4">MP4</option>
+					<option value="mov">MOV</option>
+					<option value="wav">WAV</option>
+					<option value="raw">Raw</option>
+					<option value="ffmpeg" selected="selected">FFMPEG</option>
+				</select>
+			</td>
+		</tr>
+		<tr>
+			<td style="text-align:right">Video FPS</td>
+			<td>
+				<select name="stream_fps" id="stream_fps">
+					<option value="300">300</option>
+					<option value="120">120</option>
+					<option value="100">100</option>
+					<option value="72">72</option>
+					<option value="60">60</option>
+					<option value="50">50</option>
+					<option value="48">48</option>
+					<option value="30">30</option>
+					<option value="25" selected="selected">25</option>
+					<option value="24">24</option>
+				</select>
+			</td>
+			<td style="text-align:right">Audio Sample Rate</td>
+			<td>
+				<select name="stream_samplerate" id="stream_samplerate">
+					<option value="192000">192 KHz</option>
+					<option value="96000">96 KHz</option>
+					<option value="50000">50 KHz</option>
+					<option value="48000">48 KHz</option>
+					<option value="44100" selected="selected">44 KHz</option>
+					<option value="32000">32 KHz</option>
+					<option value="22050">22 KHz</option>
+					<option value="16000">16 KHz</option>
+					<option value="11025">11 KHz</option>
+					<option value="8000">8 KHz</option>
+				</select>
+			</td>
+			<td colspan="2"> </td>
+			<td style="text-align:right">MUX Options</td>
+			<td>
+				<input type="text" name="stream_out_mux_opts" id="stream_out_mux_opts" value="{mux=flv}" />
+			</td>
+		</tr>
+		<tr>
+			<td style="text-align:right">Video Scale</td>
+			<td>
+				<select name="stream_scale" id="stream_scale">
+					<option value="0.25">25%</option>
+					<option value="0.5">50%</option>
+					<option value="0.75">75%</option>
+					<option selected="selected" value="1">100%</option>
+					<option value="1.25">125%</option>
+					<option value="1.5">150%</option>
+					<option value="1.75">175%</option>
+					<option value="2">200%</option>
+				</select>
+			</td>
+			<td style="text-align:right">Audio Channels</td>
+			<td>
+				<select name="stream_channels" id="stream_channels" >
+					<option value="1">1</option>
+					<option value="2" selected="selected">2</option>
+					<option value="4">4</option>
+					<option value="6">6</option>
+				</select>
+			</td>
+			<td colspan="2"> </td>
+			<td colspan="2" rowspan="2" valign="top">
+				<div id="output_options">
+						<table>
+							<tr>
+								<td style="text-align:right">Output Port</td>
+								<td><input type="text" name="stream_out_port" id="stream_out_port" value="8081" /></td>
+							</tr>
+							<tr>
+								<td style="text-align:right">Output Destination</td>
+								<td><input type="text" name="stream_out_dest" id="stream_out_dest" value="0.0.0.0" /></td>
+							</tr>
+							<tr>
+								<td style="text-align:right">Output File</td>
+								<td><input type="text" name="stream_out_file" id="stream_out_file" value="stream.flv" /></td>
+							</tr>
+						</table>
+				</div>
+			</td>
+		</tr>
+		<tr>
+			<td valign="top" style="text-align:right">Deinterlace</td>
+			<td valign="top">
+				<input type="checkbox" name="stream_deinterlace" id="stream_deinterlace" value="1" />
+			</td>
+			<td colspan="2" valign="top"> </td>
+			<td colspan="2" valign="top"> </td>
+		</tr>
+		<tr>
+			<td style="text-align:right" colspan="2">
+				Input Media
+			</td>
+			<td colspan="6">
+				<input type="text" name="stream_input" id="stream_input" value="" size="50" />
+				<div id="button_input" class="button icon ui-widget ui-state-default" title="Media File" opendialog="window_browse"><span class="ui-icon ui-icon-eject"></span></div>
+				<div id="button_in_screen" class="button icon ui-widget ui-state-default" title="Capture Screen" ><span class="ui-icon ui-icon-contact"></span></div>
+			</td>
+		</tr>
+	</table>
+	<div class="ui-widget" id="stream_error_container" style="display:none;visibility: hidden;">
+		<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
+			<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
+			<strong>Error:</strong> <span id="stream_error_message">Sample ui-state-error style.</span></p>
+		</div>
+	</div>
+</div>
+<div id="net_options" style="display:none;visibility: hidden;">
+	<table>
+		<tr>
+			<td style="text-align:right">Output Port</td>
+			<td><input type="text" name="stream_out_port_" id="stream_out_port_" value="8081" /></td>
+		</tr>
+		<tr>
+			<td style="text-align:right">Output Destination</td>
+			<td><input type="text" name="stream_out_dest_" id="stream_out_dest_" value="0.0.0.0" /></td>
+		</tr>
+		<tr>
+			<td style="text-align:right">Output File</td>
+			<td><input type="text" name="stream_out_file_" id="stream_out_file_" value="stream.flv" /></td>
+		</tr>
+	</table>
+</div>
+<div id="file_options" style="display:none;visibility: hidden;">
+	<table>
+		<tr>
+			<td style="text-align:right">File Name</td>
+			<td><input type="text" name="stream_out_filename_" id="stream_out_filename_"/></td>
+		</tr>
+	</table>
+</div>
\ No newline at end of file
diff --git a/share/lua/http/dialogs/footer b/share/lua/http/dialogs/footer
deleted file mode 100644
index a9397ff..0000000
--- a/share/lua/http/dialogs/footer
+++ /dev/null
@@ -1,37 +0,0 @@
-<?vlc  --[[
-vim:syntax=html
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  footer: VLC media player web interface - VLC copyright footer
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-This dialog needs the following dialogs to be fully functional: <none>
-]]?>
-
-<div id="footer" class="dialog" >
-  <a href="/">main VLC interface</a> -
-  <a href="/vlm.html">VLM interface</a> -
-  <a href="/mosaic.html">Mosaic wizard</a> -
-  <a href="/flash.html">Flash based remote playback</a> -
-  <a href="http://www.videolan.org">VideoLAN website</a>
-  <br />
-  <?vlc print(vlc.misc.version() .. " - Lua Web Interface - " .. vlc.misc.copyright()) ?>
-</div>
diff --git a/share/lua/http/dialogs/input b/share/lua/http/dialogs/input
deleted file mode 100644
index fd58d70..0000000
--- a/share/lua/http/dialogs/input
+++ /dev/null
@@ -1,231 +0,0 @@
-<?vlc --[[
-vim:syntax=html
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  input: VLC media player web interface - input selection dialog
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-This dialog needs the following dialogs to be fully functional: browse
-]]?>
-
-<div id="input" class="dialog" style="display: none">
-  <div class="title">
-    Input
-    <img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('input');"/>
-  </div>
-  <div class="controls">
-    <label for="input_mrl">Input</label>
-    <?vlc if current_page == "vlm" then ?>
-      <input type="text" name="input_mrl" id="input_mrl" size="60" onkeypress="if( event.keyCode == 13 ) vlm_input_change();"/>
-    <?vlc else ?>
-      <input type="text" name="input_mrl" id="input_mrl" size="60" onkeypress="if( event.keyCode == 13 ) in_play();"/>
-    <?vlc end ?>
-    <div>
-    Options
-    <!-- <input type="button" value="Refresh options" onclick="refresh_input_options_list();" /> -->
-    <input type="button" value="Add option" onclick="add_input_option(':option=value');" />
-    <div id="input_options_list"></div>
-    </div>
-    <?vlc if current_page == "vlm" then ?>
-      <input type="button" value="Ok" onclick="vlm_input_change();" />
-      <input type="button" value="Cancel" onclick="hide('input');" />
-      <input type="hidden" id="input_dest" value="" />
-    <?vlc else ?>
-      <input type="button" value="Play" onclick="in_play();" />
-      <input type="button" value="Enqueue" onclick="in_enqueue();" />
-    <?vlc end ?>
-    <br/>
-    <!--<button id="btn_inhide" onclick="hide_input();">
-      Hide
-    </button>-->
-    <button id="btn_file" onclick="hide_input();show('input_file');update_input_file();">
-      File
-    </button>
-    <button id="btn_disc" onclick="hide_input();show('input_disc');update_input_disc();">
-      Disc
-    </button>
-    <button id="btn_network" onclick="hide_input();show('input_network');update_input_net();">
-      Network
-    </button>
-    <button id="btn_fake" onclick="hide_input();show('input_fake');update_input_fake();">
-      Fixed image
-    </button>
-  </div>
-  <div id="input_helper" class="helper" >
-    <div id="input_file" style="display: block">
-      Open File
-      <hr/>
-      <label for="input_file_filename">File name</label>
-      <input type="text" id="input_file_filename" size="60" onchange="update_input_file();" onfocus="update_input_file();"/>
-      <input type="button" id="input_file_browse" value="Browse" onclick="browse( 'input_file_filename' );" />
-      <!-- <hr/>
-      <input type="checkbox" id="input_sub_options" />
-      <label for="input_sub_options">Subtitle options *TODO/FIXME/FIXHTTPD*</label>
-      <br/>
-      <label for="input_sub_file">Subtitles file</label>
-      <input type="text" id="input_sub_file" size="60" />
-      <br/>
-      <label for="input_sub_enc">Subtitles encoding</label>
-      <select id="input_sub_enc">
-        <option></option>
-      </select>
-      <br/>
-      <label for="input_sub_size">Font size</label>
-      <select id="input_sub_size">
-        <option></option>
-      </select>
-      <label for="input_sub_justification">Justification</label>
-      <select id="input_sub_justification">
-        <option></option>
-      </select>
-      <br/>
-      <label for="input_sub_fps">Frames per second</label>
-      <input type="text" id="input_sub_fps" />
-      <label for="input_sub_delay">Delay</label>
-      <input type="text" id="input_sub_delay" />-->
-    </div>
-    <div id="input_disc" style="display: none">
-      Open Disc
-      <hr/>
-      Disc type :
-      <input type="radio" name="input_disc_type" id="input_disc_dvdmenu" value="dvd" onchange="update_input_disc();" />
-      <label for="input_disc_dvdmenu">DVD (menus)</label>
-      <input type="radio" name="input_disc_type" id="input_disc_dvd" value="dvdsimple" onchange="update_input_disc();" />
-      <label for="input_disc_dvd">DVD</label>
-      <input type="radio" name="input_disc_type" id="input_disc_vcd" value="vcd" onchange="update_input_disc();" />
-      <label for="input_disc_vcd">VCD</label>
-      <input type="radio" name="input_disc_type" id="input_disc_cdda" value="cdda" onchange="update_input_disc();" />
-      <label for="input_disc_cdda">Audio CD</label>
-      <hr/>
-      <table>
-        <tr>
-          <td>
-            <label for="input_disc_dev">Device name</label>
-          </td>
-          <td>
-            <input type="text" id="input_disc_dev" onchange="update_input_disc();" />
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <label for="input_disc_title">Title</label>
-          </td>
-          <td>
-            <input type="text" id="input_disc_title" onchange="update_input_disc();" />
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <label for="input_disc_chapter">Chapter</label>
-          </td>
-          <td>
-            <input type="text" id="input_disc_chapter" onchange="update_input_disc();" />
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <label for="input_disc_subtrack">Subtitles track</label>
-          </td>
-          <td>
-             <input type="text" id="input_disc_subtrack" onchange="update_input_disc();" />
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <label for="input_disc_audiotrack">Audio track</label>
-          </td>
-          <td>
-            <input type="text" id="input_disc_audiotrack" onchange="update_input_disc();" />
-          </td>
-        </tr>
-      </table>
-    </div>
-    <div id="input_network" style="display: none">
-      Open Network
-      <hr/>
-      <table>
-        <tr>
-          <td>
-            <input type="radio" name="input_net_type" id="input_net_udp" value="udp" onchange="update_input_net();" />
-            <label for="input_net_udp">UDP/RTP</label>
-          </td>
-          <td>
-            <label for="input_net_udp_port">Port</label>
-            <input type="text" id="input_net_udp_port" size="6" onchange="update_input_net();" />
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="radio" name="input_net_type" id="input_net_udpmcast" value="udpmcast" onchange="update_input_net();" />
-            <label for="input_net_udpmcast">UDP/RTP Multicast</label>
-          </td>
-          <td>
-            <label for="input_net_udpmcast_address">Address</label>
-            <input type="text" id="input_net_udpmcast_address" onchange="update_input_net();" />
-            <label for="input_net_udpmcast_port">Port</label>
-            <input type="text" id="input_net_udpmcast_port" size="6" onchange="update_input_net();" />
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="radio" name="input_net_type" id="input_net_http" value="http" onchange="update_input_net();" />
-            <label for="input_net_http">HTTP/HTTPS/FTP/MMS</label>
-          </td>
-          <td>
-            <label for="input_net_http_url">URL</label>
-            <input type="text" id="input_net_http_url" onchange="update_input_net();" />
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="radio" name="input_net_type" id="input_net_rtsp" value="rtsp" onchange="update_input_net();" />
-            <label for="input_net_rtsp">RTSP</label>
-          </td>
-          <td>
-            <label for="input_net_rtsp_url">URL</label>
-            <input type="text" id="input_net_rtsp_url" value="rtsp://" onchange="update_input_net();" />
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="checkbox" id="input_net_timeshift" onchange="update_input_net();" />
-            <label for="input_net_timeshift">Allow timeshifting</label>
-          </td>
-          <td></td>
-        </tr>
-      </table>
-    </div>
-    <div id="input_fake" style="display: none">
-      Fixed image stream (fake)
-      <hr/>
-      <label for="input_fake_filename">Image file name</label>
-      <input type="text" id="input_fake_filename" size="60" onchange="update_input_fake();" onfocus="update_input_fake();"/>
-      <input type="button" id="input_fake_browse" value="Browse" onclick="browse( 'input_fake_filename' );" />
-      <hr/>
-      <label for="input_fake_width">Width</label>
-      <input type="text" id="input_fake_width" size="8" onchange="update_input_fake();" />
-      <label for="input_fake_height">Height</label>
-      <input type="text" id="input_fake_height" size="8" onchange="update_input_fake();" />
-      <label for="input_fake_ar">Aspect ratio</label>
-      <input type="text" id="input_fake_ar" size="8" onchange="update_input_fake();" />
-    </div>
-  </div>
-</div>
diff --git a/share/lua/http/dialogs/main b/share/lua/http/dialogs/main
deleted file mode 100644
index 543de22..0000000
--- a/share/lua/http/dialogs/main
+++ /dev/null
@@ -1,158 +0,0 @@
-<?vlc --[[
-vim:syntax=html
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  main: VLC media player web interface - main VLC controler
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-This dialog needs the following dialogs to be fully functional: input,
-sout and playlist .
-]]?>
-
-<div id="main" class="dialog" >
-  <div class="title">
-    VLC media player
-    <button id="btn_toggle_text" onclick="toggle_btn_text();" title="Help" >
-      <img src="images/help.png" alt="Help" />
-      Help
-    </button>
-  </div>
-  <div class="controls">
-    <button id="btn_open" onclick="toggle_show('input');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Open" >
-      <img src="images/eject.png" alt="Open" />
-      <span class="btn_text">Open</span>
-    </button>
-     
-    <button id="btn_stop" onclick="pl_stop();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Stop" >
-      <img src="images/stop.png" alt="Stop" />
-      <span class="btn_text">Stop</span>
-    </button>
-    <!--<button id="btn_play" onclick="alert('FIXME');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Play" >
-      <img src="images/play.png" alt="Play" />
-      <span class="btn_text">Play</span>
-    </button>-->
-    <button id="btn_pause" onclick="pl_pause();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Pause" >
-      <img src="images/pause.png" alt="Pause" id="btn_pause_img" />
-      <span class="btn_text">Pause</span>
-    </button>
-     
-    <button id="btn_previous" onclick="pl_previous();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Previous" >
-      <img src="images/prev.png" alt="Previous" />
-      <span class="btn_text">Previous</span>
-    </button>
-    <button id="btn_next" onclick="pl_next();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Next" >
-      <img src="images/next.png" alt="Next" />
-      <span class="btn_text">Next</span>
-    </button>
-     
-    <button id="btn_sout" onclick="toggle_show('sout');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Stream Output" >
-      <img src="images/sout.png" alt="Stream Output" />
-      <span class="btn_text">Stream Output</span>
-    </button>
-    <button id="btn_playlist" onclick="toggle_show('playlist');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Playlist" >
-      <img src="images/playlist.png" alt="Playlist" />
-      <span class="btn_text">Playlist</span>
-    </button>
-    <button id="btn_info" onclick="toggle_show('info');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Info" >
-      <img src="images/info.png" alt="Info" />
-      <span class="btn_text">Info</span>
-    </button>
-     
-    <button id="btn_fullscreen" onclick="fullscreen();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Fullscreen" >
-      <img src="images/fullscreen.png" alt="Fullscreen" />
-      <span class="btn_text">Fullscreen</span>
-    </button>
-     
-    <button id="btn_snapshot" onclick="snapshot();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Take video snapshot" >
-      <img src="images/snapshot.png" alt="Take video snapshot" />
-      <span class="btn_text">Take video snapshot</span>
-    </button>
-     
-    <button id="btn_volume_down" onclick="volume_down();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Decrease Volume" >
-      <img src="images/volume_down.png" alt="Decrease Volume" />
-      <span class="btn_text">Decrease Volume</span>
-    </button>
-    <button id="btn_volume_up" onclick="volume_up();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Increase Volume" >
-      <img src="images/volume_up.png" alt="Increase Volume" />
-      <span class="btn_text">Increase Volume</span>
-    </button>
-    <button id="btn_volume_mute" onclick="volume_mute();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Mute Volume" >
-      <img src="images/speaker_mute.png" alt="Mute Volume" />
-      <span class="btn_text">Mute Volume</span>
-    </button>
-    <br />
-    Audio Delay:
-    <button id="btn_audiodelay_down" onclick="audiodelay_down();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Decrease Audio Delay by 50ms" >
-      <img src="images/minus.png" alt="Decrease Audio Delay" />
-      <span class="btn_text">Decrease Audio Delay</span>
-    </button>
-    <button id="btn_audiodelay_up" onclick="audiodelay_up();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Increase Audio Delay by 50ms" >
-      <img src="images/plus.png" alt="Increase Audio Delay" />
-      <span class="btn_text">Increase Audio Delay</span>
-    </button>
-    <span id="a_del">(?)</span> ms
- <br />
-    Playback Speed:
-    <button id="btn_playrate_down" onclick="playrate_down();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Decrease playback rate by 0.05x" >
-      <img src="images/minus.png" alt="Decrease Playback Rate" />
-      <span class="btn_text">Decrease Playback Rate</span>
-    </button>
-    <button id="btn_playrate_up" onclick="playrate_up();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Increase playback rate by 0.05x" >
-      <img src="images/plus.png" alt="Increase Playback Rate" />
-      <span class="btn_text">Increase Playback Rate</span>
-    </button>
-    <span id="p_rate">(?)</span>x
-  <br/>
-  Advance of subtitles over video:
-    <button id="btn_subdel_down" onclick="subdel_down();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Decrease subtitle delay by 50ms" >
-      <img src="images/minus.png" alt="Decrease Subtitle delay" />
-      <span class="btn_text">Decrease Subtitle delay</span>
-    </button>
-    <button id="btn_subdel_up" onclick="subdel_up();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Increase subtitle delay by 50ms" >
-      <img src="images/plus.png" alt="Increase Subtitle delay" />
-      <span class="btn_text">Increase Subtitle delay</span>
-    </button>
-    <span id="s_del">(?)</span>ms
-
-  </div>
-  <div id="status">
-    <span id="state">(?)</span>
-    -
-    Time : <span id="time">(?)</span>/<span id="length">(?)</span>
-    -
-    Volume : <span id="volume">(?)</span>
-    <br/>
-    <!-- progress bar -->
-    <img src="images/slider_left.png" alt="slider left" /><span id="progressbar" style="background-image: url( 'images/slider_bar.png' ); width: 408px; height:16px; position:absolute;" onclick="slider_seek( event, this );" onmousemove="slider_move( event, this );"><img src="images/slider_point.png" alt="slider point" style="position:relative; left:0px;" id="main_slider_point" onmousedown="slider_down( event, this );" onmouseup="slider_up( event, this.parentNode );" onmouseout="slider_up( event, this.parentNode );"/></span><img src="images/slider_right.png" alt="slider right" style="position:relative;left:408px;" />
-    <br/>
-    <span id="nowplaying">(?)</span>
-    <img id="albumart" alt="" src="/art" style="float: right" onclick="refresh_albumart(true);"/>
-  </div>
-</div>
-
-<div id="info" class="dialog" style="display: none;" >
-  <div class="title">
-    Stream and media info
-    <img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('info');"/>
-  </div>
-  <div id="infotree">
-  </div>
-</div>
diff --git a/share/lua/http/dialogs/mosaic b/share/lua/http/dialogs/mosaic
deleted file mode 100644
index cf7bfd1..0000000
--- a/share/lua/http/dialogs/mosaic
+++ /dev/null
@@ -1,116 +0,0 @@
-<?vlc --[[
-vim:syntax=html
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  mosaic: VLC media player web interface - mosaic wizard
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-This dialog needs the following dialogs to be fully functional: input and
-sout.
-]]?>
-
-<div id="mosaic" class="dialog">
-  <div class="title">
-    VLC media player - Mosaic wizard
-    <button id="btn_toggle_text" onclick="toggle_btn_text();">
-      <img src="images/help.png" alt="Help" />
-      Help
-    </button>
-  </div>
-  <div class="controls">
-    <b>Mosaic dimensions:</b><br/>
-    <table style="text-align: right;">
-      <tr>
-        <td>
-          <label for="bg_width">Background width*:</label> <input class="mosaic_bg" type="text" id="bg_width" value="400" size="8" onchange="mosaic_size_change();" />
-        </td>
-        <td>
-          <label for="bg_height">Background height*:</label> <input class="mosaic_bg" type="text" id="bg_height" value="300" size="8" onchange="mosaic_size_change();" />
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <label for="mosaic_width">Width:</label> <input class="mosaic_tbl" type="text" id="mosaic_width" value="200" size="8" onchange="mosaic_size_change();" />
-        </td>
-        <td>
-          <label for="mosaic_height">Height:</label> <input class="mosaic_tbl" type="text" id="mosaic_height" value="200" size="8" onchange="mosaic_size_change();" />
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <label for="mosaic_xoffset">X offset (left):</label> <input class="mosaic_tbl" type="text" id="mosaic_xoffset" value="10" size="8" onchange="mosaic_size_change();" />
-        </td>
-        <td>
-          <label for="mosaic_yoffset">Y offset (top):</label> <input class="mosaic_tbl" type="text" id="mosaic_yoffset" value="10" size="8" onchange="mosaic_size_change();" />
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <label for="mosaic_cols">Columns:</label> <input class="mosaic_itm" type="text" id="mosaic_cols" value="2" size="8" onchange="mosaic_size_change();" />
-        </td>
-        <td>
-          <label for="mosaic_rows">Rows:</label> <input class="mosaic_itm" type="text" id="mosaic_rows" value="2" size="8" onchange="mosaic_size_change();" />
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <label for="mosaic_hborder">Horizontal border:</label> <input class="mosaic_itm" type="text" id="mosaic_hborder" value="10" size="8" onchange="mosaic_size_change();" />
-        </td>
-        <td>
-          <label for="mosaic_vborder">Vertical border:</label> <input class="mosaic_itm" type="text" id="mosaic_vborder" value="5" size="8" onchange="mosaic_size_change();" />
-        </td>
-      </tr>
-      <tr>
-        <td colspan="2">
-        *: these values aren't used by the mosaic code.<br/> They're only here to adapt the preview's size.
-        </td>
-      </tr>
-    </table>
-    <b>Background:</b><br/>
-    <label for="mosaic_bg_input">Input:<label> <input type="text" id="mosaic_bg_input" class="mosaic_bg" value="" size="60" onblur="mosaic_code_update();" /> <input type="button" value="Edit" onclick="vlm_input_edit( 'mosaic_bg_input' );" /><br/>
-    <b>Item:</b><br/>
-    <label for="mosaic_input_name">Name:</label> <input type="text" id="mosaic_input_name" value="" class="mosaic_itm" />
-    <label for="mosaic_input">Input:</label> <input type="text" id="mosaic_input" value="" class="mosaic_itm" /> <input type="button" value="Edit" onclick="vlm_input_edit( 'mosaic_input' );" /> <input type="button" value="Add to input list" onclick="mosaic_add_input();" /><br/>
-    <b>Stream:</b> (leave this empty to display locally)<br/>
-    <label for="mosaic_output">Output:</label> <input type="text" id="mosaic_output" value="" size="60" onblur="mosaic_code_update();" /> <input type="button" value="Edit" onclick="vlm_output_edit( 'mosaic_output' );" /><br/>
-    <div id="mosaic_feedback"></div>
-  </div>
-  <div  id="mosaic_list" class="popup">[<a href="javascript:hide('mosaic_list');">hide</a>] - Select a stream:<br/><div id="mosaic_list_content"></div></div>
-  <div class="controls">
-    Click on each of the cells to assign inputs. (<a href="javascript:document.getElementById('mosaic_list').value='';show('mosaic_list');">Show input list</a>)
-  </div>
-</div>
-
-<div id="mosaic_layout" class="mosaic_bg"></div>
-
-<div class="dialog" style="overflow:visible;">
-  <div class="controls">
-    <input type="button" value="Let's go!" onclick="mosaic_batch(document.getElementById('mosaic_code').value);" />
-    <input type="button" value="Stop" onclick="mosaic_stop()" />
-    <input type="button" id="mosaic_code_show" value="Show VLM code" onclick="show('mosaic_code_div');hide('mosaic_code_show');showinline('mosaic_code_hide');" />
-    <input type="button" id="mosaic_code_hide" style="display:none" value="Hide VLM code" onclick="hide('mosaic_code_div');hide('mosaic_code_hide');showinline('mosaic_code_show');" />
-    <br/><br/>
-  </div>
-  <div id="mosaic_code_div" style="display:none;" >
-    Edit the following VLM command batch if you want to fine tune your mosaic settings:
-  <textarea id="mosaic_code" cols="80" rows="30"></textarea>
-  </div>
-</div>
diff --git a/share/lua/http/dialogs/mosaic_window.html b/share/lua/http/dialogs/mosaic_window.html
new file mode 100644
index 0000000..a55c613
--- /dev/null
+++ b/share/lua/http/dialogs/mosaic_window.html
@@ -0,0 +1,145 @@
+<script language="javascript" type="text/javascript">
+	$(function(){
+		$('#window_mosaic').dialog({
+			autoOpen: false,
+			width: 800,
+			maxWidth: 1000,
+			minWidth: 800,
+			minHeight: 500,
+			modal: true,
+			position: ['left','top'],
+			buttons: {
+				"Create": function() {
+					$(this).dialog("close");
+				},
+				"Cancel" : function(){
+					$(this).dialog("close")
+				}
+			}
+		});
+		$('#mosaic_bg').resizable({
+			maxWidth: 780,
+			ghost: true
+		});
+		$('#mosaic_tiles').draggable({
+			maxWidth: 780,
+			handle: 'h3',
+			containment: [13,98,99999999,99999999],
+			drag:function(event,ui){
+				var xoff	=	ui.offset.left - $('#mosaic_bg').offset().left;
+				var yoff	=	ui.offset.top - $('#mosaic_bg').offset().top-17;
+				$('#mosaic_xoff').val(xoff);
+				$('#mosaic_yoff').val(yoff);
+			}
+		});
+		$('input','#mosaic_options').change(setMosaic);
+		setMosaic();
+	});
+	function setMosaic(){
+		var rows	=	Number($('#mosaic_rows').val());
+		var cols	=	Number($('#mosaic_cols').val());
+		var n		=	0;
+		$('#mosaic_tiles').empty()
+		$('#mosaic_tiles').append('<tr><td colspan="99"><h3 style="margin:0px;cursor:move; font-weight:normal" class="ui-widget-header">Mosaic Tiles</h3></td></tr>');
+		for(var i=0;i<rows;i++){
+			$('#mosaic_tiles').append('<tr>');
+			for(var j=0;j<cols;j++){
+				$('tr:last','#mosaic_tiles').append('<td class="mosaic">');
+				$('td:last','#mosaic_tiles').append('<div id="mosaic_open__'+n+'" class="button icon ui-widget ui-state-default" title="Open Media" style="margin-top:49%"><span class="ui-icon ui-icon-eject"></span></div>');
+				n++;
+			}
+		}
+		$('.mosaic').resizable({
+			alsoResize: '.mosaic',
+			resize:function(event,ui){
+				$('#mosaic_width').val(ui.size.width);
+				$('#mosaic_height').val(ui.size.height);
+				$('[id^=mosaic_open]').css({
+					'margin-top': Number($('#mosaic_height').val()/2)
+				});
+			}
+		});
+		$('.mosaic').css({
+			'background': '#33FF33',
+			'width': Number($('#mosaic_width').val()),
+			'height':Number($('#mosaic_height').val()),
+			'text-align': 'center',
+			'float' : 'left',
+			'border' : '1px solid #990000',
+			'margin-left': Number($('#mosaic_rbord').val()),
+			'margin-right': Number($('#mosaic_rbord').val()),
+			'margin-top': Number($('#mosaic_cbord').val()),
+			'margin-bottom': Number($('#mosaic_cbord').val())
+		});
+		$('[id^=mosaic_open_]').each(function(){
+			$(this).css({
+				'margin-top': Number($('#mosaic_height').val()/2)
+			});
+			$(this).click(function(){
+				browse_target	=	'#'+$(this).attr('id');
+				get_dir();
+				$('#window_browse').dialog('open');
+			});
+		});
+
+		$('.button').hover(
+			function() { $(this).addClass('ui-state-hover'); },
+			function() { $(this).removeClass('ui-state-hover'); }
+		);
+	}
+</script>
+
+<div id="window_mosaic" title="Create Mosaic">
+	<table id="mosaic_options">
+		<tr>
+			<td style="text-align:right">Rows:</td>
+			<td>
+				<input type="text" name="mosaic_rows" id="mosaic_rows" size="3" value="2"/>
+			</td>
+			<td style="text-align:right">x offset</td>
+			<td>
+				<input type="text" name="mosaic_xoff" id="mosaic_xoff" size="3" value="0" disabled="disabled"/>
+			</td>
+			<td style="text-align:right">row border</td>
+			<td>
+				<input type="text" name="mosaic_rbord" id="mosaic_rbord" size="3" value="5"/>
+			</td>
+			<td style="text-align:right">width</td>
+			<td>
+				<input type="text" name="mosaic_width" id="mosaic_width" size="3" value="100" disabled="disabled"/>
+			</td>
+		</tr>
+		<tr>
+			<td style="text-align:right">Columns:</td>
+			<td>
+				<input type="text" name="mosaic_cols" id="mosaic_cols" size="3" value="2"/>
+			</td>
+			<td style="text-align:right">y offset</td>
+			<td>
+				<input type="text" name="mosaic_yoff" id="mosaic_yoff" size="3" value="0" disabled="disabled"/>
+			</td>
+			<td style="text-align:right">column border</td>
+			<td>
+				<input type="text" name="mosaic_cbord" id="mosaic_cbord" size="3" value="5"/>
+			</td>
+			<td style="text-align:right">height</td>
+			<td>
+				<input type="text" name="mosaic_height" id="mosaic_height" size="3" value="100" disabled="disabled"/>
+			</td>
+		</tr>
+	</table>
+	<div id="mosaic_bg" class="ui-widget-content" style="background: #3333FF;width:400px; height:300px;text-align: center; vertical-align: middle;">
+		<h3 style="margin:0px;font-weight:normal" class="ui-widget-header">Background</h3>
+		<table id="mosaic_tiles" class="ui-widget-content" cellpadding="0" cellspacing="0">
+			<tr><td colspan="99"><h3 style="margin:0px;cursor:move; font-weight:normal" class="ui-widget-header">Mosaic Tiles</h3></td></tr>
+			<tr>
+				<td class="mosaic"></td>
+				<td class="mosaic"></td>
+			</tr>
+			<tr>
+				<td class="mosaic"></td>
+				<td class="mosaic"></td>
+			</tr>
+		</table>
+	</div>
+</div>
\ No newline at end of file
diff --git a/share/lua/http/dialogs/playlist b/share/lua/http/dialogs/playlist
deleted file mode 100644
index e0fd333..0000000
--- a/share/lua/http/dialogs/playlist
+++ /dev/null
@@ -1,106 +0,0 @@
-<?vlc --[[
-vim:syntax=html
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  playlist: VLC media player web interface - playlist dialog
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-This dialog needs the following dialogs to be fully functional: <none>
-]]?>
-
-<div id="playlist" class="dialog" >
-  <div class="title">
-    Playlist
-    <img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('playlist');"/>
-  </div>
-  <div class="controls">
-    <table>
-      <tr>
-        <td>
-          <!--<button id="btn_delete" onmouseover="button_over(this);" onmouseout="button_out(this);">
-            <img src="images/delete.png" alt="Delete" />
-            <span class="btn_text">Delete</span>
-          </button>-->
-          <button id="btn_empty" onclick="pl_empty();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Empty" >
-            <img src="images/empty.png" alt="Empty" />
-            <span class="btn_text">Empty</span>
-          </button>
-          <button id="btn_shuffle" onclick="pl_shuffle();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Shuffle" >
-            <img src="images/shuffle.png" alt="Shuffle" />
-            <span class="btn_text">Shuffle</span>
-          </button>
-          <button id="btn_loop" onclick="pl_loop();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Loop" >
-            <img src="images/loop.png" alt="Loop" />
-            <span class="btn_text">Loop</span>
-          </button>
-          <button id="btn_repeat" onclick="pl_repeat();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Repeat" >
-            <img src="images/repeat.png" alt="Repeat" />
-            <span class="btn_text">Repeat</span>
-          </button>
-        </td>
-        <td onmouseout="hide_menu('menu_sort');" onmouseover="show_menu('menu_sort');" >
-          <button id="btn_sort" title="Sort" >
-            <img src="images/sort.png" alt="Sort" />
-            <span class="btn_text">Sort</span>
-          </button>
-          <div id="menu_sort" class="menu" >
-            <div class="menuout" onclick="pl_sort('title',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Title ascending" >Title</div>
-            <div class="menuout" onclick="pl_sort('title',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Title descending" >Title reverse</div>
-            <div class="menuout" onclick="pl_sort('artist',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Artist ascending" >Artist</div>
-            <div class="menuout" onclick="pl_sort('artist',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Artist ascending" >Artist reverse</div>
-            <div class="menuout" onclick="pl_sort('album',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Album ascending" >Album</div>
-            <div class="menuout" onclick="pl_sort('album',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Album ascending" >Album reverse</div>
-            <div class="menuout" onclick="pl_sort('genre',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Genre ascending" >Genre</div>
-            <div class="menuout" onclick="pl_sort('genre',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Genre ascending" >Genre reverse</div>
-            <div class="menuout" onclick="pl_sort('random',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Randomize" >Random</div>
-            <div class="menuout" onclick="pl_sort('id',0);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Id ascending" >Id</div>
-            <div class="menuout" onclick="pl_sort('id',1);hide_menu('menu_sort');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Sort by Id descending" >Id reverse</div>
-          </div>
-        </td>
-        <td onmouseover="show_menu('menu_sd');" onmouseout="hide_menu('menu_sd');">
-          <button id="btn_sd" title="Services Discovery" >
-            <img src="images/sd.png" alt="Services Discovery" />
-            <span class="btn_text">Services Discovery</span>
-          </button>
-          <div id="menu_sd" class="menu" >
-          <?vlc
-            local sd = vlc.sd.get_services_names()
-            for n,ln in pairs(sd) do
-              print([[<div class="menuout" onclick='pl_sd("]]..vlc.strings.encode_uri_component(n)..[[");hide_menu("menu_sd");' onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" title="Toggle ]]..ln..[[" >]]..ln..[[</div>]])
-            end
-          ?>
-          </div>
-        </td>
-	<td style='width: 30px'></td>
-        <td>
-          <span class="btn_text">Live search:</span>
-          <input title="Live search" type="text" value="<?vlc if _G.search_key then print(search_key) else print('<search>') end ?>" id="search" onfocus="if( this.value == '<search>' ) this.value = ''" onblur="if( this.value == '' ) reset_search()" onchange="update_playlist_search(this.value)" onkeyup="update_playlist_search(this.value)" />
-          <button id="btn_search_reset" onclick="reset_search()" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Reset search">
-            <img src="images/reset.png" alt="Reset" />
-            <span class="btn_text">Reset</span>
-          </button>
-        </td>
-      </tr>
-    </table>
-  </div>
-  <div id="playtree">
-    (?)
-  </div>
-</div>
diff --git a/share/lua/http/dialogs/sout b/share/lua/http/dialogs/sout
deleted file mode 100644
index 08afdfa..0000000
--- a/share/lua/http/dialogs/sout
+++ /dev/null
@@ -1,294 +0,0 @@
-<?vlc --[[
-vim:syntax=html
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  sout: VLC media player web interface - stream output dialog
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-This dialog needs the following dialogs to be fully functional: <none>
-Note that the sout chain is used and sent to VLC by the input dialog
-]]?>
-
-<div id="sout" class="dialog" style="display: none">
-  <div class="title">
-    Stream Output
-    <img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('sout');"/>
-  </div>
-  <div class="controls">
-    <label for="sout_mrl">Destination</label>
-    <?vlc if current_page == "vlm" then ?>
-      <input type="text" name="sout_mrl" id="sout_mrl" size="60" onkeypress="if( event.keyCode == 13 ) vlm_output_change();" disabled="disabled" />
-      <br/>
-      <input type="button" value="Ok" onclick="vlm_output_change();" />
-      <input type="button" value="Cancel" onclick="hide('sout');" />
-      <input type="hidden" id="sout_dest" />
-    <?vlc else ?>
-      <input type="text" name="sout_mrl" id="sout_mrl" size="60" onkeypress="if( event.keyCode == 13 ) save_sout();" disabled="disabled" />
-      <br/>
-      <input type="button" value="Save" onclick="save_sout();" />
-    <?vlc end ?>
-    <input type="button" value="Reset" onclick="reset_sout();"/>
-    <input type="hidden" id="sout_old_mrl" value="" /> <!-- FIXME -->
-    <input type="button" id="sout_helper_toggle" onclick="toggle_show_sout_helper()" value="Hide sout interface" />
-  </div>
-  <div id="sout_helper" class="helper">
-    Stream Output Helper
-    <hr/>
-    <div id="sout_method">
-      <table>
-        <tr>
-          <td>
-            <input type="checkbox" id="sout_display" onchange="update_sout()"/>
-            <label for="sout_display">Display</label>
-          </td>
-          <td></td>
-          <td></td>
-        </tr>
-        <tr>
-          <td>
-            <input type="checkbox" id="sout_file" onchange="update_sout()"/>
-            <label for="sout_file">File</label>
-          </td>
-          <td>
-            <label for="sout_file_filename">File name</label>
-            <input type="text" id="sout_file_filename" onchange="update_sout()"/>
-          </td>
-          <td></td>
-        </tr>
-        <tr>
-          <td>
-            <input type="checkbox" id="sout_http" onchange="update_sout()"/>
-            <label for="sout_http">HTTP</label>
-          </td>
-          <td>
-            <label for="sout_http_addr">Address</label>
-            <input type="text" id="sout_http_addr" onchange="update_sout()"/>
-          </td>
-          <td>
-            <label for="sout_http_port">Port</label>
-            <input type="text" id="sout_http_port" onchange="update_sout()"/>
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="checkbox" id="sout_mmsh" onchange="update_sout()"/>
-            <label for="sout_mmsh">MMSH</label>
-          </td>
-          <td>
-            <label for="sout_mmsh_addr">Address</label>
-            <input type="text" id="sout_mmsh_addr" onchange="update_sout()"/>
-          </td>
-          <td>
-            <label for="sout_mmsh_port">Port</label>
-            <input type="text" id="sout_mmsh_port" onchange="update_sout()"/>
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="checkbox" id="sout_rtp" onchange="update_sout()"/>
-            <label for="sout_rtp">RTP</label>
-          </td>
-          <td>
-            <label for="sout_rtp_addr">Address</label>
-            <input type="text" id="sout_rtp_addr" onchange="update_sout()"/>
-          </td>
-          <td>
-            <label for="sout_rtp_port">Port</label>
-            <input type="text" id="sout_rtp_port" onchange="update_sout()"/>
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="checkbox" id="sout_udp" onchange="update_sout()"/>
-            <label for="sout_udp">UDP</label>
-          </td>
-          <td>
-            <label for="sout_udp_addr">Address</label>
-            <input type="text" id="sout_udp_addr" onchange="update_sout()"/>
-          </td>
-          <td>
-            <label for="sout_udp_port">Port</label>
-            <input type="text" id="sout_udp_port" onchange="update_sout()"/>
-          </td>
-        </tr>
-      </table>
-    </div>
-    <hr/>
-    <div id="sout_muxh">
-      <input type="radio" name="sout_mux" id="sout_mux_default" value="" onchange="update_sout()" />
-      <label for="sout_mux_default">Default</label>
-      <input type="radio" name="sout_mux" id="sout_mux_ts" value="ts" onchange="update_sout()"/>
-      <label for="sout_mux_ts">MPEG TS</label>
-      <input type="radio" name="sout_mux" id="sout_mux_ps" value="ps" onchange="update_sout()"/>
-      <label for="sout_mux_ps">MPEG PS</label>
-      <input type="radio" name="sout_mux" id="sout_mux_mpeg1" value="mpeg1" onchange="update_sout()"/>
-      <label for="sout_mux_ts">MPEG 1</label>
-      <input type="radio" name="sout_mux" id="sout_mux_ogg" value="ogg" onchange="update_sout()"/>
-      <label for="sout_mux_ts">OGG</label>
-      <br/>
-      <input type="radio" name="sout_mux" id="sout_mux_asf" value="asf" onchange="update_sout()"/>
-      <label for="sout_mux_ts">ASF</label>
-      <input type="radio" name="sout_mux" id="sout_mux_mp4" value="mp4" onchange="update_sout()"/>
-      <label for="sout_mux_ts">MP4</label>
-      <input type="radio" name="sout_mux" id="sout_mux_mov" value="mov" onchange="update_sout()"/>
-      <label for="sout_mux_ts">MOV</label>
-      <input type="radio" name="sout_mux" id="sout_mux_wav" value="wav" onchange="update_sout()"/>
-      <label for="sout_mux_ts">WAV</label>
-      <input type="radio" name="sout_mux" id="sout_mux_raw" value="raw" onchange="update_sout()"/>
-      <label for="sout_mux_ts">Raw</label>
-    </div>
-    <hr/>
-    <div id="sout_transcode">
-      <input type="hidden" id="sout_transcode_extra" value="" />
-      <table>
-        <tr>
-          <td>
-            <input type="checkbox" id="sout_vcodec_s" onchange="update_sout()"/>
-            <label for="sout_vcodec_s">Video Codec</label>
-          </td>
-          <td>
-            <select id="sout_vcodec" onchange="update_sout()">
-              <option value="mp1v">mp1v</option>
-              <option value="mp2v">mp2v</option>
-              <option value="mp4v">mp4v</option>
-              <option value="DIV1">DIV1</option>
-              <option value="DIV2">DIV2</option>
-              <option value="DIV3">DIV3</option>
-              <option value="H263">h263</option>
-              <option value="H264">h264</option>
-              <option value="WMV1">WMV1</option>
-              <option value="WMV2">WMV2</option>
-              <option value="MJPG">MJPG</option>
-              <option value="theo">theo</option>
-            </select>
-          </td>
-          <td>
-            <label for="sout_vb">Bitrate (kb/s)</label>
-            <select id="sout_vb" onchange="update_sout()">
-              <option value="4096">4096</option>
-              <option value="3072">3072</option>
-              <option value="2048">2048</option>
-              <option value="1024">1024</option>
-              <option value="768">768</option>
-              <option value="512">512</option>
-              <option value="384">384</option>
-              <option value="256">256</option>
-              <option value="192">192</option>
-              <option value="128">128</option>
-              <option value="96">96</option>
-              <option value="64">64</option>
-              <option value="32">32</option>
-              <option value="16">16</option>
-            </select>
-          </td>
-          <td>
-            <label for="sout_scale">Scale</label>
-            <select id="sout_scale" onchange="update_sout()">
-              <option value="0.25">0.25</option>
-              <option value="0.5">0.5</option>
-              <option value="0.75">0.75</option>
-              <option value="1" selected="selected">1</option>
-              <option value="1.25">1.25</option>
-              <option value="1.5">1.5</option>
-              <option value="1.75">1.75</option>
-              <option value="2">2</option>
-            </select>
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="checkbox" id="sout_acodec_s" onchange="update_sout()"/>
-            <label for="sout_acodec_s">Audio Codec</label>
-          </td>
-          <td>
-            <select id="sout_acodec" onchange="update_sout()">
-              <option value="mpga">mpga</option>
-              <option value="mp2a">mp2a</option>
-              <option value="mp3">mp3</option>
-              <option value="mp4a">mp4a</option>
-              <option value="a52">a52</option>
-              <option value="vorb">vorb</option>
-              <option value="flac">flac</option>
-              <option value="spx">spx</option>
-              <option value="s16l">s16l</option>
-              <option value="fl32">fl32</option>
-            </select>
-          </td>
-          <td>
-            <label for="sout_ab">Bitrate (kb/s)</label>
-            <select id="sout_ab" onchange="update_sout()">
-              <option value="512">512</option>
-              <option value="384">384</option>
-              <option value="256">256</option>
-              <option value="192">192</option>
-              <option value="128">128</option>
-              <option value="96">96</option>
-              <option value="64">64</option>
-              <option value="32">32</option>
-              <option value="16">16</option>
-            </select>
-          </td>
-          <td>
-            <label for="sout_channels">Channels</label>
-            <select id="sout_channels" onchange="update_sout()">
-              <option value="">default</option>
-              <option value="1">1</option>
-              <option value="2">2</option>
-              <option value="4">4</option>
-              <option value="6">6</option>
-            </select>
-          </td>
-        </tr>
-        <tr>
-          <td>
-            <input type="checkbox" id="sout_sub" onchange="update_sout()"/>
-            <label for="sout_sub">Subtitles Codec</label>
-          </td>
-          <td>
-            <select id="sout_scodec" onchange="update_sout()">
-              <option value="dvbs">dvbs</option>
-            </select>
-          </td>
-          <td colspan="2">
-            <input type="checkbox" id="sout_soverlay" onchange="update_sout()"/>
-            <label for="sout_soverlay">Subtitles overlay</label>
-          </td>
-        </tr>
-      </table>
-    </div>
-    <hr/>
-    <div id="sout_misc">
-      <input type="checkbox" id="sout_sap" onchange="update_sout()"/>
-      <label for="sout_sap">SAP announce</label>
-      <br/>
-      <label for="sout_sap_group">Group name</label>
-      <input type="text" id="sout_sap_group" onchange="update_sout()"/>
-      <label for="sout_sap_name">Channel name</label>
-      <input type="text" id="sout_sap_name" onchange="update_sout()"/>
-      <hr/>
-      <input type="checkbox" id="sout_all" onchange="update_sout()"/>
-      <label for="sout_all">Select all elementary streams</label>
-      <hr/>
-      <label for="sout_ttl">Time-To-Live (TTL)</label>
-      <input type="text" id="sout_ttl" onchange="update_sout()"/>
-    </div>
-  </div>
-</div>
diff --git a/share/lua/http/dialogs/stream_window.html b/share/lua/http/dialogs/stream_window.html
new file mode 100644
index 0000000..50fbcdc
--- /dev/null
+++ b/share/lua/http/dialogs/stream_window.html
@@ -0,0 +1,90 @@
+<script language="javascript" type="text/javascript">
+	var stream_server		=	window.location.hostname;
+	function configureStreamWindow(stream_protocol,stream_server,stream_port,stream_file){
+		$('#stream_protocol').val(stream_protocol);
+		$('#stream_host').val(stream_server);
+		$('#stream_port').val(stream_port);
+		$('#stream_file').val(stream_file);
+	}
+	$(function(){
+		$('#window_streams').dialog({
+			autoOpen: false,
+			minWidth: 600,
+			minHeight: 430,
+			position: ['left','top'],
+			buttons:{
+				"Close":function(){
+					$(this).dialog("close");
+				}
+			}
+		});
+		$('#window_stream_config').dialog({
+			autoOpen: false,
+			width:400,
+			position: ['left','top'],
+			modal: true,
+			buttons:{
+				"Okay":function(){
+					$(this).dialog('close');
+				}
+			}
+		});
+		$('#button_create_stream').click(function(){
+			$('#window_create_stream').dialog('open');
+			return false;
+		});
+		$('#button_clear_streams').click(function(){
+			sendVLMCmd('del all');
+			return false;
+		});
+		$('#button_config_streams').click(function(){
+			$('#window_stream_config').dialog('open');
+			return false;
+		})
+		$('#stream_host').val(stream_server);
+	});
+</script>
+<div id="stream_status_" style="visibility:hidden;display:none;">
+	<h3><a href="#" id="stream_title_"></a></h3>
+	<div>
+		<div id="button_stream_stop_" class="button icon ui-widget ui-state-default" title="Stop"><span class="ui-icon ui-icon-stop"></span></div>
+		<div id="button_stream_play_" class="button icon ui-widget ui-state-default" title="Play"><span class="ui-icon ui-icon-play"></span></div>
+		<div id="button_stream_loop_" class="button icon ui-widget ui-state-default" title="Loop"><span class="ui-icon ui-icon-refresh"></span></div>
+		<div id="button_stream_delete_" class="button icon ui-widget ui-state-default" title="Remove Stream"><span class="ui-icon ui-icon-trash"></span></div>
+		<div>Title: <span id="stream_file_"></span></div>
+		<div style="width: 260px; margin: 5px 0px 10px 0px;">
+			<div id="stream_pos_"></div>
+			Time: <span id="stream_current_time_">00:00:00</span> / <span id="stream_total_time_">00:00:00</span>
+		</div>
+	</div>
+</div>
+<div id="window_streams" title="Manage Streams">
+	<div id="button_create_stream" class="button icon ui-widget ui-state-default" title="Create New Stream" opendialog="window_create_stream"><span class="ui-icon ui-icon-plus"></span></div>
+	<div id="button_create_mosaic" class="button icon ui-widget ui-state-default" title="Create Mosaic" opendialog="window_create_mosaiac"><span class="ui-icon ui-icon-calculator"></span></div>
+	<div id="button_clear_streams" class="button icon ui-widget ui-state-default" title="Delete All Streams"><span class="ui-icon ui-icon-trash"></span></div>
+	<div id="button_config_streams" class="button icon ui-widget ui-state-default" title="Configure Stream Defaults"><span class="ui-icon ui-icon-wrench"></span></div>
+	<div id="stream_info">
+
+	</div>
+
+</div>
+<div id="window_stream_config" title="Stream Input Configuration">
+	<table>
+		<tr>
+			<td>Protocol</td>
+			<td><input type="text" name="stream_protocol" id="stream_protocol" value="http" /></td>
+		</tr>
+		<tr>
+			<td>Host</td>
+			<td><input type="text" name="stream_host" id="stream_host" value="" /></td>
+		</tr>
+		<tr>
+			<td>Port</td>
+			<td><input type="text" name="stream_port" id="stream_port" value="8081" /></td>
+		</tr>
+		<tr>
+			<td>File</td>
+			<td><input type="text" name="stream_file" id="stream_file" value="stream.flv" /></td>
+		</tr>
+	</table>
+</div>
\ No newline at end of file
diff --git a/share/lua/http/dialogs/vlm b/share/lua/http/dialogs/vlm
deleted file mode 100644
index d2394dc..0000000
--- a/share/lua/http/dialogs/vlm
+++ /dev/null
@@ -1,184 +0,0 @@
-<?vlc --[[
-vim:syntax=html
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  vlm: VLC media player web interface - VLM controler
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-This dialog needs the following dialogs to be fully functional: input,
-sout and vlmelements .
-]]?>
-
-<div id="vlm" class="dialog" >
-  <div class="title">
-    VLC media player - VLM interface
-    <!--
-    <button id="btn_toggle_text" onclick="toggle_btn_text();">
-      <img src="images/help.png" alt="Help" />
-      Help
-    </button>
-    -->
-  </div>
-  <div class="controls">
-    <label for="vlm_command">VLM command:</label>
-    <input type="text" id="vlm_command" size="60" onkeypress="if( event.keyCode == 13 ) vlm_send();" />
-    <input type="button" value="Send" onclick="vlm_send();" />
-    <br />
-    <span id="vlm_error"></span>
-    <br />
-    <span id="vlm_helper_controls">
-      <button id="btn_broadcast" onclick="hide_vlm_add();show('vlm_add_broadcast');update_vlm_add_broadcast();" onmouseover="button_over(this);" onmouseout="button_out(this);">
-        Broadcast
-      </button>
-      <button id="btn_vod" onclick="hide_vlm_add();show('vlm_add_vod');update_vlm_add_vod();" onmouseover="button_over(this);" onmouseout="button_out(this);">
-        Video on Demand
-      </button>
-      <button id="btn_schedule" onclick="hide_vlm_add();show('vlm_add_schedule');update_vlm_add_schedule();" onmouseover="button_over(this);" onmouseout="button_out(this);">
-        Schedule
-      </button>
-      <button id="btn_other" onclick="hide_vlm_add();show('vlm_add_other');update_vlm_add_other();" onmouseover="button_over(this);" onmouseout="button_out(this);">
-        Other
-      </button>
-    </span>
-    <button id="btn_vlm_helper_toggle" onclick="toggle_show_vlm_helper();" onmouseover="button_over(this);" onmouseout="button_out(this);">
-      Hide VLM helper
-    </button>
-  </div>
-  <div id="vlm_helper" class="helper" >
-    <div id="vlm_add_broadcast" style="display: block">
-      New broadcast element
-      <hr />
-      <label for="vlm_broadcast_name">Name</label>
-      <input type="text" id="vlm_broadcast_name" size="20" onchange="update_vlm_add_broadcast();" />
-      <input type="checkbox" id="vlm_broadcast_enabled" onchange="update_vlm_add_broadcast();" />
-      <label for="vlm_broadcast_enabled">Enable</label>
-      <input type="checkbox" id="vlm_broadcast_loop" onchange="update_vlm_add_broadcast();" />
-      <label for="vlm_broadcast_loop">Loop</label>
-      <br/>
-      <label for="vlm_broadcast_input">Input</label>
-      <input type="text" id="vlm_broadcast_input" size="60" onblur="update_vlm_add_broadcast();" />
-      <input type="button" value="Edit" onclick="vlm_input_edit('vlm_broadcast_input');" />
-      <br/>
-      <label for="vlm_broadcast_output">Output</label>
-      <input type="text" id="vlm_broadcast_output" size="60" onblur="update_vlm_add_broadcast();" />
-      <input type="button" value="Edit" onclick="vlm_output_edit('vlm_broadcast_output');" />
-      <br/>
-    </div>
-    <div id="vlm_add_vod" style="display: none">
-      New video on demand element
-      <hr />
-      <label for="vlm_vod_name">Name</label>
-      <input type="text" id="vlm_vod_name" size="20" onchange="update_vlm_add_vod();" />
-      <input type="checkbox" id="vlm_vod_enabled" onchange="update_vlm_add_vod();" />
-      <label for="vlm_vod_enabled">Enable</label>
-      <br/>
-      <label for="vlm_vod_input">Input</label>
-      <input type="text" id="vlm_vod_input" size="60" onblur="update_vlm_add_vod();" />
-      <input type="button" value="Edit" onclick="vlm_input_edit('vlm_vod_input');" />
-      <br/>
-      <label for="vlm_vod_output">Output (leave empty unless you want to transcode)</label>
-      <input type="text" id="vlm_vod_output" size="60" onblur="update_vlm_add_vod();" />
-      <input type="button" value="Edit" onclick="vlm_output_edit('vlm_vod_output');" />
-      <br/>
-    </div>
-    <div id="vlm_add_schedule" style="display: none">
-      New schedule
-      <hr />
-      <label for="vlm_schedule_name">Name</label>
-      <input type="text" id="vlm_schedule_name" size="20" onchange="update_vlm_add_schedule();" />
-      <input type="checkbox" id="vlm_schedule_enabled" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_enabled">Enable</label>
-      <br />
-      Schedule date:
-      <input type="checkbox" id="vlm_schedule_now" onchange="toggle_schedule_date();update_vlm_add_schedule();" />
-      <label for="vlm_schedule_now">Now</label>
-      <br/>
-      <label for="vlm_schedule_year">Year:</label>
-      <input type="text" id="vlm_schedule_year" value="1970" size="4" maxlength="4" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_month">Month:</label>
-      <input type="text" id="vlm_schedule_month" value="01" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_day">Day:</label>
-      <input type="text" id="vlm_schedule_day" value="01" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_hour">Hour:</label>
-      <input type="text" id="vlm_schedule_hour" value="00" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_minute">Minute:</label>
-      <input type="text" id="vlm_schedule_minute" value="59" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_second">Second:</label>
-      <input type="text" id="vlm_schedule_second" value="59" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
-      <br/>
-      Schedule period:<br/>
-      <input type="checkbox" id="vlm_schedule_repeat" onchange="toggle_schedule_repeat();update_vlm_add_schedule();" />
-      <label for="vlm_schedule_repeat">Repeat</label>
-      <br />
-      <label for="vlm_schedule_period_year">Year:</label>
-      <input type="text" id="vlm_schedule_period_year" value="0" size="4" disabled="disabled" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_period_month">Month:</label>
-      <input type="text" id="vlm_schedule_period_month" value="0" size="2" disabled="disabled" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_period_day">Day:</label>
-      <input type="text" id="vlm_schedule_period_day" value="0" size="2" disabled="disabled" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_period_hour">Hour:</label>
-      <input type="text" id="vlm_schedule_period_hour" value="0" size="2" disabled="disabled" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_period_minute">Minute:</label>
-      <input type="text" id="vlm_schedule_period_minute" value="0" size="4" disabled="disabled" onchange="update_vlm_add_schedule();" />
-      <label for="vlm_schedule_period_second">Second:</label>
-      <input type="text" id="vlm_schedule_period_second" value="0" size="4" disabled="disabled" onchange="update_vlm_add_schedule();" />
-      <br />
-      <label for="vlm_schedule_repeat_times">Number of repetitions (use 0 to repeat endlessly):</label>
-      <input type="text" id="vlm_schedule_repeat_times" size="8" disabled="disabled" value="0" onchange="update_vlm_add_schedule();" />
-    </div>
-    <div id="vlm_add_other" style="display: none">
-      <input type="button" id="btn_import" onclick="vlm_batch(document.getElementById('vlm_batch_text').value);" value="Send command batch" />
-      <input type="button" id="btn_export" onclick="document.location.assign('vlm_export.html');" value="Export VLM commands (new page)" />
-      <br/>
-      <textarea cols="70" rows="20" id="vlm_batch_text">#paste your VLM commands here</textarea>
-    </div>
-  </div>
-</div>
-
-<div id="vlm_broadcast" class="dialog" >
-  <div class="title">
-    Broadcast Elements
-    <button id="btn_refresh_broadcast" onclick="vlm_get_elements();" title="Refresh" >
-      <img src="images/refresh.png" alt="Refresh" />
-    </button>
-  </div>
-  <div id="vlm_broadcast_list" class="list"></div>
-</div>
-
-<div id="vlm_vod" class="dialog" >
-  <div class="title">
-    Video on Demand Elements
-    <button id="btn_refresh_vod" onclick="vlm_get_elements();" title="Refresh" >
-      <img src="images/refresh.png" alt="Refresh" />
-    </button>
-  </div>
-  <div id="vlm_vod_list" class="list"></div>
-</div>
-
-<div id="vlm_schedule" class="dialog" >
-  <div class="title">
-    Schedule Elements
-    <button id="btn_refresh_schedule" onclick="vlm_get_elements();" title="Refresh" >
-      <img src="images/refresh.png" alt="Refresh" />
-    </button>
-  </div>
-  <div id="vlm_schedule_list" class="list"></div>
-</div>
diff --git a/share/lua/http/flash.html b/share/lua/http/flash.html
deleted file mode 100644
index e38c842..0000000
--- a/share/lua/http/flash.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-  <title>VLC media player - Web Interface with Flash Viewer</title>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <link href="style.css" rel="stylesheet" type="text/css" />
-  <!--[if IE ]>
-  <link href="iehacks.css" rel="stylesheet" type="text/css" />
-  <![endif]-->
-  <script type="text/javascript" src="js/functions.js"></script>
-<script type="text/javascript">
-// <![CDATA[
-host = document.location.toString().replace( /http:\/\//, '' ).replace( /[:/].*/, '' );
-input_options.push( ":sout=#transcode{vcodec=h264,acodec=mp3,channels=2,samplerate=44100}:std{access=http,dst=0.0.0.0:8081/stream.flv}" );
-input_options.push( ":no-sout-keep" );
-// ]]>
-</script>
-</head>
-
-<body onload="hide('playlist'); refresh_input_options_list();">
-<?vlc
-current_page = "index"
-dialogs("browse","main","input","playlist") ?>
-
-  <div style='height: 100%; width: 100%; text-align: center;'>
-  <object type="application/x-shockwave-flash" data="http://flowplayer.sourceforge.net/video/FlowPlayer.swf" width="800px" height="600px" id="FlowPlayer" style="z-index: 0">
-	  <param name="allowScriptAccess" value="sameDomain" />
-	  <param name="movie" value="http://flowplayer.sourceforge.net/video/FlowPlayer.swf" />
-	  <param name="quality" value="high" />
-    <!--	  <param name="scale" value="noScale" />-->
-	  <param name="wmode" value="transparent" />
-	<!--  <param name="flashvars" value="config={ loop: false, initialScale: \'fit\', autoPlay: false, configInject: true}" />-->
-  <script type="text/javascript">
-// <![CDATA[
-  document.write( '' +
-'	  <param name="flashvars" value="config={ loop: false, initialScale: \'fit\', autoPlay: false, playList: [{ url: \'http://' + host + ':8081/stream.flv\', controlEnabled: true}] }" />' );
-// ]]>
-</script>
-  </object>
-  <p style="font-size: small;">Uses the <a href="http://flowplayer.sourceforge.net/">Flow Player</a> free flash video player for playback (client side).</p>
-  </div>
-
-<?vlc dialogs("footer") ?>
-</body>
-
-</html>
diff --git a/share/lua/http/iehacks.css b/share/lua/http/iehacks.css
deleted file mode 100644
index 2d51ff1..0000000
--- a/share/lua/http/iehacks.css
+++ /dev/null
@@ -1,38 +0,0 @@
-/*****************************************************************************
- * iehacks.css: VLC media player web interface
- *****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
- * $Id$
- *
- * Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-div.menu {
-	margin-left: -30px;
-	margin-top: 15px;
-	background: #fff;
-}
-div.menu button {
-        background: #fff;
-}
-div.menu button.menuout {
-        border: 1px solid #fff;
-}
-
-div#mosaic_list {
-	background: #fff;
-}
diff --git a/share/lua/http/images/Audio-48.png b/share/lua/http/images/Audio-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..cac34ee317e91d43f311efabbec1fa0407ec5e4b
GIT binary patch
literal 4757
zcmV;G5^C*<P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00004b3#c}2nYxW
zd<bNS00009a7bBm000XU000XU0RWnu7ytkgH%UZ6RA_<KT3e8u#dZEpcmKDUe=a+_
zvlnS~VG)*u5CUXNT#O0{3mapwjY);rkd#rC%izLgLRBhGp8Vi)#T7fQ<RP|Gd5H_h
zu>&ZsT!0`O19rGdTm@()Sgo|Hz0B^;&gH*%pFGTrSY#P6HmS;~>goS7)BSztoIZU{
z*AO$~|Fh8hIrzwD{}H8~e~hd(4={Z;jgy-!&%Td9_c1u=eNX25G5^!Qz~X_w{;lT_
zzgNU($l{}ahqQhYWO-m?KHNGvy(_9W?|`5`cnb)}0!jNl&GEhxh)+I;li&XobhHfR
z`_+*(PN8{xa&3EV;V(&u-2lLB(0=t%qziAnr#a;B74ca_H)jzXeH8i4dp|RF!O*t2
z6~!~h=Cb at ixsPn?VUxC#<KMUh at u`>I)A;YJ1$q*nIEZNaC5Ch$9Vv8 at rmeY!D<J4<
zfIyb_p2vPa2~f8Q05C!#V-3v=k|GNhm#lcX`DGTgiPP{sPojPoghB{%9LFMpecg4R
zSbzTc=Wlc!r%y;BEz7cm5F|(#p`)e!eC|1R9KsPSAlcGMk}OY7om<_w{yYATo4?$8
z>PJWZ&j>h<BS%L^t9$qE{lGQX?ER4Edc*72uXhTCf}=GHk|L8*X^_yClBU1p1ke6k
zP;7?*`dsByie6brAPB;^-wQwD-}b$KILhLV;OQT}{Js;|v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~B&0OMLf%<JlpkomW9joNJt(42<%2G;C2w_VpZ6SnYW}~%EjWMy-Iu66IVT at S<
z(Cz|`&~a1UZSPbN{>}te5<!=Y>Ncy}_el1{tN at syqvZ^5<}`2X=Wi#!uYar1ik{AR
j))U6ByT<SQU!VU4^*O+3-jw5p00000NkvXXu0mjfo&Nd@

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/Back-48.png b/share/lua/http/images/Back-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..169f5239baba91c9d7087c2dc952c18818791fad
GIT binary patch
literal 2135
zcmV-d2&ngoP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00004b3#c}2nYxW
zd<bNS00009a7bBm000XU000XU0RWnu7ytkV`AI}URA_<4np<ofR~g5D=giE`t{vO4
zy-q at 6nkKaAEh2H^Ha3D6io_c)NQm+RNKhmS4?s~QE>bE4f(LHm(h>m at 52%%pDxMHL
z at Bjj)OVa`^w3J>FH_olu*m1nOvvWD;<6+nCuD#Cg&Kmlyjvr>{JLmtKbH4AKZ at fxG
z*e?6wpT4d?^X at O(EWSSob~84Xv|StWr+E5I3<BB}6beTxmX>^e^obV%aQhwT)Z>dc
z`SzptedEcC0YDtt`BM)}Kh<l$N(oxGU-R5N!$YeWqwsuiT}V?G5w(6#8^G^gt9Kn}
z{zS3k^`KOq^KvRUesltWGk?1loO*n5e*Q#p6U6%u<~RALM$k_CHP^{gERM5qu11<d
zzMxR5eZ_2G&SpWWjGI%z?93!*7vbz8%+5^W<x~)q%5%N+Ay(mPAFV-aa2yxko8<QW
z?;r|2!fFoB at mOBUZ7)DjD$lu|l6#xt*K7^K_2>!0_j9=R2)9mrm|Mm_$bpHEFzVmI
zaDE&|4G~8kBcl#h6hHpt3)=$_l*)6COE7z^U3?qFu_BJ!9im!`IRD1;lvftGURmJU
z>WeH at USc&|=KlM4apXvWa at mm2n>IhynuU6afmZR_A-L~&k#iSre($aO;IGe=v4;8i
z6UC=G#Q?y!|F{RoF(}^DBq+4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|lGt~FEd9=`22o>yXoyesHXm;xL2g)Y{Jv(CBu
zBJxB;mh}zB7%(%4Xk2TzXtRL!^N>JUmgsakN$@GnN5F%bA6e(zu815k^Rfn at L8siP
zjX+F91XWc{B*_qXtS?po2!MSnA_o8-0=T6oTo(K^0?Z6+?S=lBB~k<$<vs!Mz&htn
zjWLH_;~GFn<XI2^fU+!Mt&IXr5sFyg5Wv1=W+9 at -T0<e|(C>AaoR@%iBY(zHR!Fr~
zuz4sV2etuxq$kaybswR^!yS?cbAgD!hwKpeG$KJc1kkq)qobIqwWh<+m(qUQW4I3v
zK17FeXF1p^N<J15wv8Eg!#ogzXtG~ayP8DmElw+A9xJ2>G4qi~^DxKE+rbGR1C41@
zYd;*H_0d|t%BHLk>r;E569BLivWz_sg<xakW+f0N$2I~n5=68kBJhWJS457PxfdSF
zRK%GUDrXUG?P;2i?6VDEWC0O51#l`NJ%2+AeCqJFk%~#%Iw>Wnei4zKF#(J|IGyM)
zIt~0~-A98F5ri-4F#-`woQTLC0Qe|W6VYkx49o+59`^yxBUbn>ks_nor%f3X01=(U
zd@=-<a-Dg>>pj{&`X&gRVB|ID1e(-*A)}^zH6%F83r%c|)W?G<5$^;*4V<3=F!Mic
zVbqIGRN+}k<%G+)+!O-GzF`&U`{5xD7f5M3NH7=3wpmZl)8i at fK5vZ)sGGM#3xweO
zrr}uIA#5Wbt~<*)YSww+=V}6v^dhsE_c8}JC9$mBvj1PcZPg9^&=pd}kB9ZN7oBGF
zsdcKTHTGi!{sr&{5xot-5s@?nH2M$bCr<P!u)ZxJnLw+g`u%5oA|g`rNEJViM1(}-
zKLCGEET-fW0PoUh_Y$N3QnjjmajIrj`?e?S{gW{IH|A>tAXBw2HYj;hIt__G0sPe9
q13gPWz6!ba|A}7`xN5of1pWtnTsLgH5-&Ue0000<MNUMnLSTaaV40Bs

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/Other-48.png b/share/lua/http/images/Other-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..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6ijC9>K~7<qotc>~6id^Ce(&PM
z?KFV1Pd at ScI|Ov;Tep1U%W7vEwR#Qac#L7Gh<<+vAte|We$q4i8p<>zxJV?tqtYoj
zriQiCq&iK;#8RtOsZ=WSgMRN~-rvYHfam`7#2;>d;%`sAxJMFQ$3 at Rm=(`?9<1rk^
zf#bSxT^C-UP_E~}^OWCJ+>?KCQK{R9V4hSgJwdSWvMEKQ>3WT|TCL+iItH?B>z}W_
z{MJ-`=7#yDl^G!oNJHY4S6+oZ9!IX$0JKtY9M=ctIB+wg<2bM#8 at BDhacnrY9jt?S
zVr?hZj-7dC+i)BQM1;Tm^{MkOoqO at gJPL))QJ(k5habA{hn(}fzVwx^wx!@OO%r3=
z2IB%;NEn6*Ati(m5Q0aEO$2pQno4=ej!hm>!(uQivq1^M7{kWq=H^Fv002DC^WJ&&
z{L9<3bIqHUj;)jp$?@U#4hn?=EUN%1WpJ&SE(JnO2c<^}C_&L3QjiHV=LMFyTS|T*
zxPN-{t+%^p9)Ilqj{*Pyj_WvYzWDqzTT|1G>#x4%nyKxb9Z17Kp;(A$6g5guV^|sp
zHkX#ySY^UVyr%d at JJA?pxO{nc{NOJixbH9uCEK2Dj~~DPp1aMt#_W%8`ut6e?VZc8
z3I+fCASI*}eis5lgrk2sAUHojp>oRcFmq>dX4=Na#!7Xn);uZz0N5RmhL8UAj@#Uu
zzxMTSp6GNImDW5ZdpSBD$zXymAuZxLV!e+>|DU9H!WCnT#<mS9MC0gJXmP6oXalH!
wg8%!UYz)AKPXYh{rT`R?BisMQ#sKvG4OJjs@?4~+sQ>@~07*qoM6N<$g194Q at c;k-

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/Video-48.png b/share/lua/http/images/Video-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..e3b1be817a8a1baa2a407202e5b3d943ff4c9697
GIT binary patch
literal 5357
zcmV<J6cX!+P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00004b3#c}2nYxW
zd<bNS00009a7b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UD%CQI;lWT1 at Dzvz6#|-#;*n5g4;7I{bGD+|PC|YkE?*rF{nbN6BT;P2rna^g
zy{wbXW)tUnZNCY?`4ClL3Mg2XHIdC`e+jhSyY}AJuYdjPS9Y|w^>!`n^m_a*#p8A(
zA;^^Sq^8qcpShT9s>0M*k&$Cb29M7$HF*%T*n~CfCtJ=jt{-Mn70hew28Yh_Wml4%
znkF0$bIr<Yc>2kwF)fp9Hai>+hcD><{J#LsL7cntoQc|#z at B5rj%Dw<>n_>r_0|Uh
zflxRcu4`#&=~%E}L0 at lgZ%=o3S8GFkLv-Ha24CP0{HjYk<26d<0=ayFe6~V5RbcSg
z0*)R&NkFmC6q&16Uc>OvFr#Cmq>?E#S)))cFfcH1U}|cLkM_wvzV-L<`slL~zdrOI
zC#TQn3;O;3kl*jGZ*On!?Ck99>F)0CXlQ7N#bUL!(P%W*(9jU_`+b0oZ90$@87#=n
z<}eKtm(RsaW~T7iV~=%IDwV18yOmEp_0(?#@b4|v<MGtg*Vngobab at G<MGyLELv9=
zt7~p=Z*OmHZEdNmtBZKN9=5->edptkKYo=E;(`OPfB*jfRDgd=o|>AP#-^sGwyv(O
z_C<>pMK^BTxc%tSqx(Mkpb!G-_x-O1{~>MG-=+RPz<;)W?*aY=4%Mz`Metm<00000
LNkvXXu0mjfScO|`

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_eject-48.png b/share/lua/http/images/button_eject-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..f8a6f2e8701c05a43c6b6cd32a9e78dc1d6cafbf
GIT binary patch
literal 1936
zcmV;B2XFX^P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000M5Nkl<ZXo2ln
zU2GKB75>ir0BghA1{`RJO&S~lp`{W=!V&)xnDzlw2!vKq<(DRL`xHkZQKU2|AySk)
z^{H(ll?o||AZkKHt2U4yAcXK2)9_H6mMHB)76Zm!+dIo*@7(kCVRvm~&#b++sT9ed
zbT!}AojLcMIp^MU<_<84NlfB94Vfr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vf|$sdxm2lN?RBNZh3Nba>P`B^%h4lLTjFs5ZWb?P*m)YT+k1yGA@
zLL7?+G6b3}k>^F^L~n0z(LXrGg(*{}xQ^r0+qV6-Wm!qfvS?YB=B|Z!(zfll9mlD6
zUDq9t4imO9+O{1bxq at UJfQJCg!$7820N(;=6_L{-a>f`lAwT&hF^Nfh$MHY2rW)a7
Wqb~UX0000<MNUMnLSTY1IWsbSpR$$!

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_ffw-48.png b/share/lua/http/images/button_ffw-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..1d57bcf3ee72d3650ca241aa54eb6c1501cc8303
GIT binary patch
literal 2100
zcmV-42+Q}0P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000N~Nkl<ZXo2ln
zU2Igx75>iLU7NLy|0ux(6w?YYB<e%41BL)fr2r{XC??P}iYmV}fcjucT7{nk`d}w0
zRFF!jJfulgqJXN>1c_Dwk~DP##SnhfJYbtfNZ5%ng_`xxHOqQ;&ew<CwRi2k_8OZ?
zk^D)cd+yG;XU=!$o4GTyzyu~Rfp0WqyaH|9v^fwChb!G4w-SPRBxitd2m*j5(FU?P
zds6l}$2jMX9C<G^9_@~az~;?A^SiG5{m!ng>Vks&HPfa|%PT1<VNp?$_<TOtXp~k}
zqR}Y&`uZ3Og(MgZqP_j58w>`I`~AK{j^q3L`+xpZ<o`<Gr!Q`FdV719xo+>C84o{P
z{@7!W`U(pR<xVh&wzeC*efyT&yBCJFma0|&z!--<$B{rFfTH3e`u%>nefxIg=FR_H
zB6Wv|oc`-yj at t)L;Dr}{QqXbd&fY0gimR7Cu{0|Xn1sfrX0)`lAQT#%Dsln=<mBeU
zb=|&TFnGuqdHK}I6J4W;F)9MjJ@@?luCC7aD=I4Hm(45V7ytS~{{7{bAjzayqqRYj
z)>^UFHmPdWCm(-wb=(Q8-|(Xay>9OZD^@)9h%rXaHk_mDx{^o%ko&X~_YhS at Bob*M
zx$e`yeR6r+2&`M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HcmV?d00001

diff --git a/share/lua/http/images/button_first-48.png b/share/lua/http/images/button_first-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..d1bae6b8936d9119f9a56fcc7ba3451d96ae29c9
GIT binary patch
literal 2036
zcmV<Q2MhR#P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000NKNkl<ZXo2ln
zU2Ig>5&q`hyWlkjY^Vzj5jIjIAhfB9k#N+2VioL$1|$e+ifCgM+LRXOC25c%%434s
zJS0zTURnt$i41L0iMA974JcH>Kuj at IKnoHwjT0!f*K4o6toP1*eb^uN=kD6Zrcxx2
zbav<NopWa9%y(waISWkD6iw0Rnq;yDdhW+N!ihwpF*X=$gkTBD1t4640H7p#Kwg<%
zF}=fe+>UqNc`H5{dMD(-jvYS@#bU9h{%Evy_Uu_3=FOW|HGlqm*3{I9=Xp at yr<#fH
z`xqG+VLTp}NF;*KKD!x<L?Q=6A#b1SddJ`W{ek5F)qx-W=s9<2XlPX|Hnexa0}nJT
zTlTP5U0p4GkqCNvKIQG(|B*X)5>Qo|sQ`fExb$3C!r?G#=F~703d!x;x05$--s&Xn
zWf3{~r#~Ll`|iNjt>2&B+t>HYxpU{VKK6~rriH^5xODjny1Tm(kB<)(mEkZdXUsq>
z78{8~BKsUib{#qVm*{xL7?%UjJhNqKG}`~}iWMuCE?%;jUFW;xUstb!By+|ZFAtJb
zRZ-Q;X14Lz`$zvd=?-ju`a8>qVngq(UAtzX<2drssSd_sG0B(!$UX9zXNZ|0nM`(*
z-1Na;kDZ$|2R3cmym)AM=ty&O^TOERAkLiq80!0D={jywGx*8m4U#P<PJA$GBt~^$
z<EE!(N23F$TAJ4`jYRs<dG1^${1bsq9)$9rNmY|%GI^P_NB?&6!?J6_E%)-N%}=|%
zy}fTVG%WuXNu2%oEX)ifg=FscMESgDfC8{qRcq?%>JQzx(almedgUC5#bT>w&Yacy
zrTO!D<mmfICbO_fRVP*YelqVj&kMnI-CTuZ;RD_Y0JN%UJAf0VY%B?(_3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y8b^VU<;iCFzTQ5*@WPASy?Zx?hlhz&wkgz+<xMShHKTU$)1IEdE02<i
zp0s_c>Zf;#MOnzq;QM|NB$CM_N at TDsf8fCH@a(g#a`oy}@qJ$kbQJQw(e{<Hvy1~c
zuBx5B`hlS(i1zk&kVGgHg6DZ4iT(TcgJ9Y7fYETi>pZq>*@A7`wwIPyg{t2P@^~pb
z%jUPabHDI7z{4Uk4FRc;Bv_D6#c at VWn`5E$`8XkvCwhDTd!m$F*+YFe9R4?H4+2<0
zLI4Uab?BxMlFdSrg-~YO1KyP_#|OP*=6CWpfcz>RkC)t!j5<}-)zz~}oDz{GlXsUr
z3K1ZAMFfxb_xG2*RvD8?vu4d&O!5ds>M{p-+^2h?bTYf)h_nn03{3oDD??Q?XD+AN
zdm^&%K0DAY;%th=1}E=oF+-J=GZvHf2SAoiz5^5zmmNno4i68H`Es}HA}*w4GT9pn
zh2Ao=IV8VI(!FcXy*1K6a)jh>9Y?+!kH-TyZKdd*mgV&66)tJ3NbUvDfYiC-ULuer
z(CLW0EFvcpiNv`7;Fu6in>H=vd0w;Yx^Fv<Gw3)D9mlcscR7C0b=|i;&ub2aLZOM+
zFlmX=b=@$@l_VPhJPcp~?pAsO at Cks+BGMrur&V=Q{^XmYDVn0sIsFfGic8MiUOx^1
S0000<MNUMnLSTY2Ff%f`*XWY~

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_full-48.png b/share/lua/http/images/button_full-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..07b6b1eecb2edbc6f843e54e8444e5480f27dc1d
GIT binary patch
literal 3022
zcmV;<3o-PGP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00001b5ch_0Itp)
z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipb$
z5<3XIuWNGv01Hk at L_t(&-tAdya9q`q{`%gzGjnIgk}QoL_UMIU;|C_NVAit1GD>XW
z1W5$h*leY?sLE>z$^P4r%HRA5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}d<skrm!PHM?TtzTGK8`C_
zuE6PXQFV3oywqbVT|hFK#POCEJonsl@?m>BSmw`_<C*0$fJY;dNb(c)g_6l+%H?vN
zWacIjDVQ?vyuQ%&>({BXvlE)8;g;%Z_<X)u0OIjDetYZ~o`3#%T)K1#a|6SijoU{+
z!^Ffy at Kfo`rBbOer^|Ipn0G-We~!@UIyO2nfzHlOVP>kXu0~#79suC__3Jot<OqK8
z^Pl5twwF5h+mG*=`v}w=i^V!V)!t}2oemj>vxS*=h at f~O03w1|ERN33E0jzov1ZL0
zhzMSO`5=Dz%NL}lr-v45WMu~vvs at xVLn4vrSgc-4Zm*lBna|A60(cC7lm1L}^85X$
ztE)p^ULH=IIPqr_zo`h625>;rv?ndg`s~{4IdZw&x(II*k*5IMJyloCi{rYki>~XG
zPN(O#)N_1BfO8trkBF!>l}agmp5$~o4Tr-~uj~3jP19nUrirF$Jazp`d`#E%gARwI
z-dIfj at p=5or|Y^YBAZ2|2EYaYff>mn0~i2siHJ at UQJYfA!cDqKH|Zw*Kl2)x;t;5`
QQ2+n{07*qoM6N<$f?cNA^8f$<

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_help-48.png b/share/lua/http/images/button_help-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..7f13cb5577eb1c5e98953db574b0ca1fd1b4d42d
GIT binary patch
literal 2180
zcmV-~2z&R5P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000O_Nkl<ZXo2ln
zU2I&%75>iLT{~;%$9C+1y@|o_U<XJkaTGh0&>}VFiBtq=s7RHU77#_^tx{epirOOe
z1@)y5Rj8Ce5L6_UXr&TxohSy!Noz;65JN*7{Ffgm at p{*Hz23b$=j+4nI=lAX&DwD*
zA>~-BIdkvaGv~YKn{&o<fm?D*ZpqhLWVsAI``q)PWHQ<5PP?5Dw2=%0a7Y4xB{2^2
z^U4*K{f=?^-+JrK#B$7gQvjZS{)M3Hx{pjnqkGq^S-tbN+iqKV`|Y>0wzgIRfdJH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n~4eh)xBk^N&{
z%ff4;qoe5P*ot-Q)`29tySuS}|9&J>$%W&K^|QJvKL_x1Bodh|<zrdoUcGvCE6Jk}
zxg#&1`=&msN|q0lj4T)fpGBNqxFbg7(O4{Y^9NfwS-EP}W~v?$k>(o#SfoB5z_5tf
z<+{_$ceI$3s;cT%QvV3Z#^nb<Au(i(JU%lsQ}*F*c?XtR at jUNZFc^GORqIG at BI#WB
zXK6oDK{7 at 1_r}Q6iA194rp-^5^ns(Ya)m?cc9O3GXh$ZSEhPdTfdM13Pegi?$>gFx
zaNLwsR8#~5fk2nzIERce)5aJYV>H{A(x)BAITQ#4x`M%A at Me5iQUr>L<2WIb9V9ye
z+yfwt>u0YDU<|;Ji1drdDQoSreB`?&x8#<5&E>!Cw&w*GR->^10000<MNUMnLSTY2
GF*i0Z6Eo`o

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_last-48.png b/share/lua/http/images/button_last-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..68c1685f4ea296c1880d9a4673b956eedf849549
GIT binary patch
literal 2018
zcmV<82Oao{P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000N2Nkl<ZXo2ln
zU2Igx75>h>yV%R0Z79VF5nf*SNz_KgNH}UhMk=NyfCPckD5|VfZA$w}ln7oL)Cj9d
zq?$^ld1)o2B!Z-&5~MUFG at wug0|6Bz46TtY)3`vXS+Don%X;rQUmteY_Ws=U8cd}~
zKGNu(*?Z>9`R;r(XJ!_dk|~*zue8WyIePJ at J0hu6s>w at uO%N<4xd4Pq5CD`!FUV_E
z)m0s?<959J?%T=9==XsD?AY=1u;+Pe`s4A|nwr_0=Fgu$v%bEbb#-+T3WcD)Pc;+Y
z_c1&?%w#etu~-Z at Z{G4^vDlGtICQ{uLnlA@<9q4<D}W#W<VAOIaB!994Yn<K^wGvA
zo_IV|TU#r4V=?sh{+oC1{73HHOF>m>rUC$t<1*yB5{X1mH>Zx_a9Hl#xs$$i>-GiG
zc8SR8504(vhYs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
zRs--QfU6?XAtGm0byEK1o02J+lCQY at 4=v;5B-^a_BLDyZ07*qoM6N<$f-*2MH0{3M
A8~^|S

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_pause-48.png b/share/lua/http/images/button_pause-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..002a55b50f1d0c9fd65d947e339dcbfdbaa1e6be
GIT binary patch
literal 1917
zcmV- at 2ZH#CP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000L-Nkl<ZXo2ln
z-)|Jx75>hh8N>3+KQM(t1bG7z^`V#qM-3=Q#k6Taf<V(Ms{GQXw0}UQDC$!cMe0+Z
z+Pt(9QW8Pcq!MjuNaBD(6$}KFJk+MmlW9!A)LyT5%(A<4&ew;XU3S at -^%|Q>k$j}l
zp4mBj?)m0^_ndR at 0!y+aOY)T#Su95{{q$I-SS<F3`LG{?Z6r5=@CX8ck{AbhZQ1f=
z!=Ceo-+Jqf!eWfOAOOdX{X7W6aPM?3H`v*^=HUAE>sM{quz}s(-QxQ`G>WKZ5=9Y8
zr4kE;f at HH<eEH?gFq_Su3IhMQ=lN&f{?i}J|5pG%{>e+;?Ck9BFr0mD)5eW`k3asH
z-__M6Q`s!W$8YfV?FqSiw+L0GnF;_n=h62($z(F<?&)R_1akZK?efi=x2}-(vWT4j
z>t9akLkIBUi$Cg|oSORe+O<7{Pk-y_j!b4bMn<n;Y-|jL!u(jVB9p<2l`9d3VJVx<
z9(PWDapv8>=jP*MUI1Qr;fLFEx#_oe?%cV3>$a`@?9<QW-=BXDlC1MJUmYZ=s-mi+
zW_IX<_uu>1q60W`^!qzz!`XNC?fdp-=bU_eVVGeUN;L#P9#F5|L(B~2a(Rs8;SYyC
zxVmTn4j(?Ub at tBenSp_U&0#)|OP4=^Mo~LIowukNqH_5<$^GZfeK_Y#%n9Jo;paPZ
zxtR<52lj2xW~XuG>ecG>FN8J?6l%ODRZYs}@+fIf{p0*cE!TwC>f!T8j(U at mlfUWf
z+wmQexctdwm>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%IUgw$ilQi$LZwo%mW4{CV#A)H-o9Ke
zR|;7Ig<^~m!Q*LhrdBEvXI1q|q)}q8P7o(foB&A#K>*+P;rl*<Ai%`L1cru&YPLf|
zL%20D(O~2IK1kx^$&(<MI7X$dj;??_n-*uwP5s)nz0UxAS429HkWzWCST#BoL0tv|
z>h``(w($lh(KlHX$ag0v|9dVi#+IA<OeXUm(jEb at lY{^iT4mEsBc#?&OI>>`5P<-w
z*#eNtNsuJi*V(b+myC7t_kjGiP$;BkfjN&=y1KeLNn8+-ZHsr7J%<n=c})aQO;1m^
zJXUEdq%~{SY$bUHB3tSf<3l+YiWly6C$fKLW at h0BTUA-Ldi4&Py(1!<A2NV35qCHY
z^NV-1Sd|qkR&FKj&wy-Sd;k;@qt3~pJ9qB1eYo3l5#KN6a(OZcf;Y^phvYX%diUaa
zu!}U1ERp<!bMk{ip^(_LrO5*=%Vo=!d!+3q`5J&eR0`sQ%s`pI6({nth at 3ALi}U`2
zV?ol<(GmE*Kj3-Zo6fnsbB at kAi$7cGdC&9S^nHII2!dcCF)UhQ^gJ&^au>;d0FMFK
zgnO0V0DJ*pR78eF<f5uB%Ab5ovLs9L6_@`35-6Etlz9zD00000NkvXXu0mjfF*z|a
DQ5Ugj

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_play-48.png b/share/lua/http/images/button_play-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..6ed65b3354d2274a80e865aefdcbbb6a44b77f17
GIT binary patch
literal 1981
zcmV;u2SWIXP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000MoNkl<ZXo2ln
zU2Igx75>iLUCbK%vo_S`*HNX^kO-s_B%36rEeW<C3K9egQB?fWQk17usw(l&CXMn_
zQbGNIsuHRyG!QjW<4Ck>LmL7rO)zncKv32+$%8459Xs}V?dx6EyK}xi?5?rR-Syg-
zN|F3YM|0-R+_Uq|eD~bBv%nnYFo&-+WVQnB{n5TaJRYxghuvBTR*_r=!XXF%mP8lG
zj)M6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
zkE?1K$u%UM+vAy;kqVNdB!6#=?2g4^o}0F8n9*ZdP%z&iwT|S=03Jdr9nWM15(L_f
z$bJzy7mvrM{RhWgVcxuXexJ`*?>Np0W6ZEIhQ=68m%035$8k>he7<_W-|xShG0a+G
zbQ~u at vW8?WfCm69!|hL21#lBUNJLsi<bt(!R{rFh!yM-D703SoXy6MgAHcAE00000
PNkvXXu0mjfF*!FkfX3cJ

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_rec-48.png b/share/lua/http/images/button_rec-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..1ab41ea9b7a3b3c267e10a21998473c680ab1f13
GIT binary patch
literal 2014
zcmV<42O;>0P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000M}Nkl<ZXo2ln
zU2Igx75>h>yS5ht_F@}5A%X-RYzI at f*b<H!j45E+2O>d8lPaosX;aivATO=*S`nq`
zOH&E;t(77rQCk%%g^C1{2Fp}nFt(f8!lY4%>=tZ8m-WwG*6Vxce0|tmvup0Iy<jRu
z at +Xb%nZ0vo&Np-B%sI2b5|*%puQX(_I(p?t2SbTOqQ#kVS|F$+xdwzy5C9B`8z8S0
zmlSu|mfiK<d+)>-W88-#aPZ)dgO1~DAD@^wP*%3`x$5fb<ux at m42Q!K2n1j}k49BI
z&%?~j4CC>*M59rRjEp+bX!QMHFz~i*2hN at N^Pk-RD}f*U at D)22i*0qB*c)pef4phq
z#-{`2<>hiG8pVwpH+lQ^Et#H9z!*bSBLHAoHUqXTp->3nRbd8$LAibVwmUjH)<f!R
zB69w(r`|V at oWRR3f4?kp=gzMxDpnnM_M6WZg+e8`I(Q93Lqmwi3$u!4p%9jpmcntI
znP at cnwq?oB&V2a6L?L|?MBv32zgIsoF at B=Cxw*c!u9lzv<5T(9=bwWlGx{o221y!Y
z#27QEs(U~F=<H{UPGJ8F-`yN at VkdX)+PT)UEV*#8i;m++S_MEJP)^q&stVV2he+=G
z<ZmDME*gP-`}Wty?#9lvx3{l#rlxSY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;H7b1z%r#~pz^URe~
zedP5*$=q76E|>txE at MpcFiHAj$tdYMIy*aMU|>K*q~L>0L}XxKKsq}+=Z=vrCv^~#
zmkL>dOGb at jG<lHZD$|K+96R=U!O1)T#N%-sJN7!J6VrLeFvh?$o at 3Pb67Y3RQ&W>(
z>9W!W5Di(8zfTz(8^b^Q`_bOsj$kl2ui_$t>FH_w<j^7XT<OW%H<d`4)QORin}1v|
z0RSj1Ep<q~1i(r~hv_mmBa`8wVO+RyLF(%2rMh~xui2!l{r&xN^ysVT?(P;OJxo?#
znQ}^bkKoT^vDg>B6OxO->ebajRqYf at wq%CK$dS+hkfNd at Y;SAho;`b{si_GS6%_;^
zkw^qRJv}^i>Xe-8=)la(OrD(ho=hc4y<}Nd>#bY2d=r|y8AU}!WgEZ`MWiS at ftm*y
zxdV_i8xcVveWbom2;@7F$bUO>wac5-heDx$lllaJW)cEWsL7-|{RI7FNU}&ep-CO<
z_qX@^p6TDo-vRR5cs!mn+?{ty%FD~kNL&<=y2ZQ8o(BX-UK7DH<KyFbuT>VL(#n-9
zYe}Ag$huVc{K)QwQs>*SC9->Ra`NFXw$fO>V#Q{vo)nR_kC?!ah_%mgrWWsNF^y%*
zN^42|3n2B2Pk=&V(6VIj-Me=ee7T!<6VHX~x{+Wo_>QWsBDsmAeNUeUE2M(t49VYH
zmb?^?$9;pgTzH^uSzKIVle(4U8vvS+49g#61zZ9>mdI-&az2qr6#NIrL!qdsC>RI?
z+HKo@*RrfB%d%)$mZqNh<SE;>-wgx;?ZJh_A9=87j?uR55XmhhTL3%_U=8jCiwfXB
w00u>*OGGXiV;1F4z9lSS314yi4|g8Bc(5f&5C8xG07*qoM6N<$f-*2MFc$*iNdN!<

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_repeat-48.png b/share/lua/http/images/button_repeat-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..4664f415387c7d859021b3ef3b5248f561919cfe
GIT binary patch
literal 2379
zcmV-R3AFZ!P)<h;3K|Lk000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png b/share/lua/http/images/button_rew-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..b10c0da42f5486114d0eb1aa5104165a231fd426
GIT binary patch
literal 2084
zcmV+<2;29GP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000N)Nkl<ZXo2ln
zYitzP75>i5u3>EhYrsH41hi@}1~pYN4GWDaNCjG?AYq^>jT);_n-ZWzY8oB|ku-%^
z!V;<)sXtP+63s(ZMS?_78y-z*Ks7JZ&`6jx{4r${z}UNM&$3?c-1GIvKJYF(eqa+R
zl0WI{o|${@x#!IN?sI?<j9>&`XvlCGdgiC=1Ic7E<a9Y92xgI-3c at A`0ER>u<mFML
zN1e7U`}A9Hy^$D>c83(e`t=+9j^iwe#$xs3#*JM$dGh4)DO0AfqM|~4J|B$h(x{5-
zy6EZYVIq-`NF;*KKD+KjB9TLWzi+>7`~LCvfxo0a*8qO}lV|LBJYMTK at rJ1nK3Fqn
z&TL;W7?h4k1mW<fY-_tI-Q7tTW2kBb04&R<&$cBH2%uto1^s@%w6(RRu3x{=OzL(K
zIeGZqL*~8*@Z^&}9M|5_v3J6R@%4{=^RbdZU^FhZTt;haD-wypv7$5(KxtVS9LMR2
zL?ZhwOST+&?{Bfe*cem*Pdu@%Iu?t*J#XH;>Z(~)y!hco`R^y6fFyg_8mtVGG{%TA
zrbSg(9Y1#T<6#eA&D!tHjXUvomM;DFG|RH&Urnd!IF4jp0OTI!>@!4FkxHdnN!Gpp
z_v06aEr7bZHC6H3 at gvKYEt}?ab>Zx}^DwSEkg9`*QH7gIT_w5v#EJL&?TLN^SXH-r
zTrAevw0zmp>PRGt<_j0H-9HrC<WVU9nKVWvl}fdcy5Q8w5BeMvc3*|7*Q~YM+uMIr
zQ#1EFBysNiIjAZ~3d!F2Q02U5fC8}67*jEQ`i#F`z1m7IAANlV;5bh0m@#APADA+Q
zM~)stDwU%R3-Y1LMal#K>W!K|132O3qvcib_~R at 6PM6d0=r`t-oH+4M=}9JqszOy1
z<V9u668Z9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_9-h0U9v!@+|G3qM+M+s42(u4B{;Jb-ZcTEe*I
zkZ}#wD5&W at K_;OfPs=3Fo;}O8YuDn+l`A<qsnNoE?C$QyjvYI>Z{I$qQmH$%E6`J;
z>8lx|hdvF5i(Ywnjy_WN8)MweZc++o2Cvy7d at YQpo~oCVr%vT&EHC}nUi-al*|J5F
z$s}CY_0n^dy5GxB&ol9)Nt6Am`hi$7zi`#W0M5jvfdHy!&t~)aX33Nk*C$XltBM^R
z9n#j;mRCk4Nj+m()}os?Zx+41>+?`QVZy}40N)dllDu1x&jFe9aZ(`PZEwGI!b`8u
zLwz6+_#dec0hmWZ017pI=+5Tg(Bxue%)Tf80LbqWiG=5txZlqj3<k%MXcCcG!*`e6
z4+xOFEP at 5mXtd93l>xalcI?<Hl1CsiT}1Bdy-;RtyK0Fn at 9gXx`o&fj<zvRorRqB(
zGVMMG&?;ipIZoH`T`gu&T3S{`>OnxNhd%%ci5AO}Rkv^79`NOEpM$s%sZ^@n at Ato<
zs^dw1m85;gpL<KBf at BZLKU$W2Kaofj-L!e(o`&V9QKM~AYe_Z$s6qN%aW6fPBG7D!
zY!{J}$z*cSKRAYjl9Cd?&*xia+xDB5Wp!DWMa!}@llLWe*|z<r&*xj_ at 9(JA4~A`G
zv~4>;az4orfY|`1;?7n at 0bB#nA|j_n<cu+9Sbp-2U<4!hg5&=k=14uc)s&3 at 0000<
OMNUMnLSTY2FgP$x9~KAz

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_stop-48.png b/share/lua/http/images/button_stop-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..2a814e43967945e85b914097a2a4daddd08eb71b
GIT binary patch
literal 1717
zcmV;m21 at yfP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000JfNkl<ZXo2ln
z-)|Jx75>hh8N-6{4=9B|1bH(g>O*WK95tXI6}wGiOE}Q9iYmXfsoOuGQvQNSed<%2
zmsUbbBB<I#qAd+c8c?W$ffzLpwQ2KY8YfWKUaxn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^6F

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/button_stream-48.png b/share/lua/http/images/button_stream-48.png
new file mode 100644
index 0000000000000000000000000000000000000000..5737084c0f4d26232ee4503c95685b4fe06288e7
GIT binary patch
literal 2131
zcmV-Z2(0&sP)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm000OUNkl<ZXo2mS
zO^jtl6~}+)-uJqv=L;k_EEI5 at 5fGh#CNK;}Kw=Pyh8PJe7wXoPD|9tsMO?|!og3W{
zh*3yfxKJQEP9QTzWq}R~jDik{d=1RIx9Xg~i at Nu{+ug6bU-uZ?%t>C~Q=g|!)%o~W
zHC&=gbWvpUD!=}~gZqKce86kjicUZA_+#&^tsKqkX=aa_*|)l)SgmMZ9 at bwBzfeC(
zKL)<NkOC2Lup2xSz?||%eYVRl((mBBwQi&UY`t3_=m~5 at n<>!K8Q`Y?W`?BW0OLJ-
zx#Gr~Q8gkYJitB3A>0Fxz+L3-Tk1sazV1%;Aadrw`BzzrrmWbihfP!Y-vAEpKmiA=
zKe{tdJ^Ay8`?jxq_5S04K6=MJTzS(iifT*_XtUI`PLrHAxh8F<O-{6~l$?|@lQyeu
zok?<<Hfb_xX(kiiuJ-WB|C|!QQ&0YEDC;P2sFc=P+$IXR2WB?+=z8<ob=l=w*|*;`
z-bD^mox-Z*SnIMTo03DD6|GyenP{^{OK#pcb(>U=lGRm9rJ6L_t%&H&awyA~Iq~8O
zC<4u_aD2~~?!644sz-!-nX)qK at feNAL>3lcF02ZysxS-8x^Gntc*Cl?^s8&AYLL29
zhr7Rg|7D}joWgyy${Q9wfwIf}klTUN0G{(yM=-3aM1N3110k!UNWXjQ`WToYfqMv`
zra9eram7^|FMSgQIv?nDUtx6!>mq|>n5hILVOY0Y>!V1SYJDFoO+vj10eo!T_;q`-
zr2;X3jzL-4Vrv#5&3?1Uw^>A8Pn(6&e#E=L-v-S$0g?hKHZhL at zhR$Jq2dF5%O3`-
z{y4C2?#ee+z=P>w!*8E`=IQ(T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zgbnH%!ee*j~y+jUZa;Q52+LYBni4IzH
zuNCc(PfAUqy>Nm0^e<RCTW*qPUwLUL>n6I};5MUB&;|H))a{fVzWpxk`Op=n(K1=4
zQI?Hcr%tZA$yOz&YO`qF=w2w)W{ZME<!!Qh)MB<o`p6O0uROmlp?LW8RbnIBHWupJ
z>hXy2u3fOSf;k2An=>-URg=xBsi|=)GL<SS)l~BCTVq~fqYPI4Z|?(Z9=1Mr;J{U<
zW^H{aHR{n=s%k8HFR-#-Q}dgK`qjJ{n8~UNs=D)?5{1^tIy4)<{Y!m+72F3lcxqRN
zW00Ad>>^$zX7|>?tAuVI$ku at 0wgQ6@YduIkJh*r$VP*DM1tm0x-=+eCr^WYybA#q<
z0V^sD-tTq_C3>WzX&!iaAnO3IyX&zX1vEPV at jKuFfO<T}Q+l)PT9kyRVCQJGK#9%=
zO2yLdn`z$fJ3Nl@#lGt{6j+tW()sh}r?7VK-o2%dJ2 at qwCc=>S3aKc!_Dgiwr(1M5
zatHSUB|7|d{*Bj%vNBuHA`e at 0+unKO9Fuq7QB)VmVYE5a^ogw8e`(v2)Kd4{lG>~e
zN|anMX^G|ndjIV;J}{NFB~o1EQh#`PdHFb$3ryeks~<h8*I)XpQI82p9x`{~A-TKd
zo{zBXfqUV*e|pG0%yW=aOa99Vsf$9(E4z==SwKV_W{X5Nw{g6*^lRX*t~eLWG0$0d
z#xL6MH>qvEuy(DBn$S8pJ*WO+_(l5FqtVE6&a1|4q`=EacMT@^zn_4az2tNJWUdLB
z*?x)%tw>_{-=@AitiKq3!G7<V+0zm6?!5J0qDyoU^k2=6`rg|p3?2Xg002ovPDHLk
JV1hC+GB@{VDNq0a

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/delete.png b/share/lua/http/images/delete.png
deleted file mode 100644
index d1fab0fc6109037416a51252d96df771c33635e3..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 198
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50kKt!rzA>KY>EQo-U3d7N at sPGUQ`W;9%DL|KC{e
zn5%;7RW(0bft6|fBENeo{dt!C;AmxBBq4dj)YH~rdr9xiz-YNQo3yT7{j=Z3F=~;>
n;x7}Me4ZuM3cPN4xRqh^cX3_;TY>99;~6|%{an^LB{Ts5oohcb

diff --git a/share/lua/http/images/delete_small.png b/share/lua/http/images/delete_small.png
deleted file mode 100644
index 43287f6d3a61b787436bad56d075c140b5eb7d24..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 165
zcmeAS at N?(olHy`uVBq!ia0vp^oFL4>0wld=oSO}#n3BBRT^Rni_n+Ahk}B|sEM{Qf
z76xHPhFNnYfP(BLp1!W^S9#dQm?UR>dk)fU=IP=X!f`#d&y$ZqfrEMZvH$fu<#-eh
zE%cmzf$Q^KHiwh458Mkb7~K(Oh|^rrb!`3Xt!`&y*<I&~em}iX-3w>}gQu&X%Q~lo
FCIG_WFl7J$

diff --git a/share/lua/http/images/eject.png b/share/lua/http/images/eject.png
deleted file mode 100644
index 53eaacce1e6c9f307ccfdb17bcc7321988a40284..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 155
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j7y+Zt2lETE8vr;B5V#p&b(iEj_=6<K>+veHzp
tHvB)bDplp;O^H`C+v-eu+YTl$Fr0E?<**LjTMyL3;OXk;vd$@?2>>z?D_j5o

diff --git a/share/lua/http/images/empty.png b/share/lua/http/images/empty.png
deleted file mode 100644
index 3925da273851f6ad4cefb75a4be3112dc44ac6b1..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 178
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50kL2$v=gSM}b22o-U3d7N?UF4)FdHejv>HFL=>R
zmD&G=6NGb5)O#IzV6R&D*FQ7k@>wCCe4~q(W*%{Q&#>HX){Y1Erm;>U3=HN;@{jM;
S8%zQk#o+1c=d#Wzp$PzO**BN~

diff --git a/share/lua/http/images/fullscreen.png b/share/lua/http/images/fullscreen.png
deleted file mode 100644
index e3fe7fd0fef2a0420a4b840e5b24098423df6a35..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 194
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50fyXm{8&DexQ)Qr;B5V#p$Dy4)QT5a5$~}`hUOA
za=xt-r{xuW=M`8G#mlgG0!M>$!>s8STy_31g{hx;ae(=jRX|{d>*MBNIrDJ#Y05ua
jm+w1vyy)}tnAMzfKM3<4>0a9hG at 8NF)z4*}Q$iB}ze7IN

diff --git a/share/lua/http/images/help.png b/share/lua/http/images/help.png
deleted file mode 100644
index 5b18b03342232aff68583015fbe10ba134193aa1..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 203
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE<hRxemd{22U45`9+AZi
z4BWyX%*Zfnjs#GUy~NYkmHjFYvw)_8RZe9CP$<IF#WBR<^wD5Pz5 at mvP0RlOH`@JW
z!;)J`yHjL(6_Qx~u`OPt;@hjD+t{&3DABFXJiU}5<J^)nby at +A<?6AP5p2<l`RfBz
qZ)?v<`OIq)@UK<l=VDVCc77Hu1OAnZo+<(DVDNPHb6Mw<&;$V3yE{|>

diff --git a/share/lua/http/images/info.png b/share/lua/http/images/info.png
deleted file mode 100644
index 3f77f1eccaa40a91ba939cfd4b25c474b38dfac5..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 229
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmPmvoM39#p4GV@<5>?PZ!4!i_=Rd8S))a;9;)q_+M`s
zD-qB=d4+<ZfZ*iKib^G$pRMGm2~lpkeD`AJxmU_Nk8E3e!X)F(JqC|1u|to1&);N;
zS^6NZh%Kt+(2acucK<Yan6c>5hqS8^O9Olb^!^7WJpVtNY3~0-Rx$ILjg!7GEC|!n
U*}Jd)2her~Pgg&ebxsLQ00Tf%=>Px#

diff --git a/share/lua/http/images/loop.png b/share/lua/http/images/loop.png
deleted file mode 100644
index acc5499499ec0347dfc66f7d75b683f9fd917e82..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 173
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j9Q2<Nr0OMpUFo-U3d7N?UFBr*<k9Q*Iz7&nQh
zVRiDNE8NY;8~%&1sC6y-?~?V;e-n#ojE8~YpW{k?0XYvA7d~KQ*b~mjn)vYLPM|3a
Mp00i_>zopr07?xt;{X5v

diff --git a/share/lua/http/images/minus.png b/share/lua/http/images/minus.png
deleted file mode 100644
index 0c504cca455d999bd3b853456f337eb8ee80c9b0..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 204
zcmeAS at N?(olHy`uVBq!ia0vp^+#t-z3?wHfJxv8tYymzYuK)l42QotsU9JOCj3q&S
z!3+-1Zlr-YN#5=*3>~bp9zYIffk$L9P`@w;GcwGYBLNg-FY)wsWxvY9#>i;2Z_|8n
zppa~dYeb22er|4RUI~M9QEFmIYKlU6W=V!ZNJgrHyQgo!`xMnYph7WE7sn8e>&ZX<
mH!O5yZ2YG0 at bF(f1H+1STyo#<tm_1-VDNPHb6Mw<&;$Tg)Hss>

diff --git a/share/lua/http/images/next.png b/share/lua/http/images/next.png
deleted file mode 100644
index 67136ffd75d2dc1b8d10c13d57fb88ac49700df8..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 162
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j7)XV!(8wLl?#PZ!4!i_^&o609d4*jpy~q)0Vg
zW|+jAxafkl1#f~%5YK8xm+WI{44$*x8K*KZ#Qx;uS|d;z2h_^o>FVdQ&MBb at 0RKcP
A9{>OV

diff --git a/share/lua/http/images/pause.png b/share/lua/http/images/pause.png
deleted file mode 100644
index 4c33caff5218e1aab46c5f2abb2d235612820201..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 149
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j7)gD{WcO`wpHr;B5V#p&b(iBAoJ-8brWKK(Cz
nnYic*>tZ$@Ze}+|W at d&Cbta+2dt3T|su?_8{an^LB{Ts5+Sw*0

diff --git a/share/lua/http/images/play.png b/share/lua/http/images/play.png
deleted file mode 100644
index 7b47c69338b10c3fb1dad745882dd89bd49d52bf..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 178
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j9g3X9UT(?B76PZ!4!i_^&o5;+g-MTB`JHcB-3
z&r4zEkaAhWXu+#=m4T<$M})=9mF+<60jG6tLA(bfxpkgosiZI{A3njzu*8vF`j=FC
QGtejoPgg&ebxsLQ042yR1ONa4

diff --git a/share/lua/http/images/playlist.png b/share/lua/http/images/playlist.png
deleted file mode 100644
index b96e2b0c2d8778ef888d3fe41742dfeeaa37e8a2..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 147
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50e<Dg78hZuRtLMPZ!4!i_^&o5}z6bJO9f2zOgr~
ln(1~p!Gx#HT_S*oAvBGRYw at Wq(}8LkJYD@<);T3K0RXcnCUF1&

diff --git a/share/lua/http/images/playlist_small.png b/share/lua/http/images/playlist_small.png
deleted file mode 100644
index 23f37d790b93b39fa74b22900141a87e0c09a5b7..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 145
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j9gVdnoL1)z|er;B5V#p&b(307u)iHSG<PdxHZ
icxCz(*29N^0t}nuIat->eRcp<GI+ZBxvX<aXaWFPw<S^l

diff --git a/share/lua/http/images/plus.png b/share/lua/http/images/plus.png
deleted file mode 100644
index c866a0caa75114da425222883b0f9741e5f6048b..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 208
zcmeAS at N?(olHy`uVBq!ia0vp^+#t-z3?wHfJxv8tYymzYuK)l42QotsU9JOCj3q&S
z!3+-1Zlr-YN#5=*3>~bp9zYIffk$L9P`@w;GcwGYBLNg-FY)wsWxvY9#$cs1uav6>
zC?s3r8d2h$pPQSSSHj?2l$uzQnxasiS(2d;l98(5?&%xwK1DSTs8Gt&#W95Adh(C|
q4GSF`7qYf}(|6d=_~^ep1H&peF0<`-V}1fvF?hQAxvX<aXaWEpT{*!3

diff --git a/share/lua/http/images/prev.png b/share/lua/http/images/prev.png
deleted file mode 100644
index 988c08aaa77c5321b5ea3fbf699860c725933b82..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 163
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j9g^d^_x-+)2}o-U3d7N?UFBv?;8u(wR|nId(<
zWnuOPDTgg-F>D4xnr+v)U8I}z1w4yRYAgV1aQ(^2mDZlz4`ecUy85}Sb4q9e09|n_
AT>t<8

diff --git a/share/lua/http/images/refresh.png b/share/lua/http/images/refresh.png
deleted file mode 100644
index 645335096b6b11f54a19e8a9f16ba429f678c1b1..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 277
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE<hRxemd{22U45`9+AZi
z4BWyX%*Zfnjs#GUy~NYkmHir{ET4{0__iZGKq1)@*N775{M_8syb=cIqSVBa)D(sC
z%#sX+kc?CXcTeAd_bIA*K!uf_E{-7<r`Jvj<U63i;k@?Yzwmc;V$57qQ$G7I?T?aq
z{Mf0~aZ;o%1FuI*WH1xMNsf$;{%2twwh>Oc3h~i-`xB<_)@fE=;lyLvnq;J|YU?up
zHKUKi4%_@`DdC<*H@?q|c&zU9G;{8oDZ6*JmigwNXH5zTIduOT^Q{zjp8vKDj6g>)
Nc)I$ztaD0e0suxgSrY&N

diff --git a/share/lua/http/images/repeat.png b/share/lua/http/images/repeat.png
deleted file mode 100644
index 9c7e2b0751f0bd774bd78b052f7027241baf7e89..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 179
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j7~_xjJPCjo^VJY5_^EKVmUNMs!7IQHMaF>Vr1
z!|LQkSGb#xH~bf2QR`av-zDpx|0WjGn2xIqVlvB&gtCRWm!3;eG+oJO$G~vNmXDji
SYW4!4Sqz at 8elF{r5}E*D-!#qu

diff --git a/share/lua/http/images/reset.png b/share/lua/http/images/reset.png
deleted file mode 100644
index b9f3834154be0f20c31c858fb36e4d91157e9a3d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 215
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@
z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgg?ZeB4q!6XrLU!YL9r;B5V#p$)d
zmP`x^99;kZr_ZuhStH}i!4+Mtqf)!;vw*{Ep4p5XN4Y&`Obd!G{IKRpaaaSB#O9_`
zXQR2p6I>lWC$ck%9SE^3*e`ObX>R-az<p86p1;!K784cLkZ}WA!QkoY=d#Wzp$P!~
C#XkE0

diff --git a/share/lua/http/images/sd.png b/share/lua/http/images/sd.png
deleted file mode 100644
index 6e72704eca601cb0111e4720b42efde230a8a52b..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 194
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmPmv!J+$#?m8K9|48 at JzX3_EKY9?J}Ahbz|r*W{!F$D
zHYXpci!VtzAmC$RdTvR8(z+j?(o{>MV`j3g>F&{Ct}%Bo)+jZeAgyxNuc@#3W5(K-
iCsTO;_x|lUlAUAVAj({^=;#rk(F~rhelF{r5}E)qi$6gC

diff --git a/share/lua/http/images/shuffle.png b/share/lua/http/images/shuffle.png
deleted file mode 100644
index f47a59d18ba6689517e03817cbdb9034c711a199..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 180
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j7~gN0&|6i~>~)5S5w;&gJt0^=Y4rOpzX26GD?
z_I#Y5_=7PisZr3|!azvc;s3 at D|CPIqCrU8)c&z*7zlyQv#t)w<Y)Ypa)a4ig=kT*i
ThbP?v8ph!1>gTe~DWM4fxG^)`

diff --git a/share/lua/http/images/slider_bar.png b/share/lua/http/images/slider_bar.png
deleted file mode 100644
index ad03479f6a4c681ea718013536ee116d205b78cb..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 190
zcmeAS at N?(olHy`uVBq!ia0vp^j6f{F!3HF+&llYeq}Y<Y-CY>|gW!U_%O?XxI14-?
ziy0WWg+Z8+Vb&Z8pdfpRr>`sfHAY!JD~@eG9g099*%H@?66gHf+|;}h2Ir#G#FEq$
zh4Rdj426)4R0VfW-+=cis(C<#N}eu`Asp9}6Am!{GtRxWrL*zp=jZ2nd1jmC{yNVx
d{lH3AhAm}WT`^@>c!8=JJYD@<);T3K0RV;tH~#<t

diff --git a/share/lua/http/images/slider_left.png b/share/lua/http/images/slider_left.png
deleted file mode 100644
index 342c5708a7fcc7776525d4d69c9c124cfe63bde7..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 203
zcmeAS at N?(olHy`uVBq!ia0vp^%s?!_!3HERXC3VVQfx`y?k)`fL2$v|<&%LToCO|{
z#S9GG!XV7ZFl&wkP>{XE)7O>#8lx<qwZI;0MKhp~Y>8_`iF1B#Zfaf$gL6 at 8Vo7R>
zLV0FMhC)b2s)D<xZ@~K$)jXg=eNPw15RU6>`!@12DDWJ<BR3=YZ^Fz86C at NTv!CXw
qxwD1KKx- at G0{`__y^7f9>FX@}%<FFUe%~yhRt8U3KbLh*2~7Ym$vb8M

diff --git a/share/lua/http/images/slider_point.png b/share/lua/http/images/slider_point.png
deleted file mode 100644
index 07acc754dee4017665159730cc5b6fe386e5c770..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 237
zcmeAS at N?(olHy`uVBq!ia0vp^96&6<!3HF?yX<O#6kC$Fy9>jA5L~c#`DCC7XMsm#
zF#`j)FbFd;%$g$s6l5>)^mS#w#wg2Yp?O01*I%HJY>8_`iF1B#Zfaf$gL6 at 8Vo7R>
zLV0FMhC)b2s)D<xZ@~K$)jXiWKu;IP5RLP9CvN0zaNuFq=b2$>Gv)XX)`brj+c-J&
zE)6Nq%!$}MKfIIgxCBE=+QuD+W@@^&Z)2Pga_QQB6~&b<38L>l1s^OE{krqj at r@O;
ae=}@URC3i?{S at dz1_n=8KbLh*2~7aaWKCB9

diff --git a/share/lua/http/images/slider_right.png b/share/lua/http/images/slider_right.png
deleted file mode 100644
index 1b15f8b3dc89a1785219f662c728041c6414fde4..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 204
zcmeAS at N?(olHy`uVBq!ia0vp^%s?!_!3HERXC3VVQfx`y?k)`fL2$v|<&%LToCO|{
z#S9GG!XV7ZFl&wkP>{XE)7O>#8lx<qwOn*Fk0DS<w!}4}#5q4VH#M(>!MP|ku_QG`
zp**uBLm?z1Rl(iUH{gAWY93Ibfv1aO2*>rcJsWu$3^)$+uotb7Um`3tH`;%qsHEKm
q;~>_IsR7apR-O2Jeq&ZlV>+Ke0-xc at 91$a+UItHBKbLh*2~7awyf|(E

diff --git a/share/lua/http/images/slow.png b/share/lua/http/images/slow.png
deleted file mode 100644
index 78d037647b229187d83cdcd0e81fc876db9add24..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 163
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j9AVZjq;kWK?n7sn8b)5!@EtUnIaCmorgak1w#
z!y?mU;|7(pH+T|`ENYu5!hFK0rSVdO466tegF-A9>o%U6Wk9_Qp00i_>zopr0Il0C
AEdT%j

diff --git a/share/lua/http/images/snapshot.png b/share/lua/http/images/snapshot.png
deleted file mode 100644
index 6890d02a8cd11ccb7f6dc3d8ec9ecbb9a19a2cad..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 270
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9F5M?jcysy3fAP>{XE
z)7O>#8XKRW2v6*VRtuoeT2B|pkcwM(Cm-Z%QQ&cjpT70gL5^ep|NHT)+!bD?@H)=i
z?^27|VFO);{<f8?7**d*4Ep54eCEs>i$1Rund3?^^PeT(HWQv`?5}y##8))^{&%k<
zHe4$+7ao7eE0C=6+~?fP%6Z*Msez$_6TM{_^37Wc3NJmYQ+t&5;J2g8k5J|(tOh)X
zzw*t!x+(1H=56a<e~<1kjOy<Dd#jY=;hj6m`lpMmo8Nio{Qi5M|1%@Yh51+h&K0u<
PI-J4N)z4*}Q$iB}UGHi4

diff --git a/share/lua/http/images/sort.png b/share/lua/http/images/sort.png
deleted file mode 100644
index 786efba711d289fe0a9ca1ba85551cc62c711a6a..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 182
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50kJy!`nsbpMXNno-U3d7N?UFBr*<k9QoJpJV)ch
zd<J>-1jPj}?KiGdyv^#9QZ=#cf&JasLmkJ}+>~<CmrM=kT*mu~)kwMZT-p)~F$Oj>
Wfq!c|g4O|zWAJqKb6Mw<&;$S at AUFd6

diff --git a/share/lua/http/images/sout.png b/share/lua/http/images/sout.png
deleted file mode 100644
index a6763ecabd1a48ec8d3c6bbb25ea0796f26dff15..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 172
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50eP9%+b4S(||&jo-U3d7N?UF7AXGk?@?0o;!RWu
zQdHg<_rw3Q!GaqOV1dgoxA0#1KZQ-p^Wt$2hmQuH4i$_Hl|4c~l7H>|1T=)f)78&q
Iol`;+0CS}?YybcN

diff --git a/share/lua/http/images/speaker-32.png b/share/lua/http/images/speaker-32.png
new file mode 100644
index 0000000000000000000000000000000000000000..14a81dc4906603c16834d5fe328bcc21506282fd
GIT binary patch
literal 997
zcmV<B0~-8^P)<h;3K|Lk000e1NJLTq001BW001Be1^@s6b9#F8000B2Nkl<ZScUDE
zzi%8x6vw}_KTmfXythB@)|ZQHp~NRSy7Y%clp^A9009L8S`bAVsHy0Pgg_}$06nyb
zmeNQRrU2nsatiEQ-&wx>aXYg+kHRsrb9?8t0v93iq*v^`+4ny4=FRL|;D7lSB?yAo
zTdme-OAqY(ey7!HeWz&}*|z;?slmJ5?z^_#92<r~hGCH7x(flce=6|W+S+<i6c3J%
zkM9x at Ow$Aa=-T2C&keBA>oHjrAEasesSu)3tJTig4Z~RYKAUH7UAIdFl}Lgy21QYd
zFbp4`ozw5%>T#Yu<U$M>SgALs*%X7pD}(#@Ki?{gqm&H>L2xgMqP-}Z?8b4t8%5FX
zWHQ-XU0uBg0Gl^&s{MZdW2UfQ>h;E;X*XfpHtdyIwX7 at ptG91|G;g7$Tfi9G)N~!}
z+>!`V%J*BX)+UJ79ml<+=^7R!5dfi9tHE*H*DeK6uQy=UYEanI1Q7_+bb4bn8r|5~
z=pk5L1!IeX14IN6!7z0H>u<ij_V!zE?o|S4Hk+`nSWp%996&f6!ZZyyu8VfNeK7!l
zB#KZ-2~|}$08|6;JP$8lzYa}3YbNaM`~fK?JkLj`a}~G%03aOf??Z47DP^~8Mk#>Z
zY@*-41zp$A_#&vP3deDgBr!TyI~BG7n5HSX5D-Fml>wq?g55_u(6pxj1VTEUqF%2f
z42KBA!wVBY1VmAUEX%;Tuqp!_hKJbR-iE54DMA90B*F0D0E_`eAu9n)Cdc3z2j{$W
zPAS0A(GlV}hN7ImCh|PT{{EkE90z$`R5}GxN at P5{96%h$$a67MWC~-*IETU%2$3(m
z0f3WJU>N%4Gr)O<BuQq*bzMi2B#2&$z(u*kXT`FtlMDzRRR$13U^<<aI?OVTX__LN
zW|aUmRee%~Jgf{Lr9__RGvh^3K*|D~a}-im0;o6Y$g&J+l0Gi8mjav?&pZ)%j$DXJ
z073|)Ns2g*f2#~Iuewds{M|IopG?zSAEoIX5M2n6=Q$>m$?&T$znHm(fjOUJP1Alg
z3<J8Z|E*7+AB;w$cR1&FJ=gt2*Y&I at 3M|w-$1n_km<PD9ApxKg5g21&jLkG8zVG*l
z=;3%g9?+a at c%Co1*SdqBx3)?flIIrNwpqK~{;<(#M2s<dR+rWld!D!M`~HuLq7Y8*
zAOf)bwmb-e_bkgAp8~9`tSlD*0365Zc%JvYs;Vyr;8cPjc;kiqn*FEbFB&Pl5(Ewc
T_W%F at 07*qoM6N<$f;l-fZjHm3

literal 0
HcmV?d00001

diff --git a/share/lua/http/images/speaker.png b/share/lua/http/images/speaker.png
deleted file mode 100644
index 85f87b10b014d8eb50894062368cd4e7e53469bf..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 269
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j7q^A2O7hd`lOo-U3d7N?g^KFD`ifya4n=l^4W
zi{3kIVvOZ_tE5=f`8kU{Vf~ZmA?ricIVXO}=PK`NSyJ;W%-Hj2is!9G9ciBPUw)d!
zdg=}b!`8O^GV#c}TN)iC4^C++{qB&Ewm;KL?sxc;Q#&sGb(;Rw!=b#?HR0@$Wg)K>
zl6KF|&}(^oAdIV%-SP4V`P`%(FP%<pEBHF2Cx<QF at X`I}f7mLg)kZA8Z+#8uN(N6?
KKbLh*2~7akVrljO

diff --git a/share/lua/http/images/speaker_mute.png b/share/lua/http/images/speaker_mute.png
deleted file mode 100644
index 977e3952accfe6f67ad6b8fa075036cedb6f79f9..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 446
zcmV;v0YUzWP)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV00006VoOIv0RI60
z0RN!9r;`8x010qNS#tmY3ljhU3ljkVnw%H_000McNliru)eHg>Fd0Qr>ze=o0ZU0l
zK~y-)os+#vLU9;}pT9XYxHUM4grzun0p3Bol5_z|XXp$fEeGic4K_4b(4h+mnp%S{
zpw?*0XvjgRMF)pI9DWUca5|o2(F^bP{+{<6{$`r`g2f`DHS=*Cy(W{if#Z680b;_$
z%Stf;O)N_6S-?9SIu4#?O at ygbbOL|bPgx`(N%P(%Nu!Y-3I+KgF at NTk3)fqadj at h@
zcnNfvNN`muEw(Dq#m+n<@;qq;saVwJbOSSUT~~g<d<MOB-%NKcI6H^?J8q`4Gsc9r
z9*<mm&A{gg8 at A13KCjD4WjWxs4Xss}lxQZ9Jwwfg{ce|o;c)4h%_b{At{bw2a#^ZY
z)oM27iw}k1hs*)vvD9d&mrnl>o3KMNU<#mZ2f$%%Fu=-WpwoeVf8iP<4=U(i at wk3{
orXc+TcuT?&aBAE9*COBf8#R^2S%xbo_5c6?07*qoM6N<$f<y1LO#lD@

diff --git a/share/lua/http/images/stop.png b/share/lua/http/images/stop.png
deleted file mode 100644
index d905a4935c77ccbb7394d4b4fc7d73b4b1880eec..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 146
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4 at xYmNj^kiEpy*OmP$50j9-$hTcHcYqA=ba4!^IGvmz at u@+u`$m1x7lXi8
jO at Yj9t&EEs8W|aqJ~0Ya+`JYCRLbD#>gTe~DWM4f>@z5s

diff --git a/share/lua/http/images/vlc16x16.png b/share/lua/http/images/vlc16x16.png
deleted file mode 100644
index ce7633e54ee4521bbaa710fc6119fd1e464c8122..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 618
zcmV-w0+s!VP)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV0006pNkl<ZIE|H(
zT}V at L7>A$#IcH~QpJ!VzWqw7iLZpU7g_=ZP23?G(NC|Jc2`{>cZeman(N*0<1*sR^
zM0A%z5Cs{5P=S~qV2Z&imr1UvZCTsSc1{<05zUqTE?-_Aeh=>}EX$%?#=0CAFbhhg
z*SJ(}N0bBHYY$ZK4=pAX2_DBi8#?>a?^fGW%8||5mIG472P|P?vAzxH`7eOA>vS~P
z7$I*I$c>Cg%K at a-hF5QNyS=`^9!n?)$%f1AZMk-{+qdQh>qdK<tMs;jU2Q~_p?Y>m
z&kPN;Lf6AJ0rZ8*XlQ5z?<lA`=t-EJw?}~zK#9WblUro3l|3XYU;!qeI>BS+4)%1`
z+y2>LX~)@yV)|*gV7{jK;|oHDydJ=aY^__YI=l at SE(?g?IqvsZkz?8Bb9 at XqQHxoG
zB*++o%;zQK$(Kj_&oso3+?rS{QApfBwOf19H={4aFWMX~ib5r4_mfxsn39H~IZ)@{
z$AVLDW(HzS`$`&Usj(BuWz+2&dq6NKA#H5Iat4uPfh#jd&D0=bqF;P3;11 at K9l$eK
zdF8q1S7g`l^{Ld`R5+1<N*_2iP!xg9DUgLpItA08psE at w>-8C<H5Lvwoi`K!2TKvV
zk_v}5gWm_)42S|qmW5<k2n{@yu(Jjn6(F>)wT8C59eAYxxbuS@%BBzi_B!C(ikAt9
z-$Y%28<0WCK5B={zW`6}j!*jw**`D(*W|nllY5)sCmnXa<bAxWM*si-07*qoM6N<$
Ef@<{>DF6Tf

diff --git a/share/lua/http/images/volume_down.png b/share/lua/http/images/volume_down.png
deleted file mode 100644
index 8de46a16e2b36f26d9bc104e00660e65a061b999..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 209
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6n3BBRT^Rni_n+Ah<Z%{wL>4nJ
za0`PlBg3pY5<o%r5>H=O_NzQ>;=F<@PS>pl3dxqZMwB?`=jNv7l`uFLr6!i7rYMwW
zmSiY|WTYy%d-?{vPf^VSDzx-;aSYKopPaCO_lJLk)Vh|=33+NxZN^CxlUhDWZj5eB
x;}cfoPYgfMalZTi$Lh%wH;DFxaAaL#V2Ewz<)}|kYXKU<;OXk;vd$@?2>=2(J{<r6

diff --git a/share/lua/http/images/volume_up.png b/share/lua/http/images/volume_up.png
deleted file mode 100644
index f489246b1102002b4c104175d1edb95177621ad4..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 225
zcmeAS at N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6n3BBRT^Rni_n+Ah<Z%{wL>4nJ
za0`PlBg3pY5<o%r5>H=O_NzQ>0xZf~CN at 0>3dxqZMwB?`=jNv7l`uFLr6!i7rYMwW
zmSiY|WTYy%d-?{vPf^VSD)jVpaSYKozckR1k3oTh>G}WtIqlQd`92nK4`Aou*pRx|
zWZR`@%q)8Z^?!J;37))}AvdCDbDGw({|&2|ERUR7q{ErT|8_#nv?EO4czEP at OwjKF
P8p`15>gTe~DWM4fORh#H

diff --git a/share/lua/http/images/white.png b/share/lua/http/images/white.png
deleted file mode 100644
index 3d3841bea0ef0e2b9b301dfe69b054dae51d87b6..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 169
zcmeAS at N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}blwj^(N7a$D;Kb?2i11Zh|kH}&M
z25w;xW at MN(M*=9wUgGKN%6^SmP*l!r*@7#nKq1)@*N775{M_8syb=cIqSVBa)D(sC
z%#sX+kc?CXcTeAd_bIA*K!v=XE{-7_*OPzz|Np;`f%7o)(U+eengJykJYD@<);T3K
F0RVN1EH?lE

diff --git a/share/lua/http/images/white_cross_small.png b/share/lua/http/images/white_cross_small.png
deleted file mode 100644
index 4a47e6320568895f49e4cf033018ab6c06cbaf02..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 165
zcmeAS at N?(olHy`uVBq!ia0vp^oFL4>0wld=oSO}#n3BBRT^JZv^(q^IqzXJDiy0WW
zg+Z8+Vb&Z8pdfpRr>`sfHD*CEQO5u4#eM*V%sgEjLpZLd_8sJ7P~dQ?T>Jljs at 0Nf
zSDKkq6t>;U at oZXBwx)z_-xpc0Uvsq?LoS{<^se{Je!e*iw4YpkGo=M+0)wZkpUXO@
GgeCxIcQTRy

diff --git a/share/lua/http/index.html b/share/lua/http/index.html
index 8dd4207..9ddfc58 100644
--- a/share/lua/http/index.html
+++ b/share/lua/http/index.html
@@ -1,58 +1,316 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  index.html: VLC media player web interface
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
 <html xmlns="http://www.w3.org/1999/xhtml">
 
-<head>
-
-  <title>VLC media player - Web Interface</title>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <link href="style.css" rel="stylesheet" type="text/css" />
-  <!--[if IE ]>
-  <link href="iehacks.css" rel="stylesheet" type="text/css" />
-  <![endif]-->
-  <script type="text/javascript" src="js/functions.js"></script>
-
-</head>
-
-<body onload="loop_refresh();">
-
-<noscript>
-  <hr/>
-  <p>
-  Warning: Your browser doesn't support JavaScript.
-  </p>
-  <hr/>
-</noscript>
+	<head>
+		<title>VLC media player - Web Interface</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+		<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
+		<link type="text/css" href="css/main.css" rel="stylesheet" />
+		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
+		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
+		<script type="text/javascript" src="js/jquery.jstree.js"></script>
+		<script type="text/javascript" src="http://static.flowplayer.org/js/flowplayer-3.2.6.min.js"></script>
+		<script type="text/javascript" src="js/common.js"></script>
+		<script type="text/javascript" src="js/controlers.js"></script>
+		
+		<script language="javascript" type="text/javascript">
+			$(function(){
+				$('.button').hover(function(){$(this).addClass('ui-state-hover')},function(){$(this).removeClass('ui-state-hover')});
+				$('.button48').hover(
+					function(){$(this).css({'filter':'alpha(opacity=50)','-moz-opacity':'0.5','-khtml-opacity': '0.5'})},
+					function(){$(this).css({'filter':'alpha(opacity=100)','-moz-opacity':'1','-khtml-opacity': '1'})}
+				);
 
-<?vlc
-current_page = "index"
+				$( "#seekSlider" ).slider({
+					range: "min",
+					value: 0,
+					min: 0,
+					max: 100,
+					stop: function( event, ui ) {
+						$( "#currentTime" ).empty();
+						$( "#currentTime" ).append( format_time(Math.round((ui.value/100)*$('#seekSlider').attr('totalLength'))) );
+						switch(current_que){
+							case 'main':
+								sendCommand({'command':'seek','val':Math.round((ui.value/100)*$('#seekSlider').attr('totalLength'))});
+								break;
+							case 'stream':
+								sendVLMCmd('control Current seek '+ui.value);
+								break;
+						}
+						
+					}
+				});
+				$( "#volumeSlider" ).slider({
+					range: "min",
+					value: 50,
+					min: 0,
+					max: 100,
+					stop: function( event, ui ) {
+						$( "#currentVolume" ).empty();
+						$( "#currentVolume" ).append( ui.value+"%" );
+						sendCommand({
+							'command':'volume',
+							'val':(ui.value*5.12)
+						})
+					}
+				});
+				
+				$('#buttonPlayList').click(function(){
+					$('#libraryContainer').animate({
+						width: 'toggle'
+					});
+					var nw	=	$('#libraryContainer').css('width')=='300px' ? '800' : '500';
+					var spd	=	$('#libraryContainer').css('width')=='300px' ? 'slow' : 'fast';
+					$('#viewContainer').animate({
+						width: nw
+					},spd)
+					$('#player').animate({
+						width: nw
+					},spd)
+					return false;
+				});
+				$('#buttonViewer').click(function(){
+					$('#viewContainer').animate({
+						height: 'toggle'
+					})
+					return false;
+				});
+				$('#buttonOpen').click(function(){
+					browse_target	=	'default';
+					browse();
+					$('#window_browse').dialog('open');
+				});
+				$('#buttonStop').click(function(){
+					switch(current_que){
+						case 'main':
+							sendCommand({'command' : 'pl_stop'})
+							break;
+						case 'stream':
+							sendVLMCmd('control Current stop');
+							break;
+					}
+					
+					return false;
+				});
+				$('#buttonPlay').click(function(){
+					if($(this).attr('state')=='stopped'){
+						switch(current_que){
+							case 'main':
+								var id	=	$('.jstree-clicked','#libraryTree').length>0 ?  $('.jstree-clicked','#libraryTree').first().parents().first().attr('id').substr(5) : current_id;
+								sendCommand({'command':'pl_play','id':id});
+								break;
+							case 'stream':
+								sendVLMCmd('control Current play');
+								flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
+								break;
+						}
+						
+					}else{
+						switch(current_que){
+							case 'main':
+								sendCommand({'command':'pl_pause'});
+								break;
+							case 'stream':
+								sendVLMCmd('control Current pause');
+								break;
+						}
+					}
+					return false;
+				});
+				$('#buttonPrev').click(function(){
+					sendCommand({'command':'pl_previous'});
+					return false;
+				});
+				$('#buttonNext').click(function(){
+					sendCommand({'command':'pl_next'});
+					return false;
+				});
+				$('#buttonFull').click(function(){
+					sendCommand({'command':'fullscreen'});
+					return false;
+				});
+				$('#buttonPlEmpty').click(function(){
+					sendCommand({'command':'pl_empty'})
+					return false;
+				});
+				$('#buttonLoop').click(function(){
+					sendCommand({'command':'pl_loop'});
+					return false;
+				});
+				$('#buttonRepeat').click(function(){
+					sendCommand({'command':'pl_repeat'});
+					return false;
+				});
+				$('#buttonShuffle').click(function(){
+					sendCommand({'command':'pl_random'});
+					return false;
+				})
+				$('#buttonRefresh').click(updatePlayList);
+				$('#buttonPlPlay').click(function(){
+					sendCommand({
+						'command': 'pl_play',
+						'id':$('.jstree-clicked','#libraryTree').first().parents().first().attr('id').substr(5)
+					})
+					return false;
+				});
+				$('#buttonPlAdd').click(function(){
+					$('.jstree-clicked','#libraryTree').each(function(){
+						if($(this).parents().first().attr('uri')){
+							sendCommand({
+								'command':'in_enqueue',
+								'input' : $(this).parents().first().attr('uri')
+							});
+						};
+					});
+					$('#libraryTree').jstree('deselect_all');
+					setTimeout(updatePlayList,1000);
+					return false;
+				});
+				$('#buttonStreams, #buttonStreams2').click(function(){
+					$('#window_streams').dialog('open');
+				});
+				$('#buttonSout').click(function(){
+					if(current_que=='main'){
+						$('#windowStreamConfirm').dialog('open');
+					}else{
+						$('#player').empty();
+						current_que		=	'main';
+						sendVLMCmd('del Current');
+						updateStatus();
+					}
+					return false;
+				});
+				$('#windowStreamConfirm').dialog({
+					autoOpen: false,
+					width:600,
+					position: ['left','top'],
+					modal: true,
+					buttons:{
+						"Yes":function(){
+							var file			=	$('[current="current"]','#libraryTree').length>0 ? decodeURIComponent($('[current="current"]','#libraryTree').first().attr('uri').substr(7)) : ($('.jstree-clicked','#libraryTree').length>0 ? decodeURIComponent($('.jstree-clicked','#libraryTree').first().parents().first().attr('uri').substr(7)) : ($('#plid_'+current_id).attr('uri') ? decodeURIComponent($('#plid_'+current_id).attr('uri').substr(7)) : false));
+							if(file){
+								var defaultStream	=	'new Current broadcast enabled input "'+file+'" output #transcode{vcodec=FLV1,vb=4096,fps=25,scale=1,acodec=mp3,ab=512,samplerate=44100,channels=2}:std{access='+$('#stream_protocol').val()+',mux=ffmpeg{{mux=flv}},dst=0.0.0.0:'+$('#stream_port').val()+'/'+$('#stream_file').val()+'}';
+								sendVLMCmd('del Current;'+defaultStream+';control Current play');
+								$('#player').empty();
+								$('#player').attr('href',$('#stream_protocol').val()+'://'+$('#stream_host').val()+':'+$('#stream_port').val()+'/'+$('#stream_file').val());
+								flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
+								current_que			=	'stream';
+								updateStreams();
+							}
+							$(this).dialog('close');
+						},
+						"No":function(){
+							$(this).dialog('close');
+						}
+					}
+				});
+			});
+		</script>
+	</head>
 
-dialogs("browse","main","input","sout","playlist","footer")
-?>
+	<body>
+		<div align="center">
+		<div id="mainContainer" align="center">
+			<div id="controlContainer" class="ui-widget">
+				<table width="100%" border="0" cellspacing="0" id="controlTable" class="ui-widget-content">
+					<tr>
+						<td colspan="3" class="ui-widget-header">Main Controls</td>
+					</tr>
+					<tr>
+						<td id="controlButtons">
+							<div id="buttonOpen" class="button48  ui-corner-all" title="Open Media"></div>
+							<div id="buttonStop" class="button48  ui-corner-all" title="Stop"></div>
+							<div id="buttonPlay" class="button48  ui-corner-all" title="Play"></div>
+							<div id="buttonPrev" class="button48  ui-corner-all" title="Previous"></div>
+							<div id="buttonNext" class="button48  ui-corner-all" title="Next"></div>
+							<div id="buttonFull" class="button48  ui-corner-all" title="Full Screen"></div>
+							<div id="buttonSout" class="button48  ui-corner-all" title="Open Stream"></div>
+							<div id="volumeSlider" title="Volume"><img src="images/speaker-32.png" class="ui-slider-handle"/></div>
+							<div id="currentVolume" class="dynamic">50%</div>
+						</td>
+						
+						<td>
+							<div id="buttonPlayList" class="button ui-widget ui-state-default ui-corner-all" title="Hide / Show Library"><span class="ui-icon ui-icon-note"></span></div>
+							<div id="buttonViewer" class="button ui-widget ui-state-default ui-corner-all" title="Hide / Show Viewer"><span class="ui-icon ui-icon-video"></span></div>
+							<div id="buttonStreams" class="button ui-widget ui-state-default ui-corner-all" title="Manage Streams"><span class="ui-icon ui-icon-script"></span></div>
+						</td>
+						<td rowspan="3">
+							<img id="albumArt" src="/art" width="141px" height="130px"/>
+						</td>
+					</tr>
+					<tr>
+						<td colspan="2">
+							<div id="mediaTitle" class="dynamic"></div>
+						</td>
+					</tr>
+					<tr>
+						<td id="seekContainer" valign="bottom" colspan="2">
+							<div id="seekSlider" title="Seek Time"></div>
+							<table width="90%">
+								<tr>
+									<td>
+										<div id="currentTime" class="dynamic">00:00:00</div>
+									</td>
+									<td>
+										<div id="totalTime" class="dynamic">00:00:00</div>
+									</td>
+								</tr>
+							</table>
+						</td>
+					</tr>
 
-</body>
+				</table>
+			</div>
+			<div id="libraryContainer" class="ui-widget">
+				<div class="ui-widget-header">
+					Library
+				</div>
+				<div align="left" class="ui-widget-content" style="overflow:hidden; white-space: nowrap;">
+					<div id="buttonShuffle" class="button ui-widget ui-state-default ui-corner-all" title="Shuffle"><span class="ui-icon ui-icon-shuffle"></span></div>
+					<div id="buttonLoop" class="button ui-widget ui-state-default ui-corner-all" title="Loop"><span class="ui-icon ui-icon-refresh"></span></div>
+					<div id="buttonRepeat" class="button ui-widget ui-state-default ui-corner-all" title="Repeat"><span class="ui-icon ui-icon-arrowrefresh-1-s"></span></div>
+					<div id="buttonPlEmpty" class="button ui-widget ui-state-default ui-corner-all" title="Empty Playlist"><span class="ui-icon ui-icon-trash"></span></div>
+					<div id="buttonPlAdd" class="button ui-widget ui-state-default ui-corner-all" title="Queue Selected"><span class="ui-icon ui-icon-plus"></span></div>
+					<div id="buttonPlPlay" class="button ui-widget ui-state-default ui-corner-all" title="Play Selected"><span class="ui-icon ui-icon-play"></span></div>
+					<div id="buttonRefresh" class="button ui-widget ui-state-default ui-corner-all" title="Refresh List"><span class="ui-icon ui-icon-arrowrefresh-1-n"></span></div>
+				</div>
+				<div id="libraryTree" class="ui-widget-content"></div>
+			</div>
+			<div id="viewContainer" class="ui-widget">
+				<div class="ui-widget-header">Media Viewer</div>
+				<div id="mediaViewer" class="ui-widget-content">
+					<div href="http://localhost:8081/stream.flv" style="display:block;" id="player"></div>
+				</div>
+			</div>
+		</div>
+		</div>
+		<div id="windowStreamConfirm" title="Confirm Stream Settings">
+			<p>
+				By creating a stream, the <i>Main Controls</i> will operate the stream instead of the main interface.
+				The stream will be created using default settings, for more advanced configuration, or to modify the default settings,
+				select the <i>Manage Streams</i>
+				<span id="buttonStreams2" class="button ui-widget ui-state-default ui-corner-all" title="Manage Streams"><span class="ui-icon ui-icon-script"></span></span>
+				button to the right. 
+			</p>
+			<p>
+				Once the stream is created, the <i>Media Viewer</i> window will display the stream.
+				Volume will be controlled by the player, and not the <i>Main Controls</i>.
+			</p>
+			<p>
+				The current playing item will be streamed. If there is no currently playing item, the first selected item from the <i>Library</i> will be the subject of the stream.
+			</p>
+			<p>
+				To stop the stream and resume normal controls, click the <i>Open Stream</i> button again.
+			</p>
+			<p>
+				Are you sure you wish to create the stream?
+			</p>
+		</div>
+		<?vlc
+		current_page = "index"
 
-</html>
+		dialogs("browse_window.html","stream_window.html","create_stream.html")
+		?>
+	</body>
+</html>
\ No newline at end of file
diff --git a/share/lua/http/js/common.js b/share/lua/http/js/common.js
new file mode 100644
index 0000000..bfc24b1
--- /dev/null
+++ b/share/lua/http/js/common.js
@@ -0,0 +1,9 @@
+function format_time( s ){
+    var hours	= Math.floor(s/3600);
+    var minutes = Math.floor((s/60)%60);
+    var seconds = Math.floor(s%60);
+    hours		=	hours<10 ? "0"+hours : hours;
+	minutes		=	minutes<10 ? "0"+minutes : minutes;
+	seconds		=	seconds<10 ? "0"+seconds : seconds;
+    return hours+":"+minutes+":"+seconds;
+}
diff --git a/share/lua/http/js/controlers.js b/share/lua/http/js/controlers.js
new file mode 100644
index 0000000..a318952
--- /dev/null
+++ b/share/lua/http/js/controlers.js
@@ -0,0 +1,296 @@
+var current_id	=	1;
+var currentArt	=	null;
+var current_que	=	'main';
+function updateStatus(){
+	$.ajax({
+		url: 'requests/status.xml',
+		success: function(data,status,jqXHR){
+			if(current_que=='main'){
+				$('.dynamic').empty();
+				$('#mediaTitle').append($('[name="filename"]',data).text());
+				$('#totalTime').append(format_time($('length',data).text()));
+				$('#currentTime').append(format_time($('time',data).text()));
+				$('#seekSlider').slider({value: ($('time',data).text()/$('length',data).text()*100) })
+				$('#currentVolume').append(Math.round($('volume',data).text()/5.12)+'%');
+				$('#volumeSlider').slider({value: ($('volume',data).text()/5.12) });
+				$('#seekSlider').attr('totalLength',$('length',data).text());
+				$('#buttonPlay').attr('state',$('state',data).text());
+				if($('state',data).text()=='playing'){
+					$('#buttonPlay').css({
+						'background-image':'url("images/button_pause-48.png'
+					});
+				}else{
+					$('#buttonPlay').css({
+						'background-image':'url("images/button_play-48.png'
+					});
+				}
+				if($('random',data).text()=='true'){
+					$('#buttonShuffle').removeClass('ui-state-default');
+					$('#buttonShuffle').addClass('ui-state-active');
+				}else{
+					$('#buttonShuffle').addClass('ui-state-default');
+					$('#buttonShuffle').removeClass('ui-state-active');
+				}
+				if($('loop',data).text()=='true'){
+					$('#buttonLoop').removeClass('ui-state-default');
+					$('#buttonLoop').addClass('ui-state-active');
+				}else{
+					$('#buttonLoop').addClass('ui-state-default');
+					$('#buttonLoop').removeClass('ui-state-active');
+				}
+				if($('repeat',data).text()=='true'){
+					$('#buttonRepeat').removeClass('ui-state-default');
+					$('#buttonRepeat').addClass('ui-state-active');
+				}else{
+					$('#buttonRepeat').addClass('ui-state-default');
+					$('#buttonRepeat').removeClass('ui-state-active');
+				}
+				if($('[name="artwork_url"]',data).text()!=currentArt){
+					var tmp	=	new Date();
+					$('#albumArt').attr('src','/art?'+tmp.getTime());
+					currentArt	=	$('[name="artwork_url"]',data).text();
+				}
+				setTimeout( updateStatus, 1000 );
+			}
+		},
+		error: function(jqXHR,status,error){
+			setTimeout( updateStatus, 500 );
+		}
+	});
+}
+
+function updatePlayList(){
+	$('#libraryTree').jstree('refresh',-1);
+}
+function sendCommand(params){
+	if(current_que=='stream'){
+		$.ajax({
+			url: 'requests/status.xml',
+			data: params,
+			success:function(data,status,jqXHR){
+				updateStatus();
+				updatePlayList();
+			}
+		});
+	}else{
+		$.ajax({
+			url: 'requests/status.xml',
+			data: params,
+			success:function(data,status,jqXHR){
+				updatePlayList();
+			}
+		});
+	}
+	
+}
+function browse(dir){
+	dir	=	dir==undefined ? '~' : dir;
+	$.ajax({
+		url: 'requests/browse.xml',
+		data:'dir='+encodeURIComponent(dir),
+		success: function(data,status,jqXHR){
+			$('#browse_elements').empty();
+            $('element',data).each(function(){
+				if($(this).attr('type')=='dir' || $.inArray($(this).attr('name').substr(-3),video_types)!=-1 || $.inArray($(this).attr('name').substr(-3),audio_types)!=-1){
+					$('#browse_elements').append(createElementLi($(this).attr('name'),$(this).attr('type'),$(this).attr('path'),$(this).attr('name').substr(-3)));
+				}
+			});
+			$('[opendir]').dblclick(function(){
+				browse($(this).attr('opendir'));
+			});
+			$('[openfile]').dblclick(function(){
+				var tgt	=	browse_target.indexOf('__')==-1 ? browse_target : browse_target.substr(0,browse_target.indexOf('__'));
+				switch(tgt){
+					case '#stream_input':
+						$(browse_target).val($(this).attr('openfile'));
+						break;
+					case '#mosaic_open':
+						$('li',browse_target).remove();
+						$(browse_target).append(this);
+						$(this).css({
+							'margin-left' : -40,
+							'margin-top' : -46,
+							'float' : 'left'
+						});
+						break;
+					default:
+						sendCommand('command=in_play&input=file://'+encodeURIComponent($(this).attr('openfile')));
+						break;
+				}
+				$('#window_browse').dialog('close');
+			});
+			$('[selectable]').selectable();
+		},
+		error: function(jqXHR,status,error){
+			setTimeout('browse("'+dir+'")',1041);
+		}
+	});
+}
+function updateStreams(){
+	$.ajax({
+		url: 'requests/vlm.xml',
+		success:function(data,status,jqXHR){
+			$('#stream_info').accordion("destroy");
+			$('#stream_info').empty();
+			$('broadcast',data).each(function(){
+				var stream_div	=	$('#stream_status_').clone();
+				var name		=	$(this).attr('name');
+				var loop		=	$(this).attr('loop')=='yes';
+				var playing		=	$('instance',$(this)).attr('state')=='playing';
+				var file		=	$('input',$(this)).text();
+				var output		=	$('output',$(this)).text();
+				var time		=	isNaN(Math.round($('instance',$(this)).attr('time')/1000000)) ? 0 : Math.round($('instance',$(this)).attr('time')/1000000);
+				var length		=	isNaN(Math.round($('instance',$(this)).attr('length')/1000000)) ? 0 : Math.round($('instance',$(this)).attr('length')/1000000);
+				$('[id]',stream_div).each(function(){
+					$(this).attr('id',$(this).attr('id')+name);
+				});
+				$(stream_div).attr('id',$(stream_div).attr('id')+name);
+				$('#stream_title_'+name,stream_div).append(name);
+				$('#stream_file_'+name,stream_div).append(file);
+				$('#stream_pos_'+name,stream_div).slider({
+					value: 0,
+					range: "min",
+					min: 0,
+					slide: function( event, ui ) {
+						$( "#stream_current_time_"+name,stream_div ).empty();
+						$( "#stream_current_time_"+name,stream_div ).append( format_time(ui.value) );
+						$( "#stream_total_time_"+name,stream_div ).empty();
+						$( "#stream_total_time_"+name,stream_div ).append( format_time($('#stream_pos_'+name,stream_div).slider('option','max')) );
+						sendVLMCmd('control '+name+' seek '+Math.round(ui.value/$('#stream_pos_'+name,stream_div).slider('option','max')*100));
+					},
+					change: function(event, ui){
+						$( "#stream_current_time_"+name,stream_div ).empty();
+						$( "#stream_current_time_"+name,stream_div ).append( format_time(ui.value) );
+						$( "#stream_total_time_"+name,stream_div ).empty();
+						$( "#stream_total_time_"+name,stream_div ).append( format_time($('#stream_pos_'+name,stream_div).slider('option','max')) );
+					}
+				});
+				$('#button_stream_stop_'+name,stream_div).click(function(){
+					sendVLMCmd('control '+name+' stop');
+					return false;
+				});
+				$('#button_stream_play_'+name,stream_div).click(function(){
+					if($('span',this).hasClass('ui-icon-pause')){
+						sendVLMCmd('control '+name+' pause');
+					}else{
+						sendVLMCmd('control '+name+' play');
+					}
+				});
+				$('#button_stream_loop_'+name,stream_div).click(function(){
+					if(loop){
+						sendVLMCmd('setup '+name+' unloop');
+					}else{
+						sendVLMCmd('setup '+name+' loop');
+					}
+				});
+				$('#button_stream_delete_'+name,stream_div).click(function(){
+					sendVLMCmd('del '+name);
+				});
+				$('#stream_pos_'+name,stream_div).slider({
+					max: length,
+					value: time
+				});
+				if(playing){
+					$('span',$('#button_stream_play_'+name,stream_div)).removeClass('ui-icon-play');
+					$('span',$('#button_stream_play_'+name,stream_div)).addClass('ui-icon-pause');
+				}
+				if(loop){
+					$('#button_stream_loop_'+name,stream_div).addClass('ui-state-active');
+				}
+				$(stream_div).css({
+					'visibility':'',
+					'display':''
+				});
+				$('#stream_info').append(stream_div);
+
+			});
+			$('.button').hover(
+				function() { $(this).addClass('ui-state-hover'); },
+				function() { $(this).removeClass('ui-state-hover'); }
+			);
+			$('#stream_info').accordion({
+				header: "h3",
+				collapsible: true,
+				autoHeight: true
+			});
+			if(current_que=='stream'){
+				$('.dynamic').empty();
+				$('#mediaTitle').append($('[name="Current"] input',data).text());
+				$('#totalTime').append(format_time(isNaN($('[name="Current"] instance',data).attr('length')) ? 0 : $('[name="Current"] instance',data).attr('length')/1000000));
+				$('#currentTime').append(format_time(isNaN($('[name="Current"] instance',data).attr('time')) ? 0 : $('[name="Current"] instance',data).attr('time')/1000000));
+				$('#seekSlider').slider({value: (($('[name="Current"] instance',data).attr('time')/1000000)/($('[name="Current"] instance',data).attr('length')/1000000)*100) });
+				$('#seekSlider').attr('totalLength',$('[name="Current"] instance',data).attr('length')/1000000);
+				$('#buttonPlay').attr('state',$('[name="Current"] instance',data).length>0 ? $('[name="Current"] instance',data).attr('state') : 'stopped');
+				if($('[name="Current"] instance',data).attr('state')=='playing'){
+					$('#buttonPlay').css({
+						'background-image':'url("images/button_pause-48.png'
+					});
+				}else{
+					$('#buttonPlay').css({
+						'background-image':'url("images/button_play-48.png'
+					});
+				}
+				setTimeout( updateStreams, 1000 );
+			}
+			
+		}
+	});
+}
+function sendVLMCmd(command){
+	var commands	=	command.split(';');
+	if(commands.length>1){
+		sendBatchVLMCmd(command);
+	}else{
+		if(current_que=='main'){
+			$.ajax({
+				url: 'requests/vlm_cmd.xml',
+				data: 'command='+encodeURIComponent(command),
+				success: function(data,status,jqXHR){
+					updateStreams();
+				}
+			});
+		}else{
+			$.ajax({
+				url: 'requests/vlm_cmd.xml',
+				data: 'command='+encodeURIComponent(command)
+			});
+		}
+		
+	}
+}
+function sendBatchVLMCmd(command){
+	var commands	=	command.split(';');
+	$.ajax({
+		url: 'requests/vlm_cmd.xml',
+		data: 'command='+encodeURIComponent(commands.shift()),
+		success:function(data,status,jqXHR){
+			sendVLMCmd(commands.join(';'));
+		}
+	});
+}
+$(function(){
+	$('#libraryTree').jstree({
+		"xml_data":{
+			"ajax":{
+				"url" : "requests/playlist.xml"
+			},
+			"xsl" : "nest"
+		},
+		"themeroller":{
+			"item_leaf":"ui-icon-video"
+		},
+		"plugins" : ["xml_data","ui","themeroller"]
+	}).bind("loaded.jstree", function (event, data) {
+		$('[current]','[id^="plid_"]').each(function(){
+			$(this).addClass('ui-state-highlight');
+			current_id	=	$(this).attr('id').substr(5);
+		});
+	}).bind("refresh.jstree",function(event,data){
+		$('[current]','[id^="plid_"]').each(function(){
+			$(this).addClass('ui-state-highlight');
+			current_id	=	$(this).attr('id').substr(5);
+		});
+	});
+	updateStatus();
+	updateStreams();
+});
diff --git a/share/lua/http/js/functions.js b/share/lua/http/js/functions.js
deleted file mode 100644
index cbd78b1..0000000
--- a/share/lua/http/js/functions.js
+++ /dev/null
@@ -1,1219 +0,0 @@
-/*****************************************************************************
- * functions.js: VLC media player web interface
- *****************************************************************************
- * Copyright (C) 2005-2006 the VideoLAN team
- * $Id: functions.js 21264 2007-08-19 17:48:28Z dionoea $
- *
- * Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
- *****************************************************************************/
-
-/**********************************************************************
- * Global variables
- *********************************************************************/
-
-var old_time = 0;
-var pl_cur_id;
-var albumart_id = -1;
-
-/**********************************************************************
- * Slider functions
- *********************************************************************/
- 
-var slider_mouse_down = 0;
-var slider_dx = 0;
-
-var input_options = new Array();
-
-/* findPosX() from http://www.quirksmode.rg/js/indpos.html */
-function findPosX(obj)
-{
-    var curleft = 0;
-    if (obj.offsetParent)
-    {
-        while (obj.offsetParent)
-        {
-            curleft += obj.offsetLeft
-            obj = obj.offsetParent;
-        }
-    }
-    else if (obj.x)
-        curleft += obj.x;
-    return curleft;
-}
-
-function slider_seek( e, bar )
-{
-    seek(Math.floor(( e.clientX + document.body.scrollLeft - findPosX( bar )) / 4)+"%25");
-}
-function slider_down( e, point )
-{
-    slider_mouse_down = 1;
-    slider_dx = e.clientX - findPosX( point );
-}
-function slider_up( e, bar )
-{
-    slider_mouse_down = 0;
-    /* slider_seek( e, bar ); */
-}
-function slider_move( e, bar )
-{
-    if( slider_mouse_down == 1 )
-    {
-        var slider_position  = Math.floor( e.clientX - slider_dx + document.body.scrollLeft - findPosX( bar ));
-        document.getElementById( 'main_slider_point' ).style.left = slider_position+"px";
-        slider_seek( e, bar );
-    }
-}
-
-/**********************************************************************
- * Misc utils
- *********************************************************************/
-
-/* XMLHttpRequest wrapper */
-function loadXMLDoc( url, callback )
-{
-  // branch for native XMLHttpRequest object
-  if ( window.XMLHttpRequest )
-  {
-    req = new XMLHttpRequest();
-    req.onreadystatechange = callback;
-    req.open( "GET", url, true );
-    req.send( null );
-  // branch for IE/Windows ActiveX version
-  }
-  else if ( window.ActiveXObject )
-  {
-    req = new ActiveXObject( "Microsoft.XMLHTTP" );
-    if ( req )
-    {
-      req.onreadystatechange = callback;
-      req.open( "GET", url, true );
-      req.send();
-    }
-  }
-}
-
-/* fomat time in second as hh:mm:ss */
-function format_time( s )
-{
-    var hours = Math.floor(s/3600);
-    var minutes = Math.floor((s/60)%60);
-    var seconds = Math.floor(s%60);
-    if( hours < 10 ) hours = "0"+hours;
-    if( minutes < 10 ) minutes = "0"+minutes;
-    if( seconds < 10 ) seconds = "0"+seconds;
-    return hours+":"+minutes+":"+seconds;
-}
-
-/* delete all a tag's children and add a text child node */
-function set_text( id, val )
-{
-    var elt = document.getElementById( id );
-    while( elt.hasChildNodes() )
-        elt.removeChild( elt.firstChild );
-    elt.appendChild( document.createTextNode( val ) );
-}
-
-/* set item's 'element' attribute to value */
-function set_css( item, element, value )
-{
-    for( var j = 0; j < document.styleSheets.length; j++ )
-    {
-        var cssRules = document.styleSheets[j].cssRules;
-        if( !cssRules ) cssRules = document.styleSheets[j].rules;
-        for( var i = 0; i < cssRules.length; i++)
-        {
-            if( cssRules[i].selectorText == item )
-            {
-                if( cssRules[i].style.setProperty )
-                    cssRules[i].style.setProperty( element, value, null );
-                else
-                    cssRules[i].style.setAttribute( toCamelCase( element ), value );
-                return;
-            }
-        }
-    }
-}
-
-/* get item's 'element' attribute */
-function get_css( item, element )
-{
-    for( var j = 0; j < document.styleSheets.length; j++ )
-    {
-        var cssRules = document.styleSheets[j].cssRules;
-        if( !cssRules ) cssRules = document.styleSheets[j].rules;
-        for( var i = 0; i < cssRules.length; i++)
-        {
-            if( cssRules[i].selectorText == item )
-            {
-                if( cssRules[i].style.getPropertyValue )
-                    return cssRules[i].style.getPropertyValue( element );
-                else
-                    return cssRules[i].style.getAttribute( toCamelCase( element ) );
-            }
-        }
-    }
-}
-
-function toggle_show( id )
-{
-    var element = document.getElementById( id );
-    if( element.style.display == 'block' || element.style.display == '' )
-    {
-        element.style.display = 'none';
-    }
-    else
-    {
-        element.style.display = 'block';
-    }
-}
-function toggle_show_node( id )
-{
-    var element = document.getElementById( 'pl_'+id );
-    var img = document.getElementById( 'pl_img_'+id );
-    if( element.style.display == 'block' || element.style.display == '' )
-    {
-        element.style.display = 'none';
-        img.setAttribute( 'src', 'images/plus.png' );
-        img.setAttribute( 'alt', '[+]' );
-    }
-    else
-    {
-        element.style.display = 'block';
-        img.setAttribute( 'src', 'images/minus.png' );
-        img.setAttribute( 'alt', '[-]' );
-    }
-}
-
-function show( id ){ document.getElementById( id ).style.display = 'block'; }
-function showinline( id ){ document.getElementById( id ).style.display = 'inline'; }
-
-function hide( id ){ document.getElementById( id ).style.display = 'none'; }
-
-function checked( id ){ return document.getElementById( id ).checked; }
-
-function value( id ){ return document.getElementById( id ).value; }
-
-function setclass( obj, value )
-{
-    obj.setAttribute( 'class', value ); /* Firefox */
-    obj.setAttribute( 'className', value ); /* IE */
-}
-
-function radio_value( name )
-{
-    var radio = document.getElementsByName( name );
-    for( var i = 0; i < radio.length; i++ )
-    {
-        if( radio[i].checked )
-        {
-            return radio[i].value;
-        }
-    }
-    return "";
-}
-
-function check_and_replace_int( id, val )
-{
-    var objRegExp = /^\d+$/;
-    if( value( id ) != ''
-        && ( !objRegExp.test( value( id ) )
-             || parseInt( value( id ) ) < 1 ) )
-        return document.getElementById( id ).value = val;
-    return document.getElementById( id ).value;
-}
-
-function addslashes( str ){ return str.replace(/\'/g, '\\\''); }
-function escapebackslashes( str ){ return str.replace(/\\/g, '\\\\'); }
-
-function toCamelCase( str )
-{
-    str = str.split( '-' );
-    var cml = str[0];
-    for( var i=1; i<str.length; i++)
-        cml += str[i].charAt(0).toUpperCase()+str[i].substring(1);
-    return cml;
-}
-
-function disable( id ){ document.getElementById( id ).disabled = true; }
-
-function enable( id ){ document.getElementById( id ).disabled = false; }
-
-function button_over( element ){ element.style.border = "1px solid #000"; }
-
-function button_out( element ){ element.style.border = "1px solid #fff"; }
-function button_out_menu( element ){ element.style.border = "1px solid transparent"; }
-
-function show_menu( id ){ document.getElementById(id).style.display = 'block'; }
-function hide_menu( id ){ document.getElementById(id).style.display = 'none'; }
-
-/* toggle show help under the buttons */
-function toggle_btn_text()
-{
-    if( get_css( '.btn_text', 'display' ) == 'none' )
-    {
-        set_css( '.btn_text', 'display', 'block' );
-    }
-    else
-    {
-        set_css( '.btn_text', 'display', 'none' );
-    }
-}
-
-function clear_children( elt )
-{   
-    if( elt )
-        while( elt.hasChildNodes() )
-            elt.removeChild( elt.firstChild );
-}
-
-/**********************************************************************
- * Interface actions
- *********************************************************************/
-/* input actions */
-function in_playenqueue( cmd )
-{
-    var input = value('input_mrl');
-    var url = 'requests/status.xml?command=in_'+cmd+'&input='+encodeURIComponent( addslashes(escapebackslashes(input)) );
-    for( i in input_options )
-        if( input_options[i] != ':option=value' )
-            url += '&option='+encodeURIComponent( addslashes(escapebackslashes(input_options[i]) ));
-    loadXMLDoc( url, parse_status );
-    setTimeout( 'update_playlist()', 1000 );
-}
-
-function in_play()
-{
-    in_playenqueue( 'play' );
-}
-
-function in_enqueue()
-{
-    in_playenqueue( 'enqueue' );
-}
-
-/* playlist actions */
-function pl_play( id )
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_play&id='+id, parse_status );
-    pl_cur_id = id;
-    setTimeout( 'update_playlist()', 1000 );
-}
-function pl_pause()
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_pause&id='+pl_cur_id, parse_status );
-}
-function pl_stop()
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_stop', parse_status );
-    setTimeout( 'update_playlist()', 1000 );
-}
-function pl_next()
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_next', parse_status );
-    setTimeout( 'update_playlist()', 1000 );
-}
-function pl_previous()
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_previous', parse_status );
-    setTimeout( 'update_playlist()', 1000 );
-}
-function pl_delete( id )
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_delete&id='+id, parse_status );
-    setTimeout( 'update_playlist()', 1000 );
-}
-function pl_empty()
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_empty', parse_status );
-    setTimeout( 'update_playlist()', 1000 );
-}
-function pl_sort( sort, order )
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_sort&id='+order+'&val='+sort, parse_status );
-    setTimeout( 'update_playlist()', 1000 );
-}
-function pl_shuffle()
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_random', parse_status );
-    setTimeout( 'update_playlist()', 1000 );
-}
-function pl_loop()
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_loop', parse_status );
-}
-function pl_repeat()
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_repeat', parse_status );
-}
-function pl_sd( value )
-{
-    loadXMLDoc( 'requests/status.xml?command=pl_sd&val='+value, parse_status );
-}
-
-/* misc actions */
-function volume_down()
-{
-    loadXMLDoc( 'requests/status.xml?command=volume&val=-20', parse_status );
-}
-function volume_up()
-{
-    loadXMLDoc( 'requests/status.xml?command=volume&val=%2B20', parse_status );
-}
-function volume_mute()
-{
-    loadXMLDoc( 'requests/status.xml?command=volume&val=0', parse_status );
-}
-function seek( pos )
-{
-    loadXMLDoc( 'requests/status.xml?command=seek&val='+pos, parse_status );
-}
-function fullscreen()
-{
-    loadXMLDoc( 'requests/status.xml?command=fullscreen', parse_status );
-}
-function snapshot()
-{
-    loadXMLDoc( 'requests/status.xml?command=snapshot', parse_status );
-}
-function hotkey( str )
-{
-    /* Use hotkey name (without the "key-" part) as the argument to simulate a hotkey press */
-    loadXMLDoc( 'requests/status.xml?command=key&val='+str, parse_status );
-}
-function update_status()
-{
-    loadXMLDoc( 'requests/status.xml', parse_status );
-}
-function update_playlist()
-{
-    loadXMLDoc( 'requests/playlist.xml', parse_playlist );
-}
-function update_playlist_search(key)
-{
-    loadXMLDoc( 'requests/playlist.xml?search='+encodeURIComponent(key), parse_playlist )
-}
-function reset_search()
-{
-    var search = document.getElementById('search')
-    if( search )
-    {
-        search.value = '<search>'
-        update_playlist_search('')
-    }
-}
-function audiodelay_down()
-{
-    var curdel = parseFloat(req.responseXML.documentElement.getElementsByTagName( 'audiodelay' )[0].firstChild.data);
-    var curdelnew = curdel - 0.05;
-    curdelnew=curdelnew.toFixed(2);
-    loadXMLDoc( 'requests/status.xml?command=audiodelay&val='+encodeURIComponent(curdelnew), parse_status );
-}
-function audiodelay_up()
-{
-    var curdel = parseFloat(req.responseXML.documentElement.getElementsByTagName( 'audiodelay' )[0].firstChild.data);
-    var curdelnew = curdel + 0.05;
-    curdelnew=curdelnew.toFixed(2);
-    loadXMLDoc( 'requests/status.xml?command=audiodelay&val='+encodeURIComponent(curdelnew), parse_status );
-}
-function playrate_down()
-{
-    var currate = parseFloat(req.responseXML.documentElement.getElementsByTagName( 'rate' )[0].firstChild.data);
-    var curratenew = currate - 0.05;
-    curratenew=curratenew.toFixed(2);
-    loadXMLDoc( 'requests/status.xml?command=rate&val='+encodeURIComponent(curratenew), parse_status );
-}
-function playrate_up()
-{
-    var currate = parseFloat(req.responseXML.documentElement.getElementsByTagName( 'rate' )[0].firstChild.data);
-    var curratenew = currate + 0.05;
-    curratenew=curratenew.toFixed(2);
-    loadXMLDoc( 'requests/status.xml?command=rate&val='+encodeURIComponent(curratenew), parse_status );
-}
-function subdel_down()
-{
-    var curdel = parseFloat(req.responseXML.documentElement.getElementsByTagName( 'subtitledelay' )[0].firstChild.data);
-    var curdelnew = curdel - 0.05;
-    curdelnew=curdelnew.toFixed(2);
-    loadXMLDoc( 'requests/status.xml?command=subdelay&val='+encodeURIComponent(curdelnew), parse_status );
-}
-function subdel_up()
-{
-    var curdel = parseFloat(req.responseXML.documentElement.getElementsByTagName( 'subtitledelay' )[0].firstChild.data);
-    var curdelnew = curdel + 0.05;
-    curdelnew=curdelnew.toFixed(2);
-    loadXMLDoc( 'requests/status.xml?command=subdelay&val='+encodeURIComponent(curdelnew), parse_status );
-}
-
-/**********************************************************************
- * Parse xml replies to XMLHttpRequests
- *********************************************************************/
-/* parse request/status.xml */
-function parse_status()
-{
-    if( req.readyState == 4 )
-    {
-        if( req.status == 200 )
-        {
-            var status = req.responseXML.documentElement;
-            var timetag = status.getElementsByTagName( 'time' );
-            if( timetag.length > 0 )
-            {
-                var new_time = timetag[0].firstChild.data;
-            }
-            else
-            {
-                new_time = old_time;
-            }
-            var lengthtag = status.getElementsByTagName( 'length' );
-            var length;
-            if( lengthtag.length > 0 )
-            {
-                length = lengthtag[0].firstChild.data;
-            }
-            else
-            {
-                length = 0;
-            }
-            var slider_position;
-            positiontag = status.getElementsByTagName( 'position' );
-            if( length < 100 && positiontag.length > 0 )
-            {
-                slider_position = ( positiontag[0].firstChild.data * 4 ) + "px";
-            }
-            else if( length > 0 )
-            {
-                /* this is more precise if length > 100 */
-                slider_position = Math.floor( ( new_time * 400 ) / length ) + "px";
-            }
-            else
-            {
-                slider_position = 0;
-            }
-            if( old_time > new_time )
-                setTimeout('update_playlist()',50);
-            old_time = new_time;
-            set_text( 'time', format_time( new_time ) );
-            set_text( 'length', format_time( length ) );
-            var audio_delay = (parseFloat(req.responseXML.documentElement.getElementsByTagName( 'audiodelay' )[0].firstChild.data).toFixed(2))*1000;
-            set_text( 'a_del', audio_delay ); 
-            var play_rate = (parseFloat(req.responseXML.documentElement.getElementsByTagName( 'rate' )[0].firstChild.data).toFixed(2));
-            set_text( 'p_rate', play_rate ); 
-            var subs_delay = (parseFloat(req.responseXML.documentElement.getElementsByTagName( 'subtitledelay' )[0].firstChild.data).toFixed(2))*1000;
-            set_text( 's_del', subs_delay ); 
-            if( status.getElementsByTagName( 'volume' ).length != 0 )
-                set_text( 'volume', Math.floor(status.getElementsByTagName( 'volume' )[0].firstChild.data/5.12)+'%' );
-            var statetag = status.getElementsByTagName( 'state' );
-            if( statetag.length > 0 )
-            {
-            	set_text( 'state', statetag[0].firstChild.data );
-            }
-            else
-            {
-                set_text( 'state', '(?)' );
-            }
-            if( slider_mouse_down == 0 )
-            {
-                document.getElementById( 'main_slider_point' ).style.left = slider_position;
-            }
-            var statustag = status.getElementsByTagName( 'state' );
-            if( statustag.length > 0 ? statustag[0].firstChild.data == "playing" : 0 )
-            {
-                document.getElementById( 'btn_pause_img' ).setAttribute( 'src', 'images/pause.png' );
-                document.getElementById( 'btn_pause_img' ).setAttribute( 'alt', 'Pause' );
-                document.getElementById( 'btn_pause' ).setAttribute( 'title', 'Pause' );
-            }
-            else
-            {
-                document.getElementById( 'btn_pause_img' ).setAttribute( 'src', 'images/play.png' );
-                document.getElementById( 'btn_pause_img' ).setAttribute( 'alt', 'Play' );
-                document.getElementById( 'btn_pause' ).setAttribute( 'title', 'Play' );
-            }
-
-            var randomtag = status.getElementsByTagName( 'random' );
-            if( randomtag.length > 0 ? randomtag[0].firstChild.data == "1" : 0)
-                setclass( document.getElementById( 'btn_shuffle'), 'on' );
-            else
-                setclass( document.getElementById( 'btn_shuffle'), 'off' );
-               
-            var looptag = status.getElementsByTagName( 'loop' );
-            if( looptag.length > 0 ? looptag[0].firstChild.data == "1" : 0)
-                setclass( document.getElementById( 'btn_loop'), 'on' );
-            else
-                setclass( document.getElementById( 'btn_loop'), 'off' );
-
-            var repeattag = status.getElementsByTagName( 'repeat' );
-            if( repeattag.length > 0 ? repeattag[0].firstChild.data == "1" : 0 )
-                setclass( document.getElementById( 'btn_repeat'), 'on' );
-            else
-                setclass( document.getElementById( 'btn_repeat'), 'off' );
-
-            var tree = document.createElement( "ul" );
-            var categories = status.getElementsByTagName( 'category' );
-            var i;
-            for( i = 0; i < categories.length; i++ )
-            {
-                var item = document.createElement( "li" );
-                item.appendChild( document.createTextNode( categories[i].getAttribute( 'name' ) ) );
-                var subtree = document.createElement( "dl" );
-                var infos = categories[i].getElementsByTagName( 'info' );
-                var j;
-                for( j = 0; j < infos.length; j++ )
-                {
-                    var subitem = document.createElement( "dt" );
-                    subitem.appendChild( document.createTextNode( infos[j].getAttribute( 'name' ) ) );
-                    subtree.appendChild( subitem );
-                    if( infos[j].hasChildNodes() )
-                    {
-                        var subitem = document.createElement( "dd" );
-                        subitem.appendChild( document.createTextNode( infos[j].firstChild.data ) );
-                        subtree.appendChild( subitem );
-                    }
-                }
-                item.appendChild( subtree );
-                tree.appendChild( item );
-            }
-            var infotree = document.getElementById('infotree' );
-            clear_children( infotree );
-            infotree.appendChild( tree );
-            
-        }
-        else
-        {
-            /*alert( 'Error! HTTP server replied: ' + req.status );*/
-        }
-    }
-}
-
-/* parse playlist.xml */
-function parse_playlist()
-{
-    if( req.readyState == 4 )
-    {
-        if( req.status == 200 )
-        {
-            var answer = req.responseXML.documentElement;
-            var playtree = document.getElementById( 'playtree' );
-            var pos = document.createElement( "div" );
-            var pos_top = pos;
-            var elt = answer.firstChild;
-            
-            pl_cur_id = 0;  /* changed to the current id is there actually
-                             * is a current id */
-            while( elt )
-            {
-                if( elt.nodeName == "node" )
-                {
-                    if( pos.hasChildNodes() )
-                        pos.appendChild( document.createElement( "br" ) );
-                    var nda = document.createElement( 'a' );
-                    nda.setAttribute( 'href', 'javascript:toggle_show_node(\''+elt.getAttribute( 'id' )+'\');' );
-                    var ndai = document.createElement( 'img' );
-                    ndai.setAttribute( 'src', 'images/minus.png' );
-                    ndai.setAttribute( 'alt', '[-]' );
-                    ndai.setAttribute( 'id', 'pl_img_'+elt.getAttribute( 'id' ) );
-                    nda.appendChild( ndai );
-                    pos.appendChild( nda );
-                    pos.appendChild( document.createTextNode( ' ' + elt.getAttribute( 'name' ) ) );
-
-                    if( elt.getAttribute( 'ro' ) == 'rw' )
-                    {
-                        pos.appendChild( document.createTextNode( ' ' ) );
-                        var del = document.createElement( "a" );
-                        del.setAttribute( 'href', 'javascript:pl_delete('+elt.getAttribute( 'id' )+')' );
-                            var delimg = document.createElement( "img" );
-                            delimg.setAttribute( 'src', 'images/delete_small.png' );
-                            delimg.setAttribute( 'alt', '(delete)' );
-                        del.appendChild( delimg );
-                        pos.appendChild( del );
-                    }
-
-                    var nd = document.createElement( "div" );
-                    setclass( nd, 'pl_node' );
-                    nd.setAttribute( 'id', 'pl_'+elt.getAttribute( 'id' ) );
-                    pos.appendChild( nd );
-                }
-                else if( elt.nodeName == "leaf" )
-                {
-                    if( pos.hasChildNodes() )
-                    pos.appendChild( document.createElement( "br" ) );
-                    var pl = document.createElement( "a" );
-                    setclass( pl, 'pl_leaf' );
-                    pl.setAttribute( 'href', 'javascript:pl_play('+elt.getAttribute( 'id' )+');' );
-                    pl.setAttribute( 'id', 'pl_'+elt.getAttribute( 'id' ) );
-                    if( elt.getAttribute( 'current' ) == 'current' )
-                    {
-                        pl.style.fontWeight = 'bold';
-                        var nowplaying = document.getElementById( 'nowplaying' );
-                        clear_children( nowplaying );
-                        nowplaying.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
-                        pl.appendChild( document.createTextNode( '* '));
-                        pl_cur_id = elt.getAttribute( 'id' );
-                    }
-                    pl.setAttribute( 'title', elt.getAttribute( 'uri' ));
-                    pl.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
-                    var duration = elt.getAttribute( 'duration' );
-                    if( duration > 0 )
-                        pl.appendChild( document.createTextNode( " (" + format_time( elt.getAttribute( 'duration' ) ) + ")" ) );
-                    pos.appendChild( pl );
-
-                    if( elt.getAttribute( 'ro' ) == 'rw' )
-                    {
-                        pos.appendChild( document.createTextNode( ' ' ) );
-                        var del = document.createElement( "a" );
-                        del.setAttribute( 'href', 'javascript:pl_delete('+elt.getAttribute( 'id' )+')' );
-                            var delimg = document.createElement( "img" );
-                            delimg.setAttribute( 'src', 'images/delete_small.png' );
-                            delimg.setAttribute( 'alt', '(delete)' );
-                        del.appendChild( delimg );
-                        pos.appendChild( del );
-                    }
-                }
-                if( elt.firstChild )
-                {
-                    elt = elt.firstChild;
-                    pos = pos.lastChild;
-                }
-                else if( elt.nextSibling )
-                {
-                    elt = elt.nextSibling;
-                    pos = pos;
-                }
-                else
-                {
-                    while( ! elt.parentNode.nextSibling )
-                    {
-                        elt = elt.parentNode;
-                        if( ! elt.parentNode ) break;
-                        pos = pos.parentNode;
-                    }
-                    if( ! elt.parentNode ) break;
-                    elt = elt.parentNode.nextSibling;
-                    pos = pos.parentNode;
-                }
-            }
-            clear_children( playtree );
-            playtree.appendChild( pos_top );
-        }
-        else
-        {
-            /*alert( 'Error! HTTP server replied: ' + req.status );*/
-        }
-    }
-}
-
-/* parse browse.xml */
-function parse_browse_dir( )
-{
-    if( req.readyState == 4 )
-    {
-        if( req.status == 200 )
-        {
-            var answer = req.responseXML.documentElement;
-            if( !answer ) return;
-            var browser = document.getElementById( 'browser' );
-            var pos = document.createElement( "div" );
-            var elt = answer.firstChild;
-            while( elt )
-            {
-                if( elt.nodeName == "element" )
-                {
-                    var item = document.createElement( "a" );
-                    setclass( item, 'browser' );
-                    if( elt.getAttribute( 'type' ) == 'dir' )
-                    {
-                        item.setAttribute( 'href', 'javascript:browse_dir(\''+addslashes(escapebackslashes(elt.getAttribute( 'path' )))+'\');');
-                    }
-                    else
-                    {
-                        item.setAttribute( 'href', 'javascript:browse_path(\''+addslashes(escapebackslashes(elt.getAttribute( 'path' )))+'\');' );
-                    }
-                    item.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
-                    pos.appendChild( item );
-                    if( elt.getAttribute( 'type' ) == 'dir' )
-                    {
-                        pos.appendChild( document.createTextNode( ' ' ) );
-                        var item = document.createElement( "a" );
-                        setclass( item, 'browser' );
-                        item.setAttribute( 'href', 'javascript:browse_path(\''+addslashes(escapebackslashes(elt.getAttribute( 'path' )))+'\');');
-                        item.appendChild( document.createTextNode( '(select)' ) );
-                        pos.appendChild( item );
-                    }
-                    pos.appendChild( document.createElement( "br" ) );
-                }
-                elt = elt.nextSibling;
-            }
-            clear_children( browser );
-            browser.appendChild( pos );
-        }
-        else
-        {
-            /*alert( 'Error! HTTP server replied: ' + req.status );*/
-        }
-    }
-}
-
-/**********************************************************************
- * Input dialog functions
- *********************************************************************/
-function hide_input( )
-{
-    document.getElementById( 'input_file' ).style.display = 'none';
-    document.getElementById( 'input_disc' ).style.display = 'none';
-    document.getElementById( 'input_network' ).style.display = 'none';
-    document.getElementById( 'input_fake' ).style.display = 'none';
-}
-
-/* update the input MRL using data from the input file helper */
-/* FIXME ... subs support */
-function update_input_file()
-{
-    var mrl = document.getElementById( 'input_mrl' );
-
-    mrl.value = value( 'input_file_filename' );
-}
-
-/* update the input MRL using data from the input disc helper */
-function update_input_disc()
-{
-    var mrl     = document.getElementById( 'input_mrl' );
-    var type    = radio_value( "input_disc_type" );
-    var device  = value( "input_disc_dev" );
-
-    var title   = check_and_replace_int( 'input_disc_title', 0 );
-    var chapter = check_and_replace_int( 'input_disc_chapter', 0 );
-    var subs    = check_and_replace_int( 'input_disc_subtrack', '' );
-    var audio   = check_and_replace_int( 'input_disc_audiotrack', 0 );
-
-    mrl.value = "";
-
-    if( type == "dvd" )
-    {
-        mrl.value += "dvd://";
-    }
-    else if( type == "dvdsimple" )
-    {
-        mrl.value += "dvdsimple://";
-    }
-    else if( type == "vcd" )
-    {
-        mrl.value += "vcd://";
-    }
-    else if( type == "cdda" )
-    {
-        mrl.value += "cdda://";
-    }
-
-    mrl.value += device;
-
-    if( title )
-    {
-        mrl.value += "@"+title;
-        if( chapter && type != "cdda" )
-            mrl.value += ":"+chapter;
-    }
-
-    remove_input_options( ':sub-track' );
-    remove_input_options( ':audio-track' );
-
-    if( type != "cdda" )
-    {
-        if( subs != '' )
-            add_input_option( ":sub-track="+subs );
-        if( audio != '' )
-            add_input_option( ":audio-track="+audio );
-    }
-
-}
-
-/* update the input MRL using data from the input network helper */
-function update_input_net()
-{
-    var mrl = document.getElementById( 'input_mrl' );
-    var type = radio_value( "input_net_type" );
-    
-    check_and_replace_int( 'input_net_udp_port', 1234 );
-    check_and_replace_int( 'input_net_udpmcast_port', 1234 );
-
-    mrl.value = "";
-
-    if( type == "udp" )
-    {
-        mrl.value += "udp://";
-        if( value( 'input_net_udp_port' ) )
-            mrl.value += ":"+value( 'input_net_udp_port' );
-    }
-    else if( type == "udpmcast" )
-    {
-        mrl.value += "udp://@"+value( 'input_net_udpmcast_address');
-        if( value( 'input_net_udpmcast_port' ) )
-            mrl.value += ":"+value( 'input_net_udpmcast_port' );
-    }
-    else if( type == "http" )
-    {
-        var url = value( 'input_net_http_url' );
-        if( url.substring(0,7) != "http://"
-            && url.substring(0,8) != "https://"
-            && url.substring(0,6) != "ftp://"
-            && url.substring(0,6) != "mms://"
-            && url.substring(0,7) != "mmsh://" )
-            mrl.value += "http://";
-        mrl.value += url;
-    }
-    else if( type == "rtsp" )
-    {
-        var url = value( 'input_net_rtsp_url' );
-        if( url.substring(0,7) != "rtsp://" )
-            mrl.value += "rtsp://";
-        mrl.value += url;
-    }
-
-    remove_input_options( ':access-filter' );
-    if( checked( "input_net_timeshift" ) )
-        add_input_option( ":access-filter=timeshift" );
-}
-
-/* update the input MRL using data from the input fake helper */
-function update_input_fake()
-{
-    remove_input_options( ":fake" );
-    var mrl = document.getElementById( 'input_mrl' );
-
-    mrl.value = "fake://";
-
-    add_input_option( ":fake-file=" + value( "input_fake_filename" ) );
-
-    if( value( "input_fake_width" ) )
-        add_input_option( ":fake-width=" + value( "input_fake_width" ) );
-    if( value( "input_fake_height" ) )
-        add_input_option( ":fake-height=" + value( "input_fake_height" ) );
-    if( value( "input_fake_ar" ) )
-        add_input_option( ":fake-ar=" + value( "input_fake_ar" ) );
-}
-
-/**********************************************************************
- * Sout dialog functions
- *********************************************************************/
-/* toggle show the full sout interface */
-function toggle_show_sout_helper()
-{
-    var element = document.getElementById( "sout_helper" );
-    if( element.style.display == 'block' )
-    {
-        element.style.display = 'none';
-        document.getElementById( "sout_helper_toggle" ).value = 'Full sout interface';
-    }
-    else
-    {
-        element.style.display = 'block';
-        document.getElementById( "sout_helper_toggle" ).value = 'Hide sout interface';
-    }
-}
-
-/* update the sout MRL using data from the sout_helper */
-function update_sout()
-{
-    var option = "";
-    /* Remove all options starting with :sout since we're going to write them
-     * again. */
-    remove_input_options( ":sout" );
-
-    check_and_replace_int( 'sout_http_port', 8080 );
-    check_and_replace_int( 'sout_mmsh_port', 8080 );
-    check_and_replace_int( 'sout_rtp_port', 1234 );
-    check_and_replace_int( 'sout_udp_port', 1234 );
-    check_and_replace_int( 'sout_ttl', 1 );
-
-    if( checked( 'sout_soverlay' ) )
-    {
-        disable( 'sout_scodec' );
-        disable( 'sout_sub' );
-    }
-    else
-    {
-        enable( 'sout_scodec' );
-        enable( 'sout_sub' );
-    }
-
-    var transcode =  checked( 'sout_vcodec_s' ) || checked( 'sout_acodec_s' )
-                  || checked( 'sout_sub' )      || checked( 'sout_soverlay' );
-
-    if( transcode )
-    {
-        option = ":sout=#transcode{";
-        var alot = false; /* alot == at least one transcode */
-        if( checked( 'sout_vcodec_s' ) )
-        {
-            option += "vcodec="+value( 'sout_vcodec' )+",vb="+value( 'sout_vb' )+",scale="+value( 'sout_scale' );
-            alot = true;
-        }
-        if( checked( 'sout_acodec_s' ) )
-        {
-            if( alot ) option += ",";
-            option += "acodec="+value( 'sout_acodec' )+",ab="+value( 'sout_ab' );
-            if( value( 'sout_channels' ) )
-                option += ",channels="+value( 'sout_channels' );
-            alot = true;
-        }
-        if( checked( 'sout_soverlay' ) )
-        {
-            if( alot ) option += ",";
-            option += "soverlay";
-            alot = true;
-        }
-        else if( checked( 'sout_sub' ) )
-        {
-            if( alot ) option += ",";
-            option += "scodec="+value( 'sout_scodec' );
-            alot = true;
-        }
-        option += value( 'sout_transcode_extra' );
-            
-        option += "}";
-
-    }
-
-    var output = checked( 'sout_display' ) + checked( 'sout_file' )
-               + checked( 'sout_http' )    + checked( 'sout_mmsh' )
-               + checked( 'sout_rtp' )     + checked( 'sout_udp' );
-
-    if( output )
-    {
-        if( transcode )
-            option += ":";
-        else
-            option += ":sout=#";
-        var aloo = false; /* aloo == at least one output */
-        var mux = radio_value( 'sout_mux' );
-        var ttl = parseInt( value( 'sout_ttl' ) );
-        if( output > 1 ) option += "duplicate{";
-        if( checked( 'sout_display' ) )
-        {
-            if( output > 1 ) option += "dst="
-            option += "display";
-            aloo = true;
-        }
-        if( checked( 'sout_file' ) )
-        {
-            if( aloo ) option += ",";
-            if( output > 1 ) option += "dst="
-            option += "std{access=file,mux="+mux+",dst="+value( 'sout_file_filename' )+"}";
-            aloo = true;
-        }
-        if( checked( 'sout_http' ) )
-        {
-            if( aloo ) option += ",";
-            if( output > 1 ) option += "dst="
-            option += "std{access=http,mux="+mux+",dst="+value( 'sout_http_addr' );
-            if( value( 'sout_http_port' ) )
-                option += ":"+value( 'sout_http_port' );
-            option += "}";
-            aloo = true;
-        }
-        if( checked( 'sout_mmsh' ) )
-        {
-            if( aloo ) option += ",";
-            if( output > 1 ) option += "dst="
-            option += "std{access=mmsh,mux="+mux+",dst="+value( 'sout_mmsh_addr' );
-            if( value( 'sout_mmsh_port' ) )
-                option += ":"+value( 'sout_mmsh_port' );
-            option += "}";
-            aloo = true;
-        }
-        if( checked( 'sout_rtp' ) )
-        {
-            if( aloo ) option += ",";
-            if( output > 1 ) option += "dst="
-            option += "std{access=rtp";
-            if( ttl ) option += "{ttl="+ttl+"}";
-            option += ",mux="+mux+",dst="+value( 'sout_rtp_addr' );
-            if( value( 'sout_rtp_port' ) )
-                option += ":"+value( 'sout_rtp_port' );
-            if( checked( 'sout_sap' ) )
-            {
-                option += ",sap";
-                if( value( 'sout_sap_group' ) != '' )
-                {
-                    option += ",group=\""+value( 'sout_sap_group' )+"\"";
-                }
-                option += ",name=\""+value( 'sout_sap_name' )+"\"";
-            }
-            option += "}";
-            aloo = true;
-        }
-        if( checked( 'sout_udp' ) )
-        {
-            if( aloo ) option += ",";
-            if( output > 1 ) option += "dst="
-            option += "std{access=udp";
-            if( ttl ) option += "{ttl="+ttl+"}";
-            option += ",mux="+mux+",dst="+value( 'sout_udp_addr' );
-            if( value('sout_udp_port' ) )
-                option += ":"+value( 'sout_udp_port' );
-            if( checked( 'sout_sap' ) )
-            {
-                option += ",sap";
-                if( value( 'sout_sap_group' ) != '' )
-                {
-                    option += ",group=\""+value( 'sout_sap_group' )+"\"";
-                }
-                option += ",name=\""+value( 'sout_sap_name' )+"\"";
-            }
-            option += "}";
-            aloo = true;
-        }
-        if( output > 1 ) option += "}";
-    }
-
-    if( option != "" )
-        input_options.push( option );
-
-    if( ( transcode || output ) && checked( 'sout_all' ) )
-        input_options.push( ":sout-all" );
-
-    var mrl = document.getElementById( 'sout_mrl' );
-    mrl.value = option;
-
-    refresh_input_options_list();
-}
-
-/* reset sout mrl value */
-function reset_sout()
-{
-    document.getElementById('sout_mrl').value = value('sout_old_mrl');
-}
-
-/* save sout mrl value */
-function save_sout()
-{
-    document.getElementById('sout_old_mrl').value = value('sout_mrl');
-}
-
-function refresh_input_options_list()
-{
-    var iol = document.getElementById( 'input_options_list' );
-    clear_children( iol );
-    input_options.sort();
-    for( i in input_options )
-    {
-        var o = document.createElement( 'div' );
-        var ot = document.createElement( 'input' );
-        ot.setAttribute( 'type', 'text' );
-        ot.setAttribute( 'size', '60' );
-        ot.setAttribute( 'value', input_options[i] );
-        ot.setAttribute( 'id', 'input_option_item_'+i );
-        ot.setAttribute( 'onchange', 'javascript:save_input_option('+i+',this.value);' );
-        ot.setAttribute( 'onfocus', 'if( this.value == ":option=value" ) this.value = ":";' );
-        ot.setAttribute( 'onblur', 'if( this.value == ":" ) this.value = ":option=value";' );
-        o.appendChild( ot );
-        var od = document.createElement( 'a' );
-        od.setAttribute( 'href', 'javascript:delete_input_option('+i+');' );
-        var delimg = document.createElement( "img" );
-        delimg.setAttribute( 'src', 'images/delete_small.png' );
-        delimg.setAttribute( 'alt', '(delete)' );
-        od.appendChild( delimg );
-        o.appendChild( od );
-        iol.appendChild( o );
-    }
-}
-
-function delete_input_option( i )
-{
-    input_options.splice(i,1);
-    refresh_input_options_list();
-}
-
-function save_input_option( i, value )
-{
-    input_options[i] = value;
-    refresh_input_options_list();
-}
-
-function add_input_option( value )
-{
-    input_options.push( value );
-    refresh_input_options_list();
-}
-
-function remove_input_options( prefix )
-{
-    for( i in input_options )
-        if( input_options[i].substring( 0, prefix.length ) == prefix )
-        {
-            delete input_options[i];
-            i--;
-        }
-}
-
-
-/**********************************************************************
- * Browser dialog functions
- *********************************************************************/
-/* only browse() should be called directly */
-function browse( dest )
-{
-    document.getElementById( 'browse_dest' ).value = dest;
-    document.getElementById( 'browse_lastdir' ).value;
-    browse_dir( document.getElementById( 'browse_lastdir' ).value );
-    show( 'browse' );
-}
-function browse_dir( dir )
-{
-    document.getElementById( 'browse_lastdir' ).value = dir;
-    loadXMLDoc( 'requests/browse.xml?dir='+encodeURIComponent(dir), parse_browse_dir );
-}
-function browse_path( p )
-{
-    document.getElementById( value( 'browse_dest' ) ).value = p;
-    hide( 'browse' );
-    document.getElementById( value( 'browse_dest' ) ).focus();
-}
-function refresh_albumart( force )
-{
-    if( albumart_id != pl_cur_id || force )
-    {
-        var now = new Date();
-        var albumart = document.getElementById( 'albumart' );
-        albumart.src = '/art?timestamp=' + now.getTime();
-        albumart_id = pl_cur_id;
-    }
-}
-/**********************************************************************
- * Periodically update stuff in the interface
- *********************************************************************/
-function loop_refresh_status()
-{
-    setTimeout( 'loop_refresh_status()', 1000 );
-    update_status();
-}
-function loop_refresh_playlist()
-{
-    /* setTimeout( 'loop_refresh_playlist()', 10000 ); */
-    update_playlist();
-}
-function loop_refresh_albumart()
-{
-    setTimeout( 'loop_refresh_albumart()', 1000 );
-    refresh_albumart( false );
-}
-function loop_refresh()
-{
-    setTimeout( 'loop_refresh_status()', 1 );
-    setTimeout( 'loop_refresh_playlist()', 1 );
-    setTimeout( 'loop_refresh_albumart()', 1 );
-}
-
diff --git a/share/lua/http/js/jquery.jstree.js b/share/lua/http/js/jquery.jstree.js
new file mode 100644
index 0000000..b02baaa
--- /dev/null
+++ b/share/lua/http/js/jquery.jstree.js
@@ -0,0 +1,4544 @@
+/*
+ * jsTree 1.0-rc3
+ * http://jstree.com/
+ *
+ * Copyright (c) 2010 Ivan Bozhanov (vakata.com)
+ *
+ * Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License
+ *   http://www.opensource.org/licenses/mit-license.php
+ *   http://www.gnu.org/licenses/gpl.html
+ *
+ * $Date: 2011-02-09 01:17:14 +0200 (ср, 09 февр 2011) $
+ * $Revision: 236 $
+ */
+
+/*jslint browser: true, onevar: true, undef: true, bitwise: true, strict: true */
+/*global window : false, clearInterval: false, clearTimeout: false, document: false, setInterval: false, setTimeout: false, jQuery: false, navigator: false, XSLTProcessor: false, DOMParser: false, XMLSerializer: false*/
+
+"use strict";
+
+// top wrapper to prevent multiple inclusion (is this OK?)
+(function () { if(jQuery && jQuery.jstree) { return; }
+	var is_ie6 = false, is_ie7 = false, is_ff2 = false;
+
+/* 
+ * jsTree core
+ */
+(function ($) {
+	// Common functions not related to jsTree 
+	// decided to move them to a `vakata` "namespace"
+	$.vakata = {};
+	// CSS related functions
+	$.vakata.css = {
+		get_css : function(rule_name, delete_flag, sheet) {
+			rule_name = rule_name.toLowerCase();
+			var css_rules = sheet.cssRules || sheet.rules,
+				j = 0;
+			do {
+				if(css_rules.length && j > css_rules.length + 5) { return false; }
+				if(css_rules[j].selectorText && css_rules[j].selectorText.toLowerCase() == rule_name) {
+					if(delete_flag === true) {
+						if(sheet.removeRule) { sheet.removeRule(j); }
+						if(sheet.deleteRule) { sheet.deleteRule(j); }
+						return true;
+					}
+					else { return css_rules[j]; }
+				}
+			}
+			while (css_rules[++j]);
+			return false;
+		},
+		add_css : function(rule_name, sheet) {
+			if($.jstree.css.get_css(rule_name, false, sheet)) { return false; }
+			if(sheet.insertRule) { sheet.insertRule(rule_name + ' { }', 0); } else { sheet.addRule(rule_name, null, 0); }
+			return $.vakata.css.get_css(rule_name);
+		},
+		remove_css : function(rule_name, sheet) { 
+			return $.vakata.css.get_css(rule_name, true, sheet); 
+		},
+		add_sheet : function(opts) {
+			var tmp = false, is_new = true;
+			if(opts.str) {
+				if(opts.title) { tmp = $("style[id='" + opts.title + "-stylesheet']")[0]; }
+				if(tmp) { is_new = false; }
+				else {
+					tmp = document.createElement("style");
+					tmp.setAttribute('type',"text/css");
+					if(opts.title) { tmp.setAttribute("id", opts.title + "-stylesheet"); }
+				}
+				if(tmp.styleSheet) {
+					if(is_new) { 
+						document.getElementsByTagName("head")[0].appendChild(tmp); 
+						tmp.styleSheet.cssText = opts.str; 
+					}
+					else {
+						tmp.styleSheet.cssText = tmp.styleSheet.cssText + " " + opts.str; 
+					}
+				}
+				else {
+					tmp.appendChild(document.createTextNode(opts.str));
+					document.getElementsByTagName("head")[0].appendChild(tmp);
+				}
+				return tmp.sheet || tmp.styleSheet;
+			}
+			if(opts.url) {
+				if(document.createStyleSheet) {
+					try { tmp = document.createStyleSheet(opts.url); } catch (e) { }
+				}
+				else {
+					tmp			= document.createElement('link');
+					tmp.rel		= 'stylesheet';
+					tmp.type	= 'text/css';
+					tmp.media	= "all";
+					tmp.href	= opts.url;
+					document.getElementsByTagName("head")[0].appendChild(tmp);
+					return tmp.styleSheet;
+				}
+			}
+		}
+	};
+
+	// private variables 
+	var instances = [],			// instance array (used by $.jstree.reference/create/focused)
+		focused_instance = -1,	// the index in the instance array of the currently focused instance
+		plugins = {},			// list of included plugins
+		prepared_move = {};		// for the move_node function
+
+	// jQuery plugin wrapper (thanks to jquery UI widget function)
+	$.fn.jstree = function (settings) {
+		var isMethodCall = (typeof settings == 'string'), // is this a method call like $().jstree("open_node")
+			args = Array.prototype.slice.call(arguments, 1), 
+			returnValue = this;
+
+		// if a method call execute the method on all selected instances
+		if(isMethodCall) {
+			if(settings.substring(0, 1) == '_') { return returnValue; }
+			this.each(function() {
+				var instance = instances[$.data(this, "jstree-instance-id")],
+					methodValue = (instance && $.isFunction(instance[settings])) ? instance[settings].apply(instance, args) : instance;
+					if(typeof methodValue !== "undefined" && (settings.indexOf("is_") === 0 || (methodValue !== true && methodValue !== false))) { returnValue = methodValue; return false; }
+			});
+		}
+		else {
+			this.each(function() {
+				// extend settings and allow for multiple hashes and $.data
+				var instance_id = $.data(this, "jstree-instance-id"),
+					a = [],
+					b = settings ? $.extend({}, true, settings) : {},
+					c = $(this), 
+					s = false, 
+					t = [];
+				a = a.concat(args);
+				if(c.data("jstree")) { a.push(c.data("jstree")); }
+				b = a.length ? $.extend.apply(null, [true, b].concat(a)) : b;
+
+				// if an instance already exists, destroy it first
+				if(typeof instance_id !== "undefined" && instances[instance_id]) { instances[instance_id].destroy(); }
+				// push a new empty object to the instances array
+				instance_id = parseInt(instances.push({}),10) - 1;
+				// store the jstree instance id to the container element
+				$.data(this, "jstree-instance-id", instance_id);
+				// clean up all plugins
+				b.plugins = $.isArray(b.plugins) ? b.plugins : $.jstree.defaults.plugins.slice();
+				b.plugins.unshift("core");
+				// only unique plugins
+				b.plugins = b.plugins.sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(",");
+
+				// extend defaults with passed data
+				s = $.extend(true, {}, $.jstree.defaults, b);
+				s.plugins = b.plugins;
+				$.each(plugins, function (i, val) { 
+					if($.inArray(i, s.plugins) === -1) { s[i] = null; delete s[i]; } 
+					else { t.push(i); }
+				});
+				s.plugins = t;
+
+				// push the new object to the instances array (at the same time set the default classes to the container) and init
+				instances[instance_id] = new $.jstree._instance(instance_id, $(this).addClass("jstree jstree-" + instance_id), s); 
+				// init all activated plugins for this instance
+				$.each(instances[instance_id]._get_settings().plugins, function (i, val) { instances[instance_id].data[val] = {}; });
+				$.each(instances[instance_id]._get_settings().plugins, function (i, val) { if(plugins[val]) { plugins[val].__init.apply(instances[instance_id]); } });
+				// initialize the instance
+				setTimeout(function() { instances[instance_id].init(); }, 0);
+			});
+		}
+		// return the jquery selection (or if it was a method call that returned a value - the returned value)
+		return returnValue;
+	};
+	// object to store exposed functions and objects
+	$.jstree = {
+		defaults : {
+			plugins : []
+		},
+		_focused : function () { return instances[focused_instance] || null; },
+		_reference : function (needle) { 
+			// get by instance id
+			if(instances[needle]) { return instances[needle]; }
+			// get by DOM (if still no luck - return null
+			var o = $(needle); 
+			if(!o.length && typeof needle === "string") { o = $("#" + needle); }
+			if(!o.length) { return null; }
+			return instances[o.closest(".jstree").data("jstree-instance-id")] || null; 
+		},
+		_instance : function (index, container, settings) { 
+			// for plugins to store data in
+			this.data = { core : {} };
+			this.get_settings	= function () { return $.extend(true, {}, settings); };
+			this._get_settings	= function () { return settings; };
+			this.get_index		= function () { return index; };
+			this.get_container	= function () { return container; };
+			this.get_container_ul = function () { return container.children("ul:eq(0)"); };
+			this._set_settings	= function (s) { 
+				settings = $.extend(true, {}, settings, s);
+			};
+		},
+		_fn : { },
+		plugin : function (pname, pdata) {
+			pdata = $.extend({}, {
+				__init		: $.noop, 
+				__destroy	: $.noop,
+				_fn			: {},
+				defaults	: false
+			}, pdata);
+			plugins[pname] = pdata;
+
+			$.jstree.defaults[pname] = pdata.defaults;
+			$.each(pdata._fn, function (i, val) {
+				val.plugin		= pname;
+				val.old			= $.jstree._fn[i];
+				$.jstree._fn[i] = function () {
+					var rslt,
+						func = val,
+						args = Array.prototype.slice.call(arguments),
+						evnt = new $.Event("before.jstree"),
+						rlbk = false;
+
+					if(this.data.core.locked === true && i !== "unlock" && i !== "is_locked") { return; }
+
+					// Check if function belongs to the included plugins of this instance
+					do {
+						if(func && func.plugin && $.inArray(func.plugin, this._get_settings().plugins) !== -1) { break; }
+						func = func.old;
+					} while(func);
+					if(!func) { return; }
+
+					// context and function to trigger events, then finally call the function
+					if(i.indexOf("_") === 0) {
+						rslt = func.apply(this, args);
+					}
+					else {
+						rslt = this.get_container().triggerHandler(evnt, { "func" : i, "inst" : this, "args" : args, "plugin" : func.plugin });
+						if(rslt === false) { return; }
+						if(typeof rslt !== "undefined") { args = rslt; }
+
+						rslt = func.apply(
+							$.extend({}, this, { 
+								__callback : function (data) { 
+									this.get_container().triggerHandler( i + '.jstree', { "inst" : this, "args" : args, "rslt" : data, "rlbk" : rlbk });
+								},
+								__rollback : function () { 
+									rlbk = this.get_rollback();
+									return rlbk;
+								},
+								__call_old : function (replace_arguments) {
+									return func.old.apply(this, (replace_arguments ? Array.prototype.slice.call(arguments, 1) : args ) );
+								}
+							}), args);
+					}
+
+					// return the result
+					return rslt;
+				};
+				$.jstree._fn[i].old = val.old;
+				$.jstree._fn[i].plugin = pname;
+			});
+		},
+		rollback : function (rb) {
+			if(rb) {
+				if(!$.isArray(rb)) { rb = [ rb ]; }
+				$.each(rb, function (i, val) {
+					instances[val.i].set_rollback(val.h, val.d);
+				});
+			}
+		}
+	};
+	// set the prototype for all instances
+	$.jstree._fn = $.jstree._instance.prototype = {};
+
+	// load the css when DOM is ready
+	$(function() {
+		// code is copied from jQuery ($.browser is deprecated + there is a bug in IE)
+		var u = navigator.userAgent.toLowerCase(),
+			v = (u.match( /.+?(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
+			css_string = '' + 
+				'.jstree ul, .jstree li { display:block; margin:0 0 0 0; padding:0 0 0 0; list-style-type:none; } ' + 
+				'.jstree li { display:block; min-height:18px; line-height:18px; white-space:nowrap; margin-left:18px; min-width:18px; } ' + 
+				'.jstree-rtl li { margin-left:0; margin-right:18px; } ' + 
+				'.jstree > ul > li { margin-left:0px; } ' + 
+				'.jstree-rtl > ul > li { margin-right:0px; } ' + 
+				'.jstree ins { display:inline-block; text-decoration:none; width:18px; height:18px; margin:0 0 0 0; padding:0; } ' + 
+				'.jstree a { display:inline-block; line-height:16px; height:16px; color:black; white-space:nowrap; text-decoration:none; padding:1px 2px; margin:0; } ' + 
+				'.jstree a:focus { outline: none; } ' + 
+				'.jstree a > ins { height:16px; width:16px; } ' + 
+				'.jstree a > .jstree-icon { margin-right:3px; } ' + 
+				'.jstree-rtl a > .jstree-icon { margin-left:3px; margin-right:0; } ' + 
+				'li.jstree-open > ul { display:block; } ' + 
+				'li.jstree-closed > ul { display:none; } ';
+		// Correct IE 6 (does not support the > CSS selector)
+		if(/msie/.test(u) && parseInt(v, 10) == 6) { 
+			is_ie6 = true;
+
+			// fix image flicker and lack of caching
+			try {
+				document.execCommand("BackgroundImageCache", false, true);
+			} catch (err) { }
+
+			css_string += '' + 
+				'.jstree li { height:18px; margin-left:0; margin-right:0; } ' + 
+				'.jstree li li { margin-left:18px; } ' + 
+				'.jstree-rtl li li { margin-left:0px; margin-right:18px; } ' + 
+				'li.jstree-open ul { display:block; } ' + 
+				'li.jstree-closed ul { display:none !important; } ' + 
+				'.jstree li a { display:inline; border-width:0 !important; padding:0px 2px !important; } ' + 
+				'.jstree li a ins { height:16px; width:16px; margin-right:3px; } ' + 
+				'.jstree-rtl li a ins { margin-right:0px; margin-left:3px; } ';
+		}
+		// Correct IE 7 (shifts anchor nodes onhover)
+		if(/msie/.test(u) && parseInt(v, 10) == 7) { 
+			is_ie7 = true;
+			css_string += '.jstree li a { border-width:0 !important; padding:0px 2px !important; } ';
+		}
+		// correct ff2 lack of display:inline-block
+		if(!/compatible/.test(u) && /mozilla/.test(u) && parseFloat(v, 10) < 1.9) {
+			is_ff2 = true;
+			css_string += '' + 
+				'.jstree ins { display:-moz-inline-box; } ' + 
+				'.jstree li { line-height:12px; } ' + // WHY??
+				'.jstree a { display:-moz-inline-box; } ' + 
+				'.jstree .jstree-no-icons .jstree-checkbox { display:-moz-inline-stack !important; } ';
+				/* this shouldn't be here as it is theme specific */
+		}
+		// the default stylesheet
+		$.vakata.css.add_sheet({ str : css_string, title : "jstree" });
+	});
+
+	// core functions (open, close, create, update, delete)
+	$.jstree.plugin("core", {
+		__init : function () {
+			this.data.core.locked = false;
+			this.data.core.to_open = this.get_settings().core.initially_open;
+			this.data.core.to_load = this.get_settings().core.initially_load;
+		},
+		defaults : { 
+			html_titles	: false,
+			animation	: 500,
+			initially_open : [],
+			initially_load : [],
+			open_parents : true,
+			notify_plugins : true,
+			rtl			: false,
+			load_open	: false,
+			strings		: {
+				loading		: "Loading ...",
+				new_node	: "New node",
+				multiple_selection : "Multiple selection"
+			}
+		},
+		_fn : { 
+			init	: function () { 
+				this.set_focus(); 
+				if(this._get_settings().core.rtl) {
+					this.get_container().addClass("jstree-rtl").css("direction", "rtl");
+				}
+				this.get_container().html("<ul><li class='jstree-last jstree-leaf'><ins> </ins><a class='jstree-loading' href='#'><ins class='jstree-icon'> </ins>" + this._get_string("loading") + "</a></li></ul>");
+				this.data.core.li_height = this.get_container_ul().find("li.jstree-closed, li.jstree-leaf").eq(0).height() || 18;
+
+				this.get_container()
+					.delegate("li > ins", "click.jstree", $.proxy(function (event) {
+							var trgt = $(event.target);
+							if(trgt.is("ins") && event.pageY - trgt.offset().top < this.data.core.li_height) { this.toggle_node(trgt); }
+						}, this))
+					.bind("mousedown.jstree", $.proxy(function () { 
+							this.set_focus(); // This used to be setTimeout(set_focus,0) - why?
+						}, this))
+					.bind("dblclick.jstree", function (event) { 
+						var sel;
+						if(document.selection && document.selection.empty) { document.selection.empty(); }
+						else {
+							if(window.getSelection) {
+								sel = window.getSelection();
+								try { 
+									sel.removeAllRanges();
+									sel.collapse();
+								} catch (err) { }
+							}
+						}
+					});
+				if(this._get_settings().core.notify_plugins) {
+					this.get_container()
+						.bind("load_node.jstree", $.proxy(function (e, data) { 
+								var o = this._get_node(data.rslt.obj),
+									t = this;
+								if(o === -1) { o = this.get_container_ul(); }
+								if(!o.length) { return; }
+								o.find("li").each(function () {
+									var th = $(this);
+									if(th.data("jstree")) {
+										$.each(th.data("jstree"), function (plugin, values) {
+											if(t.data[plugin] && $.isFunction(t["_" + plugin + "_notify"])) {
+												t["_" + plugin + "_notify"].call(t, th, values);
+											}
+										});
+									}
+								});
+							}, this));
+				}
+				if(this._get_settings().core.load_open) {
+					this.get_container()
+						.bind("load_node.jstree", $.proxy(function (e, data) { 
+								var o = this._get_node(data.rslt.obj),
+									t = this;
+								if(o === -1) { o = this.get_container_ul(); }
+								if(!o.length) { return; }
+								o.find("li.jstree-open:not(:has(ul))").each(function () {
+									t.load_node(this, $.noop, $.noop);
+								});
+							}, this));
+				}
+				this.__callback();
+				this.load_node(-1, function () { this.loaded(); this.reload_nodes(); });
+			},
+			destroy	: function () { 
+				var i,
+					n = this.get_index(),
+					s = this._get_settings(),
+					_this = this;
+
+				$.each(s.plugins, function (i, val) {
+					try { plugins[val].__destroy.apply(_this); } catch(err) { }
+				});
+				this.__callback();
+				// set focus to another instance if this one is focused
+				if(this.is_focused()) { 
+					for(i in instances) { 
+						if(instances.hasOwnProperty(i) && i != n) { 
+							instances[i].set_focus(); 
+							break; 
+						} 
+					}
+				}
+				// if no other instance found
+				if(n === focused_instance) { focused_instance = -1; }
+				// remove all traces of jstree in the DOM (only the ones set using jstree*) and cleans all events
+				this.get_container()
+					.unbind(".jstree")
+					.undelegate(".jstree")
+					.removeData("jstree-instance-id")
+					.find("[class^='jstree']")
+						.andSelf()
+						.attr("class", function () { return this.className.replace(/jstree[^ ]*|$/ig,''); });
+				$(document)
+					.unbind(".jstree-" + n)
+					.undelegate(".jstree-" + n);
+				// remove the actual data
+				instances[n] = null;
+				delete instances[n];
+			},
+
+			_core_notify : function (n, data) {
+				if(data.opened) {
+					this.open_node(n, false, true);
+				}
+			},
+
+			lock : function () {
+				this.data.core.locked = true;
+				this.get_container().children("ul").addClass("jstree-locked").css("opacity","0.7");
+				this.__callback({});
+			},
+			unlock : function () {
+				this.data.core.locked = false;
+				this.get_container().children("ul").removeClass("jstree-locked").css("opacity","1");
+				this.__callback({});
+			},
+			is_locked : function () { return this.data.core.locked; },
+			save_opened : function () {
+				var _this = this;
+				this.data.core.to_open = [];
+				this.get_container_ul().find("li.jstree-open").each(function () { 
+					if(this.id) { _this.data.core.to_open.push("#" + this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")); }
+				});
+				this.__callback(_this.data.core.to_open);
+			},
+			save_loaded : function () { },
+			reload_nodes : function (is_callback) {
+				var _this = this,
+					done = true,
+					current = [],
+					remaining = [];
+				if(!is_callback) { 
+					this.data.core.reopen = false; 
+					this.data.core.refreshing = true; 
+					this.data.core.to_open = $.map($.makeArray(this.data.core.to_open), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); });
+					this.data.core.to_load = $.map($.makeArray(this.data.core.to_load), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); });
+					if(this.data.core.to_open.length) {
+						this.data.core.to_load = this.data.core.to_load.concat(this.data.core.to_open);
+					}
+				}
+				if(this.data.core.to_load.length) {
+					$.each(this.data.core.to_load, function (i, val) {
+						if(val == "#") { return true; }
+						if($(val).length) { current.push(val); }
+						else { remaining.push(val); }
+					});
+					if(current.length) {
+						this.data.core.to_load = remaining;
+						$.each(current, function (i, val) { 
+							if(!_this._is_loaded(val)) {
+								_this.load_node(val, function () { _this.reload_nodes(true); }, function () { _this.reload_nodes(true); });
+								done = false;
+							}
+						});
+					}
+				}
+				if(this.data.core.to_open.length) {
+					$.each(this.data.core.to_open, function (i, val) {
+						_this.open_node(val, false, true); 
+					});
+				}
+				if(done) { 
+					// TODO: find a more elegant approach to syncronizing returning requests
+					if(this.data.core.reopen) { clearTimeout(this.data.core.reopen); }
+					this.data.core.reopen = setTimeout(function () { _this.__callback({}, _this); }, 50);
+					this.data.core.refreshing = false;
+					this.reopen();
+				}
+			},
+			reopen : function () {
+				var _this = this;
+				if(this.data.core.to_open.length) {
+					$.each(this.data.core.to_open, function (i, val) {
+						_this.open_node(val, false, true); 
+					});
+				}
+				this.__callback({});
+			},
+			refresh : function (obj) {
+				var _this = this;
+				this.save_opened();
+				if(!obj) { obj = -1; }
+				obj = this._get_node(obj);
+				if(!obj) { obj = -1; }
+				if(obj !== -1) { obj.children("UL").remove(); }
+				else { this.get_container_ul().empty(); }
+				this.load_node(obj, function () { _this.__callback({ "obj" : obj}); _this.reload_nodes(); });
+			},
+			// Dummy function to fire after the first load (so that there is a jstree.loaded event)
+			loaded	: function () { 
+				this.__callback(); 
+			},
+			// deal with focus
+			set_focus	: function () { 
+				if(this.is_focused()) { return; }
+				var f = $.jstree._focused();
+				if(f) { f.unset_focus(); }
+
+				this.get_container().addClass("jstree-focused"); 
+				focused_instance = this.get_index(); 
+				this.__callback();
+			},
+			is_focused	: function () { 
+				return focused_instance == this.get_index(); 
+			},
+			unset_focus	: function () {
+				if(this.is_focused()) {
+					this.get_container().removeClass("jstree-focused"); 
+					focused_instance = -1; 
+				}
+				this.__callback();
+			},
+
+			// traverse
+			_get_node		: function (obj) { 
+				var $obj = $(obj, this.get_container()); 
+				if($obj.is(".jstree") || obj == -1) { return -1; } 
+				$obj = $obj.closest("li", this.get_container()); 
+				return $obj.length ? $obj : false; 
+			},
+			_get_next		: function (obj, strict) {
+				obj = this._get_node(obj);
+				if(obj === -1) { return this.get_container().find("> ul > li:first-child"); }
+				if(!obj.length) { return false; }
+				if(strict) { return (obj.nextAll("li").size() > 0) ? obj.nextAll("li:eq(0)") : false; }
+
+				if(obj.hasClass("jstree-open")) { return obj.find("li:eq(0)"); }
+				else if(obj.nextAll("li").size() > 0) { return obj.nextAll("li:eq(0)"); }
+				else { return obj.parentsUntil(".jstree","li").next("li").eq(0); }
+			},
+			_get_prev		: function (obj, strict) {
+				obj = this._get_node(obj);
+				if(obj === -1) { return this.get_container().find("> ul > li:last-child"); }
+				if(!obj.length) { return false; }
+				if(strict) { return (obj.prevAll("li").length > 0) ? obj.prevAll("li:eq(0)") : false; }
+
+				if(obj.prev("li").length) {
+					obj = obj.prev("li").eq(0);
+					while(obj.hasClass("jstree-open")) { obj = obj.children("ul:eq(0)").children("li:last"); }
+					return obj;
+				}
+				else { var o = obj.parentsUntil(".jstree","li:eq(0)"); return o.length ? o : false; }
+			},
+			_get_parent		: function (obj) {
+				obj = this._get_node(obj);
+				if(obj == -1 || !obj.length) { return false; }
+				var o = obj.parentsUntil(".jstree", "li:eq(0)");
+				return o.length ? o : -1;
+			},
+			_get_children	: function (obj) {
+				obj = this._get_node(obj);
+				if(obj === -1) { return this.get_container().children("ul:eq(0)").children("li"); }
+				if(!obj.length) { return false; }
+				return obj.children("ul:eq(0)").children("li");
+			},
+			get_path		: function (obj, id_mode) {
+				var p = [],
+					_this = this;
+				obj = this._get_node(obj);
+				if(obj === -1 || !obj || !obj.length) { return false; }
+				obj.parentsUntil(".jstree", "li").each(function () {
+					p.push( id_mode ? this.id : _this.get_text(this) );
+				});
+				p.reverse();
+				p.push( id_mode ? obj.attr("id") : this.get_text(obj) );
+				return p;
+			},
+
+			// string functions
+			_get_string : function (key) {
+				return this._get_settings().core.strings[key] || key;
+			},
+
+			is_open		: function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-open"); },
+			is_closed	: function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-closed"); },
+			is_leaf		: function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-leaf"); },
+			correct_state	: function (obj) {
+				obj = this._get_node(obj);
+				if(!obj || obj === -1) { return false; }
+				obj.removeClass("jstree-closed jstree-open").addClass("jstree-leaf").children("ul").remove();
+				this.__callback({ "obj" : obj });
+			},
+			// open/close
+			open_node	: function (obj, callback, skip_animation) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				if(!obj.hasClass("jstree-closed")) { if(callback) { callback.call(); } return false; }
+				var s = skip_animation || is_ie6 ? 0 : this._get_settings().core.animation,
+					t = this;
+				if(!this._is_loaded(obj)) {
+					obj.children("a").addClass("jstree-loading");
+					this.load_node(obj, function () { t.open_node(obj, callback, skip_animation); }, callback);
+				}
+				else {
+					if(this._get_settings().core.open_parents) {
+						obj.parentsUntil(".jstree",".jstree-closed").each(function () {
+							t.open_node(this, false, true);
+						});
+					}
+					if(s) { obj.children("ul").css("display","none"); }
+					obj.removeClass("jstree-closed").addClass("jstree-open").children("a").removeClass("jstree-loading");
+					if(s) { obj.children("ul").stop(true, true).slideDown(s, function () { this.style.display = ""; t.after_open(obj); }); }
+					else { t.after_open(obj); }
+					this.__callback({ "obj" : obj });
+					if(callback) { callback.call(); }
+				}
+			},
+			after_open	: function (obj) { this.__callback({ "obj" : obj }); },
+			close_node	: function (obj, skip_animation) {
+				obj = this._get_node(obj);
+				var s = skip_animation || is_ie6 ? 0 : this._get_settings().core.animation,
+					t = this;
+				if(!obj.length || !obj.hasClass("jstree-open")) { return false; }
+				if(s) { obj.children("ul").attr("style","display:block !important"); }
+				obj.removeClass("jstree-open").addClass("jstree-closed");
+				if(s) { obj.children("ul").stop(true, true).slideUp(s, function () { this.style.display = ""; t.after_close(obj); }); }
+				else { t.after_close(obj); }
+				this.__callback({ "obj" : obj });
+			},
+			after_close	: function (obj) { this.__callback({ "obj" : obj }); },
+			toggle_node	: function (obj) {
+				obj = this._get_node(obj);
+				if(obj.hasClass("jstree-closed")) { return this.open_node(obj); }
+				if(obj.hasClass("jstree-open")) { return this.close_node(obj); }
+			},
+			open_all	: function (obj, do_animation, original_obj) {
+				obj = obj ? this._get_node(obj) : -1;
+				if(!obj || obj === -1) { obj = this.get_container_ul(); }
+				if(original_obj) { 
+					obj = obj.find("li.jstree-closed");
+				}
+				else {
+					original_obj = obj;
+					if(obj.is(".jstree-closed")) { obj = obj.find("li.jstree-closed").andSelf(); }
+					else { obj = obj.find("li.jstree-closed"); }
+				}
+				var _this = this;
+				obj.each(function () { 
+					var __this = this; 
+					if(!_this._is_loaded(this)) { _this.open_node(this, function() { _this.open_all(__this, do_animation, original_obj); }, !do_animation); }
+					else { _this.open_node(this, false, !do_animation); }
+				});
+				// so that callback is fired AFTER all nodes are open
+				if(original_obj.find('li.jstree-closed').length === 0) { this.__callback({ "obj" : original_obj }); }
+			},
+			close_all	: function (obj, do_animation) {
+				var _this = this;
+				obj = obj ? this._get_node(obj) : this.get_container();
+				if(!obj || obj === -1) { obj = this.get_container_ul(); }
+				obj.find("li.jstree-open").andSelf().each(function () { _this.close_node(this, !do_animation); });
+				this.__callback({ "obj" : obj });
+			},
+			clean_node	: function (obj) {
+				obj = obj && obj != -1 ? $(obj) : this.get_container_ul();
+				obj = obj.is("li") ? obj.find("li").andSelf() : obj.find("li");
+				obj.removeClass("jstree-last")
+					.filter("li:last-child").addClass("jstree-last").end()
+					.filter(":has(li)")
+						.not(".jstree-open").removeClass("jstree-leaf").addClass("jstree-closed");
+				obj.not(".jstree-open, .jstree-closed").addClass("jstree-leaf").children("ul").remove();
+				this.__callback({ "obj" : obj });
+			},
+			// rollback
+			get_rollback : function () { 
+				this.__callback();
+				return { i : this.get_index(), h : this.get_container().children("ul").clone(true), d : this.data }; 
+			},
+			set_rollback : function (html, data) {
+				this.get_container().empty().append(html);
+				this.data = data;
+				this.__callback();
+			},
+			// Dummy functions to be overwritten by any datastore plugin included
+			load_node	: function (obj, s_call, e_call) { this.__callback({ "obj" : obj }); },
+			_is_loaded	: function (obj) { return true; },
+
+			// Basic operations: create
+			create_node	: function (obj, position, js, callback, is_loaded) {
+				obj = this._get_node(obj);
+				position = typeof position === "undefined" ? "last" : position;
+				var d = $("<li />"),
+					s = this._get_settings().core,
+					tmp;
+
+				if(obj !== -1 && !obj.length) { return false; }
+				if(!is_loaded && !this._is_loaded(obj)) { this.load_node(obj, function () { this.create_node(obj, position, js, callback, true); }); return false; }
+
+				this.__rollback();
+
+				if(typeof js === "string") { js = { "data" : js }; }
+				if(!js) { js = {}; }
+				if(js.attr) { d.attr(js.attr); }
+				if(js.metadata) { d.data(js.metadata); }
+				if(js.state) { d.addClass("jstree-" + js.state); }
+				if(!js.data) { js.data = this._get_string("new_node"); }
+				if(!$.isArray(js.data)) { tmp = js.data; js.data = []; js.data.push(tmp); }
+				$.each(js.data, function (i, m) {
+					tmp = $("<a />");
+					if($.isFunction(m)) { m = m.call(this, js); }
+					if(typeof m == "string") { tmp.attr('href','#')[ s.html_titles ? "html" : "text" ](m); }
+					else {
+						if(!m.attr) { m.attr = {}; }
+						if(!m.attr.href) { m.attr.href = '#'; }
+						tmp.attr(m.attr)[ s.html_titles ? "html" : "text" ](m.title);
+						if(m.language) { tmp.addClass(m.language); }
+					}
+					tmp.prepend("<ins class='jstree-icon'> </ins>");
+					if(m.icon) { 
+						if(m.icon.indexOf("/") === -1) { tmp.children("ins").addClass(m.icon); }
+						else { tmp.children("ins").css("background","url('" + m.icon + "') center center no-repeat"); }
+					}
+					d.append(tmp);
+				});
+				d.prepend("<ins class='jstree-icon'> </ins>");
+				if(obj === -1) {
+					obj = this.get_container();
+					if(position === "before") { position = "first"; }
+					if(position === "after") { position = "last"; }
+				}
+				switch(position) {
+					case "before": obj.before(d); tmp = this._get_parent(obj); break;
+					case "after" : obj.after(d);  tmp = this._get_parent(obj); break;
+					case "inside":
+					case "first" :
+						if(!obj.children("ul").length) { obj.append("<ul />"); }
+						obj.children("ul").prepend(d);
+						tmp = obj;
+						break;
+					case "last":
+						if(!obj.children("ul").length) { obj.append("<ul />"); }
+						obj.children("ul").append(d);
+						tmp = obj;
+						break;
+					default:
+						if(!obj.children("ul").length) { obj.append("<ul />"); }
+						if(!position) { position = 0; }
+						tmp = obj.children("ul").children("li").eq(position);
+						if(tmp.length) { tmp.before(d); }
+						else { obj.children("ul").append(d); }
+						tmp = obj;
+						break;
+				}
+				if(tmp === -1 || tmp.get(0) === this.get_container().get(0)) { tmp = -1; }
+				this.clean_node(tmp);
+				this.__callback({ "obj" : d, "parent" : tmp });
+				if(callback) { callback.call(this, d); }
+				return d;
+			},
+			// Basic operations: rename (deal with text)
+			get_text	: function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				var s = this._get_settings().core.html_titles;
+				obj = obj.children("a:eq(0)");
+				if(s) {
+					obj = obj.clone();
+					obj.children("INS").remove();
+					return obj.html();
+				}
+				else {
+					obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
+					return obj.nodeValue;
+				}
+			},
+			set_text	: function (obj, val) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				obj = obj.children("a:eq(0)");
+				if(this._get_settings().core.html_titles) {
+					var tmp = obj.children("INS").clone();
+					obj.html(val).prepend(tmp);
+					this.__callback({ "obj" : obj, "name" : val });
+					return true;
+				}
+				else {
+					obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
+					this.__callback({ "obj" : obj, "name" : val });
+					return (obj.nodeValue = val);
+				}
+			},
+			rename_node : function (obj, val) {
+				obj = this._get_node(obj);
+				this.__rollback();
+				if(obj && obj.length && this.set_text.apply(this, Array.prototype.slice.call(arguments))) { this.__callback({ "obj" : obj, "name" : val }); }
+			},
+			// Basic operations: deleting nodes
+			delete_node : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				this.__rollback();
+				var p = this._get_parent(obj), prev = $([]), t = this;
+				obj.each(function () {
+					prev = prev.add(t._get_prev(this));
+				});
+				obj = obj.detach();
+				if(p !== -1 && p.find("> ul > li").length === 0) {
+					p.removeClass("jstree-open jstree-closed").addClass("jstree-leaf");
+				}
+				this.clean_node(p);
+				this.__callback({ "obj" : obj, "prev" : prev, "parent" : p });
+				return obj;
+			},
+			prepare_move : function (o, r, pos, cb, is_cb) {
+				var p = {};
+
+				p.ot = $.jstree._reference(o) || this;
+				p.o = p.ot._get_node(o);
+				p.r = r === - 1 ? -1 : this._get_node(r);
+				p.p = (typeof pos === "undefined" || pos === false) ? "last" : pos; // TODO: move to a setting
+				if(!is_cb && prepared_move.o && prepared_move.o[0] === p.o[0] && prepared_move.r[0] === p.r[0] && prepared_move.p === p.p) {
+					this.__callback(prepared_move);
+					if(cb) { cb.call(this, prepared_move); }
+					return;
+				}
+				p.ot = $.jstree._reference(p.o) || this;
+				p.rt = $.jstree._reference(p.r) || this; // r === -1 ? p.ot : $.jstree._reference(p.r) || this
+				if(p.r === -1 || !p.r) {
+					p.cr = -1;
+					switch(p.p) {
+						case "first":
+						case "before":
+						case "inside":
+							p.cp = 0; 
+							break;
+						case "after":
+						case "last":
+							p.cp = p.rt.get_container().find(" > ul > li").length; 
+							break;
+						default:
+							p.cp = p.p;
+							break;
+					}
+				}
+				else {
+					if(!/^(before|after)$/.test(p.p) && !this._is_loaded(p.r)) {
+						return this.load_node(p.r, function () { this.prepare_move(o, r, pos, cb, true); });
+					}
+					switch(p.p) {
+						case "before":
+							p.cp = p.r.index();
+							p.cr = p.rt._get_parent(p.r);
+							break;
+						case "after":
+							p.cp = p.r.index() + 1;
+							p.cr = p.rt._get_parent(p.r);
+							break;
+						case "inside":
+						case "first":
+							p.cp = 0;
+							p.cr = p.r;
+							break;
+						case "last":
+							p.cp = p.r.find(" > ul > li").length; 
+							p.cr = p.r;
+							break;
+						default: 
+							p.cp = p.p;
+							p.cr = p.r;
+							break;
+					}
+				}
+				p.np = p.cr == -1 ? p.rt.get_container() : p.cr;
+				p.op = p.ot._get_parent(p.o);
+				p.cop = p.o.index();
+				if(p.op === -1) { p.op = p.ot ? p.ot.get_container() : this.get_container(); }
+				if(!/^(before|after)$/.test(p.p) && p.op && p.np && p.op[0] === p.np[0] && p.o.index() < p.cp) { p.cp++; }
+				//if(p.p === "before" && p.op && p.np && p.op[0] === p.np[0] && p.o.index() < p.cp) { p.cp--; }
+				p.or = p.np.find(" > ul > li:nth-child(" + (p.cp + 1) + ")");
+				prepared_move = p;
+				this.__callback(prepared_move);
+				if(cb) { cb.call(this, prepared_move); }
+			},
+			check_move : function () {
+				var obj = prepared_move, ret = true, r = obj.r === -1 ? this.get_container() : obj.r;
+				if(!obj || !obj.o || obj.or[0] === obj.o[0]) { return false; }
+				if(obj.op && obj.np && obj.op[0] === obj.np[0] && obj.cp - 1 === obj.o.index()) { return false; }
+				obj.o.each(function () { 
+					if(r.parentsUntil(".jstree", "li").andSelf().index(this) !== -1) { ret = false; return false; }
+				});
+				return ret;
+			},
+			move_node : function (obj, ref, position, is_copy, is_prepared, skip_check) {
+				if(!is_prepared) { 
+					return this.prepare_move(obj, ref, position, function (p) {
+						this.move_node(p, false, false, is_copy, true, skip_check);
+					});
+				}
+				if(is_copy) { 
+					prepared_move.cy = true;
+				}
+				if(!skip_check && !this.check_move()) { return false; }
+
+				this.__rollback();
+				var o = false;
+				if(is_copy) {
+					o = obj.o.clone(true);
+					o.find("*[id]").andSelf().each(function () {
+						if(this.id) { this.id = "copy_" + this.id; }
+					});
+				}
+				else { o = obj.o; }
+
+				if(obj.or.length) { obj.or.before(o); }
+				else { 
+					if(!obj.np.children("ul").length) { $("<ul />").appendTo(obj.np); }
+					obj.np.children("ul:eq(0)").append(o); 
+				}
+
+				try { 
+					obj.ot.clean_node(obj.op);
+					obj.rt.clean_node(obj.np);
+					if(!obj.op.find("> ul > li").length) {
+						obj.op.removeClass("jstree-open jstree-closed").addClass("jstree-leaf").children("ul").remove();
+					}
+				} catch (e) { }
+
+				if(is_copy) { 
+					prepared_move.cy = true;
+					prepared_move.oc = o; 
+				}
+				this.__callback(prepared_move);
+				return prepared_move;
+			},
+			_get_move : function () { return prepared_move; }
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree ui plugin
+ * This plugins handles selecting/deselecting/hovering/dehovering nodes
+ */
+(function ($) {
+	var scrollbar_width, e1, e2;
+	$(function() {
+		if (/msie/.test(navigator.userAgent.toLowerCase())) {
+			e1 = $('<textarea cols="10" rows="2"></textarea>').css({ position: 'absolute', top: -1000, left: 0 }).appendTo('body');
+			e2 = $('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({ position: 'absolute', top: -1000, left: 0 }).appendTo('body');
+			scrollbar_width = e1.width() - e2.width();
+			e1.add(e2).remove();
+		} 
+		else {
+			e1 = $('<div />').css({ width: 100, height: 100, overflow: 'auto', position: 'absolute', top: -1000, left: 0 })
+					.prependTo('body').append('<div />').find('div').css({ width: '100%', height: 200 });
+			scrollbar_width = 100 - e1.width();
+			e1.parent().remove();
+		}
+	});
+	$.jstree.plugin("ui", {
+		__init : function () { 
+			this.data.ui.selected = $(); 
+			this.data.ui.last_selected = false; 
+			this.data.ui.hovered = null;
+			this.data.ui.to_select = this.get_settings().ui.initially_select;
+
+			this.get_container()
+				.delegate("a", "click.jstree", $.proxy(function (event) {
+						event.preventDefault();
+						event.currentTarget.blur();
+						if(!$(event.currentTarget).hasClass("jstree-loading")) {
+							this.select_node(event.currentTarget, true, event);
+						}
+					}, this))
+				.delegate("a", "mouseenter.jstree", $.proxy(function (event) {
+						if(!$(event.currentTarget).hasClass("jstree-loading")) {
+							this.hover_node(event.target);
+						}
+					}, this))
+				.delegate("a", "mouseleave.jstree", $.proxy(function (event) {
+						if(!$(event.currentTarget).hasClass("jstree-loading")) {
+							this.dehover_node(event.target);
+						}
+					}, this))
+				.bind("reopen.jstree", $.proxy(function () { 
+						this.reselect();
+					}, this))
+				.bind("get_rollback.jstree", $.proxy(function () { 
+						this.dehover_node();
+						this.save_selected();
+					}, this))
+				.bind("set_rollback.jstree", $.proxy(function () { 
+						this.reselect();
+					}, this))
+				.bind("close_node.jstree", $.proxy(function (event, data) { 
+						var s = this._get_settings().ui,
+							obj = this._get_node(data.rslt.obj),
+							clk = (obj && obj.length) ? obj.children("ul").find("a.jstree-clicked") : $(),
+							_this = this;
+						if(s.selected_parent_close === false || !clk.length) { return; }
+						clk.each(function () { 
+							_this.deselect_node(this);
+							if(s.selected_parent_close === "select_parent") { _this.select_node(obj); }
+						});
+					}, this))
+				.bind("delete_node.jstree", $.proxy(function (event, data) { 
+						var s = this._get_settings().ui.select_prev_on_delete,
+							obj = this._get_node(data.rslt.obj),
+							clk = (obj && obj.length) ? obj.find("a.jstree-clicked") : [],
+							_this = this;
+						clk.each(function () { _this.deselect_node(this); });
+						if(s && clk.length) { 
+							data.rslt.prev.each(function () { 
+								if(this.parentNode) { _this.select_node(this); return false; /* if return false is removed all prev nodes will be selected */}
+							});
+						}
+					}, this))
+				.bind("move_node.jstree", $.proxy(function (event, data) { 
+						if(data.rslt.cy) { 
+							data.rslt.oc.find("a.jstree-clicked").removeClass("jstree-clicked");
+						}
+					}, this));
+		},
+		defaults : {
+			select_limit : -1, // 0, 1, 2 ... or -1 for unlimited
+			select_multiple_modifier : "ctrl", // on, or ctrl, shift, alt
+			select_range_modifier : "shift",
+			selected_parent_close : "select_parent", // false, "deselect", "select_parent"
+			selected_parent_open : true,
+			select_prev_on_delete : true,
+			disable_selecting_children : false,
+			initially_select : []
+		},
+		_fn : { 
+			_get_node : function (obj, allow_multiple) {
+				if(typeof obj === "undefined" || obj === null) { return allow_multiple ? this.data.ui.selected : this.data.ui.last_selected; }
+				var $obj = $(obj, this.get_container()); 
+				if($obj.is(".jstree") || obj == -1) { return -1; } 
+				$obj = $obj.closest("li", this.get_container()); 
+				return $obj.length ? $obj : false; 
+			},
+			_ui_notify : function (n, data) {
+				if(data.selected) {
+					this.select_node(n, false);
+				}
+			},
+			save_selected : function () {
+				var _this = this;
+				this.data.ui.to_select = [];
+				this.data.ui.selected.each(function () { if(this.id) { _this.data.ui.to_select.push("#" + this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")); } });
+				this.__callback(this.data.ui.to_select);
+			},
+			reselect : function () {
+				var _this = this,
+					s = this.data.ui.to_select;
+				s = $.map($.makeArray(s), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); });
+				// this.deselect_all(); WHY deselect, breaks plugin state notifier?
+				$.each(s, function (i, val) { if(val && val !== "#") { _this.select_node(val); } });
+				this.data.ui.selected = this.data.ui.selected.filter(function () { return this.parentNode; });
+				this.__callback();
+			},
+			refresh : function (obj) {
+				this.save_selected();
+				return this.__call_old();
+			},
+			hover_node : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				//if(this.data.ui.hovered && obj.get(0) === this.data.ui.hovered.get(0)) { return; }
+				if(!obj.hasClass("jstree-hovered")) { this.dehover_node(); }
+				this.data.ui.hovered = obj.children("a").addClass("jstree-hovered").parent();
+				this._fix_scroll(obj);
+				this.__callback({ "obj" : obj });
+			},
+			dehover_node : function () {
+				var obj = this.data.ui.hovered, p;
+				if(!obj || !obj.length) { return false; }
+				p = obj.children("a").removeClass("jstree-hovered").parent();
+				if(this.data.ui.hovered[0] === p[0]) { this.data.ui.hovered = null; }
+				this.__callback({ "obj" : obj });
+			},
+			select_node : function (obj, check, e) {
+				obj = this._get_node(obj);
+				if(obj == -1 || !obj || !obj.length) { return false; }
+				var s = this._get_settings().ui,
+					is_multiple = (s.select_multiple_modifier == "on" || (s.select_multiple_modifier !== false && e && e[s.select_multiple_modifier + "Key"])),
+					is_range = (s.select_range_modifier !== false && e && e[s.select_range_modifier + "Key"] && this.data.ui.last_selected && this.data.ui.last_selected[0] !== obj[0] && this.data.ui.last_selected.parent()[0] === obj.parent()[0]),
+					is_selected = this.is_selected(obj),
+					proceed = true,
+					t = this;
+				if(check) {
+					if(s.disable_selecting_children && is_multiple && 
+						(
+							(obj.parentsUntil(".jstree","li").children("a.jstree-clicked").length) ||
+							(obj.children("ul").find("a.jstree-clicked:eq(0)").length)
+						)
+					) {
+						return false;
+					}
+					proceed = false;
+					switch(!0) {
+						case (is_range):
+							this.data.ui.last_selected.addClass("jstree-last-selected");
+							obj = obj[ obj.index() < this.data.ui.last_selected.index() ? "nextUntil" : "prevUntil" ](".jstree-last-selected").andSelf();
+							if(s.select_limit == -1 || obj.length < s.select_limit) {
+								this.data.ui.last_selected.removeClass("jstree-last-selected");
+								this.data.ui.selected.each(function () {
+									if(this !== t.data.ui.last_selected[0]) { t.deselect_node(this); }
+								});
+								is_selected = false;
+								proceed = true;
+							}
+							else {
+								proceed = false;
+							}
+							break;
+						case (is_selected && !is_multiple): 
+							this.deselect_all();
+							is_selected = false;
+							proceed = true;
+							break;
+						case (!is_selected && !is_multiple): 
+							if(s.select_limit == -1 || s.select_limit > 0) {
+								this.deselect_all();
+								proceed = true;
+							}
+							break;
+						case (is_selected && is_multiple): 
+							this.deselect_node(obj);
+							break;
+						case (!is_selected && is_multiple): 
+							if(s.select_limit == -1 || this.data.ui.selected.length + 1 <= s.select_limit) { 
+								proceed = true;
+							}
+							break;
+					}
+				}
+				if(proceed && !is_selected) {
+					if(!is_range) { this.data.ui.last_selected = obj; }
+					obj.children("a").addClass("jstree-clicked");
+					if(s.selected_parent_open) {
+						obj.parents(".jstree-closed").each(function () { t.open_node(this, false, true); });
+					}
+					this.data.ui.selected = this.data.ui.selected.add(obj);
+					this._fix_scroll(obj.eq(0));
+					this.__callback({ "obj" : obj, "e" : e });
+				}
+			},
+			_fix_scroll : function (obj) {
+				var c = this.get_container()[0], t;
+				if(c.scrollHeight > c.offsetHeight) {
+					obj = this._get_node(obj);
+					if(!obj || obj === -1 || !obj.length || !obj.is(":visible")) { return; }
+					t = obj.offset().top - this.get_container().offset().top;
+					if(t < 0) { 
+						c.scrollTop = c.scrollTop + t - 1; 
+					}
+					if(t + this.data.core.li_height + (c.scrollWidth > c.offsetWidth ? scrollbar_width : 0) > c.offsetHeight) { 
+						c.scrollTop = c.scrollTop + (t - c.offsetHeight + this.data.core.li_height + 1 + (c.scrollWidth > c.offsetWidth ? scrollbar_width : 0)); 
+					}
+				}
+			},
+			deselect_node : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				if(this.is_selected(obj)) {
+					obj.children("a").removeClass("jstree-clicked");
+					this.data.ui.selected = this.data.ui.selected.not(obj);
+					if(this.data.ui.last_selected.get(0) === obj.get(0)) { this.data.ui.last_selected = this.data.ui.selected.eq(0); }
+					this.__callback({ "obj" : obj });
+				}
+			},
+			toggle_select : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return false; }
+				if(this.is_selected(obj)) { this.deselect_node(obj); }
+				else { this.select_node(obj); }
+			},
+			is_selected : function (obj) { return this.data.ui.selected.index(this._get_node(obj)) >= 0; },
+			get_selected : function (context) { 
+				return context ? $(context).find("a.jstree-clicked").parent() : this.data.ui.selected; 
+			},
+			deselect_all : function (context) {
+				var ret = context ? $(context).find("a.jstree-clicked").parent() : this.get_container().find("a.jstree-clicked").parent();
+				ret.children("a.jstree-clicked").removeClass("jstree-clicked");
+				this.data.ui.selected = $([]);
+				this.data.ui.last_selected = false;
+				this.__callback({ "obj" : ret });
+			}
+		}
+	});
+	// include the selection plugin by default
+	$.jstree.defaults.plugins.push("ui");
+})(jQuery);
+//*/
+
+/* 
+ * jsTree CRRM plugin
+ * Handles creating/renaming/removing/moving nodes by user interaction.
+ */
+(function ($) {
+	$.jstree.plugin("crrm", { 
+		__init : function () {
+			this.get_container()
+				.bind("move_node.jstree", $.proxy(function (e, data) {
+					if(this._get_settings().crrm.move.open_onmove) {
+						var t = this;
+						data.rslt.np.parentsUntil(".jstree").andSelf().filter(".jstree-closed").each(function () {
+							t.open_node(this, false, true);
+						});
+					}
+				}, this));
+		},
+		defaults : {
+			input_width_limit : 200,
+			move : {
+				always_copy			: false, // false, true or "multitree"
+				open_onmove			: true,
+				default_position	: "last",
+				check_move			: function (m) { return true; }
+			}
+		},
+		_fn : {
+			_show_input : function (obj, callback) {
+				obj = this._get_node(obj);
+				var rtl = this._get_settings().core.rtl,
+					w = this._get_settings().crrm.input_width_limit,
+					w1 = obj.children("ins").width(),
+					w2 = obj.find("> a:visible > ins").width() * obj.find("> a:visible > ins").length,
+					t = this.get_text(obj),
+					h1 = $("<div />", { css : { "position" : "absolute", "top" : "-200px", "left" : (rtl ? "0px" : "-1000px"), "visibility" : "hidden" } }).appendTo("body"),
+					h2 = obj.css("position","relative").append(
+					$("<input />", { 
+						"value" : t,
+						"class" : "jstree-rename-input",
+						// "size" : t.length,
+						"css" : {
+							"padding" : "0",
+							"border" : "1px solid silver",
+							"position" : "absolute",
+							"left"  : (rtl ? "auto" : (w1 + w2 + 4) + "px"),
+							"right" : (rtl ? (w1 + w2 + 4) + "px" : "auto"),
+							"top" : "0px",
+							"height" : (this.data.core.li_height - 2) + "px",
+							"lineHeight" : (this.data.core.li_height - 2) + "px",
+							"width" : "150px" // will be set a bit further down
+						},
+						"blur" : $.proxy(function () {
+							var i = obj.children(".jstree-rename-input"),
+								v = i.val();
+							if(v === "") { v = t; }
+							h1.remove();
+							i.remove(); // rollback purposes
+							this.set_text(obj,t); // rollback purposes
+							this.rename_node(obj, v);
+							callback.call(this, obj, v, t);
+							obj.css("position","");
+						}, this),
+						"keyup" : function (event) {
+							var key = event.keyCode || event.which;
+							if(key == 27) { this.value = t; this.blur(); return; }
+							else if(key == 13) { this.blur(); return; }
+							else {
+								h2.width(Math.min(h1.text("pW" + this.value).width(),w));
+							}
+						},
+						"keypress" : function(event) {
+							var key = event.keyCode || event.which;
+							if(key == 13) { return false; }
+						}
+					})
+				).children(".jstree-rename-input"); 
+				this.set_text(obj, "");
+				h1.css({
+						fontFamily		: h2.css('fontFamily')		|| '',
+						fontSize		: h2.css('fontSize')		|| '',
+						fontWeight		: h2.css('fontWeight')		|| '',
+						fontStyle		: h2.css('fontStyle')		|| '',
+						fontStretch		: h2.css('fontStretch')		|| '',
+						fontVariant		: h2.css('fontVariant')		|| '',
+						letterSpacing	: h2.css('letterSpacing')	|| '',
+						wordSpacing		: h2.css('wordSpacing')		|| ''
+				});
+				h2.width(Math.min(h1.text("pW" + h2[0].value).width(),w))[0].select();
+			},
+			rename : function (obj) {
+				obj = this._get_node(obj);
+				this.__rollback();
+				var f = this.__callback;
+				this._show_input(obj, function (obj, new_name, old_name) { 
+					f.call(this, { "obj" : obj, "new_name" : new_name, "old_name" : old_name });
+				});
+			},
+			create : function (obj, position, js, callback, skip_rename) {
+				var t, _this = this;
+				obj = this._get_node(obj);
+				if(!obj) { obj = -1; }
+				this.__rollback();
+				t = this.create_node(obj, position, js, function (t) {
+					var p = this._get_parent(t),
+						pos = $(t).index();
+					if(callback) { callback.call(this, t); }
+					if(p.length && p.hasClass("jstree-closed")) { this.open_node(p, false, true); }
+					if(!skip_rename) { 
+						this._show_input(t, function (obj, new_name, old_name) { 
+							_this.__callback({ "obj" : obj, "name" : new_name, "parent" : p, "position" : pos });
+						});
+					}
+					else { _this.__callback({ "obj" : t, "name" : this.get_text(t), "parent" : p, "position" : pos }); }
+				});
+				return t;
+			},
+			remove : function (obj) {
+				obj = this._get_node(obj, true);
+				var p = this._get_parent(obj), prev = this._get_prev(obj);
+				this.__rollback();
+				obj = this.delete_node(obj);
+				if(obj !== false) { this.__callback({ "obj" : obj, "prev" : prev, "parent" : p }); }
+			},
+			check_move : function () {
+				if(!this.__call_old()) { return false; }
+				var s = this._get_settings().crrm.move;
+				if(!s.check_move.call(this, this._get_move())) { return false; }
+				return true;
+			},
+			move_node : function (obj, ref, position, is_copy, is_prepared, skip_check) {
+				var s = this._get_settings().crrm.move;
+				if(!is_prepared) { 
+					if(typeof position === "undefined") { position = s.default_position; }
+					if(position === "inside" && !s.default_position.match(/^(before|after)$/)) { position = s.default_position; }
+					return this.__call_old(true, obj, ref, position, is_copy, false, skip_check);
+				}
+				// if the move is already prepared
+				if(s.always_copy === true || (s.always_copy === "multitree" && obj.rt.get_index() !== obj.ot.get_index() )) {
+					is_copy = true;
+				}
+				this.__call_old(true, obj, ref, position, is_copy, true, skip_check);
+			},
+
+			cut : function (obj) {
+				obj = this._get_node(obj, true);
+				if(!obj || !obj.length) { return false; }
+				this.data.crrm.cp_nodes = false;
+				this.data.crrm.ct_nodes = obj;
+				this.__callback({ "obj" : obj });
+			},
+			copy : function (obj) {
+				obj = this._get_node(obj, true);
+				if(!obj || !obj.length) { return false; }
+				this.data.crrm.ct_nodes = false;
+				this.data.crrm.cp_nodes = obj;
+				this.__callback({ "obj" : obj });
+			},
+			paste : function (obj) { 
+				obj = this._get_node(obj);
+				if(!obj || !obj.length) { return false; }
+				var nodes = this.data.crrm.ct_nodes ? this.data.crrm.ct_nodes : this.data.crrm.cp_nodes;
+				if(!this.data.crrm.ct_nodes && !this.data.crrm.cp_nodes) { return false; }
+				if(this.data.crrm.ct_nodes) { this.move_node(this.data.crrm.ct_nodes, obj); this.data.crrm.ct_nodes = false; }
+				if(this.data.crrm.cp_nodes) { this.move_node(this.data.crrm.cp_nodes, obj, false, true); }
+				this.__callback({ "obj" : obj, "nodes" : nodes });
+			}
+		}
+	});
+	// include the crr plugin by default
+	// $.jstree.defaults.plugins.push("crrm");
+})(jQuery);
+//*/
+
+/* 
+ * jsTree themes plugin
+ * Handles loading and setting themes, as well as detecting path to themes, etc.
+ */
+(function ($) {
+	var themes_loaded = [];
+	// this variable stores the path to the themes folder - if left as false - it will be autodetected
+	$.jstree._themes = false;
+	$.jstree.plugin("themes", {
+		__init : function () { 
+			this.get_container()
+				.bind("init.jstree", $.proxy(function () {
+						var s = this._get_settings().themes;
+						this.data.themes.dots = s.dots; 
+						this.data.themes.icons = s.icons; 
+						this.set_theme(s.theme, s.url);
+					}, this))
+				.bind("loaded.jstree", $.proxy(function () {
+						// bound here too, as simple HTML tree's won't honor dots & icons otherwise
+						if(!this.data.themes.dots) { this.hide_dots(); }
+						else { this.show_dots(); }
+						if(!this.data.themes.icons) { this.hide_icons(); }
+						else { this.show_icons(); }
+					}, this));
+		},
+		defaults : { 
+			theme : "default", 
+			url : false,
+			dots : true,
+			icons : true
+		},
+		_fn : {
+			set_theme : function (theme_name, theme_url) {
+				if(!theme_name) { return false; }
+				if(!theme_url) { theme_url = $.jstree._themes + theme_name + '/style.css'; }
+				if($.inArray(theme_url, themes_loaded) == -1) {
+					$.vakata.css.add_sheet({ "url" : theme_url });
+					themes_loaded.push(theme_url);
+				}
+				if(this.data.themes.theme != theme_name) {
+					this.get_container().removeClass('jstree-' + this.data.themes.theme);
+					this.data.themes.theme = theme_name;
+				}
+				this.get_container().addClass('jstree-' + theme_name);
+				if(!this.data.themes.dots) { this.hide_dots(); }
+				else { this.show_dots(); }
+				if(!this.data.themes.icons) { this.hide_icons(); }
+				else { this.show_icons(); }
+				this.__callback();
+			},
+			get_theme	: function () { return this.data.themes.theme; },
+
+			show_dots	: function () { this.data.themes.dots = true; this.get_container().children("ul").removeClass("jstree-no-dots"); },
+			hide_dots	: function () { this.data.themes.dots = false; this.get_container().children("ul").addClass("jstree-no-dots"); },
+			toggle_dots	: function () { if(this.data.themes.dots) { this.hide_dots(); } else { this.show_dots(); } },
+
+			show_icons	: function () { this.data.themes.icons = true; this.get_container().children("ul").removeClass("jstree-no-icons"); },
+			hide_icons	: function () { this.data.themes.icons = false; this.get_container().children("ul").addClass("jstree-no-icons"); },
+			toggle_icons: function () { if(this.data.themes.icons) { this.hide_icons(); } else { this.show_icons(); } }
+		}
+	});
+	// autodetect themes path
+	$(function () {
+		if($.jstree._themes === false) {
+			$("script").each(function () { 
+				if(this.src.toString().match(/jquery\.jstree[^\/]*?\.js(\?.*)?$/)) { 
+					$.jstree._themes = this.src.toString().replace(/jquery\.jstree[^\/]*?\.js(\?.*)?$/, "") + 'themes/'; 
+					return false; 
+				}
+			});
+		}
+		if($.jstree._themes === false) { $.jstree._themes = "themes/"; }
+	});
+	// include the themes plugin by default
+	$.jstree.defaults.plugins.push("themes");
+})(jQuery);
+//*/
+
+/*
+ * jsTree hotkeys plugin
+ * Enables keyboard navigation for all tree instances
+ * Depends on the jstree ui & jquery hotkeys plugins
+ */
+(function ($) {
+	var bound = [];
+	function exec(i, event) {
+		var f = $.jstree._focused(), tmp;
+		if(f && f.data && f.data.hotkeys && f.data.hotkeys.enabled) { 
+			tmp = f._get_settings().hotkeys[i];
+			if(tmp) { return tmp.call(f, event); }
+		}
+	}
+	$.jstree.plugin("hotkeys", {
+		__init : function () {
+			if(typeof $.hotkeys === "undefined") { throw "jsTree hotkeys: jQuery hotkeys plugin not included."; }
+			if(!this.data.ui) { throw "jsTree hotkeys: jsTree UI plugin not included."; }
+			$.each(this._get_settings().hotkeys, function (i, v) {
+				if(v !== false && $.inArray(i, bound) == -1) {
+					$(document).bind("keydown", i, function (event) { return exec(i, event); });
+					bound.push(i);
+				}
+			});
+			this.get_container()
+				.bind("lock.jstree", $.proxy(function () {
+						if(this.data.hotkeys.enabled) { this.data.hotkeys.enabled = false; this.data.hotkeys.revert = true; }
+					}, this))
+				.bind("unlock.jstree", $.proxy(function () {
+						if(this.data.hotkeys.revert) { this.data.hotkeys.enabled = true; }
+					}, this));
+			this.enable_hotkeys();
+		},
+		defaults : {
+			"up" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
+				this.hover_node(this._get_prev(o));
+				return false; 
+			},
+			"ctrl+up" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
+				this.hover_node(this._get_prev(o));
+				return false; 
+			},
+			"shift+up" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
+				this.hover_node(this._get_prev(o));
+				return false; 
+			},
+			"down" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
+				this.hover_node(this._get_next(o));
+				return false;
+			},
+			"ctrl+down" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
+				this.hover_node(this._get_next(o));
+				return false;
+			},
+			"shift+down" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected || -1;
+				this.hover_node(this._get_next(o));
+				return false;
+			},
+			"left" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected;
+				if(o) {
+					if(o.hasClass("jstree-open")) { this.close_node(o); }
+					else { this.hover_node(this._get_prev(o)); }
+				}
+				return false;
+			},
+			"ctrl+left" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected;
+				if(o) {
+					if(o.hasClass("jstree-open")) { this.close_node(o); }
+					else { this.hover_node(this._get_prev(o)); }
+				}
+				return false;
+			},
+			"shift+left" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected;
+				if(o) {
+					if(o.hasClass("jstree-open")) { this.close_node(o); }
+					else { this.hover_node(this._get_prev(o)); }
+				}
+				return false;
+			},
+			"right" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected;
+				if(o && o.length) {
+					if(o.hasClass("jstree-closed")) { this.open_node(o); }
+					else { this.hover_node(this._get_next(o)); }
+				}
+				return false;
+			},
+			"ctrl+right" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected;
+				if(o && o.length) {
+					if(o.hasClass("jstree-closed")) { this.open_node(o); }
+					else { this.hover_node(this._get_next(o)); }
+				}
+				return false;
+			},
+			"shift+right" : function () { 
+				var o = this.data.ui.hovered || this.data.ui.last_selected;
+				if(o && o.length) {
+					if(o.hasClass("jstree-closed")) { this.open_node(o); }
+					else { this.hover_node(this._get_next(o)); }
+				}
+				return false;
+			},
+			"space" : function () { 
+				if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").click(); } 
+				return false; 
+			},
+			"ctrl+space" : function (event) { 
+				event.type = "click";
+				if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").trigger(event); } 
+				return false; 
+			},
+			"shift+space" : function (event) { 
+				event.type = "click";
+				if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").trigger(event); } 
+				return false; 
+			},
+			"f2" : function () { this.rename(this.data.ui.hovered || this.data.ui.last_selected); },
+			"del" : function () { this.remove(this.data.ui.hovered || this._get_node(null)); }
+		},
+		_fn : {
+			enable_hotkeys : function () {
+				this.data.hotkeys.enabled = true;
+			},
+			disable_hotkeys : function () {
+				this.data.hotkeys.enabled = false;
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree JSON plugin
+ * The JSON data store. Datastores are build by overriding the `load_node` and `_is_loaded` functions.
+ */
+(function ($) {
+	$.jstree.plugin("json_data", {
+		__init : function() {
+			var s = this._get_settings().json_data;
+			if(s.progressive_unload) {
+				this.get_container().bind("after_close.jstree", function (e, data) {
+					data.rslt.obj.children("ul").remove();
+				});
+			}
+		},
+		defaults : { 
+			// `data` can be a function:
+			//  * accepts two arguments - node being loaded and a callback to pass the result to
+			//  * will be executed in the current tree's scope & ajax won't be supported
+			data : false, 
+			ajax : false,
+			correct_state : true,
+			progressive_render : false,
+			progressive_unload : false
+		},
+		_fn : {
+			load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_json(obj, function () { _this.__callback({ "obj" : _this._get_node(obj) }); s_call.call(this); }, e_call); },
+			_is_loaded : function (obj) { 
+				var s = this._get_settings().json_data;
+				obj = this._get_node(obj); 
+				return obj == -1 || !obj || (!s.ajax && !s.progressive_render && !$.isFunction(s.data)) || obj.is(".jstree-open, .jstree-leaf") || obj.children("ul").children("li").length > 0;
+			},
+			refresh : function (obj) {
+				obj = this._get_node(obj);
+				var s = this._get_settings().json_data;
+				if(obj && obj !== -1 && s.progressive_unload && ($.isFunction(s.data) || !!s.ajax)) {
+					obj.removeData("jstree-children");
+				}
+				return this.__call_old();
+			},
+			load_node_json : function (obj, s_call, e_call) {
+				var s = this.get_settings().json_data, d,
+					error_func = function () {},
+					success_func = function () {};
+				obj = this._get_node(obj);
+
+				if(obj && obj !== -1 && (s.progressive_render || s.progressive_unload) && !obj.is(".jstree-open, .jstree-leaf") && obj.children("ul").children("li").length === 0 && obj.data("jstree-children")) {
+					d = this._parse_json(obj.data("jstree-children"), obj);
+					if(d) {
+						obj.append(d);
+						if(!s.progressive_unload) { obj.removeData("jstree-children"); }
+					}
+					this.clean_node(obj);
+					if(s_call) { s_call.call(this); }
+					return;
+				}
+
+				if(obj && obj !== -1) {
+					if(obj.data("jstree-is-loading")) { return; }
+					else { obj.data("jstree-is-loading",true); }
+				}
+				switch(!0) {
+					case (!s.data && !s.ajax): throw "Neither data nor ajax settings supplied.";
+					// function option added here for easier model integration (also supporting async - see callback)
+					case ($.isFunction(s.data)):
+						s.data.call(this, obj, $.proxy(function (d) {
+							d = this._parse_json(d, obj);
+							if(!d) { 
+								if(obj === -1 || !obj) {
+									if(s.correct_state) { this.get_container().children("ul").empty(); }
+								}
+								else {
+									obj.children("a.jstree-loading").removeClass("jstree-loading");
+									obj.removeData("jstree-is-loading");
+									if(s.correct_state) { this.correct_state(obj); }
+								}
+								if(e_call) { e_call.call(this); }
+							}
+							else {
+								if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
+								else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); obj.removeData("jstree-is-loading"); }
+								this.clean_node(obj);
+								if(s_call) { s_call.call(this); }
+							}
+						}, this));
+						break;
+					case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)):
+						if(!obj || obj == -1) {
+							d = this._parse_json(s.data, obj);
+							if(d) {
+								this.get_container().children("ul").empty().append(d.children());
+								this.clean_node();
+							}
+							else { 
+								if(s.correct_state) { this.get_container().children("ul").empty(); }
+							}
+						}
+						if(s_call) { s_call.call(this); }
+						break;
+					case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1):
+						error_func = function (x, t, e) {
+							var ef = this.get_settings().json_data.ajax.error; 
+							if(ef) { ef.call(this, x, t, e); }
+							if(obj != -1 && obj.length) {
+								obj.children("a.jstree-loading").removeClass("jstree-loading");
+								obj.removeData("jstree-is-loading");
+								if(t === "success" && s.correct_state) { this.correct_state(obj); }
+							}
+							else {
+								if(t === "success" && s.correct_state) { this.get_container().children("ul").empty(); }
+							}
+							if(e_call) { e_call.call(this); }
+						};
+						success_func = function (d, t, x) {
+							var sf = this.get_settings().json_data.ajax.success; 
+							if(sf) { d = sf.call(this,d,t,x) || d; }
+							if(d === "" || (d && d.toString && d.toString().replace(/^[\s\n]+$/,"") === "") || (!$.isArray(d) && !$.isPlainObject(d))) {
+								return error_func.call(this, x, t, "");
+							}
+							d = this._parse_json(d, obj);
+							if(d) {
+								if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
+								else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); obj.removeData("jstree-is-loading"); }
+								this.clean_node(obj);
+								if(s_call) { s_call.call(this); }
+							}
+							else {
+								if(obj === -1 || !obj) {
+									if(s.correct_state) { 
+										this.get_container().children("ul").empty(); 
+										if(s_call) { s_call.call(this); }
+									}
+								}
+								else {
+									obj.children("a.jstree-loading").removeClass("jstree-loading");
+									obj.removeData("jstree-is-loading");
+									if(s.correct_state) { 
+										this.correct_state(obj);
+										if(s_call) { s_call.call(this); } 
+									}
+								}
+							}
+						};
+						s.ajax.context = this;
+						s.ajax.error = error_func;
+						s.ajax.success = success_func;
+						if(!s.ajax.dataType) { s.ajax.dataType = "json"; }
+						if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); }
+						if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); }
+						$.ajax(s.ajax);
+						break;
+				}
+			},
+			_parse_json : function (js, obj, is_callback) {
+				var d = false, 
+					p = this._get_settings(),
+					s = p.json_data,
+					t = p.core.html_titles,
+					tmp, i, j, ul1, ul2;
+
+				if(!js) { return d; }
+				if(s.progressive_unload && obj && obj !== -1) { 
+					obj.data("jstree-children", d);
+				}
+				if($.isArray(js)) {
+					d = $();
+					if(!js.length) { return false; }
+					for(i = 0, j = js.length; i < j; i++) {
+						tmp = this._parse_json(js[i], obj, true);
+						if(tmp.length) { d = d.add(tmp); }
+					}
+				}
+				else {
+					if(typeof js == "string") { js = { data : js }; }
+					if(!js.data && js.data !== "") { return d; }
+					d = $("<li />");
+					if(js.attr) { d.attr(js.attr); }
+					if(js.metadata) { d.data(js.metadata); }
+					if(js.state) { d.addClass("jstree-" + js.state); }
+					if(!$.isArray(js.data)) { tmp = js.data; js.data = []; js.data.push(tmp); }
+					$.each(js.data, function (i, m) {
+						tmp = $("<a />");
+						if($.isFunction(m)) { m = m.call(this, js); }
+						if(typeof m == "string") { tmp.attr('href','#')[ t ? "html" : "text" ](m); }
+						else {
+							if(!m.attr) { m.attr = {}; }
+							if(!m.attr.href) { m.attr.href = '#'; }
+							tmp.attr(m.attr)[ t ? "html" : "text" ](m.title);
+							if(m.language) { tmp.addClass(m.language); }
+						}
+						tmp.prepend("<ins class='jstree-icon'> </ins>");
+						if(!m.icon && js.icon) { m.icon = js.icon; }
+						if(m.icon) { 
+							if(m.icon.indexOf("/") === -1) { tmp.children("ins").addClass(m.icon); }
+							else { tmp.children("ins").css("background","url('" + m.icon + "') center center no-repeat"); }
+						}
+						d.append(tmp);
+					});
+					d.prepend("<ins class='jstree-icon'> </ins>");
+					if(js.children) { 
+						if(s.progressive_render && js.state !== "open") {
+							d.addClass("jstree-closed").data("jstree-children", js.children);
+						}
+						else {
+							if(s.progressive_unload) { d.data("jstree-children", js.children); }
+							if($.isArray(js.children) && js.children.length) {
+								tmp = this._parse_json(js.children, obj, true);
+								if(tmp.length) {
+									ul2 = $("<ul />");
+									ul2.append(tmp);
+									d.append(ul2);
+								}
+							}
+						}
+					}
+				}
+				if(!is_callback) {
+					ul1 = $("<ul />");
+					ul1.append(d);
+					d = ul1;
+				}
+				return d;
+			},
+			get_json : function (obj, li_attr, a_attr, is_callback) {
+				var result = [], 
+					s = this._get_settings(), 
+					_this = this,
+					tmp1, tmp2, li, a, t, lang;
+				obj = this._get_node(obj);
+				if(!obj || obj === -1) { obj = this.get_container().find("> ul > li"); }
+				li_attr = $.isArray(li_attr) ? li_attr : [ "id", "class" ];
+				if(!is_callback && this.data.types) { li_attr.push(s.types.type_attr); }
+				a_attr = $.isArray(a_attr) ? a_attr : [ ];
+
+				obj.each(function () {
+					li = $(this);
+					tmp1 = { data : [] };
+					if(li_attr.length) { tmp1.attr = { }; }
+					$.each(li_attr, function (i, v) { 
+						tmp2 = li.attr(v); 
+						if(tmp2 && tmp2.length && tmp2.replace(/jstree[^ ]*/ig,'').length) {
+							tmp1.attr[v] = (" " + tmp2).replace(/ jstree[^ ]*/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,""); 
+						}
+					});
+					if(li.hasClass("jstree-open")) { tmp1.state = "open"; }
+					if(li.hasClass("jstree-closed")) { tmp1.state = "closed"; }
+					if(li.data()) { tmp1.metadata = li.data(); }
+					a = li.children("a");
+					a.each(function () {
+						t = $(this);
+						if(
+							a_attr.length || 
+							$.inArray("languages", s.plugins) !== -1 || 
+							t.children("ins").get(0).style.backgroundImage.length || 
+							(t.children("ins").get(0).className && t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').length)
+						) { 
+							lang = false;
+							if($.inArray("languages", s.plugins) !== -1 && $.isArray(s.languages) && s.languages.length) {
+								$.each(s.languages, function (l, lv) {
+									if(t.hasClass(lv)) {
+										lang = lv;
+										return false;
+									}
+								});
+							}
+							tmp2 = { attr : { }, title : _this.get_text(t, lang) }; 
+							$.each(a_attr, function (k, z) {
+								tmp2.attr[z] = (" " + (t.attr(z) || "")).replace(/ jstree[^ ]*/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"");
+							});
+							if($.inArray("languages", s.plugins) !== -1 && $.isArray(s.languages) && s.languages.length) {
+								$.each(s.languages, function (k, z) {
+									if(t.hasClass(z)) { tmp2.language = z; return true; }
+								});
+							}
+							if(t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/^\s+$/ig,"").length) {
+								tmp2.icon = t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"");
+							}
+							if(t.children("ins").get(0).style.backgroundImage.length) {
+								tmp2.icon = t.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","");
+							}
+						}
+						else {
+							tmp2 = _this.get_text(t);
+						}
+						if(a.length > 1) { tmp1.data.push(tmp2); }
+						else { tmp1.data = tmp2; }
+					});
+					li = li.find("> ul > li");
+					if(li.length) { tmp1.children = _this.get_json(li, li_attr, a_attr, true); }
+					result.push(tmp1);
+				});
+				return result;
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree languages plugin
+ * Adds support for multiple language versions in one tree
+ * This basically allows for many titles coexisting in one node, but only one of them being visible at any given time
+ * This is useful for maintaining the same structure in many languages (hence the name of the plugin)
+ */
+(function ($) {
+	$.jstree.plugin("languages", {
+		__init : function () { this._load_css();  },
+		defaults : [],
+		_fn : {
+			set_lang : function (i) { 
+				var langs = this._get_settings().languages,
+					st = false,
+					selector = ".jstree-" + this.get_index() + ' a';
+				if(!$.isArray(langs) || langs.length === 0) { return false; }
+				if($.inArray(i,langs) == -1) {
+					if(!!langs[i]) { i = langs[i]; }
+					else { return false; }
+				}
+				if(i == this.data.languages.current_language) { return true; }
+				st = $.vakata.css.get_css(selector + "." + this.data.languages.current_language, false, this.data.languages.language_css);
+				if(st !== false) { st.style.display = "none"; }
+				st = $.vakata.css.get_css(selector + "." + i, false, this.data.languages.language_css);
+				if(st !== false) { st.style.display = ""; }
+				this.data.languages.current_language = i;
+				this.__callback(i);
+				return true;
+			},
+			get_lang : function () {
+				return this.data.languages.current_language;
+			},
+			_get_string : function (key, lang) {
+				var langs = this._get_settings().languages,
+					s = this._get_settings().core.strings;
+				if($.isArray(langs) && langs.length) {
+					lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language;
+				}
+				if(s[lang] && s[lang][key]) { return s[lang][key]; }
+				if(s[key]) { return s[key]; }
+				return key;
+			},
+			get_text : function (obj, lang) {
+				obj = this._get_node(obj) || this.data.ui.last_selected;
+				if(!obj.size()) { return false; }
+				var langs = this._get_settings().languages,
+					s = this._get_settings().core.html_titles;
+				if($.isArray(langs) && langs.length) {
+					lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language;
+					obj = obj.children("a." + lang);
+				}
+				else { obj = obj.children("a:eq(0)"); }
+				if(s) {
+					obj = obj.clone();
+					obj.children("INS").remove();
+					return obj.html();
+				}
+				else {
+					obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
+					return obj.nodeValue;
+				}
+			},
+			set_text : function (obj, val, lang) {
+				obj = this._get_node(obj) || this.data.ui.last_selected;
+				if(!obj.size()) { return false; }
+				var langs = this._get_settings().languages,
+					s = this._get_settings().core.html_titles,
+					tmp;
+				if($.isArray(langs) && langs.length) {
+					lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language;
+					obj = obj.children("a." + lang);
+				}
+				else { obj = obj.children("a:eq(0)"); }
+				if(s) {
+					tmp = obj.children("INS").clone();
+					obj.html(val).prepend(tmp);
+					this.__callback({ "obj" : obj, "name" : val, "lang" : lang });
+					return true;
+				}
+				else {
+					obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
+					this.__callback({ "obj" : obj, "name" : val, "lang" : lang });
+					return (obj.nodeValue = val);
+				}
+			},
+			_load_css : function () {
+				var langs = this._get_settings().languages,
+					str = "/* languages css */",
+					selector = ".jstree-" + this.get_index() + ' a',
+					ln;
+				if($.isArray(langs) && langs.length) {
+					this.data.languages.current_language = langs[0];
+					for(ln = 0; ln < langs.length; ln++) {
+						str += selector + "." + langs[ln] + " {";
+						if(langs[ln] != this.data.languages.current_language) { str += " display:none; "; }
+						str += " } ";
+					}
+					this.data.languages.language_css = $.vakata.css.add_sheet({ 'str' : str, 'title' : "jstree-languages" });
+				}
+			},
+			create_node : function (obj, position, js, callback) {
+				var t = this.__call_old(true, obj, position, js, function (t) {
+					var langs = this._get_settings().languages,
+						a = t.children("a"),
+						ln;
+					if($.isArray(langs) && langs.length) {
+						for(ln = 0; ln < langs.length; ln++) {
+							if(!a.is("." + langs[ln])) {
+								t.append(a.eq(0).clone().removeClass(langs.join(" ")).addClass(langs[ln]));
+							}
+						}
+						a.not("." + langs.join(", .")).remove();
+					}
+					if(callback) { callback.call(this, t); }
+				});
+				return t;
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree cookies plugin
+ * Stores the currently opened/selected nodes in a cookie and then restores them
+ * Depends on the jquery.cookie plugin
+ */
+(function ($) {
+	$.jstree.plugin("cookies", {
+		__init : function () {
+			if(typeof $.cookie === "undefined") { throw "jsTree cookie: jQuery cookie plugin not included."; }
+
+			var s = this._get_settings().cookies,
+				tmp;
+			if(!!s.save_loaded) {
+				tmp = $.cookie(s.save_loaded);
+				if(tmp && tmp.length) { this.data.core.to_load = tmp.split(","); }
+			}
+			if(!!s.save_opened) {
+				tmp = $.cookie(s.save_opened);
+				if(tmp && tmp.length) { this.data.core.to_open = tmp.split(","); }
+			}
+			if(!!s.save_selected) {
+				tmp = $.cookie(s.save_selected);
+				if(tmp && tmp.length && this.data.ui) { this.data.ui.to_select = tmp.split(","); }
+			}
+			this.get_container()
+				.one( ( this.data.ui ? "reselect" : "reopen" ) + ".jstree", $.proxy(function () {
+					this.get_container()
+						.bind("open_node.jstree close_node.jstree select_node.jstree deselect_node.jstree", $.proxy(function (e) { 
+								if(this._get_settings().cookies.auto_save) { this.save_cookie((e.handleObj.namespace + e.handleObj.type).replace("jstree","")); }
+							}, this));
+				}, this));
+		},
+		defaults : {
+			save_loaded		: "jstree_load",
+			save_opened		: "jstree_open",
+			save_selected	: "jstree_select",
+			auto_save		: true,
+			cookie_options	: {}
+		},
+		_fn : {
+			save_cookie : function (c) {
+				if(this.data.core.refreshing) { return; }
+				var s = this._get_settings().cookies;
+				if(!c) { // if called manually and not by event
+					if(s.save_loaded) {
+						this.save_loaded();
+						$.cookie(s.save_loaded, this.data.core.to_load.join(","), s.cookie_options);
+					}
+					if(s.save_opened) {
+						this.save_opened();
+						$.cookie(s.save_opened, this.data.core.to_open.join(","), s.cookie_options);
+					}
+					if(s.save_selected && this.data.ui) {
+						this.save_selected();
+						$.cookie(s.save_selected, this.data.ui.to_select.join(","), s.cookie_options);
+					}
+					return;
+				}
+				switch(c) {
+					case "open_node":
+					case "close_node":
+						if(!!s.save_opened) { 
+							this.save_opened(); 
+							$.cookie(s.save_opened, this.data.core.to_open.join(","), s.cookie_options); 
+						}
+						if(!!s.save_loaded) { 
+							this.save_loaded(); 
+							$.cookie(s.save_loaded, this.data.core.to_load.join(","), s.cookie_options); 
+						}
+						break;
+					case "select_node":
+					case "deselect_node":
+						if(!!s.save_selected && this.data.ui) { 
+							this.save_selected(); 
+							$.cookie(s.save_selected, this.data.ui.to_select.join(","), s.cookie_options); 
+						}
+						break;
+				}
+			}
+		}
+	});
+	// include cookies by default
+	// $.jstree.defaults.plugins.push("cookies");
+})(jQuery);
+//*/
+
+/*
+ * jsTree sort plugin
+ * Sorts items alphabetically (or using any other function)
+ */
+(function ($) {
+	$.jstree.plugin("sort", {
+		__init : function () {
+			this.get_container()
+				.bind("load_node.jstree", $.proxy(function (e, data) {
+						var obj = this._get_node(data.rslt.obj);
+						obj = obj === -1 ? this.get_container().children("ul") : obj.children("ul");
+						this.sort(obj);
+					}, this))
+				.bind("rename_node.jstree create_node.jstree create.jstree", $.proxy(function (e, data) {
+						this.sort(data.rslt.obj.parent());
+					}, this))
+				.bind("move_node.jstree", $.proxy(function (e, data) {
+						var m = data.rslt.np == -1 ? this.get_container() : data.rslt.np;
+						this.sort(m.children("ul"));
+					}, this));
+		},
+		defaults : function (a, b) { return this.get_text(a) > this.get_text(b) ? 1 : -1; },
+		_fn : {
+			sort : function (obj) {
+				var s = this._get_settings().sort,
+					t = this;
+				obj.append($.makeArray(obj.children("li")).sort($.proxy(s, t)));
+				obj.find("> li > ul").each(function() { t.sort($(this)); });
+				this.clean_node(obj);
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree DND plugin
+ * Drag and drop plugin for moving/copying nodes
+ */
+(function ($) {
+	var o = false,
+		r = false,
+		m = false,
+		ml = false,
+		sli = false,
+		sti = false,
+		dir1 = false,
+		dir2 = false,
+		last_pos = false;
+	$.vakata.dnd = {
+		is_down : false,
+		is_drag : false,
+		helper : false,
+		scroll_spd : 10,
+		init_x : 0,
+		init_y : 0,
+		threshold : 5,
+		helper_left : 5,
+		helper_top : 10,
+		user_data : {},
+
+		drag_start : function (e, data, html) { 
+			if($.vakata.dnd.is_drag) { $.vakata.drag_stop({}); }
+			try {
+				e.currentTarget.unselectable = "on";
+				e.currentTarget.onselectstart = function() { return false; };
+				if(e.currentTarget.style) { e.currentTarget.style.MozUserSelect = "none"; }
+			} catch(err) { }
+			$.vakata.dnd.init_x = e.pageX;
+			$.vakata.dnd.init_y = e.pageY;
+			$.vakata.dnd.user_data = data;
+			$.vakata.dnd.is_down = true;
+			$.vakata.dnd.helper = $("<div id='vakata-dragged' />").html(html); //.fadeTo(10,0.25);
+			$(document).bind("mousemove", $.vakata.dnd.drag);
+			$(document).bind("mouseup", $.vakata.dnd.drag_stop);
+			return false;
+		},
+		drag : function (e) { 
+			if(!$.vakata.dnd.is_down) { return; }
+			if(!$.vakata.dnd.is_drag) {
+				if(Math.abs(e.pageX - $.vakata.dnd.init_x) > 5 || Math.abs(e.pageY - $.vakata.dnd.init_y) > 5) { 
+					$.vakata.dnd.helper.appendTo("body");
+					$.vakata.dnd.is_drag = true;
+					$(document).triggerHandler("drag_start.vakata", { "event" : e, "data" : $.vakata.dnd.user_data });
+				}
+				else { return; }
+			}
+
+			// maybe use a scrolling parent element instead of document?
+			if(e.type === "mousemove") { // thought of adding scroll in order to move the helper, but mouse poisition is n/a
+				var d = $(document), t = d.scrollTop(), l = d.scrollLeft();
+				if(e.pageY - t < 20) { 
+					if(sti && dir1 === "down") { clearInterval(sti); sti = false; }
+					if(!sti) { dir1 = "up"; sti = setInterval(function () { $(document).scrollTop($(document).scrollTop() - $.vakata.dnd.scroll_spd); }, 150); }
+				}
+				else { 
+					if(sti && dir1 === "up") { clearInterval(sti); sti = false; }
+				}
+				if($(window).height() - (e.pageY - t) < 20) {
+					if(sti && dir1 === "up") { clearInterval(sti); sti = false; }
+					if(!sti) { dir1 = "down"; sti = setInterval(function () { $(document).scrollTop($(document).scrollTop() + $.vakata.dnd.scroll_spd); }, 150); }
+				}
+				else { 
+					if(sti && dir1 === "down") { clearInterval(sti); sti = false; }
+				}
+
+				if(e.pageX - l < 20) {
+					if(sli && dir2 === "right") { clearInterval(sli); sli = false; }
+					if(!sli) { dir2 = "left"; sli = setInterval(function () { $(document).scrollLeft($(document).scrollLeft() - $.vakata.dnd.scroll_spd); }, 150); }
+				}
+				else { 
+					if(sli && dir2 === "left") { clearInterval(sli); sli = false; }
+				}
+				if($(window).width() - (e.pageX - l) < 20) {
+					if(sli && dir2 === "left") { clearInterval(sli); sli = false; }
+					if(!sli) { dir2 = "right"; sli = setInterval(function () { $(document).scrollLeft($(document).scrollLeft() + $.vakata.dnd.scroll_spd); }, 150); }
+				}
+				else { 
+					if(sli && dir2 === "right") { clearInterval(sli); sli = false; }
+				}
+			}
+
+			$.vakata.dnd.helper.css({ left : (e.pageX + $.vakata.dnd.helper_left) + "px", top : (e.pageY + $.vakata.dnd.helper_top) + "px" });
+			$(document).triggerHandler("drag.vakata", { "event" : e, "data" : $.vakata.dnd.user_data });
+		},
+		drag_stop : function (e) {
+			if(sli) { clearInterval(sli); }
+			if(sti) { clearInterval(sti); }
+			$(document).unbind("mousemove", $.vakata.dnd.drag);
+			$(document).unbind("mouseup", $.vakata.dnd.drag_stop);
+			$(document).triggerHandler("drag_stop.vakata", { "event" : e, "data" : $.vakata.dnd.user_data });
+			$.vakata.dnd.helper.remove();
+			$.vakata.dnd.init_x = 0;
+			$.vakata.dnd.init_y = 0;
+			$.vakata.dnd.user_data = {};
+			$.vakata.dnd.is_down = false;
+			$.vakata.dnd.is_drag = false;
+		}
+	};
+	$(function() {
+		var css_string = '#vakata-dragged { display:block; margin:0 0 0 0; padding:4px 4px 4px 24px; position:absolute; top:-2000px; line-height:16px; z-index:10000; } ';
+		$.vakata.css.add_sheet({ str : css_string, title : "vakata" });
+	});
+
+	$.jstree.plugin("dnd", {
+		__init : function () {
+			this.data.dnd = {
+				active : false,
+				after : false,
+				inside : false,
+				before : false,
+				off : false,
+				prepared : false,
+				w : 0,
+				to1 : false,
+				to2 : false,
+				cof : false,
+				cw : false,
+				ch : false,
+				i1 : false,
+				i2 : false,
+				mto : false
+			};
+			this.get_container()
+				.bind("mouseenter.jstree", $.proxy(function (e) {
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							if(this.data.themes) {
+								m.attr("class", "jstree-" + this.data.themes.theme); 
+								if(ml) { ml.attr("class", "jstree-" + this.data.themes.theme); }
+								$.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme);
+							}
+							//if($(e.currentTarget).find("> ul > li").length === 0) {
+							if(e.currentTarget === e.target && $.vakata.dnd.user_data.obj && $($.vakata.dnd.user_data.obj).length && $($.vakata.dnd.user_data.obj).parents(".jstree:eq(0)")[0] !== e.target) { // node should not be from the same tree
+								var tr = $.jstree._reference(e.target), dc;
+								if(tr.data.dnd.foreign) {
+									dc = tr._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : tr.get_container(), is_root : true });
+									if(dc === true || dc.inside === true || dc.before === true || dc.after === true) {
+										$.vakata.dnd.helper.children("ins").attr("class","jstree-ok");
+									}
+								}
+								else {
+									tr.prepare_move(o, tr.get_container(), "last");
+									if(tr.check_move()) {
+										$.vakata.dnd.helper.children("ins").attr("class","jstree-ok");
+									}
+								}
+							}
+						}
+					}, this))
+				.bind("mouseup.jstree", $.proxy(function (e) {
+						//if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && $(e.currentTarget).find("> ul > li").length === 0) {
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && e.currentTarget === e.target && $.vakata.dnd.user_data.obj && $($.vakata.dnd.user_data.obj).length && $($.vakata.dnd.user_data.obj).parents(".jstree:eq(0)")[0] !== e.target) { // node should not be from the same tree
+							var tr = $.jstree._reference(e.currentTarget), dc;
+							if(tr.data.dnd.foreign) {
+								dc = tr._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : tr.get_container(), is_root : true });
+								if(dc === true || dc.inside === true || dc.before === true || dc.after === true) {
+									tr._get_settings().dnd.drag_finish.call(this, { "o" : o, "r" : tr.get_container(), is_root : true });
+								}
+							}
+							else {
+								tr.move_node(o, tr.get_container(), "last", e[tr._get_settings().dnd.copy_modifier + "Key"]);
+							}
+						}
+					}, this))
+				.bind("mouseleave.jstree", $.proxy(function (e) {
+						if(e.relatedTarget && e.relatedTarget.id && e.relatedTarget.id === "jstree-marker-line") {
+							return false; 
+						}
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
+							if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
+							if(this.data.dnd.to1) { clearTimeout(this.data.dnd.to1); }
+							if(this.data.dnd.to2) { clearTimeout(this.data.dnd.to2); }
+							if($.vakata.dnd.helper.children("ins").hasClass("jstree-ok")) {
+								$.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
+							}
+						}
+					}, this))
+				.bind("mousemove.jstree", $.proxy(function (e) {
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							var cnt = this.get_container()[0];
+
+							// Horizontal scroll
+							if(e.pageX + 24 > this.data.dnd.cof.left + this.data.dnd.cw) {
+								if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
+								this.data.dnd.i1 = setInterval($.proxy(function () { this.scrollLeft += $.vakata.dnd.scroll_spd; }, cnt), 100);
+							}
+							else if(e.pageX - 24 < this.data.dnd.cof.left) {
+								if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
+								this.data.dnd.i1 = setInterval($.proxy(function () { this.scrollLeft -= $.vakata.dnd.scroll_spd; }, cnt), 100);
+							}
+							else {
+								if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
+							}
+
+							// Vertical scroll
+							if(e.pageY + 24 > this.data.dnd.cof.top + this.data.dnd.ch) {
+								if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
+								this.data.dnd.i2 = setInterval($.proxy(function () { this.scrollTop += $.vakata.dnd.scroll_spd; }, cnt), 100);
+							}
+							else if(e.pageY - 24 < this.data.dnd.cof.top) {
+								if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
+								this.data.dnd.i2 = setInterval($.proxy(function () { this.scrollTop -= $.vakata.dnd.scroll_spd; }, cnt), 100);
+							}
+							else {
+								if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
+							}
+
+						}
+					}, this))
+				.bind("scroll.jstree", $.proxy(function (e) { 
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && m && ml) {
+							m.hide();
+							ml.hide();
+						}
+					}, this))
+				.delegate("a", "mousedown.jstree", $.proxy(function (e) { 
+						if(e.which === 1) {
+							this.start_drag(e.currentTarget, e);
+							return false;
+						}
+					}, this))
+				.delegate("a", "mouseenter.jstree", $.proxy(function (e) { 
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							this.dnd_enter(e.currentTarget);
+						}
+					}, this))
+				.delegate("a", "mousemove.jstree", $.proxy(function (e) { 
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							if(!r || !r.length || r.children("a")[0] !== e.currentTarget) {
+								this.dnd_enter(e.currentTarget);
+							}
+							if(typeof this.data.dnd.off.top === "undefined") { this.data.dnd.off = $(e.target).offset(); }
+							this.data.dnd.w = (e.pageY - (this.data.dnd.off.top || 0)) % this.data.core.li_height;
+							if(this.data.dnd.w < 0) { this.data.dnd.w += this.data.core.li_height; }
+							this.dnd_show();
+						}
+					}, this))
+				.delegate("a", "mouseleave.jstree", $.proxy(function (e) { 
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							if(e.relatedTarget && e.relatedTarget.id && e.relatedTarget.id === "jstree-marker-line") {
+								return false; 
+							}
+								if(m) { m.hide(); }
+								if(ml) { ml.hide(); }
+							/*
+							var ec = $(e.currentTarget).closest("li"), 
+								er = $(e.relatedTarget).closest("li");
+							if(er[0] !== ec.prev()[0] && er[0] !== ec.next()[0]) {
+								if(m) { m.hide(); }
+								if(ml) { ml.hide(); }
+							}
+							*/
+							this.data.dnd.mto = setTimeout( 
+								(function (t) { return function () { t.dnd_leave(e); }; })(this),
+							0);
+						}
+					}, this))
+				.delegate("a", "mouseup.jstree", $.proxy(function (e) { 
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
+							this.dnd_finish(e);
+						}
+					}, this));
+
+			$(document)
+				.bind("drag_stop.vakata", $.proxy(function () {
+						if(this.data.dnd.to1) { clearTimeout(this.data.dnd.to1); }
+						if(this.data.dnd.to2) { clearTimeout(this.data.dnd.to2); }
+						if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); }
+						if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); }
+						this.data.dnd.after		= false;
+						this.data.dnd.before	= false;
+						this.data.dnd.inside	= false;
+						this.data.dnd.off		= false;
+						this.data.dnd.prepared	= false;
+						this.data.dnd.w			= false;
+						this.data.dnd.to1		= false;
+						this.data.dnd.to2		= false;
+						this.data.dnd.i1		= false;
+						this.data.dnd.i2		= false;
+						this.data.dnd.active	= false;
+						this.data.dnd.foreign	= false;
+						if(m) { m.css({ "top" : "-2000px" }); }
+						if(ml) { ml.css({ "top" : "-2000px" }); }
+					}, this))
+				.bind("drag_start.vakata", $.proxy(function (e, data) {
+						if(data.data.jstree) { 
+							var et = $(data.event.target);
+							if(et.closest(".jstree").hasClass("jstree-" + this.get_index())) {
+								this.dnd_enter(et);
+							}
+						}
+					}, this));
+				/*
+				.bind("keydown.jstree-" + this.get_index() + " keyup.jstree-" + this.get_index(), $.proxy(function(e) {
+						if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && !this.data.dnd.foreign) {
+							var h = $.vakata.dnd.helper.children("ins");
+							if(e[this._get_settings().dnd.copy_modifier + "Key"] && h.hasClass("jstree-ok")) {
+								h.parent().html(h.parent().html().replace(/ \(Copy\)$/, "") + " (Copy)");
+							} 
+							else {
+								h.parent().html(h.parent().html().replace(/ \(Copy\)$/, ""));
+							}
+						}
+					}, this)); */
+
+
+
+			var s = this._get_settings().dnd;
+			if(s.drag_target) {
+				$(document)
+					.delegate(s.drag_target, "mousedown.jstree-" + this.get_index(), $.proxy(function (e) {
+						o = e.target;
+						$.vakata.dnd.drag_start(e, { jstree : true, obj : e.target }, "<ins class='jstree-icon'></ins>" + $(e.target).text() );
+						if(this.data.themes) { 
+							if(m) { m.attr("class", "jstree-" + this.data.themes.theme); }
+							if(ml) { ml.attr("class", "jstree-" + this.data.themes.theme); }
+							$.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme); 
+						}
+						$.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
+						var cnt = this.get_container();
+						this.data.dnd.cof = cnt.offset();
+						this.data.dnd.cw = parseInt(cnt.width(),10);
+						this.data.dnd.ch = parseInt(cnt.height(),10);
+						this.data.dnd.foreign = true;
+						e.preventDefault();
+					}, this));
+			}
+			if(s.drop_target) {
+				$(document)
+					.delegate(s.drop_target, "mouseenter.jstree-" + this.get_index(), $.proxy(function (e) {
+							if(this.data.dnd.active && this._get_settings().dnd.drop_check.call(this, { "o" : o, "r" : $(e.target), "e" : e })) {
+								$.vakata.dnd.helper.children("ins").attr("class","jstree-ok");
+							}
+						}, this))
+					.delegate(s.drop_target, "mouseleave.jstree-" + this.get_index(), $.proxy(function (e) {
+							if(this.data.dnd.active) {
+								$.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
+							}
+						}, this))
+					.delegate(s.drop_target, "mouseup.jstree-" + this.get_index(), $.proxy(function (e) {
+							if(this.data.dnd.active && $.vakata.dnd.helper.children("ins").hasClass("jstree-ok")) {
+								this._get_settings().dnd.drop_finish.call(this, { "o" : o, "r" : $(e.target), "e" : e });
+							}
+						}, this));
+			}
+		},
+		defaults : {
+			copy_modifier	: "ctrl",
+			check_timeout	: 100,
+			open_timeout	: 500,
+			drop_target		: ".jstree-drop",
+			drop_check		: function (data) { return true; },
+			drop_finish		: $.noop,
+			drag_target		: ".jstree-draggable",
+			drag_finish		: $.noop,
+			drag_check		: function (data) { return { after : false, before : false, inside : true }; }
+		},
+		_fn : {
+			dnd_prepare : function () {
+				if(!r || !r.length) { return; }
+				this.data.dnd.off = r.offset();
+				if(this._get_settings().core.rtl) {
+					this.data.dnd.off.right = this.data.dnd.off.left + r.width();
+				}
+				if(this.data.dnd.foreign) {
+					var a = this._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : r });
+					this.data.dnd.after = a.after;
+					this.data.dnd.before = a.before;
+					this.data.dnd.inside = a.inside;
+					this.data.dnd.prepared = true;
+					return this.dnd_show();
+				}
+				this.prepare_move(o, r, "before");
+				this.data.dnd.before = this.check_move();
+				this.prepare_move(o, r, "after");
+				this.data.dnd.after = this.check_move();
+				if(this._is_loaded(r)) {
+					this.prepare_move(o, r, "inside");
+					this.data.dnd.inside = this.check_move();
+				}
+				else {
+					this.data.dnd.inside = false;
+				}
+				this.data.dnd.prepared = true;
+				return this.dnd_show();
+			},
+			dnd_show : function () {
+				if(!this.data.dnd.prepared) { return; }
+				var o = ["before","inside","after"],
+					r = false,
+					rtl = this._get_settings().core.rtl,
+					pos;
+				if(this.data.dnd.w < this.data.core.li_height/3) { o = ["before","inside","after"]; }
+				else if(this.data.dnd.w <= this.data.core.li_height*2/3) {
+					o = this.data.dnd.w < this.data.core.li_height/2 ? ["inside","before","after"] : ["inside","after","before"];
+				}
+				else { o = ["after","inside","before"]; }
+				$.each(o, $.proxy(function (i, val) { 
+					if(this.data.dnd[val]) {
+						$.vakata.dnd.helper.children("ins").attr("class","jstree-ok");
+						r = val;
+						return false;
+					}
+				}, this));
+				if(r === false) { $.vakata.dnd.helper.children("ins").attr("class","jstree-invalid"); }
+				
+				pos = rtl ? (this.data.dnd.off.right - 18) : (this.data.dnd.off.left + 10);
+				switch(r) {
+					case "before":
+						m.css({ "left" : pos + "px", "top" : (this.data.dnd.off.top - 6) + "px" }).show();
+						if(ml) { ml.css({ "left" : (pos + 8) + "px", "top" : (this.data.dnd.off.top - 1) + "px" }).show(); }
+						break;
+					case "after":
+						m.css({ "left" : pos + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height - 6) + "px" }).show();
+						if(ml) { ml.css({ "left" : (pos + 8) + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height - 1) + "px" }).show(); }
+						break;
+					case "inside":
+						m.css({ "left" : pos + ( rtl ? -4 : 4) + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height/2 - 5) + "px" }).show();
+						if(ml) { ml.hide(); }
+						break;
+					default:
+						m.hide();
+						if(ml) { ml.hide(); }
+						break;
+				}
+				last_pos = r;
+				return r;
+			},
+			dnd_open : function () {
+				this.data.dnd.to2 = false;
+				this.open_node(r, $.proxy(this.dnd_prepare,this), true);
+			},
+			dnd_finish : function (e) {
+				if(this.data.dnd.foreign) {
+					if(this.data.dnd.after || this.data.dnd.before || this.data.dnd.inside) {
+						this._get_settings().dnd.drag_finish.call(this, { "o" : o, "r" : r, "p" : last_pos });
+					}
+				}
+				else {
+					this.dnd_prepare();
+					this.move_node(o, r, last_pos, e[this._get_settings().dnd.copy_modifier + "Key"]);
+				}
+				o = false;
+				r = false;
+				m.hide();
+				if(ml) { ml.hide(); }
+			},
+			dnd_enter : function (obj) {
+				if(this.data.dnd.mto) { 
+					clearTimeout(this.data.dnd.mto);
+					this.data.dnd.mto = false;
+				}
+				var s = this._get_settings().dnd;
+				this.data.dnd.prepared = false;
+				r = this._get_node(obj);
+				if(s.check_timeout) { 
+					// do the calculations after a minimal timeout (users tend to drag quickly to the desired location)
+					if(this.data.dnd.to1) { clearTimeout(this.data.dnd.to1); }
+					this.data.dnd.to1 = setTimeout($.proxy(this.dnd_prepare, this), s.check_timeout); 
+				}
+				else { 
+					this.dnd_prepare(); 
+				}
+				if(s.open_timeout) { 
+					if(this.data.dnd.to2) { clearTimeout(this.data.dnd.to2); }
+					if(r && r.length && r.hasClass("jstree-closed")) { 
+						// if the node is closed - open it, then recalculate
+						this.data.dnd.to2 = setTimeout($.proxy(this.dnd_open, this), s.open_timeout);
+					}
+				}
+				else {
+					if(r && r.length && r.hasClass("jstree-closed")) { 
+						this.dnd_open();
+					}
+				}
+			},
+			dnd_leave : function (e) {
+				this.data.dnd.after		= false;
+				this.data.dnd.before	= false;
+				this.data.dnd.inside	= false;
+				$.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
+				m.hide();
+				if(ml) { ml.hide(); }
+				if(r && r[0] === e.target.parentNode) {
+					if(this.data.dnd.to1) {
+						clearTimeout(this.data.dnd.to1);
+						this.data.dnd.to1 = false;
+					}
+					if(this.data.dnd.to2) {
+						clearTimeout(this.data.dnd.to2);
+						this.data.dnd.to2 = false;
+					}
+				}
+			},
+			start_drag : function (obj, e) {
+				o = this._get_node(obj);
+				if(this.data.ui && this.is_selected(o)) { o = this._get_node(null, true); }
+				var dt = o.length > 1 ? this._get_string("multiple_selection") : this.get_text(o),
+					cnt = this.get_container();
+				if(!this._get_settings().core.html_titles) { dt = dt.replace(/</ig,"<").replace(/>/ig,">"); }
+				$.vakata.dnd.drag_start(e, { jstree : true, obj : o }, "<ins class='jstree-icon'></ins>" + dt );
+				if(this.data.themes) { 
+					if(m) { m.attr("class", "jstree-" + this.data.themes.theme); }
+					if(ml) { ml.attr("class", "jstree-" + this.data.themes.theme); }
+					$.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme); 
+				}
+				this.data.dnd.cof = cnt.offset();
+				this.data.dnd.cw = parseInt(cnt.width(),10);
+				this.data.dnd.ch = parseInt(cnt.height(),10);
+				this.data.dnd.active = true;
+			}
+		}
+	});
+	$(function() {
+		var css_string = '' + 
+			'#vakata-dragged ins { display:block; text-decoration:none; width:16px; height:16px; margin:0 0 0 0; padding:0; position:absolute; top:4px; left:4px; ' + 
+			' -moz-border-radius:4px; border-radius:4px; -webkit-border-radius:4px; ' +
+			'} ' + 
+			'#vakata-dragged .jstree-ok { background:green; } ' + 
+			'#vakata-dragged .jstree-invalid { background:red; } ' + 
+			'#jstree-marker { padding:0; margin:0; font-size:12px; overflow:hidden; height:12px; width:8px; position:absolute; top:-30px; z-index:10001; background-repeat:no-repeat; display:none; background-color:transparent; text-shadow:1px 1px 1px white; color:black; line-height:10px; } ' + 
+			'#jstree-marker-line { padding:0; margin:0; line-height:0%; font-size:1px; overflow:hidden; height:1px; width:100px; position:absolute; top:-30px; z-index:10000; background-repeat:no-repeat; display:none; background-color:#456c43; ' + 
+			' cursor:pointer; border:1px solid #eeeeee; border-left:0; -moz-box-shadow: 0px 0px 2px #666; -webkit-box-shadow: 0px 0px 2px #666; box-shadow: 0px 0px 2px #666; ' + 
+			' -moz-border-radius:1px; border-radius:1px; -webkit-border-radius:1px; ' +
+			'}' + 
+			'';
+		$.vakata.css.add_sheet({ str : css_string, title : "jstree" });
+		m = $("<div />").attr({ id : "jstree-marker" }).hide().html("»")
+			.bind("mouseleave mouseenter", function (e) { 
+				m.hide();
+				ml.hide();
+				e.preventDefault(); 
+				e.stopImmediatePropagation(); 
+				return false; 
+			})
+			.appendTo("body");
+		ml = $("<div />").attr({ id : "jstree-marker-line" }).hide()
+			.bind("mouseup", function (e) { 
+				if(r && r.length) { 
+					r.children("a").trigger(e); 
+					e.preventDefault(); 
+					e.stopImmediatePropagation(); 
+					return false; 
+				} 
+			})
+			.bind("mouseleave", function (e) { 
+				var rt = $(e.relatedTarget);
+				if(rt.is(".jstree") || rt.closest(".jstree").length === 0) {
+					if(r && r.length) { 
+						r.children("a").trigger(e); 
+						m.hide();
+						ml.hide();
+						e.preventDefault(); 
+						e.stopImmediatePropagation(); 
+						return false; 
+					}
+				}
+			})
+			.appendTo("body");
+		$(document).bind("drag_start.vakata", function (e, data) {
+			if(data.data.jstree) { m.show(); if(ml) { ml.show(); } }
+		});
+		$(document).bind("drag_stop.vakata", function (e, data) {
+			if(data.data.jstree) { m.hide(); if(ml) { ml.hide(); } }
+		});
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree checkbox plugin
+ * Inserts checkboxes in front of every node
+ * Depends on the ui plugin
+ * DOES NOT WORK NICELY WITH MULTITREE DRAG'N'DROP
+ */
+(function ($) {
+	$.jstree.plugin("checkbox", {
+		__init : function () {
+			this.data.checkbox.noui = this._get_settings().checkbox.override_ui;
+			if(this.data.ui && this.data.checkbox.noui) {
+				this.select_node = this.deselect_node = this.deselect_all = $.noop;
+				this.get_selected = this.get_checked;
+			}
+
+			this.get_container()
+				.bind("open_node.jstree create_node.jstree clean_node.jstree refresh.jstree", $.proxy(function (e, data) { 
+						this._prepare_checkboxes(data.rslt.obj);
+					}, this))
+				.bind("loaded.jstree", $.proxy(function (e) {
+						this._prepare_checkboxes();
+					}, this))
+				.delegate( (this.data.ui && this.data.checkbox.noui ? "a" : "ins.jstree-checkbox") , "click.jstree", $.proxy(function (e) {
+						e.preventDefault();
+						if(this._get_node(e.target).hasClass("jstree-checked")) { this.uncheck_node(e.target); }
+						else { this.check_node(e.target); }
+						if(this.data.ui && this.data.checkbox.noui) {
+							this.save_selected();
+							if(this.data.cookies) { this.save_cookie("select_node"); }
+						}
+						else {
+							e.stopImmediatePropagation();
+							return false;
+						}
+					}, this));
+		},
+		defaults : {
+			override_ui : false,
+			two_state : false,
+			real_checkboxes : false,
+			checked_parent_open : true,
+			real_checkboxes_names : function (n) { return [ ("check_" + (n[0].id || Math.ceil(Math.random() * 10000))) , 1]; }
+		},
+		__destroy : function () {
+			this.get_container()
+				.find("input.jstree-real-checkbox").removeClass("jstree-real-checkbox").end()
+				.find("ins.jstree-checkbox").remove();
+		},
+		_fn : {
+			_checkbox_notify : function (n, data) {
+				if(data.checked) {
+					this.check_node(n, false);
+				}
+			},
+			_prepare_checkboxes : function (obj) {
+				obj = !obj || obj == -1 ? this.get_container().find("> ul > li") : this._get_node(obj);
+				if(obj === false) { return; } // added for removing root nodes
+				var c, _this = this, t, ts = this._get_settings().checkbox.two_state, rc = this._get_settings().checkbox.real_checkboxes, rcn = this._get_settings().checkbox.real_checkboxes_names;
+				obj.each(function () {
+					t = $(this);
+					c = t.is("li") && (t.hasClass("jstree-checked") || (rc && t.children(":checked").length)) ? "jstree-checked" : "jstree-unchecked";
+					t.find("li").andSelf().each(function () {
+						var $t = $(this), nm;
+						$t.children("a" + (_this.data.languages ? "" : ":eq(0)") ).not(":has(.jstree-checkbox)").prepend("<ins class='jstree-checkbox'> </ins>").parent().not(".jstree-checked, .jstree-unchecked").addClass( ts ? "jstree-unchecked" : c );
+						if(rc) {
+							if(!$t.children(":checkbox").length) {
+								nm = rcn.call(_this, $t);
+								$t.prepend("<input type='checkbox' class='jstree-real-checkbox' id='" + nm[0] + "' name='" + nm[0] + "' value='" + nm[1] + "' />");
+							}
+							else {
+								$t.children(":checkbox").addClass("jstree-real-checkbox");
+							}
+							if(c === "jstree-checked") { 
+								$t.children(":checkbox").attr("checked","checked"); 
+							}
+						}
+						if(c === "jstree-checked" && !ts) {
+							$t.find("li").addClass("jstree-checked");
+						}
+					});
+				});
+				if(!ts) {
+					if(obj.length === 1 && obj.is("li")) { this._repair_state(obj); }
+					if(obj.is("li")) { obj.each(function () { _this._repair_state(this); }); }
+					else { obj.find("> ul > li").each(function () { _this._repair_state(this); }); }
+					obj.find(".jstree-checked").parent().parent().each(function () { _this._repair_state(this); }); 
+				}
+			},
+			change_state : function (obj, state) {
+				obj = this._get_node(obj);
+				var coll = false, rc = this._get_settings().checkbox.real_checkboxes;
+				if(!obj || obj === -1) { return false; }
+				state = (state === false || state === true) ? state : obj.hasClass("jstree-checked");
+				if(this._get_settings().checkbox.two_state) {
+					if(state) { 
+						obj.removeClass("jstree-checked").addClass("jstree-unchecked"); 
+						if(rc) { obj.children(":checkbox").removeAttr("checked"); }
+					}
+					else { 
+						obj.removeClass("jstree-unchecked").addClass("jstree-checked"); 
+						if(rc) { obj.children(":checkbox").attr("checked","checked"); }
+					}
+				}
+				else {
+					if(state) { 
+						coll = obj.find("li").andSelf();
+						if(!coll.filter(".jstree-checked, .jstree-undetermined").length) { return false; }
+						coll.removeClass("jstree-checked jstree-undetermined").addClass("jstree-unchecked"); 
+						if(rc) { coll.children(":checkbox").removeAttr("checked"); }
+					}
+					else { 
+						coll = obj.find("li").andSelf();
+						if(!coll.filter(".jstree-unchecked, .jstree-undetermined").length) { return false; }
+						coll.removeClass("jstree-unchecked jstree-undetermined").addClass("jstree-checked"); 
+						if(rc) { coll.children(":checkbox").attr("checked","checked"); }
+						if(this.data.ui) { this.data.ui.last_selected = obj; }
+						this.data.checkbox.last_selected = obj;
+					}
+					obj.parentsUntil(".jstree", "li").each(function () {
+						var $this = $(this);
+						if(state) {
+							if($this.children("ul").children("li.jstree-checked, li.jstree-undetermined").length) {
+								$this.parentsUntil(".jstree", "li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined");
+								if(rc) { $this.parentsUntil(".jstree", "li").andSelf().children(":checkbox").removeAttr("checked"); }
+								return false;
+							}
+							else {
+								$this.removeClass("jstree-checked jstree-undetermined").addClass("jstree-unchecked");
+								if(rc) { $this.children(":checkbox").removeAttr("checked"); }
+							}
+						}
+						else {
+							if($this.children("ul").children("li.jstree-unchecked, li.jstree-undetermined").length) {
+								$this.parentsUntil(".jstree", "li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined");
+								if(rc) { $this.parentsUntil(".jstree", "li").andSelf().children(":checkbox").removeAttr("checked"); }
+								return false;
+							}
+							else {
+								$this.removeClass("jstree-unchecked jstree-undetermined").addClass("jstree-checked");
+								if(rc) { $this.children(":checkbox").attr("checked","checked"); }
+							}
+						}
+					});
+				}
+				if(this.data.ui && this.data.checkbox.noui) { this.data.ui.selected = this.get_checked(); }
+				this.__callback(obj);
+				return true;
+			},
+			check_node : function (obj) {
+				if(this.change_state(obj, false)) { 
+					obj = this._get_node(obj);
+					if(this._get_settings().checkbox.checked_parent_open) {
+						var t = this;
+						obj.parents(".jstree-closed").each(function () { t.open_node(this, false, true); });
+					}
+					this.__callback({ "obj" : obj }); 
+				}
+			},
+			uncheck_node : function (obj) {
+				if(this.change_state(obj, true)) { this.__callback({ "obj" : this._get_node(obj) }); }
+			},
+			check_all : function () {
+				var _this = this, 
+					coll = this._get_settings().checkbox.two_state ? this.get_container_ul().find("li") : this.get_container_ul().children("li");
+				coll.each(function () {
+					_this.change_state(this, false);
+				});
+				this.__callback();
+			},
+			uncheck_all : function () {
+				var _this = this,
+					coll = this._get_settings().checkbox.two_state ? this.get_container_ul().find("li") : this.get_container_ul().children("li");
+				coll.each(function () {
+					_this.change_state(this, true);
+				});
+				this.__callback();
+			},
+
+			is_checked : function(obj) {
+				obj = this._get_node(obj);
+				return obj.length ? obj.is(".jstree-checked") : false;
+			},
+			get_checked : function (obj, get_all) {
+				obj = !obj || obj === -1 ? this.get_container() : this._get_node(obj);
+				return get_all || this._get_settings().checkbox.two_state ? obj.find(".jstree-checked") : obj.find("> ul > .jstree-checked, .jstree-undetermined > ul > .jstree-checked");
+			},
+			get_unchecked : function (obj, get_all) { 
+				obj = !obj || obj === -1 ? this.get_container() : this._get_node(obj);
+				return get_all || this._get_settings().checkbox.two_state ? obj.find(".jstree-unchecked") : obj.find("> ul > .jstree-unchecked, .jstree-undetermined > ul > .jstree-unchecked");
+			},
+
+			show_checkboxes : function () { this.get_container().children("ul").removeClass("jstree-no-checkboxes"); },
+			hide_checkboxes : function () { this.get_container().children("ul").addClass("jstree-no-checkboxes"); },
+
+			_repair_state : function (obj) {
+				obj = this._get_node(obj);
+				if(!obj.length) { return; }
+				var rc = this._get_settings().checkbox.real_checkboxes,
+					a = obj.find("> ul > .jstree-checked").length,
+					b = obj.find("> ul > .jstree-undetermined").length,
+					c = obj.find("> ul > li").length;
+				if(c === 0) { if(obj.hasClass("jstree-undetermined")) { this.change_state(obj, false); } }
+				else if(a === 0 && b === 0) { this.change_state(obj, true); }
+				else if(a === c) { this.change_state(obj, false); }
+				else { 
+					obj.parentsUntil(".jstree","li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined");
+					if(rc) { obj.parentsUntil(".jstree", "li").andSelf().children(":checkbox").removeAttr("checked"); }
+				}
+			},
+			reselect : function () {
+				if(this.data.ui && this.data.checkbox.noui) { 
+					var _this = this,
+						s = this.data.ui.to_select;
+					s = $.map($.makeArray(s), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); });
+					this.deselect_all();
+					$.each(s, function (i, val) { _this.check_node(val); });
+					this.__callback();
+				}
+				else { 
+					this.__call_old(); 
+				}
+			},
+			save_loaded : function () {
+				var _this = this;
+				this.data.core.to_load = [];
+				this.get_container_ul().find("li.jstree-closed.jstree-undetermined").each(function () {
+					if(this.id) { _this.data.core.to_load.push("#" + this.id); }
+				});
+			}
+		}
+	});
+	$(function() {
+		var css_string = '.jstree .jstree-real-checkbox { display:none; } ';
+		$.vakata.css.add_sheet({ str : css_string, title : "jstree" });
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree XML plugin
+ * The XML data store. Datastores are build by overriding the `load_node` and `_is_loaded` functions.
+ */
+(function ($) {
+	$.vakata.xslt = function (xml, xsl, callback) {
+		var rs = "", xm, xs, processor, support;
+		// TODO: IE9 no XSLTProcessor, no document.recalc
+		if(document.recalc) {
+			xm = document.createElement('xml');
+			xs = document.createElement('xml');
+			xm.innerHTML = xml;
+			xs.innerHTML = xsl;
+			$("body").append(xm).append(xs);
+			setTimeout( (function (xm, xs, callback) {
+				return function () {
+					callback.call(null, xm.transformNode(xs.XMLDocument));
+					setTimeout( (function (xm, xs) { return function () { $(xm).remove(); $(xs).remove(); }; })(xm, xs), 200);
+				};
+			})(xm, xs, callback), 100);
+			return true;
+		}
+		if(typeof window.DOMParser !== "undefined" && typeof window.XMLHttpRequest !== "undefined" && typeof window.XSLTProcessor === "undefined") {
+			xml = new DOMParser().parseFromString(xml, "text/xml");
+			xsl = new DOMParser().parseFromString(xsl, "text/xml");
+			// alert(xml.transformNode());
+			// callback.call(null, new XMLSerializer().serializeToString(rs));
+			
+		}
+		if(typeof window.DOMParser !== "undefined" && typeof window.XMLHttpRequest !== "undefined" && typeof window.XSLTProcessor !== "undefined") {
+			processor = new XSLTProcessor();
+			support = $.isFunction(processor.transformDocument) ? (typeof window.XMLSerializer !== "undefined") : true;
+			if(!support) { return false; }
+			xml = new DOMParser().parseFromString(xml, "text/xml");
+			xsl = new DOMParser().parseFromString(xsl, "text/xml");
+			if($.isFunction(processor.transformDocument)) {
+				rs = document.implementation.createDocument("", "", null);
+				processor.transformDocument(xml, xsl, rs, null);
+				callback.call(null, new XMLSerializer().serializeToString(rs));
+				return true;
+			}
+			else {
+				processor.importStylesheet(xsl);
+				rs = processor.transformToFragment(xml, document);
+				callback.call(null, $("<div />").append(rs).html());
+				return true;
+			}
+		}
+		return false;
+	};
+	var xsl = {
+		'nest' : '<' + '?xml version="1.0" encoding="utf-8" ?<?vlc print '>'?>' +
+			'<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >' + 
+			'<xsl:output method="html" encoding="utf-8" omit-xml-declaration="yes" standalone="no" indent="no" media-type="text/html" />' + 
+			'<xsl:template match="/">' + 
+			'	<xsl:call-template name="nodes">' + 
+			'		<xsl:with-param name="node" select="/root" />' + 
+			'	</xsl:call-template>' + 
+			'</xsl:template>' + 
+			'<xsl:template name="nodes">' + 
+			'	<xsl:param name="node" />' + 
+			'	<ul>' + 
+			'	<xsl:for-each select="$node/item">' + 
+			'		<xsl:variable name="children" select="count(./item) > 0" />' + 
+			'		<li>' + 
+			'			<xsl:attribute name="class">' + 
+			'				<xsl:if test="position() = last()">jstree-last </xsl:if>' + 
+			'				<xsl:choose>' + 
+			'					<xsl:when test="@state = \'open\'">jstree-open </xsl:when>' + 
+			'					<xsl:when test="$children or @hasChildren or @state = \'closed\'">jstree-closed </xsl:when>' + 
+			'					<xsl:otherwise>jstree-leaf </xsl:otherwise>' + 
+			'				</xsl:choose>' + 
+			'				<xsl:value-of select="@class" />' + 
+			'			</xsl:attribute>' + 
+			'			<xsl:for-each select="@*">' + 
+			'				<xsl:if test="name() != \'class\' and name() != \'state\' and name() != \'hasChildren\'">' + 
+			'					<xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + 
+			'				</xsl:if>' + 
+			'			</xsl:for-each>' + 
+			'	<ins class="jstree-icon"><xsl:text>&#xa0;</xsl:text></ins>' + 
+			'			<xsl:for-each select="content/name">' + 
+			'				<a>' + 
+			'				<xsl:attribute name="href">' + 
+			'					<xsl:choose>' + 
+			'					<xsl:when test="@href"><xsl:value-of select="@href" /></xsl:when>' + 
+			'					<xsl:otherwise>#</xsl:otherwise>' + 
+			'					</xsl:choose>' + 
+			'				</xsl:attribute>' + 
+			'				<xsl:attribute name="class"><xsl:value-of select="@lang" /> <xsl:value-of select="@class" /></xsl:attribute>' + 
+			'				<xsl:attribute name="style"><xsl:value-of select="@style" /></xsl:attribute>' + 
+			'				<xsl:for-each select="@*">' + 
+			'					<xsl:if test="name() != \'style\' and name() != \'class\' and name() != \'href\'">' + 
+			'						<xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + 
+			'					</xsl:if>' + 
+			'				</xsl:for-each>' + 
+			'					<ins>' + 
+			'						<xsl:attribute name="class">jstree-icon ' + 
+			'							<xsl:if test="string-length(attribute::icon) > 0 and not(contains(@icon,\'/\'))"><xsl:value-of select="@icon" /></xsl:if>' + 
+			'						</xsl:attribute>' + 
+			'						<xsl:if test="string-length(attribute::icon) > 0 and contains(@icon,\'/\')"><xsl:attribute name="style">background:url(<xsl:value-of select="@icon" />) center center no-repeat;</xsl:attribute></xsl:if>' + 
+			'						<xsl:text>&#xa0;</xsl:text>' + 
+			'					</ins>' + 
+			'					<xsl:copy-of select="./child::node()" />' + 
+			'				</a>' + 
+			'			</xsl:for-each>' + 
+			'			<xsl:if test="$children or @hasChildren"><xsl:call-template name="nodes"><xsl:with-param name="node" select="current()" /></xsl:call-template></xsl:if>' + 
+			'		</li>' + 
+			'	</xsl:for-each>' + 
+			'	</ul>' + 
+			'</xsl:template>' + 
+			'</xsl:stylesheet>',
+
+		'flat' : '<' + '?xml version="1.0" encoding="utf-8" ?<?vlc print '>'?>' +
+			'<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >' + 
+			'<xsl:output method="html" encoding="utf-8" omit-xml-declaration="yes" standalone="no" indent="no" media-type="text/xml" />' + 
+			'<xsl:template match="/">' + 
+			'	<ul>' + 
+			'	<xsl:for-each select="//item[not(@parent_id) or @parent_id=0 or not(@parent_id = //item/@id)]">' + /* the last `or` may be removed */
+			'		<xsl:call-template name="nodes">' + 
+			'			<xsl:with-param name="node" select="." />' + 
+			'			<xsl:with-param name="is_last" select="number(position() = last())" />' + 
+			'		</xsl:call-template>' + 
+			'	</xsl:for-each>' + 
+			'	</ul>' + 
+			'</xsl:template>' + 
+			'<xsl:template name="nodes">' + 
+			'	<xsl:param name="node" />' + 
+			'	<xsl:param name="is_last" />' + 
+			'	<xsl:variable name="children" select="count(//item[@parent_id=$node/attribute::id]) > 0" />' + 
+			'	<li>' + 
+			'	<xsl:attribute name="class">' + 
+			'		<xsl:if test="$is_last = true()">jstree-last </xsl:if>' + 
+			'		<xsl:choose>' + 
+			'			<xsl:when test="@state = \'open\'">jstree-open </xsl:when>' + 
+			'			<xsl:when test="$children or @hasChildren or @state = \'closed\'">jstree-closed </xsl:when>' + 
+			'			<xsl:otherwise>jstree-leaf </xsl:otherwise>' + 
+			'		</xsl:choose>' + 
+			'		<xsl:value-of select="@class" />' + 
+			'	</xsl:attribute>' + 
+			'	<xsl:for-each select="@*">' + 
+			'		<xsl:if test="name() != \'parent_id\' and name() != \'hasChildren\' and name() != \'class\' and name() != \'state\'">' + 
+			'		<xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + 
+			'		</xsl:if>' + 
+			'	</xsl:for-each>' + 
+			'	<ins class="jstree-icon"><xsl:text>&#xa0;</xsl:text></ins>' + 
+			'	<xsl:for-each select="content/name">' + 
+			'		<a>' + 
+			'		<xsl:attribute name="href">' + 
+			'			<xsl:choose>' + 
+			'			<xsl:when test="@href"><xsl:value-of select="@href" /></xsl:when>' + 
+			'			<xsl:otherwise>#</xsl:otherwise>' + 
+			'			</xsl:choose>' + 
+			'		</xsl:attribute>' + 
+			'		<xsl:attribute name="class"><xsl:value-of select="@lang" /> <xsl:value-of select="@class" /></xsl:attribute>' + 
+			'		<xsl:attribute name="style"><xsl:value-of select="@style" /></xsl:attribute>' + 
+			'		<xsl:for-each select="@*">' + 
+			'			<xsl:if test="name() != \'style\' and name() != \'class\' and name() != \'href\'">' + 
+			'				<xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + 
+			'			</xsl:if>' + 
+			'		</xsl:for-each>' + 
+			'			<ins>' + 
+			'				<xsl:attribute name="class">jstree-icon ' + 
+			'					<xsl:if test="string-length(attribute::icon) > 0 and not(contains(@icon,\'/\'))"><xsl:value-of select="@icon" /></xsl:if>' + 
+			'				</xsl:attribute>' + 
+			'				<xsl:if test="string-length(attribute::icon) > 0 and contains(@icon,\'/\')"><xsl:attribute name="style">background:url(<xsl:value-of select="@icon" />) center center no-repeat;</xsl:attribute></xsl:if>' + 
+			'				<xsl:text>&#xa0;</xsl:text>' + 
+			'			</ins>' + 
+			'			<xsl:copy-of select="./child::node()" />' + 
+			'		</a>' + 
+			'	</xsl:for-each>' + 
+			'	<xsl:if test="$children">' + 
+			'		<ul>' + 
+			'		<xsl:for-each select="//item[@parent_id=$node/attribute::id]">' + 
+			'			<xsl:call-template name="nodes">' + 
+			'				<xsl:with-param name="node" select="." />' + 
+			'				<xsl:with-param name="is_last" select="number(position() = last())" />' + 
+			'			</xsl:call-template>' + 
+			'		</xsl:for-each>' + 
+			'		</ul>' + 
+			'	</xsl:if>' + 
+			'	</li>' + 
+			'</xsl:template>' + 
+			'</xsl:stylesheet>'
+	},
+	escape_xml = function(string) {
+		return string
+			.toString()
+			.replace(/&/g, '&')
+			.replace(/</g, '<')
+			.replace(/>/g, '>')
+			.replace(/"/g, '"')
+			.replace(/'/g, ''');
+	};
+	$.jstree.plugin("xml_data", {
+		defaults : { 
+			data : false,
+			ajax : false,
+			xsl : "flat",
+			clean_node : false,
+			correct_state : true,
+			get_skip_empty : false,
+			get_include_preamble : true
+		},
+		_fn : {
+			load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_xml(obj, function () { _this.__callback({ "obj" : _this._get_node(obj) }); s_call.call(this); }, e_call); },
+			_is_loaded : function (obj) { 
+				var s = this._get_settings().xml_data;
+				obj = this._get_node(obj);
+				return obj == -1 || !obj || (!s.ajax && !$.isFunction(s.data)) || obj.is(".jstree-open, .jstree-leaf") || obj.children("ul").children("li").size() > 0;
+			},
+			load_node_xml : function (obj, s_call, e_call) {
+				var s = this.get_settings().xml_data,
+					error_func = function () {},
+					success_func = function () {};
+
+				obj = this._get_node(obj);
+				if(obj && obj !== -1) {
+					if(obj.data("jstree-is-loading")) { return; }
+					else { obj.data("jstree-is-loading",true); }
+				}
+				switch(!0) {
+					case (!s.data && !s.ajax): throw "Neither data nor ajax settings supplied.";
+					case ($.isFunction(s.data)):
+						s.data.call(this, obj, $.proxy(function (d) {
+							this.parse_xml(d, $.proxy(function (d) {
+								if(d) {
+									d = d.replace(/ ?xmlns="[^"]*"/ig, "");
+									if(d.length > 10) {
+										d = $(d);
+										if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
+										else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d); obj.removeData("jstree-is-loading"); }
+										if(s.clean_node) { this.clean_node(obj); }
+										if(s_call) { s_call.call(this); }
+									}
+									else {
+										if(obj && obj !== -1) { 
+											obj.children("a.jstree-loading").removeClass("jstree-loading");
+											obj.removeData("jstree-is-loading");
+											if(s.correct_state) { 
+												this.correct_state(obj);
+												if(s_call) { s_call.call(this); } 
+											}
+										}
+										else {
+											if(s.correct_state) { 
+												this.get_container().children("ul").empty();
+												if(s_call) { s_call.call(this); } 
+											}
+										}
+									}
+								}
+							}, this));
+						}, this));
+						break;
+					case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)):
+						if(!obj || obj == -1) {
+							this.parse_xml(s.data, $.proxy(function (d) {
+								if(d) {
+									d = d.replace(/ ?xmlns="[^"]*"/ig, "");
+									if(d.length > 10) {
+										d = $(d);
+										this.get_container().children("ul").empty().append(d.children());
+										if(s.clean_node) { this.clean_node(obj); }
+										if(s_call) { s_call.call(this); }
+									}
+								}
+								else { 
+									if(s.correct_state) { 
+										this.get_container().children("ul").empty(); 
+										if(s_call) { s_call.call(this); }
+									}
+								}
+							}, this));
+						}
+						break;
+					case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1):
+						error_func = function (x, t, e) {
+							var ef = this.get_settings().xml_data.ajax.error; 
+							if(ef) { ef.call(this, x, t, e); }
+							if(obj !== -1 && obj.length) {
+								obj.children("a.jstree-loading").removeClass("jstree-loading");
+								obj.removeData("jstree-is-loading");
+								if(t === "success" && s.correct_state) { this.correct_state(obj); }
+							}
+							else {
+								if(t === "success" && s.correct_state) { this.get_container().children("ul").empty(); }
+							}
+							if(e_call) { e_call.call(this); }
+						};
+						success_func = function (d, t, x) {
+							d = x.responseText;
+							var sf = this.get_settings().xml_data.ajax.success; 
+							if(sf) { d = sf.call(this,d,t,x) || d; }
+							if(d === "" || (d && d.toString && d.toString().replace(/^[\s\n]+$/,"") === "")) {
+								return error_func.call(this, x, t, "");
+							}
+							this.parse_xml(d, $.proxy(function (d) {
+								if(d) {
+									d = d.replace(/ ?xmlns="[^"]*"/ig, "");
+									if(d.length > 10) {
+										d = $(d);
+										if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); }
+										else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d); obj.removeData("jstree-is-loading"); }
+										if(s.clean_node) { this.clean_node(obj); }
+										if(s_call) { s_call.call(this); }
+									}
+									else {
+										if(obj && obj !== -1) { 
+											obj.children("a.jstree-loading").removeClass("jstree-loading");
+											obj.removeData("jstree-is-loading");
+											if(s.correct_state) { 
+												this.correct_state(obj);
+												if(s_call) { s_call.call(this); } 
+											}
+										}
+										else {
+											if(s.correct_state) { 
+												this.get_container().children("ul").empty();
+												if(s_call) { s_call.call(this); } 
+											}
+										}
+									}
+								}
+							}, this));
+						};
+						s.ajax.context = this;
+						s.ajax.error = error_func;
+						s.ajax.success = success_func;
+						if(!s.ajax.dataType) { s.ajax.dataType = "xml"; }
+						if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); }
+						if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); }
+						$.ajax(s.ajax);
+						break;
+				}
+			},
+			parse_xml : function (xml, callback) {
+				var s = this._get_settings().xml_data;
+				$.vakata.xslt(xml, xsl[s.xsl], callback);
+			},
+			get_xml : function (tp, obj, li_attr, a_attr, is_callback) {
+				var result = "", 
+					s = this._get_settings(), 
+					_this = this,
+					tmp1, tmp2, li, a, lang;
+				if(!tp) { tp = "flat"; }
+				if(!is_callback) { is_callback = 0; }
+				obj = this._get_node(obj);
+				if(!obj || obj === -1) { obj = this.get_container().find("> ul > li"); }
+				li_attr = $.isArray(li_attr) ? li_attr : [ "id", "class" ];
+				if(!is_callback && this.data.types && $.inArray(s.types.type_attr, li_attr) === -1) { li_attr.push(s.types.type_attr); }
+
+				a_attr = $.isArray(a_attr) ? a_attr : [ ];
+
+				if(!is_callback) { 
+					if(s.xml_data.get_include_preamble) { 
+						result += '<' + '?xml version="1.0" encoding="UTF-8"?' + '>'; 
+					}
+					result += "<root>"; 
+				}
+				obj.each(function () {
+					result += "<item";
+					li = $(this);
+					$.each(li_attr, function (i, v) { 
+						var t = li.attr(v);
+						if(!s.xml_data.get_skip_empty || typeof t !== "undefined") {
+							result += " " + v + "=\"" + escape_xml((" " + (t || "")).replace(/ jstree[^ ]*/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"")) + "\""; 
+						}
+					});
+					if(li.hasClass("jstree-open")) { result += " state=\"open\""; }
+					if(li.hasClass("jstree-closed")) { result += " state=\"closed\""; }
+					if(tp === "flat") { result += " parent_id=\"" + escape_xml(is_callback) + "\""; }
+					result += ">";
+					result += "<content>";
+					a = li.children("a");
+					a.each(function () {
+						tmp1 = $(this);
+						lang = false;
+						result += "<name";
+						if($.inArray("languages", s.plugins) !== -1) {
+							$.each(s.languages, function (k, z) {
+								if(tmp1.hasClass(z)) { result += " lang=\"" + escape_xml(z) + "\""; lang = z; return false; }
+							});
+						}
+						if(a_attr.length) { 
+							$.each(a_attr, function (k, z) {
+								var t = tmp1.attr(z);
+								if(!s.xml_data.get_skip_empty || typeof t !== "undefined") {
+									result += " " + z + "=\"" + escape_xml((" " + t || "").replace(/ jstree[^ ]*/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"")) + "\"";
+								}
+							});
+						}
+						if(tmp1.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/^\s+$/ig,"").length) {
+							result += ' icon="' + escape_xml(tmp1.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"")) + '"';
+						}
+						if(tmp1.children("ins").get(0).style.backgroundImage.length) {
+							result += ' icon="' + escape_xml(tmp1.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","").replace(/'/ig,"").replace(/"/ig,"")) + '"';
+						}
+						result += ">";
+						result += "<![CDATA[" + _this.get_text(tmp1, lang) + "]]>";
+						result += "</name>";
+					});
+					result += "</content>";
+					tmp2 = li[0].id || true;
+					li = li.find("> ul > li");
+					if(li.length) { tmp2 = _this.get_xml(tp, li, li_attr, a_attr, tmp2); }
+					else { tmp2 = ""; }
+					if(tp == "nest") { result += tmp2; }
+					result += "</item>";
+					if(tp == "flat") { result += tmp2; }
+				});
+				if(!is_callback) { result += "</root>"; }
+				return result;
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree search plugin
+ * Enables both sync and async search on the tree
+ * DOES NOT WORK WITH JSON PROGRESSIVE RENDER
+ */
+(function ($) {
+	$.expr[':'].jstree_contains = function(a,i,m){
+		return (a.textContent || a.innerText || "").toLowerCase().indexOf(m[3].toLowerCase())>=0;
+	};
+	$.expr[':'].jstree_title_contains = function(a,i,m) {
+		return (a.getAttribute("title") || "").toLowerCase().indexOf(m[3].toLowerCase())>=0;
+	};
+	$.jstree.plugin("search", {
+		__init : function () {
+			this.data.search.str = "";
+			this.data.search.result = $();
+			if(this._get_settings().search.show_only_matches) {
+				this.get_container()
+					.bind("search.jstree", function (e, data) {
+						$(this).children("ul").find("li").hide().removeClass("jstree-last");
+						data.rslt.nodes.parentsUntil(".jstree").andSelf().show()
+							.filter("ul").each(function () { $(this).children("li:visible").eq(-1).addClass("jstree-last"); });
+					})
+					.bind("clear_search.jstree", function () {
+						$(this).children("ul").find("li").css("display","").end().end().jstree("clean_node", -1);
+					});
+			}
+		},
+		defaults : {
+			ajax : false,
+			search_method : "jstree_contains", // for case insensitive - jstree_contains
+			show_only_matches : false
+		},
+		_fn : {
+			search : function (str, skip_async) {
+				if($.trim(str) === "") { this.clear_search(); return; }
+				var s = this.get_settings().search, 
+					t = this,
+					error_func = function () { },
+					success_func = function () { };
+				this.data.search.str = str;
+
+				if(!skip_async && s.ajax !== false && this.get_container_ul().find("li.jstree-closed:not(:has(ul)):eq(0)").length > 0) {
+					this.search.supress_callback = true;
+					error_func = function () { };
+					success_func = function (d, t, x) {
+						var sf = this.get_settings().search.ajax.success; 
+						if(sf) { d = sf.call(this,d,t,x) || d; }
+						this.data.search.to_open = d;
+						this._search_open();
+					};
+					s.ajax.context = this;
+					s.ajax.error = error_func;
+					s.ajax.success = success_func;
+					if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, str); }
+					if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, str); }
+					if(!s.ajax.data) { s.ajax.data = { "search_string" : str }; }
+					if(!s.ajax.dataType || /^json/.exec(s.ajax.dataType)) { s.ajax.dataType = "json"; }
+					$.ajax(s.ajax);
+					return;
+				}
+				if(this.data.search.result.length) { this.clear_search(); }
+				this.data.search.result = this.get_container().find("a" + (this.data.languages ? "." + this.get_lang() : "" ) + ":" + (s.search_method) + "(" + this.data.search.str + ")");
+				this.data.search.result.addClass("jstree-search").parent().parents(".jstree-closed").each(function () {
+					t.open_node(this, false, true);
+				});
+				this.__callback({ nodes : this.data.search.result, str : str });
+			},
+			clear_search : function (str) {
+				this.data.search.result.removeClass("jstree-search");
+				this.__callback(this.data.search.result);
+				this.data.search.result = $();
+			},
+			_search_open : function (is_callback) {
+				var _this = this,
+					done = true,
+					current = [],
+					remaining = [];
+				if(this.data.search.to_open.length) {
+					$.each(this.data.search.to_open, function (i, val) {
+						if(val == "#") { return true; }
+						if($(val).length && $(val).is(".jstree-closed")) { current.push(val); }
+						else { remaining.push(val); }
+					});
+					if(current.length) {
+						this.data.search.to_open = remaining;
+						$.each(current, function (i, val) { 
+							_this.open_node(val, function () { _this._search_open(true); }); 
+						});
+						done = false;
+					}
+				}
+				if(done) { this.search(this.data.search.str, true); }
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree contextmenu plugin
+ */
+(function ($) {
+	$.vakata.context = {
+		hide_on_mouseleave : false,
+
+		cnt		: $("<div id='vakata-contextmenu' />"),
+		vis		: false,
+		tgt		: false,
+		par		: false,
+		func	: false,
+		data	: false,
+		rtl		: false,
+		show	: function (s, t, x, y, d, p, rtl) {
+			$.vakata.context.rtl = !!rtl;
+			var html = $.vakata.context.parse(s), h, w;
+			if(!html) { return; }
+			$.vakata.context.vis = true;
+			$.vakata.context.tgt = t;
+			$.vakata.context.par = p || t || null;
+			$.vakata.context.data = d || null;
+			$.vakata.context.cnt
+				.html(html)
+				.css({ "visibility" : "hidden", "display" : "block", "left" : 0, "top" : 0 });
+
+			if($.vakata.context.hide_on_mouseleave) {
+				$.vakata.context.cnt
+					.one("mouseleave", function(e) { $.vakata.context.hide(); });
+			}
+
+			h = $.vakata.context.cnt.height();
+			w = $.vakata.context.cnt.width();
+			if(x + w > $(document).width()) { 
+				x = $(document).width() - (w + 5); 
+				$.vakata.context.cnt.find("li > ul").addClass("right"); 
+			}
+			if(y + h > $(document).height()) { 
+				y = y - (h + t[0].offsetHeight); 
+				$.vakata.context.cnt.find("li > ul").addClass("bottom"); 
+			}
+
+			$.vakata.context.cnt
+				.css({ "left" : x, "top" : y })
+				.find("li:has(ul)")
+					.bind("mouseenter", function (e) { 
+						var w = $(document).width(),
+							h = $(document).height(),
+							ul = $(this).children("ul").show(); 
+						if(w !== $(document).width()) { ul.toggleClass("right"); }
+						if(h !== $(document).height()) { ul.toggleClass("bottom"); }
+					})
+					.bind("mouseleave", function (e) { 
+						$(this).children("ul").hide(); 
+					})
+					.end()
+				.css({ "visibility" : "visible" })
+				.show();
+			$(document).triggerHandler("context_show.vakata");
+		},
+		hide	: function () {
+			$.vakata.context.vis = false;
+			$.vakata.context.cnt.attr("class","").css({ "visibility" : "hidden" });
+			$(document).triggerHandler("context_hide.vakata");
+		},
+		parse	: function (s, is_callback) {
+			if(!s) { return false; }
+			var str = "",
+				tmp = false,
+				was_sep = true;
+			if(!is_callback) { $.vakata.context.func = {}; }
+			str += "<ul>";
+			$.each(s, function (i, val) {
+				if(!val) { return true; }
+				$.vakata.context.func[i] = val.action;
+				if(!was_sep && val.separator_before) {
+					str += "<li class='vakata-separator vakata-separator-before'></li>";
+				}
+				was_sep = false;
+				str += "<li class='" + (val._class || "") + (val._disabled ? " jstree-contextmenu-disabled " : "") + "'><ins ";
+				if(val.icon && val.icon.indexOf("/") === -1) { str += " class='" + val.icon + "' "; }
+				if(val.icon && val.icon.indexOf("/") !== -1) { str += " style='background:url(" + val.icon + ") center center no-repeat;' "; }
+				str += "> </ins><a href='#' rel='" + i + "'>";
+				if(val.submenu) {
+					str += "<span style='float:" + ($.vakata.context.rtl ? "left" : "right") + ";'>»</span>";
+				}
+				str += val.label + "</a>";
+				if(val.submenu) {
+					tmp = $.vakata.context.parse(val.submenu, true);
+					if(tmp) { str += tmp; }
+				}
+				str += "</li>";
+				if(val.separator_after) {
+					str += "<li class='vakata-separator vakata-separator-after'></li>";
+					was_sep = true;
+				}
+			});
+			str = str.replace(/<li class\='vakata-separator vakata-separator-after'\><\/li\>$/,"");
+			str += "</ul>";
+			$(document).triggerHandler("context_parse.vakata");
+			return str.length > 10 ? str : false;
+		},
+		exec	: function (i) {
+			if($.isFunction($.vakata.context.func[i])) {
+				// if is string - eval and call it!
+				$.vakata.context.func[i].call($.vakata.context.data, $.vakata.context.par);
+				return true;
+			}
+			else { return false; }
+		}
+	};
+	$(function () {
+		var css_string = '' + 
+			'#vakata-contextmenu { display:block; visibility:hidden; left:0; top:-200px; position:absolute; margin:0; padding:0; min-width:180px; background:#ebebeb; border:1px solid silver; z-index:10000; *width:180px; } ' + 
+			'#vakata-contextmenu ul { min-width:180px; *width:180px; } ' + 
+			'#vakata-contextmenu ul, #vakata-contextmenu li { margin:0; padding:0; list-style-type:none; display:block; } ' + 
+			'#vakata-contextmenu li { line-height:20px; min-height:20px; position:relative; padding:0px; } ' + 
+			'#vakata-contextmenu li a { padding:1px 6px; line-height:17px; display:block; text-decoration:none; margin:1px 1px 0 1px; } ' + 
+			'#vakata-contextmenu li ins { float:left; width:16px; height:16px; text-decoration:none; margin-right:2px; } ' + 
+			'#vakata-contextmenu li a:hover, #vakata-contextmenu li.vakata-hover > a { background:gray; color:white; } ' + 
+			'#vakata-contextmenu li ul { display:none; position:absolute; top:-2px; left:100%; background:#ebebeb; border:1px solid gray; } ' + 
+			'#vakata-contextmenu .right { right:100%; left:auto; } ' + 
+			'#vakata-contextmenu .bottom { bottom:-1px; top:auto; } ' + 
+			'#vakata-contextmenu li.vakata-separator { min-height:0; height:1px; line-height:1px; font-size:1px; overflow:hidden; margin:0 2px; background:silver; /* border-top:1px solid #fefefe; */ padding:0; } ';
+		$.vakata.css.add_sheet({ str : css_string, title : "vakata" });
+		$.vakata.context.cnt
+			.delegate("a","click", function (e) { e.preventDefault(); })
+			.delegate("a","mouseup", function (e) {
+				if(!$(this).parent().hasClass("jstree-contextmenu-disabled") && $.vakata.context.exec($(this).attr("rel"))) {
+					$.vakata.context.hide();
+				}
+				else { $(this).blur(); }
+			})
+			.delegate("a","mouseover", function () {
+				$.vakata.context.cnt.find(".vakata-hover").removeClass("vakata-hover");
+			})
+			.appendTo("body");
+		$(document).bind("mousedown", function (e) { if($.vakata.context.vis && !$.contains($.vakata.context.cnt[0], e.target)) { $.vakata.context.hide(); } });
+		if(typeof $.hotkeys !== "undefined") {
+			$(document)
+				.bind("keydown", "up", function (e) { 
+					if($.vakata.context.vis) { 
+						var o = $.vakata.context.cnt.find("ul:visible").last().children(".vakata-hover").removeClass("vakata-hover").prevAll("li:not(.vakata-separator)").first();
+						if(!o.length) { o = $.vakata.context.cnt.find("ul:visible").last().children("li:not(.vakata-separator)").last(); }
+						o.addClass("vakata-hover");
+						e.stopImmediatePropagation(); 
+						e.preventDefault();
+					} 
+				})
+				.bind("keydown", "down", function (e) { 
+					if($.vakata.context.vis) { 
+						var o = $.vakata.context.cnt.find("ul:visible").last().children(".vakata-hover").removeClass("vakata-hover").nextAll("li:not(.vakata-separator)").first();
+						if(!o.length) { o = $.vakata.context.cnt.find("ul:visible").last().children("li:not(.vakata-separator)").first(); }
+						o.addClass("vakata-hover");
+						e.stopImmediatePropagation(); 
+						e.preventDefault();
+					} 
+				})
+				.bind("keydown", "right", function (e) { 
+					if($.vakata.context.vis) { 
+						$.vakata.context.cnt.find(".vakata-hover").children("ul").show().children("li:not(.vakata-separator)").removeClass("vakata-hover").first().addClass("vakata-hover");
+						e.stopImmediatePropagation(); 
+						e.preventDefault();
+					} 
+				})
+				.bind("keydown", "left", function (e) { 
+					if($.vakata.context.vis) { 
+						$.vakata.context.cnt.find(".vakata-hover").children("ul").hide().children(".vakata-separator").removeClass("vakata-hover");
+						e.stopImmediatePropagation(); 
+						e.preventDefault();
+					} 
+				})
+				.bind("keydown", "esc", function (e) { 
+					$.vakata.context.hide(); 
+					e.preventDefault();
+				})
+				.bind("keydown", "space", function (e) { 
+					$.vakata.context.cnt.find(".vakata-hover").last().children("a").click();
+					e.preventDefault();
+				});
+		}
+	});
+
+	$.jstree.plugin("contextmenu", {
+		__init : function () {
+			this.get_container()
+				.delegate("a", "contextmenu.jstree", $.proxy(function (e) {
+						e.preventDefault();
+						if(!$(e.currentTarget).hasClass("jstree-loading")) {
+							this.show_contextmenu(e.currentTarget, e.pageX, e.pageY);
+						}
+					}, this))
+				.delegate("a", "click.jstree", $.proxy(function (e) {
+						if(this.data.contextmenu) {
+							$.vakata.context.hide();
+						}
+					}, this))
+				.bind("destroy.jstree", $.proxy(function () {
+						// TODO: move this to descruct method
+						if(this.data.contextmenu) {
+							$.vakata.context.hide();
+						}
+					}, this));
+			$(document).bind("context_hide.vakata", $.proxy(function () { this.data.contextmenu = false; }, this));
+		},
+		defaults : { 
+			select_node : false, // requires UI plugin
+			show_at_node : true,
+			items : { // Could be a function that should return an object like this one
+				"create" : {
+					"separator_before"	: false,
+					"separator_after"	: true,
+					"label"				: "Create",
+					"action"			: function (obj) { this.create(obj); }
+				},
+				"rename" : {
+					"separator_before"	: false,
+					"separator_after"	: false,
+					"label"				: "Rename",
+					"action"			: function (obj) { this.rename(obj); }
+				},
+				"remove" : {
+					"separator_before"	: false,
+					"icon"				: false,
+					"separator_after"	: false,
+					"label"				: "Delete",
+					"action"			: function (obj) { if(this.is_selected(obj)) { this.remove(); } else { this.remove(obj); } }
+				},
+				"ccp" : {
+					"separator_before"	: true,
+					"icon"				: false,
+					"separator_after"	: false,
+					"label"				: "Edit",
+					"action"			: false,
+					"submenu" : { 
+						"cut" : {
+							"separator_before"	: false,
+							"separator_after"	: false,
+							"label"				: "Cut",
+							"action"			: function (obj) { this.cut(obj); }
+						},
+						"copy" : {
+							"separator_before"	: false,
+							"icon"				: false,
+							"separator_after"	: false,
+							"label"				: "Copy",
+							"action"			: function (obj) { this.copy(obj); }
+						},
+						"paste" : {
+							"separator_before"	: false,
+							"icon"				: false,
+							"separator_after"	: false,
+							"label"				: "Paste",
+							"action"			: function (obj) { this.paste(obj); }
+						}
+					}
+				}
+			}
+		},
+		_fn : {
+			show_contextmenu : function (obj, x, y) {
+				obj = this._get_node(obj);
+				var s = this.get_settings().contextmenu,
+					a = obj.children("a:visible:eq(0)"),
+					o = false,
+					i = false;
+				if(s.select_node && this.data.ui && !this.is_selected(obj)) {
+					this.deselect_all();
+					this.select_node(obj, true);
+				}
+				if(s.show_at_node || typeof x === "undefined" || typeof y === "undefined") {
+					o = a.offset();
+					x = o.left;
+					y = o.top + this.data.core.li_height;
+				}
+				i = obj.data("jstree") && obj.data("jstree").contextmenu ? obj.data("jstree").contextmenu : s.items;
+				if($.isFunction(i)) { i = i.call(this, obj); }
+				this.data.contextmenu = true;
+				$.vakata.context.show(i, a, x, y, this, obj, this._get_settings().core.rtl);
+				if(this.data.themes) { $.vakata.context.cnt.attr("class", "jstree-" + this.data.themes.theme + "-context"); }
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree types plugin
+ * Adds support types of nodes
+ * You can set an attribute on each li node, that represents its type.
+ * According to the type setting the node may get custom icon/validation rules
+ */
+(function ($) {
+	$.jstree.plugin("types", {
+		__init : function () {
+			var s = this._get_settings().types;
+			this.data.types.attach_to = [];
+			this.get_container()
+				.bind("init.jstree", $.proxy(function () { 
+						var types = s.types, 
+							attr  = s.type_attr, 
+							icons_css = "", 
+							_this = this;
+
+						$.each(types, function (i, tp) {
+							$.each(tp, function (k, v) { 
+								if(!/^(max_depth|max_children|icon|valid_children)$/.test(k)) { _this.data.types.attach_to.push(k); }
+							});
+							if(!tp.icon) { return true; }
+							if( tp.icon.image || tp.icon.position) {
+								if(i == "default")	{ icons_css += '.jstree-' + _this.get_index() + ' a > .jstree-icon { '; }
+								else				{ icons_css += '.jstree-' + _this.get_index() + ' li[' + attr + '="' + i + '"] > a > .jstree-icon { '; }
+								if(tp.icon.image)	{ icons_css += ' background-image:url(' + tp.icon.image + '); '; }
+								if(tp.icon.position){ icons_css += ' background-position:' + tp.icon.position + '; '; }
+								else				{ icons_css += ' background-position:0 0; '; }
+								icons_css += '} ';
+							}
+						});
+						if(icons_css !== "") { $.vakata.css.add_sheet({ 'str' : icons_css, title : "jstree-types" }); }
+					}, this))
+				.bind("before.jstree", $.proxy(function (e, data) { 
+						var s, t, 
+							o = this._get_settings().types.use_data ? this._get_node(data.args[0]) : false, 
+							d = o && o !== -1 && o.length ? o.data("jstree") : false;
+						if(d && d.types && d.types[data.func] === false) { e.stopImmediatePropagation(); return false; }
+						if($.inArray(data.func, this.data.types.attach_to) !== -1) {
+							if(!data.args[0] || (!data.args[0].tagName && !data.args[0].jquery)) { return; }
+							s = this._get_settings().types.types;
+							t = this._get_type(data.args[0]);
+							if(
+								( 
+									(s[t] && typeof s[t][data.func] !== "undefined") || 
+									(s["default"] && typeof s["default"][data.func] !== "undefined") 
+								) && this._check(data.func, data.args[0]) === false
+							) {
+								e.stopImmediatePropagation();
+								return false;
+							}
+						}
+					}, this));
+			if(is_ie6) {
+				this.get_container()
+					.bind("load_node.jstree set_type.jstree", $.proxy(function (e, data) {
+							var r = data && data.rslt && data.rslt.obj && data.rslt.obj !== -1 ? this._get_node(data.rslt.obj).parent() : this.get_container_ul(),
+								c = false,
+								s = this._get_settings().types;
+							$.each(s.types, function (i, tp) {
+								if(tp.icon && (tp.icon.image || tp.icon.position)) {
+									c = i === "default" ? r.find("li > a > .jstree-icon") : r.find("li[" + s.type_attr + "='" + i + "'] > a > .jstree-icon");
+									if(tp.icon.image) { c.css("backgroundImage","url(" + tp.icon.image + ")"); }
+									c.css("backgroundPosition", tp.icon.position || "0 0");
+								}
+							});
+						}, this));
+			}
+		},
+		defaults : {
+			// defines maximum number of root nodes (-1 means unlimited, -2 means disable max_children checking)
+			max_children		: -1,
+			// defines the maximum depth of the tree (-1 means unlimited, -2 means disable max_depth checking)
+			max_depth			: -1,
+			// defines valid node types for the root nodes
+			valid_children		: "all",
+
+			// whether to use $.data
+			use_data : false, 
+			// where is the type stores (the rel attribute of the LI element)
+			type_attr : "rel",
+			// a list of types
+			types : {
+				// the default type
+				"default" : {
+					"max_children"	: -1,
+					"max_depth"		: -1,
+					"valid_children": "all"
+
+					// Bound functions - you can bind any other function here (using boolean or function)
+					//"select_node"	: true
+				}
+			}
+		},
+		_fn : {
+			_types_notify : function (n, data) {
+				if(data.type && this._get_settings().types.use_data) {
+					this.set_type(data.type, n);
+				}
+			},
+			_get_type : function (obj) {
+				obj = this._get_node(obj);
+				return (!obj || !obj.length) ? false : obj.attr(this._get_settings().types.type_attr) || "default";
+			},
+			set_type : function (str, obj) {
+				obj = this._get_node(obj);
+				var ret = (!obj.length || !str) ? false : obj.attr(this._get_settings().types.type_attr, str);
+				if(ret) { this.__callback({ obj : obj, type : str}); }
+				return ret;
+			},
+			_check : function (rule, obj, opts) {
+				obj = this._get_node(obj);
+				var v = false, t = this._get_type(obj), d = 0, _this = this, s = this._get_settings().types, data = false;
+				if(obj === -1) { 
+					if(!!s[rule]) { v = s[rule]; }
+					else { return; }
+				}
+				else {
+					if(t === false) { return; }
+					data = s.use_data ? obj.data("jstree") : false;
+					if(data && data.types && typeof data.types[rule] !== "undefined") { v = data.types[rule]; }
+					else if(!!s.types[t] && typeof s.types[t][rule] !== "undefined") { v = s.types[t][rule]; }
+					else if(!!s.types["default"] && typeof s.types["default"][rule] !== "undefined") { v = s.types["default"][rule]; }
+				}
+				if($.isFunction(v)) { v = v.call(this, obj); }
+				if(rule === "max_depth" && obj !== -1 && opts !== false && s.max_depth !== -2 && v !== 0) {
+					// also include the node itself - otherwise if root node it is not checked
+					obj.children("a:eq(0)").parentsUntil(".jstree","li").each(function (i) {
+						// check if current depth already exceeds global tree depth
+						if(s.max_depth !== -1 && s.max_depth - (i + 1) <= 0) { v = 0; return false; }
+						d = (i === 0) ? v : _this._check(rule, this, false);
+						// check if current node max depth is already matched or exceeded
+						if(d !== -1 && d - (i + 1) <= 0) { v = 0; return false; }
+						// otherwise - set the max depth to the current value minus current depth
+						if(d >= 0 && (d - (i + 1) < v || v < 0) ) { v = d - (i + 1); }
+						// if the global tree depth exists and it minus the nodes calculated so far is less than `v` or `v` is unlimited
+						if(s.max_depth >= 0 && (s.max_depth - (i + 1) < v || v < 0) ) { v = s.max_depth - (i + 1); }
+					});
+				}
+				return v;
+			},
+			check_move : function () {
+				if(!this.__call_old()) { return false; }
+				var m  = this._get_move(),
+					s  = m.rt._get_settings().types,
+					mc = m.rt._check("max_children", m.cr),
+					md = m.rt._check("max_depth", m.cr),
+					vc = m.rt._check("valid_children", m.cr),
+					ch = 0, d = 1, t;
+
+				if(vc === "none") { return false; } 
+				if($.isArray(vc) && m.ot && m.ot._get_type) {
+					m.o.each(function () {
+						if($.inArray(m.ot._get_type(this), vc) === -1) { d = false; return false; }
+					});
+					if(d === false) { return false; }
+				}
+				if(s.max_children !== -2 && mc !== -1) {
+					ch = m.cr === -1 ? this.get_container().find("> ul > li").not(m.o).length : m.cr.find("> ul > li").not(m.o).length;
+					if(ch + m.o.length > mc) { return false; }
+				}
+				if(s.max_depth !== -2 && md !== -1) {
+					d = 0;
+					if(md === 0) { return false; }
+					if(typeof m.o.d === "undefined") {
+						// TODO: deal with progressive rendering and async when checking max_depth (how to know the depth of the moved node)
+						t = m.o;
+						while(t.length > 0) {
+							t = t.find("> ul > li");
+							d ++;
+						}
+						m.o.d = d;
+					}
+					if(md - m.o.d < 0) { return false; }
+				}
+				return true;
+			},
+			create_node : function (obj, position, js, callback, is_loaded, skip_check) {
+				if(!skip_check && (is_loaded || this._is_loaded(obj))) {
+					var p  = (typeof position == "string" && position.match(/^before|after$/i) && obj !== -1) ? this._get_parent(obj) : this._get_node(obj),
+						s  = this._get_settings().types,
+						mc = this._check("max_children", p),
+						md = this._check("max_depth", p),
+						vc = this._check("valid_children", p),
+						ch;
+					if(typeof js === "string") { js = { data : js }; }
+					if(!js) { js = {}; }
+					if(vc === "none") { return false; } 
+					if($.isArray(vc)) {
+						if(!js.attr || !js.attr[s.type_attr]) { 
+							if(!js.attr) { js.attr = {}; }
+							js.attr[s.type_attr] = vc[0]; 
+						}
+						else {
+							if($.inArray(js.attr[s.type_attr], vc) === -1) { return false; }
+						}
+					}
+					if(s.max_children !== -2 && mc !== -1) {
+						ch = p === -1 ? this.get_container().find("> ul > li").length : p.find("> ul > li").length;
+						if(ch + 1 > mc) { return false; }
+					}
+					if(s.max_depth !== -2 && md !== -1 && (md - 1) < 0) { return false; }
+				}
+				return this.__call_old(true, obj, position, js, callback, is_loaded, skip_check);
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree HTML plugin
+ * The HTML data store. Datastores are build by replacing the `load_node` and `_is_loaded` functions.
+ */
+(function ($) {
+	$.jstree.plugin("html_data", {
+		__init : function () { 
+			// this used to use html() and clean the whitespace, but this way any attached data was lost
+			this.data.html_data.original_container_html = this.get_container().find(" > ul > li").clone(true);
+			// remove white space from LI node - otherwise nodes appear a bit to the right
+			this.data.html_data.original_container_html.find("li").andSelf().contents().filter(function() { return this.nodeType == 3; }).remove();
+		},
+		defaults : { 
+			data : false,
+			ajax : false,
+			correct_state : true
+		},
+		_fn : {
+			load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_html(obj, function () { _this.__callback({ "obj" : _this._get_node(obj) }); s_call.call(this); }, e_call); },
+			_is_loaded : function (obj) { 
+				obj = this._get_node(obj); 
+				return obj == -1 || !obj || (!this._get_settings().html_data.ajax && !$.isFunction(this._get_settings().html_data.data)) || obj.is(".jstree-open, .jstree-leaf") || obj.children("ul").children("li").size() > 0;
+			},
+			load_node_html : function (obj, s_call, e_call) {
+				var d,
+					s = this.get_settings().html_data,
+					error_func = function () {},
+					success_func = function () {};
+				obj = this._get_node(obj);
+				if(obj && obj !== -1) {
+					if(obj.data("jstree-is-loading")) { return; }
+					else { obj.data("jstree-is-loading",true); }
+				}
+				switch(!0) {
+					case ($.isFunction(s.data)):
+						s.data.call(this, obj, $.proxy(function (d) {
+							if(d && d !== "" && d.toString && d.toString().replace(/^[\s\n]+$/,"") !== "") {
+								d = $(d);
+								if(!d.is("ul")) { d = $("<ul />").append(d); }
+								if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); }
+								else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree-is-loading"); }
+								this.clean_node(obj);
+								if(s_call) { s_call.call(this); }
+							}
+							else {
+								if(obj && obj !== -1) {
+									obj.children("a.jstree-loading").removeClass("jstree-loading");
+									obj.removeData("jstree-is-loading");
+									if(s.correct_state) { 
+										this.correct_state(obj);
+										if(s_call) { s_call.call(this); } 
+									}
+								}
+								else {
+									if(s.correct_state) { 
+										this.get_container().children("ul").empty();
+										if(s_call) { s_call.call(this); } 
+									}
+								}
+							}
+						}, this));
+						break;
+					case (!s.data && !s.ajax):
+						if(!obj || obj == -1) {
+							this.get_container()
+								.children("ul").empty()
+								.append(this.data.html_data.original_container_html)
+								.find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end()
+								.filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon");
+							this.clean_node();
+						}
+						if(s_call) { s_call.call(this); }
+						break;
+					case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)):
+						if(!obj || obj == -1) {
+							d = $(s.data);
+							if(!d.is("ul")) { d = $("<ul />").append(d); }
+							this.get_container()
+								.children("ul").empty().append(d.children())
+								.find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end()
+								.filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon");
+							this.clean_node();
+						}
+						if(s_call) { s_call.call(this); }
+						break;
+					case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1):
+						obj = this._get_node(obj);
+						error_func = function (x, t, e) {
+							var ef = this.get_settings().html_data.ajax.error; 
+							if(ef) { ef.call(this, x, t, e); }
+							if(obj != -1 && obj.length) {
+								obj.children("a.jstree-loading").removeClass("jstree-loading");
+								obj.removeData("jstree-is-loading");
+								if(t === "success" && s.correct_state) { this.correct_state(obj); }
+							}
+							else {
+								if(t === "success" && s.correct_state) { this.get_container().children("ul").empty(); }
+							}
+							if(e_call) { e_call.call(this); }
+						};
+						success_func = function (d, t, x) {
+							var sf = this.get_settings().html_data.ajax.success; 
+							if(sf) { d = sf.call(this,d,t,x) || d; }
+							if(d === "" || (d && d.toString && d.toString().replace(/^[\s\n]+$/,"") === "")) {
+								return error_func.call(this, x, t, "");
+							}
+							if(d) {
+								d = $(d);
+								if(!d.is("ul")) { d = $("<ul />").append(d); }
+								if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); }
+								else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree-is-loading"); }
+								this.clean_node(obj);
+								if(s_call) { s_call.call(this); }
+							}
+							else {
+								if(obj && obj !== -1) {
+									obj.children("a.jstree-loading").removeClass("jstree-loading");
+									obj.removeData("jstree-is-loading");
+									if(s.correct_state) { 
+										this.correct_state(obj);
+										if(s_call) { s_call.call(this); } 
+									}
+								}
+								else {
+									if(s.correct_state) { 
+										this.get_container().children("ul").empty();
+										if(s_call) { s_call.call(this); } 
+									}
+								}
+							}
+						};
+						s.ajax.context = this;
+						s.ajax.error = error_func;
+						s.ajax.success = success_func;
+						if(!s.ajax.dataType) { s.ajax.dataType = "html"; }
+						if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); }
+						if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); }
+						$.ajax(s.ajax);
+						break;
+				}
+			}
+		}
+	});
+	// include the HTML data plugin by default
+	$.jstree.defaults.plugins.push("html_data");
+})(jQuery);
+//*/
+
+/* 
+ * jsTree themeroller plugin
+ * Adds support for jQuery UI themes. Include this at the end of your plugins list, also make sure "themes" is not included.
+ */
+(function ($) {
+	$.jstree.plugin("themeroller", {
+		__init : function () {
+			var s = this._get_settings().themeroller;
+			this.get_container()
+				.addClass("ui-widget-content")
+				.addClass("jstree-themeroller")
+				.delegate("a","mouseenter.jstree", function (e) {
+					if(!$(e.currentTarget).hasClass("jstree-loading")) {
+						$(this).addClass(s.item_h);
+					}
+				})
+				.delegate("a","mouseleave.jstree", function () {
+					$(this).removeClass(s.item_h);
+				})
+				.bind("init.jstree", $.proxy(function (e, data) { 
+						data.inst.get_container().find("> ul > li > .jstree-loading > ins").addClass("ui-icon-refresh");
+						this._themeroller(data.inst.get_container().find("> ul > li"));
+					}, this))
+				.bind("open_node.jstree create_node.jstree", $.proxy(function (e, data) { 
+						this._themeroller(data.rslt.obj);
+					}, this))
+				.bind("loaded.jstree refresh.jstree", $.proxy(function (e) {
+						this._themeroller();
+					}, this))
+				.bind("close_node.jstree", $.proxy(function (e, data) {
+						this._themeroller(data.rslt.obj);
+					}, this))
+				.bind("delete_node.jstree", $.proxy(function (e, data) {
+						this._themeroller(data.rslt.parent);
+					}, this))
+				.bind("correct_state.jstree", $.proxy(function (e, data) {
+						data.rslt.obj
+							.children("ins.jstree-icon").removeClass(s.opened + " " + s.closed + " ui-icon").end()
+							.find("> a > ins.ui-icon")
+								.filter(function() { 
+									return this.className.toString()
+										.replace(s.item_clsd,"").replace(s.item_open,"").replace(s.item_leaf,"")
+										.indexOf("ui-icon-") === -1; 
+								}).removeClass(s.item_open + " " + s.item_clsd).addClass(s.item_leaf || "jstree-no-icon");
+					}, this))
+				.bind("select_node.jstree", $.proxy(function (e, data) {
+						data.rslt.obj.children("a").addClass(s.item_a);
+					}, this))
+				.bind("deselect_node.jstree deselect_all.jstree", $.proxy(function (e, data) {
+						this.get_container()
+							.find("a." + s.item_a).removeClass(s.item_a).end()
+							.find("a.jstree-clicked").addClass(s.item_a);
+					}, this))
+				.bind("dehover_node.jstree", $.proxy(function (e, data) {
+						data.rslt.obj.children("a").removeClass(s.item_h);
+					}, this))
+				.bind("hover_node.jstree", $.proxy(function (e, data) {
+						this.get_container()
+							.find("a." + s.item_h).not(data.rslt.obj).removeClass(s.item_h);
+						data.rslt.obj.children("a").addClass(s.item_h);
+					}, this))
+				.bind("move_node.jstree", $.proxy(function (e, data) {
+						this._themeroller(data.rslt.o);
+						this._themeroller(data.rslt.op);
+					}, this));
+		},
+		__destroy : function () {
+			var s = this._get_settings().themeroller,
+				c = [ "ui-icon" ];
+			$.each(s, function (i, v) {
+				v = v.split(" ");
+				if(v.length) { c = c.concat(v); }
+			});
+			this.get_container()
+				.removeClass("ui-widget-content")
+				.find("." + c.join(", .")).removeClass(c.join(" "));
+		},
+		_fn : {
+			_themeroller : function (obj) {
+				var s = this._get_settings().themeroller;
+				obj = !obj || obj == -1 ? this.get_container_ul() : this._get_node(obj).parent();
+				obj
+					.find("li.jstree-closed")
+						.children("ins.jstree-icon").removeClass(s.opened).addClass("ui-icon " + s.closed).end()
+						.children("a").addClass(s.item)
+							.children("ins.jstree-icon").addClass("ui-icon")
+								.filter(function() { 
+									return this.className.toString()
+										.replace(s.item_clsd,"").replace(s.item_open,"").replace(s.item_leaf,"")
+										.indexOf("ui-icon-") === -1; 
+								}).removeClass(s.item_leaf + " " + s.item_open).addClass(s.item_clsd || "jstree-no-icon")
+								.end()
+							.end()
+						.end()
+					.end()
+					.find("li.jstree-open")
+						.children("ins.jstree-icon").removeClass(s.closed).addClass("ui-icon " + s.opened).end()
+						.children("a").addClass(s.item)
+							.children("ins.jstree-icon").addClass("ui-icon")
+								.filter(function() { 
+									return this.className.toString()
+										.replace(s.item_clsd,"").replace(s.item_open,"").replace(s.item_leaf,"")
+										.indexOf("ui-icon-") === -1; 
+								}).removeClass(s.item_leaf + " " + s.item_clsd).addClass(s.item_open || "jstree-no-icon")
+								.end()
+							.end()
+						.end()
+					.end()
+					.find("li.jstree-leaf")
+						.children("ins.jstree-icon").removeClass(s.closed + " ui-icon " + s.opened).end()
+						.children("a").addClass(s.item)
+							.children("ins.jstree-icon").addClass("ui-icon")
+								.filter(function() { 
+									return this.className.toString()
+										.replace(s.item_clsd,"").replace(s.item_open,"").replace(s.item_leaf,"")
+										.indexOf("ui-icon-") === -1; 
+								}).removeClass(s.item_clsd + " " + s.item_open).addClass(s.item_leaf || "jstree-no-icon");
+			}
+		},
+		defaults : {
+			"opened"	: "ui-icon-triangle-1-se",
+			"closed"	: "ui-icon-triangle-1-e",
+			"item"		: "ui-state-default",
+			"item_h"	: "ui-state-hover",
+			"item_a"	: "ui-state-active",
+			"item_open"	: "ui-icon-folder-open",
+			"item_clsd"	: "ui-icon-folder-collapsed",
+			"item_leaf"	: "ui-icon-document"
+		}
+	});
+	$(function() {
+		var css_string = '' + 
+			'.jstree-themeroller .ui-icon { overflow:visible; } ' + 
+			'.jstree-themeroller a { padding:0 2px; } ' + 
+			'.jstree-themeroller .jstree-no-icon { display:none; }';
+		$.vakata.css.add_sheet({ str : css_string, title : "jstree" });
+	});
+})(jQuery);
+//*/
+
+/* 
+ * jsTree unique plugin
+ * Forces different names amongst siblings (still a bit experimental)
+ * NOTE: does not check language versions (it will not be possible to have nodes with the same title, even in different languages)
+ */
+(function ($) {
+	$.jstree.plugin("unique", {
+		__init : function () {
+			this.get_container()
+				.bind("before.jstree", $.proxy(function (e, data) { 
+						var nms = [], res = true, p, t;
+						if(data.func == "move_node") {
+							// obj, ref, position, is_copy, is_prepared, skip_check
+							if(data.args[4] === true) {
+								if(data.args[0].o && data.args[0].o.length) {
+									data.args[0].o.children("a").each(function () { nms.push($(this).text().replace(/^\s+/g,"")); });
+									res = this._check_unique(nms, data.args[0].np.find("> ul > li").not(data.args[0].o), "move_node");
+								}
+							}
+						}
+						if(data.func == "create_node") {
+							// obj, position, js, callback, is_loaded
+							if(data.args[4] || this._is_loaded(data.args[0])) {
+								p = this._get_node(data.args[0]);
+								if(data.args[1] && (data.args[1] === "before" || data.args[1] === "after")) {
+									p = this._get_parent(data.args[0]);
+									if(!p || p === -1) { p = this.get_container(); }
+								}
+								if(typeof data.args[2] === "string") { nms.push(data.args[2]); }
+								else if(!data.args[2] || !data.args[2].data) { nms.push(this._get_string("new_node")); }
+								else { nms.push(data.args[2].data); }
+								res = this._check_unique(nms, p.find("> ul > li"), "create_node");
+							}
+						}
+						if(data.func == "rename_node") {
+							// obj, val
+							nms.push(data.args[1]);
+							t = this._get_node(data.args[0]);
+							p = this._get_parent(t);
+							if(!p || p === -1) { p = this.get_container(); }
+							res = this._check_unique(nms, p.find("> ul > li").not(t), "rename_node");
+						}
+						if(!res) {
+							e.stopPropagation();
+							return false;
+						}
+					}, this));
+		},
+		defaults : { 
+			error_callback : $.noop
+		},
+		_fn : { 
+			_check_unique : function (nms, p, func) {
+				var cnms = [];
+				p.children("a").each(function () { cnms.push($(this).text().replace(/^\s+/g,"")); });
+				if(!cnms.length || !nms.length) { return true; }
+				cnms = cnms.sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(",");
+				if((cnms.length + nms.length) != cnms.concat(nms).sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(",").length) {
+					this._get_settings().unique.error_callback.call(null, nms, p, func);
+					return false;
+				}
+				return true;
+			},
+			check_move : function () {
+				if(!this.__call_old()) { return false; }
+				var p = this._get_move(), nms = [];
+				if(p.o && p.o.length) {
+					p.o.children("a").each(function () { nms.push($(this).text().replace(/^\s+/g,"")); });
+					return this._check_unique(nms, p.np.find("> ul > li").not(p.o), "check_move");
+				}
+				return true;
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+/*
+ * jsTree wholerow plugin
+ * Makes select and hover work on the entire width of the node
+ * MAY BE HEAVY IN LARGE DOM
+ */
+(function ($) {
+	$.jstree.plugin("wholerow", {
+		__init : function () {
+			if(!this.data.ui) { throw "jsTree wholerow: jsTree UI plugin not included."; }
+			this.data.wholerow.html = false;
+			this.data.wholerow.to = false;
+			this.get_container()
+				.bind("init.jstree", $.proxy(function (e, data) { 
+						this._get_settings().core.animation = 0;
+					}, this))
+				.bind("open_node.jstree create_node.jstree clean_node.jstree loaded.jstree", $.proxy(function (e, data) { 
+						this._prepare_wholerow_span( data && data.rslt && data.rslt.obj ? data.rslt.obj : -1 );
+					}, this))
+				.bind("search.jstree clear_search.jstree reopen.jstree after_open.jstree after_close.jstree create_node.jstree delete_node.jstree clean_node.jstree", $.proxy(function (e, data) { 
+						if(this.data.to) { clearTimeout(this.data.to); }
+						this.data.to = setTimeout( (function (t, o) { return function() { t._prepare_wholerow_ul(o); }; })(this,  data && data.rslt && data.rslt.obj ? data.rslt.obj : -1), 0);
+					}, this))
+				.bind("deselect_all.jstree", $.proxy(function (e, data) { 
+						this.get_container().find(" > .jstree-wholerow .jstree-clicked").removeClass("jstree-clicked " + (this.data.themeroller ? this._get_settings().themeroller.item_a : "" ));
+					}, this))
+				.bind("select_node.jstree deselect_node.jstree ", $.proxy(function (e, data) { 
+						data.rslt.obj.each(function () { 
+							var ref = data.inst.get_container().find(" > .jstree-wholerow li:visible:eq(" + ( parseInt((($(this).offset().top - data.inst.get_container().offset().top + data.inst.get_container()[0].scrollTop) / data.inst.data.core.li_height),10)) + ")");
+							// ref.children("a")[e.type === "select_node" ? "addClass" : "removeClass"]("jstree-clicked");
+							ref.children("a").attr("class",data.rslt.obj.children("a").attr("class"));
+						});
+					}, this))
+				.bind("hover_node.jstree dehover_node.jstree", $.proxy(function (e, data) { 
+						this.get_container().find(" > .jstree-wholerow .jstree-hovered").removeClass("jstree-hovered " + (this.data.themeroller ? this._get_settings().themeroller.item_h : "" ));
+						if(e.type === "hover_node") {
+							var ref = this.get_container().find(" > .jstree-wholerow li:visible:eq(" + ( parseInt(((data.rslt.obj.offset().top - this.get_container().offset().top + this.get_container()[0].scrollTop) / this.data.core.li_height),10)) + ")");
+							// ref.children("a").addClass("jstree-hovered");
+							ref.children("a").attr("class",data.rslt.obj.children(".jstree-hovered").attr("class"));
+						}
+					}, this))
+				.delegate(".jstree-wholerow-span, ins.jstree-icon, li", "click.jstree", function (e) {
+						var n = $(e.currentTarget);
+						if(e.target.tagName === "A" || (e.target.tagName === "INS" && n.closest("li").is(".jstree-open, .jstree-closed"))) { return; }
+						n.closest("li").children("a:visible:eq(0)").click();
+						e.stopImmediatePropagation();
+					})
+				.delegate("li", "mouseover.jstree", $.proxy(function (e) {
+						e.stopImmediatePropagation();
+						if($(e.currentTarget).children(".jstree-hovered, .jstree-clicked").length) { return false; }
+						this.hover_node(e.currentTarget);
+						return false;
+					}, this))
+				.delegate("li", "mouseleave.jstree", $.proxy(function (e) {
+						if($(e.currentTarget).children("a").hasClass("jstree-hovered").length) { return; }
+						this.dehover_node(e.currentTarget);
+					}, this));
+			if(is_ie7 || is_ie6) {
+				$.vakata.css.add_sheet({ str : ".jstree-" + this.get_index() + " { position:relative; } ", title : "jstree" });
+			}
+		},
+		defaults : {
+		},
+		__destroy : function () {
+			this.get_container().children(".jstree-wholerow").remove();
+			this.get_container().find(".jstree-wholerow-span").remove();
+		},
+		_fn : {
+			_prepare_wholerow_span : function (obj) {
+				obj = !obj || obj == -1 ? this.get_container().find("> ul > li") : this._get_node(obj);
+				if(obj === false) { return; } // added for removing root nodes
+				obj.each(function () {
+					$(this).find("li").andSelf().each(function () {
+						var $t = $(this);
+						if($t.children(".jstree-wholerow-span").length) { return true; }
+						$t.prepend("<span class='jstree-wholerow-span' style='width:" + ($t.parentsUntil(".jstree","li").length * 18) + "px;'> </span>");
+					});
+				});
+			},
+			_prepare_wholerow_ul : function () {
+				var o = this.get_container().children("ul").eq(0), h = o.html();
+				o.addClass("jstree-wholerow-real");
+				if(this.data.wholerow.last_html !== h) {
+					this.data.wholerow.last_html = h;
+					this.get_container().children(".jstree-wholerow").remove();
+					this.get_container().append(
+						o.clone().removeClass("jstree-wholerow-real")
+							.wrapAll("<div class='jstree-wholerow' />").parent()
+							.width(o.parent()[0].scrollWidth)
+							.css("top", (o.height() + ( is_ie7 ? 5 : 0)) * -1 )
+							.find("li[id]").each(function () { this.removeAttribute("id"); }).end()
+					);
+				}
+			}
+		}
+	});
+	$(function() {
+		var css_string = '' + 
+			'.jstree .jstree-wholerow-real { position:relative; z-index:1; } ' + 
+			'.jstree .jstree-wholerow-real li { cursor:pointer; } ' + 
+			'.jstree .jstree-wholerow-real a { border-left-color:transparent !important; border-right-color:transparent !important; } ' + 
+			'.jstree .jstree-wholerow { position:relative; z-index:0; height:0; } ' + 
+			'.jstree .jstree-wholerow ul, .jstree .jstree-wholerow li { width:100%; } ' + 
+			'.jstree .jstree-wholerow, .jstree .jstree-wholerow ul, .jstree .jstree-wholerow li, .jstree .jstree-wholerow a { margin:0 !important; padding:0 !important; } ' + 
+			'.jstree .jstree-wholerow, .jstree .jstree-wholerow ul, .jstree .jstree-wholerow li { background:transparent !important; }' + 
+			'.jstree .jstree-wholerow ins, .jstree .jstree-wholerow span, .jstree .jstree-wholerow input { display:none !important; }' + 
+			'.jstree .jstree-wholerow a, .jstree .jstree-wholerow a:hover { text-indent:-9999px; !important; width:100%; padding:0 !important; border-right-width:0px !important; border-left-width:0px !important; } ' + 
+			'.jstree .jstree-wholerow-span { position:absolute; left:0; margin:0px; padding:0; height:18px; border-width:0; padding:0; z-index:0; }';
+		if(is_ff2) {
+			css_string += '' + 
+				'.jstree .jstree-wholerow a { display:block; height:18px; margin:0; padding:0; border:0; } ' + 
+				'.jstree .jstree-wholerow-real a { border-color:transparent !important; } ';
+		}
+		if(is_ie7 || is_ie6) {
+			css_string += '' + 
+				'.jstree .jstree-wholerow, .jstree .jstree-wholerow li, .jstree .jstree-wholerow ul, .jstree .jstree-wholerow a { margin:0; padding:0; line-height:18px; } ' + 
+				'.jstree .jstree-wholerow a { display:block; height:18px; line-height:18px; overflow:hidden; } ';
+		}
+		$.vakata.css.add_sheet({ str : css_string, title : "jstree" });
+	});
+})(jQuery);
+//*/
+
+/*
+* jsTree model plugin
+* This plugin gets jstree to use a class model to retrieve data, creating great dynamism
+*/
+(function ($) {
+	var nodeInterface = ["getChildren","getChildrenCount","getAttr","getName","getProps"],
+		validateInterface = function(obj, inter) {
+			var valid = true;
+			obj = obj || {};
+			inter = [].concat(inter);
+			$.each(inter, function (i, v) {
+				if(!$.isFunction(obj[v])) { valid = false; return false; }
+			});
+			return valid;
+		};
+	$.jstree.plugin("model", {
+		__init : function () {
+			if(!this.data.json_data) { throw "jsTree model: jsTree json_data plugin not included."; }
+			this._get_settings().json_data.data = function (n, b) {
+				var obj = (n == -1) ? this._get_settings().model.object : n.data("jstree_model");
+				if(!validateInterface(obj, nodeInterface)) { return b.call(null, false); }
+				if(this._get_settings().model.async) {
+					obj.getChildren($.proxy(function (data) {
+						this.model_done(data, b);
+					}, this));
+				}
+				else {
+					this.model_done(obj.getChildren(), b);
+				}
+			};
+		},
+		defaults : {
+			object : false,
+			id_prefix : false,
+			async : false
+		},
+		_fn : {
+			model_done : function (data, callback) {
+				var ret = [], 
+					s = this._get_settings(),
+					_this = this;
+
+				if(!$.isArray(data)) { data = [data]; }
+				$.each(data, function (i, nd) {
+					var r = nd.getProps() || {};
+					r.attr = nd.getAttr() || {};
+					if(nd.getChildrenCount()) { r.state = "closed"; }
+					r.data = nd.getName();
+					if(!$.isArray(r.data)) { r.data = [r.data]; }
+					if(_this.data.types && $.isFunction(nd.getType)) {
+						r.attr[s.types.type_attr] = nd.getType();
+					}
+					if(r.attr.id && s.model.id_prefix) { r.attr.id = s.model.id_prefix + r.attr.id; }
+					if(!r.metadata) { r.metadata = { }; }
+					r.metadata.jstree_model = nd;
+					ret.push(r);
+				});
+				callback.call(null, ret);
+			}
+		}
+	});
+})(jQuery);
+//*/
+
+})();
\ No newline at end of file
diff --git a/share/lua/http/js/mosaic.js b/share/lua/http/js/mosaic.js
deleted file mode 100644
index 6309072..0000000
--- a/share/lua/http/js/mosaic.js
+++ /dev/null
@@ -1,333 +0,0 @@
-/*****************************************************************************
- * mosaic.js: VLC media player web interface - Mosaic specific functions
- *****************************************************************************
- * Copyright (C) 2005-2006 the VideoLAN team
- * $Id$
- *
- * Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
- *****************************************************************************/
-
-/**********************************************************************
- * 
- *********************************************************************/
-
-var mosaic_alpha    = 255;
-var mosaic_height   = 0;
-var mosaic_width    = 0;
-var mosaic_align    = 5;
-var mosaic_xoffset  = 0;
-var mosaic_yoffset  = 0;
-var mosaic_vborder  = 0;
-var mosaic_hborder  = 0;
-var mosaic_position = 1;
-var mosaic_rows     = 0;
-var mosaic_cols     = 0;
-var mosaic_delay    = 0;
-
-var cell_width  = 0;
-var cell_height = 0;
-
-var streams = Object();
-var cells   = Object();
-
-function mosaic_init()
-{
-    document.getElementById( 'sout_transcode_extra' ).value = ",sfilter=mosaic}:bridge-in{offset=100";
-    mosaic_size_change();
-
-    /* Force usage of transcode in sout */
-    document.getElementById( 'sout_vcodec_s' ).checked = 'checked';
-    disable( 'sout_vcodec_s' );
-    update_sout();
-}
-
-function mosaic_size_change()
-{
-    var x,y;
-
-    var bg_width    = check_and_replace_int( "bg_width", "400" );
-    var bg_height   = check_and_replace_int( "bg_height", "300" );
-
-    mosaic_height   = check_and_replace_int( "mosaic_height", "100" );
-    mosaic_width    = check_and_replace_int( "mosaic_width", "100" );
-    mosaic_xoffset  = check_and_replace_int( "mosaic_xoffset", "10" );
-    mosaic_yoffset  = check_and_replace_int( "mosaic_yoffset", "10" );
-    mosaic_vborder  = check_and_replace_int( "mosaic_vborder", "5" );
-    mosaic_hborder  = check_and_replace_int( "mosaic_hborder", "10" );
-    mosaic_rows     = check_and_replace_int( "mosaic_rows", "1" );
-    mosaic_cols     = check_and_replace_int( "mosaic_cols", "1" );
-    
-    cell_width  = Math.floor((mosaic_width-(mosaic_cols-1)*mosaic_hborder)/mosaic_cols);
-    cell_height = Math.floor((mosaic_height-(mosaic_rows-1)*mosaic_vborder)/mosaic_rows);
-    
-    var mlayout = document.getElementById( "mosaic_layout" );
-
-    while( mlayout.hasChildNodes() )
-        mlayout.removeChild( mlayout.firstChild );
-
-    mlayout.style.width = bg_width + "px";
-    mlayout.style.height = bg_height + "px";
-    if( mosaic_cols && mosaic_rows )
-    {
-        var mdt = document.createElement( 'div' );
-        mdt.setAttribute( 'id',    'mosaic_dt'  );
-        setclass( mdt, 'mosaic_tbl' );
-        
-        mdt.style.width  = mosaic_width   + "px";
-        mdt.style.height = mosaic_height  + "px";
-        mdt.style.top    = mosaic_yoffset + "px";
-        mdt.style.left   = mosaic_xoffset + "px";
-
-        var mtable = document.createElement( 'table' );
-        mtable.setAttribute( 'id', 'mosaic_table' );
-        mtable.style.top    = "-" + mosaic_vborder + "px";
-        mtable.style.left   = "-" + mosaic_hborder + "px";
-        mtable.style.width  = (1*mosaic_width +2*mosaic_hborder)  + "px";
-        mtable.style.height = (1*mosaic_height+2*mosaic_vborder) + "px";
-        mtable.style.borderSpacing = mosaic_hborder + "px " +
-                                     mosaic_vborder + "px";
-
-        var mtbody = document.createElement( 'tbody' );
-
-        for( y = 0; y < mosaic_rows; y++ )
-        {
-            var mrow = document.createElement( 'tr' );
-            for( x = 0; x < mosaic_cols; x++ )
-            {
-                var mcell = document.createElement( 'td' );
-                setclass( mcell, 'mosaic_itm' );
-                mcell.style.width  = cell_width  + "px";
-                mcell.style.height = cell_height + "px";
-                
-                var id = x+'_'+y;
-                var melt = create_button( cells[id] ? cells[id] : '?', 'mosaic_elt_choose(\"'+id+'\");' );
-                melt.setAttribute( 'id', id );
-                melt.setAttribute( 'title', 'Click to choose stream' );
-                
-                mcell.appendChild( melt );
-                mrow.appendChild( mcell );
-            }
-            mtbody.appendChild( mrow );
-        }
-        mtable.appendChild( mtbody );
-        mdt.appendChild( mtable );
-        mlayout.appendChild( mdt );
-    }
-    mosaic_code_update();
-}
-
-function mosaic_add_input()
-{
-    streams[ addunderscores( value('mosaic_input_name') ) ] =
-        value('mosaic_input');
-
-    mosaic_feedback( addunderscores( value('mosaic_input_name') ) + " ( " + value('mosaic_input') + " ) added to input list.", true );
-
-    var mlist = document.getElementById( "mosaic_list_content" );
-    while( mlist.hasChildNodes() )
-        mlist.removeChild( mlist.firstChild );
-    
-    for( var name in streams )
-    {
-        var mrl = streams[name];
-        
-        var minput = document.createElement( 'a' );
-        minput.setAttribute( 'href', 'javascript:mosaic_elt_select(\''+name+'\');');
-        minput.setAttribute( 'id', name );
-        minput.setAttribute( 'value', mrl );
-        
-        var minputtxt = document.createTextNode( name );
-
-        minput.appendChild( minputtxt );
-        mlist.appendChild( minput );
-        mlist.appendChild( document.createTextNode( " ( "+mrl+" )" ) );
-        mlist.appendChild( document.createElement( 'br' ) );
-    }
-}
-
-function mosaic_elt_select( id )
-{
-    hide( 'mosaic_list' );
-    var ml = document.getElementById( 'mosaic_list' ).value;
-    if( ml )
-    {
-        document.getElementById( ml ).value = id;
-        cells[ ml ] = id;
-        mosaic_code_update();
-    }
-}
-
-function mosaic_elt_choose( id )
-{
-    document.getElementById( 'mosaic_list' ).value = id;
-    show( 'mosaic_list' );
-}
-
-function mosaic_code_update()
-{
-
-    var code = document.getElementById( 'mosaic_code' );
-    code.value =
-"##################################\n"+
-"## HTTP interface mosaic wizard ##\n"+
-"##################################\n"+
-"\n"+
-"# Comment the following line if you don't want to reset your VLM configuration\n"+
-"del all\n"+
-"\n"+
-"# Background options\n"+
-"new   bg broadcast enabled\n"+
-"setup bg input     " + sanitize_input( value( 'mosaic_bg_input' ) ) + "\n";
-    if( value( 'mosaic_output' ) )
-    {
-        code.value +=
-"setup bg output    " + value( 'mosaic_output' )+ "\n";
-    }
-    var o = /.*transcode.*/;
-    if(! o.test( value( 'mosaic_output' ) ) )
-    {
-        code.value +=
-"setup bg option    sub-source=mosaic\n"+
-"setup bg output    #bridge-in{offset=100}:display\n";
-    }
-    code.value+=
-"\n"+
-"# Mosaic options\n"+
-"setup bg option mosaic-alpha="    + mosaic_alpha    + "\n"+
-"setup bg option mosaic-height="   + mosaic_height   + "\n"+
-"setup bg option mosaic-width="    + mosaic_width    + "\n"+
-"setup bg option mosaic-align="    + mosaic_align    + "\n"+
-"setup bg option mosaic-xoffset="  + mosaic_xoffset  + "\n"+
-"setup bg option mosaic-yoffset="  + mosaic_yoffset  + "\n"+
-"setup bg option mosaic-vborder="  + mosaic_vborder  + "\n"+
-"setup bg option mosaic-hborder="  + mosaic_hborder  + "\n"+
-"setup bg option mosaic-position=" + mosaic_position + "\n"+
-"setup bg option mosaic-rows="     + mosaic_rows     + "\n"+
-"setup bg option mosaic-cols="     + mosaic_cols     + "\n"+
-"setup bg option mosaic-order=";
-    for( y = 0; y < mosaic_rows; y++ )
-    {
-        for( x = 0; x < mosaic_cols; x++ )
-        {
-            var id = x+'_'+y;
-            if( cells[id] )
-                code.value += cells[id];
-            else
-                code.value += '_';
-            if( y != mosaic_rows - 1 || x != mosaic_cols - 1 )
-                code.value += ',';
-        }
-    }
-    code.value += "\n"+
-"setup bg option mosaic-delay="    + mosaic_delay    + "\n"+
-"setup bg option mosaic-keep-picture\n"+
-"\n"+
-"# Input options\n";
-    var x, y;
-    for( y = 0; y < mosaic_rows; y++ )
-    {
-        for( x = 0; x < mosaic_cols; x++ )
-        {
-            var id = x+'_'+y;
-            if( cells[id] )
-            {
-                var s = cells[id];
-                code.value +=
-"new   " + s + " broadcast enabled\n"+
-"setup " + s + " input     " + sanitize_input( streams[s] ) + "\n"+
-"setup " + s + " output #duplicate{dst=mosaic-bridge{id=" + s + ",width="+cell_width+",height="+cell_height+"},select=video,dst=bridge-out{id="+(y*mosaic_cols+x)+"},select=audio}\n"+
-"\n";
-            }
-        }
-    }
-    code.value +=
-"# Launch everything\n"+
-"control bg play\n";
-    for( y = 0; y < mosaic_rows; y++ )
-    {
-        for( x = 0; x < mosaic_cols; x++ )
-        {
-            var id = x+'_'+y;
-            if( cells[id] )
-            {
-                var s = cells[id];
-                code.value +=
-"control " + s + " play\n";
-            }
-        }
-    }
-    code.value +=
-"\n"+
-"# end of mosaic batch\n";
-}
-
-function mosaic_batch( batch )
-{
-    var i;
-    var commands = batch.split( '\n' );
-    for( i = 0; i < commands.length; i++ )
-    {
-        mosaic_cmd( commands[i] );
-    }
-}
-
-function mosaic_cmd( cmd )
-{
-    loadXMLDoc( 'requests/vlm_cmd.xml?command='+cmd.replace(/\#/g, '%23'), parse_mosaic_cmd );
-}
-
-function parse_mosaic_cmd()
-{
-    /* TODO */
-}
-
-function mosaic_stop()
-{
-    var cmd;
-    cmd = "control bg stop\n";
-    var x,y;
-    for( y = 0; y < mosaic_rows; y++ )
-    {
-        for( x = 0; x < mosaic_cols; x++ )
-        {
-            var id = x+'_'+y;
-            if( cells[id] )
-            {
-                var s = cells[id];
-                cmd += "control " + s + " stop\n";
-            }
-        }
-    }
-    mosaic_batch( cmd );
-}
-
-function mosaic_feedback( msg, ok )
-{
-    var f = document.getElementById( "mosaic_feedback" );
-    while( f.hasChildNodes() )
-        f.removeChild( f.firstChild );
-
-    f.style.fontWeight = "bold";
-    if( ok )
-        f.style.color = "#0f0";
-    else
-        f.style.color = "#f00";
-
-    var t = document.createTextNode( ( ok ? "Info: " : "Error: " ) + msg );
-    f.appendChild( t );
-
-}
diff --git a/share/lua/http/js/vlm.js b/share/lua/http/js/vlm.js
deleted file mode 100644
index 7a4580b..0000000
--- a/share/lua/http/js/vlm.js
+++ /dev/null
@@ -1,755 +0,0 @@
-/*****************************************************************************
- * vlm.js: VLC media player web interface
- *****************************************************************************
- * Copyright (C) 2005-2006 the VideoLAN team
- * $Id$
- *
- * Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
- *****************************************************************************/
-
-/* replace quotes and spaces by underscores */
-function addunderscores( str ){ return str.replace(/\'|\"| /g, '_'); }
-
-/**********************************************************************
- * Input dialog functions
- *********************************************************************/
-
-function toggle_show_vlm_helper()
-{
-    var vlmh = document.getElementById( "vlm_helper" );
-    var vlmhctrl = document.getElementById( "vlm_helper_controls" );
-    var btn = document.getElementById( "btn_vlm_helper_toggle" );
-    if( vlmh.style.display == 'block' || vlmh.style.display == '')
-    {
-        vlmh.style.display = 'none';
-        vlmhctrl.style.display = 'none';
-        btn.removeChild( btn.firstChild );
-        btn.appendChild( document.createTextNode( 'Show VLM helper' ) );
-    }
-    else
-    {
-        vlmh.style.display = 'block';
-        vlmhctrl.style.display = 'inline';
-        btn.removeChild( btn.firstChild );
-        btn.appendChild( document.createTextNode( 'Hide VLM helper' ) );
-    }
-}
-
-function vlm_input_edit( dest )
-{
-    document.getElementById( 'input_dest' ).value = dest;
-    show( 'input' );
-}
-
-function vlm_input_change()
-{
-    document.getElementById( value( 'input_dest' ) ).value = value( 'input_mrl' ).replace( /\ :/g, " option " );
-    hide( 'input' );
-    document.getElementById( value( 'input_dest' ) ).focus();
-}
-
-function vlm_output_edit( dest )
-{
-    document.getElementById( 'sout_dest' ).value = dest;
-    show( 'sout' );
-}
-
-function vlm_output_change()
-{
-    document.getElementById( value( 'sout_dest' ) ).value = value( 'sout_mrl' ).substr(6).replace( /\ :/g, " option " ); /* substr <-> remove :sout= */
-    hide( 'sout' );
-    document.getElementById( value( 'sout_dest' ) ).focus();
-}
-
-function hide_vlm_add()
-{
-    document.getElementById( 'vlm_add_broadcast' ).style.display = 'none';
-    document.getElementById( 'vlm_add_vod' ).style.display = 'none';
-    document.getElementById( 'vlm_add_schedule' ).style.display = 'none';
-    document.getElementById( 'vlm_add_other' ).style.display = 'none';
-}
-
-function toggle_schedule_date()
-{
-    if( checked( 'vlm_schedule_now' ) )
-    {
-        disable( 'vlm_schedule_year' );
-        disable( 'vlm_schedule_month' );
-        disable( 'vlm_schedule_day' );
-        disable( 'vlm_schedule_hour' );
-        disable( 'vlm_schedule_minute' );
-        disable( 'vlm_schedule_second' );
-    }
-    else
-    {
-        enable( 'vlm_schedule_year' );
-        enable( 'vlm_schedule_month' );
-        enable( 'vlm_schedule_day' );
-        enable( 'vlm_schedule_hour' );
-        enable( 'vlm_schedule_minute' );
-        enable( 'vlm_schedule_second' );
-    }
-}
-
-function toggle_schedule_repeat()
-{
-    if( checked( 'vlm_schedule_repeat' ) )
-    {
-        enable( 'vlm_schedule_period_year' );
-        enable( 'vlm_schedule_period_month' );
-        enable( 'vlm_schedule_period_day' );
-        enable( 'vlm_schedule_period_hour' );
-        enable( 'vlm_schedule_period_minute' );
-        enable( 'vlm_schedule_period_second' );
-        enable( 'vlm_schedule_repeat_times' );
-    }
-    else
-    {
-        disable( 'vlm_schedule_period_year' );
-        disable( 'vlm_schedule_period_month' );
-        disable( 'vlm_schedule_period_day' );
-        disable( 'vlm_schedule_period_hour' );
-        disable( 'vlm_schedule_period_minute' );
-        disable( 'vlm_schedule_period_second' );
-        disable( 'vlm_schedule_repeat_times' );
-    }
-}
-
-function vlm_schedule_type_change( name )
-{
-    var act = document.getElementById( 'vlm_elt_' + name + '_action' ).value;
-    var itemname = document.getElementById( 'vlm_elt_' + name + '_name' );
-    var opt = document.getElementById( 'vlm_elt_' + name + '_opt' );
-    if( act == "play" || act == "pause" || act == "stop" )
-    {
-        itemname.style.display = "";
-        opt.style.display = "none";
-    }
-    else if( act == "seek" )
-    {
-        itemname.style.display = "";
-        opt.style.display = "";
-    }
-    else
-    {
-        itemname.style.display = "none";
-        opt.style.display = "";
-    }
-}
-
-function sanitize_input( str )
-{
-    return str.replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' ).replace( /\ option\ /g, '" option "' );
-}
-
-function update_vlm_add_broadcast()
-{
-    var cmd = document.getElementById( 'vlm_command' );
-
-    if( value( 'vlm_broadcast_name' ) )
-    {
-        cmd.value = "new " + addunderscores( value( 'vlm_broadcast_name' ) )
-                    + " broadcast";
-
-        if( checked( 'vlm_broadcast_enabled' ) )
-        {
-            cmd.value += " enabled";
-        }
-        
-        if( checked( 'vlm_broadcast_loop' ) )
-        {
-            cmd.value += " loop";
-        }
-
-        if( value( 'vlm_broadcast_input' ) )
-        {
-            cmd.value += " input " + sanitize_input( value( 'vlm_broadcast_input' ) );
-        }
-
-        if( value( 'vlm_broadcast_output' ) )
-        {
-            cmd.value += " output " + value( 'vlm_broadcast_output' );
-        }
-    }
-    else
-    {
-        cmd.value = "";
-    }
-}
-
-function update_vlm_add_vod()
-{
-    var cmd = document.getElementById( 'vlm_command' );
-
-    if( value( 'vlm_vod_name' ) )
-    {
-        cmd.value = "new " + addunderscores( value( 'vlm_vod_name' ) )
-                    + " vod";
-
-        if( checked( 'vlm_vod_enabled' ) )
-        {
-            cmd.value += " enabled";
-        }
-        
-        if( value( 'vlm_vod_input' ) )
-        {
-            cmd.value += " input " + sanitize_input( value( 'vlm_vod_input' ) );
-        }
-
-        if( value( 'vlm_vod_output' ) )
-        {
-            cmd.value += " output " + value( 'vlm_vod_output' );
-        }
-    }
-    else
-    {
-        cmd.value = "";
-    }
-}
-
-function update_vlm_add_schedule()
-{
-    var cmd = document.getElementById( 'vlm_command' );
-
-    check_and_replace_int( 'vlm_schedule_year', '0000' );
-    check_and_replace_int( 'vlm_schedule_month', '00' );
-    check_and_replace_int( 'vlm_schedule_day', '00' );
-    check_and_replace_int( 'vlm_schedule_hour', '00' );
-    check_and_replace_int( 'vlm_schedule_minute', '00' );
-    check_and_replace_int( 'vlm_schedule_second', '00' );
-    check_and_replace_int( 'vlm_schedule_period_year', '0000' );
-    check_and_replace_int( 'vlm_schedule_period_month', '00' );
-    check_and_replace_int( 'vlm_schedule_period_day', '00' );
-    check_and_replace_int( 'vlm_schedule_period_hour', '00' );
-    check_and_replace_int( 'vlm_schedule_period_minute', '00' );
-    check_and_replace_int( 'vlm_schedule_period_second', '00' );
-
-    if( value( 'vlm_schedule_name' ) )
-    {
-        cmd.value = "new " + addunderscores( value( 'vlm_schedule_name' ) ) + " schedule";
-
-        if( checked( 'vlm_schedule_enabled' ) )
-        {
-            cmd.value += " enabled";
-        }
-
-        if( checked( 'vlm_schedule_now' ) )
-        {
-            cmd.value += " date now";
-        }
-        else
-        {
-            cmd.value += " date " + value( 'vlm_schedule_year' ) + "/" + value( 'vlm_schedule_month' ) + "/" + value( 'vlm_schedule_day' ) + '-' + value( 'vlm_schedule_hour' ) + ':' + value( 'vlm_schedule_minute' ) + ':' + value( 'vlm_schedule_second' );
-        }
-
-        if( checked( 'vlm_schedule_repeat' ) )
-        {
-            cmd.value += " period " + value( 'vlm_schedule_period_year' ) + "/" + value( 'vlm_schedule_period_month' ) + "/" + value( 'vlm_schedule_period_day' ) + '-' + value( 'vlm_schedule_period_hour' ) + ':' + value( 'vlm_schedule_period_minute' ) + ':' + value( 'vlm_schedule_period_second' );
-
-            if( value( 'vlm_schedule_repeat_times' ) != 0 )
-            {
-                cmd.value += " repeat " + (value( 'vlm_schedule_repeat_times' ) - 1 );
-            }
-        }
-            
-    }
-    else
-    {
-        cmd.value = "";
-    }
-}
-
-function update_vlm_add_other()
-{
-    var cmd = document.getElementById( 'vlm_command' );
-    cmd.value = "";
-}
-
-function clear_vlm_add()
-{
-    document.getElementById( 'vlm_command' ).value = "";
-    document.getElementById( 'vlm_broadcast_name' ).value = "";
-    document.getElementById( 'vlm_vod_name' ).value = "";
-}
-
-function create_button( caption, action )
-{
-/*    var link = document.createElement( "input" );
-    link.setAttribute( 'type', 'button' );*/
-    /* link.setAttribute( 'onclick', action ); */
-    /* Above doesn't work on ie. You need to use something like
-     * link.onclick = function() { alert( 'pouet' ); };
-     * instead ... conclusion: IE is crap */
-   /* link.setAttribute( 'value', caption );*/
-
-    var d = document.createElement( 'div' );
-    d.innerHTML = "<input type='button' onclick='"+action+"' value='"+caption+"' />"; /* other IE work around  ... still crap. Use double quotes only in action */
-    var link = d.firstChild;
-    return link;
-}
-function create_option( caption, value )
-{
-    var opt = document.createElement( 'option' );
-    opt.setAttribute( 'value', value );
-    opt.appendChild( document.createTextNode( caption ) );
-    return opt;
-}
-
-function parse_vlm_cmd()
-{
-    if( req.readyState == 4 )
-    {
-        if( req.status == 200 )
-        {
-            var vlm_answer = req.responseXML.documentElement;
-            var error_tag = vlm_answer.getElementsByTagName( 'error' )[0];
-            var vlme = document.getElementById( 'vlm_error' );
-            clear_children( vlme );
-            if( error_tag.hasChildNodes() )
-            {
-                vlme.appendChild( document.createTextNode( 'Error: ' + error_tag.firstChild.data ) );
-                vlme.style.color = "#f00";
-            }
-            else
-            {
-                vlme.appendChild( document.createTextNode( 'Command successful (' + value( 'vlm_command' ) + ') ' ) );
-                vlme.style.color = "#0f0";
-                clear_vlm_add();
-            }
-            vlme.appendChild( create_button( 'clear', 'clear_children( document.getElementById( "vlm_error" ) );' ) );
-
-            vlm_get_elements();
-        }
-    }
-}
-
-function parse_vlm_elements()
-{
-    if( req.readyState == 4 )
-    {
-        if( req.status == 200 )
-        {
-            var vlmb = document.getElementById( 'vlm_broadcast_list' );
-            var vlmv = document.getElementById( 'vlm_vod_list' );
-            var vlms = document.getElementById( 'vlm_schedule_list' );
-
-            clear_children( vlmb );
-            clear_children( vlmv );
-            clear_children( vlms );
-
-            answer = req.responseXML.documentElement;
-
-            var elt = answer.firstChild;
-
-            while( elt )
-            {
-                if( elt.nodeName == "broadcast" || elt.nodeName == "vod" )
-                {
-                    var nb = document.createElement( 'div' );
-                    setclass( nb, 'list_element' );
-                    if( elt.nodeName == "broadcast" )
-                    {
-                        vlmb.appendChild( nb );
-                    }
-                    else
-                    {
-                        vlmv.appendChild( nb );
-                    }
-                    var nbname = document.createElement( 'b' );
-                    nbname.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
-                    nb.appendChild( nbname );
-                    
-                    if( elt.getAttribute( 'enabled' ) == 'yes' )
-                    {
-                        nb.appendChild( document.createTextNode( " enabled " ) );
-                        nb.appendChild( create_button( "Disable", 'vlm_disable("'+elt.getAttribute( 'name' ) + '");' ) );
-                    }
-                    else
-                    {
-                        nb.appendChild( document.createTextNode( " disabled " ) );
-                        nb.appendChild( create_button( "Enable", 'vlm_enable("'+elt.getAttribute( 'name' ) + '");' ) );
-                    }
-                    
-                    if( elt.nodeName == "broadcast" )
-                    {
-                        if( elt.getAttribute( 'loop' ) == 'yes' )
-                        {
-                            nb.appendChild( document.createTextNode( " loop " ) );
-
-                            nb.appendChild( create_button( 'Un-loop', 'vlm_unloop("'+elt.getAttribute( 'name' ) + '");' ) );
-                        }
-                        else
-                        {
-                            nb.appendChild( document.createTextNode( " play once " ) );
-                            nb.appendChild( create_button( 'Loop', 'vlm_loop("'+elt.getAttribute( 'name' ) + '");' ) );
-                            
-                        }
-
-                        if( elt.getAttribute( 'enabled' ) == 'yes' )
-                        {
-                            nb.appendChild( document.createTextNode( " " ) );
-                            nb.appendChild( create_button( 'Play', 'vlm_play("'+elt.getAttribute('name')+'");' ) );
-                        }
-
-                        nb.appendChild( document.createTextNode( " " ) );
-                        nb.appendChild( create_button( 'Pause', 'vlm_pause("'+elt.getAttribute('name')+'");' ) );
-
-                        nb.appendChild( document.createTextNode( " " ) );
-                        nb.appendChild( create_button( 'Stop', 'vlm_stop("'+elt.getAttribute('name')+'");' ) );
-                    }
-                    
-                    nb.appendChild( document.createTextNode( " " ) );
-                    nb.appendChild( create_button( 'Delete', 'vlm_delete("'+elt.getAttribute( 'name' ) + '");' ) );
-
-                    var list = document.createElement( "ul" );
-
-                    /* begin input list */
-                    var item = document.createElement( "li" );
-                    list.appendChild( item );
-                    item.appendChild( document.createTextNode( "Inputs: " ) );
-                    var text = document.createElement( "input" );
-                    text.setAttribute( 'type', 'text' );
-                    text.setAttribute( 'size', '40' );
-                    text.setAttribute( 'id', 'vlm_elt_'+elt.getAttribute('name')+'_input' );
-                    text.setAttribute( 'onkeypress', 'if( event.keyCode == 13 ) vlm_add_input("'+elt.getAttribute('name')+'",document.getElementById("vlm_elt_'+elt.getAttribute('name')+'_input").value );' );
-                    item.appendChild( text );
-                    item.appendChild( document.createTextNode( ' ' ) );
-                    item.appendChild( create_button( 'Edit', 'vlm_input_edit("vlm_elt_'+elt.getAttribute('name')+'_input");') );
-                    item.appendChild( document.createTextNode( ' ' ) );
-                    item.appendChild( create_button( 'Add input', 'vlm_add_input("'+elt.getAttribute('name')+'",document.getElementById("vlm_elt_'+elt.getAttribute('name')+'_input").value );' ) );
-                    
-                    var inputs = elt.getElementsByTagName( 'input' );
-                    if( inputs.length > 0 )
-                    {
-                        var ilist = document.createElement( "ol" );
-                        ilist.setAttribute( 'start', '1' );
-                        item.appendChild( ilist );
-                        for( i = 0; i < inputs.length; i++ )
-                        {
-                            var item = document.createElement( "li" );
-                            item.appendChild( document.createTextNode( inputs[i].firstChild.data + " " ) );
-                            item.appendChild( create_button( "Delete", 'vlm_delete_input("' + elt.getAttribute( 'name' ) + '", '+(i+1)+' );' ) );
-                            ilist.appendChild( item );
-                        }
-                    }
-                    /* end of input list */
-                    
-                    /* output */
-                    var item = document.createElement( "li" );
-                    outputelt = elt.getElementsByTagName( 'output' )[0];
-                    if( outputelt.hasChildNodes() )
-                    {
-                        output = outputelt.firstChild.data;
-                    }
-                    else
-                    {
-                        output = "";
-                    }
-                    item.appendChild( document.createTextNode( 'Output: ' ) );
-                    var text = document.createElement( "input" );
-                    text.setAttribute( 'type', 'text' );
-                    text.setAttribute( 'id', 'vlm_elt_'+elt.getAttribute('name')+'_output' );
-                    text.setAttribute( 'value', output );
-                    text.setAttribute( 'onkeypress', 'if( event.keyCode == 13 )  vlm_output("'+elt.getAttribute( 'name' )+ '",document.getElementById("vlm_elt_'+elt.getAttribute( 'name' )+'_output").value);' );
-                    item.appendChild( text );
-
-                    item.appendChild( document.createTextNode( ' ' ) );
-
-                    item.appendChild( create_button( 'Edit', 'vlm_output_edit("vlm_elt_'+elt.getAttribute('name')+'_output");' ) );
-                    item.appendChild( document.createTextNode( ' ' ) );
-                    item.appendChild( create_button( 'Change output', 'vlm_output("'+elt.getAttribute( 'name' )+ '",document.getElementById("vlm_elt_'+elt.getAttribute( 'name' )+'_output").value);' ) );
-                    list.appendChild( item );
-                    /* end of output */
-
-                    /* begin options list */
-                    var item = document.createElement( "li" );
-                    list.appendChild( item );
-                    item.appendChild( document.createTextNode( "Options: " ) );
-                    /* Add option */
-                    var text = document.createElement( "input" );
-                    text.setAttribute( 'type', 'text' );
-                    text.setAttribute( 'size', '40' );
-                    text.setAttribute( 'id', 'vlm_elt_'+elt.getAttribute('name')+'_option' );
-                    text.setAttribute( 'onkeypress', 'if( event.keyCode == 13 ) vlm_option("'+elt.getAttribute('name')+'",document.getElementById("vlm_elt_'+elt.getAttribute('name')+'_option").value );' );
-                    item.appendChild( text );
-                    item.appendChild( document.createTextNode( ' ' ) );
-                    item.appendChild( create_button( 'Add option', 'vlm_option("'+elt.getAttribute('name')+'",document.getElementById("vlm_elt_'+elt.getAttribute('name')+'_option").value );' ) );
-                    
-                    var options = elt.getElementsByTagName( 'option' );
-                    if( options.length > 0 )
-                    {
-                        var olist = document.createElement( "ul" );
-                        item.appendChild( olist );
-                        for( i = 0; i < options.length; i++ )
-                        {
-                            var item = document.createElement( "li" );
-                            item.appendChild( document.createTextNode( options[i].firstChild.data ) );
-                            olist.appendChild( item );
-                        }
-                    }
-                    /* end of options */
-
-                    /* Instances list */
-                    var instances = elt.getElementsByTagName( 'instance' );
-                    if( instances.length > 0 )
-                    {
-                        var item = document.createElement("li");
-                        var ilist = document.createElement("ul");
-                        list.appendChild( item );
-                        item.appendChild(document.createTextNode("Instances:")); 
-                        item.appendChild( ilist );
-                        for( i = 0; i < instances.length; i++ )
-                        {
-                            var iname = instances[i].getAttribute( 'name' );
-                            var istate = instances[i].getAttribute( 'state' );
-                            var iposition = Number( instances[i].getAttribute( 'position' ) * 100);
-                            var itime = Math.floor( instances[i].getAttribute( 'time' ) / 1000000);
-                            var ilength = Math.floor( instances[i].getAttribute( 'length' ) / 1000000);
-                            var irate = instances[i].getAttribute( 'rate' );
-                            var ititle = instances[i].getAttribute( 'title' );
-                            var ichapter = instances[i].getAttribute( 'chapter' );
-                            var iseekable = instances[i].getAttribute( 'seekable' );
-                            var iplaylistindex = instances[i].getAttribute( 'playlistindex' );
-                            
-                            var item = document.createElement( "li" );
-                            item.appendChild( document.createTextNode( iname + ": " + istate + " (" + iplaylistindex + ") " + (iposition.toFixed(2)) + "%" + " " + format_time( itime ) + "/" + format_time( ilength ) ) );
-                            ilist.appendChild( item );
-                        }
-                    }
-                    /* end of instances list */
-                    
-                    nb.appendChild( list );
-                    
-                }
-                else if( elt.nodeName == "schedule" )
-                {
-                    var nb = document.createElement( 'div' );
-                    setclass( nb, 'list_element' );
-                    vlms.appendChild( nb );
-
-                    var nbname = document.createElement( 'b' );
-                    nbname.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
-                    nb.appendChild( nbname );
-                    
-                    if( elt.getAttribute( 'enabled' ) == 'yes' )
-                    {
-                        nb.appendChild( document.createTextNode( " enabled " ) );
-                        nb.appendChild( create_button( "Disable", 'vlm_disable("'+elt.getAttribute( 'name' ) + '");' ) );
-                    }
-                    else
-                    {
-                        nb.appendChild( document.createTextNode( " disabled " ) );
-                        nb.appendChild( create_button( "Enable", 'vlm_enable("'+elt.getAttribute( 'name' ) + '");' ) );
-                    }
-
-                    nb.appendChild( document.createTextNode( " " ) );
-                    nb.appendChild( create_button( "Delete", 'vlm_delete("'+elt.getAttribute( 'name' ) + '");' ) );
-
-                    var list = document.createElement( 'ul' );
-
-                    var item = document.createElement( 'li' );
-                    item.appendChild( document.createTextNode( "Date: " + elt.getAttribute( 'date' ) ) );
-                    list.appendChild( item );
-
-                    var item = document.createElement( 'li' );
-                    item.appendChild( document.createTextNode( "Period (in seconds): " + elt.getAttribute( 'period' ) ) );
-                    list.appendChild( item );
-                    
-                    var item = document.createElement( 'li' );
-                    if( elt.getAttribute( 'repeat' ) == -1 )
-                    {
-                        item.appendChild( document.createTextNode( "Number of repeats left: for ever" ) );
-                    }
-                    else
-                    {
-                        item.appendChild( document.createTextNode( "Number of repeats left: " + elt.getAttribute( 'repeat' ) ) );
-                    }
-                    list.appendChild( item );
-                    
-                    var commands = elt.getElementsByTagName( 'command' );
-                    for( i = 0; i < commands.length; i++ )
-                    {
-                        var item = document.createElement( "li" );
-                        item.appendChild( document.createTextNode( "Command: " + commands[i].firstChild.data + " " ) );
-                        list.appendChild( item );
-                    }
-                    
-                    var item = document.createElement( 'li' );
-                    var sel = document.createElement( 'select' );
-                    sel.setAttribute( 'id', 'vlm_elt_'+elt.getAttribute('name')+'_action' );
-                    sel.setAttribute( 'onchange', 'vlm_schedule_type_change("'+elt.getAttribute('name')+'");');
-                    sel.appendChild( create_option( 'play', 'play' ) );
-                    sel.appendChild( create_option( 'pause', 'pause' ) );
-                    sel.appendChild( create_option( 'stop', 'stop' ) );
-                    sel.appendChild( create_option( 'seek', 'seek' ) );
-                    sel.appendChild( create_option( '(other)', '' ) );
-                    item.appendChild( sel );
-
-                    item.appendChild( document.createTextNode( " " ) );
-                    var text = document.createElement( 'input' );
-                    text.setAttribute( 'type', 'text' );
-                    text.setAttribute( 'id', 'vlm_elt_'+elt.getAttribute('name')+'_name' );
-                    text.setAttribute( 'size', '10' );
-                    text.setAttribute( 'value', '(name)' );
-                    text.setAttribute( 'onfocus', 'if( this.value == "(name)" ) this.value = "";' );
-                    text.setAttribute( 'onblur', 'if( this.value == "" ) this.value = "(name)";' );
-                    item.appendChild( text );
-
-                    item.appendChild( document.createTextNode( " " ) );
-                    text = document.createElement( 'input' );
-                    text.setAttribute( 'type', 'text' );
-                    text.setAttribute( 'id', 'vlm_elt_'+elt.getAttribute('name')+'_opt' );
-                    text.setAttribute( 'size', '30' );
-                    text.setAttribute( 'value', '(options)' );
-                    text.setAttribute( 'onfocus', 'if( this.value == "(options)" ) this.value = "";' );
-                    text.setAttribute( 'onblur', 'if( this.value == "" ) this.value = "(options)";' );
-                    item.appendChild( text );
-                    item.appendChild( document.createTextNode( " " ) );
-                    item.appendChild( create_button( "Append command", 'vlm_schedule_append("' + elt.getAttribute( 'name' ) + '");') );
-                    
-                    list.appendChild( item );
-
-                    nb.appendChild( list );
-                    vlm_schedule_type_change( elt.getAttribute('name') );
-                    
-                }
-                elt = elt.nextSibling;
-            }
-        }
-    }
-}
-
-function vlm_cmd( cmd )
-{
-    loadXMLDoc( 'requests/vlm_cmd.xml?command='+encodeURIComponent(cmd), parse_vlm_cmd );
-}
-
-function vlm_get_elements( )
-{
-    loadXMLDoc( 'requests/vlm.xml', parse_vlm_elements );
-}
-
-/* helper functions */
-
-function vlm_disable( name )
-{
-    document.getElementById( 'vlm_command' ).value = "setup "+name+" disabled";
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_enable( name )
-{
-    document.getElementById( 'vlm_command' ).value = "setup "+name+" enabled";
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_loop( name )
-{
-    document.getElementById( 'vlm_command' ).value = "setup "+name+" loop";
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_unloop( name )
-{
-    document.getElementById( 'vlm_command' ).value = "setup "+name+" unloop";
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_play( name )
-{
-    document.getElementById( 'vlm_command' ).value = "control "+name+" play";
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_pause( name )
-{
-    document.getElementById( 'vlm_command' ).value = "control "+name+" pause";
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_stop( name )
-{
-    document.getElementById( 'vlm_command' ).value = "control "+name+" stop";
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_delete( name )
-{
-    document.getElementById( 'vlm_command' ).value = "del "+name;
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_delete_input( name, num )
-{
-    document.getElementById( 'vlm_command' ).value = "setup "+name+" inputdeln "+num;
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_add_input( name, input )
-{
-    document.getElementById( 'vlm_command' ).value = "setup "+name+" input "+sanitize_input( input );
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_output( name, output )
-{
-    document.getElementById( 'vlm_command' ).value = "setup "+name+" output "+output;
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_option( name, option )
-{
-    document.getElementById( 'vlm_command' ).value = "setup "+name+" option "+option;
-    vlm_cmd( value( 'vlm_command' ) );
-}
-
-function vlm_batch( batch )
-{
-    var i;
-    var commands = batch.split( '\n' );
-    for( i = 0; i < commands.length; i++ )
-    {
-        document.getElementById( 'vlm_command' ).value = commands[i];
-        vlm_cmd( value( 'vlm_command' ) );
-    }
-}
-
-function vlm_schedule_append( name )
-{
-    var act = document.getElementById( 'vlm_elt_' + name + '_action' ).value;
-    document.getElementById( 'vlm_command' ).value = "setup " + name + " append ";
-
-    var itemname = document.getElementById( 'vlm_elt_' + name + '_name' ).value;
-    if( itemname == "(name)" ) itemname = "";
-
-    var opt = document.getElementById( 'vlm_elt_' + name + '_opt' ).value;
-    if( opt == "(options)" ) opt = "";
-        
-    if( act == '' )
-    {
-        document.getElementById( 'vlm_command' ).value += opt;
-    }
-    else
-    {
-        document.getElementById( 'vlm_command' ).value += 'control ' + itemname + " " + act + " " + opt;
-    }
-    vlm_cmd( value( 'vlm_command' ) );
-}
-function vlm_send( )
-{
-    vlm_cmd( value( 'vlm_command' ) );
-}
diff --git a/share/lua/http/mosaic.html b/share/lua/http/mosaic.html
deleted file mode 100644
index f68a838..0000000
--- a/share/lua/http/mosaic.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  vlm.html: VLC media player web interface - VLM
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-
-  <title>VLC media player - Web Interface - Mosaic Wizard</title>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <link href="style.css" rel="stylesheet" type="text/css" />
-  <script type="text/javascript" src="js/functions.js"></script>
-  <script type="text/javascript" src="js/vlm.js"></script>
-  <script type="text/javascript" src="js/mosaic.js"></script>
-
-</head>
-
-<body onload="mosaic_init();">
-
-<h1>Mosaic wizard</h1>
-
-<?vlc
-current_page = "vlm"
-
-dialogs("browse","input","sout","mosaic","footer")
-?>
-
-</body>
-
-</html>
diff --git a/share/lua/http/requests/README.txt b/share/lua/http/requests/README.txt
index 0b19bb6..f3a7667 100644
--- a/share/lua/http/requests/README.txt
+++ b/share/lua/http/requests/README.txt
@@ -50,15 +50,6 @@ status.xml:
 > empty playlist:
   ?command=pl_empty
 
-> set audio delay
-  ?command=audiodelay&val=<delayinseconds>
-
-> set subtitle delay
-  ?command=subdelay&val=<delayinseconds>
-
-> set playback rate. must be > 0
-  ?command=rate&val=<newplaybackrate>
-
 > sort playlist using sort mode <val> and order <id>:
   ?command=pl_sort&id=<id>&val=<val>
   If id=0 then items will be sorted in normal order, if id=1 they will be
diff --git a/share/lua/http/requests/playlist.xml b/share/lua/http/requests/playlist.xml
index 619fd04..d8bbe02 100644
--- a/share/lua/http/requests/playlist.xml
+++ b/share/lua/http/requests/playlist.xml
@@ -24,7 +24,7 @@ vim:syntax=lua
 <  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 ]] ?>
-
+<root>
 <?vlc
 --[[
 function a(t,pre)
@@ -42,11 +42,17 @@ function print_playlist(item)
     if item.flags.disabled then return end
     if(item.children) then
         local name = vlc.strings.convert_xml_special_chars(item.name or "")
-        print('<node id="' ..tostring(item.id).. '" name="' ..tostring(name).. '" ro="' ..(item.flags.ro and "ro" or "rw").. '">')
-        for _, child in ipairs(item.children) do
-            print_playlist(child)
-        end
-        print('</node>')
+        if(name ~= "Undefined") then
+			print('<item id="plid_' ..tostring(item.id).. '" name="' ..tostring(name).. '" ro="' ..(item.flags.ro and "ro" or "rw").. '"><content><name>' ..name.. '</name></content>')
+			for _, child in ipairs(item.children) do
+				print_playlist(child)
+			end
+			print('</item>')
+		else
+			for _, child in ipairs(item.children) do
+				print_playlist(child)
+			end
+		end
     else
         local name, path = vlc.strings.convert_xml_special_chars(item.name or "", item.path or "")
         local current_item = vlc.input.item()
@@ -57,7 +63,7 @@ function print_playlist(item)
                 current = 'current="current"'
             end
         end
-        print('<leaf id="' ..tostring(item.id).. '" uri="' ..tostring(path).. '" name="' ..name.. '" ro="' ..(item.flags.ro and "ro" or "rw").. '" duration ="' ..math.floor(item.duration).. '" ' ..current.. ' />')
+        print('<item id="plid_' ..tostring(item.id).. '" uri="' ..tostring(path).. '" name="' ..name.. '" ro="' ..(item.flags.ro and "ro" or "rw").. '" duration ="' ..math.floor(item.duration).. '" ' ..current.. ' ><content><name>' ..name.. '</name></content></item>')
     end
 end
 
@@ -76,3 +82,4 @@ end
 --a(p) --Uncomment to debug
 print_playlist(p)
 ?>
+</root>
\ No newline at end of file
diff --git a/share/lua/http/requests/status.xml b/share/lua/http/requests/status.xml
index 3900454..bbef12d 100644
--- a/share/lua/http/requests/status.xml
+++ b/share/lua/http/requests/status.xml
@@ -111,18 +111,6 @@ elseif command == "seek" then
   common.seek(val)
 elseif command == "key" then
   common.hotkey("key-"..val)
-elseif command == "audiodelay" then
-  if vlc.object.input() and val then
-   vlc.var.set(vlc.object.input(),"audio-delay",val)
-  end
-elseif command == "rate" then
-  if vlc.object.input() and tonumber(val) >= 0 then
-   vlc.var.set(vlc.object.input(),"rate",val)
-  end
-elseif command == "subdelay" then
-  if vlc.object.input() then
-   vlc.var.set(vlc.object.input(),"spu-delay",val)
-  end
 end
 
 local input = nil
@@ -137,9 +125,6 @@ local vout = input and vlc.object.find(input,'vout','child')
 ?>
 <root>
   <volume><?vlc print(vlc.volume.get()) ?></volume>
-  <audiodelay><?vlc if input then print(vlc.var.get(input,"audio-delay")) else print (0) end ?></audiodelay>
-  <rate><?vlc if input then print(vlc.var.get(input,"rate")) else print (1) end ?></rate>
-  <subtitledelay><?vlc if input then print(vlc.var.get(input,"spu-delay")) else print (0) end ?></subtitledelay>
   <length><?vlc if input then print(math.floor(vlc.var.get(input,"length"))) else print(0) end?></length>
   <time><?vlc if input then print(math.floor(vlc.var.get(input,"time"))) else print(0) end?></time>
   <state><?vlc print(vlc.playlist.status()) ?></state>
diff --git a/share/lua/http/requests/vlm.xml b/share/lua/http/requests/vlm.xml
index 19d3fb4..2c60ae0 100644
--- a/share/lua/http/requests/vlm.xml
+++ b/share/lua/http/requests/vlm.xml
@@ -83,7 +83,7 @@ local function print_media(m)
     end
   end
   print("<"..type_.." name=\""..name.."\" enabled=\""..enabled.."\" loop=\""..loop.."\">\n")
-  print("<output>"..output.."</output>\n")
+  print("<output><![CDATA["..output.."]]></output>\n")
   print_table("input",inputs)
   print_table("option",options)
   print "<instances>\n"
diff --git a/share/lua/http/style.css b/share/lua/http/style.css
deleted file mode 100644
index 1e43a82..0000000
--- a/share/lua/http/style.css
+++ /dev/null
@@ -1,261 +0,0 @@
-/*****************************************************************************
- * style.css: VLC media player web interface
- *****************************************************************************
- * Copyright (C) 2005-2006 the VideoLAN team
- * $Id$
- *
- * Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-body {
-	background-color: #eee;
-	font-family: Arial, sans-serif;
-	font-size: 12pt;
-	text-align: center; /* Center on page - IE */
-	padding: 0px;
-	margin: 0px;
-}
-
-div {
-	padding: 0px;
-	margin: 0px;
-	text-align: left;
-}
-
-div.dialog {
-	width: 440pt;
-	background: #fff;
-	border: solid #000 1px;
-	margin: 10px auto; /* Center on page - Firefox */
-	padding: 0px;
-	overflow: hidden; /* so that the title bar doesn't overflow on
-                           * firefox but still takes all the div's width
-                           * in IE */
-}
-
-div#footer {
-	font-size: 8pt;
-	text-align: center;
-}
-
-.btn_text {
-	display: none;
-}
-
-form {
-	display: inline;
-}
-
-input, textarea {
-	border: solid #000 1px;
-	background-color: #fff;
-}
-
-div.helper {
-	margin: 10px;
-	padding: 10px 0px;
-	border: solid 1px #000;
-}
-div.helper hr {
-	border: solid 1px #000;
-}
-
-div.title {
-	width: 100%/*576px*/; /* see overflow:hidden several lines 
-                                * before for explanation */
-	background: #000 url('images/vlc16x16.png') no-repeat top left;
-	padding-left: 24px;
-	color: #fff;
-	font-weight: bold;
-}
-div.title button {
-	border: 1px none #000;
-	padding: 0px;
-	background-color: #000;
-	color: #fff;
-}
-
-div.controls {
-	width: 100%;
-	padding: 3px 5px;
-}
-div.controls button {
-	border: 1px solid #fff;
-	padding: 0px;
-	background-color: #fff;
-}
-
-div.list {
-	padding: 1em;
-}
-div.list_element {
-	padding-bottom: 0.3em;
-}
-div.list_element ul {
-	margin: 0px;
-}
-
-div#infotree ul {
-	padding: 0.4em;
-	margin: 0em;
-}
-div#infotree li {
-	font-weight: bold;
-	font-size: 0.8em;
-}
-div#infotree dl {
-	font-weight: normal;
-	padding: 0em 1em;
-}
-div#infotree dt {
-	text-decoration: underline;
-}
-
-div#playtree {
-	min-height: 150px;
-}
-div.pl_node {
-	padding-left: 20px;
-	font-style: italic;
-}
-a.pl_leaf {
-	font-style: normal;
-}
-a.pl_leaf:hover {
-	color: #f00;
-}
-img {
-	border: 0px none black;
-}
-
-div.popup {
-	background-color: #fff;
-	overflow: hidden;
-	border: solid #888 1px;
-	margin: 10px auto; /* Center on page - Firefox */
-	position: absolute;
-	z-index: 2;
-	font-size: 0.8em;
-}
-div#browse {
-	width: 70%;
-	left: 15%;
-}
-div#browse div.title {
-	background-color: #008;
-}
-
-div#browser {
-	padding: 20px;
-}
-
-div#mosaic_list {
-	width: 50%;
-	left: 25%;
-	background: url('images/white.png') repeat;
-	display: none;
-}
-
-.mosaic_bg {
-	background-color: #aaf;
-}
-.mosaic_tbl {
-	background-color: #faa;
-}
-.mosaic_itm {
-	background-color: #afa;
-}
-div#mosaic_layout {
-	border: 0px solid #000;
-	padding: 0px;
-	margin: 10px auto;
-}
-
-div#mosaic_dt {
-	border: 0px solid #000;
-	position: relative;
-}
-table#mosaic_table {
-	border-spacing: 0px 0px;
-	position: relative;
-}
-table#mosaic_table tr {
-	padding: 0px;
-	margin: 0px;
-}
-table#mosaic_table td {
-	border: 0px solid #000;
-	text-align: center;
-	padding: 0px;
-	margin: 0px;
-}
-table#mosaic_table input {
-	border: 0px;
-	background: transparent;
-	text-align: center;
-}
-textarea#mosaic_code {
-	padding: 0px;
-	display: block;
-	margin: 10px auto;
-}
-
-div.controls button.on {
-	background-color: #aaa;
-}
-
-div.controls button.off {
-	background-color: #fff;
-}
-
-div.menubtn {
-	display: inline;
-}
-
-div.menu {
-	position: absolute;
-	border: 1px solid #ccc;
-	padding: 5px;
-	margin-top: -5px;
-	background: url('images/white.png') repeat;
-	z-index: 2;
-	display: none;
-}
-
-/* FIXME: still some div.menu > button around ? */
-div.menu div,
-div.menu button {
-    background: transparent;
-    cursor: pointer;
-    white-space: nowrap;
-}
-
-div.menu button.menuout {
-	border: 1px solid transparent;
-}
-
-div.menu div.menuover,
-div.menu button.menuover {
-    background: #000;
-    color: #fff;
-}
-
-div.popup img.close {
-	position: absolute;
-	right: 2px;
-	top: 2px;
-}
diff --git a/share/lua/http/view.html b/share/lua/http/view.html
new file mode 100644
index 0000000..9ad2fa1
--- /dev/null
+++ b/share/lua/http/view.html
@@ -0,0 +1,89 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+	<title>VLC media player - Flash Viewer</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+	<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
+	<link type="text/css" href="css/main.css" rel="stylesheet" />
+	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
+		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
+		<script type="text/javascript" src="http://static.flowplayer.org/js/flowplayer-3.2.6.min.js"></script>
+	<script language="javascript" type="text/javascript">
+	var stream_server		=	window.location.hostname;
+	$(function(){
+		$('#window_stream').resizable({
+			minHeight: 300,
+			minWidth: 400,
+			resize:function(event,ui){
+				$('#player').css({
+					'width':ui.size.width-80,
+					'height':ui.size.height-100
+				})
+			}
+		});
+		$('#window_stream_config').dialog({
+			autoOpen: false,
+			width:400,
+			position: ['left','top'],
+			modal: true,
+			buttons:{
+				"Okay":function(){
+					$('#player').empty();
+					$('#player').attr('href',$('#stream_protocol').val()+'://'+$('#stream_host').val()+':'+$('#stream_port').val()+'/'+$('#stream_file').val());
+					flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
+					$(this).dialog('close');
+				},
+				"Cancel":function(){
+					$(this).dialog('close');
+				}
+			}
+		});
+		$('#button_stream_config').click(function(){
+			$('#window_stream_config').dialog('open');
+		});
+		$('#stream_host').val(stream_server);
+		$('#player').empty();
+		$('#player').attr('href',$('#stream_protocol').val()+'://'+$('#stream_host').val()+':'+$('#stream_port').val()+'/'+$('#stream_file').val());
+		flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
+	});
+	</script>
+	<style>
+	#window_stream { width: 800px; height: 600px; padding: 0.5em; }
+	#window_stream h3 { text-align: left; margin: 0; font-weight: normal; font-size: 12px }
+	</style>
+</head>
+
+<body>
+	<div id="window_stream" class="ui-widget-content">
+		<h3 class="ui-widget-header">Streaming Output</h3>
+		<div class="ui-widget-content">
+			<div id="button_stream_config" class="button icon ui-widget ui-state-default" title="Configure" opendialog="window_stream_config"><span class="ui-icon ui-icon-wrench"></span></div>
+			<div align="center">
+				<div href="http://localhost:8081/stream.flv" style="display:block;width:720px;height:500px" id="player"></div>
+			</div>
+			<div> </div>
+		</div>
+	</div>
+	<div id="window_stream_config" title="Stream Input Configuration">
+		<table>
+			<tr>
+				<td>Protocol</td>
+				<td><input type="text" name="stream_protocol" id="stream_protocol" value="http" /></td>
+			</tr>
+			<tr>
+				<td>Host</td>
+				<td><input type="text" name="stream_host" id="stream_host" value="" /></td>
+			</tr>
+			<tr>
+				<td>Port</td>
+				<td><input type="text" name="stream_port" id="stream_port" value="8081" /></td>
+			</tr>
+			<tr>
+				<td>File</td>
+				<td><input type="text" name="stream_file" id="stream_file" value="stream.flv" /></td>
+			</tr>
+		</table>
+	</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/share/lua/http/vlm.html b/share/lua/http/vlm.html
deleted file mode 100644
index af05ea3..0000000
--- a/share/lua/http/vlm.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  vlm.html: VLC media player web interface - VLM
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
-<  Copyright (C) 2005-2006 the VideoLAN team
-<  $Id$
-< 
-<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
-< 
-<  This program is free software; you can redistribute it and/or modify
-<  it under the terms of the GNU General Public License as published by
-<  the Free Software Foundation; either version 2 of the License, or
-<  (at your option) any later version.
-< 
-<  This program is distributed in the hope that it will be useful,
-<  but WITHOUT ANY WARRANTY; without even the implied warranty of
-<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-<  GNU General Public License for more details.
-< 
-<  You should have received a copy of the GNU General Public License
-<  along with this program; if not, write to the Free Software
-<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
-< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-
-  <title>VLC media player - Web Interface - VLM</title>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <link href="style.css" rel="stylesheet" type="text/css" />
-  <script type="text/javascript" src="js/functions.js"></script>
-  <script type="text/javascript" src="js/vlm.js"></script>
-
-</head>
-
-<body onload="vlm_get_elements();">
-
-<?vlc
-current_page = "vlm"
-
-dialogs("browse","input","sout","vlm","footer")
-?>
-
-</body>
-
-</html>
diff --git a/share/lua/http/vlm_export.html b/share/lua/http/vlm_export.html
deleted file mode 100644
index b90e5b7..0000000
--- a/share/lua/http/vlm_export.html
+++ /dev/null
@@ -1,12 +0,0 @@
-## <pre>
-##
-## <a href="vlm.html">VLM HTTP interface</a>
-## This file can be loaded as is in VLM.
-## Comments starting with "##" were added by the HTTP interface.
-## You can remove them if you want to.
-##
-<?vlc print(vlc.vlm.execute_command(vlm,"export").value) ?>
-
-##
-## end of export
-## </pre>
-- 
1.7.3.4




More information about the vlc-devel mailing list