$(".subnav_dropdown").hover(
	function() {
		$(this).addClass('dropdown_hover');
	},
	function () {
		$(this).removeClass('dropdown_hover');
		$(this).find(".dropdown").slideUp(200, function() {
			$(this).parent().removeClass('dropdown_open');
		});
	}
);

$(".subnav_dropdown").click(function() {
	 $(this).find(".dropdown").slideToggle(200);
	 $(this).toggleClass('dropdown_open');
});


// Code below fixes flickering of slideToggled divs in IE Quirks mode
// found here: http://siderite.blogspot.com/2009/08/jquery-slideup-flickers-in-internet.html

(function(){
// Define overriding method.
jQuery.fx.prototype.hide = function(){
// Remember where we started, so that we can go back to it later
this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
this.options.hide = true;
// Begin the animation
this.custom(this.cur(), 1);
}
})();
