var topNav = $('topNav');
var t;
var tcount = 80;
var f=0;
if(topNav){
	$('tipLink').onclick = function(){
		if( f == 0 ){
			this.innerHTML = "查看5iKFC最新的电子优惠券▲";
			t = setInterval(function(){tcount > 0 ? topNav.style.top = "-" + (tcount=tcount-8).toString()+"px" : clearInterval(t);}, 3);
			f = 1;
		}else{
			this.innerHTML = "查看5iKFC最新的电子优惠券▼";
			t = setInterval(function(){tcount < 80 ? topNav.style.top = "-" + (tcount=tcount+8).toString() + "px" : clearInterval(t);}, 3);
			f = 0;
		}
		this.blur();
		return(false);
	};
}
