// category menu
function P7_swapClass() {
   var i, x, tB, j = 0, tA = new Array(), arg = P7_swapClass.arguments;
   if (document.getElementsByTagName) {
      for(i = 4; i < arg.length; i++) {
         tB = document.getElementsByTagName(arg[i]);
         for(x = 0; x < tB.length; x++) {
            tA[j] = tB[x];
            j++;
            }
         }
      for(i = 0; i < tA.length; i++) {
         if(tA[i].className) {
            if(tA[i].id == arg[1]) {
               if(arg[0] == 1) {
                  tA[i].className = (tA[i].className == arg[3]) ? arg[2] : arg[3];
                  }
               else {
                  tA[i].className = arg[2];
                  }
               }
            else if(arg[0] == 1 && arg[1] == 'none') {
               if(tA[i].className == arg[2] || tA[i].className == arg[3]) {
                  tA[i].className = (tA[i].className == arg[3]) ? arg[2] : arg[3];
                  }
               }
            else if(tA[i].className == arg[2]) {
               tA[i].className = arg[3];
               }
            }
         }
      }
	}

function P7_writeStyles(op, a) {
   //v1.5 by PVII
   if(op == 0 || document.getElementById) {
      var tS = "<sty" + "le type=\"text/css\">";
      tS += a + "<" + "/sty" + "le>";
      document.write(tS);
      document.close();
      }
   }
P7_writeStyles(1, '.closed ul{display:none;}.open ul{display:block;}'); 

function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("contentcontent");
  var lHeight = xHeight("leftcontent");
  var rHeight = xHeight("rightcontent");

  // Find the maximum height
  var maxHeight =
    Math.max(cHeight, Math.max(lHeight, rHeight));

  // Assign maximum height to all columns
  xHeight("middle", maxHeight);
  xHeight("left", maxHeight);
  xHeight("right", maxHeight);

  // Show the footer
  xShow("footer");
}

window.onload = function()
{
  xAddEventListener(window, "resize",
    adjustLayout, false);
  adjustLayout();
}

<!--
function clearDefault(el) {
if (el.defaultValue==el.value) el.value = ""
}
// -->

<!--
function sf(){document.f.firstname.focus();}
-->
