function getCookie(name){
var cname=name+"=";
var dc=document.cookie;
    if (dc.length>0) {
    begin=dc.indexOf(cname);
        if (begin!=-1) {
       	   begin+=cname.length;
           end=dc.indexOf(";",begin);
           if (end==-1) end=dc.length;
           return unescape(dc.substring(begin,end)); }}
return null; }

function setCookie(name,value) {
var expire=new Date();
expire.setTime(expire.getTime()+(600000)); // set expiry to 10 minutes
document.cookie=name+"="+escape(value)+"; path=/"+"; expires="+expire.toGMTString(); }

function maybe() {
	if (eval(getCookie("hello"))==null) {
		alert('Malo e lelei and thank you for visiting!\n\nOur Lodge is currently closed for business, as we are in the process of re-locating to a beach front property on Haʻatafu Beach/Tongatapu. The planed re-opening date has been set for the 1st of July 2010! If you are interested to know more please visit our relocation blog at www.heilala-holiday-lodge.blogspot.com (click on our website\'s header picture after closing this notice window for a direct transfer to our blog).\n\nAn updated version of the "Heilala Holiday Lodge website" is expected to go live around March/April 2010!\n\nThanks again and hope to welcome you at the new Heilala Holiday Lodge!\nʻOfa atu, Management');
		setCookie('hello',1); }}