/* [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','272137',jdecode('Home'),jdecode(''),'/272137.html','true',[],''],
	['PAGE','24901',jdecode('Programs+%26+Resources'),jdecode(''),'/24901/index.html','true',[ 
		['PAGE','230837',jdecode('Equality+NC'),jdecode(''),'/24901/230837.html','true',[],''],
		['PAGE','126268',jdecode('Human+Rights+Campaign'),jdecode(''),'/24901/126268.html','true',[],''],
		['PAGE','24922',jdecode('AIDS%2FHIV'),jdecode(''),'/24901/24922.html','true',[],''],
		['PAGE','81012',jdecode('Alcholics+Anonymous'),jdecode(''),'/24901/81012.html','true',[],''],
		['PAGE','32801',jdecode('Coming+Out'),jdecode(''),'/24901/32801.html','true',[],''],
		['PAGE','24943',jdecode('Domestic+Violence'),jdecode(''),'/24901/24943.html','true',[],''],
		['PAGE','24964',jdecode('Elder+Resources'),jdecode(''),'/24901/24964.html','true',[],''],
		['PAGE','80533',jdecode('Gay+Parenting'),jdecode(''),'/24901/80533.html','true',[],''],
		['PAGE','84712',jdecode('Healthy+Sexual+Behavior'),jdecode(''),'/24901/84712.html','true',[],''],
		['PAGE','32843',jdecode('Spirituality'),jdecode(''),'/24901/32843.html','true',[],''],
		['PAGE','25027',jdecode('Substance+Abuse'),jdecode(''),'/24901/25027.html','true',[],''],
		['PAGE','25048',jdecode('Transgender+OUTReach'),jdecode(''),'/24901/25048.html','true',[],''],
		['PAGE','25069',jdecode('Youth+OUTReach'),jdecode(''),'/24901/25069.html','true',[],'']
	],''],
	['PAGE','149337',jdecode('RAINBOW+PAGES'),jdecode(''),'/149337/index.html','true',[ 
		['PAGE','140837',jdecode('Artists%3B'),jdecode(''),'/149337/140837.html','true',[],''],
		['PAGE','252437',jdecode('Bars+%2F+Nightclubs%3A'),jdecode(''),'/149337/252437.html','true',[],''],
		['PAGE','251837',jdecode('Hotels%3A'),jdecode(''),'/149337/251837.html','true',[],''],
		['PAGE','251237',jdecode('Restaurants%3A'),jdecode(''),'/149337/251237.html','true',[],''],
		['PAGE','271737',jdecode('Home+Services'),jdecode(''),'/149337/271737.html','true',[],'']
	],''],
	['PAGE','274637',jdecode('PFLAG+Wilmington%2FCape+Fear'),jdecode(''),'/274637.html','true',[],''],
	['PAGE','138937',jdecode('Youth+Group'),jdecode(''),'/138937.html','true',[],''],
	['PAGE','272737',jdecode('Pride+2010'),jdecode(''),'/272737.html','true',[],''],
	['PAGE','136526',jdecode('Board+of+Directors'),jdecode(''),'/136526.html','true',[],''],
	['PAGE','164237',jdecode('E-Newsletter+'),jdecode(''),'/164237/index.html','true',[ 
		['PAGE','177137',jdecode('E-Newsletters+Sign-Up'),jdecode(''),'/164237/177137.html','true',[],'']
	],''],
	['PAGE','415',jdecode('Calendar+of+Events'),jdecode(''),'/415.html','false',[],''],
	['PAGE','85312',jdecode('Sponsors'),jdecode(''),'/85312/index.html','true',[ 
		['PAGE','92912',jdecode('Business+Guestbook'),jdecode(''),'/85312/92912.html','false',[],''],
		['PAGE','86533',jdecode('Monthly+Social+Sponsors'),jdecode(''),'/85312/86533.html','false',[],'']
	],''],
	['PAGE','25090',jdecode('Social+Events'),jdecode(''),'/25090/index.html','true',[ 
		['PAGE','25216',jdecode('Out+%26+About'),jdecode(''),'/25090/25216.html','true',[],''],
		['PAGE','25174',jdecode('Front+Runners'),jdecode(''),'/25090/25174.html','true',[],''],
		['PAGE','25195',jdecode('Pinned+Down+Bowling+League'),jdecode(''),'/25090/25195.html','true',[],''],
		['PAGE','25111',jdecode('3rd+Thursday+Social'),jdecode(''),'/25090/25111.html','false',[],'']
	],''],
	['PAGE','126247',jdecode('Publications'),jdecode(''),'/126247.html','true',[],''],
	['PAGE','8001',jdecode('For+Family+%26+Allies'),jdecode(''),'/8001/index.html','true',[ 
		['PAGE','8022',jdecode('Homophobia+101'),jdecode(''),'/8001/8022.html','true',[],''],
		['PAGE','8043',jdecode('Heterosexism'),jdecode(''),'/8001/8043.html','true',[],''],
		['PAGE','8064',jdecode('Commonly+Asked+Questions+About+People+Who+Are+LGBTQ'),jdecode(''),'/8001/8064.html','true',[],''],
		['PAGE','8127',jdecode('Potential+Problems+Facing+LGBTQ+Youth'),jdecode(''),'/8001/8127.html','true',[],''],
		['PAGE','8190',jdecode('What+Does+it+Mean+to+be+an+Ally%3F'),jdecode(''),'/8001/8190.html','true',[],''],
		['PAGE','8211',jdecode('Benefits+%26+Risks+of+Being+an+Ally'),jdecode(''),'/8001/8211.html','true',[],''],
		['PAGE','8232',jdecode('Ideas+for+Allies'),jdecode(''),'/8001/8232.html','true',[],''],
		['PAGE','8253',jdecode('Suggestions+for+Creating+an+Inclusive+Environment'),jdecode(''),'/8001/8253.html','true',[],''],
		['PAGE','6906',jdecode('When+Someone+Comes+Out+To+You'),jdecode(''),'/8001/6906.html','true',[],'']
	],''],
	['PAGE','58812',jdecode('Photo+Gallery'),jdecode(''),'/58812/index.html','true',[ 
		['PAGE','64112',jdecode('Pinned+Down+Bowling+League+%28Fall+2007%29'),jdecode(''),'/58812/64112.html','true',[],''],
		['PAGE','76412',jdecode('Out+Impact+Benefit'),jdecode(''),'/58812/76412.html','true',[],''],
		['PAGE','58712',jdecode('John+Waters+Meet+%26+Greet'),jdecode(''),'/58812/58712.html','true',[],'']
	],''],
	['PAGE','352',jdecode('About+OWCC'),jdecode(''),'/352.html','true',[],''],
	['PAGE','140858',jdecode('Links'),jdecode(''),'/140858.html','false',[],''],
	['PAGE','168037',jdecode('Coastal+Carolina+HIV+Care'),jdecode(''),'/168037.html','false',[],''],
	['PAGE','268037',jdecode('Links'),jdecode(''),'/268037.html','false',[],''],
	['PAGE','268058',jdecode('Links'),jdecode(''),'/268058.html','false',[],'']];
var siteelementCount=56;
theSitetree.topTemplateName='Gaudy';
theSitetree.paletteFamily='5C5D96';
theSitetree.keyvisualId='5935';
theSitetree.keyvisualName='kv_5935.jpg';
theSitetree.fontsetId='11113';
theSitetree.graphicsetId='11905';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6E8BCE';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Gaudy',
				paletteFamily: 	'5C5D96',
				keyvisualId: 	'5935',
				keyvisualName: 	'kv_5935.jpg',
				fontsetId: 		'11113',
				graphicsetId: 	'11905',
				contentColor: 	'FFFFFF',
				contentBGColor: '6E8BCE',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:  '138937',
internalId:  '',
customField: '20081202-001543'
};
webappMappings['7005']=webappMappings['7005-39']={
webappId:    '7005',
documentId:  '25090',
internalId:  '39',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-265']={
webappId:    '7008',
documentId:  '24901',
internalId:  '265',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268058',
internalId:  '',
customField: '20091008-204428'
};
webappMappings['7060']=webappMappings['7060-61be21c87bcecc2cbbeb430bb6f98d2b']={
webappId:    '7060',
documentId:  '58712',
internalId:  '61be21c87bcecc2cbbeb430bb6f98d2b',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-d49a494abbd6bd84fef06c3bc1dc9358']={
webappId:    '7060',
documentId:  '64112',
internalId:  'd49a494abbd6bd84fef06c3bc1dc9358',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-eca381066e2dd93fd16675f9f35c73b8']={
webappId:    '7060',
documentId:  '76412',
internalId:  'eca381066e2dd93fd16675f9f35c73b8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '271737',
internalId:  '',
customField: '20100303-085359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20100607-093038'
};
webappMappings['7008']=webappMappings['7008-14479']={
webappId:    '7008',
documentId:  '149337',
internalId:  '14479',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20090717-081547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272137',
internalId:  '',
customField: '20100321-074606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272737',
internalId:  '',
customField: '20100608-105554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274637',
internalId:  '',
customField: '20100712-131215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24901',
internalId:  '',
customField: '20090413-020848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24922',
internalId:  '',
customField: '20091105-093024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81012',
internalId:  '',
customField: '20091104-170136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32801',
internalId:  '',
customField: '20091104-175423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24943',
internalId:  '',
customField: '20091105-095033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24964',
internalId:  '',
customField: '20091106-090720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80533',
internalId:  '',
customField: '20091106-091551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84712',
internalId:  '',
customField: '20091104-180649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32843',
internalId:  '',
customField: '20090430-013506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25027',
internalId:  '',
customField: '20080306-170043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25048',
internalId:  '',
customField: '20080408-211350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25069',
internalId:  '',
customField: '20091104-203142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25090',
internalId:  '',
customField: '20091217-190455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25111',
internalId:  '',
customField: '20090218-144912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25174',
internalId:  '',
customField: '20090218-141445'
};
webappMappings['7050']=webappMappings['7050-8377']={
webappId:    '7050',
documentId:  '415',
internalId:  '8377',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25195',
internalId:  '',
customField: '20090218-151636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25216',
internalId:  '',
customField: '20090218-151319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140837',
internalId:  '',
customField: '20090522-164137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140858',
internalId:  '',
customField: '20081010-161319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149337',
internalId:  '',
customField: '20100426-133118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164237',
internalId:  '',
customField: '20091217-191302'
};
webappMappings['1501']=webappMappings['1501-648243']={
webappId:    '1501',
documentId:  '352',
internalId:  '648243',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268037',
internalId:  '',
customField: '20091008-204428'
};
webappMappings['1002']=webappMappings['1002-92912aendu0inx2mm']={
webappId:    '1002',
documentId:  '92912',
internalId:  '92912aendu0inx2mm',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168037',
internalId:  '',
customField: '20090213-233327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177137',
internalId:  '',
customField: '20100221-220426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20090409-015729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8022',
internalId:  '',
customField: '20080306-171212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8043',
internalId:  '',
customField: '20080306-171238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8064',
internalId:  '',
customField: '20080306-171307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8127',
internalId:  '',
customField: '20080306-171336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8190',
internalId:  '',
customField: '20080306-171401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8211',
internalId:  '',
customField: '20080306-171555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8232',
internalId:  '',
customField: '20080306-171639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8253',
internalId:  '',
customField: '20080306-171710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6906',
internalId:  '',
customField: '20080306-171748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58812',
internalId:  '',
customField: '20090409-015828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76412',
internalId:  '',
customField: '20080306-171921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58712',
internalId:  '',
customField: '20080306-171941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64112',
internalId:  '',
customField: '20080306-172007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85312',
internalId:  '',
customField: '20100221-220426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86533',
internalId:  '',
customField: '20090208-144616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136526',
internalId:  '',
customField: '20090919-153345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92912',
internalId:  '',
customField: '20100221-220426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126247',
internalId:  '',
customField: '20090521-165054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126268',
internalId:  '',
customField: '20090413-021454'
};
webappMappings['1003']=webappMappings['1003-aendu0inx2mm120f567b0b8']={
webappId:    '1003',
documentId:  '230837',
internalId:  'aendu0inx2mm120f567b0b8',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '230837',
internalId:  '',
customField: '20090430-010933'
};
webappMappings['1003']=webappMappings['1003-aendu0inx2mm12169fc6bb4']={
webappId:    '1003',
documentId:  '251237',
internalId:  'aendu0inx2mm12169fc6bb4',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251237',
internalId:  '',
customField: '20090522-163551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251837',
internalId:  '',
customField: '20090522-164547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '252437',
internalId:  '',
customField: '20090522-165504'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INX2MM';
var companyName   = 'Out+Wilmington+On-Line+Community+%26+Resource+Center';
var htmlTitle	  = 'Out+Wilmington+On-Line+Community+%26+Resource+Cener';
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();
};
