/* [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 theSitetree=[ 
	['PAGE','1801',jdecode('Home'),jdecode(''),'/1801/index.html','true',[ 
		['PAGE','162923',jdecode('Background'),jdecode(''),'/1801/162923.html','true',[],''],
		['PAGE','244323',jdecode('Recent+Books'),jdecode(''),'/1801/244323.html','true',[],''],
		['PAGE','306423',jdecode('Good+News'),jdecode(''),'/1801/306423.html','true',[],''],
		['PAGE','344923',jdecode('The+Month'),jdecode(''),'/1801/344923.html','true',[],'']
	],''],
	['PAGE','202523',jdecode('Media'),jdecode(''),'/202523.html','true',[],''],
	['PAGE','24301',jdecode('Blaming+the+Victims'),jdecode(''),'/24301/index.html','true',[ 
		['PAGE','173123',jdecode('Responses'),jdecode(''),'/24301/173123.html','true',[],'']
	],''],
	['PAGE','38401',jdecode('Antisemitism'),jdecode(''),'/38401/index.html','true',[ 
		['PAGE','346523',jdecode('Statement'),jdecode(''),'/38401/346523.html','false',[],'']
	],''],
	['PAGE','182423',jdecode('Prague+Declaration'),jdecode(''),'/182423/index.html','true',[ 
		['PAGE','17122',jdecode('Opposition'),jdecode(''),'/182423/17122.html','true',[],'']
	],''],
	['PAGE','177723',jdecode('3+Commissions'),jdecode(''),'/177723/index.html','true',[ 
		['PAGE','17143',jdecode('Critiques'),jdecode(''),'/177723/17143.html','true',[],'']
	],''],
	['PAGE','157423',jdecode('Free+Speech'),jdecode(''),'/157423.html','true',[],''],
	['PAGE','132423',jdecode('Bold+Citizens'),jdecode(''),'/132423.html','true',[],''],
	['PAGE','11801',jdecode('Holocaust+Lithuania'),jdecode(''),'/11801/index.html','true',[ 
		['PAGE','165923',jdecode('Background+Lithuania'),jdecode(''),'/11801/165923.html','true',[],''],
		['PAGE','166723',jdecode('Notes+on+Locations'),jdecode(''),'/11801/166723.html','true',[],''],
		['PAGE','275023',jdecode('Rehabilitations'),jdecode(''),'/11801/275023.html','true',[],'']
	],''],
	['PAGE','12301',jdecode('Holocaust+Latvia'),jdecode(''),'/12301/index.html','true',[ 
		['PAGE','165944',jdecode('Background+Latvia'),jdecode(''),'/12301/165944.html','true',[],'']
	],''],
	['PAGE','12322',jdecode('Holocaust+Estonia'),jdecode(''),'/12322/index.html','true',[ 
		['PAGE','165965',jdecode('Background+Estonia'),jdecode(''),'/12322/165965.html','true',[],'']
	],''],
	['PAGE','204123',jdecode('Mission'),jdecode(''),'/204123.html','true',[],''],
	['PAGE','314023',jdecode('%26%23x27%3BChapters+in+Yiddish%26%23x27%3B'),jdecode(''),'/314023.html','true',[],''],
	['PAGE','297923',jdecode('Litvak+Studies'),jdecode(''),'/297923.html','true',[],''],
	['PAGE','27201',jdecode('Site+Information'),jdecode(''),'/27201/index.html','true',[ 
		['PAGE','223223',jdecode('Visitor+Stats'),jdecode(''),'/27201/223223.html','true',[],'']
	],''],
	['PAGE','199723',jdecode('test'),jdecode(''),'/199723.html','false',[],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333F65',
				b_color: 		'040507',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20100306-163248'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20100303-203329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20100214-085817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38401',
internalId:  '',
customField: '20100304-214736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17122',
internalId:  '',
customField: '20100305-202501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17143',
internalId:  '',
customField: '20100123-152112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12322',
internalId:  '',
customField: '20100124-205340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20100124-205058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20100124-205255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132423',
internalId:  '',
customField: '20100213-191451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157423',
internalId:  '',
customField: '20100217-225128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162923',
internalId:  '',
customField: '20100115-080057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165965',
internalId:  '',
customField: '20100124-205357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165944',
internalId:  '',
customField: '20100124-205313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165923',
internalId:  '',
customField: '20100224-192534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166723',
internalId:  '',
customField: '20100124-205216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173123',
internalId:  '',
customField: '20100213-191307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177723',
internalId:  '',
customField: '20100124-204834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182423',
internalId:  '',
customField: '20100204-145415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199723',
internalId:  '',
customField: '20091114-092458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202523',
internalId:  '',
customField: '20100304-210842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204123',
internalId:  '',
customField: '20100213-191549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223223',
internalId:  '',
customField: '20100304-111810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244323',
internalId:  '',
customField: '20100216-132845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '275023',
internalId:  '',
customField: '20100113-154959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '297923',
internalId:  '',
customField: '20100217-174135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '306423',
internalId:  '',
customField: '20100303-201949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '314023',
internalId:  '',
customField: '20100302-195507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '344923',
internalId:  '',
customField: '20100228-110559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '346523',
internalId:  '',
customField: '20100228-112751'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INV082';
var companyName   = '+++++The+Holocaust+in+the+Baltics';
var htmlTitle	  = 'Holocaust+in+the+Baltics+%28Lithuania%2C+Latvia%2C+Estonia%29';
var metaKeywords  = 'Holocaust%2C+Holocaust+%2B++Lithuania%2C+Holocaust+%2B+Latvia%2C+Holocaust+%2B+Estonia%2C+Holocaust+Obfuscation%2C+Holocaust+Denia%2C+Holocaust+Trivialization%2C+Holocaust+Deflection%2C+Jewish+partisans%2C+anti-Nazi+partisans%2C+Soviet+partisans%2C+antisemitism+%2B+Lithuania%2C+antisemitism+%2B+Latvia%2C+antisemitism+%2B+Estonia%2C+Double+Genocide%2C+Red-Brown%2C+Red+equals+brown%2C+Nazi-Soviet%2C+Prague+Declaration%2C+Vilnius+Yiddish+Institute%2C+VYI%2C+Jewish+%2B+Vilnius%2C+Jewish+%2B+Lithuania%2C+Yiddish+%2B+Vilnius%2C+Yiddish+%2B+Lithuania%2C+Dovid+Katz%2C+Fania+Brantsovsky%2C+Fania+Brancovskaja%2C+Rachel+Margolis%2C+Yitzhak+Arad%2C+Litvak+Studies%2C+Yiddish+Studies%2C+East+European+Jewish+Studies.';
var metaContents  = 'Exposing+the+Holocaust+Obfuscation+and+Double+Genocide++movement+in+Eastern+Europe+and+the+Prague+Declaration.+Holocaust+in+Lithuania%2C+Holocaust+in+Latvia%2C+Holocaust+in+Estonia.+Antisemitism+in+Lithuania.';
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();
};
