/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],''],
	['PAGE','652',jdecode('Products'),jdecode(''),'/652/index.html','true',[ 
		['PAGE','673',jdecode('Grass+Markers'),jdecode(''),'/652/673.html','true',[],''],
		['PAGE','694',jdecode('Slant+Markers'),jdecode(''),'/652/694.html','true',[],''],
		['PAGE','715',jdecode('Upright+Markers'),jdecode(''),'/652/715.html','true',[],''],
		['PAGE','736',jdecode('Special+Markers'),jdecode(''),'/652/736.html','true',[],''],
		['PAGE','757',jdecode('Pet+Markers'),jdecode(''),'/652/757.html','true',[],''],
		['PAGE','778',jdecode('Bronze+Plaques'),jdecode(''),'/652/778.html','true',[],''],
		['PAGE','799',jdecode('Candles'),jdecode(''),'/652/799.html','true',[],''],
		['PAGE','820',jdecode('Vases'),jdecode(''),'/652/820.html','true',[],''],
		['PAGE','11801',jdecode('Pictures'),jdecode(''),'/652/11801.html','true',[],'']
	],''],
	['PAGE','841',jdecode('Services'),jdecode(''),'/841.html','true',[],''],
	['PAGE','862',jdecode('Special+Designs'),jdecode(''),'/862.html','true',[],''],
	['PAGE','12501',jdecode('Colors'),jdecode(''),'/12501/index.html','true',[ 
		['PAGE','13801',jdecode('Dark+Barre'),jdecode(''),'/12501/13801.html','true',[],''],
		['PAGE','13822',jdecode('Mountain+Rose'),jdecode(''),'/12501/13822.html','true',[],''],
		['PAGE','13843',jdecode('Belfast+Black'),jdecode(''),'/12501/13843.html','true',[],''],
		['PAGE','13864',jdecode('Blue+Pearl'),jdecode(''),'/12501/13864.html','true',[],''],
		['PAGE','13885',jdecode('Laurnetine+Pink'),jdecode(''),'/12501/13885.html','true',[],''],
		['PAGE','13906',jdecode('Belmont+Rose'),jdecode(''),'/12501/13906.html','true',[],''],
		['PAGE','13927',jdecode('Stanstead+Grey'),jdecode(''),'/12501/13927.html','true',[],''],
		['PAGE','13948',jdecode('African+Red'),jdecode(''),'/12501/13948.html','true',[],''],
		['PAGE','13969',jdecode('Indian+Red'),jdecode(''),'/12501/13969.html','true',[],''],
		['PAGE','13990',jdecode('Red+Deer+Brown'),jdecode(''),'/12501/13990.html','true',[],''],
		['PAGE','14011',jdecode('Night+Sky'),jdecode(''),'/12501/14011.html','true',[],''],
		['PAGE','14032',jdecode('Vertigre'),jdecode(''),'/12501/14032.html','true',[],'']
	],''],
	['PAGE','904',jdecode('Contact'),jdecode(''),'/904/index.html','true',[ 
		['PAGE','925',jdecode('Adresses'),jdecode(''),'/904/925.html','true',[],''],
		['PAGE','946',jdecode('How+to+find+us'),jdecode(''),'/904/946.html','true',[],'']
	],''],
	['PAGE','11501',jdecode('+Pictures'),jdecode(''),'/11501.html','true',[],''],
	['PAGE','20001',jdecode('Inventory'),jdecode(''),'/20001.html','true',[],''],
	['PAGE','16906',jdecode('Guestbook'),jdecode(''),'/16906/index.html','true',[ 
		['PAGE','16901',jdecode('Read+Guestbook'),jdecode(''),'/16906/16901.html','false',[],'']
	],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Cuy';
theSitetree.paletteFamily='F8FCF2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='385';
theSitetree.graphicsetId='435';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F8FCF2';
var theTemplate={
				name: 			'Cuy',
				paletteFamily: 	'F8FCF2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'385',
				graphicsetId: 	'435',
				contentColor: 	'000000',
				contentBGColor: 'F8FCF2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F8FCF2',
				b_color: 		'BECDA9',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-4b3a2f4ef3f058a81ffb7e39e174ae1f']={
webappId:    '7060',
documentId:  '11501',
internalId:  '4b3a2f4ef3f058a81ffb7e39e174ae1f',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-16906avec10inlum6']={
webappId:    '1002',
documentId:  '16906',
internalId:  '16906avec10inlum6',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20090112-133040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20090112-141034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20070830-122725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20070830-123007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20070830-123238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20070830-123511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20070906-062957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '778',
internalId:  '',
customField: '20070830-125242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '799',
internalId:  '',
customField: '20070906-063030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '820',
internalId:  '',
customField: '20070830-125940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20070830-133708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '841',
internalId:  '',
customField: '20090112-151443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '862',
internalId:  '',
customField: '20070830-132751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20070830-143706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20070830-141552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13822',
internalId:  '',
customField: '20070830-141456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13843',
internalId:  '',
customField: '20070830-141706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13864',
internalId:  '',
customField: '20070830-141812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13885',
internalId:  '',
customField: '20070830-141920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13906',
internalId:  '',
customField: '20070830-142014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13927',
internalId:  '',
customField: '20070830-142126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13948',
internalId:  '',
customField: '20070830-142236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13969',
internalId:  '',
customField: '20070830-142326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13990',
internalId:  '',
customField: '20070830-142431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14011',
internalId:  '',
customField: '20070830-142517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14032',
internalId:  '',
customField: '20070830-142734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '904',
internalId:  '',
customField: '20090109-085613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '925',
internalId:  '',
customField: '20070831-063642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '946',
internalId:  '',
customField: '20070830-150000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20090112-160335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16906',
internalId:  '',
customField: '20070831-062247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16901',
internalId:  '',
customField: '20070831-062247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20090112-145130'
};
webappMappings['7060']=webappMappings['7060-22c309d77efa29c73c5f03f2fd78ec66']={
webappId:    '7060',
documentId:  '20001',
internalId:  '22c309d77efa29c73c5f03f2fd78ec66',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-28a3371fc322f8e76ca29ee6c0cd8205']={
webappId:    '7060',
documentId:  '862',
internalId:  '28a3371fc322f8e76ca29ee6c0cd8205',
customField: 'language:en;country:US;'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INLUM6';
var companyName   = 'Susquehanna+Monuments+%26+Sandblast';
var htmlTitle	  = 'susquehannamonuments.com';
var metaKeywords  = '';
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();
};
