/* [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','62901',jdecode('IMPORTANT+NEWS'),jdecode(''),'/62901.html','true',[],'',''],
	['PAGE','66301',jdecode('CHILD+CARE+OPENS%21'),jdecode(''),'/66301.html','true',[],'',''],
	['PAGE','46301',jdecode('CENTRE+NEWS'),jdecode(''),'/46301/index.html','true',[ 
		['PAGE','4164',jdecode('Post+School'),jdecode(''),'/46301/4164.html','true',[],'',''],
		['PAGE','46322',jdecode('SCHOOL+LEAVERS'),jdecode(''),'/46301/46322.html','true',[],'','']
	],'',''],
	['PAGE','46343',jdecode('ACCOMODATION'),jdecode(''),'/46343.html','true',[],'',''],
	['PAGE','61501',jdecode('THIS+MONTH%3A'),jdecode(''),'/61501/index.html','true',[ 
		['PAGE','55101',jdecode('Aug%2FNov+News'),jdecode(''),'/61501/55101.html','true',[],'',''],
		['PAGE','53301',jdecode('July+News'),jdecode(''),'/61501/53301.html','true',[],'',''],
		['PAGE','51501',jdecode('May+%2FJune+News'),jdecode(''),'/61501/51501.html','true',[],'',''],
		['PAGE','34501',jdecode('April+News'),jdecode(''),'/61501/34501.html','true',[],'',''],
		['PAGE','33701',jdecode('March+News'),jdecode(''),'/61501/33701.html','true',[],'',''],
		['PAGE','33001',jdecode('February+News'),jdecode(''),'/61501/33001.html','true',[],'',''],
		['PAGE','27801',jdecode('++January+News'),jdecode(''),'/61501/27801.html','true',[],'',''],
		['PAGE','867',jdecode('Previous+News'),jdecode(''),'/61501/867.html','true',[],'','']
	],'',''],
	['PAGE','52501',jdecode('PHOTO+NEWS+%21'),jdecode(''),'/52501/index.html','true',[ 
		['PAGE','3101',jdecode('Photo+Album'),jdecode(''),'/52501/3101.html','true',[],'','']
	],'',''],
	['PAGE','4143',jdecode('Disability+Support'),jdecode(''),'/4143/index.html','true',[ 
		['PAGE','4185',jdecode('In+Home+Support'),jdecode(''),'/4143/4185.html','true',[],'','']
	],'',''],
	['PAGE','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','7501',jdecode('HELP+OUR+KIDS'),jdecode(''),'/7501.html','true',[],'',''],
	['PAGE','8401',jdecode('OUR+STORIES'),jdecode(''),'/8401.html','true',[],'',''],
	['PAGE','699',jdecode('WORK+WITH+US'),jdecode(''),'/699/index.html','true',[ 
		['PAGE','19901',jdecode('+Work+Available%21'),jdecode(''),'/699/19901.html','true',[],'','']
	],'',''],
	['PAGE','4701',jdecode('DONATIONS'),jdecode(''),'/4701/index.html','true',[ 
		['PAGE','5301',jdecode('Donations'),jdecode(''),'/4701/5301.html','true',[],'','']
	],'',''],
	['PAGE','3201',jdecode('Online+Shop'),jdecode(''),'/3201.html','true',[],'',''],
	['PAGE','552',jdecode('About+us'),jdecode(''),'/552/index.html','true',[ 
		['PAGE','573',jdecode('The+team'),jdecode(''),'/552/573.html','true',[],'',''],
		['PAGE','26401',jdecode('Privacy+Statement'),jdecode(''),'/552/26401.html','true',[],'',''],
		['PAGE','26422',jdecode('Problem+%3F'),jdecode(''),'/552/26422.html','true',[],'',''],
		['PAGE','27101',jdecode('Mission+%26+Values'),jdecode(''),'/552/27101.html','true',[],'','']
	],'',''],
	['PAGE','3343',jdecode('Therapy+Options'),jdecode(''),'/3343/index.html','true',[ 
		['PAGE','615',jdecode('Physiotherapy'),jdecode(''),'/3343/615.html','true',[],'',''],
		['PAGE','636',jdecode('Orthotics'),jdecode(''),'/3343/636.html','true',[],'',''],
		['PAGE','9601',jdecode('Neurofeedback'),jdecode(''),'/3343/9601.html','true',[],'','']
	],'',''],
	['PAGE','4101',jdecode('Children%26%23x27%3Bs+Services'),jdecode(''),'/4101.html','true',[],'',''],
	['PAGE','4227',jdecode('Training'),jdecode(''),'/4227.html','true',[],'',''],
	['PAGE','720',jdecode('Contact'),jdecode(''),'/720/index.html','true',[ 
		['PAGE','10601',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/720/10601.html','false',[],'',''],
		['PAGE','762',jdecode('How+to+find+us'),jdecode(''),'/720/762.html','true',[],'','']
	],'',''],
	['PAGE','2906',jdecode('Community+Page'),jdecode(''),'/2906/index.html','true',[ 
		['PAGE','2901',jdecode('Read+Community+Page'),jdecode(''),'/2906/2901.html','false',[],'','']
	],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Bubbles';
theSitetree.paletteFamily='FF7C00';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='13';
theSitetree.graphicsetId='10';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bubbles',
				paletteFamily: 	'FF7C00',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'13',
				graphicsetId: 	'10',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FF7C00',
				b_color: 		'FF8900',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-8075787']={
webappId:    '1501',
documentId:  '501',
internalId:  '8075787',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-2906aen010in34x3']={
webappId:    '1002',
documentId:  '2906',
internalId:  '2906aen010in34x3',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-c16c1d2dd6e26e3c67849656cf8d3199']={
webappId:    '7060',
documentId:  '3101',
internalId:  'c16c1d2dd6e26e3c67849656cf8d3199',
customField: 'language:en;country:US;'
};
webappMappings['4001']=webappMappings['4001-8076201']={
webappId:    '4001',
documentId:  '3201',
internalId:  '8076201',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62901',
internalId:  '',
customField: '20091128-034129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20081210-012643'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-997589a89c7de2cc87b835b4da72b05f']={
webappId:    '7060',
documentId:  '52501',
internalId:  '997589a89c7de2cc87b835b4da72b05f',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-2143']={
webappId:    '7008',
documentId:  '720',
internalId:  '2143',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20091128-034336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4164',
internalId:  '',
customField: '20070825-031811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46322',
internalId:  '',
customField: '20091128-034512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46343',
internalId:  '',
customField: '20081210-012528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61501',
internalId:  '',
customField: '20091128-034900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55101',
internalId:  '',
customField: '20080806-211234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53301',
internalId:  '',
customField: '20080806-192211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51501',
internalId:  '',
customField: '20080522-192336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34501',
internalId:  '',
customField: '20080415-212515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33701',
internalId:  '',
customField: '20080316-154615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20080221-025119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27801',
internalId:  '',
customField: '20080212-012517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '867',
internalId:  '',
customField: '20080212-000005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52501',
internalId:  '',
customField: '20080619-161350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20070820-052109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4143',
internalId:  '',
customField: '20080708-232543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4185',
internalId:  '',
customField: '20070825-031702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20070918-183422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20070922-193447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20081210-013639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20081210-014125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20080708-234205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20070905-030159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3201',
internalId:  '',
customField: '20070918-002249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20070918-184409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20070918-184520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20080208-183347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26422',
internalId:  '',
customField: '20080208-191222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20080209-175236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3343',
internalId:  '',
customField: '20081210-014305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20080708-233501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20070825-021556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20070825-024842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20080213-043145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4227',
internalId:  '',
customField: '20070822-033447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20070826-042507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20070822-034130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '762',
internalId:  '',
customField: '20070820-051331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2906',
internalId:  '',
customField: '20070905-032636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20070414-045537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66301',
internalId:  '',
customField: '20091128-040128'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010IN34X3';
var companyName   = 'ABLECARE++LEARNING';
var htmlTitle	  = 'Ablecare+Early+Learning+and+Childcare+.....+Disability+Support+for+Children+and+Adults';
var metaKeywords  = 'child+care%2C+children%2C+vacation.+holiday%2C+disability%2C+special+needs%2C+education%2C+tutoring%2C+post+schools%2C+schools%2C+autism%2C+aspergers%2C+cerebral+palsy%2C+help%2C+therapy%2C+psychology%2C+school%2C+training%2C+work+experience%2C+donation%2C+gift';
var metaContents  = 'Child+care%2C+vacation+care%2C+holiday+care%2C+respite%2C+kids%2C+Disability+support+programmes%2C+in+home+support%2C+accommodation%2C+respite%2C+therapy%2C+physiotherapy%2C+tutoring.++Centres+in+Brisbane+North+and+North+Queensland.+Disability%2C+Community+programmes+Brisbane+and+North+Coast+Region.';
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();
};
