/**************************************************************
代码整理：懒人图库　 ＊珍惜他人劳动，转载请自觉注明出处
**************************************************************/

var is_home_tx_show = false;
var div_home_tx = document.getElementById("home_tx");
var div_home_tx_in = document.getElementById("home_tx_in");
var stepms = 10;
/*
function home_tx_show(){
	alert("1-------------------->");
	home_tx_stepshow();
}
function home_tx_stepshow(){
	alert("2-------------------->");
	var curHeight = parseInt(div_home_tx.offsetHeight);
	if(curHeight>=700){
		is_home_tx_show = true;
	}else{
		div_home_tx.style.height = (curHeight + 4) + "px";
		div_home_tx_in.style.top = (parseInt(div_home_tx_in.style.top)+4)+"px";
		window.setTimeout(home_tx_stepshow,30);
	}
}*/
function home_tx_hide(){//flash首先调用。 1
	//alert("1=============>"+is_home_tx_show);
	document.getElementById("cn").style.display="";
	if(is_home_tx_show){
		home_tx_stephide();
	}else{
		//window.setTimeout(home_tx_stephide,1200);
		home_tx_stephide();
	}
}

function home_tx_stephide(){//flash首先调用。 2
	//alert("2=============>"+is_home_tx_show);
	var curHeight = parseInt(div_home_tx.style.height);
	if(curHeight<=330){
		is_home_tx_show = false;
	}else{
		try{
			div_home_tx.style.height = (curHeight - 8) + "px";
    		div_home_tx_in.style.top = (parseInt(div_home_tx_in.style.top)-8)+"px";
    		window.setTimeout(home_tx_stephide,30);
		} catch(e) {}
	}
}
//if(window.addEventListener){
//	window.addEventListener("load",home_tx_show,false);
//}else{
//	window.attachEvent("onload",home_tx_show);
//}
