/* [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','6801',jdecode('Home+Page'),jdecode(''), jdecode('%2F6801.html'), 'true',[],'',''],
	['PAGE','39301',jdecode('Gallery'),jdecode(''), jdecode('%2F39301.html'), 'false',[],'',''],
	['PAGE','6852',jdecode('Countertops'),jdecode(''), jdecode('%2F6852.html'), 'true',[],'',''],
	['PAGE','6894',jdecode('Floors'),jdecode(''), jdecode('%2F6894.html'), 'true',[],'',''],
	['PAGE','66301',jdecode('Polished+Concrete'),jdecode(''), jdecode('%2F66301.html'), 'true',[],'',''],
	['PAGE','6873',jdecode('Concrete+Interiors'),jdecode(''), jdecode('%2F6873.html'), 'true',[],'',''],
	['PAGE','68801',jdecode('Outdoor+Resurfacing'),jdecode(''), jdecode('%2F68801.html'), 'true',[],'',''],
	['PAGE','22501',jdecode('Outdoor+Concrete'),jdecode(''), jdecode('%2F22501.html'), 'true',[],'',''],
	['PAGE','35401',jdecode('Concrete+Pavers'),jdecode(''), jdecode('%2F35401.html'), 'true',[],'',''],
	['PAGE','28201',jdecode('Outdoor+kitchen'),jdecode(''), jdecode('%2F28201.html'), 'true',[],'',''],
	['PAGE','6915',jdecode('Water+features'),jdecode(''), jdecode('%2F6915.html'), 'true',[],'',''],
	['PAGE','39901',jdecode('Stone+%26+Concrete+Walls'),jdecode(''), jdecode('%2F39901.html'), 'true',[],'',''],
	['PAGE','6936',jdecode('Flagstone'),jdecode(''), jdecode('%2F6936.html'), 'true',[],'',''],
	['PAGE','6978',jdecode('Landscapes'),jdecode(''), jdecode('%2F6978.html'), 'true',[],'',''],
	['PAGE','28601',jdecode('Low+voltage+lights'),jdecode(''), jdecode('%2F28601.html'), 'true',[],'',''],
	['PAGE','6999',jdecode('Contact+us'),jdecode(''), jdecode('%2F6999.html'), 'true',[],'',''],
	['PAGE','23801',jdecode('Services+List'),jdecode(''), jdecode('%2F23801.html'), 'true',[],'',''],
	['PAGE','70201',jdecode('Testimonials'),jdecode(''), jdecode('%2F70201.html'), 'false',[],'',''],
	['PAGE','62801',jdecode('Resurfacing+Styles'),jdecode(''), jdecode('%2F62801.html'), 'true',[],'',''],
	['PAGE','19701',jdecode('Request+a+quote'),jdecode(''), jdecode('%2F19701.html'), 'true',[],'',''],
	['PAGE','59501',jdecode('Green+Building'),jdecode(''), jdecode('%2F59501.html'), 'true',[],'',''],
	['PAGE','7020',jdecode('Licensing'),jdecode(''), jdecode('%2F7020.html'), 'true',[],'',''],
	['PAGE','16701',jdecode('Before+and+after'),jdecode(''), jdecode('%2F16701.html'), 'true',[],'',''],
	['PAGE','20401',jdecode('Shows'),jdecode(''), jdecode('%2F20401.html'), 'true',[],'',''],
	['PAGE','60201',jdecode('Blog'),jdecode(''), jdecode('%2F60201.html'), 'true',[],'',''],
	['PAGE','57401',jdecode('Business+network'),jdecode(''), jdecode('%2F57401.html'), 'true',[],'',''],
	['PAGE','18501',jdecode('Countertops+F.A.Q.'),jdecode(''), jdecode('%2F18501.html'), 'true',[],'',''],
	['PAGE','62501',jdecode('Services+'),jdecode(''), jdecode('%2F62501.html'), 'false',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Medium';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='2173';
theSitetree.keyvisualName='recht.jpg';
theSitetree.fontsetId='355';
theSitetree.graphicsetId='408';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'powweb',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Medium',
				paletteFamily: 	'000000',
				keyvisualId: 	'2173',
				keyvisualName: 	'recht.jpg',
				fontsetId: 		'355',
				graphicsetId: 	'408',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'8EBFC6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6873',
internalId:  '',
customField: '20111218-160609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6894',
internalId:  '',
customField: '20111218-135654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20110808-143612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6978',
internalId:  '',
customField: '20110118-150128'
};
webappMappings['7008']=webappMappings['7008-12086']={
webappId:    '7008',
documentId:  '6999',
internalId:  '12086',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20111218-194526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6852',
internalId:  '',
customField: '20111218-165528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6915',
internalId:  '',
customField: '20111219-180052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6936',
internalId:  '',
customField: '20111218-115027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6999',
internalId:  '',
customField: '20111223-185314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7020',
internalId:  '',
customField: '20110503-200122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68801',
internalId:  '',
customField: '20111218-182616'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20090211-122155'
};
webappMappings['7008']=webappMappings['7008-14052']={
webappId:    '7008',
documentId:  '19701',
internalId:  '14052',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20110503-195941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20090522-203927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20111218-155757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20110118-151555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28201',
internalId:  '',
customField: '20090921-205611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28601',
internalId:  '',
customField: '20091207-001031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35401',
internalId:  '',
customField: '20111218-114201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39301',
internalId:  '',
customField: '20100623-175741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39901',
internalId:  '',
customField: '20111218-115308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57401',
internalId:  '',
customField: '20110321-141130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59501',
internalId:  '',
customField: '20111205-123419'
};
webappMappings['7050']=webappMappings['7050-20370']={
webappId:    '7050',
documentId:  '60201',
internalId:  '20370',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60201',
internalId:  '',
customField: '20110317-000310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62501',
internalId:  '',
customField: '20110512-122036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62801',
internalId:  '',
customField: '20110616-112122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66301',
internalId:  '',
customField: '20111204-224439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70201',
internalId:  '',
customField: '20111218-161657'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INE2LA';
var companyName   = 'DelGrosso+Design';
var htmlTitle	  = 'DelGrosso+Design+-+Artistic+concrete+and+stone+-+Waterfalls+-+Landscapes';
var metaKeywords  = 'concrete%2C+concrete+countertops%2C+bath%2C+kitchen%2C+remodel%2C+vanity+top%2C+style%2C+interior+ideas%2C+floor+ideas%2C+floor%2C+floors%2C+coating%2Cconcrete+polishing%2C+waterfalls%2C+water+falls%2C+water+features%2C+tiles%2C+tile%2C+fountains%2C+indoor+waterfalls%2C+indoor%2C+outdoor%2C+indoor+concrete%2C+decorative+concrete%2C+stamped+concrete%2C+artistic+concrete%2C+concrete+pavers%2C+interlocking+pavers%2C+concrete+resurfacing%2C+concrete+floors%2C+artistic+floors%2C+concrete+overlays%2C+concrete+overlay%2C+overlay%2C+overlays%2C+resurfacing%2C+concrete+staining%2C+acid+staining%2C+concrete+sealing%2C+stucco+walls%2C+outdoor+kitchen%2C+built+in+barbecues%2C+outdoor+fireplaces%2C+cement+floors%2C+concrete+restoration%2C+concrete+coloring%2C+driveways%2C+pathways%2C+pathway%2C+driveway%2C+patio%2C+patios%2C+landscaping+walls%2C+concrete+pads%2C+concrete+creations%2C+concrete+furniture%2C+concrete+table%2C+concrete+tables%2C+concrete+bench%2C+concrete+waterfall%2C+carved+concrete%2C+polished+concrete%2C+terrazzo%2C+terrazzo+floor%2C+concrete+tubs%2C+custom%2C+custom+concrete%2C+custom+interior+concrete%2C+custom+creations%2C+landscaping%2C+landscape%2C+landscapes%2C+rock+walls%2C+stone+walls%2C+stone%2C+rock%2C+flagstone%2C+ledgestone%2C+flagstone+wall%2C+rock+wall%2C+stone+wall%2C+ledge+stone+walls%2C+integral+colored+concrete%2C+textured+concrete%2C+flagstone+pathway%2C+decomposed+granite%2C+brick%2C+bricks%2C+brick+patio%2C+brick+walls%2C+brick+wall%2C+allan+block%2C+concrete+blocks%2C+concrete+walls%2C+self+standing+walls%2C+free+standing+wall%2C+segmental+wall%2C+segmental+walls%2C+cinder+blocks%2C+cinderblock+wall%2C+arizona+flagstone%2C+bluestone%2C+limestone%2C+sandstone%2C+bocce+court%2C+mediterranean%2C+mediterranean+landscaping%2C+mediterranean+landscape%2C+golf+green%2C+golf%2C+mini+golf%2C+tuscany%2C+tuscan+landscape%2C+italian+landscaping%2C+planting%2C+green+construction%2C+green%2C+landscaping+design%2C+design%2C+ground+cover%2C+ground+covers%2C+drainage%2C+drainage+system%2C+irrigation%2C+irrigation+system%2C+irrigation+systems%2C+conrete%2C+concrate%2C+low+voltage+lights%2C+outdoor+lights%2C+french+drain%2C+lawn%2C+outdoor+living%2C+green+living%2C+metallic%2C+pigment%2C+stain%2C+patina%2C+sealer%2C+sheen%2C+restoration';
var metaContents  = 'Italian+artistic+concrete+and+stone+construction+-++Custom+Outdoor+and+Indoor+living+spaces.+Concrete+Floors%2C+countertops+and+walls%2C+Concrete+restoration+and+resurfacing%2C+New+concrete+construction%2C+interlocking+pavers%2C+Stamped+concrete%2C+Flagstone%2C+Stucco+and+stone+walls%2C+Bocce+court%2C+Putting+greens%2C+Waterfalls%2C+Ponds%2C+Interior+water+features%2C+Weeping+walls.';
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();
};

