/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],''],
	['PAGE','652',jdecode('About+Us'),jdecode(''),'/652.html','true',[],''],
	['PAGE','56912',jdecode('ENERGY+STAR'),jdecode(''),'/56912.html','true',[],''],
	['PAGE','31201',jdecode('Customer+Comments'),jdecode(''),'/31201.html','true',[],''],
	['PAGE','69012',jdecode('Photo+Gallery'),jdecode(''),'/69012/index.html','true',[ 
		['PAGE','73112',jdecode('2009+Parade+Home'),jdecode(''),'/69012/73112.html','true',[],''],
		['PAGE','69033',jdecode('2008+Feser+Parade+Home'),jdecode(''),'/69012/69033.html','true',[],''],
		['PAGE','69054',jdecode('Other+Classic+Feser+Homes'),jdecode(''),'/69012/69054.html','true',[],'']
	],''],
	['PAGE','50912',jdecode('Homes+Available+Now'),jdecode(''),'/50912.html','true',[],''],
	['PAGE','715',jdecode('Where+Are+We+Building%3F'),jdecode(''),'/715.html','true',[],''],
	['PAGE','36101',jdecode('Floor+Plans'),jdecode(''),'/36101/index.html','true',[ 
		['PAGE','49812',jdecode('The+Hearthstone'),jdecode(''),'/36101/49812.html','true',[],''],
		['PAGE','36418',jdecode('The+Sorenson'),jdecode(''),'/36101/36418.html','true',[],''],
		['PAGE','36439',jdecode('The+Cambell'),jdecode(''),'/36101/36439.html','true',[],''],
		['PAGE','36460',jdecode('The+Cordova+V'),jdecode(''),'/36101/36460.html','true',[],''],
		['PAGE','36481',jdecode('The+Badger'),jdecode(''),'/36101/36481.html','true',[],''],
		['PAGE','59154',jdecode('The+Avondale'),jdecode(''),'/36101/59154.html','true',[],''],
		['PAGE','71712',jdecode('The+Avondale+Bonus'),jdecode(''),'/36101/71712.html','true',[],''],
		['PAGE','59312',jdecode('The+Hartford'),jdecode(''),'/36101/59312.html','true',[],''],
		['PAGE','76312',jdecode('The+Aiello'),jdecode(''),'/36101/76312.html','true',[],'']
	],''],
	['PAGE','35301',jdecode('8+Critical+Questions'),jdecode(''),'/35301.html','true',[],''],
	['PAGE','778',jdecode('Contact+Us'),jdecode(''),'/778.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Sportsplace';
theSitetree.paletteFamily='785E22';
theSitetree.keyvisualId='2651';
theSitetree.keyvisualName='umzug.jpg';
theSitetree.fontsetId='343';
theSitetree.graphicsetId='401';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Sportsplace',
				paletteFamily: 	'785E22',
				keyvisualId: 	'2651',
				keyvisualName: 	'umzug.jpg',
				fontsetId: 		'343',
				graphicsetId: 	'401',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'785E22',
				b_color: 		'C4A67C',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73112',
internalId:  '',
customField: '20100330-195551'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20090730-144002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20080422-233429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56912',
internalId:  '',
customField: '20090305-173736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20080422-233439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69033',
internalId:  '',
customField: '20090305-211824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50912',
internalId:  '',
customField: '20100330-195254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20100330-203908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36101',
internalId:  '',
customField: '20100330-204003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49812',
internalId:  '',
customField: '20100330-203611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36418',
internalId:  '',
customField: '20090305-111129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36439',
internalId:  '',
customField: '20080422-233542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36460',
internalId:  '',
customField: '20080422-233549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36481',
internalId:  '',
customField: '20090304-213443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71712',
internalId:  '',
customField: '20100330-194132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20070823-194217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '778',
internalId:  '',
customField: '20080805-193657'
};
webappMappings['7060']=webappMappings['7060-60529ae24d192302976eb7594edbf750']={
webappId:    '7060',
documentId:  '73112',
internalId:  '60529ae24d192302976eb7594edbf750',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59154',
internalId:  '',
customField: '20100330-194337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59312',
internalId:  '',
customField: '20090305-170733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69012',
internalId:  '',
customField: '20090917-170737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69054',
internalId:  '',
customField: '20090305-213125'
};
webappMappings['7060']=webappMappings['7060-d9ccfa7bd7b7d1f548da3d305e75771c']={
webappId:    '7060',
documentId:  '69033',
internalId:  'd9ccfa7bd7b7d1f548da3d305e75771c',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-ae39d04040022a2f91ae5e137b6d676c']={
webappId:    '7060',
documentId:  '69054',
internalId:  'ae39d04040022a2f91ae5e137b6d676c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76312',
internalId:  '',
customField: '20100330-203848'
};
webappMappings['1501']=webappMappings['1501-19038706']={
webappId:    '1501',
documentId:  '601',
internalId:  '19038706',
customField: '1501'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABRI10IN3GYD';
var companyName   = '++++++++++++++++A%26R+FESER%2C+INC+-+elite+home+builder';
var htmlTitle	  = 'A++R+Feser%2C+Inc+-+elite+home+builder';
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();
};
