

jQuery(document).ready(function() {

jQuery("#searchTerm").toggleVal({
	populateFrom: "label",
	removeLabels: true
});

var beingShown = false;
var shown = false;
var hideDelay = 200;
var hideDelayTimer = null;

jQuery("#navigation,#subnavi").mouseover(function () {
	if (hideDelayTimer) clearTimeout(hideDelayTimer);
	if(beingShown || shown) {
		return;
	} else {
		beingShown = true;
		jQuery("#subnavi").show();
		beingShown = false;
		shown = true;
	}
	return false;
}).mouseout(function () {
	if (hideDelayTimer) clearTimeout(hideDelayTimer);
	hideDelayTimer = setTimeout(function () {
    hideDelayTimer = null;
		shown = false;
		jQuery("#subnavi").fadeOut();
	}, hideDelay);
	return false;
});

});
