/* [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','6801',jdecode('Home'),jdecode(''),'/6801.html','true',[],''],
	['PAGE','23801',jdecode('Services'),jdecode(''),'/23801.html','true',[],''],
	['PAGE','39301',jdecode('Gallery'),jdecode(''),'/39301/index.html','true',[ 
		['PAGE','6852',jdecode('Concrete+Countertops'),jdecode(''),'/39301/6852.html','true',[],''],
		['PAGE','6894',jdecode('Floors+and+Resurfacing'),jdecode(''),'/39301/6894.html','true',[],''],
		['PAGE','22501',jdecode('Decorative+Concrete'),jdecode(''),'/39301/22501.html','true',[],''],
		['PAGE','35401',jdecode('Concrete+Pavers'),jdecode(''),'/39301/35401.html','true',[],''],
		['PAGE','6873',jdecode('Indoor+Naturescapes'),jdecode(''),'/39301/6873.html','true',[],''],
		['PAGE','6915',jdecode('Water+features'),jdecode(''),'/39301/6915.html','true',[],''],
		['PAGE','39901',jdecode('Stone+and+Concrete+Walls'),jdecode(''),'/39301/39901.html','true',[],''],
		['PAGE','6978',jdecode('Landscapes'),jdecode(''),'/39301/6978.html','true',[],''],
		['PAGE','6936',jdecode('Flagstone'),jdecode(''),'/39301/6936.html','true',[],''],
		['PAGE','28201',jdecode('Outdoor+kitchen'),jdecode(''),'/39301/28201.html','true',[],''],
		['PAGE','28601',jdecode('Low+voltage+lights'),jdecode(''),'/39301/28601.html','true',[],'']
	],''],
	['PAGE','6999',jdecode('Contact+us'),jdecode(''),'/6999.html','true',[],''],
	['PAGE','16701',jdecode('Before+and+after'),jdecode(''),'/16701.html','true',[],''],
	['PAGE','20401',jdecode('Shows'),jdecode(''),'/20401.html','true',[],''],
	['PAGE','18501',jdecode('Countertops+F.A.Q.'),jdecode(''),'/18501.html','true',[],''],
	['PAGE','19701',jdecode('Request+a+countertop+quote'),jdecode(''),'/19701.html','true',[],''],
	['PAGE','7020',jdecode('Licensing'),jdecode(''),'/7020.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333F65',
				b_color: 		'040507',
				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: '20091206-222359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6894',
internalId:  '',
customField: '20091220-120552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20091216-131653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6978',
internalId:  '',
customField: '20100115-223945'
};
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: '20100115-231947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6852',
internalId:  '',
customField: '20090601-213232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6915',
internalId:  '',
customField: '20090111-202141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6936',
internalId:  '',
customField: '20091206-201912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6999',
internalId:  '',
customField: '20100104-123835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7020',
internalId:  '',
customField: '20091122-185837'
};
webappMappings['7060']=webappMappings['7060-93f618822bc52b4ad9075bc3a9d91c8d']={
webappId:    '7060',
documentId:  '6852',
internalId:  '93f618822bc52b4ad9075bc3a9d91c8d',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-450456ca86aa309cdd86ebaa0ea14fea']={
webappId:    '7060',
documentId:  '6915',
internalId:  '450456ca86aa309cdd86ebaa0ea14fea',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-4e94d9b7b3221623e0fe9bed82761c48']={
webappId:    '7060',
documentId:  '6873',
internalId:  '4e94d9b7b3221623e0fe9bed82761c48',
customField: 'language:en;country:US;'
};
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: '20090226-222226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20090522-203927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20100115-231518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20100115-224501'
};
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: '20091210-175136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39301',
internalId:  '',
customField: '20100115-224343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39901',
internalId:  '',
customField: '20100115-232406'
};
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+waterfalls%2C+water+falls%2C+water+features%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+';
var metaContents  = 'Artistic+concrete+and+stone+-+Italian+Artistic+Naturescapes+-+Concrete+Pavers%2C+Stamped+Concrete%2C+Concrete+Resurfacing%2C+Concrete+Floors+and+Countertops%2C+Flagstone%2C+Stucco+and+Stone%2C+Bocce+Court%2C+Putting+Greens%2C+Custom+Outdoor+Living.';
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();
};
