/* [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','2373',jdecode('Library'),jdecode(''), jdecode('%2F2373%2Findex.html'), 'true',[ 
		['PAGE','11301',jdecode('Poetry'),jdecode(''), jdecode('%2F2373%2F11301.html'), 'true',[],'',''],
		['PAGE','11322',jdecode('Fiction'),jdecode(''), jdecode('%2F2373%2F11322.html'), 'true',[],'',''],
		['PAGE','11343',jdecode('Non-Fiction'),jdecode(''), jdecode('%2F2373%2F11343.html'), 'true',[],'','']
	],'',''],
	['PAGE','12401',jdecode('Book+Details'),jdecode(''), jdecode('%2F12401%2Findex.html'), 'true',[ 
		['PAGE','12422',jdecode('Candy'),jdecode(''), jdecode('%2F12401%2F12422.html'), 'false',[],'',''],
		['PAGE','12443',jdecode('Amulet+Cypher'),jdecode(''), jdecode('%2F12401%2F12443.html'), 'false',[],'',''],
		['PAGE','12464',jdecode('Patience+of+Monuments'),jdecode(''), jdecode('%2F12401%2F12464.html'), 'false',[],'',''],
		['PAGE','28612',jdecode('Responsorials'),jdecode(''), jdecode('%2F12401%2F28612.html'), 'false',[],'',''],
		['PAGE','33112',jdecode('Interstate+Chokehold'),jdecode(''), jdecode('%2F12401%2F33112.html'), 'false',[],'',''],
		['PAGE','67723',jdecode('ICH+review'),jdecode(''), jdecode('%2F12401%2F67723.html'), 'false',[],'',''],
		['PAGE','35512',jdecode('Bells+for+Her'),jdecode(''), jdecode('%2F12401%2F35512.html'), 'false',[],'',''],
		['PAGE','37512',jdecode('Sunday+Morning+Spiders'),jdecode(''), jdecode('%2F12401%2F37512.html'), 'false',[],'',''],
		['PAGE','42012',jdecode('Wisdom+%26+Dust'),jdecode(''), jdecode('%2F12401%2F42012.html'), 'false',[],'',''],
		['PAGE','46923',jdecode('Fire+in+the+Marrow'),jdecode(''), jdecode('%2F12401%2F46923.html'), 'false',[],'',''],
		['PAGE','54223',jdecode('Silence%2C+Inhabited'),jdecode(''), jdecode('%2F12401%2F54223.html'), 'false',[],'',''],
		['PAGE','58023',jdecode('Media+and+Formal+Cause'),jdecode(''), jdecode('%2F12401%2F58023.html'), 'false',[],'',''],
		['PAGE','64823',jdecode('Compatible+Aspects+of+the+Disparate+Endeavor'),jdecode(''), jdecode('%2F12401%2F64823.html'), 'false',[],'',''],
		['PAGE','70334',jdecode('this+wonderful+perpetual+beautiful'),jdecode(''), jdecode('%2F12401%2F70334.html'), 'false',[],'',''],
		['PAGE','79434',jdecode('Love+Notes+from+a+Soldier%26%23x27%3Bs+Diary'),jdecode(''), jdecode('%2F12401%2F79434.html'), 'false',[],'',''],
		['PAGE','79934',jdecode('Chasing+Ghosts'),jdecode(''), jdecode('%2F12401%2F79934.html'), 'false',[],'',''],
		['PAGE','83734',jdecode('Executive+Severance'),jdecode(''), jdecode('%2F12401%2F83734.html'), 'false',[],'',''],
		['PAGE','90234',jdecode('Josephine+The+Outlaw+King'),jdecode(''), jdecode('%2F12401%2F90234.html'), 'false',[],'','']
	],'',''],
	['PAGE','2301',jdecode('About+Us'),jdecode(''), jdecode('%2F2301.html'), 'true',[],'',''],
	['PAGE','52523',jdecode('Announcements'),jdecode(''), jdecode('%2F52523.html'), 'false',[],'',''],
	['PAGE','15401',jdecode('Links'),jdecode(''), jdecode('%2F15401.html'), 'true',[],'',''],
	['PAGE','15712',jdecode('Submissions'),jdecode(''), jdecode('%2F15712.html'), 'true',[],'',''],
	['PAGE','4122',jdecode('Contact+Us'),jdecode(''), jdecode('%2F4122.html'), 'true',[],'',''],
	['PAGE','56523',jdecode('order+form+SI'),jdecode(''), jdecode('%2F56523.html'), 'false',[],'',''],
	['PAGE','23712',jdecode('Media+Files'),jdecode(''), jdecode('%2F23712.html'), 'false',[],'',''],
	['PAGE','75334',jdecode('Events'),jdecode(''), jdecode('%2F75334%2Findex.html'), 'false',[ 
		['PAGE','74914',jdecode('twpb+event'),jdecode(''), jdecode('%2F75334%2F74914.html'), 'false',[],'','']
	],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Office';
theSitetree.paletteFamily='727D9C';
theSitetree.keyvisualId='11165';
theSitetree.keyvisualName='kv_11165.jpg';
theSitetree.fontsetId='32062';
theSitetree.graphicsetId='13879';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Office',
				paletteFamily: 	'727D9C',
				keyvisualId: 	'11165',
				keyvisualName: 	'kv_11165.jpg',
				fontsetId: 		'32062',
				graphicsetId: 	'13879',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28612',
internalId:  '',
customField: '20100313-161500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23712',
internalId:  '',
customField: '20091020-135035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2373',
internalId:  '',
customField: '20120119-155134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20101111-203812'
};
webappMappings['7008']=webappMappings['7008-6495']={
webappId:    '7008',
documentId:  '4122',
internalId:  '6495',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15712',
internalId:  '',
customField: '20110217-142633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20110717-030214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4122',
internalId:  '',
customField: '20090923-170037'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2373',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20110802-204349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11322',
internalId:  '',
customField: '20120119-155154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11343',
internalId:  '',
customField: '20111216-145641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20120119-154605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12422',
internalId:  '',
customField: '20100313-164243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12443',
internalId:  '',
customField: '20111228-173940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12464',
internalId:  '',
customField: '20100313-163615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33112',
internalId:  '',
customField: '20110415-152157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35512',
internalId:  '',
customField: '20100313-162739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37512',
internalId:  '',
customField: '20100326-203344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42012',
internalId:  '',
customField: '20110205-184523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46923',
internalId:  '',
customField: '20110205-184419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52523',
internalId:  '',
customField: '20101122-175058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54223',
internalId:  '',
customField: '20110830-004638'
};
webappMappings['1501']=webappMappings['1501-15571452']={
webappId:    '1501',
documentId:  '2373',
internalId:  '15571452',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-22253']={
webappId:    '7008',
documentId:  '56523',
internalId:  '22253',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56523',
internalId:  '',
customField: '20110205-191653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70334',
internalId:  '',
customField: '20110421-200606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67723',
internalId:  '',
customField: '20110415-151500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58023',
internalId:  '',
customField: '20111216-145223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64823',
internalId:  '',
customField: '20110308-142615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75334',
internalId:  '',
customField: '20110617-003811'
};
webappMappings['7008']=webappMappings['7008-25142']={
webappId:    '7008',
documentId:  '74914',
internalId:  '25142',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74914',
internalId:  '',
customField: '20110617-004324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79434',
internalId:  '',
customField: '20110805-160819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79934',
internalId:  '',
customField: '20110805-160628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83734',
internalId:  '',
customField: '20120112-230129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90234',
internalId:  '',
customField: '20120117-182927'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH5J5';
var companyName   = 'NeoPoiesis+Press';
var htmlTitle	  = 'NeoPoiesis+Press';
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();
};

