/* [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','3201',jdecode('Home'),jdecode(''), jdecode('%2F3201%2Findex.html'), 'true',[ 
		['PAGE','25001',jdecode('Search'),jdecode(''), jdecode('%2F3201%2F25001.html'), 'false',[],'','']
	],'',''],
	['PAGE','100823',jdecode('Golf+Festivals'),jdecode(''), jdecode('%2F100823%2Findex.html'), 'true',[ 
		['PAGE','3357',jdecode('Annual+Festival'),jdecode(''), jdecode('%2F100823%2F3357.html'), 'false',[],'',''],
		['PAGE','100844',jdecode('South+Coast+2012'),jdecode(''), jdecode('%2F100823%2F100844.html'), 'false',[],'',''],
		['PAGE','100865',jdecode('North+Coast+2012'),jdecode(''), jdecode('%2F100823%2F100865.html'), 'false',[],'','']
	],'',''],
	['PAGE','77701',jdecode('Day+Tours'),jdecode(''), jdecode('%2F77701%2Findex.html'), 'true',[ 
		['PAGE','77722',jdecode('Cape+Point+%26+Cape+of+Good+Hope'),jdecode(''), jdecode('%2F77701%2F77722.html'), 'false',[],'',''],
		['PAGE','77743',jdecode('Winelands+-+Paarl%2C+Franschoek+%26+Stellenbosch'),jdecode(''), jdecode('%2F77701%2F77743.html'), 'false',[],'',''],
		['PAGE','78401',jdecode('Hermanus+Whale+Watching'),jdecode(''), jdecode('%2F77701%2F78401.html'), 'false',[],'','']
	],'',''],
	['PAGE','90423',jdecode('Travel+Partner'),jdecode(''), jdecode('%2F90423%2Findex.html'), 'true',[ 
		['PAGE','90623',jdecode('Accommodation'),jdecode(''), jdecode('%2F90423%2F90623.html'), 'false',[],'',''],
		['PAGE','91623',jdecode('Transfers%2C+Activities+%26+Entertainment'),jdecode(''), jdecode('%2F90423%2F91623.html'), 'false',[],'',''],
		['PAGE','91923',jdecode('Holiday+Extention'),jdecode(''), jdecode('%2F90423%2F91923.html'), 'false',[],'',''],
		['PAGE','91944',jdecode('Restaurants'),jdecode(''), jdecode('%2F90423%2F91944.html'), 'false',[],'','']
	],'',''],
	['PAGE','98223',jdecode('5+Star+Golf'),jdecode(''), jdecode('%2F98223.html'), 'true',[],'',''],
	['PAGE','63201',jdecode('5+Star+Luxury+'),jdecode(''), jdecode('%2F63201.html'), 'false',[],'',''],
	['PAGE','73201',jdecode('Cape+Safari+'),jdecode(''), jdecode('%2F73201.html'), 'false',[],'',''],
	['PAGE','75401',jdecode('Bush+%26+Beach+'),jdecode(''), jdecode('%2F75401.html'), 'false',[],'',''],
	['PAGE','3273',jdecode('Ultimate+Experience'),jdecode(''), jdecode('%2F3273.html'), 'true',[],'',''],
	['PAGE','3294',jdecode('Cape+Town+'),jdecode(''), jdecode('%2F3294.html'), 'true',[],'',''],
	['PAGE','3315',jdecode('Garden+Route'),jdecode(''), jdecode('%2F3315.html'), 'true',[],'',''],
	['PAGE','3336',jdecode('KwaZulu+Natal'),jdecode(''), jdecode('%2F3336.html'), 'true',[],'',''],
	['PAGE','3378',jdecode('Safaris'),jdecode(''), jdecode('%2F3378%2Findex.html'), 'false',[ 
		['PAGE','40301',jdecode('Addo+Elephant+Park'),jdecode(''), jdecode('%2F3378%2F40301.html'), 'false',[],'',''],
		['PAGE','40322',jdecode('Hluhluwe%2FiMfolozi'),jdecode(''), jdecode('%2F3378%2F40322.html'), 'false',[],'',''],
		['PAGE','40343',jdecode('Kruger+National+Park'),jdecode(''), jdecode('%2F3378%2F40343.html'), 'false',[],'',''],
		['PAGE','40364',jdecode('Pilansberg+National+Park'),jdecode(''), jdecode('%2F3378%2F40364.html'), 'false',[],'',''],
		['PAGE','40385',jdecode('Shamwari+Game+Reserve'),jdecode(''), jdecode('%2F3378%2F40385.html'), 'false',[],'',''],
		['PAGE','40406',jdecode('Kariege+Game+Reserve'),jdecode(''), jdecode('%2F3378%2F40406.html'), 'false',[],'',''],
		['PAGE','40427',jdecode('Sanbona+Game+Reserve'),jdecode(''), jdecode('%2F3378%2F40427.html'), 'false',[],'','']
	],'',''],
	['PAGE','44701',jdecode('Executive+Yacht+Charters'),jdecode(''), jdecode('%2F44701.html'), 'false',[],'',''],
	['PAGE','84201',jdecode('Useful+Links'),jdecode(''), jdecode('%2F84201.html'), 'true',[],'',''],
	['PAGE','3399',jdecode('Non+Golf+Activities'),jdecode(''), jdecode('%2F3399%2Findex.html'), 'false',[ 
		['PAGE','3420',jdecode('Cape+Town+'),jdecode(''), jdecode('%2F3399%2F3420.html'), 'false',[],'',''],
		['PAGE','3441',jdecode('Garden+Route'),jdecode(''), jdecode('%2F3399%2F3441.html'), 'false',[],'',''],
		['PAGE','3462',jdecode('KwaZulu+Natal'),jdecode(''), jdecode('%2F3399%2F3462.html'), 'false',[],'','']
	],'',''],
	['PAGE','20401',jdecode('Gallery'),jdecode(''), jdecode('%2F20401.html'), 'false',[],'',''],
	['PAGE','3567',jdecode('About+us'),jdecode(''), jdecode('%2F3567.html'), 'false',[],'',''],
	['PAGE','7101',jdecode('Terms+%26+Conditions'),jdecode(''), jdecode('%2F7101.html'), 'true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Airplane';
theSitetree.paletteFamily='C5E8FE';
theSitetree.keyvisualId='10199';
theSitetree.keyvisualName='airplane_modern.swf';
theSitetree.fontsetId='21113';
theSitetree.graphicsetId='13209';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D7F0FA';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hetzner',
  product: 'WSCSYSSSSLY0XKDS'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Airplane',
				paletteFamily: 	'C5E8FE',
				keyvisualId: 	'10199',
				keyvisualName: 	'airplane_modern.swf',
				fontsetId: 		'21113',
				graphicsetId: 	'13209',
				contentColor: 	'000000',
				contentBGColor: 'D7F0FA',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3201',
internalId:  '',
customField: '20110215-120955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3273',
internalId:  '',
customField: '20110914-080446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3294',
internalId:  '',
customField: '20110914-080745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3315',
internalId:  '',
customField: '20110914-081009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3336',
internalId:  '',
customField: '20110914-081108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3357',
internalId:  '',
customField: '20111122-131346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3378',
internalId:  '',
customField: '20100120-200159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3399',
internalId:  '',
customField: '20091117-100154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3420',
internalId:  '',
customField: '20091117-100154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3441',
internalId:  '',
customField: '20091117-100154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3462',
internalId:  '',
customField: '20091117-100154'
};
webappMappings['7060']=webappMappings['7060-e8d6c962ed05e20c7aac91ee455ce495']={
webappId:    '7060',
documentId:  '20401',
internalId:  'e8d6c962ed05e20c7aac91ee455ce495',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20091130-125420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3567',
internalId:  '',
customField: '20091117-100154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20100113-125933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40301',
internalId:  '',
customField: '20101124-131115'
};
webappMappings['1501']=webappMappings['1501-8318519']={
webappId:    '1501',
documentId:  '3201',
internalId:  '8318519',
customField: '1501'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '25001',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20091202-100733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40322',
internalId:  '',
customField: '20101130-134804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40343',
internalId:  '',
customField: '20101130-134929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40364',
internalId:  '',
customField: '20101130-135006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40385',
internalId:  '',
customField: '20101130-135052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40406',
internalId:  '',
customField: '20101130-135125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40427',
internalId:  '',
customField: '20101130-135210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44701',
internalId:  '',
customField: '20100113-131032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77722',
internalId:  '',
customField: '20111123-063020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77701',
internalId:  '',
customField: '20111103-125402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75401',
internalId:  '',
customField: '20101124-123426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63201',
internalId:  '',
customField: '20101124-123122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73201',
internalId:  '',
customField: '20100729-203504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77743',
internalId:  '',
customField: '20111123-063053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78401',
internalId:  '',
customField: '20111123-063133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84201',
internalId:  '',
customField: '20110322-114745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90423',
internalId:  '',
customField: '20111123-162606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90623',
internalId:  '',
customField: '20110407-150026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98223',
internalId:  '',
customField: '20110407-151241'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '100823',
internalId:  '-',
customField: '20120116-161150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91623',
internalId:  '',
customField: '20110406-151511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91923',
internalId:  '',
customField: '20110407-151512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91944',
internalId:  '',
customField: '20110404-125215'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '100865',
internalId:  '-',
customField: '20120116-174859'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '100844',
internalId:  '-',
customField: '20120116-182441'
};
var webAppHostname = 'sitebuilder.host-h.net:80';
var canonHostname = 'sitebuilder1.jnb2.host-h.net';
var accountId     = 'AHTZ10IN25RX';
var companyName   = 'African+Experience+Golf+Tours';
var htmlTitle	  = '';
var metaKeywords  = 'Cape+Town+plan+Ultimate+African+Experience+South+Africa++game+viewing+combined+with+playing+golf+best+championship+golf+courses+great+value+for+money+personalised+tours+professional+knowledgeable+guides+personally+hosted+experienced+4+star+graded+accommodation+B%26B+bed+and+breakfast+basis+top+of+the+range+offering+Western+Cape+Cape+Town+Garden+Route+Winelands+Knysna+hosted+golf+tour+group+of+golfers+South+and+North+Coast+of+Kwazulu+Natal+Table+Mountain+game+reserve+viewing+big+5+planning+golfing+safaris+safari+in+South+Africa+creative+and+flexible+tailor+made';
var metaContents  = 'Based+in+Cape+Town%2C+we+are+here+to+help+you+plan+your+Ultimate+African+Experience.+Only+in+South+Africa+can+one+experience+phenomenal+game+viewing+of+the+big+5+at+world+renowned+reserves%3B+combined+with+playing+golf+on+some+of+the+best+championship+golf+courses+in+the+world+-+in+one+single+visit+to+our+beautiful+country.+We+have+packaged+together+great+value+for+money+personaly+hosted+tours+with+professional+and+knowledgeable+guides+who+will+host+you+for+the+duration+of+your+travels.+African+Experience+is+the+logical+choice+when+planning+golfing+safaris+in+South+Africa.+We+pride+ourselves+in+being+creative+and+flexible+to+meet+our+customers%E2%80%99+requirements+socontact+us.';
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();
};

