Switch to side-by-side view

--- a/ForgeTracker/forgetracker/templates/admin.html
+++ b/ForgeTracker/forgetracker/templates/admin.html
@@ -26,7 +26,7 @@
       <div id="app-acl" py:if="app.permissions and allow_config">
         <div id="acl-admin">
           <py:for each="p in app.permissions" >
-            <h3><a href="#">$p</a></h3>
+            <h3><a href="#" id="permission_$p">$p</a></h3>
             <div>
               <table>
                 <thead>
@@ -127,11 +127,26 @@
     		$("#app_admin_tabs").tabs({cookie:{expires:30}});
     	});
       $(function() {
-             $("#acl-admin").accordion({
-               autoHeight: false,
-               navigation: true
-             });
-           });
+         $("#acl-admin").accordion({
+           autoHeight: false,
+           navigation: true,
+		change: function(event,ui) {
+			var hid = ui.newHeader.children('a').attr('id');
+		if (hid === undefined) {
+			$.cookie('tracker-acl-admin', null);
+		} else {
+			$.cookie('tracker-acl-admin', hid, { path: '/', expires: 2 });
+		}
+		}
+         });
+       });
+       $(document).ready(function(){
+         if($.cookie('tracker-acl-admin')) {
+		$('#acl-admin').accordion('option', 'animated', false);
+		$('#acl-admin').accordion('activate', $('#' + $.cookie('tracker-acl-admin')).parent('h3'));
+		$('#acl-admin').accordion('option', 'animated', 'slide');
+         }
+       });
 	  </script>
   </body>
   <style type="text/css">