$(function(){
$('#hd-nav>li>a').hover(function(){$(this).next('div').show();},function(){$(this).next('div').hide();});
$('#hd-nav>li>a').next('div').hover(function(){$(this).show();$(this).prev('a').addClass('cur');},function(){$(this).hide();$(this).prev('a').removeClass('cur');}); 
});
$(function(){
	$("#hd li.my-page").hover(function(){
		$(this).children("ul").show();	
		$(this).addClass("hover bg-none");
		$(this).next().addClass("bg-none");
		$(this).css({paddingLeft:"10px",paddingRight:"10px",marginTop:"-1px"});
		}, function(){
		$(this).children("ul").hide();	
		$(this).removeClass("hover bg-none");
		$(this).next().removeClass("bg-none");
		$(this).css({paddingLeft:"11px",paddingRight:"11px",marginTop:"0px"});
		});
});
$(function(){
var $hdText=$('#hd-sr .hd-text');
$hdText.focus(function(){
	$(this).removeClass('lower');
	if($(this).val()==this.defaultValue){
		$(this).val('');
		}
	}).blur(function(){
		if($(this).val()==''){
			$(this).addClass('lower').val(this.defaultValue);
			}
		});
$('#hd-sr form:first').submit(function(){
	if($hdText.val()==$hdText[0].defaultValue||$hdText.val()==''){
		return false;
		}
	});
});
