/* [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','1401',jdecode('Home'),jdecode(''),'/1401.html','true',[],'',''],
	['PAGE','10501',jdecode('About+G.+Street'),jdecode(''),'/10501.html','true',[],'',''],
	['PAGE','98801',jdecode('Design+Services'),jdecode(''),'/98801/index.html','true',[ 
		['PAGE','144621',jdecode('Fee+Structure'),jdecode(''),'/98801/144621.html','true',[],'','']
	],'',''],
	['PAGE','144680',jdecode('Consumer+Info'),jdecode(''),'/144680/index.html','true',[ 
		['PAGE','144689',jdecode('Why+Hire+a+Designer'),jdecode(''),'/144680/144689.html','true',[],'',''],
		['PAGE','144698',jdecode('Consumer+Beware'),jdecode(''),'/144680/144698.html','true',[],'','']
	],'',''],
	['PAGE','112101',jdecode('Portfolio'),jdecode(''),'/112101/index.html','true',[ 
		['PAGE','147127',jdecode('NEW%21+++G.+Creation'),jdecode(''),'/112101/147127.html','true',[],'',''],
		['PAGE','125801',jdecode('Modern+City+Living'),jdecode(''),'/112101/125801.html','true',[],'',''],
		['PAGE','132501',jdecode('Elegant+Re-Creation'),jdecode(''),'/112101/132501.html','true',[],'',''],
		['PAGE','138114',jdecode('Urban+Eclectic+Mix'),jdecode(''),'/112101/138114.html','true',[],'',''],
		['PAGE','77701',jdecode('The+Tea+House'),jdecode(''),'/112101/77701.html','true',[],'',''],
		['PAGE','132522',jdecode('Polished+Highrise'),jdecode(''),'/112101/132522.html','true',[],'',''],
		['PAGE','132543',jdecode('Suburban+Chic'),jdecode(''),'/112101/132543.html','true',[],'','']
	],'',''],
	['PAGE','139414',jdecode('Color+Hand+Renderings'),jdecode(''),'/139414.html','true',[],'',''],
	['PAGE','75101',jdecode('Client+Testimonials'),jdecode(''),'/75101.html','true',[],'',''],
	['PAGE','10543',jdecode('G.+Street%26%23x27%3Bs+Boutique'),jdecode(''),'/10543.html','true',[],'',''],
	['PAGE','10669',jdecode('Contact+Us'),jdecode(''),'/10669/index.html','true',[ 
		['PAGE','73901',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/10669/73901.html','false',[],'','']
	],'',''],
	['PAGE','10732',jdecode('+News'),jdecode(''),'/10732.html','true',[],'',''],
	['PAGE','145359',jdecode('Events'),jdecode(''),'/145359/index.html','true',[ 
		['PAGE','144961',jdecode('Who%26%23x27%3Bs+Who'),jdecode(''),'/145359/144961.html','true',[],'',''],
		['PAGE','145368',jdecode('Black+Enterprise+'),jdecode(''),'/145359/145368.html','true',[],'','']
	],'',''],
	['PAGE','98822',jdecode('Links'),jdecode(''),'/98822.html','true',[],'',''],
	['PAGE','19406',jdecode('Guestbook'),jdecode(''),'/19406/index.html','true',[ 
		['PAGE','19401',jdecode('Read+Guestbook'),jdecode(''),'/19406/19401.html','false',[],'','']
	],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Court';
theSitetree.paletteFamily='9D9D9E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16445';
theSitetree.graphicsetId='12148';
theSitetree.contentColor='4C4C4C';
theSitetree.contentBGColor='D6D5D5';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Court',
				paletteFamily: 	'9D9D9E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16445',
				graphicsetId: 	'12148',
				contentColor: 	'4C4C4C',
				contentBGColor: 'D6D5D5',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1401',
internalId:  '',
customField: '20090116-203521'
};
webappMappings['1002']=webappMappings['1002-19406AHW050INEWZ4']={
webappId:    '1002',
documentId:  '19406',
internalId:  '19406AHW050INEWZ4',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-e5f92b414dcb5cf816ed0663e6a1e402']={
webappId:    '7060',
documentId:  '77701',
internalId:  'e5f92b414dcb5cf816ed0663e6a1e402',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-11452']={
webappId:    '7008',
documentId:  '10669',
internalId:  '11452',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10501',
internalId:  '',
customField: '20110705-164443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98801',
internalId:  '',
customField: '20080717-210940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144621',
internalId:  '',
customField: '20080717-200553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144680',
internalId:  '',
customField: '20080718-041527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144689',
internalId:  '',
customField: '20080718-030944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144698',
internalId:  '',
customField: '20080718-040211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112101',
internalId:  '',
customField: '20090515-120807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132522',
internalId:  '',
customField: '20080518-231416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138114',
internalId:  '',
customField: '20080519-005249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77701',
internalId:  '',
customField: '20080518-231729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132501',
internalId:  '',
customField: '20080519-231847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125801',
internalId:  '',
customField: '20090520-171112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132543',
internalId:  '',
customField: '20080518-232312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139414',
internalId:  '',
customField: '20110705-162352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75101',
internalId:  '',
customField: '20080517-194556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10543',
internalId:  '',
customField: '20090630-161359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10669',
internalId:  '',
customField: '20110705-161747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73901',
internalId:  '',
customField: '20070527-180204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10732',
internalId:  '',
customField: '20090321-194007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145359',
internalId:  '',
customField: '20090515-120738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144961',
internalId:  '',
customField: '20081014-113725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145368',
internalId:  '',
customField: '20081003-222655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98822',
internalId:  '',
customField: '20110705-162212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19406',
internalId:  '',
customField: '20090113-125857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20070809-224505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147127',
internalId:  '',
customField: '20090520-173240'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEWZ4';
var companyName   = 'G.+Street+Interiors++++++++++++++++++++++++++++++++++++++++++++++++++++++++980.939.2767++++++++';
var htmlTitle	  = 'G.+Street+Interiors';
var metaKeywords  = '%2FEricka+Williams+%2FG.+Street+Interiors%2FG.+Street+Interiors+Inc%2F107+g+street%2Fg+streeet+%2Finterior+design+%2FAfrican+American+Designer%2FBlackLion+%2FCharlotte+Interior%2FDesigners+%2Furban+%2Fcontemporary+%2Fmodern+%2Fglam+%2Finnovative+%2Flofts+%2Fluxury+homes+%2Ffloorplans+%2Fturn+key+design+%2Fbuilders+%2Ffurniture+retailer+%2Felite+interior+design+%2Fskillful+design+%2Fdesigner+to+pro+athletes+%2FCharlotte%2C+North+Carolina+%2FBarbara+Barry+%2Ftraditional+design+%2FG.+Street+Boutique%2Futtermost%2Fglobal+views%2F%2Faol%2Fthe+teahouse%2Fthe+tea+house+cornelius%2Fterri+bonadio%2F';
var metaContents  = '%2FEricka+Williams+%2FG.+Street+Interiors%2FG.+Street+Interiors+Inc%2F107+g+street%2Fg+streeet+%2Finterior+design+%2FAfrican+American+Designer%2FBlackLion+%2FCharlotte+Interior%2FDesigners+%2Furban+%2Fcontemporary+%2Fmodern+%2Fglam+%2Finnovative+%2Flofts+%2Fluxury+homes+%2Ffloorplans+%2Fturn+key+design+%2Fbuilders+%2Ffurniture+retailer+%2Felite+interior+design+%2Fskillful+design+%2Fdesigner+to+pro+athletes+%2FCharlotte%2C+North+Carolina+%2FBarbara+Barry+%2Ftraditional+design%2FG.+Street+Boutique%2Futtermost%2Fglobal+views%2Faol%2FEricka+Schofield-Williams%2Fthe-teahouse%2Fthe+tea+house+cornelius%2Fterri+bonadio%2Fthe+tea+house';
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();
};

