/* [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','3701',jdecode('Shawn+DeVries+Mem%26%23x27%3Bl+Fund'),jdecode(''),'/3701.html','true',[],'',''],
	['PAGE','74212',jdecode('List+of+Donors'),jdecode(''),'/74212.html','true',[],'',''],
	['PAGE','4801',jdecode('The+%28almost%29+Daily+Blog'),jdecode(''),'/4801.html','true',[],'',''],
	['PAGE','93712',jdecode('The+First+Pitch+Poll'),jdecode(''),'/93712.html','true',[],'',''],
	['PAGE','68012',jdecode('2009+Quest+Schedule'),jdecode(''),'/68012.html','true',[],'',''],
	['PAGE','57312',jdecode('2010+Quest+Schedule'),jdecode(''),'/57312.html','true',[],'',''],
	['PAGE','70412',jdecode('Press+Coverage'),jdecode(''),'/70412.html','true',[],'',''],
	['PAGE','5489',jdecode('Guestbook'),jdecode(''),'/5489.html','true',[],'',''],
	['PAGE','12401',jdecode('Email+Bobby+D'),jdecode(''),'/12401.html','true',[],'',''],
	['PAGE','80812',jdecode('Other+Stuff'),jdecode(''),'/80812/index.html','true',[ 
		['PAGE','3941',jdecode('The+Stats'),jdecode(''),'/80812/3941.html','true',[],'',''],
		['PAGE','26201',jdecode('Photos'),jdecode(''),'/80812/26201.html','true',[],'',''],
		['PAGE','4025',jdecode('The+Links'),jdecode(''),'/80812/4025.html','true',[],'',''],
		['PAGE','72912',jdecode('Travel+Info'),jdecode(''),'/80812/72912.html','true',[],'','']
	],'',''],
	['PAGE','81212',jdecode('Questions+and+Comments'),jdecode(''),'/81212.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Common';
theSitetree.paletteFamily='D40202';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='26639';
theSitetree.graphicsetId='13449';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Common',
				paletteFamily: 	'D40202',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'26639',
				graphicsetId: 	'13449',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3701',
internalId:  '',
customField: '20100901-024948'
};
webappMappings['7050']=webappMappings['7050-7817']={
webappId:    '7050',
documentId:  '4801',
internalId:  '7817',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20100524-083042'
};
webappMappings['1002']=webappMappings['1002-5489aendu0inehbk']={
webappId:    '1002',
documentId:  '5489',
internalId:  '5489aendu0inehbk',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5489',
internalId:  '',
customField: '20090314-105820'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4801',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-14601']={
webappId:    '7008',
documentId:  '12401',
internalId:  '14601',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80812',
internalId:  '',
customField: '20100310-133841'
};
webappMappings['1003']=webappMappings['1003-aendu0inehbk12749622f8c']={
webappId:    '1003',
documentId:  '81212',
internalId:  'aendu0inehbk12749622f8c',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81212',
internalId:  '',
customField: '20100310-134413'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '4801',
internalId:  '1501',
customField: '1501'
};
webappMappings['7005']=webappMappings['7005-3279']={
webappId:    '7005',
documentId:  '93712',
internalId:  '3279',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68012',
internalId:  '',
customField: '20100128-125308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70412',
internalId:  '',
customField: '20100202-095013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72912',
internalId:  '',
customField: '20100216-084632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74212',
internalId:  '',
customField: '20100414-131631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93712',
internalId:  '',
customField: '20100824-135419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3941',
internalId:  '',
customField: '20091013-112228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4025',
internalId:  '',
customField: '20090331-130817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20090314-144303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26201',
internalId:  '',
customField: '20090611-134812'
};
webappMappings['7008']=webappMappings['7008-15661']={
webappId:    '7008',
documentId:  '12401',
internalId:  '15661',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57312',
internalId:  '',
customField: '20100901-025143'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INEHBK';
var companyName   = '2010+All+30+MLB+Ballparks+in+One+Season';
var htmlTitle	  = 'All+30+Major+League+Baseball+Ballparks+in+one+Season+-+2010';
var metaKeywords  = 'all+mlb+stadiums%2C+30+mlb+stadiums%2C+mlb+stadiums%2C+30+ballparks%2C+every+park';
var metaContents  = 'A+website+devoted+to+my+Mission+to+attend+a+Major+League+Baseball+game+in+all+30+ballparks+during+the+2010+season+while+raising+awareness+and+funds+for+the+SADS+Foundation.';
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();
};
