var time = 500;
var h = 0;
var T = 596;
var N = 596; //高度 595
    
function addCount()
{
	/*if(time>0)
	{
		time--;
		h = h+5;
	}
	else
	{
		return;
	}
	if(h>=T)  //高度
	{
		return;
	}*/
	document.getElementById("ads").style.display = "";
	document.getElementById("ads").style.height = T+"px";
	//setTimeout("addCount()",10);
}

function noneAds()
{
	if(T>0)
	{
		T--;
		N = N-5;
	}
	else
	{
		return;
	}
	if(N<=0)
	{
		document.getElementById("ads").style.display = "none";
		return;
	}

	document.getElementById("ads").style.height = N+"px";
	setTimeout("noneAds()",50);
}

/*
window.onload = function showAds()		
{
	addCount();
	setTimeout("noneAds()",5000); //停留时间自己适当调整
}


//图片及链接调整下句：

document.write("<a href=\"/NewReport/ShowArticle.asp?ArticleID=21588\" target=\"_blank\"><img src=\"/AD/UploadADPic/201201/2012011810075344.jpg\" /></a>");
*/
