function initMenu() {
	$("a").focus(function(){$(this).blur();});
	
    $("#en").corner("round 3px").parent().corner("round 3px");
	$("#mainleft").corner("round 5px");
	$("#mainright").corner("round 5px");
	$("#playlist").corner("round 3px");
	$(".tvmorecontent").corner("round 5px").parent().corner("round 5px");
	$("#moreright h3").corner("round top 5px");
	$("#members").corner("round 5px");
	
	$("#stopbtn").mouseover(function(){
		var nowimg = $(this).attr("src");
		var overimg = nowimg.replace(".gif","");
		overimg = overimg + "-1.gif";
		$(this).attr("src",overimg);
	});
	$("#stopbtn").mouseout(function(){
		var nowimg = $(this).attr("src");
		var overimg = nowimg.replace("-1.gif","");
		overimg = overimg + ".gif";
		$(this).attr("src",overimg);
	});
	$("#stopbtn").click(function(){
		$("#playbtn").attr("src","images/playbtn.gif");
	});
	
	$("#playbtn").click(function(){
		var nowimg = $(this).attr("src");
		if(nowimg=="images/playbtn.gif")
		{
			nowimg="images/pausebtn.gif";
			$(this).attr("src",nowimg);
		}
		else
		{
			$(this).attr("src","images/playbtn.gif");
		}
	});
	
	$("#volumbtn").click(function(){
		var nowimg = $(this).attr("src");
		if(nowimg=="images/volumbtn.gif")
		{
			nowimg="images/volumbtn-1.gif";
			$(this).attr("src",nowimg);
		}
		else
		{
			$(this).attr("src","images/volumbtn.gif");
		}
	});
	
	
	//$("#playeris").click(function() {
	//var playerstate = $("showstate").text();
	//alert(playerstate);
	//if(playerstate=="2")
	//{
	//	$("#playbtn").attr("src","images/playbtn.gif");
	//}
	//if(playerstate=="0")
	//{
	//	$("#playbtn").attr("src","images/pausebtn.gif");
	//}
    //});
    $("#searchbtn").click(function(){
    var keyword = $("#search").val();
        //alert(keyword);
        window.location.href="tvlist.aspx?keyword="+keyword;
        //location.href="tvlist.aspx?keyword="+keyword;
    });
    
    //show class tree
    
	$("#closeFloatrd").click(function(){
		$("#floatrd").hide("slow");
	});
	
}

$(document).ready(function() {initMenu();});


