
$(function() {
	// show and hide button
	$( "#search" ).live('click',function() {
		$( "#searchSec" ).show( "blind", {}, 500 );
		$("#search").hide();
		$("#cancel").show();
		return false;
	});
	$( "#cancel" ).live('click',function() {
		$( "#searchSec" ).hide( "blind", {}, 500);
		$("#search").show();
		$("#cancel").hide();
		return false;
	});
	$( "#searchSec" ).hide();
	$( "#cancel" ).hide();
	
	//播放列表下拉
	$(".vidDetail").hide();
	
	$(".vidDetailShow").live('click', function(){
                //alert($(this).next("div").attr("id"));
		var id = "des_" + $(this).attr("id").substring(5);
		var id2 = "up_" + $(this).attr("id").substring(5);
                //$("#"+id).show(500);
		$("#"+id).show("blind");
		$(this).hide();
		$("#"+id2).show();
	});
	
	$(".vidDetailHide").live('click', function(){
		var id = "des_" + $(this).attr("id").substring(3);
		var id2 = "down_" + $(this).attr("id").substring(3);
		//$("#"+id).hide("blind", {}, 500);
                $("#"+id).hide(500);
		$(this).hide();
		$("#"+id2).show();
	});			
});

var isShowAll = false;
function showAllDesc(obj){
	var descSpan = document.getElementById("desc_");
	var descTmp = document.getElementById("desc_tmp");
	var points = document.getElementById("points");
	var tmp = descSpan.innerHTML;
	
	descSpan.innerHTML = descTmp.value;
	descTmp.value = tmp;
	
	if(!isShowAll){
		isShowAll = true;
		obj.src = "./img/more_text_0.png";
		points.style.display = "none";
	}else{
		isShowAll = false;
		obj.src = "./img/more_text_0.png";
		points.style.display = "";
	}
}






