/* [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 theSitetree=[ 
	['PAGE','6842',jdecode('Home'),jdecode(''),'/6842/index.html','true',[ 
		['PAGE','125423',jdecode('Archive'),jdecode(''),'/6842/125423.html','true',[],''],
		['PAGE','116623',jdecode('Kubler-Ross+Model'),jdecode(''),'/6842/116623.html','true',[],'']
	],''],
	['PAGE','6893',jdecode('About+Us'),jdecode(''),'/6893/index.html','true',[ 
		['PAGE','6914',jdecode('About+Sumarie'),jdecode(''),'/6893/6914.html','true',[],''],
		['PAGE','39201',jdecode('About+Keith'),jdecode(''),'/6893/39201.html','true',[],''],
		['PAGE','82601',jdecode('The+Children'),jdecode(''),'/6893/82601.html','true',[],'']
	],''],
	['PAGE','87901',jdecode('The+Sumarie+Zone'),jdecode(''),'/87901/index.html','true',[ 
		['PAGE','95101',jdecode('S.Z.+Archive'),jdecode(''),'/87901/95101.html','true',[],'']
	],''],
	['PAGE','90801',jdecode('The+Wedding+Party'),jdecode(''),'/90801.html','true',[],''],
	['PAGE','6998',jdecode('The+Church'),jdecode(''),'/6998/index.html','true',[ 
		['PAGE','76601',jdecode('The+Ministers'),jdecode(''),'/6998/76601.html','true',[],'']
	],''],
	['PAGE','6977',jdecode('The+Reception'),jdecode(''),'/6977.html','true',[],''],
	['PAGE','94001',jdecode('Our+Registry'),jdecode(''),'/94001.html','true',[],''],
	['PAGE','104512',jdecode('Eats+and+Drinks'),jdecode(''),'/104512/index.html','true',[ 
		['PAGE','104712',jdecode('Cheap+Eats+Near+Hotel'),jdecode(''),'/104512/104712.html','true',[],''],
		['PAGE','104733',jdecode('Upscale+Eats+Near+Hotel'),jdecode(''),'/104512/104733.html','true',[],''],
		['PAGE','104754',jdecode('Bars+Near+Hotel'),jdecode(''),'/104512/104754.html','true',[],''],
		['PAGE','104775',jdecode('Our+Favorites%21%21'),jdecode(''),'/104512/104775.html','true',[],'']
	],''],
	['PAGE','104817',jdecode('Places+To+Go'),jdecode(''),'/104817/index.html','true',[ 
		['PAGE','104838',jdecode('Aquarium'),jdecode(''),'/104817/104838.html','true',[],''],
		['PAGE','104859',jdecode('Centennial+Olympic+Park'),jdecode(''),'/104817/104859.html','true',[],''],
		['PAGE','104880',jdecode('Atlanta+Children%E2%80%99s+Museum'),jdecode(''),'/104817/104880.html','true',[],''],
		['PAGE','104901',jdecode('World+of+Coca-Cola'),jdecode(''),'/104817/104901.html','true',[],''],
		['PAGE','104922',jdecode('High+Museum'),jdecode(''),'/104817/104922.html','true',[],''],
		['PAGE','104943',jdecode('Fernbank+Museum'),jdecode(''),'/104817/104943.html','true',[],''],
		['PAGE','104964',jdecode('Zoo+Atlanta'),jdecode(''),'/104817/104964.html','true',[],''],
		['PAGE','104985',jdecode('Atlanta+Cyclorama'),jdecode(''),'/104817/104985.html','true',[],''],
		['PAGE','105006',jdecode('Stone+Mountain'),jdecode(''),'/104817/105006.html','true',[],'']
	],''],
	['PAGE','85901',jdecode('Hotels'),jdecode(''),'/85901.html','true',[],''],
	['PAGE','13306',jdecode('Guestbook'),jdecode(''),'/13306/index.html','true',[ 
		['PAGE','13301',jdecode('Read+Guestbook'),jdecode(''),'/13306/13301.html','false',[],'']
	],''],
	['PAGE','18401',jdecode('Contact'),jdecode(''),'/18401.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='FFD375';
theSitetree.keyvisualId='1963';
theSitetree.keyvisualName='blumen.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='385';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'FFD375',
				keyvisualId: 	'1963',
				keyvisualName: 	'blumen.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'385',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFD375',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6842',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-13306aaplu0in290i']={
webappId:    '1002',
documentId:  '13306',
internalId:  '13306aaplu0in290i',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6842',
internalId:  '',
customField: '20090712-193710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6893',
internalId:  '',
customField: '20090416-113427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6914',
internalId:  '',
customField: '20090416-113628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39201',
internalId:  '',
customField: '20090416-112638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82601',
internalId:  '',
customField: '20090225-072433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87901',
internalId:  '',
customField: '20090712-193139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90801',
internalId:  '',
customField: '20090722-105626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6998',
internalId:  '',
customField: '20090710-100906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76601',
internalId:  '',
customField: '20090416-114729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6977',
internalId:  '',
customField: '20090710-101120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85901',
internalId:  '',
customField: '20090710-102250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13306',
internalId:  '',
customField: '20090617-155739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20081230-121619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20081230-075240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94001',
internalId:  '',
customField: '20090710-101320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95101',
internalId:  '',
customField: '20090712-191641'
};
webappMappings['1501']=webappMappings['1501-12456728']={
webappId:    '1501',
documentId:  '6842',
internalId:  '12456728',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104512',
internalId:  '',
customField: '20090521-103619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104712',
internalId:  '',
customField: '20090710-101449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104817',
internalId:  '',
customField: '20090521-114127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104733',
internalId:  '',
customField: '20090521-103902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104754',
internalId:  '',
customField: '20090710-101551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104775',
internalId:  '',
customField: '20090710-101640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104838',
internalId:  '',
customField: '20090521-114110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104859',
internalId:  '',
customField: '20090521-113525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104880',
internalId:  '',
customField: '20090710-101831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104901',
internalId:  '',
customField: '20090521-113551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104922',
internalId:  '',
customField: '20090710-101749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104943',
internalId:  '',
customField: '20090521-113629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104964',
internalId:  '',
customField: '20090521-113644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104985',
internalId:  '',
customField: '20090710-101928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105006',
internalId:  '',
customField: '20090710-102015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116623',
internalId:  '',
customField: '20090625-050146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125423',
internalId:  '',
customField: '20090716-133136'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0IN290I';
var companyName   = 'Sumarie+%26+Keith+ARE+Married%21';
var htmlTitle	  = 'The+Official+Wedding+Site+for+Sumarie+and+Keith';
var metaKeywords  = 'Keith+Roger+Forrester+Wedding+Sumarie+Bass';
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();
};

