/* [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','801',jdecode('STATION+RELATIONS'),jdecode(''), jdecode('%2F801.html'), 'true',[],'',''],
	['PAGE','5785',jdecode('CONSULTATION+SERVICES'),jdecode(''), jdecode('%2F5785.html'), 'true',[],'',''],
	['PAGE','5806',jdecode('+Submissions'),jdecode(''), jdecode('%2F5806.html'), 'true',[],'',''],
	['PAGE','5701',jdecode('BIO'),jdecode(''), jdecode('%2F5701.html'), 'true',[],'',''],
	['PAGE','20901',jdecode('LINEUP'),jdecode(''), jdecode('%2F20901.html'), 'true',[],'',''],
	['PAGE','14185',jdecode('+-Clips+%26+Pics'),jdecode(''), jdecode('%2F14185%2Findex.html'), 'true',[ 
		['PAGE','159001',jdecode('400+Years+of+the+Telescope'),jdecode(''), jdecode('%2F14185%2F159001.html'), 'true',[],'',''],
		['PAGE','157501',jdecode('The+Adventists'),jdecode(''), jdecode('%2F14185%2F157501.html'), 'true',[],'',''],
		['PAGE','196901',jdecode('Apache+8'),jdecode(''), jdecode('%2F14185%2F196901.html'), 'true',[],'',''],
		['PAGE','176901',jdecode('The+Artist+Toolbox'),jdecode(''), jdecode('%2F14185%2F176901.html'), 'true',[],'',''],
		['PAGE','163701',jdecode('Beyond++Babyland'),jdecode(''), jdecode('%2F14185%2F163701.html'), 'true',[],'',''],
		['PAGE','91522',jdecode('Crossing+Lines'),jdecode(''), jdecode('%2F14185%2F91522.html'), 'true',[],'',''],
		['PAGE','167101',jdecode('Eating+Alaska'),jdecode(''), jdecode('%2F14185%2F167101.html'), 'true',[],'',''],
		['PAGE','176001',jdecode('Ebert+Presents+At+the+Movies'),jdecode(''), jdecode('%2F14185%2F176001.html'), 'true',[],'',''],
		['PAGE','182901',jdecode('European+Christmas+Markets'),jdecode(''), jdecode('%2F14185%2F182901.html'), 'true',[],'',''],
		['PAGE','170301',jdecode('Every+War+Has+Two+Losers'),jdecode(''), jdecode('%2F14185%2F170301.html'), 'true',[],'',''],
		['PAGE','139001',jdecode('Fighting+for+Life'),jdecode(''), jdecode('%2F14185%2F139001.html'), 'true',[],'',''],
		['PAGE','166401',jdecode('For+the+Generations'),jdecode(''), jdecode('%2F14185%2F166401.html'), 'true',[],'',''],
		['PAGE','139901',jdecode('From+Wharf+Rats+to+Lords+of+the+Docks'),jdecode(''), jdecode('%2F14185%2F139901.html'), 'true',[],'',''],
		['PAGE','209101',jdecode('Globalization+at+the+Crossroads'),jdecode(''), jdecode('%2F14185%2F209101.html'), 'true',[],'',''],
		['PAGE','107322',jdecode('Great+Decisions+in+2009'),jdecode(''), jdecode('%2F14185%2F107322.html'), 'true',[],'',''],
		['PAGE','209122',jdecode('Great+Decisions+in+Foreign+Policy+301-309+'),jdecode(''), jdecode('%2F14185%2F209122.html'), 'true',[],'',''],
		['PAGE','204001',jdecode('Hey+Kids%2C+Let%26%23x27%3Bs+Cook%21'),jdecode(''), jdecode('%2F14185%2F204001.html'), 'true',[],'',''],
		['PAGE','209143',jdecode('Hey+Kids%2C+Let%26%23x27%3Bs+Cook+200'),jdecode(''), jdecode('%2F14185%2F209143.html'), 'true',[],'',''],
		['PAGE','210701',jdecode('Hockey%3A+More+Than+a+Game+'),jdecode(''), jdecode('%2F14185%2F210701.html'), 'true',[],'',''],
		['PAGE','209164',jdecode('The+Horsemen+Cometh'),jdecode(''), jdecode('%2F14185%2F209164.html'), 'true',[],'',''],
		['PAGE','138201',jdecode('Inner+Compass+II%3A+201-213'),jdecode(''), jdecode('%2F14185%2F138201.html'), 'true',[],'',''],
		['PAGE','207001',jdecode('Jazzy+Vegetarian'),jdecode(''), jdecode('%2F14185%2F207001.html'), 'true',[],'',''],
		['PAGE','172501',jdecode('Lords+of+Nature'),jdecode(''), jdecode('%2F14185%2F172501.html'), 'true',[],'',''],
		['PAGE','164201',jdecode('Pete+McCloskey%3A+Leading+from+the+Front'),jdecode(''), jdecode('%2F14185%2F164201.html'), 'true',[],'',''],
		['PAGE','210722',jdecode('Pricele%24%24'),jdecode(''), jdecode('%2F14185%2F210722.html'), 'true',[],'',''],
		['PAGE','201001',jdecode('Proclamation+of+Hope'),jdecode(''), jdecode('%2F14185%2F201001.html'), 'true',[],'',''],
		['PAGE','205401',jdecode('RFK+In+the+Land+of+Apartheid'),jdecode(''), jdecode('%2F14185%2F205401.html'), 'true',[],'',''],
		['PAGE','170322',jdecode('Rumi%3A+Poet+of+the+Heart'),jdecode(''), jdecode('%2F14185%2F170322.html'), 'true',[],'',''],
		['PAGE','96122',jdecode('Rumi+Returning'),jdecode(''), jdecode('%2F14185%2F96122.html'), 'true',[],'',''],
		['PAGE','194001',jdecode('Scarred+Lands+%26+Wounded+Lives'),jdecode(''), jdecode('%2F14185%2F194001.html'), 'true',[],'',''],
		['PAGE','43564',jdecode('Soul+of+Justice...'),jdecode(''), jdecode('%2F14185%2F43564.html'), 'true',[],'',''],
		['PAGE','145401',jdecode('Sound+of+the+Soul'),jdecode(''), jdecode('%2F14185%2F145401.html'), 'true',[],'',''],
		['PAGE','169101',jdecode('Still+Waiting'),jdecode(''), jdecode('%2F14185%2F169101.html'), 'true',[],'',''],
		['PAGE','159022',jdecode('Video+Letters+from+Prison'),jdecode(''), jdecode('%2F14185%2F159022.html'), 'true',[],'',''],
		['PAGE','158501',jdecode('The+World+of+Julia+Peterkin%3A+Cheating+the+Stillness'),jdecode(''), jdecode('%2F14185%2F158501.html'), 'true',[],'',''],
		['PAGE','175201',jdecode('test+page'),jdecode(''), jdecode('%2F14185%2F175201.html'), 'true',[],'','']
	],'',''],
	['PAGE','5722',jdecode('PORTFOLIO'),jdecode(''), jdecode('%2F5722.html'), 'true',[],'',''],
	['PAGE','5743',jdecode('TESTIMONIALS'),jdecode(''), jdecode('%2F5743.html'), 'true',[],'',''],
	['PAGE','182201',jdecode('LINKS+WE+LIKE'),jdecode(''), jdecode('%2F182201.html'), 'true',[],'',''],
	['PAGE','5764',jdecode('CONTACT+'),jdecode(''), jdecode('%2F5764.html'), 'true',[],'',''],
	['PAGE','32801',jdecode('+'),jdecode(''), jdecode('%2F32801%2Findex.html'), 'true',[ 
		['PAGE','122701',jdecode('400+Years+of+the+Telescope'),jdecode(''), jdecode('%2F32801%2F122701.html'), 'true',[],'',''],
		['PAGE','74001',jdecode('Grannies+on+Safari+201-207'),jdecode(''), jdecode('%2F32801%2F74001.html'), 'true',[],'',''],
		['PAGE','43501',jdecode('Great+Decisions'),jdecode(''), jdecode('%2F32801%2F43501.html'), 'true',[],'',''],
		['PAGE','107301',jdecode('Great+Decisions+in+2009'),jdecode(''), jdecode('%2F32801%2F107301.html'), 'true',[],'',''],
		['PAGE','31301',jdecode('Soul+of+Justice...'),jdecode(''), jdecode('%2F32801%2F31301.html'), 'true',[],'',''],
		['PAGE','104301',jdecode('The+Journey+to+Palomar'),jdecode(''), jdecode('%2F32801%2F104301.html'), 'true',[],'','']
	],'','']];
var siteelementCount=53;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='2026';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='391';
theSitetree.contentColor='EF7E7E';
theSitetree.contentBGColor='990000';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'aplus',
  product: 'WSCSYSSSSLYTCPLI'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'990000',
				keyvisualId: 	'2026',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'391',
				contentColor: 	'EF7E7E',
				contentBGColor: '990000',
				a_color: 		'990000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20120205-160311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32801',
internalId:  '',
customField: '20110316-150011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20120204-002525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5785',
internalId:  '',
customField: '20091219-200320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5806',
internalId:  '',
customField: '20091219-200719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20100108-141037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122701',
internalId:  '',
customField: '20090213-022738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169101',
internalId:  '',
customField: '20100524-085944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74001',
internalId:  '',
customField: '20080318-154947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43501',
internalId:  '',
customField: '20080107-220820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107301',
internalId:  '',
customField: '20081016-214602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201001',
internalId:  '',
customField: '20110316-001842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194001',
internalId:  '',
customField: '20110118-221743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196901',
internalId:  '',
customField: '20110610-004920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170322',
internalId:  '',
customField: '20100603-185817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31301',
internalId:  '',
customField: '20071119-080028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167101',
internalId:  '',
customField: '20100910-115945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104301',
internalId:  '',
customField: '20080922-235411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139001',
internalId:  '',
customField: '20091217-141905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170301',
internalId:  '',
customField: '20100603-191600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163701',
internalId:  '',
customField: '20100426-170809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164201',
internalId:  '',
customField: '20100429-205033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14185',
internalId:  '',
customField: '20120203-235033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209122',
internalId:  '',
customField: '20111021-032427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207001',
internalId:  '',
customField: '20110713-110420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91522',
internalId:  '',
customField: '20091217-141821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204001',
internalId:  '',
customField: '20110920-044058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107322',
internalId:  '',
customField: '20100909-002949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209101',
internalId:  '',
customField: '20111101-021454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205401',
internalId:  '',
customField: '20110606-230342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182201',
internalId:  '',
customField: '20101004-170523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182901',
internalId:  '',
customField: '20101119-005028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176901',
internalId:  '',
customField: '20101119-005331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96122',
internalId:  '',
customField: '20091217-142614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209143',
internalId:  '',
customField: '20120203-235223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145401',
internalId:  '',
customField: '20090816-221129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176001',
internalId:  '',
customField: '20110131-202206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43564',
internalId:  '',
customField: '20071017-190717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172501',
internalId:  '',
customField: '20100618-212051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175201',
internalId:  '',
customField: '20101117-232830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157501',
internalId:  '',
customField: '20100120-112511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158501',
internalId:  '',
customField: '20100202-153001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138201',
internalId:  '',
customField: '20090513-234150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159022',
internalId:  '',
customField: '20100909-002852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159001',
internalId:  '',
customField: '20100203-162257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166401',
internalId:  '',
customField: '20100430-143536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5722',
internalId:  '',
customField: '20120201-025637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5743',
internalId:  '',
customField: '20100810-145009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5764',
internalId:  '',
customField: '20100108-141314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139901',
internalId:  '',
customField: '20090609-210447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209164',
internalId:  '',
customField: '20111118-034306'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '210701',
internalId:  '-',
customField: '20120130-022237'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '210722',
internalId:  '-',
customField: '20120130-022514'
};
var webAppHostname = 'cm4all.aplus.net:80';
var canonHostname = 'cm4all01.carrierzone.com';
var accountId     = 'AAPLU0INLJXU';
var companyName   = 'R+EISENBERG+PRESENTS';
var htmlTitle	  = 'www.reisenbergpresents.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();
};

