$(document).ready(function() {
   // hides the slickbox as soon as the DOM is ready
   // (a little sooner than page load)
   jQuery('#slickbox').hide();
   // shows the slickbox on clicking the noted link  
//    jQuery('a#slick-show').click(function() {
//       jQuery('#slickbox').show('slow');
//       return false;
//    });
//    // hides the slickbox on clicking the noted link  
//    jQuery('a#slick-hide').click(function() {
//       jQuery('#slickbox').hide('fast');
//       return false;
//    });
   
   // toggles the slickbox on clicking the noted link  
   jQuery('a.slick-toggle').click(function() {
      el = jQuery(this).parent().children('#slickbox');
            
      el.toggle(400);
      //setInterval( "adjDivider()", 500 );
      setTimeout( "adjDivider()", 1500 );

      return false;
   });
   setInterval( "adjDivider()", 10000 );
   //setTimeout( "adjDivider()", 200 );
});

function adjDivider(){
   menuHgt = jQuery('#menuWrap').height();
   contentHgt = jQuery('.contentBody').height();
   if (menuHgt > contentHgt) contentHgt = menuHgt;
    
   jQuery('.contentBody').height(contentHgt);
   $('#menuWrap').height(contentHgt);
}

function OWSize(window_name,NewLink,width,height)
{
  if (width > 640) width=680;
  if (height > 480) height=520;
  var myWindow = window.open(NewLink, window_name, "left=0,top=0,menubar=no,location=no,toolbar=no,resizable=yes,scrollbars=yes,status=0,width="+width+",height="+height);
  return false;
}

