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 div_home_tx_top = document.getElementById("home_tx_top");
var stepms = 10;

function home_tx_show(){
	div_home_tx_top.style.display = "block";
	home_tx_stepshow();
}
function home_tx_stepshow(){
	var curHeight = parseInt(div_home_tx.offsetHeight);
	if(curHeight>=556){
		is_home_tx_show = true;
		div_home_tx_in.style.display="block";
		window.setTimeout(home_tx_hide,10000);
	}else{
		div_home_tx.style.height = (curHeight + 2) + "px";
		div_home_tx_top.style.height = (curHeight + 2 ) + "px";
		div_home_tx_in.style.top = (parseInt(div_home_tx_in.style.top)+2)+"px";
		window.setTimeout(home_tx_stepshow,10);
	}
}
function home_tx_hide(){
	if(is_home_tx_show){
		home_tx_stephide()
		div_home_tx_in.style.display="none";
	}else{
		window.setTimeout(home_tx_stephide,100000);
	}
}

function home_tx_stephide(){
	var curHeight = parseInt(div_home_tx.style.height);
	if(curHeight<=0){
		is_home_tx_show = false;
	}else{
		try{
			div_home_tx.style.height = (curHeight - 2) + "px";
			div_home_tx_top.style.height = (curHeight - 2) + "px";
    		div_home_tx_in.style.top = (parseInt(div_home_tx_in.style.top)-2)+"px";
    		window.setTimeout(home_tx_stephide,10);
		} catch(e) {}
	}
}
if(window.addEventListener)
{
	window.addEventListener("load",home_tx_show,false);
}
else {
	window.attachEvent("onload",home_tx_show);
}


