function flightInfoAnnouncement(par1, par2, par3, y) {
	if (par2=="planner") {
		return; // do not show the announcement in flight planner pages
	}
	
	genAnnounce(0, y, 535); // x, y, width
}

function getPdaAnnouncementHeight(par1, par2, par3) {
	var pdaAnnouncementHeight = 60;

	var obj = announcementArray;
	if (getCookie('hkia_announce') == obj.cookieName || !obj.isShow) {
		pdaAnnouncementHeight = 0; // do not show the PDA announcement
	}
	
	if (par2=="planner") {
		pdaAnnouncementHeight = 0; // do not show the announcement in flight planner pages
	}
	
	return pdaAnnouncementHeight;
}

function pdaAnnounceClose() {
	var expires = new Date();
	expires.setTime(expires.getTime()+(365*24*60*60*1000));
	var path = "/";
	var domain = (location.domain) ? location.domain : null;
	
	var obj = announcementArray;
	setCookie("hkia_announce", obj.cookieName, expires, path, domain, null);
	alert("此通告將不會於下次瀏覽時出現");
}