/* [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','42',jdecode('Home'),jdecode(''),'/42.html','true',[],'',''],
	['PAGE','6364',jdecode('Steve%26%23x27%3Bs+Poems'),jdecode(''),'/6364.html','true',[],'',''],
	['PAGE','2808',jdecode('Appearances%2FEvents'),jdecode(''),'/2808.html','true',[],'',''],
	['PAGE','6055',jdecode('Comments+by+.+.+.'),jdecode(''),'/6055.html','true',[],'',''],
	['PAGE','22401',jdecode('Guest+Artists'),jdecode(''),'/22401.html','true',[],'',''],
	['PAGE','2835',jdecode('Political+Links'),jdecode(''),'/2835.html','true',[],'',''],
	['PAGE','2960',jdecode('Personal+Links'),jdecode(''),'/2960.html','true',[],'',''],
	['PAGE','6373',jdecode('Books%2FCDs+for+sale'),jdecode(''),'/6373/index.html','true',[ 
		['PAGE','7076',jdecode('Books'),jdecode(''),'/6373/7076.html','true',[],'',''],
		['PAGE','7085',jdecode('CDs'),jdecode(''),'/6373/7085.html','true',[],'','']
	],'',''],
	['PAGE','3170',jdecode('Print+Publications'),jdecode(''),'/3170.html','true',[],'',''],
	['PAGE','43501',jdecode('Contact'),jdecode(''),'/43501.html','true',[],'',''],
	['PAGE','6064',jdecode('%5BSteve%26%23x27%3B+Poetry+pages%5D'),jdecode(''),'/6064/index.html','false',[ 
		['PAGE','2894',jdecode('Home+Page+Archives+2008'),jdecode(''),'/6064/2894.html','true',[],'',''],
		['PAGE','60312',jdecode('Home+Page+Archives+2009'),jdecode(''),'/6064/60312.html','true',[],'',''],
		['PAGE','102012',jdecode('Home+Page+Archives+2010'),jdecode(''),'/6064/102012.html','true',[],'',''],
		['PAGE','2697',jdecode('Steve+On+the+Web'),jdecode(''),'/6064/2697.html','true',[],'',''],
		['PAGE','50312',jdecode('Internationale'),jdecode(''),'/6064/50312.html','true',[],'',''],
		['PAGE','80012',jdecode('Permanent+collection'),jdecode(''),'/6064/80012.html','true',[],'',''],
		['PAGE','63',jdecode('Repertory+'),jdecode(''),'/6064/63.html','true',[],'','']
	],'',''],
	['PAGE','7295',jdecode('%5BGuest+Poets%5D'),jdecode(''),'/7295/index.html','false',[ 
		['PAGE','100812',jdecode('%28KhalilAlmustafa%29'),jdecode(''),'/7295/100812.html','true',[],'',''],
		['PAGE','89833',jdecode('%28Moira+T.+Smith%29'),jdecode(''),'/7295/89833.html','true',[],'',''],
		['PAGE','89812',jdecode('%28Pat+Jordan%29'),jdecode(''),'/7295/89812.html','true',[],'',''],
		['PAGE','87512',jdecode('%28Maia%29'),jdecode(''),'/7295/87512.html','true',[],'',''],
		['PAGE','86112',jdecode('%28Michael+Bennett%29'),jdecode(''),'/7295/86112.html','true',[],'',''],
		['PAGE','106512',jdecode('%28Martin+Espada+English%29'),jdecode(''),'/7295/106512.html','true',[],'',''],
		['PAGE','110512',jdecode('%28Mart%C3%ADn+Espada+Spanish%29'),jdecode(''),'/7295/110512.html','true',[],'',''],
		['PAGE','106533',jdecode('%28Jim+Sanders%29'),jdecode(''),'/7295/106533.html','true',[],'',''],
		['PAGE','7006',jdecode('Guest+archives+2008'),jdecode(''),'/7295/7006.html','true',[],'',''],
		['PAGE','63533',jdecode('Guest+Archives+2009'),jdecode(''),'/7295/63533.html','true',[],'',''],
		['PAGE','100012',jdecode('Guest+Archives+2010'),jdecode(''),'/7295/100012.html','true',[],'',''],
		['PAGE','7603',jdecode('%28Jack+Jordan%29'),jdecode(''),'/7295/7603.html','true',[],'','']
	],'',''],
	['PAGE','7304',jdecode('%5BMiscellaneous%5D'),jdecode(''),'/7304/index.html','false',[ 
		['PAGE','6073',jdecode('%28Book+contents%29'),jdecode(''),'/7304/6073.html','true',[],'',''],
		['PAGE','6082',jdecode('%28CD+contents%29'),jdecode(''),'/7304/6082.html','true',[],'',''],
		['PAGE','6525',jdecode('%28How+to+order%29'),jdecode(''),'/7304/6525.html','true',[],'',''],
		['PAGE','9507',jdecode('Activist+Roundtable'),jdecode(''),'/7304/9507.html','true',[],'',''],
		['PAGE','30201',jdecode('Mahmoud+Darwish'),jdecode(''),'/7304/30201.html','true',[],'',''],
		['PAGE','89854',jdecode('Stella+D%26%23x27%3BOro'),jdecode(''),'/7304/89854.html','true',[],'',''],
		['PAGE','94112',jdecode('Dennis+Brutus'),jdecode(''),'/7304/94112.html','true',[],'','']
	],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Deepcolor';
theSitetree.paletteFamily='5583CB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10349';
theSitetree.graphicsetId='10469';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='154186';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Deepcolor',
				paletteFamily: 	'5583CB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10349',
				graphicsetId: 	'10469',
				contentColor: 	'000000',
				contentBGColor: '154186',
				a_color: 		'5583CB',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '42',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42',
internalId:  '',
customField: '20100822-095609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6055',
internalId:  '',
customField: '20100822-094258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7295',
internalId:  '',
customField: '20080206-044108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6064',
internalId:  '',
customField: '20080201-135458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2894',
internalId:  '',
customField: '20090118-112801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2808',
internalId:  '',
customField: '20100822-100826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22401',
internalId:  '',
customField: '20100613-034318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9507',
internalId:  '',
customField: '20100708-041635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7304',
internalId:  '',
customField: '20080201-135841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7006',
internalId:  '',
customField: '20091204-111940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6364',
internalId:  '',
customField: '20091204-113226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2697',
internalId:  '',
customField: '20100214-145614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89833',
internalId:  '',
customField: '20091206-210846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94112',
internalId:  '',
customField: '20091228-163938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100012',
internalId:  '',
customField: '20100611-162007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100812',
internalId:  '',
customField: '20100425-171553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106533',
internalId:  '',
customField: '20100611-160100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80012',
internalId:  '',
customField: '20090828-184945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106512',
internalId:  '',
customField: '20100613-103006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110512',
internalId:  '',
customField: '20100613-080420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86112',
internalId:  '',
customField: '20091026-083621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7603',
internalId:  '',
customField: '20081103-155202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43501',
internalId:  '',
customField: '20081109-173945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2835',
internalId:  '',
customField: '20081105-172448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2960',
internalId:  '',
customField: '20100613-084851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6373',
internalId:  '',
customField: '20100214-101519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7076',
internalId:  '',
customField: '20100214-103046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7085',
internalId:  '',
customField: '20081104-152615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3170',
internalId:  '',
customField: '20081104-152642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63',
internalId:  '',
customField: '20100611-165222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6073',
internalId:  '',
customField: '20090118-131250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6082',
internalId:  '',
customField: '20080131-043233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6525',
internalId:  '',
customField: '20081103-154950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20090828-185441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102012',
internalId:  '',
customField: '20100822-091814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89812',
internalId:  '',
customField: '20091204-110227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87512',
internalId:  '',
customField: '20091120-203219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89854',
internalId:  '',
customField: '20091204-113357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50312',
internalId:  '',
customField: '20090828-152058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60312',
internalId:  '',
customField: '20100214-150532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63533',
internalId:  '',
customField: '20091119-194035'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INXX13';
var companyName   = 'Poetry+by+Steve+Bloom';
var htmlTitle	  = 'Poetry+by+Steve+Bloom';
var metaKeywords  = 'Poetry%2C+Steve+Bloom%2C+Human+rights%2C+social+justice%2C+antiwar%2C+peace';
var metaContents  = 'Poetry+by+Steve+Bloom%2C+links+to+activist+projects%2C+and+more';
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();
};
