-
-<script type="text/javascript">
-<!--
- var onclose;
-
- function openSidebar(options) {
- options = options || {};
-
- if (onclose) {
- onclose();
- onclose = null;
- }
-
- if (options.title) { $("sidebar_title").innerHTML = options.title; }
-
- if (options.width) { $("sidebar").style.width = options.width; }
- else { $("sidebar").style.width = "30%"; }
-
- $("sidebar").style.display = "block";
-
- <%= onopen %>
-
- onclose = options.onclose;
- }
-
- function closeSidebar() {
- $("sidebar").style.display = "none";
-
- <%= onclose %>
-
- if (onclose) {
- onclose();
- onclose = null;
- }
- }
-
- function updateSidebar(title, content) {
- $("sidebar_title").innerHTML = title;
- $("sidebar_content").innerHTML = content;
- }
-// -->
-</script>