/* [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','601',jdecode('HOME'),jdecode(''), jdecode('%2F601.html'), 'true',[],'',''],
	['PAGE','8101',jdecode('Home+%28follow+up+page%29'),jdecode(''), jdecode('%2F8101.html'), 'false',[],'',''],
	['PAGE','652',jdecode('ABOUT+US'),jdecode(''), jdecode('%2F652%2Findex.html'), 'true',[ 
		['PAGE','14201',jdecode('ABOUT+US+%28follow+up+page%29'),jdecode(''), jdecode('%2F652%2F14201.html'), 'false',[],'','']
	],'',''],
	['PAGE','36401',jdecode('REQUEST+MORE+INFO'),jdecode(''), jdecode('%2F36401.html'), 'true',[],'',''],
	['PAGE','673',jdecode('FREE+MLS+SEARCH'),jdecode(''), jdecode('%2F673%2Findex.html'), 'true',[ 
		['PAGE','6601',jdecode('Free+MLS+Search+%28follow+up+page%29'),jdecode(''), jdecode('%2F673%2F6601.html'), 'false',[],'','']
	],'',''],
	['PAGE','36601',jdecode('MAP'),jdecode(''), jdecode('%2F36601.html'), 'true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Solid';
theSitetree.paletteFamily='8396BA';
theSitetree.keyvisualId='4357';
theSitetree.keyvisualName='kv_4357.jpg';
theSitetree.fontsetId='10800';
theSitetree.graphicsetId='11232';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='8396BA';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'enom',
  product: 'WSCENOSSSLYTC21T'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Solid',
				paletteFamily: 	'8396BA',
				keyvisualId: 	'4357',
				keyvisualName: 	'kv_4357.jpg',
				fontsetId: 		'10800',
				graphicsetId: 	'11232',
				contentColor: 	'FFFFFF',
				contentBGColor: '8396BA',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-1809']={
webappId:    '7008',
documentId:  '673',
internalId:  '1809',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '36601',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['7008']=webappMappings['7008-1808']={
webappId:    '7008',
documentId:  '36401',
internalId:  '1808',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20110827-003506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20110827-005252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20090812-232514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20081012-222711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20081229-222049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20090704-055951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20090812-232343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36601',
internalId:  '',
customField: '20110827-003805'
};
var webAppHostname = 'wsc.ehost-services.com:80';
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INZ0EI';
var companyName   = '++++++++++++++++++++++SHREVEPORT+BOSSIER+CITY%2C+LA++REAL+ESTATE++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++';
var htmlTitle	  = 'Summit+Executive+Realty%2C+Shreveport+Bossier+City%2C+Louisiana+Real+Estate+and+Homes+for+Sale+including+Barksdale+AFB+Area+Homes+for+Sale';
var metaKeywords  = 'shreveport+mls%2C+bossier+city+mls%2C+Shreveport+La+mls%2C+Bossier+City+LA+mls%2C+Barksdale+afb%2C+Shreveport+Bossier+City+mls+search%2C+Shreveport+mls%2C+Bossier+City+mls%2C+Shreveport+Louisiana+housing+information%2C+Shreveport+la+real+estate+market%2C+Bossier+City+la+real+estate+market%2C+Louisiana+real+estate+market%2C+Bossier+homes+for+sale%2C+Shreveport+homes+for+sale%2C+Louisiana+homes+for+sale%2C+Summit+Executive+Realty%2C+Joyce+Jeffrey%2C++REALTOR%2C+Shreveport+Bossier+MLS%2C+Shreveport+Bossier+homes%2C+Shreveport+realtor%2C+Bossier+City+realtor%2C+buying+a+home+in+shreveport+la%2C+buying+a+home+in+bossier+city+la%2C+shreveport+home+buying+guide%2C+bossier+city+home+buying+guide%2C+home+buying+tips+for+buyers%2C+free+homebuyer+brochures.';
var metaContents  = 'Summit+Executive+Realty%2C+Shreveport+Bossier+City+Louisiana+real+estate+and+homes+for+sale%2C+including+Barksdale+AFB+area+homes%2C+Bossier+City+real+estate%2C+Shreveport+real+estate%2C+Louisiana+real+estate+and+homes+for+sale+in+Benton%2C+Haughton%2C+Minden.+Home+buyers%2C+home+sellers%2C+foreclosures%2C+Free+MLS+search.+Real+Estate+Broker+-+Joyce+Jeffrey%2C+Shreveport+rental+homes%2CShreveport+property+management%2C+Shreveport+rental+management%2C+Bossier+City+rental+homes%2C+Bossier+City+property+management%2C+Bossier+City+rental+management.';
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();
};

