/* [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(''),'/2001.html','true',[],'',''],
	['PAGE','14001',jdecode('Testimony'),jdecode(''),'/14001.html','true',[],'',''],
	['PAGE','2401',jdecode('About+us'),jdecode(''),'/2401.html','true',[],'',''],
	['PAGE','2443',jdecode('News'),jdecode(''),'/2443.html','true',[],'',''],
	['PAGE','7401',jdecode('Blog'),jdecode(''),'/7401.html','true',[],'',''],
	['PAGE','7601',jdecode('Lyrics'),jdecode(''),'/7601/index.html','true',[ 
		['PAGE','10001',jdecode('The+Lord%26%23x27%3Bs+Place'),jdecode(''),'/7601/10001.html','true',[],'',''],
		['PAGE','10801',jdecode('Long+Hallways+Short+Goodbyes'),jdecode(''),'/7601/10801.html','true',[],'',''],
		['PAGE','24301',jdecode('Melissa%26%23x27%3Bs+Song'),jdecode(''),'/7601/24301.html','true',[],'',''],
		['PAGE','25201',jdecode('On+God%26%23x27%3Bs+Watch'),jdecode(''),'/7601/25201.html','true',[],'','']
	],'',''],
	['PAGE','2506',jdecode('Photographs'),jdecode(''),'/2506.html','true',[],'',''],
	['PAGE','20801',jdecode('Spirit+Sent+Store'),jdecode(''),'/20801.html','true',[],'',''],
	['PAGE','2527',jdecode('Music'),jdecode(''),'/2527/index.html','true',[ 
		['PAGE','18301',jdecode('It%26%23x27%3Bs+All+About+the+Blood'),jdecode(''),'/2527/18301.html','true',[],'',''],
		['PAGE','24322',jdecode('Melissa%26%23x27%3Bs+Song'),jdecode(''),'/2527/24322.html','true',[],'',''],
		['PAGE','25301',jdecode('On+God%26%23x27%3Bs+Watch'),jdecode(''),'/2527/25301.html','true',[],'','']
	],'',''],
	['PAGE','2653',jdecode('Links'),jdecode(''),'/2653.html','true',[],'',''],
	['PAGE','2695',jdecode('Contact'),jdecode(''),'/2695.html','true',[],'',''],
	['PAGE','3722',jdecode('Guestbook'),jdecode(''),'/3722.html','true',[],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Solid';
theSitetree.paletteFamily='8396BA';
theSitetree.keyvisualId='4356';
theSitetree.keyvisualName='kv_4356.jpg';
theSitetree.fontsetId='10800';
theSitetree.graphicsetId='11232';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='8396BA';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Solid',
				paletteFamily: 	'8396BA',
				keyvisualId: 	'4356',
				keyvisualName: 	'kv_4356.jpg',
				fontsetId: 		'10800',
				graphicsetId: 	'11232',
				contentColor: 	'FFFFFF',
				contentBGColor: '8396BA',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20110626-213923'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20091222-094532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2443',
internalId:  '',
customField: '20110626-214220'
};
webappMappings['1501']=webappMappings['1501-15596667']={
webappId:    '1501',
documentId:  '2001',
internalId:  '15596667',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2506',
internalId:  '',
customField: '20110626-224632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2527',
internalId:  '',
customField: '20090808-120637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20110626-220237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18301',
internalId:  '',
customField: '20090808-170907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2653',
internalId:  '',
customField: '20090214-195456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2695',
internalId:  '',
customField: '20091222-094836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20090416-205109'
};
webappMappings['1002']=webappMappings['1002-3722aendu0in3c4w']={
webappId:    '1002',
documentId:  '3722',
internalId:  '3722aendu0in3c4w',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20090418-120638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3722',
internalId:  '',
customField: '20090221-123417'
};
webappMappings['7050']=webappMappings['7050-7886']={
webappId:    '7050',
documentId:  '7401',
internalId:  '7886',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25201',
internalId:  '',
customField: '20110626-214916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24322',
internalId:  '',
customField: '20100228-033346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20100228-032330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20100228-032355'
};
webappMappings['7060']=webappMappings['7060-cf0505acd37f17a0ebc8169e67e5818d']={
webappId:    '7060',
documentId:  '2506',
internalId:  'cf0505acd37f17a0ebc8169e67e5818d',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20091221-122315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20110626-215139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20091222-094717'
};
webappMappings['7060']=webappMappings['7060-c163e0c2c3a2a567b7ee26dc654362a2']={
webappId:    '7060',
documentId:  '18301',
internalId:  'c163e0c2c3a2a567b7ee26dc654362a2',
customField: 'language:en;country:US;'
};
webappMappings['4001']=webappMappings['4001-21401437']={
webappId:    '4001',
documentId:  '20801',
internalId:  '21401437',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN3C4W';
var companyName   = 'Spirit+Sent';
var htmlTitle	  = 'Christian+Music%2C+Special+Needs+Children';
var metaKeywords  = '';
var metaContents  = 'Spiritual+Music';
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();
};

