Index: branches/RC/core/admin_templates/js/frame_resizer.js
===================================================================
diff -u
--- branches/RC/core/admin_templates/js/frame_resizer.js (revision 0)
+++ branches/RC/core/admin_templates/js/frame_resizer.js (revision 9238)
@@ -0,0 +1,39 @@
+function FrameResizer($show_title, $hide_title, $frameset) {
+ this.StatusIcon = {0: 'img/list_arrow_desc.gif', 1 : 'img/list_arrow_no.gif'};
+ this.StatusText = {0: $hide_title, 1 : $show_title};
+ this.StatusImage = document.getElementById('menu_toggle');
+ this.Frameset = $frameset;
+
+ this.SubFrameset = $frameset.document.getElementById('sub_frameset');
+ this.TopFrameset = $frameset.document.getElementById('top_frameset');
+}
+
+FrameResizer.prototype.InitControls = function ($instance) {
+ this.StatusImage.onclick = function () {
+ $instance.FrameToggle();
+ }
+}
+
+FrameResizer.prototype.MenuVisible = function () {
+ return new RegExp('(.*)' + this.StatusIcon[0] + '$').exec(this.StatusImage.src);
+}
+
+FrameResizer.prototype.SetStatus = function ($status) {
+ this.StatusImage.src = this.StatusIcon[$status];
+ this.StatusImage.alt = this.StatusText[$status];
+ this.StatusImage.title = this.StatusText[$status];
+ document.getElementById('site_logo').style.display = $status ? 'none' : 'block';
+}
+
+FrameResizer.prototype.FrameToggle = function () {
+ if (this.MenuVisible()) {
+ this.TopFrameset.setAttribute('rows', '25,*');
+ this.SubFrameset.setAttribute('cols', '0,*');
+ this.SetStatus(1);
+ }
+ else {
+ this.TopFrameset.setAttribute('rows', this.Frameset.$top_height + ',*');
+ this.SubFrameset.setAttribute('cols', '200,*');
+ this.SetStatus(0);
+ }
+}
\ No newline at end of file
Index: branches/RC/core/admin_templates/index.tpl
===================================================================
diff -u -r8929 -r9238
--- branches/RC/core/admin_templates/index.tpl (.../index.tpl) (revision 8929)
+++ branches/RC/core/admin_templates/index.tpl (.../index.tpl) (revision 9238)
@@ -16,22 +16,17 @@
" name="head" scrolling="no" noresize="noresize">
-