/**
 * Fixes :hover navigation for IE6.
 * Fixes z-index issue with navigation due to centered navigation and overflow hidden issues.
 */
$(document).ready(function() {
	$navigation = $('#navigation');
	var t = null;
	$cur_ul = null;
	$('#primaryNavigation > li').hover(
		function() {
			if($cur_ul) {
				clearTimeout(t);
				$cur_ul.hide();
			}
			$cur_ul = $(this).find('ul');
			$cur_ul.hide().show();
			$navigation.css('z-index', 15);
			$(this).addClass('hover');
		},
		function() {
			t = setTimeout(function() {
				$cur_ul.hide();
				$navigation.css('z-index', 1);
			}, 500);
			$(this).removeClass('hover');
		}
	);
	$('body').click(function() {
		if($cur_ul) {
			clearTimeout(t);
			$cur_ul.hide();
			$navigation.css('z-index', 1);
		}
	});
});
function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
} 
function addText(thefield){
	if(thefield.value == '') {
		thefield.value = thefield.defaultValue;
	}
}
