/* [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','1901',jdecode('Home'),jdecode(''),'/1901.html','true',[],'',''],
	['PAGE','28801',jdecode('About+us'),jdecode(''),'/28801/index.html','true',[ 
		['PAGE','29001',jdecode('Our+Vision'),jdecode(''),'/28801/29001.html','true',[],'',''],
		['PAGE','29022',jdecode('Our+Mission'),jdecode(''),'/28801/29022.html','true',[],'','']
	],'',''],
	['PAGE','4601',jdecode('Legal+Areas'),jdecode(''),'/4601.html','true',[],'',''],
	['PAGE','4643',jdecode('Newsletter'),jdecode(''),'/4643.html','true',[],'',''],
	['PAGE','2401',jdecode('Contact+Us'),jdecode(''),'/2401.html','true',[],'',''],
	['PAGE','6701',jdecode('Website+Disclaimer'),jdecode(''),'/6701.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Office';
theSitetree.paletteFamily='727D9C';
theSitetree.keyvisualId='11141';
theSitetree.keyvisualName='kv_11141.jpg';
theSitetree.fontsetId='32062';
theSitetree.graphicsetId='13879';
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: 			'Office',
				paletteFamily: 	'727D9C',
				keyvisualId: 	'11141',
				keyvisualName: 	'kv_11141.jpg',
				fontsetId: 		'32062',
				graphicsetId: 	'13879',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				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:  '1901',
internalId:  '',
customField: '20100519-204449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20100425-144020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20100406-103807'
};
webappMappings['7050']=webappMappings['7050-597']={
webappId:    '7050',
documentId:  '4643',
internalId:  '597',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20091214-221008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4643',
internalId:  '',
customField: '20100406-104228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28801',
internalId:  '',
customField: '20100406-103851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29001',
internalId:  '',
customField: '20100203-222916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29022',
internalId:  '',
customField: '20100203-223208'
};
var canonHostname = 'sitebuilder1.jnb2.host-h.net';
var accountId     = 'AHTZ10IN25W3';
var companyName   = 'Van+Dyk+Attorneys';
var htmlTitle	  = '';
var metaKeywords  = 'Schalk+van+Dyk%3B+Schalk+Jurgens+van+Dyk%3B+Boswell+Street%3B+Kempton+Park%3B+Lawyer%3B+Lawyers%3B+Lawyers+in+Kempton+Park%3B+Kempton+Park+Lawyers%3B+Lawyer+Schalk+van+Dyk%3B+Lawyers+Van+Dyk+Attorneys%3B+Van+Dyk+Attorneys+%2B+Kempton+Park%3B+Kempton+Park+Attorneys%3B+Attorneys%3B+Attorney%3B+attorneys%3B+attorneys%3B+Attorneys+in+Kempton+Park%3B+Van+Dyk+Attorneys%3B+van+dyk+attorneys%3B+We+qualify+in+various+fields+of+law+and+have+the+competitive+edge+in+resolving+your+legal+question+fast%2C+efficient+and+cost+effectivelyOur+firm+is+experienced+in+various+fields+of+law+and+acquired+intricate+knowledge+on+the+workings+of+certain+areas+of+law+which+make+us+invaluable+to+you++We+are+able+to+give+you+advise+including+but+not+limited+thereto+in+the+following+areas+of+law+Antenuptial+Contracts+Antenuptial+Contracts+In+Community+of+Property+Antenuptial+Contracts+Out+of+Community+of+Property+With+or+Without+the+Accrual+System+Contracts+Acknowledgement+of+Debts+Joint+Venture+Agreements+Lease+Agreements+of++Commercial%2C++Residential+or+Movable+%28Plant+Hire%29+Property+partnership+Agreements+Sale++Purchase+Agreements+Shareholder+Agreements+These+are+but+a+Few+of+the+contracts+we+are+able+to+advise+on+Convayancing+and+Property+Related+Matters+We+are+We+to+refer+you+to+colleagues+with+outstanding+skills+herein+Civil+Litigation+%28+High+and+Magistrate%E2%80%99s+Court%29+With+proper+research+we+are+able+to+assess+the+merits+of+the+matter+and+advise+our+clients+on+the+pros+and+cons+of+intended+litigation.++Our+disciplined+and+methodical+preparation+practices+allows+us+to+gain+the+best+tactical+advantageous+for+our+clients+Commercial+Law+Criminal+Law+Debt+Collection++We+plan+thoroughly+to+collect+outstanding+debts+without+incurring+unreasonable+and+essary+legal+costs.++In+conjunction+with+our+client+and+together+with+our+report+procedure+we+are+able+to+negate+time++money+wasting.+Evictions+We+are+committed+to+protect+our+client%E2%80%99s+property+against+damages+and+to+keep+our+client+commercially+active+in+the+property+market.++With+fast+and+effective+legal+remedies+we+obtain+good+results.+Family+Law+Your+seemingly+unpleasant+matter+will+e+dealt+with+care+and+respect+and+we+are+willing+and+able+to+assist+in+the+following+fields+Divorces+Custody%2FCare+of+Children+Access%2FContact+with+minor+Children+Maintenance+Family+Violence+Interdicts+Life+Partner+Contracts+%28Co-Habitation%2C+Same+Sex+Relationships+Insolvencies%2C+Liquidations%2C+Sequestrations+and+Rehabilitations+Sound+advice+in+the+abovementioned+fields+will+enable+you+to+Take+informed+decisions+Insurance+Law+Are+you+struggling+with+rejected+claims%3F+Let+us+assist+you+to+obtain+the+best+settlement+possible+Labour+Law+Motor+Vehicle+Accidents%2C+Personal+Injury+and+Public+Liability+Notarial+Services+We+are+able+to+refer+you+to+colleagues+with+outstanding+expertise+in+this+field+Service+Excellence%21++Our+firm+is+able+to+provide+you+with+solid+advice+on+a+wide+spectrum+of+legal+issues+on+your+journey+through+life.++Our+vast+experience+in+various+fields+of+law+combined+with+fast+and+meticulous+research+will+give+you+the+edge+in+all+walks+of+life.++Give+us+the+opportunity+to+be+of+service+to+enable+you+to+concentrate+on+which+matters+most+to+you+At+Van+Dyk+Attorneys+we+try+harder%21+Our+professional+advice+is+only+a+phone+call+away%21++We+endeavour+to+keep+our+clients+informed+in+all+respects+regarding+the+particular+advice+and+or+service+requested%2C+the+estimated+duration+to+completion%2C+and+most+importantly+the+legal+costs+involved+We+pride+ourselves+in+understanding+our+client%E2%80%99s+business+goals%2C+aligning+ourselves+with+it+in+order+to+be+proactive+in+furnishing+our+client+with+relevant+ideas%2C+information+on+best+practice+and+thought+leadership+to+give+our+client%E2%80%99s+the+competitive+edge+they+need+to+succeed%21+Take+our+hands+and+let+us+lead+you+to+make+your+dreams+a+reality%21+Trusts%2C+Wills+and+Estates';
var metaContents  = 'Attorneys+in+Kempton+Park+%28+Van+Dyk+Attorneys%29+-+We+are+a+firm+of+attorneys+based+in+Kempton+Park.++We+qualify+in+various+fields+of+law+and+have+the+competitive+edge+in+resolving+your+legal+question+fast%2C+efficient+and+cost+effectively.';
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();
};
