/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','150661',jdecode('Welcome+to+Nunyara'),jdecode(''),'/150661.html','true',[],'',''],
	['PAGE','1347',jdecode('Welcome+Bressington'),jdecode(''),'/1347.html','false',[],'',''],
	['PAGE','15701',jdecode('What%26%23x27%3Bs+new%3F'),jdecode(''),'/15701.html','false',[],'',''],
	['PAGE','158261',jdecode('Staying+at+Nunyara'),jdecode(''),'/158261.html','true',[],'',''],
	['PAGE','158287',jdecode('Things+to+see+and+do'),jdecode(''),'/158287/index.html','true',[ 
		['PAGE','46739',jdecode('Places+To+Visit+'),jdecode(''),'/158287/46739.html','true',[],'',''],
		['PAGE','34339',jdecode('Favourite+links'),jdecode(''),'/158287/34339.html','true',[],'','']
	],'',''],
	['PAGE','166861',jdecode('Logistics'),jdecode(''),'/166861.html','true',[],'',''],
	['PAGE','1378',jdecode('Images+of+Nunyara'),jdecode(''),'/1378.html','true',[],'',''],
	['PAGE','118761',jdecode('An+Aussie+Xmas'),jdecode(''),'/118761.html','false',[],'',''],
	['PAGE','12901',jdecode('News+from+Nunyara'),jdecode(''),'/12901.html','true',[],'',''],
	['PAGE','136761',jdecode('Mum+and+Rachel'),jdecode(''),'/136761.html','false',[],'',''],
	['PAGE','146061',jdecode('Cousin+Peter+in+Oz'),jdecode(''),'/146061.html','false',[],'',''],
	['PAGE','1420',jdecode('The+Nunyara+Blog'),jdecode(''),'/1420.html','true',[],'',''],
	['PAGE','3101',jdecode('About+Nick'),jdecode(''),'/3101/index.html','false',[ 
		['PAGE','10727',jdecode('Nicks+family'),jdecode(''),'/3101/10727.html','true',[],'','']
	],'',''],
	['PAGE','77739',jdecode('Movember+2009'),jdecode(''),'/77739/index.html','false',[ 
		['PAGE','48339',jdecode('Nick%26%23x27%3Bs+diet'),jdecode(''),'/77739/48339.html','true',[],'','']
	],'',''],
	['PAGE','3127',jdecode('About+Tina'),jdecode(''),'/3127/index.html','false',[ 
		['PAGE','18201',jdecode('My+mates%21%21'),jdecode(''),'/3127/18201.html','true',[],'',''],
		['PAGE','64839',jdecode('What+do+you+see%3F'),jdecode(''),'/3127/64839.html','false',[],'',''],
		['PAGE','69839',jdecode('Funny+Stuff'),jdecode(''),'/3127/69839.html','false',[],'','']
	],'',''],
	['PAGE','6501',jdecode('Pearls+of+Wisdom'),jdecode(''),'/6501/index.html','false',[ 
		['PAGE','89750',jdecode('Quotes+of+the+Week'),jdecode(''),'/6501/89750.html','true',[],'',''],
		['PAGE','74939',jdecode('Hidden+Messages'),jdecode(''),'/6501/74939.html','false',[],'','']
	],'',''],
	['PAGE','9901',jdecode('Reconciliation'),jdecode(''),'/9901.html','false',[],'',''],
	['PAGE','131161',jdecode('Moral+Dilemmas'),jdecode(''),'/131161.html','false',[],'',''],
	['PAGE','10753',jdecode('Our+families'),jdecode(''),'/10753.html','false',[],'',''],
	['PAGE','46339',jdecode('Personal+Growth'),jdecode(''),'/46339.html','false',[],'',''],
	['PAGE','9927',jdecode('Dictionary'),jdecode(''),'/9927.html','false',[],'',''],
	['PAGE','49339',jdecode('One+Fine+Day...%21%21'),jdecode(''),'/49339.html','false',[],'',''],
	['PAGE','122861',jdecode('Kennys+Capers'),jdecode(''),'/122861.html','false',[],'',''],
	['PAGE','1399',jdecode('Photo+Album'),jdecode(''),'/1399.html','false',[],'',''],
	['PAGE','38539',jdecode('Wildlife+at+Nunyara'),jdecode(''),'/38539.html','true',[],'',''],
	['PAGE','169261',jdecode('Useful+info'),jdecode(''),'/169261.html','true',[],'',''],
	['PAGE','171061',jdecode('Availability'),jdecode(''),'/171061.html','true',[],'',''],
	['PAGE','158361',jdecode('Rates+and+Bookings'),jdecode(''),'/158361.html','true',[],'',''],
	['PAGE','1473',jdecode('Make+an+enquiry'),jdecode(''),'/1473.html','true',[],'',''],
	['PAGE','1431',jdecode('Guestbook'),jdecode(''),'/1431.html','true',[],'',''],
	['PAGE','189161',jdecode('Food+Choices'),jdecode(''),'/189161.html','true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFFBF2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10444';
theSitetree.graphicsetId='10823';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFBF2';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Roses',
				paletteFamily: 	'FFFBF2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10444',
				graphicsetId: 	'10823',
				contentColor: 	'000000',
				contentBGColor: 'FFFBF2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-97c9aea7dde9ecb3be9c5404d35bcb46']={
webappId:    '7060',
documentId:  '1399',
internalId:  '97c9aea7dde9ecb3be9c5404d35bcb46',
customField: 'language:en;country:GB;'
};
webappMappings['7050']=webappMappings['7050-903']={
webappId:    '7050',
documentId:  '1420',
internalId:  '903',
customField: 'language:en;country:GB;'
};
webappMappings['7002']=webappMappings['7002-775']={
webappId:    '7002',
documentId:  '1431',
internalId:  '775',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-2080']={
webappId:    '7008',
documentId:  '1473',
internalId:  '2080',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1347',
internalId:  '',
customField: '20091118-115340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1378',
internalId:  '',
customField: '20100629-134809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1399',
internalId:  '',
customField: '20081104-140337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1420',
internalId:  '',
customField: '20080803-014601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1431',
internalId:  '',
customField: '20100506-143518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1473',
internalId:  '',
customField: '20091214-061940'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '150661',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3127',
internalId:  '',
customField: '20081206-134755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20091124-071525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20081209-095928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20090122-182158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9927',
internalId:  '',
customField: '20090109-170056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '171061',
internalId:  '',
customField: '20100121-062816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10727',
internalId:  '',
customField: '20090309-130534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10753',
internalId:  '',
customField: '20081114-133750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158261',
internalId:  '',
customField: '20100516-125315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20100726-061149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118761',
internalId:  '',
customField: '20090105-131935'
};
webappMappings['1501']=webappMappings['1501-6987688']={
webappId:    '1501',
documentId:  '150661',
internalId:  '6987688',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20091118-115614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20081117-191716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158361',
internalId:  '',
customField: '20100506-143347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158287',
internalId:  '',
customField: '20100818-025700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146061',
internalId:  '',
customField: '20090319-102814'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '150661',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150661',
internalId:  '',
customField: '20100818-024505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136761',
internalId:  '',
customField: '20090223-121222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34339',
internalId:  '',
customField: '20100818-030037'
};
webappMappings['7060']=webappMappings['7060-232c529265687abf76e6090d8e9751f4']={
webappId:    '7060',
documentId:  '10727',
internalId:  '232c529265687abf76e6090d8e9751f4',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-2881']={
webappId:    '7008',
documentId:  '9901',
internalId:  '2881',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38539',
internalId:  '',
customField: '20100726-062112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46339',
internalId:  '',
customField: '20090124-153331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46739',
internalId:  '',
customField: '20100506-142104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48339',
internalId:  '',
customField: '20090517-063946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49339',
internalId:  '',
customField: '20081027-233722'
};
webappMappings['7060']=webappMappings['7060-304519e1e6c0fabf1f23b997798306c8']={
webappId:    '7060',
documentId:  '49339',
internalId:  '304519e1e6c0fabf1f23b997798306c8',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64839',
internalId:  '',
customField: '20081112-180402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69839',
internalId:  '',
customField: '20081111-062841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74939',
internalId:  '',
customField: '20081101-064249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77739',
internalId:  '',
customField: '20091123-234430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166861',
internalId:  '',
customField: '20100516-122750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169261',
internalId:  '',
customField: '20100818-030801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89750',
internalId:  '',
customField: '20081112-180228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189161',
internalId:  '',
customField: '20100726-061313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122861',
internalId:  '',
customField: '20090227-222128'
};
webappMappings['7060']=webappMappings['7060-fb4cd8ee422212a075829f1437e7bd8c']={
webappId:    '7060',
documentId:  '118761',
internalId:  'fb4cd8ee422212a075829f1437e7bd8c',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131161',
internalId:  '',
customField: '20090110-195922'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20INEMN2';
var companyName   = 'Nunyara+Retreat';
var htmlTitle	  = 'Nunyara+Retreat';
var metaKeywords  = 'Homestay%2C+Queensland%2C+Hinterland%2C+Brisbane%2C+Gold+Coast%2C+Bush%2C+Tropical%2C+Wildcare%2C+Land+for+Wildlife%2C+Hotel%2C+Bed+and+Breakfast%2C+Self+Catering%2C+Accomodation%2C+Holiday%2C+Theme+Parks';
var metaContents  = 'Homestay+accomodation+in+the+bush+midway+between+Brisbane+and+The+Gold+Coast.';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
