//由冯雷编
$(document).ready(function(){
var delay;
var myval;
var myout;
function tostart(){
$("#overhead").hide(); 
delay=28;
$("#tophead").slideDown("slow");
myout=setTimeout(function(){$("#tophead").slideUp();$("#overhead").slideDown("slow");clearInterval(myval);},(delay+1)*1000);
myval=setInterval(function(){$("#delaytime").html(delay--);},1000);
}
//tostart();
$("#close_btn").bind("click",function(){
	$("#tophead").slideUp();
	$("#overhead").slideDown("slow"); 
	clearInterval(myval);
	clearTimeout(myout);
});
$("#overhead").bind("click",function(){
	tostart();	
});	
tostart();
})

//使用setTimeout 和 setInterval时  必须注意清理；
