
jq(function(){
	
//先隐藏,然后用animate ()动态展开.
	jq('#ads').hide();
	jq("#ads").animate({
  height: 'toggle', opacity: 'toggle'
}, "slow");
	

//控制关闭
	jq("#closeimg").click(function(){
	jq("#ads").animate({
  height: 'toggle', opacity: 'toggle'
}, "slow");

temp=0;//跟计时代码 要联系下.

})
// setTimeout("nonead()",10000); //停留时间自己适当调整
 
})


//隐藏代码
function nonead()
{
	jq("#ads").animate({
  height: 'toggle', opacity: 'toggle'
}, "slow");

}


//广告倒计时代码
var temp=55; 
function oJump() 
{ 
temp-=1 
//jq("#myclock").text("45秒广告时间,倒计时："+temp);
jq("#myclock").text("倒计时："+temp); 
if(temp==0) 
  {
   clearTimeout(guangobj);//如果已经为0,停止执行任务
   nonead();//我把隐藏 移到这来了
   } 
} 
var guangobj=setInterval("oJump()",1000); //每1秒执行一次.

