function $(id){
	return document.getElementById(id);
}

var docT,infoT,infoH,infoS;
var ykfl = $("youkuFlash");
var ykflH2 = $("youkuFlashH2");
var youkuFlashH2colse = $("youkuFlashH2colse");
var flashswf = $("flashswf");
var flashswfsrc = $("flashswf").src;

function openS() {
	if (ykfl.style.bottom == "0px") {
		clearInterval(timer);
	} else {
		var temp = ykfl.style.bottom;
		temp = temp.substring(0, temp.length - 2);
		temp = parseInt(temp) + 10;
		ykfl.style.bottom = temp + "px";
	}
}

timer = setInterval("openS()", 50);
setTimeout("clearInterval(timer)", 3000)

function openC() {
	if (ykfl.style.bottom == "-220px") {
		clearInterval(timerc);
		ykfl.style.width = "120px"
	} else {
		var temp = ykfl.style.bottom;
		temp = temp.substring(0, temp.length - 2);
		temp = parseInt(temp) - 100;
		ykfl.style.bottom = temp + "px";
	}
}

function scroolColse() {
	if (youkuFlashH2colse.innerHTML == "关闭") {
		timerc = setInterval("openC()", 1);
		flashswf.src = "";
		youkuFlashH2colse.innerHTML = "点击观看视频";
	} else {
		ykfl.style.width = "240px"
		timero = setInterval("openS()", 10);
		flashswf.src = flashswfsrc;
		youkuFlashH2colse.innerHTML = "关闭";
	}
}

