function document_ready() {
  if (document.getElementById("first"))
  {
    var a = document.getElementById("first").offsetHeight;
    var a1 = document.getElementById("second").offsetHeight;
    var a2 = document.getElementById("third").offsetHeight;
    var max;
    if (a<a1) {max = a1;} else {max=a;}
    if (max<a2) {max = a2;}

    document.getElementById("first").style.height=max+"px";
    document.getElementById("second").style.height=max+"px";
    document.getElementById("third").style.height=max+"px";
  }

  var tabContainers = $('div.tabs > div');
  $('ul#nav').NavDropDown({Duration: 100});
  tabContainers.hide().filter(':first').show();

  $('div.tabs ul.tabNavigation a').hover(function () {
        tabContainers.hide();
        tabContainers.filter(this.hash).show();
        $('div.tabs ul.tabNavigation a').removeClass('selected');
        $(this).addClass('selected');
        return false;
  }).filter(':first').hover();
  $('#subject').selectbox();
  $('input:text').autoInputLabel({blurColor: '#cccccc', focusColor:'black'});
  $('textarea').autoInputLabel({blurColor: '#cccccc', focusColor:'black'});
}

