/* [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','1514',jdecode('Introduction'),jdecode(''),'/1514.html','true',[],'',''],
	['PAGE','237508',jdecode('Himalaya+cycle+ride+%26%23x27%3B10'),jdecode(''),'/237508.html','true',[],'',''],
	['PAGE','235108',jdecode('The+Panamericana+ride+%26%23x27%3B05-%26%23x27%3B06'),jdecode(''),'/235108/index.html','true',[ 
		['PAGE','88154',jdecode('Trip+statistics'),jdecode(''),'/235108/88154.html','true',[],'',''],
		['PAGE','1571',jdecode('Alaska+%281-3%29'),jdecode(''),'/235108/1571.html','true',[],'',''],
		['PAGE','1598',jdecode('Seward-Fairbanks+%281%29'),jdecode(''),'/235108/1598.html','true',[],'',''],
		['PAGE','89689',jdecode('Prudhoe+Bay-Fairbanks+%282%29'),jdecode(''),'/235108/89689.html','true',[],'',''],
		['PAGE','91100',jdecode('Fairbanks-Canada+%283%29'),jdecode(''),'/235108/91100.html','true',[],'',''],
		['PAGE','91127',jdecode('Canada+%284-6%29'),jdecode(''),'/235108/91127.html','true',[],'',''],
		['PAGE','91154',jdecode('B.+Creek-Whitehorse+%284%29'),jdecode(''),'/235108/91154.html','true',[],'',''],
		['PAGE','93075',jdecode('Whitehorse-P.George+%285%29'),jdecode(''),'/235108/93075.html','true',[],'',''],
		['PAGE','94984',jdecode('P.+George-US+Border+%286%29'),jdecode(''),'/235108/94984.html','true',[],'',''],
		['PAGE','96275',jdecode('USA+%287-10%29'),jdecode(''),'/235108/96275.html','true',[],'',''],
		['PAGE','96302',jdecode('Montana+%287%29'),jdecode(''),'/235108/96302.html','true',[],'',''],
		['PAGE','98375',jdecode('Wyoming+%288%29'),jdecode(''),'/235108/98375.html','true',[],'',''],
		['PAGE','98402',jdecode('Utah+%289%29'),jdecode(''),'/235108/98402.html','true',[],'',''],
		['PAGE','100125',jdecode('Arizona+%2810%29'),jdecode(''),'/235108/100125.html','true',[],'',''],
		['PAGE','101476',jdecode('Mexico+%2811-15%29'),jdecode(''),'/235108/101476.html','true',[],'',''],
		['PAGE','102175',jdecode('Sonora+%2811%29'),jdecode(''),'/235108/102175.html','true',[],'',''],
		['PAGE','104680',jdecode('Southern+Baja+California+%2812%29'),jdecode(''),'/235108/104680.html','true',[],'',''],
		['PAGE','105675',jdecode('Central+Pacific+coast+%2813%29'),jdecode(''),'/235108/105675.html','true',[],'',''],
		['PAGE','109070',jdecode('Oaxaca%2F+Chiapas+%2814%29'),jdecode(''),'/235108/109070.html','true',[],'',''],
		['PAGE','112570',jdecode('Mexico%26%23x27%3Bs+volcanoes+%2815%29'),jdecode(''),'/235108/112570.html','true',[],'',''],
		['PAGE','117370',jdecode('Guatemala+%2816%29'),jdecode(''),'/235108/117370.html','true',[],'',''],
		['PAGE','117397',jdecode('El+Salv.+%26+Hond.+%2817%29'),jdecode(''),'/235108/117397.html','true',[],'',''],
		['PAGE','120757',jdecode('Nicaragua+%2818%29'),jdecode(''),'/235108/120757.html','true',[],'',''],
		['PAGE','122244',jdecode('Costa+Rica+%2819%29'),jdecode(''),'/235108/122244.html','true',[],'',''],
		['PAGE','122911',jdecode('Panama+%2820%29'),jdecode(''),'/235108/122911.html','true',[],'',''],
		['PAGE','124209',jdecode('The+Panama+Canal'),jdecode(''),'/235108/124209.html','true',[],'',''],
		['PAGE','124923',jdecode('Ecuador+%2821-22%29'),jdecode(''),'/235108/124923.html','true',[],'',''],
		['PAGE','126258',jdecode('Climbing+in+Ecuador+%2821%29'),jdecode(''),'/235108/126258.html','true',[],'',''],
		['PAGE','126895',jdecode('Cycling+Ecuador+%2822%29'),jdecode(''),'/235108/126895.html','true',[],'',''],
		['PAGE','130239',jdecode('Peru+%2823-26%29'),jdecode(''),'/235108/130239.html','true',[],'',''],
		['PAGE','130266',jdecode('Northern+Peru+%2823%29'),jdecode(''),'/235108/130266.html','true',[],'',''],
		['PAGE','131433',jdecode('Cordillera+Blanca+%2824%29'),jdecode(''),'/235108/131433.html','true',[],'',''],
		['PAGE','133233',jdecode('Central+Peru+%2825%29'),jdecode(''),'/235108/133233.html','true',[],'',''],
		['PAGE','135433',jdecode('Southern+Peru+%2826%29'),jdecode(''),'/235108/135433.html','true',[],'',''],
		['PAGE','136243',jdecode('Bol.%2F+N.+Chile+%2827-29%29'),jdecode(''),'/235108/136243.html','true',[],'',''],
		['PAGE','136270',jdecode('Central+Bolivia+%2827%29'),jdecode(''),'/235108/136270.html','true',[],'',''],
		['PAGE','138849',jdecode('N.+Chile%2F+Bolivia+%2828%29'),jdecode(''),'/235108/138849.html','true',[],'',''],
		['PAGE','141430',jdecode('Chilean+Altiplano+%2829%29'),jdecode(''),'/235108/141430.html','true',[],'',''],
		['PAGE','141984',jdecode('Argentina+%2830-31%29'),jdecode(''),'/235108/141984.html','true',[],'',''],
		['PAGE','142011',jdecode('Northern+Argentina+%2830%29'),jdecode(''),'/235108/142011.html','true',[],'',''],
		['PAGE','143417',jdecode('Central+Argentina+%2831%29'),jdecode(''),'/235108/143417.html','true',[],'',''],
		['PAGE','149208',jdecode('Patagonia+%2832%29'),jdecode(''),'/235108/149208.html','true',[],'',''],
		['PAGE','153208',jdecode('Tierra+del+Fuego+%2833%29'),jdecode(''),'/235108/153208.html','true',[],'','']
	],'',''],
	['PAGE','74915',jdecode('Trans+Europe+cycle+ride+%26%23x27%3B03'),jdecode(''),'/74915.html','true',[],'',''],
	['PAGE','251508',jdecode('SWISS+ADVENTURE+TOURS'),jdecode(''),'/251508/index.html','true',[ 
		['PAGE','251529',jdecode('Swiss+Trekking+Tours'),jdecode(''),'/251508/251529.html','true',[],'',''],
		['PAGE','251550',jdecode('Swiss+Snowshoe+Tours'),jdecode(''),'/251508/251550.html','true',[],'',''],
		['PAGE','259308',jdecode('Swiss+Bike+Tours'),jdecode(''),'/251508/259308.html','true',[],'',''],
		['PAGE','260408',jdecode('Swiss+Ski+Tours'),jdecode(''),'/251508/260408.html','true',[],'','']
	],'',''],
	['PAGE','1679',jdecode('Equipment+list+for+cycle+touring'),jdecode(''),'/1679/index.html','true',[ 
		['PAGE','40501',jdecode('Bike+%26+parts'),jdecode(''),'/1679/40501.html','true',[],'',''],
		['PAGE','40582',jdecode('Clothing+%26+sleeping'),jdecode(''),'/1679/40582.html','true',[],'',''],
		['PAGE','40636',jdecode('Cooking+gear'),jdecode(''),'/1679/40636.html','true',[],'',''],
		['PAGE','40663',jdecode('General+items'),jdecode(''),'/1679/40663.html','true',[],'','']
	],'',''],
	['PAGE','62997',jdecode('Contact+and+information'),jdecode(''),'/62997.html','true',[],'','']];
var siteelementCount=58;
theSitetree.topTemplateName='Macao';
theSitetree.paletteFamily='EAC575';
theSitetree.keyvisualId='6458';
theSitetree.keyvisualName='kv_6458.jpg';
theSitetree.fontsetId='11167';
theSitetree.graphicsetId='11979';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFE3A7';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Macao',
				paletteFamily: 	'EAC575',
				keyvisualId: 	'6458',
				keyvisualName: 	'kv_6458.jpg',
				fontsetId: 		'11167',
				graphicsetId: 	'11979',
				contentColor: 	'000000',
				contentBGColor: 'FFE3A7',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1514',
internalId:  '',
customField: '20100627-184523'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1514',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1679',
internalId:  '',
customField: '20100321-111857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62997',
internalId:  '',
customField: '20100321-111330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40501',
internalId:  '',
customField: '20100627-184237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40582',
internalId:  '',
customField: '20100627-183741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40636',
internalId:  '',
customField: '20100321-141218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40663',
internalId:  '',
customField: '20100627-182931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88154',
internalId:  '',
customField: '20100321-115118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1571',
internalId:  '',
customField: '20100220-172124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1598',
internalId:  '',
customField: '20100321-115517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89689',
internalId:  '',
customField: '20100220-173955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91100',
internalId:  '',
customField: '20100220-174256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91127',
internalId:  '',
customField: '20100220-174418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91154',
internalId:  '',
customField: '20100224-211257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93075',
internalId:  '',
customField: '20100224-211550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94984',
internalId:  '',
customField: '20100224-212136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96275',
internalId:  '',
customField: '20100224-212213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96302',
internalId:  '',
customField: '20100224-212506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98375',
internalId:  '',
customField: '20100303-182515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98402',
internalId:  '',
customField: '20100303-182744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100125',
internalId:  '',
customField: '20100303-183135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101476',
internalId:  '',
customField: '20100303-213056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102175',
internalId:  '',
customField: '20100303-213933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104680',
internalId:  '',
customField: '20100303-215719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105675',
internalId:  '',
customField: '20100303-224311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109070',
internalId:  '',
customField: '20100303-225432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112570',
internalId:  '',
customField: '20100303-230124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117370',
internalId:  '',
customField: '20100303-230431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117397',
internalId:  '',
customField: '20100303-230723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120757',
internalId:  '',
customField: '20100306-145022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122244',
internalId:  '',
customField: '20100306-145500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122911',
internalId:  '',
customField: '20100314-010453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124209',
internalId:  '',
customField: '20100306-145835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124923',
internalId:  '',
customField: '20100306-150053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126258',
internalId:  '',
customField: '20100307-165013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126895',
internalId:  '',
customField: '20100306-150954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130239',
internalId:  '',
customField: '20100306-151253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130266',
internalId:  '',
customField: '20100306-151658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131433',
internalId:  '',
customField: '20100306-152001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133233',
internalId:  '',
customField: '20100306-152524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135433',
internalId:  '',
customField: '20100306-152753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136243',
internalId:  '',
customField: '20100306-153108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136270',
internalId:  '',
customField: '20100306-153356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138849',
internalId:  '',
customField: '20100306-154101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141430',
internalId:  '',
customField: '20100306-154514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141984',
internalId:  '',
customField: '20100627-182651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142011',
internalId:  '',
customField: '20100306-154852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143417',
internalId:  '',
customField: '20100306-160618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149208',
internalId:  '',
customField: '20100306-155859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153208',
internalId:  '',
customField: '20100306-160110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237508',
internalId:  '',
customField: '20100627-181659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251550',
internalId:  '',
customField: '20100320-153035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74915',
internalId:  '',
customField: '20100321-122739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '235108',
internalId:  '',
customField: '20100321-114952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251529',
internalId:  '',
customField: '20100314-152552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251508',
internalId:  '',
customField: '20100321-130845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259308',
internalId:  '',
customField: '20100321-114445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '260408',
internalId:  '',
customField: '20100314-161338'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'Ahp010IN2SY6';
var companyName   = 'Cycle+touring+and+Adventure+site';
var htmlTitle	  = 'cycle+touring';
var metaKeywords  = 'panamericana%2C+cycle+tour%2C+radtour%2C+velotour%2Cdaniel+grab%2C+dani+grab%2C+alaska%2C+Himalay%2C+swiss+tours%2C+adventure%2C+snowshoe+tours%2C+skitours%2C+trekking+tours%2C+cycle+touring';
var metaContents  = 'cycle+touring+and+adventure+site%2C+panamericana%2C+cycle+tours%2C+swiss+tours';
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();
};
