/* [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','1701',jdecode('HOME'),jdecode(''),'/1701.html','true',[],'',''],
	['PAGE','1752',jdecode('SERVICES'),jdecode(''),'/1752.html','true',[],'',''],
	['PAGE','19501',jdecode('WHY+CHOOSE+US'),jdecode(''),'/19501.html','true',[],'',''],
	['PAGE','1836',jdecode('CAN+WE+HELP+YOU%3F'),jdecode(''),'/1836/index.html','true',[ 
		['PAGE','1878',jdecode('Just+starting%2C+need+ideas'),jdecode(''),'/1836/1878.html','true',[],'',''],
		['PAGE','1857',jdecode('Looking+for+a+lot'),jdecode(''),'/1836/1857.html','true',[],'',''],
		['PAGE','1899',jdecode('Got+lot%2C+need+plans'),jdecode(''),'/1836/1899.html','true',[],'',''],
		['PAGE','1920',jdecode('Got+plans%2C+need+better'),jdecode(''),'/1836/1920.html','true',[],'',''],
		['PAGE','1962',jdecode('Owner-builder'),jdecode(''),'/1836/1962.html','true',[],'',''],
		['PAGE','34801',jdecode('General+contractor'),jdecode(''),'/1836/34801.html','true',[],'',''],
		['PAGE','45773',jdecode('Remodeling'),jdecode(''),'/1836/45773.html','true',[],'','']
	],'',''],
	['PAGE','16801',jdecode('GALLERY'),jdecode(''),'/16801.html','true',[],'',''],
	['PAGE','2130',jdecode('TIPS+%26+TRICKS'),jdecode(''),'/2130.html','true',[],'',''],
	['PAGE','44637',jdecode('FREE+HELP'),jdecode(''),'/44637.html','true',[],'',''],
	['PAGE','2151',jdecode('CONTACT+US'),jdecode(''),'/2151.html','true',[],'',''],
	['PAGE','45407',jdecode('MAP'),jdecode(''),'/45407.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Sportive';
theSitetree.paletteFamily='FADE8A';
theSitetree.keyvisualId='2657';
theSitetree.keyvisualName='architekt.jpg';
theSitetree.fontsetId='222';
theSitetree.graphicsetId='261';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FADE8A';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sportive',
				paletteFamily: 	'FADE8A',
				keyvisualId: 	'2657',
				keyvisualName: 	'architekt.jpg',
				fontsetId: 		'222',
				graphicsetId: 	'261',
				contentColor: 	'000000',
				contentBGColor: 'FADE8A',
				a_color: 		'FADE8A',
				b_color: 		'D0B976',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '45407',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20100203-175113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1836',
internalId:  '',
customField: '20100202-122804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1878',
internalId:  '',
customField: '20100202-121701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1857',
internalId:  '',
customField: '20100201-194323'
};
webappMappings['7008']=webappMappings['7008-9342']={
webappId:    '7008',
documentId:  '2151',
internalId:  '9342',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20100824-140027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20100824-140448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1752',
internalId:  '',
customField: '20100824-135818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44637',
internalId:  '',
customField: '20100824-131452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1899',
internalId:  '',
customField: '20100824-141148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1920',
internalId:  '',
customField: '20100824-141051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1962',
internalId:  '',
customField: '20100201-184915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20100202-202608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2130',
internalId:  '',
customField: '20100824-141724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2151',
internalId:  '',
customField: '20100824-131330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45773',
internalId:  '',
customField: '20100202-122638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45407',
internalId:  '',
customField: '20100824-131225'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INXS8N';
var companyName   = 'EXCLUSIVE++DESIGNS';
var htmlTitle	  = 'Exclusive+Designs+-+Custom+Homes+Plans';
var metaKeywords  = 'Exclusive+Designs%2C+Custom+homes+design%2C+Custom+home+design%2C+Custom+homes+designs%2C+Custom+home+designs%2C+Custom+homes+design+in+El+Dorado+Hills%2C+Custom+homes+design+in+Sacramento%2C+Best+custom+home+designer+in+California%2C+Exclusive+Designs%2C+Exclusive+Design%2C+EXD%2C+Home+design%2C+Home+designs%2C+Floor+plans%2C+Home+plans%2C+Home+floor+plans%2C+Custom+home+plans%2C+Custom+homes+plans%2C+House+plans%2C+Design+professionals%2C+Architects%2C+Designers%2C+Home+designers%2C+Drafters%2C+House+drafters';
var metaContents  = 'Custom+homes+design%2C+Custom+home+design%2C+Custom+homes+designs%2C+Custom+home+designs%2C+Custom+homes+design+in+El+Dorado+Hills%2C+Custom+homes+design+in+Sacramento%2C+Best+custom+home+designer+in+California%2C+Exclusive+Designs%2C+Exclusive+Design%2C+EXD%2C+Home+design%2C+Home+designs%2C+Floor+plans%2C+Home+plans%2C+Home+floor+plans%2C+Custom+home+plans%2C+Custom+homes+plans%2C+House+plans%2C+Design+professionals%2C+Architects%2C+Designers%2C+Home+designers%2C+Drafters%2C+House+drafters';
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();
};

