/* [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','49801',jdecode('HOME%2FACCUEIL'),jdecode(''),'/49801.html','true',[],'',''],
	['PAGE','94701',jdecode('MAPS+%2F+CARTES'),jdecode(''),'/94701.html','true',[],'',''],
	['PAGE','49301',jdecode('ENGLISH'),jdecode(''),'/49301/index.html','true',[ 
		['PAGE','60601',jdecode('Contact+us'),jdecode(''),'/49301/60601.html','true',[],'',''],
		['PAGE','52706',jdecode('Itineraries'),jdecode(''),'/49301/52706.html','true',[],'',''],
		['PAGE','57201',jdecode('Destinations'),jdecode(''),'/49301/57201.html','true',[],'',''],
		['PAGE','63501',jdecode('Reservations'),jdecode(''),'/49301/63501.html','true',[],'','']
	],'',''],
	['PAGE','51901',jdecode('FRAN%C3%87AIS'),jdecode(''),'/51901.html','true',[],'',''],
	['PAGE','62301',jdecode('Contactez-nous'),jdecode(''),'/62301.html','true',[],'',''],
	['PAGE','52601',jdecode('Itineraires'),jdecode(''),'/52601/index.html','false',[ 
		['PAGE','52622',jdecode('Auto+tours'),jdecode(''),'/52601/52622.html','true',[],'',''],
		['PAGE','62401',jdecode('Avec+guide-chauffeur'),jdecode(''),'/52601/62401.html','true',[],'','']
	],'',''],
	['PAGE','52643',jdecode('Destinations'),jdecode(''),'/52643/index.html','true',[ 
		['PAGE','52664',jdecode('Afrique+du+Sud'),jdecode(''),'/52643/52664.html','false',[],'',''],
		['PAGE','52685',jdecode('Botswana'),jdecode(''),'/52643/52685.html','false',[],'','']
	],'',''],
	['PAGE','71601',jdecode('R%C3%A9servations'),jdecode(''),'/71601.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Grace';
theSitetree.paletteFamily='FBB044';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32049';
theSitetree.graphicsetId='13869';
theSitetree.contentColor='c47502';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Grace',
				paletteFamily: 	'FBB044',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32049',
				graphicsetId: 	'13869',
				contentColor: 	'c47502',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20090522-110406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49801',
internalId:  '',
customField: '20090422-151000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52643',
internalId:  '',
customField: '20090522-144001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52601',
internalId:  '',
customField: '20081006-125619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51901',
internalId:  '',
customField: '20090518-165802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52706',
internalId:  '',
customField: '20090522-145414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52664',
internalId:  '',
customField: '20081006-125619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52622',
internalId:  '',
customField: '20081006-125619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52685',
internalId:  '',
customField: '20081006-125619'
};
webappMappings['7008']=webappMappings['7008-114']={
webappId:    '7008',
documentId:  '60601',
internalId:  '114',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60601',
internalId:  '',
customField: '20090518-170320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20090522-105648'
};
webappMappings['7008']=webappMappings['7008-117']={
webappId:    '7008',
documentId:  '62301',
internalId:  '117',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62301',
internalId:  '',
customField: '20090518-170047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63501',
internalId:  '',
customField: '20090518-151810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94701',
internalId:  '',
customField: '20090522-110300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62401',
internalId:  '',
customField: '20081016-102638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71601',
internalId:  '',
customField: '20090518-175218'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '49801',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'sitebuilder1.nur4.host-h.net';
var accountId     = 'AHZGE0INXSU5';
var companyName   = 'Travel%3A+Southern+Africa+%2F+Voyages%3A+Afrique+Australe';
var htmlTitle	  = 'TRAVEL+ARRANGEMENTS+IN+SOUTHERN+AFRICA+%2F+VOYAGES+EN+AFRIQUE+AUSTRALE';
var metaKeywords  = 'holiday%2Cvacances%2Cfrench%2C+fran%C3%A7ais%2CSOUTHERN+AFRICA%2CAFRIQUE+AUSTRALE%2CSOUTH+AFRICA%2C+AFRIQUE+DU+SUD%2CBOTSWANA%2CVICTORIA+FALLS%2C+CHUTES+VICTORIA%2C+LIVINGSTONE%2C+ZAMBIA%2C+ZAMBIE%2C+NAMIBIA%2C+NAMIBIE%2C+MALAWI%2C+MOZAMBIQUE%2C+SWAZILAND%2C+LESOTHO%2C+Soweto%2C++Cape+Town%2C+le+Cap%2C+Johannesburg%2C+h%C3%A9bergement%2C+accommodation%2Csafari%2Cgame+drive%2Csightseeing%2Cexcursions%2C+township%2Cwine+tasting%2Cwine+estate%2Cvignobles%2C+d%C3%A9gustation+des+vins%2C+golf%2Ctraditional+african+village%2Cvillage+africain%2C+penguins%2Cmanchots%2Costriches%2Cautruches%2Csuricates%2Cmeerkats%2Cbeach+holiday%2Cplages%2Ctable+mountain%2Cmontagne+de+la+table%2Cgarden+route%2C+route+des+jardins%2C+route+panoramique%2Cpanorama+route%2Cbungi-jumping%2Csaut+en+%C3%A9lastique%2Ccar+hire%2Cvoiture+de+location%2Ctransfers%2Ctransferts%2Ccharter+flight%2Cvol+priv%C3%A9%2Cfamily+holiday%2Cvacances+en+famille%2Chotel%2Ch%C3%B4tel%2Cguest+house%2Cmaison+dh%C3%B4tes%2C+lodge%2C+vin%2Cwine%2C+honeymoon%2C+voyage+de+noces%2C+aventures%2C+adventure%2Chelicopter+scenic+flight%2Csurvol+en+h%C3%A9licopt%C3%A8re%2Cr%C3%A9serve+naturelle%2C+parc+animali%C3%A8re%2C+game+reserve%2Cgame+park%2Cbig+five%2C+lion%2C+elephant%2C+rhinoceros%2C+buffalo%2C+leopard%2C+%C3%A9l%C3%A9phant%2C+rhino%2C+buffle%2Cl%C3%A9pard%2Capartheid+museum%2CSandton%2CPretoria%2COkavango%2CChobe%2CSavuti%2CSossusvlei%2C';
var metaContents  = 'Travel+arrangements+for+SOUTHERN+AFRICA%2C+including+SOUTH+AFRICA%2C+BOTSWANA%2C+VICTORIA+FALLS%2C+ZAMBIA%2C+NAMIBIA%2C+MALAWI%2C+MOZAMBIQUE%2C+SWAZILAND%2C+LESOTHO.+Accommodation%2C+safaris%2C+sightseeing+day-trips%2C+Township+tours%2C+wine+tours%2C+golf%2C+traditional+African+villages%2C+adventure+activities%2C+helicopter+scenic+flights%2C+car+hire%2C+transfers%2C+private+charter+flights+are+some+of+the+arrangements+that+we+make.+%2F%2FS%C3%A9jours+en+Afrique+Australe%3A+Afrique+du+Sud%2C+Botswana%2C+Chutes+Victoria%2C+Zambie%2C+Namibie%2C+Malawi%2C+Mozambique%2C+Swaziland%2C+Lesotho.+Nous+organisons%3A+h%C3%A9bergement%2C+safaris%2C+excursions%2C+visites+de+Townships++villages+africains%2C+d%C3%A9gustations+de+vins++visite+des+caves%2C+golf%2C+voiture+de+location%2C+guide-chauffeur%2C+survol+en+h%C3%A9licopt%C3%A8re%2C+vols+priv%C3%A9s+etc.';
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();
};
