/* [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','6901',jdecode('Home'),jdecode(''),'/6901.html','true',[],'',''],
	['PAGE','12001',jdecode('News+%26+Announcements'),jdecode(''),'/12001.html','true',[],'',''],
	['PAGE','6952',jdecode('About+Us'),jdecode(''),'/6952/index.html','true',[ 
		['PAGE','6973',jdecode('Contact+Us'),jdecode(''),'/6952/6973.html','true',[],'','']
	],'',''],
	['PAGE','6994',jdecode('Programs+%2F+Services'),jdecode(''),'/6994/index.html','true',[ 
		['PAGE','7015',jdecode('Academic+Scholarships'),jdecode(''),'/6994/7015.html','false',[],'',''],
		['PAGE','7036',jdecode('Grantmaking'),jdecode(''),'/6994/7036.html','false',[],'',''],
		['PAGE','7057',jdecode('LifeLine+Enrichment+Program'),jdecode(''),'/6994/7057.html','true',[],'',''],
		['PAGE','9901',jdecode('Military%2FCivil+Service+Support'),jdecode(''),'/6994/9901.html','true',[],'','']
	],'',''],
	['PAGE','13001',jdecode('Christmas+Toy+Program'),jdecode(''),'/13001/index.html','false',[ 
		['PAGE','14801',jdecode('For+Donors'),jdecode(''),'/13001/14801.html','true',[],'','']
	],'',''],
	['PAGE','7078',jdecode('Donate+Here'),jdecode(''),'/7078.html','true',[],'',''],
	['PAGE','7120',jdecode('Video+Phone+Offer'),jdecode(''),'/7120/index.html','true',[ 
		['PAGE','7141',jdecode('For+Military+Members'),jdecode(''),'/7120/7141.html','true',[],'',''],
		['PAGE','7162',jdecode('For+Non-Military+Members'),jdecode(''),'/7120/7162.html','true',[],'','']
	],'',''],
	['PAGE','7183',jdecode('Our+Friends'),jdecode(''),'/7183.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='AD1D1D';
theSitetree.keyvisualId='5840';
theSitetree.keyvisualName='kv_5840.jpg';
theSitetree.fontsetId='11095';
theSitetree.graphicsetId='11868';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easylife',
				paletteFamily: 	'AD1D1D',
				keyvisualId: 	'5840',
				keyvisualName: 	'kv_5840.jpg',
				fontsetId: 		'11095',
				graphicsetId: 	'11868',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-3118']={
webappId:    '7008',
documentId:  '6973',
internalId:  '3118',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20100408-131839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6952',
internalId:  '',
customField: '20091018-163436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6973',
internalId:  '',
customField: '20090503-160730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6994',
internalId:  '',
customField: '20090503-161102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7015',
internalId:  '',
customField: '20090503-161229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7036',
internalId:  '',
customField: '20090503-161652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7057',
internalId:  '',
customField: '20090503-170950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7078',
internalId:  '',
customField: '20090507-144907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7120',
internalId:  '',
customField: '20090503-171518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7141',
internalId:  '',
customField: '20090503-171701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7162',
internalId:  '',
customField: '20100408-132103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7183',
internalId:  '',
customField: '20090503-170815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20090503-171940'
};
webappMappings['1501']=webappMappings['1501-4518097']={
webappId:    '1501',
documentId:  '6901',
internalId:  '4518097',
customField: '1501'
};
webappMappings['7050']=webappMappings['7050-1011']={
webappId:    '7050',
documentId:  '12001',
internalId:  '1011',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20090507-150316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20091018-164317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20091027-130127'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INLNOE';
var companyName   = 'Sharon+K+Pacheco+Foundation';
var htmlTitle	  = 'Sharon+K+Pacheco+Foundation';
var metaKeywords  = 'military+support%2C+military+families%2C+service+members%2C+army%2C+navy%2C+air+force%2C+marines%2C+coast+guard%2C+bereavement%2C+grief%2C+sorrow%2C+holocaust%2C+grants%2C+non-profit%2C+nonprofit%2C+charity%2C+colorado%2C+faith%2C+christian%2C+foundation%2C+children%2C+youth%2C+scholarship%2C+grant+making%2C+grant+writing%2C+Denver';
var metaContents  = 'The+Official+Website+of+the+Sharon+K+Pacheco+Foundation+helping+military+families+and+at-risk+youth+and+children.';
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();
};
