/* [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','2001',jdecode('Home'),jdecode(''), jdecode('%2F2001.html'), 'true',[],'',''],
	['PAGE','2052',jdecode('Obituaries'),jdecode(''), jdecode('%2F2052%2Findex.html'), 'true',[ 
		['PAGE','84544',jdecode('Joe+F.+Ingram'),jdecode(''), jdecode('%2F2052%2F84544.html'), 'false',[],'',''],
		['PAGE','85223',jdecode('Mary+Sue+Eaton'),jdecode(''), jdecode('%2F2052%2F85223.html'), 'false',[],'',''],
		['PAGE','86223',jdecode('Marvin+Ray+Self'),jdecode(''), jdecode('%2F2052%2F86223.html'), 'false',[],'',''],
		['PAGE','86723',jdecode('Cynthia+Langley'),jdecode(''), jdecode('%2F2052%2F86723.html'), 'false',[],'',''],
		['PAGE','87323',jdecode('Charles+R.+Wilson'),jdecode(''), jdecode('%2F2052%2F87323.html'), 'false',[],'',''],
		['PAGE','87923',jdecode('Myung+Ja+Myers'),jdecode(''), jdecode('%2F2052%2F87923.html'), 'false',[],'',''],
		['PAGE','88423',jdecode('Earl+K.+Benton'),jdecode(''), jdecode('%2F2052%2F88423.html'), 'false',[],'',''],
		['PAGE','88923',jdecode('William+E.+Mason'),jdecode(''), jdecode('%2F2052%2F88923.html'), 'false',[],'',''],
		['PAGE','89523',jdecode('James+A.+Walker'),jdecode(''), jdecode('%2F2052%2F89523.html'), 'false',[],'',''],
		['PAGE','89544',jdecode('Marguerite+Diorio'),jdecode(''), jdecode('%2F2052%2F89544.html'), 'false',[],'',''],
		['PAGE','90223',jdecode('Marcus+Alan+Dyer'),jdecode(''), jdecode('%2F2052%2F90223.html'), 'false',[],'',''],
		['PAGE','90723',jdecode('Geona+Brewer+Coleman'),jdecode(''), jdecode('%2F2052%2F90723.html'), 'false',[],'',''],
		['PAGE','91323',jdecode('Margaret+Lee+Hale+McKenzie'),jdecode(''), jdecode('%2F2052%2F91323.html'), 'false',[],'',''],
		['PAGE','91723',jdecode('John+Robert+Goins'),jdecode(''), jdecode('%2F2052%2F91723.html'), 'false',[],'',''],
		['PAGE','91744',jdecode('Minnie+Lorene+Sharp+Carter'),jdecode(''), jdecode('%2F2052%2F91744.html'), 'false',[],'',''],
		['PAGE','92323',jdecode('Bertha+Fay+Oliver+Womac'),jdecode(''), jdecode('%2F2052%2F92323.html'), 'false',[],'',''],
		['PAGE','92723',jdecode('William+Jess+%22Billy%22+Whitted'),jdecode(''), jdecode('%2F2052%2F92723.html'), 'false',[],'',''],
		['PAGE','93323',jdecode('Lee+Thomas+Buchanan'),jdecode(''), jdecode('%2F2052%2F93323.html'), 'false',[],'',''],
		['PAGE','93723',jdecode('Margaret+Louise+Brazzell'),jdecode(''), jdecode('%2F2052%2F93723.html'), 'false',[],'',''],
		['PAGE','94123',jdecode('Ralph+J.+Sliger'),jdecode(''), jdecode('%2F2052%2F94123.html'), 'false',[],'',''],
		['PAGE','94523',jdecode('Frank+W.+Lawson'),jdecode(''), jdecode('%2F2052%2F94523.html'), 'false',[],'',''],
		['PAGE','94923',jdecode('Dr.+William+E.+Harrison'),jdecode(''), jdecode('%2F2052%2F94923.html'), 'false',[],'',''],
		['PAGE','94944',jdecode('Sarah+L.+Mansfield'),jdecode(''), jdecode('%2F2052%2F94944.html'), 'false',[],'',''],
		['PAGE','95423',jdecode('Dr.+William+Edward+Harrison'),jdecode(''), jdecode('%2F2052%2F95423.html'), 'false',[],'',''],
		['PAGE','95444',jdecode('Robin+D.+Lancaster'),jdecode(''), jdecode('%2F2052%2F95444.html'), 'false',[],'',''],
		['PAGE','95923',jdecode('Thomas+Daniel+Dilbeck'),jdecode(''), jdecode('%2F2052%2F95923.html'), 'false',[],'',''],
		['PAGE','96423',jdecode('Hazel+Marie+Watson'),jdecode(''), jdecode('%2F2052%2F96423.html'), 'true',[],'','']
	],'',''],
	['PAGE','2073',jdecode('Contact+Information'),jdecode(''), jdecode('%2F2073.html'), 'true',[],'',''],
	['PAGE','2094',jdecode('About+us'),jdecode(''), jdecode('%2F2094%2Findex.html'), 'true',[ 
		['PAGE','2501',jdecode('Facility+Tour'),jdecode(''), jdecode('%2F2094%2F2501.html'), 'true',[],'','']
	],'',''],
	['PAGE','16501',jdecode('Weather'),jdecode(''), jdecode('%2F16501.html'), 'true',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Phase';
theSitetree.paletteFamily='CBDD6C';
theSitetree.keyvisualId='12158';
theSitetree.keyvisualName='kv_12158.jpg';
theSitetree.fontsetId='33330';
theSitetree.graphicsetId='14199';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='888888';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Phase',
				paletteFamily: 	'CBDD6C',
				keyvisualId: 	'12158',
				keyvisualName: 	'kv_12158.jpg',
				fontsetId: 		'33330',
				graphicsetId: 	'14199',
				contentColor: 	'FFFFFF',
				contentBGColor: '888888',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20091004-201434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2052',
internalId:  '',
customField: '20120128-230219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2094',
internalId:  '',
customField: '20091004-201517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2073',
internalId:  '',
customField: '20091101-215712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20090829-231812'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95923',
internalId:  '',
customField: '20120128-230124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96423',
internalId:  '',
customField: '20120130-195359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91744',
internalId:  '',
customField: '20111230-130614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92323',
internalId:  '',
customField: '20120101-234447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20100122-174427'
};
webappMappings['7080']=webappMappings['7080-640']={
webappId:    '7080',
documentId:  '16501',
internalId:  '640',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87323',
internalId:  '',
customField: '20111122-170355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87923',
internalId:  '',
customField: '20111125-080621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88423',
internalId:  '',
customField: '20111129-134040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88923',
internalId:  '',
customField: '20111130-185128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89523',
internalId:  '',
customField: '20111204-212558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89544',
internalId:  '',
customField: '20111204-212726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90223',
internalId:  '',
customField: '20111214-173333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86723',
internalId:  '',
customField: '20111114-111836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95444',
internalId:  '',
customField: '20120125-230350'
};
webappMappings['1002']=webappMappings['1002-96423avfl30inhseu']={
webappId:    '1002',
documentId:  '96423',
internalId:  '96423avfl30inhseu',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95423',
internalId:  '',
customField: '20120125-230110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84544',
internalId:  '',
customField: '20111103-170626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85223',
internalId:  '',
customField: '20111104-224704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86223',
internalId:  '',
customField: '20111110-164548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94923',
internalId:  '',
customField: '20120123-223726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92723',
internalId:  '',
customField: '20120103-225841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93323',
internalId:  '',
customField: '20120112-231928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93723',
internalId:  '',
customField: '20120115-233339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94123',
internalId:  '',
customField: '20120118-232444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90723',
internalId:  '',
customField: '20111219-113114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91323',
internalId:  '',
customField: '20111227-111837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91723',
internalId:  '',
customField: '20111230-130443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94523',
internalId:  '',
customField: '20120120-112958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94944',
internalId:  '',
customField: '20120123-224023'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHSEU';
var companyName   = 'Laycock-Hobbs+Funeral+Home';
var htmlTitle	  = '';
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();
};

