// JavaScript Document
var time = 300;
var h = 0;
function addCount()
{
	if(time>0)
	{
		time--;
		h = h + 5;
	}
	else
	{
		return;
	}
	if(h>284)  //߶
	{
		return;
	}
	document.getElementById("IndexTop").style.display = "";
	document.getElementById("IndexTop").style.height = h+"px";
	setTimeout("addCount()",10); 
}

window.onload = function showAds()
{
	addCount();
	setTimeout("noneAds()",30000); //ͣʱԼʵ
}
    
var T = 284;
var N = 284; //߶
function noneAds()
{
	if(T>0)
	{
			T--;
			N = N-5;
	}
	else
	{
			return;
	}
	if(N<0)
	{
			document.getElementById("IndexTop").style.display = "none";
			return;
	}
	
	document.getElementById("IndexTop").style.height = N+"px";
	setTimeout("noneAds()",30); 
}
