-$advanced_tree = false; /* set this to true if you want to see a nicer mailboxtree */
-$oldway = false; /* default SM behaviour */
-
-if ($advanced_tree) {
-$xtra .= <<<ECHO
-<script language="Javascript" TYPE="text/javascript">
-
-<!--
-
- function hidechilds(el) {
- id = el.id+".0000";
- form_id = "mbx[" + el.id +"F]";
- if (document.all) {
- ele = document.all[id];
- if (ele) {
- if(ele.style.display == "none") {
- ele.style.display = "block";
- ele.style.visibility = "visible"
- el.src="../images/minus.gif";
- document.all[form_id].value=0;
- } else {
- ele.style.display = "none";
- ele.style.visibility = "hidden"
- el.src="../images/plus.gif";
- document.all[form_id].value=1;
- }
- }
- } else if (document.getElementById) {
- ele = document.getElementById(id);
- if (ele) {
- if(ele.style.display == "none") {
- ele.style.display = "block";
- ele.style.visibility = "visible"
- el.src="../images/minus.gif";
- document.getElementById(form_id).value=0;
- } else {
- ele.style.display = "none";
- ele.style.visibility = "hidden"
- el.src="../images/plus.gif";
- document.getElementById(form_id).value=1;
- }
- }
- }
- }
-
- function preload() {
- if (!document.images) return;
- var ar = new Array();
- var arguments = preload.arguments;
- for (var i = 0; i<arguments.length; i++) {
- ar[i] = new Image();
- ar[i].src = arguments[i];
- }
- }
-
- function buttonover(el,on) {
- if (!on) {
- el.style.borderColor="blue";}
- else {
- el.style.borderColor="orange";}
- }
-
- function buttonclick(el,on) {
- if (!on) {
- el.style.border="groove"}
- else {
- el.style.border="ridge";}
- }
-
- function hideframe(hide) {
-
-ECHO;
-$xtra .= " left_size = \"$left_size\";\n";
-$xtra .= <<<ECHO
- if (document.all) {
- masterf = window.parent.document.all["fs1"];
- leftf = window.parent.document.all["left"];
- leftcontent = document.all["leftframe"];
- leftbutton = document.all["showf"];
- } else if (document.getElementById) {
- masterf = window.parent.document.getElementById("fs1");
- leftf = window.parent.document.getElementById("left");
- leftcontent = document.getElementById("leftframe");
- leftbutton = document.getElementById("showf");
- } else {
- return false;
- }
- if(hide) {
- new_col = calc_col("20");
- masterf.cols = new_col;
- document.body.scrollLeft=0;
- document.body.style.overflow='hidden';
- leftcontent.style.display = 'none';
- leftbutton.style.display='block';
- } else {
- masterf.cols = calc_col(left_size);
- document.body.style.overflow='';
- leftbutton.style.display='none';
- leftcontent.style.display='block';
-
- }
- }
-
- function calc_col(c_w) {
-
-ECHO;
- if ($location_of_bar == 'right') {
- $xtra .= ' right=true;';
- } else {
- $xtra .= ' right=false;';
- }
- $xtra .= "\n";
-$xtra .= <<<ECHO
- if (right) {
- new_col = '*,'+c_w;
- } else {
- new_col = c_w+',*';
- }
- return new_col;
- }
-
- function resizeframe(direction) {
- if (document.all) {
- masterf = window.parent.document.all["fs1"];
- } else if (document.getElementById) {
- window.parent.document.getElementById("fs1");
- } else {
- return false;
- }
-
-ECHO;
- if ($location_of_bar == 'right') {
- $xtra .= ' colPat=/^\*,(\d+)$/;';
- } else {
- $xtra .= ' colPat=/^(\d+),.*$/;';
- }
- $xtra .= "\n";
-
-$xtra .= <<<ECHO
- old_col = masterf.cols;
- colPat.exec(old_col);
-
- if (direction) {
- new_col_width = parseInt(RegExp.$1) + 25;
-
- } else {
- if (parseInt(RegExp.$1) > 35) {
- new_col_width = parseInt(RegExp.$1) - 25;
- }
- }
- masterf.cols = calc_col(new_col_width);
- }
-
-//-->
-
-</script>
-
-ECHO;
-
-/* style definitions */
-
-$xtra .= <<<ECHO
-
-<style type="text/css">
-<!--
- body {
- margin: 0px 0px 0px 0px;
- padding: 5px 5px 5px 5px;
- }
-
- .button {
- border:outset;
- border-color:blue;
- background:white;
- width:99%;
- heigth:99%;
- }
-
- .mbx_par {
- font-size:0.8em;
- margin-left:4px;
- margin-right:0px;
- }
-
- a.mbx_link {
- text-decoration: none;
- background-color: $color[0];
- display: inline;
- }
-
- a:hover.mbx_link {
- background-color: $color[9];
- }
-
- a.mbx_link img {
- border-style: none;
- }
-
- .mbx_sub {
- padding-left:5px;
- padding-right:0px;
- margin-left:4px;
- margin-right:0px;
- font-size:0.7em;
- }
-
- .par_area {
- margin-top:0px;
- margin-left:4px;
- margin-right:0px;
- padding-left:10px;
- padding-bottom:5px;
- border-left: solid;
- border-left-width:0.1em;
- border-left-color:blue;
- border-bottom: solid;
- border-bottom-width:0.1em;
- border-bottom-color:blue;
- display: block;
- }
-
- .mailboxes {
- padding-bottom:3px;
- margin-right:4px;
- padding-right:4px;
- margin-left:4px;
- padding-left:4px;
- border: groove;
- border-width:0.1em;
- border-color:green;
- background: $color[0];
- }
-
--->
-
-</style>
-
-ECHO;
-