(function(A){A.vail_leftnav={topLevelLIs:A(".sectionNav .links .section"),_init:function(){var B=A(".w1 .sectionNav .links li ul");
B.each(function(){var C=A(this);
if(C.find("a").hasClass("on")||C.parent("li").hasClass("on")){C.parent("li").addClass("on forceBorder");
C.show()
}});
A.vail_leftnav.topLevelLIs.each(function(D,E){var C=A(E);
C.find("a").bind("click",function(){this.blur()
});
if(C.find("ul").length>0){C.data("hasSub",true);
C.prepend('<div class="expando"></div>')
}});
A.vail_leftnav.topLevelLIs.bind("mouseover",A.vail_leftnav.overHandler);
A.vail_leftnav.topLevelLIs.bind("mouseout",A.vail_leftnav.outHandler);
A.vail_leftnav.topLevelLIs.find(".expando").bind("click",A.vail_leftnav.clickHandler)
},overHandler:function(){var B=A(this);
if(B.hasClass("on")){return 
}if(B.data("hasSub")){B.addClass("overSub")
}else{B.addClass("over")
}},outHandler:function(){A.vail_leftnav.reset()
},clickHandler:function(){var B=A(this).parent("li");
if(B.hasClass("on")){if(A.browser.msie){var C=B.next("li").find(".expando").hide()
}B.find("ul").slideUp(125,function(){B.removeClass("on forceBorder");
A.vail_leftnav.overHandler.call(B);
if(A.browser.msie){C.show()
}})
}else{B.removeClass("over overSub");
B.addClass("on");
if(A.browser.msie){var C=B.next("li").find(".expando").hide()
}B.find("ul").slideDown(125,function(){B.addClass("forceBorder");
A.vail_leftnav.topLevelLIs.hide().show();
if(A.browser.msie){C.show()
}})
}},reset:function(){A.vail_leftnav.topLevelLIs.removeClass("over overSub")
}}
})(jQuery);
jQuery(jQuery.vail_leftnav._init);