$(function() {
	$("#hnav li").prepend("<span></span>");
	$("#hnav li").addClass("hnavlink");
	$("#hnav li").each(function() {
	var linkText = $(this).find("a").html();
	$(this).find("span").show().html(linkText); 
}); 
	$("#hnav li").hover(function() {
	$(this).find("span").stop().animate({ 
	marginTop: "-39"
}, 250);
	} , function() { 
	$(this).find("span").stop().animate({
	marginTop: "0"
	}, 250);
});
});

// MATCH
$(function() {
	hmatch_ys=false;
	hmatch_ys2=true;
	$("#hmatch_arrow_r").click(function(){
		if
		(hmatch_ys2) 
		{
		$("#hmatch_list").animate({left:'-=218'},600);
		$("#hmatch_arrow_l").removeClass("hmatch_on");
		$("#hmatch_arrow_r").addClass("hmatch_on");
			hmatch_ys=true;
			hmatch_ys2=false;
		}
		else
		{
		}
	});
	$("#hmatch_arrow_l").click(function(){
		if
		(hmatch_ys) 
		{
			$("#hmatch_list").animate({left:'+=218'},600);
			$("#hmatch_arrow_r").removeClass("hmatch_on");
			$("#hmatch_arrow_l").addClass("hmatch_on");
			hmatch_ys=false;
			hmatch_ys2=true;
		}
		else
		{
		}
	});
});
