function GetCookie (name) {  

var arg = name + "=";  

var alen = arg.length;  

var clen = document.cookie.length;  

var i = 0;  

while (i < clen) {    

var j = i + alen;    

if (document.cookie.substring(i, j) == arg)      

return getCookieVal (j);    

i = document.cookie.indexOf(" ", i) + 1;    

if (i == 0) break;   

}  

return null;

}

function SetCookie (name, value) {  

var argv = SetCookie.arguments;  

var argc = SetCookie.arguments.length;  

var expires = (argc > 2) ? argv[2] : null;  

var path = (argc > 3) ? argv[3] : null;  

var domain = (argc > 4) ? argv[4] : null;  

var secure = (argc > 5) ? argv[5] : false;  

document.cookie = name + "=" + escape (value) + 

((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 

//((path == null) ? "" : ("; path=" + path)) +  
"; path=/" +  

((domain == null) ? "" : ("; domain=" + domain)) +    

((secure == true) ? "; secure" : "");

}

function getCookieVal (offset) {  

var endstr = document.cookie.indexOf (";", offset);  

if (endstr == -1)    

endstr = document.cookie.length;  

return unescape(document.cookie.substring(offset, endstr));

}



var xmlFile="/TopAnnounce.asp";
var xmlDoc;

xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load(xmlFile);

if(xmlDoc.getElementsByTagName("isclose")[0].firstChild.nodeValue==0 && GetCookie("topaccounce")!="close"){
	announce=''
	announce+='<table width="980" border="0" align="center" cellpadding="0" cellspacing="0" id="topaccounce" style="display:;">'
	announce+='  <tr>'
	announce+='    <td height="2"></td>'
	announce+='  </tr>'
	announce+='  <tr>'
	announce+='    <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFD532">'
	announce+='      <tr>'
	announce+='        <td bgcolor="#FFFFBB"><table width="100%" border="0" cellspacing="3" cellpadding="0">'
	announce+='            <tr>'
	announce+='              <td width="30" align="center" valign="middle"><img src="/images/top/th.gif" width="20" height="20"></td>'
	announce+='              <td>'+xmlDoc.getElementsByTagName("text")[0].firstChild.nodeValue+'</td>'
	announce+='              <td width="18" align="right" valign="top"><table border="0" cellpadding="0" cellspacing="0">'
	announce+='                  <tr>'
	announce+='                    <td valign="bottom"><img src="/images/top/close.gif" width="15" height="13" style="cursor:pointer;" onClick="hidaccounce()"></td>'
	announce+='                  </tr>'
	announce+='              </table></td>'
	announce+='            </tr>'
	announce+='        </table></td>'
	announce+='      </tr>'
	announce+='    </table></td>'
	announce+='  </tr>'
	announce+='  <tr>'
	announce+='    <td height="2"></td>'
	announce+='  </tr>'
	announce+='</table>'
	document.write (announce)
}
function hidaccounce(){
	eval("document.all[\"topaccounce\"].style.display = \"none\"") 
	SetCookie ("topaccounce","close")
}

function closeaccounce(){
	if (GetCookie("topaccounce")=="close"){
		eval("document.all[\"topaccounce\"].style.display = \"none\"") 
	}
}