jQuery(document).ready(function(){initNav()})
function initNav(){jQuery('.utilities [dropdown]').each(function(){var elm=jQuery(this),dropElm=jQuery(this).next('li'),dropdownElm=jQuery('#'+elm.attr('dropdown')),triggerHeight=elm.outerHeight(),triggerOffset=elm.offset();dropdownElm.css({position:'absolute',top:(triggerHeight+triggerOffset.top)+'px',left:triggerOffset.left+'px'});var newNavWidth=(elm.outerWidth()+dropElm.outerWidth());dropdownElm.css('width',newNavWidth+'px');dropElm.click(function(){showHideUtilNavItem(elm,dropElm,dropdownElm)});dropdownElm.mouseleave(function(){showHideUtilNavItem(elm,dropElm,dropdownElm)})})}
function showHideUtilNavItem(elm,dropElm,dropdownElm){if(dropdownElm.not(':visible').length==1){jQuery('a',elm).css({MozBorderRadiusBottomLeft:'0',BorderBottomLeftRadius:'0',WebkitBorderBottomLeftRadius:'0'});dropElm.css({MozBorderRadiusBottomRight:'0',BorderBottomRightRadius:'0',WebkitBorderBottomRightRadius:'0'});dropdownElm.animate({opacity:'show',height:'show'},'fast')}else{jQuery('a',elm).css({MozBorderRadiusBottomLeft:'3px',BorderBottomLeftRadius:'3px',WebkitBorderBottomLeftRadius:'3px'});dropElm.css({MozBorderRadiusBottomRight:'3px',BorderBottomRightRadius:'3px',WebkitBorderBottomRightRadius:'3px'});dropdownElm.animate({opacity:'hide',height:'hide'},'fast')}};

