
  $(document).ready(function(){
    $(".pageHeight").css({'height':$("#left-col").height()+'px'})
    if ($(".hidResources .infoBoxContents").height()<$(".featuredVehicles .contentBoxContents").height()){
      h = $(".featuredVehicles .contentBoxContents").height() + 10;
      $(".hidResources .infoBoxContents").css({"height":h+"px"})
    }
    
    $("#nav li ul").find("a:last").css({'border':'none'});
    $("#nav > li:last > a").css({'border':'none'});
    width_ul = $("#nav > li").find("ul").width();
    
    $("#nav > li").each(
      function () {
        col=0;
        $(this).find("li").each(
          function () {
            col++;
          }
        );
        if (col>14){
          width_ul_this = width_ul * 2; 
          $(this).find("ul").css({'width':width_ul_this+'px'})
        }
        if (col>29){
          width_ul_this = width_ul * 3; 
          $(this).find("ul").css({'width':width_ul_this+'px'})
        }
        if (col>44){
          width_ul_this = width_ul * 4; 
          $(this).find("ul").css({'width':width_ul_this+'px'})
        }
        if (col>59){
          width_ul_this = width_ul * 5; 
          $(this).find("ul").css({'width':width_ul_this+'px'})
        }
        
        height_bottom = $("#left-col").height()+$("#left-col").offset().top;
        height_ul = $(this).offset().top+$(this).find("ul").height();
        if (height_ul > height_bottom) {
          a = height_ul-height_bottom + 15;
          a = -a;
          $(this).find("ul").css({'top': a+'px'});
        }
      }
    );
    if ($.browser.msie && $.browser.version == 6) {
      $("#nav > li").hover(
        function () {
          $(this).find("ul").show();
        },
        function () {
          $(this).find("ul").hide();
        }
      )
    }
    if ($.browser.msie && ($.browser.version == 6 || $.browser.version == 7)) {
      $("#nav > li a").prepend('<span class="navPoint">&gt;</span>');
      $("#nav ul li a").prepend('<span class="navPoint">&bull;</span>');
    }
      
  });
