//Company Nav
$(document).ready(function(){  
         $(this).find('.subItems').hide();
         $('.companyNavItem').hover(showSubItems); 
     
         function showSubItems(){ 
		 	  $('#companySubNav').empty();
              $('a').removeClass(); 
              var subitems = $(this).find('.subItems').clone(); 
              $('#companySubNav').prepend(subitems); 
              $('#companySubNav').find('.subItems').show();
              $(this).find('a').addClass('active');
         $('#companySubNav').mouseleave(hideSubItems); 
         $('#companyNavContainer').mouseleave(hideSubItems); 
         } 
         function hideSubItems(){ 
              $(this).find('.subItems').hide(); 
              $('a').removeClass(); 
              $('#companySubNav').empty(); 
         }
         <!--HANDLES QUICKMENU DROPDOWN-->
         $('ul.dropdown').removeClass('noscript');
	$('.dropdown li.dropdownItems span').click(function () {
		$(this).parent().find('ul').toggle();
	});
				
	$('.dropdown li.dropdownItems ul li a').click(function () {
		var url = $(this).attr('href');
		$(this).parent().parent().hide();
		if ($(this).attr('target') === '_blank') {
			window.open(url);
			return false;
		} else if (url.indexOf('http://') >= 0 === false) {
			window.location.href = url;
		} else {
			window.location.href = window.location.href.split(window.location.pathname)[0] + url;
		}				
	});			
	$(document).bind('click', function (e) {
		var $clicked = $(e.target);
		if (!$clicked.parents().hasClass('dropdown')) {
			$('.dropdown li.dropdownItems ul').hide();
		}
	});
	<!--HANDLES CLEARING THE SEARCHBOX-->
	$("#searchBox_text").focus(function(){ $(this).val(''); });
	$("#searchBox_text").blur(function(){ if ($(this).val() == '') {$(this).val('Search');} });
	
});

