String.prototype.URIEncode=function(){return encodeURIComponent(this).replace(/%20/g,"+");};String.prototype.URIDecode=function(){return decodeURIComponent(this.replace(/\+/g," "));};
JJ.COOKIE=(function(){var i,nv,o={},c = d.cookie.split(";");if(c!=""){for(i=0;i<c.length;i++){nv=(c[i].replace(/^ +| +$/g, "")).split("=");o[nv[0].URIDecode()]=nv[1].URIDecode();}}return o;})();
JJ.deleteCookie=function(str){d.cookie=str.URIEncode()+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC";this.COOKIE[str]=undefined;};
JJ.setCookie=function(){var isNum,now,ex="",path="";if(arguments.length>2){isNum=typeof(arguments[2])=="number";if(isNum){now=new Date();ex="; expires="+(new Date(now.getFullYear(),now.getMonth(),now.getDate()+arguments[2])).toUTCString();}if(!isNum||arguments.length==4){path="; path="+arguments[arguments.length-1];}}d.cookie=arguments[0].URIEncode()+"="+arguments[1].URIEncode()+ex+path;this.COOKIE[arguments[0]] = arguments[1];};

function init(){
	if (JJ.flash >= 6) {
		g("intro").innerHTML = '<embed src="/flash/intro.swf" menu="false" quality="best" wmode="transparent" bgcolor="#5b240f" width="750" height="550" type="application/x-shockwave-flash" />';
	}
	else {
		g("intro").innerHTML = menuStr + '<h1>Welcome to Anna&#8217;s Bed and Breakfast &amp; Guest House</h1><h2>Accommodation in St. Lucia, KwaZulu-Natal, South Africa in the heart of Zululand.</h2><p>Set in a compact garden of palm trees and indigenous cycads we offer quality accommodation befitting our <b>3 star rating</b>.</p><p>Our website uses Flash and if you are using a visual browser like Internet Explorer, Mozilla Firefox, Safari, Chrome, Opera or other, we will highly recommend that you download the newest version of the <a href="http://get.adobe.com/flashplayer/" title="Download link to Adobe&#39;s Flash Player">Flash player</a> to get the best experience of our site.</p><p>If you are using a non-visual browser, the website is offering alternative navigation solutions and detailed descriptions of pictures and Flash animations.</p>';
	}
	if (navigator.cookieEnabled) {
		g("no-show").innerHTML = '<input id="noshow" type="checkbox"' + (JJ.COOKIE["nointro"] ? ' checked="checked"' : '') + ' />';
		g("no-show-label").innerHTML = '<label for="noshow">&#160;Don&#39;t show this page again on this computer</label>';
	}
}

JJ.addEvent([window], ["load", "unload"], [init, function() {
	if(g("noshow").checked) {
		JJ.setCookie("nointro", "1", 365);
	}
	else {
		JJ.deleteCookie("nointro");
	}
}]);



