<!--- delay function (only needed when NOT using jQuery 1.4) --->
	$.fn.delay = function( time, name ) {
		return this.queue( ( name || "fx" ), function() {
			var self = this;
			setTimeout(function() { $.dequeue(self); } , time );
		});
	};
	
	onLoadFunctions = function() {
		$('.thirdNav .lvl2').bind("mouseenter",function(){
			$(this).addClass('over');
		}).bind("mouseleave",function(){
			$(this).removeClass('over');
		});
	}
	window.onload=onLoadFunctions;
	
	function checkDropdown() {
		if (!$(this).parent().hasClass('over')) {
			$(this).hide();
		}
	}
	
	// handle dropdown fade in
	$('.thirdNav .lvl2').mouseenter(function() {
		$('.dropdownSub').hide();
		$('.dropdownSub', this).show(1, checkDropdown);
	});
	$('.thirdNav .dropdownSub').mouseleave(function() {
		$('.dropdownSub').hide();
	});
	$('.dropdownSub').mouseover(function() {
		$(this).show();
	});
