/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','41801',jdecode('Forum'),jdecode(''),'/41801.html','true',[],'',''],
	['PAGE','452',jdecode('Do+It+Yourself+Tips'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','473',jdecode('Common+MSDS+'),jdecode(''),'/452/473.html','true',[],'',''],
		['PAGE','494',jdecode('Common+S.O.P%26%23x27%3Bs'),jdecode(''),'/452/494.html','true',[],'',''],
		['PAGE','11401',jdecode('Commonly+used++Math'),jdecode(''),'/452/11401.html','true',[],'','']
	],'',''],
	['PAGE','515',jdecode('Real+Estate'),jdecode(''),'/515/index.html','true',[ 
		['PAGE','578',jdecode('Tax+Sales'),jdecode(''),'/515/578.html','true',[],'',''],
		['PAGE','620',jdecode('Sellers+Agent'),jdecode(''),'/515/620.html','true',[],'',''],
		['PAGE','41822',jdecode('Buyers+Agent'),jdecode(''),'/515/41822.html','true',[],'',''],
		['PAGE','41843',jdecode('Property+Evaluation'),jdecode(''),'/515/41843.html','true',[],'',''],
		['PAGE','641',jdecode('Investors'),jdecode(''),'/515/641.html','true',[],'',''],
		['PAGE','41864',jdecode('Lenders'),jdecode(''),'/515/41864.html','true',[],'',''],
		['PAGE','41885',jdecode('Precautions'),jdecode(''),'/515/41885.html','true',[],'','']
	],'',''],
	['PAGE','12401',jdecode('Entrepreneurs+'),jdecode(''),'/12401/index.html','true',[ 
		['PAGE','12443',jdecode('Share+your+Ideas'),jdecode(''),'/12401/12443.html','true',[],'',''],
		['PAGE','12485',jdecode('Franchise+Opportunities++'),jdecode(''),'/12401/12485.html','true',[],'',''],
		['PAGE','12506',jdecode('Intellectual+Properties'),jdecode(''),'/12401/12506.html','true',[],'',''],
		['PAGE','40301',jdecode('Start+a+Business'),jdecode(''),'/12401/40301.html','true',[],'',''],
		['PAGE','40322',jdecode('Start+a+Franchise'),jdecode(''),'/12401/40322.html','true',[],'',''],
		['PAGE','40343',jdecode('Become+the+Middleman'),jdecode(''),'/12401/40343.html','true',[],'',''],
		['PAGE','40364',jdecode('Fund+an+Idea'),jdecode(''),'/12401/40364.html','true',[],'',''],
		['PAGE','12527',jdecode('Other+Resources'),jdecode(''),'/12401/12527.html','true',[],'','']
	],'',''],
	['PAGE','11422',jdecode('Global+Trade'),jdecode(''),'/11422/index.html','true',[ 
		['PAGE','11443',jdecode('Imports'),jdecode(''),'/11422/11443.html','true',[],'',''],
		['PAGE','11464',jdecode('Exports'),jdecode(''),'/11422/11464.html','true',[],'',''],
		['PAGE','11485',jdecode('Other+Resources'),jdecode(''),'/11422/11485.html','true',[],'','']
	],'',''],
	['PAGE','9611',jdecode('Employment'),jdecode(''),'/9611/index.html','true',[ 
		['PAGE','10222',jdecode('State'),jdecode(''),'/9611/10222.html','true',[],'',''],
		['PAGE','10243',jdecode('Union'),jdecode(''),'/9611/10243.html','true',[],'',''],
		['PAGE','10264',jdecode('Millitary'),jdecode(''),'/9611/10264.html','true',[],'',''],
		['PAGE','10285',jdecode('Government'),jdecode(''),'/9611/10285.html','true',[],'',''],
		['PAGE','10306',jdecode('Federal'),jdecode(''),'/9611/10306.html','true',[],'',''],
		['PAGE','10327',jdecode('City'),jdecode(''),'/9611/10327.html','true',[],'',''],
		['PAGE','10348',jdecode('County'),jdecode(''),'/9611/10348.html','true',[],'','']
	],'',''],
	['PAGE','12548',jdecode('Dining+Facilities'),jdecode(''),'/12548/index.html','true',[ 
		['PAGE','12569',jdecode('Fast+Food'),jdecode(''),'/12548/12569.html','true',[],'',''],
		['PAGE','12590',jdecode('Local+Favorites'),jdecode(''),'/12548/12590.html','true',[],'',''],
		['PAGE','12611',jdecode('Resturaunts'),jdecode(''),'/12548/12611.html','true',[],'',''],
		['PAGE','12632',jdecode('Cafes%26%23x27%3B'),jdecode(''),'/12548/12632.html','true',[],'','']
	],'',''],
	['PAGE','9632',jdecode('About+us'),jdecode(''),'/9632/index.html','true',[ 
		['PAGE','9653',jdecode('Our+team'),jdecode(''),'/9632/9653.html','true',[],'',''],
		['PAGE','9674',jdecode('How+to+find+us'),jdecode(''),'/9632/9674.html','true',[],'','']
	],'',''],
	['PAGE','30401',jdecode('Sponsorship'),jdecode(''),'/30401.html','true',[],'',''],
	['PAGE','31601',jdecode('Journal'),jdecode(''),'/31601.html','true',[],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='90A262';
theSitetree.keyvisualId='1686';
theSitetree.keyvisualName='adresskartei.jpg';
theSitetree.fontsetId='301';
theSitetree.graphicsetId='344';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='90A262';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Architekt',
				paletteFamily: 	'90A262',
				keyvisualId: 	'1686',
				keyvisualName: 	'adresskartei.jpg',
				fontsetId: 		'301',
				graphicsetId: 	'344',
				contentColor: 	'000000',
				contentBGColor: '90A262',
				a_color: 		'90A262',
				b_color: 		'525D37',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090830-214956'
};
webappMappings['7050']=webappMappings['7050-192']={
webappId:    '7050',
documentId:  '31601',
internalId:  '192',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-avec10inl45z11459361c31']={
webappId:    '1003',
documentId:  '12443',
internalId:  'avec10inl45z11459361c31',
customField: 'en:US:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41801',
internalId:  '',
customField: '20090428-121306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20080112-025743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20081213-134830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20070728-152008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20070812-051159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20080127-075343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20090510-031017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20070728-152008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41822',
internalId:  '',
customField: '20071010-182502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41843',
internalId:  '',
customField: '20071010-182502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20080127-073347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41864',
internalId:  '',
customField: '20071010-182502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41885',
internalId:  '',
customField: '20071010-182502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20071010-150831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12443',
internalId:  '',
customField: '20090428-173041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12485',
internalId:  '',
customField: '20071010-163138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12506',
internalId:  '',
customField: '20071014-091027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40301',
internalId:  '',
customField: '20071221-063255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40322',
internalId:  '',
customField: '20071014-090246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40343',
internalId:  '',
customField: '20071010-152003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40364',
internalId:  '',
customField: '20071010-152003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12527',
internalId:  '',
customField: '20070812-052843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11422',
internalId:  '',
customField: '20071231-102127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11443',
internalId:  '',
customField: '20071231-102508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11464',
internalId:  '',
customField: '20071231-102709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11485',
internalId:  '',
customField: '20071228-230652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9611',
internalId:  '',
customField: '20071005-083149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10222',
internalId:  '',
customField: '20070812-045016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10243',
internalId:  '',
customField: '20070812-045016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10264',
internalId:  '',
customField: '20070812-045016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10285',
internalId:  '',
customField: '20070812-045016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10306',
internalId:  '',
customField: '20070812-045016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10327',
internalId:  '',
customField: '20070812-045016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10348',
internalId:  '',
customField: '20070812-045016'
};
webappMappings['1003']=webappMappings['1003-avec10inl45z120edb9f3fc']={
webappId:    '1003',
documentId:  '41801',
internalId:  'avec10inl45z120edb9f3fc',
customField: 'en:US'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12548',
internalId:  '',
customField: '20080105-235226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12569',
internalId:  '',
customField: '20071009-003114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12590',
internalId:  '',
customField: '20071009-005054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12611',
internalId:  '',
customField: '20071009-004157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12632',
internalId:  '',
customField: '20070812-052843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9632',
internalId:  '',
customField: '20090428-120423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9653',
internalId:  '',
customField: '20070823-233236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9674',
internalId:  '',
customField: '20070812-023959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20071005-214855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31601',
internalId:  '',
customField: '20081213-123256'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INL45Z';
var companyName   = 'BringingCommunitiesTogether.Org';
var htmlTitle	  = 'Bringing+Communities+Together';
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();
};
