/* [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','2401',jdecode('Home'),jdecode(''),'/2401.html','true',[],'',''],
	['PAGE','4901',jdecode('About+us'),jdecode(''),'/4901.html','true',[],'',''],
	['PAGE','5501',jdecode('LDRC+Board'),jdecode(''),'/5501.html','true',[],'',''],
	['PAGE','4922',jdecode('Available+Property'),jdecode(''),'/4922.html','true',[],'',''],
	['PAGE','4943',jdecode('Business+Directory'),jdecode(''),'/4943/index.html','true',[ 
		['PAGE','6201',jdecode('Clothing'),jdecode(''),'/4943/6201.html','true',[],'','']
	],'',''],
	['PAGE','4964',jdecode('Contact+Us'),jdecode(''),'/4964.html','true',[],'',''],
	['PAGE','23029',jdecode('Links'),jdecode(''),'/23029.html','true',[],'',''],
	['PAGE','6901',jdecode('American+Red+Cross-Scotland+County+Chapter'),jdecode(''),'/6901.html','false',[],'',''],
	['PAGE','7201',jdecode('BB%26T'),jdecode(''),'/7201.html','false',[],'',''],
	['PAGE','7701',jdecode('Brooks+Vacuum+Center'),jdecode(''),'/7701.html','false',[],'',''],
	['PAGE','8201',jdecode('Danny%26%23x27%3Bs+Liberty'),jdecode(''),'/8201.html','false',[],'',''],
	['PAGE','10101',jdecode('Gwen%26%23x27%3Bs+Creative+Sewing+%26+Alterations'),jdecode(''),'/10101.html','false',[],'',''],
	['PAGE','10501',jdecode('Trophy+World'),jdecode(''),'/10501.html','false',[],'',''],
	['PAGE','10901',jdecode('Uptown+Fashions'),jdecode(''),'/10901.html','false',[],'',''],
	['PAGE','11201',jdecode('Roger%26%23x27%3Bs+Beauty+%26+Barber+Supply'),jdecode(''),'/11201.html','false',[],'',''],
	['PAGE','11601',jdecode('CM+Studio'),jdecode(''),'/11601.html','false',[],'',''],
	['PAGE','12401',jdecode('Naturally+U+Primp-en+Salon'),jdecode(''),'/12401.html','false',[],'',''],
	['PAGE','11901',jdecode('Veteran%26%23x27%3Bs+Barber+Shop'),jdecode(''),'/11901.html','false',[],'',''],
	['PAGE','13201',jdecode('Art+By+Design'),jdecode(''),'/13201.html','false',[],'',''],
	['PAGE','13501',jdecode('Law+Offices+of+Lisa+D.+Blalock%2C+PLLC'),jdecode(''),'/13501.html','false',[],'',''],
	['PAGE','13901',jdecode('Lumbee+River+Electric+Membership+Corporation'),jdecode(''),'/13901.html','false',[],'',''],
	['PAGE','14201',jdecode('Bob%26%23x27%3Bs+Jewelry+Shop'),jdecode(''),'/14201.html','false',[],'',''],
	['PAGE','14901',jdecode('Highland+Techs'),jdecode(''),'/14901.html','false',[],'',''],
	['PAGE','15301',jdecode('Laurinburg+TV+Center'),jdecode(''),'/15301.html','false',[],'',''],
	['PAGE','15701',jdecode('Associate+Staffing'),jdecode(''),'/15701.html','false',[],'',''],
	['PAGE','15901',jdecode('G%26M+Outlet%2C+Inc.'),jdecode(''),'/15901.html','false',[],'',''],
	['PAGE','17601',jdecode('United+Way+of+Scotland+County'),jdecode(''),'/17601.html','false',[],'',''],
	['PAGE','17901',jdecode('Training+%26+Development+Associates%2C+Inc.+'),jdecode(''),'/17901.html','false',[],'',''],
	['PAGE','18801',jdecode('Woody%26%23x27%3Bs+Printing+and+Copy+Shop%2C+Inc.'),jdecode(''),'/18801.html','false',[],'',''],
	['PAGE','19101',jdecode('SACS'),jdecode(''),'/19101.html','false',[],'',''],
	['PAGE','16201',jdecode('Mr.+T%26%23x27%3Bs'),jdecode(''),'/16201.html','false',[],'',''],
	['PAGE','16401',jdecode('Roger%26%23x27%3Bs+Beauty+%26+Barber+Supply'),jdecode(''),'/16401.html','false',[],'',''],
	['PAGE','16701',jdecode('SACS'),jdecode(''),'/16701.html','false',[],'',''],
	['PAGE','16901',jdecode('Scotland+Drug+Company'),jdecode(''),'/16901.html','false',[],'',''],
	['PAGE','17201',jdecode('White%26%23x27%3Bs+Jewelry+Shop'),jdecode(''),'/17201.html','false',[],'',''],
	['PAGE','18201',jdecode('Brenda%26%23x27%3Bs+FLorist+%26+Gifts'),jdecode(''),'/18201.html','false',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Vienna';
theSitetree.paletteFamily='D6D2C5';
theSitetree.keyvisualId='11877';
theSitetree.keyvisualName='kv_11877.jpg';
theSitetree.fontsetId='33180';
theSitetree.graphicsetId='14088';
theSitetree.contentColor='696146';
theSitetree.contentBGColor='ebe8df';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Vienna',
				paletteFamily: 	'D6D2C5',
				keyvisualId: 	'11877',
				keyvisualName: 	'kv_11877.jpg',
				fontsetId: 		'33180',
				graphicsetId: 	'14088',
				contentColor: 	'696146',
				contentBGColor: 'ebe8df',
				a_color: 		'EBE8DF',
				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:  '2401',
internalId:  '',
customField: '20090831-102219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20090624-082844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4964',
internalId:  '',
customField: '20090623-120311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4943',
internalId:  '',
customField: '20090729-103927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4922',
internalId:  '',
customField: '20090730-095859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20090623-132948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20090624-081704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20090713-101526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20090714-091805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20090626-100808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20090624-104312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20090629-095937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10501',
internalId:  '',
customField: '20090629-105159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20090629-110353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20090629-113250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20090630-083424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20090630-085759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20090630-093755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20090713-085648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20090713-092025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20090713-093116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20090713-095315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20090714-091008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20090717-092439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20090714-094433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20090717-092107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20090715-085459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20090715-092714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20090715-094417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16901',
internalId:  '',
customField: '20090715-095341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20090727-104036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20090717-094606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17901',
internalId:  '',
customField: '20090727-090825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20090727-084750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20090727-093602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20090727-095151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23029',
internalId:  '',
customField: '20100111-113000'
};
webappMappings['7008']=webappMappings['7008-14146']={
webappId:    '7008',
documentId:  '4964',
internalId:  '14146',
customField: 'language:en;country:US;'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHGEZ';
var companyName   = 'Laurinburg+Downtown+Revitilization+Corporation';
var htmlTitle	  = 'Laurinburg+Downtown';
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();
};
