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