//javascript 
<!--

  //function to compensate for the dom's shortcomings
  //note how function does not overwrite the
  //document.getElementsByClass
  //
  //pass it 

 function getElementsByClass(searchClass,node,tag) {
   var classElements = new Array();
   if ( node == null )
     node = document;
   if ( tag == null )
     tag = '*';
   var els = node.getElementsByTagName(tag);
   var elsLen = els.length;
   var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
   for (i = 0, j = 0; i < elsLen; i++) {
     if ( pattern.test(els[i].className) ) {
       classElements[j] = els[i];
       j++;
     }
   }
   return classElements;
  } 


function el(id) { return document.getElementById(id); }

function max(left, right) {
  if(left > right)
    return (left - right + 48) + 'px';
  else return el('wrap').style.paddingBottom;
}


-->
