document.writeln("<link href=\"\/images\/dhcss.css\" rel=\"stylesheet\" type=\"text\/css\">");
document.writeln("<DIV id=home_tx style=\"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: auto; OVERFLOW: hidden; WIDTH: 950px; PADDING-TOP: 0px; POSITION: relative; HEIGHT: 1px\">");
document.writeln("<DIV class=home_tx id=home_tx_in style=\"POSITION: absolute; TOP: -37px; HEIGHT: 37px\" align=center>");
document.writeln("<DL><IMG src=\"\/images\/hometx_01.gif\"><\/DL><SPAN><B>您需要到冠帝最新的首页看看吗？或许有您感兴趣的产品。<\/B> ");
document.writeln("&nbsp;&nbsp;&nbsp;&nbsp;<A style=\"FLOAT: none\" href=\"http:\/\/www.quality-hj.com\/\" target=_blank>首页<\/A>&nbsp;&nbsp;&nbsp;&nbsp;<A style=\"FLOAT: none\" href=\"http:\/\/www.quality-hj.com\/Products.html\" target=_blank>产品中心<\/A><\/SPAN> <A style=\"CURSOR: pointer\" onfocus=this.blur() onClick=\"home_tx_hide();return false;\" href=\"#\"><IMG src=\"\/images\/hometx_04.gif\"><\/A> <\/DIV><\/DIV>")
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;
//div_home_tx.style.top ="0px";

function home_tx_show(){
	home_tx_stepshow();
}
function home_tx_stepshow(){
	var curHeight = parseInt(div_home_tx.offsetHeight);
	if(curHeight>=37){
		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(){
	if(is_home_tx_show){
		home_tx_stephide()
	}else{
		window.setTimeout(home_tx_stephide,1200);
	}
}

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 - 4) + "px";
    		div_home_tx_in.style.top = (parseInt(div_home_tx_in.style.top)-4)+"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);
}

