/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],''],
	['PAGE','752',jdecode('About+Us'),jdecode(''),'/752/index.html','true',[ 
		['PAGE','17701',jdecode('The+Board'),jdecode(''),'/752/17701.html','true',[],'']
	],''],
	['PAGE','54101',jdecode('Committees'),jdecode(''),'/54101.html','true',[],''],
	['PAGE','962',jdecode('News'),jdecode(''),'/962/index.html','true',[ 
		['PAGE','27601',jdecode('Local+%26+National'),jdecode(''),'/962/27601.html','true',[],'']
	],''],
	['PAGE','49701',jdecode('Activism'),jdecode(''),'/49701.html','true',[],''],
	['PAGE','26322',jdecode('Out+%26+About'),jdecode(''),'/26322/index.html','true',[ 
		['PAGE','43601',jdecode('%22O+%26+A%22+Archives'),jdecode(''),'/26322/43601.html','true',[],'']
	],''],
	['PAGE','983',jdecode('Calendar'),jdecode(''),'/983.html','true',[],''],
	['PAGE','836',jdecode('Directory'),jdecode(''),'/836/index.html','true',[ 
		['PAGE','857',jdecode('Arts%2FEntertainment'),jdecode(''),'/836/857.html','true',[],''],
		['PAGE','941',jdecode('Community'),jdecode(''),'/836/941.html','true',[],''],
		['PAGE','878',jdecode('Heath%2FWellness'),jdecode(''),'/836/878.html','true',[],''],
		['PAGE','920',jdecode('LGBT+Businesses'),jdecode(''),'/836/920.html','true',[],''],
		['PAGE','899',jdecode('Religion%2FSpiriutality'),jdecode(''),'/836/899.html','true',[],''],
		['PAGE','7801',jdecode('Social+Organizations'),jdecode(''),'/836/7801.html','true',[],''],
		['PAGE','26343',jdecode('The+Hit+List'),jdecode(''),'/836/26343.html','true',[],'']
	],''],
	['PAGE','26701',jdecode('Blog'),jdecode(''),'/26701.html','true',[],''],
	['PAGE','38401',jdecode('Volunteer'),jdecode(''),'/38401.html','true',[],''],
	['PAGE','18001',jdecode('Contact+Us'),jdecode(''),'/18001.html','true',[],''],
	['PAGE','66512',jdecode('Research'),jdecode(''),'/66512.html','true',[],''],
	['PAGE','66912',jdecode('Pride+Show'),jdecode(''),'/66912.html','true',[],''],
	['PAGE','68212',jdecode('Membership'),jdecode(''),'/68212.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Lucent';
theSitetree.paletteFamily='D74343';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10695';
theSitetree.graphicsetId='10789';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Lucent',
				paletteFamily: 	'D74343',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10695',
				graphicsetId: 	'10789',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D74343',
				e_color: 		'979595',
				f_color: 		'979595',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-fb6bc1bef07fc4140af033f9294abc74']={
webappId:    '7060',
documentId:  '66512',
internalId:  'fb6bc1bef07fc4140af033f9294abc74',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-65']={
webappId:    '7008',
documentId:  '18001',
internalId:  '65',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-awh020in2ark1196cdc8eba']={
webappId:    '1003',
documentId:  '26322',
internalId:  'awh020in2ark1196cdc8eba',
customField: 'en:US:'
};
webappMappings['7008']=webappMappings['7008-66']={
webappId:    '7008',
documentId:  '38401',
internalId:  '66',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100624-105548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20100616-092520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20100122-150318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '962',
internalId:  '',
customField: '20100702-061815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27601',
internalId:  '',
customField: '20081114-103344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26322',
internalId:  '',
customField: '20100616-092732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43601',
internalId:  '',
customField: '20100616-092125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '983',
internalId:  '',
customField: '20091214-172928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20080127-183951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20080121-011403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20080219-000517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20090821-141327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '920',
internalId:  '',
customField: '20080206-014844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20080120-024142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20090902-104512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26343',
internalId:  '',
customField: '20080219-000224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26701',
internalId:  '',
customField: '20090811-141742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54101',
internalId:  '',
customField: '20100616-092306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38401',
internalId:  '',
customField: '20080219-001407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18001',
internalId:  '',
customField: '20080120-014316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49701',
internalId:  '',
customField: '20081120-132609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66512',
internalId:  '',
customField: '20100328-115726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66912',
internalId:  '',
customField: '20100426-180245'
};
webappMappings['7008']=webappMappings['7008-594']={
webappId:    '7008',
documentId:  '68212',
internalId:  '594',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68212',
internalId:  '',
customField: '20100521-094313'
};
var canonHostname = 'cm4all01.west-datacenter.net';
var accountId     = 'AWH020IN2ARK';
var companyName   = 'Capital+City+Alliance';
var htmlTitle	  = 'CCA+-+Capital+City+Alliance+-+Serving+LGBT+Baton+Rouge';
var metaKeywords  = 'Capital+City+Alliance+CCA+Serving+LGBT+Baton+Rouge+ccabatonrouge.org+organization+gay+straight+lesbian+bisexual+transgender+citizens+news+resource+social';
var metaContents  = 'The+greater+Baton+Rouge+area+is+a+growing%2C+vibrant+and+diverse+region+with+plenty+of+opportunities+for+lesbian%2C+gay%2C+bisexual+and+transgender+citizens+and+visitors+to+sample+our+unique+culture.++From+great+food%2C+festivals%2C+news+and+nightlife+to+social+groups%2C+churches%2C+and+professional+resources%2C+you%E2%80%99ll+find+it+all+on+Capital+City+Alliances+website.++';
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();
};
