/* [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','901',jdecode('Home'),jdecode(''),'/901.html','true',[],'',''],
	['PAGE','85001',jdecode('Quarries'),jdecode(''),'/85001.html','true',[],'',''],
	['PAGE','226201',jdecode('Granite'),jdecode(''),'/226201.html','true',[],'',''],
	['PAGE','82301',jdecode('Cleaning'),jdecode(''),'/82301.html','true',[],'',''],
	['PAGE','45601',jdecode('Designs'),jdecode(''),'/45601/index.html','true',[ 
		['PAGE','33801',jdecode('Slant+Markers'),jdecode(''),'/45601/33801.html','true',[],'',''],
		['PAGE','43901',jdecode('Flat+Markers'),jdecode(''),'/45601/43901.html','true',[],'',''],
		['PAGE','45901',jdecode('Double+'),jdecode(''),'/45601/45901.html','true',[],'',''],
		['PAGE','46401',jdecode('Single+'),jdecode(''),'/45601/46401.html','true',[],'','']
	],'',''],
	['PAGE','49901',jdecode('Verses'),jdecode(''),'/49901/index.html','true',[ 
		['PAGE','47801',jdecode('Classic+Verses'),jdecode(''),'/49901/47801.html','true',[],'',''],
		['PAGE','5301',jdecode('Bible+Verses'),jdecode(''),'/49901/5301.html','true',[],'',''],
		['PAGE','22501',jdecode('Children+Verses'),jdecode(''),'/49901/22501.html','true',[],'',''],
		['PAGE','23301',jdecode('General+Verses'),jdecode(''),'/49901/23301.html','true',[],'',''],
		['PAGE','27201',jdecode('Comfort+Verses'),jdecode(''),'/49901/27201.html','true',[],'',''],
		['PAGE','28001',jdecode('Mother+Verses'),jdecode(''),'/49901/28001.html','true',[],'','']
	],'',''],
	['PAGE','5901',jdecode('E-mail+Us'),jdecode(''),'/5901.html','true',[],'',''],
	['PAGE','6801',jdecode('Map'),jdecode(''),'/6801.html','true',[],'',''],
	['PAGE','28706',jdecode('Guestbook'),jdecode(''),'/28706/index.html','true',[ 
		['PAGE','28701',jdecode('Read+Guestbook'),jdecode(''),'/28706/28701.html','false',[],'','']
	],'',''],
	['PAGE','90201',jdecode('Search+Engine'),jdecode(''),'/90201.html','true',[],'',''],
	['PAGE','104101',jdecode('Symbolism'),jdecode(''),'/104101/index.html','true',[ 
		['PAGE','106901',jdecode('Flowers'),jdecode(''),'/104101/106901.html','true',[],'','']
	],'',''],
	['PAGE','69801',jdecode('+Gray+Photos'),jdecode(''),'/69801/index.html','true',[ 
		['PAGE','70501',jdecode('A'),jdecode(''),'/69801/70501.html','true',[],'',''],
		['PAGE','70522',jdecode('B'),jdecode(''),'/69801/70522.html','true',[],'',''],
		['PAGE','140001',jdecode('B1'),jdecode(''),'/69801/140001.html','true',[],'',''],
		['PAGE','70543',jdecode('C'),jdecode(''),'/69801/70543.html','true',[],'',''],
		['PAGE','70564',jdecode('D'),jdecode(''),'/69801/70564.html','true',[],'',''],
		['PAGE','70585',jdecode('E'),jdecode(''),'/69801/70585.html','true',[],'',''],
		['PAGE','70606',jdecode('F'),jdecode(''),'/69801/70606.html','true',[],'',''],
		['PAGE','70627',jdecode('G'),jdecode(''),'/69801/70627.html','true',[],'',''],
		['PAGE','70648',jdecode('H'),jdecode(''),'/69801/70648.html','true',[],'',''],
		['PAGE','70669',jdecode('I'),jdecode(''),'/69801/70669.html','true',[],'',''],
		['PAGE','70690',jdecode('J'),jdecode(''),'/69801/70690.html','true',[],'',''],
		['PAGE','70711',jdecode('K'),jdecode(''),'/69801/70711.html','true',[],'',''],
		['PAGE','70732',jdecode('L'),jdecode(''),'/69801/70732.html','true',[],'',''],
		['PAGE','70753',jdecode('M'),jdecode(''),'/69801/70753.html','true',[],'',''],
		['PAGE','70774',jdecode('N'),jdecode(''),'/69801/70774.html','true',[],'',''],
		['PAGE','70795',jdecode('O'),jdecode(''),'/69801/70795.html','true',[],'',''],
		['PAGE','70816',jdecode('P'),jdecode(''),'/69801/70816.html','true',[],'',''],
		['PAGE','70837',jdecode('Q'),jdecode(''),'/69801/70837.html','true',[],'',''],
		['PAGE','70858',jdecode('R'),jdecode(''),'/69801/70858.html','true',[],'',''],
		['PAGE','70879',jdecode('S'),jdecode(''),'/69801/70879.html','true',[],'',''],
		['PAGE','70900',jdecode('T'),jdecode(''),'/69801/70900.html','true',[],'',''],
		['PAGE','70921',jdecode('U'),jdecode(''),'/69801/70921.html','true',[],'',''],
		['PAGE','70942',jdecode('V'),jdecode(''),'/69801/70942.html','true',[],'',''],
		['PAGE','70963',jdecode('W'),jdecode(''),'/69801/70963.html','true',[],'',''],
		['PAGE','70984',jdecode('X'),jdecode(''),'/69801/70984.html','true',[],'',''],
		['PAGE','71005',jdecode('Y'),jdecode(''),'/69801/71005.html','true',[],'',''],
		['PAGE','71026',jdecode('Z'),jdecode(''),'/69801/71026.html','true',[],'','']
	],'',''],
	['PAGE','144801',jdecode('Color+Photos'),jdecode(''),'/144801.html','true',[],'',''],
	['PAGE','222201',jdecode('Bronze+'),jdecode(''),'/222201.html','true',[],'',''],
	['PAGE','169301',jdecode('+Vases'),jdecode(''),'/169301.html','true',[],'',''],
	['PAGE','190601',jdecode('Veterans+'),jdecode(''),'/190601.html','true',[],'',''],
	['PAGE','244012',jdecode('Next+Page'),jdecode(''),'/244012.html','true',[],'','']];
var siteelementCount=56;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='5E5E5E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10344';
theSitetree.graphicsetId='10448';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='5e5e5e';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'5E5E5E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10344',
				graphicsetId: 	'10448',
				contentColor: 	'FFFFFF',
				contentBGColor: '5e5e5e',
				a_color: 		'5E5E5E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '6801',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-28706avec10inee7l']={
webappId:    '1002',
documentId:  '28706',
internalId:  '28706avec10inee7l',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '901',
internalId:  '',
customField: '20090919-090909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85001',
internalId:  '',
customField: '20070217-130035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82301',
internalId:  '',
customField: '20070222-110756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45601',
internalId:  '',
customField: '20070517-111957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33801',
internalId:  '',
customField: '20070202-164105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43901',
internalId:  '',
customField: '20070202-175114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20070202-171438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46401',
internalId:  '',
customField: '20070201-185011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49901',
internalId:  '',
customField: '20081218-134144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47801',
internalId:  '',
customField: '20070201-175912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20070212-145351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20070212-145450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20070201-183951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20070126-135705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28001',
internalId:  '',
customField: '20070212-145853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20090213-154507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20070611-100759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28706',
internalId:  '',
customField: '20081218-133347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20070126-140807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90201',
internalId:  '',
customField: '20081218-133515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104101',
internalId:  '',
customField: '20070601-134012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106901',
internalId:  '',
customField: '20080429-140716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69801',
internalId:  '',
customField: '20081218-134310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70501',
internalId:  '',
customField: '20100524-105841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70522',
internalId:  '',
customField: '20100325-161833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140001',
internalId:  '',
customField: '20100524-104606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70543',
internalId:  '',
customField: '20100524-114423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70564',
internalId:  '',
customField: '20100218-164950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70585',
internalId:  '',
customField: '20091021-133119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70606',
internalId:  '',
customField: '20100614-151732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70627',
internalId:  '',
customField: '20100524-105211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70648',
internalId:  '',
customField: '20100630-135458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70669',
internalId:  '',
customField: '20070205-175659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70690',
internalId:  '',
customField: '20100614-152158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70711',
internalId:  '',
customField: '20100524-104833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70732',
internalId:  '',
customField: '20100524-114945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70753',
internalId:  '',
customField: '20100630-135743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70774',
internalId:  '',
customField: '20090210-111926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70795',
internalId:  '',
customField: '20100204-105150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70816',
internalId:  '',
customField: '20100630-135958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70837',
internalId:  '',
customField: '20070205-175659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70858',
internalId:  '',
customField: '20100524-114708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70879',
internalId:  '',
customField: '20100614-152423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70900',
internalId:  '',
customField: '20100621-132243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70921',
internalId:  '',
customField: '20070205-175659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70942',
internalId:  '',
customField: '20070205-175659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70963',
internalId:  '',
customField: '20100414-135126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70984',
internalId:  '',
customField: '20070205-175659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71005',
internalId:  '',
customField: '20100415-161601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71026',
internalId:  '',
customField: '20070205-175659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144801',
internalId:  '',
customField: '20100614-151516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222201',
internalId:  '',
customField: '20090624-145540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169301',
internalId:  '',
customField: '20081001-161521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190601',
internalId:  '',
customField: '20081110-122557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '226201',
internalId:  '',
customField: '20090716-103323'
};
webappMappings['7060']=webappMappings['7060-faf3d87dd216196948835bb68e5f3a68']={
webappId:    '7060',
documentId:  '244012',
internalId:  'faf3d87dd216196948835bb68e5f3a68',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244012',
internalId:  '',
customField: '20100326-123851'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEE7L';
var companyName   = 'Memorials+of+Grace+Monument+Company';
var htmlTitle	  = 'Memorials+of+Grace';
var metaKeywords  = 'Monument%2C+Headstone%2C+tombstone%2C+Memorials+of+Grace+Monument+Company+Cullman%2C+Al.+Alabama';
var metaContents  = 'Memorials+of+Grace+Monument+Company%2C+Verses%2C+monument+designs%2C+Cullman%2C+Al.+Alabama%2C+monument%2C+headstone%2C+tombstone%2C%2C+memorials+of+grace%2C+grave+markers%2C+pet+markers';
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();
};
