document.write(''); var intHeight = 0; var AdDiv = "IndexAd04"; var AdDivHeight = "0"; var objAdDiv = document.getElementById(AdDiv); function InitIndexAd() { if(intHeight < AdDivHeight) { objAdDiv.style.height = intHeight; intHeight += 10; setTimeout("InitIndexAd()", 10); } else { objAdDiv.style.height = AdDivHeight; } } function CloseIndexAd() { if(intHeight > 0) { objAdDiv.style.height = intHeight; intHeight -= 10; setTimeout("CloseIndexAd()", 10); } else { objAdDiv.style.height = 0; } } if(AdDivHeight > 0) { InitIndexAd(); setTimeout("CloseIndexAd()", 10000); }