/* [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','49701',jdecode('%22HOME%22'),jdecode(''),'/49701.html','true',[],'',''],
	['PAGE','104723',jdecode('%26%23x27%3B%26%23x27%3BSERVICE+SEARCH%22'),jdecode(''),'/104723.html','true',[],'',''],
	['PAGE','98312',jdecode('%22COMPANIES%22'),jdecode(''),'/98312.html','false',[],'',''],
	['PAGE','107623',jdecode('%26%23x27%3B%26%23x27%3BGREAT+TUSKERS%26%23x27%3B%26%23x27%3B'),jdecode(''),'/107623.html','true',[],'',''],
	['PAGE','19843',jdecode('%22GREAT+TUSKERS%22'),jdecode(''),'/19843/index.html','false',[ 
		['PAGE','55601',jdecode('Photo%26%23x27%3Bs'),jdecode(''),'/19843/55601.html','false',[],'','']
	],'',''],
	['PAGE','20464',jdecode('%22PROTECTION%22+'),jdecode(''),'/20464/index.html','true',[ 
		['PAGE','2352',jdecode('UBUNTU+SERVICES'),jdecode(''),'/20464/2352.html','true',[],'',''],
		['PAGE','20443',jdecode('CRIME+CURE'),jdecode(''),'/20464/20443.html','true',[],'',''],
		['PAGE','55401',jdecode('Photo%26%23x27%3Bs'),jdecode(''),'/20464/55401.html','false',[],'',''],
		['PAGE','27601',jdecode('INVESTIGATIONS'),jdecode(''),'/20464/27601.html','true',[],'','']
	],'',''],
	['PAGE','26901',jdecode('%22OUTSOURCING%22'),jdecode(''),'/26901/index.html','true',[ 
		['PAGE','2373',jdecode('Excellent+Services'),jdecode(''),'/26901/2373.html','true',[],'',''],
		['PAGE','19822',jdecode('Natal+Master+Macs'),jdecode(''),'/26901/19822.html','true',[],'','']
	],'',''],
	['PAGE','56001',jdecode('%22EMPLOYMENT%22'),jdecode(''),'/56001.html','true',[],'',''],
	['PAGE','34601',jdecode('%22SPONSORS%22'),jdecode(''),'/34601.html','true',[],'',''],
	['PAGE','67001',jdecode('%22CLIENTS%22'),jdecode(''),'/67001.html','false',[],'',''],
	['PAGE','37801',jdecode('%22CLASSIFIEDS%22'),jdecode(''),'/37801/index.html','false',[ 
		['PAGE','94512',jdecode('Employment+Vacancies'),jdecode(''),'/37801/94512.html','true',[],'',''],
		['PAGE','37822',jdecode('General'),jdecode(''),'/37801/37822.html','true',[],'',''],
		['PAGE','94533',jdecode('For+Hire'),jdecode(''),'/37801/94533.html','true',[],'',''],
		['PAGE','94554',jdecode('Motor+Bike'),jdecode(''),'/37801/94554.html','true',[],'',''],
		['PAGE','37843',jdecode('Motor+Vehicles'),jdecode(''),'/37801/37843.html','true',[],'',''],
		['PAGE','37864',jdecode('Wanted+goods'),jdecode(''),'/37801/37864.html','true',[],'','']
	],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Money';
theSitetree.paletteFamily='481818';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='148';
theSitetree.graphicsetId='165';
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: 			'Money',
				paletteFamily: 	'481818',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'148',
				graphicsetId: 	'165',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'481818',
				b_color: 		'170808',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49701',
internalId:  '',
customField: '20091205-110737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2352',
internalId:  '',
customField: '20090813-171952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2373',
internalId:  '',
customField: '20090813-085134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20464',
internalId:  '',
customField: '20091205-114838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26901',
internalId:  '',
customField: '20100218-133130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19822',
internalId:  '',
customField: '20090227-142327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19843',
internalId:  '',
customField: '20090620-092602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20443',
internalId:  '',
customField: '20090813-173416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34601',
internalId:  '',
customField: '20090526-152134'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '49701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27601',
internalId:  '',
customField: '20090813-172248'
};
webappMappings['1501']=webappMappings['1501-1735868']={
webappId:    '1501',
documentId:  '49701',
internalId:  '1735868',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37822',
internalId:  '',
customField: '20080627-141945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94554',
internalId:  '',
customField: '20090114-200557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37801',
internalId:  '',
customField: '20080627-141945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37843',
internalId:  '',
customField: '20080627-141945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37864',
internalId:  '',
customField: '20080627-141945'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '104723',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67001',
internalId:  '',
customField: '20090528-113340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98312',
internalId:  '',
customField: '20090428-162524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56001',
internalId:  '',
customField: '20090526-152150'
};
webappMappings['7008']=webappMappings['7008-795']={
webappId:    '7008',
documentId:  '56001',
internalId:  '795',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55601',
internalId:  '',
customField: '20081031-141330'
};
webappMappings['7060']=webappMappings['7060-89efb914e63a95bf7a614638c71752f8']={
webappId:    '7060',
documentId:  '55601',
internalId:  '89efb914e63a95bf7a614638c71752f8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55401',
internalId:  '',
customField: '20090531-214700'
};
webappMappings['7060']=webappMappings['7060-dbe91ead9d7015d9283b103eefe20d0e']={
webappId:    '7060',
documentId:  '55401',
internalId:  'dbe91ead9d7015d9283b103eefe20d0e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94512',
internalId:  '',
customField: '20090114-200557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94533',
internalId:  '',
customField: '20090114-200557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104723',
internalId:  '',
customField: '20090813-172503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107623',
internalId:  '',
customField: '20091205-112812'
};
var canonHostname = 'sitebuilder1.jnb2.host-h.net';
var accountId     = 'AHTZ10INX35T';
var companyName   = 'Enjoy+the+world+cup+2010+with+us+from+MD+Group+Of+Companies+';
var htmlTitle	  = 'THE+HOME+OF+EXCELLENT+SERVICE+';
var metaKeywords  = '';
var metaContents  = 'Excellent+Services++%231+SERVICE%2C%231+CLEANING%2C+%231+SECURITY%2C+%231+BIG+FIVE+BB%2C+%231+Safari%2C+%231+BEEE+Levels%2C+Natal+Master+Macs%2C+Excellent+Services+has+Top+Service.++Best+Service+at+the+Right+PriceBest+Service+at+the+Right+Price';
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();
};
