/* [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','3201',jdecode('Home'),jdecode(''),'/3201.html','true',[],'',''],
	['PAGE','7506',jdecode('About+Us+%26+Bios'),jdecode(''),'/7506/index.html','true',[ 
		['PAGE','7527',jdecode('Sonny+Thomas'),jdecode(''),'/7506/7527.html','true',[],'',''],
		['PAGE','7569',jdecode('Michael+Katz'),jdecode(''),'/7506/7569.html','true',[],'','']
	],'',''],
	['PAGE','20101',jdecode('Contact+Our+Elected+Officials'),jdecode(''),'/20101.html','true',[],'',''],
	['PAGE','7485',jdecode('Contact+Us'),jdecode(''),'/7485.html','true',[],'',''],
	['PAGE','7985',jdecode('Copyright+Info'),jdecode(''),'/7985.html','true',[],'',''],
	['PAGE','7443',jdecode('Endorsements'),jdecode(''),'/7443.html','true',[],'',''],
	['PAGE','3273',jdecode('Events+%26+Rally+Information'),jdecode(''),'/3273/index.html','true',[ 
		['PAGE','55622',jdecode('Donations%2C+Sponsors+%26+Benefits'),jdecode(''),'/3273/55622.html','true',[],'',''],
		['PAGE','55601',jdecode('Rally+Line+Up'),jdecode(''),'/3273/55601.html','true',[],'','']
	],'',''],
	['PAGE','7964',jdecode('Forum'),jdecode(''),'/7964.html','true',[],'',''],
	['PAGE','7901',jdecode('Gallery'),jdecode(''),'/7901.html','true',[],'',''],
	['PAGE','7922',jdecode('Guestbook'),jdecode(''),'/7922.html','true',[],'',''],
	['PAGE','7401',jdecode('Interesting+Links'),jdecode(''),'/7401.html','true',[],'',''],
	['PAGE','72501',jdecode('Issues+We+Cover'),jdecode(''),'/72501/index.html','true',[ 
		['PAGE','72901',jdecode('Child+Support+Accountability'),jdecode(''),'/72501/72901.html','true',[],'',''],
		['PAGE','72522',jdecode('Constitutional+Issues'),jdecode(''),'/72501/72522.html','true',[],'',''],
		['PAGE','72543',jdecode('END+THE+FED%21'),jdecode(''),'/72501/72543.html','true',[],'',''],
		['PAGE','72564',jdecode('The+Obama+Deception'),jdecode(''),'/72501/72564.html','true',[],'',''],
		['PAGE','72585',jdecode('Springboro+School+Board+and+System'),jdecode(''),'/72501/72585.html','true',[],'',''],
		['PAGE','72922',jdecode('State+of+Ohio+Issues'),jdecode(''),'/72501/72922.html','true',[],'','']
	],'',''],
	['PAGE','27401',jdecode('Media+%2F+Video+Links'),jdecode(''),'/27401.html','true',[],'',''],
	['PAGE','3252',jdecode('News+%2F+Updates+%26+Archives'),jdecode(''),'/3252.html','true',[],'',''],
	['PAGE','8006',jdecode('Polls'),jdecode(''),'/8006.html','true',[],'',''],
	['PAGE','7464',jdecode('Press'),jdecode(''),'/7464.html','true',[],'',''],
	['PAGE','32601',jdecode('Quotes+of+Wisdom+and+Principle'),jdecode(''),'/32601.html','true',[],'',''],
	['PAGE','58401',jdecode('Special+Features+%26+Interviews'),jdecode(''),'/58401/index.html','true',[ 
		['PAGE','7422',jdecode('Kelly+Kohls'),jdecode(''),'/58401/7422.html','true',[],'','']
	],'',''],
	['PAGE','7943',jdecode('STP+Merchandise'),jdecode(''),'/7943.html','true',[],'',''],
	['PAGE','7590',jdecode('Suggested+Media'),jdecode(''),'/7590/index.html','true',[ 
		['PAGE','7611',jdecode('Books'),jdecode(''),'/7590/7611.html','true',[],'',''],
		['PAGE','7632',jdecode('DVD'),jdecode(''),'/7590/7632.html','true',[],'','']
	],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Vita02';
theSitetree.paletteFamily='C5E6FB';
theSitetree.keyvisualId='11283';
theSitetree.keyvisualName='kv_11283.jpg';
theSitetree.fontsetId='32118';
theSitetree.graphicsetId='13933';
theSitetree.contentColor='3C3D3C';
theSitetree.contentBGColor='F6FBFE';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Vita02',
				paletteFamily: 	'C5E6FB',
				keyvisualId: 	'11283',
				keyvisualName: 	'kv_11283.jpg',
				fontsetId: 		'32118',
				graphicsetId: 	'13933',
				contentColor: 	'3C3D3C',
				contentBGColor: 'F6FBFE',
				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:  '3201',
internalId:  '',
customField: '20100816-150547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3252',
internalId:  '',
customField: '20100726-132750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3273',
internalId:  '',
customField: '20100816-151153'
};
webappMappings['7060']=webappMappings['7060-73bd2bd150ee9c0b14f3c7944d1084aa']={
webappId:    '7060',
documentId:  '7901',
internalId:  '73bd2bd150ee9c0b14f3c7944d1084aa',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-aen330inf83b126a65563d8']={
webappId:    '1003',
documentId:  '7964',
internalId:  'aen330inf83b126a65563d8',
customField: 'en:US'
};
webappMappings['7005']=webappMappings['7005-135']={
webappId:    '7005',
documentId:  '8006',
internalId:  '135',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7506',
internalId:  '',
customField: '20100816-150836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7527',
internalId:  '',
customField: '20100504-203432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55601',
internalId:  '',
customField: '20100409-105432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7569',
internalId:  '',
customField: '20100308-000450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20100206-213526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7422',
internalId:  '',
customField: '20100206-214339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7443',
internalId:  '',
customField: '20100816-151049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7464',
internalId:  '',
customField: '20100206-215258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7590',
internalId:  '',
customField: '20100206-215813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7611',
internalId:  '',
customField: '20100311-170913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7632',
internalId:  '',
customField: '20100327-161942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20100816-151745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7985',
internalId:  '',
customField: '20100206-234645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8006',
internalId:  '',
customField: '20100206-234947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7964',
internalId:  '',
customField: '20100206-235244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7943',
internalId:  '',
customField: '20100816-152042'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-23676243']={
webappId:    '1501',
documentId:  '3201',
internalId:  '23676243',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7922',
internalId:  '',
customField: '20100206-184958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20100208-132140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7485',
internalId:  '',
customField: '20100816-150734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20100210-171259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20100504-204205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55622',
internalId:  '',
customField: '20100816-151250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58401',
internalId:  '',
customField: '20100306-134303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72501',
internalId:  '',
customField: '20100403-094917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72522',
internalId:  '',
customField: '20100403-100200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72901',
internalId:  '',
customField: '20100403-102515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72922',
internalId:  '',
customField: '20100403-103109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72585',
internalId:  '',
customField: '20100403-093955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72564',
internalId:  '',
customField: '20100504-202902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72543',
internalId:  '',
customField: '20100404-133618'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN330INF83B';
var companyName   = 'Time+To+Take+Our+Country+Back+In+Nov.+2010+%26+Beyond%21';
var htmlTitle	  = 'SpringboroTeaParty.com+-+Time+To+Take+Our+Country+Back+In+2010%21';
var metaKeywords  = 'Springboro+Oh%2C+Springboro+Tea+Party%2C+SpringboroTeaParty.com%2C+SpringboroTeaParty.org%2C+Sonny+Thomas%2C+Dayton+Oh%2C+Liboro-tea%2C+Politics%2C+Miami+Vice%2C+Music%2C+Conservatism%2C+Conservative%2C+Sarah+Palin%2C+Ron+Paul%2C+Adam+Kokesh%2C+Constitution%2C+Freedom';
var metaContents  = 'Springboro+Oh%2C+Springboro+Tea+Party%2C+SpringboroTeaParty.com%2C+SpringboroTeaParty.org%2C+Sonny+Thomas%2C+Dayton+Oh%2C+Liboro-tea%2C+Politics%2C+Miami+Vice%2C+Music%2C+Conservatism%2C+Conservative%2C+Sarah+Palin%2C+Ron+Paul%2C+Adam+Kokesh%2C+Constitution%2C+Freedom';
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();
};
