/* [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','2101',jdecode('Home'),jdecode(''),'/2101.html','true',[],'',''],
	['PAGE','8301',jdecode('About+Us'),jdecode(''),'/8301.html','true',[],'',''],
	['PAGE','9322',jdecode('How+We+Do+It'),jdecode(''),'/9322.html','true',[],'',''],
	['PAGE','9343',jdecode('How+We+Work'),jdecode(''),'/9343.html','true',[],'',''],
	['PAGE','10001',jdecode('Testimonials'),jdecode(''),'/10001.html','true',[],'',''],
	['PAGE','9001',jdecode('Contact+Us'),jdecode(''),'/9001.html','true',[],'',''],
	['PAGE','9364',jdecode('Titles+Guide+%26+FAQs'),jdecode(''),'/9364.html','true',[],'',''],
	['PAGE','15801',jdecode('DIY+-+What%26%23x27%3Bs+Involved'),jdecode(''),'/15801.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Delphi';
theSitetree.paletteFamily='652825';
theSitetree.keyvisualId='7542';
theSitetree.keyvisualName='kv_7542.jpg';
theSitetree.fontsetId='16659';
theSitetree.graphicsetId='12223';
theSitetree.contentColor='652825';
theSitetree.contentBGColor='818181';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Delphi',
				paletteFamily: 	'652825',
				keyvisualId: 	'7542',
				keyvisualName: 	'kv_7542.jpg',
				fontsetId: 		'16659',
				graphicsetId: 	'12223',
				contentColor: 	'652825',
				contentBGColor: '818181',
				a_color: 		'424242',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20100922-084659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20100922-092304'
};
webappMappings['7008']=webappMappings['7008-27927']={
webappId:    '7008',
documentId:  '9001',
internalId:  '27927',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20100512-224244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9322',
internalId:  '',
customField: '20100922-090727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9343',
internalId:  '',
customField: '20100922-091023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9364',
internalId:  '',
customField: '20100922-092428'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2101',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20100818-014636'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '8301',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '9322',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '9343',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10001',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '9001',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '9364',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20100922-092524'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '15801',
internalId:  '',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INLRBZ';
var companyName   = 'Successful+Stratas+++++++++++++++++++++++++Western+Australia';
var htmlTitle	  = 'Successful+Stratas+Western+Australia+-+residential+strata+title+property+development+services';
var metaKeywords  = 'battleaxe%2C+battleaxe+block%2C+battleaxe+lots%2C+battleaxe+subdivision%2C+battleaxe+sub-division%2C+built+strata%2C+common+property%2C+convert+duplex%2C+convert+strata+title%2C+convert+survey+strata%2C+converting+strata+title%2C+converting+survey+strata%2C+green+strata+title%2C+green+title%2C+green+title+block%2C+green+title+property%2C+green+title+vs+strata+title%2C+perth%2C+r+code%2C+rear+block+subdivision%2C+rear+block+sub-division%2C+rear+lot+subdivision%2C+rear+lot+sub-division%2C+rear+strata%2C+rear+strata%2C+rear+strata+block%2C+residential+property+subdivision%2C+residential+property+sub-division%2C+residential+strata%2C+residential+subdivision%2C+residential+sub-division%2C+single+strata+title%2C+strata%2C+strata+development%2C+strata+lot%2C+strata+lots%2C+strata+plan%2C+strata+title%2C+strata+title+guide%2C+strata+titles%2C+strata+titles+act+1985%2C+strata+value%2C+street+frontage%2C+survey+strata%2C+survey+strata+block%2C+survey+strata+conversion%2C+survey+strata+scheme%2C+survey+strata+title%2C+survey+strata+vs+strata%2C+triplex+strata%2C+types+of+strata%2C+vacant+block%2C+vacant+strata%2C+western+australia';
var metaContents  = 'Successful+Stratas+is+an+independent+residential+property+development+specialising+in+strata+title%2C+conversion+and+sub-division+project.+For+a+fixed+fee%2C+we+take+complete+responsibility+for+a+project+-+managing+the+diverse+tasks+involved+in+successfully+developing+any+property.+In+return%2C+we+offer+the+benefits+of+more+than+20+award-winning+years+experience+in+the+field%2C+and+a+well-proven+capacity+to+maximise+your+returns+and+minimise+your+risk+involved+in+property+development.';
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();
};

