/* [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','75',jdecode('Home'),jdecode(''),'/75.html','true',[],'',''],
	['PAGE','7901',jdecode('About+Us'),jdecode(''),'/7901.html','true',[],'',''],
	['PAGE','8111',jdecode('Tours+and+Safaris'),jdecode(''),'/8111/index.html','true',[ 
		['PAGE','8132',jdecode('Botswana'),jdecode(''),'/8111/8132.html','true',[],'',''],
		['PAGE','8153',jdecode('Egypt'),jdecode(''),'/8111/8153.html','true',[],'',''],
		['PAGE','8384',jdecode('Ethiopia'),jdecode(''),'/8111/8384.html','true',[],'',''],
		['PAGE','8174',jdecode('Ghana'),jdecode(''),'/8111/8174.html','true',[],'',''],
		['PAGE','13901',jdecode('Lesotho'),jdecode(''),'/8111/13901.html','true',[],'',''],
		['PAGE','23901',jdecode('Malawi'),jdecode(''),'/8111/23901.html','true',[],'',''],
		['PAGE','8195',jdecode('Mozambique'),jdecode(''),'/8111/8195.html','true',[],'',''],
		['PAGE','8216',jdecode('Namibia'),jdecode(''),'/8111/8216.html','true',[],'',''],
		['PAGE','8300',jdecode('Rwanda'),jdecode(''),'/8111/8300.html','true',[],'',''],
		['PAGE','8237',jdecode('Senegal'),jdecode(''),'/8111/8237.html','true',[],'',''],
		['PAGE','8258',jdecode('South+Africa'),jdecode(''),'/8111/8258.html','true',[],'',''],
		['PAGE','13922',jdecode('Swaziland'),jdecode(''),'/8111/13922.html','true',[],'',''],
		['PAGE','8321',jdecode('Tanzania'),jdecode(''),'/8111/8321.html','true',[],'',''],
		['PAGE','8342',jdecode('Uganda'),jdecode(''),'/8111/8342.html','true',[],'',''],
		['PAGE','8363',jdecode('Zambia'),jdecode(''),'/8111/8363.html','true',[],'',''],
		['PAGE','23922',jdecode('Zimbabwe'),jdecode(''),'/8111/23922.html','true',[],'','']
	],'',''],
	['PAGE','7964',jdecode('Special+Interest+Tours'),jdecode(''),'/7964/index.html','true',[ 
		['PAGE','7985',jdecode('Escorted+Group+Tours'),jdecode(''),'/7964/7985.html','true',[],'',''],
		['PAGE','8027',jdecode('Weddings+and+Honeymoons'),jdecode(''),'/7964/8027.html','true',[],'',''],
		['PAGE','8006',jdecode('South+African+Winery+Tours'),jdecode(''),'/7964/8006.html','true',[],'',''],
		['PAGE','9901',jdecode('Elephant+Back+Safaris'),jdecode(''),'/7964/9901.html','true',[],'',''],
		['PAGE','9922',jdecode('Walking+Safaris'),jdecode(''),'/7964/9922.html','true',[],'',''],
		['PAGE','9943',jdecode('Luxury+Trains'),jdecode(''),'/7964/9943.html','true',[],'',''],
		['PAGE','8069',jdecode('Water+Sports'),jdecode(''),'/7964/8069.html','true',[],'',''],
		['PAGE','9964',jdecode('Volunteer+Services'),jdecode(''),'/7964/9964.html','true',[],'',''],
		['PAGE','9985',jdecode('Golf'),jdecode(''),'/7964/9985.html','true',[],'',''],
		['PAGE','28701',jdecode('Kilimanjaro+Climb'),jdecode(''),'/7964/28701.html','true',[],'',''],
		['PAGE','28722',jdecode('Student+Travel'),jdecode(''),'/7964/28722.html','true',[],'',''],
		['PAGE','28801',jdecode('Health+and+Wellness'),jdecode(''),'/7964/28801.html','true',[],'',''],
		['PAGE','28822',jdecode('Culture'),jdecode(''),'/7964/28822.html','true',[],'','']
	],'',''],
	['PAGE','8090',jdecode('Promotions'),jdecode(''),'/8090.html','true',[],'',''],
	['PAGE','10401',jdecode('Testimonials'),jdecode(''),'/10401.html','true',[],'',''],
	['PAGE','8426',jdecode('Frequently+Asked+Questions'),jdecode(''),'/8426.html','true',[],'',''],
	['PAGE','8468',jdecode('Travel+Insurance'),jdecode(''),'/8468.html','true',[],'',''],
	['PAGE','8447',jdecode('Terms+%26+Conditions'),jdecode(''),'/8447.html','true',[],'',''],
	['PAGE','8510',jdecode('Contact'),jdecode(''),'/8510/index.html','true',[ 
		['PAGE','10201',jdecode('Driving+Directions'),jdecode(''),'/8510/10201.html','true',[],'','']
	],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='FBF36C';
theSitetree.keyvisualId='5821';
theSitetree.keyvisualName='kv_5821.jpg';
theSitetree.fontsetId='11098';
theSitetree.graphicsetId='11869';
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: 			'Easylife',
				paletteFamily: 	'FBF36C',
				keyvisualId: 	'5821',
				keyvisualName: 	'kv_5821.jpg',
				fontsetId: 		'11098',
				graphicsetId: 	'11869',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '75',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75',
internalId:  '',
customField: '20091125-094203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8447',
internalId:  '',
customField: '20091120-200515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7964',
internalId:  '',
customField: '20091120-200230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8174',
internalId:  '',
customField: '20091120-195314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8510',
internalId:  '',
customField: '20091120-200625'
};
webappMappings['7008']=webappMappings['7008-5559']={
webappId:    '7008',
documentId:  '8510',
internalId:  '5559',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8384',
internalId:  '',
customField: '20091125-100906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20091124-174811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20091127-222852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8111',
internalId:  '',
customField: '20091125-100537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8195',
internalId:  '',
customField: '20091120-195505'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '10201',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20091125-103001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8090',
internalId:  '',
customField: '20091120-200301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20091120-200331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8426',
internalId:  '',
customField: '20091124-173848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8342',
internalId:  '',
customField: '20091120-195941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8132',
internalId:  '',
customField: '20091127-180806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8468',
internalId:  '',
customField: '20091120-200429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8153',
internalId:  '',
customField: '20091128-012246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20091120-195353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8216',
internalId:  '',
customField: '20091127-192103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8237',
internalId:  '',
customField: '20091120-195712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8258',
internalId:  '',
customField: '20091126-194125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13922',
internalId:  '',
customField: '20091120-195828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8300',
internalId:  '',
customField: '20091120-195636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8321',
internalId:  '',
customField: '20091120-195901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8363',
internalId:  '',
customField: '20091120-200013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7985',
internalId:  '',
customField: '20091116-191727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8027',
internalId:  '',
customField: '20091116-191727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8006',
internalId:  '',
customField: '20091116-191727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20091116-214510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9922',
internalId:  '',
customField: '20091116-214510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9943',
internalId:  '',
customField: '20091116-214510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8069',
internalId:  '',
customField: '20091116-191727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9964',
internalId:  '',
customField: '20091116-214510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9985',
internalId:  '',
customField: '20091116-214510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23922',
internalId:  '',
customField: '20091120-200051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20091120-195426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28722',
internalId:  '',
customField: '20091124-174811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28801',
internalId:  '',
customField: '20091124-174934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28822',
internalId:  '',
customField: '20091124-174934'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN34R1';
var companyName   = '';
var htmlTitle	  = 'Meticulous+Tours+Africa+Travel%2C+Tours%2C+Safari+and+Volunteer+Tourism+Specialists';
var metaKeywords  = 'South+Africa+wine+tasting%2C+volunteer+tourism%2C+volunteer+travel%2C+Kruger+National+Park%2C+Responsible+Tourism%2C+Victoria+Falls%2C+Cape+Town%2C+Table+Mountain%2C+Robben+Island%2C+Volunteer+Vacations%2C+Cape+of+Good+Hope%2C+Table+Bay+Hotel%2C+Adventure+Travel%2C+Royal+Livingstone+Hotel%2C+Michangelo+Hotel%2C+Chobe+National+Park%2C+Okavango+Delta%2C+Safari%2C+Elephant%2C+Big+Five%2C+Lion%2C+Baffalo%2C+Leopard%2C+Rhino%2C+Ecotourism%2C+Eco+tourism%2C+sustainability%2C+orphans%2C+2010+Soccer+world+cup%2C+Johannesburg%2C+Durban%2C+5+star%2C+five+star%2C+kayak%2C+bicycling%2C+Kenya%2C+Tanzania%2C+South+Africa%2C+Botswana%2C+Namibia%2C+Zimbabwe%2C+Zambia%2C+Lesotho%2C+Swaziland%2C+Mozambique%2C+Malawi%2C+Kenya%2C+Tanzania%2C+Uganda%2C+Rwanda%2C+Egypt%2C+Ethopia%2C+Senegal%2C+Ghana';
var metaContents  = '';
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();
};
