var AdRoot = "/2010/CJ/"; //本文件放置的路径
var AdUrl = "/v/"; //广告的链接地址
/********************/
document.writeln("<link href=\""+AdRoot+"Css.Css\" rel=\"stylesheet\" type=\"text/css\">");
document.writeln("<div id=\"home_tx\">");
document.writeln("	<a href=\"/v/\" target=\"_blank\">");
document.writeln("		<div class=\"home_tx\" id=\"home_tx_in\" style=\"height:100px;top:-100px\">");
document.writeln("		<img style=\"Cursor:Pointer\" onfocus=this.blur() onclick=\"home_tx_hide();return false;\" src=\""+AdRoot+"Close.gif\">");
document.writeln("		</div>");
document.writeln("	</a>");
document.writeln("</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;

function home_tx_show(){
	home_tx_stepshow();
}
function home_tx_stepshow(){
	var curHeight = parseInt(div_home_tx.offsetHeight);
	if(curHeight>=100){
		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,10);
	}
}
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);
}